diff --git a/configure.ac b/configure.ac index 46be93cb..cca2f51e 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,8 @@ AC_CHECK_FUNCS([getrlimit]) dnl Checked only for reporting in version display as of now (may be used in future versions): AC_CHECK_FUNCS([pipe pipe2 socketpair posix_spawn posix_spawnp]) +AC_CHECK_FUNCS([posix_fadvise posix_fallocate posix_madvise]) +AC_CHECK_FUNCS([fallocate ftruncate]) dnl check for crypt(): AC_SEARCH_LIBS([crypt_r], [crypt], [ diff --git a/src/version.c b/src/version.c index 04beb2c8..1e5faf83 100644 --- a/src/version.c +++ b/src/version.c @@ -88,6 +88,21 @@ const char * const * version_get_compiletime_flags(void) #endif #ifdef HAVE_POSIX_SPAWNP "posix_spawnp", +#endif +#ifdef HAVE_POSIX_FADVISE + "posix_fadvise", +#endif +#ifdef HAVE_POSIX_FALLOCATE + "posix_fallocate", +#endif +#ifdef HAVE_POSIX_MADVISE + "posix_madvise", +#endif +#ifdef HAVE_FALLOCATE + "fallocate", +#endif +#ifdef HAVE_FTRUNCATE + "ftruncate", #endif /* ---[ OS ]--- */ #ifdef WIN32