Check-in [05ffe94d89]
Overview
Comment:Updated to latest config.guess/config.sub from autoconf (includes musl fixes)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:05ffe94d89ae7ff9679701b3b2138cf431d045a1
User & Date: rkeene on 2016-04-08 16:03:00
Other Links: manifest | tags
Context
2016-04-13
15:32
Updated download program to support old versions of bash check-in: c86d4fcb08 user: rkeene tags: trunk
2016-04-08
16:03
Updated to latest config.guess/config.sub from autoconf (includes musl fixes) check-in: 05ffe94d89 user: rkeene tags: trunk
15:50
Preserve timestamps when copying buildsrc for kitsh check-in: 08115dbde5 user: rkeene tags: trunk
Changes

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

     1      1   #! /bin/sh
     2      2   # Attempt to guess a canonical system name.
     3         -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4         -#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     5         -#   2011, 2012 Free Software Foundation, Inc.
            3  +#   Copyright 1992-2016 Free Software Foundation, Inc.
     6      4   
     7         -timestamp='2012-02-10'
            5  +timestamp='2016-04-02'
     8      6   
     9      7   # This file is free software; you can redistribute it and/or modify it
    10      8   # under the terms of the GNU General Public License as published by
    11         -# the Free Software Foundation; either version 2 of the License, or
            9  +# the Free Software Foundation; either version 3 of the License, or
    12     10   # (at your option) any later version.
    13     11   #
    14     12   # This program is distributed in the hope that it will be useful, but
    15     13   # WITHOUT ANY WARRANTY; without even the implied warranty of
    16     14   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    17     15   # General Public License for more details.
    18     16   #
    19     17   # You should have received a copy of the GNU General Public License
    20     18   # along with this program; if not, see <http://www.gnu.org/licenses/>.
    21     19   #
    22     20   # As a special exception to the GNU General Public License, if you
    23     21   # distribute this file as part of a program that contains a
    24     22   # configuration script generated by Autoconf, you may include it under
    25         -# the same distribution terms that you use for the rest of that program.
    26         -
    27         -
    28         -# Originally written by Per Bothner.  Please send patches (context
    29         -# diff format) to <config-patches@gnu.org> and include a ChangeLog
    30         -# entry.
           23  +# the same distribution terms that you use for the rest of that
           24  +# program.  This Exception is an additional permission under section 7
           25  +# of the GNU General Public License, version 3 ("GPLv3").
    31     26   #
    32         -# This script attempts to guess a canonical system name similar to
    33         -# config.sub.  If it succeeds, it prints the system name on stdout, and
    34         -# exits with 0.  Otherwise, it exits with 1.
           27  +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
    35     28   #
    36     29   # You can get the latest version of this script from:
    37         -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
           30  +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
           31  +#
           32  +# Please send patches to <config-patches@gnu.org>.
           33  +
    38     34   
    39     35   me=`echo "$0" | sed -e 's,.*/,,'`
    40     36   
    41     37   usage="\
    42     38   Usage: $0 [OPTION]
    43     39   
    44     40   Output the configuration name of the system \`$me' is run on.
................................................................................
    50     46   
    51     47   Report bugs and patches to <config-patches@gnu.org>."
    52     48   
    53     49   version="\
    54     50   GNU config.guess ($timestamp)
    55     51   
    56     52   Originally written by Per Bothner.
    57         -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    58         -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
    59         -Free Software Foundation, Inc.
           53  +Copyright 1992-2016 Free Software Foundation, Inc.
    60     54   
    61     55   This is free software; see the source for copying conditions.  There is NO
    62     56   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    63     57   
    64     58   help="
    65     59   Try \`$me --help' for more information."
    66     60   
................................................................................
   133    127   	PATH=$PATH:/.attbin ; export PATH
   134    128   fi
   135    129   
   136    130   UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
   137    131   UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   138    132   UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
   139    133   UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
          134  +
          135  +case "${UNAME_SYSTEM}" in
          136  +Linux|GNU|GNU/*)
          137  +	# If the system lacks a compiler, then just pick glibc.
          138  +	# We could probably try harder.
          139  +	LIBC=gnu
          140  +
          141  +	eval $set_cc_for_build
          142  +	cat <<-EOF > $dummy.c
          143  +	#include <features.h>
          144  +	#if defined(__UCLIBC__)
          145  +	LIBC=uclibc
          146  +	#elif defined(__dietlibc__)
          147  +	LIBC=dietlibc
          148  +	#else
          149  +	LIBC=gnu
          150  +	#endif
          151  +	EOF
          152  +	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
          153  +	;;
          154  +esac
   140    155   
   141    156   # Note: order is significant - the case branches are not exclusive.
   142    157   
   143    158   case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   144    159       *:NetBSD:*:*)
   145    160   	# NetBSD (nbsd) targets should (where applicable) match one or
   146    161   	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
................................................................................
   149    164   	# object file format.  This provides both forward
   150    165   	# compatibility and a consistent mechanism for selecting the
   151    166   	# object file format.
   152    167   	#
   153    168   	# Note: NetBSD doesn't particularly care about the vendor
   154    169   	# portion of the name.  We always set it to "unknown".
   155    170   	sysctl="sysctl -n hw.machine_arch"
   156         -	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
   157         -	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
          171  +	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
          172  +	    /sbin/$sysctl 2>/dev/null || \
          173  +	    /usr/sbin/$sysctl 2>/dev/null || \
          174  +	    echo unknown)`
   158    175   	case "${UNAME_MACHINE_ARCH}" in
   159    176   	    armeb) machine=armeb-unknown ;;
   160    177   	    arm*) machine=arm-unknown ;;
   161    178   	    sh3el) machine=shl-unknown ;;
   162    179   	    sh3eb) machine=sh-unknown ;;
   163    180   	    sh5el) machine=sh5le-unknown ;;
          181  +	    earmv*)
          182  +		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
          183  +		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
          184  +		machine=${arch}${endian}-unknown
          185  +		;;
   164    186   	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
   165    187   	esac
   166    188   	# The Operating System including object format, if it has switched
   167    189   	# to ELF recently, or will in the future.
   168    190   	case "${UNAME_MACHINE_ARCH}" in
   169         -	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
          191  +	    arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
   170    192   		eval $set_cc_for_build
   171    193   		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   172    194   			| grep -q __ELF__
   173    195   		then
   174    196   		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   175    197   		    # Return netbsd for either.  FIX?
   176    198   		    os=netbsd
................................................................................
   177    199   		else
   178    200   		    os=netbsdelf
   179    201   		fi
   180    202   		;;
   181    203   	    *)
   182    204   		os=netbsd
   183    205   		;;
          206  +	esac
          207  +	# Determine ABI tags.
          208  +	case "${UNAME_MACHINE_ARCH}" in
          209  +	    earm*)
          210  +		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
          211  +		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
          212  +		;;
   184    213   	esac
   185    214   	# The OS release
   186    215   	# Debian GNU/NetBSD machines have a different userland, and
   187    216   	# thus, need a distinct triplet. However, they do not need
   188    217   	# kernel version information, so it can be replaced with a
   189    218   	# suitable tag, in the style of linux-gnu.
   190    219   	case "${UNAME_VERSION}" in
   191    220   	    Debian*)
   192    221   		release='-gnu'
   193    222   		;;
   194    223   	    *)
   195         -		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
          224  +		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
   196    225   		;;
   197    226   	esac
   198    227   	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
   199    228   	# contains redundant information, the shorter form:
   200    229   	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
   201         -	echo "${machine}-${os}${release}"
          230  +	echo "${machine}-${os}${release}${abi}"
          231  +	exit ;;
          232  +    *:Bitrig:*:*)
          233  +	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
          234  +	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
   202    235   	exit ;;
   203    236       *:OpenBSD:*:*)
   204    237   	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
   205    238   	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
   206    239   	exit ;;
          240  +    *:LibertyBSD:*:*)
          241  +	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
          242  +	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
          243  +	exit ;;
   207    244       *:ekkoBSD:*:*)
   208    245   	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
   209    246   	exit ;;
   210    247       *:SolidBSD:*:*)
   211    248   	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
   212    249   	exit ;;
   213    250       macppc:MirBSD:*:*)
   214    251   	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
   215    252   	exit ;;
   216    253       *:MirBSD:*:*)
   217    254   	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
   218    255   	exit ;;
          256  +    *:Sortix:*:*)
          257  +	echo ${UNAME_MACHINE}-unknown-sortix
          258  +	exit ;;
   219    259       alpha:OSF1:*:*)
   220    260   	case $UNAME_RELEASE in
   221    261   	*4.0)
   222    262   		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
   223    263   		;;
   224    264   	*5.*)
   225    265   		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
................................................................................
   228    268   	# According to Compaq, /usr/sbin/psrinfo has been available on
   229    269   	# OSF/1 and Tru64 systems produced since 1995.  I hope that
   230    270   	# covers most systems running today.  This code pipes the CPU
   231    271   	# types through head -n 1, so we only detect the type of CPU 0.
   232    272   	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
   233    273   	case "$ALPHA_CPU_TYPE" in
   234    274   	    "EV4 (21064)")
   235         -		UNAME_MACHINE="alpha" ;;
          275  +		UNAME_MACHINE=alpha ;;
   236    276   	    "EV4.5 (21064)")
   237         -		UNAME_MACHINE="alpha" ;;
          277  +		UNAME_MACHINE=alpha ;;
   238    278   	    "LCA4 (21066/21068)")
   239         -		UNAME_MACHINE="alpha" ;;
          279  +		UNAME_MACHINE=alpha ;;
   240    280   	    "EV5 (21164)")
   241         -		UNAME_MACHINE="alphaev5" ;;
          281  +		UNAME_MACHINE=alphaev5 ;;
   242    282   	    "EV5.6 (21164A)")
   243         -		UNAME_MACHINE="alphaev56" ;;
          283  +		UNAME_MACHINE=alphaev56 ;;
   244    284   	    "EV5.6 (21164PC)")
   245         -		UNAME_MACHINE="alphapca56" ;;
          285  +		UNAME_MACHINE=alphapca56 ;;
   246    286   	    "EV5.7 (21164PC)")
   247         -		UNAME_MACHINE="alphapca57" ;;
          287  +		UNAME_MACHINE=alphapca57 ;;
   248    288   	    "EV6 (21264)")
   249         -		UNAME_MACHINE="alphaev6" ;;
          289  +		UNAME_MACHINE=alphaev6 ;;
   250    290   	    "EV6.7 (21264A)")
   251         -		UNAME_MACHINE="alphaev67" ;;
          291  +		UNAME_MACHINE=alphaev67 ;;
   252    292   	    "EV6.8CB (21264C)")
   253         -		UNAME_MACHINE="alphaev68" ;;
          293  +		UNAME_MACHINE=alphaev68 ;;
   254    294   	    "EV6.8AL (21264B)")
   255         -		UNAME_MACHINE="alphaev68" ;;
          295  +		UNAME_MACHINE=alphaev68 ;;
   256    296   	    "EV6.8CX (21264D)")
   257         -		UNAME_MACHINE="alphaev68" ;;
          297  +		UNAME_MACHINE=alphaev68 ;;
   258    298   	    "EV6.9A (21264/EV69A)")
   259         -		UNAME_MACHINE="alphaev69" ;;
          299  +		UNAME_MACHINE=alphaev69 ;;
   260    300   	    "EV7 (21364)")
   261         -		UNAME_MACHINE="alphaev7" ;;
          301  +		UNAME_MACHINE=alphaev7 ;;
   262    302   	    "EV7.9 (21364A)")
   263         -		UNAME_MACHINE="alphaev79" ;;
          303  +		UNAME_MACHINE=alphaev79 ;;
   264    304   	esac
   265    305   	# A Pn.n version is a patched version.
   266    306   	# A Vn.n version is a released version.
   267    307   	# A Tn.n version is a released field test version.
   268    308   	# A Xn.n version is an unreleased experimental baselevel.
   269    309   	# 1.2 uses "1.2" for uname -r.
   270         -	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
          310  +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
   271    311   	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
   272    312   	exitcode=$?
   273    313   	trap '' 0
   274    314   	exit $exitcode ;;
   275    315       Alpha\ *:Windows_NT*:*)
   276    316   	# How do we know it's Interix rather than the generic POSIX subsystem?
   277    317   	# Should we change UNAME_MACHINE based on the output of uname instead
................................................................................
   298    338   	exit ;;
   299    339       *:OS400:*:*)
   300    340   	echo powerpc-ibm-os400
   301    341   	exit ;;
   302    342       arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   303    343   	echo arm-acorn-riscix${UNAME_RELEASE}
   304    344   	exit ;;
   305         -    arm:riscos:*:*|arm:RISCOS:*:*)
          345  +    arm*:riscos:*:*|arm*:RISCOS:*:*)
   306    346   	echo arm-unknown-riscos
   307    347   	exit ;;
   308    348       SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   309    349   	echo hppa1.1-hitachi-hiuxmpp
   310    350   	exit ;;
   311    351       Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   312    352   	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
................................................................................
   336    376   	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   337    377   	exit ;;
   338    378       i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
   339    379   	echo i386-pc-auroraux${UNAME_RELEASE}
   340    380   	exit ;;
   341    381       i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
   342    382   	eval $set_cc_for_build
   343         -	SUN_ARCH="i386"
          383  +	SUN_ARCH=i386
   344    384   	# If there is a compiler, see if it is configured for 64-bit objects.
   345    385   	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
   346    386   	# This test works for both compilers.
   347         -	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
          387  +	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
   348    388   	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
   349         -		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
          389  +		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
   350    390   		grep IS_64BIT_ARCH >/dev/null
   351    391   	    then
   352         -		SUN_ARCH="x86_64"
          392  +		SUN_ARCH=x86_64
   353    393   	    fi
   354    394   	fi
   355    395   	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   356    396   	exit ;;
   357    397       sun4*:SunOS:6*:*)
   358    398   	# According to config.sub, this is the proper way to canonicalize
   359    399   	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
................................................................................
   370    410   	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   371    411   	exit ;;
   372    412       sun3*:SunOS:*:*)
   373    413   	echo m68k-sun-sunos${UNAME_RELEASE}
   374    414   	exit ;;
   375    415       sun*:*:4.2BSD:*)
   376    416   	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   377         -	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
          417  +	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
   378    418   	case "`/bin/arch`" in
   379    419   	    sun3)
   380    420   		echo m68k-sun-sunos${UNAME_RELEASE}
   381    421   		;;
   382    422   	    sun4)
   383    423   		echo sparc-sun-sunos${UNAME_RELEASE}
   384    424   		;;
................................................................................
   556    596       *:AIX:*:[4567])
   557    597   	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
   558    598   	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   559    599   		IBM_ARCH=rs6000
   560    600   	else
   561    601   		IBM_ARCH=powerpc
   562    602   	fi
   563         -	if [ -x /usr/bin/oslevel ] ; then
   564         -		IBM_REV=`/usr/bin/oslevel`
          603  +	if [ -x /usr/bin/lslpp ] ; then
          604  +		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
          605  +			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
   565    606   	else
   566    607   		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   567    608   	fi
   568    609   	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   569    610   	exit ;;
   570    611       *:AIX:*:*)
   571    612   	echo rs6000-ibm-aix
................................................................................
   594    635   	    9000/31? )            HP_ARCH=m68000 ;;
   595    636   	    9000/[34]?? )         HP_ARCH=m68k ;;
   596    637   	    9000/[678][0-9][0-9])
   597    638   		if [ -x /usr/bin/getconf ]; then
   598    639   		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
   599    640   		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
   600    641   		    case "${sc_cpu_version}" in
   601         -		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
   602         -		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
          642  +		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
          643  +		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
   603    644   		      532)                      # CPU_PA_RISC2_0
   604    645   			case "${sc_kernel_bits}" in
   605         -			  32) HP_ARCH="hppa2.0n" ;;
   606         -			  64) HP_ARCH="hppa2.0w" ;;
   607         -			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
          646  +			  32) HP_ARCH=hppa2.0n ;;
          647  +			  64) HP_ARCH=hppa2.0w ;;
          648  +			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
   608    649   			esac ;;
   609    650   		    esac
   610    651   		fi
   611    652   		if [ "${HP_ARCH}" = "" ]; then
   612    653   		    eval $set_cc_for_build
   613    654   		    sed 's/^		//' << EOF >$dummy.c
   614    655   
................................................................................
   639    680   			    puts ("hppa2.0"); break;
   640    681   		#endif
   641    682   			default: puts ("hppa1.0"); break;
   642    683   			}
   643    684   		    exit (0);
   644    685   		}
   645    686   EOF
   646         -		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
          687  +		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
   647    688   		    test -z "$HP_ARCH" && HP_ARCH=hppa
   648    689   		fi ;;
   649    690   	esac
   650         -	if [ ${HP_ARCH} = "hppa2.0w" ]
          691  +	if [ ${HP_ARCH} = hppa2.0w ]
   651    692   	then
   652    693   	    eval $set_cc_for_build
   653    694   
   654    695   	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
   655    696   	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
   656    697   	    # generating 64-bit code.  GNU and HP use different nomenclature:
   657    698   	    #
   658    699   	    # $ CC_FOR_BUILD=cc ./config.guess
   659    700   	    # => hppa2.0w-hp-hpux11.23
   660    701   	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   661    702   	    # => hppa64-hp-hpux11.23
   662    703   
   663         -	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
          704  +	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
   664    705   		grep -q __LP64__
   665    706   	    then
   666         -		HP_ARCH="hppa2.0w"
          707  +		HP_ARCH=hppa2.0w
   667    708   	    else
   668         -		HP_ARCH="hppa64"
          709  +		HP_ARCH=hppa64
   669    710   	    fi
   670    711   	fi
   671    712   	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   672    713   	exit ;;
   673    714       ia64:HP-UX:*:*)
   674    715   	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   675    716   	echo ia64-hp-hpux${HPUX_REV}
................................................................................
   766    807       CRAY*SV1:*:*:*)
   767    808   	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   768    809   	exit ;;
   769    810       *:UNICOS/mp:*:*)
   770    811   	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   771    812   	exit ;;
   772    813       F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   773         -	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   774         -	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
          814  +	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
          815  +	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
   775    816   	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   776    817   	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   777    818   	exit ;;
   778    819       5000:UNIX_System_V:4.*:*)
   779         -	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   780         -	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
          820  +	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
          821  +	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
   781    822   	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   782    823   	exit ;;
   783    824       i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   784    825   	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   785    826   	exit ;;
   786    827       sparc*:BSD/OS:*:*)
   787    828   	echo sparc-unknown-bsdi${UNAME_RELEASE}
................................................................................
   797    838   	    *)
   798    839   		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   799    840   	esac
   800    841   	exit ;;
   801    842       i*:CYGWIN*:*)
   802    843   	echo ${UNAME_MACHINE}-pc-cygwin
   803    844   	exit ;;
          845  +    *:MINGW64*:*)
          846  +	echo ${UNAME_MACHINE}-pc-mingw64
          847  +	exit ;;
   804    848       *:MINGW*:*)
   805    849   	echo ${UNAME_MACHINE}-pc-mingw32
   806    850   	exit ;;
   807         -    i*:MSYS*:*)
          851  +    *:MSYS*:*)
   808    852   	echo ${UNAME_MACHINE}-pc-msys
   809    853   	exit ;;
   810    854       i*:windows32*:*)
   811    855   	# uname -m includes "-pc" on this system.
   812    856   	echo ${UNAME_MACHINE}-mingw32
   813    857   	exit ;;
   814    858       i*:PW*:*)
................................................................................
   848    892   	echo powerpcle-unknown-cygwin
   849    893   	exit ;;
   850    894       prep*:SunOS:5.*:*)
   851    895   	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   852    896   	exit ;;
   853    897       *:GNU:*:*)
   854    898   	# the GNU system
   855         -	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
          899  +	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   856    900   	exit ;;
   857    901       *:GNU/*:*:*)
   858    902   	# other systems with GNU libc and userland
   859         -	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
          903  +	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
   860    904   	exit ;;
   861    905       i*86:Minix:*:*)
   862    906   	echo ${UNAME_MACHINE}-pc-minix
   863    907   	exit ;;
   864    908       aarch64:Linux:*:*)
   865         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          909  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   866    910   	exit ;;
   867    911       aarch64_be:Linux:*:*)
   868    912   	UNAME_MACHINE=aarch64_be
   869         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          913  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   870    914   	exit ;;
   871    915       alpha:Linux:*:*)
   872    916   	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   873    917   	  EV5)   UNAME_MACHINE=alphaev5 ;;
   874    918   	  EV56)  UNAME_MACHINE=alphaev56 ;;
   875    919   	  PCA56) UNAME_MACHINE=alphapca56 ;;
   876    920   	  PCA57) UNAME_MACHINE=alphapca56 ;;
   877    921   	  EV6)   UNAME_MACHINE=alphaev6 ;;
   878    922   	  EV67)  UNAME_MACHINE=alphaev67 ;;
   879    923   	  EV68*) UNAME_MACHINE=alphaev68 ;;
   880    924   	esac
   881    925   	objdump --private-headers /bin/sh | grep -q ld.so.1
   882         -	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   883         -	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
          926  +	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
          927  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
          928  +	exit ;;
          929  +    arc:Linux:*:* | arceb:Linux:*:*)
          930  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   884    931   	exit ;;
   885    932       arm*:Linux:*:*)
   886    933   	eval $set_cc_for_build
   887    934   	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
   888    935   	    | grep -q __ARM_EABI__
   889    936   	then
   890         -	    echo ${UNAME_MACHINE}-unknown-linux-gnu
          937  +	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   891    938   	else
   892    939   	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
   893    940   		| grep -q __ARM_PCS_VFP
   894    941   	    then
   895         -		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
          942  +		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
   896    943   	    else
   897         -		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
          944  +		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
   898    945   	    fi
   899    946   	fi
   900    947   	exit ;;
   901    948       avr32*:Linux:*:*)
   902         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          949  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   903    950   	exit ;;
   904    951       cris:Linux:*:*)
   905         -	echo ${UNAME_MACHINE}-axis-linux-gnu
          952  +	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
   906    953   	exit ;;
   907    954       crisv32:Linux:*:*)
   908         -	echo ${UNAME_MACHINE}-axis-linux-gnu
          955  +	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
          956  +	exit ;;
          957  +    e2k:Linux:*:*)
          958  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   909    959   	exit ;;
   910    960       frv:Linux:*:*)
   911         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          961  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   912    962   	exit ;;
   913    963       hexagon:Linux:*:*)
   914         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          964  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   915    965   	exit ;;
   916    966       i*86:Linux:*:*)
   917         -	LIBC=gnu
   918         -	eval $set_cc_for_build
   919         -	sed 's/^	//' << EOF >$dummy.c
   920         -	#ifdef __dietlibc__
   921         -	LIBC=dietlibc
   922         -	#endif
   923         -EOF
   924         -	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
   925         -	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
          967  +	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
   926    968   	exit ;;
   927    969       ia64:Linux:*:*)
   928         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          970  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
          971  +	exit ;;
          972  +    k1om:Linux:*:*)
          973  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   929    974   	exit ;;
   930    975       m32r*:Linux:*:*)
   931         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          976  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   932    977   	exit ;;
   933    978       m68*:Linux:*:*)
   934         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
          979  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   935    980   	exit ;;
   936    981       mips:Linux:*:* | mips64:Linux:*:*)
   937    982   	eval $set_cc_for_build
   938    983   	sed 's/^	//' << EOF >$dummy.c
   939    984   	#undef CPU
   940    985   	#undef ${UNAME_MACHINE}
   941    986   	#undef ${UNAME_MACHINE}el
................................................................................
   946    991   	CPU=${UNAME_MACHINE}
   947    992   	#else
   948    993   	CPU=
   949    994   	#endif
   950    995   	#endif
   951    996   EOF
   952    997   	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
   953         -	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
          998  +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
   954    999   	;;
   955         -    or32:Linux:*:*)
   956         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1000  +    openrisc*:Linux:*:*)
         1001  +	echo or1k-unknown-linux-${LIBC}
         1002  +	exit ;;
         1003  +    or32:Linux:*:* | or1k*:Linux:*:*)
         1004  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   957   1005   	exit ;;
   958   1006       padre:Linux:*:*)
   959         -	echo sparc-unknown-linux-gnu
         1007  +	echo sparc-unknown-linux-${LIBC}
   960   1008   	exit ;;
   961   1009       parisc64:Linux:*:* | hppa64:Linux:*:*)
   962         -	echo hppa64-unknown-linux-gnu
         1010  +	echo hppa64-unknown-linux-${LIBC}
   963   1011   	exit ;;
   964   1012       parisc:Linux:*:* | hppa:Linux:*:*)
   965   1013   	# Look for CPU level
   966   1014   	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   967         -	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   968         -	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   969         -	  *)    echo hppa-unknown-linux-gnu ;;
         1015  +	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
         1016  +	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
         1017  +	  *)    echo hppa-unknown-linux-${LIBC} ;;
   970   1018   	esac
   971   1019   	exit ;;
   972   1020       ppc64:Linux:*:*)
   973         -	echo powerpc64-unknown-linux-gnu
         1021  +	echo powerpc64-unknown-linux-${LIBC}
   974   1022   	exit ;;
   975   1023       ppc:Linux:*:*)
   976         -	echo powerpc-unknown-linux-gnu
         1024  +	echo powerpc-unknown-linux-${LIBC}
         1025  +	exit ;;
         1026  +    ppc64le:Linux:*:*)
         1027  +	echo powerpc64le-unknown-linux-${LIBC}
         1028  +	exit ;;
         1029  +    ppcle:Linux:*:*)
         1030  +	echo powerpcle-unknown-linux-${LIBC}
   977   1031   	exit ;;
   978   1032       s390:Linux:*:* | s390x:Linux:*:*)
   979         -	echo ${UNAME_MACHINE}-ibm-linux
         1033  +	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
   980   1034   	exit ;;
   981   1035       sh64*:Linux:*:*)
   982         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1036  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   983   1037   	exit ;;
   984   1038       sh*:Linux:*:*)
   985         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1039  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   986   1040   	exit ;;
   987   1041       sparc:Linux:*:* | sparc64:Linux:*:*)
   988         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1042  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   989   1043   	exit ;;
   990   1044       tile*:Linux:*:*)
   991         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1045  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
   992   1046   	exit ;;
   993   1047       vax:Linux:*:*)
   994         -	echo ${UNAME_MACHINE}-dec-linux-gnu
         1048  +	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
   995   1049   	exit ;;
   996   1050       x86_64:Linux:*:*)
   997         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1051  +	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
   998   1052   	exit ;;
   999   1053       xtensa*:Linux:*:*)
  1000         -	echo ${UNAME_MACHINE}-unknown-linux-gnu
         1054  +	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1001   1055   	exit ;;
  1002   1056       i*86:DYNIX/ptx:4*:*)
  1003   1057   	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  1004   1058   	# earlier versions are messed up and put the nodename in both
  1005   1059   	# sysname and nodename.
  1006   1060   	echo i386-sequent-sysv4
  1007   1061   	exit ;;
................................................................................
  1069   1123   	fi
  1070   1124   	exit ;;
  1071   1125       pc:*:*:*)
  1072   1126   	# Left here for compatibility:
  1073   1127   	# uname -m prints for DJGPP always 'pc', but it prints nothing about
  1074   1128   	# the processor, so we play safe by assuming i586.
  1075   1129   	# Note: whatever this is, it MUST be the same as what config.sub
  1076         -	# prints for the "djgpp" host, or else GDB configury will decide that
         1130  +	# prints for the "djgpp" host, or else GDB configure will decide that
  1077   1131   	# this is a cross-build.
  1078   1132   	echo i586-pc-msdosdjgpp
  1079   1133   	exit ;;
  1080   1134       Intel:Mach:3*:*)
  1081   1135   	echo i386-pc-mach3
  1082   1136   	exit ;;
  1083   1137       paragon:*:*:*)
................................................................................
  1197   1251   	exit ;;
  1198   1252       BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  1199   1253   	echo i586-pc-beos
  1200   1254   	exit ;;
  1201   1255       BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
  1202   1256   	echo i586-pc-haiku
  1203   1257   	exit ;;
         1258  +    x86_64:Haiku:*:*)
         1259  +	echo x86_64-unknown-haiku
         1260  +	exit ;;
  1204   1261       SX-4:SUPER-UX:*:*)
  1205   1262   	echo sx4-nec-superux${UNAME_RELEASE}
  1206   1263   	exit ;;
  1207   1264       SX-5:SUPER-UX:*:*)
  1208   1265   	echo sx5-nec-superux${UNAME_RELEASE}
  1209   1266   	exit ;;
  1210   1267       SX-6:SUPER-UX:*:*)
................................................................................
  1215   1272   	exit ;;
  1216   1273       SX-8:SUPER-UX:*:*)
  1217   1274   	echo sx8-nec-superux${UNAME_RELEASE}
  1218   1275   	exit ;;
  1219   1276       SX-8R:SUPER-UX:*:*)
  1220   1277   	echo sx8r-nec-superux${UNAME_RELEASE}
  1221   1278   	exit ;;
         1279  +    SX-ACE:SUPER-UX:*:*)
         1280  +	echo sxace-nec-superux${UNAME_RELEASE}
         1281  +	exit ;;
  1222   1282       Power*:Rhapsody:*:*)
  1223   1283   	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1224   1284   	exit ;;
  1225   1285       *:Rhapsody:*:*)
  1226   1286   	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1227   1287   	exit ;;
  1228   1288       *:Darwin:*:*)
  1229   1289   	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1230         -	case $UNAME_PROCESSOR in
  1231         -	    i386)
  1232         -		eval $set_cc_for_build
  1233         -		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  1234         -		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  1235         -		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  1236         -		      grep IS_64BIT_ARCH >/dev/null
  1237         -		  then
  1238         -		      UNAME_PROCESSOR="x86_64"
  1239         -		  fi
  1240         -		fi ;;
  1241         -	    unknown) UNAME_PROCESSOR=powerpc ;;
  1242         -	esac
         1290  +	eval $set_cc_for_build
         1291  +	if test "$UNAME_PROCESSOR" = unknown ; then
         1292  +	    UNAME_PROCESSOR=powerpc
         1293  +	fi
         1294  +	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
         1295  +	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
         1296  +		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
         1297  +		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
         1298  +		    grep IS_64BIT_ARCH >/dev/null
         1299  +		then
         1300  +		    case $UNAME_PROCESSOR in
         1301  +			i386) UNAME_PROCESSOR=x86_64 ;;
         1302  +			powerpc) UNAME_PROCESSOR=powerpc64 ;;
         1303  +		    esac
         1304  +		fi
         1305  +	    fi
         1306  +	elif test "$UNAME_PROCESSOR" = i386 ; then
         1307  +	    # Avoid executing cc on OS X 10.9, as it ships with a stub
         1308  +	    # that puts up a graphical alert prompting to install
         1309  +	    # developer tools.  Any system running Mac OS X 10.7 or
         1310  +	    # later (Darwin 11 and later) is required to have a 64-bit
         1311  +	    # processor. This is not true of the ARM version of Darwin
         1312  +	    # that Apple uses in portable devices.
         1313  +	    UNAME_PROCESSOR=x86_64
         1314  +	fi
  1243   1315   	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1244   1316   	exit ;;
  1245   1317       *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1246   1318   	UNAME_PROCESSOR=`uname -p`
  1247         -	if test "$UNAME_PROCESSOR" = "x86"; then
         1319  +	if test "$UNAME_PROCESSOR" = x86; then
  1248   1320   		UNAME_PROCESSOR=i386
  1249   1321   		UNAME_MACHINE=pc
  1250   1322   	fi
  1251   1323   	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1252   1324   	exit ;;
  1253   1325       *:QNX:*:4*)
  1254   1326   	echo i386-pc-qnx
  1255   1327   	exit ;;
  1256   1328       NEO-?:NONSTOP_KERNEL:*:*)
  1257   1329   	echo neo-tandem-nsk${UNAME_RELEASE}
  1258   1330   	exit ;;
  1259         -    NSE-?:NONSTOP_KERNEL:*:*)
         1331  +    NSE-*:NONSTOP_KERNEL:*:*)
  1260   1332   	echo nse-tandem-nsk${UNAME_RELEASE}
  1261   1333   	exit ;;
  1262   1334       NSR-?:NONSTOP_KERNEL:*:*)
  1263   1335   	echo nsr-tandem-nsk${UNAME_RELEASE}
  1264   1336   	exit ;;
  1265   1337       *:NonStop-UX:*:*)
  1266   1338   	echo mips-compaq-nonstopux
................................................................................
  1271   1343       DS/*:UNIX_System_V:*:*)
  1272   1344   	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1273   1345   	exit ;;
  1274   1346       *:Plan9:*:*)
  1275   1347   	# "uname -m" is not consistent, so use $cputype instead. 386
  1276   1348   	# is converted to i386 for consistency with other x86
  1277   1349   	# operating systems.
  1278         -	if test "$cputype" = "386"; then
         1350  +	if test "$cputype" = 386; then
  1279   1351   	    UNAME_MACHINE=i386
  1280   1352   	else
  1281   1353   	    UNAME_MACHINE="$cputype"
  1282   1354   	fi
  1283   1355   	echo ${UNAME_MACHINE}-unknown-plan9
  1284   1356   	exit ;;
  1285   1357       *:TOPS-10:*:*)
................................................................................
  1313   1385   	    I*) echo ia64-dec-vms ; exit ;;
  1314   1386   	    V*) echo vax-dec-vms ; exit ;;
  1315   1387   	esac ;;
  1316   1388       *:XENIX:*:SysV)
  1317   1389   	echo i386-pc-xenix
  1318   1390   	exit ;;
  1319   1391       i*86:skyos:*:*)
  1320         -	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
         1392  +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
  1321   1393   	exit ;;
  1322   1394       i*86:rdos:*:*)
  1323   1395   	echo ${UNAME_MACHINE}-pc-rdos
  1324   1396   	exit ;;
  1325   1397       i*86:AROS:*:*)
  1326   1398   	echo ${UNAME_MACHINE}-pc-aros
  1327   1399   	exit ;;
  1328   1400       x86_64:VMkernel:*:*)
  1329   1401   	echo ${UNAME_MACHINE}-unknown-esx
  1330   1402   	exit ;;
  1331         -esac
  1332         -
  1333         -#echo '(No uname command or uname output not recognized.)' 1>&2
  1334         -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1335         -
  1336         -eval $set_cc_for_build
  1337         -cat >$dummy.c <<EOF
  1338         -#ifdef _SEQUENT_
  1339         -# include <sys/types.h>
  1340         -# include <sys/utsname.h>
  1341         -#endif
  1342         -main ()
  1343         -{
  1344         -#if defined (sony)
  1345         -#if defined (MIPSEB)
  1346         -  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  1347         -     I don't know....  */
  1348         -  printf ("mips-sony-bsd\n"); exit (0);
  1349         -#else
  1350         -#include <sys/param.h>
  1351         -  printf ("m68k-sony-newsos%s\n",
  1352         -#ifdef NEWSOS4
  1353         -	"4"
  1354         -#else
  1355         -	""
  1356         -#endif
  1357         -	); exit (0);
  1358         -#endif
  1359         -#endif
  1360         -
  1361         -#if defined (__arm) && defined (__acorn) && defined (__unix)
  1362         -  printf ("arm-acorn-riscix\n"); exit (0);
  1363         -#endif
  1364         -
  1365         -#if defined (hp300) && !defined (hpux)
  1366         -  printf ("m68k-hp-bsd\n"); exit (0);
  1367         -#endif
  1368         -
  1369         -#if defined (NeXT)
  1370         -#if !defined (__ARCHITECTURE__)
  1371         -#define __ARCHITECTURE__ "m68k"
  1372         -#endif
  1373         -  int version;
  1374         -  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1375         -  if (version < 4)
  1376         -    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1377         -  else
  1378         -    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1379         -  exit (0);
  1380         -#endif
  1381         -
  1382         -#if defined (MULTIMAX) || defined (n16)
  1383         -#if defined (UMAXV)
  1384         -  printf ("ns32k-encore-sysv\n"); exit (0);
  1385         -#else
  1386         -#if defined (CMU)
  1387         -  printf ("ns32k-encore-mach\n"); exit (0);
  1388         -#else
  1389         -  printf ("ns32k-encore-bsd\n"); exit (0);
  1390         -#endif
  1391         -#endif
  1392         -#endif
  1393         -
  1394         -#if defined (__386BSD__)
  1395         -  printf ("i386-pc-bsd\n"); exit (0);
  1396         -#endif
  1397         -
  1398         -#if defined (sequent)
  1399         -#if defined (i386)
  1400         -  printf ("i386-sequent-dynix\n"); exit (0);
  1401         -#endif
  1402         -#if defined (ns32000)
  1403         -  printf ("ns32k-sequent-dynix\n"); exit (0);
  1404         -#endif
  1405         -#endif
  1406         -
  1407         -#if defined (_SEQUENT_)
  1408         -    struct utsname un;
  1409         -
  1410         -    uname(&un);
  1411         -
  1412         -    if (strncmp(un.version, "V2", 2) == 0) {
  1413         -	printf ("i386-sequent-ptx2\n"); exit (0);
  1414         -    }
  1415         -    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1416         -	printf ("i386-sequent-ptx1\n"); exit (0);
  1417         -    }
  1418         -    printf ("i386-sequent-ptx\n"); exit (0);
  1419         -
  1420         -#endif
  1421         -
  1422         -#if defined (vax)
  1423         -# if !defined (ultrix)
  1424         -#  include <sys/param.h>
  1425         -#  if defined (BSD)
  1426         -#   if BSD == 43
  1427         -      printf ("vax-dec-bsd4.3\n"); exit (0);
  1428         -#   else
  1429         -#    if BSD == 199006
  1430         -      printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1431         -#    else
  1432         -      printf ("vax-dec-bsd\n"); exit (0);
  1433         -#    endif
  1434         -#   endif
  1435         -#  else
  1436         -    printf ("vax-dec-bsd\n"); exit (0);
  1437         -#  endif
  1438         -# else
  1439         -    printf ("vax-dec-ultrix\n"); exit (0);
  1440         -# endif
  1441         -#endif
  1442         -
  1443         -#if defined (alliant) && defined (i860)
  1444         -  printf ("i860-alliant-bsd\n"); exit (0);
  1445         -#endif
  1446         -
  1447         -  exit (1);
  1448         -}
  1449         -EOF
  1450         -
  1451         -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1452         -	{ echo "$SYSTEM_NAME"; exit; }
  1453         -
  1454         -# Apollos put the system type in the environment.
  1455         -
  1456         -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1457         -
  1458         -# Convex versions that predate uname can use getsysinfo(1)
  1459         -
  1460         -if [ -x /usr/convex/getsysinfo ]
  1461         -then
  1462         -    case `getsysinfo -f cpu_type` in
  1463         -    c1*)
  1464         -	echo c1-convex-bsd
         1403  +    amd64:Isilon\ OneFS:*:*)
         1404  +	echo x86_64-unknown-onefs
  1465   1405   	exit ;;
  1466         -    c2*)
  1467         -	if getsysinfo -f scalar_acc
  1468         -	then echo c32-convex-bsd
  1469         -	else echo c2-convex-bsd
  1470         -	fi
  1471         -	exit ;;
  1472         -    c34*)
  1473         -	echo c34-convex-bsd
  1474         -	exit ;;
  1475         -    c38*)
  1476         -	echo c38-convex-bsd
  1477         -	exit ;;
  1478         -    c4*)
  1479         -	echo c4-convex-bsd
  1480         -	exit ;;
  1481         -    esac
  1482         -fi
         1406  +esac
  1483   1407   
  1484   1408   cat >&2 <<EOF
  1485   1409   $0: unable to guess system type
  1486   1410   
  1487   1411   This script, last modified $timestamp, has failed to recognize
  1488   1412   the operating system you are using. It is advised that you
  1489   1413   download the most up to date version of the config scripts from
  1490   1414   
  1491         -  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
         1415  +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  1492   1416   and
  1493         -  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
         1417  +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  1494   1418   
  1495   1419   If the version you run ($0) is already up to date, please
  1496   1420   send the following data and any information you think might be
  1497   1421   pertinent to <config-patches@gnu.org> in order to provide the needed
  1498   1422   information to handle your system.
  1499   1423   
  1500   1424   config.guess timestamp = $timestamp

Modified kitsh/buildsrc/kitsh-0.0/config.sub from [c46c874230] to [7d66e32bb3].

     1      1   #! /bin/sh
     2      2   # Configuration validation subroutine script.
     3         -#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4         -#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     5         -#   2011, 2012 Free Software Foundation, Inc.
            3  +#   Copyright 1992-2016 Free Software Foundation, Inc.
     6      4   
     7         -timestamp='2012-04-18'
            5  +timestamp='2016-03-30'
     8      6   
     9         -# This file is (in principle) common to ALL GNU software.
    10         -# The presence of a machine in this file suggests that SOME GNU software
    11         -# can handle that machine.  It does not imply ALL GNU software can.
    12         -#
    13         -# This file is free software; you can redistribute it and/or modify
    14         -# it under the terms of the GNU General Public License as published by
    15         -# the Free Software Foundation; either version 2 of the License, or
            7  +# This file is free software; you can redistribute it and/or modify it
            8  +# under the terms of the GNU General Public License as published by
            9  +# the Free Software Foundation; either version 3 of the License, or
    16     10   # (at your option) any later version.
    17     11   #
    18         -# This program is distributed in the hope that it will be useful,
    19         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    20         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21         -# GNU General Public License for more details.
           12  +# This program is distributed in the hope that it will be useful, but
           13  +# WITHOUT ANY WARRANTY; without even the implied warranty of
           14  +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
           15  +# General Public License for more details.
    22     16   #
    23     17   # You should have received a copy of the GNU General Public License
    24     18   # along with this program; if not, see <http://www.gnu.org/licenses/>.
    25     19   #
    26     20   # As a special exception to the GNU General Public License, if you
    27     21   # distribute this file as part of a program that contains a
    28     22   # configuration script generated by Autoconf, you may include it under
    29         -# the same distribution terms that you use for the rest of that program.
           23  +# the same distribution terms that you use for the rest of that
           24  +# program.  This Exception is an additional permission under section 7
           25  +# of the GNU General Public License, version 3 ("GPLv3").
    30     26   
    31     27   
    32         -# Please send patches to <config-patches@gnu.org>.  Submit a context
    33         -# diff and a properly formatted GNU ChangeLog entry.
           28  +# Please send patches to <config-patches@gnu.org>.
    34     29   #
    35     30   # Configuration subroutine to validate and canonicalize a configuration type.
    36     31   # Supply the specified configuration type as an argument.
    37     32   # If it is invalid, we print an error message on stderr and exit with code 1.
    38     33   # Otherwise, we print the canonical config type on stdout and succeed.
    39     34   
    40     35   # You can get the latest version of this script from:
    41         -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
           36  +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
    42     37   
    43     38   # This file is supposed to be the same for all GNU packages
    44     39   # and recognize all the CPU types, system types and aliases
    45     40   # that are meaningful with *any* GNU software.
    46     41   # Each package is responsible for reporting which valid configurations
    47     42   # it does not support.  The user should be able to distinguish
    48     43   # a failure to support a valid configuration from a meaningless
................................................................................
    54     49   # or in some cases, the newer four-part form:
    55     50   #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    56     51   # It is wrong to echo any other type of specification.
    57     52   
    58     53   me=`echo "$0" | sed -e 's,.*/,,'`
    59     54   
    60     55   usage="\
    61         -Usage: $0 [OPTION] CPU-MFR-OPSYS
    62         -       $0 [OPTION] ALIAS
           56  +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
    63     57   
    64     58   Canonicalize a configuration name.
    65     59   
    66     60   Operation modes:
    67     61     -h, --help         print this help, then exit
    68     62     -t, --time-stamp   print date of last modification, then exit
    69     63     -v, --version      print version number, then exit
    70     64   
    71     65   Report bugs and patches to <config-patches@gnu.org>."
    72     66   
    73     67   version="\
    74     68   GNU config.sub ($timestamp)
    75     69   
    76         -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    77         -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
    78         -Free Software Foundation, Inc.
           70  +Copyright 1992-2016 Free Software Foundation, Inc.
    79     71   
    80     72   This is free software; see the source for copying conditions.  There is NO
    81     73   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    82     74   
    83     75   help="
    84     76   Try \`$me --help' for more information."
    85     77   
................................................................................
   118    110       exit 1;;
   119    111   esac
   120    112   
   121    113   # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   122    114   # Here we must recognize all the valid KERNEL-OS combinations.
   123    115   maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   124    116   case $maybe_os in
   125         -  nto-qnx* | linux-gnu* | linux-musl | linux-android* | linux-dietlibc | linux-newlib* | \
   126         -  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
   127         -  knetbsd*-gnu* | netbsd*-gnu* | \
          117  +  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
          118  +  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
          119  +  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
   128    120     kopensolaris*-gnu* | \
   129    121     storm-chaos* | os2-emx* | rtmk-nova*)
   130    122       os=-$maybe_os
   131    123       basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   132    124       ;;
   133    125     android-linux)
   134    126       os=-linux-android
................................................................................
   152    144   		;;
   153    145   	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
   154    146   	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
   155    147   	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
   156    148   	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   157    149   	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   158    150   	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   159         -	-apple | -axis | -knuth | -cray | -microblaze)
          151  +	-apple | -axis | -knuth | -cray | -microblaze*)
   160    152   		os=
   161    153   		basic_machine=$1
   162    154   		;;
   163    155   	-bluegene*)
   164    156   		os=-cnk
   165    157   		;;
   166    158   	-sim | -cisco | -oki | -wec | -winbond)
................................................................................
   255    247   	# Some are omitted here because they have special meanings below.
   256    248   	1750a | 580 \
   257    249   	| a29k \
   258    250   	| aarch64 | aarch64_be \
   259    251   	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   260    252   	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   261    253   	| am33_2.0 \
   262         -	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
   263         -        | be32 | be64 \
          254  +	| arc | arceb \
          255  +	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
          256  +	| avr | avr32 \
          257  +	| ba \
          258  +	| be32 | be64 \
   264    259   	| bfin \
   265         -	| c4x | clipper \
          260  +	| c4x | c8051 | clipper \
   266    261   	| d10v | d30v | dlx | dsp16xx \
   267         -	| epiphany \
   268         -	| fido | fr30 | frv \
          262  +	| e2k | epiphany \
          263  +	| fido | fr30 | frv | ft32 \
   269    264   	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   270    265   	| hexagon \
   271    266   	| i370 | i860 | i960 | ia64 \
   272    267   	| ip2k | iq2000 \
          268  +	| k1om \
   273    269   	| le32 | le64 \
   274    270   	| lm32 \
   275    271   	| m32c | m32r | m32rle | m68000 | m68k | m88k \
   276         -	| maxq | mb | microblaze | mcore | mep | metag \
          272  +	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
   277    273   	| mips | mipsbe | mipseb | mipsel | mipsle \
   278    274   	| mips16 \
   279    275   	| mips64 | mips64el \
   280    276   	| mips64octeon | mips64octeonel \
   281    277   	| mips64orion | mips64orionel \
   282    278   	| mips64r5900 | mips64r5900el \
   283    279   	| mips64vr | mips64vrel \
   284    280   	| mips64vr4100 | mips64vr4100el \
   285    281   	| mips64vr4300 | mips64vr4300el \
   286    282   	| mips64vr5000 | mips64vr5000el \
   287    283   	| mips64vr5900 | mips64vr5900el \
   288    284   	| mipsisa32 | mipsisa32el \
   289    285   	| mipsisa32r2 | mipsisa32r2el \
          286  +	| mipsisa32r6 | mipsisa32r6el \
   290    287   	| mipsisa64 | mipsisa64el \
   291    288   	| mipsisa64r2 | mipsisa64r2el \
          289  +	| mipsisa64r6 | mipsisa64r6el \
   292    290   	| mipsisa64sb1 | mipsisa64sb1el \
   293    291   	| mipsisa64sr71k | mipsisa64sr71kel \
          292  +	| mipsr5900 | mipsr5900el \
   294    293   	| mipstx39 | mipstx39el \
   295    294   	| mn10200 | mn10300 \
   296    295   	| moxie \
   297    296   	| mt \
   298    297   	| msp430 \
   299    298   	| nds32 | nds32le | nds32be \
   300         -	| nios | nios2 \
          299  +	| nios | nios2 | nios2eb | nios2el \
   301    300   	| ns16k | ns32k \
   302         -	| open8 \
   303         -	| or32 \
          301  +	| open8 | or1k | or1knd | or32 \
   304    302   	| pdp10 | pdp11 | pj | pjl \
   305    303   	| powerpc | powerpc64 | powerpc64le | powerpcle \
   306    304   	| pyramid \
          305  +	| riscv32 | riscv64 \
   307    306   	| rl78 | rx \
   308    307   	| score \
   309         -	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
          308  +	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
   310    309   	| sh64 | sh64le \
   311    310   	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   312    311   	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   313    312   	| spu \
   314    313   	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
   315    314   	| ubicom32 \
   316    315   	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
          316  +	| visium \
   317    317   	| we32k \
   318    318   	| x86 | xc16x | xstormy16 | xtensa \
   319    319   	| z8k | z80)
   320    320   		basic_machine=$basic_machine-unknown
   321    321   		;;
   322    322   	c54x)
   323    323   		basic_machine=tic54x-unknown
................................................................................
   324    324   		;;
   325    325   	c55x)
   326    326   		basic_machine=tic55x-unknown
   327    327   		;;
   328    328   	c6x)
   329    329   		basic_machine=tic6x-unknown
   330    330   		;;
   331         -	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
          331  +	leon|leon[3-9])
          332  +		basic_machine=sparc-$basic_machine
          333  +		;;
          334  +	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
   332    335   		basic_machine=$basic_machine-unknown
   333    336   		os=-none
   334    337   		;;
   335    338   	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   336    339   		;;
   337    340   	ms1)
   338    341   		basic_machine=mt-unknown
................................................................................
   366    369   		;;
   367    370   	# Recognize the basic CPU types with company name.
   368    371   	580-* \
   369    372   	| a29k-* \
   370    373   	| aarch64-* | aarch64_be-* \
   371    374   	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   372    375   	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   373         -	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
          376  +	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
   374    377   	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   375    378   	| avr-* | avr32-* \
          379  +	| ba-* \
   376    380   	| be32-* | be64-* \
   377    381   	| bfin-* | bs2000-* \
   378    382   	| c[123]* | c30-* | [cjt]90-* | c4x-* \
   379         -	| clipper-* | craynv-* | cydra-* \
          383  +	| c8051-* | clipper-* | craynv-* | cydra-* \
   380    384   	| d10v-* | d30v-* | dlx-* \
   381         -	| elxsi-* \
          385  +	| e2k-* | elxsi-* \
   382    386   	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   383    387   	| h8300-* | h8500-* \
   384    388   	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   385    389   	| hexagon-* \
   386    390   	| i*86-* | i860-* | i960-* | ia64-* \
   387    391   	| ip2k-* | iq2000-* \
          392  +	| k1om-* \
   388    393   	| le32-* | le64-* \
   389    394   	| lm32-* \
   390    395   	| m32c-* | m32r-* | m32rle-* \
   391    396   	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   392         -	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
          397  +	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
          398  +	| microblaze-* | microblazeel-* \
   393    399   	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   394    400   	| mips16-* \
   395    401   	| mips64-* | mips64el-* \
   396    402   	| mips64octeon-* | mips64octeonel-* \
   397    403   	| mips64orion-* | mips64orionel-* \
   398    404   	| mips64r5900-* | mips64r5900el-* \
   399    405   	| mips64vr-* | mips64vrel-* \
   400    406   	| mips64vr4100-* | mips64vr4100el-* \
   401    407   	| mips64vr4300-* | mips64vr4300el-* \
   402    408   	| mips64vr5000-* | mips64vr5000el-* \
   403    409   	| mips64vr5900-* | mips64vr5900el-* \
   404    410   	| mipsisa32-* | mipsisa32el-* \
   405    411   	| mipsisa32r2-* | mipsisa32r2el-* \
          412  +	| mipsisa32r6-* | mipsisa32r6el-* \
   406    413   	| mipsisa64-* | mipsisa64el-* \
   407    414   	| mipsisa64r2-* | mipsisa64r2el-* \
          415  +	| mipsisa64r6-* | mipsisa64r6el-* \
   408    416   	| mipsisa64sb1-* | mipsisa64sb1el-* \
   409    417   	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
          418  +	| mipsr5900-* | mipsr5900el-* \
   410    419   	| mipstx39-* | mipstx39el-* \
   411    420   	| mmix-* \
   412    421   	| mt-* \
   413    422   	| msp430-* \
   414    423   	| nds32-* | nds32le-* | nds32be-* \
   415         -	| nios-* | nios2-* \
          424  +	| nios-* | nios2-* | nios2eb-* | nios2el-* \
   416    425   	| none-* | np1-* | ns16k-* | ns32k-* \
   417    426   	| open8-* \
          427  +	| or1k*-* \
   418    428   	| orion-* \
   419    429   	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   420    430   	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
   421    431   	| pyramid-* \
          432  +	| riscv32-* | riscv64-* \
   422    433   	| rl78-* | romp-* | rs6000-* | rx-* \
   423    434   	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   424    435   	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   425    436   	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   426    437   	| sparclite-* \
   427         -	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
          438  +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
   428    439   	| tahoe-* \
   429    440   	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   430    441   	| tile*-* \
   431    442   	| tron-* \
   432    443   	| ubicom32-* \
   433    444   	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
   434    445   	| vax-* \
          446  +	| visium-* \
   435    447   	| we32k-* \
   436    448   	| x86-* | x86_64-* | xc16x-* | xps100-* \
   437    449   	| xstormy16-* | xtensa*-* \
   438    450   	| ymp-* \
   439    451   	| z8k-* | z80-*)
   440    452   		;;
   441    453   	# Recognize the basic CPU types without company name, with glob match.
................................................................................
   504    516   		basic_machine=m68k-apollo
   505    517   		os=-bsd
   506    518   		;;
   507    519   	aros)
   508    520   		basic_machine=i386-pc
   509    521   		os=-aros
   510    522   		;;
          523  +	asmjs)
          524  +		basic_machine=asmjs-unknown
          525  +		;;
   511    526   	aux)
   512    527   		basic_machine=m68k-apple
   513    528   		os=-aux
   514    529   		;;
   515    530   	balance)
   516    531   		basic_machine=ns32k-sequent
   517    532   		os=-dynix
................................................................................
   765    780   			;;
   766    781   		esac
   767    782   		;;
   768    783   	isi68 | isi)
   769    784   		basic_machine=m68k-isi
   770    785   		os=-sysv
   771    786   		;;
          787  +	leon-*|leon[3-9]-*)
          788  +		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
          789  +		;;
   772    790   	m68knommu)
   773    791   		basic_machine=m68k-unknown
   774    792   		os=-linux
   775    793   		;;
   776    794   	m68knommu-*)
   777    795   		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
   778    796   		os=-linux
................................................................................
   784    802   		basic_machine=mips-mips
   785    803   		os=-sysv
   786    804   		;;
   787    805   	merlin)
   788    806   		basic_machine=ns32k-utek
   789    807   		os=-sysv
   790    808   		;;
   791         -	microblaze)
          809  +	microblaze*)
   792    810   		basic_machine=microblaze-xilinx
   793    811   		;;
          812  +	mingw64)
          813  +		basic_machine=x86_64-pc
          814  +		os=-mingw64
          815  +		;;
   794    816   	mingw32)
   795         -		basic_machine=i386-pc
          817  +		basic_machine=i686-pc
   796    818   		os=-mingw32
   797    819   		;;
   798    820   	mingw32ce)
   799    821   		basic_machine=arm-unknown
   800    822   		os=-mingw32ce
   801    823   		;;
   802    824   	miniframe)
................................................................................
   816    838   		basic_machine=m68k-rom68k
   817    839   		os=-coff
   818    840   		;;
   819    841   	morphos)
   820    842   		basic_machine=powerpc-unknown
   821    843   		os=-morphos
   822    844   		;;
          845  +	moxiebox)
          846  +		basic_machine=moxie-unknown
          847  +		os=-moxiebox
          848  +		;;
   823    849   	msdos)
   824    850   		basic_machine=i386-pc
   825    851   		os=-msdos
   826    852   		;;
   827    853   	ms1-*)
   828    854   		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   829    855   		;;
   830    856   	msys)
   831         -		basic_machine=i386-pc
          857  +		basic_machine=i686-pc
   832    858   		os=-msys
   833    859   		;;
   834    860   	mvs)
   835    861   		basic_machine=i370-ibm
   836    862   		os=-mvs
   837    863   		;;
   838    864   	nacl)
................................................................................
  1015   1041   	ps2)
  1016   1042   		basic_machine=i386-ibm
  1017   1043   		;;
  1018   1044   	pw32)
  1019   1045   		basic_machine=i586-unknown
  1020   1046   		os=-pw32
  1021   1047   		;;
  1022         -	rdos)
         1048  +	rdos | rdos64)
         1049  +		basic_machine=x86_64-pc
         1050  +		os=-rdos
         1051  +		;;
         1052  +	rdos32)
  1023   1053   		basic_machine=i386-pc
  1024   1054   		os=-rdos
  1025   1055   		;;
  1026   1056   	rom68k)
  1027   1057   		basic_machine=m68k-rom68k
  1028   1058   		os=-coff
  1029   1059   		;;
................................................................................
  1342   1372   	# First accept the basic system types.
  1343   1373   	# The portable systems comes first.
  1344   1374   	# Each alternative MUST END IN A *, to match a version number.
  1345   1375   	# -sysv* is not here because it comes later, after sysvr4.
  1346   1376   	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1347   1377   	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1348   1378   	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  1349         -	      | -sym* | -kopensolaris* \
         1379  +	      | -sym* | -kopensolaris* | -plan9* \
  1350   1380   	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1351         -	      | -aos* | -aros* \
         1381  +	      | -aos* | -aros* | -cloudabi* | -sortix* \
  1352   1382   	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1353   1383   	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1354   1384   	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1355         -	      | -openbsd* | -solidbsd* \
         1385  +	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
  1356   1386   	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1357   1387   	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1358   1388   	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1359   1389   	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1360   1390   	      | -chorusos* | -chorusrdb* | -cegcc* \
  1361   1391   	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1362         -	      | -mingw32* | -linux-gnu* | -linux-android* \
  1363         -	      | -linux-newlib* | -linux-uclibc* \
  1364         -	      | -uxpv* | -beos* | -mpeix* | -udk* \
         1392  +	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
         1393  +	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
         1394  +	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
  1365   1395   	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1366   1396   	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1367   1397   	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1368   1398   	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1369   1399   	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1370   1400   	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1371         -	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
         1401  +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
         1402  +	      | -onefs* | -tirtos*)
  1372   1403   	# Remember, each alternative MUST END IN *, to match a version number.
  1373   1404   		;;
  1374   1405   	-qnx*)
  1375   1406   		case $basic_machine in
  1376   1407   		    x86-* | i*86-*)
  1377   1408   			;;
  1378   1409   		    *)
................................................................................
  1488   1519   		;;
  1489   1520   	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1490   1521   		os=-mint
  1491   1522   		;;
  1492   1523   	-aros*)
  1493   1524   		os=-aros
  1494   1525   		;;
  1495         -	-kaos*)
  1496         -		os=-kaos
  1497         -		;;
  1498   1526   	-zvmoe)
  1499   1527   		os=-zvmoe
  1500   1528   		;;
  1501   1529   	-dicos*)
  1502   1530   		os=-dicos
  1503   1531   		;;
  1504   1532   	-nacl*)
         1533  +		;;
         1534  +	-ios)
  1505   1535   		;;
  1506   1536   	-none)
  1507   1537   		;;
  1508   1538   	*)
  1509   1539   		# Get rid of the `-' at the beginning of $os.
  1510   1540   		os=`echo $os | sed 's/[^-]*-//'`
  1511   1541   		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
................................................................................
  1538   1568   		os=-linux
  1539   1569   		;;
  1540   1570   	arm*-semi)
  1541   1571   		os=-aout
  1542   1572   		;;
  1543   1573   	c4x-* | tic4x-*)
  1544   1574   		os=-coff
         1575  +		;;
         1576  +	c8051-*)
         1577  +		os=-elf
         1578  +		;;
         1579  +	hexagon-*)
         1580  +		os=-elf
  1545   1581   		;;
  1546   1582   	tic54x-*)
  1547   1583   		os=-coff
  1548   1584   		;;
  1549   1585   	tic55x-*)
  1550   1586   		os=-coff
  1551   1587   		;;