Changeset 2115 for swish-e/branches/2.6/config
- Timestamp:
- 04/10/08 23:45:18 (9 months ago)
- Files:
-
- swish-e/branches/2.6/config/config.guess (modified) (54 diffs)
- swish-e/branches/2.6/config/config.sub (modified) (48 diffs)
- swish-e/branches/2.6/config/ltmain.sh (modified) (26 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/branches/2.6/config/config.guess
r2085 r2115 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 Free Software Foundation, 5 # Inc. 6 7 timestamp='2007-05-17' 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2003-06-17' 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 , 2002, 2003, 2004, 200556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 60 57 Free Software Foundation, Inc. 61 58 … … 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 109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 127 124 ,,*) CC_FOR_BUILD=$CC ;; 128 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 129 esac ; set_cc_for_build= ;'126 esac ;' 130 127 131 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 139 136 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 140 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 139 ## for Red Hat Linux 140 if test -f /etc/redhat-release ; then 141 VENDOR=redhat ; 142 else 143 VENDOR= ; 144 fi 141 145 142 146 # Note: order is significant - the case branches are not exclusive. … … 162 166 sh3el) machine=shl-unknown ;; 163 167 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;;165 168 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 166 169 esac … … 201 204 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 202 205 echo "${machine}-${os}${release}" 203 exit ;; 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 hp300:OpenBSD:*:*) 214 echo m68k-unknown-openbsd${UNAME_RELEASE} 215 exit 0 ;; 216 mac68k:OpenBSD:*:*) 217 echo m68k-unknown-openbsd${UNAME_RELEASE} 218 exit 0 ;; 219 macppc:OpenBSD:*:*) 220 echo powerpc-unknown-openbsd${UNAME_RELEASE} 221 exit 0 ;; 222 mvme68k:OpenBSD:*:*) 223 echo m68k-unknown-openbsd${UNAME_RELEASE} 224 exit 0 ;; 225 mvme88k:OpenBSD:*:*) 226 echo m88k-unknown-openbsd${UNAME_RELEASE} 227 exit 0 ;; 228 mvmeppc:OpenBSD:*:*) 229 echo powerpc-unknown-openbsd${UNAME_RELEASE} 230 exit 0 ;; 231 pmax:OpenBSD:*:*) 232 echo mipsel-unknown-openbsd${UNAME_RELEASE} 233 exit 0 ;; 234 sgi:OpenBSD:*:*) 235 echo mipseb-unknown-openbsd${UNAME_RELEASE} 236 exit 0 ;; 237 sun3:OpenBSD:*:*) 238 echo m68k-unknown-openbsd${UNAME_RELEASE} 239 exit 0 ;; 240 wgrisc:OpenBSD:*:*) 241 echo mipsel-unknown-openbsd${UNAME_RELEASE} 242 exit 0 ;; 204 243 *: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 ;; 244 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 245 exit 0 ;; 220 246 alpha:OSF1:*:*) 221 case $UNAME_RELEASE in 222 *4.0) 247 if test $UNAME_RELEASE = "V4.0"; then 223 248 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 249 fi 229 250 # According to Compaq, /usr/sbin/psrinfo has been available on 230 251 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 264 285 UNAME_MACHINE="alphaev79" ;; 265 286 esac 266 # A Pn.n version is a patched version.267 287 # A Vn.n version is a released version. 268 288 # A Tn.n version is a released field test version. 269 289 # A Xn.n version is an unreleased experimental baselevel. 270 290 # 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 ;; 291 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 292 exit 0 ;; 293 Alpha*:OpenVMS:*:*) 294 echo alpha-hp-vms 295 exit 0 ;; 273 296 Alpha\ *:Windows_NT*:*) 274 297 # How do we know it's Interix rather than the generic POSIX subsystem? … … 276 299 # of the specific Alpha model? 277 300 echo alpha-pc-interix 278 exit ;;301 exit 0 ;; 279 302 21064:Windows_NT:50:3) 280 303 echo alpha-dec-winnt3.5 281 exit ;;304 exit 0 ;; 282 305 Amiga*:UNIX_System_V:4.0:*) 283 306 echo m68k-unknown-sysv4 284 exit ;;307 exit 0;; 285 308 *:[Aa]miga[Oo][Ss]:*:*) 286 309 echo ${UNAME_MACHINE}-unknown-amigaos 287 exit ;;310 exit 0 ;; 288 311 *:[Mm]orph[Oo][Ss]:*:*) 289 312 echo ${UNAME_MACHINE}-unknown-morphos 290 exit ;;313 exit 0 ;; 291 314 *:OS/390:*:*) 292 315 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 ;; 316 exit 0 ;; 300 317 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301 318 echo arm-acorn-riscix${UNAME_RELEASE} 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 319 exit 0;; 306 320 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 307 321 echo hppa1.1-hitachi-hiuxmpp 308 exit ;;322 exit 0;; 309 323 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 310 324 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 314 328 echo pyramid-pyramid-bsd 315 329 fi 316 exit ;;330 exit 0 ;; 317 331 NILE*:*:*:dcosx) 318 332 echo pyramid-pyramid-svr4 319 exit ;;333 exit 0 ;; 320 334 DRS?6000:unix:4.0:6*) 321 335 echo sparc-icl-nx6 322 exit ;;323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)336 exit 0 ;; 337 DRS?6000:UNIX_SV:4.2*:7*) 324 338 case `/usr/bin/uname -p` in 325 sparc) echo sparc-icl-nx7 ; exit;;339 sparc) echo sparc-icl-nx7 && exit 0 ;; 326 340 esac ;; 327 341 sun4H:SunOS:5.*:*) 328 342 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 329 exit ;;343 exit 0 ;; 330 344 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 331 345 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 332 exit ;;333 i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)346 exit 0 ;; 347 i86pc:SunOS:5.*:*) 334 348 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 exit ;;349 exit 0 ;; 336 350 sun4*:SunOS:6*:*) 337 351 # According to config.sub, this is the proper way to canonicalize … … 339 353 # it's likely to be more like Solaris than SunOS4. 340 354 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 341 exit ;;355 exit 0 ;; 342 356 sun4*:SunOS:*:*) 343 357 case "`/usr/bin/arch -k`" in … … 348 362 # Japanese Language versions have a version number like `4.1.3-JL'. 349 363 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 350 exit ;;364 exit 0 ;; 351 365 sun3*:SunOS:*:*) 352 366 echo m68k-sun-sunos${UNAME_RELEASE} 353 exit ;;367 exit 0 ;; 354 368 sun*:*:4.2BSD:*) 355 369 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 363 377 ;; 364 378 esac 365 exit ;;379 exit 0 ;; 366 380 aushp:SunOS:*:*) 367 381 echo sparc-auspex-sunos${UNAME_RELEASE} 368 exit ;;382 exit 0 ;; 369 383 # The situation for MiNT is a little confusing. The machine name 370 384 # can be virtually everything (everything which is not … … 377 391 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 378 392 echo m68k-atari-mint${UNAME_RELEASE} 379 exit ;;393 exit 0 ;; 380 394 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 381 395 echo m68k-atari-mint${UNAME_RELEASE} 382 exit ;;396 exit 0 ;; 383 397 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 384 398 echo m68k-atari-mint${UNAME_RELEASE} 385 exit ;;399 exit 0 ;; 386 400 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 387 401 echo m68k-milan-mint${UNAME_RELEASE} 388 exit ;;402 exit 0 ;; 389 403 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 390 404 echo m68k-hades-mint${UNAME_RELEASE} 391 exit ;;405 exit 0 ;; 392 406 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 393 407 echo m68k-unknown-mint${UNAME_RELEASE} 394 exit ;; 395 m68k:machten:*:*) 396 echo m68k-apple-machten${UNAME_RELEASE} 397 exit ;; 408 exit 0 ;; 398 409 powerpc:machten:*:*) 399 410 echo powerpc-apple-machten${UNAME_RELEASE} 400 exit ;;411 exit 0 ;; 401 412 RISC*:Mach:*:*) 402 413 echo mips-dec-mach_bsd4.3 403 exit ;;414 exit 0 ;; 404 415 RISC*:ULTRIX:*:*) 405 416 echo mips-dec-ultrix${UNAME_RELEASE} 406 exit ;;417 exit 0 ;; 407 418 VAX*:ULTRIX*:*:*) 408 419 echo vax-dec-ultrix${UNAME_RELEASE} 409 exit ;;420 exit 0 ;; 410 421 2020:CLIX:*:* | 2430:CLIX:*:*) 411 422 echo clipper-intergraph-clix${UNAME_RELEASE} 412 exit ;;423 exit 0 ;; 413 424 mips:*:*:UMIPS | mips:*:*:RISCos) 414 425 eval $set_cc_for_build … … 434 445 } 435 446 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; } 447 $CC_FOR_BUILD -o $dummy $dummy.c \ 448 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 449 && exit 0 440 450 echo mips-mips-riscos${UNAME_RELEASE} 441 exit ;;451 exit 0 ;; 442 452 Motorola:PowerMAX_OS:*:*) 443 453 echo powerpc-motorola-powermax 444 exit ;;454 exit 0 ;; 445 455 Motorola:*:4.3:PL8-*) 446 456 echo powerpc-harris-powermax 447 exit ;;457 exit 0 ;; 448 458 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 449 459 echo powerpc-harris-powermax 450 exit ;;460 exit 0 ;; 451 461 Night_Hawk:Power_UNIX:*:*) 452 462 echo powerpc-harris-powerunix 453 exit ;;463 exit 0 ;; 454 464 m88k:CX/UX:7*:*) 455 465 echo m88k-harris-cxux7 456 exit ;;466 exit 0 ;; 457 467 m88k:*:4*:R4*) 458 468 echo m88k-motorola-sysv4 459 exit ;;469 exit 0 ;; 460 470 m88k:*:3*:R3*) 461 471 echo m88k-motorola-sysv3 462 exit ;;472 exit 0 ;; 463 473 AViiON:dgux:*:*) 464 474 # DG/UX returns AViiON for all architectures … … 476 486 echo i586-dg-dgux${UNAME_RELEASE} 477 487 fi 478 exit ;;488 exit 0 ;; 479 489 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 480 490 echo m88k-dolphin-sysv3 481 exit ;;491 exit 0 ;; 482 492 M88*:*:R3*:*) 483 493 # Delta 88k system running SVR3 484 494 echo m88k-motorola-sysv3 485 exit ;;495 exit 0 ;; 486 496 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 487 497 echo m88k-tektronix-sysv3 488 exit ;;498 exit 0 ;; 489 499 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 490 500 echo m68k-tektronix-bsd 491 exit ;;501 exit 0 ;; 492 502 *:IRIX*:*:*) 493 503 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 494 exit ;;504 exit 0 ;; 495 505 ????????: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 '506 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 507 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 498 508 i*86:AIX:*:*) 499 509 echo i386-ibm-aix 500 exit ;;510 exit 0 ;; 501 511 ia64:AIX:*:*) 502 512 if [ -x /usr/bin/oslevel ] ; then … … 506 516 fi 507 517 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 508 exit ;;518 exit 0 ;; 509 519 *:AIX:2:3) 510 520 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 521 531 } 522 532 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 533 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 534 echo rs6000-ibm-aix3.2.5 529 535 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 536 echo rs6000-ibm-aix3.2.4 … … 532 538 echo rs6000-ibm-aix3.2 533 539 fi 534 exit ;;540 exit 0 ;; 535 541 *:AIX:*:[45]) 536 542 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` … … 546 552 fi 547 553 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 548 exit ;;554 exit 0 ;; 549 555 *:AIX:*:*) 550 556 echo rs6000-ibm-aix 551 exit ;;557 exit 0 ;; 552 558 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 553 559 echo romp-ibm-bsd4.4 554 exit ;;560 exit 0 ;; 555 561 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 556 562 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 557 exit ;;# report: romp-ibm BSD 4.3563 exit 0 ;; # report: romp-ibm BSD 4.3 558 564 *:BOSX:*:*) 559 565 echo rs6000-bull-bosx 560 exit ;;566 exit 0 ;; 561 567 DPX/2?00:B.O.S.:*:*) 562 568 echo m68k-bull-sysv3 563 exit ;;569 exit 0 ;; 564 570 9000/[34]??:4.3bsd:1.*:*) 565 571 echo m68k-hp-bsd 566 exit ;;572 exit 0 ;; 567 573 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 568 574 echo m68k-hp-bsd4.4 569 exit ;;575 exit 0 ;; 570 576 9000/[34678]??:HP-UX:*:*) 571 577 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 629 635 if [ ${HP_ARCH} = "hppa2.0w" ] 630 636 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 637 # avoid double evaluation of $set_cc_for_build 638 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 639 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 644 640 then 645 641 HP_ARCH="hppa2.0w" … … 649 645 fi 650 646 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 651 exit ;;647 exit 0 ;; 652 648 ia64:HP-UX:*:*) 653 649 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 654 650 echo ia64-hp-hpux${HPUX_REV} 655 exit ;;651 exit 0 ;; 656 652 3050*:HI-UX:*:*) 657 653 eval $set_cc_for_build … … 681 677 } 682 678 EOF 683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 684 { echo "$SYSTEM_NAME"; exit; } 679 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 685 680 echo unknown-hitachi-hiuxwe2 686 exit ;;681 exit 0 ;; 687 682 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 688 683 echo hppa1.1-hp-bsd 689 exit ;;684 exit 0 ;; 690 685 9000/8??:4.3bsd:*:*) 691 686 echo hppa1.0-hp-bsd 692 exit ;;687 exit 0 ;; 693 688 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 694 689 echo hppa1.0-hp-mpeix 695 exit ;;690 exit 0 ;; 696 691 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 697 692 echo hppa1.1-hp-osf 698 exit ;;693 exit 0 ;; 699 694 hp8??:OSF1:*:*) 700 695 echo hppa1.0-hp-osf 701 exit ;;696 exit 0 ;; 702 697 i*86:OSF1:*:*) 703 698 if [ -x /usr/sbin/sysversion ] ; then … … 706 701 echo ${UNAME_MACHINE}-unknown-osf1 707 702 fi 708 exit ;;703 exit 0 ;; 709 704 parisc*:Lites*:*:*) 710 705 echo hppa1.1-hp-lites 711 exit ;;706 exit 0 ;; 712 707 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 713 708 echo c1-convex-bsd 714 exit ;;709 exit 0 ;; 715 710 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 716 711 if getsysinfo -f scalar_acc … … 718 713 else echo c2-convex-bsd 719 714 fi 720 exit ;;715 exit 0 ;; 721 716 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 722 717 echo c34-convex-bsd 723 exit ;;718 exit 0 ;; 724 719 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 725 720 echo c38-convex-bsd 726 exit ;;721 exit 0 ;; 727 722 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 728 723 echo c4-convex-bsd 729 exit ;;724 exit 0 ;; 730 725 CRAY*Y-MP:*:*:*) 731 726 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 732 exit ;;727 exit 0 ;; 733 728 CRAY*[A-Z]90:*:*:*) 734 729 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 736 731 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 737 732 -e 's/\.[^.]*$/.X/' 738 exit ;;733 exit 0 ;; 739 734 CRAY*TS:*:*:*) 740 735 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 741 exit ;;736 exit 0 ;; 742 737 CRAY*T3E:*:*:*) 743 738 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 744 exit ;;739 exit 0 ;; 745 740 CRAY*SV1:*:*:*) 746 741 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 747 exit ;;742 exit 0 ;; 748 743 *:UNICOS/mp:*:*) 749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'750 exit ;;744 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 745 exit 0 ;; 751 746 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 752 747 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 754 749 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 755 750 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 ;; 751 exit 0 ;; 762 752 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 763 753 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 764 exit ;;754 exit 0 ;; 765 755 sparc*:BSD/OS:*:*) 766 756 echo sparc-unknown-bsdi${UNAME_RELEASE} 767 exit ;;757 exit 0 ;; 768 758 *:BSD/OS:*:*) 769 759 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 770 exit ;; 771 *: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 ;; 760 exit 0 ;; 761 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 762 # Determine whether the default compiler uses glibc. 763 eval $set_cc_for_build 764 sed 's/^ //' << EOF >$dummy.c 765 #include <features.h> 766 #if __GLIBC__ >= 2 767 LIBC=gnu 768 #else 769 LIBC= 770 #endif 771 EOF 772 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 773 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 774 exit 0 ;; 781 775 i*:CYGWIN*:*) 782 776 echo ${UNAME_MACHINE}-pc-cygwin 783 exit ;;784 *:MINGW*:*)777 exit 0 ;; 778 i*:MINGW*:*) 785 779 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 ;; 780 exit 0 ;; 791 781 i*:PW*:*) 792 782 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 esac ;; 783 exit 0 ;; 784 x86:Interix*:[34]*) 785 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 786 exit 0 ;; 803 787 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 804 788 echo i${UNAME_MACHINE}-pc-mks 805 exit ;;789 exit 0 ;; 806 790 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 807 791 # How do we know it's Interix rather than the generic POSIX subsystem? … … 809 793 # UNAME_MACHINE based on the output of uname instead of i386? 810 794 echo i586-pc-interix 811 exit ;;795 exit 0 ;; 812 796 i*:UWIN*:*) 813 797 echo ${UNAME_MACHINE}-pc-uwin 814 exit ;; 815 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 816 echo x86_64-unknown-cygwin 817 exit ;; 798 exit 0 ;; 818 799 p*:CYGWIN*:*) 819 800 echo powerpcle-unknown-cygwin 820 exit ;;801 exit 0 ;; 821 802 prep*:SunOS:5.*:*) 822 803 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 823 exit ;;804 exit 0 ;; 824 805 *:GNU:*:*) 825 # the GNU system826 806 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 827 exit ;; 828 *:GNU/*:*:*) 829 # other systems with GNU libc and userland 830 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 831 exit ;; 807 exit 0 ;; 832 808 i*86:Minix:*:*) 833 809 echo ${UNAME_MACHINE}-pc-minix 834 exit ;;810 exit 0 ;; 835 811 arm*:Linux:*:*) 836 812 echo ${UNAME_MACHINE}-unknown-linux-gnu 837 exit ;; 838 avr32*:Linux:*:*) 839 echo ${UNAME_MACHINE}-unknown-linux-gnu 840 exit ;; 813 exit 0 ;; 841 814 cris:Linux:*:*) 842 815 echo cris-axis-linux-gnu 843 exit ;; 844 crisv32:Linux:*:*) 845 echo crisv32-axis-linux-gnu 846 exit ;; 847 frv:Linux:*:*) 848 echo frv-unknown-linux-gnu 849 exit ;; 816 exit 0 ;; 850 817 ia64:Linux:*:*) 851 echo ${UNAME_MACHINE}-unknown-linux-gnu 852 exit ;; 853 m32r*:Linux:*:*) 854 echo ${UNAME_MACHINE}-unknown-linux-gnu 855 exit ;; 818 echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 819 exit 0 ;; 856 820 m68*:Linux:*:*) 857 821 echo ${UNAME_MACHINE}-unknown-linux-gnu 858 exit ;;822 exit 0 ;; 859 823 mips:Linux:*:*) 860 824 eval $set_cc_for_build … … 873 837 #endif 874 838 EOF 875 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 876 /^CPU/{ 877 s: ::g 878 p 879 }'`" 880 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 839 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 840 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 881 841 ;; 882 842 mips64:Linux:*:*) … … 896 856 #endif 897 857 EOF 898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 899 /^CPU/{ 900 s: ::g 901 p 902 }'`" 903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 858 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 859 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 904 860 ;; 905 or32:Linux:*:*)906 echo or32-unknown-linux-gnu907 exit ;;908 861 ppc:Linux:*:*) 909 echo powerpc- unknown-linux-gnu910 exit ;;862 echo powerpc-${VENDOR:-unknown}-linux-gnu 863 exit 0 ;; 911 864 ppc64:Linux:*:*) 912 echo powerpc64- unknown-linux-gnu913 exit ;;865 echo powerpc64-${VENDOR:-unknown}-linux-gnu 866 exit 0 ;; 914 867 alpha:Linux:*:*) 915 868 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 925 878 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 926 879 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 927 exit ;;880 exit 0 ;; 928 881 parisc:Linux:*:* | hppa:Linux:*:*) 929 882 # Look for CPU level … … 933 886 *) echo hppa-unknown-linux-gnu ;; 934 887 esac 935 exit ;;888 exit 0 ;; 936 889 parisc64:Linux:*:* | hppa64:Linux:*:*) 937 890 echo hppa64-unknown-linux-gnu 938 exit ;;891 exit 0 ;; 939 892 s390:Linux:*:* | s390x:Linux:*:*) 940 echo ${UNAME_MACHINE}- ibm-linux941 exit ;;893 echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 894 exit 0 ;; 942 895 sh64*:Linux:*:*) 943 896 echo ${UNAME_MACHINE}-unknown-linux-gnu 944 exit ;;897 exit 0 ;; 945 898 sh*:Linux:*:*) 946 899 echo ${UNAME_MACHINE}-unknown-linux-gnu 947 exit ;;900 exit 0 ;; 948 901 sparc:Linux:*:* | sparc64:Linux:*:*) 949 902 echo ${UNAME_MACHINE}-unknown-linux-gnu 950 exit ;; 951 vax:Linux:*:*) 952 echo ${UNAME_MACHINE}-dec-linux-gnu 953 exit ;; 903 exit 0 ;; 954 904 x86_64:Linux:*:*) 955 echo x86_64-unknown-linux-gnu 956 exit ;; 957 xtensa:Linux:*:*) 958 echo xtensa-unknown-linux-gnu 959 exit ;; 905 echo x86_64-${VENDOR:-unknown}-linux-gnu 906 exit 0 ;; 960 907 i*86:Linux:*:*) 961 908 # The BFD linker knows what the default object file format is, so … … 975 922 a.out-i386-linux) 976 923 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 977 exit ;;924 exit 0 ;; 978 925 coff-i386) 979 926 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 980 exit ;;927 exit 0 ;; 981 928 "") 982 929 # Either a pre-BFD a.out linker (linux-gnuoldld) or 983 930 # one that does not give us useful --help. 984 931 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 985 exit ;;932 exit 0 ;; 986 933 esac 987 934 # Determine whether the default compiler is a.out or elf … … 1000 947 # endif 1001 948 #else 1002 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)949 #ifdef __INTEL_COMPILER 1003 950 LIBC=gnu 1004 951 #else … … 1006 953 #endif 1007 954 #endif 1008 #ifdef __dietlibc__1009 LIBC=dietlibc1010 #endif1011 955 EOF 1012 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1013 /^LIBC/{ 1014 s: ::g 1015 p 1016 }'`" 1017 test x"${LIBC}" != x && { 1018 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1019 exit 1020 } 1021 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 956 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 957 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 958 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1022 959 ;; 1023 960 i*86:DYNIX/ptx:4*:*) … … 1026 963 # sysname and nodename. 1027 964 echo i386-sequent-sysv4 1028 exit ;;965 exit 0 ;; 1029 966 i*86:UNIX_SV:4.2MP:2.*) 1030 967 # Unixware is an offshoot of SVR4, but it has its own version … … 1034 971 # Use sysv4.2uw... so that sysv4* matches it. 1035 972 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1036 exit ;;973 exit 0 ;; 1037 974 i*86:OS/2:*:*) 1038 975 # If we were able to find `uname', then EMX Unix compatibility 1039 976 # is probably installed. 1040 977 echo ${UNAME_MACHINE}-pc-os2-emx 1041 exit ;;978 exit 0 ;; 1042 979 i*86:XTS-300:*:STOP) 1043 980 echo ${UNAME_MACHINE}-unknown-stop 1044 exit ;;981 exit 0 ;; 1045 982 i*86:atheos:*:*) 1046 983 echo ${UNAME_MACHINE}-unknown-atheos 1047 exit ;; 1048 i*86:syllable:*:*) 1049 echo ${UNAME_MACHINE}-pc-syllable 1050 exit ;; 984 exit 0 ;; 1051 985 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1052 986 echo i386-unknown-lynxos${UNAME_RELEASE} 1053 exit ;;987 exit 0 ;; 1054 988 i*86:*DOS:*:*) 1055 989 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1056 exit ;;990 exit 0 ;; 1057 991 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1058 992 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1062 996 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1063 997 fi 1064 exit ;; 1065 i*86:*:5:[678]*) 1066 # UnixWare 7.x, OpenUNIX and OpenServer 6. 998 exit 0 ;; 999 i*86:*:5:[78]*) 1067 1000 case `/bin/uname -X | grep "^Machine"` in 1068 1001 *486*) UNAME_MACHINE=i486 ;; … … 1071 1004 esac 1072 1005 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1073 exit ;;1006 exit 0 ;; 1074 1007 i*86:*:3.2:*) 1075 1008 if test -f /usr/options/cb.name; then … … 1089 1022 echo ${UNAME_MACHINE}-pc-sysv32 1090 1023 fi 1091 exit ;;1024 exit 0 ;; 1092 1025 pc:*:*:*) 1093 1026 # Left here for compatibility: … … 1095 1028 # the processor, so we play safe by assuming i386. 1096 1029 echo i386-pc-msdosdjgpp 1097 exit ;;1030 exit 0 ;; 1098 1031 Intel:Mach:3*:*) 1099 1032 echo i386-pc-mach3 1100 exit ;;1033 exit 0 ;; 1101 1034 paragon:*:*:*) 1102 1035 echo i860-intel-osf1 1103 exit ;;1036 exit 0 ;; 1104 1037 i860:*:4.*:*) # i860-SVR4 1105 1038 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then … … 1108 1041 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1109 1042 fi
