X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgetloadavg.m4;h=ff8cf309b0c3db2757f2c2afc25971dd0c336e9d;hb=d374f61ddcf9d79d92bf407b5e6ba0e4847b1a90;hp=9116738e9487dd2079ef3744689e52abf3e52c30;hpb=0a86f953cda165b9aa4ed1186cd47f80fb29edda;p=gnulib.git diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 9116738e9..ff8cf309b 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -1,4 +1,4 @@ -#serial 8 +#serial 9 # A replacement for autoconf's macro by the same name. This version # accepts an optional argument specifying the name of the $srcdir-relative @@ -12,6 +12,9 @@ undefine([AC_FUNC_GETLOADAVG]) AC_DEFUN([AC_FUNC_GETLOADAVG], [ac_have_func=no # yes means we've found a way to get the load average. +AC_CHECK_HEADERS(locale.h unistd.h mach/mach.h fcntl.h) +AC_CHECK_FUNCS(setlocale) + # By default, expect to find getloadavg.c in $srcdir/. ac_lib_dir_getloadavg=$srcdir # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.