0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

configure: Fix HAVE_IPV6 enableval / conditional.

This commit is contained in:
Jason Volk 2019-03-24 16:34:51 -07:00
parent be563a9f18
commit f098848386

View file

@ -777,16 +777,17 @@ dnl
AC_ARG_ENABLE(ipv6, AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support]), 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]) AC_DEFINE([HAVE_IPV6], [1], [IPv6 is supported])
fi ],[])
dnl *************************************************************************** dnl ***************************************************************************