Changeset 1f3696b for config.guess


Ignore:
Timestamp:
08/11/04 14:44:20 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
ffe76f8
Parents:
e619d90
Message:

Slight changes to code, basically #includes and #defines, and it should build cleanly on freebsd now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config.guess

    r7957e84 r1f3696b  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002 Free Software Foundation, Inc.
    5 
    6 timestamp='2002-03-20'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2004-01-24'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    8989fi
    9090
    91 
    92 dummy=dummy-$$
    93 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
    94 
    95 # CC_FOR_BUILD -- compiler used by this script.
     91trap '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
    9698# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9799# use `HOST_CC' if defined, but it is deprecated.
    98100
    99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
    100  ,,)    echo "int dummy(){}" > $dummy.c ;
     101# Portable tmp directory creation inspired by the Autoconf team.
     102
     103set_cc_for_build='
     104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
     105trap "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 ; } ;
     111dummy=$tmp/dummy ;
     112tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
     113case $CC_FOR_BUILD,$HOST_CC,$CC in
     114 ,,)    echo "int x;" > $dummy.c ;
    101115        for c in cc gcc c89 c99 ; do
    102           ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
    103           if test $? = 0 ; then
     116          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
    104117             CC_FOR_BUILD="$c"; break ;
    105118          fi ;
    106119        done ;
    107         rm -f $dummy.c $dummy.o $dummy.rel ;
    108120        if test x"$CC_FOR_BUILD" = x ; then
    109121          CC_FOR_BUILD=no_compiler_found ;
     
    112124 ,,*)   CC_FOR_BUILD=$CC ;;
    113125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    114 esac'
     126esac ;'
    115127
    116128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    143155            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
    144156        case "${UNAME_MACHINE_ARCH}" in
     157            armeb) machine=armeb-unknown ;;
    145158            arm*) machine=arm-unknown ;;
    146159            sh3el) machine=shl-unknown ;;
     
    168181        esac
    169182        # The OS release
    170         release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     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
    171195        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    172196        # contains redundant information, the shorter form:
     
    198222        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    199223        exit 0 ;;
     224    pegasos:OpenBSD:*:*)
     225        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     226        exit 0 ;;
    200227    pmax:OpenBSD:*:*)
    201228        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     
    217244                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    218245        fi
     246        # According to Compaq, /usr/sbin/psrinfo has been available on
     247        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     248        # covers most systems running today.  This code pipes the CPU
     249        # types through head -n 1, so we only detect the type of CPU 0.
     250        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     251        case "$ALPHA_CPU_TYPE" in
     252            "EV4 (21064)")
     253                UNAME_MACHINE="alpha" ;;
     254            "EV4.5 (21064)")
     255                UNAME_MACHINE="alpha" ;;
     256            "LCA4 (21066/21068)")
     257                UNAME_MACHINE="alpha" ;;
     258            "EV5 (21164)")
     259                UNAME_MACHINE="alphaev5" ;;
     260            "EV5.6 (21164A)")
     261                UNAME_MACHINE="alphaev56" ;;
     262            "EV5.6 (21164PC)")
     263                UNAME_MACHINE="alphapca56" ;;
     264            "EV5.7 (21164PC)")
     265                UNAME_MACHINE="alphapca57" ;;
     266            "EV6 (21264)")
     267                UNAME_MACHINE="alphaev6" ;;
     268            "EV6.7 (21264A)")
     269                UNAME_MACHINE="alphaev67" ;;
     270            "EV6.8CB (21264C)")
     271                UNAME_MACHINE="alphaev68" ;;
     272            "EV6.8AL (21264B)")
     273                UNAME_MACHINE="alphaev68" ;;
     274            "EV6.8CX (21264D)")
     275                UNAME_MACHINE="alphaev68" ;;
     276            "EV6.9A (21264/EV69A)")
     277                UNAME_MACHINE="alphaev69" ;;
     278            "EV7 (21364)")
     279                UNAME_MACHINE="alphaev7" ;;
     280            "EV7.9 (21364A)")
     281                UNAME_MACHINE="alphaev79" ;;
     282        esac
    219283        # A Vn.n version is a released version.
    220284        # A Tn.n version is a released field test version.
    221285        # A Xn.n version is an unreleased experimental baselevel.
    222286        # 1.2 uses "1.2" for uname -r.
    223         cat <<EOF >$dummy.s
    224         .data
    225 \$Lformat:
    226         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    227 
    228         .text
    229         .globl main
    230         .align 4
    231         .ent main
    232 main:
    233         .frame \$30,16,\$26,0
    234         ldgp \$29,0(\$27)
    235         .prologue 1
    236         .long 0x47e03d80 # implver \$0
    237         lda \$2,-1
    238         .long 0x47e20c21 # amask \$2,\$1
    239         lda \$16,\$Lformat
    240         mov \$0,\$17
    241         not \$1,\$18
    242         jsr \$26,printf
    243         ldgp \$29,0(\$26)
    244         mov 0,\$16
    245         jsr \$26,exit
    246         .end main
    247 EOF
    248         eval $set_cc_for_build
    249         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    250         if test "$?" = 0 ; then
    251                 case `./$dummy` in
    252                         0-0)
    253                                 UNAME_MACHINE="alpha"
    254                                 ;;
    255                         1-0)
    256                                 UNAME_MACHINE="alphaev5"
    257                                 ;;
    258                         1-1)
    259                                 UNAME_MACHINE="alphaev56"
    260                                 ;;
    261                         1-101)
    262                                 UNAME_MACHINE="alphapca56"
    263                                 ;;
    264                         2-303)
    265                                 UNAME_MACHINE="alphaev6"
    266                                 ;;
    267                         2-307)
    268                                 UNAME_MACHINE="alphaev67"
    269                                 ;;
    270                         2-1307)
    271                                 UNAME_MACHINE="alphaev68"
    272                                 ;;
    273                 esac
    274         fi
    275         rm -f $dummy.s $dummy
    276287        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     288        exit 0 ;;
     289    Alpha*:OpenVMS:*:*)
     290        echo alpha-hp-vms
    277291        exit 0 ;;
    278292    Alpha\ *:Windows_NT*:*)
     
    296310    *:OS/390:*:*)
    297311        echo i370-ibm-openedition
     312        exit 0 ;;
     313    *:OS400:*:*)
     314        echo powerpc-ibm-os400
    298315        exit 0 ;;
    299316    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    314331        echo pyramid-pyramid-svr4
    315332        exit 0 ;;
     333    DRS?6000:unix:4.0:6*)
     334        echo sparc-icl-nx6
     335        exit 0 ;;
     336    DRS?6000:UNIX_SV:4.2*:7*)
     337        case `/usr/bin/uname -p` in
     338            sparc) echo sparc-icl-nx7 && exit 0 ;;
     339        esac ;;
    316340    sun4H:SunOS:5.*:*)
    317341        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     
    382406        echo m68k-unknown-mint${UNAME_RELEASE}
    383407        exit 0 ;;
     408    m68k:machten:*:*)
     409        echo m68k-apple-machten${UNAME_RELEASE}
     410        exit 0 ;;
    384411    powerpc:machten:*:*)
    385412        echo powerpc-apple-machten${UNAME_RELEASE}
     
    420447        }
    421448EOF
    422         $CC_FOR_BUILD $dummy.c -o $dummy \
    423           && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    424           && rm -f $dummy.c $dummy && exit 0
    425         rm -f $dummy.c $dummy
     449        $CC_FOR_BUILD -o $dummy $dummy.c \
     450          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     451          && exit 0
    426452        echo mips-mips-riscos${UNAME_RELEASE}
    427453        exit 0 ;;
    428454    Motorola:PowerMAX_OS:*:*)
    429455        echo powerpc-motorola-powermax
     456        exit 0 ;;
     457    Motorola:*:4.3:PL8-*)
     458        echo powerpc-harris-powermax
     459        exit 0 ;;
     460    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
     461        echo powerpc-harris-powermax
    430462        exit 0 ;;
    431463    Night_Hawk:Power_UNIX:*:*)
     
    501533                        }
    502534EOF
    503                 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    504                 rm -f $dummy.c $dummy
     535                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    505536                echo rs6000-ibm-aix3.2.5
    506537        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     
    600631              }
    601632EOF
    602                     (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
    603                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    604                     rm -f $dummy.c $dummy
     633                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     634                    test -z "$HP_ARCH" && HP_ARCH=hppa
    605635                fi ;;
    606636        esac
     637        if [ ${HP_ARCH} = "hppa2.0w" ]
     638        then
     639            # avoid double evaluation of $set_cc_for_build
     640            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     641            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     642            then
     643                HP_ARCH="hppa2.0w"
     644            else
     645                HP_ARCH="hppa64"
     646            fi
     647        fi
    607648        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    608649        exit 0 ;;
     
    638679        }
    639680EOF
    640         $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    641         rm -f $dummy.c $dummy
     681        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    642682        echo unknown-hitachi-hiuxwe2
    643683        exit 0 ;;
     
    697737        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    698738        exit 0 ;;
    699     CRAY*T3D:*:*:*)
    700         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    701         exit 0 ;;
    702739    CRAY*T3E:*:*:*)
    703740        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    705742    CRAY*SV1:*:*:*)
    706743        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     744        exit 0 ;;
     745    *:UNICOS/mp:*:*)
     746        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    707747        exit 0 ;;
    708748    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     
    712752        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    713753        exit 0 ;;
     754    5000:UNIX_System_V:4.*:*)
     755        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     756        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     757        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     758        exit 0 ;;
    714759    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    715760        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    722767        exit 0 ;;
    723768    *:FreeBSD:*:*)
    724         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     769        # Determine whether the default compiler uses glibc.
     770        eval $set_cc_for_build
     771        sed 's/^        //' << EOF >$dummy.c
     772        #include <features.h>
     773        #if __GLIBC__ >= 2
     774        LIBC=gnu
     775        #else
     776        LIBC=
     777        #endif
     778EOF
     779        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     780        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
     781        # FreeBSD's kernel, but not the complete OS.
     782        case ${LIBC} in gnu) kernel_only='k' ;; esac
     783        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    725784        exit 0 ;;
    726785    i*:CYGWIN*:*)
     
    733792        echo ${UNAME_MACHINE}-pc-pw32
    734793        exit 0 ;;
    735     x86:Interix*:3*)
    736         echo i386-pc-interix3
     794    x86:Interix*:[34]*)
     795        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     796        exit 0 ;;
     797    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     798        echo i${UNAME_MACHINE}-pc-mks
    737799        exit 0 ;;
    738800    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     
    740802        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    741803        # UNAME_MACHINE based on the output of uname instead of i386?
    742         echo i386-pc-interix
     804        echo i586-pc-interix
    743805        exit 0 ;;
    744806    i*:UWIN*:*)
     
    752814        exit 0 ;;
    753815    *:GNU:*:*)
     816        # the GNU system
    754817        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     818        exit 0 ;;
     819    *:GNU/*:*:*)
     820        # other systems with GNU libc and userland
     821        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    755822        exit 0 ;;
    756823    i*86:Minix:*:*)
     
    759826    arm*:Linux:*:*)
    760827        echo ${UNAME_MACHINE}-unknown-linux-gnu
     828        exit 0 ;;
     829    cris:Linux:*:*)
     830        echo cris-axis-linux-gnu
    761831        exit 0 ;;
    762832    ia64:Linux:*:*)
     
    783853EOF
    784854        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    785         rm -f $dummy.c
    786         test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
     855        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     856        ;;
     857    mips64:Linux:*:*)
     858        eval $set_cc_for_build
     859        sed 's/^        //' << EOF >$dummy.c
     860        #undef CPU
     861        #undef mips64
     862        #undef mips64el
     863        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     864        CPU=mips64el
     865        #else
     866        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     867        CPU=mips64
     868        #else
     869        CPU=
     870        #endif
     871        #endif
     872EOF
     873        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     874        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    787875        ;;
    788876    ppc:Linux:*:*)
     
    819907    s390:Linux:*:* | s390x:Linux:*:*)
    820908        echo ${UNAME_MACHINE}-ibm-linux
     909        exit 0 ;;
     910    sh64*:Linux:*:*)
     911        echo ${UNAME_MACHINE}-unknown-linux-gnu
    821912        exit 0 ;;
    822913    sh*:Linux:*:*)
     
    846937          a.out-i386-linux)
    847938                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    848                 exit 0 ;;               
     939                exit 0 ;;
    849940          coff-i386)
    850941                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     
    877968        #endif
    878969        #endif
     970        #ifdef __dietlibc__
     971        LIBC=dietlibc
     972        #endif
    879973EOF
    880974        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    881         rm -f $dummy.c
    882975        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    883976        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     
    897990        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    898991        exit 0 ;;
     992    i*86:OS/2:*:*)
     993        # If we were able to find `uname', then EMX Unix compatibility
     994        # is probably installed.
     995        echo ${UNAME_MACHINE}-pc-os2-emx
     996        exit 0 ;;
     997    i*86:XTS-300:*:STOP)
     998        echo ${UNAME_MACHINE}-unknown-stop
     999        exit 0 ;;
     1000    i*86:atheos:*:*)
     1001        echo ${UNAME_MACHINE}-unknown-atheos
     1002        exit 0 ;;
     1003        i*86:syllable:*:*)
     1004        echo ${UNAME_MACHINE}-pc-syllable
     1005        exit 0 ;;
     1006    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1007        echo i386-unknown-lynxos${UNAME_RELEASE}
     1008        exit 0 ;;
     1009    i*86:*DOS:*:*)
     1010        echo ${UNAME_MACHINE}-pc-msdosdjgpp
     1011        exit 0 ;;
    8991012    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    9001013        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    9181031                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    9191032        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    920                 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
    921                 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
    922                 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
     1033                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     1034                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
     1035                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
    9231036                        && UNAME_MACHINE=i586
    924                 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
     1037                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
    9251038                        && UNAME_MACHINE=i686
    926                 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
     1039                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    9271040                        && UNAME_MACHINE=i686
    9281041                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     
    9301043                echo ${UNAME_MACHINE}-pc-sysv32
    9311044        fi
    932         exit 0 ;;
    933     i*86:*DOS:*:*)
    934         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    9351045        exit 0 ;;
    9361046    pc:*:*:*)
     
    9571067        echo m68010-convergent-sysv
    9581068        exit 0 ;;
     1069    mc68k:UNIX:SYSTEM5:3.51m)
     1070        echo m68k-convergent-sysv
     1071        exit 0 ;;
     1072    M680?0:D-NIX:5.3:*)
     1073        echo m68k-diab-dnix
     1074        exit 0 ;;
    9591075    M68*:*:R3V[567]*:*)
    9601076        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    961     3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
     1077    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)
    9621078        OS_REL=''
    9631079        test -r /etc/.relid \
     
    9761092        echo m68k-atari-sysv4
    9771093        exit 0 ;;
    978     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    979         echo i386-unknown-lynxos${UNAME_RELEASE}
    980         exit 0 ;;
    9811094    TSUNAMI:LynxOS:2.*:*)
    9821095        echo sparc-unknown-lynxos${UNAME_RELEASE}
     
    10501163        echo sx5-nec-superux${UNAME_RELEASE}
    10511164        exit 0 ;;
     1165    SX-6:SUPER-UX:*:*)
     1166        echo sx6-nec-superux${UNAME_RELEASE}
     1167        exit 0 ;;
    10521168    Power*:Rhapsody:*:*)
    10531169        echo powerpc-apple-rhapsody${UNAME_RELEASE}
     
    10571173        exit 0 ;;
    10581174    *:Darwin:*:*)
    1059         echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1175        case `uname -p` in
     1176            *86) UNAME_PROCESSOR=i686 ;;
     1177            powerpc) UNAME_PROCESSOR=powerpc ;;
     1178        esac
     1179        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    10601180        exit 0 ;;
    10611181    *:procnto*:*:* | *:QNX:[0123456789]*:*)
     
    10701190        echo i386-pc-qnx
    10711191        exit 0 ;;
    1072     NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
     1192    NSR-?:NONSTOP_KERNEL:*:*)
    10731193        echo nsr-tandem-nsk${UNAME_RELEASE}
    10741194        exit 0 ;;
     
    10931213        echo ${UNAME_MACHINE}-unknown-plan9
    10941214        exit 0 ;;
    1095     i*86:OS/2:*:*)
    1096         # If we were able to find `uname', then EMX Unix compatibility
    1097         # is probably installed.
    1098         echo ${UNAME_MACHINE}-pc-os2-emx
    1099         exit 0 ;;
    11001215    *:TOPS-10:*:*)
    11011216        echo pdp10-unknown-tops10
     
    11161231        echo pdp10-unknown-its
    11171232        exit 0 ;;
    1118     i*86:XTS-300:*:STOP)
    1119         echo ${UNAME_MACHINE}-unknown-stop
    1120         exit 0 ;;
    1121     i*86:atheos:*:*)
    1122         echo ${UNAME_MACHINE}-unknown-atheos
     1233    SEI:*:*:SEIUX)
     1234        echo mips-sei-seiux${UNAME_RELEASE}
     1235        exit 0 ;;
     1236    *:DragonFly:*:*)
     1237        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    11231238        exit 0 ;;
    11241239esac
     
    12421357EOF
    12431358
    1244 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
    1245 rm -f $dummy.c $dummy
     1359$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12461360
    12471361# Apollos put the system type in the environment.
Note: See TracChangeset for help on using the changeset viewer.