diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-11-20 20:05:54 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-11-20 20:05:54 +0100 |
commit | d8d0646b4afada459d9b88655995c08623f125fb (patch) | |
tree | e1478fd9eac0a1b46d7c3041a6909ef7b92a5892 /config.guess | |
parent | 9ad07dc999d5bdaa17d1ded60f02a49ad76000b9 (diff) | |
download | gmp-d8d0646b4afada459d9b88655995c08623f125fb.tar.gz |
* config.guess (alpha*-*-openbsd*): Do exact cpu detection.
Plus a spot of reformatting for the x86 detection code.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/config.guess b/config.guess index b7226dfec..71ef84181 100755 --- a/config.guess +++ b/config.guess @@ -99,7 +99,7 @@ fi case "$guess_full" in -alpha*-*-netbsd* | alpha*-*-freebsd*) +alpha*-*-netbsd* | alpha*-*-freebsd* | alpha*-*-openbsd*) # configfsf.guess has a block of code not unlike this for OSF and linsux. # Perhaps it'll support *BSD too some time, in which case the code here # can be removed. @@ -208,18 +208,13 @@ main () switch (family) { case 5: - if (model <= 2) - modelstr = "pentium"; - else if (model >= 4) - modelstr = "pentiummmx"; + if (model <= 2) modelstr = "pentium"; + else if (model >= 4) modelstr = "pentiummmx"; break; case 6: - if (model == 1) - modelstr = "pentiumpro"; - else if (model <= 6) - modelstr = "pentium2"; - else - modelstr = "pentium3"; + if (model == 1) modelstr = "pentiumpro"; + else if (model <= 6) modelstr = "pentium2"; + else modelstr = "pentium3"; break; } } @@ -228,14 +223,10 @@ main () switch (family) { case 5: - if (model <= 3) - modelstr = "k5"; - else if (model <= 7) - modelstr = "k6"; - else if (model <= 8) - modelstr = "k62"; - else if (model <= 9) - modelstr = "k63"; + if (model <= 3) modelstr = "k5"; + else if (model <= 7) modelstr = "k6"; + else if (model <= 8) modelstr = "k62"; + else if (model <= 9) modelstr = "k63"; break; case 6: modelstr = "athlon"; |