Eric Sandeen wrote:
* Come up with some template autoconf magic to make it easy for
apps to detect fallocate() at build time, and some example
code on how to use it
Shouldn't:
AC_CHECK_DECLS([fallocate], [], [], [[#include <fcntl.h>]])
(which defines HAVE_DECL_FALLOCATE) be sufficient?
In CMake:
check_symbol_exists(fallocate "fcntl.h" HAVE_DECL_FALLOCATE)
should achieve the same.
Kevin Kofler