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