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