summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorunknown <tonu@volk.internalnet>2001-10-30 23:44:49 +0200
committerunknown <tonu@volk.internalnet>2001-10-30 23:44:49 +0200
commitadd0fffdde0540780e03b77e8e38cfd2382926dc (patch)
tree723e5864ccae5bd3eefaf508ae3ac8b8bfc2617f /acinclude.m4
parent1baa552749eab973ce7814a47d4f3826ffd71bfe (diff)
downloadmariadb-git-add0fffdde0540780e03b77e8e38cfd2382926dc.tar.gz
Fixed processor detection script to be more portable
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0b1216dbf5a..ad043adf783 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -652,21 +652,21 @@ if test -r /proc/cpuinfo ; then
cpu_vendor=`$cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
fi
if test "$cpu_vendor" = "AuthenticAMD"; then
- if test $cpu_family>=6; then
+ if test $cpu_family -ge 6; then
cpu_set="athlon pentiumpro k5 pentium i486 i386";
- elif test $cpu_family=5; then
+ elif test $cpu_family -eq 5; then
cpu_set="k5 pentium i486 i386";
- elif test $cpu_family=4; then
+ elif test $cpu_family -eq 4; then
cpu_set="i486 i386"
else
cpu_set="i386"
fi
elif test "$cpu_vendor" = "GenuineIntel"; then
- if test $cpu_family>=6; then
+ if test $cpu_family -ge 6; then
cpu_set="pentiumpro pentium i486 i386";
- elif test $cpu_family=5; then
+ elif test $cpu_family -eq 5; then
cpu_set="pentium i486 i386";
- elif test $cpu_family=4; then
+ elif test $cpu_family -eq 4; then
cpu_set="i486 i386"
else
cpu_set="i386"