comparison config.guess @ 1693:27d68ccb2c9e

New release
author Adam Chlipala <adam@chlipala.net>
date Sat, 10 Mar 2012 13:13:15 -0500
parents 3d0cc841cafd
children 6a621a625b04
comparison
equal deleted inserted replaced
1692:a1a1d66aebac 1693:27d68ccb2c9e
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, 2009, 2010, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5 # 2011 Free Software Foundation, Inc. 5 # 2011, 2012 Free Software Foundation, Inc.
6 6
7 timestamp='2011-05-11' 7 timestamp='2012-02-10'
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.
15 # WITHOUT ANY WARRANTY; without even the implied warranty of 15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details. 17 # General Public License for more details.
18 # 18 #
19 # You should have received a copy of the GNU General Public License 19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software 20 # along with this program; if not, see <http://www.gnu.org/licenses/>.
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23 # 21 #
24 # As a special exception to the GNU General Public License, if you 22 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a 23 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under 24 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program. 25 # the same distribution terms that you use for the rest of that program.
55 version="\ 53 version="\
56 GNU config.guess ($timestamp) 54 GNU config.guess ($timestamp)
57 55
58 Originally written by Per Bothner. 56 Originally written by Per Bothner.
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 57 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 58 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
61 Software Foundation, Inc. 59 Free Software Foundation, Inc.
62 60
63 This is free software; see the source for copying conditions. There is NO 61 This is free software; see the source for copying conditions. There is NO
64 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
65 63
66 help=" 64 help="
143 # Note: order is significant - the case branches are not exclusive. 141 # Note: order is significant - the case branches are not exclusive.
144 142
145 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146 *:NetBSD:*:*) 144 *:NetBSD:*:*)
147 # NetBSD (nbsd) targets should (where applicable) match one or 145 # NetBSD (nbsd) targets should (where applicable) match one or
148 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 146 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
149 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
150 # switched to ELF, *-*-netbsd* would select the old 148 # switched to ELF, *-*-netbsd* would select the old
151 # object file format. This provides both forward 149 # object file format. This provides both forward
152 # compatibility and a consistent mechanism for selecting the 150 # compatibility and a consistent mechanism for selecting the
153 # object file format. 151 # object file format.
790 exit ;; 788 exit ;;
791 *:BSD/OS:*:*) 789 *:BSD/OS:*:*)
792 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 790 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
793 exit ;; 791 exit ;;
794 *:FreeBSD:*:*) 792 *:FreeBSD:*:*)
795 case ${UNAME_MACHINE} in 793 UNAME_PROCESSOR=`/usr/bin/uname -p`
796 pc98) 794 case ${UNAME_PROCESSOR} in
797 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798 amd64) 795 amd64)
799 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
800 *) 797 *)
801 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 798 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802 esac 799 esac
803 exit ;; 800 exit ;;
804 i*:CYGWIN*:*) 801 i*:CYGWIN*:*)
805 echo ${UNAME_MACHINE}-pc-cygwin 802 echo ${UNAME_MACHINE}-pc-cygwin
806 exit ;; 803 exit ;;
807 *:MINGW*:*) 804 *:MINGW*:*)
808 echo ${UNAME_MACHINE}-pc-mingw32 805 echo ${UNAME_MACHINE}-pc-mingw32
806 exit ;;
807 i*:MSYS*:*)
808 echo ${UNAME_MACHINE}-pc-msys
809 exit ;; 809 exit ;;
810 i*:windows32*:*) 810 i*:windows32*:*)
811 # uname -m includes "-pc" on this system. 811 # uname -m includes "-pc" on this system.
812 echo ${UNAME_MACHINE}-mingw32 812 echo ${UNAME_MACHINE}-mingw32
813 exit ;; 813 exit ;;
859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
860 exit ;; 860 exit ;;
861 i*86:Minix:*:*) 861 i*86:Minix:*:*)
862 echo ${UNAME_MACHINE}-pc-minix 862 echo ${UNAME_MACHINE}-pc-minix
863 exit ;; 863 exit ;;
864 aarch64:Linux:*:*)
865 echo ${UNAME_MACHINE}-unknown-linux-gnu
866 exit ;;
867 aarch64_be:Linux:*:*)
868 UNAME_MACHINE=aarch64_be
869 echo ${UNAME_MACHINE}-unknown-linux-gnu
870 exit ;;
864 alpha:Linux:*:*) 871 alpha:Linux:*:*)
865 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
866 EV5) UNAME_MACHINE=alphaev5 ;; 873 EV5) UNAME_MACHINE=alphaev5 ;;
867 EV56) UNAME_MACHINE=alphaev56 ;; 874 EV56) UNAME_MACHINE=alphaev56 ;;
868 PCA56) UNAME_MACHINE=alphapca56 ;; 875 PCA56) UNAME_MACHINE=alphapca56 ;;
893 exit ;; 900 exit ;;
894 avr32*:Linux:*:*) 901 avr32*:Linux:*:*)
895 echo ${UNAME_MACHINE}-unknown-linux-gnu 902 echo ${UNAME_MACHINE}-unknown-linux-gnu
896 exit ;; 903 exit ;;
897 cris:Linux:*:*) 904 cris:Linux:*:*)
898 echo cris-axis-linux-gnu 905 echo ${UNAME_MACHINE}-axis-linux-gnu
899 exit ;; 906 exit ;;
900 crisv32:Linux:*:*) 907 crisv32:Linux:*:*)
901 echo crisv32-axis-linux-gnu 908 echo ${UNAME_MACHINE}-axis-linux-gnu
902 exit ;; 909 exit ;;
903 frv:Linux:*:*) 910 frv:Linux:*:*)
904 echo frv-unknown-linux-gnu 911 echo ${UNAME_MACHINE}-unknown-linux-gnu
912 exit ;;
913 hexagon:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
905 exit ;; 915 exit ;;
906 i*86:Linux:*:*) 916 i*86:Linux:*:*)
907 LIBC=gnu 917 LIBC=gnu
908 eval $set_cc_for_build 918 eval $set_cc_for_build
909 sed 's/^ //' << EOF >$dummy.c 919 sed 's/^ //' << EOF >$dummy.c
941 EOF 951 EOF
942 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 952 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
943 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 953 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
944 ;; 954 ;;
945 or32:Linux:*:*) 955 or32:Linux:*:*)
946 echo or32-unknown-linux-gnu 956 echo ${UNAME_MACHINE}-unknown-linux-gnu
947 exit ;; 957 exit ;;
948 padre:Linux:*:*) 958 padre:Linux:*:*)
949 echo sparc-unknown-linux-gnu 959 echo sparc-unknown-linux-gnu
950 exit ;; 960 exit ;;
951 parisc64:Linux:*:* | hppa64:Linux:*:*) 961 parisc64:Linux:*:* | hppa64:Linux:*:*)
976 exit ;; 986 exit ;;
977 sparc:Linux:*:* | sparc64:Linux:*:*) 987 sparc:Linux:*:* | sparc64:Linux:*:*)
978 echo ${UNAME_MACHINE}-unknown-linux-gnu 988 echo ${UNAME_MACHINE}-unknown-linux-gnu
979 exit ;; 989 exit ;;
980 tile*:Linux:*:*) 990 tile*:Linux:*:*)
981 echo ${UNAME_MACHINE}-tilera-linux-gnu 991 echo ${UNAME_MACHINE}-unknown-linux-gnu
982 exit ;; 992 exit ;;
983 vax:Linux:*:*) 993 vax:Linux:*:*)
984 echo ${UNAME_MACHINE}-dec-linux-gnu 994 echo ${UNAME_MACHINE}-dec-linux-gnu
985 exit ;; 995 exit ;;
986 x86_64:Linux:*:*) 996 x86_64:Linux:*:*)
987 echo x86_64-unknown-linux-gnu 997 echo ${UNAME_MACHINE}-unknown-linux-gnu
988 exit ;; 998 exit ;;
989 xtensa*:Linux:*:*) 999 xtensa*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu 1000 echo ${UNAME_MACHINE}-unknown-linux-gnu
991 exit ;; 1001 exit ;;
992 i*86:DYNIX/ptx:4*:*) 1002 i*86:DYNIX/ptx:4*:*)
1313 echo ${UNAME_MACHINE}-pc-rdos 1323 echo ${UNAME_MACHINE}-pc-rdos
1314 exit ;; 1324 exit ;;
1315 i*86:AROS:*:*) 1325 i*86:AROS:*:*)
1316 echo ${UNAME_MACHINE}-pc-aros 1326 echo ${UNAME_MACHINE}-pc-aros
1317 exit ;; 1327 exit ;;
1328 x86_64:VMkernel:*:*)
1329 echo ${UNAME_MACHINE}-unknown-esx
1330 exit ;;
1318 esac 1331 esac
1319 1332
1320 #echo '(No uname command or uname output not recognized.)' 1>&2 1333 #echo '(No uname command or uname output not recognized.)' 1>&2
1321 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1334 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1322 1335