2008-02-18 18:35:39

by Chuck Lever III

[permalink] [raw]
Subject: [PATCH 03/17] Introduce "--enable-ipv6" ./configure option

I think we want to continue to allow nfs-utils to be built on systems that
do not have any IPv6 development libraries and headers installed, so add a
./configure switch that allows distros to disable IPv6 functionality.

For now, it defaults to "yes" and is a no-op. As we add IPv6 functionality
we can insert it behind this option.

Signed-off-by: Chuck Lever <[email protected]>
---

configure.ac | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index ab3198a..5a06971 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,6 +127,18 @@ AC_ARG_ENABLE(mount,
enable_mount=$enableval,
enable_mount=yes)
AM_CONDITIONAL(CONFIG_MOUNT, [test "$enable_mount" = "yes"])
+AC_ARG_ENABLE(ipv6,
+ [AC_HELP_STRING([--enable-ipv6],
+ [enable support for IPv6 @<:@default=yes@:>@])],
+ enable_ipv6=$enableval,
+ enable_ipv6=yes)
+ if test "$enable_ipv6" = yes; then
+ AC_DEFINE(IPV6_SUPPORTED, 1, [Define this if you want IPv6 support compiled in])
+ else
+ enable_ipv6=
+ fi
+ AC_SUBST(enable_ipv6)
+ AM_CONDITIONAL(CONFIG_IPV6, [test "$enable_ipv6" = "yes"])

# Check whether user wants TCP wrappers support
AC_TCP_WRAPPERS