sylpheed-aarch64.patch

Patch for config.guess and config.sub - Christoph Wickert, 04/20/2013 07:59 AM

Download (48 KB)

View differences:

sylpheed-3.4.0beta2-aarch64/config.guess 2013-03-03 08:41:03.376105273 -0600
1 1
#! /bin/sh
2 2
# Attempt to guess a canonical system name.
3 3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
#   Inc.
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
#   2011, 2012 Free Software Foundation, Inc.
6 6

  
7
timestamp='2007-07-22'
7
timestamp='2012-09-25'
8 8

  
9 9
# This file is free software; you can redistribute it and/or modify it
10 10
# under the terms of the GNU General Public License as published by
......
17 17
# General Public License for more details.
18 18
#
19 19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22
# 02110-1301, USA.
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
23 21
#
24 22
# As a special exception to the GNU General Public License, if you
25 23
# distribute this file as part of a program that contains a
......
27 25
# the same distribution terms that you use for the rest of that program.
28 26

  
29 27

  
30
# Originally written by Per Bothner <per@bothner.com>.
31
# Please send patches to <config-patches@gnu.org>.  Submit a context
32
# diff and a properly formatted ChangeLog entry.
28
# Originally written by Per Bothner.  Please send patches (context
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
30
# entry.
33 31
#
34 32
# This script attempts to guess a canonical system name similar to
35 33
# config.sub.  If it succeeds, it prints the system name on stdout, and
36 34
# exits with 0.  Otherwise, it exits with 1.
37 35
#
38
# The plan is that this can be called by configure scripts if you
39
# don't specify an explicit build system type.
36
# You can get the latest version of this script from:
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40 38

  
41 39
me=`echo "$0" | sed -e 's,.*/,,'`
42 40

  
......
56 54
GNU config.guess ($timestamp)
57 55

  
58 56
Originally written by Per Bothner.
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
60 59
Free Software Foundation, Inc.
61 60

  
62 61
This is free software; see the source for copying conditions.  There is NO
......
144 143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145 144
    *:NetBSD:*:*)
146 145
	# NetBSD (nbsd) targets should (where applicable) match one or
147
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
146
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148 147
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
149 148
	# switched to ELF, *-*-netbsd* would select the old
150 149
	# object file format.  This provides both forward
......
170 169
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 170
		eval $set_cc_for_build
172 171
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173
			| grep __ELF__ >/dev/null
172
			| grep -q __ELF__
174 173
		then
175 174
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 175
		    # Return netbsd for either.  FIX?
......
180 179
		fi
181 180
		;;
182 181
	    *)
183
	        os=netbsd
182
		os=netbsd
184 183
		;;
185 184
	esac
186 185
	# The OS release
......
201 200
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 201
	echo "${machine}-${os}${release}"
203 202
	exit ;;
203
    *:Bitrig:*:*)
204
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
205
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
206
	exit ;;
204 207
    *:OpenBSD:*:*)
205 208
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 209
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
......
223 226
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224 227
		;;
225 228
	*5.*)
226
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
229
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227 230
		;;
228 231
	esac
229 232
	# According to Compaq, /usr/sbin/psrinfo has been available on
......
269 272
	# A Xn.n version is an unreleased experimental baselevel.
270 273
	# 1.2 uses "1.2" for uname -r.
271 274
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272
	exit ;;
275
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
276
	exitcode=$?
277
	trap '' 0
278
	exit $exitcode ;;
273 279
    Alpha\ *:Windows_NT*:*)
274 280
	# How do we know it's Interix rather than the generic POSIX subsystem?
275 281
	# Should we change UNAME_MACHINE based on the output of uname instead
......
295 301
	echo s390-ibm-zvmoe
296 302
	exit ;;
297 303
    *:OS400:*:*)
298
        echo powerpc-ibm-os400
304
	echo powerpc-ibm-os400
299 305
	exit ;;
300 306
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301 307
	echo arm-acorn-riscix${UNAME_RELEASE}
302 308
	exit ;;
303
    arm:riscos:*:*|arm:RISCOS:*:*)
309
    arm*:riscos:*:*|arm*:RISCOS:*:*)
304 310
	echo arm-unknown-riscos
305 311
	exit ;;
306 312
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
......
324 330
	case `/usr/bin/uname -p` in
325 331
	    sparc) echo sparc-icl-nx7; exit ;;
326 332
	esac ;;
333
    s390x:SunOS:*:*)
334
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
	exit ;;
327 336
    sun4H:SunOS:5.*:*)
328 337
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 338
	exit ;;
330 339
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 340
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 341
	exit ;;
342
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
343
	echo i386-pc-auroraux${UNAME_RELEASE}
344
	exit ;;
333 345
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334
	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
346
	eval $set_cc_for_build
347
	SUN_ARCH="i386"
348
	# If there is a compiler, see if it is configured for 64-bit objects.
349
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
350
	# This test works for both compilers.
351
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
352
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
353
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
354
		grep IS_64BIT_ARCH >/dev/null
355
	    then
356
		SUN_ARCH="x86_64"
357
	    fi
358
	fi
359
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 360
	exit ;;
336 361
    sun4*:SunOS:6*:*)
337 362
	# According to config.sub, this is the proper way to canonicalize
......
375 400
    # MiNT.  But MiNT is downward compatible to TOS, so this should
376 401
    # be no problem.
377 402
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
378
        echo m68k-atari-mint${UNAME_RELEASE}
403
	echo m68k-atari-mint${UNAME_RELEASE}
379 404
	exit ;;
380 405
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
381 406
	echo m68k-atari-mint${UNAME_RELEASE}
382
        exit ;;
407
	exit ;;
383 408
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
384
        echo m68k-atari-mint${UNAME_RELEASE}
409
	echo m68k-atari-mint${UNAME_RELEASE}
385 410
	exit ;;
386 411
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
387
        echo m68k-milan-mint${UNAME_RELEASE}
388
        exit ;;
412
	echo m68k-milan-mint${UNAME_RELEASE}
413
	exit ;;
389 414
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
390
        echo m68k-hades-mint${UNAME_RELEASE}
391
        exit ;;
415
	echo m68k-hades-mint${UNAME_RELEASE}
416
	exit ;;
392 417
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393
        echo m68k-unknown-mint${UNAME_RELEASE}
394
        exit ;;
418
	echo m68k-unknown-mint${UNAME_RELEASE}
419
	exit ;;
395 420
    m68k:machten:*:*)
396 421
	echo m68k-apple-machten${UNAME_RELEASE}
397 422
	exit ;;
......
461 486
	echo m88k-motorola-sysv3
462 487
	exit ;;
463 488
    AViiON:dgux:*:*)
464
        # DG/UX returns AViiON for all architectures
465
        UNAME_PROCESSOR=`/usr/bin/uname -p`
489
	# DG/UX returns AViiON for all architectures
490
	UNAME_PROCESSOR=`/usr/bin/uname -p`
466 491
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
467 492
	then
468 493
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
......
475 500
	else
476 501
	    echo i586-dg-dgux${UNAME_RELEASE}
477 502
	fi
478
 	exit ;;
503
	exit ;;
479 504
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
480 505
	echo m88k-dolphin-sysv3
481 506
	exit ;;
......
532 557
		echo rs6000-ibm-aix3.2
533 558
	fi
534 559
	exit ;;
535
    *:AIX:*:[45])
560
    *:AIX:*:[4567])
536 561
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 562
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 563
		IBM_ARCH=rs6000
......
575 600
	    9000/[678][0-9][0-9])
576 601
		if [ -x /usr/bin/getconf ]; then
577 602
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
578
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
579
                    case "${sc_cpu_version}" in
580
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
581
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
582
                      532)                      # CPU_PA_RISC2_0
583
                        case "${sc_kernel_bits}" in
584
                          32) HP_ARCH="hppa2.0n" ;;
585
                          64) HP_ARCH="hppa2.0w" ;;
603
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
604
		    case "${sc_cpu_version}" in
605
		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
606
		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
607
		      532)                      # CPU_PA_RISC2_0
608
			case "${sc_kernel_bits}" in
609
			  32) HP_ARCH="hppa2.0n" ;;
610
			  64) HP_ARCH="hppa2.0w" ;;
586 611
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
587
                        esac ;;
588
                    esac
612
			esac ;;
613
		    esac
589 614
		fi
590 615
		if [ "${HP_ARCH}" = "" ]; then
591 616
		    eval $set_cc_for_build
592
		    sed 's/^              //' << EOF >$dummy.c
617
		    sed 's/^		//' << EOF >$dummy.c
593 618

  
594
              #define _HPUX_SOURCE
595
              #include <stdlib.h>
596
              #include <unistd.h>
597

  
598
              int main ()
599
              {
600
              #if defined(_SC_KERNEL_BITS)
601
                  long bits = sysconf(_SC_KERNEL_BITS);
602
              #endif
603
                  long cpu  = sysconf (_SC_CPU_VERSION);
604

  
605
                  switch (cpu)
606
              	{
607
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
608
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
609
              	case CPU_PA_RISC2_0:
610
              #if defined(_SC_KERNEL_BITS)
611
              	    switch (bits)
612
              		{
613
              		case 64: puts ("hppa2.0w"); break;
614
              		case 32: puts ("hppa2.0n"); break;
615
              		default: puts ("hppa2.0"); break;
616
              		} break;
617
              #else  /* !defined(_SC_KERNEL_BITS) */
618
              	    puts ("hppa2.0"); break;
619
              #endif
620
              	default: puts ("hppa1.0"); break;
621
              	}
622
                  exit (0);
623
              }
619
		#define _HPUX_SOURCE
620
		#include <stdlib.h>
621
		#include <unistd.h>
622

  
623
		int main ()
624
		{
625
		#if defined(_SC_KERNEL_BITS)
626
		    long bits = sysconf(_SC_KERNEL_BITS);
627
		#endif
628
		    long cpu  = sysconf (_SC_CPU_VERSION);
629

  
630
		    switch (cpu)
631
			{
632
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
633
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
634
			case CPU_PA_RISC2_0:
635
		#if defined(_SC_KERNEL_BITS)
636
			    switch (bits)
637
				{
638
				case 64: puts ("hppa2.0w"); break;
639
				case 32: puts ("hppa2.0n"); break;
640
				default: puts ("hppa2.0"); break;
641
				} break;
642
		#else  /* !defined(_SC_KERNEL_BITS) */
643
			    puts ("hppa2.0"); break;
644
		#endif
645
			default: puts ("hppa1.0"); break;
646
			}
647
		    exit (0);
648
		}
624 649
EOF
625 650
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
626 651
		    test -z "$HP_ARCH" && HP_ARCH=hppa
......
640 665
	    # => hppa64-hp-hpux11.23
641 666

  
642 667
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643
		grep __LP64__ >/dev/null
668
		grep -q __LP64__
644 669
	    then
645 670
		HP_ARCH="hppa2.0w"
646 671
	    else
......
711 736
	exit ;;
712 737
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
713 738
	echo c1-convex-bsd
714
        exit ;;
739
	exit ;;
715 740
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
716 741
	if getsysinfo -f scalar_acc
717 742
	then echo c32-convex-bsd
718 743
	else echo c2-convex-bsd
719 744
	fi
720
        exit ;;
745
	exit ;;
721 746
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
722 747
	echo c34-convex-bsd
723
        exit ;;
748
	exit ;;
724 749
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
725 750
	echo c38-convex-bsd
726
        exit ;;
751
	exit ;;
727 752
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
728 753
	echo c4-convex-bsd
729
        exit ;;
754
	exit ;;
730 755
    CRAY*Y-MP:*:*:*)
731 756
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
732 757
	exit ;;
......
750 775
	exit ;;
751 776
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
752 777
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
753
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
755
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
756
        exit ;;
778
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
780
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
781
	exit ;;
757 782
    5000:UNIX_System_V:4.*:*)
758
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
760
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
783
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
784
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
785
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
761 786
	exit ;;
762 787
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
763 788
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
......
769 794
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
770 795
	exit ;;
771 796
    *:FreeBSD:*:*)
772
	case ${UNAME_MACHINE} in
773
	    pc98)
774
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797
	UNAME_PROCESSOR=`/usr/bin/uname -p`
798
	case ${UNAME_PROCESSOR} in
775 799
	    amd64)
776 800
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777 801
	    *)
778
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
779 803
	esac
780 804
	exit ;;
781 805
    i*:CYGWIN*:*)
782 806
	echo ${UNAME_MACHINE}-pc-cygwin
783 807
	exit ;;
808
    *:MINGW64*:*)
809
	echo ${UNAME_MACHINE}-pc-mingw64
810
	exit ;;
784 811
    *:MINGW*:*)
785 812
	echo ${UNAME_MACHINE}-pc-mingw32
786 813
	exit ;;
814
    i*:MSYS*:*)
815
	echo ${UNAME_MACHINE}-pc-msys
816
	exit ;;
787 817
    i*:windows32*:*)
788
    	# uname -m includes "-pc" on this system.
789
    	echo ${UNAME_MACHINE}-mingw32
818
	# uname -m includes "-pc" on this system.
819
	echo ${UNAME_MACHINE}-mingw32
790 820
	exit ;;
791 821
    i*:PW*:*)
792 822
	echo ${UNAME_MACHINE}-pc-pw32
793 823
	exit ;;
794
    *:Interix*:[3456]*)
795
    	case ${UNAME_MACHINE} in
824
    *:Interix*:*)
825
	case ${UNAME_MACHINE} in
796 826
	    x86)
797 827
		echo i586-pc-interix${UNAME_RELEASE}
798 828
		exit ;;
799
	    EM64T | authenticamd)
829
	    authenticamd | genuineintel | EM64T)
800 830
		echo x86_64-unknown-interix${UNAME_RELEASE}
801 831
		exit ;;
832
	    IA64)
833
		echo ia64-unknown-interix${UNAME_RELEASE}
834
		exit ;;
802 835
	esac ;;
803 836
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804 837
	echo i${UNAME_MACHINE}-pc-mks
805 838
	exit ;;
839
    8664:Windows_NT:*)
840
	echo x86_64-pc-mks
841
	exit ;;
806 842
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
807 843
	# How do we know it's Interix rather than the generic POSIX subsystem?
808 844
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
......
832 868
    i*86:Minix:*:*)
833 869
	echo ${UNAME_MACHINE}-pc-minix
834 870
	exit ;;
835
    arm*:Linux:*:*)
871
    aarch64:Linux:*:*)
836 872
	echo ${UNAME_MACHINE}-unknown-linux-gnu
837 873
	exit ;;
874
    aarch64_be:Linux:*:*)
875
	UNAME_MACHINE=aarch64_be
876
	echo ${UNAME_MACHINE}-unknown-linux-gnu
877
	exit ;;
878
    alpha:Linux:*:*)
879
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
880
	  EV5)   UNAME_MACHINE=alphaev5 ;;
881
	  EV56)  UNAME_MACHINE=alphaev56 ;;
882
	  PCA56) UNAME_MACHINE=alphapca56 ;;
883
	  PCA57) UNAME_MACHINE=alphapca56 ;;
884
	  EV6)   UNAME_MACHINE=alphaev6 ;;
885
	  EV67)  UNAME_MACHINE=alphaev67 ;;
886
	  EV68*) UNAME_MACHINE=alphaev68 ;;
887
	esac
888
	objdump --private-headers /bin/sh | grep -q ld.so.1
889
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
890
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
891
	exit ;;
892
    arm*:Linux:*:*)
893
	eval $set_cc_for_build
894
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
895
	    | grep -q __ARM_EABI__
896
	then
897
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
898
	else
899
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
900
		| grep -q __ARM_PCS_VFP
901
	    then
902
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
903
	    else
904
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
905
	    fi
906
	fi
907
	exit ;;
838 908
    avr32*:Linux:*:*)
839 909
	echo ${UNAME_MACHINE}-unknown-linux-gnu
840 910
	exit ;;
841 911
    cris:Linux:*:*)
842
	echo cris-axis-linux-gnu
912
	echo ${UNAME_MACHINE}-axis-linux-gnu
843 913
	exit ;;
844 914
    crisv32:Linux:*:*)
845
	echo crisv32-axis-linux-gnu
915
	echo ${UNAME_MACHINE}-axis-linux-gnu
846 916
	exit ;;
847 917
    frv:Linux:*:*)
848
    	echo frv-unknown-linux-gnu
918
	echo ${UNAME_MACHINE}-unknown-linux-gnu
919
	exit ;;
920
    hexagon:Linux:*:*)
921
	echo ${UNAME_MACHINE}-unknown-linux-gnu
922
	exit ;;
923
    i*86:Linux:*:*)
924
	LIBC=gnu
925
	eval $set_cc_for_build
926
	sed 's/^	//' << EOF >$dummy.c
927
	#ifdef __dietlibc__
928
	LIBC=dietlibc
929
	#endif
930
EOF
931
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
932
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
849 933
	exit ;;
850 934
    ia64:Linux:*:*)
851 935
	echo ${UNAME_MACHINE}-unknown-linux-gnu
......
856 940
    m68*:Linux:*:*)
857 941
	echo ${UNAME_MACHINE}-unknown-linux-gnu
858 942
	exit ;;
859
    mips:Linux:*:*)
943
    mips:Linux:*:* | mips64:Linux:*:*)
860 944
	eval $set_cc_for_build
861 945
	sed 's/^	//' << EOF >$dummy.c
862 946
	#undef CPU
863
	#undef mips
864
	#undef mipsel
947
	#undef ${UNAME_MACHINE}
948
	#undef ${UNAME_MACHINE}el
865 949
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
866
	CPU=mipsel
950
	CPU=${UNAME_MACHINE}el
867 951
	#else
868 952
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
869
	CPU=mips
953
	CPU=${UNAME_MACHINE}
870 954
	#else
871 955
	CPU=
872 956
	#endif
873 957
	#endif
874 958
EOF
875
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
876
	    /^CPU/{
877
		s: ::g
878
		p
879
	    }'`"
880
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
881
	;;
882
    mips64:Linux:*:*)
883
	eval $set_cc_for_build
884
	sed 's/^	//' << EOF >$dummy.c
885
	#undef CPU
886
	#undef mips64
887
	#undef mips64el
888
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
889
	CPU=mips64el
890
	#else
891
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
892
	CPU=mips64
893
	#else
894
	CPU=
895
	#endif
896
	#endif
897
EOF
898
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
899
	    /^CPU/{
900
		s: ::g
901
		p
902
	    }'`"
959
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
903 960
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
904 961
	;;
905 962
    or32:Linux:*:*)
906
	echo or32-unknown-linux-gnu
907
	exit ;;
908
    ppc:Linux:*:*)
909
	echo powerpc-unknown-linux-gnu
963
	echo ${UNAME_MACHINE}-unknown-linux-gnu
910 964
	exit ;;
911
    ppc64:Linux:*:*)
912
	echo powerpc64-unknown-linux-gnu
965
    padre:Linux:*:*)
966
	echo sparc-unknown-linux-gnu
913 967
	exit ;;
914
    alpha:Linux:*:*)
915
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
916
	  EV5)   UNAME_MACHINE=alphaev5 ;;
917
	  EV56)  UNAME_MACHINE=alphaev56 ;;
918
	  PCA56) UNAME_MACHINE=alphapca56 ;;
919
	  PCA57) UNAME_MACHINE=alphapca56 ;;
920
	  EV6)   UNAME_MACHINE=alphaev6 ;;
921
	  EV67)  UNAME_MACHINE=alphaev67 ;;
922
	  EV68*) UNAME_MACHINE=alphaev68 ;;
923
        esac
924
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
925
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
926
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
968
    parisc64:Linux:*:* | hppa64:Linux:*:*)
969
	echo hppa64-unknown-linux-gnu
927 970
	exit ;;
928 971
    parisc:Linux:*:* | hppa:Linux:*:*)
929 972
	# Look for CPU level
......
933 976
	  *)    echo hppa-unknown-linux-gnu ;;
934 977
	esac
935 978
	exit ;;
936
    parisc64:Linux:*:* | hppa64:Linux:*:*)
937
	echo hppa64-unknown-linux-gnu
979
    ppc64:Linux:*:*)
980
	echo powerpc64-unknown-linux-gnu
981
	exit ;;
982
    ppc:Linux:*:*)
983
	echo powerpc-unknown-linux-gnu
938 984
	exit ;;
939 985
    s390:Linux:*:* | s390x:Linux:*:*)
940 986
	echo ${UNAME_MACHINE}-ibm-linux
941 987
	exit ;;
942 988
    sh64*:Linux:*:*)
943
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
989
	echo ${UNAME_MACHINE}-unknown-linux-gnu
944 990
	exit ;;
945 991
    sh*:Linux:*:*)
946 992
	echo ${UNAME_MACHINE}-unknown-linux-gnu
......
948 994
    sparc:Linux:*:* | sparc64:Linux:*:*)
949 995
	echo ${UNAME_MACHINE}-unknown-linux-gnu
950 996
	exit ;;
997
    tile*:Linux:*:*)
998
	echo ${UNAME_MACHINE}-unknown-linux-gnu
999
	exit ;;
951 1000
    vax:Linux:*:*)
952 1001
	echo ${UNAME_MACHINE}-dec-linux-gnu
953 1002
	exit ;;
954 1003
    x86_64:Linux:*:*)
955
	echo x86_64-unknown-linux-gnu
1004
	echo ${UNAME_MACHINE}-unknown-linux-gnu
956 1005
	exit ;;
957
    xtensa:Linux:*:*)
958
    	echo xtensa-unknown-linux-gnu
1006
    xtensa*:Linux:*:*)
1007
	echo ${UNAME_MACHINE}-unknown-linux-gnu
959 1008
	exit ;;
960
    i*86:Linux:*:*)
961
	# The BFD linker knows what the default object file format is, so
962
	# first see if it will tell us. cd to the root directory to prevent
963
	# problems with other programs or directories called `ld' in the path.
964
	# Set LC_ALL=C to ensure ld outputs messages in English.
965
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
966
			 | sed -ne '/supported targets:/!d
967
				    s/[ 	][ 	]*/ /g
968
				    s/.*supported targets: *//
969
				    s/ .*//
970
				    p'`
971
        case "$ld_supported_targets" in
972
	  elf32-i386)
973
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
974
		;;
975
	  a.out-i386-linux)
976
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
977
		exit ;;
978
	  coff-i386)
979
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
980
		exit ;;
981
	  "")
982
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
983
		# one that does not give us useful --help.
984
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
985
		exit ;;
986
	esac
987
	# Determine whether the default compiler is a.out or elf
988
	eval $set_cc_for_build
989
	sed 's/^	//' << EOF >$dummy.c
990
	#include <features.h>
991
	#ifdef __ELF__
992
	# ifdef __GLIBC__
993
	#  if __GLIBC__ >= 2
994
	LIBC=gnu
995
	#  else
996
	LIBC=gnulibc1
997
	#  endif
998
	# else
999
	LIBC=gnulibc1
1000
	# endif
1001
	#else
1002
	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1003
	LIBC=gnu
1004
	#else
1005
	LIBC=gnuaout
1006
	#endif
1007
	#endif
1008
	#ifdef __dietlibc__
1009
	LIBC=dietlibc
1010
	#endif
1011
EOF
1012
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013
	    /^LIBC/{
1014
		s: ::g
1015
		p
1016
	    }'`"
1017
	test x"${LIBC}" != x && {
1018
		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
		exit
1020
	}
1021
	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1022
	;;
1023 1009
    i*86:DYNIX/ptx:4*:*)
1024 1010
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1025 1011
	# earlier versions are messed up and put the nodename in both
......
1027 1013
	echo i386-sequent-sysv4
1028 1014
	exit ;;
1029 1015
    i*86:UNIX_SV:4.2MP:2.*)
1030
        # Unixware is an offshoot of SVR4, but it has its own version
1031
        # number series starting with 2...
1032
        # I am not positive that other SVR4 systems won't match this,
1016
	# Unixware is an offshoot of SVR4, but it has its own version
1017
	# number series starting with 2...
1018
	# I am not positive that other SVR4 systems won't match this,
1033 1019
	# I just have to hope.  -- rms.
1034
        # Use sysv4.2uw... so that sysv4* matches it.
1020
	# Use sysv4.2uw... so that sysv4* matches it.
1035 1021
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1036 1022
	exit ;;
1037 1023
    i*86:OS/2:*:*)
......
1048 1034
    i*86:syllable:*:*)
1049 1035
	echo ${UNAME_MACHINE}-pc-syllable
1050 1036
	exit ;;
1051
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1037
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1052 1038
	echo i386-unknown-lynxos${UNAME_RELEASE}
1053 1039
	exit ;;
1054 1040
    i*86:*DOS:*:*)
......
1063 1049
	fi
1064 1050
	exit ;;
1065 1051
    i*86:*:5:[678]*)
1066
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
1052
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
1067 1053
	case `/bin/uname -X | grep "^Machine"` in
1068 1054
	    *486*)	     UNAME_MACHINE=i486 ;;
1069 1055
	    *Pentium)	     UNAME_MACHINE=i586 ;;
......
1091 1077
	exit ;;
1092 1078
    pc:*:*:*)
1093 1079
	# Left here for compatibility:
1094
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1095
        # the processor, so we play safe by assuming i386.
1096
	echo i386-pc-msdosdjgpp
1097
        exit ;;
1080
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
1081
	# the processor, so we play safe by assuming i586.
1082
	# Note: whatever this is, it MUST be the same as what config.sub
1083
	# prints for the "djgpp" host, or else GDB configury will decide that
1084
	# this is a cross-build.
1085
	echo i586-pc-msdosdjgpp
1086
	exit ;;
1098 1087
    Intel:Mach:3*:*)
1099 1088
	echo i386-pc-mach3
1100 1089
	exit ;;
......
1129 1118
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130 1119
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1131 1120
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133
          && { echo i486-ncr-sysv4; exit; } ;;
1121
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1122
	  && { echo i486-ncr-sysv4; exit; } ;;
1123
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1124
	OS_REL='.3'
1125
	test -r /etc/.relid \
1126
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1127
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1128
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1129
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1131
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1132
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1134 1133
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1135 1134
	echo m68k-unknown-lynxos${UNAME_RELEASE}
1136 1135
	exit ;;
......
1143 1142
    rs6000:LynxOS:2.*:*)
1144 1143
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
1145 1144
	exit ;;
1146
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1145
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1147 1146
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
1148 1147
	exit ;;
1149 1148
    SM[BE]S:UNIX_SV:*:*)
......
1163 1162
		echo ns32k-sni-sysv
1164 1163
	fi
1165 1164
	exit ;;
1166
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1167
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1168
        echo i586-unisys-sysv4
1169
        exit ;;
1165
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1166
			# says <Richard.M.Bartel@ccMail.Census.GOV>
1167
	echo i586-unisys-sysv4
1168
	exit ;;
1170 1169
    *:UNIX_System_V:4*:FTX*)
1171 1170
	# From Gerald Hewes <hewes@openmarket.com>.
1172 1171
	# How about differentiating between stratus architectures? -djm
......
1192 1191
	exit ;;
1193 1192
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1194 1193
	if [ -d /usr/nec ]; then
1195
	        echo mips-nec-sysv${UNAME_RELEASE}
1194
		echo mips-nec-sysv${UNAME_RELEASE}
1196 1195
	else
1197
	        echo mips-unknown-sysv${UNAME_RELEASE}
1196
		echo mips-unknown-sysv${UNAME_RELEASE}
1198 1197
	fi
1199
        exit ;;
1198
	exit ;;
1200 1199
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
1201 1200
	echo powerpc-be-beos
1202 1201
	exit ;;
......
1206 1205
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
1207 1206
	echo i586-pc-beos
1208 1207
	exit ;;
1208
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1209
	echo i586-pc-haiku
1210
	exit ;;
1211
    x86_64:Haiku:*:*)
1212
	echo x86_64-unknown-haiku
1213
	exit ;;
1209 1214
    SX-4:SUPER-UX:*:*)
1210 1215
	echo sx4-nec-superux${UNAME_RELEASE}
1211 1216
	exit ;;
......
1233 1238
    *:Darwin:*:*)
1234 1239
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235 1240
	case $UNAME_PROCESSOR in
1241
	    i386)
1242
		eval $set_cc_for_build
1243
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1244
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1245
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1246
		      grep IS_64BIT_ARCH >/dev/null
1247
		  then
1248
		      UNAME_PROCESSOR="x86_64"
1249
		  fi
1250
		fi ;;
1236 1251
	    unknown) UNAME_PROCESSOR=powerpc ;;
1237 1252
	esac
1238 1253
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
......
1248 1263
    *:QNX:*:4*)
1249 1264
	echo i386-pc-qnx
1250 1265
	exit ;;
1251
    NSE-?:NONSTOP_KERNEL:*:*)
1266
    NEO-?:NONSTOP_KERNEL:*:*)
1267
	echo neo-tandem-nsk${UNAME_RELEASE}
1268
	exit ;;
1269
    NSE-*:NONSTOP_KERNEL:*:*)
1252 1270
	echo nse-tandem-nsk${UNAME_RELEASE}
1253 1271
	exit ;;
1254 1272
    NSR-?:NONSTOP_KERNEL:*:*)
......
1293 1311
	echo pdp10-unknown-its
1294 1312
	exit ;;
1295 1313
    SEI:*:*:SEIUX)
1296
        echo mips-sei-seiux${UNAME_RELEASE}
1314
	echo mips-sei-seiux${UNAME_RELEASE}
1297 1315
	exit ;;
1298 1316
    *:DragonFly:*:*)
1299 1317
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1300 1318
	exit ;;
1301 1319
    *:*VMS:*:*)
1302
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1320
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1303 1321
	case "${UNAME_MACHINE}" in
1304 1322
	    A*) echo alpha-dec-vms ; exit ;;
1305 1323
	    I*) echo ia64-dec-vms ; exit ;;
......
1314 1332
    i*86:rdos:*:*)
1315 1333
	echo ${UNAME_MACHINE}-pc-rdos
1316 1334
	exit ;;
1335
    i*86:AROS:*:*)
1336
	echo ${UNAME_MACHINE}-pc-aros
1337
	exit ;;
1338
    x86_64:VMkernel:*:*)
1339
	echo ${UNAME_MACHINE}-unknown-esx
1340
	exit ;;
1317 1341
esac
1318 1342

  
1319
#echo '(No uname command or uname output not recognized.)' 1>&2
1320
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1321

  
1322 1343
eval $set_cc_for_build
1323 1344
cat >$dummy.c <<EOF
1324 1345
#ifdef _SEQUENT_
......
1336 1357
#include <sys/param.h>
1337 1358
  printf ("m68k-sony-newsos%s\n",
1338 1359
#ifdef NEWSOS4
1339
          "4"
1360
	"4"
1340 1361
#else
1341
	  ""
1362
	""
1342 1363
#endif
1343
         ); exit (0);
1364
	); exit (0);
1344 1365
#endif
1345 1366
#endif
1346 1367

  
......
1474 1495
the operating system you are using. It is advised that you
1475 1496
download the most up to date version of the config scripts from
1476 1497

  
1477
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1498
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1478 1499
and
1479
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1500
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1480 1501

  
1481 1502
If the version you run ($0) is already up to date, please
1482 1503
send the following data and any information you think might be
sylpheed-3.4.0beta2-aarch64/config.sub 2013-03-03 08:41:03.412101119 -0600
1 1
#! /bin/sh
2 2
# Configuration validation subroutine script.
3 3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5
#   Inc.
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
#   2011, 2012 Free Software Foundation, Inc.
6 6

  
7
timestamp='2007-06-28'
7
timestamp='2012-10-10'
8 8

  
9 9
# This file is (in principle) common to ALL GNU software.
10 10
# The presence of a machine in this file suggests that SOME GNU software
......
21 21
# GNU General Public License for more details.
22 22
#
23 23
# You should have received a copy of the GNU General Public License
24
# along with this program; if not, write to the Free Software
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
# 02110-1301, USA.
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27 25
#
28 26
# As a special exception to the GNU General Public License, if you
29 27
# distribute this file as part of a program that contains a
......
32 30

  
33 31

  
34 32
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
# diff and a properly formatted ChangeLog entry.
33
# diff and a properly formatted GNU ChangeLog entry.
36 34
#
37 35
# Configuration subroutine to validate and canonicalize a configuration type.
38 36
# Supply the specified configuration type as an argument.
39 37
# If it is invalid, we print an error message on stderr and exit with code 1.
40 38
# Otherwise, we print the canonical config type on stdout and succeed.
41 39

  
40
# You can get the latest version of this script from:
41
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
42

  
42 43
# This file is supposed to be the same for all GNU packages
43 44
# and recognize all the CPU types, system types and aliases
44 45
# that are meaningful with *any* GNU software.
......
72 73
version="\
73 74
GNU config.sub ($timestamp)
74 75

  
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
76
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
76 78
Free Software Foundation, Inc.
77 79

  
78 80
This is free software; see the source for copying conditions.  There is NO
......
120 122
# Here we must recognize all the valid KERNEL-OS combinations.
121 123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122 124
case $maybe_os in
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
  knetbsd*-gnu* | netbsd*-gnu* | \
128
  kopensolaris*-gnu* | \
125 129
  storm-chaos* | os2-emx* | rtmk-nova*)
126 130
    os=-$maybe_os
127 131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128 132
    ;;
133
  android-linux)
134
    os=-linux-android
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
136
    ;;
129 137
  *)
130 138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 139
    if [ $basic_machine != $1 ]
......
148 156
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 157
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 158
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
	-apple | -axis | -knuth | -cray)
159
	-apple | -axis | -knuth | -cray | -microblaze*)
152 160
		os=
153 161
		basic_machine=$1
154 162
		;;
163
	-bluegene*)
164
		os=-cnk
165
		;;
155 166
	-sim | -cisco | -oki | -wec | -winbond)
156 167
		os=
157 168
		basic_machine=$1
......
166 177
		os=-chorusos
167 178
		basic_machine=$1
168 179
		;;
169
 	-chorusrdb)
170
 		os=-chorusrdb
180
	-chorusrdb)
181
		os=-chorusrdb
171 182
		basic_machine=$1
172
 		;;
183
		;;
173 184
	-hiux*)
174 185
		os=-hiuxwe2
175 186
		;;
......
214 225
	-isc*)
215 226
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 227
		;;
228
	-lynx*178)
229
		os=-lynxos178
230
		;;
231
	-lynx*5)
232
		os=-lynxos5
233
		;;
217 234
	-lynx*)
218 235
		os=-lynxos
219 236
		;;
......
238 255
	# Some are omitted here because they have special meanings below.
239 256
	1750a | 580 \
240 257
	| a29k \
258
	| aarch64 | aarch64_be \
241 259
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242 260
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243 261
	| am33_2.0 \
244 262
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
263
        | be32 | be64 \
245 264
	| bfin \
246 265
	| c4x | clipper \
247 266
	| d10v | d30v | dlx | dsp16xx \
267
	| epiphany \
248 268
	| fido | fr30 | frv \
249 269
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
270
	| hexagon \
250 271
	| i370 | i860 | i960 | ia64 \
251 272
	| ip2k | iq2000 \
273
	| le32 | le64 \
274
	| lm32 \
252 275
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
253
	| maxq | mb | microblaze | mcore | mep \
276
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
254 277
	| mips | mipsbe | mipseb | mipsel | mipsle \
255 278
	| mips16 \
256 279
	| mips64 | mips64el \
257
	| mips64vr | mips64vrel \
280
	| mips64octeon | mips64octeonel \
258 281
	| mips64orion | mips64orionel \
282
	| mips64r5900 | mips64r5900el \
283
	| mips64vr | mips64vrel \
259 284
	| mips64vr4100 | mips64vr4100el \
260 285
	| mips64vr4300 | mips64vr4300el \
261 286
	| mips64vr5000 | mips64vr5000el \
......
268 293
	| mipsisa64sr71k | mipsisa64sr71kel \
269 294
	| mipstx39 | mipstx39el \
270 295
	| mn10200 | mn10300 \
296
	| moxie \
271 297
	| mt \
272 298
	| msp430 \
299
	| nds32 | nds32le | nds32be \
273 300
	| nios | nios2 \
274 301
	| ns16k | ns32k \
302
	| open8 \
275 303
	| or32 \
276 304
	| pdp10 | pdp11 | pj | pjl \
277
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
305
	| powerpc | powerpc64 | powerpc64le | powerpcle \
278 306
	| pyramid \
307
	| rl78 | rx \
279 308
	| score \
280
	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
309
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281 310
	| sh64 | sh64le \
282 311
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283 312
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
	| spu | strongarm \
285
	| tahoe | thumb | tic4x | tic80 | tron \
286
	| v850 | v850e \
313
	| spu \
314
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
315
	| ubicom32 \
316
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
287 317
	| we32k \
288
	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289
	| z8k)
318
	| x86 | xc16x | xstormy16 | xtensa \
319
	| z8k | z80)
290 320
		basic_machine=$basic_machine-unknown
291 321
		;;
292
	m6811 | m68hc11 | m6812 | m68hc12)
293
		# Motorola 68HC11/12.
322
	c54x)
323
		basic_machine=tic54x-unknown
324
		;;
325
	c55x)
326
		basic_machine=tic55x-unknown
327
		;;
328
	c6x)
329
		basic_machine=tic6x-unknown
330
		;;
331
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
294 332
		basic_machine=$basic_machine-unknown
295 333
		os=-none
296 334
		;;
......
300 338
		basic_machine=mt-unknown
301 339
		;;
302 340

  
341
	strongarm | thumb | xscale)
342
		basic_machine=arm-unknown
343
		;;
344
	xgate)
345
		basic_machine=$basic_machine-unknown
346
		os=-none
347
		;;
348
	xscaleeb)
349
		basic_machine=armeb-unknown
350
		;;
351

  
352
	xscaleel)
353
		basic_machine=armel-unknown
354
		;;
355

  
303 356
	# We use `pc' rather than `unknown'
304 357
	# because (1) that's what they normally are, and
305 358
	# (2) the word "unknown" tends to confuse beginning users.
......
314 367
	# Recognize the basic CPU types with company name.
315 368
	580-* \
316 369
	| a29k-* \
370
	| aarch64-* | aarch64_be-* \
317 371
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318 372
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319 373
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320 374
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
321 375
	| avr-* | avr32-* \
376
	| be32-* | be64-* \
322 377
	| bfin-* | bs2000-* \
323
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
378
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
324 379
	| clipper-* | craynv-* | cydra-* \
325 380
	| d10v-* | d30v-* | dlx-* \
326 381
	| elxsi-* \
327 382
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
328 383
	| h8300-* | h8500-* \
329 384
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
385
	| hexagon-* \
330 386
	| i*86-* | i860-* | i960-* | ia64-* \
331 387
	| ip2k-* | iq2000-* \
388
	| le32-* | le64-* \
389
	| lm32-* \
332 390
	| m32c-* | m32r-* | m32rle-* \
333 391
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334
	| m88110-* | m88k-* | maxq-* | mcore-* \
392
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
393
	| microblaze-* | microblazeel-* \
335 394
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336 395
	| mips16-* \
337 396
	| mips64-* | mips64el-* \
338
	| mips64vr-* | mips64vrel-* \
397
	| mips64octeon-* | mips64octeonel-* \
339 398
	| mips64orion-* | mips64orionel-* \
399
	| mips64r5900-* | mips64r5900el-* \
400
	| mips64vr-* | mips64vrel-* \
340 401
	| mips64vr4100-* | mips64vr4100el-* \
341 402
	| mips64vr4300-* | mips64vr4300el-* \
342 403
	| mips64vr5000-* | mips64vr5000el-* \
......
351 412
	| mmix-* \
352 413
	| mt-* \
353 414
	| msp430-* \
415
	| nds32-* | nds32le-* | nds32be-* \
354 416
	| nios-* | nios2-* \
355 417
	| none-* | np1-* | ns16k-* | ns32k-* \
418
	| open8-* \
356 419
	| orion-* \
357 420
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
421
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
359 422
	| pyramid-* \
360
	| romp-* | rs6000-* \
361
	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
423
	| rl78-* | romp-* | rs6000-* | rx-* \
424
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362 425
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363 426
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364 427
	| sparclite-* \
365
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366
	| tahoe-* | thumb-* \
428
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
429
	| tahoe-* \
367 430
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
431
	| tile*-* \
368 432
	| tron-* \
369
	| v850-* | v850e-* | vax-* \
433
	| ubicom32-* \
434
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
435
	| vax-* \
370 436
	| we32k-* \
371
	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
	| xstormy16-* | xtensa-* \
437
	| x86-* | x86_64-* | xc16x-* | xps100-* \
438
	| xstormy16-* | xtensa*-* \
373 439
	| ymp-* \
374
	| z8k-*)
440
	| z8k-* | z80-*)
441
		;;
442
	# Recognize the basic CPU types without company name, with glob match.
443
	xtensa*)
444
		basic_machine=$basic_machine-unknown
375 445
		;;
376 446
	# Recognize the various machine names and aliases which stand
377 447
	# for a CPU type and a company and sometimes even an OS.
......
389 459
		basic_machine=a29k-amd
390 460
		os=-udi
391 461
		;;
392
    	abacus)
462
	abacus)
393 463
		basic_machine=abacus-unknown
394 464
		;;
395 465
	adobe68k)
......
435 505
		basic_machine=m68k-apollo
436 506
		os=-bsd
437 507
		;;
508
	aros)
509
		basic_machine=i386-pc
510
		os=-aros
511
		;;
438 512
	aux)
439 513
		basic_machine=m68k-apple
440 514
		os=-aux
......
443 517
		basic_machine=ns32k-sequent
444 518
		os=-dynix
445 519
		;;
520
	blackfin)
521
		basic_machine=bfin-unknown
522
		os=-linux
523
		;;
524
	blackfin-*)
525
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
526
		os=-linux
527
		;;
528
	bluegene*)
529
		basic_machine=powerpc-ibm
530
		os=-cnk
531
		;;
532
	c54x-*)
533
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
534
		;;
535
	c55x-*)
536
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
537
		;;
538
	c6x-*)
539
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
540
		;;
446 541
	c90)
447 542
		basic_machine=c90-cray
448 543
		os=-unicos
449 544
		;;
545
	cegcc)
546
		basic_machine=arm-unknown
547
		os=-cegcc
548
		;;
450 549
	convex-c1)
451 550
		basic_machine=c1-convex
452 551
		os=-bsd
......
475 574
		basic_machine=craynv-cray
476 575
		os=-unicosmp
477 576
		;;
478
	cr16)
577
	cr16 | cr16-*)
479 578
		basic_machine=cr16-unknown
480 579
		os=-elf
481 580
		;;
......
514 613
		basic_machine=m88k-motorola
515 614
		os=-sysv3
516 615
		;;
616
	dicos)
617
		basic_machine=i686-pc
618
		os=-dicos
619
		;;
517 620
	djgpp)
518 621
		basic_machine=i586-pc
519 622
		os=-msdosdjgpp
......
629 732
	i370-ibm* | ibm*)
630 733
		basic_machine=i370-ibm
631 734
		;;
632
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
633 735
	i*86v32)
634 736
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
635 737
		os=-sysv32
......
668 770
		basic_machine=m68k-isi
669 771
		os=-sysv
670 772
		;;
773
	m68knommu)
774
		basic_machine=m68k-unknown
775
		os=-linux
776
		;;
777
	m68knommu-*)
778
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
779
		os=-linux
780
		;;
671 781
	m88k-omron*)
672 782
		basic_machine=m88k-omron
673 783
		;;
......
679 789
		basic_machine=ns32k-utek
680 790
		os=-sysv
681 791
		;;
792
	microblaze*)
793
		basic_machine=microblaze-xilinx
794
		;;
795
	mingw64)
796
		basic_machine=x86_64-pc
797
		os=-mingw64
798
		;;
682 799
	mingw32)
683 800
		basic_machine=i386-pc
684 801
		os=-mingw32
......
715 832
	ms1-*)
716 833
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
717 834
		;;
835
	msys)
836
		basic_machine=i386-pc
837
		os=-msys
838
		;;
718 839
	mvs)
719 840
		basic_machine=i370-ibm
720 841
		os=-mvs
721 842
		;;
843
	nacl)
844
		basic_machine=le32-unknown
845
		os=-nacl
846
		;;
722 847
	ncr3000)
723 848
		basic_machine=i486-ncr
724 849
		os=-sysv4
......
783 908
	np1)
784 909
		basic_machine=np1-gould
785 910
		;;
911
	neo-tandem)
912
		basic_machine=neo-tandem
913
		;;
914
	nse-tandem)
915
		basic_machine=nse-tandem
916
		;;
786 917
	nsr-tandem)
787 918
		basic_machine=nsr-tandem
788 919
		;;
......
813 944
		basic_machine=i860-intel
814 945
		os=-osf
815 946
		;;
947
	parisc)
948
		basic_machine=hppa-unknown
949
		os=-linux
950
		;;
951
	parisc-*)
952
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
953
		os=-linux
954
		;;
816 955
	pbd)
817 956
		basic_machine=sparc-tti
818 957
		;;
......
857 996
		;;
858 997
	power)	basic_machine=power-ibm
859 998
		;;
860
	ppc)	basic_machine=powerpc-unknown
999
	ppc | ppcbe)	basic_machine=powerpc-unknown
861 1000
		;;
862
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1001
	ppc-* | ppcbe-*)
1002
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
863 1003
		;;
864 1004
	ppcle | powerpclittle | ppc-le | powerpc-little)
865 1005
		basic_machine=powerpcle-unknown
......
953 1093
		basic_machine=i860-stratus
954 1094
		os=-sysv4
955 1095
		;;
1096
	strongarm-* | thumb-*)
1097
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1098
		;;
956 1099
	sun2)
957 1100
		basic_machine=m68000-sun
958 1101
		;;
......
1009 1152
		basic_machine=t90-cray
1010 1153
		os=-unicos
1011 1154
		;;
1012
	tic54x | c54x*)
1013
		basic_machine=tic54x-unknown
1014
		os=-coff
1015
		;;
1016
	tic55x | c55x*)
1017
		basic_machine=tic55x-unknown
1018
		os=-coff
1019
		;;
1020
	tic6x | c6x*)
1021
		basic_machine=tic6x-unknown
1022
		os=-coff
1155
	tile*)
1156
		basic_machine=$basic_machine-unknown
1157
		os=-linux-gnu
1023 1158
		;;
1024 1159
	tx39)
1025 1160
		basic_machine=mipstx39-unknown
......
1088 1223
	xps | xps100)
1089 1224
		basic_machine=xps100-honeywell
1090 1225
		;;
1226
	xscale-* | xscalee[bl]-*)
1227
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1228
		;;
1091 1229
	ymp)
1092 1230
		basic_machine=ymp-cray
1093 1231
		os=-unicos
......
1096 1234
		basic_machine=z8k-unknown
1097 1235
		os=-sim
1098 1236
		;;
1237
	z80-*-coff)
1238
		basic_machine=z80-unknown
1239
		os=-sim
1240
		;;
1099 1241
	none)
1100 1242
		basic_machine=none-none
1101 1243
		os=-none
......
1134 1276
	we32k)
1135 1277
		basic_machine=we32k-att
1136 1278
		;;
1137
	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1279
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1138 1280
		basic_machine=sh-unknown
1139 1281
		;;
1140 1282
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
......
1181 1323
if [ x"$os" != x"" ]
1182 1324
then
1183 1325
case $os in
1184
        # First match some system type aliases
1185
        # that might get confused with valid system types.
1326
	# First match some system type aliases
1327
	# that might get confused with valid system types.
1186 1328
	# -solaris* is a basic system type, with this one exception.
1329
	-auroraux)
1330
		os=-auroraux
1331
		;;
1187 1332
	-solaris1 | -solaris1.*)
1188 1333
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
1189 1334
		;;
......
1204 1349
	# Each alternative MUST END IN A *, to match a version number.
1205 1350
	# -sysv* is not here because it comes later, after sysvr4.
1206 1351
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1207
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1208
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1352
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1353
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1354
	      | -sym* | -kopensolaris* \
1209 1355
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1210
	      | -aos* \
1356
	      | -aos* | -aros* \
... This diff was truncated because it exceeds the maximum size that can be displayed.