Changeset 503 for trunk/src/gmake/config/config.guess
- Timestamp:
- Sep 15, 2006, 7:09:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/config/config.guess
r151 r503 1 #! /bin/sh 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2004-03-03' 1 2 timestamp='2006-03-13' 7 3 8 4 # This file is free software; you can redistribute it and/or modify it … … 18 14 # You should have received a copy of the GNU General Public License 19 15 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 17 # 02110-1301, USA. 21 18 # 22 19 # As a special exception to the GNU General Public License, if you … … 24 21 # configuration script generated by Autoconf, you may include it under 25 22 # the same distribution terms that you use for the rest of that program. 23 26 24 27 25 # Originally written by Per Bothner <per@bothner.com>. … … 54 52 55 53 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 54 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 57 55 Free Software Foundation, Inc. 58 56 … … 67 65 case $1 in 68 66 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;67 echo "$timestamp" ; exit ;; 70 68 --version | -v ) 71 echo "$version" ; exit 0;;69 echo "$version" ; exit ;; 72 70 --help | --h* | -h ) 73 echo "$usage"; exit 0;;71 echo "$usage"; exit ;; 74 72 -- ) # Stop option processing 75 73 shift; break ;; … … 105 103 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 104 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||105 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 106 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 107 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 124 122 ,,*) CC_FOR_BUILD=$CC ;; 125 123 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ; '124 esac ; set_cc_for_build= ;' 127 125 128 126 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 197 195 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 198 196 echo "${machine}-${os}${release}" 199 exit 0 ;; 200 amd64:OpenBSD:*:*) 201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 203 amiga:OpenBSD:*:*) 204 echo m68k-unknown-openbsd${UNAME_RELEASE} 205 exit 0 ;; 206 arc:OpenBSD:*:*) 207 echo mipsel-unknown-openbsd${UNAME_RELEASE} 208 exit 0 ;; 209 cats:OpenBSD:*:*) 210 echo arm-unknown-openbsd${UNAME_RELEASE} 211 exit 0 ;; 212 hp300:OpenBSD:*:*) 213 echo m68k-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 215 mac68k:OpenBSD:*:*) 216 echo m68k-unknown-openbsd${UNAME_RELEASE} 217 exit 0 ;; 218 macppc:OpenBSD:*:*) 219 echo powerpc-unknown-openbsd${UNAME_RELEASE} 220 exit 0 ;; 221 mvme68k:OpenBSD:*:*) 222 echo m68k-unknown-openbsd${UNAME_RELEASE} 223 exit 0 ;; 224 mvme88k:OpenBSD:*:*) 225 echo m88k-unknown-openbsd${UNAME_RELEASE} 226 exit 0 ;; 227 mvmeppc:OpenBSD:*:*) 228 echo powerpc-unknown-openbsd${UNAME_RELEASE} 229 exit 0 ;; 230 pegasos:OpenBSD:*:*) 231 echo powerpc-unknown-openbsd${UNAME_RELEASE} 232 exit 0 ;; 233 pmax:OpenBSD:*:*) 234 echo mipsel-unknown-openbsd${UNAME_RELEASE} 235 exit 0 ;; 236 sgi:OpenBSD:*:*) 237 echo mipseb-unknown-openbsd${UNAME_RELEASE} 238 exit 0 ;; 239 sun3:OpenBSD:*:*) 240 echo m68k-unknown-openbsd${UNAME_RELEASE} 241 exit 0 ;; 242 wgrisc:OpenBSD:*:*) 243 echo mipsel-unknown-openbsd${UNAME_RELEASE} 244 exit 0 ;; 197 exit ;; 245 198 *:OpenBSD:*:*) 246 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 247 exit 0 ;; 199 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 200 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 201 exit ;; 248 202 *:ekkoBSD:*:*) 249 203 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 250 exit 0 ;; 204 exit ;; 205 *:SolidBSD:*:*) 206 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 207 exit ;; 251 208 macppc:MirBSD:*:*) 252 209 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 253 exit 0;;210 exit ;; 254 211 *:MirBSD:*:*) 255 212 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 256 exit 0;;213 exit ;; 257 214 alpha:OSF1:*:*) 258 215 case $UNAME_RELEASE in … … 307 264 # 1.2 uses "1.2" for uname -r. 308 265 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 309 exit 0 ;; 310 Alpha*:OpenVMS:*:*) 311 echo alpha-hp-vms 312 exit 0 ;; 266 exit ;; 313 267 Alpha\ *:Windows_NT*:*) 314 268 # How do we know it's Interix rather than the generic POSIX subsystem? … … 316 270 # of the specific Alpha model? 317 271 echo alpha-pc-interix 318 exit 0;;272 exit ;; 319 273 21064:Windows_NT:50:3) 320 274 echo alpha-dec-winnt3.5 321 exit 0;;275 exit ;; 322 276 Amiga*:UNIX_System_V:4.0:*) 323 277 echo m68k-unknown-sysv4 324 exit 0;;278 exit ;; 325 279 *:[Aa]miga[Oo][Ss]:*:*) 326 280 echo ${UNAME_MACHINE}-unknown-amigaos 327 exit 0;;281 exit ;; 328 282 *:[Mm]orph[Oo][Ss]:*:*) 329 283 echo ${UNAME_MACHINE}-unknown-morphos 330 exit 0;;284 exit ;; 331 285 *:OS/390:*:*) 332 286 echo i370-ibm-openedition 333 exit 0 ;; 287 exit ;; 288 *:z/VM:*:*) 289 echo s390-ibm-zvmoe 290 exit ;; 334 291 *:OS400:*:*) 335 292 echo powerpc-ibm-os400 336 exit 0;;293 exit ;; 337 294 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 338 295 echo arm-acorn-riscix${UNAME_RELEASE} 339 exit 0;; 296 exit ;; 297 arm:riscos:*:*|arm:RISCOS:*:*) 298 echo arm-unknown-riscos 299 exit ;; 340 300 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 341 301 echo hppa1.1-hitachi-hiuxmpp 342 exit 0;;302 exit ;; 343 303 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 344 304 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 348 308 echo pyramid-pyramid-bsd 349 309 fi 350 exit 0;;310 exit ;; 351 311 NILE*:*:*:dcosx) 352 312 echo pyramid-pyramid-svr4 353 exit 0;;313 exit ;; 354 314 DRS?6000:unix:4.0:6*) 355 315 echo sparc-icl-nx6 356 exit 0;;357 DRS?6000:UNIX_SV:4.2*:7* )316 exit ;; 317 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 358 318 case `/usr/bin/uname -p` in 359 sparc) echo sparc-icl-nx7 && exit 0;;319 sparc) echo sparc-icl-nx7; exit ;; 360 320 esac ;; 361 321 sun4H:SunOS:5.*:*) 362 322 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 363 exit 0;;323 exit ;; 364 324 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 365 325 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 366 exit 0;;326 exit ;; 367 327 i86pc:SunOS:5.*:*) 368 328 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 369 exit 0;;329 exit ;; 370 330 sun4*:SunOS:6*:*) 371 331 # According to config.sub, this is the proper way to canonicalize … … 373 333 # it's likely to be more like Solaris than SunOS4. 374 334 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 375 exit 0;;335 exit ;; 376 336 sun4*:SunOS:*:*) 377 337 case "`/usr/bin/arch -k`" in … … 382 342 # Japanese Language versions have a version number like `4.1.3-JL'. 383 343 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 384 exit 0;;344 exit ;; 385 345 sun3*:SunOS:*:*) 386 346 echo m68k-sun-sunos${UNAME_RELEASE} 387 exit 0;;347 exit ;; 388 348 sun*:*:4.2BSD:*) 389 349 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 397 357 ;; 398 358 esac 399 exit 0;;359 exit ;; 400 360 aushp:SunOS:*:*) 401 361 echo sparc-auspex-sunos${UNAME_RELEASE} 402 exit 0;;362 exit ;; 403 363 # The situation for MiNT is a little confusing. The machine name 404 364 # can be virtually everything (everything which is not … … 411 371 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 412 372 echo m68k-atari-mint${UNAME_RELEASE} 413 exit 0;;373 exit ;; 414 374 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 415 375 echo m68k-atari-mint${UNAME_RELEASE} 416 exit 0;;376 exit ;; 417 377 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 418 378 echo m68k-atari-mint${UNAME_RELEASE} 419 exit 0;;379 exit ;; 420 380 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 421 381 echo m68k-milan-mint${UNAME_RELEASE} 422 exit 0;;382 exit ;; 423 383 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 424 384 echo m68k-hades-mint${UNAME_RELEASE} 425 exit 0;;385 exit ;; 426 386 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 427 387 echo m68k-unknown-mint${UNAME_RELEASE} 428 exit 0;;388 exit ;; 429 389 m68k:machten:*:*) 430 390 echo m68k-apple-machten${UNAME_RELEASE} 431 exit 0;;391 exit ;; 432 392 powerpc:machten:*:*) 433 393 echo powerpc-apple-machten${UNAME_RELEASE} 434 exit 0;;394 exit ;; 435 395 RISC*:Mach:*:*) 436 396 echo mips-dec-mach_bsd4.3 437 exit 0;;397 exit ;; 438 398 RISC*:ULTRIX:*:*) 439 399 echo mips-dec-ultrix${UNAME_RELEASE} 440 exit 0;;400 exit ;; 441 401 VAX*:ULTRIX*:*:*) 442 402 echo vax-dec-ultrix${UNAME_RELEASE} 443 exit 0;;403 exit ;; 444 404 2020:CLIX:*:* | 2430:CLIX:*:*) 445 405 echo clipper-intergraph-clix${UNAME_RELEASE} 446 exit 0;;406 exit ;; 447 407 mips:*:*:UMIPS | mips:*:*:RISCos) 448 408 eval $set_cc_for_build … … 468 428 } 469 429 EOF 470 $CC_FOR_BUILD -o $dummy $dummy.c \ 471 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 472 && exit 0 430 $CC_FOR_BUILD -o $dummy $dummy.c && 431 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 432 SYSTEM_NAME=`$dummy $dummyarg` && 433 { echo "$SYSTEM_NAME"; exit; } 473 434 echo mips-mips-riscos${UNAME_RELEASE} 474 exit 0;;435 exit ;; 475 436 Motorola:PowerMAX_OS:*:*) 476 437 echo powerpc-motorola-powermax 477 exit 0;;438 exit ;; 478 439 Motorola:*:4.3:PL8-*) 479 440 echo powerpc-harris-powermax 480 exit 0;;441 exit ;; 481 442 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 482 443 echo powerpc-harris-powermax 483 exit 0;;444 exit ;; 484 445 Night_Hawk:Power_UNIX:*:*) 485 446 echo powerpc-harris-powerunix 486 exit 0;;447 exit ;; 487 448 m88k:CX/UX:7*:*) 488 449 echo m88k-harris-cxux7 489 exit 0;;450 exit ;; 490 451 m88k:*:4*:R4*) 491 452 echo m88k-motorola-sysv4 492 exit 0;;453 exit ;; 493 454 m88k:*:3*:R3*) 494 455 echo m88k-motorola-sysv3 495 exit 0;;456 exit ;; 496 457 AViiON:dgux:*:*) 497 458 # DG/UX returns AViiON for all architectures … … 509 470 echo i586-dg-dgux${UNAME_RELEASE} 510 471 fi 511 exit 0;;472 exit ;; 512 473 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 513 474 echo m88k-dolphin-sysv3 514 exit 0;;475 exit ;; 515 476 M88*:*:R3*:*) 516 477 # Delta 88k system running SVR3 517 478 echo m88k-motorola-sysv3 518 exit 0;;479 exit ;; 519 480 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 520 481 echo m88k-tektronix-sysv3 521 exit 0;;482 exit ;; 522 483 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 523 484 echo m68k-tektronix-bsd 524 exit 0;;485 exit ;; 525 486 *:IRIX*:*:*) 526 487 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 527 exit 0;;488 exit ;; 528 489 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 529 echo romp-ibm-aix 530 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '490 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 491 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 531 492 i*86:AIX:*:*) 532 493 echo i386-ibm-aix 533 exit 0;;494 exit ;; 534 495 ia64:AIX:*:*) 535 496 if [ -x /usr/bin/oslevel ] ; then … … 539 500 fi 540 501 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 541 exit 0;;502 exit ;; 542 503 *:AIX:2:3) 543 504 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 554 515 } 555 516 EOF 556 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 557 echo rs6000-ibm-aix3.2.5 517 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 518 then 519 echo "$SYSTEM_NAME" 520 else 521 echo rs6000-ibm-aix3.2.5 522 fi 558 523 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 559 524 echo rs6000-ibm-aix3.2.4 … … 561 526 echo rs6000-ibm-aix3.2 562 527 fi 563 exit 0;;528 exit ;; 564 529 *:AIX:*:[45]) 565 530 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` … … 575 540 fi 576 541 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 577 exit 0;;542 exit ;; 578 543 *:AIX:*:*) 579 544 echo rs6000-ibm-aix 580 exit 0;;545 exit ;; 581 546 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 582 547 echo romp-ibm-bsd4.4 583 exit 0;;548 exit ;; 584 549 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 585 550 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 586 exit 0 ;;# report: romp-ibm BSD 4.3551 exit ;; # report: romp-ibm BSD 4.3 587 552 *:BOSX:*:*) 588 553 echo rs6000-bull-bosx 589 exit 0;;554 exit ;; 590 555 DPX/2?00:B.O.S.:*:*) 591 556 echo m68k-bull-sysv3 592 exit 0;;557 exit ;; 593 558 9000/[34]??:4.3bsd:1.*:*) 594 559 echo m68k-hp-bsd 595 exit 0;;560 exit ;; 596 561 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 597 562 echo m68k-hp-bsd4.4 598 exit 0;;563 exit ;; 599 564 9000/[34678]??:HP-UX:*:*) 600 565 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 658 623 if [ ${HP_ARCH} = "hppa2.0w" ] 659 624 then 660 # avoid double evaluation of $set_cc_for_build 661 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 625 eval $set_cc_for_build 626 627 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 628 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 629 # generating 64-bit code. GNU and HP use different nomenclature: 630 # 631 # $ CC_FOR_BUILD=cc ./config.guess 632 # => hppa2.0w-hp-hpux11.23 633 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 634 # => hppa64-hp-hpux11.23 635 636 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 637 grep __LP64__ >/dev/null 663 638 then 664 639 HP_ARCH="hppa2.0w" … … 668 643 fi 669 644 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 670 exit 0;;645 exit ;; 671 646 ia64:HP-UX:*:*) 672 647 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 673 648 echo ia64-hp-hpux${HPUX_REV} 674 exit 0;;649 exit ;; 675 650 3050*:HI-UX:*:*) 676 651 eval $set_cc_for_build … … 700 675 } 701 676 EOF 702 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 677 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 678 { echo "$SYSTEM_NAME"; exit; } 703 679 echo unknown-hitachi-hiuxwe2 704 exit 0;;680 exit ;; 705 681 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 706 682 echo hppa1.1-hp-bsd 707 exit 0;;683 exit ;; 708 684 9000/8??:4.3bsd:*:*) 709 685 echo hppa1.0-hp-bsd 710 exit 0;;686 exit ;; 711 687 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 712 688 echo hppa1.0-hp-mpeix 713 exit 0;;689 exit ;; 714 690 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 715 691 echo hppa1.1-hp-osf 716 exit 0;;692 exit ;; 717 693 hp8??:OSF1:*:*) 718 694 echo hppa1.0-hp-osf 719 exit 0;;695 exit ;; 720 696 i*86:OSF1:*:*) 721 697 if [ -x /usr/sbin/sysversion ] ; then … … 724 700 echo ${UNAME_MACHINE}-unknown-osf1 725 701 fi 726 exit 0;;702 exit ;; 727 703 parisc*:Lites*:*:*) 728 704 echo hppa1.1-hp-lites 729 exit 0;;705 exit ;; 730 706 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 731 707 echo c1-convex-bsd 732 exit 0;;708 exit ;; 733 709 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 734 710 if getsysinfo -f scalar_acc … … 736 712 else echo c2-convex-bsd 737 713 fi 738 exit 0;;714 exit ;; 739 715 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 740 716 echo c34-convex-bsd 741 exit 0;;717 exit ;; 742 718 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 743 719 echo c38-convex-bsd 744 exit 0;;720 exit ;; 745 721 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 746 722 echo c4-convex-bsd 747 exit 0;;723 exit ;; 748 724 CRAY*Y-MP:*:*:*) 749 725 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit 0;;726 exit ;; 751 727 CRAY*[A-Z]90:*:*:*) 752 728 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 754 730 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 755 731 -e 's/\.[^.]*$/.X/' 756 exit 0;;732 exit ;; 757 733 CRAY*TS:*:*:*) 758 734 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 759 exit 0;;735 exit ;; 760 736 CRAY*T3E:*:*:*) 761 737 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 762 exit 0;;738 exit ;; 763 739 CRAY*SV1:*:*:*) 764 740 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 765 exit 0;;741 exit ;; 766 742 *:UNICOS/mp:*:*) 767 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'768 exit 0;;743 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 744 exit ;; 769 745 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 770 746 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 772 748 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 773 749 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 774 exit 0;;750 exit ;; 775 751 5000:UNIX_System_V:4.*:*) 776 752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 777 753 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 778 754 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 779 exit 0;;755 exit ;; 780 756 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 781 757 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 782 exit 0;;758 exit ;; 783 759 sparc*:BSD/OS:*:*) 784 760 echo sparc-unknown-bsdi${UNAME_RELEASE} 785 exit 0;;761 exit ;; 786 762 *:BSD/OS:*:*) 787 763 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 788 exit 0;;764 exit ;; 789 765 *:FreeBSD:*:*) 790 # Determine whether the default compiler uses glibc. 791 eval $set_cc_for_build 792 sed 's/^ //' << EOF >$dummy.c 793 #include <features.h> 794 #if __GLIBC__ >= 2 795 LIBC=gnu 796 #else 797 LIBC= 798 #endif 799 EOF 800 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 801 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using 802 # FreeBSD's kernel, but not the complete OS. 803 case ${LIBC} in gnu) kernel_only='k' ;; esac 804 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 805 exit 0 ;; 766 case ${UNAME_MACHINE} in 767 pc98) 768 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 769 *) 770 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 771 esac 772 exit ;; 806 773 i*:CYGWIN*:*) 807 774 echo ${UNAME_MACHINE}-pc-cygwin 808 exit 0;;775 exit ;; 809 776 i*:MINGW*:*) 810 777 echo ${UNAME_MACHINE}-pc-mingw32 811 exit 0 ;; 778 exit ;; 779 i*:windows32*:*) 780 # uname -m includes "-pc" on this system. 781 echo ${UNAME_MACHINE}-mingw32 782 exit ;; 812 783 i*:PW*:*) 813 784 echo ${UNAME_MACHINE}-pc-pw32 814 exit 0 ;; 815 x86:Interix*:[34]*) 816 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 817 exit 0 ;; 785 exit ;; 786 x86:Interix*:[345]*) 787 echo i586-pc-interix${UNAME_RELEASE} 788 exit ;; 789 EM64T:Interix*:[345]*) 790 echo x86_64-unknown-interix${UNAME_RELEASE} 791 exit ;; 818 792 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 819 793 echo i${UNAME_MACHINE}-pc-mks 820 exit 0;;794 exit ;; 821 795 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 822 796 # How do we know it's Interix rather than the generic POSIX subsystem? … … 824 798 # UNAME_MACHINE based on the output of uname instead of i386? 825 799 echo i586-pc-interix 826 exit 0;;800 exit ;; 827 801 i*:UWIN*:*) 828 802 echo ${UNAME_MACHINE}-pc-uwin 829 exit 0 ;; 803 exit ;; 804 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 805 echo x86_64-unknown-cygwin 806 exit ;; 830 807 p*:CYGWIN*:*) 831 808 echo powerpcle-unknown-cygwin 832 exit 0;;809 exit ;; 833 810 prep*:SunOS:5.*:*) 834 811 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 835 exit 0;;812 exit ;; 836 813 *:GNU:*:*) 837 814 # the GNU system 838 815 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 839 exit 0;;816 exit ;; 840 817 *:GNU/*:*:*) 841 818 # other systems with GNU libc and userland 842 819 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 843 exit 0;;820 exit ;; 844 821 i*86:Minix:*:*) 845 822 echo ${UNAME_MACHINE}-pc-minix 846 exit 0;;823 exit ;; 847 824 arm*:Linux:*:*) 848 825 echo ${UNAME_MACHINE}-unknown-linux-gnu 849 exit 0;;826 exit ;; 850 827 cris:Linux:*:*) 851 828 echo cris-axis-linux-gnu 852 exit 0 ;; 829 exit ;; 830 crisv32:Linux:*:*) 831 echo crisv32-axis-linux-gnu 832 exit ;; 833 frv:Linux:*:*) 834 echo frv-unknown-linux-gnu 835 exit ;; 853 836 ia64:Linux:*:*) 854 837 echo ${UNAME_MACHINE}-unknown-linux-gnu 855 exit 0 ;; 838 exit ;; 839 m32r*:Linux:*:*) 840 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 exit ;; 856 842 m68*:Linux:*:*) 857 843 echo ${UNAME_MACHINE}-unknown-linux-gnu 858 exit 0;;844 exit ;; 859 845 mips:Linux:*:*) 860 846 eval $set_cc_for_build … … 873 859 #endif 874 860 EOF 875 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 876 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 861 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 862 /^CPU/{ 863 s: ::g 864 p 865 }'`" 866 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 877 867 ;; 878 868 mips64:Linux:*:*) … … 892 882 #endif 893 883 EOF 894 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 895 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 884 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 885 /^CPU/{ 886 s: ::g 887 p 888 }'`" 889 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 896 890 ;; 891 or32:Linux:*:*) 892 echo or32-unknown-linux-gnu 893 exit ;; 897 894 ppc:Linux:*:*) 898 895 echo powerpc-unknown-linux-gnu 899 exit 0;;896 exit ;; 900 897 ppc64:Linux:*:*) 901 898 echo powerpc64-unknown-linux-gnu 902 exit 0;;899 exit ;; 903 900 alpha:Linux:*:*) 904 901 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 914 911 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 915 912 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 916 exit 0;;913 exit ;; 917 914 parisc:Linux:*:* | hppa:Linux:*:*) 918 915 # Look for CPU level … … 922 919 *) echo hppa-unknown-linux-gnu ;; 923 920 esac 924 exit 0;;921 exit ;; 925 922 parisc64:Linux:*:* | hppa64:Linux:*:*) 926 923 echo hppa64-unknown-linux-gnu 927 exit 0;;924 exit ;; 928 925 s390:Linux:*:* | s390x:Linux:*:*) 929 926 echo ${UNAME_MACHINE}-ibm-linux 930 exit 0;;927 exit ;; 931 928 sh64*:Linux:*:*) 932 929 echo ${UNAME_MACHINE}-unknown-linux-gnu 933 exit 0;;930 exit ;; 934 931 sh*:Linux:*:*) 935 932 echo ${UNAME_MACHINE}-unknown-linux-gnu 936 exit 0;;933 exit ;; 937 934 sparc:Linux:*:* | sparc64:Linux:*:*) 938 935 echo ${UNAME_MACHINE}-unknown-linux-gnu 939 exit 0 ;; 936 exit ;; 937 vax:Linux:*:*) 938 echo ${UNAME_MACHINE}-dec-linux-gnu 939 exit ;; 940 940 x86_64:Linux:*:*) 941 941 echo x86_64-unknown-linux-gnu 942 exit 0;;942 exit ;; 943 943 i*86:Linux:*:*) 944 944 # The BFD linker knows what the default object file format is, so … … 958 958 a.out-i386-linux) 959 959 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 960 exit 0;;960 exit ;; 961 961 coff-i386) 962 962 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 963 exit 0;;963 exit ;; 964 964 "") 965 965 # Either a pre-BFD a.out linker (linux-gnuoldld) or 966 966 # one that does not give us useful --help. 967 967 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 968 exit 0;;968 exit ;; 969 969 esac 970 970 # Determine whether the default compiler is a.out or elf … … 983 983 # endif 984 984 #else 985 #if def __INTEL_COMPILER985 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) 986 986 LIBC=gnu 987 987 #else … … 993 993 #endif 994 994 EOF 995 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 996 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 997 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 995 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 996 /^LIBC/{ 997 s: ::g 998 p 999 }'`" 1000 test x"${LIBC}" != x && { 1001 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1002 exit 1003 } 1004 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 998 1005 ;; 999 1006 i*86:DYNIX/ptx:4*:*) … … 1002 1009 # sysname and nodename. 1003 1010 echo i386-sequent-sysv4 1004 exit 0;;1011 exit ;; 1005 1012 i*86:UNIX_SV:4.2MP:2.*) 1006 1013 # Unixware is an offshoot of SVR4, but it has its own version … … 1010 1017 # Use sysv4.2uw... so that sysv4* matches it. 1011 1018 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1012 exit 0;;1019 exit ;; 1013 1020 i*86:OS/2:*:*) 1014 1021 # If we were able to find `uname', then EMX Unix compatibility 1015 1022 # is probably installed. 1016 1023 echo ${UNAME_MACHINE}-pc-os2-emx 1017 exit 0;;1024 exit ;; 1018 1025 i*86:XTS-300:*:STOP) 1019 1026 echo ${UNAME_MACHINE}-unknown-stop 1020 exit 0;;1027 exit ;; 1021 1028 i*86:atheos:*:*) 1022 1029 echo ${UNAME_MACHINE}-unknown-atheos 1023 exit 0;;1024 1030 exit ;; 1031 i*86:syllable:*:*) 1025 1032 echo ${UNAME_MACHINE}-pc-syllable 1026 exit 0;;1033 exit ;; 1027 1034 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1028 1035 echo i386-unknown-lynxos${UNAME_RELEASE} 1029 exit 0;;1036 exit ;; 1030 1037 i*86:*DOS:*:*) 1031 1038 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1032 exit 0;;1039 exit ;; 1033 1040 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1034 1041 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1038 1045 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1039 1046 fi 1040 exit 0 ;; 1041 i*86:*:5:[78]*) 1047 exit ;; 1048 i*86:*:5:[678]*) 1049 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1042 1050 case `/bin/uname -X | grep "^Machine"` in 1043 1051 *486*) UNAME_MACHINE=i486 ;; … … 1046 1054 esac 1047 1055 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1048 exit 0;;1056 exit ;; 1049 1057 i*86:*:3.2:*) 1050 1058 if test -f /usr/options/cb.name; then … … 1064 1072 echo ${UNAME_MACHINE}-pc-sysv32 1065 1073 fi 1066 exit 0;;1074 exit ;; 1067 1075 pc:*:*:*) 1068 1076 # Left here for compatibility: … … 1070 1078 # the processor, so we play safe by assuming i386. 1071 1079 echo i386-pc-msdosdjgpp 1072 exit 0;;1080 exit ;; 1073 1081 Intel:Mach:3*:*) 1074 1082 echo i386-pc-mach3 1075 exit 0;;1083 exit ;; 1076 1084 paragon:*:*:*) 1077 1085 echo i860-intel-osf1 1078 exit 0;;1086 exit ;; 1079 1087 i860:*:4.*:*) # i860-SVR4 1080 1088 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then … … 1083 1091 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1084 1092 fi 1085 exit 0;;1093 exit ;; 1086 1094 mini*:CTIX:SYS*5:*) 1087 1095 # "miniframe" 1088 1096 echo m68010-convergent-sysv 1089 exit 0;;1097 exit ;; 1090 1098 mc68k:UNIX:SYSTEM5:3.51m) 1091 1099 echo m68k-convergent-sysv 1092 exit 0;;1100 exit ;; 1093 1101 M680?0:D-NIX:5.3:*) 1094 1102 echo m68k-diab-dnix 1095 exit 0;;1096 M68*:*:R3V[567 ]*:*)1097 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0;;1098 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 )1103 exit ;; 1104 M68*:*:R3V[5678]*:*) 1105 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1106 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) 1099 1107 OS_REL='' 1100 1108 test -r /etc/.relid \ 1101 1109 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1102 1110 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1103 && echo i486-ncr-sysv4.3${OS_REL} && exit 01111 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1104 1112 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1105 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1113 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1106 1114 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1107 1115 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1108 && echo i486-ncr-sysv4 && exit 0;;1116 && { echo i486-ncr-sysv4; exit; } ;; 1109 1117 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1110 1118 echo m68k-unknown-lynxos${UNAME_RELEASE} 1111 exit 0;;1119 exit ;; 1112 1120 mc68030:UNIX_System_V:4.*:*) 1113 1121 echo m68k-atari-sysv4 1114 exit 0;;1122 exit ;; 1115 1123 TSUNAMI:LynxOS:2.*:*) 1116 1124 echo sparc-unknown-lynxos${UNAME_RELEASE} 1117 exit 0;;1125 exit ;; 1118 1126 rs6000:LynxOS:2.*:*) 1119 1127 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1120 exit 0;;1128 exit ;; 1121 1129 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1122 1130 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1123 exit 0;;1131 exit ;; 1124 1132 SM[BE]S:UNIX_SV:*:*) 1125 1133 echo mips-dde-sysv${UNAME_RELEASE} 1126 exit 0;;1134 exit ;; 1127 1135 RM*:ReliantUNIX-*:*:*) 1128 1136 echo mips-sni-sysv4 1129 exit 0;;1137 exit ;; 1130 1138 RM*:SINIX-*:*:*) 1131 1139 echo mips-sni-sysv4 1132 exit 0;;1140 exit ;; 1133 1141 *:SINIX-*:*:*) 1134 1142 if uname -p 2>/dev/null >/dev/null ; then … … 1138 1146 echo ns32k-sni-sysv 1139 1147 fi 1140 exit 0;;1148 exit ;; 1141 1149 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1142 1150 # says <Richard.M.Bartel@ccMail.Census.GOV> 1143 1151 echo i586-unisys-sysv4 1144 exit 0;;1152 exit ;; 1145 1153 *:UNIX_System_V:4*:FTX*) 1146 1154 # From Gerald Hewes <hewes@openmarket.com>. 1147 1155 # How about differentiating between stratus architectures? -djm 1148 1156 echo hppa1.1-stratus-sysv4 1149 exit 0;;1157 exit ;; 1150 1158 *:*:*:FTX*) 1151 1159 # From seanf@swdc.stratus.com. 1152 1160 echo i860-stratus-sysv4 1153 exit 0 ;; 1161 exit ;; 1162 i*86:VOS:*:*) 1163 # From Paul.Green@stratus.com. 1164 echo ${UNAME_MACHINE}-stratus-vos 1165 exit ;; 1154 1166 *:VOS:*:*) 1155 1167 # From Paul.Green@stratus.com. 1156 1168 echo hppa1.1-stratus-vos 1157 exit 0;;1169 exit ;; 1158 1170 mc68*:A/UX:*:*) 1159 1171 echo m68k-apple-aux${UNAME_RELEASE} 1160 exit 0;;1172 exit ;; 1161 1173 news*:NEWS-OS:6*:*) 1162 1174 echo mips-sony-newsos6 1163 exit 0;;1175 exit ;; 1164 1176 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1165 1177 if [ -d /usr/nec ]; then … … 1168 1180 echo mips-unknown-sysv${UNAME_RELEASE} 1169 1181 fi 1170 exit 0;;1182 exit ;; 1171 1183 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1172 1184 echo powerpc-be-beos 1173 exit 0;;1185 exit ;; 1174 1186 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1175 1187 echo powerpc-apple-beos 1176 exit 0;;1188 exit ;; 1177 1189 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1178 1190 echo i586-pc-beos 1179 exit 0;;1191 exit ;; 1180 1192 SX-4:SUPER-UX:*:*) 1181 1193 echo sx4-nec-superux${UNAME_RELEASE} 1182 exit 0;;1194 exit ;; 1183 1195 SX-5:SUPER-UX:*:*) 1184 1196 echo sx5-nec-superux${UNAME_RELEASE} 1185 exit 0;;1197 exit ;; 1186 1198 SX-6:SUPER-UX:*:*) 1187 1199 echo sx6-nec-superux${UNAME_RELEASE} 1188 exit 0;;1200 exit ;; 1189 1201 Power*:Rhapsody:*:*) 1190 1202 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1191 exit 0;;1203 exit ;; 1192 1204 *:Rhapsody:*:*) 1193 1205 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1194 exit 0;;1206 exit ;; 1195 1207 *:Darwin:*:*) 1196 case `uname -p` in1197 *86) UNAME_PROCESSOR=i686 ;;1198 powerpc) UNAME_PROCESSOR=powerpc ;;1208 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1209 case $UNAME_PROCESSOR in 1210 unknown) UNAME_PROCESSOR=powerpc ;; 1199 1211 esac 1200 1212 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1201 exit 0;;1213 exit ;; 1202 1214 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1203 1215 UNAME_PROCESSOR=`uname -p` … … 1207 1219 fi 1208 1220 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1209 exit 0;;1221 exit ;; 1210 1222 *:QNX:*:4*) 1211 1223 echo i386-pc-qnx 1212 exit 0 ;; 1224 exit ;; 1225 NSE-?:NONSTOP_KERNEL:*:*) 1226 echo nse-tandem-nsk${UNAME_RELEASE} 1227 exit ;; 1213 1228 NSR-?:NONSTOP_KERNEL:*:*) 1214 1229 echo nsr-tandem-nsk${UNAME_RELEASE} 1215 exit 0;;1230 exit ;; 1216 1231 *:NonStop-UX:*:*) 1217 1232 echo mips-compaq-nonstopux 1218 exit 0;;1233 exit ;; 1219 1234 BS2000:POSIX*:*:*) 1220 1235 echo bs2000-siemens-sysv 1221 exit 0;;1236 exit ;; 1222 1237 DS/*:UNIX_System_V:*:*) 1223 1238 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1224 exit 0;;1239 exit ;; 1225 1240 *:Plan9:*:*) 1226 1241 # "uname -m" is not consistent, so use $cputype instead. 386 … … 1233 1248 fi 1234 1249 echo ${UNAME_MACHINE}-unknown-plan9 1235 exit 0;;1250 exit ;; 1236 1251 *:TOPS-10:*:*) 1237 1252 echo pdp10-unknown-tops10 1238 exit 0;;1253 exit ;; 1239 1254 *:TENEX:*:*) 1240 1255 echo pdp10-unknown-tenex 1241 exit 0;;1256 exit ;; 1242 1257 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1243 1258 echo pdp10-dec-tops20 1244 exit 0;;1259 exit ;; 1245 1260 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1246 1261 echo pdp10-xkl-tops20 1247 exit 0;;1262 exit ;; 1248 1263 *:TOPS-20:*:*) 1249 1264 echo pdp10-unknown-tops20 1250 exit 0;;1265 exit ;; 1251 1266 *:ITS:*:*) 1252 1267 echo pdp10-unknown-its 1253 exit 0;;1268 exit ;; 1254 1269 SEI:*:*:SEIUX) 1255 1270 echo mips-sei-seiux${UNAME_RELEASE} 1256 exit 0;;1271 exit ;; 1257 1272 *:DragonFly:*:*) 1258 1273 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1259 exit 0 ;; 1274 exit ;; 1275 *:*VMS:*:*) 1276 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1277 case "${UNAME_MACHINE}" in 1278 A*) echo alpha-dec-vms ; exit ;; 1279 I*) echo ia64-dec-vms ; exit ;; 1280 V*) echo vax-dec-vms ; exit ;; 1281 esac ;; 1282 *:XENIX:*:SysV) 1283 echo i386-pc-xenix 1284 exit ;; 1285 i*86:skyos:*:*) 1286 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1287 exit ;; 1288 i*86:rdos:*:*) 1289 echo ${UNAME_MACHINE}-pc-rdos 1290 exit ;; 1260 1291 esac 1261 1292 … … 1289 1320 1290 1321 #if defined (__arm) && defined (__acorn) && defined (__unix) 1291 printf ("arm-acorn-riscix "); exit (0);1322 printf ("arm-acorn-riscix\n"); exit (0); 1292 1323 #endif 1293 1324 … … 1378 1409 EOF 1379 1410 1380 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1411 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1412 { echo "$SYSTEM_NAME"; exit; } 1381 1413 1382 1414 # Apollos put the system type in the environment. 1383 1415 1384 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1416 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1385 1417 1386 1418 # Convex versions that predate uname can use getsysinfo(1) … … 1391 1423 c1*) 1392 1424 echo c1-convex-bsd 1393 exit 0;;1425 exit ;; 1394 1426 c2*) 1395 1427 if getsysinfo -f scalar_acc … … 1397 1429 else echo c2-convex-bsd 1398 1430 fi 1399 exit 0;;1431 exit ;; 1400 1432 c34*) 1401 1433 echo c34-convex-bsd 1402 exit 0;;1434 exit ;; 1403 1435 c38*) 1404 1436 echo c38-convex-bsd 1405 exit 0;;1437 exit ;; 1406 1438 c4*) 1407 1439 echo c4-convex-bsd 1408 exit 0;;1440 exit ;; 1409 1441 esac 1410 1442 fi … … 1417 1449 download the most up to date version of the config scripts from 1418 1450 1419 ftp://ftp.gnu.org/pub/gnu/config/ 1451 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1452 and 1453 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1420 1454 1421 1455 If the version you run ($0) is already up to date, please
Note:
See TracChangeset
for help on using the changeset viewer.