diff options
author | unknown <msvensson@neptunus.(none)> | 2005-05-09 11:26:03 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-05-09 11:26:03 +0200 |
commit | 4bcd10945c9f3aaf8e09e3f8fa3b86950c39adf9 (patch) | |
tree | d320348131359447c304d73a3f8c7c6b1ba79355 /BUILD | |
parent | c2f40489f289cd21fc06a5abea165654d85b5e10 (diff) | |
download | mariadb-git-4bcd10945c9f3aaf8e09e3f8fa3b86950c39adf9.tar.gz |
Fix check-cpu, add more recognized cpus
BUILD/check-cpu:
Recognize more cpu's
Fix for older compilers
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/check-cpu | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu index ce106e5a603..d50a83a5475 100755 --- a/BUILD/check-cpu +++ b/BUILD/check-cpu @@ -33,6 +33,9 @@ else esac fi +cpu_flag="" +cpu_flag_obs="" + case "$cpu_family--$model_name" in Alpha*EV6*) cpu_flag="ev6"; @@ -40,11 +43,21 @@ case "$cpu_family--$model_name" in *Xeon*) cpu_flag="nocona"; ;; + *Pentium*4*Mobile*CPU*) + cpu_flag="pentium4m"; + ;; *Pentium*4*CPU*) cpu_flag="pentium4"; ;; + *Pentium*III*Mobile*CPU*) + cpu_flag="pentium3m"; + ;; + *Pentium*III*CPU*) + cpu_flag="pentium3"; + ;; *Athlon*64*) cpu_flag="athlon64"; + cpu_flag_obs="athlon"; ;; *Athlon*) cpu_flag="athlon"; @@ -84,6 +97,9 @@ case "$cc_ver--$cc_verno" in check_cpu_cflags="-mtune=$cpu_flag -march=$cpu_flag" ;; *GCC*) + # Fix for older compiler versions + if test -z "$cpu_flag_obs"; then + cpu_flag=$cpu_flag_obs; check_cpu_cflags="-mcpu=$cpu_flag -march=$cpu_flag" ;; *) |