diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-01 08:29:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-01 08:29:28 +0000 |
commit | e6bf5ecaf8a2c89340019517450e57768cce288e (patch) | |
tree | 6fed16c5e51a2b31a410b8f4d65b16bb91691905 /m4/ls-mntd-fs.m4 | |
parent | e511c84abeac9e84632f6f72ced61df7b9b48352 (diff) | |
download | coreutils-e6bf5ecaf8a2c89340019517450e57768cce288e.tar.xz |
(jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
Based on a patch from Bruno Haible.
Diffstat (limited to 'm4/ls-mntd-fs.m4')
-rw-r--r-- | m4/ls-mntd-fs.m4 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4 index a1d271df2..4a28de3b0 100644 --- a/m4/ls-mntd-fs.m4 +++ b/m4/ls-mntd-fs.m4 @@ -180,8 +180,6 @@ if test -z "$ac_list_mounted_fs"; then fi fi -# FIXME: add a test for netbsd-1.1 here - if test -z "$ac_list_mounted_fs"; then # Ultrix AC_MSG_CHECKING([for getmnt function]) @@ -202,13 +200,18 @@ fi if test -z "$ac_list_mounted_fs"; then # BeOS - AC_MSG_CHECKING([for next_dev function]) - AC_CACHE_VAL(fu_cv_sys_mounted_next_dev, - [AC_TRY_CPP([#include <fs_info.h>], - fu_cv_sys_mounted_next_dev=yes, - fu_cv_sys_mounted_next_dev=no)]) - AC_MSG_RESULT($fu_cv_sys_mounted_next_dev) - if test $fu_cv_sys_mounted_next_dev = yes; then + AC_CHECK_FUNCS(next_dev fs_stat_dev) + AC_CHECK_HEADERS(fs_info.h) + AC_MSG_CHECKING([for BEOS mounted file system support functions]) + if test $ac_cv_header_fs_info_h = yes + && test $ac_cv_func_next_dev = yes + && test $ac_cv_func_fs_stat_dev = yes; then + fu_result=yes + else + fu_result=no + fi + AC_MSG_RESULT($fu_result) + if test $fu_result = yes; then ac_list_mounted_fs=found AC_DEFINE(MOUNTED_NEXT_DEV, 1, [Define if there are functions named next_dev and fs_stat_dev for |