]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
ulogd: permit compilation of plugin outside of tree
authorEric Leblond <eric@inl.fr>
Sun, 5 Apr 2009 10:34:31 +0000 (12:34 +0200)
committerEric Leblond <eric@inl.fr>
Sun, 5 Apr 2009 10:34:31 +0000 (12:34 +0200)
This patch modifies Makefile.am to install the headers needed for
compilation of plugins outside of the source tree.

include/Makefile.am
include/ulogd/Makefile.am
include/ulogd/ulogd.h

index fa3447374ea1bd01db3e495c5b791c044db4702c..0e0b87ab1305dc6a74c5cf89b9d79f4a84190bbf 100644 (file)
@@ -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
index 9b8a3d12d5f11eebe4a181a44abb53ad9b3122d5..de9c8f2b21eaa99db73c5ce54f319aa9c03f01f9 100644 (file)
@@ -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
index 2d1b348dd82f198535e4abd1b3c5e3a03310b11b..3069454062851dc21d68a026925c71b7b0c30f53 100644 (file)
@@ -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]))