From: Florian Forster Date: Tue, 19 Aug 2008 07:44:56 +0000 (+0200) Subject: build system: Automatically enable the swap plugin if the kvm library is found. X-Git-Tag: collectd-4.3.4~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=540e2d3c242dd39bb304fc3548dad5437ed6eddc;p=collectd.git build system: Automatically enable the swap plugin if the kvm library is found. This fixes a bug introduced with the previous commit. --- diff --git a/configure.in b/configure.in index e8fe287b..17d006d2 100644 --- a/configure.in +++ b/configure.in @@ -1215,11 +1215,13 @@ then AC_SUBST(BUILD_WITH_LIBSTATGRAB_LDFLAGS) fi +with_libkvm="no" AC_CHECK_LIB(kvm, kvm_getswapinfo, [with_kvm_getswapinfo="yes"], [with_kvm_getswapinfo="no"]) if test "x$with_kvm_getswapinfo" = "xyes" then AC_DEFINE(HAVE_LIBKVM_GETSWAPINFO, 1, [Define to 1 if you have the 'kvm' library with the 'kvm_getswapinfo' symbol (-lkvm)]) + with_libkvm="yes" fi AM_CONDITIONAL(BUILD_WITH_LIBKVM_GETSWAPINFO, test "x$with_kvm_getswapinfo" = "xyes") @@ -2303,7 +2305,7 @@ then plugin_processes="yes" fi -if test "x$with_libkvm" = "xyes" +if test "x$with_kvm_getswapinfo" = "xyes" then plugin_swap="yes" fi