--- m4/package_libcdev.m4.orig Mon Aug 1 10:20:51 2005 +++ m4/package_libcdev.m4 Wed Aug 10 21:39:09 2005 @@ -65,3 +65,23 @@ AC_MSG_RESULT(no)) AC_SUBST(have_sendfile) ]) + +# +# Check if we have a working getmntinfo system call +# +AC_DEFUN([AC_HAVE_GETMNTINFO], + [ AC_MSG_CHECKING([for getmntinfo ]) + AC_TRY_COMPILE([ +#define _GNU_SOURCE +#define _FILE_OFFSET_BITS 64 +#include +#include +#include + ], [ + getmntinfo(0, 0); + ], have_getmntinfo=yes + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no)) + AC_SUBST(have_getmntinfo) + ]) +