comparison build-scripts/config.guess @ 4282:4909c960832e SDL-1.2

Update config.guess and config.sub
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Oct 2009 07:09:04 +0000
parents 2130d625816f
children
comparison
equal deleted inserted replaced
4281:6e3c19f8ab96 4282:4909c960832e
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 Free Software Foundation, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5 # Inc. 5 # Free Software Foundation, Inc.
6 6
7 timestamp='2007-12-12' 7 timestamp='2009-09-18'
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]
54 54
55 version="\ 55 version="\
56 GNU config.guess ($timestamp) 56 GNU config.guess ($timestamp)
57 57
58 Originally written by Per Bothner. 58 Originally written by Per Bothner.
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60 Free Software Foundation, Inc. 60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61 61
62 This is free software; see the source for copying conditions. There is NO 62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 64
65 help=" 65 help="
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/[^.]*//'`
332 exit ;; 335 exit ;;
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 336 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 337 eval $set_cc_for_build
338 SUN_ARCH="i386"
339 # If there is a compiler, see if it is configured for 64-bit objects.
340 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
341 # This test works for both compilers.
342 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
343 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
344 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
345 grep IS_64BIT_ARCH >/dev/null
346 then
347 SUN_ARCH="x86_64"
348 fi
349 fi
350 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;; 351 exit ;;
336 sun4*:SunOS:6*:*) 352 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize 353 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 354 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
339 # it's likely to be more like Solaris than SunOS4. 355 # it's likely to be more like Solaris than SunOS4.
530 echo rs6000-ibm-aix3.2.4 546 echo rs6000-ibm-aix3.2.4
531 else 547 else
532 echo rs6000-ibm-aix3.2 548 echo rs6000-ibm-aix3.2
533 fi 549 fi
534 exit ;; 550 exit ;;
535 *:AIX:*:[45]) 551 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 552 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 553 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000 554 IBM_ARCH=rs6000
539 else 555 else
540 IBM_ARCH=powerpc 556 IBM_ARCH=powerpc
638 # => hppa2.0w-hp-hpux11.23 654 # => hppa2.0w-hp-hpux11.23
639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 655 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
640 # => hppa64-hp-hpux11.23 656 # => hppa64-hp-hpux11.23
641 657
642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 658 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643 grep __LP64__ >/dev/null 659 grep -q __LP64__
644 then 660 then
645 HP_ARCH="hppa2.0w" 661 HP_ARCH="hppa2.0w"
646 else 662 else
647 HP_ARCH="hppa64" 663 HP_ARCH="hppa64"
648 fi 664 fi
794 *:Interix*:[3456]*) 810 *:Interix*:[3456]*)
795 case ${UNAME_MACHINE} in 811 case ${UNAME_MACHINE} in
796 x86) 812 x86)
797 echo i586-pc-interix${UNAME_RELEASE} 813 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;; 814 exit ;;
799 EM64T | authenticamd) 815 EM64T | authenticamd | genuineintel)
800 echo x86_64-unknown-interix${UNAME_RELEASE} 816 echo x86_64-unknown-interix${UNAME_RELEASE}
801 exit ;; 817 exit ;;
802 IA64) 818 IA64)
803 echo ia64-unknown-interix${UNAME_RELEASE} 819 echo ia64-unknown-interix${UNAME_RELEASE}
804 exit ;; 820 exit ;;
805 esac ;; 821 esac ;;
806 [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:*)
807 echo i${UNAME_MACHINE}-pc-mks 823 echo i${UNAME_MACHINE}-pc-mks
808 exit ;; 824 exit ;;
825 8664:Windows_NT:*)
826 echo x86_64-pc-mks
827 exit ;;
809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 828 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
810 # 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?
811 # 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
812 # UNAME_MACHINE based on the output of uname instead of i386? 831 # UNAME_MACHINE based on the output of uname instead of i386?
813 echo i586-pc-interix 832 echo i586-pc-interix
832 # other systems with GNU libc and userland 851 # 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 852 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
834 exit ;; 853 exit ;;
835 i*86:Minix:*:*) 854 i*86:Minix:*:*)
836 echo ${UNAME_MACHINE}-pc-minix 855 echo ${UNAME_MACHINE}-pc-minix
856 exit ;;
857 alpha:Linux:*:*)
858 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
859 EV5) UNAME_MACHINE=alphaev5 ;;
860 EV56) UNAME_MACHINE=alphaev56 ;;
861 PCA56) UNAME_MACHINE=alphapca56 ;;
862 PCA57) UNAME_MACHINE=alphapca56 ;;
863 EV6) UNAME_MACHINE=alphaev6 ;;
864 EV67) UNAME_MACHINE=alphaev67 ;;
865 EV68*) UNAME_MACHINE=alphaev68 ;;
866 esac
867 objdump --private-headers /bin/sh | grep -q ld.so.1
868 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
869 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
837 exit ;; 870 exit ;;
838 arm*:Linux:*:*) 871 arm*:Linux:*:*)
839 eval $set_cc_for_build 872 eval $set_cc_for_build
840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 873 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
841 | grep -q __ARM_EABI__ 874 | grep -q __ARM_EABI__
855 echo crisv32-axis-linux-gnu 888 echo crisv32-axis-linux-gnu
856 exit ;; 889 exit ;;
857 frv:Linux:*:*) 890 frv:Linux:*:*)
858 echo frv-unknown-linux-gnu 891 echo frv-unknown-linux-gnu
859 exit ;; 892 exit ;;
893 i*86:Linux:*:*)
894 echo ${UNAME_MACHINE}-pc-linux-gnu
895 exit ;;
860 ia64:Linux:*:*) 896 ia64:Linux:*:*)
861 echo ${UNAME_MACHINE}-unknown-linux-gnu 897 echo ${UNAME_MACHINE}-unknown-linux-gnu
862 exit ;; 898 exit ;;
863 m32r*:Linux:*:*) 899 m32r*:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu 900 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;; 901 exit ;;
866 m68*:Linux:*:*) 902 m68*:Linux:*:*)
867 echo ${UNAME_MACHINE}-unknown-linux-gnu 903 echo ${UNAME_MACHINE}-unknown-linux-gnu
868 exit ;; 904 exit ;;
869 mips:Linux:*:*) 905 mips:Linux:*:* | mips64:Linux:*:*)
870 eval $set_cc_for_build 906 eval $set_cc_for_build
871 sed 's/^ //' << EOF >$dummy.c 907 sed 's/^ //' << EOF >$dummy.c
872 #undef CPU 908 #undef CPU
873 #undef mips 909 #undef ${UNAME_MACHINE}
874 #undef mipsel 910 #undef ${UNAME_MACHINE}el
875 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 911 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
876 CPU=mipsel 912 CPU=${UNAME_MACHINE}el
877 #else 913 #else
878 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 914 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
879 CPU=mips 915 CPU=${UNAME_MACHINE}
880 #else
881 CPU=
882 #endif
883 #endif
884 EOF
885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
886 /^CPU/{
887 s: ::g
888 p
889 }'`"
890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
891 ;;
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 916 #else
904 CPU= 917 CPU=
905 #endif 918 #endif
906 #endif 919 #endif
907 EOF 920 EOF
913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 926 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
914 ;; 927 ;;
915 or32:Linux:*:*) 928 or32:Linux:*:*)
916 echo or32-unknown-linux-gnu 929 echo or32-unknown-linux-gnu
917 exit ;; 930 exit ;;
918 ppc:Linux:*:*) 931 padre:Linux:*:*)
919 echo powerpc-unknown-linux-gnu 932 echo sparc-unknown-linux-gnu
920 exit ;; 933 exit ;;
921 ppc64:Linux:*:*) 934 parisc64:Linux:*:* | hppa64:Linux:*:*)
922 echo powerpc64-unknown-linux-gnu 935 echo hppa64-unknown-linux-gnu
923 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 ;; 936 exit ;;
938 parisc:Linux:*:* | hppa:Linux:*:*) 937 parisc:Linux:*:* | hppa:Linux:*:*)
939 # Look for CPU level 938 # Look for CPU level
940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
941 PA7*) echo hppa1.1-unknown-linux-gnu ;; 940 PA7*) echo hppa1.1-unknown-linux-gnu ;;
942 PA8*) echo hppa2.0-unknown-linux-gnu ;; 941 PA8*) echo hppa2.0-unknown-linux-gnu ;;
943 *) echo hppa-unknown-linux-gnu ;; 942 *) echo hppa-unknown-linux-gnu ;;
944 esac 943 esac
945 exit ;; 944 exit ;;
946 parisc64:Linux:*:* | hppa64:Linux:*:*) 945 ppc64:Linux:*:*)
947 echo hppa64-unknown-linux-gnu 946 echo powerpc64-unknown-linux-gnu
947 exit ;;
948 ppc:Linux:*:*)
949 echo powerpc-unknown-linux-gnu
948 exit ;; 950 exit ;;
949 s390:Linux:*:* | s390x:Linux:*:*) 951 s390:Linux:*:* | s390x:Linux:*:*)
950 echo ${UNAME_MACHINE}-ibm-linux 952 echo ${UNAME_MACHINE}-ibm-linux
951 exit ;; 953 exit ;;
952 sh64*:Linux:*:*) 954 sh64*:Linux:*:*)
965 echo x86_64-unknown-linux-gnu 967 echo x86_64-unknown-linux-gnu
966 exit ;; 968 exit ;;
967 xtensa*:Linux:*:*) 969 xtensa*:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-gnu 970 echo ${UNAME_MACHINE}-unknown-linux-gnu
969 exit ;; 971 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 coff-i386)
989 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
990 exit ;;
991 "")
992 # Either a pre-BFD a.out linker (linux-gnuoldld) or
993 # one that does not give us useful --help.
994 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
995 exit ;;
996 esac
997 # Determine whether the default compiler is a.out or elf
998 eval $set_cc_for_build
999 sed 's/^ //' << EOF >$dummy.c
1000 #include <features.h>
1001 #ifdef __ELF__
1002 # ifdef __GLIBC__
1003 # if __GLIBC__ >= 2
1004 LIBC=gnu
1005 # else
1006 LIBC=gnulibc1
1007 # endif
1008 # else
1009 LIBC=gnulibc1
1010 # endif
1011 #else
1012 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1013 LIBC=gnu
1014 #else
1015 LIBC=gnuaout
1016 #endif
1017 #endif
1018 #ifdef __dietlibc__
1019 LIBC=dietlibc
1020 #endif
1021 EOF
1022 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1023 /^LIBC/{
1024 s: ::g
1025 p
1026 }'`"
1027 test x"${LIBC}" != x && {
1028 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1029 exit
1030 }
1031 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1032 ;;
1033 i*86:DYNIX/ptx:4*:*) 972 i*86:DYNIX/ptx:4*:*)
1034 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 973 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1035 # earlier versions are messed up and put the nodename in both 974 # earlier versions are messed up and put the nodename in both
1036 # sysname and nodename. 975 # sysname and nodename.
1037 echo i386-sequent-sysv4 976 echo i386-sequent-sysv4
1056 echo ${UNAME_MACHINE}-unknown-atheos 995 echo ${UNAME_MACHINE}-unknown-atheos
1057 exit ;; 996 exit ;;
1058 i*86:syllable:*:*) 997 i*86:syllable:*:*)
1059 echo ${UNAME_MACHINE}-pc-syllable 998 echo ${UNAME_MACHINE}-pc-syllable
1060 exit ;; 999 exit ;;
1061 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1000 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1062 echo i386-unknown-lynxos${UNAME_RELEASE} 1001 echo i386-unknown-lynxos${UNAME_RELEASE}
1063 exit ;; 1002 exit ;;
1064 i*86:*DOS:*:*) 1003 i*86:*DOS:*:*)
1065 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1004 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1066 exit ;; 1005 exit ;;
1100 fi 1039 fi
1101 exit ;; 1040 exit ;;
1102 pc:*:*:*) 1041 pc:*:*:*)
1103 # Left here for compatibility: 1042 # Left here for compatibility:
1104 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1043 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1105 # the processor, so we play safe by assuming i386. 1044 # the processor, so we play safe by assuming i586.
1106 echo i386-pc-msdosdjgpp 1045 # Note: whatever this is, it MUST be the same as what config.sub
1046 # prints for the "djgpp" host, or else GDB configury will decide that
1047 # this is a cross-build.
1048 echo i586-pc-msdosdjgpp
1107 exit ;; 1049 exit ;;
1108 Intel:Mach:3*:*) 1050 Intel:Mach:3*:*)
1109 echo i386-pc-mach3 1051 echo i386-pc-mach3
1110 exit ;; 1052 exit ;;
1111 paragon:*:*:*) 1053 paragon:*:*:*)
1139 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1081 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1140 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1082 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1141 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1083 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1142 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1084 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1143 && { echo i486-ncr-sysv4; exit; } ;; 1085 && { echo i486-ncr-sysv4; exit; } ;;
1086 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1087 OS_REL='.3'
1088 test -r /etc/.relid \
1089 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1092 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1093 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1094 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1095 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1096 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1145 echo m68k-unknown-lynxos${UNAME_RELEASE} 1097 echo m68k-unknown-lynxos${UNAME_RELEASE}
1146 exit ;; 1098 exit ;;
1147 mc68030:UNIX_System_V:4.*:*) 1099 mc68030:UNIX_System_V:4.*:*)
1148 echo m68k-atari-sysv4 1100 echo m68k-atari-sysv4
1151 echo sparc-unknown-lynxos${UNAME_RELEASE} 1103 echo sparc-unknown-lynxos${UNAME_RELEASE}
1152 exit ;; 1104 exit ;;
1153 rs6000:LynxOS:2.*:*) 1105 rs6000:LynxOS:2.*:*)
1154 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1106 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1155 exit ;; 1107 exit ;;
1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1108 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1157 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1109 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1158 exit ;; 1110 exit ;;
1159 SM[BE]S:UNIX_SV:*:*) 1111 SM[BE]S:UNIX_SV:*:*)
1160 echo mips-dde-sysv${UNAME_RELEASE} 1112 echo mips-dde-sysv${UNAME_RELEASE}
1161 exit ;; 1113 exit ;;
1214 echo powerpc-apple-beos 1166 echo powerpc-apple-beos
1215 exit ;; 1167 exit ;;
1216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1168 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1217 echo i586-pc-beos 1169 echo i586-pc-beos
1218 exit ;; 1170 exit ;;
1171 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1172 echo i586-pc-haiku
1173 exit ;;
1219 SX-4:SUPER-UX:*:*) 1174 SX-4:SUPER-UX:*:*)
1220 echo sx4-nec-superux${UNAME_RELEASE} 1175 echo sx4-nec-superux${UNAME_RELEASE}
1221 exit ;; 1176 exit ;;
1222 SX-5:SUPER-UX:*:*) 1177 SX-5:SUPER-UX:*:*)
1223 echo sx5-nec-superux${UNAME_RELEASE} 1178 echo sx5-nec-superux${UNAME_RELEASE}
1241 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1196 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1242 exit ;; 1197 exit ;;
1243 *:Darwin:*:*) 1198 *:Darwin:*:*)
1244 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1199 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1245 case $UNAME_PROCESSOR in 1200 case $UNAME_PROCESSOR in
1201 i386)
1202 eval $set_cc_for_build
1203 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1204 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1205 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1206 grep IS_64BIT_ARCH >/dev/null
1207 then
1208 UNAME_PROCESSOR="x86_64"
1209 fi
1210 fi ;;
1246 unknown) UNAME_PROCESSOR=powerpc ;; 1211 unknown) UNAME_PROCESSOR=powerpc ;;
1247 esac 1212 esac
1248 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1213 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1249 exit ;; 1214 exit ;;
1250 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1215 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1321 i*86:skyos:*:*) 1286 i*86:skyos:*:*)
1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1287 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1323 exit ;; 1288 exit ;;
1324 i*86:rdos:*:*) 1289 i*86:rdos:*:*)
1325 echo ${UNAME_MACHINE}-pc-rdos 1290 echo ${UNAME_MACHINE}-pc-rdos
1291 exit ;;
1292 i*86:AROS:*:*)
1293 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;; 1294 exit ;;
1327 esac 1295 esac
1328 1296
1329 #echo '(No uname command or uname output not recognized.)' 1>&2 1297 #echo '(No uname command or uname output not recognized.)' 1>&2
1330 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1298 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1482 1450
1483 This script, last modified $timestamp, has failed to recognize 1451 This script, last modified $timestamp, has failed to recognize
1484 the operating system you are using. It is advised that you 1452 the operating system you are using. It is advised that you
1485 download the most up to date version of the config scripts from 1453 download the most up to date version of the config scripts from
1486 1454
1487 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1455 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1488 and 1456 and
1489 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1457 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1490 1458
1491 If the version you run ($0) is already up to date, please 1459 If the version you run ($0) is already up to date, please
1492 send the following data and any information you think might be 1460 send the following data and any information you think might be
1493 pertinent to <config-patches@gnu.org> in order to provide the needed 1461 pertinent to <config-patches@gnu.org> in order to provide the needed
1494 information to handle your system. 1462 information to handle your system.