X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffsusage.m4;h=f0077dbe874e3e442a51404595ada5b0fdb8a300;hb=e055f45d9cf9bddd138d4ff6241714a880bb36fe;hp=c9714f27b4d98b5fc4fd2951a707ea743424dda9;hpb=67020064bced85a59816beb91993abf983694ecf;p=gnulib.git diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index c9714f27b..f0077dbe8 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,12 +1,17 @@ -#serial 1 +#serial 2 # From fileutils/configure.in -# Determine how a program can obtain filesystems usage information. + +# Try to determine how a program can obtain filesystem usage information. +# If successful, define the appropriate symbol (see fsusage.c) and +# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND. +# +# jm_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) AC_DEFUN(jm_FILE_SYSTEM_USAGE, [ -AC_CHECKING(how to get filesystem space usage) +AC_MSG_CHECKING(how to get filesystem space usage) ac_fsusage_space=no # Perform only the link test since it seems there are no variants of the @@ -182,4 +187,6 @@ AC_TRY_CPP([#include ], ac_fsusage_space=yes) fi +AC_SHELL_IFELSE([test $ac_fsusage_space = yes], [$1], [$2])dnl + ])