-# serial 26
+# serial 28
# Obtaining file system usage information.
-# Copyright (C) 1997-1998, 2000-2001, 2003-2010 Free Software Foundation, Inc.
+# Copyright (C) 1997-1998, 2000-2001, 2003-2011 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
#include <sys/param.h>
#endif]])
gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no])
- if test $gl_cv_fs_space = yes; then
- AC_LIBOBJ([fsusage])
- gl_PREREQ_FSUSAGE_EXTRA
- fi
])
# Try to determine how a program can obtain file system usage information.
# OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
AC_CACHE_CHECK([for statvfs function (SVR4)], [fu_cv_sys_stat_statvfs],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
-#if defined __GLIBC__ && defined __linux__
+#if (defined __GLIBC__ || defined __UCLIBC__) && defined __linux__
Do not use statvfs on systems with GNU libc on Linux, 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.