56d343
--- fastjar-0.97/config.guess
56d343
+++ fastjar-0.97/config.guess
56d343
@@ -1,10 +1,10 @@
56d343
 #! /bin/sh
56d343
 # Attempt to guess a canonical system name.
56d343
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
56d343
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
56d343
-#   Free Software Foundation, Inc.
56d343
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
56d343
+#   2011, 2012 Free Software Foundation, Inc.
56d343
 
56d343
-timestamp='2008-01-23'
56d343
+timestamp='2012-06-10'
56d343
 
56d343
 # This file is free software; you can redistribute it and/or modify it
56d343
 # under the terms of the GNU General Public License as published by
56d343
@@ -17,9 +17,7 @@ timestamp='2008-01-23'
56d343
 # General Public License for more details.
56d343
 #
56d343
 # You should have received a copy of the GNU General Public License
56d343
-# along with this program; if not, write to the Free Software
56d343
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
56d343
-# 02110-1301, USA.
56d343
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
56d343
 #
56d343
 # As a special exception to the GNU General Public License, if you
56d343
 # distribute this file as part of a program that contains a
56d343
@@ -27,16 +25,16 @@ timestamp='2008-01-23'
56d343
 # the same distribution terms that you use for the rest of that program.
56d343
 
56d343
 
56d343
-# Originally written by Per Bothner <per@bothner.com>.
56d343
-# Please send patches to <config-patches@gnu.org>.  Submit a context
56d343
-# diff and a properly formatted ChangeLog entry.
56d343
+# Originally written by Per Bothner.  Please send patches (context
56d343
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
56d343
+# entry.
56d343
 #
56d343
 # This script attempts to guess a canonical system name similar to
56d343
 # config.sub.  If it succeeds, it prints the system name on stdout, and
56d343
 # exits with 0.  Otherwise, it exits with 1.
56d343
 #
56d343
-# The plan is that this can be called by configure scripts if you
56d343
-# don't specify an explicit build system type.
56d343
+# You can get the latest version of this script from:
56d343
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
56d343
 
56d343
 me=`echo "$0" | sed -e 's,.*/,,'`
56d343
 
56d343
@@ -56,8 +54,9 @@ version="\
56d343
 GNU config.guess ($timestamp)
56d343
 
56d343
 Originally written by Per Bothner.
56d343
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
56d343
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
56d343
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
56d343
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
56d343
+Free Software Foundation, Inc.
56d343
 
56d343
 This is free software; see the source for copying conditions.  There is NO
56d343
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
56d343
@@ -144,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
56d343
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
     *:NetBSD:*:*)
56d343
 	# NetBSD (nbsd) targets should (where applicable) match one or
56d343
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
56d343
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
56d343
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
56d343
 	# switched to ELF, *-*-netbsd* would select the old
56d343
 	# object file format.  This provides both forward
56d343
@@ -170,7 +169,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
56d343
 		eval $set_cc_for_build
56d343
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
56d343
-			| grep __ELF__ >/dev/null
56d343
+			| grep -q __ELF__
56d343
 		then
56d343
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
56d343
 		    # Return netbsd for either.  FIX?
56d343
@@ -180,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 		fi
56d343
 		;;
56d343
 	    *)
56d343
-	        os=netbsd
56d343
+		os=netbsd
56d343
 		;;
56d343
 	esac
56d343
 	# The OS release
56d343
@@ -223,7 +222,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
56d343
 		;;
56d343
 	*5.*)
56d343
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
56d343
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
56d343
 		;;
56d343
 	esac
56d343
 	# According to Compaq, /usr/sbin/psrinfo has been available on
56d343
@@ -269,7 +268,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 	# A Xn.n version is an unreleased experimental baselevel.
56d343
 	# 1.2 uses "1.2" for uname -r.
56d343
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
56d343
-	exit ;;
56d343
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
56d343
+	exitcode=$?
56d343
+	trap '' 0
56d343
+	exit $exitcode ;;
56d343
     Alpha\ *:Windows_NT*:*)
56d343
 	# How do we know it's Interix rather than the generic POSIX subsystem?
56d343
 	# Should we change UNAME_MACHINE based on the output of uname instead
56d343
@@ -295,7 +297,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 	echo s390-ibm-zvmoe
56d343
 	exit ;;
56d343
     *:OS400:*:*)
56d343
-        echo powerpc-ibm-os400
56d343
+	echo powerpc-ibm-os400
56d343
 	exit ;;
56d343
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
56d343
 	echo arm-acorn-riscix${UNAME_RELEASE}
56d343
@@ -324,14 +326,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
 	case `/usr/bin/uname -p` in
56d343
 	    sparc) echo sparc-icl-nx7; exit ;;
56d343
 	esac ;;
56d343
+    s390x:SunOS:*:*)
56d343
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
56d343
+	exit ;;
56d343
     sun4H:SunOS:5.*:*)
56d343
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
56d343
 	exit ;;
56d343
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
56d343
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
56d343
 	exit ;;
56d343
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
56d343
+	echo i386-pc-auroraux${UNAME_RELEASE}
56d343
+	exit ;;
56d343
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
56d343
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
56d343
+	eval $set_cc_for_build
56d343
+	SUN_ARCH="i386"
56d343
+	# If there is a compiler, see if it is configured for 64-bit objects.
56d343
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
56d343
+	# This test works for both compilers.
56d343
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
56d343
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
56d343
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
56d343
+		grep IS_64BIT_ARCH >/dev/null
56d343
+	    then
56d343
+		SUN_ARCH="x86_64"
56d343
+	    fi
56d343
+	fi
56d343
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
56d343
 	exit ;;
56d343
     sun4*:SunOS:6*:*)
56d343
 	# According to config.sub, this is the proper way to canonicalize
56d343
@@ -375,23 +396,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
56d343
     # MiNT.  But MiNT is downward compatible to TOS, so this should
56d343
     # be no problem.
56d343
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
56d343
-        echo m68k-atari-mint${UNAME_RELEASE}
56d343
+	echo m68k-atari-mint${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
56d343
 	echo m68k-atari-mint${UNAME_RELEASE}
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
56d343
-        echo m68k-atari-mint${UNAME_RELEASE}
56d343
+	echo m68k-atari-mint${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
56d343
-        echo m68k-milan-mint${UNAME_RELEASE}
56d343
-        exit ;;
56d343
+	echo m68k-milan-mint${UNAME_RELEASE}
56d343
+	exit ;;
56d343
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
56d343
-        echo m68k-hades-mint${UNAME_RELEASE}
56d343
-        exit ;;
56d343
+	echo m68k-hades-mint${UNAME_RELEASE}
56d343
+	exit ;;
56d343
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
56d343
-        echo m68k-unknown-mint${UNAME_RELEASE}
56d343
-        exit ;;
56d343
+	echo m68k-unknown-mint${UNAME_RELEASE}
56d343
+	exit ;;
56d343
     m68k:machten:*:*)
56d343
 	echo m68k-apple-machten${UNAME_RELEASE}
56d343
 	exit ;;
56d343
@@ -461,8 +482,8 @@ EOF
56d343
 	echo m88k-motorola-sysv3
56d343
 	exit ;;
56d343
     AViiON:dgux:*:*)
56d343
-        # DG/UX returns AViiON for all architectures
56d343
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
56d343
+	# DG/UX returns AViiON for all architectures
56d343
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
56d343
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
56d343
 	then
56d343
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
56d343
@@ -475,7 +496,7 @@ EOF
56d343
 	else
56d343
 	    echo i586-dg-dgux${UNAME_RELEASE}
56d343
 	fi
56d343
- 	exit ;;
56d343
+	exit ;;
56d343
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
56d343
 	echo m88k-dolphin-sysv3
56d343
 	exit ;;
56d343
@@ -532,7 +553,7 @@ EOF
56d343
 		echo rs6000-ibm-aix3.2
56d343
 	fi
56d343
 	exit ;;
56d343
-    *:AIX:*:[456])
56d343
+    *:AIX:*:[4567])
56d343
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
56d343
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
56d343
 		IBM_ARCH=rs6000
56d343
@@ -575,52 +596,52 @@ EOF
56d343
 	    9000/[678][0-9][0-9])
56d343
 		if [ -x /usr/bin/getconf ]; then
56d343
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
56d343
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
56d343
-                    case "${sc_cpu_version}" in
56d343
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
56d343
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
56d343
-                      532)                      # CPU_PA_RISC2_0
56d343
-                        case "${sc_kernel_bits}" in
56d343
-                          32) HP_ARCH="hppa2.0n" ;;
56d343
-                          64) HP_ARCH="hppa2.0w" ;;
56d343
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
56d343
+		    case "${sc_cpu_version}" in
56d343
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
56d343
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
56d343
+		      532)                      # CPU_PA_RISC2_0
56d343
+			case "${sc_kernel_bits}" in
56d343
+			  32) HP_ARCH="hppa2.0n" ;;
56d343
+			  64) HP_ARCH="hppa2.0w" ;;
56d343
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
56d343
-                        esac ;;
56d343
-                    esac
56d343
+			esac ;;
56d343
+		    esac
56d343
 		fi
56d343
 		if [ "${HP_ARCH}" = "" ]; then
56d343
 		    eval $set_cc_for_build
56d343
-		    sed 's/^              //' << EOF >$dummy.c
56d343
+		    sed 's/^		//' << EOF >$dummy.c
56d343
 
56d343
-              #define _HPUX_SOURCE
56d343
-              #include <stdlib.h>
56d343
-              #include <unistd.h>
56d343
+		#define _HPUX_SOURCE
56d343
+		#include <stdlib.h>
56d343
+		#include <unistd.h>
56d343
 
56d343
-              int main ()
56d343
-              {
56d343
-              #if defined(_SC_KERNEL_BITS)
56d343
-                  long bits = sysconf(_SC_KERNEL_BITS);
56d343
-              #endif
56d343
-                  long cpu  = sysconf (_SC_CPU_VERSION);
56d343
+		int main ()
56d343
+		{
56d343
+		#if defined(_SC_KERNEL_BITS)
56d343
+		    long bits = sysconf(_SC_KERNEL_BITS);
56d343
+		#endif
56d343
+		    long cpu  = sysconf (_SC_CPU_VERSION);
56d343
 
56d343
-                  switch (cpu)
56d343
-              	{
56d343
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
56d343
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
56d343
-              	case CPU_PA_RISC2_0:
56d343
-              #if defined(_SC_KERNEL_BITS)
56d343
-              	    switch (bits)
56d343
-              		{
56d343
-              		case 64: puts ("hppa2.0w"); break;
56d343
-              		case 32: puts ("hppa2.0n"); break;
56d343
-              		default: puts ("hppa2.0"); break;
56d343
-              		} break;
56d343
-              #else  /* !defined(_SC_KERNEL_BITS) */
56d343
-              	    puts ("hppa2.0"); break;
56d343
-              #endif
56d343
-              	default: puts ("hppa1.0"); break;
56d343
-              	}
56d343
-                  exit (0);
56d343
-              }
56d343
+		    switch (cpu)
56d343
+			{
56d343
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
56d343
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
56d343
+			case CPU_PA_RISC2_0:
56d343
+		#if defined(_SC_KERNEL_BITS)
56d343
+			    switch (bits)
56d343
+				{
56d343
+				case 64: puts ("hppa2.0w"); break;
56d343
+				case 32: puts ("hppa2.0n"); break;
56d343
+				default: puts ("hppa2.0"); break;
56d343
+				} break;
56d343
+		#else  /* !defined(_SC_KERNEL_BITS) */
56d343
+			    puts ("hppa2.0"); break;
56d343
+		#endif
56d343
+			default: puts ("hppa1.0"); break;
56d343
+			}
56d343
+		    exit (0);
56d343
+		}
56d343
 EOF
56d343
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
56d343
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
56d343
@@ -640,7 +661,7 @@ EOF
56d343
 	    # => hppa64-hp-hpux11.23
56d343
 
56d343
 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
56d343
-		grep __LP64__ >/dev/null
56d343
+		grep -q __LP64__
56d343
 	    then
56d343
 		HP_ARCH="hppa2.0w"
56d343
 	    else
56d343
@@ -711,22 +732,22 @@ EOF
56d343
 	exit ;;
56d343
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
56d343
 	echo c1-convex-bsd
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
56d343
 	if getsysinfo -f scalar_acc
56d343
 	then echo c32-convex-bsd
56d343
 	else echo c2-convex-bsd
56d343
 	fi
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
56d343
 	echo c34-convex-bsd
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
56d343
 	echo c38-convex-bsd
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
56d343
 	echo c4-convex-bsd
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     CRAY*Y-MP:*:*:*)
56d343
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
56d343
 	exit ;;
56d343
@@ -750,14 +771,14 @@ EOF
56d343
 	exit ;;
56d343
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
56d343
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
56d343
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
56d343
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
56d343
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
56d343
-        exit ;;
56d343
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
56d343
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
56d343
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
56d343
+	exit ;;
56d343
     5000:UNIX_System_V:4.*:*)
56d343
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
56d343
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
56d343
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
56d343
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
56d343
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
56d343
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
56d343
 	exit ;;
56d343
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
56d343
@@ -769,13 +790,12 @@ EOF
56d343
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     *:FreeBSD:*:*)
56d343
-	case ${UNAME_MACHINE} in
56d343
-	    pc98)
56d343
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
56d343
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
56d343
+	case ${UNAME_PROCESSOR} in
56d343
 	    amd64)
56d343
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
56d343
 	    *)
56d343
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
56d343
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
56d343
 	esac
56d343
 	exit ;;
56d343
     i*:CYGWIN*:*)
56d343
@@ -784,19 +804,22 @@ EOF
56d343
     *:MINGW*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-mingw32
56d343
 	exit ;;
56d343
+    i*:MSYS*:*)
56d343
+	echo ${UNAME_MACHINE}-pc-msys
56d343
+	exit ;;
56d343
     i*:windows32*:*)
56d343
-    	# uname -m includes "-pc" on this system.
56d343
-    	echo ${UNAME_MACHINE}-mingw32
56d343
+	# uname -m includes "-pc" on this system.
56d343
+	echo ${UNAME_MACHINE}-mingw32
56d343
 	exit ;;
56d343
     i*:PW*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-pw32
56d343
 	exit ;;
56d343
-    *:Interix*:[3456]*)
56d343
-    	case ${UNAME_MACHINE} in
56d343
+    *:Interix*:*)
56d343
+	case ${UNAME_MACHINE} in
56d343
 	    x86)
56d343
 		echo i586-pc-interix${UNAME_RELEASE}
56d343
 		exit ;;
56d343
-	    EM64T | authenticamd)
56d343
+	    authenticamd | genuineintel | EM64T)
56d343
 		echo x86_64-unknown-interix${UNAME_RELEASE}
56d343
 		exit ;;
56d343
 	    IA64)
56d343
@@ -806,6 +829,9 @@ EOF
56d343
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
56d343
 	echo i${UNAME_MACHINE}-pc-mks
56d343
 	exit ;;
56d343
+    8664:Windows_NT:*)
56d343
+	echo x86_64-pc-mks
56d343
+	exit ;;
56d343
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
56d343
 	# How do we know it's Interix rather than the generic POSIX subsystem?
56d343
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
56d343
@@ -835,6 +861,27 @@ EOF
56d343
     i*86:Minix:*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-minix
56d343
 	exit ;;
56d343
+    aarch64:Linux:*:*)
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	exit ;;
56d343
+    aarch64_be:Linux:*:*)
56d343
+	UNAME_MACHINE=aarch64_be
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	exit ;;
56d343
+    alpha:Linux:*:*)
56d343
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
56d343
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
56d343
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
56d343
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
56d343
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
56d343
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
56d343
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
56d343
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
56d343
+	esac
56d343
+	objdump --private-headers /bin/sh | grep -q ld.so.1
56d343
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
56d343
+	exit ;;
56d343
     arm*:Linux:*:*)
56d343
 	eval $set_cc_for_build
56d343
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
56d343
@@ -842,20 +889,40 @@ EOF
56d343
 	then
56d343
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	else
56d343
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
56d343
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
56d343
+		| grep -q __ARM_PCS_VFP
56d343
+	    then
56d343
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
56d343
+	    else
56d343
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
56d343
+	    fi
56d343
 	fi
56d343
 	exit ;;
56d343
     avr32*:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
     cris:Linux:*:*)
56d343
-	echo cris-axis-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-axis-linux-gnu
56d343
 	exit ;;
56d343
     crisv32:Linux:*:*)
56d343
-	echo crisv32-axis-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-axis-linux-gnu
56d343
 	exit ;;
56d343
     frv:Linux:*:*)
56d343
-    	echo frv-unknown-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	exit ;;
56d343
+    hexagon:Linux:*:*)
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	exit ;;
56d343
+    i*86:Linux:*:*)
56d343
+	LIBC=gnu
56d343
+	eval $set_cc_for_build
56d343
+	sed 's/^	//' << EOF >$dummy.c
56d343
+	#ifdef __dietlibc__
56d343
+	LIBC=dietlibc
56d343
+	#endif
56d343
+EOF
56d343
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
56d343
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
56d343
 	exit ;;
56d343
     ia64:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
@@ -866,74 +933,33 @@ EOF
56d343
     m68*:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
-    mips:Linux:*:*)
56d343
+    mips:Linux:*:* | mips64:Linux:*:*)
56d343
 	eval $set_cc_for_build
56d343
 	sed 's/^	//' << EOF >$dummy.c
56d343
 	#undef CPU
56d343
-	#undef mips
56d343
-	#undef mipsel
56d343
+	#undef ${UNAME_MACHINE}
56d343
+	#undef ${UNAME_MACHINE}el
56d343
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
56d343
-	CPU=mipsel
56d343
+	CPU=${UNAME_MACHINE}el
56d343
 	#else
56d343
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
56d343
-	CPU=mips
56d343
+	CPU=${UNAME_MACHINE}
56d343
 	#else
56d343
 	CPU=
56d343
 	#endif
56d343
 	#endif
56d343
 EOF
56d343
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
56d343
-	    /^CPU/{
56d343
-		s: ::g
56d343
-		p
56d343
-	    }'`"
56d343
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
56d343
-	;;
56d343
-    mips64:Linux:*:*)
56d343
-	eval $set_cc_for_build
56d343
-	sed 's/^	//' << EOF >$dummy.c
56d343
-	#undef CPU
56d343
-	#undef mips64
56d343
-	#undef mips64el
56d343
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
56d343
-	CPU=mips64el
56d343
-	#else
56d343
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
56d343
-	CPU=mips64
56d343
-	#else
56d343
-	CPU=
56d343
-	#endif
56d343
-	#endif
56d343
-EOF
56d343
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
56d343
-	    /^CPU/{
56d343
-		s: ::g
56d343
-		p
56d343
-	    }'`"
56d343
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
56d343
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
56d343
 	;;
56d343
     or32:Linux:*:*)
56d343
-	echo or32-unknown-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
-    ppc:Linux:*:*)
56d343
-	echo powerpc-unknown-linux-gnu
56d343
+    padre:Linux:*:*)
56d343
+	echo sparc-unknown-linux-gnu
56d343
 	exit ;;
56d343
-    ppc64:Linux:*:*)
56d343
-	echo powerpc64-unknown-linux-gnu
56d343
-	exit ;;
56d343
-    alpha:Linux:*:*)
56d343
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
56d343
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
56d343
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
56d343
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
56d343
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
56d343
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
56d343
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
56d343
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
56d343
-        esac
56d343
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
56d343
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
56d343
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
56d343
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
56d343
+	echo hppa64-unknown-linux-gnu
56d343
 	exit ;;
56d343
     parisc:Linux:*:* | hppa:Linux:*:*)
56d343
 	# Look for CPU level
56d343
@@ -943,14 +969,17 @@ EOF
56d343
 	  *)    echo hppa-unknown-linux-gnu ;;
56d343
 	esac
56d343
 	exit ;;
56d343
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
56d343
-	echo hppa64-unknown-linux-gnu
56d343
+    ppc64:Linux:*:*)
56d343
+	echo powerpc64-unknown-linux-gnu
56d343
+	exit ;;
56d343
+    ppc:Linux:*:*)
56d343
+	echo powerpc-unknown-linux-gnu
56d343
 	exit ;;
56d343
     s390:Linux:*:* | s390x:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-ibm-linux
56d343
 	exit ;;
56d343
     sh64*:Linux:*:*)
56d343
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
     sh*:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
@@ -958,78 +987,18 @@ EOF
56d343
     sparc:Linux:*:* | sparc64:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
+    tile*:Linux:*:*)
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	exit ;;
56d343
     vax:Linux:*:*)
56d343
 	echo ${UNAME_MACHINE}-dec-linux-gnu
56d343
 	exit ;;
56d343
     x86_64:Linux:*:*)
56d343
-	echo x86_64-unknown-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
     xtensa*:Linux:*:*)
56d343
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
56d343
 	exit ;;
56d343
-    i*86:Linux:*:*)
56d343
-	# The BFD linker knows what the default object file format is, so
56d343
-	# first see if it will tell us. cd to the root directory to prevent
56d343
-	# problems with other programs or directories called `ld' in the path.
56d343
-	# Set LC_ALL=C to ensure ld outputs messages in English.
56d343
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
56d343
-			 | sed -ne '/supported targets:/!d
56d343
-				    s/[ 	][ 	]*/ /g
56d343
-				    s/.*supported targets: *//
56d343
-				    s/ .*//
56d343
-				    p'`
56d343
-        case "$ld_supported_targets" in
56d343
-	  elf32-i386)
56d343
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
56d343
-		;;
56d343
-	  a.out-i386-linux)
56d343
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
56d343
-		exit ;;
56d343
-	  coff-i386)
56d343
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
56d343
-		exit ;;
56d343
-	  "")
56d343
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
56d343
-		# one that does not give us useful --help.
56d343
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
56d343
-		exit ;;
56d343
-	esac
56d343
-	# Determine whether the default compiler is a.out or elf
56d343
-	eval $set_cc_for_build
56d343
-	sed 's/^	//' << EOF >$dummy.c
56d343
-	#include <features.h>
56d343
-	#ifdef __ELF__
56d343
-	# ifdef __GLIBC__
56d343
-	#  if __GLIBC__ >= 2
56d343
-	LIBC=gnu
56d343
-	#  else
56d343
-	LIBC=gnulibc1
56d343
-	#  endif
56d343
-	# else
56d343
-	LIBC=gnulibc1
56d343
-	# endif
56d343
-	#else
56d343
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
56d343
-	LIBC=gnu
56d343
-	#else
56d343
-	LIBC=gnuaout
56d343
-	#endif
56d343
-	#endif
56d343
-	#ifdef __dietlibc__
56d343
-	LIBC=dietlibc
56d343
-	#endif
56d343
-EOF
56d343
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
56d343
-	    /^LIBC/{
56d343
-		s: ::g
56d343
-		p
56d343
-	    }'`"
56d343
-	test x"${LIBC}" != x && {
56d343
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
56d343
-		exit
56d343
-	}
56d343
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
56d343
-	;;
56d343
     i*86:DYNIX/ptx:4*:*)
56d343
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
56d343
 	# earlier versions are messed up and put the nodename in both
56d343
@@ -1037,11 +1006,11 @@ EOF
56d343
 	echo i386-sequent-sysv4
56d343
 	exit ;;
56d343
     i*86:UNIX_SV:4.2MP:2.*)
56d343
-        # Unixware is an offshoot of SVR4, but it has its own version
56d343
-        # number series starting with 2...
56d343
-        # I am not positive that other SVR4 systems won't match this,
56d343
+	# Unixware is an offshoot of SVR4, but it has its own version
56d343
+	# number series starting with 2...
56d343
+	# I am not positive that other SVR4 systems won't match this,
56d343
 	# I just have to hope.  -- rms.
56d343
-        # Use sysv4.2uw... so that sysv4* matches it.
56d343
+	# Use sysv4.2uw... so that sysv4* matches it.
56d343
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
56d343
 	exit ;;
56d343
     i*86:OS/2:*:*)
56d343
@@ -1058,7 +1027,7 @@ EOF
56d343
     i*86:syllable:*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-syllable
56d343
 	exit ;;
56d343
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
56d343
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
56d343
 	echo i386-unknown-lynxos${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     i*86:*DOS:*:*)
56d343
@@ -1073,7 +1042,7 @@ EOF
56d343
 	fi
56d343
 	exit ;;
56d343
     i*86:*:5:[678]*)
56d343
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
56d343
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
56d343
 	case `/bin/uname -X | grep "^Machine"` in
56d343
 	    *486*)	     UNAME_MACHINE=i486 ;;
56d343
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
56d343
@@ -1101,10 +1070,13 @@ EOF
56d343
 	exit ;;
56d343
     pc:*:*:*)
56d343
 	# Left here for compatibility:
56d343
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
56d343
-        # the processor, so we play safe by assuming i386.
56d343
-	echo i386-pc-msdosdjgpp
56d343
-        exit ;;
56d343
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
56d343
+	# the processor, so we play safe by assuming i586.
56d343
+	# Note: whatever this is, it MUST be the same as what config.sub
56d343
+	# prints for the "djgpp" host, or else GDB configury will decide that
56d343
+	# this is a cross-build.
56d343
+	echo i586-pc-msdosdjgpp
56d343
+	exit ;;
56d343
     Intel:Mach:3*:*)
56d343
 	echo i386-pc-mach3
56d343
 	exit ;;
56d343
@@ -1139,8 +1111,18 @@ EOF
56d343
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
56d343
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
56d343
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
56d343
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
56d343
-          && { echo i486-ncr-sysv4; exit; } ;;
56d343
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
56d343
+	  && { echo i486-ncr-sysv4; exit; } ;;
56d343
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
56d343
+	OS_REL='.3'
56d343
+	test -r /etc/.relid \
56d343
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
56d343
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
56d343
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
56d343
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
56d343
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
56d343
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
56d343
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
56d343
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
56d343
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
56d343
 	exit ;;
56d343
@@ -1153,7 +1135,7 @@ EOF
56d343
     rs6000:LynxOS:2.*:*)
56d343
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
56d343
 	exit ;;
56d343
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
56d343
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
56d343
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     SM[BE]S:UNIX_SV:*:*)
56d343
@@ -1173,10 +1155,10 @@ EOF
56d343
 		echo ns32k-sni-sysv
56d343
 	fi
56d343
 	exit ;;
56d343
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
56d343
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
56d343
-        echo i586-unisys-sysv4
56d343
-        exit ;;
56d343
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
56d343
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
56d343
+	echo i586-unisys-sysv4
56d343
+	exit ;;
56d343
     *:UNIX_System_V:4*:FTX*)
56d343
 	# From Gerald Hewes <hewes@openmarket.com>.
56d343
 	# How about differentiating between stratus architectures? -djm
56d343
@@ -1202,11 +1184,11 @@ EOF
56d343
 	exit ;;
56d343
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
56d343
 	if [ -d /usr/nec ]; then
56d343
-	        echo mips-nec-sysv${UNAME_RELEASE}
56d343
+		echo mips-nec-sysv${UNAME_RELEASE}
56d343
 	else
56d343
-	        echo mips-unknown-sysv${UNAME_RELEASE}
56d343
+		echo mips-unknown-sysv${UNAME_RELEASE}
56d343
 	fi
56d343
-        exit ;;
56d343
+	exit ;;
56d343
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
56d343
 	echo powerpc-be-beos
56d343
 	exit ;;
56d343
@@ -1216,6 +1198,9 @@ EOF
56d343
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
56d343
 	echo i586-pc-beos
56d343
 	exit ;;
56d343
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
56d343
+	echo i586-pc-haiku
56d343
+	exit ;;
56d343
     SX-4:SUPER-UX:*:*)
56d343
 	echo sx4-nec-superux${UNAME_RELEASE}
56d343
 	exit ;;
56d343
@@ -1243,6 +1228,16 @@ EOF
56d343
     *:Darwin:*:*)
56d343
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
56d343
 	case $UNAME_PROCESSOR in
56d343
+	    i386)
56d343
+		eval $set_cc_for_build
56d343
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
56d343
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
56d343
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
56d343
+		      grep IS_64BIT_ARCH >/dev/null
56d343
+		  then
56d343
+		      UNAME_PROCESSOR="x86_64"
56d343
+		  fi
56d343
+		fi ;;
56d343
 	    unknown) UNAME_PROCESSOR=powerpc ;;
56d343
 	esac
56d343
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
56d343
@@ -1258,7 +1253,10 @@ EOF
56d343
     *:QNX:*:4*)
56d343
 	echo i386-pc-qnx
56d343
 	exit ;;
56d343
-    NSE-?:NONSTOP_KERNEL:*:*)
56d343
+    NEO-?:NONSTOP_KERNEL:*:*)
56d343
+	echo neo-tandem-nsk${UNAME_RELEASE}
56d343
+	exit ;;
56d343
+    NSE-*:NONSTOP_KERNEL:*:*)
56d343
 	echo nse-tandem-nsk${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     NSR-?:NONSTOP_KERNEL:*:*)
56d343
@@ -1303,13 +1301,13 @@ EOF
56d343
 	echo pdp10-unknown-its
56d343
 	exit ;;
56d343
     SEI:*:*:SEIUX)
56d343
-        echo mips-sei-seiux${UNAME_RELEASE}
56d343
+	echo mips-sei-seiux${UNAME_RELEASE}
56d343
 	exit ;;
56d343
     *:DragonFly:*:*)
56d343
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
56d343
 	exit ;;
56d343
     *:*VMS:*:*)
56d343
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
56d343
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
56d343
 	case "${UNAME_MACHINE}" in
56d343
 	    A*) echo alpha-dec-vms ; exit ;;
56d343
 	    I*) echo ia64-dec-vms ; exit ;;
56d343
@@ -1324,6 +1322,12 @@ EOF
56d343
     i*86:rdos:*:*)
56d343
 	echo ${UNAME_MACHINE}-pc-rdos
56d343
 	exit ;;
56d343
+    i*86:AROS:*:*)
56d343
+	echo ${UNAME_MACHINE}-pc-aros
56d343
+	exit ;;
56d343
+    x86_64:VMkernel:*:*)
56d343
+	echo ${UNAME_MACHINE}-unknown-esx
56d343
+	exit ;;
56d343
 esac
56d343
 
56d343
 #echo '(No uname command or uname output not recognized.)' 1>&2
56d343
@@ -1346,11 +1350,11 @@ main ()
56d343
 #include <sys/param.h>
56d343
   printf ("m68k-sony-newsos%s\n",
56d343
 #ifdef NEWSOS4
56d343
-          "4"
56d343
+	"4"
56d343
 #else
56d343
-	  ""
56d343
+	""
56d343
 #endif
56d343
-         ); exit (0);
56d343
+	); exit (0);
56d343
 #endif
56d343
 #endif
56d343
 
56d343
--- fastjar-0.97/config.sub
56d343
+++ fastjar-0.97/config.sub
56d343
@@ -1,10 +1,10 @@
56d343
 #! /bin/sh
56d343
 # Configuration validation subroutine script.
56d343
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
56d343
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
56d343
-#   Free Software Foundation, Inc.
56d343
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
56d343
+#   2011, 2012 Free Software Foundation, Inc.
56d343
 
56d343
-timestamp='2008-01-16'
56d343
+timestamp='2012-04-18'
56d343
 
56d343
 # This file is (in principle) common to ALL GNU software.
56d343
 # The presence of a machine in this file suggests that SOME GNU software
56d343
@@ -21,9 +21,7 @@ timestamp='2008-01-16'
56d343
 # GNU General Public License for more details.
56d343
 #
56d343
 # You should have received a copy of the GNU General Public License
56d343
-# along with this program; if not, write to the Free Software
56d343
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
56d343
-# 02110-1301, USA.
56d343
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
56d343
 #
56d343
 # As a special exception to the GNU General Public License, if you
56d343
 # distribute this file as part of a program that contains a
56d343
@@ -32,13 +30,16 @@ timestamp='2008-01-16'
56d343
 
56d343
 
56d343
 # Please send patches to <config-patches@gnu.org>.  Submit a context
56d343
-# diff and a properly formatted ChangeLog entry.
56d343
+# diff and a properly formatted GNU ChangeLog entry.
56d343
 #
56d343
 # Configuration subroutine to validate and canonicalize a configuration type.
56d343
 # Supply the specified configuration type as an argument.
56d343
 # If it is invalid, we print an error message on stderr and exit with code 1.
56d343
 # Otherwise, we print the canonical config type on stdout and succeed.
56d343
 
56d343
+# You can get the latest version of this script from:
56d343
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
56d343
+
56d343
 # This file is supposed to be the same for all GNU packages
56d343
 # and recognize all the CPU types, system types and aliases
56d343
 # that are meaningful with *any* GNU software.
56d343
@@ -72,8 +73,9 @@ Report bugs and patches to <config-patches@gnu.org>."
56d343
 version="\
56d343
 GNU config.sub ($timestamp)
56d343
 
56d343
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
56d343
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
56d343
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
56d343
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
56d343
+Free Software Foundation, Inc.
56d343
 
56d343
 This is free software; see the source for copying conditions.  There is NO
56d343
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
56d343
@@ -120,12 +122,18 @@ esac
56d343
 # Here we must recognize all the valid KERNEL-OS combinations.
56d343
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
56d343
 case $maybe_os in
56d343
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
56d343
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
56d343
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
56d343
+  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
56d343
+  knetbsd*-gnu* | netbsd*-gnu* | \
56d343
+  kopensolaris*-gnu* | \
56d343
   storm-chaos* | os2-emx* | rtmk-nova*)
56d343
     os=-$maybe_os
56d343
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
56d343
     ;;
56d343
+  android-linux)
56d343
+    os=-linux-android
56d343
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
56d343
+    ;;
56d343
   *)
56d343
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
56d343
     if [ $basic_machine != $1 ]
56d343
@@ -148,10 +156,13 @@ case $os in
56d343
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
56d343
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
56d343
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
56d343
-	-apple | -axis | -knuth | -cray)
56d343
+	-apple | -axis | -knuth | -cray | -microblaze)
56d343
 		os=
56d343
 		basic_machine=$1
56d343
 		;;
56d343
+	-bluegene*)
56d343
+		os=-cnk
56d343
+		;;
56d343
 	-sim | -cisco | -oki | -wec | -winbond)
56d343
 		os=
56d343
 		basic_machine=$1
56d343
@@ -166,10 +177,10 @@ case $os in
56d343
 		os=-chorusos
56d343
 		basic_machine=$1
56d343
 		;;
56d343
- 	-chorusrdb)
56d343
- 		os=-chorusrdb
56d343
+	-chorusrdb)
56d343
+		os=-chorusrdb
56d343
 		basic_machine=$1
56d343
- 		;;
56d343
+		;;
56d343
 	-hiux*)
56d343
 		os=-hiuxwe2
56d343
 		;;
56d343
@@ -214,6 +225,12 @@ case $os in
56d343
 	-isc*)
56d343
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
56d343
 		;;
56d343
+	-lynx*178)
56d343
+		os=-lynxos178
56d343
+		;;
56d343
+	-lynx*5)
56d343
+		os=-lynxos5
56d343
+		;;
56d343
 	-lynx*)
56d343
 		os=-lynxos
56d343
 		;;
56d343
@@ -238,24 +255,32 @@ case $basic_machine in
56d343
 	# Some are omitted here because they have special meanings below.
56d343
 	1750a | 580 \
56d343
 	| a29k \
56d343
+	| aarch64 | aarch64_be \
56d343
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
56d343
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
56d343
 	| am33_2.0 \
56d343
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
56d343
+        | be32 | be64 \
56d343
 	| bfin \
56d343
 	| c4x | clipper \
56d343
 	| d10v | d30v | dlx | dsp16xx \
56d343
+	| epiphany \
56d343
 	| fido | fr30 | frv \
56d343
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
56d343
+	| hexagon \
56d343
 	| i370 | i860 | i960 | ia64 \
56d343
 	| ip2k | iq2000 \
56d343
+	| le32 | le64 \
56d343
+	| lm32 \
56d343
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
56d343
-	| maxq | mb | microblaze | mcore | mep \
56d343
+	| maxq | mb | microblaze | mcore | mep | metag \
56d343
 	| mips | mipsbe | mipseb | mipsel | mipsle \
56d343
 	| mips16 \
56d343
 	| mips64 | mips64el \
56d343
-	| mips64vr | mips64vrel \
56d343
+	| mips64octeon | mips64octeonel \
56d343
 	| mips64orion | mips64orionel \
56d343
+	| mips64r5900 | mips64r5900el \
56d343
+	| mips64vr | mips64vrel \
56d343
 	| mips64vr4100 | mips64vr4100el \
56d343
 	| mips64vr4300 | mips64vr4300el \
56d343
 	| mips64vr5000 | mips64vr5000el \
56d343
@@ -268,29 +293,42 @@ case $basic_machine in
56d343
 	| mipsisa64sr71k | mipsisa64sr71kel \
56d343
 	| mipstx39 | mipstx39el \
56d343
 	| mn10200 | mn10300 \
56d343
+	| moxie \
56d343
 	| mt \
56d343
 	| msp430 \
56d343
+	| nds32 | nds32le | nds32be \
56d343
 	| nios | nios2 \
56d343
 	| ns16k | ns32k \
56d343
+	| open8 \
56d343
 	| or32 \
56d343
 	| pdp10 | pdp11 | pj | pjl \
56d343
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
56d343
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
56d343
 	| pyramid \
56d343
+	| rl78 | rx \
56d343
 	| score \
56d343
-	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
56d343
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
56d343
 	| sh64 | sh64le \
56d343
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
56d343
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
56d343
-	| spu | strongarm \
56d343
-	| tahoe | thumb | tic4x | tic80 | tron \
56d343
-	| v850 | v850e \
56d343
+	| spu \
56d343
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
56d343
+	| ubicom32 \
56d343
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
56d343
 	| we32k \
56d343
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
56d343
-	| z8k)
56d343
+	| x86 | xc16x | xstormy16 | xtensa \
56d343
+	| z8k | z80)
56d343
 		basic_machine=$basic_machine-unknown
56d343
 		;;
56d343
-	m6811 | m68hc11 | m6812 | m68hc12)
56d343
-		# Motorola 68HC11/12.
56d343
+	c54x)
56d343
+		basic_machine=tic54x-unknown
56d343
+		;;
56d343
+	c55x)
56d343
+		basic_machine=tic55x-unknown
56d343
+		;;
56d343
+	c6x)
56d343
+		basic_machine=tic6x-unknown
56d343
+		;;
56d343
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
56d343
 		basic_machine=$basic_machine-unknown
56d343
 		os=-none
56d343
 		;;
56d343
@@ -300,6 +338,21 @@ case $basic_machine in
56d343
 		basic_machine=mt-unknown
56d343
 		;;
56d343
 
56d343
+	strongarm | thumb | xscale)
56d343
+		basic_machine=arm-unknown
56d343
+		;;
56d343
+	xgate)
56d343
+		basic_machine=$basic_machine-unknown
56d343
+		os=-none
56d343
+		;;
56d343
+	xscaleeb)
56d343
+		basic_machine=armeb-unknown
56d343
+		;;
56d343
+
56d343
+	xscaleel)
56d343
+		basic_machine=armel-unknown
56d343
+		;;
56d343
+
56d343
 	# We use `pc' rather than `unknown'
56d343
 	# because (1) that's what they normally are, and
56d343
 	# (2) the word "unknown" tends to confuse beginning users.
56d343
@@ -314,29 +367,36 @@ case $basic_machine in
56d343
 	# Recognize the basic CPU types with company name.
56d343
 	580-* \
56d343
 	| a29k-* \
56d343
+	| aarch64-* | aarch64_be-* \
56d343
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
56d343
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
56d343
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
56d343
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
56d343
 	| avr-* | avr32-* \
56d343
+	| be32-* | be64-* \
56d343
 	| bfin-* | bs2000-* \
56d343
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
56d343
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
56d343
 	| clipper-* | craynv-* | cydra-* \
56d343
 	| d10v-* | d30v-* | dlx-* \
56d343
 	| elxsi-* \
56d343
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
56d343
 	| h8300-* | h8500-* \
56d343
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
56d343
+	| hexagon-* \
56d343
 	| i*86-* | i860-* | i960-* | ia64-* \
56d343
 	| ip2k-* | iq2000-* \
56d343
+	| le32-* | le64-* \
56d343
+	| lm32-* \
56d343
 	| m32c-* | m32r-* | m32rle-* \
56d343
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
56d343
-	| m88110-* | m88k-* | maxq-* | mcore-* \
56d343
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
56d343
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
56d343
 	| mips16-* \
56d343
 	| mips64-* | mips64el-* \
56d343
-	| mips64vr-* | mips64vrel-* \
56d343
+	| mips64octeon-* | mips64octeonel-* \
56d343
 	| mips64orion-* | mips64orionel-* \
56d343
+	| mips64r5900-* | mips64r5900el-* \
56d343
+	| mips64vr-* | mips64vrel-* \
56d343
 	| mips64vr4100-* | mips64vr4100el-* \
56d343
 	| mips64vr4300-* | mips64vr4300el-* \
56d343
 	| mips64vr5000-* | mips64vr5000el-* \
56d343
@@ -351,27 +411,32 @@ case $basic_machine in
56d343
 	| mmix-* \
56d343
 	| mt-* \
56d343
 	| msp430-* \
56d343
+	| nds32-* | nds32le-* | nds32be-* \
56d343
 	| nios-* | nios2-* \
56d343
 	| none-* | np1-* | ns16k-* | ns32k-* \
56d343
+	| open8-* \
56d343
 	| orion-* \
56d343
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
56d343
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
56d343
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
56d343
 	| pyramid-* \
56d343
-	| romp-* | rs6000-* \
56d343
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
56d343
+	| rl78-* | romp-* | rs6000-* | rx-* \
56d343
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
56d343
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
56d343
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
56d343
 	| sparclite-* \
56d343
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
56d343
-	| tahoe-* | thumb-* \
56d343
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
56d343
+	| tahoe-* \
56d343
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
56d343
+	| tile*-* \
56d343
 	| tron-* \
56d343
-	| v850-* | v850e-* | vax-* \
56d343
+	| ubicom32-* \
56d343
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
56d343
+	| vax-* \
56d343
 	| we32k-* \
56d343
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
56d343
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
56d343
 	| xstormy16-* | xtensa*-* \
56d343
 	| ymp-* \
56d343
-	| z8k-*)
56d343
+	| z8k-* | z80-*)
56d343
 		;;
56d343
 	# Recognize the basic CPU types without company name, with glob match.
56d343
 	xtensa*)
56d343
@@ -393,7 +458,7 @@ case $basic_machine in
56d343
 		basic_machine=a29k-amd
56d343
 		os=-udi
56d343
 		;;
56d343
-    	abacus)
56d343
+	abacus)
56d343
 		basic_machine=abacus-unknown
56d343
 		;;
56d343
 	adobe68k)
56d343
@@ -439,6 +504,10 @@ case $basic_machine in
56d343
 		basic_machine=m68k-apollo
56d343
 		os=-bsd
56d343
 		;;
56d343
+	aros)
56d343
+		basic_machine=i386-pc
56d343
+		os=-aros
56d343
+		;;
56d343
 	aux)
56d343
 		basic_machine=m68k-apple
56d343
 		os=-aux
56d343
@@ -455,10 +524,27 @@ case $basic_machine in
56d343
 		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
 		os=-linux
56d343
 		;;
56d343
+	bluegene*)
56d343
+		basic_machine=powerpc-ibm
56d343
+		os=-cnk
56d343
+		;;
56d343
+	c54x-*)
56d343
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
+		;;
56d343
+	c55x-*)
56d343
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
+		;;
56d343
+	c6x-*)
56d343
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
+		;;
56d343
 	c90)
56d343
 		basic_machine=c90-cray
56d343
 		os=-unicos
56d343
 		;;
56d343
+	cegcc)
56d343
+		basic_machine=arm-unknown
56d343
+		os=-cegcc
56d343
+		;;
56d343
 	convex-c1)
56d343
 		basic_machine=c1-convex
56d343
 		os=-bsd
56d343
@@ -487,7 +573,7 @@ case $basic_machine in
56d343
 		basic_machine=craynv-cray
56d343
 		os=-unicosmp
56d343
 		;;
56d343
-	cr16)
56d343
+	cr16 | cr16-*)
56d343
 		basic_machine=cr16-unknown
56d343
 		os=-elf
56d343
 		;;
56d343
@@ -526,6 +612,10 @@ case $basic_machine in
56d343
 		basic_machine=m88k-motorola
56d343
 		os=-sysv3
56d343
 		;;
56d343
+	dicos)
56d343
+		basic_machine=i686-pc
56d343
+		os=-dicos
56d343
+		;;
56d343
 	djgpp)
56d343
 		basic_machine=i586-pc
56d343
 		os=-msdosdjgpp
56d343
@@ -641,7 +731,6 @@ case $basic_machine in
56d343
 	i370-ibm* | ibm*)
56d343
 		basic_machine=i370-ibm
56d343
 		;;
56d343
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
56d343
 	i*86v32)
56d343
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
56d343
 		os=-sysv32
56d343
@@ -699,6 +788,9 @@ case $basic_machine in
56d343
 		basic_machine=ns32k-utek
56d343
 		os=-sysv
56d343
 		;;
56d343
+	microblaze)
56d343
+		basic_machine=microblaze-xilinx
56d343
+		;;
56d343
 	mingw32)
56d343
 		basic_machine=i386-pc
56d343
 		os=-mingw32
56d343
@@ -735,10 +827,18 @@ case $basic_machine in
56d343
 	ms1-*)
56d343
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
56d343
 		;;
56d343
+	msys)
56d343
+		basic_machine=i386-pc
56d343
+		os=-msys
56d343
+		;;
56d343
 	mvs)
56d343
 		basic_machine=i370-ibm
56d343
 		os=-mvs
56d343
 		;;
56d343
+	nacl)
56d343
+		basic_machine=le32-unknown
56d343
+		os=-nacl
56d343
+		;;
56d343
 	ncr3000)
56d343
 		basic_machine=i486-ncr
56d343
 		os=-sysv4
56d343
@@ -803,6 +903,12 @@ case $basic_machine in
56d343
 	np1)
56d343
 		basic_machine=np1-gould
56d343
 		;;
56d343
+	neo-tandem)
56d343
+		basic_machine=neo-tandem
56d343
+		;;
56d343
+	nse-tandem)
56d343
+		basic_machine=nse-tandem
56d343
+		;;
56d343
 	nsr-tandem)
56d343
 		basic_machine=nsr-tandem
56d343
 		;;
56d343
@@ -885,9 +991,10 @@ case $basic_machine in
56d343
 		;;
56d343
 	power)	basic_machine=power-ibm
56d343
 		;;
56d343
-	ppc)	basic_machine=powerpc-unknown
56d343
+	ppc | ppcbe)	basic_machine=powerpc-unknown
56d343
 		;;
56d343
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
+	ppc-* | ppcbe-*)
56d343
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
 		;;
56d343
 	ppcle | powerpclittle | ppc-le | powerpc-little)
56d343
 		basic_machine=powerpcle-unknown
56d343
@@ -981,6 +1088,9 @@ case $basic_machine in
56d343
 		basic_machine=i860-stratus
56d343
 		os=-sysv4
56d343
 		;;
56d343
+	strongarm-* | thumb-*)
56d343
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
56d343
+		;;
56d343
 	sun2)
56d343
 		basic_machine=m68000-sun
56d343
 		;;
56d343
@@ -1037,20 +1147,8 @@ case $basic_machine in
56d343
 		basic_machine=t90-cray
56d343
 		os=-unicos
56d343
 		;;
56d343
-	tic54x | c54x*)
56d343
-		basic_machine=tic54x-unknown
56d343
-		os=-coff
56d343
-		;;
56d343
-	tic55x | c55x*)
56d343
-		basic_machine=tic55x-unknown
56d343
-		os=-coff
56d343
-		;;
56d343
-	tic6x | c6x*)
56d343
-		basic_machine=tic6x-unknown
56d343
-		os=-coff
56d343
-		;;
56d343
 	tile*)
56d343
-		basic_machine=tile-unknown
56d343
+		basic_machine=$basic_machine-unknown
56d343
 		os=-linux-gnu
56d343
 		;;
56d343
 	tx39)
56d343
@@ -1120,6 +1218,9 @@ case $basic_machine in
56d343
 	xps | xps100)
56d343
 		basic_machine=xps100-honeywell
56d343
 		;;
56d343
+	xscale-* | xscalee[bl]-*)
56d343
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
56d343
+		;;
56d343
 	ymp)
56d343
 		basic_machine=ymp-cray
56d343
 		os=-unicos
56d343
@@ -1128,6 +1229,10 @@ case $basic_machine in
56d343
 		basic_machine=z8k-unknown
56d343
 		os=-sim
56d343
 		;;
56d343
+	z80-*-coff)
56d343
+		basic_machine=z80-unknown
56d343
+		os=-sim
56d343
+		;;
56d343
 	none)
56d343
 		basic_machine=none-none
56d343
 		os=-none
56d343
@@ -1166,7 +1271,7 @@ case $basic_machine in
56d343
 	we32k)
56d343
 		basic_machine=we32k-att
56d343
 		;;
56d343
-	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
56d343
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
56d343
 		basic_machine=sh-unknown
56d343
 		;;
56d343
 	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
56d343
@@ -1213,9 +1318,12 @@ esac
56d343
 if [ x"$os" != x"" ]
56d343
 then
56d343
 case $os in
56d343
-        # First match some system type aliases
56d343
-        # that might get confused with valid system types.
56d343
+	# First match some system type aliases
56d343
+	# that might get confused with valid system types.
56d343
 	# -solaris* is a basic system type, with this one exception.
56d343
+	-auroraux)
56d343
+		os=-auroraux
56d343
+		;;
56d343
 	-solaris1 | -solaris1.*)
56d343
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
56d343
 		;;
56d343
@@ -1236,10 +1344,11 @@ case $os in
56d343
 	# Each alternative MUST END IN A *, to match a version number.
56d343
 	# -sysv* is not here because it comes later, after sysvr4.
56d343
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
56d343
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
56d343
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
56d343
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
56d343
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
56d343
+	      | -sym* | -kopensolaris* \
56d343
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
56d343
-	      | -aos* \
56d343
+	      | -aos* | -aros* \
56d343
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
56d343
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
56d343
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
56d343
@@ -1248,9 +1357,10 @@ case $os in
56d343
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
56d343
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
56d343
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
56d343
-	      | -chorusos* | -chorusrdb* \
56d343
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
56d343
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
56d343
+	      | -chorusos* | -chorusrdb* | -cegcc* \
56d343
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
56d343
+	      | -mingw32* | -linux-gnu* | -linux-android* \
56d343
+	      | -linux-newlib* | -linux-uclibc* \
56d343
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
56d343
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
56d343
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
56d343
@@ -1258,7 +1368,7 @@ case $os in
56d343
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
56d343
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
56d343
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
56d343
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
56d343
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
56d343
 	# Remember, each alternative MUST END IN *, to match a version number.
56d343
 		;;
56d343
 	-qnx*)
56d343
@@ -1297,7 +1407,7 @@ case $os in
56d343
 	-opened*)
56d343
 		os=-openedition
56d343
 		;;
56d343
-        -os400*)
56d343
+	-os400*)
56d343
 		os=-os400
56d343
 		;;
56d343
 	-wince*)
56d343
@@ -1346,7 +1456,7 @@ case $os in
56d343
 	-sinix*)
56d343
 		os=-sysv4
56d343
 		;;
56d343
-        -tpf*)
56d343
+	-tpf*)
56d343
 		os=-tpf
56d343
 		;;
56d343
 	-triton*)
56d343
@@ -1388,6 +1498,11 @@ case $os in
56d343
 	-zvmoe)
56d343
 		os=-zvmoe
56d343
 		;;
56d343
+	-dicos*)
56d343
+		os=-dicos
56d343
+		;;
56d343
+	-nacl*)
56d343
+		;;
56d343
 	-none)
56d343
 		;;
56d343
 	*)
56d343
@@ -1410,10 +1525,10 @@ else
56d343
 # system, and we'll never get to this point.
56d343
 
56d343
 case $basic_machine in
56d343
-        score-*)
56d343
+	score-*)
56d343
 		os=-elf
56d343
 		;;
56d343
-        spu-*)
56d343
+	spu-*)
56d343
 		os=-elf
56d343
 		;;
56d343
 	*-acorn)
56d343
@@ -1425,8 +1540,20 @@ case $basic_machine in
56d343
 	arm*-semi)
56d343
 		os=-aout
56d343
 		;;
56d343
-        c4x-* | tic4x-*)
56d343
-        	os=-coff
56d343
+	c4x-* | tic4x-*)
56d343
+		os=-coff
56d343
+		;;
56d343
+	hexagon-*)
56d343
+		os=-elf
56d343
+		;;
56d343
+	tic54x-*)
56d343
+		os=-coff
56d343
+		;;
56d343
+	tic55x-*)
56d343
+		os=-coff
56d343
+		;;
56d343
+	tic6x-*)
56d343
+		os=-coff
56d343
 		;;
56d343
 	# This must come before the *-dec entry.
56d343
 	pdp10-*)
56d343
@@ -1446,14 +1573,11 @@ case $basic_machine in
56d343
 		;;
56d343
 	m68000-sun)
56d343
 		os=-sunos3
56d343
-		# This also exists in the configure program, but was not the
56d343
-		# default.
56d343
-		# os=-sunos4
56d343
 		;;
56d343
 	m68*-cisco)
56d343
 		os=-aout
56d343
 		;;
56d343
-        mep-*)
56d343
+	mep-*)
56d343
 		os=-elf
56d343
 		;;
56d343
 	mips*-cisco)
56d343
@@ -1480,7 +1604,7 @@ case $basic_machine in
56d343
 	*-ibm)
56d343
 		os=-aix
56d343
 		;;
56d343
-    	*-knuth)
56d343
+	*-knuth)
56d343
 		os=-mmixware
56d343
 		;;
56d343
 	*-wec)
56d343
@@ -1585,7 +1709,7 @@ case $basic_machine in
56d343
 			-sunos*)
56d343
 				vendor=sun
56d343
 				;;
56d343
-			-aix*)
56d343
+			-cnk*|-aix*)
56d343
 				vendor=ibm
56d343
 				;;
56d343
 			-beos*)