1 --- xtables-addons-1.36/configure.ac.orig 2011-06-03 16:45:29.000000000 +0200
2 +++ xtables-addons-1.36/configure.ac 2011-06-11 14:23:36.451762729 +0200
4 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
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}}";
14 - kminor="${krel%%[[^0-9]]*}";
15 - kminor="$(($kminor+0))";
16 - krel="${krel:${#kminor}}";
18 - kmicro="${krel%%[[^0-9]]*}";
19 - kmicro="$(($kmicro+0))";
20 - krel="${krel:${#kmicro}}";
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.";
27 - echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
28 - if test "$kmajor" -gt 3 -o "$kmajor" -eq 3 -a "$kminor" -gt 1; then
29 - echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
30 - elif test "$kmajor" -eq 3; then
32 - elif test "$kmajor" -eq 2 -a "$kminor" -ge 29; then
35 - echo "WARNING: That kernel version is not supported.";
40 AC_SUBST([regular_CPPFLAGS])
41 AC_SUBST([regular_CFLAGS])