Dmitry V. Levin
916adeda63
* Makefile.am (ACLOCAL_AMFLAGS): Add "-I m4". * acinclude.m4: Remove. * m4/includedir.m4: New file, with definition of AC_INCLUDEDIR from acinclude.m4. * m4/long_long.m4: New file, with definitions of AC_OFF_T_IS_LONG_LONG, AC_RLIM_T_IS_LONG_LONG and AC_LITTLE_ENDIAN_LONG_LONG from acinclude.m4. * m4/procfs.m4: New file, with definitions of AC_MP_PROCFS, AC_POLLABLE_PROCFS and AC_STRUCT_PR_SYSCALL from acinclude.m4. * m4/stat.m4: New file, with definition of AC_STAT64 from acinclude.m4. * m4/statfs.m4: New file, with definition of AC_STATFS64 from acinclude.m4. * m4/warnings.m4: New file, with definition of AC_WARNFLAGS from acinclude.m4.
16 lines
511 B
Plaintext
16 lines
511 B
Plaintext
dnl ### A macro to determine whether statfs64 is defined.
|
|
AC_DEFUN([AC_STATFS64],
|
|
[AC_MSG_CHECKING(for statfs64 in sys/vfs.h)
|
|
AC_CACHE_VAL(ac_cv_type_statfs64,
|
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX
|
|
#include <linux/types.h>
|
|
#include <sys/vfs.h>
|
|
#endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])])
|
|
AC_MSG_RESULT($ac_cv_type_statfs64)
|
|
if test "$ac_cv_type_statfs64" = yes
|
|
then
|
|
AC_DEFINE([HAVE_STATFS64], 1,
|
|
[Define if statfs64 is available in sys/vfs.h.])
|
|
fi
|
|
])
|