From 176d5f79eb127390ab735a181ec2e148fa1158a8 Mon Sep 17 00:00:00 2001 From: niki Date: Fri, 16 Dec 2005 17:07:42 +0000 Subject: [PATCH] clenaup on libstatgrab --- configure.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index de7cd895..81988ebb 100644 --- a/configure.in +++ b/configure.in @@ -281,9 +281,18 @@ if test "x$with_libstatgrab" = "xyes" 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.]), [ -- 2.11.0