~ubuntu-branches/ubuntu/precise/graphviz/precise-security

« back to all changes in this revision

Viewing changes to config/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): David Claughton
  • Date: 2010-03-24 22:45:18 UTC
  • mfrom: (1.2.7 upstream) (6.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100324224518-do441tthbqjaqjzd
Tags: 2.26.3-4
Add patch to fix segfault in circo. Backported from upstream snapshot
release.  Thanks to Francis Russell for his work on this.
(Closes: #575255)

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
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-07-02'
 
7
timestamp='2008-11-15'
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
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, 2001,
 
60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61
61
 
62
62
This is free software; see the source for copying conditions.  There is NO
63
63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
161
161
            arm*) machine=arm-unknown ;;
162
162
            sh3el) machine=shl-unknown ;;
163
163
            sh3eb) machine=sh-unknown ;;
 
164
            sh5el) machine=sh5le-unknown ;;
164
165
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165
166
        esac
166
167
        # The Operating System including object format, if it has switched
329
330
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330
331
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331
332
        exit ;;
332
 
    i86pc:SunOS:5.*:*)
333
 
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
333
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 
334
        eval $set_cc_for_build
 
335
        SUN_ARCH="i386"
 
336
        # If there is a compiler, see if it is configured for 64-bit objects.
 
337
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
338
        # This test works for both compilers.
 
339
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
340
            if echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
 
341
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
342
                grep IS_64BIT_ARCH >/dev/null
 
343
            then
 
344
                SUN_ARCH="x86_64"
 
345
            fi
 
346
        fi
 
347
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334
348
        exit ;;
335
349
    sun4*:SunOS:6*:*)
336
350
        # According to config.sub, this is the proper way to canonicalize
531
545
                echo rs6000-ibm-aix3.2
532
546
        fi
533
547
        exit ;;
534
 
    *:AIX:*:[45])
 
548
    *:AIX:*:[456])
535
549
        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536
550
        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537
551
                IBM_ARCH=rs6000
780
794
    i*:CYGWIN*:*)
781
795
        echo ${UNAME_MACHINE}-pc-cygwin
782
796
        exit ;;
783
 
    i*:MINGW*:*)
 
797
    *:MINGW*:*)
784
798
        echo ${UNAME_MACHINE}-pc-mingw32
785
799
        exit ;;
786
800
    i*:windows32*:*)
790
804
    i*:PW*:*)
791
805
        echo ${UNAME_MACHINE}-pc-pw32
792
806
        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 ;;
 
807
    *:Interix*:[3456]*)
 
808
        case ${UNAME_MACHINE} in
 
809
            x86)
 
810
                echo i586-pc-interix${UNAME_RELEASE}
 
811
                exit ;;
 
812
            EM64T | authenticamd | genuineintel)
 
813
                echo x86_64-unknown-interix${UNAME_RELEASE}
 
814
                exit ;;
 
815
            IA64)
 
816
                echo ia64-unknown-interix${UNAME_RELEASE}
 
817
                exit ;;
 
818
        esac ;;
799
819
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
800
820
        echo i${UNAME_MACHINE}-pc-mks
801
821
        exit ;;
829
849
        echo ${UNAME_MACHINE}-pc-minix
830
850
        exit ;;
831
851
    arm*:Linux:*:*)
832
 
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
852
        eval $set_cc_for_build
 
853
        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
 
854
            | grep -q __ARM_EABI__
 
855
        then
 
856
            echo ${UNAME_MACHINE}-unknown-linux-gnu
 
857
        else
 
858
            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
 
859
        fi
833
860
        exit ;;
834
861
    avr32*:Linux:*:*)
835
862
        echo ${UNAME_MACHINE}-unknown-linux-gnu
921
948
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
922
949
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
923
950
        exit ;;
 
951
    padre:Linux:*:*)
 
952
        echo sparc-unknown-linux-gnu
 
953
        exit ;;
924
954
    parisc:Linux:*:* | hppa:Linux:*:*)
925
955
        # Look for CPU level
926
956
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
950
980
    x86_64:Linux:*:*)
951
981
        echo x86_64-unknown-linux-gnu
952
982
        exit ;;
 
983
    xtensa*:Linux:*:*)
 
984
        echo ${UNAME_MACHINE}-unknown-linux-gnu
 
985
        exit ;;
953
986
    i*86:Linux:*:*)
954
987
        # The BFD linker knows what the default object file format is, so
955
988
        # first see if it will tell us. cd to the root directory to prevent
968
1001
          a.out-i386-linux)
969
1002
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
970
1003
                exit ;;
971
 
          coff-i386)
972
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
973
 
                exit ;;
974
1004
          "")
975
1005
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
976
1006
                # one that does not give us useful --help.
1199
1229
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
1200
1230
        echo i586-pc-beos
1201
1231
        exit ;;
 
1232
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
1233
        echo i586-pc-haiku
 
1234
        exit ;;
1202
1235
    SX-4:SUPER-UX:*:*)
1203
1236
        echo sx4-nec-superux${UNAME_RELEASE}
1204
1237
        exit ;;
1208
1241
    SX-6:SUPER-UX:*:*)
1209
1242
        echo sx6-nec-superux${UNAME_RELEASE}
1210
1243
        exit ;;
 
1244
    SX-7:SUPER-UX:*:*)
 
1245
        echo sx7-nec-superux${UNAME_RELEASE}
 
1246
        exit ;;
 
1247
    SX-8:SUPER-UX:*:*)
 
1248
        echo sx8-nec-superux${UNAME_RELEASE}
 
1249
        exit ;;
 
1250
    SX-8R:SUPER-UX:*:*)
 
1251
        echo sx8r-nec-superux${UNAME_RELEASE}
 
1252
        exit ;;
1211
1253
    Power*:Rhapsody:*:*)
1212
1254
        echo powerpc-apple-rhapsody${UNAME_RELEASE}
1213
1255
        exit ;;
1458
1500
the operating system you are using. It is advised that you
1459
1501
download the most up to date version of the config scripts from
1460
1502
 
1461
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
 
1503
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1462
1504
and
1463
 
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
 
1505
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1464
1506
 
1465
1507
If the version you run ($0) is already up to date, please
1466
1508
send the following data and any information you think might be