~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2009-07-28 01:12:27 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20090728011227-tiva9yorc5d1r5hs
Tags: upstream-2.27.5
ImportĀ upstreamĀ versionĀ 2.27.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-04-27'
 
7
timestamp='2008-01-08'
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
 
142
152
# Note: order is significant - the case branches are not exclusive.
143
153
 
144
154
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
324
334
        case `/usr/bin/uname -p` in
325
335
            sparc) echo sparc-icl-nx7; exit ;;
326
336
        esac ;;
327
 
    s390x:SunOS:*:*)
328
 
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329
 
        exit ;;
330
337
    sun4H:SunOS:5.*:*)
331
338
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
339
        exit ;;
334
341
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335
342
        exit ;;
336
343
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
337
 
        eval $set_cc_for_build
338
 
        SUN_ARCH="i386"
339
 
        # If there is a compiler, see if it is configured for 64-bit objects.
340
 
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
341
 
        # This test works for both compilers.
342
 
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
343
 
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
344
 
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
345
 
                grep IS_64BIT_ARCH >/dev/null
346
 
            then
347
 
                SUN_ARCH="x86_64"
348
 
            fi
349
 
        fi
350
 
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
344
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
351
345
        exit ;;
352
346
    sun4*:SunOS:6*:*)
353
347
        # According to config.sub, this is the proper way to canonicalize
812
806
            x86)
813
807
                echo i586-pc-interix${UNAME_RELEASE}
814
808
                exit ;;
815
 
            EM64T | authenticamd | genuineintel)
 
809
            EM64T | authenticamd)
816
810
                echo x86_64-unknown-interix${UNAME_RELEASE}
817
811
                exit ;;
818
812
            IA64)
856
850
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
857
851
            | grep -q __ARM_EABI__
858
852
        then
859
 
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
853
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
860
854
        else
861
 
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
855
            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
862
856
        fi
863
857
        exit ;;
864
858
    avr32*:Linux:*:*)
865
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
859
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
866
860
        exit ;;
867
861
    cris:Linux:*:*)
868
862
        echo cris-axis-linux-gnu
871
865
        echo crisv32-axis-linux-gnu
872
866
        exit ;;
873
867
    frv:Linux:*:*)
874
 
        echo frv-unknown-linux-gnu
 
868
        echo frv-${VENDOR}-linux-gnu
875
869
        exit ;;
876
870
    ia64:Linux:*:*)
877
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
871
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
878
872
        exit ;;
879
873
    m32r*:Linux:*:*)
880
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
874
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
881
875
        exit ;;
882
876
    m68*:Linux:*:*)
883
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
877
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
884
878
        exit ;;
885
879
    mips:Linux:*:*)
886
880
        eval $set_cc_for_build
903
897
                s: ::g
904
898
                p
905
899
            }'`"
906
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
900
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
907
901
        ;;
908
902
    mips64:Linux:*:*)
909
903
        eval $set_cc_for_build
926
920
                s: ::g
927
921
                p
928
922
            }'`"
929
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
923
        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
930
924
        ;;
931
925
    or32:Linux:*:*)
932
 
        echo or32-unknown-linux-gnu
 
926
        echo or32-${VENDOR}-linux-gnu
933
927
        exit ;;
934
928
    ppc:Linux:*:*)
935
 
        echo powerpc-unknown-linux-gnu
 
929
        echo powerpc-${VENDOR}-linux-gnu
936
930
        exit ;;
937
931
    ppc64:Linux:*:*)
938
 
        echo powerpc64-unknown-linux-gnu
 
932
        echo powerpc64-${VENDOR}-linux-gnu
939
933
        exit ;;
940
934
    alpha:Linux:*:*)
941
935
        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
949
943
        esac
950
944
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
951
945
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
952
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
953
 
        exit ;;
954
 
    padre:Linux:*:*)
955
 
        echo sparc-unknown-linux-gnu
 
946
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
956
947
        exit ;;
957
948
    parisc:Linux:*:* | hppa:Linux:*:*)
958
949
        # Look for CPU level
959
950
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
960
 
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
961
 
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
962
 
          *)    echo hppa-unknown-linux-gnu ;;
 
951
          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
 
952
          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
 
953
          *)    echo hppa-${VENDOR}-linux-gnu ;;
963
954
        esac
964
955
        exit ;;
965
956
    parisc64:Linux:*:* | hppa64:Linux:*:*)
966
 
        echo hppa64-unknown-linux-gnu
 
957
        echo hppa64-${VENDOR}-linux-gnu
967
958
        exit ;;
968
959
    s390:Linux:*:* | s390x:Linux:*:*)
969
960
        echo ${UNAME_MACHINE}-ibm-linux
970
961
        exit ;;
971
962
    sh64*:Linux:*:*)
972
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
963
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
973
964
        exit ;;
974
965
    sh*:Linux:*:*)
975
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
966
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
976
967
        exit ;;
977
968
    sparc:Linux:*:* | sparc64:Linux:*:*)
978
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
969
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
979
970
        exit ;;
980
971
    vax:Linux:*:*)
981
972
        echo ${UNAME_MACHINE}-dec-linux-gnu
982
973
        exit ;;
983
974
    x86_64:Linux:*:*)
984
 
        echo x86_64-unknown-linux-gnu
 
975
        echo x86_64-${VENDOR}-linux-gnu
985
976
        exit ;;
986
977
    xtensa*:Linux:*:*)
987
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
978
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
988
979
        exit ;;
989
980
    i*86:Linux:*:*)
990
981
        # The BFD linker knows what the default object file format is, so
999
990
                                    p'`
1000
991
        case "$ld_supported_targets" in
1001
992
          elf32-i386)
1002
 
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
 
993
                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu"
1003
994
                ;;
1004
995
          a.out-i386-linux)
1005
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
996
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
 
997
                exit ;;
 
998
          coff-i386)
 
999
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
1006
1000
                exit ;;
1007
1001
          "")
1008
1002
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1009
1003
                # one that does not give us useful --help.
1010
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
1004
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
1011
1005
                exit ;;
1012
1006
        esac
1013
1007
        # Determine whether the default compiler is a.out or elf
1041
1035
                p
1042
1036
            }'`"
1043
1037
        test x"${LIBC}" != x && {
1044
 
                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
 
1038
                echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
1045
1039
                exit
1046
1040
        }
1047
1041
        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1118
1112
    pc:*:*:*)
1119
1113
        # Left here for compatibility:
1120
1114
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1121
 
        # the processor, so we play safe by assuming i586.
1122
 
        # Note: whatever this is, it MUST be the same as what config.sub
1123
 
        # prints for the "djgpp" host, or else GDB configury will decide that
1124
 
        # this is a cross-build.
1125
 
        echo i586-pc-msdosdjgpp
 
1115
        # the processor, so we play safe by assuming i386.
 
1116
        echo i386-pc-msdosdjgpp
1126
1117
        exit ;;
1127
1118
    Intel:Mach:3*:*)
1128
1119
        echo i386-pc-mach3
1160
1151
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1161
1152
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1162
1153
          && { echo i486-ncr-sysv4; exit; } ;;
1163
 
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1164
 
        OS_REL='.3'
1165
 
        test -r /etc/.relid \
1166
 
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1167
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1168
 
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1169
 
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1170
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1171
 
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1172
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1173
1154
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1174
1155
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1175
1156
        exit ;;
1245
1226
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1246
1227
        echo i586-pc-beos
1247
1228
        exit ;;
1248
 
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
1249
 
        echo i586-pc-haiku
1250
 
        exit ;;
1251
1229
    SX-4:SUPER-UX:*:*)
1252
1230
        echo sx4-nec-superux${UNAME_RELEASE}
1253
1231
        exit ;;
1356
1334
    i*86:rdos:*:*)
1357
1335
        echo ${UNAME_MACHINE}-pc-rdos
1358
1336
        exit ;;
1359
 
    i*86:AROS:*:*)
1360
 
        echo ${UNAME_MACHINE}-pc-aros
1361
 
        exit ;;
1362
1337
esac
1363
1338
 
1364
1339
#echo '(No uname command or uname output not recognized.)' 1>&2
1519
1494
the operating system you are using. It is advised that you
1520
1495
download the most up to date version of the config scripts from
1521
1496
 
1522
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
 
1497
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1523
1498
and
1524
 
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
1499
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1525
1500
 
1526
1501
If the version you run ($0) is already up to date, please
1527
1502
send the following data and any information you think might be