From 0d94951e856b6f963b75f888eb7aa7428075a6d0 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 2 Aug 2016 08:35:28 +0000 Subject: Re #1945 (misc): Set IPv6 sockets to be IPv6 only Auto-detect in configure script if this option is supported, and if yes, Set IPv6 sockets to be IPv6 only. Thanks to Alexander Traud for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5403 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 3c80efac..4ea4d498 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -343,6 +343,15 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) +dnl # Determine if IPV6_V6ONLY is available +AC_MSG_CHECKING([if IPV6_V6ONLY is available]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include + #include ]], + [int opt = IPV6_V6ONLY;])], + [AC_DEFINE(PJ_SOCK_HAS_IPV6_V6ONLY,1) + AC_MSG_RESULT(yes)], + AC_MSG_RESULT(no)) + dnl # Determine if SO_ERROR is available AC_MSG_CHECKING([if SO_ERROR is available]) case $target in -- cgit v1.2.3