From: Florian Forster Date: Wed, 17 Mar 2010 17:36:05 +0000 (+0100) Subject: Build system: Add the "modbus" plugin. X-Git-Tag: collectd-4.10.0~28^2~9 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=505c6b2a36ae8e3dc5b4bbbfb86262be8c7904ce;hp=367405c98b35330e188eb391f29836975d73e4d0;p=collectd.git Build system: Add the "modbus" plugin. --- diff --git a/configure.in b/configure.in index 417da4da..1a63dedd 100644 --- a/configure.in +++ b/configure.in @@ -4263,6 +4263,7 @@ AC_PLUGIN([mbmon], [yes], [Query mbmond]) AC_PLUGIN([memcachec], [$with_libmemcached], [memcachec statistics]) AC_PLUGIN([memcached], [yes], [memcached statistics]) AC_PLUGIN([memory], [$plugin_memory], [Memory usage]) +AC_PLUGIN([modbus], [$with_libmodbus], [Modbus plugin]) AC_PLUGIN([multimeter], [$plugin_multimeter], [Read multimeter values]) AC_PLUGIN([mysql], [$with_libmysql], [MySQL statistics]) AC_PLUGIN([netapp], [$with_libnetapp], [NetApp plugin]) @@ -4575,6 +4576,7 @@ Configuration: memcachec . . . . . . $enable_memcachec memcached . . . . . . $enable_memcached memory . . . . . . . $enable_memory + modbus . . . . . . . $enable_modbus multimeter . . . . . $enable_multimeter mysql . . . . . . . . $enable_mysql netapp . . . . . . . $enable_netapp diff --git a/src/Makefile.am b/src/Makefile.am index 02563509..68db92eb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -598,6 +598,16 @@ memory_la_LIBADD += -lperfstat endif endif +if BUILD_PLUGIN_MODBUS +pkglib_LTLIBRARIES += modbus.la +modbus_la_SOURCES = modbus.c +modbus_la_LDFLAGS = -module -avoid-version +modbus_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBMODBUS_CFLAGS) +modbus_la_LIBADD = $(BUILD_WITH_LIBMODBUS_LIBS) +collectd_LDADD += "-dlopen" modbus.la +collectd_DEPENDENCIES += modbus.la +endif + if BUILD_PLUGIN_MULTIMETER pkglib_LTLIBRARIES += multimeter.la multimeter_la_SOURCES = multimeter.c