source:
patches/file-4.21-config_update-1.patch@
bd88a5f
Last change on this file since bd88a5f was bb52fc7e, checked in by , 17 years ago | |
---|---|
|
|
File size: 48.3 KB |
-
config.guess
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2006-11-02 Initial Package Version: 4.18 Origin: Jim Gifford Upstream Status: Unknown Description: Updates config.sub and config.guess diff -Naur file-4.18.orig/config.guess file-4.18/config.guess
old new 1 1 #! /bin/sh 2 #3 # $NetBSD: config.guess,v 1.8 2004/08/14 19:13:55 schmonz Exp $4 #5 2 # Attempt to guess a canonical system name. 6 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 7 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 8 5 9 timestamp='200 4-06-11'6 timestamp='2006-01-02' 10 7 11 8 # This file is free software; you can redistribute it and/or modify it 12 9 # under the terms of the GNU General Public License as published by … … 20 17 # 21 18 # You should have received a copy of the GNU General Public License 22 19 # along with this program; if not, write to the Free Software 23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 21 # 02110-1301, USA. 24 22 # 25 23 # As a special exception to the GNU General Public License, if you 26 24 # distribute this file as part of a program that contains a 27 25 # configuration script generated by Autoconf, you may include it under 28 26 # the same distribution terms that you use for the rest of that program. 29 27 28 30 29 # Originally written by Per Bothner <per@bothner.com>. 31 30 # Please send patches to <config-patches@gnu.org>. Submit a context 32 31 # diff and a properly formatted ChangeLog entry. … … 56 55 GNU config.guess ($timestamp) 57 56 58 57 Originally written by Per Bothner. 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 60 59 Free Software Foundation, Inc. 61 60 62 61 This is free software; see the source for copying conditions. There is NO … … 69 68 while test $# -gt 0 ; do 70 69 case $1 in 71 70 --time-stamp | --time* | -t ) 72 echo "$timestamp" ; exit 0;;71 echo "$timestamp" ; exit ;; 73 72 --version | -v ) 74 echo "$version" ; exit 0;;73 echo "$version" ; exit ;; 75 74 --help | --h* | -h ) 76 echo "$usage"; exit 0;;75 echo "$usage"; exit ;; 77 76 -- ) # Stop option processing 78 77 shift; break ;; 79 78 - ) # Use stdin as input. … … 126 125 ;; 127 126 ,,*) CC_FOR_BUILD=$CC ;; 128 127 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 129 esac ; '128 esac ; set_cc_for_build= ;' 130 129 131 130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 132 131 # (ghazi@noc.rutgers.edu 1994-08-24) … … 161 160 arm*) machine=arm-unknown ;; 162 161 sh3el) machine=shl-unknown ;; 163 162 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;;165 163 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 166 164 esac 167 165 # The Operating System including object format, if it has switched … … 200 198 # contains redundant information, the shorter form: 201 199 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 202 200 echo "${machine}-${os}${release}" 203 exit 0 ;; 204 amd64:OpenBSD:*:*) 205 echo x86_64-unknown-openbsd${UNAME_RELEASE} 206 exit 0 ;; 207 amiga:OpenBSD:*:*) 208 echo m68k-unknown-openbsd${UNAME_RELEASE} 209 exit 0 ;; 210 arc:OpenBSD:*:*) 211 echo mipsel-unknown-openbsd${UNAME_RELEASE} 212 exit 0 ;; 213 cats:OpenBSD:*:*) 214 echo arm-unknown-openbsd${UNAME_RELEASE} 215 exit 0 ;; 216 hp300:OpenBSD:*:*) 217 echo m68k-unknown-openbsd${UNAME_RELEASE} 218 exit 0 ;; 219 luna88k:OpenBSD:*:*) 220 echo m88k-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 222 mac68k:OpenBSD:*:*) 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 224 exit 0 ;; 225 macppc:OpenBSD:*:*) 226 echo powerpc-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 228 mvme68k:OpenBSD:*:*) 229 echo m68k-unknown-openbsd${UNAME_RELEASE} 230 exit 0 ;; 231 mvme88k:OpenBSD:*:*) 232 echo m88k-unknown-openbsd${UNAME_RELEASE} 233 exit 0 ;; 234 mvmeppc:OpenBSD:*:*) 235 echo powerpc-unknown-openbsd${UNAME_RELEASE} 236 exit 0 ;; 237 pmax:OpenBSD:*:*) 238 echo mipsel-unknown-openbsd${UNAME_RELEASE} 239 exit 0 ;; 240 sgi:OpenBSD:*:*) 241 echo mipseb-unknown-openbsd${UNAME_RELEASE} 242 exit 0 ;; 243 sun3:OpenBSD:*:*) 244 echo m68k-unknown-openbsd${UNAME_RELEASE} 245 exit 0 ;; 246 wgrisc:OpenBSD:*:*) 247 echo mipsel-unknown-openbsd${UNAME_RELEASE} 248 exit 0 ;; 201 exit ;; 249 202 *:OpenBSD:*:*) 250 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 251 exit 0 ;; 203 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 204 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 205 exit ;; 252 206 *:ekkoBSD:*:*) 253 207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 254 exit 0 ;; 208 exit ;; 209 *:SolidBSD:*:*) 210 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 211 exit ;; 255 212 macppc:MirBSD:*:*) 256 213 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 257 exit 0;;214 exit ;; 258 215 *:MirBSD:*:*) 259 216 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 260 exit 0;;217 exit ;; 261 218 alpha:OSF1:*:*) 262 219 case $UNAME_RELEASE in 263 220 *4.0) … … 310 267 # A Xn.n version is an unreleased experimental baselevel. 311 268 # 1.2 uses "1.2" for uname -r. 312 269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 313 exit 0 ;; 314 Alpha*:OpenVMS:*:*) 315 echo alpha-hp-vms 316 exit 0 ;; 270 exit ;; 317 271 Alpha\ *:Windows_NT*:*) 318 272 # How do we know it's Interix rather than the generic POSIX subsystem? 319 273 # Should we change UNAME_MACHINE based on the output of uname instead 320 274 # of the specific Alpha model? 321 275 echo alpha-pc-interix 322 exit 0;;276 exit ;; 323 277 21064:Windows_NT:50:3) 324 278 echo alpha-dec-winnt3.5 325 exit 0;;279 exit ;; 326 280 Amiga*:UNIX_System_V:4.0:*) 327 281 echo m68k-unknown-sysv4 328 exit 0;;282 exit ;; 329 283 *:[Aa]miga[Oo][Ss]:*:*) 330 284 echo ${UNAME_MACHINE}-unknown-amigaos 331 exit 0;;285 exit ;; 332 286 *:[Mm]orph[Oo][Ss]:*:*) 333 287 echo ${UNAME_MACHINE}-unknown-morphos 334 exit 0;;288 exit ;; 335 289 *:OS/390:*:*) 336 290 echo i370-ibm-openedition 337 exit 0 ;; 291 exit ;; 292 *:z/VM:*:*) 293 echo s390-ibm-zvmoe 294 exit ;; 338 295 *:OS400:*:*) 339 296 echo powerpc-ibm-os400 340 exit 0;;297 exit ;; 341 298 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 342 299 echo arm-acorn-riscix${UNAME_RELEASE} 343 exit 0;; 300 exit ;; 301 arm:riscos:*:*|arm:RISCOS:*:*) 302 echo arm-unknown-riscos 303 exit ;; 344 304 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 345 305 echo hppa1.1-hitachi-hiuxmpp 346 exit 0;;306 exit ;; 347 307 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 348 308 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 349 309 if test "`(/bin/universe) 2>/dev/null`" = att ; then … … 351 311 else 352 312 echo pyramid-pyramid-bsd 353 313 fi 354 exit 0;;314 exit ;; 355 315 NILE*:*:*:dcosx) 356 316 echo pyramid-pyramid-svr4 357 exit 0;;317 exit ;; 358 318 DRS?6000:unix:4.0:6*) 359 319 echo sparc-icl-nx6 360 exit 0;;361 DRS?6000:UNIX_SV:4.2*:7* )320 exit ;; 321 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 362 322 case `/usr/bin/uname -p` in 363 sparc) echo sparc-icl-nx7 && exit 0;;323 sparc) echo sparc-icl-nx7; exit ;; 364 324 esac ;; 365 325 sun4H:SunOS:5.*:*) 366 326 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 367 exit 0;;327 exit ;; 368 328 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 369 329 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 370 exit 0;;330 exit ;; 371 331 i86pc:SunOS:5.*:*) 372 332 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 373 exit 0;;333 exit ;; 374 334 sun4*:SunOS:6*:*) 375 335 # According to config.sub, this is the proper way to canonicalize 376 336 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 377 337 # it's likely to be more like Solaris than SunOS4. 378 338 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 379 exit 0;;339 exit ;; 380 340 sun4*:SunOS:*:*) 381 341 case "`/usr/bin/arch -k`" in 382 342 Series*|S4*) … … 385 345 esac 386 346 # Japanese Language versions have a version number like `4.1.3-JL'. 387 347 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 388 exit 0;;348 exit ;; 389 349 sun3*:SunOS:*:*) 390 350 echo m68k-sun-sunos${UNAME_RELEASE} 391 exit 0;;351 exit ;; 392 352 sun*:*:4.2BSD:*) 393 353 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 394 354 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 … … 400 360 echo sparc-sun-sunos${UNAME_RELEASE} 401 361 ;; 402 362 esac 403 exit 0;;363 exit ;; 404 364 aushp:SunOS:*:*) 405 365 echo sparc-auspex-sunos${UNAME_RELEASE} 406 exit 0;;366 exit ;; 407 367 # The situation for MiNT is a little confusing. The machine name 408 368 # can be virtually everything (everything which is not 409 369 # "atarist" or "atariste" at least should have a processor … … 414 374 # be no problem. 415 375 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 416 376 echo m68k-atari-mint${UNAME_RELEASE} 417 exit 0;;377 exit ;; 418 378 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 419 379 echo m68k-atari-mint${UNAME_RELEASE} 420 exit 0;;380 exit ;; 421 381 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 422 382 echo m68k-atari-mint${UNAME_RELEASE} 423 exit 0;;383 exit ;; 424 384 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 425 385 echo m68k-milan-mint${UNAME_RELEASE} 426 exit 0;;386 exit ;; 427 387 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 428 388 echo m68k-hades-mint${UNAME_RELEASE} 429 exit 0;;389 exit ;; 430 390 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 431 391 echo m68k-unknown-mint${UNAME_RELEASE} 432 exit 0;;392 exit ;; 433 393 m68k:machten:*:*) 434 394 echo m68k-apple-machten${UNAME_RELEASE} 435 exit 0;;395 exit ;; 436 396 powerpc:machten:*:*) 437 397 echo powerpc-apple-machten${UNAME_RELEASE} 438 exit 0;;398 exit ;; 439 399 RISC*:Mach:*:*) 440 400 echo mips-dec-mach_bsd4.3 441 exit 0;;401 exit ;; 442 402 RISC*:ULTRIX:*:*) 443 403 echo mips-dec-ultrix${UNAME_RELEASE} 444 exit 0;;404 exit ;; 445 405 VAX*:ULTRIX*:*:*) 446 406 echo vax-dec-ultrix${UNAME_RELEASE} 447 exit 0;;407 exit ;; 448 408 2020:CLIX:*:* | 2430:CLIX:*:*) 449 409 echo clipper-intergraph-clix${UNAME_RELEASE} 450 exit 0;;410 exit ;; 451 411 mips:*:*:UMIPS | mips:*:*:RISCos) 452 412 eval $set_cc_for_build 453 413 sed 's/^ //' << EOF >$dummy.c … … 471 431 exit (-1); 472 432 } 473 433 EOF 474 $CC_FOR_BUILD -o $dummy $dummy.c \ 475 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 476 && exit 0 434 $CC_FOR_BUILD -o $dummy $dummy.c && 435 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 436 SYSTEM_NAME=`$dummy $dummyarg` && 437 { echo "$SYSTEM_NAME"; exit; } 477 438 echo mips-mips-riscos${UNAME_RELEASE} 478 exit 0;;439 exit ;; 479 440 Motorola:PowerMAX_OS:*:*) 480 441 echo powerpc-motorola-powermax 481 exit 0;;442 exit ;; 482 443 Motorola:*:4.3:PL8-*) 483 444 echo powerpc-harris-powermax 484 exit 0;;445 exit ;; 485 446 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 486 447 echo powerpc-harris-powermax 487 exit 0;;448 exit ;; 488 449 Night_Hawk:Power_UNIX:*:*) 489 450 echo powerpc-harris-powerunix 490 exit 0;;451 exit ;; 491 452 m88k:CX/UX:7*:*) 492 453 echo m88k-harris-cxux7 493 exit 0;;454 exit ;; 494 455 m88k:*:4*:R4*) 495 456 echo m88k-motorola-sysv4 496 exit 0;;457 exit ;; 497 458 m88k:*:3*:R3*) 498 459 echo m88k-motorola-sysv3 499 exit 0;;460 exit ;; 500 461 AViiON:dgux:*:*) 501 462 # DG/UX returns AViiON for all architectures 502 463 UNAME_PROCESSOR=`/usr/bin/uname -p` … … 512 473 else 513 474 echo i586-dg-dgux${UNAME_RELEASE} 514 475 fi 515 exit 0;;476 exit ;; 516 477 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 517 478 echo m88k-dolphin-sysv3 518 exit 0;;479 exit ;; 519 480 M88*:*:R3*:*) 520 481 # Delta 88k system running SVR3 521 482 echo m88k-motorola-sysv3 522 exit 0;;483 exit ;; 523 484 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 524 485 echo m88k-tektronix-sysv3 525 exit 0;;486 exit ;; 526 487 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 527 488 echo m68k-tektronix-bsd 528 exit 0;;489 exit ;; 529 490 *:IRIX*:*:*) 530 491 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 531 exit 0;;492 exit ;; 532 493 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 533 echo romp-ibm-aix 534 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '494 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 495 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 535 496 i*86:AIX:*:*) 536 497 echo i386-ibm-aix 537 exit 0;;498 exit ;; 538 499 ia64:AIX:*:*) 539 500 if [ -x /usr/bin/oslevel ] ; then 540 501 IBM_REV=`/usr/bin/oslevel` … … 542 503 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 543 504 fi 544 505 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 545 exit 0;;506 exit ;; 546 507 *:AIX:2:3) 547 508 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 548 509 eval $set_cc_for_build … … 557 518 exit(0); 558 519 } 559 520 EOF 560 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 561 echo rs6000-ibm-aix3.2.5 521 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 522 then 523 echo "$SYSTEM_NAME" 524 else 525 echo rs6000-ibm-aix3.2.5 526 fi 562 527 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 563 528 echo rs6000-ibm-aix3.2.4 564 529 else 565 530 echo rs6000-ibm-aix3.2 566 531 fi 567 exit 0;;532 exit ;; 568 533 *:AIX:*:[45]) 569 534 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 570 535 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then … … 578 543 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 579 544 fi 580 545 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 581 exit 0;;546 exit ;; 582 547 *:AIX:*:*) 583 548 echo rs6000-ibm-aix 584 exit 0;;549 exit ;; 585 550 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 586 551 echo romp-ibm-bsd4.4 587 exit 0;;552 exit ;; 588 553 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 589 554 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 590 exit 0 ;;# report: romp-ibm BSD 4.3555 exit ;; # report: romp-ibm BSD 4.3 591 556 *:BOSX:*:*) 592 557 echo rs6000-bull-bosx 593 exit 0;;558 exit ;; 594 559 DPX/2?00:B.O.S.:*:*) 595 560 echo m68k-bull-sysv3 596 exit 0;;561 exit ;; 597 562 9000/[34]??:4.3bsd:1.*:*) 598 563 echo m68k-hp-bsd 599 exit 0;;564 exit ;; 600 565 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 601 566 echo m68k-hp-bsd4.4 602 exit 0;;567 exit ;; 603 568 9000/[34678]??:HP-UX:*:*) 604 569 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 605 570 case "${UNAME_MACHINE}" in … … 661 626 esac 662 627 if [ ${HP_ARCH} = "hppa2.0w" ] 663 628 then 664 # avoid double evaluation of $set_cc_for_build 665 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 666 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 629 eval $set_cc_for_build 630 631 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 632 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 633 # generating 64-bit code. GNU and HP use different nomenclature: 634 # 635 # $ CC_FOR_BUILD=cc ./config.guess 636 # => hppa2.0w-hp-hpux11.23 637 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 638 # => hppa64-hp-hpux11.23 639 640 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 641 grep __LP64__ >/dev/null 667 642 then 668 643 HP_ARCH="hppa2.0w" 669 644 else … … 671 646 fi 672 647 fi 673 648 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 674 exit 0;;649 exit ;; 675 650 ia64:HP-UX:*:*) 676 651 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 677 652 echo ia64-hp-hpux${HPUX_REV} 678 exit 0;;653 exit ;; 679 654 3050*:HI-UX:*:*) 680 655 eval $set_cc_for_build 681 656 sed 's/^ //' << EOF >$dummy.c … … 703 678 exit (0); 704 679 } 705 680 EOF 706 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 681 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 682 { echo "$SYSTEM_NAME"; exit; } 707 683 echo unknown-hitachi-hiuxwe2 708 exit 0;;684 exit ;; 709 685 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 710 686 echo hppa1.1-hp-bsd 711 exit 0;;687 exit ;; 712 688 9000/8??:4.3bsd:*:*) 713 689 echo hppa1.0-hp-bsd 714 exit 0;;690 exit ;; 715 691 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 716 692 echo hppa1.0-hp-mpeix 717 exit 0;;693 exit ;; 718 694 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 719 695 echo hppa1.1-hp-osf 720 exit 0;;696 exit ;; 721 697 hp8??:OSF1:*:*) 722 698 echo hppa1.0-hp-osf 723 exit 0;;699 exit ;; 724 700 i*86:OSF1:*:*) 725 701 if [ -x /usr/sbin/sysversion ] ; then 726 702 echo ${UNAME_MACHINE}-unknown-osf1mk 727 703 else 728 704 echo ${UNAME_MACHINE}-unknown-osf1 729 705 fi 730 exit 0;;706 exit ;; 731 707 parisc*:Lites*:*:*) 732 708 echo hppa1.1-hp-lites 733 exit 0;;709 exit ;; 734 710 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 735 711 echo c1-convex-bsd 736 exit 0;;712 exit ;; 737 713 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 738 714 if getsysinfo -f scalar_acc 739 715 then echo c32-convex-bsd 740 716 else echo c2-convex-bsd 741 717 fi 742 exit 0;;718 exit ;; 743 719 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 744 720 echo c34-convex-bsd 745 exit 0;;721 exit ;; 746 722 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 747 723 echo c38-convex-bsd 748 exit 0;;724 exit ;; 749 725 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 750 726 echo c4-convex-bsd 751 exit 0;;727 exit ;; 752 728 CRAY*Y-MP:*:*:*) 753 729 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 754 exit 0;;730 exit ;; 755 731 CRAY*[A-Z]90:*:*:*) 756 732 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 757 733 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 758 734 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 759 735 -e 's/\.[^.]*$/.X/' 760 exit 0;;736 exit ;; 761 737 CRAY*TS:*:*:*) 762 738 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 763 exit 0;;739 exit ;; 764 740 CRAY*T3E:*:*:*) 765 741 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 766 exit 0;;742 exit ;; 767 743 CRAY*SV1:*:*:*) 768 744 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 769 exit 0;;745 exit ;; 770 746 *:UNICOS/mp:*:*) 771 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'772 exit 0;;747 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 748 exit ;; 773 749 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 774 750 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 775 751 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 776 752 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 777 753 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 778 exit 0;;754 exit ;; 779 755 5000:UNIX_System_V:4.*:*) 780 756 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 781 757 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 782 758 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 783 exit 0;;759 exit ;; 784 760 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 785 761 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 786 exit 0;;762 exit ;; 787 763 sparc*:BSD/OS:*:*) 788 764 echo sparc-unknown-bsdi${UNAME_RELEASE} 789 exit 0;;765 exit ;; 790 766 *:BSD/OS:*:*) 791 767 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 792 exit 0;;768 exit ;; 793 769 *:FreeBSD:*:*) 794 # Determine whether the default compiler uses glibc. 795 eval $set_cc_for_build 796 sed 's/^ //' << EOF >$dummy.c 797 #include <features.h> 798 #if __GLIBC__ >= 2 799 LIBC=gnu 800 #else 801 LIBC= 802 #endif 803 EOF 804 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 805 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using 806 # FreeBSD's kernel, but not the complete OS. 807 case ${LIBC} in gnu) kernel_only='k' ;; esac 808 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 809 exit 0 ;; 770 case ${UNAME_MACHINE} in 771 pc98) 772 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 773 *) 774 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 775 esac 776 exit ;; 810 777 i*:CYGWIN*:*) 811 778 echo ${UNAME_MACHINE}-pc-cygwin 812 exit 0;;779 exit ;; 813 780 i*:MINGW*:*) 814 781 echo ${UNAME_MACHINE}-pc-mingw32 815 exit 0 ;; 782 exit ;; 783 i*:windows32*:*) 784 # uname -m includes "-pc" on this system. 785 echo ${UNAME_MACHINE}-mingw32 786 exit ;; 816 787 i*:PW*:*) 817 788 echo ${UNAME_MACHINE}-pc-pw32 818 exit 0;;819 x86:Interix*:[34 ]*)789 exit ;; 790 x86:Interix*:[345]*) 820 791 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 821 exit 0;;792 exit ;; 822 793 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 823 794 echo i${UNAME_MACHINE}-pc-mks 824 exit 0;;795 exit ;; 825 796 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 826 797 # How do we know it's Interix rather than the generic POSIX subsystem? 827 798 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 828 799 # UNAME_MACHINE based on the output of uname instead of i386? 829 800 echo i586-pc-interix 830 exit 0;;801 exit ;; 831 802 i*:UWIN*:*) 832 803 echo ${UNAME_MACHINE}-pc-uwin 833 exit 0 ;; 804 exit ;; 805 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 806 echo x86_64-unknown-cygwin 807 exit ;; 834 808 p*:CYGWIN*:*) 835 809 echo powerpcle-unknown-cygwin 836 exit 0;;810 exit ;; 837 811 prep*:SunOS:5.*:*) 838 812 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 839 exit 0;;813 exit ;; 840 814 *:GNU:*:*) 841 815 # the GNU system 842 816 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 843 exit 0;;817 exit ;; 844 818 *:GNU/*:*:*) 845 819 # other systems with GNU libc and userland 846 820 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 847 exit 0;;821 exit ;; 848 822 i*86:Minix:*:*) 849 823 echo ${UNAME_MACHINE}-pc-minix 850 exit 0;;824 exit ;; 851 825 arm*:Linux:*:*) 852 826 echo ${UNAME_MACHINE}-unknown-linux-gnu 853 exit 0;;827 exit ;; 854 828 cris:Linux:*:*) 855 829 echo cris-axis-linux-gnu 856 exit 0 ;; 830 exit ;; 831 crisv32:Linux:*:*) 832 echo crisv32-axis-linux-gnu 833 exit ;; 834 frv:Linux:*:*) 835 echo frv-unknown-linux-gnu 836 exit ;; 857 837 ia64:Linux:*:*) 858 838 echo ${UNAME_MACHINE}-unknown-linux-gnu 859 exit 0;;839 exit ;; 860 840 m32r*:Linux:*:*) 861 841 echo ${UNAME_MACHINE}-unknown-linux-gnu 862 exit 0;;842 exit ;; 863 843 m68*:Linux:*:*) 864 844 echo ${UNAME_MACHINE}-unknown-linux-gnu 865 exit 0;;845 exit ;; 866 846 mips:Linux:*:*) 867 847 eval $set_cc_for_build 868 848 sed 's/^ //' << EOF >$dummy.c … … 879 859 #endif 880 860 #endif 881 861 EOF 882 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`883 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0862 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 863 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 884 864 ;; 885 865 mips64:Linux:*:*) 886 866 eval $set_cc_for_build … … 898 878 #endif 899 879 #endif 900 880 EOF 901 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`902 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0881 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" 882 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 903 883 ;; 884 or32:Linux:*:*) 885 echo or32-unknown-linux-gnu 886 exit ;; 904 887 ppc:Linux:*:*) 905 888 echo powerpc-unknown-linux-gnu 906 exit 0;;889 exit ;; 907 890 ppc64:Linux:*:*) 908 891 echo powerpc64-unknown-linux-gnu 909 exit 0;;892 exit ;; 910 893 alpha:Linux:*:*) 911 894 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 912 895 EV5) UNAME_MACHINE=alphaev5 ;; … … 920 903 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 921 904 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 922 905 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 923 exit 0;;906 exit ;; 924 907 parisc:Linux:*:* | hppa:Linux:*:*) 925 908 # Look for CPU level 926 909 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in … … 928 911 PA8*) echo hppa2.0-unknown-linux-gnu ;; 929 912 *) echo hppa-unknown-linux-gnu ;; 930 913 esac 931 exit 0;;914 exit ;; 932 915 parisc64:Linux:*:* | hppa64:Linux:*:*) 933 916 echo hppa64-unknown-linux-gnu 934 exit 0;;917 exit ;; 935 918 s390:Linux:*:* | s390x:Linux:*:*) 936 919 echo ${UNAME_MACHINE}-ibm-linux 937 exit 0;;920 exit ;; 938 921 sh64*:Linux:*:*) 939 922 echo ${UNAME_MACHINE}-unknown-linux-gnu 940 exit 0;;923 exit ;; 941 924 sh*:Linux:*:*) 942 925 echo ${UNAME_MACHINE}-unknown-linux-gnu 943 exit 0;;926 exit ;; 944 927 sparc:Linux:*:* | sparc64:Linux:*:*) 945 928 echo ${UNAME_MACHINE}-unknown-linux-gnu 946 exit 0 ;; 929 exit ;; 930 vax:Linux:*:*) 931 echo ${UNAME_MACHINE}-dec-linux-gnu 932 exit ;; 947 933 x86_64:Linux:*:*) 948 934 echo x86_64-unknown-linux-gnu 949 exit 0;;935 exit ;; 950 936 i*86:Linux:*:*) 951 937 # The BFD linker knows what the default object file format is, so 952 938 # first see if it will tell us. cd to the root directory to prevent … … 964 950 ;; 965 951 a.out-i386-linux) 966 952 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 967 exit 0;;953 exit ;; 968 954 coff-i386) 969 955 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 970 exit 0;;956 exit ;; 971 957 "") 972 958 # Either a pre-BFD a.out linker (linux-gnuoldld) or 973 959 # one that does not give us useful --help. 974 960 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 975 exit 0;;961 exit ;; 976 962 esac 977 963 # Determine whether the default compiler is a.out or elf 978 964 eval $set_cc_for_build … … 989 975 LIBC=gnulibc1 990 976 # endif 991 977 #else 992 #if def __INTEL_COMPILER978 #if defined(__INTEL_COMPILER) || defined(__PGI) 993 979 LIBC=gnu 994 980 #else 995 981 LIBC=gnuaout … … 999 985 LIBC=dietlibc 1000 986 #endif 1001 987 EOF 1002 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1003 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 1004 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 988 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" 989 test x"${LIBC}" != x && { 990 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 991 exit 992 } 993 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1005 994 ;; 1006 995 i*86:DYNIX/ptx:4*:*) 1007 996 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1008 997 # earlier versions are messed up and put the nodename in both 1009 998 # sysname and nodename. 1010 999 echo i386-sequent-sysv4 1011 exit 0;;1000 exit ;; 1012 1001 i*86:UNIX_SV:4.2MP:2.*) 1013 1002 # Unixware is an offshoot of SVR4, but it has its own version 1014 1003 # number series starting with 2... … … 1016 1005 # I just have to hope. -- rms. 1017 1006 # Use sysv4.2uw... so that sysv4* matches it. 1018 1007 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1019 exit 0;;1008 exit ;; 1020 1009 i*86:OS/2:*:*) 1021 1010 # If we were able to find `uname', then EMX Unix compatibility 1022 1011 # is probably installed. 1023 1012 echo ${UNAME_MACHINE}-pc-os2-emx 1024 exit 0;;1013 exit ;; 1025 1014 i*86:XTS-300:*:STOP) 1026 1015 echo ${UNAME_MACHINE}-unknown-stop 1027 exit 0;;1016 exit ;; 1028 1017 i*86:atheos:*:*) 1029 1018 echo ${UNAME_MACHINE}-unknown-atheos 1030 exit 0;;1031 1019 exit ;; 1020 i*86:syllable:*:*) 1032 1021 echo ${UNAME_MACHINE}-pc-syllable 1033 exit 0;;1022 exit ;; 1034 1023 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1035 1024 echo i386-unknown-lynxos${UNAME_RELEASE} 1036 exit 0;;1025 exit ;; 1037 1026 i*86:*DOS:*:*) 1038 1027 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1039 exit 0;;1028 exit ;; 1040 1029 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1041 1030 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1042 1031 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 1044 1033 else 1045 1034 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1046 1035 fi 1047 exit 0 ;; 1048 i*86:*:5:[78]*) 1036 exit ;; 1037 i*86:*:5:[678]*) 1038 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1049 1039 case `/bin/uname -X | grep "^Machine"` in 1050 1040 *486*) UNAME_MACHINE=i486 ;; 1051 1041 *Pentium) UNAME_MACHINE=i586 ;; 1052 1042 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1053 1043 esac 1054 1044 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1055 exit 0;;1045 exit ;; 1056 1046 i*86:*:3.2:*) 1057 1047 if test -f /usr/options/cb.name; then 1058 1048 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` … … 1070 1060 else 1071 1061 echo ${UNAME_MACHINE}-pc-sysv32 1072 1062 fi 1073 exit 0;;1063 exit ;; 1074 1064 pc:*:*:*) 1075 1065 # Left here for compatibility: 1076 1066 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1077 1067 # the processor, so we play safe by assuming i386. 1078 1068 echo i386-pc-msdosdjgpp 1079 exit 0;;1069 exit ;; 1080 1070 Intel:Mach:3*:*) 1081 1071 echo i386-pc-mach3 1082 exit 0;;1072 exit ;; 1083 1073 paragon:*:*:*) 1084 1074 echo i860-intel-osf1 1085 exit 0;;1075 exit ;; 1086 1076 i860:*:4.*:*) # i860-SVR4 1087 1077 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1088 1078 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1089 1079 else # Add other i860-SVR4 vendors below as they are discovered. 1090 1080 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1091 1081 fi 1092 exit 0;;1082 exit ;; 1093 1083 mini*:CTIX:SYS*5:*) 1094 1084 # "miniframe" 1095 1085 echo m68010-convergent-sysv 1096 exit 0;;1086 exit ;; 1097 1087 mc68k:UNIX:SYSTEM5:3.51m) 1098 1088 echo m68k-convergent-sysv 1099 exit 0;;1089 exit ;; 1100 1090 M680?0:D-NIX:5.3:*) 1101 1091 echo m68k-diab-dnix 1102 exit 0;;1092 exit ;; 1103 1093 M68*:*:R3V[5678]*:*) 1104 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0;;1105 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 )1094 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1095 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) 1106 1096 OS_REL='' 1107 1097 test -r /etc/.relid \ 1108 1098 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1109 1099 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1110 && echo i486-ncr-sysv4.3${OS_REL} && exit 01100 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1111 1101 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1112 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1102 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1113 1103 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1114 1104 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1115 && echo i486-ncr-sysv4 && exit 0;;1105 && { echo i486-ncr-sysv4; exit; } ;; 1116 1106 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1117 1107 echo m68k-unknown-lynxos${UNAME_RELEASE} 1118 exit 0;;1108 exit ;; 1119 1109 mc68030:UNIX_System_V:4.*:*) 1120 1110 echo m68k-atari-sysv4 1121 exit 0;;1111 exit ;; 1122 1112 TSUNAMI:LynxOS:2.*:*) 1123 1113 echo sparc-unknown-lynxos${UNAME_RELEASE} 1124 exit 0;;1114 exit ;; 1125 1115 rs6000:LynxOS:2.*:*) 1126 1116 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1127 exit 0;;1117 exit ;; 1128 1118 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1129 1119 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1130 exit 0;;1120 exit ;; 1131 1121 SM[BE]S:UNIX_SV:*:*) 1132 1122 echo mips-dde-sysv${UNAME_RELEASE} 1133 exit 0;;1123 exit ;; 1134 1124 RM*:ReliantUNIX-*:*:*) 1135 1125 echo mips-sni-sysv4 1136 exit 0;;1126 exit ;; 1137 1127 RM*:SINIX-*:*:*) 1138 1128 echo mips-sni-sysv4 1139 exit 0;;1129 exit ;; 1140 1130 *:SINIX-*:*:*) 1141 1131 if uname -p 2>/dev/null >/dev/null ; then 1142 1132 UNAME_MACHINE=`(uname -p) 2>/dev/null` … … 1144 1134 else 1145 1135 echo ns32k-sni-sysv 1146 1136 fi 1147 exit 0;;1137 exit ;; 1148 1138 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1149 1139 # says <Richard.M.Bartel@ccMail.Census.GOV> 1150 1140 echo i586-unisys-sysv4 1151 exit 0;;1141 exit ;; 1152 1142 *:UNIX_System_V:4*:FTX*) 1153 1143 # From Gerald Hewes <hewes@openmarket.com>. 1154 1144 # How about differentiating between stratus architectures? -djm 1155 1145 echo hppa1.1-stratus-sysv4 1156 exit 0;;1146 exit ;; 1157 1147 *:*:*:FTX*) 1158 1148 # From seanf@swdc.stratus.com. 1159 1149 echo i860-stratus-sysv4 1160 exit 0 ;; 1150 exit ;; 1151 i*86:VOS:*:*) 1152 # From Paul.Green@stratus.com. 1153 echo ${UNAME_MACHINE}-stratus-vos 1154 exit ;; 1161 1155 *:VOS:*:*) 1162 1156 # From Paul.Green@stratus.com. 1163 1157 echo hppa1.1-stratus-vos 1164 exit 0;;1158 exit ;; 1165 1159 mc68*:A/UX:*:*) 1166 1160 echo m68k-apple-aux${UNAME_RELEASE} 1167 exit 0;;1161 exit ;; 1168 1162 news*:NEWS-OS:6*:*) 1169 1163 echo mips-sony-newsos6 1170 exit 0;;1164 exit ;; 1171 1165 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1172 1166 if [ -d /usr/nec ]; then 1173 1167 echo mips-nec-sysv${UNAME_RELEASE} 1174 1168 else 1175 1169 echo mips-unknown-sysv${UNAME_RELEASE} 1176 1170 fi 1177 exit 0;;1171 exit ;; 1178 1172 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1179 1173 echo powerpc-be-beos 1180 exit 0;;1174 exit ;; 1181 1175 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1182 1176 echo powerpc-apple-beos 1183 exit 0;;1177 exit ;; 1184 1178 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1185 1179 echo i586-pc-beos 1186 exit 0;;1180 exit ;; 1187 1181 SX-4:SUPER-UX:*:*) 1188 1182 echo sx4-nec-superux${UNAME_RELEASE} 1189 exit 0;;1183 exit ;; 1190 1184 SX-5:SUPER-UX:*:*) 1191 1185 echo sx5-nec-superux${UNAME_RELEASE} 1192 exit 0;;1186 exit ;; 1193 1187 SX-6:SUPER-UX:*:*) 1194 1188 echo sx6-nec-superux${UNAME_RELEASE} 1195 exit 0;;1189 exit ;; 1196 1190 Power*:Rhapsody:*:*) 1197 1191 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1198 exit 0;;1192 exit ;; 1199 1193 *:Rhapsody:*:*) 1200 1194 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1201 exit 0;;1195 exit ;; 1202 1196 *:Darwin:*:*) 1203 case `uname -p` in1204 *86) UNAME_PROCESSOR=i686 ;;1205 powerpc) UNAME_PROCESSOR=powerpc ;;1197 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1198 case $UNAME_PROCESSOR in 1199 unknown) UNAME_PROCESSOR=powerpc ;; 1206 1200 esac 1207 1201 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1208 exit 0;;1202 exit ;; 1209 1203 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1210 1204 UNAME_PROCESSOR=`uname -p` 1211 1205 if test "$UNAME_PROCESSOR" = "x86"; then … … 1213 1207 UNAME_MACHINE=pc 1214 1208 fi 1215 1209 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1216 exit 0;;1210 exit ;; 1217 1211 *:QNX:*:4*) 1218 1212 echo i386-pc-qnx 1219 exit 0 ;; 1213 exit ;; 1214 NSE-?:NONSTOP_KERNEL:*:*) 1215 echo nse-tandem-nsk${UNAME_RELEASE} 1216 exit ;; 1220 1217 NSR-?:NONSTOP_KERNEL:*:*) 1221 1218 echo nsr-tandem-nsk${UNAME_RELEASE} 1222 exit 0;;1219 exit ;; 1223 1220 *:NonStop-UX:*:*) 1224 1221 echo mips-compaq-nonstopux 1225 exit 0;;1222 exit ;; 1226 1223 BS2000:POSIX*:*:*) 1227 1224 echo bs2000-siemens-sysv 1228 exit 0;;1225 exit ;; 1229 1226 DS/*:UNIX_System_V:*:*) 1230 1227 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1231 exit 0;;1228 exit ;; 1232 1229 *:Plan9:*:*) 1233 1230 # "uname -m" is not consistent, so use $cputype instead. 386 1234 1231 # is converted to i386 for consistency with other x86 … … 1239 1236 UNAME_MACHINE="$cputype" 1240 1237 fi 1241 1238 echo ${UNAME_MACHINE}-unknown-plan9 1242 exit 0;;1239 exit ;; 1243 1240 *:TOPS-10:*:*) 1244 1241 echo pdp10-unknown-tops10 1245 exit 0;;1242 exit ;; 1246 1243 *:TENEX:*:*) 1247 1244 echo pdp10-unknown-tenex 1248 exit 0;;1245 exit ;; 1249 1246 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1250 1247 echo pdp10-dec-tops20 1251 exit 0;;1248 exit ;; 1252 1249 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1253 1250 echo pdp10-xkl-tops20 1254 exit 0;;1251 exit ;; 1255 1252 *:TOPS-20:*:*) 1256 1253 echo pdp10-unknown-tops20 1257 exit 0;;1254 exit ;; 1258 1255 *:ITS:*:*) 1259 1256 echo pdp10-unknown-its 1260 exit 0;;1257 exit ;; 1261 1258 SEI:*:*:SEIUX) 1262 1259 echo mips-sei-seiux${UNAME_RELEASE} 1263 exit 0;;1260 exit ;; 1264 1261 *:DragonFly:*:*) 1265 1262 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1266 exit 0 ;; 1263 exit ;; 1264 *:*VMS:*:*) 1265 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1266 case "${UNAME_MACHINE}" in 1267 A*) echo alpha-dec-vms ; exit ;; 1268 I*) echo ia64-dec-vms ; exit ;; 1269 V*) echo vax-dec-vms ; exit ;; 1270 esac ;; 1271 *:XENIX:*:SysV) 1272 echo i386-pc-xenix 1273 exit ;; 1274 i*86:skyos:*:*) 1275 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1276 exit ;; 1277 i*86:rdos:*:*) 1278 echo ${UNAME_MACHINE}-pc-rdos 1279 exit ;; 1267 1280 esac 1268 1281 1269 1282 #echo '(No uname command or uname output not recognized.)' 1>&2 … … 1295 1308 #endif 1296 1309 1297 1310 #if defined (__arm) && defined (__acorn) && defined (__unix) 1298 printf ("arm-acorn-riscix "); exit (0);1311 printf ("arm-acorn-riscix\n"); exit (0); 1299 1312 #endif 1300 1313 1301 1314 #if defined (hp300) && !defined (hpux) … … 1384 1397 } 1385 1398 EOF 1386 1399 1387 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1400 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1401 { echo "$SYSTEM_NAME"; exit; } 1388 1402 1389 1403 # Apollos put the system type in the environment. 1390 1404 1391 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1405 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1392 1406 1393 1407 # Convex versions that predate uname can use getsysinfo(1) 1394 1408 … … 1397 1411 case `getsysinfo -f cpu_type` in 1398 1412 c1*) 1399 1413 echo c1-convex-bsd 1400 exit 0;;1414 exit ;; 1401 1415 c2*) 1402 1416 if getsysinfo -f scalar_acc 1403 1417 then echo c32-convex-bsd 1404 1418 else echo c2-convex-bsd 1405 1419 fi 1406 exit 0;;1420 exit ;; 1407 1421 c34*) 1408 1422 echo c34-convex-bsd 1409 exit 0;;1423 exit ;; 1410 1424 c38*) 1411 1425 echo c38-convex-bsd 1412 exit 0;;1426 exit ;; 1413 1427 c4*) 1414 1428 echo c4-convex-bsd 1415 exit 0;;1429 exit ;; 1416 1430 esac 1417 1431 fi 1418 1432 … … 1423 1437 the operating system you are using. It is advised that you 1424 1438 download the most up to date version of the config scripts from 1425 1439 1426 ftp://ftp.gnu.org/pub/gnu/config/ 1440 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1441 and 1442 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1427 1443 1428 1444 If the version you run ($0) is already up to date, please 1429 1445 send the following data and any information you think might be -
config.sub
diff -Naur file-4.18.orig/config.sub file-4.18/config.sub
old new 1 1 #! /bin/sh 2 #3 # $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $4 #5 2 # Configuration validation subroutine script. 6 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 7 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 8 5 9 timestamp='200 4-03-12'6 timestamp='2006-01-02' 10 7 11 8 # This file is (in principle) common to ALL GNU software. 12 9 # The presence of a machine in this file suggests that SOME GNU software … … 24 21 # 25 22 # You should have received a copy of the GNU General Public License 26 23 # along with this program; if not, write to the Free Software 27 # Foundation, Inc., 5 9 Temple Place - Suite 330,28 # Boston, MA 02111-1307, USA.29 24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 25 # 02110-1301, USA. 26 # 30 27 # As a special exception to the GNU General Public License, if you 31 28 # distribute this file as part of a program that contains a 32 29 # configuration script generated by Autoconf, you may include it under 33 30 # the same distribution terms that you use for the rest of that program. 34 31 32 35 33 # Please send patches to <config-patches@gnu.org>. Submit a context 36 34 # diff and a properly formatted ChangeLog entry. 37 35 # … … 73 71 version="\ 74 72 GNU config.sub ($timestamp) 75 73 76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 77 75 Free Software Foundation, Inc. 78 76 79 77 This is free software; see the source for copying conditions. There is NO … … 86 84 while test $# -gt 0 ; do 87 85 case $1 in 88 86 --time-stamp | --time* | -t ) 89 echo "$timestamp" ; exit 0;;87 echo "$timestamp" ; exit ;; 90 88 --version | -v ) 91 echo "$version" ; exit 0;;89 echo "$version" ; exit ;; 92 90 --help | --h* | -h ) 93 echo "$usage"; exit 0;;91 echo "$usage"; exit ;; 94 92 -- ) # Stop option processing 95 93 shift; break ;; 96 94 - ) # Use stdin as input. … … 102 100 *local*) 103 101 # First pass through any local machine types. 104 102 echo $1 105 exit 0;;103 exit ;; 106 104 107 105 * ) 108 106 break ;; … … 121 119 # Here we must recognize all the valid KERNEL-OS combinations. 122 120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 123 121 case $maybe_os in 124 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 125 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 124 storm-chaos* | os2-emx* | rtmk-nova*) 126 125 os=-$maybe_os 127 126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128 127 ;; … … 148 147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149 148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150 149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 151 -apple | -axis )150 -apple | -axis | -knuth | -cray) 152 151 os= 153 152 basic_machine=$1 154 153 ;; … … 173 172 -hiux*) 174 173 os=-hiuxwe2 175 174 ;; 175 -sco6) 176 os=-sco5v6 177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 178 ;; 176 179 -sco5) 177 180 os=-sco3.2v5 178 181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 189 192 # Don't forget version if it is 3.2v4 or newer. 190 193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 191 194 ;; 195 -sco5v6*) 196 # Don't forget version if it is 3.2v4 or newer. 197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 ;; 192 199 -sco*) 193 200 os=-sco3.2v2 194 201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 234 241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 235 242 | am33_2.0 \ 236 243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | bfin \ 237 245 | c4x | clipper \ 238 246 | d10v | d30v | dlx | dsp16xx \ 239 247 | fr30 | frv \ 240 248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 241 249 | i370 | i860 | i960 | ia64 \ 242 250 | ip2k | iq2000 \ 243 | m32r | m32rle | m68000 | m68k | m88k | m core \251 | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ 244 252 | mips | mipsbe | mipseb | mipsel | mipsle \ 245 253 | mips16 \ 246 254 | mips64 | mips64el \ … … 249 257 | mips64vr4100 | mips64vr4100el \ 250 258 | mips64vr4300 | mips64vr4300el \ 251 259 | mips64vr5000 | mips64vr5000el \ 260 | mips64vr5900 | mips64vr5900el \ 252 261 | mipsisa32 | mipsisa32el \ 253 262 | mipsisa32r2 | mipsisa32r2el \ 254 263 | mipsisa64 | mipsisa64el \ … … 257 266 | mipsisa64sr71k | mipsisa64sr71kel \ 258 267 | mipstx39 | mipstx39el \ 259 268 | mn10200 | mn10300 \ 269 | mt \ 260 270 | msp430 \ 261 271 | ns16k | ns32k \ 262 | o penrisc | or32 \272 | or32 \ 263 273 | pdp10 | pdp11 | pj | pjl \ 264 274 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 265 275 | pyramid \ 266 | sh | sh[1234] | sh[2 3]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \276 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 267 277 | sh64 | sh64le \ 268 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 278 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 279 | sparcv8 | sparcv9 | sparcv9b \ 269 280 | strongarm \ 270 281 | tahoe | thumb | tic4x | tic80 | tron \ 271 282 | v850 | v850e \ 272 283 | we32k \ 273 | x86 | xscale | xs tormy16 | xtensa \284 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 274 285 | z8k) 275 286 basic_machine=$basic_machine-unknown 276 287 ;; 288 m32c) 289 basic_machine=$basic_machine-unknown 290 ;; 277 291 m6811 | m68hc11 | m6812 | m68hc12) 278 292 # Motorola 68HC11/12. 279 293 basic_machine=$basic_machine-unknown … … 281 295 ;; 282 296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 283 297 ;; 298 ms1) 299 basic_machine=mt-unknown 300 ;; 284 301 285 302 # We use `pc' rather than `unknown' 286 303 # because (1) that's what they normally are, and … … 301 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 302 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 303 320 | avr-* \ 304 | b s2000-* \321 | bfin-* | bs2000-* \ 305 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 306 | clipper-* | c ydra-* \323 | clipper-* | craynv-* | cydra-* \ 307 324 | d10v-* | d30v-* | dlx-* \ 308 325 | elxsi-* \ 309 326 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ … … 313 330 | ip2k-* | iq2000-* \ 314 331 | m32r-* | m32rle-* \ 315 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 316 | m88110-* | m88k-* | m core-* \333 | m88110-* | m88k-* | maxq-* | mcore-* \ 317 334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 318 335 | mips16-* \ 319 336 | mips64-* | mips64el-* \ … … 322 339 | mips64vr4100-* | mips64vr4100el-* \ 323 340 | mips64vr4300-* | mips64vr4300el-* \ 324 341 | mips64vr5000-* | mips64vr5000el-* \ 342 | mips64vr5900-* | mips64vr5900el-* \ 325 343 | mipsisa32-* | mipsisa32el-* \ 326 344 | mipsisa32r2-* | mipsisa32r2el-* \ 327 345 | mipsisa64-* | mipsisa64el-* \ … … 329 347 | mipsisa64sb1-* | mipsisa64sb1el-* \ 330 348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 331 349 | mipstx39-* | mipstx39el-* \ 350 | mmix-* \ 351 | mt-* \ 332 352 | msp430-* \ 333 | none-* | np1-* | n v1-* | ns16k-* | ns32k-* \353 | none-* | np1-* | ns16k-* | ns32k-* \ 334 354 | orion-* \ 335 355 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 336 356 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 337 357 | pyramid-* \ 338 358 | romp-* | rs6000-* \ 339 | sh-* | sh[1234]-* | sh[2 3]e-* | sh[34]eb-* | shbe-* \359 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 340 360 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 341 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 361 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 362 | sparclite-* \ 342 363 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 343 364 | tahoe-* | thumb-* \ 344 365 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 345 366 | tron-* \ 346 367 | v850-* | v850e-* | vax-* \ 347 368 | we32k-* \ 348 | x86-* | x86_64-* | xps100-* | xscale-* | xs tormy16-* \349 | x tensa-* \369 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 370 | xstormy16-* | xtensa-* \ 350 371 | ymp-* \ 351 372 | z8k-*) 352 373 ;; 374 m32c-*) 375 ;; 353 376 # Recognize the various machine names and aliases which stand 354 377 # for a CPU type and a company and sometimes even an OS. 355 378 386bsd) … … 448 471 basic_machine=j90-cray 449 472 os=-unicos 450 473 ;; 474 craynv) 475 basic_machine=craynv-cray 476 os=-unicosmp 477 ;; 451 478 cr16c) 452 479 basic_machine=cr16c-unknown 453 480 os=-elf … … 455 482 crds | unos) 456 483 basic_machine=m68k-crds 457 484 ;; 485 crisv32 | crisv32-* | etraxfs*) 486 basic_machine=crisv32-axis 487 ;; 458 488 cris | cris-* | etrax*) 459 489 basic_machine=cris-axis 460 490 ;; … … 484 514 basic_machine=m88k-motorola 485 515 os=-sysv3 486 516 ;; 517 djgpp) 518 basic_machine=i586-pc 519 os=-msdosdjgpp 520 ;; 487 521 dpx20 | dpx20-*) 488 522 basic_machine=rs6000-bull 489 523 os=-bosx … … 662 696 mips3*) 663 697 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 664 698 ;; 665 mmix*)666 basic_machine=mmix-knuth667 os=-mmixware668 ;;669 699 monitor) 670 700 basic_machine=m68k-rom68k 671 701 os=-coff … … 678 708 basic_machine=i386-pc 679 709 os=-msdos 680 710 ;; 711 ms1-*) 712 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 713 ;; 681 714 mvs) 682 715 basic_machine=i370-ibm 683 716 os=-mvs … … 746 779 np1) 747 780 basic_machine=np1-gould 748 781 ;; 749 nv1)750 basic_machine=nv1-cray751 os=-unicosmp752 ;;753 782 nsr-tandem) 754 783 basic_machine=nsr-tandem 755 784 ;; … … 757 786 basic_machine=hppa1.1-oki 758 787 os=-proelf 759 788 ;; 760 o r32 | or32-*)789 openrisc | openrisc-*) 761 790 basic_machine=or32-unknown 762 os=-coff763 791 ;; 764 792 os400) 765 793 basic_machine=powerpc-ibm … … 790 818 pc532 | pc532-*) 791 819 basic_machine=ns32k-pc532 792 820 ;; 821 pc98) 822 basic_machine=i386-pc 823 ;; 824 pc98-*) 825 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 826 ;; 793 827 pentium | p5 | k5 | k6 | nexgen | viac3) 794 828 basic_machine=i586-pc 795 829 ;; … … 846 880 basic_machine=i586-unknown 847 881 os=-pw32 848 882 ;; 883 rdos) 884 basic_machine=i386-pc 885 os=-rdos 886 ;; 849 887 rom68k) 850 888 basic_machine=m68k-rom68k 851 889 os=-coff … … 1032 1070 basic_machine=hppa1.1-winbond 1033 1071 os=-proelf 1034 1072 ;; 1073 xbox) 1074 basic_machine=i686-pc 1075 os=-mingw32 1076 ;; 1035 1077 xps | xps100) 1036 1078 basic_machine=xps100-honeywell 1037 1079 ;; … … 1062 1104 romp) 1063 1105 basic_machine=romp-ibm 1064 1106 ;; 1107 mmix) 1108 basic_machine=mmix-knuth 1109 ;; 1065 1110 rs6000) 1066 1111 basic_machine=rs6000-ibm 1067 1112 ;; … … 1078 1123 we32k) 1079 1124 basic_machine=we32k-att 1080 1125 ;; 1081 sh 3 | sh4| sh[34]eb | sh[1234]le | sh[23]ele)1126 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1082 1127 basic_machine=sh-unknown 1083 1128 ;; 1084 sh5el)1085 basic_machine=sh5le-unknown1086 ;;1087 sh64)1088 basic_machine=sh64-unknown1089 ;;1090 1129 sparc | sparcv8 | sparcv9 | sparcv9b) 1091 1130 basic_machine=sparc-sun 1092 1131 ;; … … 1160 1199 | -aos* \ 1161 1200 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1162 1201 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1163 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1202 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1203 | -openbsd* | -solidbsd* \ 1164 1204 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1165 1205 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1166 1206 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1167 1207 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1168 1208 | -chorusos* | -chorusrdb* \ 1169 1209 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1170 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1210 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1211 | -uxpv* | -beos* | -mpeix* | -udk* \ 1171 1212 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1172 1213 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1173 1214 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1174 1215 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1175 1216 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1176 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1217 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1218 | -skyos* | -haiku* | -rdos*) 1177 1219 # Remember, each alternative MUST END IN *, to match a version number. 1178 1220 ;; 1179 1221 -qnx*) … … 1191 1233 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1192 1234 ;; 1193 1235 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1194 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \1236 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1195 1237 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1196 1238 ;; 1197 1239 -mac*) … … 1300 1342 -kaos*) 1301 1343 os=-kaos 1302 1344 ;; 1345 -zvmoe) 1346 os=-zvmoe 1347 ;; 1303 1348 -none) 1304 1349 ;; 1305 1350 *) … … 1377 1422 *-be) 1378 1423 os=-beos 1379 1424 ;; 1425 *-haiku) 1426 os=-haiku 1427 ;; 1380 1428 *-ibm) 1381 1429 os=-aix 1382 1430 ;; 1431 *-knuth) 1432 os=-mmixware 1433 ;; 1383 1434 *-wec) 1384 1435 os=-proelf 1385 1436 ;; … … 1545 1596 esac 1546 1597 1547 1598 echo $basic_machine$os 1548 exit 01599 exit 1549 1600 1550 1601 # Local variables: 1551 1602 # eval: (add-hook 'write-file-hooks 'time-stamp)
Note:
See TracBrowser
for help on using the repository browser.