From 92f435534ba895863babb3aefee28f1a0a63bf08 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 3 Oct 2006 18:36:07 +0200 Subject: [PATCH] Updated the build scripts for the named plugin. --- configure.in | 4 ++-- src/Makefile.am | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ac476eb1..25948181 100644 --- a/configure.in +++ b/configure.in @@ -825,9 +825,9 @@ then 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 diff --git a/src/Makefile.am b/src/Makefile.am index 5538f641..dc45733e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -236,6 +236,17 @@ collectd_LDADD += "-dlopen" mysql.la 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 -- 2.11.0