Commit 0e15ee61 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Added support to make it possible to detect an Itanium process or SLES 10

parent a51ee32b
...@@ -16,6 +16,9 @@ check_cpu () { ...@@ -16,6 +16,9 @@ check_cpu () {
# on Linux (and others?) we can get detailed CPU information out of /proc # on Linux (and others?) we can get detailed CPU information out of /proc
cpuinfo="cat $CPUINFO" cpuinfo="cat $CPUINFO"
# detect CPU architecture
cpu_arch=`$cpuinfo | grep 'arch' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
# detect CPU family # detect CPU family
cpu_family=`$cpuinfo | grep 'family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` cpu_family=`$cpuinfo | grep 'family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
if test -z "$cpu_family" ; then if test -z "$cpu_family" ; then
...@@ -60,7 +63,7 @@ check_cpu () { ...@@ -60,7 +63,7 @@ check_cpu () {
# detect CPU shortname as used by gcc options # detect CPU shortname as used by gcc options
# this list is not complete, feel free to add further entries # this list is not complete, feel free to add further entries
cpu_arg="" cpu_arg=""
case "$cpu_family--$model_name" in case "$cpu_family--$model_name--$spu_arch" in
# DEC Alpha # DEC Alpha
Alpha*EV6*) Alpha*EV6*)
cpu_arg="ev6"; cpu_arg="ev6";
...@@ -137,6 +140,9 @@ check_cpu () { ...@@ -137,6 +140,9 @@ check_cpu () {
*Itanium*) *Itanium*)
cpu_arg="itanium" cpu_arg="itanium"
;; ;;
*IA-64*)
cpu_arg="itanium"
;;
# Solaris Sparc # Solaris Sparc
*sparc*sun4u*) *sparc*sun4u*)
cpu_arg="sparc" cpu_arg="sparc"
......
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