Changeset 2082

Show
Ignore:
Timestamp:
03/12/08 10:52:02 (2 months ago)
Author:
karpet
Message:

patch from Dave to fix setenv on win32

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • swish-e/tags/rel-2.4.6/Makefile.in

    r2051 r2082  
    163163POD2MAN = @POD2MAN@ 
    164164RANLIB = @RANLIB@ 
    165 SED = @SED@ 
    166165SET_MAKE = @SET_MAKE@ 
    167166SHELL = @SHELL@ 
  • swish-e/tags/rel-2.4.6/aclocal.m4

    r2051 r2082  
    15791579  hardcode_into_libs=yes 
    15801580 
    1581   # find out which ABI we are using 
    1582   libsuff= 
    1583   case "$host_cpu" in 
    1584   x86_64*|s390x*|powerpc64*) 
    1585     echo '[#]line __oline__ "configure"' > conftest.$ac_ext 
    1586     if AC_TRY_EVAL(ac_compile); then 
    1587       case `/usr/bin/file conftest.$ac_objext` in 
    1588       *64-bit*) 
    1589         libsuff=64 
    1590         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 
    1591         ;; 
    1592       esac 
    1593     fi 
    1594     rm -rf conftest* 
    1595     ;; 
    1596   esac 
    1597  
    15981581  # Append ld.so.conf contents to the search path 
    15991582  if test -f /etc/ld.so.conf; then 
    1600     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 
    1601     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 
     1583    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,  ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 
     1584    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 
    16021585  fi 
    16031586 
     
    43064289with_gcc=$_LT_AC_TAGVAR(GCC, $1) 
    43074290 
    4308 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 
    4309 gcc_ver=\`gcc -dumpversion\` 
    4310  
    43114291# An ERE matcher. 
    43124292EGREP=$lt_EGREP 
     
    44424422# Dependencies to place before the objects being linked to create a 
    44434423# shared library. 
    4444 predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 
     4424predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 
    44454425 
    44464426# Dependencies to place after the objects being linked to create a 
    44474427# shared library. 
    4448 postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 
     4428postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 
    44494429 
    44504430# Dependencies to place before the objects being linked to create a 
     
    44584438# The library search path used internally by the compiler when linking 
    44594439# a shared library. 
    4460 compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 
     4440compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 
    44614441 
    44624442# Method to check whether dependent libraries are shared objects. 
     
    45384518 
    45394519# Compile-time system search path for libraries 
    4540 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 
     4520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 
    45414521 
    45424522# Run-time system search path for libraries 
     
    63746354  done 
    63756355done 
    6376 IFS=$as_save_IFS 
    63776356lt_ac_max=0 
    63786357lt_ac_count=0 
     
    64076386]) 
    64086387SED=$lt_cv_path_SED 
    6409 AC_SUBST([SED]) 
    64106388AC_MSG_RESULT([$SED]) 
    64116389]) 
  • swish-e/tags/rel-2.4.6/conf/Makefile.in

    r2051 r2082  
    131131POD2MAN = @POD2MAN@ 
    132132RANLIB = @RANLIB@ 
    133 SED = @SED@ 
    134133SET_MAKE = @SET_MAKE@ 
    135134SHELL = @SHELL@ 
  • swish-e/tags/rel-2.4.6/config/config.guess

    r2051 r2082  
    22# Attempt to guess a canonical system name. 
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc. 
    5  
    6 timestamp='2003-06-17
     4#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 
     5 
     6timestamp='2005-07-08
    77 
    88# This file is free software; you can redistribute it and/or modify it 
     
    1818# You should have received a copy of the GNU General Public License 
    1919# along with this program; if not, write to the Free Software 
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
     20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 
     21# 02110-1301, USA. 
    2122# 
    2223# As a special exception to the GNU General Public License, if you 
     
    2425# configuration script generated by Autoconf, you may include it under 
    2526# the same distribution terms that you use for the rest of that program. 
     27 
    2628 
    2729# Originally written by Per Bothner <per@bothner.com>. 
     
    5456 
    5557Originally written by Per Bothner. 
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 
     58Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 
    5759Free Software Foundation, Inc. 
    5860 
     
    6769  case $1 in 
    6870    --time-stamp | --time* | -t ) 
    69        echo "$timestamp" ; exit 0 ;; 
     71       echo "$timestamp" ; exit ;; 
    7072    --version | -v ) 
    71        echo "$version" ; exit 0 ;; 
     73       echo "$version" ; exit ;; 
    7274    --help | --h* | -h ) 
    73        echo "$usage"; exit 0 ;; 
     75       echo "$usage"; exit ;; 
    7476    -- )     # Stop option processing 
    7577       shift; break ;; 
     
    124126 ,,*)   CC_FOR_BUILD=$CC ;; 
    125127 ,*,*)  CC_FOR_BUILD=$HOST_CC ;; 
    126 esac ;
     128esac ; set_cc_for_build= ;
    127129 
    128130# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 
     
    137139UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 
    138140 
    139 ## for Red Hat Linux 
    140 if test -f /etc/redhat-release ; then 
    141     VENDOR=redhat ; 
    142 else 
    143     VENDOR= ; 
    144 fi 
     141case "${UNAME_MACHINE}" in 
     142    i?86) 
     143        test -z "$VENDOR" && VENDOR=pc 
     144        ;; 
     145    *) 
     146        test -z "$VENDOR" && VENDOR=unknown 
     147        ;; 
     148esac 
     149test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse 
    145150 
    146151# Note: order is significant - the case branches are not exclusive. 
     
    204209        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 
    205210        echo "${machine}-${os}${release}" 
    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 ;; 
     211        exit ;; 
    243212    *:OpenBSD:*:*) 
    244         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 
    245         exit 0 ;; 
     213        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 
     214        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 
     215        exit ;; 
     216    *:ekkoBSD:*:*) 
     217        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 
     218        exit ;; 
     219    macppc:MirBSD:*:*) 
     220        echo powerppc-unknown-mirbsd${UNAME_RELEASE} 
     221        exit ;; 
     222    *:MirBSD:*:*) 
     223        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 
     224        exit ;; 
    246225    alpha:OSF1:*:*) 
    247         if test $UNAME_RELEASE = "V4.0"; then 
     226        case $UNAME_RELEASE in 
     227        *4.0) 
    248228                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 
    249         fi 
     229                ;; 
     230        *5.*) 
     231                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 
     232                ;; 
     233        esac 
    250234        # According to Compaq, /usr/sbin/psrinfo has been available on 
    251235        # OSF/1 and Tru64 systems produced since 1995.  I hope that 
     
    285269                UNAME_MACHINE="alphaev79" ;; 
    286270        esac 
     271        # A Pn.n version is a patched version. 
    287272        # A Vn.n version is a released version. 
    288273        # A Tn.n version is a released field test version. 
    289274        # A Xn.n version is an unreleased experimental baselevel. 
    290275        # 1.2 uses "1.2" for uname -r. 
    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 ;; 
     276        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
     277        exit ;; 
    296278    Alpha\ *:Windows_NT*:*) 
    297279        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    299281        # of the specific Alpha model? 
    300282        echo alpha-pc-interix 
    301         exit 0 ;; 
     283        exit ;; 
    302284    21064:Windows_NT:50:3) 
    303285        echo alpha-dec-winnt3.5 
    304         exit 0 ;; 
     286        exit ;; 
    305287    Amiga*:UNIX_System_V:4.0:*) 
    306288        echo m68k-unknown-sysv4 
    307         exit 0;; 
     289        exit ;; 
    308290    *:[Aa]miga[Oo][Ss]:*:*) 
    309291        echo ${UNAME_MACHINE}-unknown-amigaos 
    310         exit 0 ;; 
     292        exit ;; 
    311293    *:[Mm]orph[Oo][Ss]:*:*) 
    312294        echo ${UNAME_MACHINE}-unknown-morphos 
    313         exit 0 ;; 
     295        exit ;; 
    314296    *:OS/390:*:*) 
    315297        echo i370-ibm-openedition 
    316         exit 0 ;; 
     298        exit ;; 
     299    *:z/VM:*:*) 
     300        echo s390-ibm-zvmoe 
     301        exit ;; 
     302    *:OS400:*:*) 
     303        echo powerpc-ibm-os400 
     304        exit ;; 
    317305    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 
    318306        echo arm-acorn-riscix${UNAME_RELEASE} 
    319         exit 0;; 
     307        exit ;; 
     308    arm:riscos:*:*|arm:RISCOS:*:*) 
     309        echo arm-unknown-riscos 
     310        exit ;; 
    320311    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 
    321312        echo hppa1.1-hitachi-hiuxmpp 
    322         exit 0;; 
     313        exit ;; 
    323314    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 
    324315        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 
     
    328319                echo pyramid-pyramid-bsd 
    329320        fi 
    330         exit 0 ;; 
     321        exit ;; 
    331322    NILE*:*:*:dcosx) 
    332323        echo pyramid-pyramid-svr4 
    333         exit 0 ;; 
     324        exit ;; 
    334325    DRS?6000:unix:4.0:6*) 
    335326        echo sparc-icl-nx6 
    336         exit 0 ;; 
    337     DRS?6000:UNIX_SV:4.2*:7*
     327        exit ;; 
     328    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*
    338329        case `/usr/bin/uname -p` in 
    339             sparc) echo sparc-icl-nx7 && exit 0 ;; 
     330            sparc) echo sparc-icl-nx7; exit ;; 
    340331        esac ;; 
    341332    sun4H:SunOS:5.*:*) 
    342333        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    343         exit 0 ;; 
     334        exit ;; 
    344335    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 
    345336        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    346         exit 0 ;; 
     337        exit ;; 
    347338    i86pc:SunOS:5.*:*) 
    348339        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    349         exit 0 ;; 
     340        exit ;; 
    350341    sun4*:SunOS:6*:*) 
    351342        # According to config.sub, this is the proper way to canonicalize 
     
    353344        # it's likely to be more like Solaris than SunOS4. 
    354345        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    355         exit 0 ;; 
     346        exit ;; 
    356347    sun4*:SunOS:*:*) 
    357348        case "`/usr/bin/arch -k`" in 
     
    362353        # Japanese Language versions have a version number like `4.1.3-JL'. 
    363354        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 
    364         exit 0 ;; 
     355        exit ;; 
    365356    sun3*:SunOS:*:*) 
    366357        echo m68k-sun-sunos${UNAME_RELEASE} 
    367         exit 0 ;; 
     358        exit ;; 
    368359    sun*:*:4.2BSD:*) 
    369360        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 
     
    377368                ;; 
    378369        esac 
    379         exit 0 ;; 
     370        exit ;; 
    380371    aushp:SunOS:*:*) 
    381372        echo sparc-auspex-sunos${UNAME_RELEASE} 
    382         exit 0 ;; 
     373        exit ;; 
    383374    # The situation for MiNT is a little confusing.  The machine name 
    384375    # can be virtually everything (everything which is not 
     
    391382    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 
    392383        echo m68k-atari-mint${UNAME_RELEASE} 
    393         exit 0 ;; 
     384        exit ;; 
    394385    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 
    395386        echo m68k-atari-mint${UNAME_RELEASE} 
    396         exit 0 ;; 
     387        exit ;; 
    397388    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 
    398389        echo m68k-atari-mint${UNAME_RELEASE} 
    399         exit 0 ;; 
     390        exit ;; 
    400391    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 
    401392        echo m68k-milan-mint${UNAME_RELEASE} 
    402         exit 0 ;; 
     393        exit ;; 
    403394    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 
    404395        echo m68k-hades-mint${UNAME_RELEASE} 
    405         exit 0 ;; 
     396        exit ;; 
    406397    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 
    407398        echo m68k-unknown-mint${UNAME_RELEASE} 
    408         exit 0 ;; 
     399        exit ;; 
     400    m68k:machten:*:*) 
     401        echo m68k-apple-machten${UNAME_RELEASE} 
     402        exit ;; 
    409403    powerpc:machten:*:*) 
    410404        echo powerpc-apple-machten${UNAME_RELEASE} 
    411         exit 0 ;; 
     405        exit ;; 
    412406    RISC*:Mach:*:*) 
    413407        echo mips-dec-mach_bsd4.3 
    414         exit 0 ;; 
     408        exit ;; 
    415409    RISC*:ULTRIX:*:*) 
    416410        echo mips-dec-ultrix${UNAME_RELEASE} 
    417         exit 0 ;; 
     411        exit ;; 
    418412    VAX*:ULTRIX*:*:*) 
    419413        echo vax-dec-ultrix${UNAME_RELEASE} 
    420         exit 0 ;; 
     414        exit ;; 
    421415    2020:CLIX:*:* | 2430:CLIX:*:*) 
    422416        echo clipper-intergraph-clix${UNAME_RELEASE} 
    423         exit 0 ;; 
     417        exit ;; 
    424418    mips:*:*:UMIPS | mips:*:*:RISCos) 
    425419        eval $set_cc_for_build 
     
    445439        } 
    446440EOF 
    447         $CC_FOR_BUILD -o $dummy $dummy.c \ 
    448           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 
    449           && exit 0 
     441        $CC_FOR_BUILD -o $dummy $dummy.c && 
     442          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 
     443          SYSTEM_NAME=`$dummy $dummyarg` && 
     444            { echo "$SYSTEM_NAME"; exit; } 
    450445        echo mips-mips-riscos${UNAME_RELEASE} 
    451         exit 0 ;; 
     446        exit ;; 
    452447    Motorola:PowerMAX_OS:*:*) 
    453448        echo powerpc-motorola-powermax 
    454         exit 0 ;; 
     449        exit ;; 
    455450    Motorola:*:4.3:PL8-*) 
    456451        echo powerpc-harris-powermax 
    457         exit 0 ;; 
     452        exit ;; 
    458453    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 
    459454        echo powerpc-harris-powermax 
    460         exit 0 ;; 
     455        exit ;; 
    461456    Night_Hawk:Power_UNIX:*:*) 
    462457        echo powerpc-harris-powerunix 
    463         exit 0 ;; 
     458        exit ;; 
    464459    m88k:CX/UX:7*:*) 
    465460        echo m88k-harris-cxux7 
    466         exit 0 ;; 
     461        exit ;; 
    467462    m88k:*:4*:R4*) 
    468463        echo m88k-motorola-sysv4 
    469         exit 0 ;; 
     464        exit ;; 
    470465    m88k:*:3*:R3*) 
    471466        echo m88k-motorola-sysv3 
    472         exit 0 ;; 
     467        exit ;; 
    473468    AViiON:dgux:*:*) 
    474469        # DG/UX returns AViiON for all architectures 
     
    486481            echo i586-dg-dgux${UNAME_RELEASE} 
    487482        fi 
    488         exit 0 ;; 
     483        exit ;; 
    489484    M88*:DolphinOS:*:*) # DolphinOS (SVR3) 
    490485        echo m88k-dolphin-sysv3 
    491         exit 0 ;; 
     486        exit ;; 
    492487    M88*:*:R3*:*) 
    493488        # Delta 88k system running SVR3 
    494489        echo m88k-motorola-sysv3 
    495         exit 0 ;; 
     490        exit ;; 
    496491    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 
    497492        echo m88k-tektronix-sysv3 
    498         exit 0 ;; 
     493        exit ;; 
    499494    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 
    500495        echo m68k-tektronix-bsd 
    501         exit 0 ;; 
     496        exit ;; 
    502497    *:IRIX*:*:*) 
    503498        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 
    504         exit 0 ;; 
     499        exit ;; 
    505500    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC 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 ' 
     501        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id 
     502        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX ' 
    508503    i*86:AIX:*:*) 
    509504        echo i386-ibm-aix 
    510         exit 0 ;; 
     505        exit ;; 
    511506    ia64:AIX:*:*) 
    512507        if [ -x /usr/bin/oslevel ] ; then 
     
    516511        fi 
    517512        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 
    518         exit 0 ;; 
     513        exit ;; 
    519514    *:AIX:2:3) 
    520515        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 
     
    531526                        } 
    532527EOF 
    533                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
    534                 echo rs6000-ibm-aix3.2.5 
     528                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 
     529                then 
     530                        echo "$SYSTEM_NAME" 
     531                else 
     532                        echo rs6000-ibm-aix3.2.5 
     533                fi 
    535534        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 
    536535                echo rs6000-ibm-aix3.2.4 
     
    538537                echo rs6000-ibm-aix3.2 
    539538        fi 
    540         exit 0 ;; 
     539        exit ;; 
    541540    *:AIX:*:[45]) 
    542541        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 
     
    552551        fi 
    553552        echo ${IBM_ARCH}-ibm-aix${IBM_REV} 
    554         exit 0 ;; 
     553        exit ;; 
    555554    *:AIX:*:*) 
    556555        echo rs6000-ibm-aix 
    557         exit 0 ;; 
     556        exit ;; 
    558557    ibmrt:4.4BSD:*|romp-ibm:BSD:*) 
    559558        echo romp-ibm-bsd4.4 
    560         exit 0 ;; 
     559        exit ;; 
    561560    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and 
    562561        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to 
    563         exit 0 ;;                           # report: romp-ibm BSD 4.3 
     562        exit ;;                             # report: romp-ibm BSD 4.3 
    564563    *:BOSX:*:*) 
    565564        echo rs6000-bull-bosx 
    566         exit 0 ;; 
     565        exit ;; 
    567566    DPX/2?00:B.O.S.:*:*) 
    568567        echo m68k-bull-sysv3 
    569         exit 0 ;; 
     568        exit ;; 
    570569    9000/[34]??:4.3bsd:1.*:*) 
    571570        echo m68k-hp-bsd 
    572         exit 0 ;; 
     571        exit ;; 
    573572    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 
    574573        echo m68k-hp-bsd4.4 
    575         exit 0 ;; 
     574        exit ;; 
    576575    9000/[34678]??:HP-UX:*:*) 
    577576        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
     
    635634        if [ ${HP_ARCH} = "hppa2.0w" ] 
    636635        then 
    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 
     636            eval $set_cc_for_build 
     637 
     638            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 
     639            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler 
     640            # generating 64-bit code.  GNU and HP use different nomenclature: 
     641            # 
     642            # $ CC_FOR_BUILD=cc ./config.guess 
     643            # => hppa2.0w-hp-hpux11.23 
     644            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 
     645            # => hppa64-hp-hpux11.23 
     646 
     647            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 
     648                grep __LP64__ >/dev/null 
    640649            then 
    641650                HP_ARCH="hppa2.0w" 
     
    645654        fi 
    646655        echo ${HP_ARCH}-hp-hpux${HPUX_REV} 
    647         exit 0 ;; 
     656        exit ;; 
    648657    ia64:HP-UX:*:*) 
    649658        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 
    650659        echo ia64-hp-hpux${HPUX_REV} 
    651         exit 0 ;; 
     660        exit ;; 
    652661    3050*:HI-UX:*:*) 
    653662        eval $set_cc_for_build 
     
    677686        } 
    678687EOF 
    679         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 
     688        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 
     689                { echo "$SYSTEM_NAME"; exit; } 
    680690        echo unknown-hitachi-hiuxwe2 
    681         exit 0 ;; 
     691        exit ;; 
    682692    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 
    683693        echo hppa1.1-hp-bsd 
    684         exit 0 ;; 
     694        exit ;; 
    685695    9000/8??:4.3bsd:*:*) 
    686696        echo hppa1.0-hp-bsd 
    687         exit 0 ;; 
     697        exit ;; 
    688698    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 
    689699        echo hppa1.0-hp-mpeix 
    690         exit 0 ;; 
     700        exit ;; 
    691701    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 
    692702        echo hppa1.1-hp-osf 
    693         exit 0 ;; 
     703        exit ;; 
    694704    hp8??:OSF1:*:*) 
    695705        echo hppa1.0-hp-osf 
    696         exit 0 ;; 
     706        exit ;; 
    697707    i*86:OSF1:*:*) 
    698708        if [ -x /usr/sbin/sysversion ] ; then 
     
    701711            echo ${UNAME_MACHINE}-unknown-osf1 
    702712        fi 
    703         exit 0 ;; 
     713        exit ;; 
    704714    parisc*:Lites*:*:*) 
    705715        echo hppa1.1-hp-lites 
    706         exit 0 ;; 
     716        exit ;; 
    707717    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 
    708718        echo c1-convex-bsd 
    709         exit 0 ;; 
     719        exit ;; 
    710720    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 
    711721        if getsysinfo -f scalar_acc 
     
    713723        else echo c2-convex-bsd 
    714724        fi 
    715         exit 0 ;; 
     725        exit ;; 
    716726    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 
    717727        echo c34-convex-bsd 
    718         exit 0 ;; 
     728        exit ;; 
    719729    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 
    720730        echo c38-convex-bsd 
    721         exit 0 ;; 
     731        exit ;; 
    722732    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 
    723733        echo c4-convex-bsd 
    724         exit 0 ;; 
     734        exit ;; 
    725735    CRAY*Y-MP:*:*:*) 
    726736        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    727         exit 0 ;; 
     737        exit ;; 
    728738    CRAY*[A-Z]90:*:*:*) 
    729739        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 
     
    731741              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 
    732742              -e 's/\.[^.]*$/.X/' 
    733         exit 0 ;; 
     743        exit ;; 
    734744    CRAY*TS:*:*:*) 
    735745        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    736         exit 0 ;; 
     746        exit ;; 
    737747    CRAY*T3E:*:*:*) 
    738748        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    739         exit 0 ;; 
     749        exit ;; 
    740750    CRAY*SV1:*:*:*) 
    741751        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
    742         exit 0 ;; 
     752        exit ;; 
    743753    *:UNICOS/mp:*:*) 
    744         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'  
    745         exit 0 ;; 
     754        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
     755        exit ;; 
    746756    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 
    747757        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 
     
    749759        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 
    750760        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
    751         exit 0 ;; 
     761        exit ;; 
     762    5000:UNIX_System_V:4.*:*) 
     763        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 
     764        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 
     765        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 
     766        exit ;; 
    752767    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 
    753768        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 
    754         exit 0 ;; 
     769        exit ;; 
    755770    sparc*:BSD/OS:*:*) 
    756771        echo sparc-unknown-bsdi${UNAME_RELEASE} 
    757         exit 0 ;; 
     772        exit ;; 
    758773    *:BSD/OS:*:*) 
    759774        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 
    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 
    771 EOF 
    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 ;; 
     775        exit ;; 
     776    *:FreeBSD:*:*) 
     777        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 
     778        exit ;; 
    775779    i*:CYGWIN*:*) 
    776780        echo ${UNAME_MACHINE}-pc-cygwin 
    777         exit 0 ;; 
     781        exit ;; 
    778782    i*:MINGW*:*) 
    779783        echo ${UNAME_MACHINE}-pc-mingw32 
    780         exit 0 ;; 
     784        exit ;; 
     785    i*:windows32*:*) 
     786        # uname -m includes "-pc" on this system. 
     787        echo ${UNAME_MACHINE}-mingw32 
     788        exit ;; 
    781789    i*:PW*:*) 
    782790        echo ${UNAME_MACHINE}-pc-pw32 
    783         exit 0 ;; 
     791        exit ;; 
    784792    x86:Interix*:[34]*) 
    785793        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 
    786         exit 0 ;; 
     794        exit ;; 
    787795    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 
    788796        echo i${UNAME_MACHINE}-pc-mks 
    789         exit 0 ;; 
     797        exit ;; 
    790798    i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 
    791799        # How do we know it's Interix rather than the generic POSIX subsystem? 
     
    793801        # UNAME_MACHINE based on the output of uname instead of i386? 
    794802        echo i586-pc-interix 
    795         exit 0 ;; 
     803        exit ;; 
    796804    i*:UWIN*:*) 
    797805        echo ${UNAME_MACHINE}-pc-uwin 
    798         exit 0 ;; 
     806        exit ;; 
     807    amd64:CYGWIN*:*:*) 
     808        echo x86_64-unknown-cygwin 
     809        exit ;; 
    799810    p*:CYGWIN*:*) 
    800811        echo powerpcle-unknown-cygwin 
    801         exit 0 ;; 
     812        exit ;; 
    802813    prep*:SunOS:5.*:*) 
    803814        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 
    804         exit 0 ;; 
     815        exit ;; 
    805816    *:GNU:*:*) 
     817        # the GNU system 
    806818        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 
    807         exit 0 ;; 
     819        exit ;; 
     820    *:GNU/*:*:*) 
     821        # other systems with GNU libc and userland 
     822        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 
     823        exit ;; 
    808824    i*86:Minix:*:*) 
    809825        echo ${UNAME_MACHINE}-pc-minix 
    810         exit 0 ;; 
     826        exit ;; 
    811827    arm*:Linux:*:*) 
    812         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    813         exit 0 ;; 
     828        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     829        exit ;; 
    814830    cris:Linux:*:*) 
    815         echo cris-axis-linux-gnu 
    816         exit 0 ;; 
     831        echo cris-axis-linux 
     832        exit ;; 
     833    crisv32:Linux:*:*) 
     834        echo crisv32-axis-linux 
     835        exit ;; 
     836    frv:Linux:*:*) 
     837        echo frv-${VENDOR}-linux 
     838        exit ;; 
    817839    ia64:Linux:*:*) 
    818         echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 
    819         exit 0 ;; 
     840        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     841        exit ;; 
     842    m32r*:Linux:*:*) 
     843        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     844        exit ;; 
    820845    m68*:Linux:*:*) 
    821         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    822         exit 0 ;; 
     846        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     847        exit ;; 
    823848    mips:Linux:*:*) 
    824849        eval $set_cc_for_build 
     
    838863EOF 
    839864        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
    840         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 
     865        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; } 
    841866        ;; 
    842867    mips64:Linux:*:*) 
     
    857882EOF 
    858883        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 
    859         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 
     884        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux"; exit; } 
    860885        ;; 
    861886    ppc:Linux:*:*) 
    862         echo powerpc-${VENDOR:-unknown}-linux-gnu 
    863         exit 0 ;; 
     887        echo powerpc-${VENDOR}-linux 
     888        exit ;; 
    864889    ppc64:Linux:*:*) 
    865         echo powerpc64-${VENDOR:-unknown}-linux-gnu 
    866         exit 0 ;; 
     890        echo powerpc64-${VENDOR}-linux 
     891        exit ;; 
    867892    alpha:Linux:*:*) 
    868893        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 
     
    877902        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 
    878903        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 
    879         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 
    880         exit 0 ;; 
     904        echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} 
     905        exit ;; 
    881906    parisc:Linux:*:* | hppa:Linux:*:*) 
    882907        # Look for CPU level 
    883908        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 
    884           PA7*) echo hppa1.1-unknown-linux-gnu ;; 
    885           PA8*) echo hppa2.0-unknown-linux-gnu ;; 
    886           *)    echo hppa-unknown-linux-gnu ;; 
     909          PA7*) echo hppa1.1-${VENDOR}-linux ;; 
     910          PA8*) echo hppa2.0-${VENDOR}-linux ;; 
     911          *)    echo hppa-${VENDOR}-linux ;; 
    887912        esac 
    888         exit 0 ;; 
     913        exit ;; 
    889914    parisc64:Linux:*:* | hppa64:Linux:*:*) 
    890         echo hppa64-unknown-linux-gnu 
    891         exit 0 ;; 
     915        echo hppa64-${VENDOR}-linux 
     916        exit ;; 
    892917    s390:Linux:*:* | s390x:Linux:*:*) 
    893         echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 
    894         exit 0 ;; 
     918        echo ${UNAME_MACHINE}-ibm-linux 
     919        exit ;; 
    895920    sh64*:Linux:*:*) 
    896         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    897         exit 0 ;; 
     921        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     922        exit ;; 
    898923    sh*:Linux:*:*) 
    899         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    900         exit 0 ;; 
     924        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     925        exit ;; 
    901926    sparc:Linux:*:* | sparc64:Linux:*:*) 
    902         echo ${UNAME_MACHINE}-unknown-linux-gnu 
    903         exit 0 ;; 
     927        echo ${UNAME_MACHINE}-${VENDOR}-linux 
     928        exit ;; 
    904929    x86_64:Linux:*:*) 
    905         echo x86_64-${VENDOR:-unknown}-linux-gnu 
    906         exit 0 ;; 
     930        echo x86_64-${VENDOR}-linux 
     931        exit ;; 
    907932    i*86:Linux:*:*) 
    908933        # The BFD linker knows what the default object file format is, so 
     
    918943        case "$ld_supported_targets" in 
    919944          elf32-i386) 
    920                 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu
     945                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux
    921946                ;; 
    922947          a.out-i386-linux) 
    923                 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 
    924                 exit 0 ;; 
     948                echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" 
     949                exit ;; 
    925950          coff-i386) 
    926                 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 
    927                 exit 0 ;; 
     951                echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" 
     952                exit ;; 
    928953          "") 
    929                 # Either a pre-BFD a.out linker (linux-gnuoldld) or&