From: Jim Meyering Date: Fri, 17 Jan 1997 03:00:45 +0000 (+0000) Subject: (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30b38a75f551054922811ead835433176b3fb23;p=pspp (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic. --- diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index bb52d8ab1a..9680420009 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 @@ -1,10 +1,13 @@ -#serial 2 +#serial 3 AC_DEFUN(AM_FUNC_GETLOADAVG, [ac_have_func=no # yes means we've found a way to get the load average. am_cv_saved_LIBS="$LIBS" +# On HPUX9, an unprivileged user can get load averages through this function. +AC_CHECK_FUNCS(pstat_getdynamic) + # Solaris has libkstat which does not require root. AC_CHECK_LIB(kstat, kstat_open) if test $ac_cv_lib_kstat_kstat_open = yes ; then ac_have_func=yes ; fi