Blame SOURCES/check-aarch64.patch

16eb69
--- ./build-aux/config.guess.orig	2012-10-22 08:04:26.000000000 -0600
16eb69
+++ ./build-aux/config.guess	2013-03-15 14:50:01.746132116 -0600
16eb69
@@ -1,14 +1,12 @@
16eb69
 #! /bin/sh
16eb69
 # Attempt to guess a canonical system name.
16eb69
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
16eb69
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
16eb69
-#   Free Software Foundation, Inc.
16eb69
+#   Copyright 1992-2013 Free Software Foundation, Inc.
16eb69
 
16eb69
-timestamp='2009-12-30'
16eb69
+timestamp='2013-02-12'
16eb69
 
16eb69
 # This file is free software; you can redistribute it and/or modify it
16eb69
 # under the terms of the GNU General Public License as published by
16eb69
-# the Free Software Foundation; either version 2 of the License, or
16eb69
+# the Free Software Foundation; either version 3 of the License, or
16eb69
 # (at your option) any later version.
16eb69
 #
16eb69
 # This program is distributed in the hope that it will be useful, but
16eb69
@@ -17,26 +15,22 @@ timestamp='2009-12-30'
16eb69
 # General Public License for more details.
16eb69
 #
16eb69
 # You should have received a copy of the GNU General Public License
16eb69
-# along with this program; if not, write to the Free Software
16eb69
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
16eb69
-# 02110-1301, USA.
16eb69
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
16eb69
 #
16eb69
 # As a special exception to the GNU General Public License, if you
16eb69
 # distribute this file as part of a program that contains a
16eb69
 # configuration script generated by Autoconf, you may include it under
16eb69
-# the same distribution terms that you use for the rest of that program.
16eb69
-
16eb69
-
16eb69
-# Originally written by Per Bothner.  Please send patches (context
16eb69
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
16eb69
-# entry.
16eb69
+# the same distribution terms that you use for the rest of that
16eb69
+# program.  This Exception is an additional permission under section 7
16eb69
+# of the GNU General Public License, version 3 ("GPLv3").
16eb69
 #
16eb69
-# This script attempts to guess a canonical system name similar to
16eb69
-# config.sub.  If it succeeds, it prints the system name on stdout, and
16eb69
-# exits with 0.  Otherwise, it exits with 1.
16eb69
+# Originally written by Per Bothner.
16eb69
 #
16eb69
 # You can get the latest version of this script from:
16eb69
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
16eb69
+#
16eb69
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
16eb69
+
16eb69
 
16eb69
 me=`echo "$0" | sed -e 's,.*/,,'`
16eb69
 
16eb69
@@ -56,9 +50,7 @@ version="\
16eb69
 GNU config.guess ($timestamp)
16eb69
 
16eb69
 Originally written by Per Bothner.
16eb69
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
16eb69
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
16eb69
-Software Foundation, Inc.
16eb69
+Copyright 1992-2013 Free Software Foundation, Inc.
16eb69
 
16eb69
 This is free software; see the source for copying conditions.  There is NO
16eb69
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
16eb69
@@ -145,7 +137,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` |
16eb69
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
16eb69
     *:NetBSD:*:*)
16eb69
 	# NetBSD (nbsd) targets should (where applicable) match one or
16eb69
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
16eb69
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
16eb69
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
16eb69
 	# switched to ELF, *-*-netbsd* would select the old
16eb69
 	# object file format.  This provides both forward
16eb69
@@ -181,7 +173,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
 		fi
16eb69
 		;;
16eb69
 	    *)
16eb69
-	        os=netbsd
16eb69
+		os=netbsd
16eb69
 		;;
16eb69
 	esac
16eb69
 	# The OS release
16eb69
@@ -202,6 +194,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
16eb69
 	echo "${machine}-${os}${release}"
16eb69
 	exit ;;
16eb69
+    *:Bitrig:*:*)
16eb69
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
16eb69
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
16eb69
+	exit ;;
16eb69
     *:OpenBSD:*:*)
16eb69
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
16eb69
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
16eb69
@@ -224,7 +220,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
16eb69
 		;;
16eb69
 	*5.*)
16eb69
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
16eb69
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
16eb69
 		;;
16eb69
 	esac
16eb69
 	# According to Compaq, /usr/sbin/psrinfo has been available on
16eb69
@@ -270,7 +266,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
 	# A Xn.n version is an unreleased experimental baselevel.
16eb69
 	# 1.2 uses "1.2" for uname -r.
16eb69
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16eb69
-	exit ;;
16eb69
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
16eb69
+	exitcode=$?
16eb69
+	trap '' 0
16eb69
+	exit $exitcode ;;
16eb69
     Alpha\ *:Windows_NT*:*)
16eb69
 	# How do we know it's Interix rather than the generic POSIX subsystem?
16eb69
 	# Should we change UNAME_MACHINE based on the output of uname instead
16eb69
@@ -296,12 +295,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
 	echo s390-ibm-zvmoe
16eb69
 	exit ;;
16eb69
     *:OS400:*:*)
16eb69
-        echo powerpc-ibm-os400
16eb69
+	echo powerpc-ibm-os400
16eb69
 	exit ;;
16eb69
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
16eb69
 	echo arm-acorn-riscix${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
-    arm:riscos:*:*|arm:RISCOS:*:*)
16eb69
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
16eb69
 	echo arm-unknown-riscos
16eb69
 	exit ;;
16eb69
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
16eb69
@@ -395,23 +394,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
16eb69
     # MiNT.  But MiNT is downward compatible to TOS, so this should
16eb69
     # be no problem.
16eb69
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
16eb69
-        echo m68k-atari-mint${UNAME_RELEASE}
16eb69
+	echo m68k-atari-mint${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
16eb69
 	echo m68k-atari-mint${UNAME_RELEASE}
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
16eb69
-        echo m68k-atari-mint${UNAME_RELEASE}
16eb69
+	echo m68k-atari-mint${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
16eb69
-        echo m68k-milan-mint${UNAME_RELEASE}
16eb69
-        exit ;;
16eb69
+	echo m68k-milan-mint${UNAME_RELEASE}
16eb69
+	exit ;;
16eb69
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
16eb69
-        echo m68k-hades-mint${UNAME_RELEASE}
16eb69
-        exit ;;
16eb69
+	echo m68k-hades-mint${UNAME_RELEASE}
16eb69
+	exit ;;
16eb69
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
16eb69
-        echo m68k-unknown-mint${UNAME_RELEASE}
16eb69
-        exit ;;
16eb69
+	echo m68k-unknown-mint${UNAME_RELEASE}
16eb69
+	exit ;;
16eb69
     m68k:machten:*:*)
16eb69
 	echo m68k-apple-machten${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
@@ -481,8 +480,8 @@ EOF
16eb69
 	echo m88k-motorola-sysv3
16eb69
 	exit ;;
16eb69
     AViiON:dgux:*:*)
16eb69
-        # DG/UX returns AViiON for all architectures
16eb69
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
16eb69
+	# DG/UX returns AViiON for all architectures
16eb69
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
16eb69
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
16eb69
 	then
16eb69
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
16eb69
@@ -495,7 +494,7 @@ EOF
16eb69
 	else
16eb69
 	    echo i586-dg-dgux${UNAME_RELEASE}
16eb69
 	fi
16eb69
- 	exit ;;
16eb69
+	exit ;;
16eb69
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
16eb69
 	echo m88k-dolphin-sysv3
16eb69
 	exit ;;
16eb69
@@ -552,7 +551,7 @@ EOF
16eb69
 		echo rs6000-ibm-aix3.2
16eb69
 	fi
16eb69
 	exit ;;
16eb69
-    *:AIX:*:[456])
16eb69
+    *:AIX:*:[4567])
16eb69
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
16eb69
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
16eb69
 		IBM_ARCH=rs6000
16eb69
@@ -595,52 +594,52 @@ EOF
16eb69
 	    9000/[678][0-9][0-9])
16eb69
 		if [ -x /usr/bin/getconf ]; then
16eb69
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
16eb69
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
16eb69
-                    case "${sc_cpu_version}" in
16eb69
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
16eb69
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
16eb69
-                      532)                      # CPU_PA_RISC2_0
16eb69
-                        case "${sc_kernel_bits}" in
16eb69
-                          32) HP_ARCH="hppa2.0n" ;;
16eb69
-                          64) HP_ARCH="hppa2.0w" ;;
16eb69
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
16eb69
+		    case "${sc_cpu_version}" in
16eb69
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
16eb69
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
16eb69
+		      532)                      # CPU_PA_RISC2_0
16eb69
+			case "${sc_kernel_bits}" in
16eb69
+			  32) HP_ARCH="hppa2.0n" ;;
16eb69
+			  64) HP_ARCH="hppa2.0w" ;;
16eb69
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
16eb69
-                        esac ;;
16eb69
-                    esac
16eb69
+			esac ;;
16eb69
+		    esac
16eb69
 		fi
16eb69
 		if [ "${HP_ARCH}" = "" ]; then
16eb69
 		    eval $set_cc_for_build
16eb69
-		    sed 's/^              //' << EOF >$dummy.c
16eb69
+		    sed 's/^		//' << EOF >$dummy.c
16eb69
 
16eb69
-              #define _HPUX_SOURCE
16eb69
-              #include <stdlib.h>
16eb69
-              #include <unistd.h>
16eb69
+		#define _HPUX_SOURCE
16eb69
+		#include <stdlib.h>
16eb69
+		#include <unistd.h>
16eb69
 
16eb69
-              int main ()
16eb69
-              {
16eb69
-              #if defined(_SC_KERNEL_BITS)
16eb69
-                  long bits = sysconf(_SC_KERNEL_BITS);
16eb69
-              #endif
16eb69
-                  long cpu  = sysconf (_SC_CPU_VERSION);
16eb69
+		int main ()
16eb69
+		{
16eb69
+		#if defined(_SC_KERNEL_BITS)
16eb69
+		    long bits = sysconf(_SC_KERNEL_BITS);
16eb69
+		#endif
16eb69
+		    long cpu  = sysconf (_SC_CPU_VERSION);
16eb69
 
16eb69
-                  switch (cpu)
16eb69
-              	{
16eb69
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
16eb69
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
16eb69
-              	case CPU_PA_RISC2_0:
16eb69
-              #if defined(_SC_KERNEL_BITS)
16eb69
-              	    switch (bits)
16eb69
-              		{
16eb69
-              		case 64: puts ("hppa2.0w"); break;
16eb69
-              		case 32: puts ("hppa2.0n"); break;
16eb69
-              		default: puts ("hppa2.0"); break;
16eb69
-              		} break;
16eb69
-              #else  /* !defined(_SC_KERNEL_BITS) */
16eb69
-              	    puts ("hppa2.0"); break;
16eb69
-              #endif
16eb69
-              	default: puts ("hppa1.0"); break;
16eb69
-              	}
16eb69
-                  exit (0);
16eb69
-              }
16eb69
+		    switch (cpu)
16eb69
+			{
16eb69
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
16eb69
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
16eb69
+			case CPU_PA_RISC2_0:
16eb69
+		#if defined(_SC_KERNEL_BITS)
16eb69
+			    switch (bits)
16eb69
+				{
16eb69
+				case 64: puts ("hppa2.0w"); break;
16eb69
+				case 32: puts ("hppa2.0n"); break;
16eb69
+				default: puts ("hppa2.0"); break;
16eb69
+				} break;
16eb69
+		#else  /* !defined(_SC_KERNEL_BITS) */
16eb69
+			    puts ("hppa2.0"); break;
16eb69
+		#endif
16eb69
+			default: puts ("hppa1.0"); break;
16eb69
+			}
16eb69
+		    exit (0);
16eb69
+		}
16eb69
 EOF
16eb69
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
16eb69
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
16eb69
@@ -731,22 +730,22 @@ EOF
16eb69
 	exit ;;
16eb69
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
16eb69
 	echo c1-convex-bsd
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
16eb69
 	if getsysinfo -f scalar_acc
16eb69
 	then echo c32-convex-bsd
16eb69
 	else echo c2-convex-bsd
16eb69
 	fi
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
16eb69
 	echo c34-convex-bsd
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
16eb69
 	echo c38-convex-bsd
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
16eb69
 	echo c4-convex-bsd
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     CRAY*Y-MP:*:*:*)
16eb69
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
16eb69
 	exit ;;
16eb69
@@ -770,14 +769,14 @@ EOF
16eb69
 	exit ;;
16eb69
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
16eb69
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16eb69
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
16eb69
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
16eb69
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
16eb69
-        exit ;;
16eb69
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
16eb69
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
16eb69
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
16eb69
+	exit ;;
16eb69
     5000:UNIX_System_V:4.*:*)
16eb69
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
16eb69
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
16eb69
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
16eb69
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
16eb69
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
16eb69
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
16eb69
 	exit ;;
16eb69
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
16eb69
@@ -789,30 +788,35 @@ EOF
16eb69
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
     *:FreeBSD:*:*)
16eb69
-	case ${UNAME_MACHINE} in
16eb69
-	    pc98)
16eb69
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
16eb69
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
16eb69
+	case ${UNAME_PROCESSOR} in
16eb69
 	    amd64)
16eb69
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
16eb69
 	    *)
16eb69
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
16eb69
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
16eb69
 	esac
16eb69
 	exit ;;
16eb69
     i*:CYGWIN*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-cygwin
16eb69
 	exit ;;
16eb69
+    *:MINGW64*:*)
16eb69
+	echo ${UNAME_MACHINE}-pc-mingw64
16eb69
+	exit ;;
16eb69
     *:MINGW*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-mingw32
16eb69
 	exit ;;
16eb69
+    i*:MSYS*:*)
16eb69
+	echo ${UNAME_MACHINE}-pc-msys
16eb69
+	exit ;;
16eb69
     i*:windows32*:*)
16eb69
-    	# uname -m includes "-pc" on this system.
16eb69
-    	echo ${UNAME_MACHINE}-mingw32
16eb69
+	# uname -m includes "-pc" on this system.
16eb69
+	echo ${UNAME_MACHINE}-mingw32
16eb69
 	exit ;;
16eb69
     i*:PW*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-pw32
16eb69
 	exit ;;
16eb69
     *:Interix*:*)
16eb69
-    	case ${UNAME_MACHINE} in
16eb69
+	case ${UNAME_MACHINE} in
16eb69
 	    x86)
16eb69
 		echo i586-pc-interix${UNAME_RELEASE}
16eb69
 		exit ;;
16eb69
@@ -858,6 +862,13 @@ EOF
16eb69
     i*86:Minix:*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-minix
16eb69
 	exit ;;
16eb69
+    aarch64:Linux:*:*)
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	exit ;;
16eb69
+    aarch64_be:Linux:*:*)
16eb69
+	UNAME_MACHINE=aarch64_be
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	exit ;;
16eb69
     alpha:Linux:*:*)
16eb69
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
16eb69
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
16eb69
@@ -867,7 +878,7 @@ EOF
16eb69
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
16eb69
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
16eb69
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
16eb69
-        esac
16eb69
+	esac
16eb69
 	objdump --private-headers /bin/sh | grep -q ld.so.1
16eb69
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
16eb69
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
16eb69
@@ -879,20 +890,29 @@ EOF
16eb69
 	then
16eb69
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	else
16eb69
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
16eb69
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
16eb69
+		| grep -q __ARM_PCS_VFP
16eb69
+	    then
16eb69
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
16eb69
+	    else
16eb69
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
16eb69
+	    fi
16eb69
 	fi
16eb69
 	exit ;;
16eb69
     avr32*:Linux:*:*)
16eb69
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     cris:Linux:*:*)
16eb69
-	echo cris-axis-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-axis-linux-gnu
16eb69
 	exit ;;
16eb69
     crisv32:Linux:*:*)
16eb69
-	echo crisv32-axis-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-axis-linux-gnu
16eb69
 	exit ;;
16eb69
     frv:Linux:*:*)
16eb69
-    	echo frv-unknown-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	exit ;;
16eb69
+    hexagon:Linux:*:*)
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     i*86:Linux:*:*)
16eb69
 	LIBC=gnu
16eb69
@@ -933,8 +953,11 @@ EOF
16eb69
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
16eb69
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
16eb69
 	;;
16eb69
+    or1k:Linux:*:*)
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	exit ;;
16eb69
     or32:Linux:*:*)
16eb69
-	echo or32-unknown-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     padre:Linux:*:*)
16eb69
 	echo sparc-unknown-linux-gnu
16eb69
@@ -960,7 +983,7 @@ EOF
16eb69
 	echo ${UNAME_MACHINE}-ibm-linux
16eb69
 	exit ;;
16eb69
     sh64*:Linux:*:*)
16eb69
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     sh*:Linux:*:*)
16eb69
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
@@ -968,14 +991,17 @@ EOF
16eb69
     sparc:Linux:*:* | sparc64:Linux:*:*)
16eb69
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
+    tile*:Linux:*:*)
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	exit ;;
16eb69
     vax:Linux:*:*)
16eb69
 	echo ${UNAME_MACHINE}-dec-linux-gnu
16eb69
 	exit ;;
16eb69
     x86_64:Linux:*:*)
16eb69
-	echo x86_64-unknown-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     xtensa*:Linux:*:*)
16eb69
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
16eb69
 	exit ;;
16eb69
     i*86:DYNIX/ptx:4*:*)
16eb69
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
16eb69
@@ -984,11 +1010,11 @@ EOF
16eb69
 	echo i386-sequent-sysv4
16eb69
 	exit ;;
16eb69
     i*86:UNIX_SV:4.2MP:2.*)
16eb69
-        # Unixware is an offshoot of SVR4, but it has its own version
16eb69
-        # number series starting with 2...
16eb69
-        # I am not positive that other SVR4 systems won't match this,
16eb69
+	# Unixware is an offshoot of SVR4, but it has its own version
16eb69
+	# number series starting with 2...
16eb69
+	# I am not positive that other SVR4 systems won't match this,
16eb69
 	# I just have to hope.  -- rms.
16eb69
-        # Use sysv4.2uw... so that sysv4* matches it.
16eb69
+	# Use sysv4.2uw... so that sysv4* matches it.
16eb69
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
16eb69
 	exit ;;
16eb69
     i*86:OS/2:*:*)
16eb69
@@ -1020,7 +1046,7 @@ EOF
16eb69
 	fi
16eb69
 	exit ;;
16eb69
     i*86:*:5:[678]*)
16eb69
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
16eb69
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
16eb69
 	case `/bin/uname -X | grep "^Machine"` in
16eb69
 	    *486*)	     UNAME_MACHINE=i486 ;;
16eb69
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
16eb69
@@ -1048,13 +1074,13 @@ EOF
16eb69
 	exit ;;
16eb69
     pc:*:*:*)
16eb69
 	# Left here for compatibility:
16eb69
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
16eb69
-        # the processor, so we play safe by assuming i586.
16eb69
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
16eb69
+	# the processor, so we play safe by assuming i586.
16eb69
 	# Note: whatever this is, it MUST be the same as what config.sub
16eb69
 	# prints for the "djgpp" host, or else GDB configury will decide that
16eb69
 	# this is a cross-build.
16eb69
 	echo i586-pc-msdosdjgpp
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     Intel:Mach:3*:*)
16eb69
 	echo i386-pc-mach3
16eb69
 	exit ;;
16eb69
@@ -1089,8 +1115,8 @@ EOF
16eb69
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
16eb69
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
16eb69
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
16eb69
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
16eb69
-          && { echo i486-ncr-sysv4; exit; } ;;
16eb69
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
16eb69
+	  && { echo i486-ncr-sysv4; exit; } ;;
16eb69
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
16eb69
 	OS_REL='.3'
16eb69
 	test -r /etc/.relid \
16eb69
@@ -1133,10 +1159,10 @@ EOF
16eb69
 		echo ns32k-sni-sysv
16eb69
 	fi
16eb69
 	exit ;;
16eb69
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
16eb69
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
16eb69
-        echo i586-unisys-sysv4
16eb69
-        exit ;;
16eb69
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
16eb69
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
16eb69
+	echo i586-unisys-sysv4
16eb69
+	exit ;;
16eb69
     *:UNIX_System_V:4*:FTX*)
16eb69
 	# From Gerald Hewes <hewes@openmarket.com>.
16eb69
 	# How about differentiating between stratus architectures? -djm
16eb69
@@ -1162,11 +1188,11 @@ EOF
16eb69
 	exit ;;
16eb69
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
16eb69
 	if [ -d /usr/nec ]; then
16eb69
-	        echo mips-nec-sysv${UNAME_RELEASE}
16eb69
+		echo mips-nec-sysv${UNAME_RELEASE}
16eb69
 	else
16eb69
-	        echo mips-unknown-sysv${UNAME_RELEASE}
16eb69
+		echo mips-unknown-sysv${UNAME_RELEASE}
16eb69
 	fi
16eb69
-        exit ;;
16eb69
+	exit ;;
16eb69
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
16eb69
 	echo powerpc-be-beos
16eb69
 	exit ;;
16eb69
@@ -1179,6 +1205,9 @@ EOF
16eb69
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
16eb69
 	echo i586-pc-haiku
16eb69
 	exit ;;
16eb69
+    x86_64:Haiku:*:*)
16eb69
+	echo x86_64-unknown-haiku
16eb69
+	exit ;;
16eb69
     SX-4:SUPER-UX:*:*)
16eb69
 	echo sx4-nec-superux${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
@@ -1231,7 +1260,10 @@ EOF
16eb69
     *:QNX:*:4*)
16eb69
 	echo i386-pc-qnx
16eb69
 	exit ;;
16eb69
-    NSE-?:NONSTOP_KERNEL:*:*)
16eb69
+    NEO-?:NONSTOP_KERNEL:*:*)
16eb69
+	echo neo-tandem-nsk${UNAME_RELEASE}
16eb69
+	exit ;;
16eb69
+    NSE-*:NONSTOP_KERNEL:*:*)
16eb69
 	echo nse-tandem-nsk${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
     NSR-?:NONSTOP_KERNEL:*:*)
16eb69
@@ -1276,13 +1308,13 @@ EOF
16eb69
 	echo pdp10-unknown-its
16eb69
 	exit ;;
16eb69
     SEI:*:*:SEIUX)
16eb69
-        echo mips-sei-seiux${UNAME_RELEASE}
16eb69
+	echo mips-sei-seiux${UNAME_RELEASE}
16eb69
 	exit ;;
16eb69
     *:DragonFly:*:*)
16eb69
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
16eb69
 	exit ;;
16eb69
     *:*VMS:*:*)
16eb69
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
16eb69
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
16eb69
 	case "${UNAME_MACHINE}" in
16eb69
 	    A*) echo alpha-dec-vms ; exit ;;
16eb69
 	    I*) echo ia64-dec-vms ; exit ;;
16eb69
@@ -1300,11 +1332,11 @@ EOF
16eb69
     i*86:AROS:*:*)
16eb69
 	echo ${UNAME_MACHINE}-pc-aros
16eb69
 	exit ;;
16eb69
+    x86_64:VMkernel:*:*)
16eb69
+	echo ${UNAME_MACHINE}-unknown-esx
16eb69
+	exit ;;
16eb69
 esac
16eb69
 
16eb69
-#echo '(No uname command or uname output not recognized.)' 1>&2
16eb69
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
16eb69
-
16eb69
 eval $set_cc_for_build
16eb69
 cat >$dummy.c <
16eb69
 #ifdef _SEQUENT_
16eb69
@@ -1322,11 +1354,11 @@ main ()
16eb69
 #include <sys/param.h>
16eb69
   printf ("m68k-sony-newsos%s\n",
16eb69
 #ifdef NEWSOS4
16eb69
-          "4"
16eb69
+	"4"
16eb69
 #else
16eb69
-	  ""
16eb69
+	""
16eb69
 #endif
16eb69
-         ); exit (0);
16eb69
+	); exit (0);
16eb69
 #endif
16eb69
 #endif
16eb69
 
16eb69
--- ./build-aux/config.sub.orig	2012-10-22 08:04:26.000000000 -0600
16eb69
+++ ./build-aux/config.sub	2013-03-15 14:50:01.748132113 -0600
16eb69
@@ -1,38 +1,31 @@
16eb69
 #! /bin/sh
16eb69
 # Configuration validation subroutine script.
16eb69
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
16eb69
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
16eb69
-#   Free Software Foundation, Inc.
16eb69
+#   Copyright 1992-2013 Free Software Foundation, Inc.
16eb69
 
16eb69
-timestamp='2010-01-22'
16eb69
+timestamp='2013-02-12'
16eb69
 
16eb69
-# This file is (in principle) common to ALL GNU software.
16eb69
-# The presence of a machine in this file suggests that SOME GNU software
16eb69
-# can handle that machine.  It does not imply ALL GNU software can.
16eb69
-#
16eb69
-# This file is free software; you can redistribute it and/or modify
16eb69
-# it under the terms of the GNU General Public License as published by
16eb69
-# the Free Software Foundation; either version 2 of the License, or
16eb69
+# This file is free software; you can redistribute it and/or modify it
16eb69
+# under the terms of the GNU General Public License as published by
16eb69
+# the Free Software Foundation; either version 3 of the License, or
16eb69
 # (at your option) any later version.
16eb69
 #
16eb69
-# This program is distributed in the hope that it will be useful,
16eb69
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
16eb69
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16eb69
-# GNU General Public License for more details.
16eb69
+# This program is distributed in the hope that it will be useful, but
16eb69
+# WITHOUT ANY WARRANTY; without even the implied warranty of
16eb69
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16eb69
+# General Public License for more details.
16eb69
 #
16eb69
 # You should have received a copy of the GNU General Public License
16eb69
-# along with this program; if not, write to the Free Software
16eb69
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
16eb69
-# 02110-1301, USA.
16eb69
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
16eb69
 #
16eb69
 # As a special exception to the GNU General Public License, if you
16eb69
 # distribute this file as part of a program that contains a
16eb69
 # configuration script generated by Autoconf, you may include it under
16eb69
-# the same distribution terms that you use for the rest of that program.
16eb69
+# the same distribution terms that you use for the rest of that
16eb69
+# program.  This Exception is an additional permission under section 7
16eb69
+# of the GNU General Public License, version 3 ("GPLv3").
16eb69
 
16eb69
 
16eb69
-# Please send patches to <config-patches@gnu.org>.  Submit a context
16eb69
-# diff and a properly formatted GNU ChangeLog entry.
16eb69
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
16eb69
 #
16eb69
 # Configuration subroutine to validate and canonicalize a configuration type.
16eb69
 # Supply the specified configuration type as an argument.
16eb69
@@ -75,9 +68,7 @@ Report bugs and patches to 
16eb69
 version="\
16eb69
 GNU config.sub ($timestamp)
16eb69
 
16eb69
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
16eb69
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
16eb69
-Software Foundation, Inc.
16eb69
+Copyright 1992-2013 Free Software Foundation, Inc.
16eb69
 
16eb69
 This is free software; see the source for copying conditions.  There is NO
16eb69
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
16eb69
@@ -124,13 +115,18 @@ esac
16eb69
 # Here we must recognize all the valid KERNEL-OS combinations.
16eb69
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
16eb69
 case $maybe_os in
16eb69
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
16eb69
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
16eb69
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
16eb69
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
16eb69
+  knetbsd*-gnu* | netbsd*-gnu* | \
16eb69
   kopensolaris*-gnu* | \
16eb69
   storm-chaos* | os2-emx* | rtmk-nova*)
16eb69
     os=-$maybe_os
16eb69
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
16eb69
     ;;
16eb69
+  android-linux)
16eb69
+    os=-linux-android
16eb69
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
16eb69
+    ;;
16eb69
   *)
16eb69
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
16eb69
     if [ $basic_machine != $1 ]
16eb69
@@ -153,12 +149,12 @@ case $os in
16eb69
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
16eb69
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
16eb69
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
16eb69
-	-apple | -axis | -knuth | -cray | -microblaze)
16eb69
+	-apple | -axis | -knuth | -cray | -microblaze*)
16eb69
 		os=
16eb69
 		basic_machine=$1
16eb69
 		;;
16eb69
-        -bluegene*)
16eb69
-	        os=-cnk
16eb69
+	-bluegene*)
16eb69
+		os=-cnk
16eb69
 		;;
16eb69
 	-sim | -cisco | -oki | -wec | -winbond)
16eb69
 		os=
16eb69
@@ -174,10 +170,10 @@ case $os in
16eb69
 		os=-chorusos
16eb69
 		basic_machine=$1
16eb69
 		;;
16eb69
- 	-chorusrdb)
16eb69
- 		os=-chorusrdb
16eb69
+	-chorusrdb)
16eb69
+		os=-chorusrdb
16eb69
 		basic_machine=$1
16eb69
- 		;;
16eb69
+		;;
16eb69
 	-hiux*)
16eb69
 		os=-hiuxwe2
16eb69
 		;;
16eb69
@@ -222,6 +218,12 @@ case $os in
16eb69
 	-isc*)
16eb69
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
16eb69
 		;;
16eb69
+	-lynx*178)
16eb69
+		os=-lynxos178
16eb69
+		;;
16eb69
+	-lynx*5)
16eb69
+		os=-lynxos5
16eb69
+		;;
16eb69
 	-lynx*)
16eb69
 		os=-lynxos
16eb69
 		;;
16eb69
@@ -246,20 +248,27 @@ case $basic_machine in
16eb69
 	# Some are omitted here because they have special meanings below.
16eb69
 	1750a | 580 \
16eb69
 	| a29k \
16eb69
+	| aarch64 | aarch64_be \
16eb69
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
16eb69
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
16eb69
 	| am33_2.0 \
16eb69
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
16eb69
+	| arc \
16eb69
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
16eb69
+	| avr | avr32 \
16eb69
+	| be32 | be64 \
16eb69
 	| bfin \
16eb69
 	| c4x | clipper \
16eb69
 	| d10v | d30v | dlx | dsp16xx \
16eb69
+	| epiphany \
16eb69
 	| fido | fr30 | frv \
16eb69
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
16eb69
+	| hexagon \
16eb69
 	| i370 | i860 | i960 | ia64 \
16eb69
 	| ip2k | iq2000 \
16eb69
+	| le32 | le64 \
16eb69
 	| lm32 \
16eb69
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
16eb69
-	| maxq | mb | microblaze | mcore | mep | metag \
16eb69
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
16eb69
 	| mips | mipsbe | mipseb | mipsel | mipsle \
16eb69
 	| mips16 \
16eb69
 	| mips64 | mips64el \
16eb69
@@ -277,34 +286,45 @@ case $basic_machine in
16eb69
 	| mipsisa64r2 | mipsisa64r2el \
16eb69
 	| mipsisa64sb1 | mipsisa64sb1el \
16eb69
 	| mipsisa64sr71k | mipsisa64sr71kel \
16eb69
+	| mipsr5900 | mipsr5900el \
16eb69
 	| mipstx39 | mipstx39el \
16eb69
 	| mn10200 | mn10300 \
16eb69
 	| moxie \
16eb69
 	| mt \
16eb69
 	| msp430 \
16eb69
-	| nios | nios2 \
16eb69
+	| nds32 | nds32le | nds32be \
16eb69
+	| nios | nios2 | nios2eb | nios2el \
16eb69
 	| ns16k | ns32k \
16eb69
-	| or32 \
16eb69
+	| open8 \
16eb69
+	| or1k | or32 \
16eb69
 	| pdp10 | pdp11 | pj | pjl \
16eb69
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
16eb69
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
16eb69
 	| pyramid \
16eb69
-	| rx \
16eb69
+	| rl78 | rx \
16eb69
 	| score \
16eb69
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
16eb69
 	| sh64 | sh64le \
16eb69
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
16eb69
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
16eb69
-	| spu | strongarm \
16eb69
-	| tahoe | thumb | tic4x | tic80 | tron \
16eb69
+	| spu \
16eb69
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
16eb69
 	| ubicom32 \
16eb69
-	| v850 | v850e \
16eb69
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
16eb69
 	| we32k \
16eb69
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
16eb69
+	| x86 | xc16x | xstormy16 | xtensa \
16eb69
 	| z8k | z80)
16eb69
 		basic_machine=$basic_machine-unknown
16eb69
 		;;
16eb69
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
16eb69
-		# Motorola 68HC11/12.
16eb69
+	c54x)
16eb69
+		basic_machine=tic54x-unknown
16eb69
+		;;
16eb69
+	c55x)
16eb69
+		basic_machine=tic55x-unknown
16eb69
+		;;
16eb69
+	c6x)
16eb69
+		basic_machine=tic6x-unknown
16eb69
+		;;
16eb69
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
16eb69
 		basic_machine=$basic_machine-unknown
16eb69
 		os=-none
16eb69
 		;;
16eb69
@@ -314,6 +334,21 @@ case $basic_machine in
16eb69
 		basic_machine=mt-unknown
16eb69
 		;;
16eb69
 
16eb69
+	strongarm | thumb | xscale)
16eb69
+		basic_machine=arm-unknown
16eb69
+		;;
16eb69
+	xgate)
16eb69
+		basic_machine=$basic_machine-unknown
16eb69
+		os=-none
16eb69
+		;;
16eb69
+	xscaleeb)
16eb69
+		basic_machine=armeb-unknown
16eb69
+		;;
16eb69
+
16eb69
+	xscaleel)
16eb69
+		basic_machine=armel-unknown
16eb69
+		;;
16eb69
+
16eb69
 	# We use `pc' rather than `unknown'
16eb69
 	# because (1) that's what they normally are, and
16eb69
 	# (2) the word "unknown" tends to confuse beginning users.
16eb69
@@ -328,25 +363,30 @@ case $basic_machine in
16eb69
 	# Recognize the basic CPU types with company name.
16eb69
 	580-* \
16eb69
 	| a29k-* \
16eb69
+	| aarch64-* | aarch64_be-* \
16eb69
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
16eb69
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
16eb69
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
16eb69
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
16eb69
 	| avr-* | avr32-* \
16eb69
+	| be32-* | be64-* \
16eb69
 	| bfin-* | bs2000-* \
16eb69
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
16eb69
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
16eb69
 	| clipper-* | craynv-* | cydra-* \
16eb69
 	| d10v-* | d30v-* | dlx-* \
16eb69
 	| elxsi-* \
16eb69
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
16eb69
 	| h8300-* | h8500-* \
16eb69
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
16eb69
+	| hexagon-* \
16eb69
 	| i*86-* | i860-* | i960-* | ia64-* \
16eb69
 	| ip2k-* | iq2000-* \
16eb69
+	| le32-* | le64-* \
16eb69
 	| lm32-* \
16eb69
 	| m32c-* | m32r-* | m32rle-* \
16eb69
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
16eb69
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
16eb69
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
16eb69
+	| microblaze-* | microblazeel-* \
16eb69
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
16eb69
 	| mips16-* \
16eb69
 	| mips64-* | mips64el-* \
16eb69
@@ -364,30 +404,34 @@ case $basic_machine in
16eb69
 	| mipsisa64r2-* | mipsisa64r2el-* \
16eb69
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
16eb69
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
16eb69
+	| mipsr5900-* | mipsr5900el-* \
16eb69
 	| mipstx39-* | mipstx39el-* \
16eb69
 	| mmix-* \
16eb69
 	| mt-* \
16eb69
 	| msp430-* \
16eb69
-	| nios-* | nios2-* \
16eb69
+	| nds32-* | nds32le-* | nds32be-* \
16eb69
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
16eb69
 	| none-* | np1-* | ns16k-* | ns32k-* \
16eb69
+	| open8-* \
16eb69
 	| orion-* \
16eb69
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
16eb69
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
16eb69
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
16eb69
 	| pyramid-* \
16eb69
-	| romp-* | rs6000-* | rx-* \
16eb69
+	| rl78-* | romp-* | rs6000-* | rx-* \
16eb69
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
16eb69
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
16eb69
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
16eb69
 	| sparclite-* \
16eb69
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
16eb69
-	| tahoe-* | thumb-* \
16eb69
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
16eb69
+	| tahoe-* \
16eb69
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
16eb69
-	| tile-* | tilegx-* \
16eb69
+	| tile*-* \
16eb69
 	| tron-* \
16eb69
 	| ubicom32-* \
16eb69
-	| v850-* | v850e-* | vax-* \
16eb69
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
16eb69
+	| vax-* \
16eb69
 	| we32k-* \
16eb69
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
16eb69
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
16eb69
 	| xstormy16-* | xtensa*-* \
16eb69
 	| ymp-* \
16eb69
 	| z8k-* | z80-*)
16eb69
@@ -412,7 +456,7 @@ case $basic_machine in
16eb69
 		basic_machine=a29k-amd
16eb69
 		os=-udi
16eb69
 		;;
16eb69
-    	abacus)
16eb69
+	abacus)
16eb69
 		basic_machine=abacus-unknown
16eb69
 		;;
16eb69
 	adobe68k)
16eb69
@@ -482,11 +526,20 @@ case $basic_machine in
16eb69
 		basic_machine=powerpc-ibm
16eb69
 		os=-cnk
16eb69
 		;;
16eb69
+	c54x-*)
16eb69
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
+		;;
16eb69
+	c55x-*)
16eb69
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
+		;;
16eb69
+	c6x-*)
16eb69
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
+		;;
16eb69
 	c90)
16eb69
 		basic_machine=c90-cray
16eb69
 		os=-unicos
16eb69
 		;;
16eb69
-        cegcc)
16eb69
+	cegcc)
16eb69
 		basic_machine=arm-unknown
16eb69
 		os=-cegcc
16eb69
 		;;
16eb69
@@ -518,7 +571,7 @@ case $basic_machine in
16eb69
 		basic_machine=craynv-cray
16eb69
 		os=-unicosmp
16eb69
 		;;
16eb69
-	cr16)
16eb69
+	cr16 | cr16-*)
16eb69
 		basic_machine=cr16-unknown
16eb69
 		os=-elf
16eb69
 		;;
16eb69
@@ -676,7 +729,6 @@ case $basic_machine in
16eb69
 	i370-ibm* | ibm*)
16eb69
 		basic_machine=i370-ibm
16eb69
 		;;
16eb69
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
16eb69
 	i*86v32)
16eb69
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
16eb69
 		os=-sysv32
16eb69
@@ -734,9 +786,13 @@ case $basic_machine in
16eb69
 		basic_machine=ns32k-utek
16eb69
 		os=-sysv
16eb69
 		;;
16eb69
-        microblaze)
16eb69
+	microblaze*)
16eb69
 		basic_machine=microblaze-xilinx
16eb69
 		;;
16eb69
+	mingw64)
16eb69
+		basic_machine=x86_64-pc
16eb69
+		os=-mingw64
16eb69
+		;;
16eb69
 	mingw32)
16eb69
 		basic_machine=i386-pc
16eb69
 		os=-mingw32
16eb69
@@ -773,10 +829,18 @@ case $basic_machine in
16eb69
 	ms1-*)
16eb69
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
16eb69
 		;;
16eb69
+	msys)
16eb69
+		basic_machine=i386-pc
16eb69
+		os=-msys
16eb69
+		;;
16eb69
 	mvs)
16eb69
 		basic_machine=i370-ibm
16eb69
 		os=-mvs
16eb69
 		;;
16eb69
+	nacl)
16eb69
+		basic_machine=le32-unknown
16eb69
+		os=-nacl
16eb69
+		;;
16eb69
 	ncr3000)
16eb69
 		basic_machine=i486-ncr
16eb69
 		os=-sysv4
16eb69
@@ -841,6 +905,12 @@ case $basic_machine in
16eb69
 	np1)
16eb69
 		basic_machine=np1-gould
16eb69
 		;;
16eb69
+	neo-tandem)
16eb69
+		basic_machine=neo-tandem
16eb69
+		;;
16eb69
+	nse-tandem)
16eb69
+		basic_machine=nse-tandem
16eb69
+		;;
16eb69
 	nsr-tandem)
16eb69
 		basic_machine=nsr-tandem
16eb69
 		;;
16eb69
@@ -923,9 +993,10 @@ case $basic_machine in
16eb69
 		;;
16eb69
 	power)	basic_machine=power-ibm
16eb69
 		;;
16eb69
-	ppc)	basic_machine=powerpc-unknown
16eb69
+	ppc | ppcbe)	basic_machine=powerpc-unknown
16eb69
 		;;
16eb69
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
+	ppc-* | ppcbe-*)
16eb69
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
 		;;
16eb69
 	ppcle | powerpclittle | ppc-le | powerpc-little)
16eb69
 		basic_machine=powerpcle-unknown
16eb69
@@ -950,7 +1021,11 @@ case $basic_machine in
16eb69
 		basic_machine=i586-unknown
16eb69
 		os=-pw32
16eb69
 		;;
16eb69
-	rdos)
16eb69
+	rdos | rdos64)
16eb69
+		basic_machine=x86_64-pc
16eb69
+		os=-rdos
16eb69
+		;;
16eb69
+	rdos32)
16eb69
 		basic_machine=i386-pc
16eb69
 		os=-rdos
16eb69
 		;;
16eb69
@@ -1019,6 +1094,9 @@ case $basic_machine in
16eb69
 		basic_machine=i860-stratus
16eb69
 		os=-sysv4
16eb69
 		;;
16eb69
+	strongarm-* | thumb-*)
16eb69
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
16eb69
+		;;
16eb69
 	sun2)
16eb69
 		basic_machine=m68000-sun
16eb69
 		;;
16eb69
@@ -1075,25 +1153,8 @@ case $basic_machine in
16eb69
 		basic_machine=t90-cray
16eb69
 		os=-unicos
16eb69
 		;;
16eb69
-	tic54x | c54x*)
16eb69
-		basic_machine=tic54x-unknown
16eb69
-		os=-coff
16eb69
-		;;
16eb69
-	tic55x | c55x*)
16eb69
-		basic_machine=tic55x-unknown
16eb69
-		os=-coff
16eb69
-		;;
16eb69
-	tic6x | c6x*)
16eb69
-		basic_machine=tic6x-unknown
16eb69
-		os=-coff
16eb69
-		;;
16eb69
-        # This must be matched before tile*.
16eb69
-        tilegx*)
16eb69
-		basic_machine=tilegx-unknown
16eb69
-		os=-linux-gnu
16eb69
-		;;
16eb69
 	tile*)
16eb69
-		basic_machine=tile-unknown
16eb69
+		basic_machine=$basic_machine-unknown
16eb69
 		os=-linux-gnu
16eb69
 		;;
16eb69
 	tx39)
16eb69
@@ -1163,6 +1224,9 @@ case $basic_machine in
16eb69
 	xps | xps100)
16eb69
 		basic_machine=xps100-honeywell
16eb69
 		;;
16eb69
+	xscale-* | xscalee[bl]-*)
16eb69
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
16eb69
+		;;
16eb69
 	ymp)
16eb69
 		basic_machine=ymp-cray
16eb69
 		os=-unicos
16eb69
@@ -1260,11 +1324,11 @@ esac
16eb69
 if [ x"$os" != x"" ]
16eb69
 then
16eb69
 case $os in
16eb69
-        # First match some system type aliases
16eb69
-        # that might get confused with valid system types.
16eb69
+	# First match some system type aliases
16eb69
+	# that might get confused with valid system types.
16eb69
 	# -solaris* is a basic system type, with this one exception.
16eb69
-        -auroraux)
16eb69
-	        os=-auroraux
16eb69
+	-auroraux)
16eb69
+		os=-auroraux
16eb69
 		;;
16eb69
 	-solaris1 | -solaris1.*)
16eb69
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
16eb69
@@ -1288,20 +1352,21 @@ case $os in
16eb69
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
16eb69
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
16eb69
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
16eb69
-	      | -sym* | -kopensolaris* \
16eb69
+	      | -sym* | -kopensolaris* | -plan9* \
16eb69
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
16eb69
 	      | -aos* | -aros* \
16eb69
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
16eb69
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
16eb69
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
16eb69
-	      | -openbsd* | -solidbsd* \
16eb69
+	      | -bitrig* | -openbsd* | -solidbsd* \
16eb69
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
16eb69
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
16eb69
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
16eb69
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
16eb69
 	      | -chorusos* | -chorusrdb* | -cegcc* \
16eb69
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
16eb69
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
16eb69
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
16eb69
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
16eb69
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
16eb69
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
16eb69
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
16eb69
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
16eb69
@@ -1348,7 +1413,7 @@ case $os in
16eb69
 	-opened*)
16eb69
 		os=-openedition
16eb69
 		;;
16eb69
-        -os400*)
16eb69
+	-os400*)
16eb69
 		os=-os400
16eb69
 		;;
16eb69
 	-wince*)
16eb69
@@ -1397,7 +1462,7 @@ case $os in
16eb69
 	-sinix*)
16eb69
 		os=-sysv4
16eb69
 		;;
16eb69
-        -tpf*)
16eb69
+	-tpf*)
16eb69
 		os=-tpf
16eb69
 		;;
16eb69
 	-triton*)
16eb69
@@ -1433,17 +1498,14 @@ case $os in
16eb69
 	-aros*)
16eb69
 		os=-aros
16eb69
 		;;
16eb69
-	-kaos*)
16eb69
-		os=-kaos
16eb69
-		;;
16eb69
 	-zvmoe)
16eb69
 		os=-zvmoe
16eb69
 		;;
16eb69
 	-dicos*)
16eb69
 		os=-dicos
16eb69
 		;;
16eb69
-        -nacl*)
16eb69
-	        ;;
16eb69
+	-nacl*)
16eb69
+		;;
16eb69
 	-none)
16eb69
 		;;
16eb69
 	*)
16eb69
@@ -1466,10 +1528,10 @@ else
16eb69
 # system, and we'll never get to this point.
16eb69
 
16eb69
 case $basic_machine in
16eb69
-        score-*)
16eb69
+	score-*)
16eb69
 		os=-elf
16eb69
 		;;
16eb69
-        spu-*)
16eb69
+	spu-*)
16eb69
 		os=-elf
16eb69
 		;;
16eb69
 	*-acorn)
16eb69
@@ -1481,8 +1543,20 @@ case $basic_machine in
16eb69
 	arm*-semi)
16eb69
 		os=-aout
16eb69
 		;;
16eb69
-        c4x-* | tic4x-*)
16eb69
-        	os=-coff
16eb69
+	c4x-* | tic4x-*)
16eb69
+		os=-coff
16eb69
+		;;
16eb69
+	hexagon-*)
16eb69
+		os=-elf
16eb69
+		;;
16eb69
+	tic54x-*)
16eb69
+		os=-coff
16eb69
+		;;
16eb69
+	tic55x-*)
16eb69
+		os=-coff
16eb69
+		;;
16eb69
+	tic6x-*)
16eb69
+		os=-coff
16eb69
 		;;
16eb69
 	# This must come before the *-dec entry.
16eb69
 	pdp10-*)
16eb69
@@ -1502,14 +1576,11 @@ case $basic_machine in
16eb69
 		;;
16eb69
 	m68000-sun)
16eb69
 		os=-sunos3
16eb69
-		# This also exists in the configure program, but was not the
16eb69
-		# default.
16eb69
-		# os=-sunos4
16eb69
 		;;
16eb69
 	m68*-cisco)
16eb69
 		os=-aout
16eb69
 		;;
16eb69
-        mep-*)
16eb69
+	mep-*)
16eb69
 		os=-elf
16eb69
 		;;
16eb69
 	mips*-cisco)
16eb69
@@ -1518,6 +1589,9 @@ case $basic_machine in
16eb69
 	mips*-*)
16eb69
 		os=-elf
16eb69
 		;;
16eb69
+	or1k-*)
16eb69
+		os=-elf
16eb69
+		;;
16eb69
 	or32-*)
16eb69
 		os=-coff
16eb69
 		;;
16eb69
@@ -1536,7 +1610,7 @@ case $basic_machine in
16eb69
 	*-ibm)
16eb69
 		os=-aix
16eb69
 		;;
16eb69
-    	*-knuth)
16eb69
+	*-knuth)
16eb69
 		os=-mmixware
16eb69
 		;;
16eb69
 	*-wec)