| # | |
| # Check if we have a fallocate libc call (Linux) | |
| # | |
| AC_DEFUN([AC_HAVE_FALLOCATE], | |
| [ AC_MSG_CHECKING([for fallocate]) | |
| AC_TRY_LINK([ | |
| #include <fcntl.h> | |
| #include <linux/falloc.h> | |
| ], [ | |
| fallocate(0, 0, 0, 0); | |
| ], have_fallocate=yes | |
| AC_MSG_RESULT(yes), | |
| AC_MSG_RESULT(no)) | |
| AC_SUBST(have_fallocate) | |
| ]) |