Changeset 2685 for trunk/gui/cf/config.guess
- Timestamp:
- Nov 15, 2011 12:11:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/cf/config.guess
r1866 r2685 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, 2005, 2006, 2007, 2008 5 # Free Software Foundation, Inc. 6 7 timestamp='2008-04-14' 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2003-02-22' 8 7 9 8 # This file is free software; you can redistribute it and/or modify it … … 19 18 # You should have received a copy of the GNU General Public License 20 19 # along with this program; if not, write to the Free Software 21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22 # 02110-1301, USA. 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 21 # 24 22 # As a special exception to the GNU General Public License, if you … … 26 24 # configuration script generated by Autoconf, you may include it under 27 25 # the same distribution terms that you use for the rest of that program. 28 29 26 30 27 # Originally written by Per Bothner <per@bothner.com>. … … 57 54 58 55 Originally written by Per Bothner. 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 ,60 2002, 2003, 2004, 2005, 2006, 2007, 2008Free Software Foundation, Inc.56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 Free Software Foundation, Inc. 61 58 62 59 This is free software; see the source for copying conditions. There is NO … … 70 67 case $1 in 71 68 --time-stamp | --time* | -t ) 72 echo "$timestamp" ; exit ;;69 echo "$timestamp" ; exit 0 ;; 73 70 --version | -v ) 74 echo "$version" ; exit ;;71 echo "$version" ; exit 0 ;; 75 72 --help | --h* | -h ) 76 echo "$usage"; exit ;;73 echo "$usage"; exit 0 ;; 77 74 -- ) # Stop option processing 78 75 shift; break ;; … … 108 105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 109 106 : ${TMPDIR=/tmp} ; 110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 111 108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||113 109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 114 110 dummy=$tmp/dummy ; … … 127 123 ,,*) CC_FOR_BUILD=$CC ;; 128 124 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 129 esac ; set_cc_for_build= ;'125 esac ;' 130 126 131 127 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 162 158 sh3el) machine=shl-unknown ;; 163 159 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;;165 160 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 166 161 esac … … 201 196 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 202 197 echo "${machine}-${os}${release}" 203 exit ;; 198 exit 0 ;; 199 amiga:OpenBSD:*:*) 200 echo m68k-unknown-openbsd${UNAME_RELEASE} 201 exit 0 ;; 202 arc:OpenBSD:*:*) 203 echo mipsel-unknown-openbsd${UNAME_RELEASE} 204 exit 0 ;; 205 hp300:OpenBSD:*:*) 206 echo m68k-unknown-openbsd${UNAME_RELEASE} 207 exit 0 ;; 208 mac68k:OpenBSD:*:*) 209 echo m68k-unknown-openbsd${UNAME_RELEASE} 210 exit 0 ;; 211 macppc:OpenBSD:*:*) 212 echo powerpc-unknown-openbsd${UNAME_RELEASE} 213 exit 0 ;; 214 mvme68k:OpenBSD:*:*) 215 echo m68k-unknown-openbsd${UNAME_RELEASE} 216 exit 0 ;; 217 mvme88k:OpenBSD:*:*) 218 echo m88k-unknown-openbsd${UNAME_RELEASE} 219 exit 0 ;; 220 mvmeppc:OpenBSD:*:*) 221 echo powerpc-unknown-openbsd${UNAME_RELEASE} 222 exit 0 ;; 223 pmax:OpenBSD:*:*) 224 echo mipsel-unknown-openbsd${UNAME_RELEASE} 225 exit 0 ;; 226 sgi:OpenBSD:*:*) 227 echo mipseb-unknown-openbsd${UNAME_RELEASE} 228 exit 0 ;; 229 sun3:OpenBSD:*:*) 230 echo m68k-unknown-openbsd${UNAME_RELEASE} 231 exit 0 ;; 232 wgrisc:OpenBSD:*:*) 233 echo mipsel-unknown-openbsd${UNAME_RELEASE} 234 exit 0 ;; 204 235 *:OpenBSD:*:*) 205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 207 exit ;; 208 *:ekkoBSD:*:*) 209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 210 exit ;; 211 *:SolidBSD:*:*) 212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 213 exit ;; 214 macppc:MirBSD:*:*) 215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 216 exit ;; 217 *:MirBSD:*:*) 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 219 exit ;; 236 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 237 exit 0 ;; 220 238 alpha:OSF1:*:*) 221 case $UNAME_RELEASE in 222 *4.0) 239 if test $UNAME_RELEASE = "V4.0"; then 223 240 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 224 ;; 225 *5.*) 226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 227 ;; 228 esac 241 fi 229 242 # According to Compaq, /usr/sbin/psrinfo has been available on 230 243 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 264 277 UNAME_MACHINE="alphaev79" ;; 265 278 esac 266 # A Pn.n version is a patched version.267 279 # A Vn.n version is a released version. 268 280 # A Tn.n version is a released field test version. 269 281 # A Xn.n version is an unreleased experimental baselevel. 270 282 # 1.2 uses "1.2" for uname -r. 271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[ PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`272 exit ;;283 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 284 exit 0 ;; 273 285 Alpha\ *:Windows_NT*:*) 274 286 # How do we know it's Interix rather than the generic POSIX subsystem? … … 276 288 # of the specific Alpha model? 277 289 echo alpha-pc-interix 278 exit ;;290 exit 0 ;; 279 291 21064:Windows_NT:50:3) 280 292 echo alpha-dec-winnt3.5 281 exit ;;293 exit 0 ;; 282 294 Amiga*:UNIX_System_V:4.0:*) 283 295 echo m68k-unknown-sysv4 284 exit ;;296 exit 0;; 285 297 *:[Aa]miga[Oo][Ss]:*:*) 286 298 echo ${UNAME_MACHINE}-unknown-amigaos 287 exit ;;299 exit 0 ;; 288 300 *:[Mm]orph[Oo][Ss]:*:*) 289 301 echo ${UNAME_MACHINE}-unknown-morphos 290 exit ;;302 exit 0 ;; 291 303 *:OS/390:*:*) 292 304 echo i370-ibm-openedition 293 exit ;; 294 *:z/VM:*:*) 295 echo s390-ibm-zvmoe 296 exit ;; 297 *:OS400:*:*) 298 echo powerpc-ibm-os400 299 exit ;; 305 exit 0 ;; 300 306 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301 307 echo arm-acorn-riscix${UNAME_RELEASE} 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 308 exit 0;; 306 309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 307 310 echo hppa1.1-hitachi-hiuxmpp 308 exit ;;311 exit 0;; 309 312 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 310 313 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 314 317 echo pyramid-pyramid-bsd 315 318 fi 316 exit ;;319 exit 0 ;; 317 320 NILE*:*:*:dcosx) 318 321 echo pyramid-pyramid-svr4 319 exit ;; 320 DRS?6000:unix:4.0:6*) 321 echo sparc-icl-nx6 322 exit ;; 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 322 exit 0 ;; 323 DRS?6000:UNIX_SV:4.2*:7*) 324 324 case `/usr/bin/uname -p` in 325 sparc) echo sparc-icl-nx7 ; exit;;325 sparc) echo sparc-icl-nx7 && exit 0 ;; 326 326 esac ;; 327 327 sun4H:SunOS:5.*:*) 328 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 329 exit ;;329 exit 0 ;; 330 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 331 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 332 exit ;;333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)332 exit 0 ;; 333 i86pc:SunOS:5.*:*) 334 334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 exit ;;335 exit 0 ;; 336 336 sun4*:SunOS:6*:*) 337 337 # According to config.sub, this is the proper way to canonicalize … … 339 339 # it's likely to be more like Solaris than SunOS4. 340 340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 341 exit ;;341 exit 0 ;; 342 342 sun4*:SunOS:*:*) 343 343 case "`/usr/bin/arch -k`" in … … 348 348 # Japanese Language versions have a version number like `4.1.3-JL'. 349 349 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 350 exit ;;350 exit 0 ;; 351 351 sun3*:SunOS:*:*) 352 352 echo m68k-sun-sunos${UNAME_RELEASE} 353 exit ;;353 exit 0 ;; 354 354 sun*:*:4.2BSD:*) 355 355 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 363 363 ;; 364 364 esac 365 exit ;;365 exit 0 ;; 366 366 aushp:SunOS:*:*) 367 367 echo sparc-auspex-sunos${UNAME_RELEASE} 368 exit ;;368 exit 0 ;; 369 369 # The situation for MiNT is a little confusing. The machine name 370 370 # can be virtually everything (everything which is not … … 377 377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 378 378 echo m68k-atari-mint${UNAME_RELEASE} 379 exit ;;379 exit 0 ;; 380 380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 381 381 echo m68k-atari-mint${UNAME_RELEASE} 382 exit ;;382 exit 0 ;; 383 383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 384 384 echo m68k-atari-mint${UNAME_RELEASE} 385 exit ;;385 exit 0 ;; 386 386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 387 387 echo m68k-milan-mint${UNAME_RELEASE} 388 exit ;;388 exit 0 ;; 389 389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 390 390 echo m68k-hades-mint${UNAME_RELEASE} 391 exit ;;391 exit 0 ;; 392 392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 393 393 echo m68k-unknown-mint${UNAME_RELEASE} 394 exit ;; 395 m68k:machten:*:*) 396 echo m68k-apple-machten${UNAME_RELEASE} 397 exit ;; 394 exit 0 ;; 398 395 powerpc:machten:*:*) 399 396 echo powerpc-apple-machten${UNAME_RELEASE} 400 exit ;;397 exit 0 ;; 401 398 RISC*:Mach:*:*) 402 399 echo mips-dec-mach_bsd4.3 403 exit ;;400 exit 0 ;; 404 401 RISC*:ULTRIX:*:*) 405 402 echo mips-dec-ultrix${UNAME_RELEASE} 406 exit ;;403 exit 0 ;; 407 404 VAX*:ULTRIX*:*:*) 408 405 echo vax-dec-ultrix${UNAME_RELEASE} 409 exit ;;406 exit 0 ;; 410 407 2020:CLIX:*:* | 2430:CLIX:*:*) 411 408 echo clipper-intergraph-clix${UNAME_RELEASE} 412 exit ;;409 exit 0 ;; 413 410 mips:*:*:UMIPS | mips:*:*:RISCos) 414 411 eval $set_cc_for_build … … 434 431 } 435 432 EOF 436 $CC_FOR_BUILD -o $dummy $dummy.c && 437 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 438 SYSTEM_NAME=`$dummy $dummyarg` && 439 { echo "$SYSTEM_NAME"; exit; } 433 $CC_FOR_BUILD -o $dummy $dummy.c \ 434 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 435 && exit 0 440 436 echo mips-mips-riscos${UNAME_RELEASE} 441 exit ;;437 exit 0 ;; 442 438 Motorola:PowerMAX_OS:*:*) 443 439 echo powerpc-motorola-powermax 444 exit ;;440 exit 0 ;; 445 441 Motorola:*:4.3:PL8-*) 446 442 echo powerpc-harris-powermax 447 exit ;;443 exit 0 ;; 448 444 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 449 445 echo powerpc-harris-powermax 450 exit ;;446 exit 0 ;; 451 447 Night_Hawk:Power_UNIX:*:*) 452 448 echo powerpc-harris-powerunix 453 exit ;;449 exit 0 ;; 454 450 m88k:CX/UX:7*:*) 455 451 echo m88k-harris-cxux7 456 exit ;;452 exit 0 ;; 457 453 m88k:*:4*:R4*) 458 454 echo m88k-motorola-sysv4 459 exit ;;455 exit 0 ;; 460 456 m88k:*:3*:R3*) 461 457 echo m88k-motorola-sysv3 462 exit ;;458 exit 0 ;; 463 459 AViiON:dgux:*:*) 464 460 # DG/UX returns AViiON for all architectures … … 476 472 echo i586-dg-dgux${UNAME_RELEASE} 477 473 fi 478 exit ;;474 exit 0 ;; 479 475 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 480 476 echo m88k-dolphin-sysv3 481 exit ;;477 exit 0 ;; 482 478 M88*:*:R3*:*) 483 479 # Delta 88k system running SVR3 484 480 echo m88k-motorola-sysv3 485 exit ;;481 exit 0 ;; 486 482 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 487 483 echo m88k-tektronix-sysv3 488 exit ;;484 exit 0 ;; 489 485 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 490 486 echo m68k-tektronix-bsd 491 exit ;;487 exit 0 ;; 492 488 *:IRIX*:*:*) 493 489 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 494 exit ;;490 exit 0 ;; 495 491 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 496 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id497 exit ;;# Note that: echo "'`uname -s`'" gives 'AIX '492 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 493 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 498 494 i*86:AIX:*:*) 499 495 echo i386-ibm-aix 500 exit ;;496 exit 0 ;; 501 497 ia64:AIX:*:*) 502 498 if [ -x /usr/bin/oslevel ] ; then … … 506 502 fi 507 503 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 508 exit ;;504 exit 0 ;; 509 505 *:AIX:2:3) 510 506 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 521 517 } 522 518 EOF 523 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 524 then 525 echo "$SYSTEM_NAME" 526 else 527 echo rs6000-ibm-aix3.2.5 528 fi 519 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 520 echo rs6000-ibm-aix3.2.5 529 521 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 522 echo rs6000-ibm-aix3.2.4 … … 532 524 echo rs6000-ibm-aix3.2 533 525 fi 534 exit ;;535 *:AIX:*:[45 6])526 exit 0 ;; 527 *:AIX:*:[45]) 536 528 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 537 529 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then … … 546 538 fi 547 539 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 548 exit ;;540 exit 0 ;; 549 541 *:AIX:*:*) 550 542 echo rs6000-ibm-aix 551 exit ;;543 exit 0 ;; 552 544 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 553 545 echo romp-ibm-bsd4.4 554 exit ;;546 exit 0 ;; 555 547 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 556 548 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 557 exit ;;# report: romp-ibm BSD 4.3549 exit 0 ;; # report: romp-ibm BSD 4.3 558 550 *:BOSX:*:*) 559 551 echo rs6000-bull-bosx 560 exit ;;552 exit 0 ;; 561 553 DPX/2?00:B.O.S.:*:*) 562 554 echo m68k-bull-sysv3 563 exit ;;555 exit 0 ;; 564 556 9000/[34]??:4.3bsd:1.*:*) 565 557 echo m68k-hp-bsd 566 exit ;;558 exit 0 ;; 567 559 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 568 560 echo m68k-hp-bsd4.4 569 exit ;;561 exit 0 ;; 570 562 9000/[34678]??:HP-UX:*:*) 571 563 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 629 621 if [ ${HP_ARCH} = "hppa2.0w" ] 630 622 then 631 eval $set_cc_for_build 632 633 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 634 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 635 # generating 64-bit code. GNU and HP use different nomenclature: 636 # 637 # $ CC_FOR_BUILD=cc ./config.guess 638 # => hppa2.0w-hp-hpux11.23 639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 640 # => hppa64-hp-hpux11.23 641 642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 643 grep __LP64__ >/dev/null 623 # avoid double evaluation of $set_cc_for_build 624 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 625 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 644 626 then 645 627 HP_ARCH="hppa2.0w" … … 649 631 fi 650 632 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 651 exit ;;633 exit 0 ;; 652 634 ia64:HP-UX:*:*) 653 635 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 654 636 echo ia64-hp-hpux${HPUX_REV} 655 exit ;;637 exit 0 ;; 656 638 3050*:HI-UX:*:*) 657 639 eval $set_cc_for_build … … 681 663 } 682 664 EOF 683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 684 { echo "$SYSTEM_NAME"; exit; } 665 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 685 666 echo unknown-hitachi-hiuxwe2 686 exit ;;667 exit 0 ;; 687 668 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 688 669 echo hppa1.1-hp-bsd 689 exit ;;670 exit 0 ;; 690 671 9000/8??:4.3bsd:*:*) 691 672 echo hppa1.0-hp-bsd 692 exit ;;673 exit 0 ;; 693 674 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 694 675 echo hppa1.0-hp-mpeix 695 exit ;;676 exit 0 ;; 696 677 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 697 678 echo hppa1.1-hp-osf 698 exit ;;679 exit 0 ;; 699 680 hp8??:OSF1:*:*) 700 681 echo hppa1.0-hp-osf 701 exit ;;682 exit 0 ;; 702 683 i*86:OSF1:*:*) 703 684 if [ -x /usr/sbin/sysversion ] ; then … … 706 687 echo ${UNAME_MACHINE}-unknown-osf1 707 688 fi 708 exit ;;689 exit 0 ;; 709 690 parisc*:Lites*:*:*) 710 691 echo hppa1.1-hp-lites 711 exit ;;692 exit 0 ;; 712 693 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 713 694 echo c1-convex-bsd 714 exit ;;695 exit 0 ;; 715 696 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 716 697 if getsysinfo -f scalar_acc … … 718 699 else echo c2-convex-bsd 719 700 fi 720 exit ;;701 exit 0 ;; 721 702 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 722 703 echo c34-convex-bsd 723 exit ;;704 exit 0 ;; 724 705 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 725 706 echo c38-convex-bsd 726 exit ;;707 exit 0 ;; 727 708 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 728 709 echo c4-convex-bsd 729 exit ;;710 exit 0 ;; 730 711 CRAY*Y-MP:*:*:*) 731 712 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 732 exit ;;713 exit 0 ;; 733 714 CRAY*[A-Z]90:*:*:*) 734 715 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 736 717 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 737 718 -e 's/\.[^.]*$/.X/' 738 exit ;;719 exit 0 ;; 739 720 CRAY*TS:*:*:*) 740 721 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 741 exit ;;722 exit 0 ;; 742 723 CRAY*T3E:*:*:*) 743 724 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 744 exit ;;725 exit 0 ;; 745 726 CRAY*SV1:*:*:*) 746 727 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 747 exit ;;728 exit 0 ;; 748 729 *:UNICOS/mp:*:*) 749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'750 exit ;;730 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 731 exit 0 ;; 751 732 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 752 733 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 754 735 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 755 736 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 756 exit ;; 757 5000:UNIX_System_V:4.*:*) 758 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 759 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 760 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 761 exit ;; 737 exit 0 ;; 762 738 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 763 739 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 764 exit ;;740 exit 0 ;; 765 741 sparc*:BSD/OS:*:*) 766 742 echo sparc-unknown-bsdi${UNAME_RELEASE} 767 exit ;;743 exit 0 ;; 768 744 *:BSD/OS:*:*) 769 745 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 770 exit ;;746 exit 0 ;; 771 747 *:FreeBSD:*:*) 772 case ${UNAME_MACHINE} in 773 pc98) 774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 775 amd64) 776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 777 *) 778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 779 esac 780 exit ;; 748 # Determine whether the default compiler uses glibc. 749 eval $set_cc_for_build 750 sed 's/^ //' << EOF >$dummy.c 751 #include <features.h> 752 #if __GLIBC__ >= 2 753 LIBC=gnu 754 #else 755 LIBC= 756 #endif 757 EOF 758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 759 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 760 exit 0 ;; 781 761 i*:CYGWIN*:*) 782 762 echo ${UNAME_MACHINE}-pc-cygwin 783 exit ;;784 *:MINGW*:*)763 exit 0 ;; 764 i*:MINGW*:*) 785 765 echo ${UNAME_MACHINE}-pc-mingw32 786 exit ;; 787 i*:windows32*:*) 788 # uname -m includes "-pc" on this system. 789 echo ${UNAME_MACHINE}-mingw32 790 exit ;; 766 exit 0 ;; 767 i*:MSYS*:*) 768 echo ${UNAME_MACHINE}-pc-msys 769 exit 0 ;; 791 770 i*:PW*:*) 792 771 echo ${UNAME_MACHINE}-pc-pw32 793 exit ;; 794 *:Interix*:[3456]*) 795 case ${UNAME_MACHINE} in 796 x86) 797 echo i586-pc-interix${UNAME_RELEASE} 798 exit ;; 799 EM64T | authenticamd) 800 echo x86_64-unknown-interix${UNAME_RELEASE} 801 exit ;; 802 IA64) 803 echo ia64-unknown-interix${UNAME_RELEASE} 804 exit ;; 805 esac ;; 772 exit 0 ;; 773 x86:Interix*:3*) 774 echo i586-pc-interix3 775 exit 0 ;; 806 776 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 807 777 echo i${UNAME_MACHINE}-pc-mks 808 exit ;;778 exit 0 ;; 809 779 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 810 780 # How do we know it's Interix rather than the generic POSIX subsystem? … … 812 782 # UNAME_MACHINE based on the output of uname instead of i386? 813 783 echo i586-pc-interix 814 exit ;;784 exit 0 ;; 815 785 i*:UWIN*:*) 816 786 echo ${UNAME_MACHINE}-pc-uwin 817 exit ;; 818 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 819 echo x86_64-unknown-cygwin 820 exit ;; 787 exit 0 ;; 821 788 p*:CYGWIN*:*) 822 789 echo powerpcle-unknown-cygwin 823 exit ;;790 exit 0 ;; 824 791 prep*:SunOS:5.*:*) 825 792 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 826 exit ;;793 exit 0 ;; 827 794 *:GNU:*:*) 828 # the GNU system829 795 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 830 exit ;; 831 *:GNU/*:*:*) 832 # other systems with GNU libc and userland 833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 834 exit ;; 796 exit 0 ;; 835 797 i*86:Minix:*:*) 836 798 echo ${UNAME_MACHINE}-pc-minix 837 exit ;;799 exit 0 ;; 838 800 arm*:Linux:*:*) 839 eval $set_cc_for_build840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \841 | grep -q __ARM_EABI__842 then843 echo ${UNAME_MACHINE}-unknown-linux-gnu844 else845 echo ${UNAME_MACHINE}-unknown-linux-gnueabi846 fi847 exit ;;848 avr32*:Linux:*:*)849 801 echo ${UNAME_MACHINE}-unknown-linux-gnu 850 exit ;; 851 cris:Linux:*:*) 852 echo cris-axis-linux-gnu 853 exit ;; 854 crisv32:Linux:*:*) 855 echo crisv32-axis-linux-gnu 856 exit ;; 857 frv:Linux:*:*) 858 echo frv-unknown-linux-gnu 859 exit ;; 802 exit 0 ;; 860 803 ia64:Linux:*:*) 861 804 echo ${UNAME_MACHINE}-unknown-linux-gnu 862 exit ;; 863 m32r*:Linux:*:*) 864 echo ${UNAME_MACHINE}-unknown-linux-gnu 865 exit ;; 805 exit 0 ;; 866 806 m68*:Linux:*:*) 867 807 echo ${UNAME_MACHINE}-unknown-linux-gnu 868 exit ;;808 exit 0 ;; 869 809 mips:Linux:*:*) 870 810 eval $set_cc_for_build … … 883 823 #endif 884 824 EOF 885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 886 /^CPU/{ 887 s: ::g 888 p 889 }'`" 890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 825 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 826 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 891 827 ;; 892 828 mips64:Linux:*:*) … … 906 842 #endif 907 843 EOF 908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 909 /^CPU/{ 910 s: ::g 911 p 912 }'`" 913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 844 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 845 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 914 846 ;; 915 or32:Linux:*:*)916 echo or32-unknown-linux-gnu917 exit ;;918 847 ppc:Linux:*:*) 919 848 echo powerpc-unknown-linux-gnu 920 exit ;;849 exit 0 ;; 921 850 ppc64:Linux:*:*) 922 851 echo powerpc64-unknown-linux-gnu 923 exit ;;852 exit 0 ;; 924 853 alpha:Linux:*:*) 925 854 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 935 864 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 936 865 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 937 exit ;;866 exit 0 ;; 938 867 parisc:Linux:*:* | hppa:Linux:*:*) 939 868 # Look for CPU level … … 943 872 *) echo hppa-unknown-linux-gnu ;; 944 873 esac 945 exit ;;874 exit 0 ;; 946 875 parisc64:Linux:*:* | hppa64:Linux:*:*) 947 876 echo hppa64-unknown-linux-gnu 948 exit ;;877 exit 0 ;; 949 878 s390:Linux:*:* | s390x:Linux:*:*) 950 879 echo ${UNAME_MACHINE}-ibm-linux 951 exit ;; 952 sh64*:Linux:*:*) 953 echo ${UNAME_MACHINE}-unknown-linux-gnu 954 exit ;; 880 exit 0 ;; 955 881 sh*:Linux:*:*) 956 882 echo ${UNAME_MACHINE}-unknown-linux-gnu 957 exit ;;883 exit 0 ;; 958 884 sparc:Linux:*:* | sparc64:Linux:*:*) 959 885 echo ${UNAME_MACHINE}-unknown-linux-gnu 960 exit ;; 961 vax:Linux:*:*) 962 echo ${UNAME_MACHINE}-dec-linux-gnu 963 exit ;; 886 exit 0 ;; 964 887 x86_64:Linux:*:*) 965 888 echo x86_64-unknown-linux-gnu 966 exit ;; 967 xtensa*:Linux:*:*) 968 echo ${UNAME_MACHINE}-unknown-linux-gnu 969 exit ;; 889 exit 0 ;; 970 890 i*86:Linux:*:*) 971 891 # The BFD linker knows what the default object file format is, so … … 985 905 a.out-i386-linux) 986 906 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 987 exit ;; 907 exit 0 ;; 908 coff-i386) 909 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 910 exit 0 ;; 988 911 "") 989 912 # Either a pre-BFD a.out linker (linux-gnuoldld) or 990 913 # one that does not give us useful --help. 991 914 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 992 exit ;;915 exit 0 ;; 993 916 esac 994 917 # Determine whether the default compiler is a.out or elf … … 1007 930 # endif 1008 931 #else 1009 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)932 #ifdef __INTEL_COMPILER 1010 933 LIBC=gnu 1011 934 #else … … 1013 936 #endif 1014 937 #endif 1015 #ifdef __dietlibc__1016 LIBC=dietlibc1017 #endif1018 938 EOF 1019 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1020 /^LIBC/{ 1021 s: ::g 1022 p 1023 }'`" 1024 test x"${LIBC}" != x && { 1025 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1026 exit 1027 } 1028 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 939 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 940 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 941 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1029 942 ;; 1030 943 i*86:DYNIX/ptx:4*:*) … … 1033 946 # sysname and nodename. 1034 947 echo i386-sequent-sysv4 1035 exit ;;948 exit 0 ;; 1036 949 i*86:UNIX_SV:4.2MP:2.*) 1037 950 # Unixware is an offshoot of SVR4, but it has its own version … … 1041 954 # Use sysv4.2uw... so that sysv4* matches it. 1042 955 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1043 exit ;;956 exit 0 ;; 1044 957 i*86:OS/2:*:*) 1045 958 # If we were able to find `uname', then EMX Unix compatibility 1046 959 # is probably installed. 1047 960 echo ${UNAME_MACHINE}-pc-os2-emx 1048 exit ;;961 exit 0 ;; 1049 962 i*86:XTS-300:*:STOP) 1050 963 echo ${UNAME_MACHINE}-unknown-stop 1051 exit ;;964 exit 0 ;; 1052 965 i*86:atheos:*:*) 1053 966 echo ${UNAME_MACHINE}-unknown-atheos 1054 exit ;; 1055 i*86:syllable:*:*) 1056 echo ${UNAME_MACHINE}-pc-syllable 1057 exit ;; 967 exit 0 ;; 1058 968 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1059 969 echo i386-unknown-lynxos${UNAME_RELEASE} 1060 exit ;;970 exit 0 ;; 1061 971 i*86:*DOS:*:*) 1062 972 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1063 exit ;;973 exit 0 ;; 1064 974 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1065 975 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1069 979 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1070 980 fi 1071 exit ;; 1072 i*86:*:5:[678]*) 1073 # UnixWare 7.x, OpenUNIX and OpenServer 6. 981 exit 0 ;; 982 i*86:*:5:[78]*) 1074 983 case `/bin/uname -X | grep "^Machine"` in 1075 984 *486*) UNAME_MACHINE=i486 ;; … … 1078 987 esac 1079 988 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1080 exit ;;989 exit 0 ;; 1081 990 i*86:*:3.2:*) 1082 991 if test -f /usr/options/cb.name; then … … 1096 1005 echo ${UNAME_MACHINE}-pc-sysv32 1097 1006 fi 1098 exit ;;1007 exit 0 ;; 1099 1008 pc:*:*:*) 1100 1009 # Left here for compatibility: … … 1102 1011 # the processor, so we play safe by assuming i386. 1103 1012 echo i386-pc-msdosdjgpp 1104 exit ;;1013 exit 0 ;; 1105 1014 Intel:Mach:3*:*) 1106 1015 echo i386-pc-mach3 1107 exit ;;1016 exit 0 ;; 1108 1017 paragon:*:*:*) 1109 1018 echo i860-intel-osf1 1110 exit ;;1019 exit 0 ;; 1111 1020 i860:*:4.*:*) # i860-SVR4 1112 1021 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then … … 1115 1024 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1116 1025 fi 1117 exit ;;1026 exit 0 ;; 1118 1027 mini*:CTIX:SYS*5:*) 1119 1028 # "miniframe" 1120 1029 echo m68010-convergent-sysv 1121 exit ;;1030 exit 0 ;; 1122 1031 mc68k:UNIX:SYSTEM5:3.51m) 1123 1032 echo m68k-convergent-sysv 1124 exit ;;1033 exit 0 ;; 1125 1034 M680?0:D-NIX:5.3:*) 1126 1035 echo m68k-diab-dnix 1127 exit ;;1128 M68*:*:R3V[567 8]*:*)1129 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; };;1130 3[34 5]??:*: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)1036 exit 0 ;; 1037 M68*:*:R3V[567]*:*) 1038 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1039 3[34]??:*: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) 1131 1040 OS_REL='' 1132 1041 test -r /etc/.relid \ 1133 1042 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1134 1043 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1135 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1044 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1136 1045 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; };;1046 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1138 1047 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1139 1048 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1140 && { echo i486-ncr-sysv4; exit; };;1049 && echo i486-ncr-sysv4 && exit 0 ;; 1141 1050 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1142 1051 echo m68k-unknown-lynxos${UNAME_RELEASE} 1143 exit ;;1052 exit 0 ;; 1144 1053 mc68030:UNIX_System_V:4.*:*) 1145 1054 echo m68k-atari-sysv4 1146 exit ;;1055 exit 0 ;; 1147 1056 TSUNAMI:LynxOS:2.*:*) 1148 1057 echo sparc-unknown-lynxos${UNAME_RELEASE} 1149 exit ;;1058 exit 0 ;; 1150 1059 rs6000:LynxOS:2.*:*) 1151 1060 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1152 exit ;;1061 exit 0 ;; 1153 1062 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1154 1063 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1155 exit ;;1064 exit 0 ;; 1156 1065 SM[BE]S:UNIX_SV:*:*) 1157 1066 echo mips-dde-sysv${UNAME_RELEASE} 1158 exit ;;1067 exit 0 ;; 1159 1068 RM*:ReliantUNIX-*:*:*) 1160 1069 echo mips-sni-sysv4 1161 exit ;;1070 exit 0 ;; 1162 1071 RM*:SINIX-*:*:*) 1163 1072 echo mips-sni-sysv4 1164 exit ;;1073 exit 0 ;; 1165 1074 *:SINIX-*:*:*) 1166 1075 if uname -p 2>/dev/null >/dev/null ; then … … 1170 1079 echo ns32k-sni-sysv 1171 1080 fi 1172 exit ;;1081 exit 0 ;; 1173 1082 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1174 1083 # says <Richard.M.Bartel@ccMail.Census.GOV> 1175 1084 echo i586-unisys-sysv4 1176 exit ;;1085 exit 0 ;; 1177 1086 *:UNIX_System_V:4*:FTX*) 1178 1087 # From Gerald Hewes <hewes@openmarket.com>. 1179 1088 # How about differentiating between stratus architectures? -djm 1180 1089 echo hppa1.1-stratus-sysv4 1181 exit ;;1090 exit 0 ;; 1182 1091 *:*:*:FTX*) 1183 1092 # From seanf@swdc.stratus.com. 1184 1093 echo i860-stratus-sysv4 1185 exit ;; 1186 i*86:VOS:*:*) 1187 # From Paul.Green@stratus.com. 1188 echo ${UNAME_MACHINE}-stratus-vos 1189 exit ;; 1094 exit 0 ;; 1190 1095 *:VOS:*:*) 1191 1096 # From Paul.Green@stratus.com. 1192 1097 echo hppa1.1-stratus-vos 1193 exit ;;1098 exit 0 ;; 1194 1099 mc68*:A/UX:*:*) 1195 1100 echo m68k-apple-aux${UNAME_RELEASE} 1196 exit ;;1101 exit 0 ;; 1197 1102 news*:NEWS-OS:6*:*) 1198 1103 echo mips-sony-newsos6 1199 exit ;;1104 exit 0 ;; 1200 1105 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1201 1106 if [ -d /usr/nec ]; then … … 1204 1109 echo mips-unknown-sysv${UNAME_RELEASE} 1205 1110 fi 1206 exit ;;1111 exit 0 ;; 1207 1112 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1208 1113 echo powerpc-be-beos 1209 exit ;;1114 exit 0 ;; 1210 1115 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1211 1116 echo powerpc-apple-beos 1212 exit ;;1117 exit 0 ;; 1213 1118 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1214 1119 echo i586-pc-beos 1215 exit ;; 1216 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1217 echo i586-pc-haiku 1218 exit ;; 1120 exit 0 ;; 1219 1121 SX-4:SUPER-UX:*:*) 1220 1122 echo sx4-nec-superux${UNAME_RELEASE} 1221 exit ;;1123 exit 0 ;; 1222 1124 SX-5:SUPER-UX:*:*) 1223 1125 echo sx5-nec-superux${UNAME_RELEASE} 1224 exit ;;1126 exit 0 ;; 1225 1127 SX-6:SUPER-UX:*:*) 1226 1128 echo sx6-nec-superux${UNAME_RELEASE} 1227 exit ;; 1228 SX-7:SUPER-UX:*:*) 1229 echo sx7-nec-superux${UNAME_RELEASE} 1230 exit ;; 1231 SX-8:SUPER-UX:*:*) 1232 echo sx8-nec-superux${UNAME_RELEASE} 1233 exit ;; 1234 SX-8R:SUPER-UX:*:*) 1235 echo sx8r-nec-superux${UNAME_RELEASE} 1236 exit ;; 1129 exit 0 ;; 1237 1130 Power*:Rhapsody:*:*) 1238 1131 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1239 exit ;;1132 exit 0 ;; 1240 1133 *:Rhapsody:*:*) 1241 1134 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1242 exit ;;1135 exit 0 ;; 1243 1136 *:Darwin:*:*) 1244 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1245 case $UNAME_PROCESSOR in1246 unknown) UNAME_PROCESSOR=powerpc ;;1137 case `uname -p` in 1138 *86) UNAME_PROCESSOR=i686 ;; 1139 powerpc) UNAME_PROCESSOR=powerpc ;; 1247 1140 esac 1248 1141 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1249 exit ;;1142 exit 0 ;; 1250 1143 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1251 1144 UNAME_PROCESSOR=`uname -p` … … 1255 1148 fi 1256 1149 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1257 exit ;;1150 exit 0 ;; 1258 1151 *:QNX:*:4*) 1259 1152 echo i386-pc-qnx 1260 exit ;; 1261 NSE-?:NONSTOP_KERNEL:*:*) 1262 echo nse-tandem-nsk${UNAME_RELEASE} 1263 exit ;; 1264 NSR-?:NONSTOP_KERNEL:*:*) 1153 exit 0 ;; 1154 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) 1265 1155 echo nsr-tandem-nsk${UNAME_RELEASE} 1266 exit ;;1156 exit 0 ;; 1267 1157 *:NonStop-UX:*:*) 1268 1158 echo mips-compaq-nonstopux 1269 exit ;;1159 exit 0 ;; 1270 1160 BS2000:POSIX*:*:*) 1271 1161 echo bs2000-siemens-sysv 1272 exit ;;1162 exit 0 ;; 1273 1163 DS/*:UNIX_System_V:*:*) 1274 1164 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1275 exit ;;1165 exit 0 ;; 1276 1166 *:Plan9:*:*) 1277 1167 # "uname -m" is not consistent, so use $cputype instead. 386 … … 1284 1174 fi 1285 1175 echo ${UNAME_MACHINE}-unknown-plan9 1286 exit ;;1176 exit 0 ;; 1287 1177 *:TOPS-10:*:*) 1288 1178 echo pdp10-unknown-tops10 1289 exit ;;1179 exit 0 ;; 1290 1180 *:TENEX:*:*) 1291 1181 echo pdp10-unknown-tenex 1292 exit ;;1182 exit 0 ;; 1293 1183 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1294 1184 echo pdp10-dec-tops20 1295 exit ;;1185 exit 0 ;; 1296 1186 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1297 1187 echo pdp10-xkl-tops20 1298 exit ;;1188 exit 0 ;; 1299 1189 *:TOPS-20:*:*) 1300 1190 echo pdp10-unknown-tops20 1301 exit ;;1191 exit 0 ;; 1302 1192 *:ITS:*:*) 1303 1193 echo pdp10-unknown-its 1304 exit ;; 1305 SEI:*:*:SEIUX) 1306 echo mips-sei-seiux${UNAME_RELEASE} 1307 exit ;; 1308 *:DragonFly:*:*) 1309 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1310 exit ;; 1311 *:*VMS:*:*) 1312 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1313 case "${UNAME_MACHINE}" in 1314 A*) echo alpha-dec-vms ; exit ;; 1315 I*) echo ia64-dec-vms ; exit ;; 1316 V*) echo vax-dec-vms ; exit ;; 1317 esac ;; 1318 *:XENIX:*:SysV) 1319 echo i386-pc-xenix 1320 exit ;; 1321 i*86:skyos:*:*) 1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1323 exit ;; 1324 i*86:rdos:*:*) 1325 echo ${UNAME_MACHINE}-pc-rdos 1326 exit ;; 1194 exit 0 ;; 1327 1195 esac 1328 1196 … … 1356 1224 1357 1225 #if defined (__arm) && defined (__acorn) && defined (__unix) 1358 printf ("arm-acorn-riscix \n"); exit (0);1226 printf ("arm-acorn-riscix"); exit (0); 1359 1227 #endif 1360 1228 … … 1445 1313 EOF 1446 1314 1447 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1448 { echo "$SYSTEM_NAME"; exit; } 1315 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1449 1316 1450 1317 # Apollos put the system type in the environment. 1451 1318 1452 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit ; }1319 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 1453 1320 1454 1321 # Convex versions that predate uname can use getsysinfo(1) … … 1459 1326 c1*) 1460 1327 echo c1-convex-bsd 1461 exit ;;1328 exit 0 ;; 1462 1329 c2*) 1463 1330 if getsysinfo -f scalar_acc … … 1465 1332 else echo c2-convex-bsd 1466 1333 fi 1467 exit ;;1334 exit 0 ;; 1468 1335 c34*) 1469 1336 echo c34-convex-bsd 1470 exit ;;1337 exit 0 ;; 1471 1338 c38*) 1472 1339 echo c38-convex-bsd 1473 exit ;;1340 exit 0 ;; 1474 1341 c4*) 1475 1342 echo c4-convex-bsd 1476 exit ;;1343 exit 0 ;; 1477 1344 esac 1478 1345 fi … … 1485 1352 download the most up to date version of the config scripts from 1486 1353 1487 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1488 and 1489 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1354 ftp://ftp.gnu.org/pub/gnu/config/ 1490 1355 1491 1356 If the version you run ($0) is already up to date, please
Note: See TracChangeset
for help on using the changeset viewer.