Mercurial > hg > CbC > CbC_gcc
comparison config.guess @ 48:9907f3135723
update CbC on GCC from 4.4.2 to 4.4.3.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Feb 2010 17:48:31 +0900 |
parents | 3bfb6c00c1e0 |
children | 77e2b8dfacca |
comparison
equal
deleted
inserted
replaced
45:d645ac0f55d6 | 48:9907f3135723 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 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 |
5 # Free Software Foundation, Inc. | 5 # Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2008-12-18' | 7 timestamp='2009-11-19' |
8 | 8 |
9 # This file is free software; you can redistribute it and/or modify it | 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 | 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 | 11 # the Free Software Foundation; either version 2 of the License, or |
12 # (at your option) any later version. | 12 # (at your option) any later version. |
25 # distribute this file as part of a program that contains a | 25 # distribute this file as part of a program that contains a |
26 # configuration script generated by Autoconf, you may include it under | 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. | 27 # the same distribution terms that you use for the rest of that program. |
28 | 28 |
29 | 29 |
30 # Originally written by Per Bothner <per@bothner.com>. | 30 # Originally written by Per Bothner. Please send patches (context |
31 # Please send patches to <config-patches@gnu.org>. Submit a context | 31 # diff format) to <config-patches@gnu.org> and include a ChangeLog |
32 # diff and a properly formatted ChangeLog entry. | 32 # entry. |
33 # | 33 # |
34 # This script attempts to guess a canonical system name similar to | 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 | 35 # config.sub. If it succeeds, it prints the system name on stdout, and |
36 # exits with 0. Otherwise, it exits with 1. | 36 # exits with 0. Otherwise, it exits with 1. |
37 # | 37 # |
38 # The plan is that this can be called by configure scripts if you | 38 # You can get the latest version of this script from: |
39 # don't specify an explicit build system type. | 39 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
40 | 40 |
41 me=`echo "$0" | sed -e 's,.*/,,'` | 41 me=`echo "$0" | sed -e 's,.*/,,'` |
42 | 42 |
43 usage="\ | 43 usage="\ |
44 Usage: $0 [OPTION] | 44 Usage: $0 [OPTION] |
168 # to ELF recently, or will in the future. | 168 # to ELF recently, or will in the future. |
169 case "${UNAME_MACHINE_ARCH}" in | 169 case "${UNAME_MACHINE_ARCH}" in |
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax) | 170 arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 eval $set_cc_for_build | 171 eval $set_cc_for_build |
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | grep __ELF__ >/dev/null | 173 | grep -q __ELF__ |
174 then | 174 then |
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | 175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
176 # Return netbsd for either. FIX? | 176 # Return netbsd for either. FIX? |
177 os=netbsd | 177 os=netbsd |
178 else | 178 else |
322 exit ;; | 322 exit ;; |
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
324 case `/usr/bin/uname -p` in | 324 case `/usr/bin/uname -p` in |
325 sparc) echo sparc-icl-nx7; exit ;; | 325 sparc) echo sparc-icl-nx7; exit ;; |
326 esac ;; | 326 esac ;; |
327 s390x:SunOS:*:*) | |
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
329 exit ;; | |
327 sun4H:SunOS:5.*:*) | 330 sun4H:SunOS:5.*:*) |
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
329 exit ;; | 332 exit ;; |
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 333 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
651 # => hppa2.0w-hp-hpux11.23 | 654 # => hppa2.0w-hp-hpux11.23 |
652 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | 655 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
653 # => hppa64-hp-hpux11.23 | 656 # => hppa64-hp-hpux11.23 |
654 | 657 |
655 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | 658 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
656 grep __LP64__ >/dev/null | 659 grep -q __LP64__ |
657 then | 660 then |
658 HP_ARCH="hppa2.0w" | 661 HP_ARCH="hppa2.0w" |
659 else | 662 else |
660 HP_ARCH="hppa64" | 663 HP_ARCH="hppa64" |
661 fi | 664 fi |
802 echo ${UNAME_MACHINE}-mingw32 | 805 echo ${UNAME_MACHINE}-mingw32 |
803 exit ;; | 806 exit ;; |
804 i*:PW*:*) | 807 i*:PW*:*) |
805 echo ${UNAME_MACHINE}-pc-pw32 | 808 echo ${UNAME_MACHINE}-pc-pw32 |
806 exit ;; | 809 exit ;; |
807 *:Interix*:[3456]*) | 810 *:Interix*:*) |
808 case ${UNAME_MACHINE} in | 811 case ${UNAME_MACHINE} in |
809 x86) | 812 x86) |
810 echo i586-pc-interix${UNAME_RELEASE} | 813 echo i586-pc-interix${UNAME_RELEASE} |
811 exit ;; | 814 exit ;; |
812 EM64T | authenticamd | genuineintel) | 815 authenticamd | genuineintel | EM64T) |
813 echo x86_64-unknown-interix${UNAME_RELEASE} | 816 echo x86_64-unknown-interix${UNAME_RELEASE} |
814 exit ;; | 817 exit ;; |
815 IA64) | 818 IA64) |
816 echo ia64-unknown-interix${UNAME_RELEASE} | 819 echo ia64-unknown-interix${UNAME_RELEASE} |
817 exit ;; | 820 exit ;; |
818 esac ;; | 821 esac ;; |
819 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 822 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
820 echo i${UNAME_MACHINE}-pc-mks | 823 echo i${UNAME_MACHINE}-pc-mks |
821 exit ;; | 824 exit ;; |
825 8664:Windows_NT:*) | |
826 echo x86_64-pc-mks | |
827 exit ;; | |
822 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | 828 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
823 # How do we know it's Interix rather than the generic POSIX subsystem? | 829 # How do we know it's Interix rather than the generic POSIX subsystem? |
824 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | 830 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
825 # UNAME_MACHINE based on the output of uname instead of i386? | 831 # UNAME_MACHINE based on the output of uname instead of i386? |
826 echo i586-pc-interix | 832 echo i586-pc-interix |
845 # other systems with GNU libc and userland | 851 # other systems with GNU libc and userland |
846 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 852 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
847 exit ;; | 853 exit ;; |
848 i*86:Minix:*:*) | 854 i*86:Minix:*:*) |
849 echo ${UNAME_MACHINE}-pc-minix | 855 echo ${UNAME_MACHINE}-pc-minix |
850 exit ;; | |
851 arm*:Linux:*:*) | |
852 eval $set_cc_for_build | |
853 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
854 | grep -q __ARM_EABI__ | |
855 then | |
856 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
857 else | |
858 echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
859 fi | |
860 exit ;; | |
861 avr32*:Linux:*:*) | |
862 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
863 exit ;; | |
864 cris:Linux:*:*) | |
865 echo cris-axis-linux-gnu | |
866 exit ;; | |
867 crisv32:Linux:*:*) | |
868 echo crisv32-axis-linux-gnu | |
869 exit ;; | |
870 frv:Linux:*:*) | |
871 echo frv-unknown-linux-gnu | |
872 exit ;; | |
873 ia64:Linux:*:*) | |
874 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
875 exit ;; | |
876 m32r*:Linux:*:*) | |
877 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
878 exit ;; | |
879 m68*:Linux:*:*) | |
880 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
881 exit ;; | |
882 mips:Linux:*:*) | |
883 eval $set_cc_for_build | |
884 sed 's/^ //' << EOF >$dummy.c | |
885 #undef CPU | |
886 #undef mips | |
887 #undef mipsel | |
888 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
889 CPU=mipsel | |
890 #else | |
891 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
892 CPU=mips | |
893 #else | |
894 CPU= | |
895 #endif | |
896 #endif | |
897 EOF | |
898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
899 /^CPU/{ | |
900 s: ::g | |
901 p | |
902 }'`" | |
903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
904 ;; | |
905 mips64:Linux:*:*) | |
906 eval $set_cc_for_build | |
907 sed 's/^ //' << EOF >$dummy.c | |
908 #undef CPU | |
909 #undef mips64 | |
910 #undef mips64el | |
911 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
912 CPU=mips64el | |
913 #else | |
914 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
915 CPU=mips64 | |
916 #else | |
917 CPU= | |
918 #endif | |
919 #endif | |
920 EOF | |
921 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
922 /^CPU/{ | |
923 s: ::g | |
924 p | |
925 }'`" | |
926 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
927 ;; | |
928 or32:Linux:*:*) | |
929 echo or32-unknown-linux-gnu | |
930 exit ;; | |
931 ppc:Linux:*:*) | |
932 echo powerpc-unknown-linux-gnu | |
933 exit ;; | |
934 ppc64:Linux:*:*) | |
935 echo powerpc64-unknown-linux-gnu | |
936 exit ;; | 856 exit ;; |
937 alpha:Linux:*:*) | 857 alpha:Linux:*:*) |
938 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 858 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
939 EV5) UNAME_MACHINE=alphaev5 ;; | 859 EV5) UNAME_MACHINE=alphaev5 ;; |
940 EV56) UNAME_MACHINE=alphaev56 ;; | 860 EV56) UNAME_MACHINE=alphaev56 ;; |
942 PCA57) UNAME_MACHINE=alphapca56 ;; | 862 PCA57) UNAME_MACHINE=alphapca56 ;; |
943 EV6) UNAME_MACHINE=alphaev6 ;; | 863 EV6) UNAME_MACHINE=alphaev6 ;; |
944 EV67) UNAME_MACHINE=alphaev67 ;; | 864 EV67) UNAME_MACHINE=alphaev67 ;; |
945 EV68*) UNAME_MACHINE=alphaev68 ;; | 865 EV68*) UNAME_MACHINE=alphaev68 ;; |
946 esac | 866 esac |
947 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | 867 objdump --private-headers /bin/sh | grep -q ld.so.1 |
948 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 868 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
949 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 869 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
950 exit ;; | 870 exit ;; |
871 arm*:Linux:*:*) | |
872 eval $set_cc_for_build | |
873 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
874 | grep -q __ARM_EABI__ | |
875 then | |
876 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
877 else | |
878 echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
879 fi | |
880 exit ;; | |
881 avr32*:Linux:*:*) | |
882 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
883 exit ;; | |
884 cris:Linux:*:*) | |
885 echo cris-axis-linux-gnu | |
886 exit ;; | |
887 crisv32:Linux:*:*) | |
888 echo crisv32-axis-linux-gnu | |
889 exit ;; | |
890 frv:Linux:*:*) | |
891 echo frv-unknown-linux-gnu | |
892 exit ;; | |
893 i*86:Linux:*:*) | |
894 LIBC=gnu | |
895 eval $set_cc_for_build | |
896 sed 's/^ //' << EOF >$dummy.c | |
897 #ifdef __dietlibc__ | |
898 LIBC=dietlibc | |
899 #endif | |
900 EOF | |
901 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
902 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
903 exit ;; | |
904 ia64:Linux:*:*) | |
905 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
906 exit ;; | |
907 m32r*:Linux:*:*) | |
908 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
909 exit ;; | |
910 m68*:Linux:*:*) | |
911 echo ${UNAME_MACHINE}-unknown-linux-gnu | |
912 exit ;; | |
913 mips:Linux:*:* | mips64:Linux:*:*) | |
914 eval $set_cc_for_build | |
915 sed 's/^ //' << EOF >$dummy.c | |
916 #undef CPU | |
917 #undef ${UNAME_MACHINE} | |
918 #undef ${UNAME_MACHINE}el | |
919 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
920 CPU=${UNAME_MACHINE}el | |
921 #else | |
922 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
923 CPU=${UNAME_MACHINE} | |
924 #else | |
925 CPU= | |
926 #endif | |
927 #endif | |
928 EOF | |
929 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
930 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
931 ;; | |
932 or32:Linux:*:*) | |
933 echo or32-unknown-linux-gnu | |
934 exit ;; | |
951 padre:Linux:*:*) | 935 padre:Linux:*:*) |
952 echo sparc-unknown-linux-gnu | 936 echo sparc-unknown-linux-gnu |
937 exit ;; | |
938 parisc64:Linux:*:* | hppa64:Linux:*:*) | |
939 echo hppa64-unknown-linux-gnu | |
953 exit ;; | 940 exit ;; |
954 parisc:Linux:*:* | hppa:Linux:*:*) | 941 parisc:Linux:*:* | hppa:Linux:*:*) |
955 # Look for CPU level | 942 # Look for CPU level |
956 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 943 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
957 PA7*) echo hppa1.1-unknown-linux-gnu ;; | 944 PA7*) echo hppa1.1-unknown-linux-gnu ;; |
958 PA8*) echo hppa2.0-unknown-linux-gnu ;; | 945 PA8*) echo hppa2.0-unknown-linux-gnu ;; |
959 *) echo hppa-unknown-linux-gnu ;; | 946 *) echo hppa-unknown-linux-gnu ;; |
960 esac | 947 esac |
961 exit ;; | 948 exit ;; |
962 parisc64:Linux:*:* | hppa64:Linux:*:*) | 949 ppc64:Linux:*:*) |
963 echo hppa64-unknown-linux-gnu | 950 echo powerpc64-unknown-linux-gnu |
951 exit ;; | |
952 ppc:Linux:*:*) | |
953 echo powerpc-unknown-linux-gnu | |
964 exit ;; | 954 exit ;; |
965 s390:Linux:*:* | s390x:Linux:*:*) | 955 s390:Linux:*:* | s390x:Linux:*:*) |
966 echo ${UNAME_MACHINE}-ibm-linux | 956 echo ${UNAME_MACHINE}-ibm-linux |
967 exit ;; | 957 exit ;; |
968 sh64*:Linux:*:*) | 958 sh64*:Linux:*:*) |
981 echo x86_64-unknown-linux-gnu | 971 echo x86_64-unknown-linux-gnu |
982 exit ;; | 972 exit ;; |
983 xtensa*:Linux:*:*) | 973 xtensa*:Linux:*:*) |
984 echo ${UNAME_MACHINE}-unknown-linux-gnu | 974 echo ${UNAME_MACHINE}-unknown-linux-gnu |
985 exit ;; | 975 exit ;; |
986 i*86:Linux:*:*) | |
987 # The BFD linker knows what the default object file format is, so | |
988 # first see if it will tell us. cd to the root directory to prevent | |
989 # problems with other programs or directories called `ld' in the path. | |
990 # Set LC_ALL=C to ensure ld outputs messages in English. | |
991 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | |
992 | sed -ne '/supported targets:/!d | |
993 s/[ ][ ]*/ /g | |
994 s/.*supported targets: *// | |
995 s/ .*// | |
996 p'` | |
997 case "$ld_supported_targets" in | |
998 elf32-i386) | |
999 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
1000 ;; | |
1001 a.out-i386-linux) | |
1002 echo "${UNAME_MACHINE}-pc-linux-gnuaout" | |
1003 exit ;; | |
1004 "") | |
1005 # Either a pre-BFD a.out linker (linux-gnuoldld) or | |
1006 # one that does not give us useful --help. | |
1007 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | |
1008 exit ;; | |
1009 esac | |
1010 # Determine whether the default compiler is a.out or elf | |
1011 eval $set_cc_for_build | |
1012 sed 's/^ //' << EOF >$dummy.c | |
1013 #include <features.h> | |
1014 #ifdef __ELF__ | |
1015 # ifdef __GLIBC__ | |
1016 # if __GLIBC__ >= 2 | |
1017 LIBC=gnu | |
1018 # else | |
1019 LIBC=gnulibc1 | |
1020 # endif | |
1021 # else | |
1022 LIBC=gnulibc1 | |
1023 # endif | |
1024 #else | |
1025 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) | |
1026 LIBC=gnu | |
1027 #else | |
1028 LIBC=gnuaout | |
1029 #endif | |
1030 #endif | |
1031 #ifdef __dietlibc__ | |
1032 LIBC=dietlibc | |
1033 #endif | |
1034 EOF | |
1035 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' | |
1036 /^LIBC/{ | |
1037 s: ::g | |
1038 p | |
1039 }'`" | |
1040 test x"${LIBC}" != x && { | |
1041 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
1042 exit | |
1043 } | |
1044 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | |
1045 ;; | |
1046 i*86:DYNIX/ptx:4*:*) | 976 i*86:DYNIX/ptx:4*:*) |
1047 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 977 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1048 # earlier versions are messed up and put the nodename in both | 978 # earlier versions are messed up and put the nodename in both |
1049 # sysname and nodename. | 979 # sysname and nodename. |
1050 echo i386-sequent-sysv4 | 980 echo i386-sequent-sysv4 |
1069 echo ${UNAME_MACHINE}-unknown-atheos | 999 echo ${UNAME_MACHINE}-unknown-atheos |
1070 exit ;; | 1000 exit ;; |
1071 i*86:syllable:*:*) | 1001 i*86:syllable:*:*) |
1072 echo ${UNAME_MACHINE}-pc-syllable | 1002 echo ${UNAME_MACHINE}-pc-syllable |
1073 exit ;; | 1003 exit ;; |
1074 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | 1004 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1075 echo i386-unknown-lynxos${UNAME_RELEASE} | 1005 echo i386-unknown-lynxos${UNAME_RELEASE} |
1076 exit ;; | 1006 exit ;; |
1077 i*86:*DOS:*:*) | 1007 i*86:*DOS:*:*) |
1078 echo ${UNAME_MACHINE}-pc-msdosdjgpp | 1008 echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1079 exit ;; | 1009 exit ;; |
1113 fi | 1043 fi |
1114 exit ;; | 1044 exit ;; |
1115 pc:*:*:*) | 1045 pc:*:*:*) |
1116 # Left here for compatibility: | 1046 # Left here for compatibility: |
1117 # uname -m prints for DJGPP always 'pc', but it prints nothing about | 1047 # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1118 # the processor, so we play safe by assuming i386. | 1048 # the processor, so we play safe by assuming i586. |
1119 echo i386-pc-msdosdjgpp | 1049 # Note: whatever this is, it MUST be the same as what config.sub |
1050 # prints for the "djgpp" host, or else GDB configury will decide that | |
1051 # this is a cross-build. | |
1052 echo i586-pc-msdosdjgpp | |
1120 exit ;; | 1053 exit ;; |
1121 Intel:Mach:3*:*) | 1054 Intel:Mach:3*:*) |
1122 echo i386-pc-mach3 | 1055 echo i386-pc-mach3 |
1123 exit ;; | 1056 exit ;; |
1124 paragon:*:*:*) | 1057 paragon:*:*:*) |
1152 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | 1085 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1153 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | 1086 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1154 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 1087 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1088 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1156 && { echo i486-ncr-sysv4; exit; } ;; | 1089 && { echo i486-ncr-sysv4; exit; } ;; |
1090 NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
1091 OS_REL='.3' | |
1092 test -r /etc/.relid \ | |
1093 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1094 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1095 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1096 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1097 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1098 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
1099 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1157 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | 1100 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1158 echo m68k-unknown-lynxos${UNAME_RELEASE} | 1101 echo m68k-unknown-lynxos${UNAME_RELEASE} |
1159 exit ;; | 1102 exit ;; |
1160 mc68030:UNIX_System_V:4.*:*) | 1103 mc68030:UNIX_System_V:4.*:*) |
1161 echo m68k-atari-sysv4 | 1104 echo m68k-atari-sysv4 |
1164 echo sparc-unknown-lynxos${UNAME_RELEASE} | 1107 echo sparc-unknown-lynxos${UNAME_RELEASE} |
1165 exit ;; | 1108 exit ;; |
1166 rs6000:LynxOS:2.*:*) | 1109 rs6000:LynxOS:2.*:*) |
1167 echo rs6000-unknown-lynxos${UNAME_RELEASE} | 1110 echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1168 exit ;; | 1111 exit ;; |
1169 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) | 1112 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1170 echo powerpc-unknown-lynxos${UNAME_RELEASE} | 1113 echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1171 exit ;; | 1114 exit ;; |
1172 SM[BE]S:UNIX_SV:*:*) | 1115 SM[BE]S:UNIX_SV:*:*) |
1173 echo mips-dde-sysv${UNAME_RELEASE} | 1116 echo mips-dde-sysv${UNAME_RELEASE} |
1174 exit ;; | 1117 exit ;; |
1257 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1200 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1258 exit ;; | 1201 exit ;; |
1259 *:Darwin:*:*) | 1202 *:Darwin:*:*) |
1260 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1203 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1261 case $UNAME_PROCESSOR in | 1204 case $UNAME_PROCESSOR in |
1205 i386) | |
1206 eval $set_cc_for_build | |
1207 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1208 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1209 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1210 grep IS_64BIT_ARCH >/dev/null | |
1211 then | |
1212 UNAME_PROCESSOR="x86_64" | |
1213 fi | |
1214 fi ;; | |
1262 unknown) UNAME_PROCESSOR=powerpc ;; | 1215 unknown) UNAME_PROCESSOR=powerpc ;; |
1263 esac | 1216 esac |
1264 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1217 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1265 exit ;; | 1218 exit ;; |
1266 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1219 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1337 i*86:skyos:*:*) | 1290 i*86:skyos:*:*) |
1338 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | 1291 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1339 exit ;; | 1292 exit ;; |
1340 i*86:rdos:*:*) | 1293 i*86:rdos:*:*) |
1341 echo ${UNAME_MACHINE}-pc-rdos | 1294 echo ${UNAME_MACHINE}-pc-rdos |
1295 exit ;; | |
1296 i*86:AROS:*:*) | |
1297 echo ${UNAME_MACHINE}-pc-aros | |
1342 exit ;; | 1298 exit ;; |
1343 esac | 1299 esac |
1344 | 1300 |
1345 #echo '(No uname command or uname output not recognized.)' 1>&2 | 1301 #echo '(No uname command or uname output not recognized.)' 1>&2 |
1346 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 1302 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |