8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Change method to detect presence of posix_fadvise()

This commit is contained in:
alexpeshkoff 2009-04-24 08:57:34 +00:00
parent 5f90d7da66
commit 232a96913c

View File

@ -668,7 +668,15 @@ fi
CFLAGS="$savedFlags" CFLAGS="$savedFlags"
fi fi
AC_CHECK_FUNCS(semtimedop) AC_CHECK_FUNCS(semtimedop)
AC_CHECK_FUNCS(posix_fadvise)
# HPUX has a bug in .h files. To detect it we need C++ here.
AC_LANG_PUSH(C++)
#AC_CHECK_FUNCS(posix_fadvise)
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <fcntl.h>]], [[posix_fadvise(0, 0, 0, 0);]])],
AC_DEFINE(HAVE_POSIX_FADVISE, 1, [Define this if posix_fadvise() is present on the platform]))
AC_LANG_POP(C++)
AC_CHECK_FUNCS(pthread_mutexattr_setrobust_np) AC_CHECK_FUNCS(pthread_mutexattr_setrobust_np)
AC_CHECK_FUNCS(pthread_mutex_consistent_np) AC_CHECK_FUNCS(pthread_mutex_consistent_np)