summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-04-25 22:10:13 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2007-04-25 22:10:13 +0000
commitd47be7a9e48242a25e356e2509f6fb774ae0be10 (patch)
tree1ea8e0185eda27100a26f43a98523f63695f2dfa /configure.in
parent27a624dd9f929af1330be508762057fa4fa8a0f5 (diff)
downloadmonitoring-plugins-d47be7a9e48242a25e356e2509f6fb774ae0be10.tar.gz
check_load can optionally divide by number of cpus
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1700 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 54040ac9..891922ea 100644
--- a/configure.in
+++ b/configure.in
@@ -1054,6 +1054,14 @@ if test -n "$ac_cv_nslookup_command"; then
1054 AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) 1054 AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup])
1055fi 1055fi
1056 1056
1057AC_MSG_CHECKING([for number of cpus])
1058AC_TRY_COMPILE([#include <unistd.h>],
1059 [sysconf(_SC_NPROCESSORS_CONF) > 0;],
1060 AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of cpus])
1061 AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]),
1062 AC_MSG_RESULT([cannot calculate])
1063 )
1064
1057AC_PATH_PROG(PATH_TO_UPTIME,uptime) 1065AC_PATH_PROG(PATH_TO_UPTIME,uptime)
1058AC_ARG_WITH(uptime_command, 1066AC_ARG_WITH(uptime_command,
1059 ACX_HELP_STRING([--with-uptime-command=PATH], 1067 ACX_HELP_STRING([--with-uptime-command=PATH],