Update buildsys to detect posix_fadvise()
This commit is contained in:
parent
773e3b5487
commit
816e5c7e8f
|
@ -12,6 +12,9 @@
|
|||
/* Define to 1 if you have the <bits/signum.h> header file. */
|
||||
#undef HAVE_BITS_SIGNUM_H
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Uses the GNU gcc compiler */
|
||||
#undef HAVE_GCC
|
||||
|
||||
|
@ -48,6 +51,9 @@
|
|||
/* Define to 1 if you have the <openssl/sha.h> header file. */
|
||||
#undef HAVE_OPENSSL_SHA_H
|
||||
|
||||
/* Define to 1 if you have the `posix_fadvise' function. */
|
||||
#undef HAVE_POSIX_FADVISE
|
||||
|
||||
/* Define to 1 if you have the <signum.h> header file. */
|
||||
#undef HAVE_SIGNUM_H
|
||||
|
||||
|
|
|
@ -5864,6 +5864,29 @@ fi
|
|||
done
|
||||
|
||||
|
||||
for ac_header in fcntl.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_fcntl_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_FCNTL_H 1
|
||||
_ACEOF
|
||||
for ac_func in posix_fadvise
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
|
||||
if test "x$ac_cv_func_posix_fadvise" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_POSIX_FADVISE 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
|
||||
$as_echo_n "checking for socket in -lc... " >&6; }
|
||||
|
|
|
@ -106,6 +106,9 @@ dnl #############################
|
|||
AC_CHECK_FUNCS(strftime gethostname gethostid)
|
||||
AC_CHECK_FUNCS(mkstemp mktemp, break)
|
||||
|
||||
dnl check for posix_fadvise
|
||||
AC_CHECK_HEADERS(fcntl.h, [AC_CHECK_FUNCS(posix_fadvise)])
|
||||
|
||||
dnl ##############################################
|
||||
dnl Checks for various platform specific libraries
|
||||
dnl ##############################################
|
||||
|
|
Loading…
Reference in New Issue