~ubuntu-branches/ubuntu/trusty/libprelude/trusty

« back to all changes in this revision

Viewing changes to config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-07-13 10:19:39 UTC
  • mfrom: (1.1.14 upstream) (2.3.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090713101939-5qlosl9xkv0jn2a0
Tags: 0.9.24-1ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - debian/control: Replace libltdl3-dev with libltdl7-dev in the
    Build-Depends field.

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
324
324
        case `/usr/bin/uname -p` in
325
325
            sparc) echo sparc-icl-nx7; exit ;;
326
326
        esac ;;
 
327
    s390x:SunOS:*:*)
 
328
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
329
        exit ;;
327
330
    sun4H:SunOS:5.*:*)
328
331
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329
332
        exit ;;
331
334
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332
335
        exit ;;
333
336
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
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/[^.]*//'`
335
351
        exit ;;
336
352
    sun4*:SunOS:6*:*)
337
353
        # According to config.sub, this is the proper way to canonicalize
796
812
            x86)
797
813
                echo i586-pc-interix${UNAME_RELEASE}
798
814
                exit ;;
799
 
            EM64T | authenticamd)
 
815
            EM64T | authenticamd | genuineintel)
800
816
                echo x86_64-unknown-interix${UNAME_RELEASE}
801
817
                exit ;;
802
818
            IA64)
935
951
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
936
952
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
937
953
        exit ;;
 
954
    padre:Linux:*:*)
 
955
        echo sparc-unknown-linux-gnu
 
956
        exit ;;
938
957
    parisc:Linux:*:* | hppa:Linux:*:*)
939
958
        # Look for CPU level
940
959
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
985
1004
          a.out-i386-linux)
986
1005
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
987
1006
                exit ;;
988
 
          coff-i386)
989
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
990
 
                exit ;;
991
1007
          "")
992
1008
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
993
1009
                # one that does not give us useful --help.
1102
1118
    pc:*:*:*)
1103
1119
        # Left here for compatibility:
1104
1120
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1105
 
        # the processor, so we play safe by assuming i386.
1106
 
        echo i386-pc-msdosdjgpp
 
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
1107
1126
        exit ;;
1108
1127
    Intel:Mach:3*:*)
1109
1128
        echo i386-pc-mach3
1141
1160
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1142
1161
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1143
1162
          && { 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; } ;;
1144
1173
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1145
1174
        echo m68k-unknown-lynxos${UNAME_RELEASE}
1146
1175
        exit ;;
1216
1245
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1217
1246
        echo i586-pc-beos
1218
1247
        exit ;;
 
1248
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1249
        echo i586-pc-haiku
 
1250
        exit ;;
1219
1251
    SX-4:SUPER-UX:*:*)
1220
1252
        echo sx4-nec-superux${UNAME_RELEASE}
1221
1253
        exit ;;
1324
1356
    i*86:rdos:*:*)
1325
1357
        echo ${UNAME_MACHINE}-pc-rdos
1326
1358
        exit ;;
 
1359
    i*86:AROS:*:*)
 
1360
        echo ${UNAME_MACHINE}-pc-aros
 
1361
        exit ;;
1327
1362
esac
1328
1363
 
1329
1364
#echo '(No uname command or uname output not recognized.)' 1>&2
1484
1519
the operating system you are using. It is advised that you
1485
1520
download the most up to date version of the config scripts from
1486
1521
 
1487
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1522
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1488
1523
and
1489
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1524
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1490
1525
 
1491
1526
If the version you run ($0) is already up to date, please
1492
1527
send the following data and any information you think might be