]> granicus.if.org Git - ipset/commitdiff
Check from `configure` that the kernel source is patched with netlink.patch
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 18 Dec 2010 22:02:48 +0000 (23:02 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 18 Dec 2010 22:02:48 +0000 (23:02 +0100)
configure.ac

index 5ac7c86db4fc4d2a6c486eaed347ee2245dddaa8..85073f4de3588f958c3db374b78bb67043427440 100644 (file)
@@ -56,6 +56,11 @@ then
        AC_MSG_ERROR([The kernel build directory $kbuilddir is not configured with IP6_NF_IPTABLES support (ip6tables)])
 fi
 
+if test "X`$GREP 'NFNL_SUBSYS_IPSET' $ksourcedir/include/linux/netfilter/nfnetlink.h`" = "X"
+then
+       AC_MSG_ERROR([The kernel source directory $ksourcedir is not patched with netlink.patch to support ipset])
+fi
+
 dnl Check kernel dependencies: nfnetlink.h
 NFNL_CB_CONST="`./check_const $ksourcedir/include/linux/netfilter/nfnetlink.h`"
 AC_SUBST(NFNL_CB_CONST)