From 39ec43a27130a971954425b8037b2e889d288540 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 7 Apr 2006 17:50:03 +0000 Subject: Revert getaddrinfo configure changes until we get a solution that is properly tested on Tru64 - pre recent discussion (or lack thereof) on -hackers. --- configure.in | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d4a11f2ba0..0b52f67c6b 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 -#include -], - [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 -- cgit v1.2.1