Fix statfs/statvfs decision
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Aug 2011 19:07:38 +0000 (15:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 13 Aug 2011 19:07:38 +0000 (15:07 -0400)
We want to force use of statvfs when statfs is deficient.
This does not make any difference on Linux.

https://bugzilla.gnome.org/show_bug.cgi?id=656151

configure.ac

index 8168988..dcb7574 100644 (file)
@@ -1015,7 +1015,7 @@ AC_MSG_CHECKING([whether to use statfs or statvfs])
 AS_IF([test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes],
    [
    # on solaris and irix, statfs doesn't even have the f_bavail field
-   AS_IF([test x$ac_cv_member_struct_statfs_f_bavail = xyes],
+   AS_IF([test x$ac_cv_member_struct_statfs_f_bavail = xno],
       [ac_cv_func_statfs=no],
    # else, at least on linux, statfs is the actual syscall
       [ac_cv_func_statvfs=no])