Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5413 in orxonox.OLD for trunk/config.guess


Ignore:
Timestamp:
Oct 20, 2005, 11:42:08 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: reverted to old revision 5409, removing the LIBTOOL-stuff with command:
svn merge . . -r HEAD:5409

Reason:
Timing:
Default:


real 1m1.111s
user 1m31.534s
sys 0m6.903s

LIBTOOL:


real 2m21.384s
user 3m12.141s
sys 0m36.896s

→ compileTime doubled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.guess

    r5410 r5413  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    5 
    6 timestamp='2005-05-27'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2004-03-12'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    1818# You should have received a copy of the GNU General Public License
    1919# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    21 # 02110-1301, USA.
     20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    2221#
    2322# As a special exception to the GNU General Public License, if you
     
    2524# configuration script generated by Autoconf, you may include it under
    2625# the same distribution terms that you use for the rest of that program.
    27 
    2826
    2927# Originally written by Per Bothner <per@bothner.com>.
     
    5654
    5755Originally written by Per Bothner.
    58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    5957Free Software Foundation, Inc.
    6058
     
    6967  case $1 in
    7068    --time-stamp | --time* | -t )
    71        echo "$timestamp" ; exit ;;
     69       echo "$timestamp" ; exit 0 ;;
    7270    --version | -v )
    73        echo "$version" ; exit ;;
     71       echo "$version" ; exit 0 ;;
    7472    --help | --h* | -h )
    75        echo "$usage"; exit ;;
     73       echo "$usage"; exit 0 ;;
    7674    -- )     # Stop option processing
    7775       shift; break ;;
     
    139137UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    140138
    141 if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
    142         eval $set_cc_for_build
    143         cat << EOF > $dummy.c
    144         #include <features.h>
    145         #ifdef __UCLIBC__
    146         # ifdef __UCLIBC_CONFIG_VERSION__
    147         LIBC=uclibc __UCLIBC_CONFIG_VERSION__
    148         # else
     139# Detect uclibc systems.
     140
     141LIBC="gnu"
     142if [ -f /usr/include/bits/uClibc_config.h ]
     143then
    149144        LIBC=uclibc
    150         # endif
    151         #else
    152         LIBC=gnu
    153         #endif
    154 EOF
    155         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
     145        if [[ -n `grep "#define __UCLIBC_CONFIG_VERSION__" /usr/include/bits/uClibc_config.h` ]]
     146        then
     147                UCLIBC_SUBVER=`sed -n "/#define __UCLIBC_CONFIG_VERSION__ /s///p" /usr/include/bits/uClibc_config.h`
     148                LIBC=$LIBC$UCLIBC_SUBVER
     149        fi
    156150fi
    157151
     
    216210        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    217211        echo "${machine}-${os}${release}"
    218         exit ;;
     212        exit 0 ;;
    219213    amd64:OpenBSD:*:*)
    220214        echo x86_64-unknown-openbsd${UNAME_RELEASE}
    221         exit ;;
     215        exit 0 ;;
    222216    amiga:OpenBSD:*:*)
    223217        echo m68k-unknown-openbsd${UNAME_RELEASE}
    224         exit ;;
     218        exit 0 ;;
     219    arc:OpenBSD:*:*)
     220        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     221        exit 0 ;;
    225222    cats:OpenBSD:*:*)
    226223        echo arm-unknown-openbsd${UNAME_RELEASE}
    227         exit ;;
     224        exit 0 ;;
    228225    hp300:OpenBSD:*:*)
    229226        echo m68k-unknown-openbsd${UNAME_RELEASE}
    230         exit ;;
    231     luna88k:OpenBSD:*:*)
    232         echo m88k-unknown-openbsd${UNAME_RELEASE}
    233         exit ;;
     227        exit 0 ;;
    234228    mac68k:OpenBSD:*:*)
    235229        echo m68k-unknown-openbsd${UNAME_RELEASE}
    236         exit ;;
     230        exit 0 ;;
    237231    macppc:OpenBSD:*:*)
    238232        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    239         exit ;;
     233        exit 0 ;;
    240234    mvme68k:OpenBSD:*:*)
    241235        echo m68k-unknown-openbsd${UNAME_RELEASE}
    242         exit ;;
     236        exit 0 ;;
    243237    mvme88k:OpenBSD:*:*)
    244238        echo m88k-unknown-openbsd${UNAME_RELEASE}
    245         exit ;;
     239        exit 0 ;;
    246240    mvmeppc:OpenBSD:*:*)
    247241        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    248         exit ;;
     242        exit 0 ;;
     243    pegasos:OpenBSD:*:*)
     244        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     245        exit 0 ;;
     246    pmax:OpenBSD:*:*)
     247        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     248        exit 0 ;;
    249249    sgi:OpenBSD:*:*)
    250         echo mips64-unknown-openbsd${UNAME_RELEASE}
    251         exit ;;
     250        echo mipseb-unknown-openbsd${UNAME_RELEASE}
     251        exit 0 ;;
    252252    sun3:OpenBSD:*:*)
    253253        echo m68k-unknown-openbsd${UNAME_RELEASE}
    254         exit ;;
     254        exit 0 ;;
     255    wgrisc:OpenBSD:*:*)
     256        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     257        exit 0 ;;
    255258    *:OpenBSD:*:*)
    256259        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    257         exit ;;
     260        exit 0 ;;
    258261    *:ekkoBSD:*:*)
    259262        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    260         exit ;;
     263        exit 0 ;;
    261264    macppc:MirBSD:*:*)
    262265        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    263         exit ;;
     266        exit 0 ;;
    264267    *:MirBSD:*:*)
    265268        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    266         exit ;;
     269        exit 0 ;;
    267270    alpha:OSF1:*:*)
    268271        case $UNAME_RELEASE in
     
    317320        # 1.2 uses "1.2" for uname -r.
    318321        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    319         exit ;;
     322        exit 0 ;;
     323    Alpha*:OpenVMS:*:*)
     324        echo alpha-hp-vms
     325        exit 0 ;;
    320326    Alpha\ *:Windows_NT*:*)
    321327        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    323329        # of the specific Alpha model?
    324330        echo alpha-pc-interix
    325         exit ;;
     331        exit 0 ;;
    326332    21064:Windows_NT:50:3)
    327333        echo alpha-dec-winnt3.5
    328         exit ;;
     334        exit 0 ;;
    329335    Amiga*:UNIX_System_V:4.0:*)
    330336        echo m68k-unknown-sysv4
    331         exit ;;
     337        exit 0;;
    332338    *:[Aa]miga[Oo][Ss]:*:*)
    333339        echo ${UNAME_MACHINE}-unknown-amigaos
    334         exit ;;
     340        exit 0 ;;
    335341    *:[Mm]orph[Oo][Ss]:*:*)
    336342        echo ${UNAME_MACHINE}-unknown-morphos
    337         exit ;;
     343        exit 0 ;;
    338344    *:OS/390:*:*)
    339345        echo i370-ibm-openedition
    340         exit ;;
    341     *:z/VM:*:*)
    342         echo s390-ibm-zvmoe
    343         exit ;;
     346        exit 0 ;;
    344347    *:OS400:*:*)
    345348        echo powerpc-ibm-os400
    346         exit ;;
     349        exit 0 ;;
    347350    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    348351        echo arm-acorn-riscix${UNAME_RELEASE}
    349         exit ;;
    350     arm:riscos:*:*|arm:RISCOS:*:*)
    351         echo arm-unknown-riscos
    352         exit ;;
     352        exit 0;;
    353353    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    354354        echo hppa1.1-hitachi-hiuxmpp
    355         exit ;;
     355        exit 0;;
    356356    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    357357        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    361361                echo pyramid-pyramid-bsd
    362362        fi
    363         exit ;;
     363        exit 0 ;;
    364364    NILE*:*:*:dcosx)
    365365        echo pyramid-pyramid-svr4
    366         exit ;;
     366        exit 0 ;;
    367367    DRS?6000:unix:4.0:6*)
    368368        echo sparc-icl-nx6
    369         exit ;;
    370     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
     369        exit 0 ;;
     370    DRS?6000:UNIX_SV:4.2*:7*)
    371371        case `/usr/bin/uname -p` in
    372             sparc) echo sparc-icl-nx7; exit ;;
     372            sparc) echo sparc-icl-nx7 && exit 0 ;;
    373373        esac ;;
    374374    sun4H:SunOS:5.*:*)
    375375        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    376         exit ;;
     376        exit 0 ;;
    377377    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    378378        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    379         exit ;;
     379        exit 0 ;;
    380380    i86pc:SunOS:5.*:*)
    381381        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    382         exit ;;
     382        exit 0 ;;
    383383    sun4*:SunOS:6*:*)
    384384        # According to config.sub, this is the proper way to canonicalize
     
    386386        # it's likely to be more like Solaris than SunOS4.
    387387        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    388         exit ;;
     388        exit 0 ;;
    389389    sun4*:SunOS:*:*)
    390390        case "`/usr/bin/arch -k`" in
     
    395395        # Japanese Language versions have a version number like `4.1.3-JL'.
    396396        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    397         exit ;;
     397        exit 0 ;;
    398398    sun3*:SunOS:*:*)
    399399        echo m68k-sun-sunos${UNAME_RELEASE}
    400         exit ;;
     400        exit 0 ;;
    401401    sun*:*:4.2BSD:*)
    402402        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    410410                ;;
    411411        esac
    412         exit ;;
     412        exit 0 ;;
    413413    aushp:SunOS:*:*)
    414414        echo sparc-auspex-sunos${UNAME_RELEASE}
    415         exit ;;
     415        exit 0 ;;
    416416    # The situation for MiNT is a little confusing.  The machine name
    417417    # can be virtually everything (everything which is not
     
    424424    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    425425        echo m68k-atari-mint${UNAME_RELEASE}
    426         exit ;;
     426        exit 0 ;;
    427427    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    428428        echo m68k-atari-mint${UNAME_RELEASE}
    429         exit ;;
     429        exit 0 ;;
    430430    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    431431        echo m68k-atari-mint${UNAME_RELEASE}
    432         exit ;;
     432        exit 0 ;;
    433433    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    434434        echo m68k-milan-mint${UNAME_RELEASE}
    435         exit ;;
     435        exit 0 ;;
    436436    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    437437        echo m68k-hades-mint${UNAME_RELEASE}
    438         exit ;;
     438        exit 0 ;;
    439439    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    440440        echo m68k-unknown-mint${UNAME_RELEASE}
    441         exit ;;
     441        exit 0 ;;
    442442    m68k:machten:*:*)
    443443        echo m68k-apple-machten${UNAME_RELEASE}
    444         exit ;;
     444        exit 0 ;;
    445445    powerpc:machten:*:*)
    446446        echo powerpc-apple-machten${UNAME_RELEASE}
    447         exit ;;
     447        exit 0 ;;
    448448    RISC*:Mach:*:*)
    449449        echo mips-dec-mach_bsd4.3
    450         exit ;;
     450        exit 0 ;;
    451451    RISC*:ULTRIX:*:*)
    452452        echo mips-dec-ultrix${UNAME_RELEASE}
    453         exit ;;
     453        exit 0 ;;
    454454    VAX*:ULTRIX*:*:*)
    455455        echo vax-dec-ultrix${UNAME_RELEASE}
    456         exit ;;
     456        exit 0 ;;
    457457    2020:CLIX:*:* | 2430:CLIX:*:*)
    458458        echo clipper-intergraph-clix${UNAME_RELEASE}
    459         exit ;;
     459        exit 0 ;;
    460460    mips:*:*:UMIPS | mips:*:*:RISCos)
    461461        eval $set_cc_for_build
     
    481481        }
    482482EOF
    483         $CC_FOR_BUILD -o $dummy $dummy.c &&
    484           dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
    485           SYSTEM_NAME=`$dummy $dummyarg` &&
    486             { echo "$SYSTEM_NAME"; exit; }
     483        $CC_FOR_BUILD -o $dummy $dummy.c \
     484          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     485          && exit 0
    487486        echo mips-mips-riscos${UNAME_RELEASE}
    488         exit ;;
     487        exit 0 ;;
    489488    Motorola:PowerMAX_OS:*:*)
    490489        echo powerpc-motorola-powermax
    491         exit ;;
     490        exit 0 ;;
    492491    Motorola:*:4.3:PL8-*)
    493492        echo powerpc-harris-powermax
    494         exit ;;
     493        exit 0 ;;
    495494    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    496495        echo powerpc-harris-powermax
    497         exit ;;
     496        exit 0 ;;
    498497    Night_Hawk:Power_UNIX:*:*)
    499498        echo powerpc-harris-powerunix
    500         exit ;;
     499        exit 0 ;;
    501500    m88k:CX/UX:7*:*)
    502501        echo m88k-harris-cxux7
    503         exit ;;
     502        exit 0 ;;
    504503    m88k:*:4*:R4*)
    505504        echo m88k-motorola-sysv4
    506         exit ;;
     505        exit 0 ;;
    507506    m88k:*:3*:R3*)
    508507        echo m88k-motorola-sysv3
    509         exit ;;
     508        exit 0 ;;
    510509    AViiON:dgux:*:*)
    511510        # DG/UX returns AViiON for all architectures
     
    523522            echo i586-dg-dgux${UNAME_RELEASE}
    524523        fi
    525         exit ;;
     524        exit 0 ;;
    526525    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    527526        echo m88k-dolphin-sysv3
    528         exit ;;
     527        exit 0 ;;
    529528    M88*:*:R3*:*)
    530529        # Delta 88k system running SVR3
    531530        echo m88k-motorola-sysv3
    532         exit ;;
     531        exit 0 ;;
    533532    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    534533        echo m88k-tektronix-sysv3
    535         exit ;;
     534        exit 0 ;;
    536535    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    537536        echo m68k-tektronix-bsd
    538         exit ;;
     537        exit 0 ;;
    539538    *:IRIX*:*:*)
    540539        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    541         exit ;;
     540        exit 0 ;;
    542541    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    543         echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
    544         exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
     542        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
     543        exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
    545544    i*86:AIX:*:*)
    546545        echo i386-ibm-aix
    547         exit ;;
     546        exit 0 ;;
    548547    ia64:AIX:*:*)
    549548        if [ -x /usr/bin/oslevel ] ; then
     
    553552        fi
    554553        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    555         exit ;;
     554        exit 0 ;;
    556555    *:AIX:2:3)
    557556        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    568567                        }
    569568EOF
    570                 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
    571                 then
    572                         echo "$SYSTEM_NAME"
    573                 else
    574                         echo rs6000-ibm-aix3.2.5
    575                 fi
     569                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     570                echo rs6000-ibm-aix3.2.5
    576571        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    577572                echo rs6000-ibm-aix3.2.4
     
    579574                echo rs6000-ibm-aix3.2
    580575        fi
    581         exit ;;
     576        exit 0 ;;
    582577    *:AIX:*:[45])
    583578        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     
    593588        fi
    594589        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    595         exit ;;
     590        exit 0 ;;
    596591    *:AIX:*:*)
    597592        echo rs6000-ibm-aix
    598         exit ;;
     593        exit 0 ;;
    599594    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    600595        echo romp-ibm-bsd4.4
    601         exit ;;
     596        exit 0 ;;
    602597    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    603598        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    604         exit ;;                             # report: romp-ibm BSD 4.3
     599        exit 0 ;;                           # report: romp-ibm BSD 4.3
    605600    *:BOSX:*:*)
    606601        echo rs6000-bull-bosx
    607         exit ;;
     602        exit 0 ;;
    608603    DPX/2?00:B.O.S.:*:*)
    609604        echo m68k-bull-sysv3
    610         exit ;;
     605        exit 0 ;;
    611606    9000/[34]??:4.3bsd:1.*:*)
    612607        echo m68k-hp-bsd
    613         exit ;;
     608        exit 0 ;;
    614609    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    615610        echo m68k-hp-bsd4.4
    616         exit ;;
     611        exit 0 ;;
    617612    9000/[34678]??:HP-UX:*:*)
    618613        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    678673            # avoid double evaluation of $set_cc_for_build
    679674            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    680 
    681             # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
    682             # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
    683             # generating 64-bit code.  GNU and HP use different nomenclature:
    684             #
    685             # $ CC_FOR_BUILD=cc ./config.guess
    686             # => hppa2.0w-hp-hpux11.23
    687             # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
    688             # => hppa64-hp-hpux11.23
    689 
    690             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
    691                 grep __LP64__ >/dev/null
     675            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
    692676            then
    693677                HP_ARCH="hppa2.0w"
     
    697681        fi
    698682        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    699         exit ;;
     683        exit 0 ;;
    700684    ia64:HP-UX:*:*)
    701685        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    702686        echo ia64-hp-hpux${HPUX_REV}
    703         exit ;;
     687        exit 0 ;;
    704688    3050*:HI-UX:*:*)
    705689        eval $set_cc_for_build
     
    729713        }
    730714EOF
    731         $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
    732                 { echo "$SYSTEM_NAME"; exit; }
     715        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    733716        echo unknown-hitachi-hiuxwe2
    734         exit ;;
     717        exit 0 ;;
    735718    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    736719        echo hppa1.1-hp-bsd
    737         exit ;;
     720        exit 0 ;;
    738721    9000/8??:4.3bsd:*:*)
    739722        echo hppa1.0-hp-bsd
    740         exit ;;
     723        exit 0 ;;
    741724    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    742725        echo hppa1.0-hp-mpeix
    743         exit ;;
     726        exit 0 ;;
    744727    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    745728        echo hppa1.1-hp-osf
    746         exit ;;
     729        exit 0 ;;
    747730    hp8??:OSF1:*:*)
    748731        echo hppa1.0-hp-osf
    749         exit ;;
     732        exit 0 ;;
    750733    i*86:OSF1:*:*)
    751734        if [ -x /usr/sbin/sysversion ] ; then
     
    754737            echo ${UNAME_MACHINE}-unknown-osf1
    755738        fi
    756         exit ;;
     739        exit 0 ;;
    757740    parisc*:Lites*:*:*)
    758741        echo hppa1.1-hp-lites
    759         exit ;;
     742        exit 0 ;;
    760743    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    761744        echo c1-convex-bsd
    762         exit ;;
     745        exit 0 ;;
    763746    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    764747        if getsysinfo -f scalar_acc
     
    766749        else echo c2-convex-bsd
    767750        fi
    768         exit ;;
     751        exit 0 ;;
    769752    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    770753        echo c34-convex-bsd
    771         exit ;;
     754        exit 0 ;;
    772755    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    773756        echo c38-convex-bsd
    774         exit ;;
     757        exit 0 ;;
    775758    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    776759        echo c4-convex-bsd
    777         exit ;;
     760        exit 0 ;;
    778761    CRAY*Y-MP:*:*:*)
    779762        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    780         exit ;;
     763        exit 0 ;;
    781764    CRAY*[A-Z]90:*:*:*)
    782765        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    784767              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    785768              -e 's/\.[^.]*$/.X/'
    786         exit ;;
     769        exit 0 ;;
    787770    CRAY*TS:*:*:*)
    788771        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    789         exit ;;
     772        exit 0 ;;
    790773    CRAY*T3E:*:*:*)
    791774        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    792         exit ;;
     775        exit 0 ;;
    793776    CRAY*SV1:*:*:*)
    794777        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    795         exit ;;
     778        exit 0 ;;
    796779    *:UNICOS/mp:*:*)
    797         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    798         exit ;;
     780        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     781        exit 0 ;;
    799782    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    800783        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    802785        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    803786        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    804         exit ;;
     787        exit 0 ;;
    805788    5000:UNIX_System_V:4.*:*)
    806789        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    807790        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    808791        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    809         exit ;;
     792        exit 0 ;;
    810793    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    811794        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    812         exit ;;
     795        exit 0 ;;
    813796    sparc*:BSD/OS:*:*)
    814797        echo sparc-unknown-bsdi${UNAME_RELEASE}
    815         exit ;;
     798        exit 0 ;;
    816799    *:BSD/OS:*:*)
    817800        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    818         exit ;;
     801        exit 0 ;;
    819802    *:FreeBSD:*:*)
    820         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    821         exit ;;
     803        # Determine whether the default compiler uses glibc.
     804        eval $set_cc_for_build
     805        sed 's/^        //' << EOF >$dummy.c
     806        #include <features.h>
     807        #if __GLIBC__ >= 2
     808        LIBC=gnu
     809        #else
     810        LIBC=
     811        #endif
     812EOF
     813        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     814        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
     815        # FreeBSD's kernel, but not the complete OS.
     816        case ${LIBC} in gnu) kernel_only='k' ;; esac
     817        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     818        exit 0 ;;
    822819    i*:CYGWIN*:*)
    823820        echo ${UNAME_MACHINE}-pc-cygwin
    824         exit ;;
     821        exit 0 ;;
    825822    i*:MINGW*:*)
    826823        echo ${UNAME_MACHINE}-pc-mingw32
    827         exit ;;
    828     i*:windows32*:*)
    829         # uname -m includes "-pc" on this system.
    830         echo ${UNAME_MACHINE}-mingw32
    831         exit ;;
     824        exit 0 ;;
    832825    i*:PW*:*)
    833826        echo ${UNAME_MACHINE}-pc-pw32
    834         exit ;;
     827        exit 0 ;;
    835828    x86:Interix*:[34]*)
    836829        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    837         exit ;;
     830        exit 0 ;;
    838831    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    839832        echo i${UNAME_MACHINE}-pc-mks
    840         exit ;;
     833        exit 0 ;;
    841834    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    842835        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    844837        # UNAME_MACHINE based on the output of uname instead of i386?
    845838        echo i586-pc-interix
    846         exit ;;
     839        exit 0 ;;
    847840    i*:UWIN*:*)
    848841        echo ${UNAME_MACHINE}-pc-uwin
    849         exit ;;
    850     amd64:CYGWIN*:*:*)
    851         echo x86_64-unknown-cygwin
    852         exit ;;
     842        exit 0 ;;
    853843    p*:CYGWIN*:*)
    854844        echo powerpcle-unknown-cygwin
    855         exit ;;
     845        exit 0 ;;
    856846    prep*:SunOS:5.*:*)
    857847        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    858         exit ;;
     848        exit 0 ;;
    859849    *:GNU:*:*)
    860850        # the GNU system
    861851        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    862         exit ;;
     852        exit 0 ;;
    863853    *:GNU/*:*:*)
    864854        # other systems with GNU libc and userland
    865855        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    866         exit ;;
     856        exit 0 ;;
    867857    i*86:Minix:*:*)
    868858        echo ${UNAME_MACHINE}-pc-minix
    869         exit ;;
     859        exit 0 ;;
    870860    arm*:Linux:*:*)
    871861        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    872         exit ;;
     862        exit 0 ;;
    873863    cris:Linux:*:*)
    874864        echo cris-axis-linux-${LIBC}
    875         exit ;;
    876     crisv32:Linux:*:*)
    877         echo crisv32-axis-linux-${LIBC}
    878         exit ;;
    879     frv:Linux:*:*)
    880         echo frv-unknown-linux-${LIBC}
    881         exit ;;
     865        exit 0 ;;
    882866    ia64:Linux:*:*)
    883867        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    884         exit ;;
     868        exit 0 ;;
    885869    m32r*:Linux:*:*)
    886870        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    887         exit ;;
     871        exit 0 ;;
    888872    m68*:Linux:*:*)
    889873        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    890         exit ;;
     874        exit 0 ;;
    891875    mips:Linux:*:*)
    892876        eval $set_cc_for_build
     
    906890EOF
    907891        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    908         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
     892        test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
    909893        ;;
    910894    mips64:Linux:*:*)
     
    925909EOF
    926910        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    927         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
     911        test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
    928912        ;;
    929913    ppc:Linux:*:*)
    930914        echo powerpc-unknown-linux-${LIBC}
    931         exit ;;
     915        exit 0 ;;
    932916    ppc64:Linux:*:*)
    933917        echo powerpc64-unknown-linux-${LIBC}
    934         exit ;;
     918        exit 0 ;;
    935919    alpha:Linux:*:*)
    936920        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    946930        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
    947931        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    948         exit ;;
     932        exit 0 ;;
    949933    parisc:Linux:*:* | hppa:Linux:*:*)
    950934        # Look for CPU level
     
    954938          *)    echo hppa-unknown-linux-${LIBC} ;;
    955939        esac
    956         exit ;;
     940        exit 0 ;;
    957941    parisc64:Linux:*:* | hppa64:Linux:*:*)
    958942        echo hppa64-unknown-linux-${LIBC}
    959         exit ;;
     943        exit 0 ;;
    960944    s390:Linux:*:* | s390x:Linux:*:*)
    961945        echo ${UNAME_MACHINE}-ibm-linux
    962         exit ;;
     946        exit 0 ;;
    963947    sh64*:Linux:*:*)
    964948        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    965         exit ;;
     949        exit 0 ;;
    966950    sh*:Linux:*:*)
    967951        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    968         exit ;;
     952        exit 0 ;;
    969953    sparc:Linux:*:* | sparc64:Linux:*:*)
    970954        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    971         exit ;;
     955        exit 0 ;;
    972956    x86_64:Linux:*:*)
    973957        echo x86_64-unknown-linux-${LIBC}
    974         exit ;;
     958        exit 0 ;;
    975959    i*86:Linux:*:*)
    976960        # The BFD linker knows what the default object file format is, so
     
    990974          a.out-i386-linux)
    991975                echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
    992                 exit ;;
     976                exit 0 ;;
    993977          coff-i386)
    994978                echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
    995                 exit ;;
     979                exit 0 ;;
    996980          "")
    997981                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    998982                # one that does not give us useful --help.
    999983                echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
    1000                 exit ;;
     984                exit 0 ;;
    1001985        esac
    1002         if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
     986        if [ $LIBC != "gnu" -o $LIBC != "gnulibc1" ];then echo "$TENTATIVE" && exit 0; fi
    1003987        # Determine whether the default compiler is a.out or elf
    1004988        eval $set_cc_for_build
     
    10271011EOF
    10281012        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    1029         test x"${LIBC}" != x && {
    1030                 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
    1031                 exit
    1032         }
    1033         test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
     1013        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
     1014        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    10341015        ;;
    10351016    i*86:DYNIX/ptx:4*:*)
     
    10381019        # sysname and nodename.
    10391020        echo i386-sequent-sysv4
    1040         exit ;;
     1021        exit 0 ;;
    10411022    i*86:UNIX_SV:4.2MP:2.*)
    10421023        # Unixware is an offshoot of SVR4, but it has its own version
     
    10461027        # Use sysv4.2uw... so that sysv4* matches it.
    10471028        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1048         exit ;;
     1029        exit 0 ;;
    10491030    i*86:OS/2:*:*)
    10501031        # If we were able to find `uname', then EMX Unix compatibility
    10511032        # is probably installed.
    10521033        echo ${UNAME_MACHINE}-pc-os2-emx
    1053         exit ;;
     1034        exit 0 ;;
    10541035    i*86:XTS-300:*:STOP)
    10551036        echo ${UNAME_MACHINE}-unknown-stop
    1056         exit ;;
     1037        exit 0 ;;
    10571038    i*86:atheos:*:*)
    10581039        echo ${UNAME_MACHINE}-unknown-atheos
    1059         exit ;;
    1060     i*86:syllable:*:*)
     1040        exit 0 ;;
     1041        i*86:syllable:*:*)
    10611042        echo ${UNAME_MACHINE}-pc-syllable
    1062         exit ;;
     1043        exit 0 ;;
    10631044    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    10641045        echo i386-unknown-lynxos${UNAME_RELEASE}
    1065         exit ;;
     1046        exit 0 ;;
    10661047    i*86:*DOS:*:*)
    10671048        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1068         exit ;;
     1049        exit 0 ;;
    10691050    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    10701051        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    10741055                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10751056        fi
    1076         exit ;;
    1077     i*86:*:5:[678]*)
    1078         # UnixWare 7.x, OpenUNIX and OpenServer 6.
     1057        exit 0 ;;
     1058    i*86:*:5:[78]*)
    10791059        case `/bin/uname -X | grep "^Machine"` in
    10801060            *486*)           UNAME_MACHINE=i486 ;;
     
    10831063        esac
    10841064        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1085         exit ;;
     1065        exit 0 ;;
    10861066    i*86:*:3.2:*)
    10871067        if test -f /usr/options/cb.name; then
     
    11011081                echo ${UNAME_MACHINE}-pc-sysv32
    11021082        fi
    1103         exit ;;
     1083        exit 0 ;;
    11041084    pc:*:*:*)
    11051085        # Left here for compatibility:
     
    11071087        # the processor, so we play safe by assuming i386.
    11081088        echo i386-pc-msdosdjgpp
    1109         exit ;;
     1089        exit 0 ;;
    11101090    Intel:Mach:3*:*)
    11111091        echo i386-pc-mach3
    1112         exit ;;
     1092        exit 0 ;;
    11131093    paragon:*:*:*)
    11141094        echo i860-intel-osf1
    1115         exit ;;
     1095        exit 0 ;;
    11161096    i860:*:4.*:*) # i860-SVR4
    11171097        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     
    11201100          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    11211101        fi
    1122         exit ;;
     1102        exit 0 ;;
    11231103    mini*:CTIX:SYS*5:*)
    11241104        # "miniframe"
    11251105        echo m68010-convergent-sysv
    1126         exit ;;
     1106        exit 0 ;;
    11271107    mc68k:UNIX:SYSTEM5:3.51m)
    11281108        echo m68k-convergent-sysv
    1129         exit ;;
     1109        exit 0 ;;
    11301110    M680?0:D-NIX:5.3:*)
    11311111        echo m68k-diab-dnix
    1132         exit ;;
    1133     M68*:*:R3V[5678]*:*)
    1134         test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    1135     3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
     1112        exit 0 ;;
     1113    M68*:*:R3V[567]*:*)
     1114        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
     1115    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
    11361116        OS_REL=''
    11371117        test -r /etc/.relid \
    11381118        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11391119        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1140           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1120          && echo i486-ncr-sysv4.3${OS_REL} && exit 0
    11411121        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1142           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1122          && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
    11431123    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11441124        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1145           && { echo i486-ncr-sysv4; exit; } ;;
     1125          && echo i486-ncr-sysv4 && exit 0 ;;
    11461126    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    11471127        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1148         exit ;;
     1128        exit 0 ;;
    11491129    mc68030:UNIX_System_V:4.*:*)
    11501130        echo m68k-atari-sysv4
    1151         exit ;;
     1131        exit 0 ;;
    11521132    TSUNAMI:LynxOS:2.*:*)
    11531133        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1154         exit ;;
     1134        exit 0 ;;
    11551135    rs6000:LynxOS:2.*:*)
    11561136        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1157         exit ;;
     1137        exit 0 ;;
    11581138    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11591139        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1160         exit ;;
     1140        exit 0 ;;
    11611141    SM[BE]S:UNIX_SV:*:*)
    11621142        echo mips-dde-sysv${UNAME_RELEASE}
    1163         exit ;;
     1143        exit 0 ;;
    11641144    RM*:ReliantUNIX-*:*:*)
    11651145        echo mips-sni-sysv4
    1166         exit ;;
     1146        exit 0 ;;
    11671147    RM*:SINIX-*:*:*)
    11681148        echo mips-sni-sysv4
    1169         exit ;;
     1149        exit 0 ;;
    11701150    *:SINIX-*:*:*)
    11711151        if uname -p 2>/dev/null >/dev/null ; then
     
    11751155                echo ns32k-sni-sysv
    11761156        fi
    1177         exit ;;
     1157        exit 0 ;;
    11781158    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11791159                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11801160        echo i586-unisys-sysv4
    1181         exit ;;
     1161        exit 0 ;;
    11821162    *:UNIX_System_V:4*:FTX*)
    11831163        # From Gerald Hewes <hewes@openmarket.com>.
    11841164        # How about differentiating between stratus architectures? -djm
    11851165        echo hppa1.1-stratus-sysv4
    1186         exit ;;
     1166        exit 0 ;;
    11871167    *:*:*:FTX*)
    11881168        # From seanf@swdc.stratus.com.
    11891169        echo i860-stratus-sysv4
    1190         exit ;;
    1191     i*86:VOS:*:*)
    1192         # From Paul.Green@stratus.com.
    1193         echo ${UNAME_MACHINE}-stratus-vos
    1194         exit ;;
     1170        exit 0 ;;
    11951171    *:VOS:*:*)
    11961172        # From Paul.Green@stratus.com.
    11971173        echo hppa1.1-stratus-vos
    1198         exit ;;
     1174        exit 0 ;;
    11991175    mc68*:A/UX:*:*)
    12001176        echo m68k-apple-aux${UNAME_RELEASE}
    1201         exit ;;
     1177        exit 0 ;;
    12021178    news*:NEWS-OS:6*:*)
    12031179        echo mips-sony-newsos6
    1204         exit ;;
     1180        exit 0 ;;
    12051181    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    12061182        if [ -d /usr/nec ]; then
     
    12091185                echo mips-unknown-sysv${UNAME_RELEASE}
    12101186        fi
    1211         exit ;;
     1187        exit 0 ;;
    12121188    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    12131189        echo powerpc-be-beos
    1214         exit ;;
     1190        exit 0 ;;
    12151191    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    12161192        echo powerpc-apple-beos
    1217         exit ;;
     1193        exit 0 ;;
    12181194    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    12191195        echo i586-pc-beos
    1220         exit ;;
     1196        exit 0 ;;
    12211197    SX-4:SUPER-UX:*:*)
    12221198        echo sx4-nec-superux${UNAME_RELEASE}
    1223         exit ;;
     1199        exit 0 ;;
    12241200    SX-5:SUPER-UX:*:*)
    12251201        echo sx5-nec-superux${UNAME_RELEASE}
    1226         exit ;;
     1202        exit 0 ;;
    12271203    SX-6:SUPER-UX:*:*)
    12281204        echo sx6-nec-superux${UNAME_RELEASE}
    1229         exit ;;
     1205        exit 0 ;;
    12301206    Power*:Rhapsody:*:*)
    12311207        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1232         exit ;;
     1208        exit 0 ;;
    12331209    *:Rhapsody:*:*)
    12341210        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1235         exit ;;
     1211        exit 0 ;;
    12361212    *:Darwin:*:*)
    1237         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1238         case $UNAME_PROCESSOR in
     1213        case `uname -p` in
    12391214            *86) UNAME_PROCESSOR=i686 ;;
    1240             unknown) UNAME_PROCESSOR=powerpc ;;
     1215            powerpc) UNAME_PROCESSOR=powerpc ;;
    12411216        esac
    12421217        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1243         exit ;;
     1218        exit 0 ;;
    12441219    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    12451220        UNAME_PROCESSOR=`uname -p`
     
    12491224        fi
    12501225        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1251         exit ;;
     1226        exit 0 ;;
    12521227    *:QNX:*:4*)
    12531228        echo i386-pc-qnx
    1254         exit ;;
    1255     NSE-?:NONSTOP_KERNEL:*:*)
    1256         echo nse-tandem-nsk${UNAME_RELEASE}
    1257         exit ;;
     1229        exit 0 ;;
    12581230    NSR-?:NONSTOP_KERNEL:*:*)
    12591231        echo nsr-tandem-nsk${UNAME_RELEASE}
    1260         exit ;;
     1232        exit 0 ;;
    12611233    *:NonStop-UX:*:*)
    12621234        echo mips-compaq-nonstopux
    1263         exit ;;
     1235        exit 0 ;;
    12641236    BS2000:POSIX*:*:*)
    12651237        echo bs2000-siemens-sysv
    1266         exit ;;
     1238        exit 0 ;;
    12671239    DS/*:UNIX_System_V:*:*)
    12681240        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1269         exit ;;
     1241        exit 0 ;;
    12701242    *:Plan9:*:*)
    12711243        # "uname -m" is not consistent, so use $cputype instead. 386
     
    12781250        fi
    12791251        echo ${UNAME_MACHINE}-unknown-plan9
    1280         exit ;;
     1252        exit 0 ;;
    12811253    *:TOPS-10:*:*)
    12821254        echo pdp10-unknown-tops10
    1283         exit ;;
     1255        exit 0 ;;
    12841256    *:TENEX:*:*)
    12851257        echo pdp10-unknown-tenex
    1286         exit ;;
     1258        exit 0 ;;
    12871259    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12881260        echo pdp10-dec-tops20
    1289         exit ;;
     1261        exit 0 ;;
    12901262    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12911263        echo pdp10-xkl-tops20
    1292         exit ;;
     1264        exit 0 ;;
    12931265    *:TOPS-20:*:*)
    12941266        echo pdp10-unknown-tops20
    1295         exit ;;
     1267        exit 0 ;;
    12961268    *:ITS:*:*)
    12971269        echo pdp10-unknown-its
    1298         exit ;;
     1270        exit 0 ;;
    12991271    SEI:*:*:SEIUX)
    13001272        echo mips-sei-seiux${UNAME_RELEASE}
    1301         exit ;;
     1273        exit 0 ;;
    13021274    *:DragonFly:*:*)
    13031275        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1304         exit ;;
    1305     *:*VMS:*:*)
    1306         UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1307         case "${UNAME_MACHINE}" in
    1308             A*) echo alpha-dec-vms ; exit ;;
    1309             I*) echo ia64-dec-vms ; exit ;;
    1310             V*) echo vax-dec-vms ; exit ;;
    1311         esac ;;
    1312     *:XENIX:*:SysV)
    1313         echo i386-pc-xenix
    1314         exit ;;
    1315     i*86:skyos:*:*)
    1316         echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
    1317         exit ;;
     1276        exit 0 ;;
    13181277esac
    13191278
     
    13471306
    13481307#if defined (__arm) && defined (__acorn) && defined (__unix)
    1349   printf ("arm-acorn-riscix\n"); exit (0);
     1308  printf ("arm-acorn-riscix"); exit (0);
    13501309#endif
    13511310
     
    14361395EOF
    14371396
    1438 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
    1439         { echo "$SYSTEM_NAME"; exit; }
     1397$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    14401398
    14411399# Apollos put the system type in the environment.
    14421400
    1443 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
     1401test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
    14441402
    14451403# Convex versions that predate uname can use getsysinfo(1)
     
    14501408    c1*)
    14511409        echo c1-convex-bsd
    1452         exit ;;
     1410        exit 0 ;;
    14531411    c2*)
    14541412        if getsysinfo -f scalar_acc
     
    14561414        else echo c2-convex-bsd
    14571415        fi
    1458         exit ;;
     1416        exit 0 ;;
    14591417    c34*)
    14601418        echo c34-convex-bsd
    1461         exit ;;
     1419        exit 0 ;;
    14621420    c38*)
    14631421        echo c38-convex-bsd
    1464         exit ;;
     1422        exit 0 ;;
    14651423    c4*)
    14661424        echo c4-convex-bsd
    1467         exit ;;
     1425        exit 0 ;;
    14681426    esac
    14691427fi
     
    14761434download the most up to date version of the config scripts from
    14771435
    1478   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
    1479 and
    1480   http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
     1436    ftp://ftp.gnu.org/pub/gnu/config/
    14811437
    14821438If the version you run ($0) is already up to date, please
Note: See TracChangeset for help on using the changeset viewer.