[collectd] [PATCH] configure: Renamed COLLECT_LIBSTATGRAB to HAVE_LIBSTATGRAB.

Sebastian Harl sh at tokkee.org
Mon Apr 28 22:50:37 CEST 2008


All source files use HAVE_LIBSTATGRAB to check if libstatgrab is available
which has not been defines so far though. This effectively prevented
libstatgrab from being used at all. Commonly, HAVE_ seems to be
preferred to COLLECT_, so I decided to use that as well.

Thanks to Oleg King for noticing and pointing this out.

While looking at that kind of stuff, I noticed a typo when defining
COLLECT_LIBIOKIT which, thus, effectively has not been defined as well so
far.

Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 configure.in |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.in b/configure.in
index 26230f7..9c604dc 100644
--- a/configure.in
+++ b/configure.in
@@ -1092,15 +1092,15 @@ AM_CONDITIONAL(BUILD_WITH_LIBCURL, test "x$with_libcurl" = "xyes")
 ### END of check for libcurl ###
 
 with_libiokit="no"
-collectd_libiokit=0
+collect_libiokit=0
 AC_CHECK_LIB(IOKit, IOServiceGetMatchingServices,
 [
 	with_libiokit="yes"
-	collectd_libiokit=1
+	collect_libiokit=1
 ],
 [
 	with_libiokit="no"
-	collectd_libiokit=0
+	collect_libiokit=0
 ])
 AC_DEFINE_UNQUOTED(COLLECT_LIBIOKIT, [$collect_libiokit], [Wether or not to use the IOKit library])
 AM_CONDITIONAL(BUILD_WITH_LIBIOKIT, test "x$with_libiokit" = "xyes")
@@ -1138,11 +1138,11 @@ then
 fi
 if test "x$with_libstatgrab" = "xyes"
 then
-	collect_libstatgrab=1
+	have_libstatgrab=1
 else
-	collect_libstatgrab=0
+	have_libstatgrab=0
 fi
-AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
+AC_DEFINE_UNQUOTED(HAVE_LIBSTATGRAB, [$have_libstatgrab],
 	[Wether or not to use statgrab library])
 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
 AM_CONDITIONAL(BUILD_WITH_LIBDEVSTAT,  test "x$with_libdevstat"  = "xyes")
-- 
1.5.5.1.79.g57cf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080428/51ba9871/attachment.pgp 


More information about the collectd mailing list