]> jfr.im git - irc/ircd-hybrid/bopm.git/blobdiff - configure.in
Merged in TimeMr14C's IPv6 stuff to main branch.
[irc/ircd-hybrid/bopm.git] / configure.in
index ab6fc50c46bd4245505bbb8840300d79190a2ebb..9995722255c70e3261dfc3f2c40e451087283cfe 100644 (file)
@@ -11,6 +11,17 @@ AC_ARG_WITH(select,
 AC_ARG_WITH(unreal, 
 [  --with-unreal           you need this if you are using Unreal ircd (any version)], with_unreal=yes, with_unreal=no)
 
+dnl ipv6?
+AC_ARG_ENABLE(ipv6,
+[  --enable-ipv6                Enable IPV6 support.
+  --disable-ipv6               Disable IPV6 support. ],
+    [ ac_cv_ipv6=$enableval ], [ ac_cv_ipv6='no' ])
+
+if test "$ac_cv_ipv6" = "yes" ; then
+        AC_DEFINE(IPV6, 1, Use Ipv6 Support)
+        echo "Using IPv6 support"
+fi
+
 dnl Checks for programs.
 AC_PROG_CC
 
@@ -54,6 +65,9 @@ fi
 
 AC_CHECK_FUNCS(inet_aton socket strdup strstr)
 
+dnl Check if we can use gethostbyname2 for ipv6
+AC_CHECK_FUNCS(gethostbyname gethostbyname2)
+
 dnl AIX fun
 AC_C_BIGENDIAN