cvs: php4 / configure.in

From: Date: Sun, 10 Sep 2000 08:09:21 +0000
Subject: cvs: php4 / configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1680@lists.php.net to get a copy of this message
venaas Sun Sep 10 01:09:21 2000 EDT Modified files: /php4 configure.in Log: refining getaddrinfo check further, checking that struct addrinfo is there Index: php4/configure.in diff -u php4/configure.in:1.179 php4/configure.in:1.180 --- php4/configure.in:1.179 Sat Sep 9 05:09:43 2000 +++ php4/configure.in Sun Sep 10 01:09:21 2000 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.179 2000/09/09 12:09:43 venaas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.180 2000/09/10 08:09:21 venaas Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -395,7 +395,8 @@ dnl Check for getaddrinfo, should be a better way, but... AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, -[AC_TRY_COMPILE([#include <netdb.h>], [getaddrinfo(NULL,NULL,NULL,NULL);], +[AC_TRY_COMPILE([#include <netdb.h>], + [struct addrinfo h;getaddrinfo(NULL,NULL,&h,NULL);], ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no)]) if test "$ac_cv_func_getaddrinfo" = yes; then AC_DEFINE(HAVE_GETADDRINFO,1,[Define if you have the getaddrinfo function])

« previous php.cvs (#1680) next »