~ubuntu-branches/ubuntu/saucy/apr-util/saucy-proposed

« back to all changes in this revision

Viewing changes to build/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2011-05-22 01:27:59 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110522012759-i80zd90uo6q1z4gr
Tags: 1.3.12+dfsg-1
* New upstream version
* Make apu-config not output dbm libs by default. Closes: #622081
* Set DEB_GCC_NO_O3=1 for the benefit of ppc64 on Ubuntu.

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, 2010
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-07-02'
 
7
timestamp='2010-04-03'
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,
 
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."
91
92
  exit 1
92
93
fi
93
94
 
94
 
trap 'exit 1' 1 2 15
 
95
trap 'exit 1' HUP INT TERM
95
96
 
96
97
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
97
98
# compiler to aid in system detection is discouraged as it requires
105
106
 
106
107
set_cc_for_build='
107
108
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108
 
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
 
109
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
109
110
: ${TMPDIR=/tmp} ;
110
111
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111
112
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
161
162
            arm*) machine=arm-unknown ;;
162
163
            sh3el) machine=shl-unknown ;;
163
164
            sh3eb) machine=sh-unknown ;;
 
165
            sh5el) machine=sh5le-unknown ;;
164
166
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165
167
        esac
166
168
        # The Operating System including object format, if it has switched
169
171
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170
172
                eval $set_cc_for_build
171
173
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172
 
                        | grep __ELF__ >/dev/null
 
174
                        | grep -q __ELF__
173
175
                then
174
176
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175
177
                    # Return netbsd for either.  FIX?
323
325
        case `/usr/bin/uname -p` in
324
326
            sparc) echo sparc-icl-nx7; exit ;;
325
327
        esac ;;
 
328
    s390x:SunOS:*:*)
 
329
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
330
        exit ;;
326
331
    sun4H:SunOS:5.*:*)
327
332
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328
333
        exit ;;
329
334
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330
335
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331
336
        exit ;;
332
 
    i86pc:SunOS:5.*:*)
333
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
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/[^.]*//'`
334
355
        exit ;;
335
356
    sun4*:SunOS:6*:*)
336
357
        # According to config.sub, this is the proper way to canonicalize
531
552
                echo rs6000-ibm-aix3.2
532
553
        fi
533
554
        exit ;;
534
 
    *:AIX:*:[45])
 
555
    *:AIX:*:[456])
535
556
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536
557
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537
558
                IBM_ARCH=rs6000
639
660
            # => hppa64-hp-hpux11.23
640
661
 
641
662
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642
 
                grep __LP64__ >/dev/null
 
663
                grep -q __LP64__
643
664
            then
644
665
                HP_ARCH="hppa2.0w"
645
666
            else
780
801
    i*:CYGWIN*:*)
781
802
        echo ${UNAME_MACHINE}-pc-cygwin
782
803
        exit ;;
783
 
    i*:MINGW*:*)
 
804
    *:MINGW*:*)
784
805
        echo ${UNAME_MACHINE}-pc-mingw32
785
806
        exit ;;
786
807
    i*:windows32*:*)
790
811
    i*:PW*:*)
791
812
        echo ${UNAME_MACHINE}-pc-pw32
792
813
        exit ;;
793
 
    x86:Interix*:[3456]*)
794
 
        echo i586-pc-interix${UNAME_RELEASE}
795
 
        exit ;;
796
 
    EM64T:Interix*:[3456]*)
797
 
        echo x86_64-unknown-interix${UNAME_RELEASE}
798
 
        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 ;;
799
826
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
800
827
        echo i${UNAME_MACHINE}-pc-mks
801
828
        exit ;;
 
829
    8664:Windows_NT:*)
 
830
        echo x86_64-pc-mks
 
831
        exit ;;
802
832
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
803
833
        # How do we know it's Interix rather than the generic POSIX subsystem?
804
834
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
828
858
    i*86:Minix:*:*)
829
859
        echo ${UNAME_MACHINE}-pc-minix
830
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 ;;
831
875
    arm*:Linux:*:*)
832
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
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
833
884
        exit ;;
834
885
    avr32*:Linux:*:*)
835
886
        echo ${UNAME_MACHINE}-unknown-linux-gnu
843
894
    frv:Linux:*:*)
844
895
        echo frv-unknown-linux-gnu
845
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 ;;
846
908
    ia64:Linux:*:*)
847
909
        echo ${UNAME_MACHINE}-unknown-linux-gnu
848
910
        exit ;;
852
914
    m68*:Linux:*:*)
853
915
        echo ${UNAME_MACHINE}-unknown-linux-gnu
854
916
        exit ;;
855
 
    mips:Linux:*:*)
856
 
        eval $set_cc_for_build
857
 
        sed 's/^        //' << EOF >$dummy.c
858
 
        #undef CPU
859
 
        #undef mips
860
 
        #undef mipsel
861
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
862
 
        CPU=mipsel
863
 
        #else
864
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
865
 
        CPU=mips
866
 
        #else
867
 
        CPU=
868
 
        #endif
869
 
        #endif
870
 
EOF
871
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
872
 
            /^CPU/{
873
 
                s: ::g
874
 
                p
875
 
            }'`"
876
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
877
 
        ;;
878
 
    mips64:Linux:*:*)
879
 
        eval $set_cc_for_build
880
 
        sed 's/^        //' << EOF >$dummy.c
881
 
        #undef CPU
882
 
        #undef mips64
883
 
        #undef mips64el
884
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
885
 
        CPU=mips64el
886
 
        #else
887
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
888
 
        CPU=mips64
889
 
        #else
890
 
        CPU=
891
 
        #endif
892
 
        #endif
893
 
EOF
894
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
895
 
            /^CPU/{
896
 
                s: ::g
897
 
                p
898
 
            }'`"
 
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'`
899
934
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
900
935
        ;;
901
936
    or32:Linux:*:*)
902
937
        echo or32-unknown-linux-gnu
903
938
        exit ;;
904
 
    ppc:Linux:*:*)
905
 
        echo powerpc-unknown-linux-gnu
906
 
        exit ;;
907
 
    ppc64:Linux:*:*)
908
 
        echo powerpc64-unknown-linux-gnu
909
 
        exit ;;
910
 
    alpha:Linux:*:*)
911
 
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
912
 
          EV5)   UNAME_MACHINE=alphaev5 ;;
913
 
          EV56)  UNAME_MACHINE=alphaev56 ;;
914
 
          PCA56) UNAME_MACHINE=alphapca56 ;;
915
 
          PCA57) UNAME_MACHINE=alphapca56 ;;
916
 
          EV6)   UNAME_MACHINE=alphaev6 ;;
917
 
          EV67)  UNAME_MACHINE=alphaev67 ;;
918
 
          EV68*) UNAME_MACHINE=alphaev68 ;;
919
 
        esac
920
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
921
 
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
922
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
 
939
    padre:Linux:*:*)
 
940
        echo sparc-unknown-linux-gnu
 
941
        exit ;;
 
942
    parisc64:Linux:*:* | hppa64:Linux:*:*)
 
943
        echo hppa64-unknown-linux-gnu
923
944
        exit ;;
924
945
    parisc:Linux:*:* | hppa:Linux:*:*)
925
946
        # Look for CPU level
929
950
          *)    echo hppa-unknown-linux-gnu ;;
930
951
        esac
931
952
        exit ;;
932
 
    parisc64:Linux:*:* | hppa64:Linux:*:*)
933
 
        echo hppa64-unknown-linux-gnu
 
953
    ppc64:Linux:*:*)
 
954
        echo powerpc64-unknown-linux-gnu
 
955
        exit ;;
 
956
    ppc:Linux:*:*)
 
957
        echo powerpc-unknown-linux-gnu
934
958
        exit ;;
935
959
    s390:Linux:*:* | s390x:Linux:*:*)
936
960
        echo ${UNAME_MACHINE}-ibm-linux
950
974
    x86_64:Linux:*:*)
951
975
        echo x86_64-unknown-linux-gnu
952
976
        exit ;;
953
 
    i*86:Linux:*:*)
954
 
        # The BFD linker knows what the default object file format is, so
955
 
        # first see if it will tell us. cd to the root directory to prevent
956
 
        # problems with other programs or directories called `ld' in the path.
957
 
        # Set LC_ALL=C to ensure ld outputs messages in English.
958
 
        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
959
 
                         | sed -ne '/supported targets:/!d
960
 
                                    s/[         ][      ]*/ /g
961
 
                                    s/.*supported targets: *//
962
 
                                    s/ .*//
963
 
                                    p'`
964
 
        case "$ld_supported_targets" in
965
 
          elf32-i386)
966
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
967
 
                ;;
968
 
          a.out-i386-linux)
969
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
970
 
                exit ;;
971
 
          coff-i386)
972
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
973
 
                exit ;;
974
 
          "")
975
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
976
 
                # one that does not give us useful --help.
977
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
978
 
                exit ;;
979
 
        esac
980
 
        # Determine whether the default compiler is a.out or elf
981
 
        eval $set_cc_for_build
982
 
        sed 's/^        //' << EOF >$dummy.c
983
 
        #include <features.h>
984
 
        #ifdef __ELF__
985
 
        # ifdef __GLIBC__
986
 
        #  if __GLIBC__ >= 2
987
 
        LIBC=gnu
988
 
        #  else
989
 
        LIBC=gnulibc1
990
 
        #  endif
991
 
        # else
992
 
        LIBC=gnulibc1
993
 
        # endif
994
 
        #else
995
 
        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
996
 
        LIBC=gnu
997
 
        #else
998
 
        LIBC=gnuaout
999
 
        #endif
1000
 
        #endif
1001
 
        #ifdef __dietlibc__
1002
 
        LIBC=dietlibc
1003
 
        #endif
1004
 
EOF
1005
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1006
 
            /^LIBC/{
1007
 
                s: ::g
1008
 
                p
1009
 
            }'`"
1010
 
        test x"${LIBC}" != x && {
1011
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1012
 
                exit
1013
 
        }
1014
 
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1015
 
        ;;
 
977
    xtensa*:Linux:*:*)
 
978
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
979
        exit ;;
1016
980
    i*86:DYNIX/ptx:4*:*)
1017
981
        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1018
982
        # earlier versions are messed up and put the nodename in both
1041
1005
    i*86:syllable:*:*)
1042
1006
        echo ${UNAME_MACHINE}-pc-syllable
1043
1007
        exit ;;
1044
 
    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]*:*)
1045
1009
        echo i386-unknown-lynxos${UNAME_RELEASE}
1046
1010
        exit ;;
1047
1011
    i*86:*DOS:*:*)
1085
1049
    pc:*:*:*)
1086
1050
        # Left here for compatibility:
1087
1051
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1088
 
        # the processor, so we play safe by assuming i386.
1089
 
        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
1090
1057
        exit ;;
1091
1058
    Intel:Mach:3*:*)
1092
1059
        echo i386-pc-mach3
1124
1091
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1125
1092
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1126
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; } ;;
1127
1104
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1128
1105
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1129
1106
        exit ;;
1136
1113
    rs6000:LynxOS:2.*:*)
1137
1114
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1138
1115
        exit ;;
1139
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1116
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1140
1117
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1141
1118
        exit ;;
1142
1119
    SM[BE]S:UNIX_SV:*:*)
1199
1176
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1200
1177
        echo i586-pc-beos
1201
1178
        exit ;;
 
1179
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1180
        echo i586-pc-haiku
 
1181
        exit ;;
1202
1182
    SX-4:SUPER-UX:*:*)
1203
1183
        echo sx4-nec-superux${UNAME_RELEASE}
1204
1184
        exit ;;
1208
1188
    SX-6:SUPER-UX:*:*)
1209
1189
        echo sx6-nec-superux${UNAME_RELEASE}
1210
1190
        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 ;;
1211
1200
    Power*:Rhapsody:*:*)
1212
1201
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1213
1202
        exit ;;
1217
1206
    *:Darwin:*:*)
1218
1207
        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1219
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 ;;
1220
1219
            unknown) UNAME_PROCESSOR=powerpc ;;
1221
1220
        esac
1222
1221
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1298
1297
    i*86:rdos:*:*)
1299
1298
        echo ${UNAME_MACHINE}-pc-rdos
1300
1299
        exit ;;
 
1300
    i*86:AROS:*:*)
 
1301
        echo ${UNAME_MACHINE}-pc-aros
 
1302
        exit ;;
1301
1303
esac
1302
1304
 
1303
1305
#echo '(No uname command or uname output not recognized.)' 1>&2
1458
1460
the operating system you are using. It is advised that you
1459
1461
download the most up to date version of the config scripts from
1460
1462
 
1461
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1463
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1462
1464
and
1463
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1465
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1464
1466
 
1465
1467
If the version you run ($0) is already up to date, please
1466
1468
send the following data and any information you think might be