summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7af1f61)
raw | patch | inline | side by side (parent: 7af1f61)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 15 Feb 2009 17:30:20 +0000 (18:30 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 15 Feb 2009 17:30:20 +0000 (18:30 +0100) |
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 6b2adc18e2ee3a891e715528e902c6656151a627..80e7e4053c99434bb0c9af4b3a08afa00447c974 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, [nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep)))
AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
+AC_CHECK_FUNCS(sysctl, [have_sysctl="yes"], [have_sysctl="no"])
AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
AC_CHECK_FUNCS(host_statistics, [have_host_statistics="yes"], [have_host_statistics="no"])
AC_CHECK_FUNCS(processor_info, [have_processor_info="yes"], [have_processor_info="no"])
then
plugin_cpu="yes"
fi
+if test "x$have_sysctl" = "xyes"
+then
+ plugin_cpu="yes"
+ plugin_swap="yes"
+fi
if test "x$have_sysctlbyname" = "xyes"
then
plugin_cpu="yes"
plugin_users="yes"
fi
-# FIXME: sysctl for swap plugin
-
m4_divert_once([HELP_ENABLE], [
collectd plugins:])