]> code.ossystems Code Review - openembedded-core.git/blob
b711b7aa369445109694cfa84917b340b50711da
[openembedded-core.git] /
1 [PATCH] configure: Add option to enable/disable libnfnetlink
2
3 This changes the configure behaviour from autodetecting
4 for libnfnetlink to having an option to disable it explicitly
5
6 Upstream-Status: Pending
7
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 Signed-off-by: Maxin B. John <maxin.john@intel.com>
10 ---
11 diff -Naur iptables-1.6.0-old/configure.ac iptables-1.6.0/configure.ac
12 --- iptables-1.6.0-old/configure.ac     2015-12-28 18:40:35.255417976 +0200
13 +++ iptables-1.6.0/configure.ac 2015-12-29 13:01:12.388840200 +0200
14 @@ -63,6 +63,9 @@
15  AC_ARG_ENABLE([nftables],
16         AS_HELP_STRING([--disable-nftables], [Do not build nftables compat]),
17         [enable_nftables="$enableval"], [enable_nftables="yes"])
18 +AC_ARG_ENABLE([libnfnetlink],
19 +    AS_HELP_STRING([--disable-libnfnetlink], [Do not use netfilter netlink library]),
20 +    [enable_libnfnetlink="$enableval"], [enable_libnfnetlink="yes"])
21  
22  libiptc_LDFLAGS2="";
23  AX_CHECK_LINKER_FLAGS([-Wl,--no-as-needed],
24 @@ -123,9 +126,10 @@
25         AC_CHECK_LIB(pcap, pcap_compile,, AC_MSG_ERROR(missing libpcap library required by bpf compiler or nfsynproxy tool))
26  fi
27  
28 -PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
29 -       [nfnetlink=1], [nfnetlink=0])
30 -AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1])
31 +AS_IF([test "x$enable_libnfnetlink" = "xyes"], [
32 +    PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0])
33 +    ])
34 +AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "x$enable_libnfnetlink" = "xyes"])
35  
36  if test "x$enable_nftables" = "xyes"; then
37         PKG_CHECK_MODULES([libmnl], [libmnl >= 1.0], [mnl=1], [mnl=0])