Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7187 in orxonox.OLD


Ignore:
Timestamp:
Feb 22, 2006, 2:49:47 AM (18 years ago)
Author:
bensch
Message:

ltdl

Location:
branches/shared_lib
Files:
1 deleted
10 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/shared_lib/Makefile.am

    r4976 r7187  
    11AUTOMAKE_OPTIONS = foreign no-installman no-installinfo
    22
    3 SUBDIRS = src
     3SUBDIRS = \
     4        src \
     5        libltdl
    46
    57EXTRA_DIST = CODING-STANDARDS \
  • branches/shared_lib/config.guess

    r5750 r7187  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    5 
    6 timestamp='2005-02-10'
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4#   Free Software Foundation, Inc.
     5
     6timestamp='2001-06-12'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    2525# the same distribution terms that you use for the rest of that program.
    2626
    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.
     27# Written by Per Bothner <bothner@cygnus.com>.
     28# Please send patches to <config-patches@gnu.org>.
    3029#
    3130# This script attempts to guess a canonical system name similar to
     
    5453
    5554Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     55Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    5756Free Software Foundation, Inc.
    5857
     
    8988fi
    9089
    91 trap 'exit 1' 1 2 15
    92 
    93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
    94 # compiler to aid in system detection is discouraged as it requires
    95 # temporary files to be created and, as you can see below, it is a
    96 # headache to deal with in a portable fashion.
    97 
     90
     91dummy=dummy-$$
     92trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
     93
     94# CC_FOR_BUILD -- compiler used by this script.
    9895# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9996# use `HOST_CC' if defined, but it is deprecated.
    10097
    101 # Portable tmp directory creation inspired by the Autoconf team.
    102 
    103 set_cc_for_build='
    104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    106 : ${TMPDIR=/tmp} ;
    107  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    109  { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    110  { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    111 dummy=$tmp/dummy ;
    112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    11398case $CC_FOR_BUILD,$HOST_CC,$CC in
    114  ,,)    echo "int x;" > $dummy.c ;
    115         for c in cc gcc c89 c99 ; do
    116           if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
    117              CC_FOR_BUILD="$c"; break ;
    118           fi ;
    119         done ;
     99 ,,)    echo "int dummy(){}" > $dummy.c
     100        for c in cc gcc c89 ; do
     101          ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
     102          if test $? = 0 ; then
     103             CC_FOR_BUILD="$c"; break
     104          fi
     105        done
     106        rm -f $dummy.c $dummy.o $dummy.rel
    120107        if test x"$CC_FOR_BUILD" = x ; then
    121           CC_FOR_BUILD=no_compiler_found ;
     108          CC_FOR_BUILD=no_compiler_found
    122109        fi
    123110        ;;
    124111 ,,*)   CC_FOR_BUILD=$CC ;;
    125112 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     113esac
    127114
    128115# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    129 # (ghazi@noc.rutgers.edu 1994-08-24)
     116# (ghazi@noc.rutgers.edu 8/24/94.)
    130117if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
    131118        PATH=$PATH:/.attbin ; export PATH
     
    141128case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    142129    *:NetBSD:*:*)
    143         # NetBSD (nbsd) targets should (where applicable) match one or
     130        # Netbsd (nbsd) targets should (where applicable) match one or
    144131        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
    145132        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
     
    148135        # compatibility and a consistent mechanism for selecting the
    149136        # object file format.
    150         #
    151         # Note: NetBSD doesn't particularly care about the vendor
    152         # portion of the name.  We always set it to "unknown".
    153         sysctl="sysctl -n hw.machine_arch"
    154         UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
    155             /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
    156         case "${UNAME_MACHINE_ARCH}" in
    157             armeb) machine=armeb-unknown ;;
    158             arm*) machine=arm-unknown ;;
    159             sh3el) machine=shl-unknown ;;
    160             sh3eb) machine=sh-unknown ;;
    161             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
     137        # Determine the machine/vendor (is the vendor relevant).
     138        case "${UNAME_MACHINE}" in
     139            amiga) machine=m68k-unknown ;;
     140            arm32) machine=arm-unknown ;;
     141            atari*) machine=m68k-atari ;;
     142            sun3*) machine=m68k-sun ;;
     143            mac68k) machine=m68k-apple ;;
     144            macppc) machine=powerpc-apple ;;
     145            hp3[0-9][05]) machine=m68k-hp ;;
     146            ibmrt|romp-ibm) machine=romp-ibm ;;
     147            *) machine=${UNAME_MACHINE}-unknown ;;
    162148        esac
    163149        # The Operating System including object format, if it has switched
    164150        # to ELF recently, or will in the future.
    165         case "${UNAME_MACHINE_ARCH}" in
    166             arm*|i386|m68k|ns32k|sh3*|sparc|vax)
    167                 eval $set_cc_for_build
     151        case "${UNAME_MACHINE}" in
     152            i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
    168153                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    169154                        | grep __ELF__ >/dev/null
     
    181166        esac
    182167        # The OS release
    183         # Debian GNU/NetBSD machines have a different userland, and
    184         # thus, need a distinct triplet. However, they do not need
    185         # kernel version information, so it can be replaced with a
    186         # suitable tag, in the style of linux-gnu.
    187         case "${UNAME_VERSION}" in
    188             Debian*)
    189                 release='-gnu'
    190                 ;;
    191             *)
    192                 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    193                 ;;
    194         esac
     168        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    195169        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    196170        # contains redundant information, the shorter form:
     
    198172        echo "${machine}-${os}${release}"
    199173        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 ;;
    236     *:OpenBSD:*:*)
    237         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    238         exit 0 ;;
    239     *:ekkoBSD:*:*)
    240         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    241         exit 0 ;;
    242     macppc:MirBSD:*:*)
    243         echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    244         exit 0 ;;
    245     *:MirBSD:*:*)
    246         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    247         exit 0 ;;
    248174    alpha:OSF1:*:*)
    249         case $UNAME_RELEASE in
    250         *4.0)
     175        if test $UNAME_RELEASE = "V4.0"; then
    251176                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    252                 ;;
    253         *5.*)
    254                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    255                 ;;
    256         esac
    257         # According to Compaq, /usr/sbin/psrinfo has been available on
    258         # OSF/1 and Tru64 systems produced since 1995.  I hope that
    259         # covers most systems running today.  This code pipes the CPU
    260         # types through head -n 1, so we only detect the type of CPU 0.
    261         ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
    262         case "$ALPHA_CPU_TYPE" in
    263             "EV4 (21064)")
    264                 UNAME_MACHINE="alpha" ;;
    265             "EV4.5 (21064)")
    266                 UNAME_MACHINE="alpha" ;;
    267             "LCA4 (21066/21068)")
    268                 UNAME_MACHINE="alpha" ;;
    269             "EV5 (21164)")
    270                 UNAME_MACHINE="alphaev5" ;;
    271             "EV5.6 (21164A)")
    272                 UNAME_MACHINE="alphaev56" ;;
    273             "EV5.6 (21164PC)")
    274                 UNAME_MACHINE="alphapca56" ;;
    275             "EV5.7 (21164PC)")
    276                 UNAME_MACHINE="alphapca57" ;;
    277             "EV6 (21264)")
    278                 UNAME_MACHINE="alphaev6" ;;
    279             "EV6.7 (21264A)")
    280                 UNAME_MACHINE="alphaev67" ;;
    281             "EV6.8CB (21264C)")
    282                 UNAME_MACHINE="alphaev68" ;;
    283             "EV6.8AL (21264B)")
    284                 UNAME_MACHINE="alphaev68" ;;
    285             "EV6.8CX (21264D)")
    286                 UNAME_MACHINE="alphaev68" ;;
    287             "EV6.9A (21264/EV69A)")
    288                 UNAME_MACHINE="alphaev69" ;;
    289             "EV7 (21364)")
    290                 UNAME_MACHINE="alphaev7" ;;
    291             "EV7.9 (21364A)")
    292                 UNAME_MACHINE="alphaev79" ;;
    293         esac
    294         # A Pn.n version is a patched version.
     177        fi
    295178        # A Vn.n version is a released version.
    296179        # A Tn.n version is a released field test version.
    297180        # A Xn.n version is an unreleased experimental baselevel.
    298181        # 1.2 uses "1.2" for uname -r.
    299         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     182        cat <<EOF >$dummy.s
     183        .data
     184\$Lformat:
     185        .byte 37,100,45,37,120,10,0     # "%d-%x\n"
     186
     187        .text
     188        .globl main
     189        .align 4
     190        .ent main
     191main:
     192        .frame \$30,16,\$26,0
     193        ldgp \$29,0(\$27)
     194        .prologue 1
     195        .long 0x47e03d80 # implver \$0
     196        lda \$2,-1
     197        .long 0x47e20c21 # amask \$2,\$1
     198        lda \$16,\$Lformat
     199        mov \$0,\$17
     200        not \$1,\$18
     201        jsr \$26,printf
     202        ldgp \$29,0(\$26)
     203        mov 0,\$16
     204        jsr \$26,exit
     205        .end main
     206EOF
     207        $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
     208        if test "$?" = 0 ; then
     209                case `./$dummy` in
     210                        0-0)
     211                                UNAME_MACHINE="alpha"
     212                                ;;
     213                        1-0)
     214                                UNAME_MACHINE="alphaev5"
     215                                ;;
     216                        1-1)
     217                                UNAME_MACHINE="alphaev56"
     218                                ;;
     219                        1-101)
     220                                UNAME_MACHINE="alphapca56"
     221                                ;;
     222                        2-303)
     223                                UNAME_MACHINE="alphaev6"
     224                                ;;
     225                        2-307)
     226                                UNAME_MACHINE="alphaev67"
     227                                ;;
     228                esac
     229        fi
     230        rm -f $dummy.s $dummy
     231        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    300232        exit 0 ;;
    301233    Alpha\ *:Windows_NT*:*)
     
    311243        echo m68k-unknown-sysv4
    312244        exit 0;;
     245    amiga:OpenBSD:*:*)
     246        echo m68k-unknown-openbsd${UNAME_RELEASE}
     247        exit 0 ;;
    313248    *:[Aa]miga[Oo][Ss]:*:*)
    314249        echo ${UNAME_MACHINE}-unknown-amigaos
    315250        exit 0 ;;
    316     *:[Mm]orph[Oo][Ss]:*:*)
    317         echo ${UNAME_MACHINE}-unknown-morphos
     251    arc64:OpenBSD:*:*)
     252        echo mips64el-unknown-openbsd${UNAME_RELEASE}
     253        exit 0 ;;
     254    arc:OpenBSD:*:*)
     255        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     256        exit 0 ;;
     257    hkmips:OpenBSD:*:*)
     258        echo mips-unknown-openbsd${UNAME_RELEASE}
     259        exit 0 ;;
     260    pmax:OpenBSD:*:*)
     261        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     262        exit 0 ;;
     263    sgi:OpenBSD:*:*)
     264        echo mips-unknown-openbsd${UNAME_RELEASE}
     265        exit 0 ;;
     266    wgrisc:OpenBSD:*:*)
     267        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    318268        exit 0 ;;
    319269    *:OS/390:*:*)
    320270        echo i370-ibm-openedition
    321         exit 0 ;;
    322     *:z/VM:*:*)
    323         echo s390-ibm-zvmoe
    324         exit 0 ;;
    325     *:OS400:*:*)
    326         echo powerpc-ibm-os400
    327271        exit 0 ;;
    328272    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    343287        echo pyramid-pyramid-svr4
    344288        exit 0 ;;
    345     DRS?6000:unix:4.0:6*)
    346         echo sparc-icl-nx6
    347         exit 0 ;;
    348     DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    349         case `/usr/bin/uname -p` in
    350             sparc) echo sparc-icl-nx7 && exit 0 ;;
    351         esac ;;
    352289    sun4H:SunOS:5.*:*)
    353290        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     
    378315        exit 0 ;;
    379316    sun*:*:4.2BSD:*)
    380         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     317        UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    381318        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
    382319        case "`/bin/arch`" in
     
    391328    aushp:SunOS:*:*)
    392329        echo sparc-auspex-sunos${UNAME_RELEASE}
     330        exit 0 ;;
     331    atari*:OpenBSD:*:*)
     332        echo m68k-unknown-openbsd${UNAME_RELEASE}
    393333        exit 0 ;;
    394334    # The situation for MiNT is a little confusing.  The machine name
     
    418358        echo m68k-unknown-mint${UNAME_RELEASE}
    419359        exit 0 ;;
    420     m68k:machten:*:*)
    421         echo m68k-apple-machten${UNAME_RELEASE}
     360    sun3*:OpenBSD:*:*)
     361        echo m68k-unknown-openbsd${UNAME_RELEASE}
     362        exit 0 ;;
     363    mac68k:OpenBSD:*:*)
     364        echo m68k-unknown-openbsd${UNAME_RELEASE}
     365        exit 0 ;;
     366    mvme68k:OpenBSD:*:*)
     367        echo m68k-unknown-openbsd${UNAME_RELEASE}
     368        exit 0 ;;
     369    mvme88k:OpenBSD:*:*)
     370        echo m88k-unknown-openbsd${UNAME_RELEASE}
    422371        exit 0 ;;
    423372    powerpc:machten:*:*)
     
    437386        exit 0 ;;
    438387    mips:*:*:UMIPS | mips:*:*:RISCos)
    439         eval $set_cc_for_build
    440388        sed 's/^        //' << EOF >$dummy.c
    441389#ifdef __cplusplus
     
    459407        }
    460408EOF
    461         $CC_FOR_BUILD -o $dummy $dummy.c \
    462           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    463           && exit 0
     409        $CC_FOR_BUILD $dummy.c -o $dummy \
     410          && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     411          && rm -f $dummy.c $dummy && exit 0
     412        rm -f $dummy.c $dummy
    464413        echo mips-mips-riscos${UNAME_RELEASE}
    465414        exit 0 ;;
    466415    Motorola:PowerMAX_OS:*:*)
    467416        echo powerpc-motorola-powermax
    468         exit 0 ;;
    469     Motorola:*:4.3:PL8-*)
    470         echo powerpc-harris-powermax
    471         exit 0 ;;
    472     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    473         echo powerpc-harris-powermax
    474417        exit 0 ;;
    475418    Night_Hawk:Power_UNIX:*:*)
     
    533476    *:AIX:2:3)
    534477        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    535                 eval $set_cc_for_build
    536478                sed 's/^                //' << EOF >$dummy.c
    537479                #include <sys/systemcfg.h>
     
    545487                        }
    546488EOF
    547                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     489                $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
     490                rm -f $dummy.c $dummy
    548491                echo rs6000-ibm-aix3.2.5
    549492        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     
    554497        exit 0 ;;
    555498    *:AIX:*:[45])
    556         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     499        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
    557500        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    558501                IBM_ARCH=rs6000
     
    594537            9000/[34]?? )         HP_ARCH=m68k ;;
    595538            9000/[678][0-9][0-9])
    596                 if [ -x /usr/bin/getconf ]; then
    597                     sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     539              case "${HPUX_REV}" in
     540                11.[0-9][0-9])
     541                  if [ -x /usr/bin/getconf ]; then
     542                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    598543                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    599544                    case "${sc_cpu_version}" in
     
    604549                          32) HP_ARCH="hppa2.0n" ;;
    605550                          64) HP_ARCH="hppa2.0w" ;;
    606                           '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
    607551                        esac ;;
    608552                    esac
    609                 fi
    610                 if [ "${HP_ARCH}" = "" ]; then
    611                     eval $set_cc_for_build
    612                     sed 's/^              //' << EOF >$dummy.c
     553                  fi ;;
     554              esac
     555              if [ "${HP_ARCH}" = "" ]; then
     556              sed 's/^              //' << EOF >$dummy.c
    613557
    614558              #define _HPUX_SOURCE
     
    643587              }
    644588EOF
    645                     (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
    646                     test -z "$HP_ARCH" && HP_ARCH=hppa
    647                 fi ;;
     589        (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
     590        if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
     591        rm -f $dummy.c $dummy
     592        fi ;;
    648593        esac
    649         if [ ${HP_ARCH} = "hppa2.0w" ]
    650         then
    651             # avoid double evaluation of $set_cc_for_build
    652             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    653             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
    654             then
    655                 HP_ARCH="hppa2.0w"
    656             else
    657                 HP_ARCH="hppa64"
    658             fi
    659         fi
    660594        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    661595        exit 0 ;;
     
    665599        exit 0 ;;
    666600    3050*:HI-UX:*:*)
    667         eval $set_cc_for_build
    668601        sed 's/^        //' << EOF >$dummy.c
    669602        #include <unistd.h>
     
    691624        }
    692625EOF
    693         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     626        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
     627        rm -f $dummy.c $dummy
    694628        echo unknown-hitachi-hiuxwe2
    695629        exit 0 ;;
     
    700634        echo hppa1.0-hp-bsd
    701635        exit 0 ;;
    702     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
     636    *9??*:MPE/iX:*:*)
    703637        echo hppa1.0-hp-mpeix
    704638        exit 0 ;;
     
    719653        echo hppa1.1-hp-lites
    720654        exit 0 ;;
     655    hppa*:OpenBSD:*:*)
     656        echo hppa-unknown-openbsd
     657        exit 0 ;;
    721658    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    722659        echo c1-convex-bsd
     
    737674        echo c4-convex-bsd
    738675        exit 0 ;;
     676    CRAY*X-MP:*:*:*)
     677        echo xmp-cray-unicos
     678        exit 0 ;;
    739679    CRAY*Y-MP:*:*:*)
    740         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     680        echo ymp-cray-unicos${UNAME_RELEASE}
    741681        exit 0 ;;
    742682    CRAY*[A-Z]90:*:*:*)
    743683        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
    744684        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    745               -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    746               -e 's/\.[^.]*$/.X/'
     685              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
    747686        exit 0 ;;
    748687    CRAY*TS:*:*:*)
    749688        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    750689        exit 0 ;;
     690    CRAY*T3D:*:*:*)
     691        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     692        exit 0 ;;
    751693    CRAY*T3E:*:*:*)
    752694        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    755697        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    756698        exit 0 ;;
    757     *:UNICOS/mp:*:*)
    758         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    759         exit 0 ;;
     699    CRAY-2:*:*:*)
     700        echo cray2-cray-unicos
     701        exit 0 ;;
    760702    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    761703        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    764706        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    765707        exit 0 ;;
    766     5000:UNIX_System_V:4.*:*)
    767         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    768         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    769         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     708    hp300:OpenBSD:*:*)
     709        echo m68k-unknown-openbsd${UNAME_RELEASE}
    770710        exit 0 ;;
    771711    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
     
    781721        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    782722        exit 0 ;;
     723    *:OpenBSD:*:*)
     724        echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     725        exit 0 ;;
    783726    i*:CYGWIN*:*)
    784727        echo ${UNAME_MACHINE}-pc-cygwin
     
    790733        echo ${UNAME_MACHINE}-pc-pw32
    791734        exit 0 ;;
    792     x86:Interix*:[34]*)
    793         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    794         exit 0 ;;
    795     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    796         echo i${UNAME_MACHINE}-pc-mks
     735    i*:P4W*:*)
     736        echo ${UNAME_MACHINE}-pc-p4w
     737        exit 0 ;;
     738    i*:MSYS*:*)
     739        echo ${UNAME_MACHINE}-pc-msys
    797740        exit 0 ;;
    798741    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     
    800743        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    801744        # UNAME_MACHINE based on the output of uname instead of i386?
    802         echo i586-pc-interix
     745        echo i386-pc-interix
    803746        exit 0 ;;
    804747    i*:UWIN*:*)
    805748        echo ${UNAME_MACHINE}-pc-uwin
    806749        exit 0 ;;
    807     amd64:CYGWIN*:*:*)
    808         echo x86_64-unknown-cygwin
    809         exit 0 ;;
    810750    p*:CYGWIN*:*)
    811751        echo powerpcle-unknown-cygwin
     
    815755        exit 0 ;;
    816756    *:GNU:*:*)
    817         # the GNU system
    818757        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    819         exit 0 ;;
    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
    823758        exit 0 ;;
    824759    i*86:Minix:*:*)
     
    828763        echo ${UNAME_MACHINE}-unknown-linux-gnu
    829764        exit 0 ;;
    830     cris:Linux:*:*)
    831         echo cris-axis-linux-gnu
    832         exit 0 ;;
    833     crisv32:Linux:*:*)
    834         echo crisv32-axis-linux-gnu
    835         exit 0 ;;
    836     frv:Linux:*:*)
    837         echo frv-unknown-linux-gnu
    838         exit 0 ;;
    839765    ia64:Linux:*:*)
    840         echo ${UNAME_MACHINE}-unknown-linux-gnu
    841         exit 0 ;;
    842     m32r*:Linux:*:*)
    843         echo ${UNAME_MACHINE}-unknown-linux-gnu
     766        echo ${UNAME_MACHINE}-unknown-linux
    844767        exit 0 ;;
    845768    m68*:Linux:*:*)
     
    847770        exit 0 ;;
    848771    mips:Linux:*:*)
    849         eval $set_cc_for_build
    850         sed 's/^        //' << EOF >$dummy.c
    851         #undef CPU
    852         #undef mips
    853         #undef mipsel
    854         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    855         CPU=mipsel
    856         #else
    857         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    858         CPU=mips
    859         #else
    860         CPU=
    861         #endif
    862         #endif
     772        cat >$dummy.c <<EOF
     773#ifdef __cplusplus
     774#include <stdio.h>  /* for printf() prototype */
     775int main (int argc, char *argv[]) {
     776#else
     777int main (argc, argv) int argc; char *argv[]; {
     778#endif
     779#ifdef __MIPSEB__
     780  printf ("%s-unknown-linux-gnu\n", argv[1]);
     781#endif
     782#ifdef __MIPSEL__
     783  printf ("%sel-unknown-linux-gnu\n", argv[1]);
     784#endif
     785  return 0;
     786}
    863787EOF
    864         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    865         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    866         ;;
    867     mips64:Linux:*:*)
    868         eval $set_cc_for_build
    869         sed 's/^        //' << EOF >$dummy.c
    870         #undef CPU
    871         #undef mips64
    872         #undef mips64el
    873         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    874         CPU=mips64el
    875         #else
    876         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    877         CPU=mips64
    878         #else
    879         CPU=
    880         #endif
    881         #endif
    882 EOF
    883         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    884         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     788        $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
     789        rm -f $dummy.c $dummy
    885790        ;;
    886791    ppc:Linux:*:*)
    887         echo powerpc-unknown-linux-gnu
    888         exit 0 ;;
    889     ppc64:Linux:*:*)
    890         echo powerpc64-unknown-linux-gnu
     792        # Determine Lib Version
     793        cat >$dummy.c <<EOF
     794#include <features.h>
     795#if defined(__GLIBC__)
     796extern char __libc_version[];
     797extern char __libc_release[];
     798#endif
     799main(argc, argv)
     800     int argc;
     801     char *argv[];
     802{
     803#if defined(__GLIBC__)
     804  printf("%s %s\n", __libc_version, __libc_release);
     805#else
     806  printf("unknown\n");
     807#endif
     808  return 0;
     809}
     810EOF
     811        LIBC=""
     812        $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
     813        if test "$?" = 0 ; then
     814                ./$dummy | grep 1\.99 > /dev/null
     815                if test "$?" = 0 ; then LIBC="libc1" ; fi
     816        fi
     817        rm -f $dummy.c $dummy
     818        echo powerpc-unknown-linux-gnu${LIBC}
    891819        exit 0 ;;
    892820    alpha:Linux:*:*)
    893         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    894           EV5)   UNAME_MACHINE=alphaev5 ;;
    895           EV56)  UNAME_MACHINE=alphaev56 ;;
    896           PCA56) UNAME_MACHINE=alphapca56 ;;
    897           PCA57) UNAME_MACHINE=alphapca56 ;;
    898           EV6)   UNAME_MACHINE=alphaev6 ;;
    899           EV67)  UNAME_MACHINE=alphaev67 ;;
    900           EV68*) UNAME_MACHINE=alphaev68 ;;
    901         esac
    902         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    903         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     821        cat <<EOF >$dummy.s
     822          .data
     823          \$Lformat:
     824                .byte 37,100,45,37,120,10,0     # "%d-%x\n"
     825           .text
     826                .globl main
     827                .align 4
     828                .ent main
     829            main:
     830                .frame \$30,16,\$26,0
     831                ldgp \$29,0(\$27)
     832                .prologue 1
     833                .long 0x47e03d80 # implver \$0
     834                lda \$2,-1
     835                .long 0x47e20c21 # amask \$2,\$1
     836                lda \$16,\$Lformat
     837                mov \$0,\$17
     838                not \$1,\$18
     839                jsr \$26,printf
     840                ldgp \$29,0(\$26)
     841                mov 0,\$16
     842                jsr \$26,exit
     843                .end main
     844EOF
     845        LIBC=""
     846        $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
     847        if test "$?" = 0 ; then
     848                case `./$dummy` in
     849                0-0)    UNAME_MACHINE="alpha" ;;
     850                1-0)    UNAME_MACHINE="alphaev5" ;;
     851                1-1)    UNAME_MACHINE="alphaev56" ;;
     852                1-101)  UNAME_MACHINE="alphapca56" ;;
     853                2-303)  UNAME_MACHINE="alphaev6" ;;
     854                2-307)  UNAME_MACHINE="alphaev67" ;;
     855                esac
     856                objdump --private-headers $dummy | \
     857                  grep ld.so.1 > /dev/null
     858                if test "$?" = 0 ; then
     859                        LIBC="libc1"
     860                fi
     861        fi
     862        rm -f $dummy.s $dummy
    904863        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    905864        exit 0 ;;
     
    918877        echo ${UNAME_MACHINE}-ibm-linux
    919878        exit 0 ;;
    920     sh64*:Linux:*:*)
    921         echo ${UNAME_MACHINE}-unknown-linux-gnu
    922         exit 0 ;;
    923879    sh*:Linux:*:*)
    924880        echo ${UNAME_MACHINE}-unknown-linux-gnu
     
    934890        # first see if it will tell us. cd to the root directory to prevent
    935891        # problems with other programs or directories called `ld' in the path.
    936         # Set LC_ALL=C to ensure ld outputs messages in English.
    937         ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
     892        ld_supported_targets=`cd /; ld --help 2>&1 \
    938893                         | sed -ne '/supported targets:/!d
    939894                                    s/[         ][      ]*/ /g
     
    947902          a.out-i386-linux)
    948903                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    949                 exit 0 ;;
     904                exit 0 ;;               
    950905          coff-i386)
    951906                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     
    958913        esac
    959914        # Determine whether the default compiler is a.out or elf
    960         eval $set_cc_for_build
    961         sed 's/^        //' << EOF >$dummy.c
    962         #include <features.h>
    963         #ifdef __ELF__
    964         # ifdef __GLIBC__
    965         #  if __GLIBC__ >= 2
    966         LIBC=gnu
    967         #  else
    968         LIBC=gnulibc1
    969         #  endif
    970         # else
    971         LIBC=gnulibc1
    972         # endif
    973         #else
    974         #ifdef __INTEL_COMPILER
    975         LIBC=gnu
    976         #else
    977         LIBC=gnuaout
    978         #endif
    979         #endif
    980         #ifdef __dietlibc__
    981         LIBC=dietlibc
    982         #endif
     915        cat >$dummy.c <<EOF
     916#include <features.h>
     917#ifdef __cplusplus
     918#include <stdio.h>  /* for printf() prototype */
     919        int main (int argc, char *argv[]) {
     920#else
     921        int main (argc, argv) int argc; char *argv[]; {
     922#endif
     923#ifdef __ELF__
     924# ifdef __GLIBC__
     925#  if __GLIBC__ >= 2
     926    printf ("%s-pc-linux-gnu\n", argv[1]);
     927#  else
     928    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     929#  endif
     930# else
     931   printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     932# endif
     933#else
     934  printf ("%s-pc-linux-gnuaout\n", argv[1]);
     935#endif
     936  return 0;
     937}
    983938EOF
    984         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    985         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
     939        $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
     940        rm -f $dummy.c $dummy
    986941        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    987942        ;;
     943# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
     944# are messed up and put the nodename in both sysname and nodename.
    988945    i*86:DYNIX/ptx:4*:*)
    989         # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
    990         # earlier versions are messed up and put the nodename in both
    991         # sysname and nodename.
    992946        echo i386-sequent-sysv4
    993947        exit 0 ;;
     
    1000954        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1001955        exit 0 ;;
    1002     i*86:OS/2:*:*)
    1003         # If we were able to find `uname', then EMX Unix compatibility
    1004         # is probably installed.
    1005         echo ${UNAME_MACHINE}-pc-os2-emx
    1006         exit 0 ;;
    1007     i*86:XTS-300:*:STOP)
    1008         echo ${UNAME_MACHINE}-unknown-stop
    1009         exit 0 ;;
    1010     i*86:atheos:*:*)
    1011         echo ${UNAME_MACHINE}-unknown-atheos
    1012         exit 0 ;;
    1013         i*86:syllable:*:*)
    1014         echo ${UNAME_MACHINE}-pc-syllable
    1015         exit 0 ;;
    1016     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    1017         echo i386-unknown-lynxos${UNAME_RELEASE}
    1018         exit 0 ;;
    1019     i*86:*DOS:*:*)
    1020         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1021         exit 0 ;;
    1022956    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    1023957        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    1029963        exit 0 ;;
    1030964    i*86:*:5:[78]*)
    1031         case `/bin/uname -X | grep "^Machine"` in
     965        case `/bin/uname -X | grep ^Machine` in
    1032966            *486*)           UNAME_MACHINE=i486 ;;
    1033             *Pentium)        UNAME_MACHINE=i586 ;;
     967            *Pentium*)       UNAME_MACHINE=i586 ;;
    1034968            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    1035969        esac
     
    1041975                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    1042976        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    1043                 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
    1044                 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
    1045                 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
     977                UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
     978                (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
     979                (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
    1046980                        && UNAME_MACHINE=i586
    1047                 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
     981                (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
    1048982                        && UNAME_MACHINE=i686
    1049                 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
     983                (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
    1050984                        && UNAME_MACHINE=i686
    1051985                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     
    1053987                echo ${UNAME_MACHINE}-pc-sysv32
    1054988        fi
     989        exit 0 ;;
     990    i*86:*DOS:*:*)
     991        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1055992        exit 0 ;;
    1056993    pc:*:*:*)
     
    10771014        echo m68010-convergent-sysv
    10781015        exit 0 ;;
    1079     mc68k:UNIX:SYSTEM5:3.51m)
    1080         echo m68k-convergent-sysv
    1081         exit 0 ;;
    1082     M680?0:D-NIX:5.3:*)
    1083         echo m68k-diab-dnix
    1084         exit 0 ;;
    1085     M68*:*:R3V[5678]*:*)
     1016    M68*:*:R3V[567]*:*)
    10861017        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1087     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)
     1018    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
    10881019        OS_REL=''
    10891020        test -r /etc/.relid \
     
    11021033        echo m68k-atari-sysv4
    11031034        exit 0 ;;
     1035    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1036        echo i386-unknown-lynxos${UNAME_RELEASE}
     1037        exit 0 ;;
    11041038    TSUNAMI:LynxOS:2.*:*)
    11051039        echo sparc-unknown-lynxos${UNAME_RELEASE}
     
    11281062        fi
    11291063        exit 0 ;;
    1130     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    1131                       # says <Richard.M.Bartel@ccMail.Census.GOV>
     1064    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
     1065                           # says <Richard.M.Bartel@ccMail.Census.GOV>
    11321066        echo i586-unisys-sysv4
    11331067        exit 0 ;;
     
    11401074        # From seanf@swdc.stratus.com.
    11411075        echo i860-stratus-sysv4
    1142         exit 0 ;;
    1143     *:VOS:*:*)
    1144         # From Paul.Green@stratus.com.
    1145         echo hppa1.1-stratus-vos
    11461076        exit 0 ;;
    11471077    mc68*:A/UX:*:*)
     
    11731103        echo sx5-nec-superux${UNAME_RELEASE}
    11741104        exit 0 ;;
    1175     SX-6:SUPER-UX:*:*)
    1176         echo sx6-nec-superux${UNAME_RELEASE}
    1177         exit 0 ;;
    11781105    Power*:Rhapsody:*:*)
    11791106        echo powerpc-apple-rhapsody${UNAME_RELEASE}
     
    11831110        exit 0 ;;
    11841111    *:Darwin:*:*)
    1185         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1186         case $UNAME_PROCESSOR in
    1187             *86) UNAME_PROCESSOR=i686 ;;
    1188             unknown) UNAME_PROCESSOR=powerpc ;;
    1189         esac
    1190         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     1112        echo `uname -p`-apple-darwin${UNAME_RELEASE}
    11911113        exit 0 ;;
    11921114    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    1193         UNAME_PROCESSOR=`uname -p`
    1194         if test "$UNAME_PROCESSOR" = "x86"; then
    1195                 UNAME_PROCESSOR=i386
     1115        if test "${UNAME_MACHINE}" = "x86pc"; then
    11961116                UNAME_MACHINE=pc
    11971117        fi
    1198         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     1118        echo `uname -p`-${UNAME_MACHINE}-nto-qnx
    11991119        exit 0 ;;
    12001120    *:QNX:*:4*)
    12011121        echo i386-pc-qnx
    12021122        exit 0 ;;
    1203     NSE-?:NONSTOP_KERNEL:*:*)
    1204         echo nse-tandem-nsk${UNAME_RELEASE}
    1205         exit 0 ;;
    1206     NSR-?:NONSTOP_KERNEL:*:*)
     1123    NSR-[KW]:NONSTOP_KERNEL:*:*)
    12071124        echo nsr-tandem-nsk${UNAME_RELEASE}
    12081125        exit 0 ;;
     
    12271144        echo ${UNAME_MACHINE}-unknown-plan9
    12281145        exit 0 ;;
     1146    i*86:OS/2:*:*)
     1147        # If we were able to find `uname', then EMX Unix compatibility
     1148        # is probably installed.
     1149        echo ${UNAME_MACHINE}-pc-os2-emx
     1150        exit 0 ;;
    12291151    *:TOPS-10:*:*)
    12301152        echo pdp10-unknown-tops10
     
    12451167        echo pdp10-unknown-its
    12461168        exit 0 ;;
    1247     SEI:*:*:SEIUX)
    1248         echo mips-sei-seiux${UNAME_RELEASE}
    1249         exit 0 ;;
    1250     *:DragonFly:*:*)
    1251         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1252         exit 0 ;;
    1253     *:*VMS:*:*)
    1254         UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1255         case "${UNAME_MACHINE}" in
    1256             A*) echo alpha-dec-vms && exit 0 ;;
    1257             I*) echo ia64-dec-vms && exit 0 ;;
    1258             V*) echo vax-dec-vms && exit 0 ;;
    1259         esac ;;
    1260     *:XENIX:*:SysV)
    1261         echo i386-pc-xenix
    1262         exit 0 ;;
    12631169esac
    12641170
     
    12661172#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
    12671173
    1268 eval $set_cc_for_build
    12691174cat >$dummy.c <<EOF
    12701175#ifdef _SEQUENT_
     
    13811286EOF
    13821287
    1383 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1288$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
     1289rm -f $dummy.c $dummy
    13841290
    13851291# Apollos put the system type in the environment.
  • branches/shared_lib/config.sub

    r5750 r7187  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    5 
    6 timestamp='2005-02-10'
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4#   Free Software Foundation, Inc.
     5
     6timestamp='2001-06-08'
    77
    88# This file is (in principle) common to ALL GNU software.
     
    3030# the same distribution terms that you use for the rest of that program.
    3131
    32 # Please send patches to <config-patches@gnu.org>.  Submit a context
    33 # diff and a properly formatted ChangeLog entry.
     32# Please send patches to <config-patches@gnu.org>.
    3433#
    3534# Configuration subroutine to validate and canonicalize a configuration type.
     
    7170GNU config.sub ($timestamp)
    7271
    73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     72Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    7473Free Software Foundation, Inc.
    7574
     
    119118maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120119case $maybe_os in
    121   nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
    122   kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
     120  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
    123121    os=-$maybe_os
    124122    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    146144        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    147145        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    148         -apple | -axis | -knuth | -cray)
     146        -apple | -axis)
    149147                os=
    150148                basic_machine=$1
     
    226224        # Recognize the basic CPU types without company name.
    227225        # Some are omitted here because they have special meanings below.
    228         1750a | 580 \
    229         | a29k \
    230         | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    231         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    232         | am33_2.0 \
    233         | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    234         | c4x | clipper \
    235         | d10v | d30v | dlx | dsp16xx \
    236         | fr30 | frv \
    237         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    238         | i370 | i860 | i960 | ia64 \
    239         | ip2k | iq2000 \
    240         | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
    241         | mips | mipsbe | mipseb | mipsel | mipsle \
    242         | mips16 \
    243         | mips64 | mips64el \
    244         | mips64vr | mips64vrel \
    245         | mips64orion | mips64orionel \
    246         | mips64vr4100 | mips64vr4100el \
    247         | mips64vr4300 | mips64vr4300el \
    248         | mips64vr5000 | mips64vr5000el \
    249         | mipsisa32 | mipsisa32el \
    250         | mipsisa32r2 | mipsisa32r2el \
    251         | mipsisa64 | mipsisa64el \
    252         | mipsisa64r2 | mipsisa64r2el \
    253         | mipsisa64sb1 | mipsisa64sb1el \
    254         | mipsisa64sr71k | mipsisa64sr71kel \
    255         | mipstx39 | mipstx39el \
    256         | mn10200 | mn10300 \
    257         | msp430 \
    258         | ns16k | ns32k \
    259         | openrisc | or32 \
    260         | pdp10 | pdp11 | pj | pjl \
    261         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    262         | pyramid \
    263         | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    264         | sh64 | sh64le \
    265         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
    266         | strongarm \
    267         | tahoe | thumb | tic4x | tic80 | tron \
    268         | v850 | v850e \
    269         | we32k \
    270         | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
    271         | z8k)
     226        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
     227                | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
     228                | pyramid | mn10200 | mn10300 | tron | a29k \
     229                | 580 | i960 | h8300 \
     230                | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
     231                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
     232                | hppa64 \
     233                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
     234                | alphaev6[78] \
     235                | we32k | ns16k | clipper | i370 | sh | sh[34] \
     236                | powerpc | powerpcle \
     237                | 1750a | dsp16xx | pdp10 | pdp11 \
     238                | mips16 | mips64 | mipsel | mips64el \
     239                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
     240                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
     241                | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
     242                | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
     243                | v850 | c4x \
     244                | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
     245                | pj | pjl | h8500 | z8k)
    272246                basic_machine=$basic_machine-unknown
    273247                ;;
     
    292266                ;;
    293267        # Recognize the basic CPU types with company name.
    294         580-* \
    295         | a29k-* \
    296         | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
    297         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
    298         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
    299         | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    300         | avr-* \
    301         | bs2000-* \
    302         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    303         | clipper-* | craynv-* | cydra-* \
    304         | d10v-* | d30v-* | dlx-* \
    305         | elxsi-* \
    306         | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    307         | h8300-* | h8500-* \
    308         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    309         | i*86-* | i860-* | i960-* | ia64-* \
    310         | ip2k-* | iq2000-* \
    311         | m32r-* | m32rle-* \
    312         | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    313         | m88110-* | m88k-* | maxq-* | mcore-* \
    314         | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    315         | mips16-* \
    316         | mips64-* | mips64el-* \
    317         | mips64vr-* | mips64vrel-* \
    318         | mips64orion-* | mips64orionel-* \
    319         | mips64vr4100-* | mips64vr4100el-* \
    320         | mips64vr4300-* | mips64vr4300el-* \
    321         | mips64vr5000-* | mips64vr5000el-* \
    322         | mipsisa32-* | mipsisa32el-* \
    323         | mipsisa32r2-* | mipsisa32r2el-* \
    324         | mipsisa64-* | mipsisa64el-* \
    325         | mipsisa64r2-* | mipsisa64r2el-* \
    326         | mipsisa64sb1-* | mipsisa64sb1el-* \
    327         | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    328         | mipstx39-* | mipstx39el-* \
    329         | mmix-* \
    330         | msp430-* \
    331         | none-* | np1-* | ns16k-* | ns32k-* \
    332         | orion-* \
    333         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    334         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    335         | pyramid-* \
    336         | romp-* | rs6000-* \
    337         | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
    338         | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    339         | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
    340         | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
    341         | tahoe-* | thumb-* \
    342         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    343         | tron-* \
    344         | v850-* | v850e-* | vax-* \
    345         | we32k-* \
    346         | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
    347         | xstormy16-* | xtensa-* \
    348         | ymp-* \
    349         | z8k-*)
     268        # FIXME: clean up the formatting here.
     269        vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
     270              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
     271              | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
     272              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
     273              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
     274              | xmp-* | ymp-* \
     275              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
     276              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
     277              | hppa2.0n-* | hppa64-* \
     278              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
     279              | alphaev6[78]-* \
     280              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
     281              | clipper-* | orion-* \
     282              | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
     283              | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
     284              | mips16-* | mips64-* | mipsel-* \
     285              | mips64el-* | mips64orion-* | mips64orionel-* \
     286              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
     287              | mipstx39-* | mipstx39el-* | mcore-* \
     288              | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
     289              | [cjt]90-* \
     290              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
     291              | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
     292              | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
    350293                ;;
    351294        # Recognize the various machine names and aliases which stand
     
    365308                os=-udi
    366309                ;;
    367         abacus)
    368                 basic_machine=abacus-unknown
    369                 ;;
    370310        adobe68k)
    371311                basic_machine=m68010-adobe
     
    382322                os=-bsd
    383323                ;;
    384         amd64)
    385                 basic_machine=x86_64-pc
    386                 ;;
    387         amd64-*)
    388                 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
    389                 ;;
    390324        amdahl)
    391325                basic_machine=580-amdahl
     
    419353                os=-dynix
    420354                ;;
    421         c90)
    422                 basic_machine=c90-cray
    423                 os=-unicos
    424                 ;;
    425355        convex-c1)
    426356                basic_machine=c1-convex
     
    443373                os=-bsd
    444374                ;;
    445         cray | j90)
    446                 basic_machine=j90-cray
     375        cray | ymp)
     376                basic_machine=ymp-cray
    447377                os=-unicos
    448378                ;;
    449         craynv)
    450                 basic_machine=craynv-cray
    451                 os=-unicosmp
    452                 ;;
    453         cr16c)
    454                 basic_machine=cr16c-unknown
    455                 os=-elf
     379        cray2)
     380                basic_machine=cray2-cray
     381                os=-unicos
     382                ;;
     383        [cjt]90)
     384                basic_machine=${basic_machine}-cray
     385                os=-unicos
    456386                ;;
    457387        crds | unos)
    458388                basic_machine=m68k-crds
    459389                ;;
    460         crisv32 | crisv32-* | etraxfs*)
    461                 basic_machine=crisv32-axis
    462                 ;;
    463390        cris | cris-* | etrax*)
    464391                basic_machine=cris-axis
    465392                ;;
    466         crx)
    467                 basic_machine=crx-unknown
    468                 os=-elf
     393        cygwin*)
     394                basic_machine=i586-pc
     395                os=-cygwin
    469396                ;;
    470397        da30 | da30-*)
     
    473400        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    474401                basic_machine=mips-dec
    475                 ;;
    476         decsystem10* | dec10*)
    477                 basic_machine=pdp10-dec
    478                 os=-tops10
    479                 ;;
    480         decsystem20* | dec20*)
    481                 basic_machine=pdp10-dec
    482                 os=-tops20
    483402                ;;
    484403        delta | 3300 | motorola-3300 | motorola-delta \
     
    489408                basic_machine=m88k-motorola
    490409                os=-sysv3
    491                 ;;
    492         djgpp)
    493                 basic_machine=i586-pc
    494                 os=-msdosdjgpp
    495410                ;;
    496411        dpx20 | dpx20-*)
     
    655570                os=-sysv
    656571                ;;
    657         mingw32)
    658                 basic_machine=i386-pc
    659                 os=-mingw32
     572        mingw*)
     573                basic_machine=i586-pc
     574                os=-mingw
    660575                ;;
    661576        miniframe)
     
    666581                os=-mint
    667582                ;;
     583        mipsel*-linux*)
     584                basic_machine=mipsel-unknown
     585                os=-linux-gnu
     586                ;;
     587        mips*-linux*)
     588                basic_machine=mips-unknown
     589                os=-linux-gnu
     590                ;;
    668591        mips3*-*)
    669592                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     
    671594        mips3*)
    672595                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
     596                ;;
     597        mmix*)
     598                basic_machine=mmix-knuth
     599                os=-mmixware
    673600                ;;
    674601        monitor)
     
    676603                os=-coff
    677604                ;;
    678         morphos)
    679                 basic_machine=powerpc-unknown
    680                 os=-morphos
    681                 ;;
    682605        msdos)
    683606                basic_machine=i386-pc
    684607                os=-msdos
     608                ;;
     609        msys)
     610                basic_machine=i386-pc
     611                os=-msys
    685612                ;;
    686613        mvs)
     
    759686                os=-proelf
    760687                ;;
    761         or32 | or32-*)
    762                 basic_machine=or32-unknown
    763                 os=-coff
    764                 ;;
    765         os400)
    766                 basic_machine=powerpc-ibm
    767                 os=-os400
    768                 ;;
    769688        OSE68000 | ose68000)
    770689                basic_machine=m68000-ericsson
     
    775694                os=-os68k
    776695                ;;
     696        p4w)
     697                basic_machine=i586-pc
     698                os=-p4w
     699                ;;
    777700        pa-hitachi)
    778701                basic_machine=hppa1.1-hitachi
     
    789712                basic_machine=m68k-tti
    790713                ;;
    791         pc532 | pc532-*)
     714        pc532 | pc532-*)
    792715                basic_machine=ns32k-pc532
    793716                ;;
    794         pentium | p5 | k5 | k6 | nexgen | viac3)
     717        pentium | p5 | k5 | k6 | nexgen)
    795718                basic_machine=i586-pc
    796719                ;;
    797         pentiumpro | p6 | 6x86 | athlon | athlon_*)
     720        pentiumpro | p6 | 6x86 | athlon)
    798721                basic_machine=i686-pc
    799722                ;;
    800         pentiumii | pentium2 | pentiumiii | pentium3)
     723        pentiumii | pentium2)
    801724                basic_machine=i686-pc
    802725                ;;
    803         pentium4)
    804                 basic_machine=i786-pc
    805                 ;;
    806         pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
     726        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
    807727                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    808728                ;;
     
    810730                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    811731                ;;
    812         pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
     732        pentiumii-* | pentium2-*)
    813733                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    814                 ;;
    815         pentium4-*)
    816                 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
    817734                ;;
    818735        pn)
     
    822739                ;;
    823740        ppc)    basic_machine=powerpc-unknown
    824                 ;;
     741                ;;
    825742        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    826743                ;;
    827744        ppcle | powerpclittle | ppc-le | powerpc-little)
    828745                basic_machine=powerpcle-unknown
    829                 ;;
     746                ;;
    830747        ppcle-* | powerpclittle-*)
    831748                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    832                 ;;
    833         ppc64)  basic_machine=powerpc64-unknown
    834                 ;;
    835         ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
    836                 ;;
    837         ppc64le | powerpc64little | ppc64-le | powerpc64-little)
    838                 basic_machine=powerpc64le-unknown
    839                 ;;
    840         ppc64le-* | powerpc64little-*)
    841                 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
    842749                ;;
    843750        ps2)
     
    858765                basic_machine=romp-ibm
    859766                ;;
    860         s390 | s390-*)
    861                 basic_machine=s390-ibm
    862                 ;;
    863         s390x | s390x-*)
    864                 basic_machine=s390x-ibm
    865                 ;;
    866767        sa29200)
    867768                basic_machine=a29k-amd
    868769                os=-udi
    869770                ;;
    870         sb1)
    871                 basic_machine=mipsisa64sb1-unknown
    872                 ;;
    873         sb1el)
    874                 basic_machine=mipsisa64sb1el-unknown
    875                 ;;
    876         sei)
    877                 basic_machine=mips-sei
    878                 os=-seiux
    879                 ;;
    880771        sequent)
    881772                basic_machine=i386-sequent
     
    885776                os=-hms
    886777                ;;
    887         sh64)
    888                 basic_machine=sh64-unknown
    889                 ;;
    890         sparclite-wrs | simso-wrs)
     778        sparclite-wrs)
    891779                basic_machine=sparclite-wrs
    892780                os=-vxworks
     
    955843                ;;
    956844        t3e)
    957                 basic_machine=alphaev5-cray
    958                 os=-unicos
    959                 ;;
    960         t90)
    961                 basic_machine=t90-cray
     845                basic_machine=t3e-cray
    962846                os=-unicos
    963847                ;;
     
    966850                os=-coff
    967851                ;;
    968         tic55x | c55x*)
    969                 basic_machine=tic55x-unknown
    970                 os=-coff
    971                 ;;
    972         tic6x | c6x*)
    973                 basic_machine=tic6x-unknown
    974                 os=-coff
    975                 ;;
    976852        tx39)
    977853                basic_machine=mipstx39-unknown
     
    980856                basic_machine=mipstx39el-unknown
    981857                ;;
    982         toad1)
    983                 basic_machine=pdp10-xkl
    984                 os=-tops20
    985                 ;;
    986858        tower | tower-32)
    987859                basic_machine=m68k-ncr
    988                 ;;
    989         tpf)
    990                 basic_machine=s390x-ibm
    991                 os=-tpf
    992860                ;;
    993861        udi29k)
     
    1012880                ;;
    1013881        vpp*|vx|vx-*)
    1014                 basic_machine=f301-fujitsu
    1015                 ;;
     882               basic_machine=f301-fujitsu
     883               ;;
    1016884        vxworks960)
    1017885                basic_machine=i960-wrs
     
    1034902                os=-proelf
    1035903                ;;
    1036         xbox)
    1037                 basic_machine=i686-pc
    1038                 os=-mingw32
    1039                 ;;
    1040         xps | xps100)
     904        windows32)
     905                basic_machine=i386-pc
     906                os=-windows32-msvcrt
     907                ;;
     908        xmp)
     909                basic_machine=xmp-cray
     910                os=-unicos
     911                ;;
     912        xps | xps100)
    1041913                basic_machine=xps100-honeywell
    1042                 ;;
    1043         ymp)
    1044                 basic_machine=ymp-cray
    1045                 os=-unicos
    1046914                ;;
    1047915        z8k-*-coff)
     
    1065933                basic_machine=hppa1.1-oki
    1066934                ;;
     935        mips)
     936                if [ x$os = x-linux-gnu ]; then
     937                        basic_machine=mips-unknown
     938                else
     939                        basic_machine=mips-mips
     940                fi
     941                ;;
    1067942        romp)
    1068943                basic_machine=romp-ibm
    1069                 ;;
    1070         mmix)
    1071                 basic_machine=mmix-knuth
    1072944                ;;
    1073945        rs6000)
     
    1087959                basic_machine=we32k-att
    1088960                ;;
    1089         sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
     961        sh3 | sh4)
    1090962                basic_machine=sh-unknown
    1091963                ;;
    1092         sh64)
    1093                 basic_machine=sh64-unknown
    1094                 ;;
    1095         sparc | sparcv8 | sparcv9 | sparcv9b)
     964        sparc | sparcv9 | sparcv9b)
    1096965                basic_machine=sparc-sun
    1097966                ;;
    1098         cydra)
     967        cydra)
    1099968                basic_machine=cydra-cydrome
    1100969                ;;
     
    1110979        pmac | pmac-mpw)
    1111980                basic_machine=powerpc-apple
     981                ;;
     982        c4x*)
     983                basic_machine=c4x-none
     984                os=-coff
    1112985                ;;
    1113986        *-unknown)
     
    11661039              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    11671040              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1168               | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
    1169               | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
    1170               | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1041              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
     1042              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11711043              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11721044              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    11731045              | -chorusos* | -chorusrdb* \
    1174               | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1175               | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
    1176               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
     1046              | -cygwin* | -msys* | -p4w* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
     1047              | -mingw* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
     1048              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
    11771049              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    1178               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    1179               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    1180               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    1181               | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
     1050              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
    11821051        # Remember, each alternative MUST END IN *, to match a version number.
    11831052                ;;
     
    11911060                esac
    11921061                ;;
    1193         -nto-qnx*)
    1194                 ;;
    11951062        -nto*)
    1196                 os=`echo $os | sed -e 's|nto|nto-qnx|'`
     1063                os=-nto-qnx
    11971064                ;;
    11981065        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
     
    12031070                os=`echo $os | sed -e 's|mac|macos|'`
    12041071                ;;
    1205         -linux-dietlibc)
    1206                 os=-linux-dietlibc
    1207                 ;;
    12081072        -linux*)
    12091073                os=`echo $os | sed -e 's|linux|linux-gnu|'`
     
    12181082                os=-openedition
    12191083                ;;
    1220         -os400*)
    1221                 os=-os400
    1222                 ;;
    12231084        -wince*)
    12241085                os=-wince
     
    12391100                os=-aos
    12401101                ;;
    1241         -atheos*)
    1242                 os=-atheos
    1243                 ;;
    1244         -syllable*)
    1245                 os=-syllable
    1246                 ;;
    12471102        -386bsd)
    12481103                os=-bsd
     
    12511106                os=-sysv
    12521107                ;;
    1253         -nova*)
    1254                 os=-rtmk-nova
    1255                 ;;
    12561108        -ns2 )
    1257                 os=-nextstep2
     1109                os=-nextstep2
    12581110                ;;
    12591111        -nsk*)
     
    12671119                os=-sysv4
    12681120                ;;
    1269         -tpf*)
    1270                 os=-tpf
    1271                 ;;
    12721121        -triton*)
    12731122                os=-sysv3
     
    12971146                os=-xenix
    12981147                ;;
    1299         -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    1300                 os=-mint
    1301                 ;;
    1302         -aros*)
    1303                 os=-aros
    1304                 ;;
    1305         -kaos*)
    1306                 os=-kaos
    1307                 ;;
    1308         -zvmoe)
    1309                 os=-zvmoe
     1148        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1149                os=-mint
    13101150                ;;
    13111151        -none)
     
    13401180                os=-aout
    13411181                ;;
    1342     c4x-* | tic4x-*)
    1343         os=-coff
    1344         ;;
    1345         # This must come before the *-dec entry.
    13461182        pdp10-*)
    13471183                os=-tops20
    13481184                ;;
    1349         pdp11-*)
     1185        pdp11-*)
    13501186                os=-none
    13511187                ;;
     
    13741210                os=-elf
    13751211                ;;
    1376         or32-*)
    1377                 os=-coff
    1378                 ;;
    13791212        *-tti)  # must be before sparc entry or we get the wrong os.
    13801213                os=-sysv3
     
    13891222                os=-aix
    13901223                ;;
    1391         *-knuth)
    1392                 os=-mmixware
    1393                 ;;
    13941224        *-wec)
    13951225                os=-proelf
     
    14431273                os=-nextstep3
    14441274                ;;
    1445         *-gould)
     1275        *-gould)
    14461276                os=-sysv
    14471277                ;;
    1448         *-highlevel)
     1278        *-highlevel)
    14491279                os=-bsd
    14501280                ;;
     
    14521282                os=-bsd
    14531283                ;;
    1454         *-sgi)
     1284        *-sgi)
    14551285                os=-irix
    14561286                ;;
    1457         *-siemens)
     1287        *-siemens)
    14581288                os=-sysv4
    14591289                ;;
     
    15241354                                vendor=ibm
    15251355                                ;;
    1526                         -os400*)
    1527                                 vendor=ibm
    1528                                 ;;
    15291356                        -ptx*)
    15301357                                vendor=sequent
    15311358                                ;;
    1532                         -tpf*)
    1533                                 vendor=ibm
    1534                                 ;;
    1535                         -vxsim* | -vxworks* | -windiss*)
     1359                        -vxsim* | -vxworks*)
    15361360                                vendor=wrs
    15371361                                ;;
     
    15471371                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    15481372                                vendor=atari
    1549                                 ;;
    1550                         -vos*)
    1551                                 vendor=stratus
    15521373                                ;;
    15531374                esac
  • branches/shared_lib/configure.ac

    r7183 r7187  
    4242#########################
    4343AC_PROG_CXX
    44 AC_LIBLTDL_INSTALLABLE
    4544AC_LIBTOOL_DLOPEN
    4645AC_PROG_LIBTOOL
     
    645644                 src/lib/parser/tinyxml/Makefile
    646645                 src/lib/parser/ini_parser/Makefile
     646                 src/lib/libltdl/Makefile
    647647                 src/util/Makefile
    648648                 src/world_entities/Makefile
  • branches/shared_lib/src/lib/BuildLibs.am

    r7178 r7187  
    1515                $(LIB_PREFIX)/parser/tinyxml/libtinyxml.a \
    1616                $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \
     17                $(LIB_PREFIX)/libltdl/libltdl.a \
    1718                $(LIB_PREFIX)/shell/libORXshell.a \
    1819                $(LIB_PREFIX)/math/libORXmath.a
  • branches/shared_lib/src/lib/Makefile.am

    r7165 r7187  
    4848        shell \
    4949        gui \
     50        libltdl \
    5051        .
  • branches/shared_lib/src/orxonox.cc

    r7181 r7187  
    5454
    5555#include "load_param_description.h"
     56#include "dynamic_loader.h"
    5657
    5758#include "network_manager.h"
     
    290291}
    291292
    292 #include "dynamic_loader.h"
    293 #include <dlfcn.h>
    294 
    295293/**
    296294 * initializes and loads resource files
  • branches/shared_lib/src/util/Makefile.am

    r7174 r7187  
    33
    44noinst_LIBRARIES = libORXutils.a
     5
     6INCLUDES = $(LTDLINCL)
    57
    68
  • branches/shared_lib/src/util/loading/dynamic_loader.h

    r7175 r7187  
    88
    99#include "factory.h"
    10 #include <ltdl.h>
     10#include "lib/libltdl/ltdl.h"
    1111
    1212#include <string>
  • branches/shared_lib/src/util/loading/resource_manager.cc

    r7174 r7187  
    10491049  {
    10501050    char cwd[1024];
    1051     char* errno = getcwd(cwd, 1024);
    1052     if (errno == 0)
     1051    char* errorCode = getcwd(cwd, 1024);
     1052    if (errorCode == 0)
    10531053      return NULL;
    10541054
Note: See TracChangeset for help on using the changeset viewer.