~ubuntu-branches/debian/sid/openbox/sid

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde, Nico Golde, Eugenio Paolantonio
  • Date: 2011-10-03 22:59:30 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20111003225930-tdvyax5tx63dyoez
Tags: 3.5.0-1
[Nico Golde]
* New upstream release (Closes: #638783).
  - Fix crashes in the menu code (Closes: #563891).
* Add Brazilian translation to openbox.desktop,
  thanks Sérgio Cipolla (Closes: #627912).
* Remove 06_fix_swap_byte_order.patch, applied upstream.
* Bump debhelper dependency to >= 7.0.50~ due to override.
* Remove CHANGELOG from openbox.docs to prevent double installation.
* Add 02_fix_freedesktop_compliance.dpatch desktop file to
  /usr/share/applications.

[Eugenio Paolantonio]
* debian/patches:
  - Disabled 03_place_windows_in_quadrants.patch
  - Updated 01_rc.xml.patch and 06_fix_swap_byte_order.patch
  - Removed 04_fix_ftbfs_no-add-needed.patch and 20_24bits_support.patch
* debian/control:
  - Added myself to the Uploaders.
  - Build-Depends: removed libxau-dev, libxft-dev and python-xdg;
    added libimlib2-dev
  - openbox Suggests: added python-xdg
  - libobrender21 renamed to libobrender27
  - libobparser21 renamed to libobt0
* debian/rules:
  - Rewrote using a simpler debhelper syntax
  - Moved the install pass to openbox.install
* debian/*.{install,links,dirs}:
  - Updated.
* debian/openbox.xsession:
  - Removed. Openbox now ships it by default.

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
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2008-01-23'
 
7
timestamp='2009-12-30'
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,
60
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
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.
61
62
 
62
63
This is free software; see the source for copying conditions.  There is NO
63
64
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139
140
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
140
141
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142
 
142
 
if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
143
 
        eval $set_cc_for_build
144
 
        cat << EOF > $dummy.c
145
 
        #include <features.h>
146
 
        #ifdef __UCLIBC__
147
 
        # ifdef __UCLIBC_CONFIG_VERSION__
148
 
        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
149
 
        # else
150
 
        LIBC=uclibc
151
 
        # endif
152
 
        #else
153
 
        LIBC=gnu
154
 
        #endif
155
 
EOF
156
 
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
157
 
fi
158
 
 
159
143
# Note: order is significant - the case branches are not exclusive.
160
144
 
161
145
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
187
171
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
188
172
                eval $set_cc_for_build
189
173
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
190
 
                        | grep __ELF__ >/dev/null
 
174
                        | grep -q __ELF__
191
175
                then
192
176
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
193
177
                    # Return netbsd for either.  FIX?
341
325
        case `/usr/bin/uname -p` in
342
326
            sparc) echo sparc-icl-nx7; exit ;;
343
327
        esac ;;
 
328
    s390x:SunOS:*:*)
 
329
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
330
        exit ;;
344
331
    sun4H:SunOS:5.*:*)
345
332
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
346
333
        exit ;;
347
334
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
348
335
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
349
336
        exit ;;
 
337
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
 
338
        echo i386-pc-auroraux${UNAME_RELEASE}
 
339
        exit ;;
350
340
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
351
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
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/[^.]*//'`
352
355
        exit ;;
353
356
    sun4*:SunOS:6*:*)
354
357
        # According to config.sub, this is the proper way to canonicalize
657
660
            # => hppa64-hp-hpux11.23
658
661
 
659
662
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
660
 
                grep __LP64__ >/dev/null
 
663
                grep -q __LP64__
661
664
            then
662
665
                HP_ARCH="hppa2.0w"
663
666
            else
808
811
    i*:PW*:*)
809
812
        echo ${UNAME_MACHINE}-pc-pw32
810
813
        exit ;;
811
 
    *:Interix*:[3456]*)
 
814
    *:Interix*:*)
812
815
        case ${UNAME_MACHINE} in
813
816
            x86)
814
817
                echo i586-pc-interix${UNAME_RELEASE}
815
818
                exit ;;
816
 
            EM64T | authenticamd)
 
819
            authenticamd | genuineintel | EM64T)
817
820
                echo x86_64-unknown-interix${UNAME_RELEASE}
818
821
                exit ;;
819
822
            IA64)
823
826
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
824
827
        echo i${UNAME_MACHINE}-pc-mks
825
828
        exit ;;
 
829
    8664:Windows_NT:*)
 
830
        echo x86_64-pc-mks
 
831
        exit ;;
826
832
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
827
833
        # How do we know it's Interix rather than the generic POSIX subsystem?
828
834
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
852
858
    i*86:Minix:*:*)
853
859
        echo ${UNAME_MACHINE}-pc-minix
854
860
        exit ;;
 
861
    alpha:Linux:*:*)
 
862
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
 
863
          EV5)   UNAME_MACHINE=alphaev5 ;;
 
864
          EV56)  UNAME_MACHINE=alphaev56 ;;
 
865
          PCA56) UNAME_MACHINE=alphapca56 ;;
 
866
          PCA57) UNAME_MACHINE=alphapca56 ;;
 
867
          EV6)   UNAME_MACHINE=alphaev6 ;;
 
868
          EV67)  UNAME_MACHINE=alphaev67 ;;
 
869
          EV68*) UNAME_MACHINE=alphaev68 ;;
 
870
        esac
 
871
        objdump --private-headers /bin/sh | grep -q ld.so.1
 
872
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
 
873
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
874
        exit ;;
855
875
    arm*:Linux:*:*)
856
876
        eval $set_cc_for_build
857
877
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
858
878
            | grep -q __ARM_EABI__
859
879
        then
860
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
880
            echo ${UNAME_MACHINE}-unknown-linux-gnu
861
881
        else
862
 
            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
 
882
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
863
883
        fi
864
884
        exit ;;
865
885
    avr32*:Linux:*:*)
866
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
886
        echo ${UNAME_MACHINE}-unknown-linux-gnu
867
887
        exit ;;
868
888
    cris:Linux:*:*)
869
 
        echo cris-axis-linux-${LIBC}
 
889
        echo cris-axis-linux-gnu
870
890
        exit ;;
871
891
    crisv32:Linux:*:*)
872
 
        echo crisv32-axis-linux-${LIBC}
 
892
        echo crisv32-axis-linux-gnu
873
893
        exit ;;
874
894
    frv:Linux:*:*)
875
 
        echo frv-unknown-linux-${LIBC}
 
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}"
876
907
        exit ;;
877
908
    ia64:Linux:*:*)
878
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
909
        echo ${UNAME_MACHINE}-unknown-linux-gnu
879
910
        exit ;;
880
911
    m32r*:Linux:*:*)
881
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
912
        echo ${UNAME_MACHINE}-unknown-linux-gnu
882
913
        exit ;;
883
914
    m68*:Linux:*:*)
884
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
915
        echo ${UNAME_MACHINE}-unknown-linux-gnu
885
916
        exit ;;
886
 
    mips:Linux:*:*)
887
 
        eval $set_cc_for_build
888
 
        sed 's/^        //' << EOF >$dummy.c
889
 
        #undef CPU
890
 
        #undef mips
891
 
        #undef mipsel
892
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
893
 
        CPU=mipsel
894
 
        #else
895
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
896
 
        CPU=mips
897
 
        #else
898
 
        CPU=
899
 
        #endif
900
 
        #endif
901
 
EOF
902
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
903
 
            /^CPU/{
904
 
                s: ::g
905
 
                p
906
 
            }'`"
907
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
908
 
        ;;
909
 
    mips64:Linux:*:*)
910
 
        eval $set_cc_for_build
911
 
        sed 's/^        //' << EOF >$dummy.c
912
 
        #undef CPU
913
 
        #undef mips64
914
 
        #undef mips64el
915
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
916
 
        CPU=mips64el
917
 
        #else
918
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
919
 
        CPU=mips64
920
 
        #else
921
 
        CPU=
922
 
        #endif
923
 
        #endif
924
 
EOF
925
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
926
 
            /^CPU/{
927
 
                s: ::g
928
 
                p
929
 
            }'`"
930
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; 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; }
931
935
        ;;
932
936
    or32:Linux:*:*)
933
 
        echo or32-unknown-linux-${LIBC}
934
 
        exit ;;
935
 
    ppc:Linux:*:*)
936
 
        echo powerpc-unknown-linux-${LIBC}
937
 
        exit ;;
938
 
    ppc64:Linux:*:*)
939
 
        echo powerpc64-unknown-linux-${LIBC}
940
 
        exit ;;
941
 
    alpha:Linux:*:*)
942
 
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
943
 
          EV5)   UNAME_MACHINE=alphaev5 ;;
944
 
          EV56)  UNAME_MACHINE=alphaev56 ;;
945
 
          PCA56) UNAME_MACHINE=alphapca56 ;;
946
 
          PCA57) UNAME_MACHINE=alphapca56 ;;
947
 
          EV6)   UNAME_MACHINE=alphaev6 ;;
948
 
          EV67)  UNAME_MACHINE=alphaev67 ;;
949
 
          EV68*) UNAME_MACHINE=alphaev68 ;;
950
 
        esac
951
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
952
 
        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
953
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
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
954
944
        exit ;;
955
945
    parisc:Linux:*:* | hppa:Linux:*:*)
956
946
        # Look for CPU level
957
947
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
958
 
          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
959
 
          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
960
 
          *)    echo hppa-unknown-linux-${LIBC} ;;
 
948
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
949
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
950
          *)    echo hppa-unknown-linux-gnu ;;
961
951
        esac
962
952
        exit ;;
963
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
964
 
        echo hppa64-unknown-linux-${LIBC}
 
953
    ppc64:Linux:*:*)
 
954
        echo powerpc64-unknown-linux-gnu
 
955
        exit ;;
 
956
    ppc:Linux:*:*)
 
957
        echo powerpc-unknown-linux-gnu
965
958
        exit ;;
966
959
    s390:Linux:*:* | s390x:Linux:*:*)
967
960
        echo ${UNAME_MACHINE}-ibm-linux
968
961
        exit ;;
969
962
    sh64*:Linux:*:*)
970
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
963
        echo ${UNAME_MACHINE}-unknown-linux-gnu
971
964
        exit ;;
972
965
    sh*:Linux:*:*)
973
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
966
        echo ${UNAME_MACHINE}-unknown-linux-gnu
974
967
        exit ;;
975
968
    sparc:Linux:*:* | sparc64:Linux:*:*)
976
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
969
        echo ${UNAME_MACHINE}-unknown-linux-gnu
977
970
        exit ;;
978
971
    vax:Linux:*:*)
979
 
        echo ${UNAME_MACHINE}-dec-linux-${LIBC}
 
972
        echo ${UNAME_MACHINE}-dec-linux-gnu
980
973
        exit ;;
981
974
    x86_64:Linux:*:*)
982
 
        echo x86_64-unknown-linux-${LIBC}
 
975
        echo x86_64-unknown-linux-gnu
983
976
        exit ;;
984
977
    xtensa*:Linux:*:*)
985
 
        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 
978
        echo ${UNAME_MACHINE}-unknown-linux-gnu
986
979
        exit ;;
987
 
    i*86:Linux:*:*)
988
 
        # The BFD linker knows what the default object file format is, so
989
 
        # first see if it will tell us. cd to the root directory to prevent
990
 
        # problems with other programs or directories called `ld' in the path.
991
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
992
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
993
 
                         | sed -ne '/supported targets:/!d
994
 
                                    s/[         ][      ]*/ /g
995
 
                                    s/.*supported targets: *//
996
 
                                    s/ .*//
997
 
                                    p'`
998
 
        case "$ld_supported_targets" in
999
 
          elf32-i386)
1000
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
1001
 
                ;;
1002
 
          a.out-i386-linux)
1003
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
1004
 
                exit ;;
1005
 
          coff-i386)
1006
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
1007
 
                exit ;;
1008
 
          "")
1009
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1010
 
                # one that does not give us useful --help.
1011
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
1012
 
                exit ;;
1013
 
        esac
1014
 
        # This should get integrated into the C code below, but now we hack
1015
 
        if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
1016
 
        # Determine whether the default compiler is a.out or elf
1017
 
        eval $set_cc_for_build
1018
 
        sed 's/^        //' << EOF >$dummy.c
1019
 
        #include <features.h>
1020
 
        #ifdef __ELF__
1021
 
        # ifdef __GLIBC__
1022
 
        #  if __GLIBC__ >= 2
1023
 
        LIBC=gnu
1024
 
        #  else
1025
 
        LIBC=gnulibc1
1026
 
        #  endif
1027
 
        # else
1028
 
        LIBC=gnulibc1
1029
 
        # endif
1030
 
        #else
1031
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1032
 
        LIBC=gnu
1033
 
        #else
1034
 
        LIBC=gnuaout
1035
 
        #endif
1036
 
        #endif
1037
 
        #ifdef __dietlibc__
1038
 
        LIBC=dietlibc
1039
 
        #endif
1040
 
EOF
1041
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1042
 
            /^LIBC/{
1043
 
                s: ::g
1044
 
                p
1045
 
            }'`"
1046
 
        test x"${LIBC}" != x && {
1047
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1048
 
                exit
1049
 
        }
1050
 
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1051
 
        ;;
1052
980
    i*86:DYNIX/ptx:4*:*)
1053
981
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1054
982
        # earlier versions are messed up and put the nodename in both
1077
1005
    i*86:syllable:*:*)
1078
1006
        echo ${UNAME_MACHINE}-pc-syllable
1079
1007
        exit ;;
1080
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
1008
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1081
1009
        echo i386-unknown-lynxos${UNAME_RELEASE}
1082
1010
        exit ;;
1083
1011
    i*86:*DOS:*:*)
1121
1049
    pc:*:*:*)
1122
1050
        # Left here for compatibility:
1123
1051
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1124
 
        # the processor, so we play safe by assuming i386.
1125
 
        echo i386-pc-msdosdjgpp
 
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
1126
1057
        exit ;;
1127
1058
    Intel:Mach:3*:*)
1128
1059
        echo i386-pc-mach3
1160
1091
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1161
1092
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1162
1093
          && { 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; } ;;
1163
1104
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1164
1105
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1165
1106
        exit ;;
1172
1113
    rs6000:LynxOS:2.*:*)
1173
1114
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1174
1115
        exit ;;
1175
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1116
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1176
1117
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1177
1118
        exit ;;
1178
1119
    SM[BE]S:UNIX_SV:*:*)
1235
1176
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1236
1177
        echo i586-pc-beos
1237
1178
        exit ;;
 
1179
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1180
        echo i586-pc-haiku
 
1181
        exit ;;
1238
1182
    SX-4:SUPER-UX:*:*)
1239
1183
        echo sx4-nec-superux${UNAME_RELEASE}
1240
1184
        exit ;;
1262
1206
    *:Darwin:*:*)
1263
1207
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1264
1208
        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 ;;
1265
1219
            unknown) UNAME_PROCESSOR=powerpc ;;
1266
1220
        esac
1267
1221
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1343
1297
    i*86:rdos:*:*)
1344
1298
        echo ${UNAME_MACHINE}-pc-rdos
1345
1299
        exit ;;
 
1300
    i*86:AROS:*:*)
 
1301
        echo ${UNAME_MACHINE}-pc-aros
 
1302
        exit ;;
1346
1303
esac
1347
1304
 
1348
1305
#echo '(No uname command or uname output not recognized.)' 1>&2