From: Sebastian Harl Date: Wed, 19 Dec 2007 19:36:40 +0000 (+0100) Subject: src/Makefile.am: Use curl CFLAGS when building the nginx plugin. X-Git-Tag: collectd-4.2.3~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=74bac9bc5636248e0daef5d64ed9fb0082f581d1;p=collectd.git src/Makefile.am: Use curl CFLAGS when building the nginx plugin. Else curl/curl.h cannot be found in non-standard places at build time. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/Makefile.am b/src/Makefile.am index d229407f..d305d855 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -405,9 +405,12 @@ endif if BUILD_PLUGIN_NGINX pkglib_LTLIBRARIES += nginx.la nginx_la_SOURCES = nginx.c +nginx_la_CFLAGS = $(AM_CFLAGS) +nginx_la_LIBADD = nginx_la_LDFLAGS = -module -avoid-version if BUILD_WITH_LIBCURL -nginx_la_LDFLAGS += $(BUILD_WITH_LIBCURL_LIBS) +nginx_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS) +nginx_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS) endif collectd_LDADD += "-dlopen" nginx.la collectd_DEPENDENCIES += nginx.la