summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-14 12:16:39 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-14 12:16:39 +0000
commit3180c39914751174cb2cc852b29734be7f514394 (patch)
tree698d045c2f7d4e045963ff00b6f4ab42c5f2b595
parentae2c21a794e789630c8d2d0364efdbef067260b5 (diff)
downloadxine-lib-3180c39914751174cb2cc852b29734be7f514394.tar.gz
xine-lib-3180c39914751174cb2cc852b29734be7f514394.tar.bz2
Simplify IPv6 check.
CVS patchset: 8254 CVS date: 2006/09/14 12:16:39
-rw-r--r--configure.ac17
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