All of lore.kernel.org
 help / color / mirror / Atom feed
* [contrack-tools PATCH] build: do not compile nfct if we disabled cttimeout
@ 2014-05-08 10:02 Hangbin Liu
  2014-05-09 11:29 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 8+ messages in thread
From: Hangbin Liu @ 2014-05-08 10:02 UTC (permalink / raw)
  To: netfilter dev; +Cc: Hangbin Liu

If we do not have libnetfilter_cttimeout and disabled cttimeout, conntrack-tools
will compile fail because nfct.c include nfnetlink_cttimeout.h. Fix it by only
compile nfct when we have enabled cttimeout
---
 src/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 1bc3622..3f8ddee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,10 @@ AM_YFLAGS = -d
 
 CLEANFILES = read_config_yy.c read_config_lex.c
 
-sbin_PROGRAMS = conntrack conntrackd nfct
+sbin_PROGRAMS = conntrack conntrackd
+if HAVE_CTTIMEOUT
+sbin_PROGRAMS += nfct
+endif
 
 conntrack_SOURCES = conntrack.c
 conntrack_LDADD = ../extensions/libct_proto_tcp.la ../extensions/libct_proto_udp.la ../extensions/libct_proto_udplite.la ../extensions/libct_proto_icmp.la ../extensions/libct_proto_icmpv6.la ../extensions/libct_proto_sctp.la ../extensions/libct_proto_dccp.la ../extensions/libct_proto_gre.la ../extensions/libct_proto_unknown.la ${LIBNETFILTER_CONNTRACK_LIBS} ${LIBMNL_LIBS} ${LIBNFNETLINK_LIBS}
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-12 15:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08 10:02 [contrack-tools PATCH] build: do not compile nfct if we disabled cttimeout Hangbin Liu
2014-05-09 11:29 ` Pablo Neira Ayuso
2014-05-09 11:54   ` Hangbin Liu
2014-05-09 13:59     ` Pablo Neira Ayuso
2014-05-10  2:51       ` Hangbin Liu
2014-05-12 15:23         ` Pablo Neira Ayuso
2014-05-12 15:24           ` Pablo Neira Ayuso
2014-05-12 15:43             ` Hangbin Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.