Ignore:
Timestamp:
Nov 15, 2011 12:11:02 PM (10 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/cf/config.guess

    r1866 r2685  
    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, 2006, 2007, 2008
    5 #   Free Software Foundation, Inc.
    6 
    7 timestamp='2008-04-14'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2003-02-22'
    87
    98# This file is free software; you can redistribute it and/or modify it
     
    1918# You should have received a copy of the GNU General Public License
    2019# along with this program; if not, write to the Free Software
    21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    22 # 02110-1301, USA.
     20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    2321#
    2422# As a special exception to the GNU General Public License, if you
     
    2624# configuration script generated by Autoconf, you may include it under
    2725# the same distribution terms that you use for the rest of that program.
    28 
    2926
    3027# Originally written by Per Bothner <per@bothner.com>.
     
    5754
    5855Originally written by Per Bothner.
    59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     57Free Software Foundation, Inc.
    6158
    6259This is free software; see the source for copying conditions.  There is NO
     
    7067  case $1 in
    7168    --time-stamp | --time* | -t )
    72        echo "$timestamp" ; exit ;;
     69       echo "$timestamp" ; exit 0 ;;
    7370    --version | -v )
    74        echo "$version" ; exit ;;
     71       echo "$version" ; exit 0 ;;
    7572    --help | --h* | -h )
    76        echo "$usage"; exit ;;
     73       echo "$usage"; exit 0 ;;
    7774    -- )     # Stop option processing
    7875       shift; break ;;
     
    108105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    109106: ${TMPDIR=/tmp} ;
    110  { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    111108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    112  { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    113109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    114110dummy=$tmp/dummy ;
     
    127123 ,,*)   CC_FOR_BUILD=$CC ;;
    128124 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    129 esac ; set_cc_for_build= ;'
     125esac ;'
    130126
    131127# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    162158            sh3el) machine=shl-unknown ;;
    163159            sh3eb) machine=sh-unknown ;;
    164             sh5el) machine=sh5le-unknown ;;
    165160            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    166161        esac
     
    201196        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    202197        echo "${machine}-${os}${release}"
    203         exit ;;
     198        exit 0 ;;
     199    amiga:OpenBSD:*:*)
     200        echo m68k-unknown-openbsd${UNAME_RELEASE}
     201        exit 0 ;;
     202    arc:OpenBSD:*:*)
     203        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     204        exit 0 ;;
     205    hp300:OpenBSD:*:*)
     206        echo m68k-unknown-openbsd${UNAME_RELEASE}
     207        exit 0 ;;
     208    mac68k:OpenBSD:*:*)
     209        echo m68k-unknown-openbsd${UNAME_RELEASE}
     210        exit 0 ;;
     211    macppc:OpenBSD:*:*)
     212        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     213        exit 0 ;;
     214    mvme68k:OpenBSD:*:*)
     215        echo m68k-unknown-openbsd${UNAME_RELEASE}
     216        exit 0 ;;
     217    mvme88k:OpenBSD:*:*)
     218        echo m88k-unknown-openbsd${UNAME_RELEASE}
     219        exit 0 ;;
     220    mvmeppc:OpenBSD:*:*)
     221        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     222        exit 0 ;;
     223    pmax:OpenBSD:*:*)
     224        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     225        exit 0 ;;
     226    sgi:OpenBSD:*:*)
     227        echo mipseb-unknown-openbsd${UNAME_RELEASE}
     228        exit 0 ;;
     229    sun3:OpenBSD:*:*)
     230        echo m68k-unknown-openbsd${UNAME_RELEASE}
     231        exit 0 ;;
     232    wgrisc:OpenBSD:*:*)
     233        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     234        exit 0 ;;
    204235    *:OpenBSD:*:*)
    205         UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    206         echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
    207         exit ;;
    208     *:ekkoBSD:*:*)
    209         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    210         exit ;;
    211     *:SolidBSD:*:*)
    212         echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
    213         exit ;;
    214     macppc:MirBSD:*:*)
    215         echo powerpc-unknown-mirbsd${UNAME_RELEASE}
    216         exit ;;
    217     *:MirBSD:*:*)
    218         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    219         exit ;;
     236        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
     237        exit 0 ;;
    220238    alpha:OSF1:*:*)
    221         case $UNAME_RELEASE in
    222         *4.0)
     239        if test $UNAME_RELEASE = "V4.0"; then
    223240                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    224                 ;;
    225         *5.*)
    226                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    227                 ;;
    228         esac
     241        fi
    229242        # According to Compaq, /usr/sbin/psrinfo has been available on
    230243        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     
    264277                UNAME_MACHINE="alphaev79" ;;
    265278        esac
    266         # A Pn.n version is a patched version.
    267279        # A Vn.n version is a released version.
    268280        # A Tn.n version is a released field test version.
    269281        # A Xn.n version is an unreleased experimental baselevel.
    270282        # 1.2 uses "1.2" for uname -r.
    271         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    272         exit ;;
     283        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     284        exit 0 ;;
    273285    Alpha\ *:Windows_NT*:*)
    274286        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    276288        # of the specific Alpha model?
    277289        echo alpha-pc-interix
    278         exit ;;
     290        exit 0 ;;
    279291    21064:Windows_NT:50:3)
    280292        echo alpha-dec-winnt3.5
    281         exit ;;
     293        exit 0 ;;
    282294    Amiga*:UNIX_System_V:4.0:*)
    283295        echo m68k-unknown-sysv4
    284         exit ;;
     296        exit 0;;
    285297    *:[Aa]miga[Oo][Ss]:*:*)
    286298        echo ${UNAME_MACHINE}-unknown-amigaos
    287         exit ;;
     299        exit 0 ;;
    288300    *:[Mm]orph[Oo][Ss]:*:*)
    289301        echo ${UNAME_MACHINE}-unknown-morphos
    290         exit ;;
     302        exit 0 ;;
    291303    *:OS/390:*:*)
    292304        echo i370-ibm-openedition
    293         exit ;;
    294     *:z/VM:*:*)
    295         echo s390-ibm-zvmoe
    296         exit ;;
    297     *:OS400:*:*)
    298         echo powerpc-ibm-os400
    299         exit ;;
     305        exit 0 ;;
    300306    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    301307        echo arm-acorn-riscix${UNAME_RELEASE}
    302         exit ;;
    303     arm:riscos:*:*|arm:RISCOS:*:*)
    304         echo arm-unknown-riscos
    305         exit ;;
     308        exit 0;;
    306309    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    307310        echo hppa1.1-hitachi-hiuxmpp
    308         exit ;;
     311        exit 0;;
    309312    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    310313        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    314317                echo pyramid-pyramid-bsd
    315318        fi
    316         exit ;;
     319        exit 0 ;;
    317320    NILE*:*:*:dcosx)
    318321        echo pyramid-pyramid-svr4
    319         exit ;;
    320     DRS?6000:unix:4.0:6*)
    321         echo sparc-icl-nx6
    322         exit ;;
    323     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
     322        exit 0 ;;
     323    DRS?6000:UNIX_SV:4.2*:7*)
    324324        case `/usr/bin/uname -p` in
    325             sparc) echo sparc-icl-nx7; exit ;;
     325            sparc) echo sparc-icl-nx7 && exit 0 ;;
    326326        esac ;;
    327327    sun4H:SunOS:5.*:*)
    328328        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    329         exit ;;
     329        exit 0 ;;
    330330    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    331331        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    332         exit ;;
    333     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
     332        exit 0 ;;
     333    i86pc:SunOS:5.*:*)
    334334        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    335         exit ;;
     335        exit 0 ;;
    336336    sun4*:SunOS:6*:*)
    337337        # According to config.sub, this is the proper way to canonicalize
     
    339339        # it's likely to be more like Solaris than SunOS4.
    340340        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    341         exit ;;
     341        exit 0 ;;
    342342    sun4*:SunOS:*:*)
    343343        case "`/usr/bin/arch -k`" in
     
    348348        # Japanese Language versions have a version number like `4.1.3-JL'.
    349349        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    350         exit ;;
     350        exit 0 ;;
    351351    sun3*:SunOS:*:*)
    352352        echo m68k-sun-sunos${UNAME_RELEASE}
    353         exit ;;
     353        exit 0 ;;
    354354    sun*:*:4.2BSD:*)
    355355        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    363363                ;;
    364364        esac
    365         exit ;;
     365        exit 0 ;;
    366366    aushp:SunOS:*:*)
    367367        echo sparc-auspex-sunos${UNAME_RELEASE}
    368         exit ;;
     368        exit 0 ;;
    369369    # The situation for MiNT is a little confusing.  The machine name
    370370    # can be virtually everything (everything which is not
     
    377377    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    378378        echo m68k-atari-mint${UNAME_RELEASE}
    379         exit ;;
     379        exit 0 ;;
    380380    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    381381        echo m68k-atari-mint${UNAME_RELEASE}
    382         exit ;;
     382        exit 0 ;;
    383383    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    384384        echo m68k-atari-mint${UNAME_RELEASE}
    385         exit ;;
     385        exit 0 ;;
    386386    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    387387        echo m68k-milan-mint${UNAME_RELEASE}
    388         exit ;;
     388        exit 0 ;;
    389389    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    390390        echo m68k-hades-mint${UNAME_RELEASE}
    391         exit ;;
     391        exit 0 ;;
    392392    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    393393        echo m68k-unknown-mint${UNAME_RELEASE}
    394         exit ;;
    395     m68k:machten:*:*)
    396         echo m68k-apple-machten${UNAME_RELEASE}
    397         exit ;;
     394        exit 0 ;;
    398395    powerpc:machten:*:*)
    399396        echo powerpc-apple-machten${UNAME_RELEASE}
    400         exit ;;
     397        exit 0 ;;
    401398    RISC*:Mach:*:*)
    402399        echo mips-dec-mach_bsd4.3
    403         exit ;;
     400        exit 0 ;;
    404401    RISC*:ULTRIX:*:*)
    405402        echo mips-dec-ultrix${UNAME_RELEASE}
    406         exit ;;
     403        exit 0 ;;
    407404    VAX*:ULTRIX*:*:*)
    408405        echo vax-dec-ultrix${UNAME_RELEASE}
    409         exit ;;
     406        exit 0 ;;
    410407    2020:CLIX:*:* | 2430:CLIX:*:*)
    411408        echo clipper-intergraph-clix${UNAME_RELEASE}
    412         exit ;;
     409        exit 0 ;;
    413410    mips:*:*:UMIPS | mips:*:*:RISCos)
    414411        eval $set_cc_for_build
     
    434431        }
    435432EOF
    436         $CC_FOR_BUILD -o $dummy $dummy.c &&
    437           dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
    438           SYSTEM_NAME=`$dummy $dummyarg` &&
    439             { echo "$SYSTEM_NAME"; exit; }
     433        $CC_FOR_BUILD -o $dummy $dummy.c \
     434          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     435          && exit 0
    440436        echo mips-mips-riscos${UNAME_RELEASE}
    441         exit ;;
     437        exit 0 ;;
    442438    Motorola:PowerMAX_OS:*:*)
    443439        echo powerpc-motorola-powermax
    444         exit ;;
     440        exit 0 ;;
    445441    Motorola:*:4.3:PL8-*)
    446442        echo powerpc-harris-powermax
    447         exit ;;
     443        exit 0 ;;
    448444    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    449445        echo powerpc-harris-powermax
    450         exit ;;
     446        exit 0 ;;
    451447    Night_Hawk:Power_UNIX:*:*)
    452448        echo powerpc-harris-powerunix
    453         exit ;;
     449        exit 0 ;;
    454450    m88k:CX/UX:7*:*)
    455451        echo m88k-harris-cxux7
    456         exit ;;
     452        exit 0 ;;
    457453    m88k:*:4*:R4*)
    458454        echo m88k-motorola-sysv4
    459         exit ;;
     455        exit 0 ;;
    460456    m88k:*:3*:R3*)
    461457        echo m88k-motorola-sysv3
    462         exit ;;
     458        exit 0 ;;
    463459    AViiON:dgux:*:*)
    464460        # DG/UX returns AViiON for all architectures
     
    476472            echo i586-dg-dgux${UNAME_RELEASE}
    477473        fi
    478         exit ;;
     474        exit 0 ;;
    479475    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    480476        echo m88k-dolphin-sysv3
    481         exit ;;
     477        exit 0 ;;
    482478    M88*:*:R3*:*)
    483479        # Delta 88k system running SVR3
    484480        echo m88k-motorola-sysv3
    485         exit ;;
     481        exit 0 ;;
    486482    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    487483        echo m88k-tektronix-sysv3
    488         exit ;;
     484        exit 0 ;;
    489485    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    490486        echo m68k-tektronix-bsd
    491         exit ;;
     487        exit 0 ;;
    492488    *:IRIX*:*:*)
    493489        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    494         exit ;;
     490        exit 0 ;;
    495491    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    496         echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
    497         exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
     492        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
     493        exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
    498494    i*86:AIX:*:*)
    499495        echo i386-ibm-aix
    500         exit ;;
     496        exit 0 ;;
    501497    ia64:AIX:*:*)
    502498        if [ -x /usr/bin/oslevel ] ; then
     
    506502        fi
    507503        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    508         exit ;;
     504        exit 0 ;;
    509505    *:AIX:2:3)
    510506        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    521517                        }
    522518EOF
    523                 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
    524                 then
    525                         echo "$SYSTEM_NAME"
    526                 else
    527                         echo rs6000-ibm-aix3.2.5
    528                 fi
     519                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     520                echo rs6000-ibm-aix3.2.5
    529521        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    530522                echo rs6000-ibm-aix3.2.4
     
    532524                echo rs6000-ibm-aix3.2
    533525        fi
    534         exit ;;
    535     *:AIX:*:[456])
     526        exit 0 ;;
     527    *:AIX:*:[45])
    536528        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    537529        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     
    546538        fi
    547539        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    548         exit ;;
     540        exit 0 ;;
    549541    *:AIX:*:*)
    550542        echo rs6000-ibm-aix
    551         exit ;;
     543        exit 0 ;;
    552544    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    553545        echo romp-ibm-bsd4.4
    554         exit ;;
     546        exit 0 ;;
    555547    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    556548        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    557         exit ;;                             # report: romp-ibm BSD 4.3
     549        exit 0 ;;                           # report: romp-ibm BSD 4.3
    558550    *:BOSX:*:*)
    559551        echo rs6000-bull-bosx
    560         exit ;;
     552        exit 0 ;;
    561553    DPX/2?00:B.O.S.:*:*)
    562554        echo m68k-bull-sysv3
    563         exit ;;
     555        exit 0 ;;
    564556    9000/[34]??:4.3bsd:1.*:*)
    565557        echo m68k-hp-bsd
    566         exit ;;
     558        exit 0 ;;
    567559    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    568560        echo m68k-hp-bsd4.4
    569         exit ;;
     561        exit 0 ;;
    570562    9000/[34678]??:HP-UX:*:*)
    571563        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    629621        if [ ${HP_ARCH} = "hppa2.0w" ]
    630622        then
    631             eval $set_cc_for_build
    632 
    633             # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
    634             # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
    635             # generating 64-bit code.  GNU and HP use different nomenclature:
    636             #
    637             # $ CC_FOR_BUILD=cc ./config.guess
    638             # => hppa2.0w-hp-hpux11.23
    639             # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
    640             # => hppa64-hp-hpux11.23
    641 
    642             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
    643                 grep __LP64__ >/dev/null
     623            # avoid double evaluation of $set_cc_for_build
     624            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     625            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
    644626            then
    645627                HP_ARCH="hppa2.0w"
     
    649631        fi
    650632        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    651         exit ;;
     633        exit 0 ;;
    652634    ia64:HP-UX:*:*)
    653635        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    654636        echo ia64-hp-hpux${HPUX_REV}
    655         exit ;;
     637        exit 0 ;;
    656638    3050*:HI-UX:*:*)
    657639        eval $set_cc_for_build
     
    681663        }
    682664EOF
    683         $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
    684                 { echo "$SYSTEM_NAME"; exit; }
     665        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    685666        echo unknown-hitachi-hiuxwe2
    686         exit ;;
     667        exit 0 ;;
    687668    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    688669        echo hppa1.1-hp-bsd
    689         exit ;;
     670        exit 0 ;;
    690671    9000/8??:4.3bsd:*:*)
    691672        echo hppa1.0-hp-bsd
    692         exit ;;
     673        exit 0 ;;
    693674    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    694675        echo hppa1.0-hp-mpeix
    695         exit ;;
     676        exit 0 ;;
    696677    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    697678        echo hppa1.1-hp-osf
    698         exit ;;
     679        exit 0 ;;
    699680    hp8??:OSF1:*:*)
    700681        echo hppa1.0-hp-osf
    701         exit ;;
     682        exit 0 ;;
    702683    i*86:OSF1:*:*)
    703684        if [ -x /usr/sbin/sysversion ] ; then
     
    706687            echo ${UNAME_MACHINE}-unknown-osf1
    707688        fi
    708         exit ;;
     689        exit 0 ;;
    709690    parisc*:Lites*:*:*)
    710691        echo hppa1.1-hp-lites
    711         exit ;;
     692        exit 0 ;;
    712693    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    713694        echo c1-convex-bsd
    714         exit ;;
     695        exit 0 ;;
    715696    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    716697        if getsysinfo -f scalar_acc
     
    718699        else echo c2-convex-bsd
    719700        fi
    720         exit ;;
     701        exit 0 ;;
    721702    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    722703        echo c34-convex-bsd
    723         exit ;;
     704        exit 0 ;;
    724705    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    725706        echo c38-convex-bsd
    726         exit ;;
     707        exit 0 ;;
    727708    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    728709        echo c4-convex-bsd
    729         exit ;;
     710        exit 0 ;;
    730711    CRAY*Y-MP:*:*:*)
    731712        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    732         exit ;;
     713        exit 0 ;;
    733714    CRAY*[A-Z]90:*:*:*)
    734715        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    736717              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    737718              -e 's/\.[^.]*$/.X/'
    738         exit ;;
     719        exit 0 ;;
    739720    CRAY*TS:*:*:*)
    740721        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    741         exit ;;
     722        exit 0 ;;
    742723    CRAY*T3E:*:*:*)
    743724        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    744         exit ;;
     725        exit 0 ;;
    745726    CRAY*SV1:*:*:*)
    746727        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    747         exit ;;
     728        exit 0 ;;
    748729    *:UNICOS/mp:*:*)
    749         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    750         exit ;;
     730        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     731        exit 0 ;;
    751732    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    752733        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    754735        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    755736        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    756         exit ;;
    757     5000:UNIX_System_V:4.*:*)
    758         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    759         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    760         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    761         exit ;;
     737        exit 0 ;;
    762738    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    763739        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    764         exit ;;
     740        exit 0 ;;
    765741    sparc*:BSD/OS:*:*)
    766742        echo sparc-unknown-bsdi${UNAME_RELEASE}
    767         exit ;;
     743        exit 0 ;;
    768744    *:BSD/OS:*:*)
    769745        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    770         exit ;;
     746        exit 0 ;;
    771747    *:FreeBSD:*:*)
    772         case ${UNAME_MACHINE} in
    773             pc98)
    774                 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    775             amd64)
    776                 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    777             *)
    778                 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    779         esac
    780         exit ;;
     748        # Determine whether the default compiler uses glibc.
     749        eval $set_cc_for_build
     750        sed 's/^        //' << EOF >$dummy.c
     751        #include <features.h>
     752        #if __GLIBC__ >= 2
     753        LIBC=gnu
     754        #else
     755        LIBC=
     756        #endif
     757EOF
     758        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     759        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     760        exit 0 ;;
    781761    i*:CYGWIN*:*)
    782762        echo ${UNAME_MACHINE}-pc-cygwin
    783         exit ;;
    784     *:MINGW*:*)
     763        exit 0 ;;
     764    i*:MINGW*:*)
    785765        echo ${UNAME_MACHINE}-pc-mingw32
    786         exit ;;
    787     i*:windows32*:*)
    788         # uname -m includes "-pc" on this system.
    789         echo ${UNAME_MACHINE}-mingw32
    790         exit ;;
     766        exit 0 ;;
     767    i*:MSYS*:*)
     768        echo ${UNAME_MACHINE}-pc-msys
     769        exit 0 ;;
    791770    i*:PW*:*)
    792771        echo ${UNAME_MACHINE}-pc-pw32
    793         exit ;;
    794     *:Interix*:[3456]*)
    795         case ${UNAME_MACHINE} in
    796             x86)
    797                 echo i586-pc-interix${UNAME_RELEASE}
    798                 exit ;;
    799             EM64T | authenticamd)
    800                 echo x86_64-unknown-interix${UNAME_RELEASE}
    801                 exit ;;
    802             IA64)
    803                 echo ia64-unknown-interix${UNAME_RELEASE}
    804                 exit ;;
    805         esac ;;
     772        exit 0 ;;
     773    x86:Interix*:3*)
     774        echo i586-pc-interix3
     775        exit 0 ;;
    806776    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    807777        echo i${UNAME_MACHINE}-pc-mks
    808         exit ;;
     778        exit 0 ;;
    809779    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    810780        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    812782        # UNAME_MACHINE based on the output of uname instead of i386?
    813783        echo i586-pc-interix
    814         exit ;;
     784        exit 0 ;;
    815785    i*:UWIN*:*)
    816786        echo ${UNAME_MACHINE}-pc-uwin
    817         exit ;;
    818     amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    819         echo x86_64-unknown-cygwin
    820         exit ;;
     787        exit 0 ;;
    821788    p*:CYGWIN*:*)
    822789        echo powerpcle-unknown-cygwin
    823         exit ;;
     790        exit 0 ;;
    824791    prep*:SunOS:5.*:*)
    825792        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    826         exit ;;
     793        exit 0 ;;
    827794    *:GNU:*:*)
    828         # the GNU system
    829795        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    830         exit ;;
    831     *:GNU/*:*:*)
    832         # other systems with GNU libc and userland
    833         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    834         exit ;;
     796        exit 0 ;;
    835797    i*86:Minix:*:*)
    836798        echo ${UNAME_MACHINE}-pc-minix
    837         exit ;;
     799        exit 0 ;;
    838800    arm*:Linux:*:*)
    839         eval $set_cc_for_build
    840         if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    841             | grep -q __ARM_EABI__
    842         then
    843             echo ${UNAME_MACHINE}-unknown-linux-gnu
    844         else
    845             echo ${UNAME_MACHINE}-unknown-linux-gnueabi
    846         fi
    847         exit ;;
    848     avr32*:Linux:*:*)
    849801        echo ${UNAME_MACHINE}-unknown-linux-gnu
    850         exit ;;
    851     cris:Linux:*:*)
    852         echo cris-axis-linux-gnu
    853         exit ;;
    854     crisv32:Linux:*:*)
    855         echo crisv32-axis-linux-gnu
    856         exit ;;
    857     frv:Linux:*:*)
    858         echo frv-unknown-linux-gnu
    859         exit ;;
     802        exit 0 ;;
    860803    ia64:Linux:*:*)
    861804        echo ${UNAME_MACHINE}-unknown-linux-gnu
    862         exit ;;
    863     m32r*:Linux:*:*)
    864         echo ${UNAME_MACHINE}-unknown-linux-gnu
    865         exit ;;
     805        exit 0 ;;
    866806    m68*:Linux:*:*)
    867807        echo ${UNAME_MACHINE}-unknown-linux-gnu
    868         exit ;;
     808        exit 0 ;;
    869809    mips:Linux:*:*)
    870810        eval $set_cc_for_build
     
    883823        #endif
    884824EOF
    885         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
    886             /^CPU/{
    887                 s: ::g
    888                 p
    889             }'`"
    890         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
     825        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     826        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    891827        ;;
    892828    mips64:Linux:*:*)
     
    906842        #endif
    907843EOF
    908         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
    909             /^CPU/{
    910                 s: ::g
    911                 p
    912             }'`"
    913         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
     844        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     845        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    914846        ;;
    915     or32:Linux:*:*)
    916         echo or32-unknown-linux-gnu
    917         exit ;;
    918847    ppc:Linux:*:*)
    919848        echo powerpc-unknown-linux-gnu
    920         exit ;;
     849        exit 0 ;;
    921850    ppc64:Linux:*:*)
    922851        echo powerpc64-unknown-linux-gnu
    923         exit ;;
     852        exit 0 ;;
    924853    alpha:Linux:*:*)
    925854        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    935864        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    936865        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    937         exit ;;
     866        exit 0 ;;
    938867    parisc:Linux:*:* | hppa:Linux:*:*)
    939868        # Look for CPU level
     
    943872          *)    echo hppa-unknown-linux-gnu ;;
    944873        esac
    945         exit ;;
     874        exit 0 ;;
    946875    parisc64:Linux:*:* | hppa64:Linux:*:*)
    947876        echo hppa64-unknown-linux-gnu
    948         exit ;;
     877        exit 0 ;;
    949878    s390:Linux:*:* | s390x:Linux:*:*)
    950879        echo ${UNAME_MACHINE}-ibm-linux
    951         exit ;;
    952     sh64*:Linux:*:*)
    953         echo ${UNAME_MACHINE}-unknown-linux-gnu
    954         exit ;;
     880        exit 0 ;;
    955881    sh*:Linux:*:*)
    956882        echo ${UNAME_MACHINE}-unknown-linux-gnu
    957         exit ;;
     883        exit 0 ;;
    958884    sparc:Linux:*:* | sparc64:Linux:*:*)
    959885        echo ${UNAME_MACHINE}-unknown-linux-gnu
    960         exit ;;
    961     vax:Linux:*:*)
    962         echo ${UNAME_MACHINE}-dec-linux-gnu
    963         exit ;;
     886        exit 0 ;;
    964887    x86_64:Linux:*:*)
    965888        echo x86_64-unknown-linux-gnu
    966         exit ;;
    967     xtensa*:Linux:*:*)
    968         echo ${UNAME_MACHINE}-unknown-linux-gnu
    969         exit ;;
     889        exit 0 ;;
    970890    i*86:Linux:*:*)
    971891        # The BFD linker knows what the default object file format is, so
     
    985905          a.out-i386-linux)
    986906                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    987                 exit ;;
     907                exit 0 ;;
     908          coff-i386)
     909                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     910                exit 0 ;;
    988911          "")
    989912                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    990913                # one that does not give us useful --help.
    991914                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    992                 exit ;;
     915                exit 0 ;;
    993916        esac
    994917        # Determine whether the default compiler is a.out or elf
     
    1007930        # endif
    1008931        #else
    1009         #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
     932        #ifdef __INTEL_COMPILER
    1010933        LIBC=gnu
    1011934        #else
     
    1013936        #endif
    1014937        #endif
    1015         #ifdef __dietlibc__
    1016         LIBC=dietlibc
    1017         #endif
    1018938EOF
    1019         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
    1020             /^LIBC/{
    1021                 s: ::g
    1022                 p
    1023             }'`"
    1024         test x"${LIBC}" != x && {
    1025                 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
    1026                 exit
    1027         }
    1028         test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
     939        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     940        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
     941        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    1029942        ;;
    1030943    i*86:DYNIX/ptx:4*:*)
     
    1033946        # sysname and nodename.
    1034947        echo i386-sequent-sysv4
    1035         exit ;;
     948        exit 0 ;;
    1036949    i*86:UNIX_SV:4.2MP:2.*)
    1037950        # Unixware is an offshoot of SVR4, but it has its own version
     
    1041954        # Use sysv4.2uw... so that sysv4* matches it.
    1042955        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1043         exit ;;
     956        exit 0 ;;
    1044957    i*86:OS/2:*:*)
    1045958        # If we were able to find `uname', then EMX Unix compatibility
    1046959        # is probably installed.
    1047960        echo ${UNAME_MACHINE}-pc-os2-emx
    1048         exit ;;
     961        exit 0 ;;
    1049962    i*86:XTS-300:*:STOP)
    1050963        echo ${UNAME_MACHINE}-unknown-stop
    1051         exit ;;
     964        exit 0 ;;
    1052965    i*86:atheos:*:*)
    1053966        echo ${UNAME_MACHINE}-unknown-atheos
    1054         exit ;;
    1055     i*86:syllable:*:*)
    1056         echo ${UNAME_MACHINE}-pc-syllable
    1057         exit ;;
     967        exit 0 ;;
    1058968    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    1059969        echo i386-unknown-lynxos${UNAME_RELEASE}
    1060         exit ;;
     970        exit 0 ;;
    1061971    i*86:*DOS:*:*)
    1062972        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1063         exit ;;
     973        exit 0 ;;
    1064974    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    1065975        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    1069979                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    1070980        fi
    1071         exit ;;
    1072     i*86:*:5:[678]*)
    1073         # UnixWare 7.x, OpenUNIX and OpenServer 6.
     981        exit 0 ;;
     982    i*86:*:5:[78]*)
    1074983        case `/bin/uname -X | grep "^Machine"` in
    1075984            *486*)           UNAME_MACHINE=i486 ;;
     
    1078987        esac
    1079988        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1080         exit ;;
     989        exit 0 ;;
    1081990    i*86:*:3.2:*)
    1082991        if test -f /usr/options/cb.name; then
     
    10961005                echo ${UNAME_MACHINE}-pc-sysv32
    10971006        fi
    1098         exit ;;
     1007        exit 0 ;;
    10991008    pc:*:*:*)
    11001009        # Left here for compatibility:
     
    11021011        # the processor, so we play safe by assuming i386.
    11031012        echo i386-pc-msdosdjgpp
    1104         exit ;;
     1013        exit 0 ;;
    11051014    Intel:Mach:3*:*)
    11061015        echo i386-pc-mach3
    1107         exit ;;
     1016        exit 0 ;;
    11081017    paragon:*:*:*)
    11091018        echo i860-intel-osf1
    1110         exit ;;
     1019        exit 0 ;;
    11111020    i860:*:4.*:*) # i860-SVR4
    11121021        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     
    11151024          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    11161025        fi
    1117         exit ;;
     1026        exit 0 ;;
    11181027    mini*:CTIX:SYS*5:*)
    11191028        # "miniframe"
    11201029        echo m68010-convergent-sysv
    1121         exit ;;
     1030        exit 0 ;;
    11221031    mc68k:UNIX:SYSTEM5:3.51m)
    11231032        echo m68k-convergent-sysv
    1124         exit ;;
     1033        exit 0 ;;
    11251034    M680?0:D-NIX:5.3:*)
    11261035        echo m68k-diab-dnix
    1127         exit ;;
    1128     M68*:*:R3V[5678]*:*)
    1129         test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    1130     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)
     1036        exit 0 ;;
     1037    M68*:*:R3V[567]*:*)
     1038        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
     1039    3[34]??:*: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)
    11311040        OS_REL=''
    11321041        test -r /etc/.relid \
    11331042        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11341043        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1135           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1044          && echo i486-ncr-sysv4.3${OS_REL} && exit 0
    11361045        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1137           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1046          && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
    11381047    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11391048        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1140           && { echo i486-ncr-sysv4; exit; } ;;
     1049          && echo i486-ncr-sysv4 && exit 0 ;;
    11411050    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    11421051        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1143         exit ;;
     1052        exit 0 ;;
    11441053    mc68030:UNIX_System_V:4.*:*)
    11451054        echo m68k-atari-sysv4
    1146         exit ;;
     1055        exit 0 ;;
    11471056    TSUNAMI:LynxOS:2.*:*)
    11481057        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1149         exit ;;
     1058        exit 0 ;;
    11501059    rs6000:LynxOS:2.*:*)
    11511060        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1152         exit ;;
     1061        exit 0 ;;
    11531062    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11541063        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1155         exit ;;
     1064        exit 0 ;;
    11561065    SM[BE]S:UNIX_SV:*:*)
    11571066        echo mips-dde-sysv${UNAME_RELEASE}
    1158         exit ;;
     1067        exit 0 ;;
    11591068    RM*:ReliantUNIX-*:*:*)
    11601069        echo mips-sni-sysv4
    1161         exit ;;
     1070        exit 0 ;;
    11621071    RM*:SINIX-*:*:*)
    11631072        echo mips-sni-sysv4
    1164         exit ;;
     1073        exit 0 ;;
    11651074    *:SINIX-*:*:*)
    11661075        if uname -p 2>/dev/null >/dev/null ; then
     
    11701079                echo ns32k-sni-sysv
    11711080        fi
    1172         exit ;;
     1081        exit 0 ;;
    11731082    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11741083                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11751084        echo i586-unisys-sysv4
    1176         exit ;;
     1085        exit 0 ;;
    11771086    *:UNIX_System_V:4*:FTX*)
    11781087        # From Gerald Hewes <hewes@openmarket.com>.
    11791088        # How about differentiating between stratus architectures? -djm
    11801089        echo hppa1.1-stratus-sysv4
    1181         exit ;;
     1090        exit 0 ;;
    11821091    *:*:*:FTX*)
    11831092        # From seanf@swdc.stratus.com.
    11841093        echo i860-stratus-sysv4
    1185         exit ;;
    1186     i*86:VOS:*:*)
    1187         # From Paul.Green@stratus.com.
    1188         echo ${UNAME_MACHINE}-stratus-vos
    1189         exit ;;
     1094        exit 0 ;;
    11901095    *:VOS:*:*)
    11911096        # From Paul.Green@stratus.com.
    11921097        echo hppa1.1-stratus-vos
    1193         exit ;;
     1098        exit 0 ;;
    11941099    mc68*:A/UX:*:*)
    11951100        echo m68k-apple-aux${UNAME_RELEASE}
    1196         exit ;;
     1101        exit 0 ;;
    11971102    news*:NEWS-OS:6*:*)
    11981103        echo mips-sony-newsos6
    1199         exit ;;
     1104        exit 0 ;;
    12001105    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    12011106        if [ -d /usr/nec ]; then
     
    12041109                echo mips-unknown-sysv${UNAME_RELEASE}
    12051110        fi
    1206         exit ;;
     1111        exit 0 ;;
    12071112    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    12081113        echo powerpc-be-beos
    1209         exit ;;
     1114        exit 0 ;;
    12101115    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    12111116        echo powerpc-apple-beos
    1212         exit ;;
     1117        exit 0 ;;
    12131118    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    12141119        echo i586-pc-beos
    1215         exit ;;
    1216     BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
    1217         echo i586-pc-haiku
    1218         exit ;;
     1120        exit 0 ;;
    12191121    SX-4:SUPER-UX:*:*)
    12201122        echo sx4-nec-superux${UNAME_RELEASE}
    1221         exit ;;
     1123        exit 0 ;;
    12221124    SX-5:SUPER-UX:*:*)
    12231125        echo sx5-nec-superux${UNAME_RELEASE}
    1224         exit ;;
     1126        exit 0 ;;
    12251127    SX-6:SUPER-UX:*:*)
    12261128        echo sx6-nec-superux${UNAME_RELEASE}
    1227         exit ;;
    1228     SX-7:SUPER-UX:*:*)
    1229         echo sx7-nec-superux${UNAME_RELEASE}
    1230         exit ;;
    1231     SX-8:SUPER-UX:*:*)
    1232         echo sx8-nec-superux${UNAME_RELEASE}
    1233         exit ;;
    1234     SX-8R:SUPER-UX:*:*)
    1235         echo sx8r-nec-superux${UNAME_RELEASE}
    1236         exit ;;
     1129        exit 0 ;;
    12371130    Power*:Rhapsody:*:*)
    12381131        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1239         exit ;;
     1132        exit 0 ;;
    12401133    *:Rhapsody:*:*)
    12411134        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1242         exit ;;
     1135        exit 0 ;;
    12431136    *:Darwin:*:*)
    1244         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1245         case $UNAME_PROCESSOR in
    1246             unknown) UNAME_PROCESSOR=powerpc ;;
     1137        case `uname -p` in
     1138            *86) UNAME_PROCESSOR=i686 ;;
     1139            powerpc) UNAME_PROCESSOR=powerpc ;;
    12471140        esac
    12481141        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1249         exit ;;
     1142        exit 0 ;;
    12501143    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    12511144        UNAME_PROCESSOR=`uname -p`
     
    12551148        fi
    12561149        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1257         exit ;;
     1150        exit 0 ;;
    12581151    *:QNX:*:4*)
    12591152        echo i386-pc-qnx
    1260         exit ;;
    1261     NSE-?:NONSTOP_KERNEL:*:*)
    1262         echo nse-tandem-nsk${UNAME_RELEASE}
    1263         exit ;;
    1264     NSR-?:NONSTOP_KERNEL:*:*)
     1153        exit 0 ;;
     1154    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
    12651155        echo nsr-tandem-nsk${UNAME_RELEASE}
    1266         exit ;;
     1156        exit 0 ;;
    12671157    *:NonStop-UX:*:*)
    12681158        echo mips-compaq-nonstopux
    1269         exit ;;
     1159        exit 0 ;;
    12701160    BS2000:POSIX*:*:*)
    12711161        echo bs2000-siemens-sysv
    1272         exit ;;
     1162        exit 0 ;;
    12731163    DS/*:UNIX_System_V:*:*)
    12741164        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1275         exit ;;
     1165        exit 0 ;;
    12761166    *:Plan9:*:*)
    12771167        # "uname -m" is not consistent, so use $cputype instead. 386
     
    12841174        fi
    12851175        echo ${UNAME_MACHINE}-unknown-plan9
    1286         exit ;;
     1176        exit 0 ;;
    12871177    *:TOPS-10:*:*)
    12881178        echo pdp10-unknown-tops10
    1289         exit ;;
     1179        exit 0 ;;
    12901180    *:TENEX:*:*)
    12911181        echo pdp10-unknown-tenex
    1292         exit ;;
     1182        exit 0 ;;
    12931183    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12941184        echo pdp10-dec-tops20
    1295         exit ;;
     1185        exit 0 ;;
    12961186    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12971187        echo pdp10-xkl-tops20
    1298         exit ;;
     1188        exit 0 ;;
    12991189    *:TOPS-20:*:*)
    13001190        echo pdp10-unknown-tops20
    1301         exit ;;
     1191        exit 0 ;;
    13021192    *:ITS:*:*)
    13031193        echo pdp10-unknown-its
    1304         exit ;;
    1305     SEI:*:*:SEIUX)
    1306         echo mips-sei-seiux${UNAME_RELEASE}
    1307         exit ;;
    1308     *:DragonFly:*:*)
    1309         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1310         exit ;;
    1311     *:*VMS:*:*)
    1312         UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1313         case "${UNAME_MACHINE}" in
    1314             A*) echo alpha-dec-vms ; exit ;;
    1315             I*) echo ia64-dec-vms ; exit ;;
    1316             V*) echo vax-dec-vms ; exit ;;
    1317         esac ;;
    1318     *:XENIX:*:SysV)
    1319         echo i386-pc-xenix
    1320         exit ;;
    1321     i*86:skyos:*:*)
    1322         echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
    1323         exit ;;
    1324     i*86:rdos:*:*)
    1325         echo ${UNAME_MACHINE}-pc-rdos
    1326         exit ;;
     1194        exit 0 ;;
    13271195esac
    13281196
     
    13561224
    13571225#if defined (__arm) && defined (__acorn) && defined (__unix)
    1358   printf ("arm-acorn-riscix\n"); exit (0);
     1226  printf ("arm-acorn-riscix"); exit (0);
    13591227#endif
    13601228
     
    14451313EOF
    14461314
    1447 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
    1448         { echo "$SYSTEM_NAME"; exit; }
     1315$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    14491316
    14501317# Apollos put the system type in the environment.
    14511318
    1452 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
     1319test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
    14531320
    14541321# Convex versions that predate uname can use getsysinfo(1)
     
    14591326    c1*)
    14601327        echo c1-convex-bsd
    1461         exit ;;
     1328        exit 0 ;;
    14621329    c2*)
    14631330        if getsysinfo -f scalar_acc
     
    14651332        else echo c2-convex-bsd
    14661333        fi
    1467         exit ;;
     1334        exit 0 ;;
    14681335    c34*)
    14691336        echo c34-convex-bsd
    1470         exit ;;
     1337        exit 0 ;;
    14711338    c38*)
    14721339        echo c38-convex-bsd
    1473         exit ;;
     1340        exit 0 ;;
    14741341    c4*)
    14751342        echo c4-convex-bsd
    1476         exit ;;
     1343        exit 0 ;;
    14771344    esac
    14781345fi
     
    14851352download the most up to date version of the config scripts from
    14861353
    1487   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
    1488 and
    1489   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
     1354    ftp://ftp.gnu.org/pub/gnu/config/
    14901355
    14911356If the version you run ($0) is already up to date, please
Note: See TracChangeset for help on using the changeset viewer.