From: Doug MacEachern Date: Fri, 25 Sep 2009 20:02:26 +0000 (-0700) Subject: define HAVE_SYSCTL_KERN_CP_TIMES if sysctl supports kern.cp_times X-Git-Tag: collectd-4.9.0~76 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=917d7fa8608ce5e30c92525aacd11943b7b7dce3;p=collectd.git define HAVE_SYSCTL_KERN_CP_TIMES if sysctl supports kern.cp_times --- diff --git a/configure.in b/configure.in index c08a61a7..c3fc8d78 100644 --- a/configure.in +++ b/configure.in @@ -262,6 +262,22 @@ AC_CHECK_HEADERS(sys/sysctl.h, [], [], #endif ]) +AC_MSG_CHECKING([for sysctl kern.cp_times]) +if test -x /sbin/sysctl +then + /sbin/sysctl kern.cp_times > /dev/null + if test $? -eq 0 + then + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_SYSCTL_KERN_CP_TIMES, 1, + [Define if sysctl supports kern.cp_times]) + else + AC_MSG_RESULT([no]) + fi +else + AC_MSG_RESULT([no]) +fi + # For hddtemp module AC_CHECK_HEADERS(linux/major.h libgen.h)