Skip to content

Commit eac951d

Browse files
committed
Check nsl library for gethostbyname_r() on all platforms (HP-UX uses it
too).
1 parent 62f09e9 commit eac951d

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

configure

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7744,9 +7744,8 @@ if test "$ac_res" != no; then
77447744
fi
77457745

77467746
# Required for thread_test.c on Solaris 2.5:
7747-
case $host_os in
7748-
solaris*)
7749-
{ echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7747+
# Other ports use it too (HP-UX) so test unconditionally
7748+
{ echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
77507749
echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
77517750
if test "${ac_cv_search_gethostbyname_r+set}" = set; then
77527751
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -7829,8 +7828,6 @@ if test "$ac_res" != no; then
78297828

78307829
fi
78317830

7832-
;;
7833-
esac
78347831
# Cygwin:
78357832
{ echo "$as_me:$LINENO: checking for library containing shmget" >&5
78367833
echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }

configure.in

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.586 2009/01/14 16:39:58 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.587 2009/01/14 18:10:21 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -871,11 +871,8 @@ AC_SEARCH_LIBS(crypt, crypt)
871871
# Solaris:
872872
AC_SEARCH_LIBS(fdatasync, [rt posix4])
873873
# Required for thread_test.c on Solaris 2.5:
874-
case $host_os in
875-
solaris*)
876-
AC_SEARCH_LIBS(gethostbyname_r, nsl)
877-
;;
878-
esac
874+
# Other ports use it too (HP-UX) so test unconditionally
875+
AC_SEARCH_LIBS(gethostbyname_r, nsl)
879876
# Cygwin:
880877
AC_SEARCH_LIBS(shmget, cygipc)
881878

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy