summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-06-27 07:12:54 +0000
committerSascha Schumann <sas@php.net>2003-06-27 07:12:54 +0000
commitdc324648fe162a2cccc63b30169de85b1b5e9f7b (patch)
tree34b07a9e4efba616817827c5f5d722af8a15853f /configure.in
parentac795777769d574d64bcf65312b1cf790d8297b3 (diff)
downloadphp-git-dc324648fe162a2cccc63b30169de85b1b5e9f7b.tar.gz
Try to link the getaddrinfo test, so that one can disable it using
-Dgetaddrinfo=NO_getaddrinfo.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
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 <netdb.h>],
+[AC_TRY_LINK([#include <netdb.h>],
[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