Ignore:
Timestamp:
Sep 15, 2006, 7:09:38 AM (19 years ago)
Author:
bird
Message:

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/config/config.guess

    r151 r503  
    1 #! /bin/sh
    2 # Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    5 
    6 timestamp='2004-03-03'
     1
     2timestamp='2006-03-13'
    73
    84# This file is free software; you can redistribute it and/or modify it
     
    1814# You should have received a copy of the GNU General Public License
    1915# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     16# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     17# 02110-1301, USA.
    2118#
    2219# As a special exception to the GNU General Public License, if you
     
    2421# configuration script generated by Autoconf, you may include it under
    2522# the same distribution terms that you use for the rest of that program.
     23
    2624
    2725# Originally written by Per Bothner <per@bothner.com>.
     
    5452
    5553Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     54Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    5755Free Software Foundation, Inc.
    5856
     
    6765  case $1 in
    6866    --time-stamp | --time* | -t )
    69        echo "$timestamp" ; exit 0 ;;
     67       echo "$timestamp" ; exit ;;
    7068    --version | -v )
    71        echo "$version" ; exit 0 ;;
     69       echo "$version" ; exit ;;
    7270    --help | --h* | -h )
    73        echo "$usage"; exit 0 ;;
     71       echo "$usage"; exit ;;
    7472    -- )     # Stop option processing
    7573       shift; break ;;
     
    105103trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    106104: ${TMPDIR=/tmp} ;
    107  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     105 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108106 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    109107 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
     
    124122 ,,*)   CC_FOR_BUILD=$CC ;;
    125123 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     124esac ; set_cc_for_build= ;'
    127125
    128126# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    197195        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    198196        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     arc:OpenBSD:*:*)
    207         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    208         exit 0 ;;
    209     cats:OpenBSD:*:*)
    210         echo arm-unknown-openbsd${UNAME_RELEASE}
    211         exit 0 ;;
    212     hp300:OpenBSD:*:*)
    213         echo m68k-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     pegasos:OpenBSD:*:*)
    231         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    232         exit 0 ;;
    233     pmax:OpenBSD:*:*)
    234         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    235         exit 0 ;;
    236     sgi:OpenBSD:*:*)
    237         echo mipseb-unknown-openbsd${UNAME_RELEASE}
    238         exit 0 ;;
    239     sun3:OpenBSD:*:*)
    240         echo m68k-unknown-openbsd${UNAME_RELEASE}
    241         exit 0 ;;
    242     wgrisc:OpenBSD:*:*)
    243         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    244         exit 0 ;;
     197        exit ;;
    245198    *:OpenBSD:*:*)
    246         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    247         exit 0 ;;
     199        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     200        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     201        exit ;;
    248202    *:ekkoBSD:*:*)
    249203        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    250         exit 0 ;;
     204        exit ;;
     205    *:SolidBSD:*:*)
     206        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     207        exit ;;
    251208    macppc:MirBSD:*:*)
    252209        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    253         exit 0 ;;
     210        exit ;;
    254211    *:MirBSD:*:*)
    255212        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    256         exit 0 ;;
     213        exit ;;
    257214    alpha:OSF1:*:*)
    258215        case $UNAME_RELEASE in
     
    307264        # 1.2 uses "1.2" for uname -r.
    308265        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    309         exit 0 ;;
    310     Alpha*:OpenVMS:*:*)
    311         echo alpha-hp-vms
    312         exit 0 ;;
     266        exit ;;
    313267    Alpha\ *:Windows_NT*:*)
    314268        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    316270        # of the specific Alpha model?
    317271        echo alpha-pc-interix
    318         exit 0 ;;
     272        exit ;;
    319273    21064:Windows_NT:50:3)
    320274        echo alpha-dec-winnt3.5
    321         exit 0 ;;
     275        exit ;;
    322276    Amiga*:UNIX_System_V:4.0:*)
    323277        echo m68k-unknown-sysv4
    324         exit 0;;
     278        exit ;;
    325279    *:[Aa]miga[Oo][Ss]:*:*)
    326280        echo ${UNAME_MACHINE}-unknown-amigaos
    327         exit 0 ;;
     281        exit ;;
    328282    *:[Mm]orph[Oo][Ss]:*:*)
    329283        echo ${UNAME_MACHINE}-unknown-morphos
    330         exit 0 ;;
     284        exit ;;
    331285    *:OS/390:*:*)
    332286        echo i370-ibm-openedition
    333         exit 0 ;;
     287        exit ;;
     288    *:z/VM:*:*)
     289        echo s390-ibm-zvmoe
     290        exit ;;
    334291    *:OS400:*:*)
    335292        echo powerpc-ibm-os400
    336         exit 0 ;;
     293        exit ;;
    337294    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    338295        echo arm-acorn-riscix${UNAME_RELEASE}
    339         exit 0;;
     296        exit ;;
     297    arm:riscos:*:*|arm:RISCOS:*:*)
     298        echo arm-unknown-riscos
     299        exit ;;
    340300    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    341301        echo hppa1.1-hitachi-hiuxmpp
    342         exit 0;;
     302        exit ;;
    343303    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    344304        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    348308                echo pyramid-pyramid-bsd
    349309        fi
    350         exit 0 ;;
     310        exit ;;
    351311    NILE*:*:*:dcosx)
    352312        echo pyramid-pyramid-svr4
    353         exit 0 ;;
     313        exit ;;
    354314    DRS?6000:unix:4.0:6*)
    355315        echo sparc-icl-nx6
    356         exit 0 ;;
    357     DRS?6000:UNIX_SV:4.2*:7*)
     316        exit ;;
     317    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    358318        case `/usr/bin/uname -p` in
    359             sparc) echo sparc-icl-nx7 && exit 0 ;;
     319            sparc) echo sparc-icl-nx7; exit ;;
    360320        esac ;;
    361321    sun4H:SunOS:5.*:*)
    362322        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    363         exit 0 ;;
     323        exit ;;
    364324    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    365325        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    366         exit 0 ;;
     326        exit ;;
    367327    i86pc:SunOS:5.*:*)
    368328        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    369         exit 0 ;;
     329        exit ;;
    370330    sun4*:SunOS:6*:*)
    371331        # According to config.sub, this is the proper way to canonicalize
     
    373333        # it's likely to be more like Solaris than SunOS4.
    374334        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    375         exit 0 ;;
     335        exit ;;
    376336    sun4*:SunOS:*:*)
    377337        case "`/usr/bin/arch -k`" in
     
    382342        # Japanese Language versions have a version number like `4.1.3-JL'.
    383343        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    384         exit 0 ;;
     344        exit ;;
    385345    sun3*:SunOS:*:*)
    386346        echo m68k-sun-sunos${UNAME_RELEASE}
    387         exit 0 ;;
     347        exit ;;
    388348    sun*:*:4.2BSD:*)
    389349        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    397357                ;;
    398358        esac
    399         exit 0 ;;
     359        exit ;;
    400360    aushp:SunOS:*:*)
    401361        echo sparc-auspex-sunos${UNAME_RELEASE}
    402         exit 0 ;;
     362        exit ;;
    403363    # The situation for MiNT is a little confusing.  The machine name
    404364    # can be virtually everything (everything which is not
     
    411371    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    412372        echo m68k-atari-mint${UNAME_RELEASE}
    413         exit 0 ;;
     373        exit ;;
    414374    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    415375        echo m68k-atari-mint${UNAME_RELEASE}
    416         exit 0 ;;
     376        exit ;;
    417377    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    418378        echo m68k-atari-mint${UNAME_RELEASE}
    419         exit 0 ;;
     379        exit ;;
    420380    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    421381        echo m68k-milan-mint${UNAME_RELEASE}
    422         exit 0 ;;
     382        exit ;;
    423383    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    424384        echo m68k-hades-mint${UNAME_RELEASE}
    425         exit 0 ;;
     385        exit ;;
    426386    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    427387        echo m68k-unknown-mint${UNAME_RELEASE}
    428         exit 0 ;;
     388        exit ;;
    429389    m68k:machten:*:*)
    430390        echo m68k-apple-machten${UNAME_RELEASE}
    431         exit 0 ;;
     391        exit ;;
    432392    powerpc:machten:*:*)
    433393        echo powerpc-apple-machten${UNAME_RELEASE}
    434         exit 0 ;;
     394        exit ;;
    435395    RISC*:Mach:*:*)
    436396        echo mips-dec-mach_bsd4.3
    437         exit 0 ;;
     397        exit ;;
    438398    RISC*:ULTRIX:*:*)
    439399        echo mips-dec-ultrix${UNAME_RELEASE}
    440         exit 0 ;;
     400        exit ;;
    441401    VAX*:ULTRIX*:*:*)
    442402        echo vax-dec-ultrix${UNAME_RELEASE}
    443         exit 0 ;;
     403        exit ;;
    444404    2020:CLIX:*:* | 2430:CLIX:*:*)
    445405        echo clipper-intergraph-clix${UNAME_RELEASE}
    446         exit 0 ;;
     406        exit ;;
    447407    mips:*:*:UMIPS | mips:*:*:RISCos)
    448408        eval $set_cc_for_build
     
    468428        }
    469429EOF
    470         $CC_FOR_BUILD -o $dummy $dummy.c \
    471           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    472           && exit 0
     430        $CC_FOR_BUILD -o $dummy $dummy.c &&
     431          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     432          SYSTEM_NAME=`$dummy $dummyarg` &&
     433            { echo "$SYSTEM_NAME"; exit; }
    473434        echo mips-mips-riscos${UNAME_RELEASE}
    474         exit 0 ;;
     435        exit ;;
    475436    Motorola:PowerMAX_OS:*:*)
    476437        echo powerpc-motorola-powermax
    477         exit 0 ;;
     438        exit ;;
    478439    Motorola:*:4.3:PL8-*)
    479440        echo powerpc-harris-powermax
    480         exit 0 ;;
     441        exit ;;
    481442    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    482443        echo powerpc-harris-powermax
    483         exit 0 ;;
     444        exit ;;
    484445    Night_Hawk:Power_UNIX:*:*)
    485446        echo powerpc-harris-powerunix
    486         exit 0 ;;
     447        exit ;;
    487448    m88k:CX/UX:7*:*)
    488449        echo m88k-harris-cxux7
    489         exit 0 ;;
     450        exit ;;
    490451    m88k:*:4*:R4*)
    491452        echo m88k-motorola-sysv4
    492         exit 0 ;;
     453        exit ;;
    493454    m88k:*:3*:R3*)
    494455        echo m88k-motorola-sysv3
    495         exit 0 ;;
     456        exit ;;
    496457    AViiON:dgux:*:*)
    497458        # DG/UX returns AViiON for all architectures
     
    509470            echo i586-dg-dgux${UNAME_RELEASE}
    510471        fi
    511         exit 0 ;;
     472        exit ;;
    512473    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    513474        echo m88k-dolphin-sysv3
    514         exit 0 ;;
     475        exit ;;
    515476    M88*:*:R3*:*)
    516477        # Delta 88k system running SVR3
    517478        echo m88k-motorola-sysv3
    518         exit 0 ;;
     479        exit ;;
    519480    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    520481        echo m88k-tektronix-sysv3
    521         exit 0 ;;
     482        exit ;;
    522483    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    523484        echo m68k-tektronix-bsd
    524         exit 0 ;;
     485        exit ;;
    525486    *:IRIX*:*:*)
    526487        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    527         exit 0 ;;
     488        exit ;;
    528489    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    529         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    530         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     490        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     491        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    531492    i*86:AIX:*:*)
    532493        echo i386-ibm-aix
    533         exit 0 ;;
     494        exit ;;
    534495    ia64:AIX:*:*)
    535496        if [ -x /usr/bin/oslevel ] ; then
     
    539500        fi
    540501        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    541         exit 0 ;;
     502        exit ;;
    542503    *:AIX:2:3)
    543504        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    554515                        }
    555516EOF
    556                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    557                 echo rs6000-ibm-aix3.2.5
     517                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     518                then
     519                        echo "$SYSTEM_NAME"
     520                else
     521                        echo rs6000-ibm-aix3.2.5
     522                fi
    558523        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    559524                echo rs6000-ibm-aix3.2.4
     
    561526                echo rs6000-ibm-aix3.2
    562527        fi
    563         exit 0 ;;
     528        exit ;;
    564529    *:AIX:*:[45])
    565530        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     
    575540        fi
    576541        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    577         exit 0 ;;
     542        exit ;;
    578543    *:AIX:*:*)
    579544        echo rs6000-ibm-aix
    580         exit 0 ;;
     545        exit ;;
    581546    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    582547        echo romp-ibm-bsd4.4
    583         exit 0 ;;
     548        exit ;;
    584549    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    585550        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    586         exit 0 ;;                           # report: romp-ibm BSD 4.3
     551        exit ;;                             # report: romp-ibm BSD 4.3
    587552    *:BOSX:*:*)
    588553        echo rs6000-bull-bosx
    589         exit 0 ;;
     554        exit ;;
    590555    DPX/2?00:B.O.S.:*:*)
    591556        echo m68k-bull-sysv3
    592         exit 0 ;;
     557        exit ;;
    593558    9000/[34]??:4.3bsd:1.*:*)
    594559        echo m68k-hp-bsd
    595         exit 0 ;;
     560        exit ;;
    596561    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    597562        echo m68k-hp-bsd4.4
    598         exit 0 ;;
     563        exit ;;
    599564    9000/[34678]??:HP-UX:*:*)
    600565        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    658623        if [ ${HP_ARCH} = "hppa2.0w" ]
    659624        then
    660             # avoid double evaluation of $set_cc_for_build
    661             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    662             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     625            eval $set_cc_for_build
     626
     627            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     628            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     629            # generating 64-bit code.  GNU and HP use different nomenclature:
     630            #
     631            # $ CC_FOR_BUILD=cc ./config.guess
     632            # => hppa2.0w-hp-hpux11.23
     633            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     634            # => hppa64-hp-hpux11.23
     635
     636            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     637                grep __LP64__ >/dev/null
    663638            then
    664639                HP_ARCH="hppa2.0w"
     
    668643        fi
    669644        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    670         exit 0 ;;
     645        exit ;;
    671646    ia64:HP-UX:*:*)
    672647        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    673648        echo ia64-hp-hpux${HPUX_REV}
    674         exit 0 ;;
     649        exit ;;
    675650    3050*:HI-UX:*:*)
    676651        eval $set_cc_for_build
     
    700675        }
    701676EOF
    702         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     677        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     678                { echo "$SYSTEM_NAME"; exit; }
    703679        echo unknown-hitachi-hiuxwe2
    704         exit 0 ;;
     680        exit ;;
    705681    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    706682        echo hppa1.1-hp-bsd
    707         exit 0 ;;
     683        exit ;;
    708684    9000/8??:4.3bsd:*:*)
    709685        echo hppa1.0-hp-bsd
    710         exit 0 ;;
     686        exit ;;
    711687    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    712688        echo hppa1.0-hp-mpeix
    713         exit 0 ;;
     689        exit ;;
    714690    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    715691        echo hppa1.1-hp-osf
    716         exit 0 ;;
     692        exit ;;
    717693    hp8??:OSF1:*:*)
    718694        echo hppa1.0-hp-osf
    719         exit 0 ;;
     695        exit ;;
    720696    i*86:OSF1:*:*)
    721697        if [ -x /usr/sbin/sysversion ] ; then
     
    724700            echo ${UNAME_MACHINE}-unknown-osf1
    725701        fi
    726         exit 0 ;;
     702        exit ;;
    727703    parisc*:Lites*:*:*)
    728704        echo hppa1.1-hp-lites
    729         exit 0 ;;
     705        exit ;;
    730706    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    731707        echo c1-convex-bsd
    732         exit 0 ;;
     708        exit ;;
    733709    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    734710        if getsysinfo -f scalar_acc
     
    736712        else echo c2-convex-bsd
    737713        fi
    738         exit 0 ;;
     714        exit ;;
    739715    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    740716        echo c34-convex-bsd
    741         exit 0 ;;
     717        exit ;;
    742718    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    743719        echo c38-convex-bsd
    744         exit 0 ;;
     720        exit ;;
    745721    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    746722        echo c4-convex-bsd
    747         exit 0 ;;
     723        exit ;;
    748724    CRAY*Y-MP:*:*:*)
    749725        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    750         exit 0 ;;
     726        exit ;;
    751727    CRAY*[A-Z]90:*:*:*)
    752728        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    754730              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    755731              -e 's/\.[^.]*$/.X/'
    756         exit 0 ;;
     732        exit ;;
    757733    CRAY*TS:*:*:*)
    758734        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    759         exit 0 ;;
     735        exit ;;
    760736    CRAY*T3E:*:*:*)
    761737        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    762         exit 0 ;;
     738        exit ;;
    763739    CRAY*SV1:*:*:*)
    764740        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    765         exit 0 ;;
     741        exit ;;
    766742    *:UNICOS/mp:*:*)
    767         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    768         exit 0 ;;
     743        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     744        exit ;;
    769745    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    770746        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    772748        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    773749        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    774         exit 0 ;;
     750        exit ;;
    775751    5000:UNIX_System_V:4.*:*)
    776752        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    777753        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    778754        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    779         exit 0 ;;
     755        exit ;;
    780756    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    781757        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    782         exit 0 ;;
     758        exit ;;
    783759    sparc*:BSD/OS:*:*)
    784760        echo sparc-unknown-bsdi${UNAME_RELEASE}
    785         exit 0 ;;
     761        exit ;;
    786762    *:BSD/OS:*:*)
    787763        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    788         exit 0 ;;
     764        exit ;;
    789765    *:FreeBSD:*:*)
    790         # Determine whether the default compiler uses glibc.
    791         eval $set_cc_for_build
    792         sed 's/^        //' << EOF >$dummy.c
    793         #include <features.h>
    794         #if __GLIBC__ >= 2
    795         LIBC=gnu
    796         #else
    797         LIBC=
    798         #endif
    799 EOF
    800         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    801         # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
    802         # FreeBSD's kernel, but not the complete OS.
    803         case ${LIBC} in gnu) kernel_only='k' ;; esac
    804         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    805         exit 0 ;;
     766        case ${UNAME_MACHINE} in
     767            pc98)
     768                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     769            *)
     770                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     771        esac
     772        exit ;;
    806773    i*:CYGWIN*:*)
    807774        echo ${UNAME_MACHINE}-pc-cygwin
    808         exit 0 ;;
     775        exit ;;
    809776    i*:MINGW*:*)
    810777        echo ${UNAME_MACHINE}-pc-mingw32
    811         exit 0 ;;
     778        exit ;;
     779    i*:windows32*:*)
     780        # uname -m includes "-pc" on this system.
     781        echo ${UNAME_MACHINE}-mingw32
     782        exit ;;
    812783    i*:PW*:*)
    813784        echo ${UNAME_MACHINE}-pc-pw32
    814         exit 0 ;;
    815     x86:Interix*:[34]*)
    816         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    817         exit 0 ;;
     785        exit ;;
     786    x86:Interix*:[345]*)
     787        echo i586-pc-interix${UNAME_RELEASE}
     788        exit ;;
     789    EM64T:Interix*:[345]*)
     790        echo x86_64-unknown-interix${UNAME_RELEASE}
     791        exit ;;
    818792    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    819793        echo i${UNAME_MACHINE}-pc-mks
    820         exit 0 ;;
     794        exit ;;
    821795    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    822796        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    824798        # UNAME_MACHINE based on the output of uname instead of i386?
    825799        echo i586-pc-interix
    826         exit 0 ;;
     800        exit ;;
    827801    i*:UWIN*:*)
    828802        echo ${UNAME_MACHINE}-pc-uwin
    829         exit 0 ;;
     803        exit ;;
     804    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
     805        echo x86_64-unknown-cygwin
     806        exit ;;
    830807    p*:CYGWIN*:*)
    831808        echo powerpcle-unknown-cygwin
    832         exit 0 ;;
     809        exit ;;
    833810    prep*:SunOS:5.*:*)
    834811        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    835         exit 0 ;;
     812        exit ;;
    836813    *:GNU:*:*)
    837814        # the GNU system
    838815        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    839         exit 0 ;;
     816        exit ;;
    840817    *:GNU/*:*:*)
    841818        # other systems with GNU libc and userland
    842819        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    843         exit 0 ;;
     820        exit ;;
    844821    i*86:Minix:*:*)
    845822        echo ${UNAME_MACHINE}-pc-minix
    846         exit 0 ;;
     823        exit ;;
    847824    arm*:Linux:*:*)
    848825        echo ${UNAME_MACHINE}-unknown-linux-gnu
    849         exit 0 ;;
     826        exit ;;
    850827    cris:Linux:*:*)
    851828        echo cris-axis-linux-gnu
    852         exit 0 ;;
     829        exit ;;
     830    crisv32:Linux:*:*)
     831        echo crisv32-axis-linux-gnu
     832        exit ;;
     833    frv:Linux:*:*)
     834        echo frv-unknown-linux-gnu
     835        exit ;;
    853836    ia64:Linux:*:*)
    854837        echo ${UNAME_MACHINE}-unknown-linux-gnu
    855         exit 0 ;;
     838        exit ;;
     839    m32r*:Linux:*:*)
     840        echo ${UNAME_MACHINE}-unknown-linux-gnu
     841        exit ;;
    856842    m68*:Linux:*:*)
    857843        echo ${UNAME_MACHINE}-unknown-linux-gnu
    858         exit 0 ;;
     844        exit ;;
    859845    mips:Linux:*:*)
    860846        eval $set_cc_for_build
     
    873859        #endif
    874860EOF
    875         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    876         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     861        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     862            /^CPU/{
     863                s: ::g
     864                p
     865            }'`"
     866        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    877867        ;;
    878868    mips64:Linux:*:*)
     
    892882        #endif
    893883EOF
    894         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    895         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     884        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     885            /^CPU/{
     886                s: ::g
     887                p
     888            }'`"
     889        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    896890        ;;
     891    or32:Linux:*:*)
     892        echo or32-unknown-linux-gnu
     893        exit ;;
    897894    ppc:Linux:*:*)
    898895        echo powerpc-unknown-linux-gnu
    899         exit 0 ;;
     896        exit ;;
    900897    ppc64:Linux:*:*)
    901898        echo powerpc64-unknown-linux-gnu
    902         exit 0 ;;
     899        exit ;;
    903900    alpha:Linux:*:*)
    904901        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    914911        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    915912        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    916         exit 0 ;;
     913        exit ;;
    917914    parisc:Linux:*:* | hppa:Linux:*:*)
    918915        # Look for CPU level
     
    922919          *)    echo hppa-unknown-linux-gnu ;;
    923920        esac
    924         exit 0 ;;
     921        exit ;;
    925922    parisc64:Linux:*:* | hppa64:Linux:*:*)
    926923        echo hppa64-unknown-linux-gnu
    927         exit 0 ;;
     924        exit ;;
    928925    s390:Linux:*:* | s390x:Linux:*:*)
    929926        echo ${UNAME_MACHINE}-ibm-linux
    930         exit 0 ;;
     927        exit ;;
    931928    sh64*:Linux:*:*)
    932929        echo ${UNAME_MACHINE}-unknown-linux-gnu
    933         exit 0 ;;
     930        exit ;;
    934931    sh*:Linux:*:*)
    935932        echo ${UNAME_MACHINE}-unknown-linux-gnu
    936         exit 0 ;;
     933        exit ;;
    937934    sparc:Linux:*:* | sparc64:Linux:*:*)
    938935        echo ${UNAME_MACHINE}-unknown-linux-gnu
    939         exit 0 ;;
     936        exit ;;
     937    vax:Linux:*:*)
     938        echo ${UNAME_MACHINE}-dec-linux-gnu
     939        exit ;;
    940940    x86_64:Linux:*:*)
    941941        echo x86_64-unknown-linux-gnu
    942         exit 0 ;;
     942        exit ;;
    943943    i*86:Linux:*:*)
    944944        # The BFD linker knows what the default object file format is, so
     
    958958          a.out-i386-linux)
    959959                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    960                 exit 0 ;;
     960                exit ;;
    961961          coff-i386)
    962962                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    963                 exit 0 ;;
     963                exit ;;
    964964          "")
    965965                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    966966                # one that does not give us useful --help.
    967967                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    968                 exit 0 ;;
     968                exit ;;
    969969        esac
    970970        # Determine whether the default compiler is a.out or elf
     
    983983        # endif
    984984        #else
    985         #ifdef __INTEL_COMPILER
     985        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
    986986        LIBC=gnu
    987987        #else
     
    993993        #endif
    994994EOF
    995         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    996         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    997         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     995        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     996            /^LIBC/{
     997                s: ::g
     998                p
     999            }'`"
     1000        test x"${LIBC}" != x && {
     1001                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     1002                exit
     1003        }
     1004        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
    9981005        ;;
    9991006    i*86:DYNIX/ptx:4*:*)
     
    10021009        # sysname and nodename.
    10031010        echo i386-sequent-sysv4
    1004         exit 0 ;;
     1011        exit ;;
    10051012    i*86:UNIX_SV:4.2MP:2.*)
    10061013        # Unixware is an offshoot of SVR4, but it has its own version
     
    10101017        # Use sysv4.2uw... so that sysv4* matches it.
    10111018        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1012         exit 0 ;;
     1019        exit ;;
    10131020    i*86:OS/2:*:*)
    10141021        # If we were able to find `uname', then EMX Unix compatibility
    10151022        # is probably installed.
    10161023        echo ${UNAME_MACHINE}-pc-os2-emx
    1017         exit 0 ;;
     1024        exit ;;
    10181025    i*86:XTS-300:*:STOP)
    10191026        echo ${UNAME_MACHINE}-unknown-stop
    1020         exit 0 ;;
     1027        exit ;;
    10211028    i*86:atheos:*:*)
    10221029        echo ${UNAME_MACHINE}-unknown-atheos
    1023         exit 0 ;;
    1024         i*86:syllable:*:*)
     1030        exit ;;
     1031    i*86:syllable:*:*)
    10251032        echo ${UNAME_MACHINE}-pc-syllable
    1026         exit 0 ;;
     1033        exit ;;
    10271034    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    10281035        echo i386-unknown-lynxos${UNAME_RELEASE}
    1029         exit 0 ;;
     1036        exit ;;
    10301037    i*86:*DOS:*:*)
    10311038        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1032         exit 0 ;;
     1039        exit ;;
    10331040    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    10341041        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    10381045                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10391046        fi
    1040         exit 0 ;;
    1041     i*86:*:5:[78]*)
     1047        exit ;;
     1048    i*86:*:5:[678]*)
     1049        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10421050        case `/bin/uname -X | grep "^Machine"` in
    10431051            *486*)           UNAME_MACHINE=i486 ;;
     
    10461054        esac
    10471055        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1048         exit 0 ;;
     1056        exit ;;
    10491057    i*86:*:3.2:*)
    10501058        if test -f /usr/options/cb.name; then
     
    10641072                echo ${UNAME_MACHINE}-pc-sysv32
    10651073        fi
    1066         exit 0 ;;
     1074        exit ;;
    10671075    pc:*:*:*)
    10681076        # Left here for compatibility:
     
    10701078        # the processor, so we play safe by assuming i386.
    10711079        echo i386-pc-msdosdjgpp
    1072         exit 0 ;;
     1080        exit ;;
    10731081    Intel:Mach:3*:*)
    10741082        echo i386-pc-mach3
    1075         exit 0 ;;
     1083        exit ;;
    10761084    paragon:*:*:*)
    10771085        echo i860-intel-osf1
    1078         exit 0 ;;
     1086        exit ;;
    10791087    i860:*:4.*:*) # i860-SVR4
    10801088        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     
    10831091          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    10841092        fi
    1085         exit 0 ;;
     1093        exit ;;
    10861094    mini*:CTIX:SYS*5:*)
    10871095        # "miniframe"
    10881096        echo m68010-convergent-sysv
    1089         exit 0 ;;
     1097        exit ;;
    10901098    mc68k:UNIX:SYSTEM5:3.51m)
    10911099        echo m68k-convergent-sysv
    1092         exit 0 ;;
     1100        exit ;;
    10931101    M680?0:D-NIX:5.3:*)
    10941102        echo m68k-diab-dnix
    1095         exit 0 ;;
    1096     M68*:*:R3V[567]*:*)
    1097         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1098     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)
     1103        exit ;;
     1104    M68*:*:R3V[5678]*:*)
     1105        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
     1106    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)
    10991107        OS_REL=''
    11001108        test -r /etc/.relid \
    11011109        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11021110        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1103           && echo i486-ncr-sysv4.3${OS_REL} && exit 0
     1111          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    11041112        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1105           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
     1113          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    11061114    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11071115        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1108           && echo i486-ncr-sysv4 && exit 0 ;;
     1116          && { echo i486-ncr-sysv4; exit; } ;;
    11091117    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    11101118        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1111         exit 0 ;;
     1119        exit ;;
    11121120    mc68030:UNIX_System_V:4.*:*)
    11131121        echo m68k-atari-sysv4
    1114         exit 0 ;;
     1122        exit ;;
    11151123    TSUNAMI:LynxOS:2.*:*)
    11161124        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1117         exit 0 ;;
     1125        exit ;;
    11181126    rs6000:LynxOS:2.*:*)
    11191127        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1120         exit 0 ;;
     1128        exit ;;
    11211129    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11221130        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1123         exit 0 ;;
     1131        exit ;;
    11241132    SM[BE]S:UNIX_SV:*:*)
    11251133        echo mips-dde-sysv${UNAME_RELEASE}
    1126         exit 0 ;;
     1134        exit ;;
    11271135    RM*:ReliantUNIX-*:*:*)
    11281136        echo mips-sni-sysv4
    1129         exit 0 ;;
     1137        exit ;;
    11301138    RM*:SINIX-*:*:*)
    11311139        echo mips-sni-sysv4
    1132         exit 0 ;;
     1140        exit ;;
    11331141    *:SINIX-*:*:*)
    11341142        if uname -p 2>/dev/null >/dev/null ; then
     
    11381146                echo ns32k-sni-sysv
    11391147        fi
    1140         exit 0 ;;
     1148        exit ;;
    11411149    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11421150                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11431151        echo i586-unisys-sysv4
    1144         exit 0 ;;
     1152        exit ;;
    11451153    *:UNIX_System_V:4*:FTX*)
    11461154        # From Gerald Hewes <hewes@openmarket.com>.
    11471155        # How about differentiating between stratus architectures? -djm
    11481156        echo hppa1.1-stratus-sysv4
    1149         exit 0 ;;
     1157        exit ;;
    11501158    *:*:*:FTX*)
    11511159        # From seanf@swdc.stratus.com.
    11521160        echo i860-stratus-sysv4
    1153         exit 0 ;;
     1161        exit ;;
     1162    i*86:VOS:*:*)
     1163        # From Paul.Green@stratus.com.
     1164        echo ${UNAME_MACHINE}-stratus-vos
     1165        exit ;;
    11541166    *:VOS:*:*)
    11551167        # From Paul.Green@stratus.com.
    11561168        echo hppa1.1-stratus-vos
    1157         exit 0 ;;
     1169        exit ;;
    11581170    mc68*:A/UX:*:*)
    11591171        echo m68k-apple-aux${UNAME_RELEASE}
    1160         exit 0 ;;
     1172        exit ;;
    11611173    news*:NEWS-OS:6*:*)
    11621174        echo mips-sony-newsos6
    1163         exit 0 ;;
     1175        exit ;;
    11641176    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11651177        if [ -d /usr/nec ]; then
     
    11681180                echo mips-unknown-sysv${UNAME_RELEASE}
    11691181        fi
    1170         exit 0 ;;
     1182        exit ;;
    11711183    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11721184        echo powerpc-be-beos
    1173         exit 0 ;;
     1185        exit ;;
    11741186    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    11751187        echo powerpc-apple-beos
    1176         exit 0 ;;
     1188        exit ;;
    11771189    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    11781190        echo i586-pc-beos
    1179         exit 0 ;;
     1191        exit ;;
    11801192    SX-4:SUPER-UX:*:*)
    11811193        echo sx4-nec-superux${UNAME_RELEASE}
    1182         exit 0 ;;
     1194        exit ;;
    11831195    SX-5:SUPER-UX:*:*)
    11841196        echo sx5-nec-superux${UNAME_RELEASE}
    1185         exit 0 ;;
     1197        exit ;;
    11861198    SX-6:SUPER-UX:*:*)
    11871199        echo sx6-nec-superux${UNAME_RELEASE}
    1188         exit 0 ;;
     1200        exit ;;
    11891201    Power*:Rhapsody:*:*)
    11901202        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1191         exit 0 ;;
     1203        exit ;;
    11921204    *:Rhapsody:*:*)
    11931205        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1194         exit 0 ;;
     1206        exit ;;
    11951207    *:Darwin:*:*)
    1196         case `uname -p` in
    1197             *86) UNAME_PROCESSOR=i686 ;;
    1198             powerpc) UNAME_PROCESSOR=powerpc ;;
     1208        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1209        case $UNAME_PROCESSOR in
     1210            unknown) UNAME_PROCESSOR=powerpc ;;
    11991211        esac
    12001212        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1201         exit 0 ;;
     1213        exit ;;
    12021214    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    12031215        UNAME_PROCESSOR=`uname -p`
     
    12071219        fi
    12081220        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1209         exit 0 ;;
     1221        exit ;;
    12101222    *:QNX:*:4*)
    12111223        echo i386-pc-qnx
    1212         exit 0 ;;
     1224        exit ;;
     1225    NSE-?:NONSTOP_KERNEL:*:*)
     1226        echo nse-tandem-nsk${UNAME_RELEASE}
     1227        exit ;;
    12131228    NSR-?:NONSTOP_KERNEL:*:*)
    12141229        echo nsr-tandem-nsk${UNAME_RELEASE}
    1215         exit 0 ;;
     1230        exit ;;
    12161231    *:NonStop-UX:*:*)
    12171232        echo mips-compaq-nonstopux
    1218         exit 0 ;;
     1233        exit ;;
    12191234    BS2000:POSIX*:*:*)
    12201235        echo bs2000-siemens-sysv
    1221         exit 0 ;;
     1236        exit ;;
    12221237    DS/*:UNIX_System_V:*:*)
    12231238        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1224         exit 0 ;;
     1239        exit ;;
    12251240    *:Plan9:*:*)
    12261241        # "uname -m" is not consistent, so use $cputype instead. 386
     
    12331248        fi
    12341249        echo ${UNAME_MACHINE}-unknown-plan9
    1235         exit 0 ;;
     1250        exit ;;
    12361251    *:TOPS-10:*:*)
    12371252        echo pdp10-unknown-tops10
    1238         exit 0 ;;
     1253        exit ;;
    12391254    *:TENEX:*:*)
    12401255        echo pdp10-unknown-tenex
    1241         exit 0 ;;
     1256        exit ;;
    12421257    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12431258        echo pdp10-dec-tops20
    1244         exit 0 ;;
     1259        exit ;;
    12451260    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12461261        echo pdp10-xkl-tops20
    1247         exit 0 ;;
     1262        exit ;;
    12481263    *:TOPS-20:*:*)
    12491264        echo pdp10-unknown-tops20
    1250         exit 0 ;;
     1265        exit ;;
    12511266    *:ITS:*:*)
    12521267        echo pdp10-unknown-its
    1253         exit 0 ;;
     1268        exit ;;
    12541269    SEI:*:*:SEIUX)
    12551270        echo mips-sei-seiux${UNAME_RELEASE}
    1256         exit 0 ;;
     1271        exit ;;
    12571272    *:DragonFly:*:*)
    12581273        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1259         exit 0 ;;
     1274        exit ;;
     1275    *:*VMS:*:*)
     1276        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1277        case "${UNAME_MACHINE}" in
     1278            A*) echo alpha-dec-vms ; exit ;;
     1279            I*) echo ia64-dec-vms ; exit ;;
     1280            V*) echo vax-dec-vms ; exit ;;
     1281        esac ;;
     1282    *:XENIX:*:SysV)
     1283        echo i386-pc-xenix
     1284        exit ;;
     1285    i*86:skyos:*:*)
     1286        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1287        exit ;;
     1288    i*86:rdos:*:*)
     1289        echo ${UNAME_MACHINE}-pc-rdos
     1290        exit ;;
    12601291esac
    12611292
     
    12891320
    12901321#if defined (__arm) && defined (__acorn) && defined (__unix)
    1291   printf ("arm-acorn-riscix"); exit (0);
     1322  printf ("arm-acorn-riscix\n"); exit (0);
    12921323#endif
    12931324
     
    13781409EOF
    13791410
    1380 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1411$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1412        { echo "$SYSTEM_NAME"; exit; }
    13811413
    13821414# Apollos put the system type in the environment.
    13831415
    1384 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
     1416test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    13851417
    13861418# Convex versions that predate uname can use getsysinfo(1)
     
    13911423    c1*)
    13921424        echo c1-convex-bsd
    1393         exit 0 ;;
     1425        exit ;;
    13941426    c2*)
    13951427        if getsysinfo -f scalar_acc
     
    13971429        else echo c2-convex-bsd
    13981430        fi
    1399         exit 0 ;;
     1431        exit ;;
    14001432    c34*)
    14011433        echo c34-convex-bsd
    1402         exit 0 ;;
     1434        exit ;;
    14031435    c38*)
    14041436        echo c38-convex-bsd
    1405         exit 0 ;;
     1437        exit ;;
    14061438    c4*)
    14071439        echo c4-convex-bsd
    1408         exit 0 ;;
     1440        exit ;;
    14091441    esac
    14101442fi
     
    14171449download the most up to date version of the config scripts from
    14181450
    1419     ftp://ftp.gnu.org/pub/gnu/config/
     1451  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
     1452and
     1453  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
    14201454
    14211455If the version you run ($0) is already up to date, please
Note: See TracChangeset for help on using the changeset viewer.