Fix for check_cpu to work correctly on MacOSX/Intel.

parent 83896aa8
...@@ -93,6 +93,10 @@ case "$cpu_family--$model_name" in ...@@ -93,6 +93,10 @@ case "$cpu_family--$model_name" in
*Opteron*) *Opteron*)
cpu_arg="opteron"; cpu_arg="opteron";
;; ;;
# MacOSX / Intel
*i386*i486*)
cpu_arg="pentium-m";
;;
# Intel ia64 # Intel ia64
*Itanium*) *Itanium*)
...@@ -131,7 +135,7 @@ else ...@@ -131,7 +135,7 @@ else
fi fi
cc_ver=`$cc --version | sed 1q` 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 case "$cc_ver--$cc_verno" in
*GCC*) *GCC*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment