3 dnl These are the prerequisite macros for files in the lib/
4 dnl directories of the fileutils, sh-utils, and textutils packages.
31 AC_DEFUN([jm_PREREQ_STAT],
33 AC_CHECK_HEADERS(sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h)
34 AC_CHECK_HEADERS(sys/param.h sys/mount.h)
35 AC_CHECK_FUNCS(statvfs)
40 #if HAVE_SYS_STATVFS_H
41 # include <sys/statvfs.h>
46 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
47 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
48 # include <sys/param.h>
49 # include <sys/mount.h>
52 AC_CHECK_MEMBERS([struct statfs.f_basetype],,,[$statxfs_includes])
53 AC_CHECK_MEMBERS([struct statvfs.f_basetype],,,[$statxfs_includes])
54 AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$statxfs_includes])
55 AC_CHECK_MEMBERS([struct statfs.f_type],,,[$statxfs_includes])
56 AC_CHECK_MEMBERS([struct statvfs.f_type],,,[$statxfs_includes])
57 AC_CHECK_MEMBERS([struct statfs.f_fsid.__val],,,[$statxfs_includes])
58 AC_CHECK_MEMBERS([struct statvfs.f_fsid.__val],,,[$statxfs_includes])
59 AC_CHECK_MEMBERS([struct statfs.f_namemax],,,[$statxfs_includes])
60 AC_CHECK_MEMBERS([struct statvfs.f_namemax],,,[$statxfs_includes])
61 AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes])
62 AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes])