diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/configure.ac b/configure.ac index 94e767b3..2b12f58f 100644 --- a/configure.ac +++ b/configure.ac @@ -296,130 +296,12 @@ foo(struct in6_addr *addr) AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OS_IPV6_SUPPORT, 1, [define if the OS provides AF_INET6 and struct in6_addr]) - ipv6=yes ], [ AC_MSG_RESULT(no) - ipv6=no ] ) -ipv6type=unknown -ipv6lib=none -ipv6trylibc=no - -if test "$ipv6" = "yes"; then - # Apparently, only on Linux by this point the configure script knows - # what the C preprocessor and the extended regexp grep commands are. - # On other OSes the first call to AC_EGREP_CPP() induces a search for - # these tools, which prints three lines in the middle of the IPv6 - # detection message and distorts it. Resolve these dependencies - # beforehand to prevent that. - AC_PROG_CPP - AC_PROG_EGREP - - AC_MSG_CHECKING([ipv6 stack type]) - for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do - case $i in - inria) - dnl http://www.kame.net/ - AC_EGREP_CPP(yes, -[#include <netinet/in.h> -#ifdef IPV6_INRIA_VERSION -yes -#endif], - [ipv6type=$i]) - ;; - kame) - dnl http://www.kame.net/ - AC_EGREP_CPP(yes, -[#include <netinet/in.h> -#ifdef __KAME__ -yes -#endif], - [ipv6type=$i; - ipv6lib=inet6; - ipv6libdir=/usr/local/v6/lib; - ipv6trylibc=yes]) - ;; - linux-glibc) - dnl http://www.v6.linux.or.jp/ - AC_EGREP_CPP(yes, -[#include <features.h> -#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 -yes -#endif], - [ipv6type=$i]) - ;; - linux-libinet6) - dnl http://www.v6.linux.or.jp/ - dnl - dnl This also matches Solaris 8 and Tru64 UNIX 5.1, - dnl and possibly other versions of those OSes - dnl - if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then - ipv6type=$i - ipv6lib=inet6 - ipv6libdir=/usr/inet6/lib - ipv6trylibc=yes; - CFLAGS="-I/usr/inet6/include $CFLAGS" - fi - ;; - toshiba) - AC_EGREP_CPP(yes, -[#include <sys/param.h> -#ifdef _TOSHIBA_INET6 -yes -#endif], - [ipv6type=$i; - ipv6lib=inet6; - ipv6libdir=/usr/local/v6/lib]) - ;; - v6d) - AC_EGREP_CPP(yes, -[#include </usr/local/v6/include/sys/v6config.h> -#ifdef __V6D__ -yes -#endif], - [ipv6type=$i; - ipv6lib=v6; - ipv6libdir=/usr/local/v6/lib; - CFLAGS="-I/usr/local/v6/include $CFLAGS"]) - ;; - zeta) - AC_EGREP_CPP(yes, -[#include <sys/param.h> -#ifdef _ZETA_MINAMI_INET6 -yes -#endif], - [ipv6type=$i; - ipv6lib=inet6; - ipv6libdir=/usr/local/v6/lib]) - ;; - esac - if test "$ipv6type" != "unknown"; then - break - fi - done - AC_MSG_RESULT($ipv6type) -fi - -if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then - if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then - LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" - echo "You have $ipv6lib library, using it" - else - if test "$ipv6trylibc" = "yes"; then - echo "You do not have $ipv6lib library, using libc" - else - echo 'Fatal: no $ipv6lib library found. cannot continue.' - echo "You need to fetch lib$ipv6lib.a from appropriate" - echo 'ipv6 kit and compile beforehand.' - exit 1 - fi - fi -fi - AC_REPLACE_FUNCS(strlcat strlcpy strsep getservent getopt_long) AC_CHECK_FUNCS(fork vfork) AC_CHECK_FUNCS(setlinebuf) |