diff options
| author | Andrew Dunstan | 2006-04-07 17:50:03 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2006-04-07 17:50:03 +0000 |
| commit | 39ec43a27130a971954425b8037b2e889d288540 (patch) | |
| tree | 421dc01e4c10844451fafd356b70227445553ca5 /configure.in | |
| parent | 2f8a7bf2909f7434402a9066d258f74f3e132eb4 (diff) | |
Revert getaddrinfo configure changes until we get a solution that is
properly tested on Tru64 - pre recent discussion (or lack thereof) on -hackers.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/configure.in b/configure.in index d4a11f2ba0e..0b52f67c6be 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.455 2006/03/06 17:41:43 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.456 2006/04/07 17:50:03 adunstan Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -940,21 +940,11 @@ AC_REPLACE_FUNCS([crypt fseeko getopt getrusage inet_aton random rint srandom st # System's version of getaddrinfo(), if any, may be used only if we found # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h. -# (Note: the AC_TRY_LINK probe fails on Windows, where the available +# (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available # versions of getaddrinfo don't follow normal C call protocol. This is OK # because we want to use our own getaddrinfo.c on Windows anyway.) if test x"$ac_cv_type_struct_addrinfo" = xyes ; then - dnl Cannot use AC_CHECK_FUNC because getaddrinfo may be a macro - AC_MSG_CHECKING(for getaddrinfo) - AC_TRY_LINK([ -#include <sys/socket.h> -#include <netdb.h> -], - [return getaddrinfo("", "", NULL, NULL) ? 0 : 1;], - [AC_DEFINE(HAVE_GETADDRINFO, 1, [Define to 1 if you have getaddrinfo().]) - AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no) - AC_LIBOBJ(getaddrinfo)]) + AC_REPLACE_FUNCS([getaddrinfo]) else AC_LIBOBJ(getaddrinfo) fi |
