summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f830bd0)
raw | patch | inline | side by side (parent: f830bd0)
author | niki <niki> | |
Fri, 16 Dec 2005 17:07:42 +0000 (17:07 +0000) | ||
committer | niki <niki> | |
Fri, 16 Dec 2005 17:07:42 +0000 (17:07 +0000) |
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index de7cd895f8072343d93b9478d42cfec301eacc82..81988ebbf1a6180aa74afe389f5528275438557a 100644 (file)
--- a/configure.in
+++ b/configure.in
then
AC_CHECK_LIB(devstat, getdevs)
AC_CHECK_LIB(kvm, kvm_getargv)
- AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (not found)"])
- AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (not found)"])
+ AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (libstatgrab not found)"])
+ AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
fi
+if test "x$with_libstatgrab" = "xyes"
+then
+ collect_libstatgrab=1
+else
+ collect_libstatgrab=0
+fi
+AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
+ [Wether or not to use statgrab library])
+AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
AC_ARG_WITH(lm-sensors, AC_HELP_STRING([--with-lm-sensors@<:@=PFX@:>@], [Path to lm_sensors.]),
[