summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorstewart@mysql.com <>2005-06-06 10:56:20 +1000
committerstewart@mysql.com <>2005-06-06 10:56:20 +1000
commit3af5b8e5c1a5977e779a64e156a396f2bbaee173 (patch)
tree29ccbf675b822038ca623f32d751e1a67c1c277c /BUILD
parent5ec15497760ca41368e2b9bcd020b4f4b3de91a1 (diff)
downloadmariadb-git-3af5b8e5c1a5977e779a64e156a396f2bbaee173.tar.gz
Fix BUILD/check-cpu for powerpc
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu13
1 files changed, 8 insertions, 5 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 3ceb9c269fe..b970a4b9a5b 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -28,7 +28,7 @@ if test -r /proc/cpuinfo ; then
fi
# parse CPU flags
- for flag in `$cpuinfo | grep 'flags' | sed -e 's/^flags.*: //'`; do
+ for flag in `$cpuinfo | grep '^flags' | sed -e 's/^flags.*: //'`; do
eval cpu_flag_$flag=yes
done
else
@@ -52,7 +52,6 @@ fi
# detect CPU shortname as used by gcc options
# this list is not complete, feel free to add further entries
cpu_arg=""
-
case "$cpu_family--$model_name" in
# DEC Alpha
Alpha*EV6*)
@@ -98,9 +97,13 @@ case "$cpu_family--$model_name" in
cpu_arg="";
;;
- #
+ #
+ *ppc*)
+ cpu_arg='powerpc'
+ ;;
+
*powerpc*)
- cpu_arg=`echo $model_name | sed -e"s/ppc//g"`
+ cpu_arg='powerpc'
;;
# unknown
@@ -111,7 +114,7 @@ esac
if test -z "$cpu_arg"; then
- echo "BUILD/check-cpu: Oops, could not findout what kind of cpu this machine is using."
+ echo "BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using."
check_cpu_cflags=""
return
fi