diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 04:22:57 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 05:19:08 -0500 |
commit | 71cdb52799220f8d9052643baf1d3e9836a9c755 (patch) | |
tree | 27aee97a35d9ab51f0d8f64a46690bd41a5f8c1b /gl/m4/ls-mntd-fs.m4 | |
parent | f7afa46586645e50498d8b2d0c67884f014dc3a4 (diff) | |
download | monitoring-plugins-71cdb52799220f8d9052643baf1d3e9836a9c755.tar.gz |
Sync with gnulib
Diffstat (limited to 'gl/m4/ls-mntd-fs.m4')
-rw-r--r-- | gl/m4/ls-mntd-fs.m4 | 91 |
1 files changed, 45 insertions, 46 deletions
diff --git a/gl/m4/ls-mntd-fs.m4 b/gl/m4/ls-mntd-fs.m4 index 21ac4e74..32ccb984 100644 --- a/gl/m4/ls-mntd-fs.m4 +++ b/gl/m4/ls-mntd-fs.m4 | |||
@@ -1,8 +1,7 @@ | |||
1 | #serial 26 | 1 | # serial 27 |
2 | # How to list mounted file systems. | 2 | # How to list mounted file systems. |
3 | 3 | ||
4 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software | 4 | # Copyright (C) 1998-2004, 2006, 2009 Free Software Foundation, Inc. |
5 | # Foundation, Inc. | ||
6 | # | 5 | # |
7 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
@@ -20,27 +19,27 @@ dnl | |||
20 | AC_DEFUN([AC_FUNC_GETMNTENT], | 19 | AC_DEFUN([AC_FUNC_GETMNTENT], |
21 | [# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, | 20 | [# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
22 | # -lseq on Dynix/PTX, -lgen on Unixware. | 21 | # -lseq on Dynix/PTX, -lgen on Unixware. |
23 | AC_SEARCH_LIBS(getmntent, [sun seq gen]) | 22 | AC_SEARCH_LIBS([getmntent], [sun seq gen]) |
24 | AC_CHECK_FUNCS(getmntent) | 23 | AC_CHECK_FUNCS([getmntent]) |
25 | ]) | 24 | ]) |
26 | 25 | ||
27 | # gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 26 | # gl_LIST_MOUNTED_FILE_SYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
28 | AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS], | 27 | AC_DEFUN([gl_LIST_MOUNTED_FILE_SYSTEMS], |
29 | [ | 28 | [ |
30 | AC_CHECK_FUNCS(listmntent getmntinfo) | 29 | AC_CHECK_FUNCS([listmntent getmntinfo]) |
31 | AC_CHECK_HEADERS_ONCE(sys/param.h sys/statvfs.h) | 30 | AC_CHECK_HEADERS_ONCE([sys/param.h sys/statvfs.h]) |
32 | 31 | ||
33 | # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses | 32 | # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses |
34 | # NGROUPS (as the array dimension for a struct member) without a definition. | 33 | # NGROUPS (as the array dimension for a struct member) without a definition. |
35 | AC_CHECK_HEADERS(sys/ucred.h, [], [], [#include <grp.h>]) | 34 | AC_CHECK_HEADERS([sys/ucred.h], [], [], [#include <grp.h>]) |
36 | 35 | ||
37 | AC_CHECK_HEADERS(sys/mount.h, [], [], | 36 | AC_CHECK_HEADERS([sys/mount.h], [], [], |
38 | [AC_INCLUDES_DEFAULT | 37 | [AC_INCLUDES_DEFAULT |
39 | [#if HAVE_SYS_PARAM_H | 38 | [#if HAVE_SYS_PARAM_H |
40 | #include <sys/param.h> | 39 | #include <sys/param.h> |
41 | #endif]]) | 40 | #endif]]) |
42 | 41 | ||
43 | AC_CHECK_HEADERS(mntent.h sys/fs_types.h) | 42 | AC_CHECK_HEADERS([mntent.h sys/fs_types.h]) |
44 | getfsstat_includes="\ | 43 | getfsstat_includes="\ |
45 | $ac_includes_default | 44 | $ac_includes_default |
46 | #if HAVE_SYS_PARAM_H | 45 | #if HAVE_SYS_PARAM_H |
@@ -78,9 +77,9 @@ AC_FUNC_GETMNTENT | |||
78 | if test -z "$ac_list_mounted_fs"; then | 77 | if test -z "$ac_list_mounted_fs"; then |
79 | # Cray UNICOS 9 | 78 | # Cray UNICOS 9 |
80 | AC_MSG_CHECKING([for listmntent of Cray/Unicos-9]) | 79 | AC_MSG_CHECKING([for listmntent of Cray/Unicos-9]) |
81 | AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent, | 80 | AC_CACHE_VAL([fu_cv_sys_mounted_cray_listmntent], |
82 | [fu_cv_sys_mounted_cray_listmntent=no | 81 | [fu_cv_sys_mounted_cray_listmntent=no |
83 | AC_EGREP_CPP(yes, | 82 | AC_EGREP_CPP([yes], |
84 | [#ifdef _CRAY | 83 | [#ifdef _CRAY |
85 | yes | 84 | yes |
86 | #endif | 85 | #endif |
@@ -89,10 +88,10 @@ yes | |||
89 | ) | 88 | ) |
90 | ] | 89 | ] |
91 | ) | 90 | ) |
92 | AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent) | 91 | AC_MSG_RESULT([$fu_cv_sys_mounted_cray_listmntent]) |
93 | if test $fu_cv_sys_mounted_cray_listmntent = yes; then | 92 | if test $fu_cv_sys_mounted_cray_listmntent = yes; then |
94 | ac_list_mounted_fs=found | 93 | ac_list_mounted_fs=found |
95 | AC_DEFINE(MOUNTED_LISTMNTENT, 1, | 94 | AC_DEFINE([MOUNTED_LISTMNTENT], [1], |
96 | [Define if there is a function named listmntent that can be used to | 95 | [Define if there is a function named listmntent that can be used to |
97 | list all mounted file systems. (UNICOS)]) | 96 | list all mounted file systems. (UNICOS)]) |
98 | fi | 97 | fi |
@@ -101,14 +100,14 @@ fi | |||
101 | if test -z "$ac_list_mounted_fs"; then | 100 | if test -z "$ac_list_mounted_fs"; then |
102 | # AIX. | 101 | # AIX. |
103 | AC_MSG_CHECKING([for mntctl function and struct vmount]) | 102 | AC_MSG_CHECKING([for mntctl function and struct vmount]) |
104 | AC_CACHE_VAL(fu_cv_sys_mounted_vmount, | 103 | AC_CACHE_VAL([fu_cv_sys_mounted_vmount], |
105 | [AC_TRY_CPP([#include <fshelp.h>], | 104 | [AC_TRY_CPP([#include <fshelp.h>], |
106 | fu_cv_sys_mounted_vmount=yes, | 105 | fu_cv_sys_mounted_vmount=yes, |
107 | fu_cv_sys_mounted_vmount=no)]) | 106 | fu_cv_sys_mounted_vmount=no)]) |
108 | AC_MSG_RESULT($fu_cv_sys_mounted_vmount) | 107 | AC_MSG_RESULT([$fu_cv_sys_mounted_vmount]) |
109 | if test $fu_cv_sys_mounted_vmount = yes; then | 108 | if test $fu_cv_sys_mounted_vmount = yes; then |
110 | ac_list_mounted_fs=found | 109 | ac_list_mounted_fs=found |
111 | AC_DEFINE(MOUNTED_VMOUNT, 1, | 110 | AC_DEFINE([MOUNTED_VMOUNT], [1], |
112 | [Define if there is a function named mntctl that can be used to read | 111 | [Define if there is a function named mntctl that can be used to read |
113 | the list of mounted file systems, and there is a system header file | 112 | the list of mounted file systems, and there is a system header file |
114 | that declares `struct vmount.' (AIX)]) | 113 | that declares `struct vmount.' (AIX)]) |
@@ -123,7 +122,7 @@ if test $ac_cv_func_getmntent = yes; then | |||
123 | if test -z "$ac_list_mounted_fs"; then | 122 | if test -z "$ac_list_mounted_fs"; then |
124 | # 4.3BSD, SunOS, HP-UX, Dynix, Irix | 123 | # 4.3BSD, SunOS, HP-UX, Dynix, Irix |
125 | AC_MSG_CHECKING([for one-argument getmntent function]) | 124 | AC_MSG_CHECKING([for one-argument getmntent function]) |
126 | AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1, | 125 | AC_CACHE_VAL([fu_cv_sys_mounted_getmntent1], |
127 | [AC_TRY_COMPILE([ | 126 | [AC_TRY_COMPILE([ |
128 | /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ | 127 | /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ |
129 | #include <stdio.h> | 128 | #include <stdio.h> |
@@ -145,10 +144,10 @@ if test $ac_cv_func_getmntent = yes; then | |||
145 | if (sizeof mnt && sizeof table) return 0;], | 144 | if (sizeof mnt && sizeof table) return 0;], |
146 | fu_cv_sys_mounted_getmntent1=yes, | 145 | fu_cv_sys_mounted_getmntent1=yes, |
147 | fu_cv_sys_mounted_getmntent1=no)]) | 146 | fu_cv_sys_mounted_getmntent1=no)]) |
148 | AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1) | 147 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmntent1]) |
149 | if test $fu_cv_sys_mounted_getmntent1 = yes; then | 148 | if test $fu_cv_sys_mounted_getmntent1 = yes; then |
150 | ac_list_mounted_fs=found | 149 | ac_list_mounted_fs=found |
151 | AC_DEFINE(MOUNTED_GETMNTENT1, 1, | 150 | AC_DEFINE([MOUNTED_GETMNTENT1], [1], |
152 | [Define if there is a function named getmntent for reading the list | 151 | [Define if there is a function named getmntent for reading the list |
153 | of mounted file systems, and that function takes a single argument. | 152 | of mounted file systems, and that function takes a single argument. |
154 | (4.3BSD, SunOS, HP-UX, Dynix, Irix)]) | 153 | (4.3BSD, SunOS, HP-UX, Dynix, Irix)]) |
@@ -158,17 +157,17 @@ if test $ac_cv_func_getmntent = yes; then | |||
158 | if test -z "$ac_list_mounted_fs"; then | 157 | if test -z "$ac_list_mounted_fs"; then |
159 | # SVR4 | 158 | # SVR4 |
160 | AC_MSG_CHECKING([for two-argument getmntent function]) | 159 | AC_MSG_CHECKING([for two-argument getmntent function]) |
161 | AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2, | 160 | AC_CACHE_VAL([fu_cv_sys_mounted_getmntent2], |
162 | [AC_EGREP_HEADER(getmntent, sys/mnttab.h, | 161 | [AC_EGREP_HEADER([getmntent], [sys/mnttab.h], |
163 | fu_cv_sys_mounted_getmntent2=yes, | 162 | fu_cv_sys_mounted_getmntent2=yes, |
164 | fu_cv_sys_mounted_getmntent2=no)]) | 163 | fu_cv_sys_mounted_getmntent2=no)]) |
165 | AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2) | 164 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmntent2]) |
166 | if test $fu_cv_sys_mounted_getmntent2 = yes; then | 165 | if test $fu_cv_sys_mounted_getmntent2 = yes; then |
167 | ac_list_mounted_fs=found | 166 | ac_list_mounted_fs=found |
168 | AC_DEFINE(MOUNTED_GETMNTENT2, 1, | 167 | AC_DEFINE([MOUNTED_GETMNTENT2], [1], |
169 | [Define if there is a function named getmntent for reading the list of | 168 | [Define if there is a function named getmntent for reading the list of |
170 | mounted file systems, and that function takes two arguments. (SVR4)]) | 169 | mounted file systems, and that function takes two arguments. (SVR4)]) |
171 | AC_CHECK_FUNCS(hasmntopt) | 170 | AC_CHECK_FUNCS([hasmntopt]) |
172 | fi | 171 | fi |
173 | fi | 172 | fi |
174 | 173 | ||
@@ -179,7 +178,7 @@ if test -z "$ac_list_mounted_fs"; then | |||
179 | # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h | 178 | # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h |
180 | 179 | ||
181 | AC_MSG_CHECKING([for getfsstat function]) | 180 | AC_MSG_CHECKING([for getfsstat function]) |
182 | AC_CACHE_VAL(fu_cv_sys_mounted_getfsstat, | 181 | AC_CACHE_VAL([fu_cv_sys_mounted_getfsstat], |
183 | [AC_TRY_LINK([ | 182 | [AC_TRY_LINK([ |
184 | #include <sys/types.h> | 183 | #include <sys/types.h> |
185 | #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME | 184 | #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME |
@@ -194,10 +193,10 @@ if test -z "$ac_list_mounted_fs"; then | |||
194 | char *t = FS_TYPE (*stats); ], | 193 | char *t = FS_TYPE (*stats); ], |
195 | fu_cv_sys_mounted_getfsstat=yes, | 194 | fu_cv_sys_mounted_getfsstat=yes, |
196 | fu_cv_sys_mounted_getfsstat=no)]) | 195 | fu_cv_sys_mounted_getfsstat=no)]) |
197 | AC_MSG_RESULT($fu_cv_sys_mounted_getfsstat) | 196 | AC_MSG_RESULT([$fu_cv_sys_mounted_getfsstat]) |
198 | if test $fu_cv_sys_mounted_getfsstat = yes; then | 197 | if test $fu_cv_sys_mounted_getfsstat = yes; then |
199 | ac_list_mounted_fs=found | 198 | ac_list_mounted_fs=found |
200 | AC_DEFINE(MOUNTED_GETFSSTAT, 1, | 199 | AC_DEFINE([MOUNTED_GETFSSTAT], [1], |
201 | [Define if there is a function named getfsstat for reading the | 200 | [Define if there is a function named getfsstat for reading the |
202 | list of mounted file systems. (DEC Alpha running OSF/1)]) | 201 | list of mounted file systems. (DEC Alpha running OSF/1)]) |
203 | fi | 202 | fi |
@@ -206,17 +205,17 @@ fi | |||
206 | if test -z "$ac_list_mounted_fs"; then | 205 | if test -z "$ac_list_mounted_fs"; then |
207 | # SVR3 | 206 | # SVR3 |
208 | AC_MSG_CHECKING([for FIXME existence of three headers]) | 207 | AC_MSG_CHECKING([for FIXME existence of three headers]) |
209 | AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp, | 208 | AC_CACHE_VAL([fu_cv_sys_mounted_fread_fstyp], |
210 | [AC_TRY_CPP([ | 209 | [AC_TRY_CPP([ |
211 | #include <sys/statfs.h> | 210 | #include <sys/statfs.h> |
212 | #include <sys/fstyp.h> | 211 | #include <sys/fstyp.h> |
213 | #include <mnttab.h>], | 212 | #include <mnttab.h>], |
214 | fu_cv_sys_mounted_fread_fstyp=yes, | 213 | fu_cv_sys_mounted_fread_fstyp=yes, |
215 | fu_cv_sys_mounted_fread_fstyp=no)]) | 214 | fu_cv_sys_mounted_fread_fstyp=no)]) |
216 | AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp) | 215 | AC_MSG_RESULT([$fu_cv_sys_mounted_fread_fstyp]) |
217 | if test $fu_cv_sys_mounted_fread_fstyp = yes; then | 216 | if test $fu_cv_sys_mounted_fread_fstyp = yes; then |
218 | ac_list_mounted_fs=found | 217 | ac_list_mounted_fs=found |
219 | AC_DEFINE(MOUNTED_FREAD_FSTYP, 1, | 218 | AC_DEFINE([MOUNTED_FREAD_FSTYP], [1], |
220 | [Define if (like SVR2) there is no specific function for reading the | 219 | [Define if (like SVR2) there is no specific function for reading the |
221 | list of mounted file systems, and your system has these header files: | 220 | list of mounted file systems, and your system has these header files: |
222 | <sys/fstyp.h> and <sys/statfs.h>. (SVR3)]) | 221 | <sys/fstyp.h> and <sys/statfs.h>. (SVR3)]) |
@@ -226,16 +225,16 @@ fi | |||
226 | if test -z "$ac_list_mounted_fs"; then | 225 | if test -z "$ac_list_mounted_fs"; then |
227 | # 4.4BSD and DEC OSF/1. | 226 | # 4.4BSD and DEC OSF/1. |
228 | AC_MSG_CHECKING([for getmntinfo function]) | 227 | AC_MSG_CHECKING([for getmntinfo function]) |
229 | AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo, | 228 | AC_CACHE_VAL([fu_cv_sys_mounted_getmntinfo], |
230 | [ | 229 | [ |
231 | test "$ac_cv_func_getmntinfo" = yes \ | 230 | test "$ac_cv_func_getmntinfo" = yes \ |
232 | && fu_cv_sys_mounted_getmntinfo=yes \ | 231 | && fu_cv_sys_mounted_getmntinfo=yes \ |
233 | || fu_cv_sys_mounted_getmntinfo=no | 232 | || fu_cv_sys_mounted_getmntinfo=no |
234 | ]) | 233 | ]) |
235 | AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo) | 234 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo]) |
236 | if test $fu_cv_sys_mounted_getmntinfo = yes; then | 235 | if test $fu_cv_sys_mounted_getmntinfo = yes; then |
237 | AC_MSG_CHECKING([whether getmntinfo returns statvfs structures]) | 236 | AC_MSG_CHECKING([whether getmntinfo returns statvfs structures]) |
238 | AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo2, | 237 | AC_CACHE_VAL([fu_cv_sys_mounted_getmntinfo2], |
239 | [ | 238 | [ |
240 | AC_TRY_COMPILE([ | 239 | AC_TRY_COMPILE([ |
241 | #if HAVE_SYS_PARAM_H | 240 | #if HAVE_SYS_PARAM_H |
@@ -256,13 +255,13 @@ extern int getmntinfo (struct statfs **, int); | |||
256 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo2]) | 255 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo2]) |
257 | if test $fu_cv_sys_mounted_getmntinfo2 = no; then | 256 | if test $fu_cv_sys_mounted_getmntinfo2 = no; then |
258 | ac_list_mounted_fs=found | 257 | ac_list_mounted_fs=found |
259 | AC_DEFINE(MOUNTED_GETMNTINFO, 1, | 258 | AC_DEFINE([MOUNTED_GETMNTINFO], [1], |
260 | [Define if there is a function named getmntinfo for reading the | 259 | [Define if there is a function named getmntinfo for reading the |
261 | list of mounted file systems and it returns an array of | 260 | list of mounted file systems and it returns an array of |
262 | 'struct statfs'. (4.4BSD, Darwin)]) | 261 | 'struct statfs'. (4.4BSD, Darwin)]) |
263 | else | 262 | else |
264 | ac_list_mounted_fs=found | 263 | ac_list_mounted_fs=found |
265 | AC_DEFINE(MOUNTED_GETMNTINFO2, 1, | 264 | AC_DEFINE([MOUNTED_GETMNTINFO2], [1], |
266 | [Define if there is a function named getmntinfo for reading the | 265 | [Define if there is a function named getmntinfo for reading the |
267 | list of mounted file systems and it returns an array of | 266 | list of mounted file systems and it returns an array of |
268 | 'struct statvfs'. (NetBSD 3.0)]) | 267 | 'struct statvfs'. (NetBSD 3.0)]) |
@@ -273,16 +272,16 @@ fi | |||
273 | if test -z "$ac_list_mounted_fs"; then | 272 | if test -z "$ac_list_mounted_fs"; then |
274 | # Ultrix | 273 | # Ultrix |
275 | AC_MSG_CHECKING([for getmnt function]) | 274 | AC_MSG_CHECKING([for getmnt function]) |
276 | AC_CACHE_VAL(fu_cv_sys_mounted_getmnt, | 275 | AC_CACHE_VAL([fu_cv_sys_mounted_getmnt], |
277 | [AC_TRY_CPP([ | 276 | [AC_TRY_CPP([ |
278 | #include <sys/fs_types.h> | 277 | #include <sys/fs_types.h> |
279 | #include <sys/mount.h>], | 278 | #include <sys/mount.h>], |
280 | fu_cv_sys_mounted_getmnt=yes, | 279 | fu_cv_sys_mounted_getmnt=yes, |
281 | fu_cv_sys_mounted_getmnt=no)]) | 280 | fu_cv_sys_mounted_getmnt=no)]) |
282 | AC_MSG_RESULT($fu_cv_sys_mounted_getmnt) | 281 | AC_MSG_RESULT([$fu_cv_sys_mounted_getmnt]) |
283 | if test $fu_cv_sys_mounted_getmnt = yes; then | 282 | if test $fu_cv_sys_mounted_getmnt = yes; then |
284 | ac_list_mounted_fs=found | 283 | ac_list_mounted_fs=found |
285 | AC_DEFINE(MOUNTED_GETMNT, 1, | 284 | AC_DEFINE([MOUNTED_GETMNT], [1], |
286 | [Define if there is a function named getmnt for reading the list of | 285 | [Define if there is a function named getmnt for reading the list of |
287 | mounted file systems. (Ultrix)]) | 286 | mounted file systems. (Ultrix)]) |
288 | fi | 287 | fi |
@@ -290,8 +289,8 @@ fi | |||
290 | 289 | ||
291 | if test -z "$ac_list_mounted_fs"; then | 290 | if test -z "$ac_list_mounted_fs"; then |
292 | # BeOS | 291 | # BeOS |
293 | AC_CHECK_FUNCS(next_dev fs_stat_dev) | 292 | AC_CHECK_FUNCS([next_dev fs_stat_dev]) |
294 | AC_CHECK_HEADERS(fs_info.h) | 293 | AC_CHECK_HEADERS([fs_info.h]) |
295 | AC_MSG_CHECKING([for BEOS mounted file system support functions]) | 294 | AC_MSG_CHECKING([for BEOS mounted file system support functions]) |
296 | if test $ac_cv_header_fs_info_h = yes \ | 295 | if test $ac_cv_header_fs_info_h = yes \ |
297 | && test $ac_cv_func_next_dev = yes \ | 296 | && test $ac_cv_func_next_dev = yes \ |
@@ -300,10 +299,10 @@ if test -z "$ac_list_mounted_fs"; then | |||
300 | else | 299 | else |
301 | fu_result=no | 300 | fu_result=no |
302 | fi | 301 | fi |
303 | AC_MSG_RESULT($fu_result) | 302 | AC_MSG_RESULT([$fu_result]) |
304 | if test $fu_result = yes; then | 303 | if test $fu_result = yes; then |
305 | ac_list_mounted_fs=found | 304 | ac_list_mounted_fs=found |
306 | AC_DEFINE(MOUNTED_FS_STAT_DEV, 1, | 305 | AC_DEFINE([MOUNTED_FS_STAT_DEV], [1], |
307 | [Define if there are functions named next_dev and fs_stat_dev for | 306 | [Define if there are functions named next_dev and fs_stat_dev for |
308 | reading the list of mounted file systems. (BeOS)]) | 307 | reading the list of mounted file systems. (BeOS)]) |
309 | fi | 308 | fi |
@@ -312,14 +311,14 @@ fi | |||
312 | if test -z "$ac_list_mounted_fs"; then | 311 | if test -z "$ac_list_mounted_fs"; then |
313 | # SVR2 | 312 | # SVR2 |
314 | AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab]) | 313 | AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab]) |
315 | AC_CACHE_VAL(fu_cv_sys_mounted_fread, | 314 | AC_CACHE_VAL([fu_cv_sys_mounted_fread], |
316 | [AC_TRY_CPP([#include <mnttab.h>], | 315 | [AC_TRY_CPP([#include <mnttab.h>], |
317 | fu_cv_sys_mounted_fread=yes, | 316 | fu_cv_sys_mounted_fread=yes, |
318 | fu_cv_sys_mounted_fread=no)]) | 317 | fu_cv_sys_mounted_fread=no)]) |
319 | AC_MSG_RESULT($fu_cv_sys_mounted_fread) | 318 | AC_MSG_RESULT([$fu_cv_sys_mounted_fread]) |
320 | if test $fu_cv_sys_mounted_fread = yes; then | 319 | if test $fu_cv_sys_mounted_fread = yes; then |
321 | ac_list_mounted_fs=found | 320 | ac_list_mounted_fs=found |
322 | AC_DEFINE(MOUNTED_FREAD, 1, | 321 | AC_DEFINE([MOUNTED_FREAD], [1], |
323 | [Define if there is no specific function for reading the list of | 322 | [Define if there is no specific function for reading the list of |
324 | mounted file systems. fread will be used to read /etc/mnttab. | 323 | mounted file systems. fread will be used to read /etc/mnttab. |
325 | (SVR2) ]) | 324 | (SVR2) ]) |