1 --- xtables-addons-1.33/configure.ac.orig 2011-02-02 05:21:56.000000000 +0100
2 +++ xtables-addons-1.33/configure.ac 2011-03-25 16:15:47.004912129 +0100
4 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
8 -# check kernel version
10 -if grep -q "CentOS release 5\." /etc/redhat-release 2>/dev/null ||
11 - grep -q "Red Hat Enterprise Linux Server release 5" /etc/redhat-release 2>/dev/null; then
13 - # Well, just a warning. Maybe the admin updated the kernel.
14 - echo "WARNING: This distribution's shipped kernel is not supported.";
16 -if test -n "$kbuilddir"; then
17 - AC_MSG_CHECKING([kernel version that we will build against])
18 - krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
19 - kmajor="${krel%%[[^0-9]]*}";
20 - kmajor="$(($kmajor+0))";
21 - krel="${krel:${#kmajor}}";
23 - kminor="${krel%%[[^0-9]]*}";
24 - kminor="$(($kminor+0))";
25 - krel="${krel:${#kminor}}";
27 - kmicro="${krel%%[[^0-9]]*}";
28 - kmicro="$(($kmicro+0))";
29 - krel="${krel:${#kmicro}}";
31 - kstable="${krel%%[[^0-9]]*}";
32 - kstable="$(($kstable+0))";
33 - if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
34 - echo "WARNING: Version detection did not succeed. Continue at own luck.";
36 - echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
37 - if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
38 - echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
39 - elif test \( "$kmajor" -lt 2 -o \
40 - \( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
41 - \( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
42 - \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
43 - "$kstable" -lt 5 \) \); then
44 - echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration.";
50 AC_SUBST([regular_CPPFLAGS])
51 AC_SUBST([regular_CFLAGS])