~ubuntu-branches/ubuntu/trusty/xboard/trusty-proposed

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Legout
  • Date: 2009-12-12 13:28:21 UTC
  • mfrom: (1.1.6 upstream) (3.3.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091212132821-u4k49i0hbrdycz9r
* New upstream version:
  - Fix FTBFS with binutils-gold (Closes: #556691)
  - Update patches
* Switch to 3.0 (quilt) source format:
  - Remove patching/unpatching code in debian/rules
  - Remove README.source

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='2008-01-08'
 
7
timestamp='2009-04-27'
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
334
334
        case `/usr/bin/uname -p` in
335
335
            sparc) echo sparc-icl-nx7; exit ;;
336
336
        esac ;;
 
337
    s390x:SunOS:*:*)
 
338
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
339
        exit ;;
337
340
    sun4H:SunOS:5.*:*)
338
341
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
339
342
        exit ;;
341
344
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
342
345
        exit ;;
343
346
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
344
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
347
        eval $set_cc_for_build
 
348
        SUN_ARCH="i386"
 
349
        # If there is a compiler, see if it is configured for 64-bit objects.
 
350
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
351
        # This test works for both compilers.
 
352
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
353
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
354
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
355
                grep IS_64BIT_ARCH >/dev/null
 
356
            then
 
357
                SUN_ARCH="x86_64"
 
358
            fi
 
359
        fi
 
360
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
345
361
        exit ;;
346
362
    sun4*:SunOS:6*:*)
347
363
        # According to config.sub, this is the proper way to canonicalize
806
822
            x86)
807
823
                echo i586-pc-interix${UNAME_RELEASE}
808
824
                exit ;;
809
 
            EM64T | authenticamd)
 
825
            EM64T | authenticamd | genuineintel)
810
826
                echo x86_64-unknown-interix${UNAME_RELEASE}
811
827
                exit ;;
812
828
            IA64)
943
959
        esac
944
960
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
945
961
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
946
 
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
962
        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
 
963
        exit ;;
 
964
    padre:Linux:*:*)
 
965
        echo sparc-unknown-linux-gnu
947
966
        exit ;;
948
967
    parisc:Linux:*:* | hppa:Linux:*:*)
949
968
        # Look for CPU level
995
1014
          a.out-i386-linux)
996
1015
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
997
1016
                exit ;;
998
 
          coff-i386)
999
 
                echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
1000
 
                exit ;;
1001
1017
          "")
1002
1018
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1003
1019
                # one that does not give us useful --help.
1060
1076
        echo ${UNAME_MACHINE}-pc-os2-emx
1061
1077
        exit ;;
1062
1078
    i*86:XTS-300:*:STOP)
1063
 
        echo ${UNAME_MACHINE}-unknown-stop
 
1079
        echo ${UNAME_MACHINE}-${VENDOR}-stop
1064
1080
        exit ;;
1065
1081
    i*86:atheos:*:*)
1066
 
        echo ${UNAME_MACHINE}-unknown-atheos
 
1082
        echo ${UNAME_MACHINE}-${VENDOR}-atheos
1067
1083
        exit ;;
1068
1084
    i*86:syllable:*:*)
1069
1085
        echo ${UNAME_MACHINE}-pc-syllable
1070
1086
        exit ;;
1071
1087
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1072
 
        echo i386-unknown-lynxos${UNAME_RELEASE}
 
1088
        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
1073
1089
        exit ;;
1074
1090
    i*86:*DOS:*:*)
1075
1091
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
1089
1105
            *Pentium)        UNAME_MACHINE=i586 ;;
1090
1106
            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1091
1107
        esac
1092
 
        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
 
1108
        echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1093
1109
        exit ;;
1094
1110
    i*86:*:3.2:*)
1095
1111
        if test -f /usr/options/cb.name; then
1112
1128
    pc:*:*:*)
1113
1129
        # Left here for compatibility:
1114
1130
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1115
 
        # the processor, so we play safe by assuming i386.
1116
 
        echo i386-pc-msdosdjgpp
 
1131
        # the processor, so we play safe by assuming i586.
 
1132
        # Note: whatever this is, it MUST be the same as what config.sub
 
1133
        # prints for the "djgpp" host, or else GDB configury will decide that
 
1134
        # this is a cross-build.
 
1135
        echo i586-pc-msdosdjgpp
1117
1136
        exit ;;
1118
1137
    Intel:Mach:3*:*)
1119
1138
        echo i386-pc-mach3
1125
1144
        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1126
1145
          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1127
1146
        else # Add other i860-SVR4 vendors below as they are discovered.
1128
 
          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
 
1147
          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1129
1148
        fi
1130
1149
        exit ;;
1131
1150
    mini*:CTIX:SYS*5:*)
1151
1170
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1152
1171
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1153
1172
          && { echo i486-ncr-sysv4; exit; } ;;
 
1173
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
1174
        OS_REL='.3'
 
1175
        test -r /etc/.relid \
 
1176
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
1177
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
1178
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
1179
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
1180
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
1181
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
1182
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1154
1183
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1155
 
        echo m68k-unknown-lynxos${UNAME_RELEASE}
 
1184
        echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1156
1185
        exit ;;
1157
1186
    mc68030:UNIX_System_V:4.*:*)
1158
1187
        echo m68k-atari-sysv4
1159
1188
        exit ;;
1160
1189
    TSUNAMI:LynxOS:2.*:*)
1161
 
        echo sparc-unknown-lynxos${UNAME_RELEASE}
 
1190
        echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1162
1191
        exit ;;
1163
1192
    rs6000:LynxOS:2.*:*)
1164
 
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
 
1193
        echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1165
1194
        exit ;;
1166
1195
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1167
 
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
 
1196
        echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1168
1197
        exit ;;
1169
1198
    SM[BE]S:UNIX_SV:*:*)
1170
1199
        echo mips-dde-sysv${UNAME_RELEASE}
1214
1243
        if [ -d /usr/nec ]; then
1215
1244
                echo mips-nec-sysv${UNAME_RELEASE}
1216
1245
        else
1217
 
                echo mips-unknown-sysv${UNAME_RELEASE}
 
1246
                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1218
1247
        fi
1219
1248
        exit ;;
1220
1249
    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
1226
1255
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1227
1256
        echo i586-pc-beos
1228
1257
        exit ;;
 
1258
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1259
        echo i586-pc-haiku
 
1260
        exit ;;
1229
1261
    SX-4:SUPER-UX:*:*)
1230
1262
        echo sx4-nec-superux${UNAME_RELEASE}
1231
1263
        exit ;;
1292
1324
        else
1293
1325
            UNAME_MACHINE="$cputype"
1294
1326
        fi
1295
 
        echo ${UNAME_MACHINE}-unknown-plan9
 
1327
        echo ${UNAME_MACHINE}-${VENDOR}-plan9
1296
1328
        exit ;;
1297
1329
    *:TOPS-10:*:*)
1298
 
        echo pdp10-unknown-tops10
 
1330
        echo pdp10-${VENDOR}-tops10
1299
1331
        exit ;;
1300
1332
    *:TENEX:*:*)
1301
 
        echo pdp10-unknown-tenex
 
1333
        echo pdp10-${VENDOR}-tenex
1302
1334
        exit ;;
1303
1335
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1304
1336
        echo pdp10-dec-tops20
1307
1339
        echo pdp10-xkl-tops20
1308
1340
        exit ;;
1309
1341
    *:TOPS-20:*:*)
1310
 
        echo pdp10-unknown-tops20
 
1342
        echo pdp10-${VENDOR}-tops20
1311
1343
        exit ;;
1312
1344
    *:ITS:*:*)
1313
 
        echo pdp10-unknown-its
 
1345
        echo pdp10-${VENDOR}-its
1314
1346
        exit ;;
1315
1347
    SEI:*:*:SEIUX)
1316
1348
        echo mips-sei-seiux${UNAME_RELEASE}
1317
1349
        exit ;;
1318
1350
    *:DragonFly:*:*)
1319
 
        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
 
1351
        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1320
1352
        exit ;;
1321
1353
    *:*VMS:*:*)
1322
1354
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
1334
1366
    i*86:rdos:*:*)
1335
1367
        echo ${UNAME_MACHINE}-pc-rdos
1336
1368
        exit ;;
 
1369
    i*86:AROS:*:*)
 
1370
        echo ${UNAME_MACHINE}-pc-aros
 
1371
        exit ;;
1337
1372
esac
1338
1373
 
1339
1374
#echo '(No uname command or uname output not recognized.)' 1>&2
1494
1529
the operating system you are using. It is advised that you
1495
1530
download the most up to date version of the config scripts from
1496
1531
 
1497
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1532
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1498
1533
and
1499
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1534
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1500
1535
 
1501
1536
If the version you run ($0) is already up to date, please
1502
1537
send the following data and any information you think might be