1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## autoconfupdate.dpatch by Wookey <wookey@wookware.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Update config.guess,sub for aarch64
8
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gnupg-1.4.11~/scripts/config.guess gnupg-1.4.11/scripts/config.guess
9
--- gnupg-1.4.11~/scripts/config.guess 2010-10-18 10:06:52.000000000 +0100
10
+++ gnupg-1.4.11/scripts/config.guess 2012-10-04 11:55:19.000000000 +0100
13
# Attempt to guess a canonical system name.
14
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
15
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
16
-# Free Software Foundation, Inc.
17
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
18
+# 2011, 2012 Free Software Foundation, Inc.
20
-timestamp='2010-09-24'
21
+timestamp='2012-02-10'
23
# This file is free software; you can redistribute it and/or modify it
24
# under the terms of the GNU General Public License as published by
26
# General Public License for more details.
28
# You should have received a copy of the GNU General Public License
29
-# along with this program; if not, write to the Free Software
30
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
32
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
34
# As a special exception to the GNU General Public License, if you
35
# distribute this file as part of a program that contains a
38
Originally written by Per Bothner.
39
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
40
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
41
-Software Foundation, Inc.
42
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
43
+Free Software Foundation, Inc.
45
This is free software; see the source for copying conditions. There is NO
46
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
51
-trap 'exit 1' HUP INT TERM
54
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
55
# compiler to aid in system detection is discouraged as it requires
59
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
60
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
61
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
63
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
64
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
66
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
68
# NetBSD (nbsd) targets should (where applicable) match one or
69
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
70
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
71
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
72
# switched to ELF, *-*-netbsd* would select the old
73
# object file format. This provides both forward
84
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
87
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
88
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
91
# According to Compaq, /usr/sbin/psrinfo has been available on
93
# A Xn.n version is an unreleased experimental baselevel.
94
# 1.2 uses "1.2" for uname -r.
95
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
97
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
101
Alpha\ *:Windows_NT*:*)
102
# How do we know it's Interix rather than the generic POSIX subsystem?
103
# Should we change UNAME_MACHINE based on the output of uname instead
108
- echo powerpc-ibm-os400
109
+ echo powerpc-ibm-os400
111
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
112
echo arm-acorn-riscix${UNAME_RELEASE}
113
@@ -395,23 +396,23 @@
114
# MiNT. But MiNT is downward compatible to TOS, so this should
116
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
117
- echo m68k-atari-mint${UNAME_RELEASE}
118
+ echo m68k-atari-mint${UNAME_RELEASE}
120
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
121
echo m68k-atari-mint${UNAME_RELEASE}
124
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
125
- echo m68k-atari-mint${UNAME_RELEASE}
126
+ echo m68k-atari-mint${UNAME_RELEASE}
128
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
129
- echo m68k-milan-mint${UNAME_RELEASE}
131
+ echo m68k-milan-mint${UNAME_RELEASE}
133
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
134
- echo m68k-hades-mint${UNAME_RELEASE}
136
+ echo m68k-hades-mint${UNAME_RELEASE}
138
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
139
- echo m68k-unknown-mint${UNAME_RELEASE}
141
+ echo m68k-unknown-mint${UNAME_RELEASE}
144
echo m68k-apple-machten${UNAME_RELEASE}
147
echo m88k-motorola-sysv3
150
- # DG/UX returns AViiON for all architectures
151
- UNAME_PROCESSOR=`/usr/bin/uname -p`
152
+ # DG/UX returns AViiON for all architectures
153
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
154
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
156
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
159
echo i586-dg-dgux${UNAME_RELEASE}
163
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
164
echo m88k-dolphin-sysv3
166
@@ -595,52 +596,52 @@
167
9000/[678][0-9][0-9])
168
if [ -x /usr/bin/getconf ]; then
169
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
170
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
171
- case "${sc_cpu_version}" in
172
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
173
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
174
- 532) # CPU_PA_RISC2_0
175
- case "${sc_kernel_bits}" in
176
- 32) HP_ARCH="hppa2.0n" ;;
177
- 64) HP_ARCH="hppa2.0w" ;;
178
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
179
+ case "${sc_cpu_version}" in
180
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
181
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
182
+ 532) # CPU_PA_RISC2_0
183
+ case "${sc_kernel_bits}" in
184
+ 32) HP_ARCH="hppa2.0n" ;;
185
+ 64) HP_ARCH="hppa2.0w" ;;
186
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
192
if [ "${HP_ARCH}" = "" ]; then
193
eval $set_cc_for_build
194
- sed 's/^ //' << EOF >$dummy.c
195
+ sed 's/^ //' << EOF >$dummy.c
197
- #define _HPUX_SOURCE
198
- #include <stdlib.h>
199
- #include <unistd.h>
200
+ #define _HPUX_SOURCE
201
+ #include <stdlib.h>
202
+ #include <unistd.h>
206
- #if defined(_SC_KERNEL_BITS)
207
- long bits = sysconf(_SC_KERNEL_BITS);
209
- long cpu = sysconf (_SC_CPU_VERSION);
212
+ #if defined(_SC_KERNEL_BITS)
213
+ long bits = sysconf(_SC_KERNEL_BITS);
215
+ long cpu = sysconf (_SC_CPU_VERSION);
219
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
220
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
221
- case CPU_PA_RISC2_0:
222
- #if defined(_SC_KERNEL_BITS)
225
- case 64: puts ("hppa2.0w"); break;
226
- case 32: puts ("hppa2.0n"); break;
227
- default: puts ("hppa2.0"); break;
229
- #else /* !defined(_SC_KERNEL_BITS) */
230
- puts ("hppa2.0"); break;
232
- default: puts ("hppa1.0"); break;
238
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
239
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
240
+ case CPU_PA_RISC2_0:
241
+ #if defined(_SC_KERNEL_BITS)
244
+ case 64: puts ("hppa2.0w"); break;
245
+ case 32: puts ("hppa2.0n"); break;
246
+ default: puts ("hppa2.0"); break;
248
+ #else /* !defined(_SC_KERNEL_BITS) */
249
+ puts ("hppa2.0"); break;
251
+ default: puts ("hppa1.0"); break;
256
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
257
test -z "$HP_ARCH" && HP_ARCH=hppa
258
@@ -731,22 +732,22 @@
260
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
264
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
265
if getsysinfo -f scalar_acc
266
then echo c32-convex-bsd
267
else echo c2-convex-bsd
271
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
275
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
279
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
284
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
286
@@ -770,14 +771,14 @@
288
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
289
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
290
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
291
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
292
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
294
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
295
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
296
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
298
5000:UNIX_System_V:4.*:*)
299
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
300
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
301
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
302
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
303
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
304
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
306
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
307
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
308
@@ -789,13 +790,12 @@
309
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
312
- case ${UNAME_MACHINE} in
314
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
315
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
316
+ case ${UNAME_PROCESSOR} in
318
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
320
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
321
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
325
@@ -804,15 +804,18 @@
327
echo ${UNAME_MACHINE}-pc-mingw32
330
+ echo ${UNAME_MACHINE}-pc-msys
333
- # uname -m includes "-pc" on this system.
334
- echo ${UNAME_MACHINE}-mingw32
335
+ # uname -m includes "-pc" on this system.
336
+ echo ${UNAME_MACHINE}-mingw32
339
echo ${UNAME_MACHINE}-pc-pw32
342
- case ${UNAME_MACHINE} in
343
+ case ${UNAME_MACHINE} in
345
echo i586-pc-interix${UNAME_RELEASE}
349
echo ${UNAME_MACHINE}-pc-minix
352
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
354
+ aarch64_be:Linux:*:*)
355
+ UNAME_MACHINE=aarch64_be
356
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
359
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
360
EV5) UNAME_MACHINE=alphaev5 ;;
362
EV6) UNAME_MACHINE=alphaev6 ;;
363
EV67) UNAME_MACHINE=alphaev67 ;;
364
EV68*) UNAME_MACHINE=alphaev68 ;;
367
objdump --private-headers /bin/sh | grep -q ld.so.1
368
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
369
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
370
@@ -879,20 +889,29 @@
372
echo ${UNAME_MACHINE}-unknown-linux-gnu
374
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
375
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
376
+ | grep -q __ARM_PCS_VFP
378
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
380
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
385
echo ${UNAME_MACHINE}-unknown-linux-gnu
388
- echo cris-axis-linux-gnu
389
+ echo ${UNAME_MACHINE}-axis-linux-gnu
392
- echo crisv32-axis-linux-gnu
393
+ echo ${UNAME_MACHINE}-axis-linux-gnu
396
- echo frv-unknown-linux-gnu
397
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
400
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
405
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
408
- echo or32-unknown-linux-gnu
409
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
412
echo sparc-unknown-linux-gnu
414
echo ${UNAME_MACHINE}-ibm-linux
417
- echo ${UNAME_MACHINE}-unknown-linux-gnu
418
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
421
echo ${UNAME_MACHINE}-unknown-linux-gnu
422
@@ -969,16 +988,16 @@
423
echo ${UNAME_MACHINE}-unknown-linux-gnu
426
- echo ${UNAME_MACHINE}-tilera-linux-gnu
427
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
430
echo ${UNAME_MACHINE}-dec-linux-gnu
433
- echo x86_64-unknown-linux-gnu
434
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
437
- echo ${UNAME_MACHINE}-unknown-linux-gnu
438
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
441
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
442
@@ -987,11 +1006,11 @@
443
echo i386-sequent-sysv4
445
i*86:UNIX_SV:4.2MP:2.*)
446
- # Unixware is an offshoot of SVR4, but it has its own version
447
- # number series starting with 2...
448
- # I am not positive that other SVR4 systems won't match this,
449
+ # Unixware is an offshoot of SVR4, but it has its own version
450
+ # number series starting with 2...
451
+ # I am not positive that other SVR4 systems won't match this,
452
# I just have to hope. -- rms.
453
- # Use sysv4.2uw... so that sysv4* matches it.
454
+ # Use sysv4.2uw... so that sysv4* matches it.
455
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
458
@@ -1023,7 +1042,7 @@
462
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
463
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
464
case `/bin/uname -X | grep "^Machine"` in
465
*486*) UNAME_MACHINE=i486 ;;
466
*Pentium) UNAME_MACHINE=i586 ;;
467
@@ -1051,13 +1070,13 @@
470
# Left here for compatibility:
471
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
472
- # the processor, so we play safe by assuming i586.
473
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
474
+ # the processor, so we play safe by assuming i586.
475
# Note: whatever this is, it MUST be the same as what config.sub
476
# prints for the "djgpp" host, or else GDB configury will decide that
477
# this is a cross-build.
478
echo i586-pc-msdosdjgpp
484
@@ -1092,8 +1111,8 @@
485
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
486
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
487
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
488
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
489
- && { echo i486-ncr-sysv4; exit; } ;;
490
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
491
+ && { echo i486-ncr-sysv4; exit; } ;;
492
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
494
test -r /etc/.relid \
495
@@ -1136,10 +1155,10 @@
499
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
500
- # says <Richard.M.Bartel@ccMail.Census.GOV>
501
- echo i586-unisys-sysv4
503
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
504
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
505
+ echo i586-unisys-sysv4
507
*:UNIX_System_V:4*:FTX*)
508
# From Gerald Hewes <hewes@openmarket.com>.
509
# How about differentiating between stratus architectures? -djm
510
@@ -1165,11 +1184,11 @@
512
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
513
if [ -d /usr/nec ]; then
514
- echo mips-nec-sysv${UNAME_RELEASE}
515
+ echo mips-nec-sysv${UNAME_RELEASE}
517
- echo mips-unknown-sysv${UNAME_RELEASE}
518
+ echo mips-unknown-sysv${UNAME_RELEASE}
522
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
525
@@ -1282,13 +1301,13 @@
526
echo pdp10-unknown-its
529
- echo mips-sei-seiux${UNAME_RELEASE}
530
+ echo mips-sei-seiux${UNAME_RELEASE}
533
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
536
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
537
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
538
case "${UNAME_MACHINE}" in
539
A*) echo alpha-dec-vms ; exit ;;
540
I*) echo ia64-dec-vms ; exit ;;
541
@@ -1306,6 +1325,9 @@
543
echo ${UNAME_MACHINE}-pc-aros
545
+ x86_64:VMkernel:*:*)
546
+ echo ${UNAME_MACHINE}-unknown-esx
550
#echo '(No uname command or uname output not recognized.)' 1>&2
551
@@ -1328,11 +1350,11 @@
552
#include <sys/param.h>
553
printf ("m68k-sony-newsos%s\n",
566
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' gnupg-1.4.11~/scripts/config.sub gnupg-1.4.11/scripts/config.sub
567
--- gnupg-1.4.11~/scripts/config.sub 2010-10-18 10:06:48.000000000 +0100
568
+++ gnupg-1.4.11/scripts/config.sub 2012-10-04 11:55:19.000000000 +0100
571
# Configuration validation subroutine script.
572
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
573
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
574
-# Free Software Foundation, Inc.
575
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
576
+# 2011, 2012 Free Software Foundation, Inc.
578
-timestamp='2010-09-11'
579
+timestamp='2012-04-18'
581
# This file is (in principle) common to ALL GNU software.
582
# The presence of a machine in this file suggests that SOME GNU software
584
# GNU General Public License for more details.
586
# You should have received a copy of the GNU General Public License
587
-# along with this program; if not, write to the Free Software
588
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
590
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
592
# As a special exception to the GNU General Public License, if you
593
# distribute this file as part of a program that contains a
595
GNU config.sub ($timestamp)
597
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
598
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
599
-Software Foundation, Inc.
600
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
601
+Free Software Foundation, Inc.
603
This is free software; see the source for copying conditions. There is NO
604
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
607
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
611
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
614
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
615
if [ $basic_machine != $1 ]
625
-sim | -cisco | -oki | -wec | -winbond)
627
@@ -175,10 +177,10 @@
643
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
654
@@ -247,17 +255,22 @@
655
# Some are omitted here because they have special meanings below.
658
+ | aarch64 | aarch64_be \
659
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
660
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
662
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
666
| d10v | d30v | dlx | dsp16xx \
668
| fido | fr30 | frv \
669
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
671
| i370 | i860 | i960 | ia64 \
675
| m32c | m32r | m32rle | m68000 | m68k | m88k \
676
| maxq | mb | microblaze | mcore | mep | metag \
677
@@ -286,22 +299,23 @@
678
| nds32 | nds32le | nds32be \
683
| pdp10 | pdp11 | pj | pjl \
684
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
685
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
690
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
692
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
693
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
694
- | spu | strongarm \
695
- | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
697
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
700
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
702
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
703
+ | x86 | xc16x | xstormy16 | xtensa \
705
basic_machine=$basic_machine-unknown
709
basic_machine=tic6x-unknown
711
- m6811 | m68hc11 | m6812 | m68hc12 | picochip)
712
- # Motorola 68HC11/12.
713
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
714
basic_machine=$basic_machine-unknown
718
basic_machine=mt-unknown
721
+ strongarm | thumb | xscale)
722
+ basic_machine=arm-unknown
725
+ basic_machine=$basic_machine-unknown
729
+ basic_machine=armeb-unknown
733
+ basic_machine=armel-unknown
736
# We use `pc' rather than `unknown'
737
# because (1) that's what they normally are, and
738
# (2) the word "unknown" tends to confuse beginning users.
739
@@ -339,11 +367,13 @@
740
# Recognize the basic CPU types with company name.
743
+ | aarch64-* | aarch64_be-* \
744
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
745
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
746
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
747
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
749
+ | be32-* | be64-* \
750
| bfin-* | bs2000-* \
751
| c[123]* | c30-* | [cjt]90-* | c4x-* \
752
| clipper-* | craynv-* | cydra-* \
754
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
755
| h8300-* | h8500-* \
756
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
758
| i*86-* | i860-* | i960-* | ia64-* \
759
| ip2k-* | iq2000-* \
760
+ | le32-* | le64-* \
762
| m32c-* | m32r-* | m32rle-* \
763
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
764
@@ -382,24 +414,26 @@
765
| nds32-* | nds32le-* | nds32be-* \
767
| none-* | np1-* | ns16k-* | ns32k-* \
770
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
771
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
772
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
774
- | romp-* | rs6000-* | rx-* \
775
+ | rl78-* | romp-* | rs6000-* | rx-* \
776
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
777
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
778
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
780
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
781
- | tahoe-* | thumb-* \
782
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
784
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
785
- | tile-* | tilegx-* \
789
- | v850-* | v850e-* | vax-* \
790
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
793
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
794
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
795
| xstormy16-* | xtensa*-* \
799
basic_machine=a29k-amd
804
basic_machine=abacus-unknown
808
basic_machine=c90-cray
813
basic_machine=arm-unknown
817
basic_machine=craynv-cray
822
basic_machine=cr16-unknown
827
basic_machine=i370-ibm
829
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
831
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
834
basic_machine=ns32k-utek
839
basic_machine=microblaze-xilinx
842
@@ -794,10 +827,18 @@
844
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
847
+ basic_machine=i386-pc
851
basic_machine=i370-ibm
855
+ basic_machine=le32-unknown
859
basic_machine=i486-ncr
861
@@ -862,10 +903,10 @@
863
basic_machine=np1-gould
867
basic_machine=neo-tandem
871
basic_machine=nse-tandem
876
power) basic_machine=power-ibm
878
- ppc) basic_machine=powerpc-unknown
879
+ ppc | ppcbe) basic_machine=powerpc-unknown
881
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
883
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
885
ppcle | powerpclittle | ppc-le | powerpc-little)
886
basic_machine=powerpcle-unknown
887
@@ -1046,6 +1088,9 @@
888
basic_machine=i860-stratus
891
+ strongarm-* | thumb-*)
892
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
895
basic_machine=m68000-sun
897
@@ -1102,13 +1147,8 @@
898
basic_machine=t90-cray
901
- # This must be matched before tile*.
903
- basic_machine=tilegx-unknown
907
- basic_machine=tile-unknown
908
+ basic_machine=$basic_machine-unknown
912
@@ -1178,6 +1218,9 @@
914
basic_machine=xps100-honeywell
916
+ xscale-* | xscalee[bl]-*)
917
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
920
basic_machine=ymp-cray
922
@@ -1275,11 +1318,11 @@
926
- # First match some system type aliases
927
- # that might get confused with valid system types.
928
+ # First match some system type aliases
929
+ # that might get confused with valid system types.
930
# -solaris* is a basic system type, with this one exception.
936
-solaris1 | -solaris1.*)
937
os=`echo $os | sed -e 's|solaris1|sunos4|'`
938
@@ -1315,7 +1358,7 @@
939
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
940
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
941
| -chorusos* | -chorusrdb* | -cegcc* \
942
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
943
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
944
| -mingw32* | -linux-gnu* | -linux-android* \
945
| -linux-newlib* | -linux-uclibc* \
946
| -uxpv* | -beos* | -mpeix* | -udk* \
947
@@ -1364,7 +1407,7 @@
956
@@ -1413,7 +1456,7 @@
965
@@ -1458,8 +1501,8 @@
976
@@ -1482,10 +1525,10 @@
977
# system, and we'll never get to this point.
979
case $basic_machine in
989
@@ -1497,8 +1540,11 @@
1003
@@ -1527,14 +1573,11 @@
1007
- # This also exists in the configure program, but was not the
1019
@@ -1561,7 +1604,7 @@