diff --git a/src/Makefile.am b/src/Makefile.am
index cbc92b270da7476f13017915f5b4353742019f69..0610aa694fa01d66d8c8555353943476bced7d1e 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
collectd_DEPENDENCIES += hddtemp.la
endif
+if BUILD_MODULE_IPTABLES
+pkglib_LTLIBRARIES += iptables.la
+iptables_la_SOURCES = iptables.c
+iptables_la_LDFLAGS = -module -avoid-version
+if BUILD_WITH_LIBIPTC
+iptables_la_LDFLAGS += -liptc
+endif
+collectd_LDADD += "-dlopen" iptables.la
+collectd_DEPENDENCIES += iptables.la
+endif
+
if BUILD_MODULE_IRQ
pkglib_LTLIBRARIES += irq.la
irq_la_SOURCES = irq.c