[asterisk-commits] blanchet: branch blanchet/v6 r60397 -
/team/blanchet/v6/configure.ac
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Apr 5 20:16:57 MST 2007
Author: blanchet
Date: Thu Apr 5 22:16:56 2007
New Revision: 60397
URL: http://svn.digium.com/view/asterisk?view=rev&rev=60397
Log:
add checks for IPv6 generic support and specific support of IPV6_TCLASS, s
ince older IPv6 implementations may not have that define in netinet/in.h.
Such older IPv6 implementations are MacOSX 10.4* which is based on a very
old (aka 2000) version of kame IPv6 stack.
Modified:
team/blanchet/v6/configure.ac
Modified: team/blanchet/v6/configure.ac
URL: http://svn.digium.com/view/asterisk/team/blanchet/v6/configure.ac?view=diff&rev=60397&r1=60396&r2=60397
==============================================================================
--- team/blanchet/v6/configure.ac (original)
+++ team/blanchet/v6/configure.ac Thu Apr 5 22:16:56 2007
@@ -1137,6 +1137,27 @@
fi
fi
+# IPv6 support
+AC_CHECK_FUNCS(getaddrinfo,
+ [ AC_DEFINE([HAVE_IPV6], 1, [Define to 1 if your system supports IPv6])
+AC_MSG_CHECKING(for IPV6_TCLASS define)
+AC_COMPILE_IFELSE(
+ [
+ AC_LANG_PROGRAM(
+ [#include <netinet/in.h>],
+ [int a=IPV6_TCLASS;])
+ ],
+ [ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_IPV6_TCLASS], 1, [Define to 1 if your system has IPV6_
+TCLASS define.])
+ ],
+ [ AC_MSG_RESULT(no)
+ ]
+ )
+ ],
+ [AC_MSG_NOTICE([no IPv6 support])]
+ )
+
AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile])
AC_OUTPUT
More information about the asterisk-commits
mailing list