]> git.proxmox.com Git - mirror_frr.git/commitdiff
check for v6 header files after we figure out whether we are doing v6
authorgdt <gdt>
Wed, 3 Dec 2003 17:52:30 +0000 (17:52 +0000)
committergdt <gdt>
Wed, 3 Dec 2003 17:52:30 +0000 (17:52 +0000)
and if so which flavor.

Fixes 99% of bugzilla bug #62.

ChangeLog
configure.ac

index e31d0c6caf46a77f094db7c6ba0d7343d1d7f8c5..13f5457fa6df051a446c2fe2cafa4171dfc73a63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-03  Greg Troxel  <gdt@poblano.ir.bbn.com>
+
+       * configure.ac: Move tests for v6 header files to after the check
+       for v6 code version, and conditionalize on the right variable.
+       (Fixes problem where v6 header files are not included when v6 is
+       enabled implicitly.)
+       
 2003-12-03  Greg Troxel  <gdt@poblano.ir.bbn.com>
 
        * configure.ac: Add --enable-exampledir to specify where example
index ef24dc00f21f932f2e1161b61463579c2a3022d4..b3fd50ec5052a8eff2a5dda414e7a77ff0b1a2d1 100755 (executable)
@@ -209,11 +209,7 @@ AC_CHECK_HEADERS([sys/socket.h netinet/in_systm.h netinet/in.h \
                 net/if_dl.h net/netopt.h inet/nd.h net/route.h \
                 net/if.h net/if_var.h netinet/in_var.h])
 
-if test "x${enable_ipv6}" = "xyes"; then
-AC_CHECK_HEADERS([netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
-                netinet6/in6_var.h netinet6/nd6.h])
-fi
-dnl if enable_ipv6
+dnl V6 headers are checked below, after we check for v6
 
 dnl check some types
 AC_C_CONST
@@ -637,6 +633,14 @@ dnl -----------------------
   fi
 fi
 
+dnl ------------------
+dnl IPv6 header checks
+dnl ------------------
+if test "x${zebra_cv_ipv6}" = "xyes"; then
+AC_CHECK_HEADERS([netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
+                netinet6/in6_var.h netinet6/nd6.h])
+fi
+
 dnl --------------------
 dnl Daemon disable check
 dnl --------------------