From: Sascha Schumann Date: Fri, 27 Jun 2003 07:12:54 +0000 (+0000) Subject: Try to link the getaddrinfo test, so that one can disable it using X-Git-Tag: php-5.0.0b1~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc324648fe162a2cccc63b30169de85b1b5e9f7b;p=php Try to link the getaddrinfo test, so that one can disable it using -Dgetaddrinfo=NO_getaddrinfo. --- diff --git a/configure.in b/configure.in index 6bc64aa429..b392306047 100644 --- a/configure.in +++ b/configure.in @@ -521,7 +521,7 @@ vsnprintf \ dnl Check for getaddrinfo, should be a better way, but... AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, -[AC_TRY_COMPILE([#include ], +[AC_TRY_LINK([#include ], [struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);], ac_cv_func_getaddrinfo=yes, ac_cv_func_getaddrinfo=no)]) if test "$ac_cv_func_getaddrinfo" = yes; then