summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsera.com>2010-06-21 20:07:40 (GMT)
committerTon Voon <ton.voon@opsera.com>2010-06-21 20:07:40 (GMT)
commit72074a8f2e99d3a36899f7c5533f2bbe8c5e18cd (patch)
tree2691b3cf6a00e03594bf08709de78dd09d1020bb
parent9de4938ba85d5afd53e08f6a8e90fa4c477704fc (diff)
downloadmonitoring-plugins-72074a8f2e99d3a36899f7c5533f2bbe8c5e18cd.tar.gz
Use AM_CPPFLAGS instead of DEFS as per autoconf documentation
-rw-r--r--lib/Makefile.am3
-rw-r--r--lib/tests/Makefile.am3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 1c7e7e7..99fa591 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -4,8 +4,7 @@ SUBDIRS = . tests
4 4
5noinst_LIBRARIES = libnagiosplug.a 5noinst_LIBRARIES = libnagiosplug.a
6 6
7# Not sure how to set this in config.h 7AM_CPPFLAGS = -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\"
8DEFS = -DNP_STATE_DIR_PREFIX='"$(localstatedir)"'
9 8
10libnagiosplug_a_SOURCES = utils_base.c utils_disk.c utils_tcp.c utils_cmd.c 9libnagiosplug_a_SOURCES = utils_base.c utils_disk.c utils_tcp.c utils_cmd.c
11EXTRA_DIST = utils_base.h utils_disk.h utils_tcp.h utils_cmd.h parse_ini.h extra_opts.h 10EXTRA_DIST = utils_base.h utils_disk.h utils_tcp.h utils_cmd.h parse_ini.h extra_opts.h
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
index 3112020..06a4b42 100644
--- a/lib/tests/Makefile.am
+++ b/lib/tests/Makefile.am
@@ -5,8 +5,7 @@ noinst_PROGRAMS = @EXTRA_TEST@
5TESTS = @EXTRA_TEST@ 5TESTS = @EXTRA_TEST@
6check_PROGRAMS = @EXTRA_TEST@ 6check_PROGRAMS = @EXTRA_TEST@
7 7
8# See lib/Makefile.am 8AM_CPPFLAGS = -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\"
9DEFS = -DNP_STATE_DIR_PREFIX='"$(localstatedir)"'
10 9
11INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins 10INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins
12 11