From: Florian Forster Date: Wed, 30 Apr 2008 08:52:27 +0000 (+0200) Subject: build system: Define HAVE_LIBSTATGRAB if the statgrab library is available. X-Git-Tag: collectd-4.4.0~4^2~2^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a8287f5aaac5f42367f61cd4ba214ee1e7a0770e;p=collectd.git build system: Define HAVE_LIBSTATGRAB if the statgrab library is available. This define is used in some plugins. Thanks to Oleg King for noticing and pointing this out and thanks to Sebastian Harl for a first patch which, unfortunately, doesn't work anymore after changing the configure script. --- diff --git a/configure.in b/configure.in index ae11ecfa..ef428ccc 100644 --- a/configure.in +++ b/configure.in @@ -1193,6 +1193,7 @@ fi AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes") if test "x$with_libstatgrab" = "xyes" then + AC_DEFINE(HAVE_LIBSTATGRAB, 1, [Define to 1 if you have the 'statgrab' library (-lstatgrab)]) BUILD_WITH_LIBSTATGRAB_CFLAGS="$with_libstatgrab_cflags" BUILD_WITH_LIBSTATGRAB_LDFLAGS="$with_libstatgrab_ldflags" AC_SUBST(BUILD_WITH_LIBSTATGRAB_CFLAGS)