Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: third_party/libxml/src/config.guess

Issue 1977213002: Roll libxml to 8effcb578e0590cc01bbcab0f9dccefc6bdbcdbd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.chromium. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 # Attempt to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright 1992-2015 Free Software Foundation, Inc. 3 # Copyright 1992-2013 Free Software Foundation, Inc.
4 4
5 timestamp='2015-01-01' 5 timestamp='2013-06-10'
6 6
7 # This file is free software; you can redistribute it and/or modify it 7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by 8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or 9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version. 10 # (at your option) any later version.
11 # 11 #
12 # This program is distributed in the hope that it will be useful, but 12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of 13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details. 15 # General Public License for more details.
16 # 16 #
17 # You should have received a copy of the GNU General Public License 17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>. 18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 # 19 #
20 # As a special exception to the GNU General Public License, if you 20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a 21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under 22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that 23 # the same distribution terms that you use for the rest of that
24 # program. This Exception is an additional permission under section 7 24 # program. This Exception is an additional permission under section 7
25 # of the GNU General Public License, version 3 ("GPLv3"). 25 # of the GNU General Public License, version 3 ("GPLv3").
26 # 26 #
27 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 27 # Originally written by Per Bothner.
28 # 28 #
29 # You can get the latest version of this script from: 29 # You can get the latest version of this script from:
30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD 30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD
31 # 31 #
32 # Please send patches to <config-patches@gnu.org>. 32 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
33 33
34 34
35 me=`echo "$0" | sed -e 's,.*/,,'` 35 me=`echo "$0" | sed -e 's,.*/,,'`
36 36
37 usage="\ 37 usage="\
38 Usage: $0 [OPTION] 38 Usage: $0 [OPTION]
39 39
40 Output the configuration name of the system \`$me' is run on. 40 Output the configuration name of the system \`$me' is run on.
41 41
42 Operation modes: 42 Operation modes:
43 -h, --help print this help, then exit 43 -h, --help print this help, then exit
44 -t, --time-stamp print date of last modification, then exit 44 -t, --time-stamp print date of last modification, then exit
45 -v, --version print version number, then exit 45 -v, --version print version number, then exit
46 46
47 Report bugs and patches to <config-patches@gnu.org>." 47 Report bugs and patches to <config-patches@gnu.org>."
48 48
49 version="\ 49 version="\
50 GNU config.guess ($timestamp) 50 GNU config.guess ($timestamp)
51 51
52 Originally written by Per Bothner. 52 Originally written by Per Bothner.
53 Copyright 1992-2015 Free Software Foundation, Inc. 53 Copyright 1992-2013 Free Software Foundation, Inc.
54 54
55 This is free software; see the source for copying conditions. There is NO 55 This is free software; see the source for copying conditions. There is NO
56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
57 57
58 help=" 58 help="
59 Try \`$me --help' for more information." 59 Try \`$me --help' for more information."
60 60
61 # Parse command line 61 # Parse command line
62 while test $# -gt 0 ; do 62 while test $# -gt 0 ; do
63 case $1 in 63 case $1 in
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 cat <<-EOF > $dummy.c 142 cat <<-EOF > $dummy.c
143 #include <features.h> 143 #include <features.h>
144 #if defined(__UCLIBC__) 144 #if defined(__UCLIBC__)
145 LIBC=uclibc 145 LIBC=uclibc
146 #elif defined(__dietlibc__) 146 #elif defined(__dietlibc__)
147 LIBC=dietlibc 147 LIBC=dietlibc
148 #else 148 #else
149 LIBC=gnu 149 LIBC=gnu
150 #endif 150 #endif
151 EOF 151 EOF
152 » eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g '` 152 » eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
153 ;; 153 ;;
154 esac 154 esac
155 155
156 # Note: order is significant - the case branches are not exclusive. 156 # Note: order is significant - the case branches are not exclusive.
157 157
158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
159 *:NetBSD:*:*) 159 *:NetBSD:*:*)
160 # NetBSD (nbsd) targets should (where applicable) match one or 160 # NetBSD (nbsd) targets should (where applicable) match one or
161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
162 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 162 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 echo rs6000-ibm-aix3.2 572 echo rs6000-ibm-aix3.2
573 fi 573 fi
574 exit ;; 574 exit ;;
575 *:AIX:*:[4567]) 575 *:AIX:*:[4567])
576 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 576 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
577 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t hen 577 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t hen
578 IBM_ARCH=rs6000 578 IBM_ARCH=rs6000
579 else 579 else
580 IBM_ARCH=powerpc 580 IBM_ARCH=powerpc
581 fi 581 fi
582 » if [ -x /usr/bin/lslpp ] ; then 582 » if [ -x /usr/bin/oslevel ] ; then
583 » » IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 583 » » IBM_REV=`/usr/bin/oslevel`
584 » » » awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
585 else 584 else
586 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 585 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
587 fi 586 fi
588 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 587 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
589 exit ;; 588 exit ;;
590 *:AIX:*:*) 589 *:AIX:*:*)
591 echo rs6000-ibm-aix 590 echo rs6000-ibm-aix
592 exit ;; 591 exit ;;
593 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 592 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
594 echo romp-ibm-bsd4.4 593 echo romp-ibm-bsd4.4
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 exit ;; 819 exit ;;
821 i*:CYGWIN*:*) 820 i*:CYGWIN*:*)
822 echo ${UNAME_MACHINE}-pc-cygwin 821 echo ${UNAME_MACHINE}-pc-cygwin
823 exit ;; 822 exit ;;
824 *:MINGW64*:*) 823 *:MINGW64*:*)
825 echo ${UNAME_MACHINE}-pc-mingw64 824 echo ${UNAME_MACHINE}-pc-mingw64
826 exit ;; 825 exit ;;
827 *:MINGW*:*) 826 *:MINGW*:*)
828 echo ${UNAME_MACHINE}-pc-mingw32 827 echo ${UNAME_MACHINE}-pc-mingw32
829 exit ;; 828 exit ;;
830 *:MSYS*:*) 829 i*:MSYS*:*)
831 echo ${UNAME_MACHINE}-pc-msys 830 echo ${UNAME_MACHINE}-pc-msys
832 exit ;; 831 exit ;;
833 i*:windows32*:*) 832 i*:windows32*:*)
834 # uname -m includes "-pc" on this system. 833 # uname -m includes "-pc" on this system.
835 echo ${UNAME_MACHINE}-mingw32 834 echo ${UNAME_MACHINE}-mingw32
836 exit ;; 835 exit ;;
837 i*:PW*:*) 836 i*:PW*:*)
838 echo ${UNAME_MACHINE}-pc-pw32 837 echo ${UNAME_MACHINE}-pc-pw32
839 exit ;; 838 exit ;;
840 *:Interix*:*) 839 *:Interix*:*)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB) 962 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi ned(MIPSEB)
964 CPU=${UNAME_MACHINE} 963 CPU=${UNAME_MACHINE}
965 #else 964 #else
966 CPU= 965 CPU=
967 #endif 966 #endif
968 #endif 967 #endif
969 EOF 968 EOF
970 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
971 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 970 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
972 ;; 971 ;;
973 openrisc*:Linux:*:*) 972 or1k:Linux:*:*)
974 » echo or1k-unknown-linux-${LIBC} 973 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
975 exit ;; 974 exit ;;
976 or32:Linux:*:* | or1k*:Linux:*:*) 975 or32:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
978 exit ;; 977 exit ;;
979 padre:Linux:*:*) 978 padre:Linux:*:*)
980 echo sparc-unknown-linux-${LIBC} 979 echo sparc-unknown-linux-${LIBC}
981 exit ;; 980 exit ;;
982 parisc64:Linux:*:* | hppa64:Linux:*:*) 981 parisc64:Linux:*:* | hppa64:Linux:*:*)
983 echo hppa64-unknown-linux-${LIBC} 982 echo hppa64-unknown-linux-${LIBC}
984 exit ;; 983 exit ;;
985 parisc:Linux:*:* | hppa:Linux:*:*) 984 parisc:Linux:*:* | hppa:Linux:*:*)
986 # Look for CPU level 985 # Look for CPU level
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 exit ;; 1253 exit ;;
1255 *:Rhapsody:*:*) 1254 *:Rhapsody:*:*)
1256 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1257 exit ;; 1256 exit ;;
1258 *:Darwin:*:*) 1257 *:Darwin:*:*)
1259 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1260 eval $set_cc_for_build 1259 eval $set_cc_for_build
1261 if test "$UNAME_PROCESSOR" = unknown ; then 1260 if test "$UNAME_PROCESSOR" = unknown ; then
1262 UNAME_PROCESSOR=powerpc 1261 UNAME_PROCESSOR=powerpc
1263 fi 1262 fi
1264 » if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 1263 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1265 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1264 » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1266 » » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1265 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1267 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1266 » » grep IS_64BIT_ARCH >/dev/null
1268 » » grep IS_64BIT_ARCH >/dev/null 1267 » then
1269 » » then 1268 » » case $UNAME_PROCESSOR in
1270 » » case $UNAME_PROCESSOR in 1269 » » i386) UNAME_PROCESSOR=x86_64 ;;
1271 » » » i386) UNAME_PROCESSOR=x86_64 ;; 1270 » » powerpc) UNAME_PROCESSOR=powerpc64 ;;
1272 » » » powerpc) UNAME_PROCESSOR=powerpc64 ;; 1271 » » esac
1273 » » esac
1274 » » fi
1275 fi 1272 fi
1276 elif test "$UNAME_PROCESSOR" = i386 ; then
1277 # Avoid executing cc on OS X 10.9, as it ships with a stub
1278 # that puts up a graphical alert prompting to install
1279 # developer tools. Any system running Mac OS X 10.7 or
1280 # later (Darwin 11 and later) is required to have a 64-bit
1281 # processor. This is not true of the ARM version of Darwin
1282 # that Apple uses in portable devices.
1283 UNAME_PROCESSOR=x86_64
1284 fi 1273 fi
1285 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1274 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1286 exit ;; 1275 exit ;;
1287 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1276 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1288 UNAME_PROCESSOR=`uname -p` 1277 UNAME_PROCESSOR=`uname -p`
1289 if test "$UNAME_PROCESSOR" = "x86"; then 1278 if test "$UNAME_PROCESSOR" = "x86"; then
1290 UNAME_PROCESSOR=i386 1279 UNAME_PROCESSOR=i386
1291 UNAME_MACHINE=pc 1280 UNAME_MACHINE=pc
1292 fi 1281 fi
1293 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1282 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 echo ${UNAME_MACHINE}-pc-rdos 1354 echo ${UNAME_MACHINE}-pc-rdos
1366 exit ;; 1355 exit ;;
1367 i*86:AROS:*:*) 1356 i*86:AROS:*:*)
1368 echo ${UNAME_MACHINE}-pc-aros 1357 echo ${UNAME_MACHINE}-pc-aros
1369 exit ;; 1358 exit ;;
1370 x86_64:VMkernel:*:*) 1359 x86_64:VMkernel:*:*)
1371 echo ${UNAME_MACHINE}-unknown-esx 1360 echo ${UNAME_MACHINE}-unknown-esx
1372 exit ;; 1361 exit ;;
1373 esac 1362 esac
1374 1363
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
1375 cat >&2 <<EOF 1512 cat >&2 <<EOF
1376 $0: unable to guess system type 1513 $0: unable to guess system type
1377 1514
1378 This script, last modified $timestamp, has failed to recognize 1515 This script, last modified $timestamp, has failed to recognize
1379 the operating system you are using. It is advised that you 1516 the operating system you are using. It is advised that you
1380 download the most up to date version of the config scripts from 1517 download the most up to date version of the config scripts from
1381 1518
1382 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD 1519 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h b=HEAD
1383 and 1520 and
1384 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb= HEAD 1521 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb= HEAD
(...skipping 27 matching lines...) Expand all
1412 EOF 1549 EOF
1413 1550
1414 exit 1 1551 exit 1
1415 1552
1416 # Local variables: 1553 # Local variables:
1417 # eval: (add-hook 'write-file-hooks 'time-stamp) 1554 # eval: (add-hook 'write-file-hooks 'time-stamp)
1418 # time-stamp-start: "timestamp='" 1555 # time-stamp-start: "timestamp='"
1419 # time-stamp-format: "%:y-%02m-%02d" 1556 # time-stamp-format: "%:y-%02m-%02d"
1420 # time-stamp-end: "'" 1557 # time-stamp-end: "'"
1421 # End: 1558 # End:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698