config.guess (174993) | config.guess (178866) |
---|---|
1#! /bin/sh 2# Attempt to guess a canonical system name. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 1#! /bin/sh 2# Attempt to guess a canonical system name. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5# Inc. | 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 5# Free Software Foundation, Inc. |
6 | 6 |
7timestamp='2007-05-17' | 7timestamp='2008-03-12' |
8 9# This file is free software; you can redistribute it and/or modify it 10# under the terms of the GNU General Public License as published by 11# the Free Software Foundation; either version 2 of the License, or 12# (at your option) any later version. 13# 14# This program is distributed in the hope that it will be useful, but 15# WITHOUT ANY WARRANTY; without even the implied warranty of --- 35 unchanged lines hidden (view full) --- 51 -v, --version print version number, then exit 52 53Report bugs and patches to <config-patches@gnu.org>." 54 55version="\ 56GNU config.guess ($timestamp) 57 58Originally written by Per Bothner. | 8 9# This file is free software; you can redistribute it and/or modify it 10# under the terms of the GNU General Public License as published by 11# the Free Software Foundation; either version 2 of the License, or 12# (at your option) any later version. 13# 14# This program is distributed in the hope that it will be useful, but 15# WITHOUT ANY WARRANTY; without even the implied warranty of --- 35 unchanged lines hidden (view full) --- 51 -v, --version print version number, then exit 52 53Report bugs and patches to <config-patches@gnu.org>." 54 55version="\ 56GNU config.guess ($timestamp) 57 58Originally written by Per Bothner. |
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 60Free Software Foundation, Inc. | 59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
61 62This is free software; see the source for copying conditions. There is NO 63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 64 65help=" 66Try \`$me --help' for more information." 67 68# Parse command line --- 106 unchanged lines hidden (view full) --- 175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 176 # Return netbsd for either. FIX? 177 os=netbsd 178 else 179 os=netbsdelf 180 fi 181 ;; 182 *) | 61 62This is free software; see the source for copying conditions. There is NO 63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 64 65help=" 66Try \`$me --help' for more information." 67 68# Parse command line --- 106 unchanged lines hidden (view full) --- 175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 176 # Return netbsd for either. FIX? 177 os=netbsd 178 else 179 os=netbsdelf 180 fi 181 ;; 182 *) |
183 os=netbsd | 183 os=netbsd |
184 ;; 185 esac 186 # The OS release 187 # Debian GNU/NetBSD machines have a different userland, and 188 # thus, need a distinct triplet. However, they do not need 189 # kernel version information, so it can be replaced with a 190 # suitable tag, in the style of linux-gnu. 191 case "${UNAME_VERSION}" in --- 22 unchanged lines hidden (view full) --- 214 macppc:MirBSD:*:*) 215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 216 exit ;; 217 *:MirBSD:*:*) 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 219 exit ;; 220 alpha:OSF1:*:*) 221 case $UNAME_RELEASE in | 184 ;; 185 esac 186 # The OS release 187 # Debian GNU/NetBSD machines have a different userland, and 188 # thus, need a distinct triplet. However, they do not need 189 # kernel version information, so it can be replaced with a 190 # suitable tag, in the style of linux-gnu. 191 case "${UNAME_VERSION}" in --- 22 unchanged lines hidden (view full) --- 214 macppc:MirBSD:*:*) 215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 216 exit ;; 217 *:MirBSD:*:*) 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 219 exit ;; 220 alpha:OSF1:*:*) 221 case $UNAME_RELEASE in |
222 *4.0) | 222 *4.0) |
223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 224 ;; | 223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 224 ;; |
225 *5.*) 226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | 225 *5.*) 226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
227 ;; 228 esac 229 # According to Compaq, /usr/sbin/psrinfo has been available on 230 # OSF/1 and Tru64 systems produced since 1995. I hope that 231 # covers most systems running today. This code pipes the CPU 232 # types through head -n 1, so we only detect the type of CPU 0. 233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 234 case "$ALPHA_CPU_TYPE" in --- 55 unchanged lines hidden (view full) --- 290 exit ;; 291 *:OS/390:*:*) 292 echo i370-ibm-openedition 293 exit ;; 294 *:z/VM:*:*) 295 echo s390-ibm-zvmoe 296 exit ;; 297 *:OS400:*:*) | 227 ;; 228 esac 229 # According to Compaq, /usr/sbin/psrinfo has been available on 230 # OSF/1 and Tru64 systems produced since 1995. I hope that 231 # covers most systems running today. This code pipes the CPU 232 # types through head -n 1, so we only detect the type of CPU 0. 233 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 234 case "$ALPHA_CPU_TYPE" in --- 55 unchanged lines hidden (view full) --- 290 exit ;; 291 *:OS/390:*:*) 292 echo i370-ibm-openedition 293 exit ;; 294 *:z/VM:*:*) 295 echo s390-ibm-zvmoe 296 exit ;; 297 *:OS400:*:*) |
298 echo powerpc-ibm-os400 | 298 echo powerpc-ibm-os400 |
299 exit ;; 300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301 echo arm-acorn-riscix${UNAME_RELEASE} 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) --- 18 unchanged lines hidden (view full) --- 325 sparc) echo sparc-icl-nx7; exit ;; 326 esac ;; 327 sun4H:SunOS:5.*:*) 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 329 exit ;; 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 332 exit ;; | 299 exit ;; 300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301 echo arm-acorn-riscix${UNAME_RELEASE} 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) --- 18 unchanged lines hidden (view full) --- 325 sparc) echo sparc-icl-nx7; exit ;; 326 esac ;; 327 sun4H:SunOS:5.*:*) 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 329 exit ;; 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 332 exit ;; |
333 i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*) | 333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 exit ;; 336 sun4*:SunOS:6*:*) 337 # According to config.sub, this is the proper way to canonicalize 338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 339 # it's likely to be more like Solaris than SunOS4. 340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 341 exit ;; --- 28 unchanged lines hidden (view full) --- 370 # can be virtually everything (everything which is not 371 # "atarist" or "atariste" at least should have a processor 372 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 373 # to the lowercase version "mint" (or "freemint"). Finally 374 # the system name "TOS" denotes a system which is actually not 375 # MiNT. But MiNT is downward compatible to TOS, so this should 376 # be no problem. 377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | 334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 exit ;; 336 sun4*:SunOS:6*:*) 337 # According to config.sub, this is the proper way to canonicalize 338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 339 # it's likely to be more like Solaris than SunOS4. 340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 341 exit ;; --- 28 unchanged lines hidden (view full) --- 370 # can be virtually everything (everything which is not 371 # "atarist" or "atariste" at least should have a processor 372 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 373 # to the lowercase version "mint" (or "freemint"). Finally 374 # the system name "TOS" denotes a system which is actually not 375 # MiNT. But MiNT is downward compatible to TOS, so this should 376 # be no problem. 377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
378 echo m68k-atari-mint${UNAME_RELEASE} | 378 echo m68k-atari-mint${UNAME_RELEASE} |
379 exit ;; 380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 381 echo m68k-atari-mint${UNAME_RELEASE} | 379 exit ;; 380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 381 echo m68k-atari-mint${UNAME_RELEASE} |
382 exit ;; | 382 exit ;; |
383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | 383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
384 echo m68k-atari-mint${UNAME_RELEASE} | 384 echo m68k-atari-mint${UNAME_RELEASE} |
385 exit ;; 386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | 385 exit ;; 386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
387 echo m68k-milan-mint${UNAME_RELEASE} 388 exit ;; | 387 echo m68k-milan-mint${UNAME_RELEASE} 388 exit ;; |
389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | 389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
390 echo m68k-hades-mint${UNAME_RELEASE} 391 exit ;; | 390 echo m68k-hades-mint${UNAME_RELEASE} 391 exit ;; |
392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
393 echo m68k-unknown-mint${UNAME_RELEASE} 394 exit ;; | 393 echo m68k-unknown-mint${UNAME_RELEASE} 394 exit ;; |
395 m68k:machten:*:*) 396 echo m68k-apple-machten${UNAME_RELEASE} 397 exit ;; 398 powerpc:machten:*:*) 399 echo powerpc-apple-machten${UNAME_RELEASE} 400 exit ;; 401 RISC*:Mach:*:*) 402 echo mips-dec-mach_bsd4.3 --- 53 unchanged lines hidden (view full) --- 456 exit ;; 457 m88k:*:4*:R4*) 458 echo m88k-motorola-sysv4 459 exit ;; 460 m88k:*:3*:R3*) 461 echo m88k-motorola-sysv3 462 exit ;; 463 AViiON:dgux:*:*) | 395 m68k:machten:*:*) 396 echo m68k-apple-machten${UNAME_RELEASE} 397 exit ;; 398 powerpc:machten:*:*) 399 echo powerpc-apple-machten${UNAME_RELEASE} 400 exit ;; 401 RISC*:Mach:*:*) 402 echo mips-dec-mach_bsd4.3 --- 53 unchanged lines hidden (view full) --- 456 exit ;; 457 m88k:*:4*:R4*) 458 echo m88k-motorola-sysv4 459 exit ;; 460 m88k:*:3*:R3*) 461 echo m88k-motorola-sysv3 462 exit ;; 463 AViiON:dgux:*:*) |
464 # DG/UX returns AViiON for all architectures 465 UNAME_PROCESSOR=`/usr/bin/uname -p` | 464 # DG/UX returns AViiON for all architectures 465 UNAME_PROCESSOR=`/usr/bin/uname -p` |
466 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 467 then 468 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 469 [ ${TARGET_BINARY_INTERFACE}x = x ] 470 then 471 echo m88k-dg-dgux${UNAME_RELEASE} 472 else 473 echo m88k-dg-dguxbcs${UNAME_RELEASE} --- 53 unchanged lines hidden (view full) --- 527 echo rs6000-ibm-aix3.2.5 528 fi 529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 echo rs6000-ibm-aix3.2.4 531 else 532 echo rs6000-ibm-aix3.2 533 fi 534 exit ;; | 466 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 467 then 468 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 469 [ ${TARGET_BINARY_INTERFACE}x = x ] 470 then 471 echo m88k-dg-dgux${UNAME_RELEASE} 472 else 473 echo m88k-dg-dguxbcs${UNAME_RELEASE} --- 53 unchanged lines hidden (view full) --- 527 echo rs6000-ibm-aix3.2.5 528 fi 529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 530 echo rs6000-ibm-aix3.2.4 531 else 532 echo rs6000-ibm-aix3.2 533 fi 534 exit ;; |
535 *:AIX:*:[45]) | 535 *:AIX:*:[456]) |
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 538 IBM_ARCH=rs6000 539 else 540 IBM_ARCH=powerpc 541 fi 542 if [ -x /usr/bin/oslevel ] ; then 543 IBM_REV=`/usr/bin/oslevel` --- 26 unchanged lines hidden (view full) --- 570 9000/[34678]??:HP-UX:*:*) 571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 572 case "${UNAME_MACHINE}" in 573 9000/31? ) HP_ARCH=m68000 ;; 574 9000/[34]?? ) HP_ARCH=m68k ;; 575 9000/[678][0-9][0-9]) 576 if [ -x /usr/bin/getconf ]; then 577 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 538 IBM_ARCH=rs6000 539 else 540 IBM_ARCH=powerpc 541 fi 542 if [ -x /usr/bin/oslevel ] ; then 543 IBM_REV=`/usr/bin/oslevel` --- 26 unchanged lines hidden (view full) --- 570 9000/[34678]??:HP-UX:*:*) 571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 572 case "${UNAME_MACHINE}" in 573 9000/31? ) HP_ARCH=m68000 ;; 574 9000/[34]?? ) HP_ARCH=m68k ;; 575 9000/[678][0-9][0-9]) 576 if [ -x /usr/bin/getconf ]; then 577 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
578 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 579 case "${sc_cpu_version}" in | 578 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 579 case "${sc_cpu_version}" in |
580 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 581 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 582 532) # CPU_PA_RISC2_0 583 case "${sc_kernel_bits}" in 584 32) HP_ARCH="hppa2.0n" ;; 585 64) HP_ARCH="hppa2.0w" ;; 586 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 587 esac ;; --- 118 unchanged lines hidden (view full) --- 706 echo ${UNAME_MACHINE}-unknown-osf1 707 fi 708 exit ;; 709 parisc*:Lites*:*:*) 710 echo hppa1.1-hp-lites 711 exit ;; 712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 713 echo c1-convex-bsd | 580 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 581 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 582 532) # CPU_PA_RISC2_0 583 case "${sc_kernel_bits}" in 584 32) HP_ARCH="hppa2.0n" ;; 585 64) HP_ARCH="hppa2.0w" ;; 586 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 587 esac ;; --- 118 unchanged lines hidden (view full) --- 706 echo ${UNAME_MACHINE}-unknown-osf1 707 fi 708 exit ;; 709 parisc*:Lites*:*:*) 710 echo hppa1.1-hp-lites 711 exit ;; 712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 713 echo c1-convex-bsd |
714 exit ;; | 714 exit ;; |
715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 716 if getsysinfo -f scalar_acc 717 then echo c32-convex-bsd 718 else echo c2-convex-bsd 719 fi | 715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 716 if getsysinfo -f scalar_acc 717 then echo c32-convex-bsd 718 else echo c2-convex-bsd 719 fi |
720 exit ;; | 720 exit ;; |
721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 722 echo c34-convex-bsd | 721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 722 echo c34-convex-bsd |
723 exit ;; | 723 exit ;; |
724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 725 echo c38-convex-bsd | 724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 725 echo c38-convex-bsd |
726 exit ;; | 726 exit ;; |
727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 728 echo c4-convex-bsd | 727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 728 echo c4-convex-bsd |
729 exit ;; | 729 exit ;; |
730 CRAY*Y-MP:*:*:*) 731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 732 exit ;; 733 CRAY*[A-Z]90:*:*:*) 734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 735 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 737 -e 's/\.[^.]*$/.X/' --- 7 unchanged lines hidden (view full) --- 745 CRAY*SV1:*:*:*) 746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 747 exit ;; 748 *:UNICOS/mp:*:*) 749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit ;; 751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 730 CRAY*Y-MP:*:*:*) 731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 732 exit ;; 733 CRAY*[A-Z]90:*:*:*) 734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 735 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 737 -e 's/\.[^.]*$/.X/' --- 7 unchanged lines hidden (view full) --- 745 CRAY*SV1:*:*:*) 746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 747 exit ;; 748 *:UNICOS/mp:*:*) 749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit ;; 751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 756 exit ;; | 753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 756 exit ;; |
757 5000:UNIX_System_V:4.*:*) | 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}" | 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 ;; 762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 764 exit ;; 765 sparc*:BSD/OS:*:*) 766 echo sparc-unknown-bsdi${UNAME_RELEASE} 767 exit ;; 768 *:BSD/OS:*:*) --- 11 unchanged lines hidden (view full) --- 780 exit ;; 781 i*:CYGWIN*:*) 782 echo ${UNAME_MACHINE}-pc-cygwin 783 exit ;; 784 *:MINGW*:*) 785 echo ${UNAME_MACHINE}-pc-mingw32 786 exit ;; 787 i*:windows32*:*) | 761 exit ;; 762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 764 exit ;; 765 sparc*:BSD/OS:*:*) 766 echo sparc-unknown-bsdi${UNAME_RELEASE} 767 exit ;; 768 *:BSD/OS:*:*) --- 11 unchanged lines hidden (view full) --- 780 exit ;; 781 i*:CYGWIN*:*) 782 echo ${UNAME_MACHINE}-pc-cygwin 783 exit ;; 784 *:MINGW*:*) 785 echo ${UNAME_MACHINE}-pc-mingw32 786 exit ;; 787 i*:windows32*:*) |
788 # uname -m includes "-pc" on this system. 789 echo ${UNAME_MACHINE}-mingw32 | 788 # uname -m includes "-pc" on this system. 789 echo ${UNAME_MACHINE}-mingw32 |
790 exit ;; 791 i*:PW*:*) 792 echo ${UNAME_MACHINE}-pc-pw32 793 exit ;; 794 *:Interix*:[3456]*) | 790 exit ;; 791 i*:PW*:*) 792 echo ${UNAME_MACHINE}-pc-pw32 793 exit ;; 794 *:Interix*:[3456]*) |
795 case ${UNAME_MACHINE} in 796 x86) | 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 ;; | 797 echo i586-pc-interix${UNAME_RELEASE} 798 exit ;; 799 EM64T | authenticamd) 800 echo x86_64-unknown-interix${UNAME_RELEASE} 801 exit ;; |
802 IA64) 803 echo ia64-unknown-interix${UNAME_RELEASE} 804 exit ;; |
|
802 esac ;; 803 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 804 echo i${UNAME_MACHINE}-pc-mks 805 exit ;; 806 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 807 # How do we know it's Interix rather than the generic POSIX subsystem? 808 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 809 # UNAME_MACHINE based on the output of uname instead of i386? --- 18 unchanged lines hidden (view full) --- 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 ;; 832 i*86:Minix:*:*) 833 echo ${UNAME_MACHINE}-pc-minix 834 exit ;; 835 arm*:Linux:*:*) | 805 esac ;; 806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 807 echo i${UNAME_MACHINE}-pc-mks 808 exit ;; 809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 810 # How do we know it's Interix rather than the generic POSIX subsystem? 811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 812 # UNAME_MACHINE based on the output of uname instead of i386? --- 18 unchanged lines hidden (view full) --- 831 *:GNU/*:*:*) 832 # other systems with GNU libc and userland 833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 834 exit ;; 835 i*86:Minix:*:*) 836 echo ${UNAME_MACHINE}-pc-minix 837 exit ;; 838 arm*:Linux:*:*) |
836 echo ${UNAME_MACHINE}-unknown-linux-gnu | 839 eval $set_cc_for_build 840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null | grep -q __ARM_EABI__ 841 then 842 echo ${UNAME_MACHINE}-unknown-linux-gnu 843 else 844 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 845 fi |
837 exit ;; 838 avr32*:Linux:*:*) 839 echo ${UNAME_MACHINE}-unknown-linux-gnu 840 exit ;; 841 cris:Linux:*:*) 842 echo cris-axis-linux-gnu 843 exit ;; 844 crisv32:Linux:*:*) 845 echo crisv32-axis-linux-gnu 846 exit ;; 847 frv:Linux:*:*) | 846 exit ;; 847 avr32*:Linux:*:*) 848 echo ${UNAME_MACHINE}-unknown-linux-gnu 849 exit ;; 850 cris:Linux:*:*) 851 echo cris-axis-linux-gnu 852 exit ;; 853 crisv32:Linux:*:*) 854 echo crisv32-axis-linux-gnu 855 exit ;; 856 frv:Linux:*:*) |
848 echo frv-unknown-linux-gnu | 857 echo frv-unknown-linux-gnu |
849 exit ;; 850 ia64:Linux:*:*) 851 echo ${UNAME_MACHINE}-unknown-linux-gnu 852 exit ;; 853 m32r*:Linux:*:*) 854 echo ${UNAME_MACHINE}-unknown-linux-gnu 855 exit ;; 856 m68*:Linux:*:*) --- 11 unchanged lines hidden (view full) --- 868 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 869 CPU=mips 870 #else 871 CPU= 872 #endif 873 #endif 874EOF 875 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | 858 exit ;; 859 ia64:Linux:*:*) 860 echo ${UNAME_MACHINE}-unknown-linux-gnu 861 exit ;; 862 m32r*:Linux:*:*) 863 echo ${UNAME_MACHINE}-unknown-linux-gnu 864 exit ;; 865 m68*:Linux:*:*) --- 11 unchanged lines hidden (view full) --- 877 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 878 CPU=mips 879 #else 880 CPU= 881 #endif 882 #endif 883EOF 884 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
876 /^CPU/{ 877 s: ::g 878 p 879 }'`" | 885 /^CPU/{ 886 s: ::g 887 p 888 }'`" |
880 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 881 ;; 882 mips64:Linux:*:*) 883 eval $set_cc_for_build 884 sed 's/^ //' << EOF >$dummy.c 885 #undef CPU 886 #undef mips64 887 #undef mips64el 888 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 889 CPU=mips64el 890 #else 891 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 892 CPU=mips64 893 #else 894 CPU= 895 #endif 896 #endif 897EOF 898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | 889 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 890 ;; 891 mips64:Linux:*:*) 892 eval $set_cc_for_build 893 sed 's/^ //' << EOF >$dummy.c 894 #undef CPU 895 #undef mips64 896 #undef mips64el 897 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 898 CPU=mips64el 899 #else 900 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 901 CPU=mips64 902 #else 903 CPU= 904 #endif 905 #endif 906EOF 907 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
899 /^CPU/{ 900 s: ::g 901 p 902 }'`" | 908 /^CPU/{ 909 s: ::g 910 p 911 }'`" |
903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 904 ;; 905 or32:Linux:*:*) | 912 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 913 ;; 914 or32:Linux:*:*) |
906 echo or32-unknown-linux-gnu 907 exit ;; | 915 echo or32-unknown-linux-gnu 916 exit ;; |
908 ppc:Linux:*:*) 909 echo powerpc-unknown-linux-gnu 910 exit ;; 911 ppc64:Linux:*:*) 912 echo powerpc64-unknown-linux-gnu 913 exit ;; 914 alpha:Linux:*:*) 915 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 916 EV5) UNAME_MACHINE=alphaev5 ;; 917 EV56) UNAME_MACHINE=alphaev56 ;; 918 PCA56) UNAME_MACHINE=alphapca56 ;; 919 PCA57) UNAME_MACHINE=alphapca56 ;; 920 EV6) UNAME_MACHINE=alphaev6 ;; 921 EV67) UNAME_MACHINE=alphaev67 ;; 922 EV68*) UNAME_MACHINE=alphaev68 ;; | 917 ppc:Linux:*:*) 918 echo powerpc-unknown-linux-gnu 919 exit ;; 920 ppc64:Linux:*:*) 921 echo powerpc64-unknown-linux-gnu 922 exit ;; 923 alpha:Linux:*:*) 924 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 925 EV5) UNAME_MACHINE=alphaev5 ;; 926 EV56) UNAME_MACHINE=alphaev56 ;; 927 PCA56) UNAME_MACHINE=alphapca56 ;; 928 PCA57) UNAME_MACHINE=alphapca56 ;; 929 EV6) UNAME_MACHINE=alphaev6 ;; 930 EV67) UNAME_MACHINE=alphaev67 ;; 931 EV68*) UNAME_MACHINE=alphaev68 ;; |
923 esac | 932 esac |
924 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 925 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 926 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 927 exit ;; 928 parisc:Linux:*:* | hppa:Linux:*:*) 929 # Look for CPU level 930 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 931 PA7*) echo hppa1.1-unknown-linux-gnu ;; 932 PA8*) echo hppa2.0-unknown-linux-gnu ;; 933 *) echo hppa-unknown-linux-gnu ;; 934 esac 935 exit ;; 936 parisc64:Linux:*:* | hppa64:Linux:*:*) 937 echo hppa64-unknown-linux-gnu 938 exit ;; 939 s390:Linux:*:* | s390x:Linux:*:*) 940 echo ${UNAME_MACHINE}-ibm-linux 941 exit ;; 942 sh64*:Linux:*:*) | 933 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 934 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 935 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 936 exit ;; 937 parisc:Linux:*:* | hppa:Linux:*:*) 938 # Look for CPU level 939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 940 PA7*) echo hppa1.1-unknown-linux-gnu ;; 941 PA8*) echo hppa2.0-unknown-linux-gnu ;; 942 *) echo hppa-unknown-linux-gnu ;; 943 esac 944 exit ;; 945 parisc64:Linux:*:* | hppa64:Linux:*:*) 946 echo hppa64-unknown-linux-gnu 947 exit ;; 948 s390:Linux:*:* | s390x:Linux:*:*) 949 echo ${UNAME_MACHINE}-ibm-linux 950 exit ;; 951 sh64*:Linux:*:*) |
943 echo ${UNAME_MACHINE}-unknown-linux-gnu | 952 echo ${UNAME_MACHINE}-unknown-linux-gnu |
944 exit ;; 945 sh*:Linux:*:*) 946 echo ${UNAME_MACHINE}-unknown-linux-gnu 947 exit ;; 948 sparc:Linux:*:* | sparc64:Linux:*:*) 949 echo ${UNAME_MACHINE}-unknown-linux-gnu 950 exit ;; 951 vax:Linux:*:*) 952 echo ${UNAME_MACHINE}-dec-linux-gnu 953 exit ;; 954 x86_64:Linux:*:*) 955 echo x86_64-unknown-linux-gnu 956 exit ;; | 953 exit ;; 954 sh*:Linux:*:*) 955 echo ${UNAME_MACHINE}-unknown-linux-gnu 956 exit ;; 957 sparc:Linux:*:* | sparc64:Linux:*:*) 958 echo ${UNAME_MACHINE}-unknown-linux-gnu 959 exit ;; 960 vax:Linux:*:*) 961 echo ${UNAME_MACHINE}-dec-linux-gnu 962 exit ;; 963 x86_64:Linux:*:*) 964 echo x86_64-unknown-linux-gnu 965 exit ;; |
957 xtensa:Linux:*:*) 958 echo xtensa-unknown-linux-gnu | 966 xtensa*:Linux:*:*) 967 echo ${UNAME_MACHINE}-unknown-linux-gnu |
959 exit ;; 960 i*86:Linux:*:*) 961 # The BFD linker knows what the default object file format is, so 962 # first see if it will tell us. cd to the root directory to prevent 963 # problems with other programs or directories called `ld' in the path. 964 # Set LC_ALL=C to ensure ld outputs messages in English. 965 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 966 | sed -ne '/supported targets:/!d 967 s/[ ][ ]*/ /g 968 s/.*supported targets: *// 969 s/ .*// 970 p'` | 968 exit ;; 969 i*86:Linux:*:*) 970 # The BFD linker knows what the default object file format is, so 971 # first see if it will tell us. cd to the root directory to prevent 972 # problems with other programs or directories called `ld' in the path. 973 # Set LC_ALL=C to ensure ld outputs messages in English. 974 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 975 | sed -ne '/supported targets:/!d 976 s/[ ][ ]*/ /g 977 s/.*supported targets: *// 978 s/ .*// 979 p'` |
971 case "$ld_supported_targets" in | 980 case "$ld_supported_targets" in |
972 elf32-i386) 973 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 974 ;; 975 a.out-i386-linux) 976 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 977 exit ;; 978 coff-i386) 979 echo "${UNAME_MACHINE}-pc-linux-gnucoff" --- 25 unchanged lines hidden (view full) --- 1005 LIBC=gnuaout 1006 #endif 1007 #endif 1008 #ifdef __dietlibc__ 1009 LIBC=dietlibc 1010 #endif 1011EOF 1012 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | 981 elf32-i386) 982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 983 ;; 984 a.out-i386-linux) 985 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 986 exit ;; 987 coff-i386) 988 echo "${UNAME_MACHINE}-pc-linux-gnucoff" --- 25 unchanged lines hidden (view full) --- 1014 LIBC=gnuaout 1015 #endif 1016 #endif 1017 #ifdef __dietlibc__ 1018 LIBC=dietlibc 1019 #endif 1020EOF 1021 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
1013 /^LIBC/{ 1014 s: ::g 1015 p 1016 }'`" | 1022 /^LIBC/{ 1023 s: ::g 1024 p 1025 }'`" |
1017 test x"${LIBC}" != x && { 1018 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1019 exit 1020 } 1021 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1022 ;; 1023 i*86:DYNIX/ptx:4*:*) 1024 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1025 # earlier versions are messed up and put the nodename in both 1026 # sysname and nodename. 1027 echo i386-sequent-sysv4 1028 exit ;; 1029 i*86:UNIX_SV:4.2MP:2.*) | 1026 test x"${LIBC}" != x && { 1027 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1028 exit 1029 } 1030 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1031 ;; 1032 i*86:DYNIX/ptx:4*:*) 1033 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1034 # earlier versions are messed up and put the nodename in both 1035 # sysname and nodename. 1036 echo i386-sequent-sysv4 1037 exit ;; 1038 i*86:UNIX_SV:4.2MP:2.*) |
1030 # Unixware is an offshoot of SVR4, but it has its own version 1031 # number series starting with 2... 1032 # I am not positive that other SVR4 systems won't match this, | 1039 # Unixware is an offshoot of SVR4, but it has its own version 1040 # number series starting with 2... 1041 # I am not positive that other SVR4 systems won't match this, |
1033 # I just have to hope. -- rms. | 1042 # I just have to hope. -- rms. |
1034 # Use sysv4.2uw... so that sysv4* matches it. | 1043 # Use sysv4.2uw... so that sysv4* matches it. |
1035 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1036 exit ;; 1037 i*86:OS/2:*:*) 1038 # If we were able to find `uname', then EMX Unix compatibility 1039 # is probably installed. 1040 echo ${UNAME_MACHINE}-pc-os2-emx 1041 exit ;; 1042 i*86:XTS-300:*:STOP) --- 15 unchanged lines hidden (view full) --- 1058 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1059 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1060 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1061 else 1062 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1063 fi 1064 exit ;; 1065 i*86:*:5:[678]*) | 1044 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1045 exit ;; 1046 i*86:OS/2:*:*) 1047 # If we were able to find `uname', then EMX Unix compatibility 1048 # is probably installed. 1049 echo ${UNAME_MACHINE}-pc-os2-emx 1050 exit ;; 1051 i*86:XTS-300:*:STOP) --- 15 unchanged lines hidden (view full) --- 1067 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1068 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1069 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1070 else 1071 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1072 fi 1073 exit ;; 1074 i*86:*:5:[678]*) |
1066 # UnixWare 7.x, OpenUNIX and OpenServer 6. | 1075 # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1067 case `/bin/uname -X | grep "^Machine"` in 1068 *486*) UNAME_MACHINE=i486 ;; 1069 *Pentium) UNAME_MACHINE=i586 ;; 1070 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1071 esac 1072 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1073 exit ;; 1074 i*86:*:3.2:*) --- 11 unchanged lines hidden (view full) --- 1086 && UNAME_MACHINE=i686 1087 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1088 else 1089 echo ${UNAME_MACHINE}-pc-sysv32 1090 fi 1091 exit ;; 1092 pc:*:*:*) 1093 # Left here for compatibility: | 1076 case `/bin/uname -X | grep "^Machine"` in 1077 *486*) UNAME_MACHINE=i486 ;; 1078 *Pentium) UNAME_MACHINE=i586 ;; 1079 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1080 esac 1081 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1082 exit ;; 1083 i*86:*:3.2:*) --- 11 unchanged lines hidden (view full) --- 1095 && UNAME_MACHINE=i686 1096 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1097 else 1098 echo ${UNAME_MACHINE}-pc-sysv32 1099 fi 1100 exit ;; 1101 pc:*:*:*) 1102 # Left here for compatibility: |
1094 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1095 # the processor, so we play safe by assuming i386. | 1103 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1104 # the processor, so we play safe by assuming i386. |
1096 echo i386-pc-msdosdjgpp | 1105 echo i386-pc-msdosdjgpp |
1097 exit ;; | 1106 exit ;; |
1098 Intel:Mach:3*:*) 1099 echo i386-pc-mach3 1100 exit ;; 1101 paragon:*:*:*) 1102 echo i860-intel-osf1 1103 exit ;; 1104 i860:*:4.*:*) # i860-SVR4 1105 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then --- 18 unchanged lines hidden (view full) --- 1124 OS_REL='' 1125 test -r /etc/.relid \ 1126 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1127 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1128 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1129 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1130 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1131 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 1107 Intel:Mach:3*:*) 1108 echo i386-pc-mach3 1109 exit ;; 1110 paragon:*:*:*) 1111 echo i860-intel-osf1 1112 exit ;; 1113 i860:*:4.*:*) # i860-SVR4 1114 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then --- 18 unchanged lines hidden (view full) --- 1133 OS_REL='' 1134 test -r /etc/.relid \ 1135 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1136 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1137 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1138 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1139 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1140 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1133 && { echo i486-ncr-sysv4; exit; } ;; | 1141 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1142 && { echo i486-ncr-sysv4; exit; } ;; |
1134 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1135 echo m68k-unknown-lynxos${UNAME_RELEASE} 1136 exit ;; 1137 mc68030:UNIX_System_V:4.*:*) 1138 echo m68k-atari-sysv4 1139 exit ;; 1140 TSUNAMI:LynxOS:2.*:*) 1141 echo sparc-unknown-lynxos${UNAME_RELEASE} --- 17 unchanged lines hidden (view full) --- 1159 if uname -p 2>/dev/null >/dev/null ; then 1160 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1161 echo ${UNAME_MACHINE}-sni-sysv4 1162 else 1163 echo ns32k-sni-sysv 1164 fi 1165 exit ;; 1166 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1143 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1144 echo m68k-unknown-lynxos${UNAME_RELEASE} 1145 exit ;; 1146 mc68030:UNIX_System_V:4.*:*) 1147 echo m68k-atari-sysv4 1148 exit ;; 1149 TSUNAMI:LynxOS:2.*:*) 1150 echo sparc-unknown-lynxos${UNAME_RELEASE} --- 17 unchanged lines hidden (view full) --- 1168 if uname -p 2>/dev/null >/dev/null ; then 1169 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1170 echo ${UNAME_MACHINE}-sni-sysv4 1171 else 1172 echo ns32k-sni-sysv 1173 fi 1174 exit ;; 1175 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1167 # says <Richard.M.Bartel@ccMail.Census.GOV> 1168 echo i586-unisys-sysv4 1169 exit ;; | 1176 # says <Richard.M.Bartel@ccMail.Census.GOV> 1177 echo i586-unisys-sysv4 1178 exit ;; |
1170 *:UNIX_System_V:4*:FTX*) 1171 # From Gerald Hewes <hewes@openmarket.com>. 1172 # How about differentiating between stratus architectures? -djm 1173 echo hppa1.1-stratus-sysv4 1174 exit ;; 1175 *:*:*:FTX*) 1176 # From seanf@swdc.stratus.com. 1177 echo i860-stratus-sysv4 --- 13 unchanged lines hidden (view full) --- 1191 echo mips-sony-newsos6 1192 exit ;; 1193 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1194 if [ -d /usr/nec ]; then 1195 echo mips-nec-sysv${UNAME_RELEASE} 1196 else 1197 echo mips-unknown-sysv${UNAME_RELEASE} 1198 fi | 1179 *:UNIX_System_V:4*:FTX*) 1180 # From Gerald Hewes <hewes@openmarket.com>. 1181 # How about differentiating between stratus architectures? -djm 1182 echo hppa1.1-stratus-sysv4 1183 exit ;; 1184 *:*:*:FTX*) 1185 # From seanf@swdc.stratus.com. 1186 echo i860-stratus-sysv4 --- 13 unchanged lines hidden (view full) --- 1200 echo mips-sony-newsos6 1201 exit ;; 1202 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1203 if [ -d /usr/nec ]; then 1204 echo mips-nec-sysv${UNAME_RELEASE} 1205 else 1206 echo mips-unknown-sysv${UNAME_RELEASE} 1207 fi |
1199 exit ;; | 1208 exit ;; |
1200 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1201 echo powerpc-be-beos 1202 exit ;; 1203 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1204 echo powerpc-apple-beos 1205 exit ;; 1206 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1207 echo i586-pc-beos 1208 exit ;; | 1209 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1210 echo powerpc-be-beos 1211 exit ;; 1212 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1213 echo powerpc-apple-beos 1214 exit ;; 1215 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1216 echo i586-pc-beos 1217 exit ;; |
1218 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1219 echo i586-pc-haiku 1220 exit ;; |
|
1209 SX-4:SUPER-UX:*:*) 1210 echo sx4-nec-superux${UNAME_RELEASE} 1211 exit ;; 1212 SX-5:SUPER-UX:*:*) 1213 echo sx5-nec-superux${UNAME_RELEASE} 1214 exit ;; 1215 SX-6:SUPER-UX:*:*) 1216 echo sx6-nec-superux${UNAME_RELEASE} --- 18 unchanged lines hidden (view full) --- 1235 case $UNAME_PROCESSOR in 1236 unknown) UNAME_PROCESSOR=powerpc ;; 1237 esac 1238 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1239 exit ;; 1240 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1241 UNAME_PROCESSOR=`uname -p` 1242 if test "$UNAME_PROCESSOR" = "x86"; then | 1221 SX-4:SUPER-UX:*:*) 1222 echo sx4-nec-superux${UNAME_RELEASE} 1223 exit ;; 1224 SX-5:SUPER-UX:*:*) 1225 echo sx5-nec-superux${UNAME_RELEASE} 1226 exit ;; 1227 SX-6:SUPER-UX:*:*) 1228 echo sx6-nec-superux${UNAME_RELEASE} --- 18 unchanged lines hidden (view full) --- 1247 case $UNAME_PROCESSOR in 1248 unknown) UNAME_PROCESSOR=powerpc ;; 1249 esac 1250 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1251 exit ;; 1252 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1253 UNAME_PROCESSOR=`uname -p` 1254 if test "$UNAME_PROCESSOR" = "x86"; then |
1243 UNAME_PROCESSOR=i386 1244 UNAME_MACHINE=pc | 1255 UNAME_PROCESSOR=i386 1256 UNAME_MACHINE=pc |
1245 fi 1246 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1247 exit ;; 1248 *:QNX:*:4*) 1249 echo i386-pc-qnx 1250 exit ;; 1251 NSE-?:NONSTOP_KERNEL:*:*) 1252 echo nse-tandem-nsk${UNAME_RELEASE} --- 35 unchanged lines hidden (view full) --- 1288 exit ;; 1289 *:TOPS-20:*:*) 1290 echo pdp10-unknown-tops20 1291 exit ;; 1292 *:ITS:*:*) 1293 echo pdp10-unknown-its 1294 exit ;; 1295 SEI:*:*:SEIUX) | 1257 fi 1258 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1259 exit ;; 1260 *:QNX:*:4*) 1261 echo i386-pc-qnx 1262 exit ;; 1263 NSE-?:NONSTOP_KERNEL:*:*) 1264 echo nse-tandem-nsk${UNAME_RELEASE} --- 35 unchanged lines hidden (view full) --- 1300 exit ;; 1301 *:TOPS-20:*:*) 1302 echo pdp10-unknown-tops20 1303 exit ;; 1304 *:ITS:*:*) 1305 echo pdp10-unknown-its 1306 exit ;; 1307 SEI:*:*:SEIUX) |
1296 echo mips-sei-seiux${UNAME_RELEASE} | 1308 echo mips-sei-seiux${UNAME_RELEASE} |
1297 exit ;; 1298 *:DragonFly:*:*) 1299 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1300 exit ;; 1301 *:*VMS:*:*) | 1309 exit ;; 1310 *:DragonFly:*:*) 1311 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1312 exit ;; 1313 *:*VMS:*:*) |
1302 UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1314 UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1303 case "${UNAME_MACHINE}" in 1304 A*) echo alpha-dec-vms ; exit ;; 1305 I*) echo ia64-dec-vms ; exit ;; 1306 V*) echo vax-dec-vms ; exit ;; 1307 esac ;; 1308 *:XENIX:*:SysV) 1309 echo i386-pc-xenix 1310 exit ;; --- 158 unchanged lines hidden (view full) --- 1469 1470cat >&2 <<EOF 1471$0: unable to guess system type 1472 1473This script, last modified $timestamp, has failed to recognize 1474the operating system you are using. It is advised that you 1475download the most up to date version of the config scripts from 1476 | 1315 case "${UNAME_MACHINE}" in 1316 A*) echo alpha-dec-vms ; exit ;; 1317 I*) echo ia64-dec-vms ; exit ;; 1318 V*) echo vax-dec-vms ; exit ;; 1319 esac ;; 1320 *:XENIX:*:SysV) 1321 echo i386-pc-xenix 1322 exit ;; --- 158 unchanged lines hidden (view full) --- 1481 1482cat >&2 <<EOF 1483$0: unable to guess system type 1484 1485This script, last modified $timestamp, has failed to recognize 1486the operating system you are using. It is advised that you 1487download the most up to date version of the config scripts from 1488 |
1477 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess | 1489 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess |
1478and | 1490and |
1479 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub | 1491 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
1480 1481If the version you run ($0) is already up to date, please 1482send the following data and any information you think might be 1483pertinent to <config-patches@gnu.org> in order to provide the needed 1484information to handle your system. 1485 1486config.guess timestamp = $timestamp 1487 --- 29 unchanged lines hidden --- | 1492 1493If the version you run ($0) is already up to date, please 1494send the following data and any information you think might be 1495pertinent to <config-patches@gnu.org> in order to provide the needed 1496information to handle your system. 1497 1498config.guess timestamp = $timestamp 1499 --- 29 unchanged lines hidden --- |