]>
Commit | Line | Data |
---|---|---|
8f462252 AM |
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 | |
3 | @@ -38,38 +38,6 @@ | |
8af0bca6 | 4 | -I\${XA_TOPSRCDIR}/include"; |
e48d6489 | 5 | |
8f462252 | 6 | # |
e48d6489 | 7 | -# check kernel version |
8 | -# | |
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 | |
11 | - # しまった! | |
12 | - # Well, just a warning. Maybe the admin updated the kernel. | |
13 | - echo "WARNING: This distribution's shipped kernel is not supported."; | |
14 | -fi; | |
15 | -krel="$(make -sC ${kbuilddir} kernelrelease)"; | |
16 | -krel="${krel%%-*}"; | |
17 | -kmajor="${krel%%.*}"; | |
18 | -krel="${krel#*.}"; | |
19 | -kminor="${krel%%.*}"; | |
20 | -krel="${krel#*.}"; | |
21 | -kmicro="${krel%%.*}"; | |
8af0bca6 | 22 | -if test "$kmicro" = "$krel"; then |
e48d6489 | 23 | - kstable=0; |
b5980a9a | 24 | -else |
8af0bca6 | 25 | - kstable="${krel#*.}"; |
b5980a9a TP |
26 | - if test -z "$kstable"; then |
27 | - kstable=0; | |
28 | - fi; | |
e48d6489 | 29 | -fi; |
30 | -echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir"; | |
8f462252 | 31 | -if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 35; then |
e48d6489 | 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."; | |
37 | - exit 1; | |
38 | -fi; | |
8f462252 | 39 | |
e48d6489 | 40 | AC_SUBST([regular_CFLAGS]) |
8af0bca6 | 41 | AC_SUBST([kbuilddir]) |