1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Revert getaddrinfo configure changes until we get a solution that is

properly tested on Tru64 - pre recent discussion (or lack thereof) on -hackers.
This commit is contained in:
Andrew Dunstan
2006-04-07 17:42:50 +00:00
parent 23c6f11b09
commit a9351518a7
2 changed files with 72 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.431.2.9 2006/02/21 06:07:10 tgl Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.431.2.10 2006/04/07 17:42:50 adunstan Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -917,21 +917,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