aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-04-05 15:27:26 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-04-05 15:27:26 +0300
commit1039bfcfc098b69d56ecb39d198a092552eacf6d (patch)
treefe82bb00cf81625f215497d5f2732fa10377f764 /configure.ac
parentxz: Call lzma_end(&strm) before exiting if debugging is enabled. (diff)
downloadxz-1039bfcfc098b69d56ecb39d198a092552eacf6d.tar.xz
xz: Use posix_fadvise() if it is available.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 35720fef..720315f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -517,6 +517,9 @@ gl_GETOPT
# Find the best function to set timestamps.
AC_CHECK_FUNCS([futimens futimes futimesat utimes utime], [break])
+# This is nice to have but not mandatory.
+AC_CHECK_FUNCS([posix_fadvise])
+
TUKLIB_PROGNAME
TUKLIB_INTEGER
TUKLIB_PHYSMEM