1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Check nsl library for gethostbyname_r() on all platforms (HP-UX uses it

too).
This commit is contained in:
Bruce Momjian
2009-01-14 18:10:21 +00:00
parent 62f09e92be
commit eac951d510
2 changed files with 5 additions and 11 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.586 2009/01/14 16:39:58 momjian Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.587 2009/01/14 18:10:21 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@ -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)