Changeset 5479 in orxonox.OLD for trunk/config.guess
- Timestamp:
- Nov 3, 2005, 8:50:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.guess
r5413 r5479 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.5 6 timestamp='200 4-03-12'4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-05-27' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 18 18 # You should have received a copy of the GNU General Public License 19 19 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 21 # 02110-1301, USA. 21 22 # 22 23 # As a special exception to the GNU General Public License, if you … … 24 25 # configuration script generated by Autoconf, you may include it under 25 26 # the same distribution terms that you use for the rest of that program. 27 26 28 27 29 # Originally written by Per Bothner <per@bothner.com>. … … 54 56 55 57 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 57 59 Free Software Foundation, Inc. 58 60 … … 67 69 case $1 in 68 70 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;71 echo "$timestamp" ; exit ;; 70 72 --version | -v ) 71 echo "$version" ; exit 0;;73 echo "$version" ; exit ;; 72 74 --help | --h* | -h ) 73 echo "$usage"; exit 0;;75 echo "$usage"; exit ;; 74 76 -- ) # Stop option processing 75 77 shift; break ;; … … 137 139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 140 139 # Detect uclibc systems. 140 141 LIBC="gnu" 142 if [ -f /usr/include/bits/uClibc_config.h ] 143 then 141 if [ "${UNAME_SYSTEM}" = "Linux" ] ; then 142 eval $set_cc_for_build 143 cat << EOF > $dummy.c 144 #include <features.h> 145 #ifdef __UCLIBC__ 146 # ifdef __UCLIBC_CONFIG_VERSION__ 147 LIBC=uclibc __UCLIBC_CONFIG_VERSION__ 148 # else 144 149 LIBC=uclibc 145 if [[ -n `grep "#define __UCLIBC_CONFIG_VERSION__" /usr/include/bits/uClibc_config.h` ]] 146 then 147 UCLIBC_SUBVER=`sed -n "/#define __UCLIBC_CONFIG_VERSION__ /s///p" /usr/include/bits/uClibc_config.h` 148 LIBC=$LIBC$UCLIBC_SUBVER 149 fi 150 # endif 151 #else 152 LIBC=gnu 153 #endif 154 EOF 155 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` 150 156 fi 151 157 … … 210 216 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 211 217 echo "${machine}-${os}${release}" 212 exit 0;;218 exit ;; 213 219 amd64:OpenBSD:*:*) 214 220 echo x86_64-unknown-openbsd${UNAME_RELEASE} 215 exit 0;;221 exit ;; 216 222 amiga:OpenBSD:*:*) 217 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 218 exit 0 ;; 219 arc:OpenBSD:*:*) 220 echo mipsel-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 224 exit ;; 222 225 cats:OpenBSD:*:*) 223 226 echo arm-unknown-openbsd${UNAME_RELEASE} 224 exit 0;;227 exit ;; 225 228 hp300:OpenBSD:*:*) 226 229 echo m68k-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 230 exit ;; 231 luna88k:OpenBSD:*:*) 232 echo m88k-unknown-openbsd${UNAME_RELEASE} 233 exit ;; 228 234 mac68k:OpenBSD:*:*) 229 235 echo m68k-unknown-openbsd${UNAME_RELEASE} 230 exit 0;;236 exit ;; 231 237 macppc:OpenBSD:*:*) 232 238 echo powerpc-unknown-openbsd${UNAME_RELEASE} 233 exit 0;;239 exit ;; 234 240 mvme68k:OpenBSD:*:*) 235 241 echo m68k-unknown-openbsd${UNAME_RELEASE} 236 exit 0;;242 exit ;; 237 243 mvme88k:OpenBSD:*:*) 238 244 echo m88k-unknown-openbsd${UNAME_RELEASE} 239 exit 0;;245 exit ;; 240 246 mvmeppc:OpenBSD:*:*) 241 247 echo powerpc-unknown-openbsd${UNAME_RELEASE} 242 exit 0 ;; 243 pegasos:OpenBSD:*:*) 244 echo powerpc-unknown-openbsd${UNAME_RELEASE} 245 exit 0 ;; 246 pmax:OpenBSD:*:*) 247 echo mipsel-unknown-openbsd${UNAME_RELEASE} 248 exit 0 ;; 248 exit ;; 249 249 sgi:OpenBSD:*:*) 250 echo mips eb-unknown-openbsd${UNAME_RELEASE}251 exit 0;;250 echo mips64-unknown-openbsd${UNAME_RELEASE} 251 exit ;; 252 252 sun3:OpenBSD:*:*) 253 253 echo m68k-unknown-openbsd${UNAME_RELEASE} 254 exit 0 ;; 255 wgrisc:OpenBSD:*:*) 256 echo mipsel-unknown-openbsd${UNAME_RELEASE} 257 exit 0 ;; 254 exit ;; 258 255 *:OpenBSD:*:*) 259 256 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 260 exit 0;;257 exit ;; 261 258 *:ekkoBSD:*:*) 262 259 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 263 exit 0;;260 exit ;; 264 261 macppc:MirBSD:*:*) 265 262 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 266 exit 0;;263 exit ;; 267 264 *:MirBSD:*:*) 268 265 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 269 exit 0;;266 exit ;; 270 267 alpha:OSF1:*:*) 271 268 case $UNAME_RELEASE in … … 320 317 # 1.2 uses "1.2" for uname -r. 321 318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 322 exit 0 ;; 323 Alpha*:OpenVMS:*:*) 324 echo alpha-hp-vms 325 exit 0 ;; 319 exit ;; 326 320 Alpha\ *:Windows_NT*:*) 327 321 # How do we know it's Interix rather than the generic POSIX subsystem? … … 329 323 # of the specific Alpha model? 330 324 echo alpha-pc-interix 331 exit 0;;325 exit ;; 332 326 21064:Windows_NT:50:3) 333 327 echo alpha-dec-winnt3.5 334 exit 0;;328 exit ;; 335 329 Amiga*:UNIX_System_V:4.0:*) 336 330 echo m68k-unknown-sysv4 337 exit 0;;331 exit ;; 338 332 *:[Aa]miga[Oo][Ss]:*:*) 339 333 echo ${UNAME_MACHINE}-unknown-amigaos 340 exit 0;;334 exit ;; 341 335 *:[Mm]orph[Oo][Ss]:*:*) 342 336 echo ${UNAME_MACHINE}-unknown-morphos 343 exit 0;;337 exit ;; 344 338 *:OS/390:*:*) 345 339 echo i370-ibm-openedition 346 exit 0 ;; 340 exit ;; 341 *:z/VM:*:*) 342 echo s390-ibm-zvmoe 343 exit ;; 347 344 *:OS400:*:*) 348 345 echo powerpc-ibm-os400 349 exit 0;;346 exit ;; 350 347 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 351 348 echo arm-acorn-riscix${UNAME_RELEASE} 352 exit 0;; 349 exit ;; 350 arm:riscos:*:*|arm:RISCOS:*:*) 351 echo arm-unknown-riscos 352 exit ;; 353 353 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 354 354 echo hppa1.1-hitachi-hiuxmpp 355 exit 0;;355 exit ;; 356 356 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 357 357 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 361 361 echo pyramid-pyramid-bsd 362 362 fi 363 exit 0;;363 exit ;; 364 364 NILE*:*:*:dcosx) 365 365 echo pyramid-pyramid-svr4 366 exit 0;;366 exit ;; 367 367 DRS?6000:unix:4.0:6*) 368 368 echo sparc-icl-nx6 369 exit 0;;370 DRS?6000:UNIX_SV:4.2*:7* )369 exit ;; 370 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 371 371 case `/usr/bin/uname -p` in 372 sparc) echo sparc-icl-nx7 && exit 0;;372 sparc) echo sparc-icl-nx7; exit ;; 373 373 esac ;; 374 374 sun4H:SunOS:5.*:*) 375 375 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 376 exit 0;;376 exit ;; 377 377 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 378 378 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 379 exit 0;;379 exit ;; 380 380 i86pc:SunOS:5.*:*) 381 381 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 382 exit 0;;382 exit ;; 383 383 sun4*:SunOS:6*:*) 384 384 # According to config.sub, this is the proper way to canonicalize … … 386 386 # it's likely to be more like Solaris than SunOS4. 387 387 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 388 exit 0;;388 exit ;; 389 389 sun4*:SunOS:*:*) 390 390 case "`/usr/bin/arch -k`" in … … 395 395 # Japanese Language versions have a version number like `4.1.3-JL'. 396 396 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 397 exit 0;;397 exit ;; 398 398 sun3*:SunOS:*:*) 399 399 echo m68k-sun-sunos${UNAME_RELEASE} 400 exit 0;;400 exit ;; 401 401 sun*:*:4.2BSD:*) 402 402 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 410 410 ;; 411 411 esac 412 exit 0;;412 exit ;; 413 413 aushp:SunOS:*:*) 414 414 echo sparc-auspex-sunos${UNAME_RELEASE} 415 exit 0;;415 exit ;; 416 416 # The situation for MiNT is a little confusing. The machine name 417 417 # can be virtually everything (everything which is not … … 424 424 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 425 425 echo m68k-atari-mint${UNAME_RELEASE} 426 exit 0;;426 exit ;; 427 427 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 428 428 echo m68k-atari-mint${UNAME_RELEASE} 429 exit 0;;429 exit ;; 430 430 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 431 431 echo m68k-atari-mint${UNAME_RELEASE} 432 exit 0;;432 exit ;; 433 433 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 434 434 echo m68k-milan-mint${UNAME_RELEASE} 435 exit 0;;435 exit ;; 436 436 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 437 437 echo m68k-hades-mint${UNAME_RELEASE} 438 exit 0;;438 exit ;; 439 439 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 440 440 echo m68k-unknown-mint${UNAME_RELEASE} 441 exit 0;;441 exit ;; 442 442 m68k:machten:*:*) 443 443 echo m68k-apple-machten${UNAME_RELEASE} 444 exit 0;;444 exit ;; 445 445 powerpc:machten:*:*) 446 446 echo powerpc-apple-machten${UNAME_RELEASE} 447 exit 0;;447 exit ;; 448 448 RISC*:Mach:*:*) 449 449 echo mips-dec-mach_bsd4.3 450 exit 0;;450 exit ;; 451 451 RISC*:ULTRIX:*:*) 452 452 echo mips-dec-ultrix${UNAME_RELEASE} 453 exit 0;;453 exit ;; 454 454 VAX*:ULTRIX*:*:*) 455 455 echo vax-dec-ultrix${UNAME_RELEASE} 456 exit 0;;456 exit ;; 457 457 2020:CLIX:*:* | 2430:CLIX:*:*) 458 458 echo clipper-intergraph-clix${UNAME_RELEASE} 459 exit 0;;459 exit ;; 460 460 mips:*:*:UMIPS | mips:*:*:RISCos) 461 461 eval $set_cc_for_build … … 481 481 } 482 482 EOF 483 $CC_FOR_BUILD -o $dummy $dummy.c \ 484 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 485 && exit 0 483 $CC_FOR_BUILD -o $dummy $dummy.c && 484 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 485 SYSTEM_NAME=`$dummy $dummyarg` && 486 { echo "$SYSTEM_NAME"; exit; } 486 487 echo mips-mips-riscos${UNAME_RELEASE} 487 exit 0;;488 exit ;; 488 489 Motorola:PowerMAX_OS:*:*) 489 490 echo powerpc-motorola-powermax 490 exit 0;;491 exit ;; 491 492 Motorola:*:4.3:PL8-*) 492 493 echo powerpc-harris-powermax 493 exit 0;;494 exit ;; 494 495 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 495 496 echo powerpc-harris-powermax 496 exit 0;;497 exit ;; 497 498 Night_Hawk:Power_UNIX:*:*) 498 499 echo powerpc-harris-powerunix 499 exit 0;;500 exit ;; 500 501 m88k:CX/UX:7*:*) 501 502 echo m88k-harris-cxux7 502 exit 0;;503 exit ;; 503 504 m88k:*:4*:R4*) 504 505 echo m88k-motorola-sysv4 505 exit 0;;506 exit ;; 506 507 m88k:*:3*:R3*) 507 508 echo m88k-motorola-sysv3 508 exit 0;;509 exit ;; 509 510 AViiON:dgux:*:*) 510 511 # DG/UX returns AViiON for all architectures … … 522 523 echo i586-dg-dgux${UNAME_RELEASE} 523 524 fi 524 exit 0;;525 exit ;; 525 526 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 526 527 echo m88k-dolphin-sysv3 527 exit 0;;528 exit ;; 528 529 M88*:*:R3*:*) 529 530 # Delta 88k system running SVR3 530 531 echo m88k-motorola-sysv3 531 exit 0;;532 exit ;; 532 533 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 533 534 echo m88k-tektronix-sysv3 534 exit 0;;535 exit ;; 535 536 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 536 537 echo m68k-tektronix-bsd 537 exit 0;;538 exit ;; 538 539 *:IRIX*:*:*) 539 540 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 540 exit 0;;541 exit ;; 541 542 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 542 echo romp-ibm-aix 543 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '543 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 544 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 544 545 i*86:AIX:*:*) 545 546 echo i386-ibm-aix 546 exit 0;;547 exit ;; 547 548 ia64:AIX:*:*) 548 549 if [ -x /usr/bin/oslevel ] ; then … … 552 553 fi 553 554 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 554 exit 0;;555 exit ;; 555 556 *:AIX:2:3) 556 557 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 567 568 } 568 569 EOF 569 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 570 echo rs6000-ibm-aix3.2.5 570 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 571 then 572 echo "$SYSTEM_NAME" 573 else 574 echo rs6000-ibm-aix3.2.5 575 fi 571 576 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 572 577 echo rs6000-ibm-aix3.2.4 … … 574 579 echo rs6000-ibm-aix3.2 575 580 fi 576 exit 0;;581 exit ;; 577 582 *:AIX:*:[45]) 578 583 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` … … 588 593 fi 589 594 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 590 exit 0;;595 exit ;; 591 596 *:AIX:*:*) 592 597 echo rs6000-ibm-aix 593 exit 0;;598 exit ;; 594 599 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 595 600 echo romp-ibm-bsd4.4 596 exit 0;;601 exit ;; 597 602 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 598 603 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 599 exit 0 ;;# report: romp-ibm BSD 4.3604 exit ;; # report: romp-ibm BSD 4.3 600 605 *:BOSX:*:*) 601 606 echo rs6000-bull-bosx 602 exit 0;;607 exit ;; 603 608 DPX/2?00:B.O.S.:*:*) 604 609 echo m68k-bull-sysv3 605 exit 0;;610 exit ;; 606 611 9000/[34]??:4.3bsd:1.*:*) 607 612 echo m68k-hp-bsd 608 exit 0;;613 exit ;; 609 614 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 610 615 echo m68k-hp-bsd4.4 611 exit 0;;616 exit ;; 612 617 9000/[34678]??:HP-UX:*:*) 613 618 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 673 678 # avoid double evaluation of $set_cc_for_build 674 679 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 675 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 680 681 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 682 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 683 # generating 64-bit code. GNU and HP use different nomenclature: 684 # 685 # $ CC_FOR_BUILD=cc ./config.guess 686 # => hppa2.0w-hp-hpux11.23 687 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 688 # => hppa64-hp-hpux11.23 689 690 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 691 grep __LP64__ >/dev/null 676 692 then 677 693 HP_ARCH="hppa2.0w" … … 681 697 fi 682 698 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 683 exit 0;;699 exit ;; 684 700 ia64:HP-UX:*:*) 685 701 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 686 702 echo ia64-hp-hpux${HPUX_REV} 687 exit 0;;703 exit ;; 688 704 3050*:HI-UX:*:*) 689 705 eval $set_cc_for_build … … 713 729 } 714 730 EOF 715 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 731 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 732 { echo "$SYSTEM_NAME"; exit; } 716 733 echo unknown-hitachi-hiuxwe2 717 exit 0;;734 exit ;; 718 735 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 719 736 echo hppa1.1-hp-bsd 720 exit 0;;737 exit ;; 721 738 9000/8??:4.3bsd:*:*) 722 739 echo hppa1.0-hp-bsd 723 exit 0;;740 exit ;; 724 741 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 725 742 echo hppa1.0-hp-mpeix 726 exit 0;;743 exit ;; 727 744 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 728 745 echo hppa1.1-hp-osf 729 exit 0;;746 exit ;; 730 747 hp8??:OSF1:*:*) 731 748 echo hppa1.0-hp-osf 732 exit 0;;749 exit ;; 733 750 i*86:OSF1:*:*) 734 751 if [ -x /usr/sbin/sysversion ] ; then … … 737 754 echo ${UNAME_MACHINE}-unknown-osf1 738 755 fi 739 exit 0;;756 exit ;; 740 757 parisc*:Lites*:*:*) 741 758 echo hppa1.1-hp-lites 742 exit 0;;759 exit ;; 743 760 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 744 761 echo c1-convex-bsd 745 exit 0;;762 exit ;; 746 763 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 747 764 if getsysinfo -f scalar_acc … … 749 766 else echo c2-convex-bsd 750 767 fi 751 exit 0;;768 exit ;; 752 769 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 753 770 echo c34-convex-bsd 754 exit 0;;771 exit ;; 755 772 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 756 773 echo c38-convex-bsd 757 exit 0;;774 exit ;; 758 775 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 759 776 echo c4-convex-bsd 760 exit 0;;777 exit ;; 761 778 CRAY*Y-MP:*:*:*) 762 779 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 763 exit 0;;780 exit ;; 764 781 CRAY*[A-Z]90:*:*:*) 765 782 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 767 784 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 768 785 -e 's/\.[^.]*$/.X/' 769 exit 0;;786 exit ;; 770 787 CRAY*TS:*:*:*) 771 788 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 772 exit 0;;789 exit ;; 773 790 CRAY*T3E:*:*:*) 774 791 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 775 exit 0;;792 exit ;; 776 793 CRAY*SV1:*:*:*) 777 794 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 778 exit 0;;795 exit ;; 779 796 *:UNICOS/mp:*:*) 780 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'781 exit 0;;797 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 798 exit ;; 782 799 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 783 800 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 785 802 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 786 803 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 787 exit 0;;804 exit ;; 788 805 5000:UNIX_System_V:4.*:*) 789 806 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 790 807 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 791 808 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 792 exit 0;;809 exit ;; 793 810 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 794 811 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 795 exit 0;;812 exit ;; 796 813 sparc*:BSD/OS:*:*) 797 814 echo sparc-unknown-bsdi${UNAME_RELEASE} 798 exit 0;;815 exit ;; 799 816 *:BSD/OS:*:*) 800 817 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 801 exit 0;;818 exit ;; 802 819 *:FreeBSD:*:*) 803 # Determine whether the default compiler uses glibc. 804 eval $set_cc_for_build 805 sed 's/^ //' << EOF >$dummy.c 806 #include <features.h> 807 #if __GLIBC__ >= 2 808 LIBC=gnu 809 #else 810 LIBC= 811 #endif 812 EOF 813 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 814 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using 815 # FreeBSD's kernel, but not the complete OS. 816 case ${LIBC} in gnu) kernel_only='k' ;; esac 817 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 818 exit 0 ;; 820 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 821 exit ;; 819 822 i*:CYGWIN*:*) 820 823 echo ${UNAME_MACHINE}-pc-cygwin 821 exit 0;;824 exit ;; 822 825 i*:MINGW*:*) 823 826 echo ${UNAME_MACHINE}-pc-mingw32 824 exit 0 ;; 827 exit ;; 828 i*:windows32*:*) 829 # uname -m includes "-pc" on this system. 830 echo ${UNAME_MACHINE}-mingw32 831 exit ;; 825 832 i*:PW*:*) 826 833 echo ${UNAME_MACHINE}-pc-pw32 827 exit 0;;834 exit ;; 828 835 x86:Interix*:[34]*) 829 836 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 830 exit 0;;837 exit ;; 831 838 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 832 839 echo i${UNAME_MACHINE}-pc-mks 833 exit 0;;840 exit ;; 834 841 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 835 842 # How do we know it's Interix rather than the generic POSIX subsystem? … … 837 844 # UNAME_MACHINE based on the output of uname instead of i386? 838 845 echo i586-pc-interix 839 exit 0;;846 exit ;; 840 847 i*:UWIN*:*) 841 848 echo ${UNAME_MACHINE}-pc-uwin 842 exit 0 ;; 849 exit ;; 850 amd64:CYGWIN*:*:*) 851 echo x86_64-unknown-cygwin 852 exit ;; 843 853 p*:CYGWIN*:*) 844 854 echo powerpcle-unknown-cygwin 845 exit 0;;855 exit ;; 846 856 prep*:SunOS:5.*:*) 847 857 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 848 exit 0;;858 exit ;; 849 859 *:GNU:*:*) 850 860 # the GNU system 851 861 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 852 exit 0;;862 exit ;; 853 863 *:GNU/*:*:*) 854 864 # other systems with GNU libc and userland 855 865 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 856 exit 0;;866 exit ;; 857 867 i*86:Minix:*:*) 858 868 echo ${UNAME_MACHINE}-pc-minix 859 exit 0;;869 exit ;; 860 870 arm*:Linux:*:*) 861 871 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 862 exit 0;;872 exit ;; 863 873 cris:Linux:*:*) 864 874 echo cris-axis-linux-${LIBC} 865 exit 0 ;; 875 exit ;; 876 crisv32:Linux:*:*) 877 echo crisv32-axis-linux-${LIBC} 878 exit ;; 879 frv:Linux:*:*) 880 echo frv-unknown-linux-${LIBC} 881 exit ;; 866 882 ia64:Linux:*:*) 867 883 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 868 exit 0;;884 exit ;; 869 885 m32r*:Linux:*:*) 870 886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 871 exit 0;;887 exit ;; 872 888 m68*:Linux:*:*) 873 889 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 874 exit 0;;890 exit ;; 875 891 mips:Linux:*:*) 876 892 eval $set_cc_for_build … … 890 906 EOF 891 907 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 892 test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 893 909 ;; 894 910 mips64:Linux:*:*) … … 909 925 EOF 910 926 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 911 test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0927 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 912 928 ;; 913 929 ppc:Linux:*:*) 914 930 echo powerpc-unknown-linux-${LIBC} 915 exit 0;;931 exit ;; 916 932 ppc64:Linux:*:*) 917 933 echo powerpc64-unknown-linux-${LIBC} 918 exit 0;;934 exit ;; 919 935 alpha:Linux:*:*) 920 936 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 930 946 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 931 947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 932 exit 0;;948 exit ;; 933 949 parisc:Linux:*:* | hppa:Linux:*:*) 934 950 # Look for CPU level … … 938 954 *) echo hppa-unknown-linux-${LIBC} ;; 939 955 esac 940 exit 0;;956 exit ;; 941 957 parisc64:Linux:*:* | hppa64:Linux:*:*) 942 958 echo hppa64-unknown-linux-${LIBC} 943 exit 0;;959 exit ;; 944 960 s390:Linux:*:* | s390x:Linux:*:*) 945 961 echo ${UNAME_MACHINE}-ibm-linux 946 exit 0;;962 exit ;; 947 963 sh64*:Linux:*:*) 948 964 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 949 exit 0;;965 exit ;; 950 966 sh*:Linux:*:*) 951 967 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 952 exit 0;;968 exit ;; 953 969 sparc:Linux:*:* | sparc64:Linux:*:*) 954 970 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 955 exit 0;;971 exit ;; 956 972 x86_64:Linux:*:*) 957 973 echo x86_64-unknown-linux-${LIBC} 958 exit 0;;974 exit ;; 959 975 i*86:Linux:*:*) 960 976 # The BFD linker knows what the default object file format is, so … … 974 990 a.out-i386-linux) 975 991 echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" 976 exit 0;;992 exit ;; 977 993 coff-i386) 978 994 echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff" 979 exit 0;;995 exit ;; 980 996 "") 981 997 # Either a pre-BFD a.out linker (linux-gnuoldld) or 982 998 # one that does not give us useful --help. 983 999 echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" 984 exit 0;;1000 exit ;; 985 1001 esac 986 if [ $LIBC != "gnu" -o $LIBC != "gnulibc1" ];then echo "$TENTATIVE" && exit 0; fi1002 if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi 987 1003 # Determine whether the default compiler is a.out or elf 988 1004 eval $set_cc_for_build … … 1011 1027 EOF 1012 1028 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1013 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 1014 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1029 test x"${LIBC}" != x && { 1030 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1031 exit 1032 } 1033 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1015 1034 ;; 1016 1035 i*86:DYNIX/ptx:4*:*) … … 1019 1038 # sysname and nodename. 1020 1039 echo i386-sequent-sysv4 1021 exit 0;;1040 exit ;; 1022 1041 i*86:UNIX_SV:4.2MP:2.*) 1023 1042 # Unixware is an offshoot of SVR4, but it has its own version … … 1027 1046 # Use sysv4.2uw... so that sysv4* matches it. 1028 1047 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1029 exit 0;;1048 exit ;; 1030 1049 i*86:OS/2:*:*) 1031 1050 # If we were able to find `uname', then EMX Unix compatibility 1032 1051 # is probably installed. 1033 1052 echo ${UNAME_MACHINE}-pc-os2-emx 1034 exit 0;;1053 exit ;; 1035 1054 i*86:XTS-300:*:STOP) 1036 1055 echo ${UNAME_MACHINE}-unknown-stop 1037 exit 0;;1056 exit ;; 1038 1057 i*86:atheos:*:*) 1039 1058 echo ${UNAME_MACHINE}-unknown-atheos 1040 exit 0;;1041 1059 exit ;; 1060 i*86:syllable:*:*) 1042 1061 echo ${UNAME_MACHINE}-pc-syllable 1043 exit 0;;1062 exit ;; 1044 1063 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1045 1064 echo i386-unknown-lynxos${UNAME_RELEASE} 1046 exit 0;;1065 exit ;; 1047 1066 i*86:*DOS:*:*) 1048 1067 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1049 exit 0;;1068 exit ;; 1050 1069 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1051 1070 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1055 1074 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1056 1075 fi 1057 exit 0 ;; 1058 i*86:*:5:[78]*) 1076 exit ;; 1077 i*86:*:5:[678]*) 1078 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1059 1079 case `/bin/uname -X | grep "^Machine"` in 1060 1080 *486*) UNAME_MACHINE=i486 ;; … … 1063 1083 esac 1064 1084 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1065 exit 0;;1085 exit ;; 1066 1086 i*86:*:3.2:*) 1067 1087 if test -f /usr/options/cb.name; then … … 1081 1101 echo ${UNAME_MACHINE}-pc-sysv32 1082 1102 fi 1083 exit 0;;1103 exit ;; 1084 1104 pc:*:*:*) 1085 1105 # Left here for compatibility: … … 1087 1107 # the processor, so we play safe by assuming i386. 1088 1108 echo i386-pc-msdosdjgpp 1089 exit 0;;1109 exit ;; 1090 1110 Intel:Mach:3*:*) 1091 1111 echo i386-pc-mach3 1092 exit 0;;1112 exit ;; 1093 1113 paragon:*:*:*) 1094 1114 echo i860-intel-osf1 1095 exit 0;;1115 exit ;; 1096 1116 i860:*:4.*:*) # i860-SVR4 1097 1117 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then … … 1100 1120 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1101 1121 fi 1102 exit 0;;1122 exit ;; 1103 1123 mini*:CTIX:SYS*5:*) 1104 1124 # "miniframe" 1105 1125 echo m68010-convergent-sysv 1106 exit 0;;1126 exit ;; 1107 1127 mc68k:UNIX:SYSTEM5:3.51m) 1108 1128 echo m68k-convergent-sysv 1109 exit 0;;1129 exit ;; 1110 1130 M680?0:D-NIX:5.3:*) 1111 1131 echo m68k-diab-dnix 1112 exit 0;;1113 M68*:*:R3V[567 ]*:*)1114 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0;;1115 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 )1132 exit ;; 1133 M68*:*:R3V[5678]*:*) 1134 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1135 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1116 1136 OS_REL='' 1117 1137 test -r /etc/.relid \ 1118 1138 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1119 1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1120 && echo i486-ncr-sysv4.3${OS_REL} && exit 01140 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1121 1141 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1122 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1142 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1123 1143 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1124 1144 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1125 && echo i486-ncr-sysv4 && exit 0;;1145 && { echo i486-ncr-sysv4; exit; } ;; 1126 1146 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1127 1147 echo m68k-unknown-lynxos${UNAME_RELEASE} 1128 exit 0;;1148 exit ;; 1129 1149 mc68030:UNIX_System_V:4.*:*) 1130 1150 echo m68k-atari-sysv4 1131 exit 0;;1151 exit ;; 1132 1152 TSUNAMI:LynxOS:2.*:*) 1133 1153 echo sparc-unknown-lynxos${UNAME_RELEASE} 1134 exit 0;;1154 exit ;; 1135 1155 rs6000:LynxOS:2.*:*) 1136 1156 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1137 exit 0;;1157 exit ;; 1138 1158 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1139 1159 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1140 exit 0;;1160 exit ;; 1141 1161 SM[BE]S:UNIX_SV:*:*) 1142 1162 echo mips-dde-sysv${UNAME_RELEASE} 1143 exit 0;;1163 exit ;; 1144 1164 RM*:ReliantUNIX-*:*:*) 1145 1165 echo mips-sni-sysv4 1146 exit 0;;1166 exit ;; 1147 1167 RM*:SINIX-*:*:*) 1148 1168 echo mips-sni-sysv4 1149 exit 0;;1169 exit ;; 1150 1170 *:SINIX-*:*:*) 1151 1171 if uname -p 2>/dev/null >/dev/null ; then … … 1155 1175 echo ns32k-sni-sysv 1156 1176 fi 1157 exit 0;;1177 exit ;; 1158 1178 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1159 1179 # says <Richard.M.Bartel@ccMail.Census.GOV> 1160 1180 echo i586-unisys-sysv4 1161 exit 0;;1181 exit ;; 1162 1182 *:UNIX_System_V:4*:FTX*) 1163 1183 # From Gerald Hewes <hewes@openmarket.com>. 1164 1184 # How about differentiating between stratus architectures? -djm 1165 1185 echo hppa1.1-stratus-sysv4 1166 exit 0;;1186 exit ;; 1167 1187 *:*:*:FTX*) 1168 1188 # From seanf@swdc.stratus.com. 1169 1189 echo i860-stratus-sysv4 1170 exit 0 ;; 1190 exit ;; 1191 i*86:VOS:*:*) 1192 # From Paul.Green@stratus.com. 1193 echo ${UNAME_MACHINE}-stratus-vos 1194 exit ;; 1171 1195 *:VOS:*:*) 1172 1196 # From Paul.Green@stratus.com. 1173 1197 echo hppa1.1-stratus-vos 1174 exit 0;;1198 exit ;; 1175 1199 mc68*:A/UX:*:*) 1176 1200 echo m68k-apple-aux${UNAME_RELEASE} 1177 exit 0;;1201 exit ;; 1178 1202 news*:NEWS-OS:6*:*) 1179 1203 echo mips-sony-newsos6 1180 exit 0;;1204 exit ;; 1181 1205 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1182 1206 if [ -d /usr/nec ]; then … … 1185 1209 echo mips-unknown-sysv${UNAME_RELEASE} 1186 1210 fi 1187 exit 0;;1211 exit ;; 1188 1212 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1189 1213 echo powerpc-be-beos 1190 exit 0;;1214 exit ;; 1191 1215 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1192 1216 echo powerpc-apple-beos 1193 exit 0;;1217 exit ;; 1194 1218 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1195 1219 echo i586-pc-beos 1196 exit 0;;1220 exit ;; 1197 1221 SX-4:SUPER-UX:*:*) 1198 1222 echo sx4-nec-superux${UNAME_RELEASE} 1199 exit 0;;1223 exit ;; 1200 1224 SX-5:SUPER-UX:*:*) 1201 1225 echo sx5-nec-superux${UNAME_RELEASE} 1202 exit 0;;1226 exit ;; 1203 1227 SX-6:SUPER-UX:*:*) 1204 1228 echo sx6-nec-superux${UNAME_RELEASE} 1205 exit 0;;1229 exit ;; 1206 1230 Power*:Rhapsody:*:*) 1207 1231 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1208 exit 0;;1232 exit ;; 1209 1233 *:Rhapsody:*:*) 1210 1234 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1211 exit 0;;1235 exit ;; 1212 1236 *:Darwin:*:*) 1213 case `uname -p` in 1237 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1238 case $UNAME_PROCESSOR in 1214 1239 *86) UNAME_PROCESSOR=i686 ;; 1215 powerpc) UNAME_PROCESSOR=powerpc ;;1240 unknown) UNAME_PROCESSOR=powerpc ;; 1216 1241 esac 1217 1242 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1218 exit 0;;1243 exit ;; 1219 1244 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1220 1245 UNAME_PROCESSOR=`uname -p` … … 1224 1249 fi 1225 1250 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1226 exit 0;;1251 exit ;; 1227 1252 *:QNX:*:4*) 1228 1253 echo i386-pc-qnx 1229 exit 0 ;; 1254 exit ;; 1255 NSE-?:NONSTOP_KERNEL:*:*) 1256 echo nse-tandem-nsk${UNAME_RELEASE} 1257 exit ;; 1230 1258 NSR-?:NONSTOP_KERNEL:*:*) 1231 1259 echo nsr-tandem-nsk${UNAME_RELEASE} 1232 exit 0;;1260 exit ;; 1233 1261 *:NonStop-UX:*:*) 1234 1262 echo mips-compaq-nonstopux 1235 exit 0;;1263 exit ;; 1236 1264 BS2000:POSIX*:*:*) 1237 1265 echo bs2000-siemens-sysv 1238 exit 0;;1266 exit ;; 1239 1267 DS/*:UNIX_System_V:*:*) 1240 1268 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1241 exit 0;;1269 exit ;; 1242 1270 *:Plan9:*:*) 1243 1271 # "uname -m" is not consistent, so use $cputype instead. 386 … … 1250 1278 fi 1251 1279 echo ${UNAME_MACHINE}-unknown-plan9 1252 exit 0;;1280 exit ;; 1253 1281 *:TOPS-10:*:*) 1254 1282 echo pdp10-unknown-tops10 1255 exit 0;;1283 exit ;; 1256 1284 *:TENEX:*:*) 1257 1285 echo pdp10-unknown-tenex 1258 exit 0;;1286 exit ;; 1259 1287 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1260 1288 echo pdp10-dec-tops20 1261 exit 0;;1289 exit ;; 1262 1290 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1263 1291 echo pdp10-xkl-tops20 1264 exit 0;;1292 exit ;; 1265 1293 *:TOPS-20:*:*) 1266 1294 echo pdp10-unknown-tops20 1267 exit 0;;1295 exit ;; 1268 1296 *:ITS:*:*) 1269 1297 echo pdp10-unknown-its 1270 exit 0;;1298 exit ;; 1271 1299 SEI:*:*:SEIUX) 1272 1300 echo mips-sei-seiux${UNAME_RELEASE} 1273 exit 0;;1301 exit ;; 1274 1302 *:DragonFly:*:*) 1275 1303 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1276 exit 0 ;; 1304 exit ;; 1305 *:*VMS:*:*) 1306 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1307 case "${UNAME_MACHINE}" in 1308 A*) echo alpha-dec-vms ; exit ;; 1309 I*) echo ia64-dec-vms ; exit ;; 1310 V*) echo vax-dec-vms ; exit ;; 1311 esac ;; 1312 *:XENIX:*:SysV) 1313 echo i386-pc-xenix 1314 exit ;; 1315 i*86:skyos:*:*) 1316 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1317 exit ;; 1277 1318 esac 1278 1319 … … 1306 1347 1307 1348 #if defined (__arm) && defined (__acorn) && defined (__unix) 1308 printf ("arm-acorn-riscix "); exit (0);1349 printf ("arm-acorn-riscix\n"); exit (0); 1309 1350 #endif 1310 1351 … … 1395 1436 EOF 1396 1437 1397 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1438 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1439 { echo "$SYSTEM_NAME"; exit; } 1398 1440 1399 1441 # Apollos put the system type in the environment. 1400 1442 1401 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1443 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1402 1444 1403 1445 # Convex versions that predate uname can use getsysinfo(1) … … 1408 1450 c1*) 1409 1451 echo c1-convex-bsd 1410 exit 0;;1452 exit ;; 1411 1453 c2*) 1412 1454 if getsysinfo -f scalar_acc … … 1414 1456 else echo c2-convex-bsd 1415 1457 fi 1416 exit 0;;1458 exit ;; 1417 1459 c34*) 1418 1460 echo c34-convex-bsd 1419 exit 0;;1461 exit ;; 1420 1462 c38*) 1421 1463 echo c38-convex-bsd 1422 exit 0;;1464 exit ;; 1423 1465 c4*) 1424 1466 echo c4-convex-bsd 1425 exit 0;;1467 exit ;; 1426 1468 esac 1427 1469 fi … … 1434 1476 download the most up to date version of the config scripts from 1435 1477 1436 ftp://ftp.gnu.org/pub/gnu/config/ 1478 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1479 and 1480 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1437 1481 1438 1482 If the version you run ($0) is already up to date, please
Note: See TracChangeset
for help on using the changeset viewer.