[PATCH] Add configuration option to enable/disable IPv6 support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Default is IPv6 is enabled, but people can pass --disable-ipv6 to the
configure script to disable the IPv6 bits in loader.
---
 configure.ac       |   10 ++++++++++
 loader/Makefile.am |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e10d844..7227ab0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,6 +171,16 @@ if test x$selinux = xyes ; then
     AC_SUBST(NFS_CFLAGS, [-DHAVE_NFS])
 fi
 
+# IPv6 support can be enabled or disabled
+AC_ARG_ENABLE(ipv6,
+    AC_HELP_STRING([--enable-ipv6],
+                   [enable IPv6 support (default is yes)]),
+    [ipv6=$enableval],
+    [ipv6=yes])
+if test x$ipv6 = xyes ; then
+    AC_SUBST(IPV6_CFLAGS, [-DENABLE_IPV6])
+fi
+
 # Add remaining compiler flags we want to use
 CFLAGS="$CFLAGS -Wall -Werror -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
 
diff --git a/loader/Makefile.am b/loader/Makefile.am
index e5d1b7f..26f31b6 100644
--- a/loader/Makefile.am
+++ b/loader/Makefile.am
@@ -40,7 +40,7 @@ endif
 COMMON_CFLAGS      = -DUSE_LOGDEV -DVERSION='"$(PACKAGE_VERSION)"'
 
 loader_CFLAGS      = $(COMMON_CFLAGS) $(GLIB_CFLAGS) $(LIBNM_GLIB_CFLAGS) \
-                     $(LIBCURL_CFLAGS) \
+                     $(LIBCURL_CFLAGS) $(IPV6_CFLAGS) \
                      -DINCLUDE_LOCAL -DINCLUDE_NETWORK
 loader_LDADD       = $(NEWT_LIBS) $(GLIB_LIBS) $(LIBNL_LIBS) \
                      $(LIBNM_GLIB_LIBS) $(CHECKISOMD5_LIBS) \
-- 
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux