From: Jozsef Kadlecsik Date: Sat, 18 Dec 2010 22:02:48 +0000 (+0100) Subject: Check from `configure` that the kernel source is patched with netlink.patch X-Git-Tag: v5.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18ae855bc06472e7fa714ec177f2db4b32f82d8a;p=thirdparty%2Fipset.git Check from `configure` that the kernel source is patched with netlink.patch --- diff --git a/configure.ac b/configure.ac index 5ac7c86d..85073f4d 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)