Mercurial > emacs
comparison config.guess @ 19847:f4f4b72d1239
(alpha): Replace CPU-determining program with one that's more precise
and also supports pca56 and ev6. Handle those in returned name.
author | Richard Kenner <kenner@gnu.org> |
---|---|
date | Tue, 09 Sep 1997 14:10:23 +0000 |
parents | 97dbdfb505f9 |
children | 2d662878358c |
comparison
equal
deleted
inserted
replaced
19846:f5f2feb0bd0f | 19847:f4f4b72d1239 |
---|---|
63 .globl main | 63 .globl main |
64 .ent main | 64 .ent main |
65 main: | 65 main: |
66 .frame \$30,0,\$26,0 | 66 .frame \$30,0,\$26,0 |
67 .prologue 0 | 67 .prologue 0 |
68 .long 0x47e03d84 | 68 .long 0x47e03d80 # implver $0 |
69 cmoveq \$4,0,\$3 | 69 lda \$2,259 |
70 addl \$3,\$31,\$0 | 70 .long 0x47e20c21 # amask $2,$1 |
71 srl \$1,8,\$2 | |
72 sll \$2,2,\$2 | |
73 sll \$0,3,\$0 | |
74 addl \$1,\$0,\$0 | |
75 addl \$2,\$0,\$0 | |
71 ret \$31,(\$26),1 | 76 ret \$31,(\$26),1 |
72 .end main | 77 .end main |
73 EOF | 78 EOF |
74 ${CC-cc} dummy.s -o dummy 2>/dev/null | 79 ${CC-cc} dummy.s -o dummy 2>/dev/null |
75 if test "$?" = 0 ; then | 80 if test "$?" = 0 ; then |
76 ./dummy | 81 ./dummy |
77 case "$?" in | 82 case "$?" in |
78 1) | 83 7) |
84 UNAME_MACHINE="alpha" | |
85 ;; | |
86 15) | |
79 UNAME_MACHINE="alphaev5" | 87 UNAME_MACHINE="alphaev5" |
80 ;; | 88 ;; |
81 2) | 89 14) |
82 UNAME_MACHINE="alphaev56" | 90 UNAME_MACHINE="alphaev56" |
91 ;; | |
92 10) | |
93 UNAME_MACHINE="alphapca56" | |
94 ;; | |
95 16) | |
96 UNAME_MACHINE="alphaev6" | |
83 ;; | 97 ;; |
84 esac | 98 esac |
85 fi | 99 fi |
86 rm -f dummy.s dummy | 100 rm -f dummy.s dummy |
87 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` | 101 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` |
501 .globl main | 515 .globl main |
502 .ent main | 516 .ent main |
503 main: | 517 main: |
504 .frame \$30,0,\$26,0 | 518 .frame \$30,0,\$26,0 |
505 .prologue 0 | 519 .prologue 0 |
506 .long 0x47e03d84 | 520 .long 0x47e03d80 # implver $0 |
507 cmoveq \$4,0,\$3 | 521 lda \$2,259 |
508 addl \$3,\$31,\$0 | 522 .long 0x47e20c21 # amask $2,$1 |
523 srl \$1,8,\$2 | |
524 sll \$2,2,\$2 | |
525 sll \$0,3,\$0 | |
526 addl \$1,\$0,\$0 | |
527 addl \$2,\$0,\$0 | |
509 ret \$31,(\$26),1 | 528 ret \$31,(\$26),1 |
510 .end main | 529 .end main |
511 EOF | 530 EOF |
512 LIBC="" | 531 LIBC="" |
513 ${CC-cc} dummy.s -o dummy 2>/dev/null | 532 ${CC-cc} dummy.s -o dummy 2>/dev/null |
514 if test "$?" = 0 ; then | 533 if test "$?" = 0 ; then |
515 ./dummy | 534 ./dummy |
516 case "$?" in | 535 case "$?" in |
517 1) | 536 7) |
518 UNAME_MACHINE="alphaev5" | 537 UNAME_MACHINE="alpha" |
519 ;; | 538 ;; |
520 2) | 539 15) |
521 UNAME_MACHINE="alphaev56" | 540 UNAME_MACHINE="alphaev5" |
522 ;; | 541 ;; |
542 14) | |
543 UNAME_MACHINE="alphaev56" | |
544 ;; | |
545 10) | |
546 UNAME_MACHINE="alphapca56" | |
547 ;; | |
548 16) | |
549 UNAME_MACHINE="alphaev6" | |
550 ;; | |
523 esac | 551 esac |
524 | 552 |
525 objdump --private-headers dummy | \ | 553 objdump --private-headers dummy | \ |
526 grep ld.so.1 > /dev/null | 554 grep ld.so.1 > /dev/null |
527 if test "$?" = 0 ; then | 555 if test "$?" = 0 ; then |