summaryrefslogtreecommitdiff
path: root/m4/ls-mntd-fs.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-12 20:50:53 +0000
committerJim Meyering <jim@meyering.net>2002-04-12 20:50:53 +0000
commitd635ea46cb93cd4309cc3c8859b84e19994846e2 (patch)
tree88d13362a680f98f999ac4f508bc98b76220355d /m4/ls-mntd-fs.m4
parent51816f9adbcfd9ca1df113e6a2c697e05257e31a (diff)
downloadcoreutils-d635ea46cb93cd4309cc3c8859b84e19994846e2.tar.xz
(checking for getmntinfo function...): Remove now-bogus
check for f_type in sys/mount.h. Instead, just test for the existence of the getmntinfo function. Needed for Darwin 5.3.
Diffstat (limited to 'm4/ls-mntd-fs.m4')
-rw-r--r--m4/ls-mntd-fs.m49
1 files changed, 2 insertions, 7 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4
index 7229f78f5..54ae7d983 100644
--- a/m4/ls-mntd-fs.m4
+++ b/m4/ls-mntd-fs.m4
@@ -195,12 +195,7 @@ if test -z "$ac_list_mounted_fs"; then
AC_MSG_CHECKING([for getmntinfo function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
[
- ok=
- if test $ac_cv_func_getmntinfo = yes; then
- AC_EGREP_HEADER(f_type;, sys/mount.h,
- ok=yes)
- fi
- test -n "$ok" \
+ test "$ac_cv_func_getmntinfo" = yes \
&& fu_cv_sys_mounted_getmntinfo=yes \
|| fu_cv_sys_mounted_getmntinfo=no
])
@@ -209,7 +204,7 @@ if test -z "$ac_list_mounted_fs"; then
ac_list_mounted_fs=found
AC_DEFINE(MOUNTED_GETMNTINFO, 1,
[Define if there is a function named getmntinfo for reading the
- list of mounted filesystems. (4.4BSD)])
+ list of mounted filesystems. (4.4BSD, Darwin)])
fi
fi