From c9cfd335acec51c09871bd10c42fed80eb8990bd Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 16 Jun 2003 14:17:21 +0000 Subject: [PATCH] Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API, because some 4.4BSD systems have but no /etc/mtab file. --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index fa73657..78d7fe5 100644 --- a/configure.in +++ b/configure.in @@ -59,10 +59,10 @@ AC_TRY_CPP([#include #include ], AC_DEFINE(FSTYPE_AIX_STATFS, 1, [Define to use AIX3 statfs to get filesystem type.]) fstype=AIX) fi if test $fstype = no; then -AC_TRY_CPP([#include ], AC_DEFINE(FSTYPE_MNTENT, 1, [Define to use 4.3BSD getmntent to get filesystem type.]) fstype=4.3BSD) +AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS, 1, [Define to use 4.4BSD and OSF1 statfs to get filesystem type.]) fstype=4.4BSD/OSF1) fi if test $fstype = no; then -AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS, 1, [Define to use 4.4BSD and OSF1 statfs to get filesystem type.]) fstype=4.4BSD/OSF1) +AC_TRY_CPP([#include ], AC_DEFINE(FSTYPE_MNTENT, 1, [Define to use 4.3BSD getmntent to get filesystem type.]) fstype=4.3BSD) fi if test $fstype = no; then AC_TRY_CPP([#include -- 2.11.4.GIT