-#include <sys/mount.h>
-#include <sys/fs_types.h>],
- [struct statfs *stats;
- int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
- fu_cv_sys_mounted_getsstat=yes,
- fu_cv_sys_mounted_getsstat=no)])
- AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
- if test $fu_cv_sys_mounted_getsstat = yes; then
- list_mounted_fs=found
- AC_DEFINE(MOUNTED_GETFSSTAT, 1,
- [Define if there is a function named getfsstat for reading the
- list of mounted filesystems. (DEC Alpha running OSF/1)])
- fi
-fi
-
-if test -z "$list_mounted_fs"; then
- # AIX.
- AC_MSG_CHECKING([for mntctl function and struct vmount])
- AC_CACHE_VAL(fu_cv_sys_mounted_vmount,
- [AC_TRY_CPP([#include <fshelp.h>],
- fu_cv_sys_mounted_vmount=yes,
- fu_cv_sys_mounted_vmount=no)])
- AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
- if test $fu_cv_sys_mounted_vmount = yes; then
- list_mounted_fs=found
- AC_DEFINE(MOUNTED_VMOUNT, 1,
- [Define if there is a function named mntctl that can be used to read
- the list of mounted filesystems, and there is a system header file
- that declares \`struct vmount.' (AIX)])
+#if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
+# define FS_TYPE(Ent) ((Ent).f_fstypename)
+#else
+# define FS_TYPE(Ent) mnt_names[(Ent).f_type]
+#endif
+$getfsstat_includes]]
+,
+ [[struct statfs *stats;
+ int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
+ char *t = FS_TYPE (*stats); ]])],
+ [fu_cv_sys_mounted_getfsstat=yes],
+ [fu_cv_sys_mounted_getfsstat=no])])
+ AC_MSG_RESULT([$fu_cv_sys_mounted_getfsstat])
+ if test $fu_cv_sys_mounted_getfsstat = yes; then
+ ac_list_mounted_fs=found
+ AC_DEFINE([MOUNTED_GETFSSTAT], [1],
+ [Define if there is a function named getfsstat for reading the
+ list of mounted file systems. (DEC Alpha running OSF/1)])