1 --- xtables-addons-1.27/configure.ac~ 2010-05-16 22:19:02.000000000 +0200
2 +++ xtables-addons-1.27/configure.ac 2010-06-07 22:46:52.942325149 +0200
4 -I\${XA_TOPSRCDIR}/include";
7 -# check kernel version
9 -if grep -q "CentOS release 5\." /etc/redhat-release 2>/dev/null ||
10 - grep -q "Red Hat Enterprise Linux Server release 5" /etc/redhat-release 2>/dev/null; then
12 - # Well, just a warning. Maybe the admin updated the kernel.
13 - echo "WARNING: This distribution's shipped kernel is not supported.";
15 -krel="$(make -sC ${kbuilddir} kernelrelease)";
17 -kmajor="${krel%%.*}";
19 -kminor="${krel%%.*}";
21 -kmicro="${krel%%.*}";
22 -if test "$kmicro" = "$krel"; then
25 - kstable="${krel#*.}";
26 - if test -z "$kstable"; then
30 -echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
31 -if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 35; then
32 - echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
33 -elif test \( "$kmajor" -lt 2 -o "$kminor" -lt 6 -o "$kmicro" -lt 17 \) -o \
34 - \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
35 - "$kstable" -lt 5 \); then
36 - echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration.";
40 AC_SUBST([regular_CFLAGS])