diff options
author | Robert Nagy <robert.nagy@gmail.com> | 2011-12-21 16:16:22 +0100 |
---|---|---|
committer | François Tigeot <ftigeot@wolfpond.org> | 2012-01-11 13:55:04 +0100 |
commit | 2938ec5539b54e98e801ae14ccb2c163cd94a92a (patch) | |
tree | 6350d59d3769e4ddeaa0fe423fbabd34e1f82f1a /configure.in | |
parent | 0b63bb1d5f37ad673b0aadefe4bfe1e61ae667b9 (diff) |
only use posix_fallocate() if it's actually available
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 290b294cf733..40b20eb21bd6 100644 --- a/configure.in +++ b/configure.in @@ -3843,6 +3843,8 @@ fi if test "$with_alloc" = "internal" -o -z "$with_alloc"; then AC_MSG_RESULT([internal]) fi +AC_CHECK_FUNCS(posix_fallocate, HAVE_POSIX_FALLOCATE=YES, [HAVE_POSIX_FALLOCATE=NO]) +AC_SUBST(HAVE_POSIX_FALLOCATE) AC_SUBST(ALLOC) dnl =================================================================== |