- Timestamp:
- Dec 28, 2016 3:28:05 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp/third_party
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp/third_party
- Property svn:externals deleted
-
pjproject/branches/projects/uwp/third_party/srtp/config.guess
r1730 r5512 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 Free Software Foundation, Inc. 5 6 timestamp='2004-09-07' 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5 # 2011 Free Software Foundation, Inc. 6 7 timestamp='2011-06-03' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it … … 18 19 # You should have received a copy of the GNU General Public License 19 20 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22 # 02110-1301, USA. 21 23 # 22 24 # As a special exception to the GNU General Public License, if you … … 25 27 # the same distribution terms that you use for the rest of that program. 26 28 27 # Originally written by Per Bothner <per@bothner.com>. 28 # Please send patches to <config-patches@gnu.org>. Submit a context 29 # diff and a properly formatted ChangeLog entry. 29 30 # Originally written by Per Bothner. Please send patches (context 31 # diff format) to <config-patches@gnu.org> and include a ChangeLog 32 # entry. 30 33 # 31 34 # This script attempts to guess a canonical system name similar to … … 33 36 # exits with 0. Otherwise, it exits with 1. 34 37 # 35 # The plan is that this can be called by configure scripts if you36 # don't specify an explicit build system type.38 # You can get the latest version of this script from: 39 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 37 40 38 41 me=`echo "$0" | sed -e 's,.*/,,'` … … 54 57 55 58 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 57 Free Software Foundation, Inc. 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 61 Software Foundation, Inc. 58 62 59 63 This is free software; see the source for copying conditions. There is NO … … 67 71 case $1 in 68 72 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;73 echo "$timestamp" ; exit ;; 70 74 --version | -v ) 71 echo "$version" ; exit 0;;75 echo "$version" ; exit ;; 72 76 --help | --h* | -h ) 73 echo "$usage"; exit 0;;77 echo "$usage"; exit ;; 74 78 -- ) # Stop option processing 75 79 shift; break ;; … … 105 109 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 110 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||111 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 113 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 124 128 ,,*) CC_FOR_BUILD=$CC ;; 125 129 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ; '130 esac ; set_cc_for_build= ;' 127 131 128 132 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 159 163 sh3el) machine=shl-unknown ;; 160 164 sh3eb) machine=sh-unknown ;; 165 sh5el) machine=sh5le-unknown ;; 161 166 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 162 167 esac … … 167 172 eval $set_cc_for_build 168 173 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 169 | grep __ELF__ >/dev/null174 | grep -q __ELF__ 170 175 then 171 176 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). … … 177 182 ;; 178 183 *) 179 184 os=netbsd 180 185 ;; 181 186 esac … … 197 202 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 198 203 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 cats:OpenBSD:*:*) 207 echo arm-unknown-openbsd${UNAME_RELEASE} 208 exit 0 ;; 209 hp300:OpenBSD:*:*) 210 echo m68k-unknown-openbsd${UNAME_RELEASE} 211 exit 0 ;; 212 luna88k:OpenBSD:*:*) 213 echo m88k-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 sgi:OpenBSD:*:*) 231 echo mips64-unknown-openbsd${UNAME_RELEASE} 232 exit 0 ;; 233 sun3:OpenBSD:*:*) 234 echo m68k-unknown-openbsd${UNAME_RELEASE} 235 exit 0 ;; 204 exit ;; 236 205 *:OpenBSD:*:*) 237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 238 exit 0 ;; 206 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 207 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 208 exit ;; 239 209 *:ekkoBSD:*:*) 240 210 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 241 exit 0 ;; 211 exit ;; 212 *:SolidBSD:*:*) 213 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 214 exit ;; 242 215 macppc:MirBSD:*:*) 243 echo powerp pc-unknown-mirbsd${UNAME_RELEASE}244 exit 0;;216 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 217 exit ;; 245 218 *:MirBSD:*:*) 246 219 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 247 exit 0;;220 exit ;; 248 221 alpha:OSF1:*:*) 249 222 case $UNAME_RELEASE in … … 252 225 ;; 253 226 *5.*) 254 227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 255 228 ;; 256 229 esac … … 298 271 # 1.2 uses "1.2" for uname -r. 299 272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 300 exit 0 ;; 273 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 274 exitcode=$? 275 trap '' 0 276 exit $exitcode ;; 301 277 Alpha\ *:Windows_NT*:*) 302 278 # How do we know it's Interix rather than the generic POSIX subsystem? … … 304 280 # of the specific Alpha model? 305 281 echo alpha-pc-interix 306 exit 0;;282 exit ;; 307 283 21064:Windows_NT:50:3) 308 284 echo alpha-dec-winnt3.5 309 exit 0;;285 exit ;; 310 286 Amiga*:UNIX_System_V:4.0:*) 311 287 echo m68k-unknown-sysv4 312 exit 0;;288 exit ;; 313 289 *:[Aa]miga[Oo][Ss]:*:*) 314 290 echo ${UNAME_MACHINE}-unknown-amigaos 315 exit 0;;291 exit ;; 316 292 *:[Mm]orph[Oo][Ss]:*:*) 317 293 echo ${UNAME_MACHINE}-unknown-morphos 318 exit 0;;294 exit ;; 319 295 *:OS/390:*:*) 320 296 echo i370-ibm-openedition 321 exit 0 ;; 297 exit ;; 298 *:z/VM:*:*) 299 echo s390-ibm-zvmoe 300 exit ;; 322 301 *:OS400:*:*) 323 324 exit 0;;302 echo powerpc-ibm-os400 303 exit ;; 325 304 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 326 305 echo arm-acorn-riscix${UNAME_RELEASE} 327 exit 0;; 306 exit ;; 307 arm:riscos:*:*|arm:RISCOS:*:*) 308 echo arm-unknown-riscos 309 exit ;; 328 310 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 329 311 echo hppa1.1-hitachi-hiuxmpp 330 exit 0;;312 exit ;; 331 313 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 332 314 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. … … 336 318 echo pyramid-pyramid-bsd 337 319 fi 338 exit 0;;320 exit ;; 339 321 NILE*:*:*:dcosx) 340 322 echo pyramid-pyramid-svr4 341 exit 0;;323 exit ;; 342 324 DRS?6000:unix:4.0:6*) 343 325 echo sparc-icl-nx6 344 exit 0;;345 DRS?6000:UNIX_SV:4.2*:7* )326 exit ;; 327 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 346 328 case `/usr/bin/uname -p` in 347 sparc) echo sparc-icl-nx7 && exit 0;;329 sparc) echo sparc-icl-nx7; exit ;; 348 330 esac ;; 331 s390x:SunOS:*:*) 332 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 333 exit ;; 349 334 sun4H:SunOS:5.*:*) 350 335 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 351 exit 0;;336 exit ;; 352 337 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 353 338 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 354 exit 0 ;; 355 i86pc:SunOS:5.*:*) 356 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 357 exit 0 ;; 339 exit ;; 340 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 341 echo i386-pc-auroraux${UNAME_RELEASE} 342 exit ;; 343 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 344 eval $set_cc_for_build 345 SUN_ARCH="i386" 346 # If there is a compiler, see if it is configured for 64-bit objects. 347 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 348 # This test works for both compilers. 349 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 350 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 351 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 352 grep IS_64BIT_ARCH >/dev/null 353 then 354 SUN_ARCH="x86_64" 355 fi 356 fi 357 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 358 exit ;; 358 359 sun4*:SunOS:6*:*) 359 360 # According to config.sub, this is the proper way to canonicalize … … 361 362 # it's likely to be more like Solaris than SunOS4. 362 363 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 363 exit 0;;364 exit ;; 364 365 sun4*:SunOS:*:*) 365 366 case "`/usr/bin/arch -k`" in … … 370 371 # Japanese Language versions have a version number like `4.1.3-JL'. 371 372 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 372 exit 0;;373 exit ;; 373 374 sun3*:SunOS:*:*) 374 375 echo m68k-sun-sunos${UNAME_RELEASE} 375 exit 0;;376 exit ;; 376 377 sun*:*:4.2BSD:*) 377 378 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` … … 385 386 ;; 386 387 esac 387 exit 0;;388 exit ;; 388 389 aushp:SunOS:*:*) 389 390 echo sparc-auspex-sunos${UNAME_RELEASE} 390 exit 0;;391 exit ;; 391 392 # The situation for MiNT is a little confusing. The machine name 392 393 # can be virtually everything (everything which is not … … 398 399 # be no problem. 399 400 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 400 401 exit 0;;401 echo m68k-atari-mint${UNAME_RELEASE} 402 exit ;; 402 403 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 403 404 echo m68k-atari-mint${UNAME_RELEASE} 404 exit 0;;405 exit ;; 405 406 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 406 407 exit 0;;407 echo m68k-atari-mint${UNAME_RELEASE} 408 exit ;; 408 409 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 409 410 exit 0;;410 echo m68k-milan-mint${UNAME_RELEASE} 411 exit ;; 411 412 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 412 413 exit 0;;413 echo m68k-hades-mint${UNAME_RELEASE} 414 exit ;; 414 415 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 415 416 exit 0;;416 echo m68k-unknown-mint${UNAME_RELEASE} 417 exit ;; 417 418 m68k:machten:*:*) 418 419 echo m68k-apple-machten${UNAME_RELEASE} 419 exit 0;;420 exit ;; 420 421 powerpc:machten:*:*) 421 422 echo powerpc-apple-machten${UNAME_RELEASE} 422 exit 0;;423 exit ;; 423 424 RISC*:Mach:*:*) 424 425 echo mips-dec-mach_bsd4.3 425 exit 0;;426 exit ;; 426 427 RISC*:ULTRIX:*:*) 427 428 echo mips-dec-ultrix${UNAME_RELEASE} 428 exit 0;;429 exit ;; 429 430 VAX*:ULTRIX*:*:*) 430 431 echo vax-dec-ultrix${UNAME_RELEASE} 431 exit 0;;432 exit ;; 432 433 2020:CLIX:*:* | 2430:CLIX:*:*) 433 434 echo clipper-intergraph-clix${UNAME_RELEASE} 434 exit 0;;435 exit ;; 435 436 mips:*:*:UMIPS | mips:*:*:RISCos) 436 437 eval $set_cc_for_build … … 456 457 } 457 458 EOF 458 $CC_FOR_BUILD -o $dummy $dummy.c \ 459 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 460 && exit 0 459 $CC_FOR_BUILD -o $dummy $dummy.c && 460 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 461 SYSTEM_NAME=`$dummy $dummyarg` && 462 { echo "$SYSTEM_NAME"; exit; } 461 463 echo mips-mips-riscos${UNAME_RELEASE} 462 exit 0;;464 exit ;; 463 465 Motorola:PowerMAX_OS:*:*) 464 466 echo powerpc-motorola-powermax 465 exit 0;;467 exit ;; 466 468 Motorola:*:4.3:PL8-*) 467 469 echo powerpc-harris-powermax 468 exit 0;;470 exit ;; 469 471 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 470 472 echo powerpc-harris-powermax 471 exit 0;;473 exit ;; 472 474 Night_Hawk:Power_UNIX:*:*) 473 475 echo powerpc-harris-powerunix 474 exit 0;;476 exit ;; 475 477 m88k:CX/UX:7*:*) 476 478 echo m88k-harris-cxux7 477 exit 0;;479 exit ;; 478 480 m88k:*:4*:R4*) 479 481 echo m88k-motorola-sysv4 480 exit 0;;482 exit ;; 481 483 m88k:*:3*:R3*) 482 484 echo m88k-motorola-sysv3 483 exit 0;;485 exit ;; 484 486 AViiON:dgux:*:*) 485 486 487 # DG/UX returns AViiON for all architectures 488 UNAME_PROCESSOR=`/usr/bin/uname -p` 487 489 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 488 490 then … … 497 499 echo i586-dg-dgux${UNAME_RELEASE} 498 500 fi 499 exit 0;;501 exit ;; 500 502 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 501 503 echo m88k-dolphin-sysv3 502 exit 0;;504 exit ;; 503 505 M88*:*:R3*:*) 504 506 # Delta 88k system running SVR3 505 507 echo m88k-motorola-sysv3 506 exit 0;;508 exit ;; 507 509 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 508 510 echo m88k-tektronix-sysv3 509 exit 0;;511 exit ;; 510 512 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 511 513 echo m68k-tektronix-bsd 512 exit 0;;514 exit ;; 513 515 *:IRIX*:*:*) 514 516 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 515 exit 0;;517 exit ;; 516 518 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 517 echo romp-ibm-aix 518 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '519 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 520 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 519 521 i*86:AIX:*:*) 520 522 echo i386-ibm-aix 521 exit 0;;523 exit ;; 522 524 ia64:AIX:*:*) 523 525 if [ -x /usr/bin/oslevel ] ; then … … 527 529 fi 528 530 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 529 exit 0;;531 exit ;; 530 532 *:AIX:2:3) 531 533 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then … … 542 544 } 543 545 EOF 544 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 545 echo rs6000-ibm-aix3.2.5 546 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 547 then 548 echo "$SYSTEM_NAME" 549 else 550 echo rs6000-ibm-aix3.2.5 551 fi 546 552 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 547 553 echo rs6000-ibm-aix3.2.4 … … 549 555 echo rs6000-ibm-aix3.2 550 556 fi 551 exit 0;;552 *:AIX:*:[45 ])557 exit ;; 558 *:AIX:*:[4567]) 553 559 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 554 560 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then … … 563 569 fi 564 570 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 565 exit 0;;571 exit ;; 566 572 *:AIX:*:*) 567 573 echo rs6000-ibm-aix 568 exit 0;;574 exit ;; 569 575 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 570 576 echo romp-ibm-bsd4.4 571 exit 0;;577 exit ;; 572 578 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 573 579 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 574 exit 0 ;;# report: romp-ibm BSD 4.3580 exit ;; # report: romp-ibm BSD 4.3 575 581 *:BOSX:*:*) 576 582 echo rs6000-bull-bosx 577 exit 0;;583 exit ;; 578 584 DPX/2?00:B.O.S.:*:*) 579 585 echo m68k-bull-sysv3 580 exit 0;;586 exit ;; 581 587 9000/[34]??:4.3bsd:1.*:*) 582 588 echo m68k-hp-bsd 583 exit 0;;589 exit ;; 584 590 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 585 591 echo m68k-hp-bsd4.4 586 exit 0;;592 exit ;; 587 593 9000/[34678]??:HP-UX:*:*) 588 594 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 593 599 if [ -x /usr/bin/getconf ]; then 594 600 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 595 596 597 598 599 600 601 602 601 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 602 case "${sc_cpu_version}" in 603 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 604 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 605 532) # CPU_PA_RISC2_0 606 case "${sc_kernel_bits}" in 607 32) HP_ARCH="hppa2.0n" ;; 608 64) HP_ARCH="hppa2.0w" ;; 603 609 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 604 605 610 esac ;; 611 esac 606 612 fi 607 613 if [ "${HP_ARCH}" = "" ]; then 608 614 eval $set_cc_for_build 609 sed 's/^ 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 615 sed 's/^ //' << EOF >$dummy.c 616 617 #define _HPUX_SOURCE 618 #include <stdlib.h> 619 #include <unistd.h> 620 621 int main () 622 { 623 #if defined(_SC_KERNEL_BITS) 624 long bits = sysconf(_SC_KERNEL_BITS); 625 #endif 626 long cpu = sysconf (_SC_CPU_VERSION); 627 628 switch (cpu) 629 { 630 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 631 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 632 case CPU_PA_RISC2_0: 633 #if defined(_SC_KERNEL_BITS) 634 switch (bits) 635 { 636 case 64: puts ("hppa2.0w"); break; 637 case 32: puts ("hppa2.0n"); break; 638 default: puts ("hppa2.0"); break; 639 } break; 640 #else /* !defined(_SC_KERNEL_BITS) */ 641 puts ("hppa2.0"); break; 642 #endif 643 default: puts ("hppa1.0"); break; 644 } 645 exit (0); 646 } 641 647 EOF 642 648 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` … … 646 652 if [ ${HP_ARCH} = "hppa2.0w" ] 647 653 then 648 # avoid double evaluation of $set_cc_for_build 649 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 650 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 654 eval $set_cc_for_build 655 656 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 657 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 658 # generating 64-bit code. GNU and HP use different nomenclature: 659 # 660 # $ CC_FOR_BUILD=cc ./config.guess 661 # => hppa2.0w-hp-hpux11.23 662 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 663 # => hppa64-hp-hpux11.23 664 665 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 666 grep -q __LP64__ 651 667 then 652 668 HP_ARCH="hppa2.0w" … … 656 672 fi 657 673 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 658 exit 0;;674 exit ;; 659 675 ia64:HP-UX:*:*) 660 676 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 661 677 echo ia64-hp-hpux${HPUX_REV} 662 exit 0;;678 exit ;; 663 679 3050*:HI-UX:*:*) 664 680 eval $set_cc_for_build … … 688 704 } 689 705 EOF 690 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 706 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 707 { echo "$SYSTEM_NAME"; exit; } 691 708 echo unknown-hitachi-hiuxwe2 692 exit 0;;709 exit ;; 693 710 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 694 711 echo hppa1.1-hp-bsd 695 exit 0;;712 exit ;; 696 713 9000/8??:4.3bsd:*:*) 697 714 echo hppa1.0-hp-bsd 698 exit 0;;715 exit ;; 699 716 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 700 717 echo hppa1.0-hp-mpeix 701 exit 0;;718 exit ;; 702 719 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 703 720 echo hppa1.1-hp-osf 704 exit 0;;721 exit ;; 705 722 hp8??:OSF1:*:*) 706 723 echo hppa1.0-hp-osf 707 exit 0;;724 exit ;; 708 725 i*86:OSF1:*:*) 709 726 if [ -x /usr/sbin/sysversion ] ; then … … 712 729 echo ${UNAME_MACHINE}-unknown-osf1 713 730 fi 714 exit 0;;731 exit ;; 715 732 parisc*:Lites*:*:*) 716 733 echo hppa1.1-hp-lites 717 exit 0;;734 exit ;; 718 735 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 719 736 echo c1-convex-bsd 720 exit 0;;737 exit ;; 721 738 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 722 739 if getsysinfo -f scalar_acc … … 724 741 else echo c2-convex-bsd 725 742 fi 726 exit 0;;743 exit ;; 727 744 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 728 745 echo c34-convex-bsd 729 exit 0;;746 exit ;; 730 747 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 731 748 echo c38-convex-bsd 732 exit 0;;749 exit ;; 733 750 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 734 751 echo c4-convex-bsd 735 exit 0;;752 exit ;; 736 753 CRAY*Y-MP:*:*:*) 737 754 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 738 exit 0;;755 exit ;; 739 756 CRAY*[A-Z]90:*:*:*) 740 757 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ … … 742 759 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 743 760 -e 's/\.[^.]*$/.X/' 744 exit 0;;761 exit ;; 745 762 CRAY*TS:*:*:*) 746 763 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 747 exit 0;;764 exit ;; 748 765 CRAY*T3E:*:*:*) 749 766 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit 0;;767 exit ;; 751 768 CRAY*SV1:*:*:*) 752 769 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 753 exit 0;;770 exit ;; 754 771 *:UNICOS/mp:*:*) 755 772 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 756 exit 0;;773 exit ;; 757 774 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 758 775 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 759 760 761 762 exit 0;;776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 777 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 778 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 779 exit ;; 763 780 5000:UNIX_System_V:4.*:*) 764 765 766 767 exit 0;;781 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 782 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 783 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 784 exit ;; 768 785 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 769 786 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 770 exit 0;;787 exit ;; 771 788 sparc*:BSD/OS:*:*) 772 789 echo sparc-unknown-bsdi${UNAME_RELEASE} 773 exit 0;;790 exit ;; 774 791 *:BSD/OS:*:*) 775 792 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 776 exit 0;;793 exit ;; 777 794 *:FreeBSD:*:*) 778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 779 exit 0 ;; 795 case ${UNAME_MACHINE} in 796 pc98) 797 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 798 amd64) 799 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 800 *) 801 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 802 esac 803 exit ;; 780 804 i*:CYGWIN*:*) 781 805 echo ${UNAME_MACHINE}-pc-cygwin 782 exit 0;;783 i*:MINGW*:*)806 exit ;; 807 *:MINGW*:*) 784 808 echo ${UNAME_MACHINE}-pc-mingw32 785 exit 0 ;; 809 exit ;; 810 i*:windows32*:*) 811 # uname -m includes "-pc" on this system. 812 echo ${UNAME_MACHINE}-mingw32 813 exit ;; 786 814 i*:PW*:*) 787 815 echo ${UNAME_MACHINE}-pc-pw32 788 exit 0 ;; 789 x86:Interix*:[34]*) 790 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 791 exit 0 ;; 816 exit ;; 817 *:Interix*:*) 818 case ${UNAME_MACHINE} in 819 x86) 820 echo i586-pc-interix${UNAME_RELEASE} 821 exit ;; 822 authenticamd | genuineintel | EM64T) 823 echo x86_64-unknown-interix${UNAME_RELEASE} 824 exit ;; 825 IA64) 826 echo ia64-unknown-interix${UNAME_RELEASE} 827 exit ;; 828 esac ;; 792 829 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 793 830 echo i${UNAME_MACHINE}-pc-mks 794 exit 0 ;; 831 exit ;; 832 8664:Windows_NT:*) 833 echo x86_64-pc-mks 834 exit ;; 795 835 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 796 836 # How do we know it's Interix rather than the generic POSIX subsystem? … … 798 838 # UNAME_MACHINE based on the output of uname instead of i386? 799 839 echo i586-pc-interix 800 exit 0;;840 exit ;; 801 841 i*:UWIN*:*) 802 842 echo ${UNAME_MACHINE}-pc-uwin 803 exit 0 ;; 843 exit ;; 844 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 845 echo x86_64-unknown-cygwin 846 exit ;; 804 847 p*:CYGWIN*:*) 805 848 echo powerpcle-unknown-cygwin 806 exit 0;;849 exit ;; 807 850 prep*:SunOS:5.*:*) 808 851 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 809 exit 0;;852 exit ;; 810 853 *:GNU:*:*) 811 854 # the GNU system 812 855 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 813 exit 0;;856 exit ;; 814 857 *:GNU/*:*:*) 815 858 # other systems with GNU libc and userland 816 859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 817 exit 0;;860 exit ;; 818 861 i*86:Minix:*:*) 819 862 echo ${UNAME_MACHINE}-pc-minix 820 exit 0 ;; 821 arm*:Linux:*:*) 822 echo ${UNAME_MACHINE}-unknown-linux-gnu 823 exit 0 ;; 824 cris:Linux:*:*) 825 echo cris-axis-linux-gnu 826 exit 0 ;; 827 crisv32:Linux:*:*) 828 echo crisv32-axis-linux-gnu 829 exit 0 ;; 830 frv:Linux:*:*) 831 echo frv-unknown-linux-gnu 832 exit 0 ;; 833 ia64:Linux:*:*) 834 echo ${UNAME_MACHINE}-unknown-linux-gnu 835 exit 0 ;; 836 m32r*:Linux:*:*) 837 echo ${UNAME_MACHINE}-unknown-linux-gnu 838 exit 0 ;; 839 m68*:Linux:*:*) 840 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 exit 0 ;; 842 mips:Linux:*:*) 843 eval $set_cc_for_build 844 sed 's/^ //' << EOF >$dummy.c 845 #undef CPU 846 #undef mips 847 #undef mipsel 848 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 849 CPU=mipsel 850 #else 851 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 852 CPU=mips 853 #else 854 CPU= 855 #endif 856 #endif 857 EOF 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 860 ;; 861 mips64:Linux:*:*) 862 eval $set_cc_for_build 863 sed 's/^ //' << EOF >$dummy.c 864 #undef CPU 865 #undef mips64 866 #undef mips64el 867 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 868 CPU=mips64el 869 #else 870 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 871 CPU=mips64 872 #else 873 CPU= 874 #endif 875 #endif 876 EOF 877 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 878 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 879 ;; 880 ppc:Linux:*:*) 881 echo powerpc-unknown-linux-gnu 882 exit 0 ;; 883 ppc64:Linux:*:*) 884 echo powerpc64-unknown-linux-gnu 885 exit 0 ;; 863 exit ;; 886 864 alpha:Linux:*:*) 887 865 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 893 871 EV67) UNAME_MACHINE=alphaev67 ;; 894 872 EV68*) UNAME_MACHINE=alphaev68 ;; 895 896 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null873 esac 874 objdump --private-headers /bin/sh | grep -q ld.so.1 897 875 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 898 876 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 899 exit 0 ;; 877 exit ;; 878 arm*:Linux:*:*) 879 eval $set_cc_for_build 880 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 881 | grep -q __ARM_EABI__ 882 then 883 echo ${UNAME_MACHINE}-unknown-linux-gnu 884 else 885 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 886 | grep -q __ARM_PCS_VFP 887 then 888 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 889 else 890 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 891 fi 892 fi 893 exit ;; 894 avr32*:Linux:*:*) 895 echo ${UNAME_MACHINE}-unknown-linux-gnu 896 exit ;; 897 cris:Linux:*:*) 898 echo cris-axis-linux-gnu 899 exit ;; 900 crisv32:Linux:*:*) 901 echo crisv32-axis-linux-gnu 902 exit ;; 903 frv:Linux:*:*) 904 echo frv-unknown-linux-gnu 905 exit ;; 906 i*86:Linux:*:*) 907 LIBC=gnu 908 eval $set_cc_for_build 909 sed 's/^ //' << EOF >$dummy.c 910 #ifdef __dietlibc__ 911 LIBC=dietlibc 912 #endif 913 EOF 914 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 915 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 916 exit ;; 917 ia64:Linux:*:*) 918 echo ${UNAME_MACHINE}-unknown-linux-gnu 919 exit ;; 920 m32r*:Linux:*:*) 921 echo ${UNAME_MACHINE}-unknown-linux-gnu 922 exit ;; 923 m68*:Linux:*:*) 924 echo ${UNAME_MACHINE}-unknown-linux-gnu 925 exit ;; 926 mips:Linux:*:* | mips64:Linux:*:*) 927 eval $set_cc_for_build 928 sed 's/^ //' << EOF >$dummy.c 929 #undef CPU 930 #undef ${UNAME_MACHINE} 931 #undef ${UNAME_MACHINE}el 932 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 933 CPU=${UNAME_MACHINE}el 934 #else 935 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 936 CPU=${UNAME_MACHINE} 937 #else 938 CPU= 939 #endif 940 #endif 941 EOF 942 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 943 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 944 ;; 945 or32:Linux:*:*) 946 echo or32-unknown-linux-gnu 947 exit ;; 948 padre:Linux:*:*) 949 echo sparc-unknown-linux-gnu 950 exit ;; 951 parisc64:Linux:*:* | hppa64:Linux:*:*) 952 echo hppa64-unknown-linux-gnu 953 exit ;; 900 954 parisc:Linux:*:* | hppa:Linux:*:*) 901 955 # Look for CPU level … … 905 959 *) echo hppa-unknown-linux-gnu ;; 906 960 esac 907 exit 0 ;; 908 parisc64:Linux:*:* | hppa64:Linux:*:*) 909 echo hppa64-unknown-linux-gnu 910 exit 0 ;; 961 exit ;; 962 ppc64:Linux:*:*) 963 echo powerpc64-unknown-linux-gnu 964 exit ;; 965 ppc:Linux:*:*) 966 echo powerpc-unknown-linux-gnu 967 exit ;; 911 968 s390:Linux:*:* | s390x:Linux:*:*) 912 969 echo ${UNAME_MACHINE}-ibm-linux 913 exit 0;;970 exit ;; 914 971 sh64*:Linux:*:*) 915 916 exit 0;;972 echo ${UNAME_MACHINE}-unknown-linux-gnu 973 exit ;; 917 974 sh*:Linux:*:*) 918 975 echo ${UNAME_MACHINE}-unknown-linux-gnu 919 exit 0;;976 exit ;; 920 977 sparc:Linux:*:* | sparc64:Linux:*:*) 921 978 echo ${UNAME_MACHINE}-unknown-linux-gnu 922 exit 0 ;; 979 exit ;; 980 tile*:Linux:*:*) 981 echo ${UNAME_MACHINE}-unknown-linux-gnu 982 exit ;; 983 vax:Linux:*:*) 984 echo ${UNAME_MACHINE}-dec-linux-gnu 985 exit ;; 923 986 x86_64:Linux:*:*) 924 987 echo x86_64-unknown-linux-gnu 925 exit 0 ;; 926 i*86:Linux:*:*) 927 # The BFD linker knows what the default object file format is, so 928 # first see if it will tell us. cd to the root directory to prevent 929 # problems with other programs or directories called `ld' in the path. 930 # Set LC_ALL=C to ensure ld outputs messages in English. 931 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 932 | sed -ne '/supported targets:/!d 933 s/[ ][ ]*/ /g 934 s/.*supported targets: *// 935 s/ .*// 936 p'` 937 case "$ld_supported_targets" in 938 elf32-i386) 939 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 940 ;; 941 a.out-i386-linux) 942 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 943 exit 0 ;; 944 coff-i386) 945 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 946 exit 0 ;; 947 "") 948 # Either a pre-BFD a.out linker (linux-gnuoldld) or 949 # one that does not give us useful --help. 950 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 951 exit 0 ;; 952 esac 953 # Determine whether the default compiler is a.out or elf 954 eval $set_cc_for_build 955 sed 's/^ //' << EOF >$dummy.c 956 #include <features.h> 957 #ifdef __ELF__ 958 # ifdef __GLIBC__ 959 # if __GLIBC__ >= 2 960 LIBC=gnu 961 # else 962 LIBC=gnulibc1 963 # endif 964 # else 965 LIBC=gnulibc1 966 # endif 967 #else 968 #ifdef __INTEL_COMPILER 969 LIBC=gnu 970 #else 971 LIBC=gnuaout 972 #endif 973 #endif 974 #ifdef __dietlibc__ 975 LIBC=dietlibc 976 #endif 977 EOF 978 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 979 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 980 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 981 ;; 988 exit ;; 989 xtensa*:Linux:*:*) 990 echo ${UNAME_MACHINE}-unknown-linux-gnu 991 exit ;; 982 992 i*86:DYNIX/ptx:4*:*) 983 993 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. … … 985 995 # sysname and nodename. 986 996 echo i386-sequent-sysv4 987 exit 0;;997 exit ;; 988 998 i*86:UNIX_SV:4.2MP:2.*) 989 990 991 999 # Unixware is an offshoot of SVR4, but it has its own version 1000 # number series starting with 2... 1001 # I am not positive that other SVR4 systems won't match this, 992 1002 # I just have to hope. -- rms. 993 1003 # Use sysv4.2uw... so that sysv4* matches it. 994 1004 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 995 exit 0;;1005 exit ;; 996 1006 i*86:OS/2:*:*) 997 1007 # If we were able to find `uname', then EMX Unix compatibility 998 1008 # is probably installed. 999 1009 echo ${UNAME_MACHINE}-pc-os2-emx 1000 exit 0;;1010 exit ;; 1001 1011 i*86:XTS-300:*:STOP) 1002 1012 echo ${UNAME_MACHINE}-unknown-stop 1003 exit 0;;1013 exit ;; 1004 1014 i*86:atheos:*:*) 1005 1015 echo ${UNAME_MACHINE}-unknown-atheos 1006 exit 0;;1007 1016 exit ;; 1017 i*86:syllable:*:*) 1008 1018 echo ${UNAME_MACHINE}-pc-syllable 1009 exit 0;;1010 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4. 0*:*)1019 exit ;; 1020 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1011 1021 echo i386-unknown-lynxos${UNAME_RELEASE} 1012 exit 0;;1022 exit ;; 1013 1023 i*86:*DOS:*:*) 1014 1024 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1015 exit 0;;1025 exit ;; 1016 1026 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1017 1027 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1021 1031 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1022 1032 fi 1023 exit 0 ;; 1024 i*86:*:5:[78]*) 1033 exit ;; 1034 i*86:*:5:[678]*) 1035 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1025 1036 case `/bin/uname -X | grep "^Machine"` in 1026 1037 *486*) UNAME_MACHINE=i486 ;; … … 1029 1040 esac 1030 1041 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1031 exit 0;;1042 exit ;; 1032 1043 i*86:*:3.2:*) 1033 1044 if test -f /usr/options/cb.name; then … … 1047 1058 echo ${UNAME_MACHINE}-pc-sysv32 1048 1059 fi 1049 exit 0;;1060 exit ;; 1050 1061 pc:*:*:*) 1051 1062 # Left here for compatibility: 1052 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1053 # the processor, so we play safe by assuming i386. 1054 echo i386-pc-msdosdjgpp 1055 exit 0 ;; 1063 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1064 # the processor, so we play safe by assuming i586. 1065 # Note: whatever this is, it MUST be the same as what config.sub 1066 # prints for the "djgpp" host, or else GDB configury will decide that 1067 # this is a cross-build. 1068 echo i586-pc-msdosdjgpp 1069 exit ;; 1056 1070 Intel:Mach:3*:*) 1057 1071 echo i386-pc-mach3 1058 exit 0;;1072 exit ;; 1059 1073 paragon:*:*:*) 1060 1074 echo i860-intel-osf1 1061 exit 0;;1075 exit ;; 1062 1076 i860:*:4.*:*) # i860-SVR4 1063 1077 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then … … 1066 1080 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1067 1081 fi 1068 exit 0;;1082 exit ;; 1069 1083 mini*:CTIX:SYS*5:*) 1070 1084 # "miniframe" 1071 1085 echo m68010-convergent-sysv 1072 exit 0;;1086 exit ;; 1073 1087 mc68k:UNIX:SYSTEM5:3.51m) 1074 1088 echo m68k-convergent-sysv 1075 exit 0;;1089 exit ;; 1076 1090 M680?0:D-NIX:5.3:*) 1077 1091 echo m68k-diab-dnix 1078 exit 0;;1092 exit ;; 1079 1093 M68*:*:R3V[5678]*:*) 1080 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0;;1094 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1081 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) 1082 1096 OS_REL='' … … 1084 1098 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1085 1099 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1086 && echo i486-ncr-sysv4.3${OS_REL} && exit 01100 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1087 1101 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1088 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1102 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1089 1103 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1091 && echo i486-ncr-sysv4 && exit 0 ;; 1104 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1105 && { echo i486-ncr-sysv4; exit; } ;; 1106 NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1107 OS_REL='.3' 1108 test -r /etc/.relid \ 1109 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1110 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1111 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1112 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1113 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1114 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1115 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1092 1116 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1093 1117 echo m68k-unknown-lynxos${UNAME_RELEASE} 1094 exit 0;;1118 exit ;; 1095 1119 mc68030:UNIX_System_V:4.*:*) 1096 1120 echo m68k-atari-sysv4 1097 exit 0;;1121 exit ;; 1098 1122 TSUNAMI:LynxOS:2.*:*) 1099 1123 echo sparc-unknown-lynxos${UNAME_RELEASE} 1100 exit 0;;1124 exit ;; 1101 1125 rs6000:LynxOS:2.*:*) 1102 1126 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1103 exit 0;;1104 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4. 0*:*)1127 exit ;; 1128 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1105 1129 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1106 exit 0;;1130 exit ;; 1107 1131 SM[BE]S:UNIX_SV:*:*) 1108 1132 echo mips-dde-sysv${UNAME_RELEASE} 1109 exit 0;;1133 exit ;; 1110 1134 RM*:ReliantUNIX-*:*:*) 1111 1135 echo mips-sni-sysv4 1112 exit 0;;1136 exit ;; 1113 1137 RM*:SINIX-*:*:*) 1114 1138 echo mips-sni-sysv4 1115 exit 0;;1139 exit ;; 1116 1140 *:SINIX-*:*:*) 1117 1141 if uname -p 2>/dev/null >/dev/null ; then … … 1121 1145 echo ns32k-sni-sysv 1122 1146 fi 1123 exit 0;;1124 PENTIUM:*:4.0*:*) 1125 1126 1127 exit 0;;1147 exit ;; 1148 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1149 # says <Richard.M.Bartel@ccMail.Census.GOV> 1150 echo i586-unisys-sysv4 1151 exit ;; 1128 1152 *:UNIX_System_V:4*:FTX*) 1129 1153 # From Gerald Hewes <hewes@openmarket.com>. 1130 1154 # How about differentiating between stratus architectures? -djm 1131 1155 echo hppa1.1-stratus-sysv4 1132 exit 0;;1156 exit ;; 1133 1157 *:*:*:FTX*) 1134 1158 # From seanf@swdc.stratus.com. 1135 1159 echo i860-stratus-sysv4 1136 exit 0 ;; 1160 exit ;; 1161 i*86:VOS:*:*) 1162 # From Paul.Green@stratus.com. 1163 echo ${UNAME_MACHINE}-stratus-vos 1164 exit ;; 1137 1165 *:VOS:*:*) 1138 1166 # From Paul.Green@stratus.com. 1139 1167 echo hppa1.1-stratus-vos 1140 exit 0;;1168 exit ;; 1141 1169 mc68*:A/UX:*:*) 1142 1170 echo m68k-apple-aux${UNAME_RELEASE} 1143 exit 0;;1171 exit ;; 1144 1172 news*:NEWS-OS:6*:*) 1145 1173 echo mips-sony-newsos6 1146 exit 0;;1174 exit ;; 1147 1175 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1148 1176 if [ -d /usr/nec ]; then 1149 1177 echo mips-nec-sysv${UNAME_RELEASE} 1150 1178 else 1151 1152 fi 1153 exit 0;;1179 echo mips-unknown-sysv${UNAME_RELEASE} 1180 fi 1181 exit ;; 1154 1182 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1155 1183 echo powerpc-be-beos 1156 exit 0;;1184 exit ;; 1157 1185 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1158 1186 echo powerpc-apple-beos 1159 exit 0;;1187 exit ;; 1160 1188 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1161 1189 echo i586-pc-beos 1162 exit 0 ;; 1190 exit ;; 1191 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1192 echo i586-pc-haiku 1193 exit ;; 1163 1194 SX-4:SUPER-UX:*:*) 1164 1195 echo sx4-nec-superux${UNAME_RELEASE} 1165 exit 0;;1196 exit ;; 1166 1197 SX-5:SUPER-UX:*:*) 1167 1198 echo sx5-nec-superux${UNAME_RELEASE} 1168 exit 0;;1199 exit ;; 1169 1200 SX-6:SUPER-UX:*:*) 1170 1201 echo sx6-nec-superux${UNAME_RELEASE} 1171 exit 0 ;; 1202 exit ;; 1203 SX-7:SUPER-UX:*:*) 1204 echo sx7-nec-superux${UNAME_RELEASE} 1205 exit ;; 1206 SX-8:SUPER-UX:*:*) 1207 echo sx8-nec-superux${UNAME_RELEASE} 1208 exit ;; 1209 SX-8R:SUPER-UX:*:*) 1210 echo sx8r-nec-superux${UNAME_RELEASE} 1211 exit ;; 1172 1212 Power*:Rhapsody:*:*) 1173 1213 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1174 exit 0;;1214 exit ;; 1175 1215 *:Rhapsody:*:*) 1176 1216 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1177 exit 0;;1217 exit ;; 1178 1218 *:Darwin:*:*) 1179 1219 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1180 1220 case $UNAME_PROCESSOR in 1181 *86) UNAME_PROCESSOR=i686 ;; 1221 i386) 1222 eval $set_cc_for_build 1223 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1224 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1225 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1226 grep IS_64BIT_ARCH >/dev/null 1227 then 1228 UNAME_PROCESSOR="x86_64" 1229 fi 1230 fi ;; 1182 1231 unknown) UNAME_PROCESSOR=powerpc ;; 1183 1232 esac 1184 1233 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1185 exit 0;;1234 exit ;; 1186 1235 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1187 1236 UNAME_PROCESSOR=`uname -p` … … 1191 1240 fi 1192 1241 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1193 exit 0;;1242 exit ;; 1194 1243 *:QNX:*:4*) 1195 1244 echo i386-pc-qnx 1196 exit 0 ;; 1245 exit ;; 1246 NEO-?:NONSTOP_KERNEL:*:*) 1247 echo neo-tandem-nsk${UNAME_RELEASE} 1248 exit ;; 1249 NSE-?:NONSTOP_KERNEL:*:*) 1250 echo nse-tandem-nsk${UNAME_RELEASE} 1251 exit ;; 1197 1252 NSR-?:NONSTOP_KERNEL:*:*) 1198 1253 echo nsr-tandem-nsk${UNAME_RELEASE} 1199 exit 0;;1254 exit ;; 1200 1255 *:NonStop-UX:*:*) 1201 1256 echo mips-compaq-nonstopux 1202 exit 0;;1257 exit ;; 1203 1258 BS2000:POSIX*:*:*) 1204 1259 echo bs2000-siemens-sysv 1205 exit 0;;1260 exit ;; 1206 1261 DS/*:UNIX_System_V:*:*) 1207 1262 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1208 exit 0;;1263 exit ;; 1209 1264 *:Plan9:*:*) 1210 1265 # "uname -m" is not consistent, so use $cputype instead. 386 … … 1217 1272 fi 1218 1273 echo ${UNAME_MACHINE}-unknown-plan9 1219 exit 0;;1274 exit ;; 1220 1275 *:TOPS-10:*:*) 1221 1276 echo pdp10-unknown-tops10 1222 exit 0;;1277 exit ;; 1223 1278 *:TENEX:*:*) 1224 1279 echo pdp10-unknown-tenex 1225 exit 0;;1280 exit ;; 1226 1281 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1227 1282 echo pdp10-dec-tops20 1228 exit 0;;1283 exit ;; 1229 1284 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1230 1285 echo pdp10-xkl-tops20 1231 exit 0;;1286 exit ;; 1232 1287 *:TOPS-20:*:*) 1233 1288 echo pdp10-unknown-tops20 1234 exit 0;;1289 exit ;; 1235 1290 *:ITS:*:*) 1236 1291 echo pdp10-unknown-its 1237 exit 0;;1292 exit ;; 1238 1293 SEI:*:*:SEIUX) 1239 1240 exit 0;;1294 echo mips-sei-seiux${UNAME_RELEASE} 1295 exit ;; 1241 1296 *:DragonFly:*:*) 1242 1297 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1243 exit 0;;1298 exit ;; 1244 1299 *:*VMS:*:*) 1245 1300 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1246 1301 case "${UNAME_MACHINE}" in 1247 A*) echo alpha-dec-vms && exit 0 ;; 1248 I*) echo ia64-dec-vms && exit 0 ;; 1249 V*) echo vax-dec-vms && exit 0 ;; 1250 esac 1302 A*) echo alpha-dec-vms ; exit ;; 1303 I*) echo ia64-dec-vms ; exit ;; 1304 V*) echo vax-dec-vms ; exit ;; 1305 esac ;; 1306 *:XENIX:*:SysV) 1307 echo i386-pc-xenix 1308 exit ;; 1309 i*86:skyos:*:*) 1310 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1311 exit ;; 1312 i*86:rdos:*:*) 1313 echo ${UNAME_MACHINE}-pc-rdos 1314 exit ;; 1315 i*86:AROS:*:*) 1316 echo ${UNAME_MACHINE}-pc-aros 1317 exit ;; 1251 1318 esac 1252 1319 … … 1271 1338 printf ("m68k-sony-newsos%s\n", 1272 1339 #ifdef NEWSOS4 1273 1340 "4" 1274 1341 #else 1275 1276 #endif 1277 1342 "" 1343 #endif 1344 ); exit (0); 1278 1345 #endif 1279 1346 #endif 1280 1347 1281 1348 #if defined (__arm) && defined (__acorn) && defined (__unix) 1282 printf ("arm-acorn-riscix "); exit (0);1349 printf ("arm-acorn-riscix\n"); exit (0); 1283 1350 #endif 1284 1351 … … 1369 1436 EOF 1370 1437 1371 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1438 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1439 { echo "$SYSTEM_NAME"; exit; } 1372 1440 1373 1441 # Apollos put the system type in the environment. 1374 1442 1375 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1443 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1376 1444 1377 1445 # Convex versions that predate uname can use getsysinfo(1) … … 1382 1450 c1*) 1383 1451 echo c1-convex-bsd 1384 exit 0;;1452 exit ;; 1385 1453 c2*) 1386 1454 if getsysinfo -f scalar_acc … … 1388 1456 else echo c2-convex-bsd 1389 1457 fi 1390 exit 0;;1458 exit ;; 1391 1459 c34*) 1392 1460 echo c34-convex-bsd 1393 exit 0;;1461 exit ;; 1394 1462 c38*) 1395 1463 echo c38-convex-bsd 1396 exit 0;;1464 exit ;; 1397 1465 c4*) 1398 1466 echo c4-convex-bsd 1399 exit 0;;1467 exit ;; 1400 1468 esac 1401 1469 fi … … 1408 1476 download the most up to date version of the config scripts from 1409 1477 1410 ftp://ftp.gnu.org/pub/gnu/config/ 1478 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1479 and 1480 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1411 1481 1412 1482 If the version you run ($0) is already up to date, please
Note: See TracChangeset
for help on using the changeset viewer.