diff options
author | Bruce Momjian | 2009-01-14 18:10:21 +0000 |
---|---|---|
committer | Bruce Momjian | 2009-01-14 18:10:21 +0000 |
commit | cd263398326d8892189bfb4cb4b71dd8e05bfeca (patch) | |
tree | 72fb1151a540512e110e89d6a01900f8edf9511d | |
parent | 7ce38b85848c0d460843cd0626318ef0ddf42b37 (diff) |
Check nsl library for gethostbyname_r() on all platforms (HP-UX uses it
too).
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 4 insertions, 10 deletions
@@ -7744,9 +7744,8 @@ if test "$ac_res" != no; then fi # Required for thread_test.c on Solaris 2.5: -case $host_os in - solaris*) - { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5 +# Other ports use it too (HP-UX) so test unconditionally +{ echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; } if test "${ac_cv_search_gethostbyname_r+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -7829,8 +7828,6 @@ if test "$ac_res" != no; then fi - ;; -esac # Cygwin: { echo "$as_me:$LINENO: checking for library containing shmget" >&5 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; } diff --git a/configure.in b/configure.in index 0ab29f250c..7c9aa02996 100644 --- a/configure.in +++ b/configure.in @@ -871,11 +871,8 @@ AC_SEARCH_LIBS(crypt, crypt) # Solaris: AC_SEARCH_LIBS(fdatasync, [rt posix4]) # Required for thread_test.c on Solaris 2.5: -case $host_os in - solaris*) - AC_SEARCH_LIBS(gethostbyname_r, nsl) - ;; -esac +# Other ports use it too (HP-UX) so test unconditionally +AC_SEARCH_LIBS(gethostbyname_r, nsl) # Cygwin: AC_SEARCH_LIBS(shmget, cygipc) |