summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-17 03:00:45 +0000
committerJim Meyering <jim@meyering.net>1997-01-17 03:00:45 +0000
commit279f065a06c400716e076f45a0ae9d06a62954a6 (patch)
tree8d897728863bd4e50cb53cf2211e28ce8826bcf1 /m4
parentc7837e95d22703affc25147dcd85658ba9398d68 (diff)
downloadcoreutils-279f065a06c400716e076f45a0ae9d06a62954a6.tar.xz
(AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
Diffstat (limited to 'm4')
-rw-r--r--m4/getloadavg.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4
index bb52d8ab1..968042000 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