From 74f755e8cd20eb5ad15fe7df1be94e4f215adcc2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 23 Sep 2009 11:59:05 +0200 Subject: [PATCH] Build system: Build the netapp plugin when libnetapp is available. --- configure.in | 2 ++ src/Makefile.am | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/configure.in b/configure.in index 01dddccd..5c2b9998 100644 --- a/configure.in +++ b/configure.in @@ -3858,6 +3858,7 @@ AC_PLUGIN([memcached], [yes], [memcached statistics]) AC_PLUGIN([memory], [$plugin_memory], [Memory usage]) AC_PLUGIN([multimeter], [$plugin_multimeter], [Read multimeter values]) AC_PLUGIN([mysql], [$with_libmysql], [MySQL statistics]) +AC_PLUGIN([netapp], [$with_libnetapp], [NetApp plugin]) AC_PLUGIN([netlink], [$with_libnetlink], [Enhanced Linux network statistics]) AC_PLUGIN([network], [yes], [Network communication plugin]) AC_PLUGIN([nfs], [$plugin_nfs], [NFS statistics]) @@ -4160,6 +4161,7 @@ Configuration: memory . . . . . . . $enable_memory multimeter . . . . . $enable_multimeter mysql . . . . . . . . $enable_mysql + netapp . . . . . . . $enable_netapp netlink . . . . . . . $enable_netlink network . . . . . . . $enable_network nfs . . . . . . . . . $enable_nfs diff --git a/src/Makefile.am b/src/Makefile.am index 54befad7..2e9f265e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -570,6 +570,16 @@ endif collectd_DEPENDENCIES += mysql.la endif +if BUILD_PLUGIN_NETAPP +pkglib_LTLIBRARIES += netapp.la +netapp_la_SOURCES = netapp.c +netapp_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBNETAPP_CPPFLAGS) +netapp_la_LDFLAGS = -module -avoid-version $(LIBNETAPP_LDFLAGS) +netapp_la_LIBADD = $(LIBNETAPP_LIBS) +collectd_LDADD += "-dlopen" netapp.la +collectd_DEPENDENCIES += netapp.la +endif + if BUILD_PLUGIN_NETLINK pkglib_LTLIBRARIES += netlink.la netlink_la_SOURCES = netlink.c -- 2.11.0