summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2020-02-22 12:51:24 +0100
committerJozsef Kadlecsik <kadlec@netfilter.org>2020-02-22 12:51:24 +0100
commit33f388112b552e536c2d1cb75541f5b14448f05a (patch)
tree991406311fad38c3c59aa3f7d4d84c7d22e07c2b
parentc281026e0bde52d1de37c72c11ce9bc5538661a4 (diff)
downloadipset-33f388112b552e536c2d1cb75541f5b14448f05a.tar.gz
Add checking system_power_efficient_wq in the kernel source tree
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 69a97a9..2b80248 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,6 +206,16 @@ AC_CHECK_FUNCS(gethostbyname2)
if test "$BUILDKMOD" == "yes"
then
dnl Check kernel incompatibilities... Ugly like hell
+
+AC_MSG_CHECKING([kernel source for system_power_efficient_wq])
+if test -f $ksourcedir/include/linux/workqueue.h && \
+ $GREP -q 'system_power_efficient_wq' $ksourcedir/include/linux/workqueue.h; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR([Kernel source tree is too old, at least v3.11 is required])
+fi
+
AC_MSG_CHECKING([kernel source for struct xt_action_param])
if test -f $ksourcedir/include/linux/netfilter/x_tables.h && \
$GREP -q 'struct xt_action_param' $ksourcedir/include/linux/netfilter/x_tables.h; then