• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl ### A macro to determine whether statfs64 is defined.
2AC_DEFUN([AC_STATFS64],
3[AC_MSG_CHECKING(for statfs64 in sys/vfs.h)
4AC_CACHE_VAL(ac_cv_type_statfs64,
5[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
6#include <linux/types.h>
7#include <sys/vfs.h>
8]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])])
9AC_MSG_RESULT($ac_cv_type_statfs64)
10if test "$ac_cv_type_statfs64" = yes
11then
12	AC_DEFINE([HAVE_STATFS64], 1,
13[Define if statfs64 is available in sys/vfs.h.])
14fi
15])
16