Removed the warnings when running autoconf.

This commit is contained in:
gfk
2001-12-25 18:33:04 +00:00
parent ff368e7089
commit af88fbfdfa
2 changed files with 19 additions and 17 deletions
+15 -13
View File
@@ -226,23 +226,25 @@ dnl
dnl Find out where is the mounted filesystem table dnl Find out where is the mounted filesystem table
dnl dnl
AC_DEFUN([AC_FIND_MFS], [ AC_DEFUN([AC_FIND_MTAB_FILE], [
AC_CACHE_CHECK([for your mounted filesystem table], ac_cv_mtab_file, [
dnl Linux dnl Linux
AC_CHECK_FILE([/etc/mtab], [ if test -e "/etc/mtab"; then
mtab=/etc/mtab ac_cv_mtab_file=/etc/mtab
],[ else
dnl Solaris dnl Solaris
AC_CHECK_FILE([/etc/mnttab], [ if test -e "/etc/mnttab"; then
mtab=/etc/mnttab ac_cv_mtab_file=/etc/mnttab
], [ else
dnl BSD dnl BSD
AC_CHECK_FILE([/etc/fstab], [ if test -e "/etc/fstab"; then
mtab=/etc/fstab ac_cv_mtab_file=/etc/fstab
fi
fi
fi
]) ])
]) if test "$ac_cv_mtab_file"; then
]) AC_DEFINE_UNQUOTED([MTAB_FILE], ["$ac_cv_mtab_file"], [Location of your mounted filesystem table file])
if test "$mtab"; then
AC_DEFINE_UNQUOTED(MTAB_FILE, ["$mtab"], [Where is your mounted filesystem table located?])
fi fi
]) ])
+1 -1
View File
@@ -87,7 +87,7 @@ AC_CHECK_FUNCS(select socket strdup strerror strtol uname cfmakeraw ioperm)
dnl Check for various defines and features dnl Check for various defines and features
AC_FIND_MFS AC_FIND_MTAB_FILE
AC_GET_FS_INFO AC_GET_FS_INFO
AC_ARG_ENABLE(stat-nfs, AC_ARG_ENABLE(stat-nfs,