From f0988483866d87da7533c6940d97f9f4c72eb154 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 24 Mar 2019 16:34:51 -0700 Subject: [PATCH] configure: Fix HAVE_IPV6 enableval / conditional. --- configure.ac | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 990f7c365..84b7c387a 100644 --- a/configure.ac +++ b/configure.ac @@ -777,16 +777,17 @@ dnl AC_ARG_ENABLE(ipv6, AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support]), [ - ipv6=$enableval + ipv6="no" ], [ - ipv6=yes + ipv6="yes" ]) -dnl TODO: IPV6 CHECKS +AM_CONDITIONAL([HAVE_IPV6], [[[[ "$ipv6" = "yes" ]]]]) -if test x$ipv6 = "Xyes"; then +AM_COND_IF(HAVE_IPV6, +[ AC_DEFINE([HAVE_IPV6], [1], [IPv6 is supported]) -fi +],[]) dnl ***************************************************************************