6712ef
6712ef
https://bugzilla.redhat.com/show_bug.cgi?id=926578
6712ef
6712ef
--- subversion-1.7.10/build/config.guess.aarch64
6712ef
+++ subversion-1.7.10/build/config.guess
6712ef
@@ -1,10 +1,10 @@
6712ef
 #! /bin/sh
6712ef
 # Attempt to guess a canonical system name.
6712ef
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6712ef
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
6712ef
-#   Free Software Foundation, Inc.
6712ef
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
6712ef
+#   2011, 2012 Free Software Foundation, Inc.
6712ef
 
6712ef
-timestamp='2010-08-21'
6712ef
+timestamp='2012-09-25'
6712ef
 
6712ef
 # This file is free software; you can redistribute it and/or modify it
6712ef
 # under the terms of the GNU General Public License as published by
6712ef
@@ -17,9 +17,7 @@ timestamp='2010-08-21'
6712ef
 # General Public License for more details.
6712ef
 #
6712ef
 # You should have received a copy of the GNU General Public License
6712ef
-# along with this program; if not, write to the Free Software
6712ef
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
6712ef
-# 02110-1301, USA.
6712ef
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
6712ef
 #
6712ef
 # As a special exception to the GNU General Public License, if you
6712ef
 # distribute this file as part of a program that contains a
6712ef
@@ -57,8 +55,8 @@ GNU config.guess ($timestamp)
6712ef
 
6712ef
 Originally written by Per Bothner.
6712ef
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
6712ef
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
6712ef
-Software Foundation, Inc.
6712ef
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
6712ef
+Free Software Foundation, Inc.
6712ef
 
6712ef
 This is free software; see the source for copying conditions.  There is NO
6712ef
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6712ef
@@ -92,7 +90,7 @@ if test $# != 0; then
6712ef
   exit 1
6712ef
 fi
6712ef
 
6712ef
-trap 'exit 1' HUP INT TERM
6712ef
+trap 'exit 1' 1 2 15
6712ef
 
6712ef
 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
6712ef
 # compiler to aid in system detection is discouraged as it requires
6712ef
@@ -106,7 +104,7 @@ trap 'exit 1' HUP INT TERM
6712ef
 
6712ef
 set_cc_for_build='
6712ef
 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
6712ef
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
6712ef
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
6712ef
 : ${TMPDIR=/tmp} ;
6712ef
  { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
6712ef
  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
6712ef
@@ -145,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` |
6712ef
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
6712ef
     *:NetBSD:*:*)
6712ef
 	# NetBSD (nbsd) targets should (where applicable) match one or
6712ef
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
6712ef
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
6712ef
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
6712ef
 	# switched to ELF, *-*-netbsd* would select the old
6712ef
 	# object file format.  This provides both forward
6712ef
@@ -181,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
 		fi
6712ef
 		;;
6712ef
 	    *)
6712ef
-	        os=netbsd
6712ef
+		os=netbsd
6712ef
 		;;
6712ef
 	esac
6712ef
 	# The OS release
6712ef
@@ -202,6 +200,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
6712ef
 	echo "${machine}-${os}${release}"
6712ef
 	exit ;;
6712ef
+    *:Bitrig:*:*)
6712ef
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
6712ef
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
6712ef
+	exit ;;
6712ef
     *:OpenBSD:*:*)
6712ef
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
6712ef
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
6712ef
@@ -224,7 +226,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
6712ef
 		;;
6712ef
 	*5.*)
6712ef
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
6712ef
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
6712ef
 		;;
6712ef
 	esac
6712ef
 	# According to Compaq, /usr/sbin/psrinfo has been available on
6712ef
@@ -270,7 +272,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
 	# A Xn.n version is an unreleased experimental baselevel.
6712ef
 	# 1.2 uses "1.2" for uname -r.
6712ef
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
6712ef
-	exit ;;
6712ef
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
6712ef
+	exitcode=$?
6712ef
+	trap '' 0
6712ef
+	exit $exitcode ;;
6712ef
     Alpha\ *:Windows_NT*:*)
6712ef
 	# How do we know it's Interix rather than the generic POSIX subsystem?
6712ef
 	# Should we change UNAME_MACHINE based on the output of uname instead
6712ef
@@ -296,12 +301,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
 	echo s390-ibm-zvmoe
6712ef
 	exit ;;
6712ef
     *:OS400:*:*)
6712ef
-        echo powerpc-ibm-os400
6712ef
+	echo powerpc-ibm-os400
6712ef
 	exit ;;
6712ef
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
6712ef
 	echo arm-acorn-riscix${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
-    arm:riscos:*:*|arm:RISCOS:*:*)
6712ef
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
6712ef
 	echo arm-unknown-riscos
6712ef
 	exit ;;
6712ef
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
6712ef
@@ -395,23 +400,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
6712ef
     # MiNT.  But MiNT is downward compatible to TOS, so this should
6712ef
     # be no problem.
6712ef
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
6712ef
-        echo m68k-atari-mint${UNAME_RELEASE}
6712ef
+	echo m68k-atari-mint${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
6712ef
 	echo m68k-atari-mint${UNAME_RELEASE}
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
6712ef
-        echo m68k-atari-mint${UNAME_RELEASE}
6712ef
+	echo m68k-atari-mint${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
6712ef
-        echo m68k-milan-mint${UNAME_RELEASE}
6712ef
-        exit ;;
6712ef
+	echo m68k-milan-mint${UNAME_RELEASE}
6712ef
+	exit ;;
6712ef
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
6712ef
-        echo m68k-hades-mint${UNAME_RELEASE}
6712ef
-        exit ;;
6712ef
+	echo m68k-hades-mint${UNAME_RELEASE}
6712ef
+	exit ;;
6712ef
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
6712ef
-        echo m68k-unknown-mint${UNAME_RELEASE}
6712ef
-        exit ;;
6712ef
+	echo m68k-unknown-mint${UNAME_RELEASE}
6712ef
+	exit ;;
6712ef
     m68k:machten:*:*)
6712ef
 	echo m68k-apple-machten${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
@@ -481,8 +486,8 @@ EOF
6712ef
 	echo m88k-motorola-sysv3
6712ef
 	exit ;;
6712ef
     AViiON:dgux:*:*)
6712ef
-        # DG/UX returns AViiON for all architectures
6712ef
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
6712ef
+	# DG/UX returns AViiON for all architectures
6712ef
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
6712ef
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
6712ef
 	then
6712ef
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
6712ef
@@ -495,7 +500,7 @@ EOF
6712ef
 	else
6712ef
 	    echo i586-dg-dgux${UNAME_RELEASE}
6712ef
 	fi
6712ef
- 	exit ;;
6712ef
+	exit ;;
6712ef
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
6712ef
 	echo m88k-dolphin-sysv3
6712ef
 	exit ;;
6712ef
@@ -595,52 +600,52 @@ EOF
6712ef
 	    9000/[678][0-9][0-9])
6712ef
 		if [ -x /usr/bin/getconf ]; then
6712ef
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
6712ef
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
6712ef
-                    case "${sc_cpu_version}" in
6712ef
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
6712ef
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
6712ef
-                      532)                      # CPU_PA_RISC2_0
6712ef
-                        case "${sc_kernel_bits}" in
6712ef
-                          32) HP_ARCH="hppa2.0n" ;;
6712ef
-                          64) HP_ARCH="hppa2.0w" ;;
6712ef
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
6712ef
+		    case "${sc_cpu_version}" in
6712ef
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
6712ef
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
6712ef
+		      532)                      # CPU_PA_RISC2_0
6712ef
+			case "${sc_kernel_bits}" in
6712ef
+			  32) HP_ARCH="hppa2.0n" ;;
6712ef
+			  64) HP_ARCH="hppa2.0w" ;;
6712ef
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
6712ef
-                        esac ;;
6712ef
-                    esac
6712ef
+			esac ;;
6712ef
+		    esac
6712ef
 		fi
6712ef
 		if [ "${HP_ARCH}" = "" ]; then
6712ef
 		    eval $set_cc_for_build
6712ef
-		    sed 's/^              //' << EOF >$dummy.c
6712ef
+		    sed 's/^		//' << EOF >$dummy.c
6712ef
+
6712ef
+		#define _HPUX_SOURCE
6712ef
+		#include <stdlib.h>
6712ef
+		#include <unistd.h>
6712ef
 
6712ef
-              #define _HPUX_SOURCE
6712ef
-              #include <stdlib.h>
6712ef
-              #include <unistd.h>
6712ef
-
6712ef
-              int main ()
6712ef
-              {
6712ef
-              #if defined(_SC_KERNEL_BITS)
6712ef
-                  long bits = sysconf(_SC_KERNEL_BITS);
6712ef
-              #endif
6712ef
-                  long cpu  = sysconf (_SC_CPU_VERSION);
6712ef
-
6712ef
-                  switch (cpu)
6712ef
-              	{
6712ef
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
6712ef
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
6712ef
-              	case CPU_PA_RISC2_0:
6712ef
-              #if defined(_SC_KERNEL_BITS)
6712ef
-              	    switch (bits)
6712ef
-              		{
6712ef
-              		case 64: puts ("hppa2.0w"); break;
6712ef
-              		case 32: puts ("hppa2.0n"); break;
6712ef
-              		default: puts ("hppa2.0"); break;
6712ef
-              		} break;
6712ef
-              #else  /* !defined(_SC_KERNEL_BITS) */
6712ef
-              	    puts ("hppa2.0"); break;
6712ef
-              #endif
6712ef
-              	default: puts ("hppa1.0"); break;
6712ef
-              	}
6712ef
-                  exit (0);
6712ef
-              }
6712ef
+		int main ()
6712ef
+		{
6712ef
+		#if defined(_SC_KERNEL_BITS)
6712ef
+		    long bits = sysconf(_SC_KERNEL_BITS);
6712ef
+		#endif
6712ef
+		    long cpu  = sysconf (_SC_CPU_VERSION);
6712ef
+
6712ef
+		    switch (cpu)
6712ef
+			{
6712ef
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
6712ef
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
6712ef
+			case CPU_PA_RISC2_0:
6712ef
+		#if defined(_SC_KERNEL_BITS)
6712ef
+			    switch (bits)
6712ef
+				{
6712ef
+				case 64: puts ("hppa2.0w"); break;
6712ef
+				case 32: puts ("hppa2.0n"); break;
6712ef
+				default: puts ("hppa2.0"); break;
6712ef
+				} break;
6712ef
+		#else  /* !defined(_SC_KERNEL_BITS) */
6712ef
+			    puts ("hppa2.0"); break;
6712ef
+		#endif
6712ef
+			default: puts ("hppa1.0"); break;
6712ef
+			}
6712ef
+		    exit (0);
6712ef
+		}
6712ef
 EOF
6712ef
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
6712ef
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
6712ef
@@ -731,22 +736,22 @@ EOF
6712ef
 	exit ;;
6712ef
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
6712ef
 	echo c1-convex-bsd
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
6712ef
 	if getsysinfo -f scalar_acc
6712ef
 	then echo c32-convex-bsd
6712ef
 	else echo c2-convex-bsd
6712ef
 	fi
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
6712ef
 	echo c34-convex-bsd
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
6712ef
 	echo c38-convex-bsd
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
6712ef
 	echo c4-convex-bsd
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     CRAY*Y-MP:*:*:*)
6712ef
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6712ef
 	exit ;;
6712ef
@@ -770,14 +775,14 @@ EOF
6712ef
 	exit ;;
6712ef
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
6712ef
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
6712ef
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6712ef
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
6712ef
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6712ef
-        exit ;;
6712ef
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6712ef
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
6712ef
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6712ef
+	exit ;;
6712ef
     5000:UNIX_System_V:4.*:*)
6712ef
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6712ef
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
6712ef
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6712ef
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6712ef
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
6712ef
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6712ef
 	exit ;;
6712ef
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
6712ef
@@ -789,30 +794,35 @@ EOF
6712ef
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
     *:FreeBSD:*:*)
6712ef
-	case ${UNAME_MACHINE} in
6712ef
-	    pc98)
6712ef
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
6712ef
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
6712ef
+	case ${UNAME_PROCESSOR} in
6712ef
 	    amd64)
6712ef
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
6712ef
 	    *)
6712ef
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
6712ef
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
6712ef
 	esac
6712ef
 	exit ;;
6712ef
     i*:CYGWIN*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-cygwin
6712ef
 	exit ;;
6712ef
+    *:MINGW64*:*)
6712ef
+	echo ${UNAME_MACHINE}-pc-mingw64
6712ef
+	exit ;;
6712ef
     *:MINGW*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-mingw32
6712ef
 	exit ;;
6712ef
+    i*:MSYS*:*)
6712ef
+	echo ${UNAME_MACHINE}-pc-msys
6712ef
+	exit ;;
6712ef
     i*:windows32*:*)
6712ef
-    	# uname -m includes "-pc" on this system.
6712ef
-    	echo ${UNAME_MACHINE}-mingw32
6712ef
+	# uname -m includes "-pc" on this system.
6712ef
+	echo ${UNAME_MACHINE}-mingw32
6712ef
 	exit ;;
6712ef
     i*:PW*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-pw32
6712ef
 	exit ;;
6712ef
     *:Interix*:*)
6712ef
-    	case ${UNAME_MACHINE} in
6712ef
+	case ${UNAME_MACHINE} in
6712ef
 	    x86)
6712ef
 		echo i586-pc-interix${UNAME_RELEASE}
6712ef
 		exit ;;
6712ef
@@ -858,6 +868,13 @@ EOF
6712ef
     i*86:Minix:*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-minix
6712ef
 	exit ;;
6712ef
+    aarch64:Linux:*:*)
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
+	exit ;;
6712ef
+    aarch64_be:Linux:*:*)
6712ef
+	UNAME_MACHINE=aarch64_be
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
+	exit ;;
6712ef
     alpha:Linux:*:*)
6712ef
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
6712ef
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
6712ef
@@ -867,7 +884,7 @@ EOF
6712ef
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
6712ef
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
6712ef
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
6712ef
-        esac
6712ef
+	esac
6712ef
 	objdump --private-headers /bin/sh | grep -q ld.so.1
6712ef
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
6712ef
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
6712ef
@@ -879,20 +896,29 @@ EOF
6712ef
 	then
6712ef
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	else
6712ef
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
6712ef
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
6712ef
+		| grep -q __ARM_PCS_VFP
6712ef
+	    then
6712ef
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
6712ef
+	    else
6712ef
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
6712ef
+	    fi
6712ef
 	fi
6712ef
 	exit ;;
6712ef
     avr32*:Linux:*:*)
6712ef
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     cris:Linux:*:*)
6712ef
-	echo cris-axis-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-axis-linux-gnu
6712ef
 	exit ;;
6712ef
     crisv32:Linux:*:*)
6712ef
-	echo crisv32-axis-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-axis-linux-gnu
6712ef
 	exit ;;
6712ef
     frv:Linux:*:*)
6712ef
-    	echo frv-unknown-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
+	exit ;;
6712ef
+    hexagon:Linux:*:*)
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     i*86:Linux:*:*)
6712ef
 	LIBC=gnu
6712ef
@@ -934,7 +960,7 @@ EOF
6712ef
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
6712ef
 	;;
6712ef
     or32:Linux:*:*)
6712ef
-	echo or32-unknown-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     padre:Linux:*:*)
6712ef
 	echo sparc-unknown-linux-gnu
6712ef
@@ -960,7 +986,7 @@ EOF
6712ef
 	echo ${UNAME_MACHINE}-ibm-linux
6712ef
 	exit ;;
6712ef
     sh64*:Linux:*:*)
6712ef
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     sh*:Linux:*:*)
6712ef
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
@@ -969,16 +995,16 @@ EOF
6712ef
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     tile*:Linux:*:*)
6712ef
-	echo ${UNAME_MACHINE}-tilera-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     vax:Linux:*:*)
6712ef
 	echo ${UNAME_MACHINE}-dec-linux-gnu
6712ef
 	exit ;;
6712ef
     x86_64:Linux:*:*)
6712ef
-	echo x86_64-unknown-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     xtensa*:Linux:*:*)
6712ef
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
6712ef
 	exit ;;
6712ef
     i*86:DYNIX/ptx:4*:*)
6712ef
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
6712ef
@@ -987,11 +1013,11 @@ EOF
6712ef
 	echo i386-sequent-sysv4
6712ef
 	exit ;;
6712ef
     i*86:UNIX_SV:4.2MP:2.*)
6712ef
-        # Unixware is an offshoot of SVR4, but it has its own version
6712ef
-        # number series starting with 2...
6712ef
-        # I am not positive that other SVR4 systems won't match this,
6712ef
+	# Unixware is an offshoot of SVR4, but it has its own version
6712ef
+	# number series starting with 2...
6712ef
+	# I am not positive that other SVR4 systems won't match this,
6712ef
 	# I just have to hope.  -- rms.
6712ef
-        # Use sysv4.2uw... so that sysv4* matches it.
6712ef
+	# Use sysv4.2uw... so that sysv4* matches it.
6712ef
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
6712ef
 	exit ;;
6712ef
     i*86:OS/2:*:*)
6712ef
@@ -1023,7 +1049,7 @@ EOF
6712ef
 	fi
6712ef
 	exit ;;
6712ef
     i*86:*:5:[678]*)
6712ef
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
6712ef
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
6712ef
 	case `/bin/uname -X | grep "^Machine"` in
6712ef
 	    *486*)	     UNAME_MACHINE=i486 ;;
6712ef
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
6712ef
@@ -1051,13 +1077,13 @@ EOF
6712ef
 	exit ;;
6712ef
     pc:*:*:*)
6712ef
 	# Left here for compatibility:
6712ef
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
6712ef
-        # the processor, so we play safe by assuming i586.
6712ef
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
6712ef
+	# the processor, so we play safe by assuming i586.
6712ef
 	# Note: whatever this is, it MUST be the same as what config.sub
6712ef
 	# prints for the "djgpp" host, or else GDB configury will decide that
6712ef
 	# this is a cross-build.
6712ef
 	echo i586-pc-msdosdjgpp
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     Intel:Mach:3*:*)
6712ef
 	echo i386-pc-mach3
6712ef
 	exit ;;
6712ef
@@ -1092,8 +1118,8 @@ EOF
6712ef
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
6712ef
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
6712ef
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
6712ef
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
6712ef
-          && { echo i486-ncr-sysv4; exit; } ;;
6712ef
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
6712ef
+	  && { echo i486-ncr-sysv4; exit; } ;;
6712ef
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
6712ef
 	OS_REL='.3'
6712ef
 	test -r /etc/.relid \
6712ef
@@ -1136,10 +1162,10 @@ EOF
6712ef
 		echo ns32k-sni-sysv
6712ef
 	fi
6712ef
 	exit ;;
6712ef
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
6712ef
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
6712ef
-        echo i586-unisys-sysv4
6712ef
-        exit ;;
6712ef
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
6712ef
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
6712ef
+	echo i586-unisys-sysv4
6712ef
+	exit ;;
6712ef
     *:UNIX_System_V:4*:FTX*)
6712ef
 	# From Gerald Hewes <hewes@openmarket.com>.
6712ef
 	# How about differentiating between stratus architectures? -djm
6712ef
@@ -1165,11 +1191,11 @@ EOF
6712ef
 	exit ;;
6712ef
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
6712ef
 	if [ -d /usr/nec ]; then
6712ef
-	        echo mips-nec-sysv${UNAME_RELEASE}
6712ef
+		echo mips-nec-sysv${UNAME_RELEASE}
6712ef
 	else
6712ef
-	        echo mips-unknown-sysv${UNAME_RELEASE}
6712ef
+		echo mips-unknown-sysv${UNAME_RELEASE}
6712ef
 	fi
6712ef
-        exit ;;
6712ef
+	exit ;;
6712ef
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
6712ef
 	echo powerpc-be-beos
6712ef
 	exit ;;
6712ef
@@ -1182,6 +1208,9 @@ EOF
6712ef
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
6712ef
 	echo i586-pc-haiku
6712ef
 	exit ;;
6712ef
+    x86_64:Haiku:*:*)
6712ef
+	echo x86_64-unknown-haiku
6712ef
+	exit ;;
6712ef
     SX-4:SUPER-UX:*:*)
6712ef
 	echo sx4-nec-superux${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
@@ -1234,7 +1263,10 @@ EOF
6712ef
     *:QNX:*:4*)
6712ef
 	echo i386-pc-qnx
6712ef
 	exit ;;
6712ef
-    NSE-?:NONSTOP_KERNEL:*:*)
6712ef
+    NEO-?:NONSTOP_KERNEL:*:*)
6712ef
+	echo neo-tandem-nsk${UNAME_RELEASE}
6712ef
+	exit ;;
6712ef
+    NSE-*:NONSTOP_KERNEL:*:*)
6712ef
 	echo nse-tandem-nsk${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
     NSR-?:NONSTOP_KERNEL:*:*)
6712ef
@@ -1279,13 +1311,13 @@ EOF
6712ef
 	echo pdp10-unknown-its
6712ef
 	exit ;;
6712ef
     SEI:*:*:SEIUX)
6712ef
-        echo mips-sei-seiux${UNAME_RELEASE}
6712ef
+	echo mips-sei-seiux${UNAME_RELEASE}
6712ef
 	exit ;;
6712ef
     *:DragonFly:*:*)
6712ef
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
6712ef
 	exit ;;
6712ef
     *:*VMS:*:*)
6712ef
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
6712ef
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
6712ef
 	case "${UNAME_MACHINE}" in
6712ef
 	    A*) echo alpha-dec-vms ; exit ;;
6712ef
 	    I*) echo ia64-dec-vms ; exit ;;
6712ef
@@ -1303,11 +1335,11 @@ EOF
6712ef
     i*86:AROS:*:*)
6712ef
 	echo ${UNAME_MACHINE}-pc-aros
6712ef
 	exit ;;
6712ef
+    x86_64:VMkernel:*:*)
6712ef
+	echo ${UNAME_MACHINE}-unknown-esx
6712ef
+	exit ;;
6712ef
 esac
6712ef
 
6712ef
-#echo '(No uname command or uname output not recognized.)' 1>&2
6712ef
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
6712ef
-
6712ef
 eval $set_cc_for_build
6712ef
 cat >$dummy.c <
6712ef
 #ifdef _SEQUENT_
6712ef
@@ -1325,11 +1357,11 @@ main ()
6712ef
 #include <sys/param.h>
6712ef
   printf ("m68k-sony-newsos%s\n",
6712ef
 #ifdef NEWSOS4
6712ef
-          "4"
6712ef
+	"4"
6712ef
 #else
6712ef
-	  ""
6712ef
+	""
6712ef
 #endif
6712ef
-         ); exit (0);
6712ef
+	); exit (0);
6712ef
 #endif
6712ef
 #endif
6712ef
 
6712ef
--- subversion-1.7.10/build/config.sub.aarch64
6712ef
+++ subversion-1.7.10/build/config.sub
6712ef
@@ -1,10 +1,10 @@
6712ef
 #! /bin/sh
6712ef
 # Configuration validation subroutine script.
6712ef
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6712ef
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
6712ef
-#   Free Software Foundation, Inc.
6712ef
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
6712ef
+#   2011, 2012 Free Software Foundation, Inc.
6712ef
 
6712ef
-timestamp='2010-09-11'
6712ef
+timestamp='2012-10-10'
6712ef
 
6712ef
 # This file is (in principle) common to ALL GNU software.
6712ef
 # The presence of a machine in this file suggests that SOME GNU software
6712ef
@@ -21,9 +21,7 @@ timestamp='2010-09-11'
6712ef
 # GNU General Public License for more details.
6712ef
 #
6712ef
 # You should have received a copy of the GNU General Public License
6712ef
-# along with this program; if not, write to the Free Software
6712ef
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
6712ef
-# 02110-1301, USA.
6712ef
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
6712ef
 #
6712ef
 # As a special exception to the GNU General Public License, if you
6712ef
 # distribute this file as part of a program that contains a
6712ef
@@ -76,8 +74,8 @@ version="\
6712ef
 GNU config.sub ($timestamp)
6712ef
 
6712ef
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
6712ef
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
6712ef
-Software Foundation, Inc.
6712ef
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
6712ef
+Free Software Foundation, Inc.
6712ef
 
6712ef
 This is free software; see the source for copying conditions.  There is NO
6712ef
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6712ef
@@ -125,13 +123,17 @@ esac
6712ef
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6712ef
 case $maybe_os in
6712ef
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
6712ef
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
6712ef
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
6712ef
   knetbsd*-gnu* | netbsd*-gnu* | \
6712ef
   kopensolaris*-gnu* | \
6712ef
   storm-chaos* | os2-emx* | rtmk-nova*)
6712ef
     os=-$maybe_os
6712ef
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
6712ef
     ;;
6712ef
+  android-linux)
6712ef
+    os=-linux-android
6712ef
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
6712ef
+    ;;
6712ef
   *)
6712ef
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
6712ef
     if [ $basic_machine != $1 ]
6712ef
@@ -154,12 +156,12 @@ case $os in
6712ef
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
6712ef
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
6712ef
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
6712ef
-	-apple | -axis | -knuth | -cray | -microblaze)
6712ef
+	-apple | -axis | -knuth | -cray | -microblaze*)
6712ef
 		os=
6712ef
 		basic_machine=$1
6712ef
 		;;
6712ef
-        -bluegene*)
6712ef
-	        os=-cnk
6712ef
+	-bluegene*)
6712ef
+		os=-cnk
6712ef
 		;;
6712ef
 	-sim | -cisco | -oki | -wec | -winbond)
6712ef
 		os=
6712ef
@@ -175,10 +177,10 @@ case $os in
6712ef
 		os=-chorusos
6712ef
 		basic_machine=$1
6712ef
 		;;
6712ef
- 	-chorusrdb)
6712ef
- 		os=-chorusrdb
6712ef
+	-chorusrdb)
6712ef
+		os=-chorusrdb
6712ef
 		basic_machine=$1
6712ef
- 		;;
6712ef
+		;;
6712ef
 	-hiux*)
6712ef
 		os=-hiuxwe2
6712ef
 		;;
6712ef
@@ -223,6 +225,12 @@ case $os in
6712ef
 	-isc*)
6712ef
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
6712ef
 		;;
6712ef
+	-lynx*178)
6712ef
+		os=-lynxos178
6712ef
+		;;
6712ef
+	-lynx*5)
6712ef
+		os=-lynxos5
6712ef
+		;;
6712ef
 	-lynx*)
6712ef
 		os=-lynxos
6712ef
 		;;
6712ef
@@ -247,20 +255,25 @@ case $basic_machine in
6712ef
 	# Some are omitted here because they have special meanings below.
6712ef
 	1750a | 580 \
6712ef
 	| a29k \
6712ef
+	| aarch64 | aarch64_be \
6712ef
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
6712ef
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6712ef
 	| am33_2.0 \
6712ef
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
6712ef
+        | be32 | be64 \
6712ef
 	| bfin \
6712ef
 	| c4x | clipper \
6712ef
 	| d10v | d30v | dlx | dsp16xx \
6712ef
+	| epiphany \
6712ef
 	| fido | fr30 | frv \
6712ef
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
6712ef
+	| hexagon \
6712ef
 	| i370 | i860 | i960 | ia64 \
6712ef
 	| ip2k | iq2000 \
6712ef
+	| le32 | le64 \
6712ef
 	| lm32 \
6712ef
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
6712ef
-	| maxq | mb | microblaze | mcore | mep | metag \
6712ef
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
6712ef
 	| mips | mipsbe | mipseb | mipsel | mipsle \
6712ef
 	| mips16 \
6712ef
 	| mips64 | mips64el \
6712ef
@@ -286,22 +299,23 @@ case $basic_machine in
6712ef
 	| nds32 | nds32le | nds32be \
6712ef
 	| nios | nios2 \
6712ef
 	| ns16k | ns32k \
6712ef
+	| open8 \
6712ef
 	| or32 \
6712ef
 	| pdp10 | pdp11 | pj | pjl \
6712ef
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
6712ef
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
6712ef
 	| pyramid \
6712ef
-	| rx \
6712ef
+	| rl78 | rx \
6712ef
 	| score \
6712ef
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
6712ef
 	| sh64 | sh64le \
6712ef
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
6712ef
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
6712ef
-	| spu | strongarm \
6712ef
-	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
6712ef
+	| spu \
6712ef
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
6712ef
 	| ubicom32 \
6712ef
-	| v850 | v850e \
6712ef
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
6712ef
 	| we32k \
6712ef
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
6712ef
+	| x86 | xc16x | xstormy16 | xtensa \
6712ef
 	| z8k | z80)
6712ef
 		basic_machine=$basic_machine-unknown
6712ef
 		;;
6712ef
@@ -314,8 +328,7 @@ case $basic_machine in
6712ef
 	c6x)
6712ef
 		basic_machine=tic6x-unknown
6712ef
 		;;
6712ef
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
6712ef
-		# Motorola 68HC11/12.
6712ef
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
6712ef
 		basic_machine=$basic_machine-unknown
6712ef
 		os=-none
6712ef
 		;;
6712ef
@@ -325,6 +338,21 @@ case $basic_machine in
6712ef
 		basic_machine=mt-unknown
6712ef
 		;;
6712ef
 
6712ef
+	strongarm | thumb | xscale)
6712ef
+		basic_machine=arm-unknown
6712ef
+		;;
6712ef
+	xgate)
6712ef
+		basic_machine=$basic_machine-unknown
6712ef
+		os=-none
6712ef
+		;;
6712ef
+	xscaleeb)
6712ef
+		basic_machine=armeb-unknown
6712ef
+		;;
6712ef
+
6712ef
+	xscaleel)
6712ef
+		basic_machine=armel-unknown
6712ef
+		;;
6712ef
+
6712ef
 	# We use `pc' rather than `unknown'
6712ef
 	# because (1) that's what they normally are, and
6712ef
 	# (2) the word "unknown" tends to confuse beginning users.
6712ef
@@ -339,11 +367,13 @@ case $basic_machine in
6712ef
 	# Recognize the basic CPU types with company name.
6712ef
 	580-* \
6712ef
 	| a29k-* \
6712ef
+	| aarch64-* | aarch64_be-* \
6712ef
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
6712ef
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
6712ef
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
6712ef
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
6712ef
 	| avr-* | avr32-* \
6712ef
+	| be32-* | be64-* \
6712ef
 	| bfin-* | bs2000-* \
6712ef
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
6712ef
 	| clipper-* | craynv-* | cydra-* \
6712ef
@@ -352,12 +382,15 @@ case $basic_machine in
6712ef
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
6712ef
 	| h8300-* | h8500-* \
6712ef
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
6712ef
+	| hexagon-* \
6712ef
 	| i*86-* | i860-* | i960-* | ia64-* \
6712ef
 	| ip2k-* | iq2000-* \
6712ef
+	| le32-* | le64-* \
6712ef
 	| lm32-* \
6712ef
 	| m32c-* | m32r-* | m32rle-* \
6712ef
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
6712ef
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
6712ef
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
6712ef
+	| microblaze-* | microblazeel-* \
6712ef
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
6712ef
 	| mips16-* \
6712ef
 	| mips64-* | mips64el-* \
6712ef
@@ -382,24 +415,26 @@ case $basic_machine in
6712ef
 	| nds32-* | nds32le-* | nds32be-* \
6712ef
 	| nios-* | nios2-* \
6712ef
 	| none-* | np1-* | ns16k-* | ns32k-* \
6712ef
+	| open8-* \
6712ef
 	| orion-* \
6712ef
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
6712ef
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
6712ef
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
6712ef
 	| pyramid-* \
6712ef
-	| romp-* | rs6000-* | rx-* \
6712ef
+	| rl78-* | romp-* | rs6000-* | rx-* \
6712ef
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
6712ef
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
6712ef
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
6712ef
 	| sparclite-* \
6712ef
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
6712ef
-	| tahoe-* | thumb-* \
6712ef
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
6712ef
+	| tahoe-* \
6712ef
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
6712ef
-	| tile-* | tilegx-* \
6712ef
+	| tile*-* \
6712ef
 	| tron-* \
6712ef
 	| ubicom32-* \
6712ef
-	| v850-* | v850e-* | vax-* \
6712ef
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
6712ef
+	| vax-* \
6712ef
 	| we32k-* \
6712ef
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
6712ef
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
6712ef
 	| xstormy16-* | xtensa*-* \
6712ef
 	| ymp-* \
6712ef
 	| z8k-* | z80-*)
6712ef
@@ -424,7 +459,7 @@ case $basic_machine in
6712ef
 		basic_machine=a29k-amd
6712ef
 		os=-udi
6712ef
 		;;
6712ef
-    	abacus)
6712ef
+	abacus)
6712ef
 		basic_machine=abacus-unknown
6712ef
 		;;
6712ef
 	adobe68k)
6712ef
@@ -507,7 +542,7 @@ case $basic_machine in
6712ef
 		basic_machine=c90-cray
6712ef
 		os=-unicos
6712ef
 		;;
6712ef
-        cegcc)
6712ef
+	cegcc)
6712ef
 		basic_machine=arm-unknown
6712ef
 		os=-cegcc
6712ef
 		;;
6712ef
@@ -539,7 +574,7 @@ case $basic_machine in
6712ef
 		basic_machine=craynv-cray
6712ef
 		os=-unicosmp
6712ef
 		;;
6712ef
-	cr16)
6712ef
+	cr16 | cr16-*)
6712ef
 		basic_machine=cr16-unknown
6712ef
 		os=-elf
6712ef
 		;;
6712ef
@@ -697,7 +732,6 @@ case $basic_machine in
6712ef
 	i370-ibm* | ibm*)
6712ef
 		basic_machine=i370-ibm
6712ef
 		;;
6712ef
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
6712ef
 	i*86v32)
6712ef
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
6712ef
 		os=-sysv32
6712ef
@@ -755,9 +789,13 @@ case $basic_machine in
6712ef
 		basic_machine=ns32k-utek
6712ef
 		os=-sysv
6712ef
 		;;
6712ef
-        microblaze)
6712ef
+	microblaze*)
6712ef
 		basic_machine=microblaze-xilinx
6712ef
 		;;
6712ef
+	mingw64)
6712ef
+		basic_machine=x86_64-pc
6712ef
+		os=-mingw64
6712ef
+		;;
6712ef
 	mingw32)
6712ef
 		basic_machine=i386-pc
6712ef
 		os=-mingw32
6712ef
@@ -794,10 +832,18 @@ case $basic_machine in
6712ef
 	ms1-*)
6712ef
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
6712ef
 		;;
6712ef
+	msys)
6712ef
+		basic_machine=i386-pc
6712ef
+		os=-msys
6712ef
+		;;
6712ef
 	mvs)
6712ef
 		basic_machine=i370-ibm
6712ef
 		os=-mvs
6712ef
 		;;
6712ef
+	nacl)
6712ef
+		basic_machine=le32-unknown
6712ef
+		os=-nacl
6712ef
+		;;
6712ef
 	ncr3000)
6712ef
 		basic_machine=i486-ncr
6712ef
 		os=-sysv4
6712ef
@@ -862,10 +908,10 @@ case $basic_machine in
6712ef
 	np1)
6712ef
 		basic_machine=np1-gould
6712ef
 		;;
6712ef
-        neo-tandem)
6712ef
+	neo-tandem)
6712ef
 		basic_machine=neo-tandem
6712ef
 		;;
6712ef
-        nse-tandem)
6712ef
+	nse-tandem)
6712ef
 		basic_machine=nse-tandem
6712ef
 		;;
6712ef
 	nsr-tandem)
6712ef
@@ -950,9 +996,10 @@ case $basic_machine in
6712ef
 		;;
6712ef
 	power)	basic_machine=power-ibm
6712ef
 		;;
6712ef
-	ppc)	basic_machine=powerpc-unknown
6712ef
+	ppc | ppcbe)	basic_machine=powerpc-unknown
6712ef
 		;;
6712ef
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
6712ef
+	ppc-* | ppcbe-*)
6712ef
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
6712ef
 		;;
6712ef
 	ppcle | powerpclittle | ppc-le | powerpc-little)
6712ef
 		basic_machine=powerpcle-unknown
6712ef
@@ -1046,6 +1093,9 @@ case $basic_machine in
6712ef
 		basic_machine=i860-stratus
6712ef
 		os=-sysv4
6712ef
 		;;
6712ef
+	strongarm-* | thumb-*)
6712ef
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
6712ef
+		;;
6712ef
 	sun2)
6712ef
 		basic_machine=m68000-sun
6712ef
 		;;
6712ef
@@ -1102,13 +1152,8 @@ case $basic_machine in
6712ef
 		basic_machine=t90-cray
6712ef
 		os=-unicos
6712ef
 		;;
6712ef
-        # This must be matched before tile*.
6712ef
-        tilegx*)
6712ef
-		basic_machine=tilegx-unknown
6712ef
-		os=-linux-gnu
6712ef
-		;;
6712ef
 	tile*)
6712ef
-		basic_machine=tile-unknown
6712ef
+		basic_machine=$basic_machine-unknown
6712ef
 		os=-linux-gnu
6712ef
 		;;
6712ef
 	tx39)
6712ef
@@ -1178,6 +1223,9 @@ case $basic_machine in
6712ef
 	xps | xps100)
6712ef
 		basic_machine=xps100-honeywell
6712ef
 		;;
6712ef
+	xscale-* | xscalee[bl]-*)
6712ef
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
6712ef
+		;;
6712ef
 	ymp)
6712ef
 		basic_machine=ymp-cray
6712ef
 		os=-unicos
6712ef
@@ -1275,11 +1323,11 @@ esac
6712ef
 if [ x"$os" != x"" ]
6712ef
 then
6712ef
 case $os in
6712ef
-        # First match some system type aliases
6712ef
-        # that might get confused with valid system types.
6712ef
+	# First match some system type aliases
6712ef
+	# that might get confused with valid system types.
6712ef
 	# -solaris* is a basic system type, with this one exception.
6712ef
-        -auroraux)
6712ef
-	        os=-auroraux
6712ef
+	-auroraux)
6712ef
+		os=-auroraux
6712ef
 		;;
6712ef
 	-solaris1 | -solaris1.*)
6712ef
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
6712ef
@@ -1309,15 +1357,15 @@ case $os in
6712ef
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
6712ef
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
6712ef
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
6712ef
-	      | -openbsd* | -solidbsd* \
6712ef
+	      | -bitrig* | -openbsd* | -solidbsd* \
6712ef
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
6712ef
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6712ef
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6712ef
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6712ef
 	      | -chorusos* | -chorusrdb* | -cegcc* \
6712ef
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6712ef
-	      | -mingw32* | -linux-gnu* | -linux-android* \
6712ef
-	      | -linux-newlib* | -linux-uclibc* \
6712ef
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6712ef
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
6712ef
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
6712ef
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
6712ef
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6712ef
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6712ef
@@ -1364,7 +1412,7 @@ case $os in
6712ef
 	-opened*)
6712ef
 		os=-openedition
6712ef
 		;;
6712ef
-        -os400*)
6712ef
+	-os400*)
6712ef
 		os=-os400
6712ef
 		;;
6712ef
 	-wince*)
6712ef
@@ -1413,7 +1461,7 @@ case $os in
6712ef
 	-sinix*)
6712ef
 		os=-sysv4
6712ef
 		;;
6712ef
-        -tpf*)
6712ef
+	-tpf*)
6712ef
 		os=-tpf
6712ef
 		;;
6712ef
 	-triton*)
6712ef
@@ -1458,8 +1506,8 @@ case $os in
6712ef
 	-dicos*)
6712ef
 		os=-dicos
6712ef
 		;;
6712ef
-        -nacl*)
6712ef
-	        ;;
6712ef
+	-nacl*)
6712ef
+		;;
6712ef
 	-none)
6712ef
 		;;
6712ef
 	*)
6712ef
@@ -1482,10 +1530,10 @@ else
6712ef
 # system, and we'll never get to this point.
6712ef
 
6712ef
 case $basic_machine in
6712ef
-        score-*)
6712ef
+	score-*)
6712ef
 		os=-elf
6712ef
 		;;
6712ef
-        spu-*)
6712ef
+	spu-*)
6712ef
 		os=-elf
6712ef
 		;;
6712ef
 	*-acorn)
6712ef
@@ -1497,8 +1545,11 @@ case $basic_machine in
6712ef
 	arm*-semi)
6712ef
 		os=-aout
6712ef
 		;;
6712ef
-        c4x-* | tic4x-*)
6712ef
-        	os=-coff
6712ef
+	c4x-* | tic4x-*)
6712ef
+		os=-coff
6712ef
+		;;
6712ef
+	hexagon-*)
6712ef
+		os=-elf
6712ef
 		;;
6712ef
 	tic54x-*)
6712ef
 		os=-coff
6712ef
@@ -1527,14 +1578,11 @@ case $basic_machine in
6712ef
 		;;
6712ef
 	m68000-sun)
6712ef
 		os=-sunos3
6712ef
-		# This also exists in the configure program, but was not the
6712ef
-		# default.
6712ef
-		# os=-sunos4
6712ef
 		;;
6712ef
 	m68*-cisco)
6712ef
 		os=-aout
6712ef
 		;;
6712ef
-        mep-*)
6712ef
+	mep-*)
6712ef
 		os=-elf
6712ef
 		;;
6712ef
 	mips*-cisco)
6712ef
@@ -1561,7 +1609,7 @@ case $basic_machine in
6712ef
 	*-ibm)
6712ef
 		os=-aix
6712ef
 		;;
6712ef
-    	*-knuth)
6712ef
+	*-knuth)
6712ef
 		os=-mmixware
6712ef
 		;;
6712ef
 	*-wec)