summaryrefslogtreecommitdiffstats
path: root/gl/m4/mountlist.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/mountlist.m4')
-rw-r--r--gl/m4/mountlist.m432
1 files changed, 25 insertions, 7 deletions
diff --git a/gl/m4/mountlist.m4 b/gl/m4/mountlist.m4
index a9b4edb9..e7eac2e9 100644
--- a/gl/m4/mountlist.m4
+++ b/gl/m4/mountlist.m4
@@ -1,8 +1,10 @@
1# serial 15 1# mountlist.m4
2dnl Copyright (C) 2002-2006, 2009-2023 Free Software Foundation, Inc. 2# serial 18
3dnl Copyright (C) 2002-2006, 2009-2025 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
6 8
7dnl From Jim Meyering. 9dnl From Jim Meyering.
8 10
@@ -106,7 +108,18 @@ $ac_includes_default
106 [Define if there is a function named getmntent for reading the list 108 [Define if there is a function named getmntent for reading the list
107 of mounted file systems, and that function takes a single argument. 109 of mounted file systems, and that function takes a single argument.
108 (4.3BSD, SunOS, HP-UX, Irix)]) 110 (4.3BSD, SunOS, HP-UX, Irix)])
109 AC_CHECK_FUNCS([setmntent endmntent hasmntopt]) 111 gl_CHECK_FUNCS_ANDROID([setmntent],
112 [[#include <stdio.h>
113 #include <mntent.h>
114 ]])
115 gl_CHECK_FUNCS_ANDROID([endmntent],
116 [[#include <stdio.h>
117 #include <mntent.h>
118 ]])
119 gl_CHECK_FUNCS_ANDROID([hasmntopt],
120 [[#include <stdio.h>
121 #include <mntent.h>
122 ]])
110 fi 123 fi
111 fi 124 fi
112 125
@@ -306,12 +319,17 @@ int getmntinfo (struct statfs **, int);
306 fi 319 fi
307 320
308 if test -z "$ac_list_mounted_fs"; then 321 if test -z "$ac_list_mounted_fs"; then
309 AC_MSG_ERROR([could not determine how to read list of mounted file systems]) 322 case "$host_os" in
310 # FIXME -- no need to abort building the whole package 323 mingw* | windows*) ac_list_mounted_fs=found ;;
311 # Can't build mountlist.c or anything that needs its functions 324 esac
325 fi
326
327 if test -z "$ac_list_mounted_fs"; then
328 AC_DEFINE([MOUNTED_NOT_PORTED], [1],
329 [Define if we don't know how to determine the list of mounted file systems.])
312 fi 330 fi
313 331
314 if test $ac_list_mounted_fs = found; then 332 if test "$ac_list_mounted_fs" = found; then
315 gl_cv_list_mounted_fs=yes 333 gl_cv_list_mounted_fs=yes
316 else 334 else
317 gl_cv_list_mounted_fs=no 335 gl_cv_list_mounted_fs=no