Look for fdatasync() in librt, for Solaris.

partially from Kenji Sugita
This commit is contained in:
Peter Eisentraut 2001-09-11 14:31:23 +00:00
parent 0521051b0b
commit a8d474195e
2 changed files with 353 additions and 282 deletions

622
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -738,17 +738,20 @@ AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main) AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main) AC_CHECK_LIB(PW, main)
AC_CHECK_LIB(resolv, main) AC_CHECK_LIB(resolv, main)
# QNX:
AC_CHECK_LIB([[unix]], main) AC_CHECK_LIB([[unix]], main)
AC_SEARCH_LIBS(crypt, crypt) AC_SEARCH_LIBS(crypt, crypt)
# BeOS:
AC_CHECK_LIB(bind, __inet_ntoa) AC_CHECK_LIB(bind, __inet_ntoa)
dnl Only consider libz to be present if we find <zlib.h> as well; # Only consider libz to be present if we find <zlib.h> as well;
dnl furthermore, check that <zlib.h> defines z_streamp (versions before # furthermore, check that <zlib.h> defines z_streamp (versions before
dnl about 1.0.4 did not). While we could work around the lack of z_streamp, # about 1.0.4 did not). While we could work around the lack of z_streamp,
dnl it seems unwise to encourage people to use such old zlib versions... # it seems unwise to encourage people to use such old zlib versions...
AC_EGREP_HEADER(z_streamp, zlib.h, [ AC_EGREP_HEADER(z_streamp, zlib.h, [
AC_CHECK_LIB(z, inflate) AC_CHECK_LIB(z, inflate)
]) ])
# Solaris:
AC_SEARCH_LIBS(fdatasync, rt)
if test "$with_krb4" = yes ; then if test "$with_krb4" = yes ; then
AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])]) AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])])