]> git.pld-linux.org Git - packages/xtables-addons.git/blame - kernelrelease.patch
- release 4
[packages/xtables-addons.git] / kernelrelease.patch
CommitLineData
7a84f6be
JB
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
3@@ -40,49 +40,6 @@
83cb19e1
JB
4 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
5 -Winline -pipe";
e48d6489 6
521d42c3 7-#
e48d6489 8-# check kernel version
9-#
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
12- # しまった!
13- # Well, just a warning. Maybe the admin updated the kernel.
14- echo "WARNING: This distribution's shipped kernel is not supported.";
15-fi;
7a84f6be
JB
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}}";
22- krel="${krel#.}";
23- kminor="${krel%%[[^0-9]]*}";
24- kminor="$(($kminor+0))";
25- krel="${krel:${#kminor}}";
26- krel="${krel#.}";
27- kmicro="${krel%%[[^0-9]]*}";
28- kmicro="$(($kmicro+0))";
29- krel="${krel:${#kmicro}}";
30- krel="${krel#.}";
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.";
35- else
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.";
45- exit 1;
46- fi;
521d42c3 47- fi;
e48d6489 48-fi;
521d42c3 49-
83cb19e1 50 AC_SUBST([regular_CPPFLAGS])
e48d6489 51 AC_SUBST([regular_CFLAGS])
8af0bca6 52 AC_SUBST([kbuilddir])
This page took 0.097222 seconds and 4 git commands to generate.