Description: Disable kernel check in configure script if no dkms is used
 This means it's skipped during package build but not during install
 time when a build of the kernel module is being triggered via dkms.
Author: Axel Beckert <abe@debian.org>
Forwarded: not-needed

--- a/configure
+++ b/configure
@@ -630,6 +630,7 @@
 
 echo "Module version: $(./version.sh)"
 
+if [ "$SKIPDKMS" != 1 ]; then
 kernel_find_version	#KVERSION
 test "$KLIBMOD" || KLIBMOD=$KVERSION
 echo "Kernel version: $KVERSION ($KHOW)"
@@ -638,6 +639,7 @@
 kernel_check_consistency
 kernel_check_config
 kernel_check_features
+fi
 
 CC=${CC:-gcc}
 test "$IPTBIN" || IPTBIN=`which iptables`
