~ubuntu-branches/debian/stretch/uswsusp/stretch

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Rodolfo García Peñas (kix), Rodolfo García Peñas (kix), Closes: #552484, #576803, #528483, Closes: #495111, #595125, #486352, #433872, #590233, Closes: #550725, #549118, Closes: #437094, #586674, #547158, #567604, Closes: #520705, Anibal Monsalve Salazar
  • Date: 2011-03-14 08:26:16 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110314082616-7mjcl6tfzsv22arm
Tags: 1.0-1
[ Rodolfo García Peñas (kix) ]
* New 1.0 version [Closes: #589743, #578496, #617534]
* A lot of new machines. 
  [Closes: #552484, #576803, #528483] 
  [Closes: #495111, #595125, #486352, #433872, #590233] 
* A new length for addressing 
  [Closes: #550725, #549118]
  (http://lkml.org/lkml/2009/11/3/377)
* Support for Kernel Mode Set (KMS) 
  [Closes: #437094, #586674, #547158, #567604]
* Switch to dpkg-source 3.0 (quilt) format
* Compiled without splash support. 
  libsplash is not included in stable, many bugs.
* Moved the manpage file "suspend.conf.8" to manual section 5.
  [Closes: #520705]

[ Anibal Monsalve Salazar ]
* Update uploaders list

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-07-02'
 
7
timestamp='2009-11-20'
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
27
27
# the same distribution terms that you use for the rest of that program.
28
28
 
29
29
 
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.
 
30
# Originally written by Per Bothner.  Please send patches (context
 
31
# diff format) to <config-patches@gnu.org> and include a ChangeLog
 
32
# entry.
33
33
#
34
34
# This script attempts to guess a canonical system name similar to
35
35
# config.sub.  If it succeeds, it prints the system name on stdout, and
36
36
# exits with 0.  Otherwise, it exits with 1.
37
37
#
38
 
# The plan is that this can be called by configure scripts if you
39
 
# don't specify an explicit build system type.
 
38
# You can get the latest version of this script from:
 
39
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40
40
 
41
41
me=`echo "$0" | sed -e 's,.*/,,'`
42
42
 
56
56
GNU config.guess ($timestamp)
57
57
 
58
58
Originally written by Per Bothner.
59
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
60
 
Free Software Foundation, Inc.
 
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61
61
 
62
62
This is free software; see the source for copying conditions.  There is NO
63
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
171
171
            arm*) machine=arm-unknown ;;
172
172
            sh3el) machine=shl-unknown ;;
173
173
            sh3eb) machine=sh-unknown ;;
 
174
            sh5el) machine=sh5le-unknown ;;
174
175
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
175
176
        esac
176
177
        # The Operating System including object format, if it has switched
179
180
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
180
181
                eval $set_cc_for_build
181
182
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
182
 
                        | grep __ELF__ >/dev/null
 
183
                        | grep -q __ELF__
183
184
                then
184
185
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
185
186
                    # Return netbsd for either.  FIX?
212
213
        exit ;;
213
214
    *:OpenBSD:*:*)
214
215
        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
215
 
        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
 
216
        echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
216
217
        exit ;;
217
218
    *:ekkoBSD:*:*)
218
 
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
 
219
        echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
219
220
        exit ;;
220
221
    *:SolidBSD:*:*)
221
 
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
 
222
        echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
222
223
        exit ;;
223
224
    macppc:MirBSD:*:*)
224
 
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
225
        echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
225
226
        exit ;;
226
227
    *:MirBSD:*:*)
227
 
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
 
228
        echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
228
229
        exit ;;
229
230
    alpha:OSF1:*:*)
230
231
        case $UNAME_RELEASE in
289
290
        echo alpha-dec-winnt3.5
290
291
        exit ;;
291
292
    Amiga*:UNIX_System_V:4.0:*)
292
 
        echo m68k-unknown-sysv4
 
293
        echo m68k-${VENDOR}-sysv4
293
294
        exit ;;
294
295
    *:[Aa]miga[Oo][Ss]:*:*)
295
 
        echo ${UNAME_MACHINE}-unknown-amigaos
 
296
        echo ${UNAME_MACHINE}-${VENDOR}-amigaos
296
297
        exit ;;
297
298
    *:[Mm]orph[Oo][Ss]:*:*)
298
 
        echo ${UNAME_MACHINE}-unknown-morphos
 
299
        echo ${UNAME_MACHINE}-${VENDOR}-morphos
299
300
        exit ;;
300
301
    *:OS/390:*:*)
301
302
        echo i370-ibm-openedition
310
311
        echo arm-acorn-riscix${UNAME_RELEASE}
311
312
        exit ;;
312
313
    arm:riscos:*:*|arm:RISCOS:*:*)
313
 
        echo arm-unknown-riscos
 
314
        echo arm-${VENDOR}-riscos
314
315
        exit ;;
315
316
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
316
317
        echo hppa1.1-hitachi-hiuxmpp
333
334
        case `/usr/bin/uname -p` in
334
335
            sparc) echo sparc-icl-nx7; exit ;;
335
336
        esac ;;
 
337
    s390x:SunOS:*:*)
 
338
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
339
        exit ;;
336
340
    sun4H:SunOS:5.*:*)
337
341
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
338
342
        exit ;;
339
343
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
340
344
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
341
345
        exit ;;
342
 
    i86pc:SunOS:5.*:*)
343
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
346
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
347
        echo i386-pc-auroraux${UNAME_RELEASE}
 
348
        exit ;;
 
349
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
350
        eval $set_cc_for_build
 
351
        SUN_ARCH="i386"
 
352
        # If there is a compiler, see if it is configured for 64-bit objects.
 
353
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
354
        # This test works for both compilers.
 
355
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
356
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
357
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
358
                grep IS_64BIT_ARCH >/dev/null
 
359
            then
 
360
                SUN_ARCH="x86_64"
 
361
            fi
 
362
        fi
 
363
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
344
364
        exit ;;
345
365
    sun4*:SunOS:6*:*)
346
366
        # According to config.sub, this is the proper way to canonicalize
399
419
        echo m68k-hades-mint${UNAME_RELEASE}
400
420
        exit ;;
401
421
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
402
 
        echo m68k-unknown-mint${UNAME_RELEASE}
 
422
        echo m68k-${VENDOR}-mint${UNAME_RELEASE}
403
423
        exit ;;
404
424
    m68k:machten:*:*)
405
425
        echo m68k-apple-machten${UNAME_RELEASE}
541
561
                echo rs6000-ibm-aix3.2
542
562
        fi
543
563
        exit ;;
544
 
    *:AIX:*:[45])
 
564
    *:AIX:*:[456])
545
565
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
546
566
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
547
567
                IBM_ARCH=rs6000
649
669
            # => hppa64-hp-hpux11.23
650
670
 
651
671
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
652
 
                grep __LP64__ >/dev/null
 
672
                grep -q __LP64__
653
673
            then
654
674
                HP_ARCH="hppa2.0w"
655
675
            else
710
730
        exit ;;
711
731
    i*86:OSF1:*:*)
712
732
        if [ -x /usr/sbin/sysversion ] ; then
713
 
            echo ${UNAME_MACHINE}-unknown-osf1mk
 
733
            echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
714
734
        else
715
 
            echo ${UNAME_MACHINE}-unknown-osf1
 
735
            echo ${UNAME_MACHINE}-${VENDOR}-osf1
716
736
        fi
717
737
        exit ;;
718
738
    parisc*:Lites*:*:*)
772
792
        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
773
793
        exit ;;
774
794
    sparc*:BSD/OS:*:*)
775
 
        echo sparc-unknown-bsdi${UNAME_RELEASE}
 
795
        echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
776
796
        exit ;;
777
797
    *:BSD/OS:*:*)
778
 
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
 
798
        echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
779
799
        exit ;;
780
800
    *:FreeBSD:*:*)
781
801
        case ${UNAME_MACHINE} in
782
802
            pc98)
783
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
803
                echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
784
804
            amd64)
785
 
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
805
                echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
786
806
            *)
787
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
 
807
                echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
788
808
        esac
789
809
        exit ;;
790
810
    i*:CYGWIN*:*)
791
811
        echo ${UNAME_MACHINE}-pc-cygwin
792
812
        exit ;;
793
 
    i*:MINGW*:*)
 
813
    *:MINGW*:*)
794
814
        echo ${UNAME_MACHINE}-pc-mingw32
795
815
        exit ;;
796
816
    i*:windows32*:*)
800
820
    i*:PW*:*)
801
821
        echo ${UNAME_MACHINE}-pc-pw32
802
822
        exit ;;
803
 
    x86:Interix*:[3456]*)
804
 
        echo i586-pc-interix${UNAME_RELEASE}
805
 
        exit ;;
806
 
    EM64T:Interix*:[3456]*)
807
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
808
 
        exit ;;
 
823
    *:Interix*:*)
 
824
        case ${UNAME_MACHINE} in
 
825
            x86)
 
826
                echo i586-pc-interix${UNAME_RELEASE}
 
827
                exit ;;
 
828
            authenticamd | genuineintel | EM64T)
 
829
                echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
 
830
                exit ;;
 
831
            IA64)
 
832
                echo ia64-${VENDOR}-interix${UNAME_RELEASE}
 
833
                exit ;;
 
834
        esac ;;
809
835
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
810
836
        echo i${UNAME_MACHINE}-pc-mks
811
837
        exit ;;
 
838
    8664:Windows_NT:*)
 
839
        echo x86_64-pc-mks
 
840
        exit ;;
812
841
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
813
842
        # How do we know it's Interix rather than the generic POSIX subsystem?
814
843
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
819
848
        echo ${UNAME_MACHINE}-pc-uwin
820
849
        exit ;;
821
850
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
822
 
        echo x86_64-unknown-cygwin
 
851
        echo x86_64-${VENDOR}-cygwin
823
852
        exit ;;
824
853
    p*:CYGWIN*:*)
825
 
        echo powerpcle-unknown-cygwin
 
854
        echo powerpcle-${VENDOR}-cygwin
826
855
        exit ;;
827
856
    prep*:SunOS:5.*:*)
828
 
        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
857
        echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
829
858
        exit ;;
830
859
    *:GNU:*:*)
831
860
        # the GNU system
832
 
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
 
861
        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
833
862
        exit ;;
834
863
    *:GNU/*:*:*)
835
864
        # other systems with GNU libc and userland
836
 
        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
 
865
        echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
837
866
        exit ;;
838
867
    i*86:Minix:*:*)
839
868
        echo ${UNAME_MACHINE}-pc-minix
840
869
        exit ;;
 
870
    alpha:Linux:*:*)
 
871
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
 
872
          EV5)   UNAME_MACHINE=alphaev5 ;;
 
873
          EV56)  UNAME_MACHINE=alphaev56 ;;
 
874
          PCA56) UNAME_MACHINE=alphapca56 ;;
 
875
          PCA57) UNAME_MACHINE=alphapca56 ;;
 
876
          EV6)   UNAME_MACHINE=alphaev6 ;;
 
877
          EV67)  UNAME_MACHINE=alphaev67 ;;
 
878
          EV68*) UNAME_MACHINE=alphaev68 ;;
 
879
        esac
 
880
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
881
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
882
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
883
        exit ;;
841
884
    arm*:Linux:*:*)
842
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
885
        eval $set_cc_for_build
 
886
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
887
            | grep -q __ARM_EABI__
 
888
        then
 
889
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
890
        else
 
891
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
892
        fi
843
893
        exit ;;
844
894
    avr32*:Linux:*:*)
845
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
895
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
846
896
        exit ;;
847
897
    cris:Linux:*:*)
848
898
        echo cris-axis-linux-gnu
853
903
    frv:Linux:*:*)
854
904
        echo frv-${VENDOR}-linux-gnu
855
905
        exit ;;
 
906
    i*86:Linux:*:*)
 
907
        LIBC=gnu
 
908
        eval $set_cc_for_build
 
909
        sed 's/^        //' << EOF >$dummy.c
 
910
        #ifdef __dietlibc__
 
911
        LIBC=dietlibc
 
912
        #endif
 
913
EOF
 
914
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
 
915
        echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
 
916
        exit ;;
856
917
    ia64:Linux:*:*)
857
918
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
858
919
        exit ;;
862
923
    m68*:Linux:*:*)
863
924
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
864
925
        exit ;;
865
 
    mips:Linux:*:*)
866
 
        eval $set_cc_for_build
867
 
        sed 's/^        //' << EOF >$dummy.c
868
 
        #undef CPU
869
 
        #undef mips
870
 
        #undef mipsel
871
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
872
 
        CPU=mipsel
873
 
        #else
874
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
875
 
        CPU=mips
876
 
        #else
877
 
        CPU=
878
 
        #endif
879
 
        #endif
880
 
EOF
881
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
882
 
            /^CPU/{
883
 
                s: ::g
884
 
                p
885
 
            }'`"
886
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
887
 
        ;;
888
 
    mips64:Linux:*:*)
889
 
        eval $set_cc_for_build
890
 
        sed 's/^        //' << EOF >$dummy.c
891
 
        #undef CPU
892
 
        #undef mips64
893
 
        #undef mips64el
894
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
895
 
        CPU=mips64el
896
 
        #else
897
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
898
 
        CPU=mips64
899
 
        #else
900
 
        CPU=
901
 
        #endif
902
 
        #endif
903
 
EOF
904
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
905
 
            /^CPU/{
906
 
                s: ::g
907
 
                p
908
 
            }'`"
 
926
    mips:Linux:*:* | mips64:Linux:*:*)
 
927
        eval $set_cc_for_build
 
928
        sed 's/^        //' << EOF >$dummy.c
 
929
        #undef CPU
 
930
        #undef ${UNAME_MACHINE}
 
931
        #undef ${UNAME_MACHINE}el
 
932
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
933
        CPU=${UNAME_MACHINE}el
 
934
        #else
 
935
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
936
        CPU=${UNAME_MACHINE}
 
937
        #else
 
938
        CPU=
 
939
        #endif
 
940
        #endif
 
941
EOF
 
942
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
909
943
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
910
944
        ;;
911
945
    or32:Linux:*:*)
912
946
        echo or32-${VENDOR}-linux-gnu
913
947
        exit ;;
914
 
    ppc:Linux:*:*)
915
 
        echo powerpc-${VENDOR}-linux-gnu
916
 
        exit ;;
917
 
    ppc64:Linux:*:*)
918
 
        echo powerpc64-${VENDOR}-linux-gnu
919
 
        exit ;;
920
 
    alpha:Linux:*:*)
921
 
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
922
 
          EV5)   UNAME_MACHINE=alphaev5 ;;
923
 
          EV56)  UNAME_MACHINE=alphaev56 ;;
924
 
          PCA56) UNAME_MACHINE=alphapca56 ;;
925
 
          PCA57) UNAME_MACHINE=alphapca56 ;;
926
 
          EV6)   UNAME_MACHINE=alphaev6 ;;
927
 
          EV67)  UNAME_MACHINE=alphaev67 ;;
928
 
          EV68*) UNAME_MACHINE=alphaev68 ;;
929
 
        esac
930
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
931
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
932
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
948
    padre:Linux:*:*)
 
949
        echo sparc-${VENDOR}-linux-gnu
 
950
        exit ;;
 
951
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
952
        echo hppa64-${VENDOR}-linux-gnu
933
953
        exit ;;
934
954
    parisc:Linux:*:* | hppa:Linux:*:*)
935
955
        # Look for CPU level
939
959
          *)    echo hppa-${VENDOR}-linux-gnu ;;
940
960
        esac
941
961
        exit ;;
942
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
943
 
        echo hppa64-${VENDOR}-linux-gnu
 
962
    ppc64:Linux:*:*)
 
963
        echo powerpc64-${VENDOR}-linux-gnu
 
964
        exit ;;
 
965
    ppc:Linux:*:*)
 
966
        echo powerpc-${VENDOR}-linux-gnu
944
967
        exit ;;
945
968
    s390:Linux:*:* | s390x:Linux:*:*)
946
969
        echo ${UNAME_MACHINE}-ibm-linux
960
983
    x86_64:Linux:*:*)
961
984
        echo x86_64-${VENDOR}-linux-gnu
962
985
        exit ;;
963
 
    i*86:Linux:*:*)
964
 
        # The BFD linker knows what the default object file format is, so
965
 
        # first see if it will tell us. cd to the root directory to prevent
966
 
        # problems with other programs or directories called `ld' in the path.
967
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
968
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
969
 
                         | sed -ne '/supported targets:/!d
970
 
                                    s/[         ][      ]*/ /g
971
 
                                    s/.*supported targets: *//
972
 
                                    s/ .*//
973
 
                                    p'`
974
 
        case "$ld_supported_targets" in
975
 
          elf32-i386)
976
 
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
977
 
                ;;
978
 
          a.out-i386-linux)
979
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
980
 
                exit ;;
981
 
          coff-i386)
982
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
983
 
                exit ;;
984
 
          "")
985
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
986
 
                # one that does not give us useful --help.
987
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
988
 
                exit ;;
989
 
        esac
990
 
        # Determine whether the default compiler is a.out or elf
991
 
        eval $set_cc_for_build
992
 
        sed 's/^        //' << EOF >$dummy.c
993
 
        #include <features.h>
994
 
        #ifdef __ELF__
995
 
        # ifdef __GLIBC__
996
 
        #  if __GLIBC__ >= 2
997
 
        LIBC=gnu
998
 
        #  else
999
 
        LIBC=gnulibc1
1000
 
        #  endif
1001
 
        # else
1002
 
        LIBC=gnulibc1
1003
 
        # endif
1004
 
        #else
1005
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1006
 
        LIBC=gnu
1007
 
        #else
1008
 
        LIBC=gnuaout
1009
 
        #endif
1010
 
        #endif
1011
 
        #ifdef __dietlibc__
1012
 
        LIBC=dietlibc
1013
 
        #endif
1014
 
EOF
1015
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1016
 
            /^LIBC/{
1017
 
                s: ::g
1018
 
                p
1019
 
            }'`"
1020
 
        test x"${LIBC}" != x && {
1021
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
1022
 
                exit
1023
 
        }
1024
 
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1025
 
        ;;
 
986
    xtensa*:Linux:*:*)
 
987
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
988
        exit ;;
1026
989
    i*86:DYNIX/ptx:4*:*)
1027
990
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1028
991
        # earlier versions are messed up and put the nodename in both
1043
1006
        echo ${UNAME_MACHINE}-pc-os2-emx
1044
1007
        exit ;;
1045
1008
    i*86:XTS-300:*:STOP)
1046
 
        echo ${UNAME_MACHINE}-unknown-stop
 
1009
        echo ${UNAME_MACHINE}-${VENDOR}-stop
1047
1010
        exit ;;
1048
1011
    i*86:atheos:*:*)
1049
 
        echo ${UNAME_MACHINE}-unknown-atheos
 
1012
        echo ${UNAME_MACHINE}-${VENDOR}-atheos
1050
1013
        exit ;;
1051
1014
    i*86:syllable:*:*)
1052
1015
        echo ${UNAME_MACHINE}-pc-syllable
1053
1016
        exit ;;
1054
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1055
 
        echo i386-unknown-lynxos${UNAME_RELEASE}
 
1017
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1018
        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
1056
1019
        exit ;;
1057
1020
    i*86:*DOS:*:*)
1058
1021
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
1072
1035
            *Pentium)        UNAME_MACHINE=i586 ;;
1073
1036
            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1074
1037
        esac
1075
 
        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
 
1038
        echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1076
1039
        exit ;;
1077
1040
    i*86:*:3.2:*)
1078
1041
        if test -f /usr/options/cb.name; then
1095
1058
    pc:*:*:*)
1096
1059
        # Left here for compatibility:
1097
1060
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1098
 
        # the processor, so we play safe by assuming i386.
1099
 
        echo i386-pc-msdosdjgpp
 
1061
        # the processor, so we play safe by assuming i586.
 
1062
        # Note: whatever this is, it MUST be the same as what config.sub
 
1063
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1064
        # this is a cross-build.
 
1065
        echo i586-pc-msdosdjgpp
1100
1066
        exit ;;
1101
1067
    Intel:Mach:3*:*)
1102
1068
        echo i386-pc-mach3
1108
1074
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1109
1075
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1110
1076
        else # Add other i860-SVR4 vendors below as they are discovered.
1111
 
          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1077
          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1112
1078
        fi
1113
1079
        exit ;;
1114
1080
    mini*:CTIX:SYS*5:*)
1134
1100
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1135
1101
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1136
1102
          && { echo i486-ncr-sysv4; exit; } ;;
 
1103
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1104
        OS_REL='.3'
 
1105
        test -r /etc/.relid \
 
1106
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1107
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1108
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1109
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1110
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1111
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1112
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1137
1113
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1138
 
        echo m68k-unknown-lynxos${UNAME_RELEASE}
 
1114
        echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1139
1115
        exit ;;
1140
1116
    mc68030:UNIX_System_V:4.*:*)
1141
1117
        echo m68k-atari-sysv4
1142
1118
        exit ;;
1143
1119
    TSUNAMI:LynxOS:2.*:*)
1144
 
        echo sparc-unknown-lynxos${UNAME_RELEASE}
 
1120
        echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1145
1121
        exit ;;
1146
1122
    rs6000:LynxOS:2.*:*)
1147
 
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
 
1123
        echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1148
1124
        exit ;;
1149
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1150
 
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
 
1125
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
 
1126
        echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1151
1127
        exit ;;
1152
1128
    SM[BE]S:UNIX_SV:*:*)
1153
1129
        echo mips-dde-sysv${UNAME_RELEASE}
1197
1173
        if [ -d /usr/nec ]; then
1198
1174
                echo mips-nec-sysv${UNAME_RELEASE}
1199
1175
        else
1200
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1176
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1201
1177
        fi
1202
1178
        exit ;;
1203
1179
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1209
1185
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1210
1186
        echo i586-pc-beos
1211
1187
        exit ;;
 
1188
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1189
        echo i586-pc-haiku
 
1190
        exit ;;
1212
1191
    SX-4:SUPER-UX:*:*)
1213
1192
        echo sx4-nec-superux${UNAME_RELEASE}
1214
1193
        exit ;;
1218
1197
    SX-6:SUPER-UX:*:*)
1219
1198
        echo sx6-nec-superux${UNAME_RELEASE}
1220
1199
        exit ;;
 
1200
    SX-7:SUPER-UX:*:*)
 
1201
        echo sx7-nec-superux${UNAME_RELEASE}
 
1202
        exit ;;
 
1203
    SX-8:SUPER-UX:*:*)
 
1204
        echo sx8-nec-superux${UNAME_RELEASE}
 
1205
        exit ;;
 
1206
    SX-8R:SUPER-UX:*:*)
 
1207
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1208
        exit ;;
1221
1209
    Power*:Rhapsody:*:*)
1222
1210
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1223
1211
        exit ;;
1227
1215
    *:Darwin:*:*)
1228
1216
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1229
1217
        case $UNAME_PROCESSOR in
 
1218
            i386)
 
1219
                eval $set_cc_for_build
 
1220
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1221
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1222
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1223
                      grep IS_64BIT_ARCH >/dev/null
 
1224
                  then
 
1225
                      UNAME_PROCESSOR="x86_64"
 
1226
                  fi
 
1227
                fi ;;
1230
1228
            unknown) UNAME_PROCESSOR=powerpc ;;
1231
1229
        esac
1232
1230
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1266
1264
        else
1267
1265
            UNAME_MACHINE="$cputype"
1268
1266
        fi
1269
 
        echo ${UNAME_MACHINE}-unknown-plan9
 
1267
        echo ${UNAME_MACHINE}-${VENDOR}-plan9
1270
1268
        exit ;;
1271
1269
    *:TOPS-10:*:*)
1272
 
        echo pdp10-unknown-tops10
 
1270
        echo pdp10-${VENDOR}-tops10
1273
1271
        exit ;;
1274
1272
    *:TENEX:*:*)
1275
 
        echo pdp10-unknown-tenex
 
1273
        echo pdp10-${VENDOR}-tenex
1276
1274
        exit ;;
1277
1275
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1278
1276
        echo pdp10-dec-tops20
1281
1279
        echo pdp10-xkl-tops20
1282
1280
        exit ;;
1283
1281
    *:TOPS-20:*:*)
1284
 
        echo pdp10-unknown-tops20
 
1282
        echo pdp10-${VENDOR}-tops20
1285
1283
        exit ;;
1286
1284
    *:ITS:*:*)
1287
 
        echo pdp10-unknown-its
 
1285
        echo pdp10-${VENDOR}-its
1288
1286
        exit ;;
1289
1287
    SEI:*:*:SEIUX)
1290
1288
        echo mips-sei-seiux${UNAME_RELEASE}
1291
1289
        exit ;;
1292
1290
    *:DragonFly:*:*)
1293
 
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1291
        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1294
1292
        exit ;;
1295
1293
    *:*VMS:*:*)
1296
1294
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1308
1306
    i*86:rdos:*:*)
1309
1307
        echo ${UNAME_MACHINE}-pc-rdos
1310
1308
        exit ;;
 
1309
    i*86:AROS:*:*)
 
1310
        echo ${UNAME_MACHINE}-pc-aros
 
1311
        exit ;;
1311
1312
esac
1312
1313
 
1313
1314
#echo '(No uname command or uname output not recognized.)' 1>&2
1468
1469
the operating system you are using. It is advised that you
1469
1470
download the most up to date version of the config scripts from
1470
1471
 
1471
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1472
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1472
1473
and
1473
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1474
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1474
1475
 
1475
1476
If the version you run ($0) is already up to date, please
1476
1477
send the following data and any information you think might be