]> git.pld-linux.org Git - packages/xtables-addons.git/blob - kernelrelease.patch
- release 10
[packages/xtables-addons.git] / kernelrelease.patch
1 --- xtables-addons-1.35/configure.ac.orig       2011-04-11 18:37:32.000000000 +0200
2 +++ xtables-addons-1.35/configure.ac    2011-05-06 20:03:27.286191084 +0200
3 @@ -40,44 +40,6 @@
4         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
5         -Winline -pipe";
6  
7 -if test -n "$kbuilddir"; then
8 -       AC_MSG_CHECKING([kernel version that we will build against])
9 -       krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
10 -       kmajor="${krel%%[[^0-9]]*}";
11 -       kmajor="$(($kmajor+0))";
12 -       krel="${krel:${#kmajor}}";
13 -       krel="${krel#.}";
14 -       kminor="${krel%%[[^0-9]]*}";
15 -       kminor="$(($kminor+0))";
16 -       krel="${krel:${#kminor}}";
17 -       krel="${krel#.}";
18 -       kmicro="${krel%%[[^0-9]]*}";
19 -       kmicro="$(($kmicro+0))";
20 -       krel="${krel:${#kmicro}}";
21 -       krel="${krel#.}";
22 -       kstable="${krel%%[[^0-9]]*}";
23 -       kstable="$(($kstable+0))";
24 -       if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
25 -               echo "WARNING: Version detection did not succeed. Continue at own luck.";
26 -       else
27 -               echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
28 -               if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
29 -                       echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
30 -               elif test "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -ge 29; then
31 -                       :; # everything ok
32 -               elif test \( "$kmajor" -lt 2 -o \
33 -                   \( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
34 -                   \( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
35 -                   \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
36 -                   "$kstable" -lt 5 \) \); then
37 -                       echo "ERROR: That kernel version is not supported at all. Please see INSTALL for minimum configuration.";
38 -                       exit 1;
39 -               else
40 -                       echo "WARNING: That kernel version has been recently deprecated for use with Xtables-addons). Compilation may fail.";
41 -               fi;
42 -       fi;
43 -fi;
44 -
45  AC_SUBST([regular_CPPFLAGS])
46  AC_SUBST([regular_CFLAGS])
47  AC_SUBST([kbuilddir])
This page took 0.059709 seconds and 3 git commands to generate.