Partially implemented Thomas Runge's BSD port.
This commit is contained in:
@@ -222,6 +222,31 @@ AC_DEFUN(AC_CURSES_ACS_ARRAY, [
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Find out where is the mounted filesystem table
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN([AC_FIND_MFS], [
|
||||||
|
dnl Linux
|
||||||
|
AC_CHECK_FILE([/etc/mtab], [
|
||||||
|
mtab=/etc/mtab
|
||||||
|
],[
|
||||||
|
dnl Solaris
|
||||||
|
AC_CHECK_FILE([/etc/mnttab], [
|
||||||
|
mtab=/etc/mnttab
|
||||||
|
], [
|
||||||
|
dnl BSD
|
||||||
|
AC_CHECK_FILE([/etc/fstab], [
|
||||||
|
mtab=/etc/fstab
|
||||||
|
])
|
||||||
|
])
|
||||||
|
])
|
||||||
|
if test "$mtab"; then
|
||||||
|
AC_DEFINE_UNQUOTED(MTAB_FILE, ["$mtab"], [Where is your mounted filesystem table located?])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Filesystem information detection
|
dnl Filesystem information detection
|
||||||
dnl
|
dnl
|
||||||
|
|||||||
@@ -51,10 +51,10 @@ get_fs (mounts fs[])
|
|||||||
char line[256];
|
char line[256];
|
||||||
int x = 0, y;
|
int x = 0, y;
|
||||||
|
|
||||||
#ifdef SOLARIS
|
#ifdef MTAB_FILE
|
||||||
mtab_fd = fopen ("/etc/mnttab", "r");
|
mtab_fd = fopen(MTAB_FILE, "r");
|
||||||
#else
|
#else
|
||||||
mtab_fd = fopen ("/etc/mtab", "r");
|
#error "Can't find your mounted filesystem table file."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Get rid of old, unmounted filesystems...
|
// Get rid of old, unmounted filesystems...
|
||||||
|
|||||||
@@ -87,6 +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_GET_FS_INFO
|
AC_GET_FS_INFO
|
||||||
|
|
||||||
AC_ARG_ENABLE(stat-nfs,
|
AC_ARG_ENABLE(stat-nfs,
|
||||||
|
|||||||
Reference in New Issue
Block a user