~ubuntu-branches/ubuntu/oneiric/diffutils/oneiric

« back to all changes in this revision

Viewing changes to config/config.guess

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2009-09-13 11:13:04 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090913111304-sxrp3wyphdghuawq
Tags: 1:2.8.1-18
Modify Replaces field so that it includes old releases of diff in
experimental. Closes: #546364. Note: This will make diff 2.8.7
to "upgrade" to diffutils 2.8.1 if you don't have experimental in
sources.list anymore. Those who really want diffutils 2.8.7 should
keep experimental in sources.list.

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
170
170
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171
171
                eval $set_cc_for_build
172
172
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173
 
                        | grep __ELF__ >/dev/null
 
173
                        | grep -q __ELF__
174
174
                then
175
175
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176
176
                    # Return netbsd for either.  FIX?
656
656
            # => hppa64-hp-hpux11.23
657
657
 
658
658
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
659
 
                grep __LP64__ >/dev/null
 
659
                grep -q __LP64__
660
660
            then
661
661
                HP_ARCH="hppa2.0w"
662
662
            else
822
822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
823
823
        echo i${UNAME_MACHINE}-pc-mks
824
824
        exit ;;
 
825
    8664:Windows_NT:*)
 
826
        echo x86_64-pc-mks
 
827
        exit ;;
825
828
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
826
829
        # How do we know it's Interix rather than the generic POSIX subsystem?
827
830
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
882
885
    m68*:Linux:*:*)
883
886
        echo ${UNAME_MACHINE}-unknown-linux-gnu
884
887
        exit ;;
885
 
    mips:Linux:*:*)
886
 
        eval $set_cc_for_build
887
 
        sed 's/^        //' << EOF >$dummy.c
888
 
        #undef CPU
889
 
        #undef mips
890
 
        #undef mipsel
891
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
892
 
        CPU=mipsel
893
 
        #else
894
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
895
 
        CPU=mips
896
 
        #else
897
 
        CPU=
898
 
        #endif
899
 
        #endif
900
 
EOF
901
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
902
 
            /^CPU/{
903
 
                s: ::g
904
 
                p
905
 
            }'`"
906
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
907
 
        ;;
908
 
    mips64:Linux:*:*)
909
 
        eval $set_cc_for_build
910
 
        sed 's/^        //' << EOF >$dummy.c
911
 
        #undef CPU
912
 
        #undef mips64
913
 
        #undef mips64el
914
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
915
 
        CPU=mips64el
916
 
        #else
917
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
918
 
        CPU=mips64
 
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}
919
899
        #else
920
900
        CPU=
921
901
        #endif
947
927
          EV67)  UNAME_MACHINE=alphaev67 ;;
948
928
          EV68*) UNAME_MACHINE=alphaev68 ;;
949
929
        esac
950
 
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
 
930
        objdump --private-headers /bin/sh | grep -q ld.so.1
951
931
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
952
932
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
953
933
        exit ;;
1001
981
          elf32-i386)
1002
982
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1003
983
                ;;
1004
 
          a.out-i386-linux)
1005
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1006
 
                exit ;;
1007
 
          "")
1008
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
1009
 
                # one that does not give us useful --help.
1010
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1011
 
                exit ;;
1012
984
        esac
1013
985
        # Determine whether the default compiler is a.out or elf
1014
986
        eval $set_cc_for_build
1074
1046
    i*86:syllable:*:*)
1075
1047
        echo ${UNAME_MACHINE}-pc-syllable
1076
1048
        exit ;;
1077
 
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
 
1049
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1078
1050
        echo i386-unknown-lynxos${UNAME_RELEASE}
1079
1051
        exit ;;
1080
1052
    i*86:*DOS:*:*)
1182
1154
    rs6000:LynxOS:2.*:*)
1183
1155
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
1184
1156
        exit ;;
1185
 
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
 
1157
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1186
1158
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
1187
1159
        exit ;;
1188
1160
    SM[BE]S:UNIX_SV:*:*)