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