~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Ken VanDine
  • Date: 2010-10-26 15:23:44 UTC
  • mfrom: (1.3.14 upstream)
  • Revision ID: ken.vandine@canonical.com-20101026152344-mudczoehgwjp9wun
Tags: 1.2.2-0ubuntu1
releasing version 1.2.2-0ubuntu1

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
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-04-27'
 
7
timestamp='2009-06-10'
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
139
139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
140
140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
141
 
142
 
case "${UNAME_MACHINE}" in
143
 
    i?86)
144
 
        test -z "$VENDOR" && VENDOR=pc
145
 
        ;;
146
 
    *)
147
 
        test -z "$VENDOR" && VENDOR=unknown
148
 
        ;;
149
 
esac
150
 
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
151
 
 
152
142
# Note: order is significant - the case branches are not exclusive.
153
143
 
154
144
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
180
170
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
181
171
                eval $set_cc_for_build
182
172
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
183
 
                        | grep __ELF__ >/dev/null
 
173
                        | grep -q __ELF__
184
174
                then
185
175
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
186
176
                    # Return netbsd for either.  FIX?
666
656
            # => hppa64-hp-hpux11.23
667
657
 
668
658
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
669
 
                grep __LP64__ >/dev/null
 
659
                grep -q __LP64__
670
660
            then
671
661
                HP_ARCH="hppa2.0w"
672
662
            else
832
822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
833
823
        echo i${UNAME_MACHINE}-pc-mks
834
824
        exit ;;
 
825
    8664:Windows_NT:*)
 
826
        echo x86_64-pc-mks
 
827
        exit ;;
835
828
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
836
829
        # How do we know it's Interix rather than the generic POSIX subsystem?
837
830
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
866
859
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
867
860
            | grep -q __ARM_EABI__
868
861
        then
869
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
862
            echo ${UNAME_MACHINE}-unknown-linux-gnu
870
863
        else
871
 
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
 
864
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
872
865
        fi
873
866
        exit ;;
874
867
    avr32*:Linux:*:*)
875
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
868
        echo ${UNAME_MACHINE}-unknown-linux-gnu
876
869
        exit ;;
877
870
    cris:Linux:*:*)
878
871
        echo cris-axis-linux-gnu
881
874
        echo crisv32-axis-linux-gnu
882
875
        exit ;;
883
876
    frv:Linux:*:*)
884
 
        echo frv-${VENDOR}-linux-gnu
 
877
        echo frv-unknown-linux-gnu
885
878
        exit ;;
886
879
    ia64:Linux:*:*)
887
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
880
        echo ${UNAME_MACHINE}-unknown-linux-gnu
888
881
        exit ;;
889
882
    m32r*:Linux:*:*)
890
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
883
        echo ${UNAME_MACHINE}-unknown-linux-gnu
891
884
        exit ;;
892
885
    m68*:Linux:*:*)
893
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
886
        echo ${UNAME_MACHINE}-unknown-linux-gnu
894
887
        exit ;;
895
 
    mips:Linux:*:*)
896
 
        eval $set_cc_for_build
897
 
        sed 's/^        //' << EOF >$dummy.c
898
 
        #undef CPU
899
 
        #undef mips
900
 
        #undef mipsel
901
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
902
 
        CPU=mipsel
903
 
        #else
904
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
905
 
        CPU=mips
906
 
        #else
907
 
        CPU=
908
 
        #endif
909
 
        #endif
910
 
EOF
911
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
912
 
            /^CPU/{
913
 
                s: ::g
914
 
                p
915
 
            }'`"
916
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
917
 
        ;;
918
 
    mips64:Linux:*:*)
919
 
        eval $set_cc_for_build
920
 
        sed 's/^        //' << EOF >$dummy.c
921
 
        #undef CPU
922
 
        #undef mips64
923
 
        #undef mips64el
924
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
925
 
        CPU=mips64el
926
 
        #else
927
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
928
 
        CPU=mips64
929
 
        #else
930
 
        CPU=
931
 
        #endif
932
 
        #endif
933
 
EOF
934
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
935
 
            /^CPU/{
936
 
                s: ::g
937
 
                p
938
 
            }'`"
939
 
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
 
888
    mips:Linux:*:* | mips64:Linux:*:*)
 
889
        eval $set_cc_for_build
 
890
        sed 's/^        //' << EOF >$dummy.c
 
891
        #undef CPU
 
892
        #undef ${UNAME_MACHINE}
 
893
        #undef ${UNAME_MACHINE}el
 
894
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
895
        CPU=${UNAME_MACHINE}el
 
896
        #else
 
897
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
898
        CPU=${UNAME_MACHINE}
 
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
            }'`"
 
909
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
940
910
        ;;
941
911
    or32:Linux:*:*)
942
 
        echo or32-${VENDOR}-linux-gnu
 
912
        echo or32-unknown-linux-gnu
943
913
        exit ;;
944
914
    ppc:Linux:*:*)
945
 
        echo powerpc-${VENDOR}-linux-gnu
 
915
        echo powerpc-unknown-linux-gnu
946
916
        exit ;;
947
917
    ppc64:Linux:*:*)
948
 
        echo powerpc64-${VENDOR}-linux-gnu
 
918
        echo powerpc64-unknown-linux-gnu
949
919
        exit ;;
950
920
    alpha:Linux:*:*)
951
921
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
957
927
          EV67)  UNAME_MACHINE=alphaev67 ;;
958
928
          EV68*) UNAME_MACHINE=alphaev68 ;;
959
929
        esac
960
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
 
930
        objdump --private-headers /bin/sh | grep -q ld.so.1
961
931
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
962
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
932
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
963
933
        exit ;;
964
934
    padre:Linux:*:*)
965
935
        echo sparc-unknown-linux-gnu
967
937
    parisc:Linux:*:* | hppa:Linux:*:*)
968
938
        # Look for CPU level
969
939
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
970
 
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
971
 
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
972
 
          *)    echo hppa-${VENDOR}-linux-gnu ;;
 
940
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
 
941
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
 
942
          *)    echo hppa-unknown-linux-gnu ;;
973
943
        esac
974
944
        exit ;;
975
945
    parisc64:Linux:*:* | hppa64:Linux:*:*)
976
 
        echo hppa64-${VENDOR}-linux-gnu
 
946
        echo hppa64-unknown-linux-gnu
977
947
        exit ;;
978
948
    s390:Linux:*:* | s390x:Linux:*:*)
979
949
        echo ${UNAME_MACHINE}-ibm-linux
980
950
        exit ;;
981
951
    sh64*:Linux:*:*)
982
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
952
        echo ${UNAME_MACHINE}-unknown-linux-gnu
983
953
        exit ;;
984
954
    sh*:Linux:*:*)
985
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
955
        echo ${UNAME_MACHINE}-unknown-linux-gnu
986
956
        exit ;;
987
957
    sparc:Linux:*:* | sparc64:Linux:*:*)
988
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
958
        echo ${UNAME_MACHINE}-unknown-linux-gnu
989
959
        exit ;;
990
960
    vax:Linux:*:*)
991
961
        echo ${UNAME_MACHINE}-dec-linux-gnu
992
962
        exit ;;
993
963
    x86_64:Linux:*:*)
994
 
        echo x86_64-${VENDOR}-linux-gnu
 
964
        echo x86_64-unknown-linux-gnu
995
965
        exit ;;
996
966
    xtensa*:Linux:*:*)
997
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
 
967
        echo ${UNAME_MACHINE}-unknown-linux-gnu
998
968
        exit ;;
999
969
    i*86:Linux:*:*)
1000
970
        # The BFD linker knows what the default object file format is, so
1009
979
                                    p'`
1010
980
        case "$ld_supported_targets" in
1011
981
          elf32-i386)
1012
 
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
 
982
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1013
983
                ;;
1014
 
          a.out-i386-linux)
1015
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
1016
 
                exit ;;
1017
 
          "")
1018
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1019
 
                # one that does not give us useful --help.
1020
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
1021
 
                exit ;;
1022
984
        esac
1023
985
        # Determine whether the default compiler is a.out or elf
1024
986
        eval $set_cc_for_build
1051
1013
                p
1052
1014
            }'`"
1053
1015
        test x"${LIBC}" != x && {
1054
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
 
1016
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1055
1017
                exit
1056
1018
        }
1057
1019
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1076
1038
        echo ${UNAME_MACHINE}-pc-os2-emx
1077
1039
        exit ;;
1078
1040
    i*86:XTS-300:*:STOP)
1079
 
        echo ${UNAME_MACHINE}-${VENDOR}-stop
 
1041
        echo ${UNAME_MACHINE}-unknown-stop
1080
1042
        exit ;;
1081
1043
    i*86:atheos:*:*)
1082
 
        echo ${UNAME_MACHINE}-${VENDOR}-atheos
 
1044
        echo ${UNAME_MACHINE}-unknown-atheos
1083
1045
        exit ;;
1084
1046
    i*86:syllable:*:*)
1085
1047
        echo ${UNAME_MACHINE}-pc-syllable
1086
1048
        exit ;;
1087
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1088
 
        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
 
1049
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
 
1050
        echo i386-unknown-lynxos${UNAME_RELEASE}
1089
1051
        exit ;;
1090
1052
    i*86:*DOS:*:*)
1091
1053
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
1105
1067
            *Pentium)        UNAME_MACHINE=i586 ;;
1106
1068
            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1107
1069
        esac
1108
 
        echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
 
1070
        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1109
1071
        exit ;;
1110
1072
    i*86:*:3.2:*)
1111
1073
        if test -f /usr/options/cb.name; then
1144
1106
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1145
1107
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1146
1108
        else # Add other i860-SVR4 vendors below as they are discovered.
1147
 
          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1109
          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1148
1110
        fi
1149
1111
        exit ;;
1150
1112
    mini*:CTIX:SYS*5:*)
1181
1143
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1182
1144
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1183
1145
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1184
 
        echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
 
1146
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1185
1147
        exit ;;
1186
1148
    mc68030:UNIX_System_V:4.*:*)
1187
1149
        echo m68k-atari-sysv4
1188
1150
        exit ;;
1189
1151
    TSUNAMI:LynxOS:2.*:*)
1190
 
        echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
 
1152
        echo sparc-unknown-lynxos${UNAME_RELEASE}
1191
1153
        exit ;;
1192
1154
    rs6000:LynxOS:2.*:*)
1193
 
        echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
 
1155
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1194
1156
        exit ;;
1195
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1196
 
        echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
 
1157
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
 
1158
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1197
1159
        exit ;;
1198
1160
    SM[BE]S:UNIX_SV:*:*)
1199
1161
        echo mips-dde-sysv${UNAME_RELEASE}
1243
1205
        if [ -d /usr/nec ]; then
1244
1206
                echo mips-nec-sysv${UNAME_RELEASE}
1245
1207
        else
1246
 
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
 
1208
                echo mips-unknown-sysv${UNAME_RELEASE}
1247
1209
        fi
1248
1210
        exit ;;
1249
1211
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1324
1286
        else
1325
1287
            UNAME_MACHINE="$cputype"
1326
1288
        fi
1327
 
        echo ${UNAME_MACHINE}-${VENDOR}-plan9
 
1289
        echo ${UNAME_MACHINE}-unknown-plan9
1328
1290
        exit ;;
1329
1291
    *:TOPS-10:*:*)
1330
 
        echo pdp10-${VENDOR}-tops10
 
1292
        echo pdp10-unknown-tops10
1331
1293
        exit ;;
1332
1294
    *:TENEX:*:*)
1333
 
        echo pdp10-${VENDOR}-tenex
 
1295
        echo pdp10-unknown-tenex
1334
1296
        exit ;;
1335
1297
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1336
1298
        echo pdp10-dec-tops20
1339
1301
        echo pdp10-xkl-tops20
1340
1302
        exit ;;
1341
1303
    *:TOPS-20:*:*)
1342
 
        echo pdp10-${VENDOR}-tops20
 
1304
        echo pdp10-unknown-tops20
1343
1305
        exit ;;
1344
1306
    *:ITS:*:*)
1345
 
        echo pdp10-${VENDOR}-its
 
1307
        echo pdp10-unknown-its
1346
1308
        exit ;;
1347
1309
    SEI:*:*:SEIUX)
1348
1310
        echo mips-sei-seiux${UNAME_RELEASE}
1349
1311
        exit ;;
1350
1312
    *:DragonFly:*:*)
1351
 
        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1313
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1352
1314
        exit ;;
1353
1315
    *:*VMS:*:*)
1354
1316
        UNAME_MACHINE=`(uname -p) 2>/dev/null`