811809
diff -urN bacula-5.2.13/autoconf/config.guess bacula-5.2.13-aarch64/autoconf/config.guess
811809
--- bacula-5.2.13/autoconf/config.guess	2013-02-19 13:21:35.000000000 -0600
811809
+++ bacula-5.2.13-aarch64/autoconf/config.guess	2013-03-07 19:51:13.347596401 -0600
811809
@@ -1,10 +1,10 @@
811809
 #! /bin/sh
811809
 # Attempt to guess a canonical system name.
811809
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
811809
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
811809
-#   Free Software Foundation, Inc.
811809
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
811809
+#   2011, 2012 Free Software Foundation, Inc.
811809
 
811809
-timestamp='2009-06-10'
811809
+timestamp='2012-09-25'
811809
 
811809
 # This file is free software; you can redistribute it and/or modify it
811809
 # under the terms of the GNU General Public License as published by
811809
@@ -17,9 +17,7 @@
811809
 # General Public License for more details.
811809
 #
811809
 # You should have received a copy of the GNU General Public License
811809
-# along with this program; if not, write to the Free Software
811809
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
811809
-# 02110-1301, USA.
811809
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
811809
 #
811809
 # As a special exception to the GNU General Public License, if you
811809
 # distribute this file as part of a program that contains a
811809
@@ -27,16 +25,16 @@
811809
 # the same distribution terms that you use for the rest of that program.
811809
 
811809
 
811809
-# Originally written by Per Bothner <per@bothner.com>.
811809
-# Please send patches to <config-patches@gnu.org>.  Submit a context
811809
-# diff and a properly formatted ChangeLog entry.
811809
+# Originally written by Per Bothner.  Please send patches (context
811809
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
811809
+# entry.
811809
 #
811809
 # This script attempts to guess a canonical system name similar to
811809
 # config.sub.  If it succeeds, it prints the system name on stdout, and
811809
 # exits with 0.  Otherwise, it exits with 1.
811809
 #
811809
-# The plan is that this can be called by configure scripts if you
811809
-# don't specify an explicit build system type.
811809
+# You can get the latest version of this script from:
811809
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
811809
 
811809
 me=`echo "$0" | sed -e 's,.*/,,'`
811809
 
811809
@@ -56,8 +54,9 @@
811809
 GNU config.guess ($timestamp)
811809
 
811809
 Originally written by Per Bothner.
811809
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
811809
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
811809
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
811809
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
811809
+Free Software Foundation, Inc.
811809
 
811809
 This is free software; see the source for copying conditions.  There is NO
811809
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
811809
@@ -144,7 +143,7 @@
811809
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
811809
     *:NetBSD:*:*)
811809
 	# NetBSD (nbsd) targets should (where applicable) match one or
811809
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
811809
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
811809
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
811809
 	# switched to ELF, *-*-netbsd* would select the old
811809
 	# object file format.  This provides both forward
811809
@@ -180,7 +179,7 @@
811809
 		fi
811809
 		;;
811809
 	    *)
811809
-	        os=netbsd
811809
+		os=netbsd
811809
 		;;
811809
 	esac
811809
 	# The OS release
811809
@@ -201,6 +200,10 @@
811809
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
811809
 	echo "${machine}-${os}${release}"
811809
 	exit ;;
811809
+    *:Bitrig:*:*)
811809
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
811809
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
811809
+	exit ;;
811809
     *:OpenBSD:*:*)
811809
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
811809
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
811809
@@ -223,7 +226,7 @@
811809
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
811809
 		;;
811809
 	*5.*)
811809
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
811809
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
811809
 		;;
811809
 	esac
811809
 	# According to Compaq, /usr/sbin/psrinfo has been available on
811809
@@ -269,7 +272,10 @@
811809
 	# A Xn.n version is an unreleased experimental baselevel.
811809
 	# 1.2 uses "1.2" for uname -r.
811809
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
811809
-	exit ;;
811809
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
811809
+	exitcode=$?
811809
+	trap '' 0
811809
+	exit $exitcode ;;
811809
     Alpha\ *:Windows_NT*:*)
811809
 	# How do we know it's Interix rather than the generic POSIX subsystem?
811809
 	# Should we change UNAME_MACHINE based on the output of uname instead
811809
@@ -295,12 +301,12 @@
811809
 	echo s390-ibm-zvmoe
811809
 	exit ;;
811809
     *:OS400:*:*)
811809
-        echo powerpc-ibm-os400
811809
+	echo powerpc-ibm-os400
811809
 	exit ;;
811809
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
811809
 	echo arm-acorn-riscix${UNAME_RELEASE}
811809
 	exit ;;
811809
-    arm:riscos:*:*|arm:RISCOS:*:*)
811809
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
811809
 	echo arm-unknown-riscos
811809
 	exit ;;
811809
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
811809
@@ -333,6 +339,9 @@
811809
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
811809
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
811809
 	exit ;;
811809
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
811809
+	echo i386-pc-auroraux${UNAME_RELEASE}
811809
+	exit ;;
811809
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
811809
 	eval $set_cc_for_build
811809
 	SUN_ARCH="i386"
811809
@@ -391,23 +400,23 @@
811809
     # MiNT.  But MiNT is downward compatible to TOS, so this should
811809
     # be no problem.
811809
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
811809
-        echo m68k-atari-mint${UNAME_RELEASE}
811809
+	echo m68k-atari-mint${UNAME_RELEASE}
811809
 	exit ;;
811809
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
811809
 	echo m68k-atari-mint${UNAME_RELEASE}
811809
-        exit ;;
811809
+	exit ;;
811809
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
811809
-        echo m68k-atari-mint${UNAME_RELEASE}
811809
+	echo m68k-atari-mint${UNAME_RELEASE}
811809
 	exit ;;
811809
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
811809
-        echo m68k-milan-mint${UNAME_RELEASE}
811809
-        exit ;;
811809
+	echo m68k-milan-mint${UNAME_RELEASE}
811809
+	exit ;;
811809
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
811809
-        echo m68k-hades-mint${UNAME_RELEASE}
811809
-        exit ;;
811809
+	echo m68k-hades-mint${UNAME_RELEASE}
811809
+	exit ;;
811809
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
811809
-        echo m68k-unknown-mint${UNAME_RELEASE}
811809
-        exit ;;
811809
+	echo m68k-unknown-mint${UNAME_RELEASE}
811809
+	exit ;;
811809
     m68k:machten:*:*)
811809
 	echo m68k-apple-machten${UNAME_RELEASE}
811809
 	exit ;;
811809
@@ -477,8 +486,8 @@
811809
 	echo m88k-motorola-sysv3
811809
 	exit ;;
811809
     AViiON:dgux:*:*)
811809
-        # DG/UX returns AViiON for all architectures
811809
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
811809
+	# DG/UX returns AViiON for all architectures
811809
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
811809
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
811809
 	then
811809
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
811809
@@ -491,7 +500,7 @@
811809
 	else
811809
 	    echo i586-dg-dgux${UNAME_RELEASE}
811809
 	fi
811809
- 	exit ;;
811809
+	exit ;;
811809
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
811809
 	echo m88k-dolphin-sysv3
811809
 	exit ;;
811809
@@ -548,7 +557,7 @@
811809
 		echo rs6000-ibm-aix3.2
811809
 	fi
811809
 	exit ;;
811809
-    *:AIX:*:[456])
811809
+    *:AIX:*:[4567])
811809
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
811809
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
811809
 		IBM_ARCH=rs6000
811809
@@ -591,52 +600,52 @@
811809
 	    9000/[678][0-9][0-9])
811809
 		if [ -x /usr/bin/getconf ]; then
811809
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
811809
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
811809
-                    case "${sc_cpu_version}" in
811809
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
811809
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
811809
-                      532)                      # CPU_PA_RISC2_0
811809
-                        case "${sc_kernel_bits}" in
811809
-                          32) HP_ARCH="hppa2.0n" ;;
811809
-                          64) HP_ARCH="hppa2.0w" ;;
811809
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
811809
+		    case "${sc_cpu_version}" in
811809
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
811809
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
811809
+		      532)                      # CPU_PA_RISC2_0
811809
+			case "${sc_kernel_bits}" in
811809
+			  32) HP_ARCH="hppa2.0n" ;;
811809
+			  64) HP_ARCH="hppa2.0w" ;;
811809
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
811809
-                        esac ;;
811809
-                    esac
811809
+			esac ;;
811809
+		    esac
811809
 		fi
811809
 		if [ "${HP_ARCH}" = "" ]; then
811809
 		    eval $set_cc_for_build
811809
-		    sed 's/^              //' << EOF >$dummy.c
811809
+		    sed 's/^		//' << EOF >$dummy.c
811809
+
811809
+		#define _HPUX_SOURCE
811809
+		#include <stdlib.h>
811809
+		#include <unistd.h>
811809
+
811809
+		int main ()
811809
+		{
811809
+		#if defined(_SC_KERNEL_BITS)
811809
+		    long bits = sysconf(_SC_KERNEL_BITS);
811809
+		#endif
811809
+		    long cpu  = sysconf (_SC_CPU_VERSION);
811809
 
811809
-              #define _HPUX_SOURCE
811809
-              #include <stdlib.h>
811809
-              #include <unistd.h>
811809
-
811809
-              int main ()
811809
-              {
811809
-              #if defined(_SC_KERNEL_BITS)
811809
-                  long bits = sysconf(_SC_KERNEL_BITS);
811809
-              #endif
811809
-                  long cpu  = sysconf (_SC_CPU_VERSION);
811809
-
811809
-                  switch (cpu)
811809
-              	{
811809
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
811809
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
811809
-              	case CPU_PA_RISC2_0:
811809
-              #if defined(_SC_KERNEL_BITS)
811809
-              	    switch (bits)
811809
-              		{
811809
-              		case 64: puts ("hppa2.0w"); break;
811809
-              		case 32: puts ("hppa2.0n"); break;
811809
-              		default: puts ("hppa2.0"); break;
811809
-              		} break;
811809
-              #else  /* !defined(_SC_KERNEL_BITS) */
811809
-              	    puts ("hppa2.0"); break;
811809
-              #endif
811809
-              	default: puts ("hppa1.0"); break;
811809
-              	}
811809
-                  exit (0);
811809
-              }
811809
+		    switch (cpu)
811809
+			{
811809
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
811809
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
811809
+			case CPU_PA_RISC2_0:
811809
+		#if defined(_SC_KERNEL_BITS)
811809
+			    switch (bits)
811809
+				{
811809
+				case 64: puts ("hppa2.0w"); break;
811809
+				case 32: puts ("hppa2.0n"); break;
811809
+				default: puts ("hppa2.0"); break;
811809
+				} break;
811809
+		#else  /* !defined(_SC_KERNEL_BITS) */
811809
+			    puts ("hppa2.0"); break;
811809
+		#endif
811809
+			default: puts ("hppa1.0"); break;
811809
+			}
811809
+		    exit (0);
811809
+		}
811809
 EOF
811809
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
811809
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
811809
@@ -727,22 +736,22 @@
811809
 	exit ;;
811809
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
811809
 	echo c1-convex-bsd
811809
-        exit ;;
811809
+	exit ;;
811809
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
811809
 	if getsysinfo -f scalar_acc
811809
 	then echo c32-convex-bsd
811809
 	else echo c2-convex-bsd
811809
 	fi
811809
-        exit ;;
811809
+	exit ;;
811809
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
811809
 	echo c34-convex-bsd
811809
-        exit ;;
811809
+	exit ;;
811809
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
811809
 	echo c38-convex-bsd
811809
-        exit ;;
811809
+	exit ;;
811809
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
811809
 	echo c4-convex-bsd
811809
-        exit ;;
811809
+	exit ;;
811809
     CRAY*Y-MP:*:*:*)
811809
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811809
 	exit ;;
811809
@@ -766,14 +775,14 @@
811809
 	exit ;;
811809
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
811809
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
811809
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811809
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
811809
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
811809
-        exit ;;
811809
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811809
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
811809
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
811809
+	exit ;;
811809
     5000:UNIX_System_V:4.*:*)
811809
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811809
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
811809
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
811809
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
811809
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
811809
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
811809
 	exit ;;
811809
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
811809
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
811809
@@ -785,34 +794,39 @@
811809
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
811809
 	exit ;;
811809
     *:FreeBSD:*:*)
811809
-	case ${UNAME_MACHINE} in
811809
-	    pc98)
811809
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811809
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
811809
+	case ${UNAME_PROCESSOR} in
811809
 	    amd64)
811809
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811809
 	    *)
811809
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811809
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811809
 	esac
811809
 	exit ;;
811809
     i*:CYGWIN*:*)
811809
 	echo ${UNAME_MACHINE}-pc-cygwin
811809
 	exit ;;
811809
+    *:MINGW64*:*)
811809
+	echo ${UNAME_MACHINE}-pc-mingw64
811809
+	exit ;;
811809
     *:MINGW*:*)
811809
 	echo ${UNAME_MACHINE}-pc-mingw32
811809
 	exit ;;
811809
+    i*:MSYS*:*)
811809
+	echo ${UNAME_MACHINE}-pc-msys
811809
+	exit ;;
811809
     i*:windows32*:*)
811809
-    	# uname -m includes "-pc" on this system.
811809
-    	echo ${UNAME_MACHINE}-mingw32
811809
+	# uname -m includes "-pc" on this system.
811809
+	echo ${UNAME_MACHINE}-mingw32
811809
 	exit ;;
811809
     i*:PW*:*)
811809
 	echo ${UNAME_MACHINE}-pc-pw32
811809
 	exit ;;
811809
-    *:Interix*:[3456]*)
811809
-    	case ${UNAME_MACHINE} in
811809
+    *:Interix*:*)
811809
+	case ${UNAME_MACHINE} in
811809
 	    x86)
811809
 		echo i586-pc-interix${UNAME_RELEASE}
811809
 		exit ;;
811809
-	    EM64T | authenticamd | genuineintel)
811809
+	    authenticamd | genuineintel | EM64T)
811809
 		echo x86_64-unknown-interix${UNAME_RELEASE}
811809
 		exit ;;
811809
 	    IA64)
811809
@@ -854,6 +868,27 @@
811809
     i*86:Minix:*:*)
811809
 	echo ${UNAME_MACHINE}-pc-minix
811809
 	exit ;;
811809
+    aarch64:Linux:*:*)
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	exit ;;
811809
+    aarch64_be:Linux:*:*)
811809
+	UNAME_MACHINE=aarch64_be
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	exit ;;
811809
+    alpha:Linux:*:*)
811809
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
811809
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
811809
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
811809
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
811809
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
811809
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
811809
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
811809
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
811809
+	esac
811809
+	objdump --private-headers /bin/sh | grep -q ld.so.1
811809
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
811809
+	exit ;;
811809
     arm*:Linux:*:*)
811809
 	eval $set_cc_for_build
811809
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
811809
@@ -861,20 +896,40 @@
811809
 	then
811809
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	else
811809
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
811809
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
811809
+		| grep -q __ARM_PCS_VFP
811809
+	    then
811809
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
811809
+	    else
811809
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
811809
+	    fi
811809
 	fi
811809
 	exit ;;
811809
     avr32*:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
     cris:Linux:*:*)
811809
-	echo cris-axis-linux-gnu
811809
+	echo ${UNAME_MACHINE}-axis-linux-gnu
811809
 	exit ;;
811809
     crisv32:Linux:*:*)
811809
-	echo crisv32-axis-linux-gnu
811809
+	echo ${UNAME_MACHINE}-axis-linux-gnu
811809
 	exit ;;
811809
     frv:Linux:*:*)
811809
-    	echo frv-unknown-linux-gnu
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	exit ;;
811809
+    hexagon:Linux:*:*)
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	exit ;;
811809
+    i*86:Linux:*:*)
811809
+	LIBC=gnu
811809
+	eval $set_cc_for_build
811809
+	sed 's/^	//' << EOF >$dummy.c
811809
+	#ifdef __dietlibc__
811809
+	LIBC=dietlibc
811809
+	#endif
811809
+EOF
811809
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
811809
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
811809
 	exit ;;
811809
     ia64:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
@@ -901,39 +956,18 @@
811809
 	#endif
811809
 	#endif
811809
 EOF
811809
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
811809
-	    /^CPU/{
811809
-		s: ::g
811809
-		p
811809
-	    }'`"
811809
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
811809
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
811809
 	;;
811809
     or32:Linux:*:*)
811809
-	echo or32-unknown-linux-gnu
811809
-	exit ;;
811809
-    ppc:Linux:*:*)
811809
-	echo powerpc-unknown-linux-gnu
811809
-	exit ;;
811809
-    ppc64:Linux:*:*)
811809
-	echo powerpc64-unknown-linux-gnu
811809
-	exit ;;
811809
-    alpha:Linux:*:*)
811809
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
811809
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
811809
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
811809
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
811809
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
811809
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
811809
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
811809
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
811809
-        esac
811809
-	objdump --private-headers /bin/sh | grep -q ld.so.1
811809
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
811809
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
     padre:Linux:*:*)
811809
 	echo sparc-unknown-linux-gnu
811809
 	exit ;;
811809
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
811809
+	echo hppa64-unknown-linux-gnu
811809
+	exit ;;
811809
     parisc:Linux:*:* | hppa:Linux:*:*)
811809
 	# Look for CPU level
811809
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
811809
@@ -942,14 +976,17 @@
811809
 	  *)    echo hppa-unknown-linux-gnu ;;
811809
 	esac
811809
 	exit ;;
811809
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
811809
-	echo hppa64-unknown-linux-gnu
811809
+    ppc64:Linux:*:*)
811809
+	echo powerpc64-unknown-linux-gnu
811809
+	exit ;;
811809
+    ppc:Linux:*:*)
811809
+	echo powerpc-unknown-linux-gnu
811809
 	exit ;;
811809
     s390:Linux:*:* | s390x:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-ibm-linux
811809
 	exit ;;
811809
     sh64*:Linux:*:*)
811809
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
     sh*:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
@@ -957,67 +994,18 @@
811809
     sparc:Linux:*:* | sparc64:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
+    tile*:Linux:*:*)
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	exit ;;
811809
     vax:Linux:*:*)
811809
 	echo ${UNAME_MACHINE}-dec-linux-gnu
811809
 	exit ;;
811809
     x86_64:Linux:*:*)
811809
-	echo x86_64-unknown-linux-gnu
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
     xtensa*:Linux:*:*)
811809
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
811809
 	exit ;;
811809
-    i*86:Linux:*:*)
811809
-	# The BFD linker knows what the default object file format is, so
811809
-	# first see if it will tell us. cd to the root directory to prevent
811809
-	# problems with other programs or directories called `ld' in the path.
811809
-	# Set LC_ALL=C to ensure ld outputs messages in English.
811809
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
811809
-			 | sed -ne '/supported targets:/!d
811809
-				    s/[ 	][ 	]*/ /g
811809
-				    s/.*supported targets: *//
811809
-				    s/ .*//
811809
-				    p'`
811809
-        case "$ld_supported_targets" in
811809
-	  elf32-i386)
811809
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
811809
-		;;
811809
-	esac
811809
-	# Determine whether the default compiler is a.out or elf
811809
-	eval $set_cc_for_build
811809
-	sed 's/^	//' << EOF >$dummy.c
811809
-	#include <features.h>
811809
-	#ifdef __ELF__
811809
-	# ifdef __GLIBC__
811809
-	#  if __GLIBC__ >= 2
811809
-	LIBC=gnu
811809
-	#  else
811809
-	LIBC=gnulibc1
811809
-	#  endif
811809
-	# else
811809
-	LIBC=gnulibc1
811809
-	# endif
811809
-	#else
811809
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
811809
-	LIBC=gnu
811809
-	#else
811809
-	LIBC=gnuaout
811809
-	#endif
811809
-	#endif
811809
-	#ifdef __dietlibc__
811809
-	LIBC=dietlibc
811809
-	#endif
811809
-EOF
811809
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
811809
-	    /^LIBC/{
811809
-		s: ::g
811809
-		p
811809
-	    }'`"
811809
-	test x"${LIBC}" != x && {
811809
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
811809
-		exit
811809
-	}
811809
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
811809
-	;;
811809
     i*86:DYNIX/ptx:4*:*)
811809
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
811809
 	# earlier versions are messed up and put the nodename in both
811809
@@ -1025,11 +1013,11 @@
811809
 	echo i386-sequent-sysv4
811809
 	exit ;;
811809
     i*86:UNIX_SV:4.2MP:2.*)
811809
-        # Unixware is an offshoot of SVR4, but it has its own version
811809
-        # number series starting with 2...
811809
-        # I am not positive that other SVR4 systems won't match this,
811809
+	# Unixware is an offshoot of SVR4, but it has its own version
811809
+	# number series starting with 2...
811809
+	# I am not positive that other SVR4 systems won't match this,
811809
 	# I just have to hope.  -- rms.
811809
-        # Use sysv4.2uw... so that sysv4* matches it.
811809
+	# Use sysv4.2uw... so that sysv4* matches it.
811809
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
811809
 	exit ;;
811809
     i*86:OS/2:*:*)
811809
@@ -1061,7 +1049,7 @@
811809
 	fi
811809
 	exit ;;
811809
     i*86:*:5:[678]*)
811809
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
811809
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
811809
 	case `/bin/uname -X | grep "^Machine"` in
811809
 	    *486*)	     UNAME_MACHINE=i486 ;;
811809
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
811809
@@ -1089,13 +1077,13 @@
811809
 	exit ;;
811809
     pc:*:*:*)
811809
 	# Left here for compatibility:
811809
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
811809
-        # the processor, so we play safe by assuming i586.
811809
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
811809
+	# the processor, so we play safe by assuming i586.
811809
 	# Note: whatever this is, it MUST be the same as what config.sub
811809
 	# prints for the "djgpp" host, or else GDB configury will decide that
811809
 	# this is a cross-build.
811809
 	echo i586-pc-msdosdjgpp
811809
-        exit ;;
811809
+	exit ;;
811809
     Intel:Mach:3*:*)
811809
 	echo i386-pc-mach3
811809
 	exit ;;
811809
@@ -1130,8 +1118,8 @@
811809
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
811809
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
811809
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
811809
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
811809
-          && { echo i486-ncr-sysv4; exit; } ;;
811809
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
811809
+	  && { echo i486-ncr-sysv4; exit; } ;;
811809
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
811809
 	OS_REL='.3'
811809
 	test -r /etc/.relid \
811809
@@ -1174,10 +1162,10 @@
811809
 		echo ns32k-sni-sysv
811809
 	fi
811809
 	exit ;;
811809
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
811809
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
811809
-        echo i586-unisys-sysv4
811809
-        exit ;;
811809
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
811809
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
811809
+	echo i586-unisys-sysv4
811809
+	exit ;;
811809
     *:UNIX_System_V:4*:FTX*)
811809
 	# From Gerald Hewes <hewes@openmarket.com>.
811809
 	# How about differentiating between stratus architectures? -djm
811809
@@ -1203,11 +1191,11 @@
811809
 	exit ;;
811809
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
811809
 	if [ -d /usr/nec ]; then
811809
-	        echo mips-nec-sysv${UNAME_RELEASE}
811809
+		echo mips-nec-sysv${UNAME_RELEASE}
811809
 	else
811809
-	        echo mips-unknown-sysv${UNAME_RELEASE}
811809
+		echo mips-unknown-sysv${UNAME_RELEASE}
811809
 	fi
811809
-        exit ;;
811809
+	exit ;;
811809
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
811809
 	echo powerpc-be-beos
811809
 	exit ;;
811809
@@ -1220,6 +1208,9 @@
811809
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
811809
 	echo i586-pc-haiku
811809
 	exit ;;
811809
+    x86_64:Haiku:*:*)
811809
+	echo x86_64-unknown-haiku
811809
+	exit ;;
811809
     SX-4:SUPER-UX:*:*)
811809
 	echo sx4-nec-superux${UNAME_RELEASE}
811809
 	exit ;;
811809
@@ -1247,6 +1238,16 @@
811809
     *:Darwin:*:*)
811809
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
811809
 	case $UNAME_PROCESSOR in
811809
+	    i386)
811809
+		eval $set_cc_for_build
811809
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
811809
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
811809
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
811809
+		      grep IS_64BIT_ARCH >/dev/null
811809
+		  then
811809
+		      UNAME_PROCESSOR="x86_64"
811809
+		  fi
811809
+		fi ;;
811809
 	    unknown) UNAME_PROCESSOR=powerpc ;;
811809
 	esac
811809
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
811809
@@ -1262,7 +1263,10 @@
811809
     *:QNX:*:4*)
811809
 	echo i386-pc-qnx
811809
 	exit ;;
811809
-    NSE-?:NONSTOP_KERNEL:*:*)
811809
+    NEO-?:NONSTOP_KERNEL:*:*)
811809
+	echo neo-tandem-nsk${UNAME_RELEASE}
811809
+	exit ;;
811809
+    NSE-*:NONSTOP_KERNEL:*:*)
811809
 	echo nse-tandem-nsk${UNAME_RELEASE}
811809
 	exit ;;
811809
     NSR-?:NONSTOP_KERNEL:*:*)
811809
@@ -1307,13 +1311,13 @@
811809
 	echo pdp10-unknown-its
811809
 	exit ;;
811809
     SEI:*:*:SEIUX)
811809
-        echo mips-sei-seiux${UNAME_RELEASE}
811809
+	echo mips-sei-seiux${UNAME_RELEASE}
811809
 	exit ;;
811809
     *:DragonFly:*:*)
811809
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
811809
 	exit ;;
811809
     *:*VMS:*:*)
811809
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
811809
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
811809
 	case "${UNAME_MACHINE}" in
811809
 	    A*) echo alpha-dec-vms ; exit ;;
811809
 	    I*) echo ia64-dec-vms ; exit ;;
811809
@@ -1331,11 +1335,11 @@
811809
     i*86:AROS:*:*)
811809
 	echo ${UNAME_MACHINE}-pc-aros
811809
 	exit ;;
811809
+    x86_64:VMkernel:*:*)
811809
+	echo ${UNAME_MACHINE}-unknown-esx
811809
+	exit ;;
811809
 esac
811809
 
811809
-#echo '(No uname command or uname output not recognized.)' 1>&2
811809
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
811809
-
811809
 eval $set_cc_for_build
811809
 cat >$dummy.c <
811809
 #ifdef _SEQUENT_
811809
@@ -1353,11 +1357,11 @@
811809
 #include <sys/param.h>
811809
   printf ("m68k-sony-newsos%s\n",
811809
 #ifdef NEWSOS4
811809
-          "4"
811809
+	"4"
811809
 #else
811809
-	  ""
811809
+	""
811809
 #endif
811809
-         ); exit (0);
811809
+	); exit (0);
811809
 #endif
811809
 #endif
811809
 
811809
diff -urN bacula-5.2.13/autoconf/config.sub bacula-5.2.13-aarch64/autoconf/config.sub
811809
--- bacula-5.2.13/autoconf/config.sub	2013-02-19 13:21:35.000000000 -0600
811809
+++ bacula-5.2.13-aarch64/autoconf/config.sub	2013-03-07 19:51:13.355595494 -0600
811809
@@ -1,10 +1,10 @@
811809
 #! /bin/sh
811809
 # Configuration validation subroutine script.
811809
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
811809
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
811809
-#   Free Software Foundation, Inc.
811809
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
811809
+#   2011, 2012 Free Software Foundation, Inc.
811809
 
811809
-timestamp='2009-06-11'
811809
+timestamp='2012-10-10'
811809
 
811809
 # This file is (in principle) common to ALL GNU software.
811809
 # The presence of a machine in this file suggests that SOME GNU software
811809
@@ -21,9 +21,7 @@
811809
 # GNU General Public License for more details.
811809
 #
811809
 # You should have received a copy of the GNU General Public License
811809
-# along with this program; if not, write to the Free Software
811809
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
811809
-# 02110-1301, USA.
811809
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
811809
 #
811809
 # As a special exception to the GNU General Public License, if you
811809
 # distribute this file as part of a program that contains a
811809
@@ -32,13 +30,16 @@
811809
 
811809
 
811809
 # Please send patches to <config-patches@gnu.org>.  Submit a context
811809
-# diff and a properly formatted ChangeLog entry.
811809
+# diff and a properly formatted GNU ChangeLog entry.
811809
 #
811809
 # Configuration subroutine to validate and canonicalize a configuration type.
811809
 # Supply the specified configuration type as an argument.
811809
 # If it is invalid, we print an error message on stderr and exit with code 1.
811809
 # Otherwise, we print the canonical config type on stdout and succeed.
811809
 
811809
+# You can get the latest version of this script from:
811809
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
811809
+
811809
 # This file is supposed to be the same for all GNU packages
811809
 # and recognize all the CPU types, system types and aliases
811809
 # that are meaningful with *any* GNU software.
811809
@@ -72,8 +73,9 @@
811809
 version="\
811809
 GNU config.sub ($timestamp)
811809
 
811809
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
811809
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
811809
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
811809
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
811809
+Free Software Foundation, Inc.
811809
 
811809
 This is free software; see the source for copying conditions.  There is NO
811809
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
811809
@@ -120,13 +122,18 @@
811809
 # Here we must recognize all the valid KERNEL-OS combinations.
811809
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
811809
 case $maybe_os in
811809
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
811809
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
811809
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
811809
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
811809
+  knetbsd*-gnu* | netbsd*-gnu* | \
811809
   kopensolaris*-gnu* | \
811809
   storm-chaos* | os2-emx* | rtmk-nova*)
811809
     os=-$maybe_os
811809
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
811809
     ;;
811809
+  android-linux)
811809
+    os=-linux-android
811809
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
811809
+    ;;
811809
   *)
811809
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
811809
     if [ $basic_machine != $1 ]
811809
@@ -149,12 +156,12 @@
811809
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
811809
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
811809
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
811809
-	-apple | -axis | -knuth | -cray)
811809
+	-apple | -axis | -knuth | -cray | -microblaze*)
811809
 		os=
811809
 		basic_machine=$1
811809
 		;;
811809
-        -bluegene*)
811809
-	        os=-cnk
811809
+	-bluegene*)
811809
+		os=-cnk
811809
 		;;
811809
 	-sim | -cisco | -oki | -wec | -winbond)
811809
 		os=
811809
@@ -170,10 +177,10 @@
811809
 		os=-chorusos
811809
 		basic_machine=$1
811809
 		;;
811809
- 	-chorusrdb)
811809
- 		os=-chorusrdb
811809
+	-chorusrdb)
811809
+		os=-chorusrdb
811809
 		basic_machine=$1
811809
- 		;;
811809
+		;;
811809
 	-hiux*)
811809
 		os=-hiuxwe2
811809
 		;;
811809
@@ -218,6 +225,12 @@
811809
 	-isc*)
811809
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
811809
 		;;
811809
+	-lynx*178)
811809
+		os=-lynxos178
811809
+		;;
811809
+	-lynx*5)
811809
+		os=-lynxos5
811809
+		;;
811809
 	-lynx*)
811809
 		os=-lynxos
811809
 		;;
811809
@@ -242,20 +255,25 @@
811809
 	# Some are omitted here because they have special meanings below.
811809
 	1750a | 580 \
811809
 	| a29k \
811809
+	| aarch64 | aarch64_be \
811809
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
811809
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
811809
 	| am33_2.0 \
811809
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
811809
+        | be32 | be64 \
811809
 	| bfin \
811809
 	| c4x | clipper \
811809
 	| d10v | d30v | dlx | dsp16xx \
811809
+	| epiphany \
811809
 	| fido | fr30 | frv \
811809
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
811809
+	| hexagon \
811809
 	| i370 | i860 | i960 | ia64 \
811809
 	| ip2k | iq2000 \
811809
+	| le32 | le64 \
811809
 	| lm32 \
811809
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
811809
-	| maxq | mb | microblaze | mcore | mep | metag \
811809
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
811809
 	| mips | mipsbe | mipseb | mipsel | mipsle \
811809
 	| mips16 \
811809
 	| mips64 | mips64el \
811809
@@ -278,27 +296,39 @@
811809
 	| moxie \
811809
 	| mt \
811809
 	| msp430 \
811809
+	| nds32 | nds32le | nds32be \
811809
 	| nios | nios2 \
811809
 	| ns16k | ns32k \
811809
+	| open8 \
811809
 	| or32 \
811809
 	| pdp10 | pdp11 | pj | pjl \
811809
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
811809
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
811809
 	| pyramid \
811809
+	| rl78 | rx \
811809
 	| score \
811809
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
811809
 	| sh64 | sh64le \
811809
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
811809
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
811809
-	| spu | strongarm \
811809
-	| tahoe | thumb | tic4x | tic80 | tron \
811809
-	| v850 | v850e \
811809
+	| spu \
811809
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
811809
+	| ubicom32 \
811809
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
811809
 	| we32k \
811809
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
811809
+	| x86 | xc16x | xstormy16 | xtensa \
811809
 	| z8k | z80)
811809
 		basic_machine=$basic_machine-unknown
811809
 		;;
811809
-	m6811 | m68hc11 | m6812 | m68hc12)
811809
-		# Motorola 68HC11/12.
811809
+	c54x)
811809
+		basic_machine=tic54x-unknown
811809
+		;;
811809
+	c55x)
811809
+		basic_machine=tic55x-unknown
811809
+		;;
811809
+	c6x)
811809
+		basic_machine=tic6x-unknown
811809
+		;;
811809
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
811809
 		basic_machine=$basic_machine-unknown
811809
 		os=-none
811809
 		;;
811809
@@ -308,6 +338,21 @@
811809
 		basic_machine=mt-unknown
811809
 		;;
811809
 
811809
+	strongarm | thumb | xscale)
811809
+		basic_machine=arm-unknown
811809
+		;;
811809
+	xgate)
811809
+		basic_machine=$basic_machine-unknown
811809
+		os=-none
811809
+		;;
811809
+	xscaleeb)
811809
+		basic_machine=armeb-unknown
811809
+		;;
811809
+
811809
+	xscaleel)
811809
+		basic_machine=armel-unknown
811809
+		;;
811809
+
811809
 	# We use `pc' rather than `unknown'
811809
 	# because (1) that's what they normally are, and
811809
 	# (2) the word "unknown" tends to confuse beginning users.
811809
@@ -322,25 +367,30 @@
811809
 	# Recognize the basic CPU types with company name.
811809
 	580-* \
811809
 	| a29k-* \
811809
+	| aarch64-* | aarch64_be-* \
811809
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
811809
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
811809
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
811809
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
811809
 	| avr-* | avr32-* \
811809
+	| be32-* | be64-* \
811809
 	| bfin-* | bs2000-* \
811809
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
811809
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
811809
 	| clipper-* | craynv-* | cydra-* \
811809
 	| d10v-* | d30v-* | dlx-* \
811809
 	| elxsi-* \
811809
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
811809
 	| h8300-* | h8500-* \
811809
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
811809
+	| hexagon-* \
811809
 	| i*86-* | i860-* | i960-* | ia64-* \
811809
 	| ip2k-* | iq2000-* \
811809
+	| le32-* | le64-* \
811809
 	| lm32-* \
811809
 	| m32c-* | m32r-* | m32rle-* \
811809
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
811809
 	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
811809
+	| microblaze-* | microblazeel-* \
811809
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
811809
 	| mips16-* \
811809
 	| mips64-* | mips64el-* \
811809
@@ -362,24 +412,29 @@
811809
 	| mmix-* \
811809
 	| mt-* \
811809
 	| msp430-* \
811809
+	| nds32-* | nds32le-* | nds32be-* \
811809
 	| nios-* | nios2-* \
811809
 	| none-* | np1-* | ns16k-* | ns32k-* \
811809
+	| open8-* \
811809
 	| orion-* \
811809
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
811809
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
811809
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
811809
 	| pyramid-* \
811809
-	| romp-* | rs6000-* \
811809
+	| rl78-* | romp-* | rs6000-* | rx-* \
811809
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
811809
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
811809
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
811809
 	| sparclite-* \
811809
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
811809
-	| tahoe-* | thumb-* \
811809
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
811809
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
811809
+	| tahoe-* \
811809
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
811809
+	| tile*-* \
811809
 	| tron-* \
811809
-	| v850-* | v850e-* | vax-* \
811809
+	| ubicom32-* \
811809
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
811809
+	| vax-* \
811809
 	| we32k-* \
811809
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
811809
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
811809
 	| xstormy16-* | xtensa*-* \
811809
 	| ymp-* \
811809
 	| z8k-* | z80-*)
811809
@@ -404,7 +459,7 @@
811809
 		basic_machine=a29k-amd
811809
 		os=-udi
811809
 		;;
811809
-    	abacus)
811809
+	abacus)
811809
 		basic_machine=abacus-unknown
811809
 		;;
811809
 	adobe68k)
811809
@@ -474,11 +529,20 @@
811809
 		basic_machine=powerpc-ibm
811809
 		os=-cnk
811809
 		;;
811809
+	c54x-*)
811809
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
+		;;
811809
+	c55x-*)
811809
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
+		;;
811809
+	c6x-*)
811809
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
+		;;
811809
 	c90)
811809
 		basic_machine=c90-cray
811809
 		os=-unicos
811809
 		;;
811809
-        cegcc)
811809
+	cegcc)
811809
 		basic_machine=arm-unknown
811809
 		os=-cegcc
811809
 		;;
811809
@@ -510,7 +574,7 @@
811809
 		basic_machine=craynv-cray
811809
 		os=-unicosmp
811809
 		;;
811809
-	cr16)
811809
+	cr16 | cr16-*)
811809
 		basic_machine=cr16-unknown
811809
 		os=-elf
811809
 		;;
811809
@@ -668,7 +732,6 @@
811809
 	i370-ibm* | ibm*)
811809
 		basic_machine=i370-ibm
811809
 		;;
811809
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
811809
 	i*86v32)
811809
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
811809
 		os=-sysv32
811809
@@ -726,6 +789,13 @@
811809
 		basic_machine=ns32k-utek
811809
 		os=-sysv
811809
 		;;
811809
+	microblaze*)
811809
+		basic_machine=microblaze-xilinx
811809
+		;;
811809
+	mingw64)
811809
+		basic_machine=x86_64-pc
811809
+		os=-mingw64
811809
+		;;
811809
 	mingw32)
811809
 		basic_machine=i386-pc
811809
 		os=-mingw32
811809
@@ -762,10 +832,18 @@
811809
 	ms1-*)
811809
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
811809
 		;;
811809
+	msys)
811809
+		basic_machine=i386-pc
811809
+		os=-msys
811809
+		;;
811809
 	mvs)
811809
 		basic_machine=i370-ibm
811809
 		os=-mvs
811809
 		;;
811809
+	nacl)
811809
+		basic_machine=le32-unknown
811809
+		os=-nacl
811809
+		;;
811809
 	ncr3000)
811809
 		basic_machine=i486-ncr
811809
 		os=-sysv4
811809
@@ -830,6 +908,12 @@
811809
 	np1)
811809
 		basic_machine=np1-gould
811809
 		;;
811809
+	neo-tandem)
811809
+		basic_machine=neo-tandem
811809
+		;;
811809
+	nse-tandem)
811809
+		basic_machine=nse-tandem
811809
+		;;
811809
 	nsr-tandem)
811809
 		basic_machine=nsr-tandem
811809
 		;;
811809
@@ -912,9 +996,10 @@
811809
 		;;
811809
 	power)	basic_machine=power-ibm
811809
 		;;
811809
-	ppc)	basic_machine=powerpc-unknown
811809
+	ppc | ppcbe)	basic_machine=powerpc-unknown
811809
 		;;
811809
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
+	ppc-* | ppcbe-*)
811809
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
 		;;
811809
 	ppcle | powerpclittle | ppc-le | powerpc-little)
811809
 		basic_machine=powerpcle-unknown
811809
@@ -1008,6 +1093,9 @@
811809
 		basic_machine=i860-stratus
811809
 		os=-sysv4
811809
 		;;
811809
+	strongarm-* | thumb-*)
811809
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
811809
+		;;
811809
 	sun2)
811809
 		basic_machine=m68000-sun
811809
 		;;
811809
@@ -1064,20 +1152,8 @@
811809
 		basic_machine=t90-cray
811809
 		os=-unicos
811809
 		;;
811809
-	tic54x | c54x*)
811809
-		basic_machine=tic54x-unknown
811809
-		os=-coff
811809
-		;;
811809
-	tic55x | c55x*)
811809
-		basic_machine=tic55x-unknown
811809
-		os=-coff
811809
-		;;
811809
-	tic6x | c6x*)
811809
-		basic_machine=tic6x-unknown
811809
-		os=-coff
811809
-		;;
811809
 	tile*)
811809
-		basic_machine=tile-unknown
811809
+		basic_machine=$basic_machine-unknown
811809
 		os=-linux-gnu
811809
 		;;
811809
 	tx39)
811809
@@ -1147,6 +1223,9 @@
811809
 	xps | xps100)
811809
 		basic_machine=xps100-honeywell
811809
 		;;
811809
+	xscale-* | xscalee[bl]-*)
811809
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
811809
+		;;
811809
 	ymp)
811809
 		basic_machine=ymp-cray
811809
 		os=-unicos
811809
@@ -1244,9 +1323,12 @@
811809
 if [ x"$os" != x"" ]
811809
 then
811809
 case $os in
811809
-        # First match some system type aliases
811809
-        # that might get confused with valid system types.
811809
+	# First match some system type aliases
811809
+	# that might get confused with valid system types.
811809
 	# -solaris* is a basic system type, with this one exception.
811809
+	-auroraux)
811809
+		os=-auroraux
811809
+		;;
811809
 	-solaris1 | -solaris1.*)
811809
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
811809
 		;;
811809
@@ -1268,21 +1350,22 @@
811809
 	# -sysv* is not here because it comes later, after sysvr4.
811809
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
811809
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
811809
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
811809
-	      | -kopensolaris* \
811809
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
811809
+	      | -sym* | -kopensolaris* \
811809
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
811809
 	      | -aos* | -aros* \
811809
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
811809
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
811809
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
811809
-	      | -openbsd* | -solidbsd* \
811809
+	      | -bitrig* | -openbsd* | -solidbsd* \
811809
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
811809
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
811809
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
811809
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
811809
 	      | -chorusos* | -chorusrdb* | -cegcc* \
811809
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
811809
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
811809
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
811809
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
811809
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
811809
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
811809
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
811809
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
811809
@@ -1290,7 +1373,7 @@
811809
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
811809
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
811809
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
811809
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
811809
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
811809
 	# Remember, each alternative MUST END IN *, to match a version number.
811809
 		;;
811809
 	-qnx*)
811809
@@ -1329,7 +1412,7 @@
811809
 	-opened*)
811809
 		os=-openedition
811809
 		;;
811809
-        -os400*)
811809
+	-os400*)
811809
 		os=-os400
811809
 		;;
811809
 	-wince*)
811809
@@ -1378,7 +1461,7 @@
811809
 	-sinix*)
811809
 		os=-sysv4
811809
 		;;
811809
-        -tpf*)
811809
+	-tpf*)
811809
 		os=-tpf
811809
 		;;
811809
 	-triton*)
811809
@@ -1423,6 +1506,8 @@
811809
 	-dicos*)
811809
 		os=-dicos
811809
 		;;
811809
+	-nacl*)
811809
+		;;
811809
 	-none)
811809
 		;;
811809
 	*)
811809
@@ -1445,10 +1530,10 @@
811809
 # system, and we'll never get to this point.
811809
 
811809
 case $basic_machine in
811809
-        score-*)
811809
+	score-*)
811809
 		os=-elf
811809
 		;;
811809
-        spu-*)
811809
+	spu-*)
811809
 		os=-elf
811809
 		;;
811809
 	*-acorn)
811809
@@ -1460,8 +1545,20 @@
811809
 	arm*-semi)
811809
 		os=-aout
811809
 		;;
811809
-        c4x-* | tic4x-*)
811809
-        	os=-coff
811809
+	c4x-* | tic4x-*)
811809
+		os=-coff
811809
+		;;
811809
+	hexagon-*)
811809
+		os=-elf
811809
+		;;
811809
+	tic54x-*)
811809
+		os=-coff
811809
+		;;
811809
+	tic55x-*)
811809
+		os=-coff
811809
+		;;
811809
+	tic6x-*)
811809
+		os=-coff
811809
 		;;
811809
 	# This must come before the *-dec entry.
811809
 	pdp10-*)
811809
@@ -1481,14 +1578,11 @@
811809
 		;;
811809
 	m68000-sun)
811809
 		os=-sunos3
811809
-		# This also exists in the configure program, but was not the
811809
-		# default.
811809
-		# os=-sunos4
811809
 		;;
811809
 	m68*-cisco)
811809
 		os=-aout
811809
 		;;
811809
-        mep-*)
811809
+	mep-*)
811809
 		os=-elf
811809
 		;;
811809
 	mips*-cisco)
811809
@@ -1515,7 +1609,7 @@
811809
 	*-ibm)
811809
 		os=-aix
811809
 		;;
811809
-    	*-knuth)
811809
+	*-knuth)
811809
 		os=-mmixware
811809
 		;;
811809
 	*-wec)