summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2009-04-05 12:34:31 +0200
committerEric Leblond <eric@inl.fr>2009-04-05 12:34:31 +0200
commit0ff525cb0506b2c043bc9df6d7e7b486c865bc38 (patch)
tree8719d7c04bb28e3e1989f2393e2e0fa5a73ce21e /include
parent2d92db0597ce4291f38606fd2789876034fab12f (diff)
ulogd: permit compilation of plugin outside of tree
This patch modifies Makefile.am to install the headers needed for compilation of plugins outside of the source tree.
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/ulogd/Makefile.am3
-rw-r--r--include/ulogd/ulogd.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index fa34473..0e0b87a 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1 +1,2 @@
SUBDIRS = ulogd libipulog
+nobase_include_HEADERS = ulogd/conffile.h ulogd/ipfix_protocol.h ulogd/linuxlist.h ulogd/ulogd.h ulogd/common.h ulogd/linux_rbtree.h ulogd/timer.h ulogd/slist.h ulogd/hash.h ulogd/jhash.h
diff --git a/include/ulogd/Makefile.am b/include/ulogd/Makefile.am
index 9b8a3d1..de9c8f2 100644
--- a/include/ulogd/Makefile.am
+++ b/include/ulogd/Makefile.am
@@ -1,2 +1 @@
-
-noinst_HEADERS = conffile.h db.h ipfix_protocol.h linuxlist.h ulogd.h printpkt.h printflow.h common.h linux_rbtree.h timer.h slist.h hash.h jhash.h
+noinst_HEADERS = db.h printpkt.h printflow.h
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h
index 2d1b348..3069454 100644
--- a/include/ulogd/ulogd.h
+++ b/include/ulogd/ulogd.h
@@ -19,7 +19,9 @@
#include <signal.h> /* need this because of extension-sighandler */
#include <sys/types.h>
#include <string.h>
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))