From 850489ab7e8ef38dea2ae5e6d39951dbff6f134e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 3 Aug 2003 20:23:14 +0000 Subject: [PATCH] Don't pull in libbind except on BeOS, per pgsql-bugs discussion around 12 Jun 2003. --- configure | 3 +++ configure.in | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 7f242d4950..7d54d0e2e6 100755 --- a/configure +++ b/configure @@ -5670,6 +5670,8 @@ if test "$ac_cv_search_crypt" != no; then fi # BeOS: +if test "$PORTNAME" = "beos" +then echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6 @@ -5735,6 +5737,7 @@ _ACEOF fi +fi # Solaris: echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6 diff --git a/configure.in b/configure.in index fa40b037f3..8c13414f20 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Header: /cvsroot/pgsql/configure.in,v 1.272 2003/08/01 19:12:52 tgl Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.273 2003/08/03 20:23:14 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -647,7 +647,10 @@ AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt]) AC_CHECK_LIB(unix, main) AC_SEARCH_LIBS(crypt, crypt) # BeOS: -AC_CHECK_LIB(bind, __inet_ntoa) +if test "$PORTNAME" = "beos" +then + AC_CHECK_LIB(bind, __inet_ntoa) +fi # Solaris: AC_SEARCH_LIBS(fdatasync, [rt posix4]) # Cygwin: