Ignore:
Timestamp:
Mar 15, 2016 3:57:39 AM (8 years ago)
Author:
nanang
Message:

Close #1847: Upgraded libsrtp version to 1.5.4 and added support for AES-CM-256 crypto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/srtp/config.guess

    r1730 r5261  
    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 Free Software Foundation, Inc. 
    5  
    6 timestamp='2004-09-07' 
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 
     5#   2011 Free Software Foundation, Inc. 
     6 
     7timestamp='2011-06-03' 
    78 
    89# This file is free software; you can redistribute it and/or modify it 
     
    1819# You should have received a copy of the GNU General Public License 
    1920# along with this program; if not, write to the Free Software 
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
     21# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 
     22# 02110-1301, USA. 
    2123# 
    2224# As a special exception to the GNU General Public License, if you 
     
    2527# the same distribution terms that you use for the rest of that program. 
    2628 
    27 # Originally written by Per Bothner <per@bothner.com>. 
    28 # Please send patches to <config-patches@gnu.org>.  Submit a context 
    29 # diff and a properly formatted ChangeLog entry. 
     29 
     30# Originally written by Per Bothner.  Please send patches (context 
     31# diff format) to <config-patches@gnu.org> and include a ChangeLog 
     32# entry. 
    3033# 
    3134# This script attempts to guess a canonical system name similar to 
     
    3336# exits with 0.  Otherwise, it exits with 1. 
    3437# 
    35 # The plan is that this can be called by configure scripts if you 
    36 # don't specify an explicit build system type. 
     38# You can get the latest version of this script from: 
     39# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 
    3740 
    3841me=`echo "$0" | sed -e 's,.*/,,'` 
     
    5457 
    5558Originally written by Per Bothner. 
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 
    57 Free Software Foundation, Inc. 
     59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 
     602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 
     61Software Foundation, Inc. 
    5862 
    5963This is free software; see the source for copying conditions.  There is NO 
     
    6771  case $1 in 
    6872    --time-stamp | --time* | -t ) 
    69        echo "$timestamp" ; exit 0 ;; 
     73       echo "$timestamp" ; exit ;; 
    7074    --version | -v ) 
    71        echo "$version" ; exit 0 ;; 
     75       echo "$version" ; exit ;; 
    7276    --help | --h* | -h ) 
    73        echo "$usage"; exit 0 ;; 
     77       echo "$usage"; exit ;; 
    7478    -- )     # Stop option processing 
    7579       shift; break ;; 
     
    105109trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 
    106110: ${TMPDIR=/tmp} ; 
    107  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 
     111 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 
    108112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 
    109113 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 
     
    124128 ,,*)   CC_FOR_BUILD=$CC ;; 
    125129 ,*,*)  CC_FOR_BUILD=$HOST_CC ;; 
    126 esac ;' 
     130esac ; set_cc_for_build= ;' 
    127131 
    128132# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 
     
    159163            sh3el) machine=shl-unknown ;; 
    160164            sh3eb) machine=sh-unknown ;; 
     165            sh5el) machine=sh5le-unknown ;; 
    161166            *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 
    162167        esac 
     
    167172                eval $set_cc_for_build 
    168173                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 
    169                         | grep __ELF__ >/dev/null 
     174                        | grep -q __ELF__ 
    170175                then 
    171176                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 
     
    177182                ;; 
    178183            *) 
    179                 os=netbsd 
     184                os=netbsd 
    180185                ;; 
    181186        esac 
     
    197202        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 
    198203        echo "${machine}-${os}${release}" 
    199         exit 0 ;; 
    200     amd64:OpenBSD:*:*) 
    201         echo x86_64-unknown-openbsd${UNAME_RELEASE} 
    202         exit 0 ;; 
    203     amiga:OpenBSD:*:*) 
    204         echo m68k-unknown-openbsd${UNAME_RELEASE} 
    205         exit 0 ;; 
    206     cats:OpenBSD:*:*) 
    207         echo arm-unknown-openbsd${UNAME_RELEASE} 
    208         exit 0 ;; 
    209     hp300:OpenBSD:*:*) 
    210         echo m68k-unknown-openbsd${UNAME_RELEASE} 
    211         exit 0 ;; 
    212     luna88k:OpenBSD:*:*) 
    213         echo m88k-unknown-openbsd${UNAME_RELEASE} 
    214         exit 0 ;; 
    215     mac68k:OpenBSD:*:*) 
    216         echo m68k-unknown-openbsd${UNAME_RELEASE} 
    217         exit 0 ;; 
    218     macppc:OpenBSD:*:*) 
    219         echo powerpc-unknown-openbsd${UNAME_RELEASE} 
    220         exit 0 ;; 
    221     mvme68k:OpenBSD:*:*) 
    222         echo m68k-unknown-openbsd${UNAME_RELEASE} 
    223         exit 0 ;; 
    224     mvme88k:OpenBSD:*:*) 
    225         echo m88k-unknown-openbsd${UNAME_RELEASE} 
    226         exit 0 ;; 
    227     mvmeppc:OpenBSD:*:*) 
    228         echo powerpc-unknown-openbsd${UNAME_RELEASE} 
    229         exit 0 ;; 
    230     sgi:OpenBSD:*:*) 
    231         echo mips64-unknown-openbsd${UNAME_RELEASE} 
    232         exit 0 ;; 
    233     sun3:OpenBSD:*:*) 
    234         echo m68k-unknown-openbsd${UNAME_RELEASE} 
    235         exit 0 ;; 
     204        exit ;; 
    236205    *:OpenBSD:*:*) 
    237         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 
    238         exit 0 ;; 
     206        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 
     207        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 
     208        exit ;; 
    239209    *:ekkoBSD:*:*) 
    240210        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 
    241         exit 0 ;; 
     211        exit ;; 
     212    *:SolidBSD:*:*) 
     213        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 
     214        exit ;; 
    242215    macppc:MirBSD:*:*) 
    243         echo powerppc-unknown-mirbsd${UNAME_RELEASE} 
    244         exit 0 ;; 
     216        echo powerpc-unknown-mirbsd${UNAME_RELEASE} 
     217        exit ;; 
    245218    *:MirBSD:*:*) 
    246219        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 
    247         exit 0 ;; 
     220        exit ;; 
    248221    alpha:OSF1:*:*) 
    249222        case $UNAME_RELEASE in 
     
    252225                ;; 
    253226        *5.*) 
    254                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 
     227                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 
    255228                ;; 
    256229        esac 
     
    298271        # 1.2 uses "1.2" for uname -r. 
    299272        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
    300         exit 0 ;; 
     273        # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 
     274        exitcode=$? 
     275        trap '' 0 
     276        exit $exitcode ;; 
    301277    Alpha\ *:Windows_NT*:*) 
    302278        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    304280        # of the specific Alpha model? 
    305281        echo alpha-pc-interix 
    306         exit 0 ;; 
     282        exit ;; 
    307283    21064:Windows_NT:50:3) 
    308284        echo alpha-dec-winnt3.5 
    309         exit 0 ;; 
     285        exit ;; 
    310286    Amiga*:UNIX_System_V:4.0:*) 
    311287        echo m68k-unknown-sysv4 
    312         exit 0;; 
     288        exit ;; 
    313289    *:[Aa]miga[Oo][Ss]:*:*) 
    314290        echo ${UNAME_MACHINE}-unknown-amigaos 
    315         exit 0 ;; 
     291        exit ;; 
    316292    *:[Mm]orph[Oo][Ss]:*:*) 
    317293        echo ${UNAME_MACHINE}-unknown-morphos 
    318         exit 0 ;; 
     294        exit ;; 
    319295    *:OS/390:*:*) 
    320296        echo i370-ibm-openedition 
    321         exit 0 ;; 
     297        exit ;; 
     298    *:z/VM:*:*) 
     299        echo s390-ibm-zvmoe 
     300        exit ;; 
    322301    *:OS400:*:*) 
    323         echo powerpc-ibm-os400 
    324         exit 0 ;; 
     302        echo powerpc-ibm-os400 
     303        exit ;; 
    325304    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 
    326305        echo arm-acorn-riscix${UNAME_RELEASE} 
    327         exit 0;; 
     306        exit ;; 
     307    arm:riscos:*:*|arm:RISCOS:*:*) 
     308        echo arm-unknown-riscos 
     309        exit ;; 
    328310    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 
    329311        echo hppa1.1-hitachi-hiuxmpp 
    330         exit 0;; 
     312        exit ;; 
    331313    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 
    332314        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 
     
    336318                echo pyramid-pyramid-bsd 
    337319        fi 
    338         exit 0 ;; 
     320        exit ;; 
    339321    NILE*:*:*:dcosx) 
    340322        echo pyramid-pyramid-svr4 
    341         exit 0 ;; 
     323        exit ;; 
    342324    DRS?6000:unix:4.0:6*) 
    343325        echo sparc-icl-nx6 
    344         exit 0 ;; 
    345     DRS?6000:UNIX_SV:4.2*:7*) 
     326        exit ;; 
     327    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 
    346328        case `/usr/bin/uname -p` in 
    347             sparc) echo sparc-icl-nx7 && exit 0 ;; 
     329            sparc) echo sparc-icl-nx7; exit ;; 
    348330        esac ;; 
     331    s390x:SunOS:*:*) 
     332        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
     333        exit ;; 
    349334    sun4H:SunOS:5.*:*) 
    350335        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    351         exit 0 ;; 
     336        exit ;; 
    352337    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 
    353338        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    354         exit 0 ;; 
    355     i86pc:SunOS:5.*:*) 
    356         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    357         exit 0 ;; 
     339        exit ;; 
     340    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 
     341        echo i386-pc-auroraux${UNAME_RELEASE} 
     342        exit ;; 
     343    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 
     344        eval $set_cc_for_build 
     345        SUN_ARCH="i386" 
     346        # If there is a compiler, see if it is configured for 64-bit objects. 
     347        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 
     348        # This test works for both compilers. 
     349        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 
     350            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 
     351                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 
     352                grep IS_64BIT_ARCH >/dev/null 
     353            then 
     354                SUN_ARCH="x86_64" 
     355            fi 
     356        fi 
     357        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
     358        exit ;; 
    358359    sun4*:SunOS:6*:*) 
    359360        # According to config.sub, this is the proper way to canonicalize 
     
    361362        # it's likely to be more like Solaris than SunOS4. 
    362363        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    363         exit 0 ;; 
     364        exit ;; 
    364365    sun4*:SunOS:*:*) 
    365366        case "`/usr/bin/arch -k`" in 
     
    370371        # Japanese Language versions have a version number like `4.1.3-JL'. 
    371372        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 
    372         exit 0 ;; 
     373        exit ;; 
    373374    sun3*:SunOS:*:*) 
    374375        echo m68k-sun-sunos${UNAME_RELEASE} 
    375         exit 0 ;; 
     376        exit ;; 
    376377    sun*:*:4.2BSD:*) 
    377378        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 
     
    385386                ;; 
    386387        esac 
    387         exit 0 ;; 
     388        exit ;; 
    388389    aushp:SunOS:*:*) 
    389390        echo sparc-auspex-sunos${UNAME_RELEASE} 
    390         exit 0 ;; 
     391        exit ;; 
    391392    # The situation for MiNT is a little confusing.  The machine name 
    392393    # can be virtually everything (everything which is not 
     
    398399    # be no problem. 
    399400    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 
    400         echo m68k-atari-mint${UNAME_RELEASE} 
    401         exit 0 ;; 
     401        echo m68k-atari-mint${UNAME_RELEASE} 
     402        exit ;; 
    402403    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 
    403404        echo m68k-atari-mint${UNAME_RELEASE} 
    404         exit 0 ;; 
     405        exit ;; 
    405406    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 
    406         echo m68k-atari-mint${UNAME_RELEASE} 
    407         exit 0 ;; 
     407        echo m68k-atari-mint${UNAME_RELEASE} 
     408        exit ;; 
    408409    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 
    409         echo m68k-milan-mint${UNAME_RELEASE} 
    410         exit 0 ;; 
     410        echo m68k-milan-mint${UNAME_RELEASE} 
     411        exit ;; 
    411412    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 
    412         echo m68k-hades-mint${UNAME_RELEASE} 
    413         exit 0 ;; 
     413        echo m68k-hades-mint${UNAME_RELEASE} 
     414        exit ;; 
    414415    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 
    415         echo m68k-unknown-mint${UNAME_RELEASE} 
    416         exit 0 ;; 
     416        echo m68k-unknown-mint${UNAME_RELEASE} 
     417        exit ;; 
    417418    m68k:machten:*:*) 
    418419        echo m68k-apple-machten${UNAME_RELEASE} 
    419         exit 0 ;; 
     420        exit ;; 
    420421    powerpc:machten:*:*) 
    421422        echo powerpc-apple-machten${UNAME_RELEASE} 
    422         exit 0 ;; 
     423        exit ;; 
    423424    RISC*:Mach:*:*) 
    424425        echo mips-dec-mach_bsd4.3 
    425         exit 0 ;; 
     426        exit ;; 
    426427    RISC*:ULTRIX:*:*) 
    427428        echo mips-dec-ultrix${UNAME_RELEASE} 
    428         exit 0 ;; 
     429        exit ;; 
    429430    VAX*:ULTRIX*:*:*) 
    430431        echo vax-dec-ultrix${UNAME_RELEASE} 
    431         exit 0 ;; 
     432        exit ;; 
    432433    2020:CLIX:*:* | 2430:CLIX:*:*) 
    433434        echo clipper-intergraph-clix${UNAME_RELEASE} 
    434         exit 0 ;; 
     435        exit ;; 
    435436    mips:*:*:UMIPS | mips:*:*:RISCos) 
    436437        eval $set_cc_for_build 
     
    456457        } 
    457458EOF 
    458         $CC_FOR_BUILD -o $dummy $dummy.c \ 
    459           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 
    460           && exit 0 
     459        $CC_FOR_BUILD -o $dummy $dummy.c && 
     460          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 
     461          SYSTEM_NAME=`$dummy $dummyarg` && 
     462            { echo "$SYSTEM_NAME"; exit; } 
    461463        echo mips-mips-riscos${UNAME_RELEASE} 
    462         exit 0 ;; 
     464        exit ;; 
    463465    Motorola:PowerMAX_OS:*:*) 
    464466        echo powerpc-motorola-powermax 
    465         exit 0 ;; 
     467        exit ;; 
    466468    Motorola:*:4.3:PL8-*) 
    467469        echo powerpc-harris-powermax 
    468         exit 0 ;; 
     470        exit ;; 
    469471    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 
    470472        echo powerpc-harris-powermax 
    471         exit 0 ;; 
     473        exit ;; 
    472474    Night_Hawk:Power_UNIX:*:*) 
    473475        echo powerpc-harris-powerunix 
    474         exit 0 ;; 
     476        exit ;; 
    475477    m88k:CX/UX:7*:*) 
    476478        echo m88k-harris-cxux7 
    477         exit 0 ;; 
     479        exit ;; 
    478480    m88k:*:4*:R4*) 
    479481        echo m88k-motorola-sysv4 
    480         exit 0 ;; 
     482        exit ;; 
    481483    m88k:*:3*:R3*) 
    482484        echo m88k-motorola-sysv3 
    483         exit 0 ;; 
     485        exit ;; 
    484486    AViiON:dgux:*:*) 
    485         # DG/UX returns AViiON for all architectures 
    486         UNAME_PROCESSOR=`/usr/bin/uname -p` 
     487        # DG/UX returns AViiON for all architectures 
     488        UNAME_PROCESSOR=`/usr/bin/uname -p` 
    487489        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 
    488490        then 
     
    497499            echo i586-dg-dgux${UNAME_RELEASE} 
    498500        fi 
    499         exit 0 ;; 
     501        exit ;; 
    500502    M88*:DolphinOS:*:*) # DolphinOS (SVR3) 
    501503        echo m88k-dolphin-sysv3 
    502         exit 0 ;; 
     504        exit ;; 
    503505    M88*:*:R3*:*) 
    504506        # Delta 88k system running SVR3 
    505507        echo m88k-motorola-sysv3 
    506         exit 0 ;; 
     508        exit ;; 
    507509    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 
    508510        echo m88k-tektronix-sysv3 
    509         exit 0 ;; 
     511        exit ;; 
    510512    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 
    511513        echo m68k-tektronix-bsd 
    512         exit 0 ;; 
     514        exit ;; 
    513515    *:IRIX*:*:*) 
    514516        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 
    515         exit 0 ;; 
     517        exit ;; 
    516518    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 
    517         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id 
    518         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX ' 
     519        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id 
     520        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX ' 
    519521    i*86:AIX:*:*) 
    520522        echo i386-ibm-aix 
    521         exit 0 ;; 
     523        exit ;; 
    522524    ia64:AIX:*:*) 
    523525        if [ -x /usr/bin/oslevel ] ; then 
     
    527529        fi 
    528530        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 
    529         exit 0 ;; 
     531        exit ;; 
    530532    *:AIX:2:3) 
    531533        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 
     
    542544                        } 
    543545EOF 
    544                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
    545                 echo rs6000-ibm-aix3.2.5 
     546                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 
     547                then 
     548                        echo "$SYSTEM_NAME" 
     549                else 
     550                        echo rs6000-ibm-aix3.2.5 
     551                fi 
    546552        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 
    547553                echo rs6000-ibm-aix3.2.4 
     
    549555                echo rs6000-ibm-aix3.2 
    550556        fi 
    551         exit 0 ;; 
    552     *:AIX:*:[45]) 
     557        exit ;; 
     558    *:AIX:*:[4567]) 
    553559        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 
    554560        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 
     
    563569        fi 
    564570        echo ${IBM_ARCH}-ibm-aix${IBM_REV} 
    565         exit 0 ;; 
     571        exit ;; 
    566572    *:AIX:*:*) 
    567573        echo rs6000-ibm-aix 
    568         exit 0 ;; 
     574        exit ;; 
    569575    ibmrt:4.4BSD:*|romp-ibm:BSD:*) 
    570576        echo romp-ibm-bsd4.4 
    571         exit 0 ;; 
     577        exit ;; 
    572578    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and 
    573579        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to 
    574         exit 0 ;;                           # report: romp-ibm BSD 4.3 
     580        exit ;;                             # report: romp-ibm BSD 4.3 
    575581    *:BOSX:*:*) 
    576582        echo rs6000-bull-bosx 
    577         exit 0 ;; 
     583        exit ;; 
    578584    DPX/2?00:B.O.S.:*:*) 
    579585        echo m68k-bull-sysv3 
    580         exit 0 ;; 
     586        exit ;; 
    581587    9000/[34]??:4.3bsd:1.*:*) 
    582588        echo m68k-hp-bsd 
    583         exit 0 ;; 
     589        exit ;; 
    584590    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 
    585591        echo m68k-hp-bsd4.4 
    586         exit 0 ;; 
     592        exit ;; 
    587593    9000/[34678]??:HP-UX:*:*) 
    588594        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
     
    593599                if [ -x /usr/bin/getconf ]; then 
    594600                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 
    595                     sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 
    596                     case "${sc_cpu_version}" in 
    597                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 
    598                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 
    599                       532)                      # CPU_PA_RISC2_0 
    600                         case "${sc_kernel_bits}" in 
    601                           32) HP_ARCH="hppa2.0n" ;; 
    602                           64) HP_ARCH="hppa2.0w" ;; 
     601                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 
     602                    case "${sc_cpu_version}" in 
     603                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 
     604                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 
     605                      532)                      # CPU_PA_RISC2_0 
     606                        case "${sc_kernel_bits}" in 
     607                          32) HP_ARCH="hppa2.0n" ;; 
     608                          64) HP_ARCH="hppa2.0w" ;; 
    603609                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20 
    604                         esac ;; 
    605                     esac 
     610                        esac ;; 
     611                    esac 
    606612                fi 
    607613                if [ "${HP_ARCH}" = "" ]; then 
    608614                    eval $set_cc_for_build 
    609                     sed 's/^              //' << EOF >$dummy.c 
    610  
    611               #define _HPUX_SOURCE 
    612               #include <stdlib.h> 
    613               #include <unistd.h> 
    614  
    615               int main () 
    616               { 
    617               #if defined(_SC_KERNEL_BITS) 
    618                   long bits = sysconf(_SC_KERNEL_BITS); 
    619               #endif 
    620                   long cpu  = sysconf (_SC_CPU_VERSION); 
    621  
    622                   switch (cpu) 
    623                 { 
    624                 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 
    625                 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 
    626                 case CPU_PA_RISC2_0: 
    627               #if defined(_SC_KERNEL_BITS) 
    628                     switch (bits) 
    629                         { 
    630                         case 64: puts ("hppa2.0w"); break; 
    631                         case 32: puts ("hppa2.0n"); break; 
    632                         default: puts ("hppa2.0"); break; 
    633                         } break; 
    634               #else  /* !defined(_SC_KERNEL_BITS) */ 
    635                     puts ("hppa2.0"); break; 
    636               #endif 
    637                 default: puts ("hppa1.0"); break; 
    638                 } 
    639                   exit (0); 
    640               } 
     615                    sed 's/^            //' << EOF >$dummy.c 
     616 
     617                #define _HPUX_SOURCE 
     618                #include <stdlib.h> 
     619                #include <unistd.h> 
     620 
     621                int main () 
     622                { 
     623                #if defined(_SC_KERNEL_BITS) 
     624                    long bits = sysconf(_SC_KERNEL_BITS); 
     625                #endif 
     626                    long cpu  = sysconf (_SC_CPU_VERSION); 
     627 
     628                    switch (cpu) 
     629                        { 
     630                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 
     631                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 
     632                        case CPU_PA_RISC2_0: 
     633                #if defined(_SC_KERNEL_BITS) 
     634                            switch (bits) 
     635                                { 
     636                                case 64: puts ("hppa2.0w"); break; 
     637                                case 32: puts ("hppa2.0n"); break; 
     638                                default: puts ("hppa2.0"); break; 
     639                                } break; 
     640                #else  /* !defined(_SC_KERNEL_BITS) */ 
     641                            puts ("hppa2.0"); break; 
     642                #endif 
     643                        default: puts ("hppa1.0"); break; 
     644                        } 
     645                    exit (0); 
     646                } 
    641647EOF 
    642648                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 
     
    646652        if [ ${HP_ARCH} = "hppa2.0w" ] 
    647653        then 
    648             # avoid double evaluation of $set_cc_for_build 
    649             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 
    650             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 
     654            eval $set_cc_for_build 
     655 
     656            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 
     657            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler 
     658            # generating 64-bit code.  GNU and HP use different nomenclature: 
     659            # 
     660            # $ CC_FOR_BUILD=cc ./config.guess 
     661            # => hppa2.0w-hp-hpux11.23 
     662            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 
     663            # => hppa64-hp-hpux11.23 
     664 
     665            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 
     666                grep -q __LP64__ 
    651667            then 
    652668                HP_ARCH="hppa2.0w" 
     
    656672        fi 
    657673        echo ${HP_ARCH}-hp-hpux${HPUX_REV} 
    658         exit 0 ;; 
     674        exit ;; 
    659675    ia64:HP-UX:*:*) 
    660676        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
    661677        echo ia64-hp-hpux${HPUX_REV} 
    662         exit 0 ;; 
     678        exit ;; 
    663679    3050*:HI-UX:*:*) 
    664680        eval $set_cc_for_build 
     
    688704        } 
    689705EOF 
    690         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
     706        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 
     707                { echo "$SYSTEM_NAME"; exit; } 
    691708        echo unknown-hitachi-hiuxwe2 
    692         exit 0 ;; 
     709        exit ;; 
    693710    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 
    694711        echo hppa1.1-hp-bsd 
    695         exit 0 ;; 
     712        exit ;; 
    696713    9000/8??:4.3bsd:*:*) 
    697714        echo hppa1.0-hp-bsd 
    698         exit 0 ;; 
     715        exit ;; 
    699716    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 
    700717        echo hppa1.0-hp-mpeix 
    701         exit 0 ;; 
     718        exit ;; 
    702719    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 
    703720        echo hppa1.1-hp-osf 
    704         exit 0 ;; 
     721        exit ;; 
    705722    hp8??:OSF1:*:*) 
    706723        echo hppa1.0-hp-osf 
    707         exit 0 ;; 
     724        exit ;; 
    708725    i*86:OSF1:*:*) 
    709726        if [ -x /usr/sbin/sysversion ] ; then 
     
    712729            echo ${UNAME_MACHINE}-unknown-osf1 
    713730        fi 
    714         exit 0 ;; 
     731        exit ;; 
    715732    parisc*:Lites*:*:*) 
    716733        echo hppa1.1-hp-lites 
    717         exit 0 ;; 
     734        exit ;; 
    718735    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 
    719736        echo c1-convex-bsd 
    720         exit 0 ;; 
     737        exit ;; 
    721738    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 
    722739        if getsysinfo -f scalar_acc 
     
    724741        else echo c2-convex-bsd 
    725742        fi 
    726         exit 0 ;; 
     743        exit ;; 
    727744    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 
    728745        echo c34-convex-bsd 
    729         exit 0 ;; 
     746        exit ;; 
    730747    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 
    731748        echo c38-convex-bsd 
    732         exit 0 ;; 
     749        exit ;; 
    733750    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 
    734751        echo c4-convex-bsd 
    735         exit 0 ;; 
     752        exit ;; 
    736753    CRAY*Y-MP:*:*:*) 
    737754        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    738         exit 0 ;; 
     755        exit ;; 
    739756    CRAY*[A-Z]90:*:*:*) 
    740757        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 
     
    742759              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 
    743760              -e 's/\.[^.]*$/.X/' 
    744         exit 0 ;; 
     761        exit ;; 
    745762    CRAY*TS:*:*:*) 
    746763        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    747         exit 0 ;; 
     764        exit ;; 
    748765    CRAY*T3E:*:*:*) 
    749766        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    750         exit 0 ;; 
     767        exit ;; 
    751768    CRAY*SV1:*:*:*) 
    752769        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    753         exit 0 ;; 
     770        exit ;; 
    754771    *:UNICOS/mp:*:*) 
    755772        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    756         exit 0 ;; 
     773        exit ;; 
    757774    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 
    758775        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
    759         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 
    760         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 
    761         echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
    762         exit 0 ;; 
     776        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 
     777        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 
     778        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
     779        exit ;; 
    763780    5000:UNIX_System_V:4.*:*) 
    764         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 
    765         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 
    766         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
    767         exit 0 ;; 
     781        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 
     782        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 
     783        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
     784        exit ;; 
    768785    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 
    769786        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 
    770         exit 0 ;; 
     787        exit ;; 
    771788    sparc*:BSD/OS:*:*) 
    772789        echo sparc-unknown-bsdi${UNAME_RELEASE} 
    773         exit 0 ;; 
     790        exit ;; 
    774791    *:BSD/OS:*:*) 
    775792        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 
    776         exit 0 ;; 
     793        exit ;; 
    777794    *:FreeBSD:*:*) 
    778         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 
    779         exit 0 ;; 
     795        case ${UNAME_MACHINE} in 
     796            pc98) 
     797                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     798            amd64) 
     799                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     800            *) 
     801                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 
     802        esac 
     803        exit ;; 
    780804    i*:CYGWIN*:*) 
    781805        echo ${UNAME_MACHINE}-pc-cygwin 
    782         exit 0 ;; 
    783     i*:MINGW*:*) 
     806        exit ;; 
     807    *:MINGW*:*) 
    784808        echo ${UNAME_MACHINE}-pc-mingw32 
    785         exit 0 ;; 
     809        exit ;; 
     810    i*:windows32*:*) 
     811        # uname -m includes "-pc" on this system. 
     812        echo ${UNAME_MACHINE}-mingw32 
     813        exit ;; 
    786814    i*:PW*:*) 
    787815        echo ${UNAME_MACHINE}-pc-pw32 
    788         exit 0 ;; 
    789     x86:Interix*:[34]*) 
    790         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 
    791         exit 0 ;; 
     816        exit ;; 
     817    *:Interix*:*) 
     818        case ${UNAME_MACHINE} in 
     819            x86) 
     820                echo i586-pc-interix${UNAME_RELEASE} 
     821                exit ;; 
     822            authenticamd | genuineintel | EM64T) 
     823                echo x86_64-unknown-interix${UNAME_RELEASE} 
     824                exit ;; 
     825            IA64) 
     826                echo ia64-unknown-interix${UNAME_RELEASE} 
     827                exit ;; 
     828        esac ;; 
    792829    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 
    793830        echo i${UNAME_MACHINE}-pc-mks 
    794         exit 0 ;; 
     831        exit ;; 
     832    8664:Windows_NT:*) 
     833        echo x86_64-pc-mks 
     834        exit ;; 
    795835    i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 
    796836        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    798838        # UNAME_MACHINE based on the output of uname instead of i386? 
    799839        echo i586-pc-interix 
    800         exit 0 ;; 
     840        exit ;; 
    801841    i*:UWIN*:*) 
    802842        echo ${UNAME_MACHINE}-pc-uwin 
    803         exit 0 ;; 
     843        exit ;; 
     844    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 
     845        echo x86_64-unknown-cygwin 
     846        exit ;; 
    804847    p*:CYGWIN*:*) 
    805848        echo powerpcle-unknown-cygwin 
    806         exit 0 ;; 
     849        exit ;; 
    807850    prep*:SunOS:5.*:*) 
    808851        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    809         exit 0 ;; 
     852        exit ;; 
    810853    *:GNU:*:*) 
    811854        # the GNU system 
    812855        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 
    813         exit 0 ;; 
     856        exit ;; 
    814857    *:GNU/*:*:*) 
    815858        # other systems with GNU libc and userland 
    816859        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 
    817         exit 0 ;; 
     860        exit ;; 
    818861    i*86:Minix:*:*) 
    819862        echo ${UNAME_MACHINE}-pc-minix 
    820         exit 0 ;; 
    821     arm*:Linux:*:*) 
    822         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    823         exit 0 ;; 
    824     cris:Linux:*:*) 
    825         echo cris-axis-linux-gnu 
    826         exit 0 ;; 
    827     crisv32:Linux:*:*) 
    828         echo crisv32-axis-linux-gnu 
    829         exit 0 ;; 
    830     frv:Linux:*:*) 
    831         echo frv-unknown-linux-gnu 
    832         exit 0 ;; 
    833     ia64:Linux:*:*) 
    834         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    835         exit 0 ;; 
    836     m32r*:Linux:*:*) 
    837         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    838         exit 0 ;; 
    839     m68*:Linux:*:*) 
    840         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    841         exit 0 ;; 
    842     mips:Linux:*:*) 
    843         eval $set_cc_for_build 
    844         sed 's/^        //' << EOF >$dummy.c 
    845         #undef CPU 
    846         #undef mips 
    847         #undef mipsel 
    848         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
    849         CPU=mipsel 
    850         #else 
    851         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 
    852         CPU=mips 
    853         #else 
    854         CPU= 
    855         #endif 
    856         #endif 
    857 EOF 
    858         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
    859         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 
    860         ;; 
    861     mips64:Linux:*:*) 
    862         eval $set_cc_for_build 
    863         sed 's/^        //' << EOF >$dummy.c 
    864         #undef CPU 
    865         #undef mips64 
    866         #undef mips64el 
    867         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
    868         CPU=mips64el 
    869         #else 
    870         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 
    871         CPU=mips64 
    872         #else 
    873         CPU= 
    874         #endif 
    875         #endif 
    876 EOF 
    877         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
    878         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 
    879         ;; 
    880     ppc:Linux:*:*) 
    881         echo powerpc-unknown-linux-gnu 
    882         exit 0 ;; 
    883     ppc64:Linux:*:*) 
    884         echo powerpc64-unknown-linux-gnu 
    885         exit 0 ;; 
     863        exit ;; 
    886864    alpha:Linux:*:*) 
    887865        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 
     
    893871          EV67)  UNAME_MACHINE=alphaev67 ;; 
    894872          EV68*) UNAME_MACHINE=alphaev68 ;; 
    895         esac 
    896         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 
     873        esac 
     874        objdump --private-headers /bin/sh | grep -q ld.so.1 
    897875        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 
    898876        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 
    899         exit 0 ;; 
     877        exit ;; 
     878    arm*:Linux:*:*) 
     879        eval $set_cc_for_build 
     880        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 
     881            | grep -q __ARM_EABI__ 
     882        then 
     883            echo ${UNAME_MACHINE}-unknown-linux-gnu 
     884        else 
     885            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 
     886                | grep -q __ARM_PCS_VFP 
     887            then 
     888                echo ${UNAME_MACHINE}-unknown-linux-gnueabi 
     889            else 
     890                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 
     891            fi 
     892        fi 
     893        exit ;; 
     894    avr32*:Linux:*:*) 
     895        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     896        exit ;; 
     897    cris:Linux:*:*) 
     898        echo cris-axis-linux-gnu 
     899        exit ;; 
     900    crisv32:Linux:*:*) 
     901        echo crisv32-axis-linux-gnu 
     902        exit ;; 
     903    frv:Linux:*:*) 
     904        echo frv-unknown-linux-gnu 
     905        exit ;; 
     906    i*86:Linux:*:*) 
     907        LIBC=gnu 
     908        eval $set_cc_for_build 
     909        sed 's/^        //' << EOF >$dummy.c 
     910        #ifdef __dietlibc__ 
     911        LIBC=dietlibc 
     912        #endif 
     913EOF 
     914        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 
     915        echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 
     916        exit ;; 
     917    ia64:Linux:*:*) 
     918        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     919        exit ;; 
     920    m32r*:Linux:*:*) 
     921        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     922        exit ;; 
     923    m68*:Linux:*:*) 
     924        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     925        exit ;; 
     926    mips:Linux:*:* | mips64:Linux:*:*) 
     927        eval $set_cc_for_build 
     928        sed 's/^        //' << EOF >$dummy.c 
     929        #undef CPU 
     930        #undef ${UNAME_MACHINE} 
     931        #undef ${UNAME_MACHINE}el 
     932        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
     933        CPU=${UNAME_MACHINE}el 
     934        #else 
     935        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 
     936        CPU=${UNAME_MACHINE} 
     937        #else 
     938        CPU= 
     939        #endif 
     940        #endif 
     941EOF 
     942        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 
     943        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
     944        ;; 
     945    or32:Linux:*:*) 
     946        echo or32-unknown-linux-gnu 
     947        exit ;; 
     948    padre:Linux:*:*) 
     949        echo sparc-unknown-linux-gnu 
     950        exit ;; 
     951    parisc64:Linux:*:* | hppa64:Linux:*:*) 
     952        echo hppa64-unknown-linux-gnu 
     953        exit ;; 
    900954    parisc:Linux:*:* | hppa:Linux:*:*) 
    901955        # Look for CPU level 
     
    905959          *)    echo hppa-unknown-linux-gnu ;; 
    906960        esac 
    907         exit 0 ;; 
    908     parisc64:Linux:*:* | hppa64:Linux:*:*) 
    909         echo hppa64-unknown-linux-gnu 
    910         exit 0 ;; 
     961        exit ;; 
     962    ppc64:Linux:*:*) 
     963        echo powerpc64-unknown-linux-gnu 
     964        exit ;; 
     965    ppc:Linux:*:*) 
     966        echo powerpc-unknown-linux-gnu 
     967        exit ;; 
    911968    s390:Linux:*:* | s390x:Linux:*:*) 
    912969        echo ${UNAME_MACHINE}-ibm-linux 
    913         exit 0 ;; 
     970        exit ;; 
    914971    sh64*:Linux:*:*) 
    915         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    916         exit 0 ;; 
     972        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     973        exit ;; 
    917974    sh*:Linux:*:*) 
    918975        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    919         exit 0 ;; 
     976        exit ;; 
    920977    sparc:Linux:*:* | sparc64:Linux:*:*) 
    921978        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    922         exit 0 ;; 
     979        exit ;; 
     980    tile*:Linux:*:*) 
     981        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     982        exit ;; 
     983    vax:Linux:*:*) 
     984        echo ${UNAME_MACHINE}-dec-linux-gnu 
     985        exit ;; 
    923986    x86_64:Linux:*:*) 
    924987        echo x86_64-unknown-linux-gnu 
    925         exit 0 ;; 
    926     i*86:Linux:*:*) 
    927         # The BFD linker knows what the default object file format is, so 
    928         # first see if it will tell us. cd to the root directory to prevent 
    929         # problems with other programs or directories called `ld' in the path. 
    930         # Set LC_ALL=C to ensure ld outputs messages in English. 
    931         ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 
    932                          | sed -ne '/supported targets:/!d 
    933                                     s/[         ][      ]*/ /g 
    934                                     s/.*supported targets: *// 
    935                                     s/ .*// 
    936                                     p'` 
    937         case "$ld_supported_targets" in 
    938           elf32-i386) 
    939                 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 
    940                 ;; 
    941           a.out-i386-linux) 
    942                 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 
    943                 exit 0 ;; 
    944           coff-i386) 
    945                 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 
    946                 exit 0 ;; 
    947           "") 
    948                 # Either a pre-BFD a.out linker (linux-gnuoldld) or 
    949                 # one that does not give us useful --help. 
    950                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 
    951                 exit 0 ;; 
    952         esac 
    953         # Determine whether the default compiler is a.out or elf 
    954         eval $set_cc_for_build 
    955         sed 's/^        //' << EOF >$dummy.c 
    956         #include <features.h> 
    957         #ifdef __ELF__ 
    958         # ifdef __GLIBC__ 
    959         #  if __GLIBC__ >= 2 
    960         LIBC=gnu 
    961         #  else 
    962         LIBC=gnulibc1 
    963         #  endif 
    964         # else 
    965         LIBC=gnulibc1 
    966         # endif 
    967         #else 
    968         #ifdef __INTEL_COMPILER 
    969         LIBC=gnu 
    970         #else 
    971         LIBC=gnuaout 
    972         #endif 
    973         #endif 
    974         #ifdef __dietlibc__ 
    975         LIBC=dietlibc 
    976         #endif 
    977 EOF 
    978         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 
    979         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 
    980         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 
    981         ;; 
     988        exit ;; 
     989    xtensa*:Linux:*:*) 
     990        echo ${UNAME_MACHINE}-unknown-linux-gnu 
     991        exit ;; 
    982992    i*86:DYNIX/ptx:4*:*) 
    983993        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 
     
    985995        # sysname and nodename. 
    986996        echo i386-sequent-sysv4 
    987         exit 0 ;; 
     997        exit ;; 
    988998    i*86:UNIX_SV:4.2MP:2.*) 
    989         # Unixware is an offshoot of SVR4, but it has its own version 
    990         # number series starting with 2... 
    991         # I am not positive that other SVR4 systems won't match this, 
     999        # Unixware is an offshoot of SVR4, but it has its own version 
     1000        # number series starting with 2... 
     1001        # I am not positive that other SVR4 systems won't match this, 
    9921002        # I just have to hope.  -- rms. 
    993         # Use sysv4.2uw... so that sysv4* matches it. 
     1003        # Use sysv4.2uw... so that sysv4* matches it. 
    9941004        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 
    995         exit 0 ;; 
     1005        exit ;; 
    9961006    i*86:OS/2:*:*) 
    9971007        # If we were able to find `uname', then EMX Unix compatibility 
    9981008        # is probably installed. 
    9991009        echo ${UNAME_MACHINE}-pc-os2-emx 
    1000         exit 0 ;; 
     1010        exit ;; 
    10011011    i*86:XTS-300:*:STOP) 
    10021012        echo ${UNAME_MACHINE}-unknown-stop 
    1003         exit 0 ;; 
     1013        exit ;; 
    10041014    i*86:atheos:*:*) 
    10051015        echo ${UNAME_MACHINE}-unknown-atheos 
    1006         exit 0 ;; 
    1007         i*86:syllable:*:*) 
     1016        exit ;; 
     1017    i*86:syllable:*:*) 
    10081018        echo ${UNAME_MACHINE}-pc-syllable 
    1009         exit 0 ;; 
    1010     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 
     1019        exit ;; 
     1020    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 
    10111021        echo i386-unknown-lynxos${UNAME_RELEASE} 
    1012         exit 0 ;; 
     1022        exit ;; 
    10131023    i*86:*DOS:*:*) 
    10141024        echo ${UNAME_MACHINE}-pc-msdosdjgpp 
    1015         exit 0 ;; 
     1025        exit ;; 
    10161026    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 
    10171027        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 
     
    10211031                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 
    10221032        fi 
    1023         exit 0 ;; 
    1024     i*86:*:5:[78]*) 
     1033        exit ;; 
     1034    i*86:*:5:[678]*) 
     1035        # UnixWare 7.x, OpenUNIX and OpenServer 6. 
    10251036        case `/bin/uname -X | grep "^Machine"` in 
    10261037            *486*)           UNAME_MACHINE=i486 ;; 
     
    10291040        esac 
    10301041        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 
    1031         exit 0 ;; 
     1042        exit ;; 
    10321043    i*86:*:3.2:*) 
    10331044        if test -f /usr/options/cb.name; then 
     
    10471058                echo ${UNAME_MACHINE}-pc-sysv32 
    10481059        fi 
    1049         exit 0 ;; 
     1060        exit ;; 
    10501061    pc:*:*:*) 
    10511062        # Left here for compatibility: 
    1052         # uname -m prints for DJGPP always 'pc', but it prints nothing about 
    1053         # the processor, so we play safe by assuming i386. 
    1054         echo i386-pc-msdosdjgpp 
    1055         exit 0 ;; 
     1063        # uname -m prints for DJGPP always 'pc', but it prints nothing about 
     1064        # the processor, so we play safe by assuming i586. 
     1065        # Note: whatever this is, it MUST be the same as what config.sub 
     1066        # prints for the "djgpp" host, or else GDB configury will decide that 
     1067        # this is a cross-build. 
     1068        echo i586-pc-msdosdjgpp 
     1069        exit ;; 
    10561070    Intel:Mach:3*:*) 
    10571071        echo i386-pc-mach3 
    1058         exit 0 ;; 
     1072        exit ;; 
    10591073    paragon:*:*:*) 
    10601074        echo i860-intel-osf1 
    1061         exit 0 ;; 
     1075        exit ;; 
    10621076    i860:*:4.*:*) # i860-SVR4 
    10631077        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 
     
    10661080          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4 
    10671081        fi 
    1068         exit 0 ;; 
     1082        exit ;; 
    10691083    mini*:CTIX:SYS*5:*) 
    10701084        # "miniframe" 
    10711085        echo m68010-convergent-sysv 
    1072         exit 0 ;; 
     1086        exit ;; 
    10731087    mc68k:UNIX:SYSTEM5:3.51m) 
    10741088        echo m68k-convergent-sysv 
    1075         exit 0 ;; 
     1089        exit ;; 
    10761090    M680?0:D-NIX:5.3:*) 
    10771091        echo m68k-diab-dnix 
    1078         exit 0 ;; 
     1092        exit ;; 
    10791093    M68*:*:R3V[5678]*:*) 
    1080         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 
     1094        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 
    10811095    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) 
    10821096        OS_REL='' 
     
    10841098        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 
    10851099        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 
    1086           && echo i486-ncr-sysv4.3${OS_REL} && exit 0 
     1100          && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 
    10871101        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 
    1088           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 
     1102          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 
    10891103    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 
    1090         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 
    1091           && echo i486-ncr-sysv4 && exit 0 ;; 
     1104        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 
     1105          && { echo i486-ncr-sysv4; exit; } ;; 
     1106    NCR*:*:4.2:* | MPRAS*:*:4.2:*) 
     1107        OS_REL='.3' 
     1108        test -r /etc/.relid \ 
     1109            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 
     1110        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 
     1111            && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 
     1112        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 
     1113            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 
     1114        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 
     1115            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 
    10921116    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 
    10931117        echo m68k-unknown-lynxos${UNAME_RELEASE} 
    1094         exit 0 ;; 
     1118        exit ;; 
    10951119    mc68030:UNIX_System_V:4.*:*) 
    10961120        echo m68k-atari-sysv4 
    1097         exit 0 ;; 
     1121        exit ;; 
    10981122    TSUNAMI:LynxOS:2.*:*) 
    10991123        echo sparc-unknown-lynxos${UNAME_RELEASE} 
    1100         exit 0 ;; 
     1124        exit ;; 
    11011125    rs6000:LynxOS:2.*:*) 
    11021126        echo rs6000-unknown-lynxos${UNAME_RELEASE} 
    1103         exit 0 ;; 
    1104     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 
     1127        exit ;; 
     1128    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 
    11051129        echo powerpc-unknown-lynxos${UNAME_RELEASE} 
    1106         exit 0 ;; 
     1130        exit ;; 
    11071131    SM[BE]S:UNIX_SV:*:*) 
    11081132        echo mips-dde-sysv${UNAME_RELEASE} 
    1109         exit 0 ;; 
     1133        exit ;; 
    11101134    RM*:ReliantUNIX-*:*:*) 
    11111135        echo mips-sni-sysv4 
    1112         exit 0 ;; 
     1136        exit ;; 
    11131137    RM*:SINIX-*:*:*) 
    11141138        echo mips-sni-sysv4 
    1115         exit 0 ;; 
     1139        exit ;; 
    11161140    *:SINIX-*:*:*) 
    11171141        if uname -p 2>/dev/null >/dev/null ; then 
     
    11211145                echo ns32k-sni-sysv 
    11221146        fi 
    1123         exit 0 ;; 
    1124     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 
    1125                       # says <Richard.M.Bartel@ccMail.Census.GOV> 
    1126         echo i586-unisys-sysv4 
    1127         exit 0 ;; 
     1147        exit ;; 
     1148    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 
     1149                        # says <Richard.M.Bartel@ccMail.Census.GOV> 
     1150        echo i586-unisys-sysv4 
     1151        exit ;; 
    11281152    *:UNIX_System_V:4*:FTX*) 
    11291153        # From Gerald Hewes <hewes@openmarket.com>. 
    11301154        # How about differentiating between stratus architectures? -djm 
    11311155        echo hppa1.1-stratus-sysv4 
    1132         exit 0 ;; 
     1156        exit ;; 
    11331157    *:*:*:FTX*) 
    11341158        # From seanf@swdc.stratus.com. 
    11351159        echo i860-stratus-sysv4 
    1136         exit 0 ;; 
     1160        exit ;; 
     1161    i*86:VOS:*:*) 
     1162        # From Paul.Green@stratus.com. 
     1163        echo ${UNAME_MACHINE}-stratus-vos 
     1164        exit ;; 
    11371165    *:VOS:*:*) 
    11381166        # From Paul.Green@stratus.com. 
    11391167        echo hppa1.1-stratus-vos 
    1140         exit 0 ;; 
     1168        exit ;; 
    11411169    mc68*:A/UX:*:*) 
    11421170        echo m68k-apple-aux${UNAME_RELEASE} 
    1143         exit 0 ;; 
     1171        exit ;; 
    11441172    news*:NEWS-OS:6*:*) 
    11451173        echo mips-sony-newsos6 
    1146         exit 0 ;; 
     1174        exit ;; 
    11471175    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 
    11481176        if [ -d /usr/nec ]; then 
    1149                 echo mips-nec-sysv${UNAME_RELEASE} 
     1177                echo mips-nec-sysv${UNAME_RELEASE} 
    11501178        else 
    1151                 echo mips-unknown-sysv${UNAME_RELEASE} 
    1152         fi 
    1153         exit 0 ;; 
     1179                echo mips-unknown-sysv${UNAME_RELEASE} 
     1180        fi 
     1181        exit ;; 
    11541182    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only. 
    11551183        echo powerpc-be-beos 
    1156         exit 0 ;; 
     1184        exit ;; 
    11571185    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only. 
    11581186        echo powerpc-apple-beos 
    1159         exit 0 ;; 
     1187        exit ;; 
    11601188    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible. 
    11611189        echo i586-pc-beos 
    1162         exit 0 ;; 
     1190        exit ;; 
     1191    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible. 
     1192        echo i586-pc-haiku 
     1193        exit ;; 
    11631194    SX-4:SUPER-UX:*:*) 
    11641195        echo sx4-nec-superux${UNAME_RELEASE} 
    1165         exit 0 ;; 
     1196        exit ;; 
    11661197    SX-5:SUPER-UX:*:*) 
    11671198        echo sx5-nec-superux${UNAME_RELEASE} 
    1168         exit 0 ;; 
     1199        exit ;; 
    11691200    SX-6:SUPER-UX:*:*) 
    11701201        echo sx6-nec-superux${UNAME_RELEASE} 
    1171         exit 0 ;; 
     1202        exit ;; 
     1203    SX-7:SUPER-UX:*:*) 
     1204        echo sx7-nec-superux${UNAME_RELEASE} 
     1205        exit ;; 
     1206    SX-8:SUPER-UX:*:*) 
     1207        echo sx8-nec-superux${UNAME_RELEASE} 
     1208        exit ;; 
     1209    SX-8R:SUPER-UX:*:*) 
     1210        echo sx8r-nec-superux${UNAME_RELEASE} 
     1211        exit ;; 
    11721212    Power*:Rhapsody:*:*) 
    11731213        echo powerpc-apple-rhapsody${UNAME_RELEASE} 
    1174         exit 0 ;; 
     1214        exit ;; 
    11751215    *:Rhapsody:*:*) 
    11761216        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 
    1177         exit 0 ;; 
     1217        exit ;; 
    11781218    *:Darwin:*:*) 
    11791219        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 
    11801220        case $UNAME_PROCESSOR in 
    1181             *86) UNAME_PROCESSOR=i686 ;; 
     1221            i386) 
     1222                eval $set_cc_for_build 
     1223                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 
     1224                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 
     1225                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 
     1226                      grep IS_64BIT_ARCH >/dev/null 
     1227                  then 
     1228                      UNAME_PROCESSOR="x86_64" 
     1229                  fi 
     1230                fi ;; 
    11821231            unknown) UNAME_PROCESSOR=powerpc ;; 
    11831232        esac 
    11841233        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 
    1185         exit 0 ;; 
     1234        exit ;; 
    11861235    *:procnto*:*:* | *:QNX:[0123456789]*:*) 
    11871236        UNAME_PROCESSOR=`uname -p` 
     
    11911240        fi 
    11921241        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 
    1193         exit 0 ;; 
     1242        exit ;; 
    11941243    *:QNX:*:4*) 
    11951244        echo i386-pc-qnx 
    1196         exit 0 ;; 
     1245        exit ;; 
     1246    NEO-?:NONSTOP_KERNEL:*:*) 
     1247        echo neo-tandem-nsk${UNAME_RELEASE} 
     1248        exit ;; 
     1249    NSE-?:NONSTOP_KERNEL:*:*) 
     1250        echo nse-tandem-nsk${UNAME_RELEASE} 
     1251        exit ;; 
    11971252    NSR-?:NONSTOP_KERNEL:*:*) 
    11981253        echo nsr-tandem-nsk${UNAME_RELEASE} 
    1199         exit 0 ;; 
     1254        exit ;; 
    12001255    *:NonStop-UX:*:*) 
    12011256        echo mips-compaq-nonstopux 
    1202         exit 0 ;; 
     1257        exit ;; 
    12031258    BS2000:POSIX*:*:*) 
    12041259        echo bs2000-siemens-sysv 
    1205         exit 0 ;; 
     1260        exit ;; 
    12061261    DS/*:UNIX_System_V:*:*) 
    12071262        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 
    1208         exit 0 ;; 
     1263        exit ;; 
    12091264    *:Plan9:*:*) 
    12101265        # "uname -m" is not consistent, so use $cputype instead. 386 
     
    12171272        fi 
    12181273        echo ${UNAME_MACHINE}-unknown-plan9 
    1219         exit 0 ;; 
     1274        exit ;; 
    12201275    *:TOPS-10:*:*) 
    12211276        echo pdp10-unknown-tops10 
    1222         exit 0 ;; 
     1277        exit ;; 
    12231278    *:TENEX:*:*) 
    12241279        echo pdp10-unknown-tenex 
    1225         exit 0 ;; 
     1280        exit ;; 
    12261281    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 
    12271282        echo pdp10-dec-tops20 
    1228         exit 0 ;; 
     1283        exit ;; 
    12291284    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 
    12301285        echo pdp10-xkl-tops20 
    1231         exit 0 ;; 
     1286        exit ;; 
    12321287    *:TOPS-20:*:*) 
    12331288        echo pdp10-unknown-tops20 
    1234         exit 0 ;; 
     1289        exit ;; 
    12351290    *:ITS:*:*) 
    12361291        echo pdp10-unknown-its 
    1237         exit 0 ;; 
     1292        exit ;; 
    12381293    SEI:*:*:SEIUX) 
    1239         echo mips-sei-seiux${UNAME_RELEASE} 
    1240         exit 0 ;; 
     1294        echo mips-sei-seiux${UNAME_RELEASE} 
     1295        exit ;; 
    12411296    *:DragonFly:*:*) 
    12421297        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 
    1243         exit 0 ;; 
     1298        exit ;; 
    12441299    *:*VMS:*:*) 
    1245         UNAME_MACHINE=`(uname -p) 2>/dev/null` 
     1300        UNAME_MACHINE=`(uname -p) 2>/dev/null` 
    12461301        case "${UNAME_MACHINE}" in 
    1247             A*) echo alpha-dec-vms && exit 0 ;; 
    1248             I*) echo ia64-dec-vms && exit 0 ;; 
    1249             V*) echo vax-dec-vms && exit 0 ;; 
    1250         esac 
     1302            A*) echo alpha-dec-vms ; exit ;; 
     1303            I*) echo ia64-dec-vms ; exit ;; 
     1304            V*) echo vax-dec-vms ; exit ;; 
     1305        esac ;; 
     1306    *:XENIX:*:SysV) 
     1307        echo i386-pc-xenix 
     1308        exit ;; 
     1309    i*86:skyos:*:*) 
     1310        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 
     1311        exit ;; 
     1312    i*86:rdos:*:*) 
     1313        echo ${UNAME_MACHINE}-pc-rdos 
     1314        exit ;; 
     1315    i*86:AROS:*:*) 
     1316        echo ${UNAME_MACHINE}-pc-aros 
     1317        exit ;; 
    12511318esac 
    12521319 
     
    12711338  printf ("m68k-sony-newsos%s\n", 
    12721339#ifdef NEWSOS4 
    1273           "4" 
     1340        "4" 
    12741341#else 
    1275           "" 
    1276 #endif 
    1277          ); exit (0); 
     1342        "" 
     1343#endif 
     1344        ); exit (0); 
    12781345#endif 
    12791346#endif 
    12801347 
    12811348#if defined (__arm) && defined (__acorn) && defined (__unix) 
    1282   printf ("arm-acorn-riscix"); exit (0); 
     1349  printf ("arm-acorn-riscix\n"); exit (0); 
    12831350#endif 
    12841351 
     
    13691436EOF 
    13701437 
    1371 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 
     1438$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 
     1439        { echo "$SYSTEM_NAME"; exit; } 
    13721440 
    13731441# Apollos put the system type in the environment. 
    13741442 
    1375 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 
     1443test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 
    13761444 
    13771445# Convex versions that predate uname can use getsysinfo(1) 
     
    13821450    c1*) 
    13831451        echo c1-convex-bsd 
    1384         exit 0 ;; 
     1452        exit ;; 
    13851453    c2*) 
    13861454        if getsysinfo -f scalar_acc 
     
    13881456        else echo c2-convex-bsd 
    13891457        fi 
    1390         exit 0 ;; 
     1458        exit ;; 
    13911459    c34*) 
    13921460        echo c34-convex-bsd 
    1393         exit 0 ;; 
     1461        exit ;; 
    13941462    c38*) 
    13951463        echo c38-convex-bsd 
    1396         exit 0 ;; 
     1464        exit ;; 
    13971465    c4*) 
    13981466        echo c4-convex-bsd 
    1399         exit 0 ;; 
     1467        exit ;; 
    14001468    esac 
    14011469fi 
     
    14081476download the most up to date version of the config scripts from 
    14091477 
    1410     ftp://ftp.gnu.org/pub/gnu/config/ 
     1478  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 
     1479and 
     1480  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 
    14111481 
    14121482If the version you run ($0) is already up to date, please 
Note: See TracChangeset for help on using the changeset viewer.