~ubuntu-branches/ubuntu/trusty/meanwhile/trusty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Chris Vanden Berghe
  • Date: 2011-05-29 19:02:58 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110529190258-g0wmmktoy2t0osgz
Tags: 1.0.2-4
* null dependency_libs from .la files (closes: #619210)
* added homepage control field (closes: #615295,#615386)
* fixed some Lintian bugs and bumped up standards version 

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, 2007, 2008, 2009, 2010
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6
5
 
7
 
timestamp='2009-12-30'
 
6
timestamp='2005-08-03'
8
7
 
9
8
# This file is free software; you can redistribute it and/or modify it
10
9
# under the terms of the GNU General Public License as published by
27
26
# the same distribution terms that you use for the rest of that program.
28
27
 
29
28
 
30
 
# Originally written by Per Bothner.  Please send patches (context
31
 
# diff format) to <config-patches@gnu.org> and include a ChangeLog
32
 
# entry.
 
29
# Originally written by Per Bothner <per@bothner.com>.
 
30
# Please send patches to <config-patches@gnu.org>.  Submit a context
 
31
# diff and a properly formatted ChangeLog entry.
33
32
#
34
33
# This script attempts to guess a canonical system name similar to
35
34
# config.sub.  If it succeeds, it prints the system name on stdout, and
36
35
# exits with 0.  Otherwise, it exits with 1.
37
36
#
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
 
37
# The plan is that this can be called by configure scripts if you
 
38
# don't specify an explicit build system type.
40
39
 
41
40
me=`echo "$0" | sed -e 's,.*/,,'`
42
41
 
56
55
GNU config.guess ($timestamp)
57
56
 
58
57
Originally written by Per Bothner.
59
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
61
 
Software Foundation, Inc.
 
58
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
59
Free Software Foundation, Inc.
62
60
 
63
61
This is free software; see the source for copying conditions.  There is NO
64
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
108
106
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
109
107
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
110
108
: ${TMPDIR=/tmp} ;
111
 
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 
109
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
112
110
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
113
111
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
114
112
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
162
160
            arm*) machine=arm-unknown ;;
163
161
            sh3el) machine=shl-unknown ;;
164
162
            sh3eb) machine=sh-unknown ;;
165
 
            sh5el) machine=sh5le-unknown ;;
166
163
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
167
164
        esac
168
165
        # The Operating System including object format, if it has switched
171
168
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
172
169
                eval $set_cc_for_build
173
170
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
174
 
                        | grep -q __ELF__
 
171
                        | grep __ELF__ >/dev/null
175
172
                then
176
173
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
177
174
                    # Return netbsd for either.  FIX?
209
206
    *:ekkoBSD:*:*)
210
207
        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
211
208
        exit ;;
212
 
    *:SolidBSD:*:*)
213
 
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
214
 
        exit ;;
215
209
    macppc:MirBSD:*:*)
216
 
        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
 
210
        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
217
211
        exit ;;
218
212
    *:MirBSD:*:*)
219
213
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
325
319
        case `/usr/bin/uname -p` in
326
320
            sparc) echo sparc-icl-nx7; exit ;;
327
321
        esac ;;
328
 
    s390x:SunOS:*:*)
329
 
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
 
        exit ;;
331
322
    sun4H:SunOS:5.*:*)
332
323
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333
324
        exit ;;
334
325
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
335
326
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336
327
        exit ;;
337
 
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
338
 
        echo i386-pc-auroraux${UNAME_RELEASE}
339
 
        exit ;;
340
 
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
341
 
        eval $set_cc_for_build
342
 
        SUN_ARCH="i386"
343
 
        # If there is a compiler, see if it is configured for 64-bit objects.
344
 
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
345
 
        # This test works for both compilers.
346
 
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
347
 
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
348
 
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
349
 
                grep IS_64BIT_ARCH >/dev/null
350
 
            then
351
 
                SUN_ARCH="x86_64"
352
 
            fi
353
 
        fi
354
 
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
328
    i86pc:SunOS:5.*:*)
 
329
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355
330
        exit ;;
356
331
    sun4*:SunOS:6*:*)
357
332
        # According to config.sub, this is the proper way to canonicalize
552
527
                echo rs6000-ibm-aix3.2
553
528
        fi
554
529
        exit ;;
555
 
    *:AIX:*:[456])
 
530
    *:AIX:*:[45])
556
531
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557
532
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
558
533
                IBM_ARCH=rs6000
660
635
            # => hppa64-hp-hpux11.23
661
636
 
662
637
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
663
 
                grep -q __LP64__
 
638
                grep __LP64__ >/dev/null
664
639
            then
665
640
                HP_ARCH="hppa2.0w"
666
641
            else
789
764
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
790
765
        exit ;;
791
766
    *:FreeBSD:*:*)
792
 
        case ${UNAME_MACHINE} in
793
 
            pc98)
794
 
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795
 
            amd64)
796
 
                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797
 
            *)
798
 
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799
 
        esac
 
767
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
800
768
        exit ;;
801
769
    i*:CYGWIN*:*)
802
770
        echo ${UNAME_MACHINE}-pc-cygwin
803
771
        exit ;;
804
 
    *:MINGW*:*)
 
772
    i*:MINGW*:*)
805
773
        echo ${UNAME_MACHINE}-pc-mingw32
806
774
        exit ;;
807
775
    i*:windows32*:*)
811
779
    i*:PW*:*)
812
780
        echo ${UNAME_MACHINE}-pc-pw32
813
781
        exit ;;
814
 
    *:Interix*:*)
815
 
        case ${UNAME_MACHINE} in
816
 
            x86)
817
 
                echo i586-pc-interix${UNAME_RELEASE}
818
 
                exit ;;
819
 
            authenticamd | genuineintel | EM64T)
820
 
                echo x86_64-unknown-interix${UNAME_RELEASE}
821
 
                exit ;;
822
 
            IA64)
823
 
                echo ia64-unknown-interix${UNAME_RELEASE}
824
 
                exit ;;
825
 
        esac ;;
 
782
    x86:Interix*:[34]*)
 
783
        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
 
784
        exit ;;
826
785
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
827
786
        echo i${UNAME_MACHINE}-pc-mks
828
787
        exit ;;
829
 
    8664:Windows_NT:*)
830
 
        echo x86_64-pc-mks
831
 
        exit ;;
832
788
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
833
789
        # How do we know it's Interix rather than the generic POSIX subsystem?
834
790
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
858
814
    i*86:Minix:*:*)
859
815
        echo ${UNAME_MACHINE}-pc-minix
860
816
        exit ;;
 
817
    arm*:Linux:*:*)
 
818
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
819
        exit ;;
 
820
    cris:Linux:*:*)
 
821
        echo cris-axis-linux-gnu
 
822
        exit ;;
 
823
    crisv32:Linux:*:*)
 
824
        echo crisv32-axis-linux-gnu
 
825
        exit ;;
 
826
    frv:Linux:*:*)
 
827
        echo frv-unknown-linux-gnu
 
828
        exit ;;
 
829
    ia64:Linux:*:*)
 
830
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
831
        exit ;;
 
832
    m32r*:Linux:*:*)
 
833
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
834
        exit ;;
 
835
    m68*:Linux:*:*)
 
836
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
837
        exit ;;
 
838
    mips:Linux:*:*)
 
839
        eval $set_cc_for_build
 
840
        sed 's/^        //' << EOF >$dummy.c
 
841
        #undef CPU
 
842
        #undef mips
 
843
        #undef mipsel
 
844
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
845
        CPU=mipsel
 
846
        #else
 
847
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
848
        CPU=mips
 
849
        #else
 
850
        CPU=
 
851
        #endif
 
852
        #endif
 
853
EOF
 
854
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
855
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
856
        ;;
 
857
    mips64:Linux:*:*)
 
858
        eval $set_cc_for_build
 
859
        sed 's/^        //' << EOF >$dummy.c
 
860
        #undef CPU
 
861
        #undef mips64
 
862
        #undef mips64el
 
863
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
864
        CPU=mips64el
 
865
        #else
 
866
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
867
        CPU=mips64
 
868
        #else
 
869
        CPU=
 
870
        #endif
 
871
        #endif
 
872
EOF
 
873
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
 
874
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
875
        ;;
 
876
    or32:Linux:*:*)
 
877
        echo or32-unknown-linux-gnu
 
878
        exit ;;
 
879
    ppc:Linux:*:*)
 
880
        echo powerpc-unknown-linux-gnu
 
881
        exit ;;
 
882
    ppc64:Linux:*:*)
 
883
        echo powerpc64-unknown-linux-gnu
 
884
        exit ;;
861
885
    alpha:Linux:*:*)
862
886
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
863
887
          EV5)   UNAME_MACHINE=alphaev5 ;;
868
892
          EV67)  UNAME_MACHINE=alphaev67 ;;
869
893
          EV68*) UNAME_MACHINE=alphaev68 ;;
870
894
        esac
871
 
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
895
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
872
896
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
873
897
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
874
898
        exit ;;
875
 
    arm*:Linux:*:*)
876
 
        eval $set_cc_for_build
877
 
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
878
 
            | grep -q __ARM_EABI__
879
 
        then
880
 
            echo ${UNAME_MACHINE}-unknown-linux-gnu
881
 
        else
882
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
883
 
        fi
884
 
        exit ;;
885
 
    avr32*:Linux:*:*)
886
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
887
 
        exit ;;
888
 
    cris:Linux:*:*)
889
 
        echo cris-axis-linux-gnu
890
 
        exit ;;
891
 
    crisv32:Linux:*:*)
892
 
        echo crisv32-axis-linux-gnu
893
 
        exit ;;
894
 
    frv:Linux:*:*)
895
 
        echo frv-unknown-linux-gnu
896
 
        exit ;;
897
 
    i*86:Linux:*:*)
898
 
        LIBC=gnu
899
 
        eval $set_cc_for_build
900
 
        sed 's/^        //' << EOF >$dummy.c
901
 
        #ifdef __dietlibc__
902
 
        LIBC=dietlibc
903
 
        #endif
904
 
EOF
905
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
906
 
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
907
 
        exit ;;
908
 
    ia64:Linux:*:*)
909
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
910
 
        exit ;;
911
 
    m32r*:Linux:*:*)
912
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
913
 
        exit ;;
914
 
    m68*:Linux:*:*)
915
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
916
 
        exit ;;
917
 
    mips:Linux:*:* | mips64:Linux:*:*)
918
 
        eval $set_cc_for_build
919
 
        sed 's/^        //' << EOF >$dummy.c
920
 
        #undef CPU
921
 
        #undef ${UNAME_MACHINE}
922
 
        #undef ${UNAME_MACHINE}el
923
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
924
 
        CPU=${UNAME_MACHINE}el
925
 
        #else
926
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
927
 
        CPU=${UNAME_MACHINE}
928
 
        #else
929
 
        CPU=
930
 
        #endif
931
 
        #endif
932
 
EOF
933
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
934
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
935
 
        ;;
936
 
    or32:Linux:*:*)
937
 
        echo or32-unknown-linux-gnu
938
 
        exit ;;
939
 
    padre:Linux:*:*)
940
 
        echo sparc-unknown-linux-gnu
941
 
        exit ;;
942
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
943
 
        echo hppa64-unknown-linux-gnu
944
 
        exit ;;
945
899
    parisc:Linux:*:* | hppa:Linux:*:*)
946
900
        # Look for CPU level
947
901
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
950
904
          *)    echo hppa-unknown-linux-gnu ;;
951
905
        esac
952
906
        exit ;;
953
 
    ppc64:Linux:*:*)
954
 
        echo powerpc64-unknown-linux-gnu
955
 
        exit ;;
956
 
    ppc:Linux:*:*)
957
 
        echo powerpc-unknown-linux-gnu
 
907
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
908
        echo hppa64-unknown-linux-gnu
958
909
        exit ;;
959
910
    s390:Linux:*:* | s390x:Linux:*:*)
960
911
        echo ${UNAME_MACHINE}-ibm-linux
968
919
    sparc:Linux:*:* | sparc64:Linux:*:*)
969
920
        echo ${UNAME_MACHINE}-unknown-linux-gnu
970
921
        exit ;;
971
 
    vax:Linux:*:*)
972
 
        echo ${UNAME_MACHINE}-dec-linux-gnu
973
 
        exit ;;
974
922
    x86_64:Linux:*:*)
975
923
        echo x86_64-unknown-linux-gnu
976
924
        exit ;;
977
 
    xtensa*:Linux:*:*)
978
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
979
 
        exit ;;
 
925
    i*86:Linux:*:*)
 
926
        # The BFD linker knows what the default object file format is, so
 
927
        # first see if it will tell us. cd to the root directory to prevent
 
928
        # problems with other programs or directories called `ld' in the path.
 
929
        # Set LC_ALL=C to ensure ld outputs messages in English.
 
930
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
 
931
                         | sed -ne '/supported targets:/!d
 
932
                                    s/[         ][      ]*/ /g
 
933
                                    s/.*supported targets: *//
 
934
                                    s/ .*//
 
935
                                    p'`
 
936
        case "$ld_supported_targets" in
 
937
          elf32-i386)
 
938
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
 
939
                ;;
 
940
          a.out-i386-linux)
 
941
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
942
                exit ;;
 
943
          coff-i386)
 
944
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
 
945
                exit ;;
 
946
          "")
 
947
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
 
948
                # one that does not give us useful --help.
 
949
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
950
                exit ;;
 
951
        esac
 
952
        # Determine whether the default compiler is a.out or elf
 
953
        eval $set_cc_for_build
 
954
        sed 's/^        //' << EOF >$dummy.c
 
955
        #include <features.h>
 
956
        #ifdef __ELF__
 
957
        # ifdef __GLIBC__
 
958
        #  if __GLIBC__ >= 2
 
959
        LIBC=gnu
 
960
        #  else
 
961
        LIBC=gnulibc1
 
962
        #  endif
 
963
        # else
 
964
        LIBC=gnulibc1
 
965
        # endif
 
966
        #else
 
967
        #ifdef __INTEL_COMPILER
 
968
        LIBC=gnu
 
969
        #else
 
970
        LIBC=gnuaout
 
971
        #endif
 
972
        #endif
 
973
        #ifdef __dietlibc__
 
974
        LIBC=dietlibc
 
975
        #endif
 
976
EOF
 
977
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
 
978
        test x"${LIBC}" != x && {
 
979
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
980
                exit
 
981
        }
 
982
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
 
983
        ;;
980
984
    i*86:DYNIX/ptx:4*:*)
981
985
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
982
986
        # earlier versions are messed up and put the nodename in both
1005
1009
    i*86:syllable:*:*)
1006
1010
        echo ${UNAME_MACHINE}-pc-syllable
1007
1011
        exit ;;
1008
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1012
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1009
1013
        echo i386-unknown-lynxos${UNAME_RELEASE}
1010
1014
        exit ;;
1011
1015
    i*86:*DOS:*:*)
1049
1053
    pc:*:*:*)
1050
1054
        # Left here for compatibility:
1051
1055
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1052
 
        # the processor, so we play safe by assuming i586.
1053
 
        # Note: whatever this is, it MUST be the same as what config.sub
1054
 
        # prints for the "djgpp" host, or else GDB configury will decide that
1055
 
        # this is a cross-build.
1056
 
        echo i586-pc-msdosdjgpp
 
1056
        # the processor, so we play safe by assuming i386.
 
1057
        echo i386-pc-msdosdjgpp
1057
1058
        exit ;;
1058
1059
    Intel:Mach:3*:*)
1059
1060
        echo i386-pc-mach3
1091
1092
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1092
1093
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1093
1094
          && { echo i486-ncr-sysv4; exit; } ;;
1094
 
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1095
 
        OS_REL='.3'
1096
 
        test -r /etc/.relid \
1097
 
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1098
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1099
 
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1100
 
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1101
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1102
 
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1103
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1104
1095
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1105
1096
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1106
1097
        exit ;;
1113
1104
    rs6000:LynxOS:2.*:*)
1114
1105
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1115
1106
        exit ;;
1116
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
 
1107
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1117
1108
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1118
1109
        exit ;;
1119
1110
    SM[BE]S:UNIX_SV:*:*)
1176
1167
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1177
1168
        echo i586-pc-beos
1178
1169
        exit ;;
1179
 
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1180
 
        echo i586-pc-haiku
1181
 
        exit ;;
1182
1170
    SX-4:SUPER-UX:*:*)
1183
1171
        echo sx4-nec-superux${UNAME_RELEASE}
1184
1172
        exit ;;
1188
1176
    SX-6:SUPER-UX:*:*)
1189
1177
        echo sx6-nec-superux${UNAME_RELEASE}
1190
1178
        exit ;;
1191
 
    SX-7:SUPER-UX:*:*)
1192
 
        echo sx7-nec-superux${UNAME_RELEASE}
1193
 
        exit ;;
1194
 
    SX-8:SUPER-UX:*:*)
1195
 
        echo sx8-nec-superux${UNAME_RELEASE}
1196
 
        exit ;;
1197
 
    SX-8R:SUPER-UX:*:*)
1198
 
        echo sx8r-nec-superux${UNAME_RELEASE}
1199
 
        exit ;;
1200
1179
    Power*:Rhapsody:*:*)
1201
1180
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1202
1181
        exit ;;
1206
1185
    *:Darwin:*:*)
1207
1186
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1208
1187
        case $UNAME_PROCESSOR in
1209
 
            i386)
1210
 
                eval $set_cc_for_build
1211
 
                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1212
 
                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1213
 
                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1214
 
                      grep IS_64BIT_ARCH >/dev/null
1215
 
                  then
1216
 
                      UNAME_PROCESSOR="x86_64"
1217
 
                  fi
1218
 
                fi ;;
 
1188
            *86) UNAME_PROCESSOR=i686 ;;
1219
1189
            unknown) UNAME_PROCESSOR=powerpc ;;
1220
1190
        esac
1221
1191
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1294
1264
    i*86:skyos:*:*)
1295
1265
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1296
1266
        exit ;;
1297
 
    i*86:rdos:*:*)
1298
 
        echo ${UNAME_MACHINE}-pc-rdos
1299
 
        exit ;;
1300
 
    i*86:AROS:*:*)
1301
 
        echo ${UNAME_MACHINE}-pc-aros
1302
 
        exit ;;
1303
1267
esac
1304
1268
 
1305
1269
#echo '(No uname command or uname output not recognized.)' 1>&2
1460
1424
the operating system you are using. It is advised that you
1461
1425
download the most up to date version of the config scripts from
1462
1426
 
1463
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
1427
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1464
1428
and
1465
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
1429
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1466
1430
 
1467
1431
If the version you run ($0) is already up to date, please
1468
1432
send the following data and any information you think might be