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