else
collect_libpcap=0
fi
-AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libpcap],
+AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap],
[Wether or not to use the pcap library])
-AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libpcap" = "xyes")
+AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes")
# Define `step' and `hearbeat' values..
declare -i collectd_step=10
collectd_DEPENDENCIES += mysql.la
endif
+if BUILD_MODULE_NAMED
+pkglib_LTLIBRARIES += named.la
+named_la_SOURCES = named.c dnstop.c
+named_la_LDFLAGS = -module -avoid-version
+if BUILD_WITH_LIBPCAP
+named_la_LDFLAGS += -lpcap
+endif
+collectd_LDADD += "-dlopen" named.la
+collectd_DEPENDENCIES += named.la
+endif
+
if BUILD_MODULE_NFS
pkglib_LTLIBRARIES += nfs.la
nfs_la_SOURCES = nfs.c