From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/m4/mountlist.m4 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'gl/m4/mountlist.m4') diff --git a/gl/m4/mountlist.m4 b/gl/m4/mountlist.m4 index ff414e66..e7eac2e9 100644 --- a/gl/m4/mountlist.m4 +++ b/gl/m4/mountlist.m4 @@ -1,9 +1,10 @@ # mountlist.m4 -# serial 17 -dnl Copyright (C) 2002-2006, 2009-2024 Free Software Foundation, Inc. +# serial 18 +dnl Copyright (C) 2002-2006, 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +dnl This file is offered as-is, without any warranty. dnl From Jim Meyering. @@ -318,12 +319,17 @@ int getmntinfo (struct statfs **, int); fi if test -z "$ac_list_mounted_fs"; then - AC_MSG_ERROR([could not determine how to read list of mounted file systems]) - # FIXME -- no need to abort building the whole package - # Can't build mountlist.c or anything that needs its functions + case "$host_os" in + mingw* | windows*) ac_list_mounted_fs=found ;; + esac + fi + + if test -z "$ac_list_mounted_fs"; then + AC_DEFINE([MOUNTED_NOT_PORTED], [1], + [Define if we don't know how to determine the list of mounted file systems.]) fi - if test $ac_list_mounted_fs = found; then + if test "$ac_list_mounted_fs" = found; then gl_cv_list_mounted_fs=yes else gl_cv_list_mounted_fs=no -- cgit v1.2.3-74-g34f1