Check-in [11f339bd59]
Overview
SHA1:11f339bd5950a97ab97abb7684a68308622587bb
Date: 2012-05-13 18:50:08
User: rkeene
Comment:Updated to latest config.guess/config.sub from autoconf
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2012-05-13
18:50
[aa00b0ada2] Updated to use standard cross-compile script for Linux/MIPS target

Updated to include "mips" support in fake uname

Updated to not use fake uname for "mips" (user: rkeene, tags: trunk)

18:50
[11f339bd59] Updated to latest config.guess/config.sub from autoconf (user: rkeene, tags: trunk)
01:56
[a1316c25a9] Renamed Linux/mipsel build script for consistency (user: rkeene, tags: trunk)
Changes

Modified kitsh/buildsrc/kitsh-0.0/config.guess from [62de42768f] to [94cc57e2a3].

     1      1   #! /bin/sh
     2      2   # Attempt to guess a canonical system name.
     3      3   #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4         -#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     5         -#   Free Software Foundation, Inc.
            4  +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
            5  +#   2011, 2012 Free Software Foundation, Inc.
     6      6   
     7         -timestamp='2010-08-21'
            7  +timestamp='2012-02-10'
     8      8   
     9      9   # This file is free software; you can redistribute it and/or modify it
    10     10   # under the terms of the GNU General Public License as published by
    11     11   # the Free Software Foundation; either version 2 of the License, or
    12     12   # (at your option) any later version.
    13     13   #
    14     14   # This program is distributed in the hope that it will be useful, but
    15     15   # WITHOUT ANY WARRANTY; without even the implied warranty of
    16     16   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    17     17   # General Public License for more details.
    18     18   #
    19     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
    21         -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    22         -# 02110-1301, USA.
           20  +# along with this program; if not, see <http://www.gnu.org/licenses/>.
    23     21   #
    24     22   # As a special exception to the GNU General Public License, if you
    25     23   # distribute this file as part of a program that contains a
    26     24   # configuration script generated by Autoconf, you may include it under
    27     25   # the same distribution terms that you use for the rest of that program.
    28     26   
    29     27   
................................................................................
    53     51   Report bugs and patches to <config-patches@gnu.org>."
    54     52   
    55     53   version="\
    56     54   GNU config.guess ($timestamp)
    57     55   
    58     56   Originally written by Per Bothner.
    59     57   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    60         -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
    61         -Software Foundation, Inc.
           58  +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
           59  +Free Software Foundation, Inc.
    62     60   
    63     61   This is free software; see the source for copying conditions.  There is NO
    64     62   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    65     63   
    66     64   help="
    67     65   Try \`$me --help' for more information."
    68     66   
................................................................................
    88     86   done
    89     87   
    90     88   if test $# != 0; then
    91     89     echo "$me: too many arguments$help" >&2
    92     90     exit 1
    93     91   fi
    94     92   
    95         -trap 'exit 1' HUP INT TERM
           93  +trap 'exit 1' 1 2 15
    96     94   
    97     95   # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
    98     96   # compiler to aid in system detection is discouraged as it requires
    99     97   # temporary files to be created and, as you can see below, it is a
   100     98   # headache to deal with in a portable fashion.
   101     99   
   102    100   # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
   103    101   # use `HOST_CC' if defined, but it is deprecated.
   104    102   
   105    103   # Portable tmp directory creation inspired by the Autoconf team.
   106    104   
   107    105   set_cc_for_build='
   108    106   trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
   109         -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
          107  +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
   110    108   : ${TMPDIR=/tmp} ;
   111    109    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
   112    110    { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
   113    111    { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
   114    112    { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
   115    113   dummy=$tmp/dummy ;
   116    114   tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
................................................................................
   141    139   UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
   142    140   
   143    141   # Note: order is significant - the case branches are not exclusive.
   144    142   
   145    143   case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   146    144       *:NetBSD:*:*)
   147    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    147   	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
   150    148   	# switched to ELF, *-*-netbsd* would select the old
   151    149   	# object file format.  This provides both forward
   152    150   	# compatibility and a consistent mechanism for selecting the
   153    151   	# object file format.
   154    152   	#
   155    153   	# Note: NetBSD doesn't particularly care about the vendor
................................................................................
   266    264   	esac
   267    265   	# A Pn.n version is a patched version.
   268    266   	# A Vn.n version is a released version.
   269    267   	# A Tn.n version is a released field test version.
   270    268   	# A Xn.n version is an unreleased experimental baselevel.
   271    269   	# 1.2 uses "1.2" for uname -r.
   272    270   	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   273         -	exit ;;
          271  +	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
          272  +	exitcode=$?
          273  +	trap '' 0
          274  +	exit $exitcode ;;
   274    275       Alpha\ *:Windows_NT*:*)
   275    276   	# How do we know it's Interix rather than the generic POSIX subsystem?
   276    277   	# Should we change UNAME_MACHINE based on the output of uname instead
   277    278   	# of the specific Alpha model?
   278    279   	echo alpha-pc-interix
   279    280   	exit ;;
   280    281       21064:Windows_NT:50:3)
................................................................................
   785    786       sparc*:BSD/OS:*:*)
   786    787   	echo sparc-unknown-bsdi${UNAME_RELEASE}
   787    788   	exit ;;
   788    789       *:BSD/OS:*:*)
   789    790   	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   790    791   	exit ;;
   791    792       *:FreeBSD:*:*)
   792         -	case ${UNAME_MACHINE} in
   793         -	    pc98)
   794         -		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
          793  +	UNAME_PROCESSOR=`/usr/bin/uname -p`
          794  +	case ${UNAME_PROCESSOR} in
   795    795   	    amd64)
   796    796   		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   797    797   	    *)
   798         -		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
          798  +		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   799    799   	esac
   800    800   	exit ;;
   801    801       i*:CYGWIN*:*)
   802    802   	echo ${UNAME_MACHINE}-pc-cygwin
   803    803   	exit ;;
   804    804       *:MINGW*:*)
   805    805   	echo ${UNAME_MACHINE}-pc-mingw32
   806    806   	exit ;;
          807  +    i*:MSYS*:*)
          808  +	echo ${UNAME_MACHINE}-pc-msys
          809  +	exit ;;
   807    810       i*:windows32*:*)
   808    811       	# uname -m includes "-pc" on this system.
   809    812       	echo ${UNAME_MACHINE}-mingw32
   810    813   	exit ;;
   811    814       i*:PW*:*)
   812    815   	echo ${UNAME_MACHINE}-pc-pw32
   813    816   	exit ;;
................................................................................
   854    857       *:GNU/*:*:*)
   855    858   	# other systems with GNU libc and userland
   856    859   	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   857    860   	exit ;;
   858    861       i*86:Minix:*:*)
   859    862   	echo ${UNAME_MACHINE}-pc-minix
   860    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 ;;
   861    871       alpha:Linux:*:*)
   862    872   	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   863    873   	  EV5)   UNAME_MACHINE=alphaev5 ;;
   864    874   	  EV56)  UNAME_MACHINE=alphaev56 ;;
   865    875   	  PCA56) UNAME_MACHINE=alphapca56 ;;
   866    876   	  PCA57) UNAME_MACHINE=alphapca56 ;;
   867    877   	  EV6)   UNAME_MACHINE=alphaev6 ;;
................................................................................
   875    885       arm*:Linux:*:*)
   876    886   	eval $set_cc_for_build
   877    887   	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   878    888   	    | grep -q __ARM_EABI__
   879    889   	then
   880    890   	    echo ${UNAME_MACHINE}-unknown-linux-gnu
   881    891   	else
          892  +	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
          893  +		| grep -q __ARM_PCS_VFP
          894  +	    then
   882    895   	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
          896  +	    else
          897  +		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
          898  +	    fi
   883    899   	fi
   884    900   	exit ;;
   885    901       avr32*:Linux:*:*)
   886    902   	echo ${UNAME_MACHINE}-unknown-linux-gnu
   887    903   	exit ;;
   888    904       cris:Linux:*:*)
   889         -	echo cris-axis-linux-gnu
          905  +	echo ${UNAME_MACHINE}-axis-linux-gnu
   890    906   	exit ;;
   891    907       crisv32:Linux:*:*)
   892         -	echo crisv32-axis-linux-gnu
          908  +	echo ${UNAME_MACHINE}-axis-linux-gnu
   893    909   	exit ;;
   894    910       frv:Linux:*:*)
   895         -    	echo frv-unknown-linux-gnu
          911  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          912  +	exit ;;
          913  +    hexagon:Linux:*:*)
          914  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   896    915   	exit ;;
   897    916       i*86:Linux:*:*)
   898    917   	LIBC=gnu
   899    918   	eval $set_cc_for_build
   900    919   	sed 's/^	//' << EOF >$dummy.c
   901    920   	#ifdef __dietlibc__
   902    921   	LIBC=dietlibc
................................................................................
   930    949   	#endif
   931    950   	#endif
   932    951   EOF
   933    952   	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
   934    953   	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   935    954   	;;
   936    955       or32:Linux:*:*)
   937         -	echo or32-unknown-linux-gnu
          956  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   938    957   	exit ;;
   939    958       padre:Linux:*:*)
   940    959   	echo sparc-unknown-linux-gnu
   941    960   	exit ;;
   942    961       parisc64:Linux:*:* | hppa64:Linux:*:*)
   943    962   	echo hppa64-unknown-linux-gnu
   944    963   	exit ;;
................................................................................
   965    984       sh*:Linux:*:*)
   966    985   	echo ${UNAME_MACHINE}-unknown-linux-gnu
   967    986   	exit ;;
   968    987       sparc:Linux:*:* | sparc64:Linux:*:*)
   969    988   	echo ${UNAME_MACHINE}-unknown-linux-gnu
   970    989   	exit ;;
   971    990       tile*:Linux:*:*)
   972         -	echo ${UNAME_MACHINE}-tilera-linux-gnu
          991  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   973    992   	exit ;;
   974    993       vax:Linux:*:*)
   975    994   	echo ${UNAME_MACHINE}-dec-linux-gnu
   976    995   	exit ;;
   977    996       x86_64:Linux:*:*)
   978         -	echo x86_64-unknown-linux-gnu
          997  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   979    998   	exit ;;
   980    999       xtensa*:Linux:*:*)
   981   1000       	echo ${UNAME_MACHINE}-unknown-linux-gnu
   982   1001   	exit ;;
   983   1002       i*86:DYNIX/ptx:4*:*)
   984   1003   	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
   985   1004   	# earlier versions are messed up and put the nodename in both
................................................................................
  1230   1249   		UNAME_MACHINE=pc
  1231   1250   	fi
  1232   1251   	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1233   1252   	exit ;;
  1234   1253       *:QNX:*:4*)
  1235   1254   	echo i386-pc-qnx
  1236   1255   	exit ;;
         1256  +    NEO-?:NONSTOP_KERNEL:*:*)
         1257  +	echo neo-tandem-nsk${UNAME_RELEASE}
         1258  +	exit ;;
  1237   1259       NSE-?:NONSTOP_KERNEL:*:*)
  1238   1260   	echo nse-tandem-nsk${UNAME_RELEASE}
  1239   1261   	exit ;;
  1240   1262       NSR-?:NONSTOP_KERNEL:*:*)
  1241   1263   	echo nsr-tandem-nsk${UNAME_RELEASE}
  1242   1264   	exit ;;
  1243   1265       *:NonStop-UX:*:*)
................................................................................
  1299   1321   	exit ;;
  1300   1322       i*86:rdos:*:*)
  1301   1323   	echo ${UNAME_MACHINE}-pc-rdos
  1302   1324   	exit ;;
  1303   1325       i*86:AROS:*:*)
  1304   1326   	echo ${UNAME_MACHINE}-pc-aros
  1305   1327   	exit ;;
         1328  +    x86_64:VMkernel:*:*)
         1329  +	echo ${UNAME_MACHINE}-unknown-esx
         1330  +	exit ;;
  1306   1331   esac
  1307   1332   
  1308   1333   #echo '(No uname command or uname output not recognized.)' 1>&2
  1309   1334   #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1310   1335   
  1311   1336   eval $set_cc_for_build
  1312   1337   cat >$dummy.c <<EOF

Modified kitsh/buildsrc/kitsh-0.0/config.sub from [32f90ac76a] to [8fedd9524f].

     1      1   #! /bin/sh
     2      2   # Configuration validation subroutine script.
     3      3   #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4         -#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     5         -#   Free Software Foundation, Inc.
            4  +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
            5  +#   2011, 2012 Free Software Foundation, Inc.
     6      6   
     7         -timestamp='2010-09-11'
            7  +timestamp='2012-04-18'
     8      8   
     9      9   # This file is (in principle) common to ALL GNU software.
    10     10   # The presence of a machine in this file suggests that SOME GNU software
    11     11   # can handle that machine.  It does not imply ALL GNU software can.
    12     12   #
    13     13   # This file is free software; you can redistribute it and/or modify
    14     14   # it under the terms of the GNU General Public License as published by
................................................................................
    17     17   #
    18     18   # This program is distributed in the hope that it will be useful,
    19     19   # but WITHOUT ANY WARRANTY; without even the implied warranty of
    20     20   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21     21   # GNU General Public License for more details.
    22     22   #
    23     23   # You should have received a copy of the GNU General Public License
    24         -# along with this program; if not, write to the Free Software
    25         -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    26         -# 02110-1301, USA.
           24  +# along with this program; if not, see <http://www.gnu.org/licenses/>.
    27     25   #
    28     26   # As a special exception to the GNU General Public License, if you
    29     27   # distribute this file as part of a program that contains a
    30     28   # configuration script generated by Autoconf, you may include it under
    31     29   # the same distribution terms that you use for the rest of that program.
    32     30   
    33     31   
................................................................................
    72     70   
    73     71   Report bugs and patches to <config-patches@gnu.org>."
    74     72   
    75     73   version="\
    76     74   GNU config.sub ($timestamp)
    77     75   
    78     76   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    79         -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
    80         -Software Foundation, Inc.
           77  +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
           78  +Free Software Foundation, Inc.
    81     79   
    82     80   This is free software; see the source for copying conditions.  There is NO
    83     81   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    84     82   
    85     83   help="
    86     84   Try \`$me --help' for more information."
    87     85   
................................................................................
   128    126     linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
   129    127     knetbsd*-gnu* | netbsd*-gnu* | \
   130    128     kopensolaris*-gnu* | \
   131    129     storm-chaos* | os2-emx* | rtmk-nova*)
   132    130       os=-$maybe_os
   133    131       basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   134    132       ;;
          133  +  android-linux)
          134  +    os=-linux-android
          135  +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
          136  +    ;;
   135    137     *)
   136    138       basic_machine=`echo $1 | sed 's/-[^-]*$//'`
   137    139       if [ $basic_machine != $1 ]
   138    140       then os=`echo $1 | sed 's/.*-/-/'`
   139    141       else os=; fi
   140    142       ;;
   141    143   esac
................................................................................
   219    221   		;;
   220    222   	-clix*)
   221    223   		basic_machine=clipper-intergraph
   222    224   		;;
   223    225   	-isc*)
   224    226   		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   225    227   		;;
          228  +	-lynx*178)
          229  +		os=-lynxos178
          230  +		;;
          231  +	-lynx*5)
          232  +		os=-lynxos5
          233  +		;;
   226    234   	-lynx*)
   227    235   		os=-lynxos
   228    236   		;;
   229    237   	-ptx*)
   230    238   		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
   231    239   		;;
   232    240   	-windowsnt*)
................................................................................
   243    251   
   244    252   # Decode aliases for certain CPU-COMPANY combinations.
   245    253   case $basic_machine in
   246    254   	# Recognize the basic CPU types without company name.
   247    255   	# Some are omitted here because they have special meanings below.
   248    256   	1750a | 580 \
   249    257   	| a29k \
          258  +	| aarch64 | aarch64_be \
   250    259   	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   251    260   	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   252    261   	| am33_2.0 \
   253    262   	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
          263  +        | be32 | be64 \
   254    264   	| bfin \
   255    265   	| c4x | clipper \
   256    266   	| d10v | d30v | dlx | dsp16xx \
          267  +	| epiphany \
   257    268   	| fido | fr30 | frv \
   258    269   	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
          270  +	| hexagon \
   259    271   	| i370 | i860 | i960 | ia64 \
   260    272   	| ip2k | iq2000 \
          273  +	| le32 | le64 \
   261    274   	| lm32 \
   262    275   	| m32c | m32r | m32rle | m68000 | m68k | m88k \
   263    276   	| maxq | mb | microblaze | mcore | mep | metag \
   264    277   	| mips | mipsbe | mipseb | mipsel | mipsle \
   265    278   	| mips16 \
   266    279   	| mips64 | mips64el \
   267    280   	| mips64octeon | mips64octeonel \
................................................................................
   282    295   	| mn10200 | mn10300 \
   283    296   	| moxie \
   284    297   	| mt \
   285    298   	| msp430 \
   286    299   	| nds32 | nds32le | nds32be \
   287    300   	| nios | nios2 \
   288    301   	| ns16k | ns32k \
          302  +	| open8 \
   289    303   	| or32 \
   290    304   	| pdp10 | pdp11 | pj | pjl \
   291         -	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
          305  +	| powerpc | powerpc64 | powerpc64le | powerpcle \
   292    306   	| pyramid \
   293         -	| rx \
          307  +	| rl78 | rx \
   294    308   	| score \
   295    309   	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   296    310   	| sh64 | sh64le \
   297    311   	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   298    312   	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   299         -	| spu | strongarm \
   300         -	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
          313  +	| spu \
          314  +	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
   301    315   	| ubicom32 \
   302         -	| v850 | v850e \
          316  +	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
   303    317   	| we32k \
   304         -	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
          318  +	| x86 | xc16x | xstormy16 | xtensa \
   305    319   	| z8k | z80)
   306    320   		basic_machine=$basic_machine-unknown
   307    321   		;;
   308    322   	c54x)
   309    323   		basic_machine=tic54x-unknown
   310    324   		;;
   311    325   	c55x)
   312    326   		basic_machine=tic55x-unknown
   313    327   		;;
   314    328   	c6x)
   315    329   		basic_machine=tic6x-unknown
   316    330   		;;
   317         -	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
   318         -		# Motorola 68HC11/12.
          331  +	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
   319    332   		basic_machine=$basic_machine-unknown
   320    333   		os=-none
   321    334   		;;
   322    335   	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   323    336   		;;
   324    337   	ms1)
   325    338   		basic_machine=mt-unknown
   326    339   		;;
          340  +
          341  +	strongarm | thumb | xscale)
          342  +		basic_machine=arm-unknown
          343  +		;;
          344  +	xgate)
          345  +		basic_machine=$basic_machine-unknown
          346  +		os=-none
          347  +		;;
          348  +	xscaleeb)
          349  +		basic_machine=armeb-unknown
          350  +		;;
          351  +
          352  +	xscaleel)
          353  +		basic_machine=armel-unknown
          354  +		;;
   327    355   
   328    356   	# We use `pc' rather than `unknown'
   329    357   	# because (1) that's what they normally are, and
   330    358   	# (2) the word "unknown" tends to confuse beginning users.
   331    359   	i*86 | x86_64)
   332    360   	  basic_machine=$basic_machine-pc
   333    361   	  ;;
................................................................................
   335    363   	*-*-*)
   336    364   		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   337    365   		exit 1
   338    366   		;;
   339    367   	# Recognize the basic CPU types with company name.
   340    368   	580-* \
   341    369   	| a29k-* \
          370  +	| aarch64-* | aarch64_be-* \
   342    371   	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   343    372   	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   344    373   	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   345    374   	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   346    375   	| avr-* | avr32-* \
          376  +	| be32-* | be64-* \
   347    377   	| bfin-* | bs2000-* \
   348    378   	| c[123]* | c30-* | [cjt]90-* | c4x-* \
   349    379   	| clipper-* | craynv-* | cydra-* \
   350    380   	| d10v-* | d30v-* | dlx-* \
   351    381   	| elxsi-* \
   352    382   	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   353    383   	| h8300-* | h8500-* \
   354    384   	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
          385  +	| hexagon-* \
   355    386   	| i*86-* | i860-* | i960-* | ia64-* \
   356    387   	| ip2k-* | iq2000-* \
          388  +	| le32-* | le64-* \
   357    389   	| lm32-* \
   358    390   	| m32c-* | m32r-* | m32rle-* \
   359    391   	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   360    392   	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
   361    393   	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   362    394   	| mips16-* \
   363    395   	| mips64-* | mips64el-* \
................................................................................
   378    410   	| mipstx39-* | mipstx39el-* \
   379    411   	| mmix-* \
   380    412   	| mt-* \
   381    413   	| msp430-* \
   382    414   	| nds32-* | nds32le-* | nds32be-* \
   383    415   	| nios-* | nios2-* \
   384    416   	| none-* | np1-* | ns16k-* | ns32k-* \
          417  +	| open8-* \
   385    418   	| orion-* \
   386    419   	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   387         -	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
          420  +	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
   388    421   	| pyramid-* \
   389         -	| romp-* | rs6000-* | rx-* \
          422  +	| rl78-* | romp-* | rs6000-* | rx-* \
   390    423   	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   391    424   	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   392    425   	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   393    426   	| sparclite-* \
   394         -	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
   395         -	| tahoe-* | thumb-* \
          427  +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
          428  +	| tahoe-* \
   396    429   	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   397         -	| tile-* | tilegx-* \
          430  +	| tile*-* \
   398    431   	| tron-* \
   399    432   	| ubicom32-* \
   400         -	| v850-* | v850e-* | vax-* \
          433  +	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
          434  +	| vax-* \
   401    435   	| we32k-* \
   402         -	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
          436  +	| x86-* | x86_64-* | xc16x-* | xps100-* \
   403    437   	| xstormy16-* | xtensa*-* \
   404    438   	| ymp-* \
   405    439   	| z8k-* | z80-*)
   406    440   		;;
   407    441   	# Recognize the basic CPU types without company name, with glob match.
   408    442   	xtensa*)
   409    443   		basic_machine=$basic_machine-unknown
................................................................................
   535    569   		basic_machine=j90-cray
   536    570   		os=-unicos
   537    571   		;;
   538    572   	craynv)
   539    573   		basic_machine=craynv-cray
   540    574   		os=-unicosmp
   541    575   		;;
   542         -	cr16)
          576  +	cr16 | cr16-*)
   543    577   		basic_machine=cr16-unknown
   544    578   		os=-elf
   545    579   		;;
   546    580   	crds | unos)
   547    581   		basic_machine=m68k-crds
   548    582   		;;
   549    583   	crisv32 | crisv32-* | etraxfs*)
................................................................................
   693    727   	hppro)
   694    728   		basic_machine=hppa1.1-hp
   695    729   		os=-proelf
   696    730   		;;
   697    731   	i370-ibm* | ibm*)
   698    732   		basic_machine=i370-ibm
   699    733   		;;
   700         -# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   701    734   	i*86v32)
   702    735   		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   703    736   		os=-sysv32
   704    737   		;;
   705    738   	i*86v4*)
   706    739   		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   707    740   		os=-sysv4
................................................................................
   790    823   	msdos)
   791    824   		basic_machine=i386-pc
   792    825   		os=-msdos
   793    826   		;;
   794    827   	ms1-*)
   795    828   		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   796    829   		;;
          830  +	msys)
          831  +		basic_machine=i386-pc
          832  +		os=-msys
          833  +		;;
   797    834   	mvs)
   798    835   		basic_machine=i370-ibm
   799    836   		os=-mvs
   800    837   		;;
          838  +	nacl)
          839  +		basic_machine=le32-unknown
          840  +		os=-nacl
          841  +		;;
   801    842   	ncr3000)
   802    843   		basic_machine=i486-ncr
   803    844   		os=-sysv4
   804    845   		;;
   805    846   	netbsd386)
   806    847   		basic_machine=i386-unknown
   807    848   		os=-netbsd
................................................................................
   946    987   		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   947    988   		;;
   948    989   	pn)
   949    990   		basic_machine=pn-gould
   950    991   		;;
   951    992   	power)	basic_machine=power-ibm
   952    993   		;;
   953         -	ppc)	basic_machine=powerpc-unknown
          994  +	ppc | ppcbe)	basic_machine=powerpc-unknown
   954    995   		;;
   955         -	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
          996  +	ppc-* | ppcbe-*)
          997  +		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   956    998   		;;
   957    999   	ppcle | powerpclittle | ppc-le | powerpc-little)
   958   1000   		basic_machine=powerpcle-unknown
   959   1001   		;;
   960   1002   	ppcle-* | powerpclittle-*)
   961   1003   		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   962   1004   		;;
................................................................................
  1042   1084   	st2000)
  1043   1085   		basic_machine=m68k-tandem
  1044   1086   		;;
  1045   1087   	stratus)
  1046   1088   		basic_machine=i860-stratus
  1047   1089   		os=-sysv4
  1048   1090   		;;
         1091  +	strongarm-* | thumb-*)
         1092  +		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
         1093  +		;;
  1049   1094   	sun2)
  1050   1095   		basic_machine=m68000-sun
  1051   1096   		;;
  1052   1097   	sun2os3)
  1053   1098   		basic_machine=m68000-sun
  1054   1099   		os=-sunos3
  1055   1100   		;;
................................................................................
  1098   1143   		basic_machine=alphaev5-cray
  1099   1144   		os=-unicos
  1100   1145   		;;
  1101   1146   	t90)
  1102   1147   		basic_machine=t90-cray
  1103   1148   		os=-unicos
  1104   1149   		;;
  1105         -        # This must be matched before tile*.
  1106         -        tilegx*)
  1107         -		basic_machine=tilegx-unknown
  1108         -		os=-linux-gnu
  1109         -		;;
  1110   1150   	tile*)
  1111         -		basic_machine=tile-unknown
         1151  +		basic_machine=$basic_machine-unknown
  1112   1152   		os=-linux-gnu
  1113   1153   		;;
  1114   1154   	tx39)
  1115   1155   		basic_machine=mipstx39-unknown
  1116   1156   		;;
  1117   1157   	tx39el)
  1118   1158   		basic_machine=mipstx39el-unknown
................................................................................
  1174   1214   	xbox)
  1175   1215   		basic_machine=i686-pc
  1176   1216   		os=-mingw32
  1177   1217   		;;
  1178   1218   	xps | xps100)
  1179   1219   		basic_machine=xps100-honeywell
  1180   1220   		;;
         1221  +	xscale-* | xscalee[bl]-*)
         1222  +		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
         1223  +		;;
  1181   1224   	ymp)
  1182   1225   		basic_machine=ymp-cray
  1183   1226   		os=-unicos
  1184   1227   		;;
  1185   1228   	z8k-*-coff)
  1186   1229   		basic_machine=z8k-unknown
  1187   1230   		os=-sim
................................................................................
  1311   1354   	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1312   1355   	      | -openbsd* | -solidbsd* \
  1313   1356   	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1314   1357   	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1315   1358   	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1316   1359   	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1317   1360   	      | -chorusos* | -chorusrdb* | -cegcc* \
  1318         -	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
         1361  +	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1319   1362   	      | -mingw32* | -linux-gnu* | -linux-android* \
  1320   1363   	      | -linux-newlib* | -linux-uclibc* \
  1321   1364   	      | -uxpv* | -beos* | -mpeix* | -udk* \
  1322   1365   	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1323   1366   	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1324   1367   	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1325   1368   	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
................................................................................
  1523   1566   		os=-domain
  1524   1567   		;;
  1525   1568   	i386-sun)
  1526   1569   		os=-sunos4.0.2
  1527   1570   		;;
  1528   1571   	m68000-sun)
  1529   1572   		os=-sunos3
  1530         -		# This also exists in the configure program, but was not the
  1531         -		# default.
  1532         -		# os=-sunos4
  1533   1573   		;;
  1534   1574   	m68*-cisco)
  1535   1575   		os=-aout
  1536   1576   		;;
  1537   1577           mep-*)
  1538   1578   		os=-elf
  1539   1579   		;;