Ignore:
Timestamp:
Jan 30, 2019 9:45:11 AM (9 months ago)
Author:
mbanovic
Message:

Regenerate all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoconf/config.guess

    r451 r765  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright 1992-2013 Free Software Foundation, Inc.
    4 
    5 timestamp='2013-06-10'
     3#   Copyright 1992-2015 Free Software Foundation, Inc.
     4
     5timestamp='2015-08-20'
    66
    77# This file is free software; you can redistribute it and/or modify it
     
    2525# of the GNU General Public License, version 3 ("GPLv3").
    2626#
    27 # Originally written by Per Bothner.
     27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
    2828#
    2929# You can get the latest version of this script from:
    3030# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
    3131#
    32 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
     32# Please send patches to <config-patches@gnu.org>.
    3333
    3434
     
    5151
    5252Originally written by Per Bothner.
    53 Copyright 1992-2013 Free Software Foundation, Inc.
     53Copyright 1992-2015 Free Software Foundation, Inc.
    5454
    5555This is free software; see the source for copying conditions.  There is NO
     
    150150        #endif
    151151        EOF
    152         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
     152        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
    153153        ;;
    154154esac
    155 
    156 case "${UNAME_MACHINE}" in
    157   i?86)
    158      test -z "$VENDOR" && VENDOR=pc
    159      ;;
    160   *)
    161      test -z "$VENDOR" && VENDOR=unknown
    162      ;;
    163 esac
    164 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    165155
    166156# Note: order is significant - the case branches are not exclusive.
     
    179169        # portion of the name.  We always set it to "unknown".
    180170        sysctl="sysctl -n hw.machine_arch"
    181         UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
    182             /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
     171        UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
     172            /sbin/$sysctl 2>/dev/null || \
     173            /usr/sbin/$sysctl 2>/dev/null || \
     174            echo unknown)`
    183175        case "${UNAME_MACHINE_ARCH}" in
    184176            armeb) machine=armeb-unknown ;;
     
    187179            sh3eb) machine=sh-unknown ;;
    188180            sh5el) machine=sh5le-unknown ;;
     181            earmv*)
     182                arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
     183                endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
     184                machine=${arch}${endian}-unknown
     185                ;;
    189186            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    190187        esac
     
    192189        # to ELF recently, or will in the future.
    193190        case "${UNAME_MACHINE_ARCH}" in
    194             arm*|i386|m68k|ns32k|sh3*|sparc|vax)
     191            arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
    195192                eval $set_cc_for_build
    196193                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
     
    208205                ;;
    209206        esac
     207        # Determine ABI tags.
     208        case "${UNAME_MACHINE_ARCH}" in
     209            earm*)
     210                expr='s/^earmv[0-9]/-eabi/;s/eb$//'
     211                abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
     212                ;;
     213        esac
    210214        # The OS release
    211215        # Debian GNU/NetBSD machines have a different userland, and
     
    218222                ;;
    219223            *)
    220                 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     224                release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
    221225                ;;
    222226        esac
     
    224228        # contains redundant information, the shorter form:
    225229        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    226         echo "${machine}-${os}${release}"
     230        echo "${machine}-${os}${release}${abi}"
    227231        exit ;;
    228232    *:Bitrig:*:*)
    229233        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
    230         echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE}
     234        echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
    231235        exit ;;
    232236    *:OpenBSD:*:*)
    233237        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    234         echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
     238        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
    235239        exit ;;
    236240    *:ekkoBSD:*:*)
    237         echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
     241        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    238242        exit ;;
    239243    *:SolidBSD:*:*)
    240         echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
     244        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
    241245        exit ;;
    242246    macppc:MirBSD:*:*)
    243         echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
     247        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
    244248        exit ;;
    245249    *:MirBSD:*:*)
    246         echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
     250        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     251        exit ;;
     252    *:Sortix:*:*)
     253        echo ${UNAME_MACHINE}-unknown-sortix
    247254        exit ;;
    248255    alpha:OSF1:*:*)
     
    312319        exit ;;
    313320    Amiga*:UNIX_System_V:4.0:*)
    314         echo m68k-${VENDOR}-sysv4
     321        echo m68k-unknown-sysv4
    315322        exit ;;
    316323    *:[Aa]miga[Oo][Ss]:*:*)
    317         echo ${UNAME_MACHINE}-${VENDOR}-amigaos
     324        echo ${UNAME_MACHINE}-unknown-amigaos
    318325        exit ;;
    319326    *:[Mm]orph[Oo][Ss]:*:*)
    320         echo ${UNAME_MACHINE}-${VENDOR}-morphos
     327        echo ${UNAME_MACHINE}-unknown-morphos
    321328        exit ;;
    322329    *:OS/390:*:*)
     
    333340        exit ;;
    334341    arm*:riscos:*:*|arm*:RISCOS:*:*)
    335         echo arm-${VENDOR}-riscos
     342        echo arm-unknown-riscos
    336343        exit ;;
    337344    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
     
    441448        exit ;;
    442449    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    443         echo m68k-${VENDOR}-mint${UNAME_RELEASE}
     450        echo m68k-unknown-mint${UNAME_RELEASE}
    444451        exit ;;
    445452    m68k:machten:*:*)
     
    590597                IBM_ARCH=powerpc
    591598        fi
    592         if [ -x /usr/bin/oslevel ] ; then
    593                 IBM_REV=`/usr/bin/oslevel`
     599        if [ -x /usr/bin/lslpp ] ; then
     600                IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
     601                           awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
    594602        else
    595603                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
     
    752760    i*86:OSF1:*:*)
    753761        if [ -x /usr/sbin/sysversion ] ; then
    754             echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
     762            echo ${UNAME_MACHINE}-unknown-osf1mk
    755763        else
    756             echo ${UNAME_MACHINE}-${VENDOR}-osf1
     764            echo ${UNAME_MACHINE}-unknown-osf1
    757765        fi
    758766        exit ;;
     
    814822        exit ;;
    815823    sparc*:BSD/OS:*:*)
    816         echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
     824        echo sparc-unknown-bsdi${UNAME_RELEASE}
    817825        exit ;;
    818826    *:BSD/OS:*:*)
    819         echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
     827        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    820828        exit ;;
    821829    *:FreeBSD:*:*)
     
    823831        case ${UNAME_PROCESSOR} in
    824832            amd64)
    825                 echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     833                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    826834            *)
    827                 echo ${UNAME_PROCESSOR}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     835                echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    828836        esac
    829837        exit ;;
     
    837845        echo ${UNAME_MACHINE}-pc-mingw32
    838846        exit ;;
    839     i*:MSYS*:*)
     847    *:MSYS*:*)
    840848        echo ${UNAME_MACHINE}-pc-msys
    841849        exit ;;
     
    853861                exit ;;
    854862            authenticamd | genuineintel | EM64T)
    855                 echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
     863                echo x86_64-unknown-interix${UNAME_RELEASE}
    856864                exit ;;
    857865            IA64)
    858                 echo ia64-${VENDOR}-interix${UNAME_RELEASE}
     866                echo ia64-unknown-interix${UNAME_RELEASE}
    859867                exit ;;
    860868        esac ;;
     
    875883        exit ;;
    876884    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    877         echo x86_64-${VENDOR}-cygwin
     885        echo x86_64-unknown-cygwin
    878886        exit ;;
    879887    p*:CYGWIN*:*)
    880         echo powerpcle-${VENDOR}-cygwin
     888        echo powerpcle-unknown-cygwin
    881889        exit ;;
    882890    prep*:SunOS:5.*:*)
    883         echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     891        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    884892        exit ;;
    885893    *:GNU:*:*)
    886894        # the GNU system
    887         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     895        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    888896        exit ;;
    889897    *:GNU/*:*:*)
    890898        # other systems with GNU libc and userland
    891         echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
     899        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
    892900        exit ;;
    893901    i*86:Minix:*:*)
     
    895903        exit ;;
    896904    aarch64:Linux:*:*)
    897         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     905        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    898906        exit ;;
    899907    aarch64_be:Linux:*:*)
    900908        UNAME_MACHINE=aarch64_be
    901         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     909        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    902910        exit ;;
    903911    alpha:Linux:*:*)
     
    913921        objdump --private-headers /bin/sh | grep -q ld.so.1
    914922        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
    915         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     923        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    916924        exit ;;
    917925    arc:Linux:*:* | arceb:Linux:*:*)
    918         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     926        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    919927        exit ;;
    920928    arm*:Linux:*:*)
     
    923931            | grep -q __ARM_EABI__
    924932        then
    925             echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     933            echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    926934        else
    927935            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
    928936                | grep -q __ARM_PCS_VFP
    929937            then
    930                 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi
     938                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
    931939            else
    932                 echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf
     940                echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
    933941            fi
    934942        fi
    935943        exit ;;
    936944    avr32*:Linux:*:*)
    937         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     945        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    938946        exit ;;
    939947    cris:Linux:*:*)
     
    943951        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
    944952        exit ;;
     953    e2k:Linux:*:*)
     954        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     955        exit ;;
    945956    frv:Linux:*:*)
    946         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     957        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    947958        exit ;;
    948959    hexagon:Linux:*:*)
    949         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     960        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    950961        exit ;;
    951962    i*86:Linux:*:*)
     
    953964        exit ;;
    954965    ia64:Linux:*:*)
    955         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     966        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    956967        exit ;;
    957968    m32r*:Linux:*:*)
    958         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     969        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    959970        exit ;;
    960971    m68*:Linux:*:*)
    961         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     972        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    962973        exit ;;
    963974    mips:Linux:*:* | mips64:Linux:*:*)
     
    978989EOF
    979990        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
    980         test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; }
     991        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
    981992        ;;
    982     or1k:Linux:*:*)
    983         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
    984         exit ;;
    985     or32:Linux:*:*)
    986         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     993    openrisc*:Linux:*:*)
     994        echo or1k-unknown-linux-${LIBC}
     995        exit ;;
     996    or32:Linux:*:* | or1k*:Linux:*:*)
     997        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    987998        exit ;;
    988999    padre:Linux:*:*)
    989         echo sparc-${VENDOR}-linux-${LIBC}
     1000        echo sparc-unknown-linux-${LIBC}
    9901001        exit ;;
    9911002    parisc64:Linux:*:* | hppa64:Linux:*:*)
    992         echo hppa64-${VENDOR}-linux-${LIBC}
     1003        echo hppa64-unknown-linux-${LIBC}
    9931004        exit ;;
    9941005    parisc:Linux:*:* | hppa:Linux:*:*)
    9951006        # Look for CPU level
    9961007        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    997           PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;;
    998           PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;;
    999           *)    echo hppa-${VENDOR}-linux-${LIBC} ;;
     1008          PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
     1009          PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
     1010          *)    echo hppa-unknown-linux-${LIBC} ;;
    10001011        esac
    10011012        exit ;;
    10021013    ppc64:Linux:*:*)
    1003         echo powerpc64-${VENDOR}-linux-${LIBC}
     1014        echo powerpc64-unknown-linux-${LIBC}
    10041015        exit ;;
    10051016    ppc:Linux:*:*)
    1006         echo powerpc-${VENDOR}-linux-${LIBC}
     1017        echo powerpc-unknown-linux-${LIBC}
    10071018        exit ;;
    10081019    ppc64le:Linux:*:*)
    1009         echo powerpc64le-${VENDOR}-linux-${LIBC}
     1020        echo powerpc64le-unknown-linux-${LIBC}
    10101021        exit ;;
    10111022    ppcle:Linux:*:*)
    1012         echo powerpcle-${VENDOR}-linux-${LIBC}
     1023        echo powerpcle-unknown-linux-${LIBC}
    10131024        exit ;;
    10141025    s390:Linux:*:* | s390x:Linux:*:*)
     
    10161027        exit ;;
    10171028    sh64*:Linux:*:*)
    1018         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1029        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    10191030        exit ;;
    10201031    sh*:Linux:*:*)
    1021         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1032        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    10221033        exit ;;
    10231034    sparc:Linux:*:* | sparc64:Linux:*:*)
    1024         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1035        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    10251036        exit ;;
    10261037    tile*:Linux:*:*)
    1027         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1038        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    10281039        exit ;;
    10291040    vax:Linux:*:*)
     
    10311042        exit ;;
    10321043    x86_64:Linux:*:*)
    1033         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1044        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
    10341045        exit ;;
    10351046    xtensa*:Linux:*:*)
    1036         echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}
     1047        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    10371048        exit ;;
    10381049    i*86:DYNIX/ptx:4*:*)
     
    10561067        exit ;;
    10571068    i*86:XTS-300:*:STOP)
    1058         echo ${UNAME_MACHINE}-${VENDOR}-stop
     1069        echo ${UNAME_MACHINE}-unknown-stop
    10591070        exit ;;
    10601071    i*86:atheos:*:*)
    1061         echo ${UNAME_MACHINE}-${VENDOR}-atheos
     1072        echo ${UNAME_MACHINE}-unknown-atheos
    10621073        exit ;;
    10631074    i*86:syllable:*:*)
     
    10651076        exit ;;
    10661077    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
    1067         echo i386-${VENODR}-lynxos${UNAME_RELEASE}
     1078        echo i386-unknown-lynxos${UNAME_RELEASE}
    10681079        exit ;;
    10691080    i*86:*DOS:*:*)
     
    10851096            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    10861097        esac
    1087         echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     1098        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    10881099        exit ;;
    10891100    i*86:*:3.2:*)
     
    11241135          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
    11251136        else # Add other i860-SVR4 vendors below as they are discovered.
    1126           echo i860-${VENODR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
     1137          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    11271138        fi
    11281139        exit ;;
     
    11611172            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    11621173    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    1163         echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
     1174        echo m68k-unknown-lynxos${UNAME_RELEASE}
    11641175        exit ;;
    11651176    mc68030:UNIX_System_V:4.*:*)
     
    11671178        exit ;;
    11681179    TSUNAMI:LynxOS:2.*:*)
    1169         echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
     1180        echo sparc-unknown-lynxos${UNAME_RELEASE}
    11701181        exit ;;
    11711182    rs6000:LynxOS:2.*:*)
    1172         echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
     1183        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    11731184        exit ;;
    11741185    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
    1175         echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
     1186        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    11761187        exit ;;
    11771188    SM[BE]S:UNIX_SV:*:*)
     
    12231234                echo mips-nec-sysv${UNAME_RELEASE}
    12241235        else
    1225                 echo mips-${VENDOR}-sysv${UNAME_RELEASE}
     1236                echo mips-unknown-sysv${UNAME_RELEASE}
    12261237        fi
    12271238        exit ;;
     
    12391250        exit ;;
    12401251    x86_64:Haiku:*:*)
    1241         echo x86_64-${VENDOR}-haiku
     1252        echo x86_64-unknown-haiku
    12421253        exit ;;
    12431254    SX-4:SUPER-UX:*:*)
     
    12711282            UNAME_PROCESSOR=powerpc
    12721283        fi
    1273         if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
    1274             if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
    1275                 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
    1276                 grep IS_64BIT_ARCH >/dev/null
    1277             then
    1278                 case $UNAME_PROCESSOR in
    1279                     i386) UNAME_PROCESSOR=x86_64 ;;
    1280                     powerpc) UNAME_PROCESSOR=powerpc64 ;;
    1281                 esac
     1284        if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
     1285            if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     1286                if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
     1287                    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     1288                    grep IS_64BIT_ARCH >/dev/null
     1289                then
     1290                    case $UNAME_PROCESSOR in
     1291                        i386) UNAME_PROCESSOR=x86_64 ;;
     1292                        powerpc) UNAME_PROCESSOR=powerpc64 ;;
     1293                    esac
     1294                fi
    12821295            fi
     1296        elif test "$UNAME_PROCESSOR" = i386 ; then
     1297            # Avoid executing cc on OS X 10.9, as it ships with a stub
     1298            # that puts up a graphical alert prompting to install
     1299            # developer tools.  Any system running Mac OS X 10.7 or
     1300            # later (Darwin 11 and later) is required to have a 64-bit
     1301            # processor. This is not true of the ARM version of Darwin
     1302            # that Apple uses in portable devices.
     1303            UNAME_PROCESSOR=x86_64
    12831304        fi
    12841305        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     
    13221343            UNAME_MACHINE="$cputype"
    13231344        fi
    1324         echo ${UNAME_MACHINE}-${VENDOR}-plan9
     1345        echo ${UNAME_MACHINE}-unknown-plan9
    13251346        exit ;;
    13261347    *:TOPS-10:*:*)
    1327         echo pdp10-${VENDOR}-tops10
     1348        echo pdp10-unknown-tops10
    13281349        exit ;;
    13291350    *:TENEX:*:*)
    1330         echo pdp10-${VENDOR}-tenex
     1351        echo pdp10-unknown-tenex
    13311352        exit ;;
    13321353    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
     
    13371358        exit ;;
    13381359    *:TOPS-20:*:*)
    1339         echo pdp10-${VENDOR}-tops20
     1360        echo pdp10-unknown-tops20
    13401361        exit ;;
    13411362    *:ITS:*:*)
    1342         echo pdp10-${VENDOR}-its
     1363        echo pdp10-unknown-its
    13431364        exit ;;
    13441365    SEI:*:*:SEIUX)
     
    13461367        exit ;;
    13471368    *:DragonFly:*:*)
    1348         echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1369        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    13491370        exit ;;
    13501371    *:*VMS:*:*)
     
    13681389        exit ;;
    13691390    x86_64:VMkernel:*:*)
    1370         echo ${UNAME_MACHINE}-${VENDOR}-esx
     1391        echo ${UNAME_MACHINE}-unknown-esx
    13711392        exit ;;
    13721393esac
    1373 
    1374 eval $set_cc_for_build
    1375 cat >$dummy.c <<EOF
    1376 #ifdef _SEQUENT_
    1377 # include <sys/types.h>
    1378 # include <sys/utsname.h>
    1379 #endif
    1380 main ()
    1381 {
    1382 #if defined (sony)
    1383 #if defined (MIPSEB)
    1384   /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
    1385      I don't know....  */
    1386   printf ("mips-sony-bsd\n"); exit (0);
    1387 #else
    1388 #include <sys/param.h>
    1389   printf ("m68k-sony-newsos%s\n",
    1390 #ifdef NEWSOS4
    1391         "4"
    1392 #else
    1393         ""
    1394 #endif
    1395         ); exit (0);
    1396 #endif
    1397 #endif
    1398 
    1399 #if defined (__arm) && defined (__acorn) && defined (__unix)
    1400   printf ("arm-acorn-riscix\n"); exit (0);
    1401 #endif
    1402 
    1403 #if defined (hp300) && !defined (hpux)
    1404   printf ("m68k-hp-bsd\n"); exit (0);
    1405 #endif
    1406 
    1407 #if defined (NeXT)
    1408 #if !defined (__ARCHITECTURE__)
    1409 #define __ARCHITECTURE__ "m68k"
    1410 #endif
    1411   int version;
    1412   version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
    1413   if (version < 4)
    1414     printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
    1415   else
    1416     printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
    1417   exit (0);
    1418 #endif
    1419 
    1420 #if defined (MULTIMAX) || defined (n16)
    1421 #if defined (UMAXV)
    1422   printf ("ns32k-encore-sysv\n"); exit (0);
    1423 #else
    1424 #if defined (CMU)
    1425   printf ("ns32k-encore-mach\n"); exit (0);
    1426 #else
    1427   printf ("ns32k-encore-bsd\n"); exit (0);
    1428 #endif
    1429 #endif
    1430 #endif
    1431 
    1432 #if defined (__386BSD__)
    1433   printf ("i386-pc-bsd\n"); exit (0);
    1434 #endif
    1435 
    1436 #if defined (sequent)
    1437 #if defined (i386)
    1438   printf ("i386-sequent-dynix\n"); exit (0);
    1439 #endif
    1440 #if defined (ns32000)
    1441   printf ("ns32k-sequent-dynix\n"); exit (0);
    1442 #endif
    1443 #endif
    1444 
    1445 #if defined (_SEQUENT_)
    1446     struct utsname un;
    1447 
    1448     uname(&un);
    1449 
    1450     if (strncmp(un.version, "V2", 2) == 0) {
    1451         printf ("i386-sequent-ptx2\n"); exit (0);
    1452     }
    1453     if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    1454         printf ("i386-sequent-ptx1\n"); exit (0);
    1455     }
    1456     printf ("i386-sequent-ptx\n"); exit (0);
    1457 
    1458 #endif
    1459 
    1460 #if defined (vax)
    1461 # if !defined (ultrix)
    1462 #  include <sys/param.h>
    1463 #  if defined (BSD)
    1464 #   if BSD == 43
    1465       printf ("vax-dec-bsd4.3\n"); exit (0);
    1466 #   else
    1467 #    if BSD == 199006
    1468       printf ("vax-dec-bsd4.3reno\n"); exit (0);
    1469 #    else
    1470       printf ("vax-dec-bsd\n"); exit (0);
    1471 #    endif
    1472 #   endif
    1473 #  else
    1474     printf ("vax-dec-bsd\n"); exit (0);
    1475 #  endif
    1476 # else
    1477     printf ("vax-dec-ultrix\n"); exit (0);
    1478 # endif
    1479 #endif
    1480 
    1481 #if defined (alliant) && defined (i860)
    1482   printf ("i860-alliant-bsd\n"); exit (0);
    1483 #endif
    1484 
    1485   exit (1);
    1486 }
    1487 EOF
    1488 
    1489 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
    1490         { echo "$SYSTEM_NAME"; exit; }
    1491 
    1492 # Apollos put the system type in the environment.
    1493 
    1494 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    1495 
    1496 # Convex versions that predate uname can use getsysinfo(1)
    1497 
    1498 if [ -x /usr/convex/getsysinfo ]
    1499 then
    1500     case `getsysinfo -f cpu_type` in
    1501     c1*)
    1502         echo c1-convex-bsd
    1503         exit ;;
    1504     c2*)
    1505         if getsysinfo -f scalar_acc
    1506         then echo c32-convex-bsd
    1507         else echo c2-convex-bsd
    1508         fi
    1509         exit ;;
    1510     c34*)
    1511         echo c34-convex-bsd
    1512         exit ;;
    1513     c38*)
    1514         echo c38-convex-bsd
    1515         exit ;;
    1516     c4*)
    1517         echo c4-convex-bsd
    1518         exit ;;
    1519     esac
    1520 fi
    15211394
    15221395cat >&2 <<EOF
Note: See TracChangeset for help on using the changeset viewer.