OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [config.guess] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
#! /bin/sh
#! /bin/sh
# Attempt to guess a canonical system name.
# Attempt to guess a canonical system name.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
#   Free Software Foundation, Inc.
#   Free Software Foundation, Inc.
 
 
timestamp='2008-01-23'
timestamp='2009-06-10'
 
 
# This file is free software; you can redistribute it and/or modify it
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (at your option) any later version.
Line 168... Line 168...
        # to ELF recently, or will in the future.
        # to ELF recently, or will in the future.
        case "${UNAME_MACHINE_ARCH}" in
        case "${UNAME_MACHINE_ARCH}" in
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
                eval $set_cc_for_build
                eval $set_cc_for_build
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
                        | grep __ELF__ >/dev/null
                        | grep -q __ELF__
                then
                then
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
                    # Return netbsd for either.  FIX?
                    # Return netbsd for either.  FIX?
                    os=netbsd
                    os=netbsd
                else
                else
Line 322... Line 322...
        exit ;;
        exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
        case `/usr/bin/uname -p` in
        case `/usr/bin/uname -p` in
            sparc) echo sparc-icl-nx7; exit ;;
            sparc) echo sparc-icl-nx7; exit ;;
        esac ;;
        esac ;;
 
    s390x:SunOS:*:*)
 
        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 
        exit ;;
    sun4H:SunOS:5.*:*)
    sun4H:SunOS:5.*:*)
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        exit ;;
        exit ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        exit ;;
        exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        eval $set_cc_for_build
 
        SUN_ARCH="i386"
 
        # If there is a compiler, see if it is configured for 64-bit objects.
 
        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 
        # This test works for both compilers.
 
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
 
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
                grep IS_64BIT_ARCH >/dev/null
 
            then
 
                SUN_ARCH="x86_64"
 
            fi
 
        fi
 
        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
        exit ;;
        exit ;;
    sun4*:SunOS:6*:*)
    sun4*:SunOS:6*:*)
        # According to config.sub, this is the proper way to canonicalize
        # According to config.sub, this is the proper way to canonicalize
        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
        # it's likely to be more like Solaris than SunOS4.
        # it's likely to be more like Solaris than SunOS4.
Line 638... Line 654...
            # => hppa2.0w-hp-hpux11.23
            # => hppa2.0w-hp-hpux11.23
            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
            # => hppa64-hp-hpux11.23
            # => hppa64-hp-hpux11.23
 
 
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
                grep __LP64__ >/dev/null
                grep -q __LP64__
            then
            then
                HP_ARCH="hppa2.0w"
                HP_ARCH="hppa2.0w"
            else
            else
                HP_ARCH="hppa64"
                HP_ARCH="hppa64"
            fi
            fi
Line 794... Line 810...
    *:Interix*:[3456]*)
    *:Interix*:[3456]*)
        case ${UNAME_MACHINE} in
        case ${UNAME_MACHINE} in
            x86)
            x86)
                echo i586-pc-interix${UNAME_RELEASE}
                echo i586-pc-interix${UNAME_RELEASE}
                exit ;;
                exit ;;
            EM64T | authenticamd)
            EM64T | authenticamd | genuineintel)
                echo x86_64-unknown-interix${UNAME_RELEASE}
                echo x86_64-unknown-interix${UNAME_RELEASE}
                exit ;;
                exit ;;
            IA64)
            IA64)
                echo ia64-unknown-interix${UNAME_RELEASE}
                echo ia64-unknown-interix${UNAME_RELEASE}
                exit ;;
                exit ;;
        esac ;;
        esac ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
        echo i${UNAME_MACHINE}-pc-mks
        echo i${UNAME_MACHINE}-pc-mks
        exit ;;
        exit ;;
 
    8664:Windows_NT:*)
 
        echo x86_64-pc-mks
 
        exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
        # How do we know it's Interix rather than the generic POSIX subsystem?
        # How do we know it's Interix rather than the generic POSIX subsystem?
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
        # UNAME_MACHINE based on the output of uname instead of i386?
        # UNAME_MACHINE based on the output of uname instead of i386?
        echo i586-pc-interix
        echo i586-pc-interix
Line 864... Line 883...
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
        exit ;;
    m68*:Linux:*:*)
    m68*:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
        exit ;;
    mips:Linux:*:*)
    mips:Linux:*:* | mips64:Linux:*:*)
        eval $set_cc_for_build
 
        sed 's/^        //' << EOF >$dummy.c
 
        #undef CPU
 
        #undef mips
 
        #undef mipsel
 
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
 
        CPU=mipsel
 
        #else
 
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
 
        CPU=mips
 
        #else
 
        CPU=
 
        #endif
 
        #endif
 
EOF
 
        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
 
            /^CPU/{
 
                s: ::g
 
                p
 
            }'`"
 
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
 
        ;;
 
    mips64:Linux:*:*)
 
        eval $set_cc_for_build
        eval $set_cc_for_build
        sed 's/^        //' << EOF >$dummy.c
        sed 's/^        //' << EOF >$dummy.c
        #undef CPU
        #undef CPU
        #undef mips64
        #undef ${UNAME_MACHINE}
        #undef mips64el
        #undef ${UNAME_MACHINE}el
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
        CPU=mips64el
        CPU=${UNAME_MACHINE}el
        #else
        #else
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
        CPU=mips64
        CPU=${UNAME_MACHINE}
        #else
        #else
        CPU=
        CPU=
        #endif
        #endif
        #endif
        #endif
EOF
EOF
Line 929... Line 925...
          PCA57) UNAME_MACHINE=alphapca56 ;;
          PCA57) UNAME_MACHINE=alphapca56 ;;
          EV6)   UNAME_MACHINE=alphaev6 ;;
          EV6)   UNAME_MACHINE=alphaev6 ;;
          EV67)  UNAME_MACHINE=alphaev67 ;;
          EV67)  UNAME_MACHINE=alphaev67 ;;
          EV68*) UNAME_MACHINE=alphaev68 ;;
          EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
        esac
        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
        objdump --private-headers /bin/sh | grep -q ld.so.1
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
        exit ;;
        exit ;;
 
    padre:Linux:*:*)
 
        echo sparc-unknown-linux-gnu
 
        exit ;;
    parisc:Linux:*:* | hppa:Linux:*:*)
    parisc:Linux:*:* | hppa:Linux:*:*)
        # Look for CPU level
        # Look for CPU level
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
          PA7*) echo hppa1.1-unknown-linux-gnu ;;
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
          PA8*) echo hppa2.0-unknown-linux-gnu ;;
Line 980... Line 979...
                                    p'`
                                    p'`
        case "$ld_supported_targets" in
        case "$ld_supported_targets" in
          elf32-i386)
          elf32-i386)
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
                ;;
                ;;
          a.out-i386-linux)
 
                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 
                exit ;;
 
          coff-i386)
 
                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
 
                exit ;;
 
          "")
 
                # Either a pre-BFD a.out linker (linux-gnuoldld) or
 
                # one that does not give us useful --help.
 
                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
 
                exit ;;
 
        esac
        esac
        # Determine whether the default compiler is a.out or elf
        # Determine whether the default compiler is a.out or elf
        eval $set_cc_for_build
        eval $set_cc_for_build
        sed 's/^        //' << EOF >$dummy.c
        sed 's/^        //' << EOF >$dummy.c
        #include 
        #include 
Line 1056... Line 1044...
        echo ${UNAME_MACHINE}-unknown-atheos
        echo ${UNAME_MACHINE}-unknown-atheos
        exit ;;
        exit ;;
    i*86:syllable:*:*)
    i*86:syllable:*:*)
        echo ${UNAME_MACHINE}-pc-syllable
        echo ${UNAME_MACHINE}-pc-syllable
        exit ;;
        exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
        echo i386-unknown-lynxos${UNAME_RELEASE}
        echo i386-unknown-lynxos${UNAME_RELEASE}
        exit ;;
        exit ;;
    i*86:*DOS:*:*)
    i*86:*DOS:*:*)
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
        echo ${UNAME_MACHINE}-pc-msdosdjgpp
        exit ;;
        exit ;;
Line 1100... Line 1088...
        fi
        fi
        exit ;;
        exit ;;
    pc:*:*:*)
    pc:*:*:*)
        # Left here for compatibility:
        # Left here for compatibility:
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # the processor, so we play safe by assuming i386.
        # the processor, so we play safe by assuming i586.
        echo i386-pc-msdosdjgpp
        # Note: whatever this is, it MUST be the same as what config.sub
 
        # prints for the "djgpp" host, or else GDB configury will decide that
 
        # this is a cross-build.
 
        echo i586-pc-msdosdjgpp
        exit ;;
        exit ;;
    Intel:Mach:3*:*)
    Intel:Mach:3*:*)
        echo i386-pc-mach3
        echo i386-pc-mach3
        exit ;;
        exit ;;
    paragon:*:*:*)
    paragon:*:*:*)
Line 1139... Line 1130...
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
          && { echo i486-ncr-sysv4; exit; } ;;
          && { echo i486-ncr-sysv4; exit; } ;;
 
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
 
        OS_REL='.3'
 
        test -r /etc/.relid \
 
            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
 
            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
 
        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
 
        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
 
            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
        echo m68k-unknown-lynxos${UNAME_RELEASE}
        echo m68k-unknown-lynxos${UNAME_RELEASE}
        exit ;;
        exit ;;
    mc68030:UNIX_System_V:4.*:*)
    mc68030:UNIX_System_V:4.*:*)
        echo m68k-atari-sysv4
        echo m68k-atari-sysv4
Line 1151... Line 1152...
        echo sparc-unknown-lynxos${UNAME_RELEASE}
        echo sparc-unknown-lynxos${UNAME_RELEASE}
        exit ;;
        exit ;;
    rs6000:LynxOS:2.*:*)
    rs6000:LynxOS:2.*:*)
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
        echo rs6000-unknown-lynxos${UNAME_RELEASE}
        exit ;;
        exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
        echo powerpc-unknown-lynxos${UNAME_RELEASE}
        exit ;;
        exit ;;
    SM[BE]S:UNIX_SV:*:*)
    SM[BE]S:UNIX_SV:*:*)
        echo mips-dde-sysv${UNAME_RELEASE}
        echo mips-dde-sysv${UNAME_RELEASE}
        exit ;;
        exit ;;
Line 1214... Line 1215...
        echo powerpc-apple-beos
        echo powerpc-apple-beos
        exit ;;
        exit ;;
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
        echo i586-pc-beos
        echo i586-pc-beos
        exit ;;
        exit ;;
 
    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
 
        echo i586-pc-haiku
 
        exit ;;
    SX-4:SUPER-UX:*:*)
    SX-4:SUPER-UX:*:*)
        echo sx4-nec-superux${UNAME_RELEASE}
        echo sx4-nec-superux${UNAME_RELEASE}
        exit ;;
        exit ;;
    SX-5:SUPER-UX:*:*)
    SX-5:SUPER-UX:*:*)
        echo sx5-nec-superux${UNAME_RELEASE}
        echo sx5-nec-superux${UNAME_RELEASE}
Line 1322... Line 1326...
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
        exit ;;
        exit ;;
    i*86:rdos:*:*)
    i*86:rdos:*:*)
        echo ${UNAME_MACHINE}-pc-rdos
        echo ${UNAME_MACHINE}-pc-rdos
        exit ;;
        exit ;;
 
    i*86:AROS:*:*)
 
        echo ${UNAME_MACHINE}-pc-aros
 
        exit ;;
esac
esac
 
 
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.