X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2FMakefile.am;h=52079438109ce282fbedcbbbc696e2c1cc9f5d89;hp=cdd927bc7b859e037aeb5e1abf2c9596e4a5fae4;hb=ad0a12907bf80b4f0deec217b8379dd08c490dbc;hpb=e030096e4f5a0bbdd42635bfeb95e39d150cac72 diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index cdd927bc..52079438 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -10,7 +10,10 @@ AM_CPPFLAGS += -DPLUGINDIR='"${pkglibdir}"' AM_CPPFLAGS += -DPKGDATADIR='"${pkgdatadir}"' # Link to these libraries.. -COMMON_LIBS = +COMMON_LIBS = $(PTHREAD_LIBS) +if BUILD_WITH_CAPABILITY +COMMON_LIBS += -lcap +endif if BUILD_WITH_LIBRT COMMON_LIBS += -lrt endif @@ -23,9 +26,6 @@ endif if BUILD_WITH_LIBRESOLV COMMON_LIBS += -lresolv endif -if BUILD_WITH_LIBPTHREAD -COMMON_LIBS += -lpthread -endif if BUILD_WITH_LIBKSTAT COMMON_LIBS += -lkstat endif @@ -33,8 +33,6 @@ if BUILD_WITH_LIBDEVINFO COMMON_LIBS += -ldevinfo endif -AUTOMAKE_OPTIONS = subdir-objects - sbin_PROGRAMS = collectd noinst_LTLIBRARIES = libavltree.la libcommon.la libheap.la libmetadata.la libplugin_mock.la @@ -63,10 +61,7 @@ collectd_SOURCES = collectd.c collectd.h \ utils_ignorelist.c utils_ignorelist.h \ utils_llist.c utils_llist.h \ utils_random.c utils_random.h \ - utils_tail_match.c utils_tail_match.h \ - utils_match.c utils_match.h \ utils_subst.c utils_subst.h \ - utils_tail.c utils_tail.h \ utils_time.c utils_time.h \ types_list.c types_list.h \ utils_threshold.c utils_threshold.h @@ -92,6 +87,8 @@ else collectd_LDADD += -loconfig endif +LOG_COMPILER = env VALGRIND="@VALGRIND@" $(abs_top_srcdir)/testwrapper.sh + check_PROGRAMS = test_common test_meta_data test_utils_avltree test_utils_heap test_utils_time test_utils_subst TESTS = test_common test_meta_data test_utils_avltree test_utils_heap test_utils_time test_utils_subst