Show
Ignore:
Timestamp:
03/13/08 21:42:13 (9 months ago)
Author:
karpet
Message:

add setenv* to Makefile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • swish-e/trunk/config/config.guess

    r2084 r2086  
    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 Free Software Foundation, 
    5 #   Inc. 
    6  
    7 timestamp='2007-05-17' 
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc. 
     5 
     6timestamp='2003-06-17' 
    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, 2002, 2003, 2004, 2005 
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 
    6057Free Software Foundation, Inc. 
    6158 
     
    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) ; } || 
    112109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 
     
    127124 ,,*)   CC_FOR_BUILD=$CC ;; 
    128125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;; 
    129 esac ; set_cc_for_build= ;
     126esac ;
    130127 
    131128# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 
     
    139136UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown 
    140137UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 
     138 
     139## for Red Hat Linux 
     140if test -f /etc/redhat-release ; then 
     141    VENDOR=redhat ; 
     142else 
     143    VENDOR= ; 
     144fi 
    141145 
    142146# Note: order is significant - the case branches are not exclusive. 
     
    162166            sh3el) machine=shl-unknown ;; 
    163167            sh3eb) machine=sh-unknown ;; 
    164             sh5el) machine=sh5le-unknown ;; 
    165168            *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 
    166169        esac 
     
    201204        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 
    202205        echo "${machine}-${os}${release}" 
    203         exit ;; 
     206        exit 0 ;; 
     207    amiga:OpenBSD:*:*) 
     208        echo m68k-unknown-openbsd${UNAME_RELEASE} 
     209        exit 0 ;; 
     210    arc:OpenBSD:*:*) 
     211        echo mipsel-unknown-openbsd${UNAME_RELEASE} 
     212        exit 0 ;; 
     213    hp300:OpenBSD:*:*) 
     214        echo m68k-unknown-openbsd${UNAME_RELEASE} 
     215        exit 0 ;; 
     216    mac68k:OpenBSD:*:*) 
     217        echo m68k-unknown-openbsd${UNAME_RELEASE} 
     218        exit 0 ;; 
     219    macppc:OpenBSD:*:*) 
     220        echo powerpc-unknown-openbsd${UNAME_RELEASE} 
     221        exit 0 ;; 
     222    mvme68k:OpenBSD:*:*) 
     223        echo m68k-unknown-openbsd${UNAME_RELEASE} 
     224        exit 0 ;; 
     225    mvme88k:OpenBSD:*:*) 
     226        echo m88k-unknown-openbsd${UNAME_RELEASE} 
     227        exit 0 ;; 
     228    mvmeppc:OpenBSD:*:*) 
     229        echo powerpc-unknown-openbsd${UNAME_RELEASE} 
     230        exit 0 ;; 
     231    pmax:OpenBSD:*:*) 
     232        echo mipsel-unknown-openbsd${UNAME_RELEASE} 
     233        exit 0 ;; 
     234    sgi:OpenBSD:*:*) 
     235        echo mipseb-unknown-openbsd${UNAME_RELEASE} 
     236        exit 0 ;; 
     237    sun3:OpenBSD:*:*) 
     238        echo m68k-unknown-openbsd${UNAME_RELEASE} 
     239        exit 0 ;; 
     240    wgrisc:OpenBSD:*:*) 
     241        echo mipsel-unknown-openbsd${UNAME_RELEASE} 
     242        exit 0 ;; 
    204243    *: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 ;; 
     244        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 
     245        exit 0 ;; 
    220246    alpha:OSF1:*:*) 
    221         case $UNAME_RELEASE in 
    222         *4.0) 
     247        if test $UNAME_RELEASE = "V4.0"; then 
    223248                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 
     249        fi 
    229250        # According to Compaq, /usr/sbin/psrinfo has been available on 
    230251        # OSF/1 and Tru64 systems produced since 1995.  I hope that 
     
    264285                UNAME_MACHINE="alphaev79" ;; 
    265286        esac 
    266         # A Pn.n version is a patched version. 
    267287        # A Vn.n version is a released version. 
    268288        # A Tn.n version is a released field test version. 
    269289        # A Xn.n version is an unreleased experimental baselevel. 
    270290        # 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 ;; 
     291        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
     292        exit 0 ;; 
     293    Alpha*:OpenVMS:*:*) 
     294        echo alpha-hp-vms 
     295        exit 0 ;; 
    273296    Alpha\ *:Windows_NT*:*) 
    274297        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    276299        # of the specific Alpha model? 
    277300        echo alpha-pc-interix 
    278         exit ;; 
     301        exit 0 ;; 
    279302    21064:Windows_NT:50:3) 
    280303        echo alpha-dec-winnt3.5 
    281         exit ;; 
     304        exit 0 ;; 
    282305    Amiga*:UNIX_System_V:4.0:*) 
    283306        echo m68k-unknown-sysv4 
    284         exit ;; 
     307        exit 0;; 
    285308    *:[Aa]miga[Oo][Ss]:*:*) 
    286309        echo ${UNAME_MACHINE}-unknown-amigaos 
    287         exit ;; 
     310        exit 0 ;; 
    288311    *:[Mm]orph[Oo][Ss]:*:*) 
    289312        echo ${UNAME_MACHINE}-unknown-morphos 
    290         exit ;; 
     313        exit 0 ;; 
    291314    *:OS/390:*:*) 
    292315        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 ;; 
     316        exit 0 ;; 
    300317    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 
    301318        echo arm-acorn-riscix${UNAME_RELEASE} 
    302         exit ;; 
    303     arm:riscos:*:*|arm:RISCOS:*:*) 
    304         echo arm-unknown-riscos 
    305         exit ;; 
     319        exit 0;; 
    306320    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 
    307321        echo hppa1.1-hitachi-hiuxmpp 
    308         exit ;; 
     322        exit 0;; 
    309323    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 
    310324        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 
     
    314328                echo pyramid-pyramid-bsd 
    315329        fi 
    316         exit ;; 
     330        exit 0 ;; 
    317331    NILE*:*:*:dcosx) 
    318332        echo pyramid-pyramid-svr4 
    319         exit ;; 
     333        exit 0 ;; 
    320334    DRS?6000:unix:4.0:6*) 
    321335        echo sparc-icl-nx6 
    322         exit ;; 
    323     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*
     336        exit 0 ;; 
     337    DRS?6000:UNIX_SV:4.2*:7*
    324338        case `/usr/bin/uname -p` in 
    325             sparc) echo sparc-icl-nx7; exit ;; 
     339            sparc) echo sparc-icl-nx7 && exit 0 ;; 
    326340        esac ;; 
    327341    sun4H:SunOS:5.*:*) 
    328342        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    329         exit ;; 
     343        exit 0 ;; 
    330344    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 
    331345        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    332         exit ;; 
    333     i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*
     346        exit 0 ;; 
     347    i86pc:SunOS:5.*:*
    334348        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    335         exit ;; 
     349        exit 0 ;; 
    336350    sun4*:SunOS:6*:*) 
    337351        # According to config.sub, this is the proper way to canonicalize 
     
    339353        # it's likely to be more like Solaris than SunOS4. 
    340354        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    341         exit ;; 
     355        exit 0 ;; 
    342356    sun4*:SunOS:*:*) 
    343357        case "`/usr/bin/arch -k`" in 
     
    348362        # Japanese Language versions have a version number like `4.1.3-JL'. 
    349363        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 
    350         exit ;; 
     364        exit 0 ;; 
    351365    sun3*:SunOS:*:*) 
    352366        echo m68k-sun-sunos${UNAME_RELEASE} 
    353         exit ;; 
     367        exit 0 ;; 
    354368    sun*:*:4.2BSD:*) 
    355369        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 
     
    363377                ;; 
    364378        esac 
    365         exit ;; 
     379        exit 0 ;; 
    366380    aushp:SunOS:*:*) 
    367381        echo sparc-auspex-sunos${UNAME_RELEASE} 
    368         exit ;; 
     382        exit 0 ;; 
    369383    # The situation for MiNT is a little confusing.  The machine name 
    370384    # can be virtually everything (everything which is not 
     
    377391    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 
    378392        echo m68k-atari-mint${UNAME_RELEASE} 
    379         exit ;; 
     393        exit 0 ;; 
    380394    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 
    381395        echo m68k-atari-mint${UNAME_RELEASE} 
    382         exit ;; 
     396        exit 0 ;; 
    383397    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 
    384398        echo m68k-atari-mint${UNAME_RELEASE} 
    385         exit ;; 
     399        exit 0 ;; 
    386400    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 
    387401        echo m68k-milan-mint${UNAME_RELEASE} 
    388         exit ;; 
     402        exit 0 ;; 
    389403    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 
    390404        echo m68k-hades-mint${UNAME_RELEASE} 
    391         exit ;; 
     405        exit 0 ;; 
    392406    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 
    393407        echo m68k-unknown-mint${UNAME_RELEASE} 
    394         exit ;; 
    395     m68k:machten:*:*) 
    396         echo m68k-apple-machten${UNAME_RELEASE} 
    397         exit ;; 
     408        exit 0 ;; 
    398409    powerpc:machten:*:*) 
    399410        echo powerpc-apple-machten${UNAME_RELEASE} 
    400         exit ;; 
     411        exit 0 ;; 
    401412    RISC*:Mach:*:*) 
    402413        echo mips-dec-mach_bsd4.3 
    403         exit ;; 
     414        exit 0 ;; 
    404415    RISC*:ULTRIX:*:*) 
    405416        echo mips-dec-ultrix${UNAME_RELEASE} 
    406         exit ;; 
     417        exit 0 ;; 
    407418    VAX*:ULTRIX*:*:*) 
    408419        echo vax-dec-ultrix${UNAME_RELEASE} 
    409         exit ;; 
     420        exit 0 ;; 
    410421    2020:CLIX:*:* | 2430:CLIX:*:*) 
    411422        echo clipper-intergraph-clix${UNAME_RELEASE} 
    412         exit ;; 
     423        exit 0 ;; 
    413424    mips:*:*:UMIPS | mips:*:*:RISCos) 
    414425        eval $set_cc_for_build 
     
    434445        } 
    435446EOF 
    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; } 
     447        $CC_FOR_BUILD -o $dummy $dummy.c \ 
     448          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 
     449          && exit 0 
    440450        echo mips-mips-riscos${UNAME_RELEASE} 
    441         exit ;; 
     451        exit 0 ;; 
    442452    Motorola:PowerMAX_OS:*:*) 
    443453        echo powerpc-motorola-powermax 
    444         exit ;; 
     454        exit 0 ;; 
    445455    Motorola:*:4.3:PL8-*) 
    446456        echo powerpc-harris-powermax 
    447         exit ;; 
     457        exit 0 ;; 
    448458    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 
    449459        echo powerpc-harris-powermax 
    450         exit ;; 
     460        exit 0 ;; 
    451461    Night_Hawk:Power_UNIX:*:*) 
    452462        echo powerpc-harris-powerunix 
    453         exit ;; 
     463        exit 0 ;; 
    454464    m88k:CX/UX:7*:*) 
    455465        echo m88k-harris-cxux7 
    456         exit ;; 
     466        exit 0 ;; 
    457467    m88k:*:4*:R4*) 
    458468        echo m88k-motorola-sysv4 
    459         exit ;; 
     469        exit 0 ;; 
    460470    m88k:*:3*:R3*) 
    461471        echo m88k-motorola-sysv3 
    462         exit ;; 
     472        exit 0 ;; 
    463473    AViiON:dgux:*:*) 
    464474        # DG/UX returns AViiON for all architectures 
     
    476486            echo i586-dg-dgux${UNAME_RELEASE} 
    477487        fi 
    478         exit ;; 
     488        exit 0 ;; 
    479489    M88*:DolphinOS:*:*) # DolphinOS (SVR3) 
    480490        echo m88k-dolphin-sysv3 
    481         exit ;; 
     491        exit 0 ;; 
    482492    M88*:*:R3*:*) 
    483493        # Delta 88k system running SVR3 
    484494        echo m88k-motorola-sysv3 
    485         exit ;; 
     495        exit 0 ;; 
    486496    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 
    487497        echo m88k-tektronix-sysv3 
    488         exit ;; 
     498        exit 0 ;; 
    489499    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 
    490500        echo m68k-tektronix-bsd 
    491         exit ;; 
     501        exit 0 ;; 
    492502    *:IRIX*:*:*) 
    493503        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 
    494         exit ;; 
     504        exit 0 ;; 
    495505    ????????: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 ' 
     506        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id 
     507        exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX ' 
    498508    i*86:AIX:*:*) 
    499509        echo i386-ibm-aix 
    500         exit ;; 
     510        exit 0 ;; 
    501511    ia64:AIX:*:*) 
    502512        if [ -x /usr/bin/oslevel ] ; then 
     
    506516        fi 
    507517        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 
    508         exit ;; 
     518        exit 0 ;; 
    509519    *:AIX:2:3) 
    510520        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 
     
    521531                        } 
    522532EOF 
    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 
     533                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
     534                echo rs6000-ibm-aix3.2.5 
    529535        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 
    530536                echo rs6000-ibm-aix3.2.4 
     
    532538                echo rs6000-ibm-aix3.2 
    533539        fi 
    534         exit ;; 
     540        exit 0 ;; 
    535541    *:AIX:*:[45]) 
    536542        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 
     
    546552        fi 
    547553        echo ${IBM_ARCH}-ibm-aix${IBM_REV} 
    548         exit ;; 
     554        exit 0 ;; 
    549555    *:AIX:*:*) 
    550556        echo rs6000-ibm-aix 
    551         exit ;; 
     557        exit 0 ;; 
    552558    ibmrt:4.4BSD:*|romp-ibm:BSD:*) 
    553559        echo romp-ibm-bsd4.4 
    554         exit ;; 
     560        exit 0 ;; 
    555561    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and 
    556562        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to 
    557         exit ;;                             # report: romp-ibm BSD 4.3 
     563        exit 0 ;;                           # report: romp-ibm BSD 4.3 
    558564    *:BOSX:*:*) 
    559565        echo rs6000-bull-bosx 
    560         exit ;; 
     566        exit 0 ;; 
    561567    DPX/2?00:B.O.S.:*:*) 
    562568        echo m68k-bull-sysv3 
    563         exit ;; 
     569        exit 0 ;; 
    564570    9000/[34]??:4.3bsd:1.*:*) 
    565571        echo m68k-hp-bsd 
    566         exit ;; 
     572        exit 0 ;; 
    567573    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 
    568574        echo m68k-hp-bsd4.4 
    569         exit ;; 
     575        exit 0 ;; 
    570576    9000/[34678]??:HP-UX:*:*) 
    571577        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
     
    629635        if [ ${HP_ARCH} = "hppa2.0w" ] 
    630636        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 
     637            # avoid double evaluation of $set_cc_for_build 
     638            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 
     639            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 
    644640            then 
    645641                HP_ARCH="hppa2.0w" 
     
    649645        fi 
    650646        echo ${HP_ARCH}-hp-hpux${HPUX_REV} 
    651         exit ;; 
     647        exit 0 ;; 
    652648    ia64:HP-UX:*:*) 
    653649        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
    654650        echo ia64-hp-hpux${HPUX_REV} 
    655         exit ;; 
     651        exit 0 ;; 
    656652    3050*:HI-UX:*:*) 
    657653        eval $set_cc_for_build 
     
    681677        } 
    682678EOF 
    683         $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 
    684                 { echo "$SYSTEM_NAME"; exit; } 
     679        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
    685680        echo unknown-hitachi-hiuxwe2 
    686         exit ;; 
     681        exit 0 ;; 
    687682    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 
    688683        echo hppa1.1-hp-bsd 
    689         exit ;; 
     684        exit 0 ;; 
    690685    9000/8??:4.3bsd:*:*) 
    691686        echo hppa1.0-hp-bsd 
    692         exit ;; 
     687        exit 0 ;; 
    693688    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 
    694689        echo hppa1.0-hp-mpeix 
    695         exit ;; 
     690        exit 0 ;; 
    696691    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 
    697692        echo hppa1.1-hp-osf 
    698         exit ;; 
     693        exit 0 ;; 
    699694    hp8??:OSF1:*:*) 
    700695        echo hppa1.0-hp-osf 
    701         exit ;; 
     696        exit 0 ;; 
    702697    i*86:OSF1:*:*) 
    703698        if [ -x /usr/sbin/sysversion ] ; then 
     
    706701            echo ${UNAME_MACHINE}-unknown-osf1 
    707702        fi 
    708         exit ;; 
     703        exit 0 ;; 
    709704    parisc*:Lites*:*:*) 
    710705        echo hppa1.1-hp-lites 
    711         exit ;; 
     706        exit 0 ;; 
    712707    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 
    713708        echo c1-convex-bsd 
    714         exit ;; 
     709        exit 0 ;; 
    715710    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 
    716711        if getsysinfo -f scalar_acc 
     
    718713        else echo c2-convex-bsd 
    719714        fi 
    720         exit ;; 
     715        exit 0 ;; 
    721716    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 
    722717        echo c34-convex-bsd 
    723         exit ;; 
     718        exit 0 ;; 
    724719    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 
    725720        echo c38-convex-bsd 
    726         exit ;; 
     721        exit 0 ;; 
    727722    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 
    728723        echo c4-convex-bsd 
    729         exit ;; 
     724        exit 0 ;; 
    730725    CRAY*Y-MP:*:*:*) 
    731726        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    732         exit ;; 
     727        exit 0 ;; 
    733728    CRAY*[A-Z]90:*:*:*) 
    734729        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 
     
    736731              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 
    737732              -e 's/\.[^.]*$/.X/' 
    738         exit ;; 
     733        exit 0 ;; 
    739734    CRAY*TS:*:*:*) 
    740735        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    741         exit ;; 
     736        exit 0 ;; 
    742737    CRAY*T3E:*:*:*) 
    743738        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    744         exit ;; 
     739        exit 0 ;; 
    745740    CRAY*SV1:*:*:*) 
    746741        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    747         exit ;; 
     742        exit 0 ;; 
    748743    *:UNICOS/mp:*:*) 
    749         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    750         exit ;; 
     744        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'  
     745        exit 0 ;; 
    751746    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 
    752747        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
     
    754749        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 
    755750        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 ;; 
     751        exit 0 ;; 
    762752    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 
    763753        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 
    764         exit ;; 
     754        exit 0 ;; 
    765755    sparc*:BSD/OS:*:*) 
    766756        echo sparc-unknown-bsdi${UNAME_RELEASE} 
    767         exit ;; 
     757        exit 0 ;; 
    768758    *:BSD/OS:*:*) 
    769759        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 
    770         exit ;; 
    771     *: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 ;; 
     760        exit 0 ;; 
     761    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 
     762        # Determine whether the default compiler uses glibc. 
     763        eval $set_cc_for_build 
     764        sed 's/^        //' << EOF >$dummy.c 
     765        #include <features.h> 
     766        #if __GLIBC__ >= 2 
     767        LIBC=gnu 
     768        #else 
     769        LIBC= 
     770        #endif 
     771EOF 
     772        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 
     773        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 
     774        exit 0 ;; 
    781775    i*:CYGWIN*:*) 
    782776        echo ${UNAME_MACHINE}-pc-cygwin 
    783         exit ;; 
    784     *:MINGW*:*) 
     777        exit 0 ;; 
     778    i*:MINGW*:*) 
    785779        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 ;; 
     780        exit 0 ;; 
    791781    i*:PW*:*) 
    792782        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         esac ;; 
     783        exit 0 ;; 
     784    x86:Interix*:[34]*) 
     785        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 
     786        exit 0 ;; 
    803787    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 
    804788        echo i${UNAME_MACHINE}-pc-mks 
    805         exit ;; 
     789        exit 0 ;; 
    806790    i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 
    807791        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    809793        # UNAME_MACHINE based on the output of uname instead of i386? 
    810794        echo i586-pc-interix 
    811         exit ;; 
     795        exit 0 ;; 
    812796    i*:UWIN*:*) 
    813797        echo ${UNAME_MACHINE}-pc-uwin 
    814         exit ;; 
    815     amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 
    816         echo x86_64-unknown-cygwin 
    817         exit ;; 
     798        exit 0 ;; 
    818799    p*:CYGWIN*:*) 
    819800        echo powerpcle-unknown-cygwin 
    820         exit ;; 
     801        exit 0 ;; 
    821802    prep*:SunOS:5.*:*) 
    822803        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    823         exit ;; 
     804        exit 0 ;; 
    824805    *:GNU:*:*) 
    825         # the GNU system 
    826806        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 
    827         exit ;; 
    828     *:GNU/*:*:*) 
    829         # other systems with GNU libc and userland 
    830         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 
    831         exit ;; 
     807        exit 0 ;; 
    832808    i*86:Minix:*:*) 
    833809        echo ${UNAME_MACHINE}-pc-minix 
    834         exit ;; 
     810        exit 0 ;; 
    835811    arm*:Linux:*:*) 
    836812        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    837         exit ;; 
    838     avr32*:Linux:*:*) 
    839         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    840         exit ;; 
     813        exit 0 ;; 
    841814    cris:Linux:*:*) 
    842815        echo cris-axis-linux-gnu 
    843         exit ;; 
    844     crisv32:Linux:*:*) 
    845         echo crisv32-axis-linux-gnu 
    846         exit ;; 
    847     frv:Linux:*:*) 
    848         echo frv-unknown-linux-gnu 
    849         exit ;; 
     816        exit 0 ;; 
    850817    ia64:Linux:*:*) 
    851         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    852         exit ;; 
    853     m32r*:Linux:*:*) 
    854         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    855         exit ;; 
     818        echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 
     819        exit 0 ;; 
    856820    m68*:Linux:*:*) 
    857821        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    858         exit ;; 
     822        exit 0 ;; 
    859823    mips:Linux:*:*) 
    860824        eval $set_cc_for_build 
     
    873837        #endif 
    874838EOF 
    875         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
    876             /^CPU/{ 
    877                 s: ::g 
    878                 p 
    879             }'`" 
    880         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
     839        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
     840        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 
    881841        ;; 
    882842    mips64:Linux:*:*) 
     
    896856        #endif 
    897857EOF 
    898         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
    899             /^CPU/{ 
    900                 s: ::g 
    901                 p 
    902             }'`" 
    903         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 
     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 
    904860        ;; 
    905     or32:Linux:*:*) 
    906         echo or32-unknown-linux-gnu 
    907         exit ;; 
    908861    ppc:Linux:*:*) 
    909         echo powerpc-unknown-linux-gnu 
    910         exit ;; 
     862        echo powerpc-${VENDOR:-unknown}-linux-gnu 
     863        exit 0 ;; 
    911864    ppc64:Linux:*:*) 
    912         echo powerpc64-unknown-linux-gnu 
    913         exit ;; 
     865        echo powerpc64-${VENDOR:-unknown}-linux-gnu 
     866        exit 0 ;; 
    914867    alpha:Linux:*:*) 
    915868        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 
     
    925878        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 
    926879        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 
    927         exit ;; 
     880        exit 0 ;; 
    928881    parisc:Linux:*:* | hppa:Linux:*:*) 
    929882        # Look for CPU level 
     
    933886          *)    echo hppa-unknown-linux-gnu ;; 
    934887        esac 
    935         exit ;; 
     888        exit 0 ;; 
    936889    parisc64:Linux:*:* | hppa64:Linux:*:*) 
    937890        echo hppa64-unknown-linux-gnu 
    938         exit ;; 
     891        exit 0 ;; 
    939892    s390:Linux:*:* | s390x:Linux:*:*) 
    940         echo ${UNAME_MACHINE}-ibm-linux 
    941         exit ;; 
     893        echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 
     894        exit 0 ;; 
    942895    sh64*:Linux:*:*) 
    943896        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    944         exit ;; 
     897        exit 0 ;; 
    945898    sh*:Linux:*:*) 
    946899        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    947         exit ;; 
     900        exit 0 ;; 
    948901    sparc:Linux:*:* | sparc64:Linux:*:*) 
    949902        echo ${UNAME_MACHINE}-unknown-linux-gnu 
    950         exit ;; 
    951     vax:Linux:*:*) 
    952         echo ${UNAME_MACHINE}-dec-linux-gnu 
    953         exit ;; 
     903        exit 0 ;; 
    954904    x86_64:Linux:*:*) 
    955         echo x86_64-unknown-linux-gnu 
    956         exit ;; 
    957     xtensa:Linux:*:*) 
    958         echo xtensa-unknown-linux-gnu 
    959         exit ;; 
     905        echo x86_64-${VENDOR:-unknown}-linux-gnu 
     906        exit 0 ;; 
    960907    i*86:Linux:*:*) 
    961908        # The BFD linker knows what the default object file format is, so 
     
    975922          a.out-i386-linux) 
    976923                echo "${UNAME_MACHINE}-pc-linux-gnuaout" 
    977                 exit ;; 
     924                exit 0 ;; 
    978925          coff-i386) 
    979926                echo "${UNAME_MACHINE}-pc-linux-gnucoff" 
    980                 exit ;; 
     927                exit 0 ;; 
    981928          "") 
    982929                # Either a pre-BFD a.out linker (linux-gnuoldld) or 
    983930                # one that does not give us useful --help. 
    984931                echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 
    985                 exit ;; 
     932                exit 0 ;; 
    986933        esac 
    987934        # Determine whether the default compiler is a.out or elf 
     
    1000947        # endif 
    1001948        #else 
    1002         #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 
     949        #ifdef __INTEL_COMPILER 
    1003950        LIBC=gnu 
    1004951        #else 
     
    1006953        #endif 
    1007954        #endif 
    1008         #ifdef __dietlibc__ 
    1009         LIBC=dietlibc 
    1010         #endif 
    1011955EOF 
    1012         eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 
    1013             /^LIBC/{ 
    1014                 s: ::g 
    1015                 p 
    1016             }'`" 
    1017         test x"${LIBC}" != x && { 
    1018                 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 
    1019                 exit 
    1020         } 
    1021         test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 
     956        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 
     957        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 
     958        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 
    1022959        ;; 
    1023960    i*86:DYNIX/ptx:4*:*) 
     
    1026963        # sysname and nodename. 
    1027964        echo i386-sequent-sysv4 
    1028         exit ;; 
     965        exit 0 ;; 
    1029966    i*86:UNIX_SV:4.2MP:2.*) 
    1030967        # Unixware is an offshoot of SVR4, but it has its own version 
     
    1034971        # Use sysv4.2uw... so that sysv4* matches it. 
    1035972        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 
    1036         exit ;; 
     973        exit 0 ;; 
    1037974    i*86:OS/2:*:*) 
    1038975        # If we were able to find `uname', then EMX Unix compatibility 
    1039976        # is probably installed. 
    1040977        echo ${UNAME_MACHINE}-pc-os2-emx 
    1041         exit ;; 
     978        exit 0 ;; 
    1042979    i*86:XTS-300:*:STOP) 
    1043980        echo ${UNAME_MACHINE}-unknown-stop 
    1044         exit ;; 
     981        exit 0 ;; 
    1045982    i*86:atheos:*:*) 
    1046983        echo ${UNAME_MACHINE}-unknown-atheos 
    1047         exit ;; 
    1048     i*86:syllable:*:*) 
    1049         echo ${UNAME_MACHINE}-pc-syllable 
    1050         exit ;; 
     984        exit 0 ;; 
    1051985    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 
    1052986        echo i386-unknown-lynxos${UNAME_RELEASE} 
    1053         exit ;; 
     987        exit 0 ;; 
    1054988    i*86:*DOS:*:*) 
    1055989        echo ${UNAME_MACHINE}-pc-msdosdjgpp 
    1056         exit ;; 
     990        exit 0 ;; 
    1057991    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 
    1058992        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 
     
    1062996                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 
    1063997        fi 
    1064         exit ;; 
    1065     i*86:*:5:[678]*) 
    1066         # UnixWare 7.x, OpenUNIX and OpenServer 6. 
     998        exit 0 ;; 
     999    i*86:*:5:[78]*) 
    10671000        case `/bin/uname -X | grep "^Machine"` in 
    10681001            *486*)           UNAME_MACHINE=i486 ;; 
     
    10711004        esac 
    10721005        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 
    1073         exit ;; 
     1006        exit 0 ;; 
    10741007    i*86:*:3.2:*) 
    10751008        if test -f /usr/options/cb.name; then 
     
    10891022                echo ${UNAME_MACHINE}-pc-sysv32 
    10901023        fi 
    1091         exit ;; 
     1024        exit 0 ;; 
    10921025    pc:*:*:*) 
    10931026        # Left here for compatibility: 
     
    10951028        # the processor, so we play safe by assuming i386. 
    10961029        echo i386-pc-msdosdjgpp 
    1097         exit ;; 
     1030        exit 0 ;; 
    10981031    Intel:Mach:3*:*) 
    10991032        echo i386-pc-mach3 
    1100         exit ;; 
     1033        exit 0 ;; 
    11011034    paragon:*:*:*) 
    11021035        echo i860-intel-osf1 
    1103         exit ;; 
     1036        exit 0 ;; 
    11041037    i860:*:4.*:*) # i860-SVR4 
    11051038        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 
     
    11081041          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4 
    11091042        fi 
    1110         exit ;; </