diff options
-rw-r--r-- | configure.ac | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index ed154429f..59b1e8a76 100644 --- a/configure.ac +++ b/configure.ac @@ -491,19 +491,12 @@ dnl --------------------------------------------- dnl IPv6 dnl --------------------------------------------- -AC_ARG_ENABLE(ipv6, - AC_HELP_STRING([--enable-ipv6], [enable use of IPv6]), - enable_ipv6=$enableval, - enable_ipv6=no) - -echo -n "IPv6 is " -if test x$enable_ipv6 = xyes; then - CFLAGS="-DENABLE_IPV6 $CFLAGS" - echo "enabled" -else - echo "disabled" -fi +AC_ARG_ENABLE([ipv6], + AS_HELP_STRING([--enable-ipv6], [enable use of IPv6])) +if test "x$enable_ipv6" = "xyes"; then + AC_DEFINE([ENABLE_IPV6], [1], [Enable this when IPv6 is requested]) +fi dnl --------------------------------------------- dnl zlib |