Changeset 370


Ignore:
Timestamp:
Feb 8, 2016, 11:21:01 AM (4 years ago)
Author:
jrpelegrina
Message:

wip

Location:
recordmydesktop/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • recordmydesktop/trunk/fuentes/config.guess

    r368 r370  
    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
     
    169169        # portion of the name.  We always set it to "unknown".
    170170        sysctl="sysctl -n hw.machine_arch"
    171         UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
    172             /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)`
    173175        case "${UNAME_MACHINE_ARCH}" in
    174176            armeb) machine=armeb-unknown ;;
     
    177179            sh3eb) machine=sh-unknown ;;
    178180            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                ;;
    179186            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    180187        esac
     
    182189        # to ELF recently, or will in the future.
    183190        case "${UNAME_MACHINE_ARCH}" in
    184             arm*|i386|m68k|ns32k|sh3*|sparc|vax)
     191            arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
    185192                eval $set_cc_for_build
    186193                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
     
    198205                ;;
    199206        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
    200214        # The OS release
    201215        # Debian GNU/NetBSD machines have a different userland, and
     
    208222                ;;
    209223            *)
    210                 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     224                release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
    211225                ;;
    212226        esac
     
    214228        # contains redundant information, the shorter form:
    215229        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    216         echo "${machine}-${os}${release}"
     230        echo "${machine}-${os}${release}${abi}"
    217231        exit ;;
    218232    *:Bitrig:*:*)
     
    235249    *:MirBSD:*:*)
    236250        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     251        exit ;;
     252    *:Sortix:*:*)
     253        echo ${UNAME_MACHINE}-unknown-sortix
    237254        exit ;;
    238255    alpha:OSF1:*:*)
     
    580597                IBM_ARCH=powerpc
    581598        fi
    582         if [ -x /usr/bin/oslevel ] ; then
    583                 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/`
    584602        else
    585603                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
     
    827845        echo ${UNAME_MACHINE}-pc-mingw32
    828846        exit ;;
    829     i*:MSYS*:*)
     847    *:MSYS*:*)
    830848        echo ${UNAME_MACHINE}-pc-msys
    831849        exit ;;
     
    932950    crisv32:Linux:*:*)
    933951        echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     952        exit ;;
     953    e2k:Linux:*:*)
     954        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    934955        exit ;;
    935956    frv:Linux:*:*)
     
    970991        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
    971992        ;;
    972     or1k:Linux:*:*)
    973         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    974         exit ;;
    975     or32:Linux:*:*)
     993    openrisc*:Linux:*:*)
     994        echo or1k-unknown-linux-${LIBC}
     995        exit ;;
     996    or32:Linux:*:* | or1k*:Linux:*:*)
    976997        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    977998        exit ;;
     
    10211042        exit ;;
    10221043    x86_64:Linux:*:*)
    1023         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1044        echo ${UNAME_MACHINE}-pc-linux-${LIBC}
    10241045        exit ;;
    10251046    xtensa*:Linux:*:*)
     
    12611282            UNAME_PROCESSOR=powerpc
    12621283        fi
    1263         if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
    1264             if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
    1265                 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
    1266                 grep IS_64BIT_ARCH >/dev/null
    1267             then
    1268                 case $UNAME_PROCESSOR in
    1269                     i386) UNAME_PROCESSOR=x86_64 ;;
    1270                     powerpc) UNAME_PROCESSOR=powerpc64 ;;
    1271                 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
    12721295            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
    12731304        fi
    12741305        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     
    13621393esac
    13631394
    1364 eval $set_cc_for_build
    1365 cat >$dummy.c <<EOF
    1366 #ifdef _SEQUENT_
    1367 # include <sys/types.h>
    1368 # include <sys/utsname.h>
    1369 #endif
    1370 main ()
    1371 {
    1372 #if defined (sony)
    1373 #if defined (MIPSEB)
    1374   /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
    1375      I don't know....  */
    1376   printf ("mips-sony-bsd\n"); exit (0);
    1377 #else
    1378 #include <sys/param.h>
    1379   printf ("m68k-sony-newsos%s\n",
    1380 #ifdef NEWSOS4
    1381         "4"
    1382 #else
    1383         ""
    1384 #endif
    1385         ); exit (0);
    1386 #endif
    1387 #endif
    1388 
    1389 #if defined (__arm) && defined (__acorn) && defined (__unix)
    1390   printf ("arm-acorn-riscix\n"); exit (0);
    1391 #endif
    1392 
    1393 #if defined (hp300) && !defined (hpux)
    1394   printf ("m68k-hp-bsd\n"); exit (0);
    1395 #endif
    1396 
    1397 #if defined (NeXT)
    1398 #if !defined (__ARCHITECTURE__)
    1399 #define __ARCHITECTURE__ "m68k"
    1400 #endif
    1401   int version;
    1402   version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
    1403   if (version < 4)
    1404     printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
    1405   else
    1406     printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
    1407   exit (0);
    1408 #endif
    1409 
    1410 #if defined (MULTIMAX) || defined (n16)
    1411 #if defined (UMAXV)
    1412   printf ("ns32k-encore-sysv\n"); exit (0);
    1413 #else
    1414 #if defined (CMU)
    1415   printf ("ns32k-encore-mach\n"); exit (0);
    1416 #else
    1417   printf ("ns32k-encore-bsd\n"); exit (0);
    1418 #endif
    1419 #endif
    1420 #endif
    1421 
    1422 #if defined (__386BSD__)
    1423   printf ("i386-pc-bsd\n"); exit (0);
    1424 #endif
    1425 
    1426 #if defined (sequent)
    1427 #if defined (i386)
    1428   printf ("i386-sequent-dynix\n"); exit (0);
    1429 #endif
    1430 #if defined (ns32000)
    1431   printf ("ns32k-sequent-dynix\n"); exit (0);
    1432 #endif
    1433 #endif
    1434 
    1435 #if defined (_SEQUENT_)
    1436     struct utsname un;
    1437 
    1438     uname(&un);
    1439 
    1440     if (strncmp(un.version, "V2", 2) == 0) {
    1441         printf ("i386-sequent-ptx2\n"); exit (0);
    1442     }
    1443     if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    1444         printf ("i386-sequent-ptx1\n"); exit (0);
    1445     }
    1446     printf ("i386-sequent-ptx\n"); exit (0);
    1447 
    1448 #endif
    1449 
    1450 #if defined (vax)
    1451 # if !defined (ultrix)
    1452 #  include <sys/param.h>
    1453 #  if defined (BSD)
    1454 #   if BSD == 43
    1455       printf ("vax-dec-bsd4.3\n"); exit (0);
    1456 #   else
    1457 #    if BSD == 199006
    1458       printf ("vax-dec-bsd4.3reno\n"); exit (0);
    1459 #    else
    1460       printf ("vax-dec-bsd\n"); exit (0);
    1461 #    endif
    1462 #   endif
    1463 #  else
    1464     printf ("vax-dec-bsd\n"); exit (0);
    1465 #  endif
    1466 # else
    1467     printf ("vax-dec-ultrix\n"); exit (0);
    1468 # endif
    1469 #endif
    1470 
    1471 #if defined (alliant) && defined (i860)
    1472   printf ("i860-alliant-bsd\n"); exit (0);
    1473 #endif
    1474 
    1475   exit (1);
    1476 }
    1477 EOF
    1478 
    1479 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
    1480         { echo "$SYSTEM_NAME"; exit; }
    1481 
    1482 # Apollos put the system type in the environment.
    1483 
    1484 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    1485 
    1486 # Convex versions that predate uname can use getsysinfo(1)
    1487 
    1488 if [ -x /usr/convex/getsysinfo ]
    1489 then
    1490     case `getsysinfo -f cpu_type` in
    1491     c1*)
    1492         echo c1-convex-bsd
    1493         exit ;;
    1494     c2*)
    1495         if getsysinfo -f scalar_acc
    1496         then echo c32-convex-bsd
    1497         else echo c2-convex-bsd
    1498         fi
    1499         exit ;;
    1500     c34*)
    1501         echo c34-convex-bsd
    1502         exit ;;
    1503     c38*)
    1504         echo c38-convex-bsd
    1505         exit ;;
    1506     c4*)
    1507         echo c4-convex-bsd
    1508         exit ;;
    1509     esac
    1510 fi
    1511 
    15121395cat >&2 <<EOF
    15131396$0: unable to guess system type
  • recordmydesktop/trunk/fuentes/config.sub

    r368 r370  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright 1992-2013 Free Software Foundation, Inc.
    4 
    5 timestamp='2013-08-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
     
    2626
    2727
    28 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
     28# Please send patches to <config-patches@gnu.org>.
    2929#
    3030# Configuration subroutine to validate and canonicalize a configuration type.
     
    6969GNU config.sub ($timestamp)
    7070
    71 Copyright 1992-2013 Free Software Foundation, Inc.
     71Copyright 1992-2015 Free Software Foundation, Inc.
    7272
    7373This is free software; see the source for copying conditions.  There is NO
     
    118118  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
    119119  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
    120   knetbsd*-gnu* | netbsd*-gnu* | \
     120  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
    121121  kopensolaris*-gnu* | \
    122122  storm-chaos* | os2-emx* | rtmk-nova*)
     
    256256        | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
    257257        | avr | avr32 \
     258        | ba \
    258259        | be32 | be64 \
    259260        | bfin \
    260261        | c4x | c8051 | clipper \
    261262        | d10v | d30v | dlx | dsp16xx \
    262         | epiphany \
    263         | fido | fr30 | frv \
     263        | e2k | epiphany \
     264        | fido | fr30 | frv | ft32 \
    264265        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    265266        | hexagon \
    266267        | i370 | i860 | i960 | ia64 \
    267268        | ip2k | iq2000 \
     269        | k1om \
    268270        | le32 | le64 \
    269271        | lm32 \
     
    283285        | mipsisa32 | mipsisa32el \
    284286        | mipsisa32r2 | mipsisa32r2el \
     287        | mipsisa32r6 | mipsisa32r6el \
    285288        | mipsisa64 | mipsisa64el \
    286289        | mipsisa64r2 | mipsisa64r2el \
     290        | mipsisa64r6 | mipsisa64r6el \
    287291        | mipsisa64sb1 | mipsisa64sb1el \
    288292        | mipsisa64sr71k | mipsisa64sr71kel \
     
    296300        | nios | nios2 | nios2eb | nios2el \
    297301        | ns16k | ns32k \
    298         | open8 \
    299         | or1k | or32 \
     302        | open8 | or1k | or1knd | or32 \
    300303        | pdp10 | pdp11 | pj | pjl \
    301304        | powerpc | powerpc64 | powerpc64le | powerpcle \
    302305        | pyramid \
     306        | riscv32 | riscv64 \
    303307        | rl78 | rx \
    304308        | score \
    305         | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
     309        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    306310        | sh64 | sh64le \
    307311        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
     
    311315        | ubicom32 \
    312316        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
     317        | visium \
    313318        | we32k \
    314319        | x86 | xc16x | xstormy16 | xtensa \
     
    325330                basic_machine=tic6x-unknown
    326331                ;;
    327         m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
     332        leon|leon[3-9])
     333                basic_machine=sparc-$basic_machine
     334                ;;
     335        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
    328336                basic_machine=$basic_machine-unknown
    329337                os=-none
     
    370378        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    371379        | avr-* | avr32-* \
     380        | ba-* \
    372381        | be32-* | be64-* \
    373382        | bfin-* | bs2000-* \
     
    375384        | c8051-* | clipper-* | craynv-* | cydra-* \
    376385        | d10v-* | d30v-* | dlx-* \
    377         | elxsi-* \
     386        | e2k-* | elxsi-* \
    378387        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
    379388        | h8300-* | h8500-* \
     
    382391        | i*86-* | i860-* | i960-* | ia64-* \
    383392        | ip2k-* | iq2000-* \
     393        | k1om-* \
    384394        | le32-* | le64-* \
    385395        | lm32-* \
     
    401411        | mipsisa32-* | mipsisa32el-* \
    402412        | mipsisa32r2-* | mipsisa32r2el-* \
     413        | mipsisa32r6-* | mipsisa32r6el-* \
    403414        | mipsisa64-* | mipsisa64el-* \
    404415        | mipsisa64r2-* | mipsisa64r2el-* \
     416        | mipsisa64r6-* | mipsisa64r6el-* \
    405417        | mipsisa64sb1-* | mipsisa64sb1el-* \
    406418        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     
    414426        | none-* | np1-* | ns16k-* | ns32k-* \
    415427        | open8-* \
     428        | or1k*-* \
    416429        | orion-* \
    417430        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    418431        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
    419432        | pyramid-* \
     433        | riscv32-* | riscv64-* \
    420434        | rl78-* | romp-* | rs6000-* | rx-* \
    421435        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
     
    423437        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
    424438        | sparclite-* \
    425         | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
     439        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
    426440        | tahoe-* \
    427441        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     
    431445        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
    432446        | vax-* \
     447        | visium-* \
    433448        | we32k-* \
    434449        | x86-* | x86_64-* | xc16x-* | xps100-* \
     
    506521                basic_machine=i386-pc
    507522                os=-aros
     523                ;;
     524        asmjs)
     525                basic_machine=asmjs-unknown
    508526                ;;
    509527        aux)
     
    768786                os=-sysv
    769787                ;;
     788        leon-*|leon[3-9]-*)
     789                basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
     790                ;;
    770791        m68knommu)
    771792                basic_machine=m68k-unknown
     
    822843                basic_machine=powerpc-unknown
    823844                os=-morphos
     845                ;;
     846        moxiebox)
     847                basic_machine=moxie-unknown
     848                os=-moxiebox
    824849                ;;
    825850        msdos)
     
    13551380              | -sym* | -kopensolaris* | -plan9* \
    13561381              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
    1357               | -aos* | -aros* \
     1382              | -aos* | -aros* | -cloudabi* | -sortix* \
    13581383              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    13591384              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
     
    13681393              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
    13691394              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
    1370               | -uxpv* | -beos* | -mpeix* | -udk* \
     1395              | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
    13711396              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    13721397              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     
    13751400              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    13761401              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
    1377               | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
     1402              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
    13781403        # Remember, each alternative MUST END IN *, to match a version number.
    13791404                ;;
     
    15931618                os=-elf
    15941619                ;;
    1595         or1k-*)
    1596                 os=-elf
    1597                 ;;
    15981620        or32-*)
    15991621                os=-coff
Note: See TracChangeset for help on using the changeset viewer.