Code

Build system: Add the write_graphite plugin.
authorFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 17:05:34 +0000 (18:05 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 17:19:24 +0000 (18:19 +0100)
Change-Id: I333cb950bb68e47366bf9dd17eca181dde25847d

configure.in
src/Makefile.am

index b3ab7c9c350967e43091f3e88166f91316471eb8..d8fce2cc505c38f3d10b2e4849caf98dd9e47775 100644 (file)
@@ -4759,6 +4759,7 @@ AC_PLUGIN([varnish],     [$with_libvarnish],   [Varnish cache statistics])
 AC_PLUGIN([vmem],        [$plugin_vmem],       [Virtual memory statistics])
 AC_PLUGIN([vserver],     [$plugin_vserver],    [Linux VServer statistics])
 AC_PLUGIN([wireless],    [$plugin_wireless],   [Wireless statistics])
+AC_PLUGIN([write_graphite], [$with_libcurl],   [Graphite / Carbon output plugin])
 AC_PLUGIN([write_http],  [$with_libcurl],      [HTTP output plugin])
 AC_PLUGIN([write_redis], [$with_libcredis],    [Redis output plugin])
 AC_PLUGIN([write_mongodb], [$with_libmongoc],  [MongoDB output plugin])
@@ -5086,6 +5087,7 @@ Configuration:
     vmem  . . . . . . . . $enable_vmem
     vserver . . . . . . . $enable_vserver
     wireless  . . . . . . $enable_wireless
+    write_graphite  . . . $enable_write_graphite
     write_http  . . . . . $enable_write_http
     write_redis . . . . . $enable_write_redis
     write_mongodb . . . . $enable_write_mongodb
index affc171faf2c6271c8e479a26e46a5a1118023ab..c41c13fb77dfe49de904e6bb38f988dd79df56ce 100644 (file)
@@ -1230,6 +1230,21 @@ collectd_LDADD += "-dlopen" wireless.la
 collectd_DEPENDENCIES += wireless.la
 endif
 
+if BUILD_PLUGIN_WRITE_GRAPHITE
+pkglib_LTLIBRARIES += write_graphite.la
+write_graphite_la_SOURCES = write_graphite.c \
+                       utils_format_json.c utils_format_json.h
+write_graphite_la_LDFLAGS = -module -avoid-version
+write_graphite_la_CFLAGS = $(AM_CFLAGS)
+write_graphite_la_LIBADD =
+collectd_LDADD += "-dlopen" write_graphite.la
+if BUILD_WITH_LIBCURL
+write_graphite_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS)
+write_graphite_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS)
+endif
+collectd_DEPENDENCIES += write_graphite.la
+endif
+
 if BUILD_PLUGIN_WRITE_HTTP
 pkglib_LTLIBRARIES += write_http.la
 write_http_la_SOURCES = write_http.c \