cvs: php4 / configure.in

From: Date: Thu, 02 May 2002 13:12:44 +0000
Subject: cvs: php4 / configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11623@lists.php.net to get a copy of this message
sas Thu May 2 09:12:44 2002 EDT Modified files: /php4 configure.in Log: in6addr_any is defined as extern in IRIX header files, but is not actually contained in any library (sigh). Make this check fail, if the link stage does not succeed. Also avoid GCC optimization which drops the reference to ip6addr_any. Tested on IRIX 6.5.15. Index: php4/configure.in diff -u php4/configure.in:1.342 php4/configure.in:1.343 --- php4/configure.in:1.342 Thu May 2 04:31:55 2002 +++ php4/configure.in Thu May 2 09:12:44 2002 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.342 2002/05/02 08:31:55 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.343 2002/05/02 13:12:44 sas Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -467,10 +467,10 @@ dnl Check for IPv6 support AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support, -[AC_TRY_COMPILE([ #include <sys/types.h> +[AC_TRY_LINK([ #include <sys/types.h> #include <sys/socket.h> -#include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s], - ac_cv_ipv6_support=yes, ac_cv_ipv6_support=no)]) +#include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;], + [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])]) if test "$ac_cv_ipv6_support" = yes; then AC_DEFINE(HAVE_IPV6,1,[Whether you have IPv6 support]) fi

« previous php.cvs (#11623) next »