summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@macbook.gmz>2006-08-10 17:35:21 +0300
committerunknown <gkodinov/kgeorge@macbook.gmz>2006-08-10 17:35:21 +0300
commit4a8c861c0538b4fe9a5a699bafcd84d06db7e093 (patch)
treec1dac01ef0efa9222943bbac32c16b990946fa6d /BUILD
parent1cf65f311dbf09615bea443b041a78db34d7e2ea (diff)
downloadmariadb-git-4a8c861c0538b4fe9a5a699bafcd84d06db7e093.tar.gz
Fix for check_cpu to work correctly on MacOSX/Intel.
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu6
1 files changed, 5 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index dc894c91cbd..d12a690eaa8 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -93,6 +93,10 @@ case "$cpu_family--$model_name" in
*Opteron*)
cpu_arg="opteron";
;;
+ # MacOSX / Intel
+ *i386*i486*)
+ cpu_arg="pentium-m";
+ ;;
# Intel ia64
*Itanium*)
@@ -131,7 +135,7 @@ else
fi
cc_ver=`$cc --version | sed 1q`
-cc_verno=`echo $cc_ver | sed -e 's/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
+cc_verno=`echo $cc_ver | sed -e 's/^.*gcc/gcc/g; s/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
case "$cc_ver--$cc_verno" in
*GCC*)