summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f38704)
raw | patch | inline | side by side (parent: 5f38704)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 18 Feb 2004 14:56:39 +0000 (14:56 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Wed, 18 Feb 2004 14:56:39 +0000 (14:56 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@805 f882894a-f735-0410-b71e-b25c423dba1c
acinclude.m4 | patch | blob | history | |
lib/afs.m4 | patch | blob | history | |
lib/fstypename.m4 | patch | blob | history | |
lib/fsusage.m4 | patch | blob | history |
diff --git a/acinclude.m4 b/acinclude.m4
index 70d82e4b0ba467e5e4e22dde769f69c4e01b79ca..7de6555013d5b22350115e5f51dc96210b1370f3 100644 (file)
--- a/acinclude.m4
+++ b/acinclude.m4
dnl based on version by Caolan McNamara <caolan@skynet.ie>
dnl based on David Arnold's autoconf suggestion in the threads faq
dnl
-AC_DEFUN(ACX_WHICH_GETHOSTBYNAME_R,
+AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
[AC_CACHE_CHECK(number of arguments to gethostbyname_r,
acx_which_gethostbyname_r, [
AC_TRY_COMPILE([
diff --git a/lib/afs.m4 b/lib/afs.m4
index 905ef42ad7d3369dd1e37a6d3ba9e0b78458d829..9e7d7731619ee91527c180f919b4472730f03463 100644 (file)
--- a/lib/afs.m4
+++ b/lib/afs.m4
-#serial 3
+#serial 5
-AC_DEFUN(jm_AFS,
- AC_MSG_CHECKING(for AFS)
- if test -d /afs; then
- AC_DEFINE_UNQUOTED(AFS, 1, [Define if you have the Andrew File System.])
- ac_result=yes
- else
- ac_result=no
- fi
- AC_MSG_RESULT($ac_result)
-)
+AC_DEFUN([jm_AFS],
+ [
+ AC_MSG_CHECKING(for AFS)
+ if test -d /afs; then
+ AC_DEFINE(AFS, 1, [Define if you have the Andrew File System.])
+ ac_result=yes
+ else
+ ac_result=no
+ fi
+ AC_MSG_RESULT($ac_result)
+ ])
diff --git a/lib/fstypename.m4 b/lib/fstypename.m4
index 70abc12b38a8a11ec6e49c7f8c7699b66e54f24f..75723a14fbac23006884ca5ba558a475837d19d8 100644 (file)
--- a/lib/fstypename.m4
+++ b/lib/fstypename.m4
-#serial 2
+#serial 3
dnl From Jim Meyering.
dnl
dnl If so, define HAVE_F_FSTYPENAME_IN_STATFS.
dnl
-AC_DEFUN(jm_FSTYPENAME,
+AC_DEFUN([jm_FSTYPENAME],
[
AC_CACHE_CHECK([for f_fstypename in struct statfs],
fu_cv_sys_f_fstypename_in_statfs,
)
if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
- AC_DEFINE_UNQUOTED(HAVE_F_FSTYPENAME_IN_STATFS, 1,
- [Define if struct statfs has the f_fstypename member.])
+ AC_DEFINE(HAVE_F_FSTYPENAME_IN_STATFS, 1,
+ [Define if struct statfs has the f_fstypename member.])
fi
]
)
diff --git a/lib/fsusage.m4 b/lib/fsusage.m4
index d5c646f430d61786a113c44e2c1cdf06acc0d7c4..85d0fc8f79047c569a5e01763c19d0caae7b4e86 100644 (file)
--- a/lib/fsusage.m4
+++ b/lib/fsusage.m4
-#serial 7
+#serial 9
# From fileutils/configure.in
#
# jm_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-AC_DEFUN(jm_FILE_SYSTEM_USAGE,
+AC_DEFUN([jm_FILE_SYSTEM_USAGE],
[
echo "checking how to get filesystem space usage..."
# SVR4
AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
[AC_TRY_LINK([#include <sys/types.h>
+#ifdef __GLIBC__
+Do not use statvfs on systems with GNU libc, because that function stats
+all preceding entries in /proc/mounts, and that makes df hang if even
+one of the corresponding file systems is hard-mounted, but not available.
+#endif
#include <sys/statvfs.h>],
[struct statvfs fsd; statvfs (0, &fsd);],
fu_cv_sys_stat_statvfs=yes,
fu_cv_sys_stat_statvfs=no)])
if test $fu_cv_sys_stat_statvfs = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATVFS, 1,
+ AC_DEFINE(STAT_STATVFS, 1,
[ Define if there is a function named statvfs. (SVR4)])
fi
fi
AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATFS3_OSF1, 1,
+ AC_DEFINE(STAT_STATFS3_OSF1, 1,
[ Define if statfs takes 3 args. (DEC Alpha running OSF/1)])
fi
fi
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATFS2_BSIZE, 1,
+ AC_DEFINE(STAT_STATFS2_BSIZE, 1,
[ Define if statfs takes 2 args and struct statfs has a field named f_bsize.
(4.3BSD, SunOS 4, HP-UX, AIX PS/2)])
fi
AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
if test $fu_cv_sys_stat_statfs4 = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATFS4, 1,
+ AC_DEFINE(STAT_STATFS4, 1,
[ Define if statfs takes 4 args. (SVR3, Dynix, Irix, Dolphin)])
fi
fi
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATFS2_FSIZE, 1,
+ AC_DEFINE(STAT_STATFS2_FSIZE, 1,
[ Define if statfs takes 2 args and struct statfs has a field named f_fsize.
(4.4BSD, NetBSD)])
fi
AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
if test $fu_cv_sys_stat_fs_data = yes; then
ac_fsusage_space=yes
- AC_DEFINE_UNQUOTED(STAT_STATFS2_FS_DATA, 1,
+ AC_DEFINE(STAT_STATFS2_FS_DATA, 1,
[ Define if statfs takes 2 args and the second argument has
type struct fs_data. (Ultrix)])
fi
# SVR2
AC_TRY_CPP([#include <sys/filsys.h>
],
- AC_DEFINE_UNQUOTED(STAT_READ_FILSYS, 1,
+ AC_DEFINE(STAT_READ_FILSYS, 1,
[Define if there is no specific function for reading filesystems usage
information and you have the <sys/filsys.h> header file. (SVR2)])
ac_fsusage_space=yes)