diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-03-18 07:47:37 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-03-18 07:47:37 (GMT) |
commit | cc7522b25bfc0157eb51777f8345812e79760179 (patch) | |
tree | 94e4eb2d572c352315c39d48e25925f9605fa19a /lib/fstypename.m4 | |
parent | b4bb59cd9bd16e3f3c1df907b8802e7e476d2ec8 (diff) | |
download | monitoring-plugins-cc7522b25bfc0157eb51777f8345812e79760179.tar.gz |
from GNU fileutils for check_disk
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@429 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/fstypename.m4')
-rw-r--r-- | lib/fstypename.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/fstypename.m4 b/lib/fstypename.m4 new file mode 100644 index 0000000..70abc12 --- /dev/null +++ b/lib/fstypename.m4 | |||
@@ -0,0 +1,32 @@ | |||
1 | #serial 2 | ||
2 | |||
3 | dnl From Jim Meyering. | ||
4 | dnl | ||
5 | dnl See if struct statfs has the f_fstypename member. | ||
6 | dnl If so, define HAVE_F_FSTYPENAME_IN_STATFS. | ||
7 | dnl | ||
8 | |||
9 | AC_DEFUN(jm_FSTYPENAME, | ||
10 | [ | ||
11 | AC_CACHE_CHECK([for f_fstypename in struct statfs], | ||
12 | fu_cv_sys_f_fstypename_in_statfs, | ||
13 | [ | ||
14 | AC_TRY_COMPILE( | ||
15 | [ | ||
16 | #include <sys/param.h> | ||
17 | #include <sys/types.h> | ||
18 | #include <sys/mount.h> | ||
19 | ], | ||
20 | [struct statfs s; int i = sizeof s.f_fstypename;], | ||
21 | fu_cv_sys_f_fstypename_in_statfs=yes, | ||
22 | fu_cv_sys_f_fstypename_in_statfs=no | ||
23 | ) | ||
24 | ] | ||
25 | ) | ||
26 | |||
27 | if test $fu_cv_sys_f_fstypename_in_statfs = yes; then | ||
28 | AC_DEFINE_UNQUOTED(HAVE_F_FSTYPENAME_IN_STATFS, 1, | ||
29 | [Define if struct statfs has the f_fstypename member.]) | ||
30 | fi | ||
31 | ] | ||
32 | ) | ||