From 18ae855bc06472e7fa714ec177f2db4b32f82d8a Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Sat, 18 Dec 2010 23:02:48 +0100 Subject: Check from `configure` that the kernel source is patched with netlink.patch --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 5ac7c86..85073f4 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- cgit v1.2.3