diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-07-11 22:09:42 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-07-11 22:37:26 +0200 |
commit | b782b01c290fbc4f67e0030cb534f8238383329f (patch) | |
tree | e06fc50f4daa7cc6e104a7a6af6a8bbf6b743925 /configure.ac | |
parent | d8fbeee466e6ce08d950fd694d5e58065d2fee97 (diff) |
Report if IPv6 support is enabled with the -v flag
The IPv6 support is stored in the config.h header file, instead of being
passed with the -D flag, so it is easier to read from version.cc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 4d1d763c..364b06e7 100644 --- a/configure.ac +++ b/configure.ac @@ -693,6 +693,10 @@ connect(fd, (struct sockaddr *)&sa, len); AC_MSG_RESULT([$enable_ipv6]) fi +if test "x$enable_ipv6" = "xyes"; then + AC_DEFINE([ENABLE_IPV6], [1], [Enable IPv6 support]) +fi + dnl ---------- dnl HTML tests dnl ---------- @@ -732,9 +736,6 @@ if test "x$enable_cookies" = "xno" ; then CFLAGS="$CFLAGS -DDISABLE_COOKIES" CXXFLAGS="$CXXFLAGS -DDISABLE_COOKIES" fi -if test "x$enable_ipv6" = "xyes" ; then - CFLAGS="$CFLAGS -DENABLE_IPV6" -fi if test "x$enable_efence" = "xyes" ; then LIBS="-lefence $LIBS" fi |