Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3 in downloads for config.guess


Ignore:
Timestamp:
Oct 9, 2007, 6:41:19 PM (17 years ago)
Author:
anonymous
Message:

=update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config.guess

    r1 r3  
    44#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    55
    6 timestamp='2005-04-22'
     6timestamp='2005-08-03'
    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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     21# 02110-1301, USA.
    2122#
    2223# As a special exception to the GNU General Public License, if you
     
    2425# configuration script generated by Autoconf, you may include it under
    2526# the same distribution terms that you use for the rest of that program.
     27
    2628
    2729# Originally written by Per Bothner <per@bothner.com>.
     
    6769  case $1 in
    6870    --time-stamp | --time* | -t )
    69        echo "$timestamp" ; exit 0 ;;
     71       echo "$timestamp" ; exit ;;
    7072    --version | -v )
    71        echo "$version" ; exit 0 ;;
     73       echo "$version" ; exit ;;
    7274    --help | --h* | -h )
    73        echo "$usage"; exit 0 ;;
     75       echo "$usage"; exit ;;
    7476    -- )     # Stop option processing
    7577       shift; break ;;
     
    124126 ,,*)   CC_FOR_BUILD=$CC ;;
    125127 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     128esac ; set_cc_for_build= ;'
    127129
    128130# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    197199        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    198200        echo "${machine}-${os}${release}"
    199         exit 0 ;;
    200     amd64:OpenBSD:*:*)
    201         echo x86_64-unknown-openbsd${UNAME_RELEASE}
    202         exit 0 ;;
    203     amiga:OpenBSD:*:*)
    204         echo m68k-unknown-openbsd${UNAME_RELEASE}
    205         exit 0 ;;
    206     cats:OpenBSD:*:*)
    207         echo arm-unknown-openbsd${UNAME_RELEASE}
    208         exit 0 ;;
    209     hp300:OpenBSD:*:*)
    210         echo m68k-unknown-openbsd${UNAME_RELEASE}
    211         exit 0 ;;
    212     luna88k:OpenBSD:*:*)
    213         echo m88k-unknown-openbsd${UNAME_RELEASE}
    214         exit 0 ;;
    215     mac68k:OpenBSD:*:*)
    216         echo m68k-unknown-openbsd${UNAME_RELEASE}
    217         exit 0 ;;
    218     macppc:OpenBSD:*:*)
    219         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    220         exit 0 ;;
    221     mvme68k:OpenBSD:*:*)
    222         echo m68k-unknown-openbsd${UNAME_RELEASE}
    223         exit 0 ;;
    224     mvme88k:OpenBSD:*:*)
    225         echo m88k-unknown-openbsd${UNAME_RELEASE}
    226         exit 0 ;;
    227     mvmeppc:OpenBSD:*:*)
    228         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    229         exit 0 ;;
    230     sgi:OpenBSD:*:*)
    231         echo mips64-unknown-openbsd${UNAME_RELEASE}
    232         exit 0 ;;
    233     sun3:OpenBSD:*:*)
    234         echo m68k-unknown-openbsd${UNAME_RELEASE}
    235         exit 0 ;;
     201        exit ;;
    236202    *:OpenBSD:*:*)
    237         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    238         exit 0 ;;
     203        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     204        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     205        exit ;;
    239206    *:ekkoBSD:*:*)
    240207        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    241         exit 0 ;;
     208        exit ;;
    242209    macppc:MirBSD:*:*)
    243210        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    244         exit 0 ;;
     211        exit ;;
    245212    *:MirBSD:*:*)
    246213        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    247         exit 0 ;;
     214        exit ;;
    248215    alpha:OSF1:*:*)
    249216        case $UNAME_RELEASE in
     
    298265        # 1.2 uses "1.2" for uname -r.
    299266        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    300         exit 0 ;;
     267        exit ;;
    301268    Alpha\ *:Windows_NT*:*)
    302269        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    304271        # of the specific Alpha model?
    305272        echo alpha-pc-interix
    306         exit 0 ;;
     273        exit ;;
    307274    21064:Windows_NT:50:3)
    308275        echo alpha-dec-winnt3.5
    309         exit 0 ;;
     276        exit ;;
    310277    Amiga*:UNIX_System_V:4.0:*)
    311278        echo m68k-unknown-sysv4
    312         exit 0;;
     279        exit ;;
    313280    *:[Aa]miga[Oo][Ss]:*:*)
    314281        echo ${UNAME_MACHINE}-unknown-amigaos
    315         exit 0 ;;
     282        exit ;;
    316283    *:[Mm]orph[Oo][Ss]:*:*)
    317284        echo ${UNAME_MACHINE}-unknown-morphos
    318         exit 0 ;;
     285        exit ;;
    319286    *:OS/390:*:*)
    320287        echo i370-ibm-openedition
    321         exit 0 ;;
     288        exit ;;
    322289    *:z/VM:*:*)
    323290        echo s390-ibm-zvmoe
    324         exit 0 ;;
     291        exit ;;
    325292    *:OS400:*:*)
    326293        echo powerpc-ibm-os400
    327         exit 0 ;;
     294        exit ;;
    328295    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    329296        echo arm-acorn-riscix${UNAME_RELEASE}
    330         exit 0;;
     297        exit ;;
     298    arm:riscos:*:*|arm:RISCOS:*:*)
     299        echo arm-unknown-riscos
     300        exit ;;
    331301    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    332302        echo hppa1.1-hitachi-hiuxmpp
    333         exit 0;;
     303        exit ;;
    334304    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    335305        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    339309                echo pyramid-pyramid-bsd
    340310        fi
    341         exit 0 ;;
     311        exit ;;
    342312    NILE*:*:*:dcosx)
    343313        echo pyramid-pyramid-svr4
    344         exit 0 ;;
     314        exit ;;
    345315    DRS?6000:unix:4.0:6*)
    346316        echo sparc-icl-nx6
    347         exit 0 ;;
     317        exit ;;
    348318    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    349319        case `/usr/bin/uname -p` in
    350             sparc) echo sparc-icl-nx7 && exit 0 ;;
     320            sparc) echo sparc-icl-nx7; exit ;;
    351321        esac ;;
    352322    sun4H:SunOS:5.*:*)
    353323        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    354         exit 0 ;;
     324        exit ;;
    355325    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    356326        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    357         exit 0 ;;
     327        exit ;;
    358328    i86pc:SunOS:5.*:*)
    359329        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    360         exit 0 ;;
     330        exit ;;
    361331    sun4*:SunOS:6*:*)
    362332        # According to config.sub, this is the proper way to canonicalize
     
    364334        # it's likely to be more like Solaris than SunOS4.
    365335        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    366         exit 0 ;;
     336        exit ;;
    367337    sun4*:SunOS:*:*)
    368338        case "`/usr/bin/arch -k`" in
     
    373343        # Japanese Language versions have a version number like `4.1.3-JL'.
    374344        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    375         exit 0 ;;
     345        exit ;;
    376346    sun3*:SunOS:*:*)
    377347        echo m68k-sun-sunos${UNAME_RELEASE}
    378         exit 0 ;;
     348        exit ;;
    379349    sun*:*:4.2BSD:*)
    380350        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    388358                ;;
    389359        esac
    390         exit 0 ;;
     360        exit ;;
    391361    aushp:SunOS:*:*)
    392362        echo sparc-auspex-sunos${UNAME_RELEASE}
    393         exit 0 ;;
     363        exit ;;
    394364    # The situation for MiNT is a little confusing.  The machine name
    395365    # can be virtually everything (everything which is not
     
    402372    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    403373        echo m68k-atari-mint${UNAME_RELEASE}
    404         exit 0 ;;
     374        exit ;;
    405375    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    406376        echo m68k-atari-mint${UNAME_RELEASE}
    407         exit 0 ;;
     377        exit ;;
    408378    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    409379        echo m68k-atari-mint${UNAME_RELEASE}
    410         exit 0 ;;
     380        exit ;;
    411381    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    412382        echo m68k-milan-mint${UNAME_RELEASE}
    413         exit 0 ;;
     383        exit ;;
    414384    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    415385        echo m68k-hades-mint${UNAME_RELEASE}
    416         exit 0 ;;
     386        exit ;;
    417387    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    418388        echo m68k-unknown-mint${UNAME_RELEASE}
    419         exit 0 ;;
     389        exit ;;
    420390    m68k:machten:*:*)
    421391        echo m68k-apple-machten${UNAME_RELEASE}
    422         exit 0 ;;
     392        exit ;;
    423393    powerpc:machten:*:*)
    424394        echo powerpc-apple-machten${UNAME_RELEASE}
    425         exit 0 ;;
     395        exit ;;
    426396    RISC*:Mach:*:*)
    427397        echo mips-dec-mach_bsd4.3
    428         exit 0 ;;
     398        exit ;;
    429399    RISC*:ULTRIX:*:*)
    430400        echo mips-dec-ultrix${UNAME_RELEASE}
    431         exit 0 ;;
     401        exit ;;
    432402    VAX*:ULTRIX*:*:*)
    433403        echo vax-dec-ultrix${UNAME_RELEASE}
    434         exit 0 ;;
     404        exit ;;
    435405    2020:CLIX:*:* | 2430:CLIX:*:*)
    436406        echo clipper-intergraph-clix${UNAME_RELEASE}
    437         exit 0 ;;
     407        exit ;;
    438408    mips:*:*:UMIPS | mips:*:*:RISCos)
    439409        eval $set_cc_for_build
     
    459429        }
    460430EOF
    461         $CC_FOR_BUILD -o $dummy $dummy.c \
    462           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    463           && exit 0
     431        $CC_FOR_BUILD -o $dummy $dummy.c &&
     432          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     433          SYSTEM_NAME=`$dummy $dummyarg` &&
     434            { echo "$SYSTEM_NAME"; exit; }
    464435        echo mips-mips-riscos${UNAME_RELEASE}
    465         exit 0 ;;
     436        exit ;;
    466437    Motorola:PowerMAX_OS:*:*)
    467438        echo powerpc-motorola-powermax
    468         exit 0 ;;
     439        exit ;;
    469440    Motorola:*:4.3:PL8-*)
    470441        echo powerpc-harris-powermax
    471         exit 0 ;;
     442        exit ;;
    472443    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    473444        echo powerpc-harris-powermax
    474         exit 0 ;;
     445        exit ;;
    475446    Night_Hawk:Power_UNIX:*:*)
    476447        echo powerpc-harris-powerunix
    477         exit 0 ;;
     448        exit ;;
    478449    m88k:CX/UX:7*:*)
    479450        echo m88k-harris-cxux7
    480         exit 0 ;;
     451        exit ;;
    481452    m88k:*:4*:R4*)
    482453        echo m88k-motorola-sysv4
    483         exit 0 ;;
     454        exit ;;
    484455    m88k:*:3*:R3*)
    485456        echo m88k-motorola-sysv3
    486         exit 0 ;;
     457        exit ;;
    487458    AViiON:dgux:*:*)
    488459        # DG/UX returns AViiON for all architectures
     
    500471            echo i586-dg-dgux${UNAME_RELEASE}
    501472        fi
    502         exit 0 ;;
     473        exit ;;
    503474    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    504475        echo m88k-dolphin-sysv3
    505         exit 0 ;;
     476        exit ;;
    506477    M88*:*:R3*:*)
    507478        # Delta 88k system running SVR3
    508479        echo m88k-motorola-sysv3
    509         exit 0 ;;
     480        exit ;;
    510481    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    511482        echo m88k-tektronix-sysv3
    512         exit 0 ;;
     483        exit ;;
    513484    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    514485        echo m68k-tektronix-bsd
    515         exit 0 ;;
     486        exit ;;
    516487    *:IRIX*:*:*)
    517488        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    518         exit 0 ;;
     489        exit ;;
    519490    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    520         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    521         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     491        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     492        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    522493    i*86:AIX:*:*)
    523494        echo i386-ibm-aix
    524         exit 0 ;;
     495        exit ;;
    525496    ia64:AIX:*:*)
    526497        if [ -x /usr/bin/oslevel ] ; then
     
    530501        fi
    531502        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    532         exit 0 ;;
     503        exit ;;
    533504    *:AIX:2:3)
    534505        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    545516                        }
    546517EOF
    547                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    548                 echo rs6000-ibm-aix3.2.5
     518                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     519                then
     520                        echo "$SYSTEM_NAME"
     521                else
     522                        echo rs6000-ibm-aix3.2.5
     523                fi
    549524        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    550525                echo rs6000-ibm-aix3.2.4
     
    552527                echo rs6000-ibm-aix3.2
    553528        fi
    554         exit 0 ;;
     529        exit ;;
    555530    *:AIX:*:[45])
    556531        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     
    566541        fi
    567542        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    568         exit 0 ;;
     543        exit ;;
    569544    *:AIX:*:*)
    570545        echo rs6000-ibm-aix
    571         exit 0 ;;
     546        exit ;;
    572547    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    573548        echo romp-ibm-bsd4.4
    574         exit 0 ;;
     549        exit ;;
    575550    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    576551        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    577         exit 0 ;;                           # report: romp-ibm BSD 4.3
     552        exit ;;                             # report: romp-ibm BSD 4.3
    578553    *:BOSX:*:*)
    579554        echo rs6000-bull-bosx
    580         exit 0 ;;
     555        exit ;;
    581556    DPX/2?00:B.O.S.:*:*)
    582557        echo m68k-bull-sysv3
    583         exit 0 ;;
     558        exit ;;
    584559    9000/[34]??:4.3bsd:1.*:*)
    585560        echo m68k-hp-bsd
    586         exit 0 ;;
     561        exit ;;
    587562    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    588563        echo m68k-hp-bsd4.4
    589         exit 0 ;;
     564        exit ;;
    590565    9000/[34678]??:HP-UX:*:*)
    591566        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    649624        if [ ${HP_ARCH} = "hppa2.0w" ]
    650625        then
    651             # avoid double evaluation of $set_cc_for_build
    652             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    653             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     626            eval $set_cc_for_build
     627
     628            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     629            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     630            # generating 64-bit code.  GNU and HP use different nomenclature:
     631            #
     632            # $ CC_FOR_BUILD=cc ./config.guess
     633            # => hppa2.0w-hp-hpux11.23
     634            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     635            # => hppa64-hp-hpux11.23
     636
     637            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     638                grep __LP64__ >/dev/null
    654639            then
    655640                HP_ARCH="hppa2.0w"
     
    659644        fi
    660645        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    661         exit 0 ;;
     646        exit ;;
    662647    ia64:HP-UX:*:*)
    663648        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    664649        echo ia64-hp-hpux${HPUX_REV}
    665         exit 0 ;;
     650        exit ;;
    666651    3050*:HI-UX:*:*)
    667652        eval $set_cc_for_build
     
    691676        }
    692677EOF
    693         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     678        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     679                { echo "$SYSTEM_NAME"; exit; }
    694680        echo unknown-hitachi-hiuxwe2
    695         exit 0 ;;
     681        exit ;;
    696682    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    697683        echo hppa1.1-hp-bsd
    698         exit 0 ;;
     684        exit ;;
    699685    9000/8??:4.3bsd:*:*)
    700686        echo hppa1.0-hp-bsd
    701         exit 0 ;;
     687        exit ;;
    702688    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    703689        echo hppa1.0-hp-mpeix
    704         exit 0 ;;
     690        exit ;;
    705691    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    706692        echo hppa1.1-hp-osf
    707         exit 0 ;;
     693        exit ;;
    708694    hp8??:OSF1:*:*)
    709695        echo hppa1.0-hp-osf
    710         exit 0 ;;
     696        exit ;;
    711697    i*86:OSF1:*:*)
    712698        if [ -x /usr/sbin/sysversion ] ; then
     
    715701            echo ${UNAME_MACHINE}-unknown-osf1
    716702        fi
    717         exit 0 ;;
     703        exit ;;
    718704    parisc*:Lites*:*:*)
    719705        echo hppa1.1-hp-lites
    720         exit 0 ;;
     706        exit ;;
    721707    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    722708        echo c1-convex-bsd
    723         exit 0 ;;
     709        exit ;;
    724710    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    725711        if getsysinfo -f scalar_acc
     
    727713        else echo c2-convex-bsd
    728714        fi
    729         exit 0 ;;
     715        exit ;;
    730716    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    731717        echo c34-convex-bsd
    732         exit 0 ;;
     718        exit ;;
    733719    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    734720        echo c38-convex-bsd
    735         exit 0 ;;
     721        exit ;;
    736722    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    737723        echo c4-convex-bsd
    738         exit 0 ;;
     724        exit ;;
    739725    CRAY*Y-MP:*:*:*)
    740726        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    741         exit 0 ;;
     727        exit ;;
    742728    CRAY*[A-Z]90:*:*:*)
    743729        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    745731              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    746732              -e 's/\.[^.]*$/.X/'
    747         exit 0 ;;
     733        exit ;;
    748734    CRAY*TS:*:*:*)
    749735        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    750         exit 0 ;;
     736        exit ;;
    751737    CRAY*T3E:*:*:*)
    752738        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    753         exit 0 ;;
     739        exit ;;
    754740    CRAY*SV1:*:*:*)
    755741        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    756         exit 0 ;;
     742        exit ;;
    757743    *:UNICOS/mp:*:*)
    758744        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    759         exit 0 ;;
     745        exit ;;
    760746    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    761747        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    763749        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    764750        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    765         exit 0 ;;
     751        exit ;;
    766752    5000:UNIX_System_V:4.*:*)
    767753        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    768754        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    769755        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    770         exit 0 ;;
     756        exit ;;
    771757    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    772758        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    773         exit 0 ;;
     759        exit ;;
    774760    sparc*:BSD/OS:*:*)
    775761        echo sparc-unknown-bsdi${UNAME_RELEASE}
    776         exit 0 ;;
     762        exit ;;
    777763    *:BSD/OS:*:*)
    778764        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    779         exit 0 ;;
     765        exit ;;
    780766    *:FreeBSD:*:*)
    781767        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    782         exit 0 ;;
     768        exit ;;
    783769    i*:CYGWIN*:*)
    784770        echo ${UNAME_MACHINE}-pc-cygwin
    785         exit 0 ;;
     771        exit ;;
    786772    i*:MINGW*:*)
    787773        echo ${UNAME_MACHINE}-pc-mingw32
    788         exit 0 ;;
     774        exit ;;
     775    i*:windows32*:*)
     776        # uname -m includes "-pc" on this system.
     777        echo ${UNAME_MACHINE}-mingw32
     778        exit ;;
    789779    i*:PW*:*)
    790780        echo ${UNAME_MACHINE}-pc-pw32
    791         exit 0 ;;
     781        exit ;;
    792782    x86:Interix*:[34]*)
    793783        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    794         exit 0 ;;
     784        exit ;;
    795785    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    796786        echo i${UNAME_MACHINE}-pc-mks
    797         exit 0 ;;
     787        exit ;;
    798788    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    799789        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    801791        # UNAME_MACHINE based on the output of uname instead of i386?
    802792        echo i586-pc-interix
    803         exit 0 ;;
     793        exit ;;
    804794    i*:UWIN*:*)
    805795        echo ${UNAME_MACHINE}-pc-uwin
    806         exit 0 ;;
    807     amd64:CYGWIN*:*:*)
     796        exit ;;
     797    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    808798        echo x86_64-unknown-cygwin
    809         exit 0 ;;
     799        exit ;;
    810800    p*:CYGWIN*:*)
    811801        echo powerpcle-unknown-cygwin
    812         exit 0 ;;
     802        exit ;;
    813803    prep*:SunOS:5.*:*)
    814804        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    815         exit 0 ;;
     805        exit ;;
    816806    *:GNU:*:*)
    817807        # the GNU system
    818808        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    819         exit 0 ;;
     809        exit ;;
    820810    *:GNU/*:*:*)
    821811        # other systems with GNU libc and userland
    822812        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    823         exit 0 ;;
     813        exit ;;
    824814    i*86:Minix:*:*)
    825815        echo ${UNAME_MACHINE}-pc-minix
    826         exit 0 ;;
     816        exit ;;
    827817    arm*:Linux:*:*)
    828818        echo ${UNAME_MACHINE}-unknown-linux-gnu
    829         exit 0 ;;
     819        exit ;;
    830820    cris:Linux:*:*)
    831821        echo cris-axis-linux-gnu
    832         exit 0 ;;
     822        exit ;;
    833823    crisv32:Linux:*:*)
    834824        echo crisv32-axis-linux-gnu
    835         exit 0 ;;
     825        exit ;;
    836826    frv:Linux:*:*)
    837827        echo frv-unknown-linux-gnu
    838         exit 0 ;;
     828        exit ;;
    839829    ia64:Linux:*:*)
    840830        echo ${UNAME_MACHINE}-unknown-linux-gnu
    841         exit 0 ;;
     831        exit ;;
    842832    m32r*:Linux:*:*)
    843833        echo ${UNAME_MACHINE}-unknown-linux-gnu
    844         exit 0 ;;
     834        exit ;;
    845835    m68*:Linux:*:*)
    846836        echo ${UNAME_MACHINE}-unknown-linux-gnu
    847         exit 0 ;;
     837        exit ;;
    848838    mips:Linux:*:*)
    849839        eval $set_cc_for_build
     
    863853EOF
    864854        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    865         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     855        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    866856        ;;
    867857    mips64:Linux:*:*)
     
    882872EOF
    883873        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    884         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     874        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    885875        ;;
     876    or32:Linux:*:*)
     877        echo or32-unknown-linux-gnu
     878        exit ;;
    886879    ppc:Linux:*:*)
    887880        echo powerpc-unknown-linux-gnu
    888         exit 0 ;;
     881        exit ;;
    889882    ppc64:Linux:*:*)
    890883        echo powerpc64-unknown-linux-gnu
    891         exit 0 ;;
     884        exit ;;
    892885    alpha:Linux:*:*)
    893886        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    903896        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    904897        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    905         exit 0 ;;
     898        exit ;;
    906899    parisc:Linux:*:* | hppa:Linux:*:*)
    907900        # Look for CPU level
     
    911904          *)    echo hppa-unknown-linux-gnu ;;
    912905        esac
    913         exit 0 ;;
     906        exit ;;
    914907    parisc64:Linux:*:* | hppa64:Linux:*:*)
    915908        echo hppa64-unknown-linux-gnu
    916         exit 0 ;;
     909        exit ;;
    917910    s390:Linux:*:* | s390x:Linux:*:*)
    918911        echo ${UNAME_MACHINE}-ibm-linux
    919         exit 0 ;;
     912        exit ;;
    920913    sh64*:Linux:*:*)
    921914        echo ${UNAME_MACHINE}-unknown-linux-gnu
    922         exit 0 ;;
     915        exit ;;
    923916    sh*:Linux:*:*)
    924917        echo ${UNAME_MACHINE}-unknown-linux-gnu
    925         exit 0 ;;
     918        exit ;;
    926919    sparc:Linux:*:* | sparc64:Linux:*:*)
    927920        echo ${UNAME_MACHINE}-unknown-linux-gnu
    928         exit 0 ;;
     921        exit ;;
    929922    x86_64:Linux:*:*)
    930923        echo x86_64-unknown-linux-gnu
    931         exit 0 ;;
     924        exit ;;
    932925    i*86:Linux:*:*)
    933926        # The BFD linker knows what the default object file format is, so
     
    947940          a.out-i386-linux)
    948941                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    949                 exit 0 ;;
     942                exit ;;
    950943          coff-i386)
    951944                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    952                 exit 0 ;;
     945                exit ;;
    953946          "")
    954947                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    955948                # one that does not give us useful --help.
    956949                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    957                 exit 0 ;;
     950                exit ;;
    958951        esac
    959952        # Determine whether the default compiler is a.out or elf
     
    983976EOF
    984977        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    985         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    986         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     978        test x"${LIBC}" != x && {
     979                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     980                exit
     981        }
     982        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
    987983        ;;
    988984    i*86:DYNIX/ptx:4*:*)
     
    991987        # sysname and nodename.
    992988        echo i386-sequent-sysv4
    993         exit 0 ;;
     989        exit ;;
    994990    i*86:UNIX_SV:4.2MP:2.*)
    995991        # Unixware is an offshoot of SVR4, but it has its own version
     
    999995        # Use sysv4.2uw... so that sysv4* matches it.
    1000996        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1001         exit 0 ;;
     997        exit ;;
    1002998    i*86:OS/2:*:*)
    1003999        # If we were able to find `uname', then EMX Unix compatibility
    10041000        # is probably installed.
    10051001        echo ${UNAME_MACHINE}-pc-os2-emx
    1006         exit 0 ;;
     1002        exit ;;
    10071003    i*86:XTS-300:*:STOP)
    10081004        echo ${UNAME_MACHINE}-unknown-stop
    1009         exit 0 ;;
     1005        exit ;;
    10101006    i*86:atheos:*:*)
    10111007        echo ${UNAME_MACHINE}-unknown-atheos
    1012         exit 0 ;;
    1013         i*86:syllable:*:*)
     1008        exit ;;
     1009    i*86:syllable:*:*)
    10141010        echo ${UNAME_MACHINE}-pc-syllable
    1015         exit 0 ;;
     1011        exit ;;
    10161012    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    10171013        echo i386-unknown-lynxos${UNAME_RELEASE}
    1018         exit 0 ;;
     1014        exit ;;
    10191015    i*86:*DOS:*:*)
    10201016        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1021         exit 0 ;;
     1017        exit ;;
    10221018    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    10231019        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    10271023                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10281024        fi
    1029         exit 0 ;;
    1030     i*86:*:5:[78]*)
     1025        exit ;;
     1026    i*86:*:5:[678]*)
     1027        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10311028        case `/bin/uname -X | grep "^Machine"` in
    10321029            *486*)           UNAME_MACHINE=i486 ;;
     
    10351032        esac
    10361033        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1037         exit 0 ;;
     1034        exit ;;
    10381035    i*86:*:3.2:*)
    10391036        if test -f /usr/options/cb.name; then
     
    10531050                echo ${UNAME_MACHINE}-pc-sysv32
    10541051        fi
    1055         exit 0 ;;
     1052        exit ;;
    10561053    pc:*:*:*)
    10571054        # Left here for compatibility:
     
    10591056        # the processor, so we play safe by assuming i386.
    10601057        echo i386-pc-msdosdjgpp
    1061         exit 0 ;;
     1058        exit ;;
    10621059    Intel:Mach:3*:*)
    10631060        echo i386-pc-mach3
    1064         exit 0 ;;
     1061        exit ;;
    10651062    paragon:*:*:*)
    10661063        echo i860-intel-osf1
    1067         exit 0 ;;
     1064        exit ;;
    10681065    i860:*:4.*:*) # i860-SVR4
    10691066        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     
    10721069          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    10731070        fi
    1074         exit 0 ;;
     1071        exit ;;
    10751072    mini*:CTIX:SYS*5:*)
    10761073        # "miniframe"
    10771074        echo m68010-convergent-sysv
    1078         exit 0 ;;
     1075        exit ;;
    10791076    mc68k:UNIX:SYSTEM5:3.51m)
    10801077        echo m68k-convergent-sysv
    1081         exit 0 ;;
     1078        exit ;;
    10821079    M680?0:D-NIX:5.3:*)
    10831080        echo m68k-diab-dnix
    1084         exit 0 ;;
     1081        exit ;;
    10851082    M68*:*:R3V[5678]*:*)
    1086         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
     1083        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    10871084    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)
    10881085        OS_REL=''
     
    10901087        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    10911088        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1092           && echo i486-ncr-sysv4.3${OS_REL} && exit 0
     1089          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    10931090        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1094           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
     1091          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    10951092    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    10961093        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1097           && echo i486-ncr-sysv4 && exit 0 ;;
     1094          && { echo i486-ncr-sysv4; exit; } ;;
    10981095    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    10991096        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1100         exit 0 ;;
     1097        exit ;;
    11011098    mc68030:UNIX_System_V:4.*:*)
    11021099        echo m68k-atari-sysv4
    1103         exit 0 ;;
     1100        exit ;;
    11041101    TSUNAMI:LynxOS:2.*:*)
    11051102        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1106         exit 0 ;;
     1103        exit ;;
    11071104    rs6000:LynxOS:2.*:*)
    11081105        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1109         exit 0 ;;
     1106        exit ;;
    11101107    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11111108        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1112         exit 0 ;;
     1109        exit ;;
    11131110    SM[BE]S:UNIX_SV:*:*)
    11141111        echo mips-dde-sysv${UNAME_RELEASE}
    1115         exit 0 ;;
     1112        exit ;;
    11161113    RM*:ReliantUNIX-*:*:*)
    11171114        echo mips-sni-sysv4
    1118         exit 0 ;;
     1115        exit ;;
    11191116    RM*:SINIX-*:*:*)
    11201117        echo mips-sni-sysv4
    1121         exit 0 ;;
     1118        exit ;;
    11221119    *:SINIX-*:*:*)
    11231120        if uname -p 2>/dev/null >/dev/null ; then
     
    11271124                echo ns32k-sni-sysv
    11281125        fi
    1129         exit 0 ;;
     1126        exit ;;
    11301127    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11311128                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11321129        echo i586-unisys-sysv4
    1133         exit 0 ;;
     1130        exit ;;
    11341131    *:UNIX_System_V:4*:FTX*)
    11351132        # From Gerald Hewes <hewes@openmarket.com>.
    11361133        # How about differentiating between stratus architectures? -djm
    11371134        echo hppa1.1-stratus-sysv4
    1138         exit 0 ;;
     1135        exit ;;
    11391136    *:*:*:FTX*)
    11401137        # From seanf@swdc.stratus.com.
    11411138        echo i860-stratus-sysv4
    1142         exit 0 ;;
     1139        exit ;;
    11431140    i*86:VOS:*:*)
    11441141        # From Paul.Green@stratus.com.
    11451142        echo ${UNAME_MACHINE}-stratus-vos
    1146         exit 0 ;;
     1143        exit ;;
    11471144    *:VOS:*:*)
    11481145        # From Paul.Green@stratus.com.
    11491146        echo hppa1.1-stratus-vos
    1150         exit 0 ;;
     1147        exit ;;
    11511148    mc68*:A/UX:*:*)
    11521149        echo m68k-apple-aux${UNAME_RELEASE}
    1153         exit 0 ;;
     1150        exit ;;
    11541151    news*:NEWS-OS:6*:*)
    11551152        echo mips-sony-newsos6
    1156         exit 0 ;;
     1153        exit ;;
    11571154    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11581155        if [ -d /usr/nec ]; then
     
    11611158                echo mips-unknown-sysv${UNAME_RELEASE}
    11621159        fi
    1163         exit 0 ;;
     1160        exit ;;
    11641161    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11651162        echo powerpc-be-beos
    1166         exit 0 ;;
     1163        exit ;;
    11671164    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    11681165        echo powerpc-apple-beos
    1169         exit 0 ;;
     1166        exit ;;
    11701167    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    11711168        echo i586-pc-beos
    1172         exit 0 ;;
     1169        exit ;;
    11731170    SX-4:SUPER-UX:*:*)
    11741171        echo sx4-nec-superux${UNAME_RELEASE}
    1175         exit 0 ;;
     1172        exit ;;
    11761173    SX-5:SUPER-UX:*:*)
    11771174        echo sx5-nec-superux${UNAME_RELEASE}
    1178         exit 0 ;;
     1175        exit ;;
    11791176    SX-6:SUPER-UX:*:*)
    11801177        echo sx6-nec-superux${UNAME_RELEASE}
    1181         exit 0 ;;
     1178        exit ;;
    11821179    Power*:Rhapsody:*:*)
    11831180        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1184         exit 0 ;;
     1181        exit ;;
    11851182    *:Rhapsody:*:*)
    11861183        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1187         exit 0 ;;
     1184        exit ;;
    11881185    *:Darwin:*:*)
    11891186        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     
    11931190        esac
    11941191        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1195         exit 0 ;;
     1192        exit ;;
    11961193    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    11971194        UNAME_PROCESSOR=`uname -p`
     
    12011198        fi
    12021199        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1203         exit 0 ;;
     1200        exit ;;
    12041201    *:QNX:*:4*)
    12051202        echo i386-pc-qnx
    1206         exit 0 ;;
     1203        exit ;;
    12071204    NSE-?:NONSTOP_KERNEL:*:*)
    12081205        echo nse-tandem-nsk${UNAME_RELEASE}
    1209         exit 0 ;;
     1206        exit ;;
    12101207    NSR-?:NONSTOP_KERNEL:*:*)
    12111208        echo nsr-tandem-nsk${UNAME_RELEASE}
    1212         exit 0 ;;
     1209        exit ;;
    12131210    *:NonStop-UX:*:*)
    12141211        echo mips-compaq-nonstopux
    1215         exit 0 ;;
     1212        exit ;;
    12161213    BS2000:POSIX*:*:*)
    12171214        echo bs2000-siemens-sysv
    1218         exit 0 ;;
     1215        exit ;;
    12191216    DS/*:UNIX_System_V:*:*)
    12201217        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1221         exit 0 ;;
     1218        exit ;;
    12221219    *:Plan9:*:*)
    12231220        # "uname -m" is not consistent, so use $cputype instead. 386
     
    12301227        fi
    12311228        echo ${UNAME_MACHINE}-unknown-plan9
    1232         exit 0 ;;
     1229        exit ;;
    12331230    *:TOPS-10:*:*)
    12341231        echo pdp10-unknown-tops10
    1235         exit 0 ;;
     1232        exit ;;
    12361233    *:TENEX:*:*)
    12371234        echo pdp10-unknown-tenex
    1238         exit 0 ;;
     1235        exit ;;
    12391236    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12401237        echo pdp10-dec-tops20
    1241         exit 0 ;;
     1238        exit ;;
    12421239    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12431240        echo pdp10-xkl-tops20
    1244         exit 0 ;;
     1241        exit ;;
    12451242    *:TOPS-20:*:*)
    12461243        echo pdp10-unknown-tops20
    1247         exit 0 ;;
     1244        exit ;;
    12481245    *:ITS:*:*)
    12491246        echo pdp10-unknown-its
    1250         exit 0 ;;
     1247        exit ;;
    12511248    SEI:*:*:SEIUX)
    12521249        echo mips-sei-seiux${UNAME_RELEASE}
    1253         exit 0 ;;
     1250        exit ;;
    12541251    *:DragonFly:*:*)
    12551252        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1256         exit 0 ;;
     1253        exit ;;
    12571254    *:*VMS:*:*)
    12581255        UNAME_MACHINE=`(uname -p) 2>/dev/null`
    12591256        case "${UNAME_MACHINE}" in
    1260             A*) echo alpha-dec-vms && exit 0 ;;
    1261             I*) echo ia64-dec-vms && exit 0 ;;
    1262             V*) echo vax-dec-vms && exit 0 ;;
     1257            A*) echo alpha-dec-vms ; exit ;;
     1258            I*) echo ia64-dec-vms ; exit ;;
     1259            V*) echo vax-dec-vms ; exit ;;
    12631260        esac ;;
    12641261    *:XENIX:*:SysV)
    12651262        echo i386-pc-xenix
    1266         exit 0 ;;
     1263        exit ;;
     1264    i*86:skyos:*:*)
     1265        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1266        exit ;;
    12671267esac
    12681268
     
    12961296
    12971297#if defined (__arm) && defined (__acorn) && defined (__unix)
    1298   printf ("arm-acorn-riscix"); exit (0);
     1298  printf ("arm-acorn-riscix\n"); exit (0);
    12991299#endif
    13001300
     
    13851385EOF
    13861386
    1387 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1387$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1388        { echo "$SYSTEM_NAME"; exit; }
    13881389
    13891390# Apollos put the system type in the environment.
    13901391
    1391 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
     1392test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    13921393
    13931394# Convex versions that predate uname can use getsysinfo(1)
     
    13981399    c1*)
    13991400        echo c1-convex-bsd
    1400         exit 0 ;;
     1401        exit ;;
    14011402    c2*)
    14021403        if getsysinfo -f scalar_acc
     
    14041405        else echo c2-convex-bsd
    14051406        fi
    1406         exit 0 ;;
     1407        exit ;;
    14071408    c34*)
    14081409        echo c34-convex-bsd
    1409         exit 0 ;;
     1410        exit ;;
    14101411    c38*)
    14111412        echo c38-convex-bsd
    1412         exit 0 ;;
     1413        exit ;;
    14131414    c4*)
    14141415        echo c4-convex-bsd
    1415         exit 0 ;;
     1416        exit ;;
    14161417    esac
    14171418fi
Note: See TracChangeset for help on using the changeset viewer.