config.guess (192595) | config.guess (204917) |
---|---|
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, 2007, 2008 | 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
5# Free Software Foundation, Inc. 6 | 5# Free Software Foundation, Inc. 6 |
7timestamp='2008-04-14' | 7timestamp='2009-12-30' |
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 --- 6 unchanged lines hidden (view full) --- 22# 02110-1301, USA. 23# 24# As a special exception to the GNU General Public License, if you 25# distribute this file as part of a program that contains a 26# configuration script generated by Autoconf, you may include it under 27# the same distribution terms that you use for the rest of that program. 28 29 | 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 --- 6 unchanged lines hidden (view full) --- 22# 02110-1301, USA. 23# 24# As a special exception to the GNU General Public License, if you 25# distribute this file as part of a program that contains a 26# configuration script generated by Autoconf, you may include it under 27# the same distribution terms that you use for the rest of that program. 28 29 |
30# Originally written by Per Bothner <per@bothner.com>. 31# Please send patches to <config-patches@gnu.org>. Submit a context 32# diff and a properly formatted ChangeLog entry. | 30# Originally written by Per Bothner. Please send patches (context 31# diff format) to <config-patches@gnu.org> and include a ChangeLog 32# entry. |
33# 34# This script attempts to guess a canonical system name similar to 35# config.sub. If it succeeds, it prints the system name on stdout, and 36# exits with 0. Otherwise, it exits with 1. 37# | 33# 34# This script attempts to guess a canonical system name similar to 35# config.sub. If it succeeds, it prints the system name on stdout, and 36# exits with 0. Otherwise, it exits with 1. 37# |
38# The plan is that this can be called by configure scripts if you 39# 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 |
40 41me=`echo "$0" | sed -e 's,.*/,,'` 42 43usage="\ 44Usage: $0 [OPTION] 45 46Output the configuration name of the system \`$me' is run on. 47 48Operation modes: 49 -h, --help print this help, then exit 50 -t, --time-stamp print date of last modification, then exit 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. | 40 41me=`echo "$0" | sed -e 's,.*/,,'` 42 43usage="\ 44Usage: $0 [OPTION] 45 46Output the configuration name of the system \`$me' is run on. 47 48Operation modes: 49 -h, --help print this help, then exit 50 -t, --time-stamp print date of last modification, then exit 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, 602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free 61Software 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 --- 96 unchanged lines hidden (view full) --- 165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 166 esac 167 # The Operating System including object format, if it has switched 168 # to ELF recently, or will in the future. 169 case "${UNAME_MACHINE_ARCH}" in 170 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 171 eval $set_cc_for_build 172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 62 63This is free software; see the source for copying conditions. There is NO 64warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 65 66help=" 67Try \`$me --help' for more information." 68 69# Parse command line --- 96 unchanged lines hidden (view full) --- 166 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 167 esac 168 # The Operating System including object format, if it has switched 169 # to ELF recently, or will in the future. 170 case "${UNAME_MACHINE_ARCH}" in 171 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 172 eval $set_cc_for_build 173 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | grep __ELF__ >/dev/null | 174 | grep -q __ELF__ |
174 then 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 ;; --- 137 unchanged lines hidden (view full) --- 319 exit ;; 320 DRS?6000:unix:4.0:6*) 321 echo sparc-icl-nx6 322 exit ;; 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 324 case `/usr/bin/uname -p` in 325 sparc) echo sparc-icl-nx7; exit ;; 326 esac ;; | 175 then 176 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 177 # Return netbsd for either. FIX? 178 os=netbsd 179 else 180 os=netbsdelf 181 fi 182 ;; --- 137 unchanged lines hidden (view full) --- 320 exit ;; 321 DRS?6000:unix:4.0:6*) 322 echo sparc-icl-nx6 323 exit ;; 324 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 325 case `/usr/bin/uname -p` in 326 sparc) echo sparc-icl-nx7; exit ;; 327 esac ;; |
328 s390x:SunOS:*:*) 329 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 330 exit ;; |
|
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 ;; | 331 sun4H:SunOS:5.*:*) 332 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 333 exit ;; 334 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 335 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 336 exit ;; |
337 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 338 echo i386-pc-auroraux${UNAME_RELEASE} 339 exit ;; |
|
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 340 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 341 eval $set_cc_for_build 342 SUN_ARCH="i386" 343 # If there is a compiler, see if it is configured for 64-bit objects. 344 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 345 # This test works for both compilers. 346 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 347 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 348 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 349 grep IS_64BIT_ARCH >/dev/null 350 then 351 SUN_ARCH="x86_64" 352 fi 353 fi 354 echo ${SUN_ARCH}-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 ;; 342 sun4*:SunOS:*:*) --- 292 unchanged lines hidden (view full) --- 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) | | 355 exit ;; 356 sun4*:SunOS:6*:*) 357 # According to config.sub, this is the proper way to canonicalize 358 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 359 # it's likely to be more like Solaris than SunOS4. 360 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 361 exit ;; 362 sun4*:SunOS:*:*) --- 292 unchanged lines hidden (view full) --- 655 # generating 64-bit code. GNU and HP use different nomenclature: 656 # 657 # $ CC_FOR_BUILD=cc ./config.guess 658 # => hppa2.0w-hp-hpux11.23 659 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 660 # => hppa64-hp-hpux11.23 661 662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
643 grep __LP64__ >/dev/null | 663 grep -q __LP64__ |
644 then 645 HP_ARCH="hppa2.0w" 646 else 647 HP_ARCH="hppa64" 648 fi 649 fi 650 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 651 exit ;; --- 134 unchanged lines hidden (view full) --- 786 exit ;; 787 i*:windows32*:*) 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 ;; | 664 then 665 HP_ARCH="hppa2.0w" 666 else 667 HP_ARCH="hppa64" 668 fi 669 fi 670 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 671 exit ;; --- 134 unchanged lines hidden (view full) --- 806 exit ;; 807 i*:windows32*:*) 808 # uname -m includes "-pc" on this system. 809 echo ${UNAME_MACHINE}-mingw32 810 exit ;; 811 i*:PW*:*) 812 echo ${UNAME_MACHINE}-pc-pw32 813 exit ;; |
794 *:Interix*:[3456]*) | 814 *:Interix*:*) |
795 case ${UNAME_MACHINE} in 796 x86) 797 echo i586-pc-interix${UNAME_RELEASE} 798 exit ;; | 815 case ${UNAME_MACHINE} in 816 x86) 817 echo i586-pc-interix${UNAME_RELEASE} 818 exit ;; |
799 EM64T | authenticamd) | 819 authenticamd | genuineintel | EM64T) |
800 echo x86_64-unknown-interix${UNAME_RELEASE} 801 exit ;; 802 IA64) 803 echo ia64-unknown-interix${UNAME_RELEASE} 804 exit ;; 805 esac ;; 806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 807 echo i${UNAME_MACHINE}-pc-mks 808 exit ;; | 820 echo x86_64-unknown-interix${UNAME_RELEASE} 821 exit ;; 822 IA64) 823 echo ia64-unknown-interix${UNAME_RELEASE} 824 exit ;; 825 esac ;; 826 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 827 echo i${UNAME_MACHINE}-pc-mks 828 exit ;; |
829 8664:Windows_NT:*) 830 echo x86_64-pc-mks 831 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? 813 echo i586-pc-interix 814 exit ;; 815 i*:UWIN*:*) 816 echo ${UNAME_MACHINE}-pc-uwin --- 13 unchanged lines hidden (view full) --- 830 exit ;; 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 ;; | 832 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 833 # How do we know it's Interix rather than the generic POSIX subsystem? 834 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 835 # UNAME_MACHINE based on the output of uname instead of i386? 836 echo i586-pc-interix 837 exit ;; 838 i*:UWIN*:*) 839 echo ${UNAME_MACHINE}-pc-uwin --- 13 unchanged lines hidden (view full) --- 853 exit ;; 854 *:GNU/*:*:*) 855 # other systems with GNU libc and userland 856 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 857 exit ;; 858 i*86:Minix:*:*) 859 echo ${UNAME_MACHINE}-pc-minix 860 exit ;; |
861 alpha:Linux:*:*) 862 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 863 EV5) UNAME_MACHINE=alphaev5 ;; 864 EV56) UNAME_MACHINE=alphaev56 ;; 865 PCA56) UNAME_MACHINE=alphapca56 ;; 866 PCA57) UNAME_MACHINE=alphapca56 ;; 867 EV6) UNAME_MACHINE=alphaev6 ;; 868 EV67) UNAME_MACHINE=alphaev67 ;; 869 EV68*) UNAME_MACHINE=alphaev68 ;; 870 esac 871 objdump --private-headers /bin/sh | grep -q ld.so.1 872 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 874 exit ;; |
|
838 arm*:Linux:*:*) 839 eval $set_cc_for_build 840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 841 | grep -q __ARM_EABI__ 842 then 843 echo ${UNAME_MACHINE}-unknown-linux-gnu 844 else 845 echo ${UNAME_MACHINE}-unknown-linux-gnueabi --- 6 unchanged lines hidden (view full) --- 852 echo cris-axis-linux-gnu 853 exit ;; 854 crisv32:Linux:*:*) 855 echo crisv32-axis-linux-gnu 856 exit ;; 857 frv:Linux:*:*) 858 echo frv-unknown-linux-gnu 859 exit ;; | 875 arm*:Linux:*:*) 876 eval $set_cc_for_build 877 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 878 | grep -q __ARM_EABI__ 879 then 880 echo ${UNAME_MACHINE}-unknown-linux-gnu 881 else 882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi --- 6 unchanged lines hidden (view full) --- 889 echo cris-axis-linux-gnu 890 exit ;; 891 crisv32:Linux:*:*) 892 echo crisv32-axis-linux-gnu 893 exit ;; 894 frv:Linux:*:*) 895 echo frv-unknown-linux-gnu 896 exit ;; |
897 i*86:Linux:*:*) 898 LIBC=gnu 899 eval $set_cc_for_build 900 sed 's/^ //' << EOF >$dummy.c 901 #ifdef __dietlibc__ 902 LIBC=dietlibc 903 #endif 904EOF 905 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 906 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 907 exit ;; |
|
860 ia64:Linux:*:*) 861 echo ${UNAME_MACHINE}-unknown-linux-gnu 862 exit ;; 863 m32r*:Linux:*:*) 864 echo ${UNAME_MACHINE}-unknown-linux-gnu 865 exit ;; 866 m68*:Linux:*:*) 867 echo ${UNAME_MACHINE}-unknown-linux-gnu 868 exit ;; | 908 ia64:Linux:*:*) 909 echo ${UNAME_MACHINE}-unknown-linux-gnu 910 exit ;; 911 m32r*:Linux:*:*) 912 echo ${UNAME_MACHINE}-unknown-linux-gnu 913 exit ;; 914 m68*:Linux:*:*) 915 echo ${UNAME_MACHINE}-unknown-linux-gnu 916 exit ;; |
869 mips:Linux:*:*) | 917 mips:Linux:*:* | mips64:Linux:*:*) |
870 eval $set_cc_for_build 871 sed 's/^ //' << EOF >$dummy.c 872 #undef CPU | 918 eval $set_cc_for_build 919 sed 's/^ //' << EOF >$dummy.c 920 #undef CPU |
873 #undef mips 874 #undef mipsel | 921 #undef ${UNAME_MACHINE} 922 #undef ${UNAME_MACHINE}el |
875 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | 923 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
876 CPU=mipsel | 924 CPU=${UNAME_MACHINE}el |
877 #else 878 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | 925 #else 926 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
879 CPU=mips | 927 CPU=${UNAME_MACHINE} |
880 #else 881 CPU= 882 #endif 883 #endif 884EOF | 928 #else 929 CPU= 930 #endif 931 #endif 932EOF |
885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 886 /^CPU/{ 887 s: ::g 888 p 889 }'`" | 933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 891 ;; | 934 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 935 ;; |
892 mips64:Linux:*:*) 893 eval $set_cc_for_build 894 sed 's/^ //' << EOF >$dummy.c 895 #undef CPU 896 #undef mips64 897 #undef mips64el 898 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 899 CPU=mips64el 900 #else 901 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 902 CPU=mips64 903 #else 904 CPU= 905 #endif 906 #endif 907EOF 908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 909 /^CPU/{ 910 s: ::g 911 p 912 }'`" 913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 914 ;; | |
915 or32:Linux:*:*) 916 echo or32-unknown-linux-gnu 917 exit ;; | 936 or32:Linux:*:*) 937 echo or32-unknown-linux-gnu 938 exit ;; |
918 ppc:Linux:*:*) 919 echo powerpc-unknown-linux-gnu | 939 padre:Linux:*:*) 940 echo sparc-unknown-linux-gnu |
920 exit ;; | 941 exit ;; |
921 ppc64:Linux:*:*) 922 echo powerpc64-unknown-linux-gnu | 942 parisc64:Linux:*:* | hppa64:Linux:*:*) 943 echo hppa64-unknown-linux-gnu |
923 exit ;; | 944 exit ;; |
924 alpha:Linux:*:*) 925 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 926 EV5) UNAME_MACHINE=alphaev5 ;; 927 EV56) UNAME_MACHINE=alphaev56 ;; 928 PCA56) UNAME_MACHINE=alphapca56 ;; 929 PCA57) UNAME_MACHINE=alphapca56 ;; 930 EV6) UNAME_MACHINE=alphaev6 ;; 931 EV67) UNAME_MACHINE=alphaev67 ;; 932 EV68*) UNAME_MACHINE=alphaev68 ;; 933 esac 934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 935 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 936 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 937 exit ;; | |
938 parisc:Linux:*:* | hppa:Linux:*:*) 939 # Look for CPU level 940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 941 PA7*) echo hppa1.1-unknown-linux-gnu ;; 942 PA8*) echo hppa2.0-unknown-linux-gnu ;; 943 *) echo hppa-unknown-linux-gnu ;; 944 esac 945 exit ;; | 945 parisc:Linux:*:* | hppa:Linux:*:*) 946 # Look for CPU level 947 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 948 PA7*) echo hppa1.1-unknown-linux-gnu ;; 949 PA8*) echo hppa2.0-unknown-linux-gnu ;; 950 *) echo hppa-unknown-linux-gnu ;; 951 esac 952 exit ;; |
946 parisc64:Linux:*:* | hppa64:Linux:*:*) 947 echo hppa64-unknown-linux-gnu | 953 ppc64:Linux:*:*) 954 echo powerpc64-unknown-linux-gnu |
948 exit ;; | 955 exit ;; |
956 ppc:Linux:*:*) 957 echo powerpc-unknown-linux-gnu 958 exit ;; |
|
949 s390:Linux:*:* | s390x:Linux:*:*) 950 echo ${UNAME_MACHINE}-ibm-linux 951 exit ;; 952 sh64*:Linux:*:*) 953 echo ${UNAME_MACHINE}-unknown-linux-gnu 954 exit ;; 955 sh*:Linux:*:*) 956 echo ${UNAME_MACHINE}-unknown-linux-gnu --- 5 unchanged lines hidden (view full) --- 962 echo ${UNAME_MACHINE}-dec-linux-gnu 963 exit ;; 964 x86_64:Linux:*:*) 965 echo x86_64-unknown-linux-gnu 966 exit ;; 967 xtensa*:Linux:*:*) 968 echo ${UNAME_MACHINE}-unknown-linux-gnu 969 exit ;; | 959 s390:Linux:*:* | s390x:Linux:*:*) 960 echo ${UNAME_MACHINE}-ibm-linux 961 exit ;; 962 sh64*:Linux:*:*) 963 echo ${UNAME_MACHINE}-unknown-linux-gnu 964 exit ;; 965 sh*:Linux:*:*) 966 echo ${UNAME_MACHINE}-unknown-linux-gnu --- 5 unchanged lines hidden (view full) --- 972 echo ${UNAME_MACHINE}-dec-linux-gnu 973 exit ;; 974 x86_64:Linux:*:*) 975 echo x86_64-unknown-linux-gnu 976 exit ;; 977 xtensa*:Linux:*:*) 978 echo ${UNAME_MACHINE}-unknown-linux-gnu 979 exit ;; |
970 i*86:Linux:*:*) 971 # The BFD linker knows what the default object file format is, so 972 # first see if it will tell us. cd to the root directory to prevent 973 # problems with other programs or directories called `ld' in the path. 974 # Set LC_ALL=C to ensure ld outputs messages in English. 975 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 976 | sed -ne '/supported targets:/!d 977 s/[ ][ ]*/ /g 978 s/.*supported targets: *// 979 s/ .*// 980 p'` 981 case "$ld_supported_targets" in 982 elf32-i386) 983 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 984 ;; 985 a.out-i386-linux) 986 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 987 exit ;; 988 "") 989 # Either a pre-BFD a.out linker (linux-gnuoldld) or 990 # one that does not give us useful --help. 991 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 992 exit ;; 993 esac 994 # Determine whether the default compiler is a.out or elf 995 eval $set_cc_for_build 996 sed 's/^ //' << EOF >$dummy.c 997 #include <features.h> 998 #ifdef __ELF__ 999 # ifdef __GLIBC__ 1000 # if __GLIBC__ >= 2 1001 LIBC=gnu 1002 # else 1003 LIBC=gnulibc1 1004 # endif 1005 # else 1006 LIBC=gnulibc1 1007 # endif 1008 #else 1009 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 1010 LIBC=gnu 1011 #else 1012 LIBC=gnuaout 1013 #endif 1014 #endif 1015 #ifdef __dietlibc__ 1016 LIBC=dietlibc 1017 #endif 1018EOF 1019 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1020 /^LIBC/{ 1021 s: ::g 1022 p 1023 }'`" 1024 test x"${LIBC}" != x && { 1025 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1026 exit 1027 } 1028 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1029 ;; | |
1030 i*86:DYNIX/ptx:4*:*) 1031 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1032 # earlier versions are messed up and put the nodename in both 1033 # sysname and nodename. 1034 echo i386-sequent-sysv4 1035 exit ;; 1036 i*86:UNIX_SV:4.2MP:2.*) 1037 # Unixware is an offshoot of SVR4, but it has its own version --- 12 unchanged lines hidden (view full) --- 1050 echo ${UNAME_MACHINE}-unknown-stop 1051 exit ;; 1052 i*86:atheos:*:*) 1053 echo ${UNAME_MACHINE}-unknown-atheos 1054 exit ;; 1055 i*86:syllable:*:*) 1056 echo ${UNAME_MACHINE}-pc-syllable 1057 exit ;; | 980 i*86:DYNIX/ptx:4*:*) 981 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 982 # earlier versions are messed up and put the nodename in both 983 # sysname and nodename. 984 echo i386-sequent-sysv4 985 exit ;; 986 i*86:UNIX_SV:4.2MP:2.*) 987 # Unixware is an offshoot of SVR4, but it has its own version --- 12 unchanged lines hidden (view full) --- 1000 echo ${UNAME_MACHINE}-unknown-stop 1001 exit ;; 1002 i*86:atheos:*:*) 1003 echo ${UNAME_MACHINE}-unknown-atheos 1004 exit ;; 1005 i*86:syllable:*:*) 1006 echo ${UNAME_MACHINE}-pc-syllable 1007 exit ;; |
1058 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | 1008 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1059 echo i386-unknown-lynxos${UNAME_RELEASE} 1060 exit ;; 1061 i*86:*DOS:*:*) 1062 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1063 exit ;; 1064 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1065 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1066 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then --- 27 unchanged lines hidden (view full) --- 1094 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1095 else 1096 echo ${UNAME_MACHINE}-pc-sysv32 1097 fi 1098 exit ;; 1099 pc:*:*:*) 1100 # Left here for compatibility: 1101 # uname -m prints for DJGPP always 'pc', but it prints nothing about | 1009 echo i386-unknown-lynxos${UNAME_RELEASE} 1010 exit ;; 1011 i*86:*DOS:*:*) 1012 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1013 exit ;; 1014 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1015 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1016 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then --- 27 unchanged lines hidden (view full) --- 1044 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1045 else 1046 echo ${UNAME_MACHINE}-pc-sysv32 1047 fi 1048 exit ;; 1049 pc:*:*:*) 1050 # Left here for compatibility: 1051 # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1102 # the processor, so we play safe by assuming i386. 1103 echo i386-pc-msdosdjgpp | 1052 # the processor, so we play safe by assuming i586. 1053 # Note: whatever this is, it MUST be the same as what config.sub 1054 # prints for the "djgpp" host, or else GDB configury will decide that 1055 # this is a cross-build. 1056 echo i586-pc-msdosdjgpp |
1104 exit ;; 1105 Intel:Mach:3*:*) 1106 echo i386-pc-mach3 1107 exit ;; 1108 paragon:*:*:*) 1109 echo i860-intel-osf1 1110 exit ;; 1111 i860:*:4.*:*) # i860-SVR4 --- 21 unchanged lines hidden (view full) --- 1133 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1134 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1135 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1136 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1138 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1140 && { echo i486-ncr-sysv4; exit; } ;; | 1057 exit ;; 1058 Intel:Mach:3*:*) 1059 echo i386-pc-mach3 1060 exit ;; 1061 paragon:*:*:*) 1062 echo i860-intel-osf1 1063 exit ;; 1064 i860:*:4.*:*) # i860-SVR4 --- 21 unchanged lines hidden (view full) --- 1086 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1087 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1088 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1089 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1090 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1091 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1092 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1093 && { echo i486-ncr-sysv4; exit; } ;; |
1094 NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1095 OS_REL='.3' 1096 test -r /etc/.relid \ 1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1099 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1100 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1102 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1103 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
|
1141 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1142 echo m68k-unknown-lynxos${UNAME_RELEASE} 1143 exit ;; 1144 mc68030:UNIX_System_V:4.*:*) 1145 echo m68k-atari-sysv4 1146 exit ;; 1147 TSUNAMI:LynxOS:2.*:*) 1148 echo sparc-unknown-lynxos${UNAME_RELEASE} 1149 exit ;; 1150 rs6000:LynxOS:2.*:*) 1151 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1152 exit ;; | 1104 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1105 echo m68k-unknown-lynxos${UNAME_RELEASE} 1106 exit ;; 1107 mc68030:UNIX_System_V:4.*:*) 1108 echo m68k-atari-sysv4 1109 exit ;; 1110 TSUNAMI:LynxOS:2.*:*) 1111 echo sparc-unknown-lynxos${UNAME_RELEASE} 1112 exit ;; 1113 rs6000:LynxOS:2.*:*) 1114 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1115 exit ;; |
1153 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | 1116 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1154 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1155 exit ;; 1156 SM[BE]S:UNIX_SV:*:*) 1157 echo mips-dde-sysv${UNAME_RELEASE} 1158 exit ;; 1159 RM*:ReliantUNIX-*:*:*) 1160 echo mips-sni-sysv4 1161 exit ;; --- 76 unchanged lines hidden (view full) --- 1238 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1239 exit ;; 1240 *:Rhapsody:*:*) 1241 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1242 exit ;; 1243 *:Darwin:*:*) 1244 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1245 case $UNAME_PROCESSOR in | 1117 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1118 exit ;; 1119 SM[BE]S:UNIX_SV:*:*) 1120 echo mips-dde-sysv${UNAME_RELEASE} 1121 exit ;; 1122 RM*:ReliantUNIX-*:*:*) 1123 echo mips-sni-sysv4 1124 exit ;; --- 76 unchanged lines hidden (view full) --- 1201 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1202 exit ;; 1203 *:Rhapsody:*:*) 1204 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1205 exit ;; 1206 *:Darwin:*:*) 1207 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1208 case $UNAME_PROCESSOR in |
1209 i386) 1210 eval $set_cc_for_build 1211 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1212 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1213 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1214 grep IS_64BIT_ARCH >/dev/null 1215 then 1216 UNAME_PROCESSOR="x86_64" 1217 fi 1218 fi ;; |
|
1246 unknown) UNAME_PROCESSOR=powerpc ;; 1247 esac 1248 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1249 exit ;; 1250 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1251 UNAME_PROCESSOR=`uname -p` 1252 if test "$UNAME_PROCESSOR" = "x86"; then 1253 UNAME_PROCESSOR=i386 --- 65 unchanged lines hidden (view full) --- 1319 echo i386-pc-xenix 1320 exit ;; 1321 i*86:skyos:*:*) 1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1323 exit ;; 1324 i*86:rdos:*:*) 1325 echo ${UNAME_MACHINE}-pc-rdos 1326 exit ;; | 1219 unknown) UNAME_PROCESSOR=powerpc ;; 1220 esac 1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1222 exit ;; 1223 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1224 UNAME_PROCESSOR=`uname -p` 1225 if test "$UNAME_PROCESSOR" = "x86"; then 1226 UNAME_PROCESSOR=i386 --- 65 unchanged lines hidden (view full) --- 1292 echo i386-pc-xenix 1293 exit ;; 1294 i*86:skyos:*:*) 1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1296 exit ;; 1297 i*86:rdos:*:*) 1298 echo ${UNAME_MACHINE}-pc-rdos 1299 exit ;; |
1300 i*86:AROS:*:*) 1301 echo ${UNAME_MACHINE}-pc-aros 1302 exit ;; |
|
1327esac 1328 1329#echo '(No uname command or uname output not recognized.)' 1>&2 1330#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1331 1332eval $set_cc_for_build 1333cat >$dummy.c <<EOF 1334#ifdef _SEQUENT_ --- 192 unchanged lines hidden --- | 1303esac 1304 1305#echo '(No uname command or uname output not recognized.)' 1>&2 1306#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1307 1308eval $set_cc_for_build 1309cat >$dummy.c <<EOF 1310#ifdef _SEQUENT_ --- 192 unchanged lines hidden --- |