Fossil SCM
Update config.guess and config.sub from upstream.
Commit
76370b4c97eb0101bff90fd7a1a71d4e03a0e248
Parent
b6959ec2e6ae27f…
2 files changed
+240
-331
+154
-103
+240
-331
| --- autosetup/config.guess | ||
| +++ autosetup/config.guess | ||
| @@ -1,44 +1,38 @@ | ||
| 1 | 1 | #! /bin/sh |
| 2 | 2 | # Attempt to guess a canonical system name. |
| 3 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
| 4 | -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | |
| 5 | -# Free Software Foundation, Inc. | |
| 3 | +# Copyright 1992-2014 Free Software Foundation, Inc. | |
| 6 | 4 | |
| 7 | -timestamp='2010-09-24' | |
| 5 | +timestamp='2014-03-23' | |
| 8 | 6 | |
| 9 | 7 | # This file is free software; you can redistribute it and/or modify it |
| 10 | 8 | # under the terms of the GNU General Public License as published by |
| 11 | -# the Free Software Foundation; either version 2 of the License, or | |
| 9 | +# the Free Software Foundation; either version 3 of the License, or | |
| 12 | 10 | # (at your option) any later version. |
| 13 | 11 | # |
| 14 | 12 | # This program is distributed in the hope that it will be useful, but |
| 15 | 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | 15 | # General Public License for more details. |
| 18 | 16 | # |
| 19 | 17 | # You should have received a copy of the GNU General Public License |
| 20 | -# along with this program; if not, write to the Free Software | |
| 21 | -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
| 22 | -# 02110-1301, USA. | |
| 18 | +# along with this program; if not, see <http://www.gnu.org/licenses/>. | |
| 23 | 19 | # |
| 24 | 20 | # As a special exception to the GNU General Public License, if you |
| 25 | 21 | # distribute this file as part of a program that contains a |
| 26 | 22 | # configuration script generated by Autoconf, you may include it under |
| 27 | -# the same distribution terms that you use for the rest of that program. | |
| 28 | - | |
| 29 | - | |
| 30 | -# Originally written by Per Bothner. Please send patches (context | |
| 31 | -# diff format) to <[email protected]> and include a ChangeLog | |
| 32 | -# entry. | |
| 33 | -# | |
| 34 | -# This script attempts to guess a canonical system name similar to | |
| 35 | -# config.sub. If it succeeds, it prints the system name on stdout, and | |
| 36 | -# exits with 0. Otherwise, it exits with 1. | |
| 23 | +# the same distribution terms that you use for the rest of that | |
| 24 | +# program. This Exception is an additional permission under section 7 | |
| 25 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 26 | +# | |
| 27 | +# Originally written by Per Bothner. | |
| 37 | 28 | # |
| 38 | 29 | # You can get the latest version of this script from: |
| 39 | 30 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
| 31 | +# | |
| 32 | +# Please send patches with a ChangeLog entry to [email protected]. | |
| 33 | + | |
| 40 | 34 | |
| 41 | 35 | me=`echo "$0" | sed -e 's,.*/,,'` |
| 42 | 36 | |
| 43 | 37 | usage="\ |
| 44 | 38 | Usage: $0 [OPTION] |
| @@ -54,13 +48,11 @@ | ||
| 54 | 48 | |
| 55 | 49 | version="\ |
| 56 | 50 | GNU config.guess ($timestamp) |
| 57 | 51 | |
| 58 | 52 | Originally written by Per Bothner. |
| 59 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
| 60 | -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | |
| 61 | -Software Foundation, Inc. | |
| 53 | +Copyright 1992-2014 Free Software Foundation, Inc. | |
| 62 | 54 | |
| 63 | 55 | This is free software; see the source for copying conditions. There is NO |
| 64 | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 65 | 57 | |
| 66 | 58 | help=" |
| @@ -90,11 +82,11 @@ | ||
| 90 | 82 | if test $# != 0; then |
| 91 | 83 | echo "$me: too many arguments$help" >&2 |
| 92 | 84 | exit 1 |
| 93 | 85 | fi |
| 94 | 86 | |
| 95 | -trap 'exit 1' HUP INT TERM | |
| 87 | +trap 'exit 1' 1 2 15 | |
| 96 | 88 | |
| 97 | 89 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
| 98 | 90 | # compiler to aid in system detection is discouraged as it requires |
| 99 | 91 | # temporary files to be created and, as you can see below, it is a |
| 100 | 92 | # headache to deal with in a portable fashion. |
| @@ -104,11 +96,11 @@ | ||
| 104 | 96 | |
| 105 | 97 | # Portable tmp directory creation inspired by the Autoconf team. |
| 106 | 98 | |
| 107 | 99 | set_cc_for_build=' |
| 108 | 100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
| 109 | -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; | |
| 101 | +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
| 110 | 102 | : ${TMPDIR=/tmp} ; |
| 111 | 103 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| 112 | 104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
| 113 | 105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
| 114 | 106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
| @@ -137,17 +129,38 @@ | ||
| 137 | 129 | |
| 138 | 130 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
| 139 | 131 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
| 140 | 132 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
| 141 | 133 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
| 134 | + | |
| 135 | +case "${UNAME_SYSTEM}" in | |
| 136 | +Linux|GNU|GNU/*) | |
| 137 | + # If the system lacks a compiler, then just pick glibc. | |
| 138 | + # We could probably try harder. | |
| 139 | + LIBC=gnu | |
| 140 | + | |
| 141 | + eval $set_cc_for_build | |
| 142 | + cat <<-EOF > $dummy.c | |
| 143 | + #include <features.h> | |
| 144 | + #if defined(__UCLIBC__) | |
| 145 | + LIBC=uclibc | |
| 146 | + #elif defined(__dietlibc__) | |
| 147 | + LIBC=dietlibc | |
| 148 | + #else | |
| 149 | + LIBC=gnu | |
| 150 | + #endif | |
| 151 | + EOF | |
| 152 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | |
| 153 | + ;; | |
| 154 | +esac | |
| 142 | 155 | |
| 143 | 156 | # Note: order is significant - the case branches are not exclusive. |
| 144 | 157 | |
| 145 | 158 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 146 | 159 | *:NetBSD:*:*) |
| 147 | 160 | # NetBSD (nbsd) targets should (where applicable) match one or |
| 148 | - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
| 161 | + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
| 149 | 162 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
| 150 | 163 | # switched to ELF, *-*-netbsd* would select the old |
| 151 | 164 | # object file format. This provides both forward |
| 152 | 165 | # compatibility and a consistent mechanism for selecting the |
| 153 | 166 | # object file format. |
| @@ -179,11 +192,11 @@ | ||
| 179 | 192 | else |
| 180 | 193 | os=netbsdelf |
| 181 | 194 | fi |
| 182 | 195 | ;; |
| 183 | 196 | *) |
| 184 | - os=netbsd | |
| 197 | + os=netbsd | |
| 185 | 198 | ;; |
| 186 | 199 | esac |
| 187 | 200 | # The OS release |
| 188 | 201 | # Debian GNU/NetBSD machines have a different userland, and |
| 189 | 202 | # thus, need a distinct triplet. However, they do not need |
| @@ -200,10 +213,14 @@ | ||
| 200 | 213 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
| 201 | 214 | # contains redundant information, the shorter form: |
| 202 | 215 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| 203 | 216 | echo "${machine}-${os}${release}" |
| 204 | 217 | exit ;; |
| 218 | + *:Bitrig:*:*) | |
| 219 | + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
| 220 | + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
| 221 | + exit ;; | |
| 205 | 222 | *:OpenBSD:*:*) |
| 206 | 223 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| 207 | 224 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| 208 | 225 | exit ;; |
| 209 | 226 | *:ekkoBSD:*:*) |
| @@ -222,11 +239,11 @@ | ||
| 222 | 239 | case $UNAME_RELEASE in |
| 223 | 240 | *4.0) |
| 224 | 241 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
| 225 | 242 | ;; |
| 226 | 243 | *5.*) |
| 227 | - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
| 244 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
| 228 | 245 | ;; |
| 229 | 246 | esac |
| 230 | 247 | # According to Compaq, /usr/sbin/psrinfo has been available on |
| 231 | 248 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
| 232 | 249 | # covers most systems running today. This code pipes the CPU |
| @@ -268,11 +285,14 @@ | ||
| 268 | 285 | # A Vn.n version is a released version. |
| 269 | 286 | # A Tn.n version is a released field test version. |
| 270 | 287 | # A Xn.n version is an unreleased experimental baselevel. |
| 271 | 288 | # 1.2 uses "1.2" for uname -r. |
| 272 | 289 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 273 | - exit ;; | |
| 290 | + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
| 291 | + exitcode=$? | |
| 292 | + trap '' 0 | |
| 293 | + exit $exitcode ;; | |
| 274 | 294 | Alpha\ *:Windows_NT*:*) |
| 275 | 295 | # How do we know it's Interix rather than the generic POSIX subsystem? |
| 276 | 296 | # Should we change UNAME_MACHINE based on the output of uname instead |
| 277 | 297 | # of the specific Alpha model? |
| 278 | 298 | echo alpha-pc-interix |
| @@ -294,16 +314,16 @@ | ||
| 294 | 314 | exit ;; |
| 295 | 315 | *:z/VM:*:*) |
| 296 | 316 | echo s390-ibm-zvmoe |
| 297 | 317 | exit ;; |
| 298 | 318 | *:OS400:*:*) |
| 299 | - echo powerpc-ibm-os400 | |
| 319 | + echo powerpc-ibm-os400 | |
| 300 | 320 | exit ;; |
| 301 | 321 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 302 | 322 | echo arm-acorn-riscix${UNAME_RELEASE} |
| 303 | 323 | exit ;; |
| 304 | - arm:riscos:*:*|arm:RISCOS:*:*) | |
| 324 | + arm*:riscos:*:*|arm*:RISCOS:*:*) | |
| 305 | 325 | echo arm-unknown-riscos |
| 306 | 326 | exit ;; |
| 307 | 327 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| 308 | 328 | echo hppa1.1-hitachi-hiuxmpp |
| 309 | 329 | exit ;; |
| @@ -393,27 +413,27 @@ | ||
| 393 | 413 | # to the lowercase version "mint" (or "freemint"). Finally |
| 394 | 414 | # the system name "TOS" denotes a system which is actually not |
| 395 | 415 | # MiNT. But MiNT is downward compatible to TOS, so this should |
| 396 | 416 | # be no problem. |
| 397 | 417 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
| 398 | - echo m68k-atari-mint${UNAME_RELEASE} | |
| 418 | + echo m68k-atari-mint${UNAME_RELEASE} | |
| 399 | 419 | exit ;; |
| 400 | 420 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
| 401 | 421 | echo m68k-atari-mint${UNAME_RELEASE} |
| 402 | - exit ;; | |
| 422 | + exit ;; | |
| 403 | 423 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
| 404 | - echo m68k-atari-mint${UNAME_RELEASE} | |
| 424 | + echo m68k-atari-mint${UNAME_RELEASE} | |
| 405 | 425 | exit ;; |
| 406 | 426 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
| 407 | - echo m68k-milan-mint${UNAME_RELEASE} | |
| 408 | - exit ;; | |
| 427 | + echo m68k-milan-mint${UNAME_RELEASE} | |
| 428 | + exit ;; | |
| 409 | 429 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
| 410 | - echo m68k-hades-mint${UNAME_RELEASE} | |
| 411 | - exit ;; | |
| 430 | + echo m68k-hades-mint${UNAME_RELEASE} | |
| 431 | + exit ;; | |
| 412 | 432 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
| 413 | - echo m68k-unknown-mint${UNAME_RELEASE} | |
| 414 | - exit ;; | |
| 433 | + echo m68k-unknown-mint${UNAME_RELEASE} | |
| 434 | + exit ;; | |
| 415 | 435 | m68k:machten:*:*) |
| 416 | 436 | echo m68k-apple-machten${UNAME_RELEASE} |
| 417 | 437 | exit ;; |
| 418 | 438 | powerpc:machten:*:*) |
| 419 | 439 | echo powerpc-apple-machten${UNAME_RELEASE} |
| @@ -479,12 +499,12 @@ | ||
| 479 | 499 | exit ;; |
| 480 | 500 | m88k:*:3*:R3*) |
| 481 | 501 | echo m88k-motorola-sysv3 |
| 482 | 502 | exit ;; |
| 483 | 503 | AViiON:dgux:*:*) |
| 484 | - # DG/UX returns AViiON for all architectures | |
| 485 | - UNAME_PROCESSOR=`/usr/bin/uname -p` | |
| 504 | + # DG/UX returns AViiON for all architectures | |
| 505 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
| 486 | 506 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
| 487 | 507 | then |
| 488 | 508 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
| 489 | 509 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
| 490 | 510 | then |
| @@ -493,11 +513,11 @@ | ||
| 493 | 513 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
| 494 | 514 | fi |
| 495 | 515 | else |
| 496 | 516 | echo i586-dg-dgux${UNAME_RELEASE} |
| 497 | 517 | fi |
| 498 | - exit ;; | |
| 518 | + exit ;; | |
| 499 | 519 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
| 500 | 520 | echo m88k-dolphin-sysv3 |
| 501 | 521 | exit ;; |
| 502 | 522 | M88*:*:R3*:*) |
| 503 | 523 | # Delta 88k system running SVR3 |
| @@ -593,56 +613,56 @@ | ||
| 593 | 613 | 9000/31? ) HP_ARCH=m68000 ;; |
| 594 | 614 | 9000/[34]?? ) HP_ARCH=m68k ;; |
| 595 | 615 | 9000/[678][0-9][0-9]) |
| 596 | 616 | if [ -x /usr/bin/getconf ]; then |
| 597 | 617 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
| 598 | - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
| 599 | - case "${sc_cpu_version}" in | |
| 600 | - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
| 601 | - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
| 602 | - 532) # CPU_PA_RISC2_0 | |
| 603 | - case "${sc_kernel_bits}" in | |
| 604 | - 32) HP_ARCH="hppa2.0n" ;; | |
| 605 | - 64) HP_ARCH="hppa2.0w" ;; | |
| 618 | + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
| 619 | + case "${sc_cpu_version}" in | |
| 620 | + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
| 621 | + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
| 622 | + 532) # CPU_PA_RISC2_0 | |
| 623 | + case "${sc_kernel_bits}" in | |
| 624 | + 32) HP_ARCH="hppa2.0n" ;; | |
| 625 | + 64) HP_ARCH="hppa2.0w" ;; | |
| 606 | 626 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
| 607 | - esac ;; | |
| 608 | - esac | |
| 627 | + esac ;; | |
| 628 | + esac | |
| 609 | 629 | fi |
| 610 | 630 | if [ "${HP_ARCH}" = "" ]; then |
| 611 | 631 | eval $set_cc_for_build |
| 612 | - sed 's/^ //' << EOF >$dummy.c | |
| 613 | - | |
| 614 | - #define _HPUX_SOURCE | |
| 615 | - #include <stdlib.h> | |
| 616 | - #include <unistd.h> | |
| 617 | - | |
| 618 | - int main () | |
| 619 | - { | |
| 620 | - #if defined(_SC_KERNEL_BITS) | |
| 621 | - long bits = sysconf(_SC_KERNEL_BITS); | |
| 622 | - #endif | |
| 623 | - long cpu = sysconf (_SC_CPU_VERSION); | |
| 624 | - | |
| 625 | - switch (cpu) | |
| 626 | - { | |
| 627 | - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
| 628 | - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
| 629 | - case CPU_PA_RISC2_0: | |
| 630 | - #if defined(_SC_KERNEL_BITS) | |
| 631 | - switch (bits) | |
| 632 | - { | |
| 633 | - case 64: puts ("hppa2.0w"); break; | |
| 634 | - case 32: puts ("hppa2.0n"); break; | |
| 635 | - default: puts ("hppa2.0"); break; | |
| 636 | - } break; | |
| 637 | - #else /* !defined(_SC_KERNEL_BITS) */ | |
| 638 | - puts ("hppa2.0"); break; | |
| 639 | - #endif | |
| 640 | - default: puts ("hppa1.0"); break; | |
| 641 | - } | |
| 642 | - exit (0); | |
| 643 | - } | |
| 632 | + sed 's/^ //' << EOF >$dummy.c | |
| 633 | + | |
| 634 | + #define _HPUX_SOURCE | |
| 635 | + #include <stdlib.h> | |
| 636 | + #include <unistd.h> | |
| 637 | + | |
| 638 | + int main () | |
| 639 | + { | |
| 640 | + #if defined(_SC_KERNEL_BITS) | |
| 641 | + long bits = sysconf(_SC_KERNEL_BITS); | |
| 642 | + #endif | |
| 643 | + long cpu = sysconf (_SC_CPU_VERSION); | |
| 644 | + | |
| 645 | + switch (cpu) | |
| 646 | + { | |
| 647 | + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
| 648 | + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
| 649 | + case CPU_PA_RISC2_0: | |
| 650 | + #if defined(_SC_KERNEL_BITS) | |
| 651 | + switch (bits) | |
| 652 | + { | |
| 653 | + case 64: puts ("hppa2.0w"); break; | |
| 654 | + case 32: puts ("hppa2.0n"); break; | |
| 655 | + default: puts ("hppa2.0"); break; | |
| 656 | + } break; | |
| 657 | + #else /* !defined(_SC_KERNEL_BITS) */ | |
| 658 | + puts ("hppa2.0"); break; | |
| 659 | + #endif | |
| 660 | + default: puts ("hppa1.0"); break; | |
| 661 | + } | |
| 662 | + exit (0); | |
| 663 | + } | |
| 644 | 664 | EOF |
| 645 | 665 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
| 646 | 666 | test -z "$HP_ARCH" && HP_ARCH=hppa |
| 647 | 667 | fi ;; |
| 648 | 668 | esac |
| @@ -729,26 +749,26 @@ | ||
| 729 | 749 | parisc*:Lites*:*:*) |
| 730 | 750 | echo hppa1.1-hp-lites |
| 731 | 751 | exit ;; |
| 732 | 752 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
| 733 | 753 | echo c1-convex-bsd |
| 734 | - exit ;; | |
| 754 | + exit ;; | |
| 735 | 755 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
| 736 | 756 | if getsysinfo -f scalar_acc |
| 737 | 757 | then echo c32-convex-bsd |
| 738 | 758 | else echo c2-convex-bsd |
| 739 | 759 | fi |
| 740 | - exit ;; | |
| 760 | + exit ;; | |
| 741 | 761 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
| 742 | 762 | echo c34-convex-bsd |
| 743 | - exit ;; | |
| 763 | + exit ;; | |
| 744 | 764 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
| 745 | 765 | echo c38-convex-bsd |
| 746 | - exit ;; | |
| 766 | + exit ;; | |
| 747 | 767 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
| 748 | 768 | echo c4-convex-bsd |
| 749 | - exit ;; | |
| 769 | + exit ;; | |
| 750 | 770 | CRAY*Y-MP:*:*:*) |
| 751 | 771 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 752 | 772 | exit ;; |
| 753 | 773 | CRAY*[A-Z]90:*:*:*) |
| 754 | 774 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
| @@ -768,18 +788,18 @@ | ||
| 768 | 788 | *:UNICOS/mp:*:*) |
| 769 | 789 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 770 | 790 | exit ;; |
| 771 | 791 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
| 772 | 792 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 773 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 774 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
| 775 | - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 776 | - exit ;; | |
| 793 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 794 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
| 795 | + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 796 | + exit ;; | |
| 777 | 797 | 5000:UNIX_System_V:4.*:*) |
| 778 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 779 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
| 780 | - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 798 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
| 799 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
| 800 | + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
| 781 | 801 | exit ;; |
| 782 | 802 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
| 783 | 803 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
| 784 | 804 | exit ;; |
| 785 | 805 | sparc*:BSD/OS:*:*) |
| @@ -787,37 +807,39 @@ | ||
| 787 | 807 | exit ;; |
| 788 | 808 | *:BSD/OS:*:*) |
| 789 | 809 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
| 790 | 810 | exit ;; |
| 791 | 811 | *:FreeBSD:*:*) |
| 792 | - case ${UNAME_MACHINE} in | |
| 793 | - pc98) | |
| 794 | - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
| 812 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | |
| 813 | + case ${UNAME_PROCESSOR} in | |
| 795 | 814 | amd64) |
| 796 | 815 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 797 | 816 | *) |
| 798 | - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
| 817 | + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
| 799 | 818 | esac |
| 800 | 819 | exit ;; |
| 801 | 820 | i*:CYGWIN*:*) |
| 802 | 821 | echo ${UNAME_MACHINE}-pc-cygwin |
| 803 | 822 | exit ;; |
| 823 | + *:MINGW64*:*) | |
| 824 | + echo ${UNAME_MACHINE}-pc-mingw64 | |
| 825 | + exit ;; | |
| 804 | 826 | *:MINGW*:*) |
| 805 | 827 | echo ${UNAME_MACHINE}-pc-mingw32 |
| 806 | 828 | exit ;; |
| 807 | - i*:MSYS*:*) | |
| 808 | - echo ${UNAME_MACHINE}-pc-msys | |
| 809 | - exit ;; | |
| 829 | + *:MSYS*:*) | |
| 830 | + echo ${UNAME_MACHINE}-pc-msys | |
| 831 | + exit ;; | |
| 810 | 832 | i*:windows32*:*) |
| 811 | - # uname -m includes "-pc" on this system. | |
| 812 | - echo ${UNAME_MACHINE}-mingw32 | |
| 833 | + # uname -m includes "-pc" on this system. | |
| 834 | + echo ${UNAME_MACHINE}-mingw32 | |
| 813 | 835 | exit ;; |
| 814 | 836 | i*:PW*:*) |
| 815 | 837 | echo ${UNAME_MACHINE}-pc-pw32 |
| 816 | 838 | exit ;; |
| 817 | 839 | *:Interix*:*) |
| 818 | - case ${UNAME_MACHINE} in | |
| 840 | + case ${UNAME_MACHINE} in | |
| 819 | 841 | x86) |
| 820 | 842 | echo i586-pc-interix${UNAME_RELEASE} |
| 821 | 843 | exit ;; |
| 822 | 844 | authenticamd | genuineintel | EM64T) |
| 823 | 845 | echo x86_64-unknown-interix${UNAME_RELEASE} |
| @@ -850,74 +872,85 @@ | ||
| 850 | 872 | prep*:SunOS:5.*:*) |
| 851 | 873 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 852 | 874 | exit ;; |
| 853 | 875 | *:GNU:*:*) |
| 854 | 876 | # the GNU system |
| 855 | - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
| 877 | + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
| 856 | 878 | exit ;; |
| 857 | 879 | *:GNU/*:*:*) |
| 858 | 880 | # other systems with GNU libc and userland |
| 859 | - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
| 881 | + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
| 860 | 882 | exit ;; |
| 861 | 883 | i*86:Minix:*:*) |
| 862 | 884 | echo ${UNAME_MACHINE}-pc-minix |
| 863 | 885 | exit ;; |
| 886 | + aarch64:Linux:*:*) | |
| 887 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 888 | + exit ;; | |
| 889 | + aarch64_be:Linux:*:*) | |
| 890 | + UNAME_MACHINE=aarch64_be | |
| 891 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 892 | + exit ;; | |
| 864 | 893 | alpha:Linux:*:*) |
| 865 | 894 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 866 | 895 | EV5) UNAME_MACHINE=alphaev5 ;; |
| 867 | 896 | EV56) UNAME_MACHINE=alphaev56 ;; |
| 868 | 897 | PCA56) UNAME_MACHINE=alphapca56 ;; |
| 869 | 898 | PCA57) UNAME_MACHINE=alphapca56 ;; |
| 870 | 899 | EV6) UNAME_MACHINE=alphaev6 ;; |
| 871 | 900 | EV67) UNAME_MACHINE=alphaev67 ;; |
| 872 | 901 | EV68*) UNAME_MACHINE=alphaev68 ;; |
| 873 | - esac | |
| 902 | + esac | |
| 874 | 903 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
| 875 | - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
| 876 | - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
| 904 | + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
| 905 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 906 | + exit ;; | |
| 907 | + arc:Linux:*:* | arceb:Linux:*:*) | |
| 908 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 877 | 909 | exit ;; |
| 878 | 910 | arm*:Linux:*:*) |
| 879 | 911 | eval $set_cc_for_build |
| 880 | 912 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 881 | 913 | | grep -q __ARM_EABI__ |
| 882 | 914 | then |
| 883 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 915 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 884 | 916 | else |
| 885 | - echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
| 917 | + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
| 918 | + | grep -q __ARM_PCS_VFP | |
| 919 | + then | |
| 920 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
| 921 | + else | |
| 922 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
| 923 | + fi | |
| 886 | 924 | fi |
| 887 | 925 | exit ;; |
| 888 | 926 | avr32*:Linux:*:*) |
| 889 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 927 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 890 | 928 | exit ;; |
| 891 | 929 | cris:Linux:*:*) |
| 892 | - echo cris-axis-linux-gnu | |
| 930 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
| 893 | 931 | exit ;; |
| 894 | 932 | crisv32:Linux:*:*) |
| 895 | - echo crisv32-axis-linux-gnu | |
| 933 | + echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
| 896 | 934 | exit ;; |
| 897 | 935 | frv:Linux:*:*) |
| 898 | - echo frv-unknown-linux-gnu | |
| 936 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 937 | + exit ;; | |
| 938 | + hexagon:Linux:*:*) | |
| 939 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 899 | 940 | exit ;; |
| 900 | 941 | i*86:Linux:*:*) |
| 901 | - LIBC=gnu | |
| 902 | - eval $set_cc_for_build | |
| 903 | - sed 's/^ //' << EOF >$dummy.c | |
| 904 | - #ifdef __dietlibc__ | |
| 905 | - LIBC=dietlibc | |
| 906 | - #endif | |
| 907 | -EOF | |
| 908 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
| 909 | - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
| 942 | + echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
| 910 | 943 | exit ;; |
| 911 | 944 | ia64:Linux:*:*) |
| 912 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 945 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 913 | 946 | exit ;; |
| 914 | 947 | m32r*:Linux:*:*) |
| 915 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 948 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 916 | 949 | exit ;; |
| 917 | 950 | m68*:Linux:*:*) |
| 918 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 951 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 919 | 952 | exit ;; |
| 920 | 953 | mips:Linux:*:* | mips64:Linux:*:*) |
| 921 | 954 | eval $set_cc_for_build |
| 922 | 955 | sed 's/^ //' << EOF >$dummy.c |
| 923 | 956 | #undef CPU |
| @@ -932,71 +965,80 @@ | ||
| 932 | 965 | CPU= |
| 933 | 966 | #endif |
| 934 | 967 | #endif |
| 935 | 968 | EOF |
| 936 | 969 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| 937 | - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
| 970 | + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
| 938 | 971 | ;; |
| 939 | - or32:Linux:*:*) | |
| 940 | - echo or32-unknown-linux-gnu | |
| 972 | + openrisc*:Linux:*:*) | |
| 973 | + echo or1k-unknown-linux-${LIBC} | |
| 974 | + exit ;; | |
| 975 | + or32:Linux:*:* | or1k*:Linux:*:*) | |
| 976 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 941 | 977 | exit ;; |
| 942 | 978 | padre:Linux:*:*) |
| 943 | - echo sparc-unknown-linux-gnu | |
| 979 | + echo sparc-unknown-linux-${LIBC} | |
| 944 | 980 | exit ;; |
| 945 | 981 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 946 | - echo hppa64-unknown-linux-gnu | |
| 982 | + echo hppa64-unknown-linux-${LIBC} | |
| 947 | 983 | exit ;; |
| 948 | 984 | parisc:Linux:*:* | hppa:Linux:*:*) |
| 949 | 985 | # Look for CPU level |
| 950 | 986 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| 951 | - PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
| 952 | - PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
| 953 | - *) echo hppa-unknown-linux-gnu ;; | |
| 987 | + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
| 988 | + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
| 989 | + *) echo hppa-unknown-linux-${LIBC} ;; | |
| 954 | 990 | esac |
| 955 | 991 | exit ;; |
| 956 | 992 | ppc64:Linux:*:*) |
| 957 | - echo powerpc64-unknown-linux-gnu | |
| 993 | + echo powerpc64-unknown-linux-${LIBC} | |
| 958 | 994 | exit ;; |
| 959 | 995 | ppc:Linux:*:*) |
| 960 | - echo powerpc-unknown-linux-gnu | |
| 996 | + echo powerpc-unknown-linux-${LIBC} | |
| 997 | + exit ;; | |
| 998 | + ppc64le:Linux:*:*) | |
| 999 | + echo powerpc64le-unknown-linux-${LIBC} | |
| 1000 | + exit ;; | |
| 1001 | + ppcle:Linux:*:*) | |
| 1002 | + echo powerpcle-unknown-linux-${LIBC} | |
| 961 | 1003 | exit ;; |
| 962 | 1004 | s390:Linux:*:* | s390x:Linux:*:*) |
| 963 | - echo ${UNAME_MACHINE}-ibm-linux | |
| 1005 | + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
| 964 | 1006 | exit ;; |
| 965 | 1007 | sh64*:Linux:*:*) |
| 966 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 1008 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 967 | 1009 | exit ;; |
| 968 | 1010 | sh*:Linux:*:*) |
| 969 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 1011 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 970 | 1012 | exit ;; |
| 971 | 1013 | sparc:Linux:*:* | sparc64:Linux:*:*) |
| 972 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 1014 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 973 | 1015 | exit ;; |
| 974 | 1016 | tile*:Linux:*:*) |
| 975 | - echo ${UNAME_MACHINE}-tilera-linux-gnu | |
| 1017 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 976 | 1018 | exit ;; |
| 977 | 1019 | vax:Linux:*:*) |
| 978 | - echo ${UNAME_MACHINE}-dec-linux-gnu | |
| 1020 | + echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
| 979 | 1021 | exit ;; |
| 980 | 1022 | x86_64:Linux:*:*) |
| 981 | - echo x86_64-unknown-linux-gnu | |
| 1023 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 982 | 1024 | exit ;; |
| 983 | 1025 | xtensa*:Linux:*:*) |
| 984 | - echo ${UNAME_MACHINE}-unknown-linux-gnu | |
| 1026 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
| 985 | 1027 | exit ;; |
| 986 | 1028 | i*86:DYNIX/ptx:4*:*) |
| 987 | 1029 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| 988 | 1030 | # earlier versions are messed up and put the nodename in both |
| 989 | 1031 | # sysname and nodename. |
| 990 | 1032 | echo i386-sequent-sysv4 |
| 991 | 1033 | exit ;; |
| 992 | 1034 | i*86:UNIX_SV:4.2MP:2.*) |
| 993 | - # Unixware is an offshoot of SVR4, but it has its own version | |
| 994 | - # number series starting with 2... | |
| 995 | - # I am not positive that other SVR4 systems won't match this, | |
| 1035 | + # Unixware is an offshoot of SVR4, but it has its own version | |
| 1036 | + # number series starting with 2... | |
| 1037 | + # I am not positive that other SVR4 systems won't match this, | |
| 996 | 1038 | # I just have to hope. -- rms. |
| 997 | - # Use sysv4.2uw... so that sysv4* matches it. | |
| 1039 | + # Use sysv4.2uw... so that sysv4* matches it. | |
| 998 | 1040 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
| 999 | 1041 | exit ;; |
| 1000 | 1042 | i*86:OS/2:*:*) |
| 1001 | 1043 | # If we were able to find `uname', then EMX Unix compatibility |
| 1002 | 1044 | # is probably installed. |
| @@ -1024,11 +1066,11 @@ | ||
| 1024 | 1066 | else |
| 1025 | 1067 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
| 1026 | 1068 | fi |
| 1027 | 1069 | exit ;; |
| 1028 | 1070 | i*86:*:5:[678]*) |
| 1029 | - # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
| 1071 | + # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
| 1030 | 1072 | case `/bin/uname -X | grep "^Machine"` in |
| 1031 | 1073 | *486*) UNAME_MACHINE=i486 ;; |
| 1032 | 1074 | *Pentium) UNAME_MACHINE=i586 ;; |
| 1033 | 1075 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
| 1034 | 1076 | esac |
| @@ -1052,17 +1094,17 @@ | ||
| 1052 | 1094 | echo ${UNAME_MACHINE}-pc-sysv32 |
| 1053 | 1095 | fi |
| 1054 | 1096 | exit ;; |
| 1055 | 1097 | pc:*:*:*) |
| 1056 | 1098 | # Left here for compatibility: |
| 1057 | - # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
| 1058 | - # the processor, so we play safe by assuming i586. | |
| 1099 | + # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
| 1100 | + # the processor, so we play safe by assuming i586. | |
| 1059 | 1101 | # Note: whatever this is, it MUST be the same as what config.sub |
| 1060 | 1102 | # prints for the "djgpp" host, or else GDB configury will decide that |
| 1061 | 1103 | # this is a cross-build. |
| 1062 | 1104 | echo i586-pc-msdosdjgpp |
| 1063 | - exit ;; | |
| 1105 | + exit ;; | |
| 1064 | 1106 | Intel:Mach:3*:*) |
| 1065 | 1107 | echo i386-pc-mach3 |
| 1066 | 1108 | exit ;; |
| 1067 | 1109 | paragon:*:*:*) |
| 1068 | 1110 | echo i860-intel-osf1 |
| @@ -1093,12 +1135,12 @@ | ||
| 1093 | 1135 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| 1094 | 1136 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
| 1095 | 1137 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
| 1096 | 1138 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
| 1097 | 1139 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
| 1098 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
| 1099 | - && { echo i486-ncr-sysv4; exit; } ;; | |
| 1140 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
| 1141 | + && { echo i486-ncr-sysv4; exit; } ;; | |
| 1100 | 1142 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
| 1101 | 1143 | OS_REL='.3' |
| 1102 | 1144 | test -r /etc/.relid \ |
| 1103 | 1145 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
| 1104 | 1146 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| @@ -1137,14 +1179,14 @@ | ||
| 1137 | 1179 | echo ${UNAME_MACHINE}-sni-sysv4 |
| 1138 | 1180 | else |
| 1139 | 1181 | echo ns32k-sni-sysv |
| 1140 | 1182 | fi |
| 1141 | 1183 | exit ;; |
| 1142 | - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
| 1143 | - # says <[email protected]> | |
| 1144 | - echo i586-unisys-sysv4 | |
| 1145 | - exit ;; | |
| 1184 | + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
| 1185 | + # says <[email protected]> | |
| 1186 | + echo i586-unisys-sysv4 | |
| 1187 | + exit ;; | |
| 1146 | 1188 | *:UNIX_System_V:4*:FTX*) |
| 1147 | 1189 | # From Gerald Hewes <[email protected]>. |
| 1148 | 1190 | # How about differentiating between stratus architectures? -djm |
| 1149 | 1191 | echo hppa1.1-stratus-sysv4 |
| 1150 | 1192 | exit ;; |
| @@ -1166,15 +1208,15 @@ | ||
| 1166 | 1208 | news*:NEWS-OS:6*:*) |
| 1167 | 1209 | echo mips-sony-newsos6 |
| 1168 | 1210 | exit ;; |
| 1169 | 1211 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
| 1170 | 1212 | if [ -d /usr/nec ]; then |
| 1171 | - echo mips-nec-sysv${UNAME_RELEASE} | |
| 1213 | + echo mips-nec-sysv${UNAME_RELEASE} | |
| 1172 | 1214 | else |
| 1173 | - echo mips-unknown-sysv${UNAME_RELEASE} | |
| 1215 | + echo mips-unknown-sysv${UNAME_RELEASE} | |
| 1174 | 1216 | fi |
| 1175 | - exit ;; | |
| 1217 | + exit ;; | |
| 1176 | 1218 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
| 1177 | 1219 | echo powerpc-be-beos |
| 1178 | 1220 | exit ;; |
| 1179 | 1221 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| 1180 | 1222 | echo powerpc-apple-beos |
| @@ -1183,10 +1225,13 @@ | ||
| 1183 | 1225 | echo i586-pc-beos |
| 1184 | 1226 | exit ;; |
| 1185 | 1227 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1186 | 1228 | echo i586-pc-haiku |
| 1187 | 1229 | exit ;; |
| 1230 | + x86_64:Haiku:*:*) | |
| 1231 | + echo x86_64-unknown-haiku | |
| 1232 | + exit ;; | |
| 1188 | 1233 | SX-4:SUPER-UX:*:*) |
| 1189 | 1234 | echo sx4-nec-superux${UNAME_RELEASE} |
| 1190 | 1235 | exit ;; |
| 1191 | 1236 | SX-5:SUPER-UX:*:*) |
| 1192 | 1237 | echo sx5-nec-superux${UNAME_RELEASE} |
| @@ -1209,23 +1254,35 @@ | ||
| 1209 | 1254 | *:Rhapsody:*:*) |
| 1210 | 1255 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 1211 | 1256 | exit ;; |
| 1212 | 1257 | *:Darwin:*:*) |
| 1213 | 1258 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| 1214 | - case $UNAME_PROCESSOR in | |
| 1215 | - i386) | |
| 1216 | - eval $set_cc_for_build | |
| 1217 | - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
| 1218 | - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
| 1219 | - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
| 1220 | - grep IS_64BIT_ARCH >/dev/null | |
| 1221 | - then | |
| 1222 | - UNAME_PROCESSOR="x86_64" | |
| 1223 | - fi | |
| 1224 | - fi ;; | |
| 1225 | - unknown) UNAME_PROCESSOR=powerpc ;; | |
| 1226 | - esac | |
| 1259 | + eval $set_cc_for_build | |
| 1260 | + if test "$UNAME_PROCESSOR" = unknown ; then | |
| 1261 | + UNAME_PROCESSOR=powerpc | |
| 1262 | + fi | |
| 1263 | + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |
| 1264 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
| 1265 | + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
| 1266 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
| 1267 | + grep IS_64BIT_ARCH >/dev/null | |
| 1268 | + then | |
| 1269 | + case $UNAME_PROCESSOR in | |
| 1270 | + i386) UNAME_PROCESSOR=x86_64 ;; | |
| 1271 | + powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
| 1272 | + esac | |
| 1273 | + fi | |
| 1274 | + fi | |
| 1275 | + elif test "$UNAME_PROCESSOR" = i386 ; then | |
| 1276 | + # Avoid executing cc on OS X 10.9, as it ships with a stub | |
| 1277 | + # that puts up a graphical alert prompting to install | |
| 1278 | + # developer tools. Any system running Mac OS X 10.7 or | |
| 1279 | + # later (Darwin 11 and later) is required to have a 64-bit | |
| 1280 | + # processor. This is not true of the ARM version of Darwin | |
| 1281 | + # that Apple uses in portable devices. | |
| 1282 | + UNAME_PROCESSOR=x86_64 | |
| 1283 | + fi | |
| 1227 | 1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| 1228 | 1285 | exit ;; |
| 1229 | 1286 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| 1230 | 1287 | UNAME_PROCESSOR=`uname -p` |
| 1231 | 1288 | if test "$UNAME_PROCESSOR" = "x86"; then |
| @@ -1238,11 +1295,11 @@ | ||
| 1238 | 1295 | echo i386-pc-qnx |
| 1239 | 1296 | exit ;; |
| 1240 | 1297 | NEO-?:NONSTOP_KERNEL:*:*) |
| 1241 | 1298 | echo neo-tandem-nsk${UNAME_RELEASE} |
| 1242 | 1299 | exit ;; |
| 1243 | - NSE-?:NONSTOP_KERNEL:*:*) | |
| 1300 | + NSE-*:NONSTOP_KERNEL:*:*) | |
| 1244 | 1301 | echo nse-tandem-nsk${UNAME_RELEASE} |
| 1245 | 1302 | exit ;; |
| 1246 | 1303 | NSR-?:NONSTOP_KERNEL:*:*) |
| 1247 | 1304 | echo nsr-tandem-nsk${UNAME_RELEASE} |
| 1248 | 1305 | exit ;; |
| @@ -1283,17 +1340,17 @@ | ||
| 1283 | 1340 | exit ;; |
| 1284 | 1341 | *:ITS:*:*) |
| 1285 | 1342 | echo pdp10-unknown-its |
| 1286 | 1343 | exit ;; |
| 1287 | 1344 | SEI:*:*:SEIUX) |
| 1288 | - echo mips-sei-seiux${UNAME_RELEASE} | |
| 1345 | + echo mips-sei-seiux${UNAME_RELEASE} | |
| 1289 | 1346 | exit ;; |
| 1290 | 1347 | *:DragonFly:*:*) |
| 1291 | 1348 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
| 1292 | 1349 | exit ;; |
| 1293 | 1350 | *:*VMS:*:*) |
| 1294 | - UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
| 1351 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
| 1295 | 1352 | case "${UNAME_MACHINE}" in |
| 1296 | 1353 | A*) echo alpha-dec-vms ; exit ;; |
| 1297 | 1354 | I*) echo ia64-dec-vms ; exit ;; |
| 1298 | 1355 | V*) echo vax-dec-vms ; exit ;; |
| 1299 | 1356 | esac ;; |
| @@ -1307,162 +1364,14 @@ | ||
| 1307 | 1364 | echo ${UNAME_MACHINE}-pc-rdos |
| 1308 | 1365 | exit ;; |
| 1309 | 1366 | i*86:AROS:*:*) |
| 1310 | 1367 | echo ${UNAME_MACHINE}-pc-aros |
| 1311 | 1368 | exit ;; |
| 1312 | -esac | |
| 1313 | - | |
| 1314 | -#echo '(No uname command or uname output not recognized.)' 1>&2 | |
| 1315 | -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
| 1316 | - | |
| 1317 | -eval $set_cc_for_build | |
| 1318 | -cat >$dummy.c <<EOF | |
| 1319 | -#ifdef _SEQUENT_ | |
| 1320 | -# include <sys/types.h> | |
| 1321 | -# include <sys/utsname.h> | |
| 1322 | -#endif | |
| 1323 | -main () | |
| 1324 | -{ | |
| 1325 | -#if defined (sony) | |
| 1326 | -#if defined (MIPSEB) | |
| 1327 | - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
| 1328 | - I don't know.... */ | |
| 1329 | - printf ("mips-sony-bsd\n"); exit (0); | |
| 1330 | -#else | |
| 1331 | -#include <sys/param.h> | |
| 1332 | - printf ("m68k-sony-newsos%s\n", | |
| 1333 | -#ifdef NEWSOS4 | |
| 1334 | - "4" | |
| 1335 | -#else | |
| 1336 | - "" | |
| 1337 | -#endif | |
| 1338 | - ); exit (0); | |
| 1339 | -#endif | |
| 1340 | -#endif | |
| 1341 | - | |
| 1342 | -#if defined (__arm) && defined (__acorn) && defined (__unix) | |
| 1343 | - printf ("arm-acorn-riscix\n"); exit (0); | |
| 1344 | -#endif | |
| 1345 | - | |
| 1346 | -#if defined (hp300) && !defined (hpux) | |
| 1347 | - printf ("m68k-hp-bsd\n"); exit (0); | |
| 1348 | -#endif | |
| 1349 | - | |
| 1350 | -#if defined (NeXT) | |
| 1351 | -#if !defined (__ARCHITECTURE__) | |
| 1352 | -#define __ARCHITECTURE__ "m68k" | |
| 1353 | -#endif | |
| 1354 | - int version; | |
| 1355 | - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | |
| 1356 | - if (version < 4) | |
| 1357 | - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | |
| 1358 | - else | |
| 1359 | - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | |
| 1360 | - exit (0); | |
| 1361 | -#endif | |
| 1362 | - | |
| 1363 | -#if defined (MULTIMAX) || defined (n16) | |
| 1364 | -#if defined (UMAXV) | |
| 1365 | - printf ("ns32k-encore-sysv\n"); exit (0); | |
| 1366 | -#else | |
| 1367 | -#if defined (CMU) | |
| 1368 | - printf ("ns32k-encore-mach\n"); exit (0); | |
| 1369 | -#else | |
| 1370 | - printf ("ns32k-encore-bsd\n"); exit (0); | |
| 1371 | -#endif | |
| 1372 | -#endif | |
| 1373 | -#endif | |
| 1374 | - | |
| 1375 | -#if defined (__386BSD__) | |
| 1376 | - printf ("i386-pc-bsd\n"); exit (0); | |
| 1377 | -#endif | |
| 1378 | - | |
| 1379 | -#if defined (sequent) | |
| 1380 | -#if defined (i386) | |
| 1381 | - printf ("i386-sequent-dynix\n"); exit (0); | |
| 1382 | -#endif | |
| 1383 | -#if defined (ns32000) | |
| 1384 | - printf ("ns32k-sequent-dynix\n"); exit (0); | |
| 1385 | -#endif | |
| 1386 | -#endif | |
| 1387 | - | |
| 1388 | -#if defined (_SEQUENT_) | |
| 1389 | - struct utsname un; | |
| 1390 | - | |
| 1391 | - uname(&un); | |
| 1392 | - | |
| 1393 | - if (strncmp(un.version, "V2", 2) == 0) { | |
| 1394 | - printf ("i386-sequent-ptx2\n"); exit (0); | |
| 1395 | - } | |
| 1396 | - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | |
| 1397 | - printf ("i386-sequent-ptx1\n"); exit (0); | |
| 1398 | - } | |
| 1399 | - printf ("i386-sequent-ptx\n"); exit (0); | |
| 1400 | - | |
| 1401 | -#endif | |
| 1402 | - | |
| 1403 | -#if defined (vax) | |
| 1404 | -# if !defined (ultrix) | |
| 1405 | -# include <sys/param.h> | |
| 1406 | -# if defined (BSD) | |
| 1407 | -# if BSD == 43 | |
| 1408 | - printf ("vax-dec-bsd4.3\n"); exit (0); | |
| 1409 | -# else | |
| 1410 | -# if BSD == 199006 | |
| 1411 | - printf ("vax-dec-bsd4.3reno\n"); exit (0); | |
| 1412 | -# else | |
| 1413 | - printf ("vax-dec-bsd\n"); exit (0); | |
| 1414 | -# endif | |
| 1415 | -# endif | |
| 1416 | -# else | |
| 1417 | - printf ("vax-dec-bsd\n"); exit (0); | |
| 1418 | -# endif | |
| 1419 | -# else | |
| 1420 | - printf ("vax-dec-ultrix\n"); exit (0); | |
| 1421 | -# endif | |
| 1422 | -#endif | |
| 1423 | - | |
| 1424 | -#if defined (alliant) && defined (i860) | |
| 1425 | - printf ("i860-alliant-bsd\n"); exit (0); | |
| 1426 | -#endif | |
| 1427 | - | |
| 1428 | - exit (1); | |
| 1429 | -} | |
| 1430 | -EOF | |
| 1431 | - | |
| 1432 | -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | |
| 1433 | - { echo "$SYSTEM_NAME"; exit; } | |
| 1434 | - | |
| 1435 | -# Apollos put the system type in the environment. | |
| 1436 | - | |
| 1437 | -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | |
| 1438 | - | |
| 1439 | -# Convex versions that predate uname can use getsysinfo(1) | |
| 1440 | - | |
| 1441 | -if [ -x /usr/convex/getsysinfo ] | |
| 1442 | -then | |
| 1443 | - case `getsysinfo -f cpu_type` in | |
| 1444 | - c1*) | |
| 1445 | - echo c1-convex-bsd | |
| 1446 | - exit ;; | |
| 1447 | - c2*) | |
| 1448 | - if getsysinfo -f scalar_acc | |
| 1449 | - then echo c32-convex-bsd | |
| 1450 | - else echo c2-convex-bsd | |
| 1451 | - fi | |
| 1452 | - exit ;; | |
| 1453 | - c34*) | |
| 1454 | - echo c34-convex-bsd | |
| 1455 | - exit ;; | |
| 1456 | - c38*) | |
| 1457 | - echo c38-convex-bsd | |
| 1458 | - exit ;; | |
| 1459 | - c4*) | |
| 1460 | - echo c4-convex-bsd | |
| 1461 | - exit ;; | |
| 1462 | - esac | |
| 1463 | -fi | |
| 1369 | + x86_64:VMkernel:*:*) | |
| 1370 | + echo ${UNAME_MACHINE}-unknown-esx | |
| 1371 | + exit ;; | |
| 1372 | +esac | |
| 1464 | 1373 | |
| 1465 | 1374 | cat >&2 <<EOF |
| 1466 | 1375 | $0: unable to guess system type |
| 1467 | 1376 | |
| 1468 | 1377 | This script, last modified $timestamp, has failed to recognize |
| 1469 | 1378 |
| --- autosetup/config.guess | |
| +++ autosetup/config.guess | |
| @@ -1,44 +1,38 @@ | |
| 1 | #! /bin/sh |
| 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | # Free Software Foundation, Inc. |
| 6 | |
| 7 | timestamp='2010-09-24' |
| 8 | |
| 9 | # This file is free software; you can redistribute it and/or modify it |
| 10 | # under the terms of the GNU General Public License as published by |
| 11 | # the Free Software Foundation; either version 2 of the License, or |
| 12 | # (at your option) any later version. |
| 13 | # |
| 14 | # This program is distributed in the hope that it will be useful, but |
| 15 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | # General Public License for more details. |
| 18 | # |
| 19 | # You should have received a copy of the GNU General Public License |
| 20 | # along with this program; if not, write to the Free Software |
| 21 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| 22 | # 02110-1301, USA. |
| 23 | # |
| 24 | # As a special exception to the GNU General Public License, if you |
| 25 | # distribute this file as part of a program that contains a |
| 26 | # configuration script generated by Autoconf, you may include it under |
| 27 | # the same distribution terms that you use for the rest of that program. |
| 28 | |
| 29 | |
| 30 | # Originally written by Per Bothner. Please send patches (context |
| 31 | # diff format) to <[email protected]> and include a ChangeLog |
| 32 | # entry. |
| 33 | # |
| 34 | # This script attempts to guess a canonical system name similar to |
| 35 | # config.sub. If it succeeds, it prints the system name on stdout, and |
| 36 | # exits with 0. Otherwise, it exits with 1. |
| 37 | # |
| 38 | # You can get the latest version of this script from: |
| 39 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
| 40 | |
| 41 | me=`echo "$0" | sed -e 's,.*/,,'` |
| 42 | |
| 43 | usage="\ |
| 44 | Usage: $0 [OPTION] |
| @@ -54,13 +48,11 @@ | |
| 54 | |
| 55 | version="\ |
| 56 | GNU config.guess ($timestamp) |
| 57 | |
| 58 | Originally written by Per Bothner. |
| 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 60 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
| 61 | Software Foundation, Inc. |
| 62 | |
| 63 | This is free software; see the source for copying conditions. There is NO |
| 64 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 65 | |
| 66 | help=" |
| @@ -90,11 +82,11 @@ | |
| 90 | if test $# != 0; then |
| 91 | echo "$me: too many arguments$help" >&2 |
| 92 | exit 1 |
| 93 | fi |
| 94 | |
| 95 | trap 'exit 1' HUP INT TERM |
| 96 | |
| 97 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
| 98 | # compiler to aid in system detection is discouraged as it requires |
| 99 | # temporary files to be created and, as you can see below, it is a |
| 100 | # headache to deal with in a portable fashion. |
| @@ -104,11 +96,11 @@ | |
| 104 | |
| 105 | # Portable tmp directory creation inspired by the Autoconf team. |
| 106 | |
| 107 | set_cc_for_build=' |
| 108 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
| 109 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; |
| 110 | : ${TMPDIR=/tmp} ; |
| 111 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| 112 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
| 113 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
| 114 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
| @@ -137,17 +129,38 @@ | |
| 137 | |
| 138 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
| 139 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
| 140 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
| 141 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
| 142 | |
| 143 | # Note: order is significant - the case branches are not exclusive. |
| 144 | |
| 145 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 146 | *:NetBSD:*:*) |
| 147 | # NetBSD (nbsd) targets should (where applicable) match one or |
| 148 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
| 149 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
| 150 | # switched to ELF, *-*-netbsd* would select the old |
| 151 | # object file format. This provides both forward |
| 152 | # compatibility and a consistent mechanism for selecting the |
| 153 | # object file format. |
| @@ -179,11 +192,11 @@ | |
| 179 | else |
| 180 | os=netbsdelf |
| 181 | fi |
| 182 | ;; |
| 183 | *) |
| 184 | os=netbsd |
| 185 | ;; |
| 186 | esac |
| 187 | # The OS release |
| 188 | # Debian GNU/NetBSD machines have a different userland, and |
| 189 | # thus, need a distinct triplet. However, they do not need |
| @@ -200,10 +213,14 @@ | |
| 200 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
| 201 | # contains redundant information, the shorter form: |
| 202 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| 203 | echo "${machine}-${os}${release}" |
| 204 | exit ;; |
| 205 | *:OpenBSD:*:*) |
| 206 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| 207 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| 208 | exit ;; |
| 209 | *:ekkoBSD:*:*) |
| @@ -222,11 +239,11 @@ | |
| 222 | case $UNAME_RELEASE in |
| 223 | *4.0) |
| 224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
| 225 | ;; |
| 226 | *5.*) |
| 227 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
| 228 | ;; |
| 229 | esac |
| 230 | # According to Compaq, /usr/sbin/psrinfo has been available on |
| 231 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
| 232 | # covers most systems running today. This code pipes the CPU |
| @@ -268,11 +285,14 @@ | |
| 268 | # A Vn.n version is a released version. |
| 269 | # A Tn.n version is a released field test version. |
| 270 | # A Xn.n version is an unreleased experimental baselevel. |
| 271 | # 1.2 uses "1.2" for uname -r. |
| 272 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 273 | exit ;; |
| 274 | Alpha\ *:Windows_NT*:*) |
| 275 | # How do we know it's Interix rather than the generic POSIX subsystem? |
| 276 | # Should we change UNAME_MACHINE based on the output of uname instead |
| 277 | # of the specific Alpha model? |
| 278 | echo alpha-pc-interix |
| @@ -294,16 +314,16 @@ | |
| 294 | exit ;; |
| 295 | *:z/VM:*:*) |
| 296 | echo s390-ibm-zvmoe |
| 297 | exit ;; |
| 298 | *:OS400:*:*) |
| 299 | echo powerpc-ibm-os400 |
| 300 | exit ;; |
| 301 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 302 | echo arm-acorn-riscix${UNAME_RELEASE} |
| 303 | exit ;; |
| 304 | arm:riscos:*:*|arm:RISCOS:*:*) |
| 305 | echo arm-unknown-riscos |
| 306 | exit ;; |
| 307 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| 308 | echo hppa1.1-hitachi-hiuxmpp |
| 309 | exit ;; |
| @@ -393,27 +413,27 @@ | |
| 393 | # to the lowercase version "mint" (or "freemint"). Finally |
| 394 | # the system name "TOS" denotes a system which is actually not |
| 395 | # MiNT. But MiNT is downward compatible to TOS, so this should |
| 396 | # be no problem. |
| 397 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
| 398 | echo m68k-atari-mint${UNAME_RELEASE} |
| 399 | exit ;; |
| 400 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
| 401 | echo m68k-atari-mint${UNAME_RELEASE} |
| 402 | exit ;; |
| 403 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
| 404 | echo m68k-atari-mint${UNAME_RELEASE} |
| 405 | exit ;; |
| 406 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
| 407 | echo m68k-milan-mint${UNAME_RELEASE} |
| 408 | exit ;; |
| 409 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
| 410 | echo m68k-hades-mint${UNAME_RELEASE} |
| 411 | exit ;; |
| 412 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
| 413 | echo m68k-unknown-mint${UNAME_RELEASE} |
| 414 | exit ;; |
| 415 | m68k:machten:*:*) |
| 416 | echo m68k-apple-machten${UNAME_RELEASE} |
| 417 | exit ;; |
| 418 | powerpc:machten:*:*) |
| 419 | echo powerpc-apple-machten${UNAME_RELEASE} |
| @@ -479,12 +499,12 @@ | |
| 479 | exit ;; |
| 480 | m88k:*:3*:R3*) |
| 481 | echo m88k-motorola-sysv3 |
| 482 | exit ;; |
| 483 | AViiON:dgux:*:*) |
| 484 | # DG/UX returns AViiON for all architectures |
| 485 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
| 486 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
| 487 | then |
| 488 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
| 489 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
| 490 | then |
| @@ -493,11 +513,11 @@ | |
| 493 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
| 494 | fi |
| 495 | else |
| 496 | echo i586-dg-dgux${UNAME_RELEASE} |
| 497 | fi |
| 498 | exit ;; |
| 499 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
| 500 | echo m88k-dolphin-sysv3 |
| 501 | exit ;; |
| 502 | M88*:*:R3*:*) |
| 503 | # Delta 88k system running SVR3 |
| @@ -593,56 +613,56 @@ | |
| 593 | 9000/31? ) HP_ARCH=m68000 ;; |
| 594 | 9000/[34]?? ) HP_ARCH=m68k ;; |
| 595 | 9000/[678][0-9][0-9]) |
| 596 | if [ -x /usr/bin/getconf ]; then |
| 597 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
| 598 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
| 599 | case "${sc_cpu_version}" in |
| 600 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
| 601 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
| 602 | 532) # CPU_PA_RISC2_0 |
| 603 | case "${sc_kernel_bits}" in |
| 604 | 32) HP_ARCH="hppa2.0n" ;; |
| 605 | 64) HP_ARCH="hppa2.0w" ;; |
| 606 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
| 607 | esac ;; |
| 608 | esac |
| 609 | fi |
| 610 | if [ "${HP_ARCH}" = "" ]; then |
| 611 | eval $set_cc_for_build |
| 612 | sed 's/^ //' << EOF >$dummy.c |
| 613 | |
| 614 | #define _HPUX_SOURCE |
| 615 | #include <stdlib.h> |
| 616 | #include <unistd.h> |
| 617 | |
| 618 | int main () |
| 619 | { |
| 620 | #if defined(_SC_KERNEL_BITS) |
| 621 | long bits = sysconf(_SC_KERNEL_BITS); |
| 622 | #endif |
| 623 | long cpu = sysconf (_SC_CPU_VERSION); |
| 624 | |
| 625 | switch (cpu) |
| 626 | { |
| 627 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
| 628 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
| 629 | case CPU_PA_RISC2_0: |
| 630 | #if defined(_SC_KERNEL_BITS) |
| 631 | switch (bits) |
| 632 | { |
| 633 | case 64: puts ("hppa2.0w"); break; |
| 634 | case 32: puts ("hppa2.0n"); break; |
| 635 | default: puts ("hppa2.0"); break; |
| 636 | } break; |
| 637 | #else /* !defined(_SC_KERNEL_BITS) */ |
| 638 | puts ("hppa2.0"); break; |
| 639 | #endif |
| 640 | default: puts ("hppa1.0"); break; |
| 641 | } |
| 642 | exit (0); |
| 643 | } |
| 644 | EOF |
| 645 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
| 646 | test -z "$HP_ARCH" && HP_ARCH=hppa |
| 647 | fi ;; |
| 648 | esac |
| @@ -729,26 +749,26 @@ | |
| 729 | parisc*:Lites*:*:*) |
| 730 | echo hppa1.1-hp-lites |
| 731 | exit ;; |
| 732 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
| 733 | echo c1-convex-bsd |
| 734 | exit ;; |
| 735 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
| 736 | if getsysinfo -f scalar_acc |
| 737 | then echo c32-convex-bsd |
| 738 | else echo c2-convex-bsd |
| 739 | fi |
| 740 | exit ;; |
| 741 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
| 742 | echo c34-convex-bsd |
| 743 | exit ;; |
| 744 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
| 745 | echo c38-convex-bsd |
| 746 | exit ;; |
| 747 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
| 748 | echo c4-convex-bsd |
| 749 | exit ;; |
| 750 | CRAY*Y-MP:*:*:*) |
| 751 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 752 | exit ;; |
| 753 | CRAY*[A-Z]90:*:*:*) |
| 754 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
| @@ -768,18 +788,18 @@ | |
| 768 | *:UNICOS/mp:*:*) |
| 769 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 770 | exit ;; |
| 771 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
| 772 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 773 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| 774 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
| 775 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| 776 | exit ;; |
| 777 | 5000:UNIX_System_V:4.*:*) |
| 778 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| 779 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
| 780 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| 781 | exit ;; |
| 782 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
| 783 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
| 784 | exit ;; |
| 785 | sparc*:BSD/OS:*:*) |
| @@ -787,37 +807,39 @@ | |
| 787 | exit ;; |
| 788 | *:BSD/OS:*:*) |
| 789 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
| 790 | exit ;; |
| 791 | *:FreeBSD:*:*) |
| 792 | case ${UNAME_MACHINE} in |
| 793 | pc98) |
| 794 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 795 | amd64) |
| 796 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 797 | *) |
| 798 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 799 | esac |
| 800 | exit ;; |
| 801 | i*:CYGWIN*:*) |
| 802 | echo ${UNAME_MACHINE}-pc-cygwin |
| 803 | exit ;; |
| 804 | *:MINGW*:*) |
| 805 | echo ${UNAME_MACHINE}-pc-mingw32 |
| 806 | exit ;; |
| 807 | i*:MSYS*:*) |
| 808 | echo ${UNAME_MACHINE}-pc-msys |
| 809 | exit ;; |
| 810 | i*:windows32*:*) |
| 811 | # uname -m includes "-pc" on this system. |
| 812 | echo ${UNAME_MACHINE}-mingw32 |
| 813 | exit ;; |
| 814 | i*:PW*:*) |
| 815 | echo ${UNAME_MACHINE}-pc-pw32 |
| 816 | exit ;; |
| 817 | *:Interix*:*) |
| 818 | case ${UNAME_MACHINE} in |
| 819 | x86) |
| 820 | echo i586-pc-interix${UNAME_RELEASE} |
| 821 | exit ;; |
| 822 | authenticamd | genuineintel | EM64T) |
| 823 | echo x86_64-unknown-interix${UNAME_RELEASE} |
| @@ -850,74 +872,85 @@ | |
| 850 | prep*:SunOS:5.*:*) |
| 851 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 852 | exit ;; |
| 853 | *:GNU:*:*) |
| 854 | # the GNU system |
| 855 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| 856 | exit ;; |
| 857 | *:GNU/*:*:*) |
| 858 | # other systems with GNU libc and userland |
| 859 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
| 860 | exit ;; |
| 861 | i*86:Minix:*:*) |
| 862 | echo ${UNAME_MACHINE}-pc-minix |
| 863 | exit ;; |
| 864 | alpha:Linux:*:*) |
| 865 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 866 | EV5) UNAME_MACHINE=alphaev5 ;; |
| 867 | EV56) UNAME_MACHINE=alphaev56 ;; |
| 868 | PCA56) UNAME_MACHINE=alphapca56 ;; |
| 869 | PCA57) UNAME_MACHINE=alphapca56 ;; |
| 870 | EV6) UNAME_MACHINE=alphaev6 ;; |
| 871 | EV67) UNAME_MACHINE=alphaev67 ;; |
| 872 | EV68*) UNAME_MACHINE=alphaev68 ;; |
| 873 | esac |
| 874 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
| 875 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
| 876 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
| 877 | exit ;; |
| 878 | arm*:Linux:*:*) |
| 879 | eval $set_cc_for_build |
| 880 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 881 | | grep -q __ARM_EABI__ |
| 882 | then |
| 883 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 884 | else |
| 885 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
| 886 | fi |
| 887 | exit ;; |
| 888 | avr32*:Linux:*:*) |
| 889 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 890 | exit ;; |
| 891 | cris:Linux:*:*) |
| 892 | echo cris-axis-linux-gnu |
| 893 | exit ;; |
| 894 | crisv32:Linux:*:*) |
| 895 | echo crisv32-axis-linux-gnu |
| 896 | exit ;; |
| 897 | frv:Linux:*:*) |
| 898 | echo frv-unknown-linux-gnu |
| 899 | exit ;; |
| 900 | i*86:Linux:*:*) |
| 901 | LIBC=gnu |
| 902 | eval $set_cc_for_build |
| 903 | sed 's/^ //' << EOF >$dummy.c |
| 904 | #ifdef __dietlibc__ |
| 905 | LIBC=dietlibc |
| 906 | #endif |
| 907 | EOF |
| 908 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
| 909 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
| 910 | exit ;; |
| 911 | ia64:Linux:*:*) |
| 912 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 913 | exit ;; |
| 914 | m32r*:Linux:*:*) |
| 915 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 916 | exit ;; |
| 917 | m68*:Linux:*:*) |
| 918 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 919 | exit ;; |
| 920 | mips:Linux:*:* | mips64:Linux:*:*) |
| 921 | eval $set_cc_for_build |
| 922 | sed 's/^ //' << EOF >$dummy.c |
| 923 | #undef CPU |
| @@ -932,71 +965,80 @@ | |
| 932 | CPU= |
| 933 | #endif |
| 934 | #endif |
| 935 | EOF |
| 936 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| 937 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
| 938 | ;; |
| 939 | or32:Linux:*:*) |
| 940 | echo or32-unknown-linux-gnu |
| 941 | exit ;; |
| 942 | padre:Linux:*:*) |
| 943 | echo sparc-unknown-linux-gnu |
| 944 | exit ;; |
| 945 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 946 | echo hppa64-unknown-linux-gnu |
| 947 | exit ;; |
| 948 | parisc:Linux:*:* | hppa:Linux:*:*) |
| 949 | # Look for CPU level |
| 950 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| 951 | PA7*) echo hppa1.1-unknown-linux-gnu ;; |
| 952 | PA8*) echo hppa2.0-unknown-linux-gnu ;; |
| 953 | *) echo hppa-unknown-linux-gnu ;; |
| 954 | esac |
| 955 | exit ;; |
| 956 | ppc64:Linux:*:*) |
| 957 | echo powerpc64-unknown-linux-gnu |
| 958 | exit ;; |
| 959 | ppc:Linux:*:*) |
| 960 | echo powerpc-unknown-linux-gnu |
| 961 | exit ;; |
| 962 | s390:Linux:*:* | s390x:Linux:*:*) |
| 963 | echo ${UNAME_MACHINE}-ibm-linux |
| 964 | exit ;; |
| 965 | sh64*:Linux:*:*) |
| 966 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 967 | exit ;; |
| 968 | sh*:Linux:*:*) |
| 969 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 970 | exit ;; |
| 971 | sparc:Linux:*:* | sparc64:Linux:*:*) |
| 972 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 973 | exit ;; |
| 974 | tile*:Linux:*:*) |
| 975 | echo ${UNAME_MACHINE}-tilera-linux-gnu |
| 976 | exit ;; |
| 977 | vax:Linux:*:*) |
| 978 | echo ${UNAME_MACHINE}-dec-linux-gnu |
| 979 | exit ;; |
| 980 | x86_64:Linux:*:*) |
| 981 | echo x86_64-unknown-linux-gnu |
| 982 | exit ;; |
| 983 | xtensa*:Linux:*:*) |
| 984 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 985 | exit ;; |
| 986 | i*86:DYNIX/ptx:4*:*) |
| 987 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| 988 | # earlier versions are messed up and put the nodename in both |
| 989 | # sysname and nodename. |
| 990 | echo i386-sequent-sysv4 |
| 991 | exit ;; |
| 992 | i*86:UNIX_SV:4.2MP:2.*) |
| 993 | # Unixware is an offshoot of SVR4, but it has its own version |
| 994 | # number series starting with 2... |
| 995 | # I am not positive that other SVR4 systems won't match this, |
| 996 | # I just have to hope. -- rms. |
| 997 | # Use sysv4.2uw... so that sysv4* matches it. |
| 998 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
| 999 | exit ;; |
| 1000 | i*86:OS/2:*:*) |
| 1001 | # If we were able to find `uname', then EMX Unix compatibility |
| 1002 | # is probably installed. |
| @@ -1024,11 +1066,11 @@ | |
| 1024 | else |
| 1025 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
| 1026 | fi |
| 1027 | exit ;; |
| 1028 | i*86:*:5:[678]*) |
| 1029 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
| 1030 | case `/bin/uname -X | grep "^Machine"` in |
| 1031 | *486*) UNAME_MACHINE=i486 ;; |
| 1032 | *Pentium) UNAME_MACHINE=i586 ;; |
| 1033 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
| 1034 | esac |
| @@ -1052,17 +1094,17 @@ | |
| 1052 | echo ${UNAME_MACHINE}-pc-sysv32 |
| 1053 | fi |
| 1054 | exit ;; |
| 1055 | pc:*:*:*) |
| 1056 | # Left here for compatibility: |
| 1057 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
| 1058 | # the processor, so we play safe by assuming i586. |
| 1059 | # Note: whatever this is, it MUST be the same as what config.sub |
| 1060 | # prints for the "djgpp" host, or else GDB configury will decide that |
| 1061 | # this is a cross-build. |
| 1062 | echo i586-pc-msdosdjgpp |
| 1063 | exit ;; |
| 1064 | Intel:Mach:3*:*) |
| 1065 | echo i386-pc-mach3 |
| 1066 | exit ;; |
| 1067 | paragon:*:*:*) |
| 1068 | echo i860-intel-osf1 |
| @@ -1093,12 +1135,12 @@ | |
| 1093 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| 1094 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
| 1095 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
| 1096 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
| 1097 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
| 1098 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| 1099 | && { echo i486-ncr-sysv4; exit; } ;; |
| 1100 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
| 1101 | OS_REL='.3' |
| 1102 | test -r /etc/.relid \ |
| 1103 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
| 1104 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| @@ -1137,14 +1179,14 @@ | |
| 1137 | echo ${UNAME_MACHINE}-sni-sysv4 |
| 1138 | else |
| 1139 | echo ns32k-sni-sysv |
| 1140 | fi |
| 1141 | exit ;; |
| 1142 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
| 1143 | # says <[email protected]> |
| 1144 | echo i586-unisys-sysv4 |
| 1145 | exit ;; |
| 1146 | *:UNIX_System_V:4*:FTX*) |
| 1147 | # From Gerald Hewes <[email protected]>. |
| 1148 | # How about differentiating between stratus architectures? -djm |
| 1149 | echo hppa1.1-stratus-sysv4 |
| 1150 | exit ;; |
| @@ -1166,15 +1208,15 @@ | |
| 1166 | news*:NEWS-OS:6*:*) |
| 1167 | echo mips-sony-newsos6 |
| 1168 | exit ;; |
| 1169 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
| 1170 | if [ -d /usr/nec ]; then |
| 1171 | echo mips-nec-sysv${UNAME_RELEASE} |
| 1172 | else |
| 1173 | echo mips-unknown-sysv${UNAME_RELEASE} |
| 1174 | fi |
| 1175 | exit ;; |
| 1176 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
| 1177 | echo powerpc-be-beos |
| 1178 | exit ;; |
| 1179 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| 1180 | echo powerpc-apple-beos |
| @@ -1183,10 +1225,13 @@ | |
| 1183 | echo i586-pc-beos |
| 1184 | exit ;; |
| 1185 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1186 | echo i586-pc-haiku |
| 1187 | exit ;; |
| 1188 | SX-4:SUPER-UX:*:*) |
| 1189 | echo sx4-nec-superux${UNAME_RELEASE} |
| 1190 | exit ;; |
| 1191 | SX-5:SUPER-UX:*:*) |
| 1192 | echo sx5-nec-superux${UNAME_RELEASE} |
| @@ -1209,23 +1254,35 @@ | |
| 1209 | *:Rhapsody:*:*) |
| 1210 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 1211 | exit ;; |
| 1212 | *:Darwin:*:*) |
| 1213 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| 1214 | case $UNAME_PROCESSOR in |
| 1215 | i386) |
| 1216 | eval $set_cc_for_build |
| 1217 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| 1218 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| 1219 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| 1220 | grep IS_64BIT_ARCH >/dev/null |
| 1221 | then |
| 1222 | UNAME_PROCESSOR="x86_64" |
| 1223 | fi |
| 1224 | fi ;; |
| 1225 | unknown) UNAME_PROCESSOR=powerpc ;; |
| 1226 | esac |
| 1227 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| 1228 | exit ;; |
| 1229 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| 1230 | UNAME_PROCESSOR=`uname -p` |
| 1231 | if test "$UNAME_PROCESSOR" = "x86"; then |
| @@ -1238,11 +1295,11 @@ | |
| 1238 | echo i386-pc-qnx |
| 1239 | exit ;; |
| 1240 | NEO-?:NONSTOP_KERNEL:*:*) |
| 1241 | echo neo-tandem-nsk${UNAME_RELEASE} |
| 1242 | exit ;; |
| 1243 | NSE-?:NONSTOP_KERNEL:*:*) |
| 1244 | echo nse-tandem-nsk${UNAME_RELEASE} |
| 1245 | exit ;; |
| 1246 | NSR-?:NONSTOP_KERNEL:*:*) |
| 1247 | echo nsr-tandem-nsk${UNAME_RELEASE} |
| 1248 | exit ;; |
| @@ -1283,17 +1340,17 @@ | |
| 1283 | exit ;; |
| 1284 | *:ITS:*:*) |
| 1285 | echo pdp10-unknown-its |
| 1286 | exit ;; |
| 1287 | SEI:*:*:SEIUX) |
| 1288 | echo mips-sei-seiux${UNAME_RELEASE} |
| 1289 | exit ;; |
| 1290 | *:DragonFly:*:*) |
| 1291 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
| 1292 | exit ;; |
| 1293 | *:*VMS:*:*) |
| 1294 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
| 1295 | case "${UNAME_MACHINE}" in |
| 1296 | A*) echo alpha-dec-vms ; exit ;; |
| 1297 | I*) echo ia64-dec-vms ; exit ;; |
| 1298 | V*) echo vax-dec-vms ; exit ;; |
| 1299 | esac ;; |
| @@ -1307,162 +1364,14 @@ | |
| 1307 | echo ${UNAME_MACHINE}-pc-rdos |
| 1308 | exit ;; |
| 1309 | i*86:AROS:*:*) |
| 1310 | echo ${UNAME_MACHINE}-pc-aros |
| 1311 | exit ;; |
| 1312 | esac |
| 1313 | |
| 1314 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
| 1315 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
| 1316 | |
| 1317 | eval $set_cc_for_build |
| 1318 | cat >$dummy.c <<EOF |
| 1319 | #ifdef _SEQUENT_ |
| 1320 | # include <sys/types.h> |
| 1321 | # include <sys/utsname.h> |
| 1322 | #endif |
| 1323 | main () |
| 1324 | { |
| 1325 | #if defined (sony) |
| 1326 | #if defined (MIPSEB) |
| 1327 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
| 1328 | I don't know.... */ |
| 1329 | printf ("mips-sony-bsd\n"); exit (0); |
| 1330 | #else |
| 1331 | #include <sys/param.h> |
| 1332 | printf ("m68k-sony-newsos%s\n", |
| 1333 | #ifdef NEWSOS4 |
| 1334 | "4" |
| 1335 | #else |
| 1336 | "" |
| 1337 | #endif |
| 1338 | ); exit (0); |
| 1339 | #endif |
| 1340 | #endif |
| 1341 | |
| 1342 | #if defined (__arm) && defined (__acorn) && defined (__unix) |
| 1343 | printf ("arm-acorn-riscix\n"); exit (0); |
| 1344 | #endif |
| 1345 | |
| 1346 | #if defined (hp300) && !defined (hpux) |
| 1347 | printf ("m68k-hp-bsd\n"); exit (0); |
| 1348 | #endif |
| 1349 | |
| 1350 | #if defined (NeXT) |
| 1351 | #if !defined (__ARCHITECTURE__) |
| 1352 | #define __ARCHITECTURE__ "m68k" |
| 1353 | #endif |
| 1354 | int version; |
| 1355 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
| 1356 | if (version < 4) |
| 1357 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
| 1358 | else |
| 1359 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
| 1360 | exit (0); |
| 1361 | #endif |
| 1362 | |
| 1363 | #if defined (MULTIMAX) || defined (n16) |
| 1364 | #if defined (UMAXV) |
| 1365 | printf ("ns32k-encore-sysv\n"); exit (0); |
| 1366 | #else |
| 1367 | #if defined (CMU) |
| 1368 | printf ("ns32k-encore-mach\n"); exit (0); |
| 1369 | #else |
| 1370 | printf ("ns32k-encore-bsd\n"); exit (0); |
| 1371 | #endif |
| 1372 | #endif |
| 1373 | #endif |
| 1374 | |
| 1375 | #if defined (__386BSD__) |
| 1376 | printf ("i386-pc-bsd\n"); exit (0); |
| 1377 | #endif |
| 1378 | |
| 1379 | #if defined (sequent) |
| 1380 | #if defined (i386) |
| 1381 | printf ("i386-sequent-dynix\n"); exit (0); |
| 1382 | #endif |
| 1383 | #if defined (ns32000) |
| 1384 | printf ("ns32k-sequent-dynix\n"); exit (0); |
| 1385 | #endif |
| 1386 | #endif |
| 1387 | |
| 1388 | #if defined (_SEQUENT_) |
| 1389 | struct utsname un; |
| 1390 | |
| 1391 | uname(&un); |
| 1392 | |
| 1393 | if (strncmp(un.version, "V2", 2) == 0) { |
| 1394 | printf ("i386-sequent-ptx2\n"); exit (0); |
| 1395 | } |
| 1396 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
| 1397 | printf ("i386-sequent-ptx1\n"); exit (0); |
| 1398 | } |
| 1399 | printf ("i386-sequent-ptx\n"); exit (0); |
| 1400 | |
| 1401 | #endif |
| 1402 | |
| 1403 | #if defined (vax) |
| 1404 | # if !defined (ultrix) |
| 1405 | # include <sys/param.h> |
| 1406 | # if defined (BSD) |
| 1407 | # if BSD == 43 |
| 1408 | printf ("vax-dec-bsd4.3\n"); exit (0); |
| 1409 | # else |
| 1410 | # if BSD == 199006 |
| 1411 | printf ("vax-dec-bsd4.3reno\n"); exit (0); |
| 1412 | # else |
| 1413 | printf ("vax-dec-bsd\n"); exit (0); |
| 1414 | # endif |
| 1415 | # endif |
| 1416 | # else |
| 1417 | printf ("vax-dec-bsd\n"); exit (0); |
| 1418 | # endif |
| 1419 | # else |
| 1420 | printf ("vax-dec-ultrix\n"); exit (0); |
| 1421 | # endif |
| 1422 | #endif |
| 1423 | |
| 1424 | #if defined (alliant) && defined (i860) |
| 1425 | printf ("i860-alliant-bsd\n"); exit (0); |
| 1426 | #endif |
| 1427 | |
| 1428 | exit (1); |
| 1429 | } |
| 1430 | EOF |
| 1431 | |
| 1432 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && |
| 1433 | { echo "$SYSTEM_NAME"; exit; } |
| 1434 | |
| 1435 | # Apollos put the system type in the environment. |
| 1436 | |
| 1437 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } |
| 1438 | |
| 1439 | # Convex versions that predate uname can use getsysinfo(1) |
| 1440 | |
| 1441 | if [ -x /usr/convex/getsysinfo ] |
| 1442 | then |
| 1443 | case `getsysinfo -f cpu_type` in |
| 1444 | c1*) |
| 1445 | echo c1-convex-bsd |
| 1446 | exit ;; |
| 1447 | c2*) |
| 1448 | if getsysinfo -f scalar_acc |
| 1449 | then echo c32-convex-bsd |
| 1450 | else echo c2-convex-bsd |
| 1451 | fi |
| 1452 | exit ;; |
| 1453 | c34*) |
| 1454 | echo c34-convex-bsd |
| 1455 | exit ;; |
| 1456 | c38*) |
| 1457 | echo c38-convex-bsd |
| 1458 | exit ;; |
| 1459 | c4*) |
| 1460 | echo c4-convex-bsd |
| 1461 | exit ;; |
| 1462 | esac |
| 1463 | fi |
| 1464 | |
| 1465 | cat >&2 <<EOF |
| 1466 | $0: unable to guess system type |
| 1467 | |
| 1468 | This script, last modified $timestamp, has failed to recognize |
| 1469 |
| --- autosetup/config.guess | |
| +++ autosetup/config.guess | |
| @@ -1,44 +1,38 @@ | |
| 1 | #! /bin/sh |
| 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright 1992-2014 Free Software Foundation, Inc. |
| 4 | |
| 5 | timestamp='2014-03-23' |
| 6 | |
| 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 |
| 9 | # the Free Software Foundation; either version 3 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # This program is distributed in the hope that it will be useful, but |
| 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | # General Public License for more details. |
| 16 | # |
| 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/>. |
| 19 | # |
| 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 |
| 22 | # configuration script generated by Autoconf, you may include it under |
| 23 | # the same distribution terms that you use for the rest of that |
| 24 | # program. This Exception is an additional permission under section 7 |
| 25 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 26 | # |
| 27 | # Originally written by Per Bothner. |
| 28 | # |
| 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;hb=HEAD |
| 31 | # |
| 32 | # Please send patches with a ChangeLog entry to [email protected]. |
| 33 | |
| 34 | |
| 35 | me=`echo "$0" | sed -e 's,.*/,,'` |
| 36 | |
| 37 | usage="\ |
| 38 | Usage: $0 [OPTION] |
| @@ -54,13 +48,11 @@ | |
| 48 | |
| 49 | version="\ |
| 50 | GNU config.guess ($timestamp) |
| 51 | |
| 52 | Originally written by Per Bothner. |
| 53 | Copyright 1992-2014 Free Software Foundation, Inc. |
| 54 | |
| 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." |
| 57 | |
| 58 | help=" |
| @@ -90,11 +82,11 @@ | |
| 82 | if test $# != 0; then |
| 83 | echo "$me: too many arguments$help" >&2 |
| 84 | exit 1 |
| 85 | fi |
| 86 | |
| 87 | trap 'exit 1' 1 2 15 |
| 88 | |
| 89 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
| 90 | # compiler to aid in system detection is discouraged as it requires |
| 91 | # temporary files to be created and, as you can see below, it is a |
| 92 | # headache to deal with in a portable fashion. |
| @@ -104,11 +96,11 @@ | |
| 96 | |
| 97 | # Portable tmp directory creation inspired by the Autoconf team. |
| 98 | |
| 99 | set_cc_for_build=' |
| 100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
| 101 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
| 102 | : ${TMPDIR=/tmp} ; |
| 103 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| 104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
| 105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
| 106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
| @@ -137,17 +129,38 @@ | |
| 129 | |
| 130 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
| 131 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
| 132 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
| 133 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
| 134 | |
| 135 | case "${UNAME_SYSTEM}" in |
| 136 | Linux|GNU|GNU/*) |
| 137 | # If the system lacks a compiler, then just pick glibc. |
| 138 | # We could probably try harder. |
| 139 | LIBC=gnu |
| 140 | |
| 141 | eval $set_cc_for_build |
| 142 | cat <<-EOF > $dummy.c |
| 143 | #include <features.h> |
| 144 | #if defined(__UCLIBC__) |
| 145 | LIBC=uclibc |
| 146 | #elif defined(__dietlibc__) |
| 147 | LIBC=dietlibc |
| 148 | #else |
| 149 | LIBC=gnu |
| 150 | #endif |
| 151 | EOF |
| 152 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Note: order is significant - the case branches are not exclusive. |
| 157 | |
| 158 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 159 | *:NetBSD:*:*) |
| 160 | # NetBSD (nbsd) targets should (where applicable) match one or |
| 161 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
| 162 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
| 163 | # switched to ELF, *-*-netbsd* would select the old |
| 164 | # object file format. This provides both forward |
| 165 | # compatibility and a consistent mechanism for selecting the |
| 166 | # object file format. |
| @@ -179,11 +192,11 @@ | |
| 192 | else |
| 193 | os=netbsdelf |
| 194 | fi |
| 195 | ;; |
| 196 | *) |
| 197 | os=netbsd |
| 198 | ;; |
| 199 | esac |
| 200 | # The OS release |
| 201 | # Debian GNU/NetBSD machines have a different userland, and |
| 202 | # thus, need a distinct triplet. However, they do not need |
| @@ -200,10 +213,14 @@ | |
| 213 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
| 214 | # contains redundant information, the shorter form: |
| 215 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| 216 | echo "${machine}-${os}${release}" |
| 217 | exit ;; |
| 218 | *:Bitrig:*:*) |
| 219 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
| 220 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} |
| 221 | exit ;; |
| 222 | *:OpenBSD:*:*) |
| 223 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| 224 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| 225 | exit ;; |
| 226 | *:ekkoBSD:*:*) |
| @@ -222,11 +239,11 @@ | |
| 239 | case $UNAME_RELEASE in |
| 240 | *4.0) |
| 241 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
| 242 | ;; |
| 243 | *5.*) |
| 244 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
| 245 | ;; |
| 246 | esac |
| 247 | # According to Compaq, /usr/sbin/psrinfo has been available on |
| 248 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
| 249 | # covers most systems running today. This code pipes the CPU |
| @@ -268,11 +285,14 @@ | |
| 285 | # A Vn.n version is a released version. |
| 286 | # A Tn.n version is a released field test version. |
| 287 | # A Xn.n version is an unreleased experimental baselevel. |
| 288 | # 1.2 uses "1.2" for uname -r. |
| 289 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 290 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
| 291 | exitcode=$? |
| 292 | trap '' 0 |
| 293 | exit $exitcode ;; |
| 294 | Alpha\ *:Windows_NT*:*) |
| 295 | # How do we know it's Interix rather than the generic POSIX subsystem? |
| 296 | # Should we change UNAME_MACHINE based on the output of uname instead |
| 297 | # of the specific Alpha model? |
| 298 | echo alpha-pc-interix |
| @@ -294,16 +314,16 @@ | |
| 314 | exit ;; |
| 315 | *:z/VM:*:*) |
| 316 | echo s390-ibm-zvmoe |
| 317 | exit ;; |
| 318 | *:OS400:*:*) |
| 319 | echo powerpc-ibm-os400 |
| 320 | exit ;; |
| 321 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 322 | echo arm-acorn-riscix${UNAME_RELEASE} |
| 323 | exit ;; |
| 324 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
| 325 | echo arm-unknown-riscos |
| 326 | exit ;; |
| 327 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| 328 | echo hppa1.1-hitachi-hiuxmpp |
| 329 | exit ;; |
| @@ -393,27 +413,27 @@ | |
| 413 | # to the lowercase version "mint" (or "freemint"). Finally |
| 414 | # the system name "TOS" denotes a system which is actually not |
| 415 | # MiNT. But MiNT is downward compatible to TOS, so this should |
| 416 | # be no problem. |
| 417 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
| 418 | echo m68k-atari-mint${UNAME_RELEASE} |
| 419 | exit ;; |
| 420 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
| 421 | echo m68k-atari-mint${UNAME_RELEASE} |
| 422 | exit ;; |
| 423 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
| 424 | echo m68k-atari-mint${UNAME_RELEASE} |
| 425 | exit ;; |
| 426 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
| 427 | echo m68k-milan-mint${UNAME_RELEASE} |
| 428 | exit ;; |
| 429 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
| 430 | echo m68k-hades-mint${UNAME_RELEASE} |
| 431 | exit ;; |
| 432 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
| 433 | echo m68k-unknown-mint${UNAME_RELEASE} |
| 434 | exit ;; |
| 435 | m68k:machten:*:*) |
| 436 | echo m68k-apple-machten${UNAME_RELEASE} |
| 437 | exit ;; |
| 438 | powerpc:machten:*:*) |
| 439 | echo powerpc-apple-machten${UNAME_RELEASE} |
| @@ -479,12 +499,12 @@ | |
| 499 | exit ;; |
| 500 | m88k:*:3*:R3*) |
| 501 | echo m88k-motorola-sysv3 |
| 502 | exit ;; |
| 503 | AViiON:dgux:*:*) |
| 504 | # DG/UX returns AViiON for all architectures |
| 505 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
| 506 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
| 507 | then |
| 508 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
| 509 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
| 510 | then |
| @@ -493,11 +513,11 @@ | |
| 513 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
| 514 | fi |
| 515 | else |
| 516 | echo i586-dg-dgux${UNAME_RELEASE} |
| 517 | fi |
| 518 | exit ;; |
| 519 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
| 520 | echo m88k-dolphin-sysv3 |
| 521 | exit ;; |
| 522 | M88*:*:R3*:*) |
| 523 | # Delta 88k system running SVR3 |
| @@ -593,56 +613,56 @@ | |
| 613 | 9000/31? ) HP_ARCH=m68000 ;; |
| 614 | 9000/[34]?? ) HP_ARCH=m68k ;; |
| 615 | 9000/[678][0-9][0-9]) |
| 616 | if [ -x /usr/bin/getconf ]; then |
| 617 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
| 618 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
| 619 | case "${sc_cpu_version}" in |
| 620 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
| 621 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
| 622 | 532) # CPU_PA_RISC2_0 |
| 623 | case "${sc_kernel_bits}" in |
| 624 | 32) HP_ARCH="hppa2.0n" ;; |
| 625 | 64) HP_ARCH="hppa2.0w" ;; |
| 626 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
| 627 | esac ;; |
| 628 | esac |
| 629 | fi |
| 630 | if [ "${HP_ARCH}" = "" ]; then |
| 631 | eval $set_cc_for_build |
| 632 | sed 's/^ //' << EOF >$dummy.c |
| 633 | |
| 634 | #define _HPUX_SOURCE |
| 635 | #include <stdlib.h> |
| 636 | #include <unistd.h> |
| 637 | |
| 638 | int main () |
| 639 | { |
| 640 | #if defined(_SC_KERNEL_BITS) |
| 641 | long bits = sysconf(_SC_KERNEL_BITS); |
| 642 | #endif |
| 643 | long cpu = sysconf (_SC_CPU_VERSION); |
| 644 | |
| 645 | switch (cpu) |
| 646 | { |
| 647 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
| 648 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
| 649 | case CPU_PA_RISC2_0: |
| 650 | #if defined(_SC_KERNEL_BITS) |
| 651 | switch (bits) |
| 652 | { |
| 653 | case 64: puts ("hppa2.0w"); break; |
| 654 | case 32: puts ("hppa2.0n"); break; |
| 655 | default: puts ("hppa2.0"); break; |
| 656 | } break; |
| 657 | #else /* !defined(_SC_KERNEL_BITS) */ |
| 658 | puts ("hppa2.0"); break; |
| 659 | #endif |
| 660 | default: puts ("hppa1.0"); break; |
| 661 | } |
| 662 | exit (0); |
| 663 | } |
| 664 | EOF |
| 665 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
| 666 | test -z "$HP_ARCH" && HP_ARCH=hppa |
| 667 | fi ;; |
| 668 | esac |
| @@ -729,26 +749,26 @@ | |
| 749 | parisc*:Lites*:*:*) |
| 750 | echo hppa1.1-hp-lites |
| 751 | exit ;; |
| 752 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
| 753 | echo c1-convex-bsd |
| 754 | exit ;; |
| 755 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
| 756 | if getsysinfo -f scalar_acc |
| 757 | then echo c32-convex-bsd |
| 758 | else echo c2-convex-bsd |
| 759 | fi |
| 760 | exit ;; |
| 761 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
| 762 | echo c34-convex-bsd |
| 763 | exit ;; |
| 764 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
| 765 | echo c38-convex-bsd |
| 766 | exit ;; |
| 767 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
| 768 | echo c4-convex-bsd |
| 769 | exit ;; |
| 770 | CRAY*Y-MP:*:*:*) |
| 771 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 772 | exit ;; |
| 773 | CRAY*[A-Z]90:*:*:*) |
| 774 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
| @@ -768,18 +788,18 @@ | |
| 788 | *:UNICOS/mp:*:*) |
| 789 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 790 | exit ;; |
| 791 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
| 792 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| 793 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| 794 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
| 795 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| 796 | exit ;; |
| 797 | 5000:UNIX_System_V:4.*:*) |
| 798 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| 799 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
| 800 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| 801 | exit ;; |
| 802 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
| 803 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
| 804 | exit ;; |
| 805 | sparc*:BSD/OS:*:*) |
| @@ -787,37 +807,39 @@ | |
| 807 | exit ;; |
| 808 | *:BSD/OS:*:*) |
| 809 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
| 810 | exit ;; |
| 811 | *:FreeBSD:*:*) |
| 812 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
| 813 | case ${UNAME_PROCESSOR} in |
| 814 | amd64) |
| 815 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 816 | *) |
| 817 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| 818 | esac |
| 819 | exit ;; |
| 820 | i*:CYGWIN*:*) |
| 821 | echo ${UNAME_MACHINE}-pc-cygwin |
| 822 | exit ;; |
| 823 | *:MINGW64*:*) |
| 824 | echo ${UNAME_MACHINE}-pc-mingw64 |
| 825 | exit ;; |
| 826 | *:MINGW*:*) |
| 827 | echo ${UNAME_MACHINE}-pc-mingw32 |
| 828 | exit ;; |
| 829 | *:MSYS*:*) |
| 830 | echo ${UNAME_MACHINE}-pc-msys |
| 831 | exit ;; |
| 832 | i*:windows32*:*) |
| 833 | # uname -m includes "-pc" on this system. |
| 834 | echo ${UNAME_MACHINE}-mingw32 |
| 835 | exit ;; |
| 836 | i*:PW*:*) |
| 837 | echo ${UNAME_MACHINE}-pc-pw32 |
| 838 | exit ;; |
| 839 | *:Interix*:*) |
| 840 | case ${UNAME_MACHINE} in |
| 841 | x86) |
| 842 | echo i586-pc-interix${UNAME_RELEASE} |
| 843 | exit ;; |
| 844 | authenticamd | genuineintel | EM64T) |
| 845 | echo x86_64-unknown-interix${UNAME_RELEASE} |
| @@ -850,74 +872,85 @@ | |
| 872 | prep*:SunOS:5.*:*) |
| 873 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 874 | exit ;; |
| 875 | *:GNU:*:*) |
| 876 | # the GNU system |
| 877 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| 878 | exit ;; |
| 879 | *:GNU/*:*:*) |
| 880 | # other systems with GNU libc and userland |
| 881 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
| 882 | exit ;; |
| 883 | i*86:Minix:*:*) |
| 884 | echo ${UNAME_MACHINE}-pc-minix |
| 885 | exit ;; |
| 886 | aarch64:Linux:*:*) |
| 887 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 888 | exit ;; |
| 889 | aarch64_be:Linux:*:*) |
| 890 | UNAME_MACHINE=aarch64_be |
| 891 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 892 | exit ;; |
| 893 | alpha:Linux:*:*) |
| 894 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 895 | EV5) UNAME_MACHINE=alphaev5 ;; |
| 896 | EV56) UNAME_MACHINE=alphaev56 ;; |
| 897 | PCA56) UNAME_MACHINE=alphapca56 ;; |
| 898 | PCA57) UNAME_MACHINE=alphapca56 ;; |
| 899 | EV6) UNAME_MACHINE=alphaev6 ;; |
| 900 | EV67) UNAME_MACHINE=alphaev67 ;; |
| 901 | EV68*) UNAME_MACHINE=alphaev68 ;; |
| 902 | esac |
| 903 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
| 904 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
| 905 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 906 | exit ;; |
| 907 | arc:Linux:*:* | arceb:Linux:*:*) |
| 908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 909 | exit ;; |
| 910 | arm*:Linux:*:*) |
| 911 | eval $set_cc_for_build |
| 912 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 913 | | grep -q __ARM_EABI__ |
| 914 | then |
| 915 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 916 | else |
| 917 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 918 | | grep -q __ARM_PCS_VFP |
| 919 | then |
| 920 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
| 921 | else |
| 922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
| 923 | fi |
| 924 | fi |
| 925 | exit ;; |
| 926 | avr32*:Linux:*:*) |
| 927 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 928 | exit ;; |
| 929 | cris:Linux:*:*) |
| 930 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 931 | exit ;; |
| 932 | crisv32:Linux:*:*) |
| 933 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 934 | exit ;; |
| 935 | frv:Linux:*:*) |
| 936 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 937 | exit ;; |
| 938 | hexagon:Linux:*:*) |
| 939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 940 | exit ;; |
| 941 | i*86:Linux:*:*) |
| 942 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
| 943 | exit ;; |
| 944 | ia64:Linux:*:*) |
| 945 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 946 | exit ;; |
| 947 | m32r*:Linux:*:*) |
| 948 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 949 | exit ;; |
| 950 | m68*:Linux:*:*) |
| 951 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 952 | exit ;; |
| 953 | mips:Linux:*:* | mips64:Linux:*:*) |
| 954 | eval $set_cc_for_build |
| 955 | sed 's/^ //' << EOF >$dummy.c |
| 956 | #undef CPU |
| @@ -932,71 +965,80 @@ | |
| 965 | CPU= |
| 966 | #endif |
| 967 | #endif |
| 968 | EOF |
| 969 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| 970 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
| 971 | ;; |
| 972 | openrisc*:Linux:*:*) |
| 973 | echo or1k-unknown-linux-${LIBC} |
| 974 | exit ;; |
| 975 | or32:Linux:*:* | or1k*:Linux:*:*) |
| 976 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 977 | exit ;; |
| 978 | padre:Linux:*:*) |
| 979 | echo sparc-unknown-linux-${LIBC} |
| 980 | exit ;; |
| 981 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 982 | echo hppa64-unknown-linux-${LIBC} |
| 983 | exit ;; |
| 984 | parisc:Linux:*:* | hppa:Linux:*:*) |
| 985 | # Look for CPU level |
| 986 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| 987 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
| 988 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
| 989 | *) echo hppa-unknown-linux-${LIBC} ;; |
| 990 | esac |
| 991 | exit ;; |
| 992 | ppc64:Linux:*:*) |
| 993 | echo powerpc64-unknown-linux-${LIBC} |
| 994 | exit ;; |
| 995 | ppc:Linux:*:*) |
| 996 | echo powerpc-unknown-linux-${LIBC} |
| 997 | exit ;; |
| 998 | ppc64le:Linux:*:*) |
| 999 | echo powerpc64le-unknown-linux-${LIBC} |
| 1000 | exit ;; |
| 1001 | ppcle:Linux:*:*) |
| 1002 | echo powerpcle-unknown-linux-${LIBC} |
| 1003 | exit ;; |
| 1004 | s390:Linux:*:* | s390x:Linux:*:*) |
| 1005 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
| 1006 | exit ;; |
| 1007 | sh64*:Linux:*:*) |
| 1008 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1009 | exit ;; |
| 1010 | sh*:Linux:*:*) |
| 1011 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1012 | exit ;; |
| 1013 | sparc:Linux:*:* | sparc64:Linux:*:*) |
| 1014 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1015 | exit ;; |
| 1016 | tile*:Linux:*:*) |
| 1017 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1018 | exit ;; |
| 1019 | vax:Linux:*:*) |
| 1020 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
| 1021 | exit ;; |
| 1022 | x86_64:Linux:*:*) |
| 1023 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1024 | exit ;; |
| 1025 | xtensa*:Linux:*:*) |
| 1026 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1027 | exit ;; |
| 1028 | i*86:DYNIX/ptx:4*:*) |
| 1029 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| 1030 | # earlier versions are messed up and put the nodename in both |
| 1031 | # sysname and nodename. |
| 1032 | echo i386-sequent-sysv4 |
| 1033 | exit ;; |
| 1034 | i*86:UNIX_SV:4.2MP:2.*) |
| 1035 | # Unixware is an offshoot of SVR4, but it has its own version |
| 1036 | # number series starting with 2... |
| 1037 | # I am not positive that other SVR4 systems won't match this, |
| 1038 | # I just have to hope. -- rms. |
| 1039 | # Use sysv4.2uw... so that sysv4* matches it. |
| 1040 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
| 1041 | exit ;; |
| 1042 | i*86:OS/2:*:*) |
| 1043 | # If we were able to find `uname', then EMX Unix compatibility |
| 1044 | # is probably installed. |
| @@ -1024,11 +1066,11 @@ | |
| 1066 | else |
| 1067 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
| 1068 | fi |
| 1069 | exit ;; |
| 1070 | i*86:*:5:[678]*) |
| 1071 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
| 1072 | case `/bin/uname -X | grep "^Machine"` in |
| 1073 | *486*) UNAME_MACHINE=i486 ;; |
| 1074 | *Pentium) UNAME_MACHINE=i586 ;; |
| 1075 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
| 1076 | esac |
| @@ -1052,17 +1094,17 @@ | |
| 1094 | echo ${UNAME_MACHINE}-pc-sysv32 |
| 1095 | fi |
| 1096 | exit ;; |
| 1097 | pc:*:*:*) |
| 1098 | # Left here for compatibility: |
| 1099 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
| 1100 | # the processor, so we play safe by assuming i586. |
| 1101 | # Note: whatever this is, it MUST be the same as what config.sub |
| 1102 | # prints for the "djgpp" host, or else GDB configury will decide that |
| 1103 | # this is a cross-build. |
| 1104 | echo i586-pc-msdosdjgpp |
| 1105 | exit ;; |
| 1106 | Intel:Mach:3*:*) |
| 1107 | echo i386-pc-mach3 |
| 1108 | exit ;; |
| 1109 | paragon:*:*:*) |
| 1110 | echo i860-intel-osf1 |
| @@ -1093,12 +1135,12 @@ | |
| 1135 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| 1136 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
| 1137 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
| 1138 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
| 1139 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
| 1140 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| 1141 | && { echo i486-ncr-sysv4; exit; } ;; |
| 1142 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
| 1143 | OS_REL='.3' |
| 1144 | test -r /etc/.relid \ |
| 1145 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
| 1146 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| @@ -1137,14 +1179,14 @@ | |
| 1179 | echo ${UNAME_MACHINE}-sni-sysv4 |
| 1180 | else |
| 1181 | echo ns32k-sni-sysv |
| 1182 | fi |
| 1183 | exit ;; |
| 1184 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
| 1185 | # says <[email protected]> |
| 1186 | echo i586-unisys-sysv4 |
| 1187 | exit ;; |
| 1188 | *:UNIX_System_V:4*:FTX*) |
| 1189 | # From Gerald Hewes <[email protected]>. |
| 1190 | # How about differentiating between stratus architectures? -djm |
| 1191 | echo hppa1.1-stratus-sysv4 |
| 1192 | exit ;; |
| @@ -1166,15 +1208,15 @@ | |
| 1208 | news*:NEWS-OS:6*:*) |
| 1209 | echo mips-sony-newsos6 |
| 1210 | exit ;; |
| 1211 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
| 1212 | if [ -d /usr/nec ]; then |
| 1213 | echo mips-nec-sysv${UNAME_RELEASE} |
| 1214 | else |
| 1215 | echo mips-unknown-sysv${UNAME_RELEASE} |
| 1216 | fi |
| 1217 | exit ;; |
| 1218 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
| 1219 | echo powerpc-be-beos |
| 1220 | exit ;; |
| 1221 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| 1222 | echo powerpc-apple-beos |
| @@ -1183,10 +1225,13 @@ | |
| 1225 | echo i586-pc-beos |
| 1226 | exit ;; |
| 1227 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1228 | echo i586-pc-haiku |
| 1229 | exit ;; |
| 1230 | x86_64:Haiku:*:*) |
| 1231 | echo x86_64-unknown-haiku |
| 1232 | exit ;; |
| 1233 | SX-4:SUPER-UX:*:*) |
| 1234 | echo sx4-nec-superux${UNAME_RELEASE} |
| 1235 | exit ;; |
| 1236 | SX-5:SUPER-UX:*:*) |
| 1237 | echo sx5-nec-superux${UNAME_RELEASE} |
| @@ -1209,23 +1254,35 @@ | |
| 1254 | *:Rhapsody:*:*) |
| 1255 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 1256 | exit ;; |
| 1257 | *:Darwin:*:*) |
| 1258 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| 1259 | eval $set_cc_for_build |
| 1260 | if test "$UNAME_PROCESSOR" = unknown ; then |
| 1261 | UNAME_PROCESSOR=powerpc |
| 1262 | fi |
| 1263 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then |
| 1264 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| 1265 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| 1266 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| 1267 | grep IS_64BIT_ARCH >/dev/null |
| 1268 | then |
| 1269 | case $UNAME_PROCESSOR in |
| 1270 | i386) UNAME_PROCESSOR=x86_64 ;; |
| 1271 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
| 1272 | esac |
| 1273 | fi |
| 1274 | fi |
| 1275 | elif test "$UNAME_PROCESSOR" = i386 ; then |
| 1276 | # Avoid executing cc on OS X 10.9, as it ships with a stub |
| 1277 | # that puts up a graphical alert prompting to install |
| 1278 | # developer tools. Any system running Mac OS X 10.7 or |
| 1279 | # later (Darwin 11 and later) is required to have a 64-bit |
| 1280 | # processor. This is not true of the ARM version of Darwin |
| 1281 | # that Apple uses in portable devices. |
| 1282 | UNAME_PROCESSOR=x86_64 |
| 1283 | fi |
| 1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| 1285 | exit ;; |
| 1286 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| 1287 | UNAME_PROCESSOR=`uname -p` |
| 1288 | if test "$UNAME_PROCESSOR" = "x86"; then |
| @@ -1238,11 +1295,11 @@ | |
| 1295 | echo i386-pc-qnx |
| 1296 | exit ;; |
| 1297 | NEO-?:NONSTOP_KERNEL:*:*) |
| 1298 | echo neo-tandem-nsk${UNAME_RELEASE} |
| 1299 | exit ;; |
| 1300 | NSE-*:NONSTOP_KERNEL:*:*) |
| 1301 | echo nse-tandem-nsk${UNAME_RELEASE} |
| 1302 | exit ;; |
| 1303 | NSR-?:NONSTOP_KERNEL:*:*) |
| 1304 | echo nsr-tandem-nsk${UNAME_RELEASE} |
| 1305 | exit ;; |
| @@ -1283,17 +1340,17 @@ | |
| 1340 | exit ;; |
| 1341 | *:ITS:*:*) |
| 1342 | echo pdp10-unknown-its |
| 1343 | exit ;; |
| 1344 | SEI:*:*:SEIUX) |
| 1345 | echo mips-sei-seiux${UNAME_RELEASE} |
| 1346 | exit ;; |
| 1347 | *:DragonFly:*:*) |
| 1348 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
| 1349 | exit ;; |
| 1350 | *:*VMS:*:*) |
| 1351 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
| 1352 | case "${UNAME_MACHINE}" in |
| 1353 | A*) echo alpha-dec-vms ; exit ;; |
| 1354 | I*) echo ia64-dec-vms ; exit ;; |
| 1355 | V*) echo vax-dec-vms ; exit ;; |
| 1356 | esac ;; |
| @@ -1307,162 +1364,14 @@ | |
| 1364 | echo ${UNAME_MACHINE}-pc-rdos |
| 1365 | exit ;; |
| 1366 | i*86:AROS:*:*) |
| 1367 | echo ${UNAME_MACHINE}-pc-aros |
| 1368 | exit ;; |
| 1369 | x86_64:VMkernel:*:*) |
| 1370 | echo ${UNAME_MACHINE}-unknown-esx |
| 1371 | exit ;; |
| 1372 | esac |
| 1373 | |
| 1374 | cat >&2 <<EOF |
| 1375 | $0: unable to guess system type |
| 1376 | |
| 1377 | This script, last modified $timestamp, has failed to recognize |
| 1378 |
+154
-103
| --- autosetup/config.sub | ||
| +++ autosetup/config.sub | ||
| @@ -1,40 +1,33 @@ | ||
| 1 | 1 | #! /bin/sh |
| 2 | 2 | # Configuration validation subroutine script. |
| 3 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
| 4 | -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | |
| 5 | -# Free Software Foundation, Inc. | |
| 6 | - | |
| 7 | -timestamp='2010-09-11' | |
| 8 | - | |
| 9 | -# This file is (in principle) common to ALL GNU software. | |
| 10 | -# The presence of a machine in this file suggests that SOME GNU software | |
| 11 | -# can handle that machine. It does not imply ALL GNU software can. | |
| 12 | -# | |
| 13 | -# This file is free software; you can redistribute it and/or modify | |
| 14 | -# it under the terms of the GNU General Public License as published by | |
| 15 | -# the Free Software Foundation; either version 2 of the License, or | |
| 3 | +# Copyright 1992-2014 Free Software Foundation, Inc. | |
| 4 | + | |
| 5 | +timestamp='2014-05-01' | |
| 6 | + | |
| 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 | |
| 9 | +# the Free Software Foundation; either version 3 of the License, or | |
| 16 | 10 | # (at your option) any later version. |
| 17 | 11 | # |
| 18 | -# This program is distributed in the hope that it will be useful, | |
| 19 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | -# GNU General Public License for more details. | |
| 12 | +# This program is distributed in the hope that it will be useful, but | |
| 13 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 15 | +# General Public License for more details. | |
| 22 | 16 | # |
| 23 | 17 | # You should have received a copy of the GNU General Public License |
| 24 | -# along with this program; if not, write to the Free Software | |
| 25 | -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
| 26 | -# 02110-1301, USA. | |
| 18 | +# along with this program; if not, see <http://www.gnu.org/licenses/>. | |
| 27 | 19 | # |
| 28 | 20 | # As a special exception to the GNU General Public License, if you |
| 29 | 21 | # distribute this file as part of a program that contains a |
| 30 | 22 | # configuration script generated by Autoconf, you may include it under |
| 31 | -# the same distribution terms that you use for the rest of that program. | |
| 23 | +# the same distribution terms that you use for the rest of that | |
| 24 | +# program. This Exception is an additional permission under section 7 | |
| 25 | +# of the GNU General Public License, version 3 ("GPLv3"). | |
| 32 | 26 | |
| 33 | 27 | |
| 34 | -# Please send patches to <[email protected]>. Submit a context | |
| 35 | -# diff and a properly formatted GNU ChangeLog entry. | |
| 28 | +# Please send patches with a ChangeLog entry to [email protected]. | |
| 36 | 29 | # |
| 37 | 30 | # Configuration subroutine to validate and canonicalize a configuration type. |
| 38 | 31 | # Supply the specified configuration type as an argument. |
| 39 | 32 | # If it is invalid, we print an error message on stderr and exit with code 1. |
| 40 | 33 | # Otherwise, we print the canonical config type on stdout and succeed. |
| @@ -73,13 +66,11 @@ | ||
| 73 | 66 | Report bugs and patches to <[email protected]>." |
| 74 | 67 | |
| 75 | 68 | version="\ |
| 76 | 69 | GNU config.sub ($timestamp) |
| 77 | 70 | |
| 78 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
| 79 | -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | |
| 80 | -Software Foundation, Inc. | |
| 71 | +Copyright 1992-2014 Free Software Foundation, Inc. | |
| 81 | 72 | |
| 82 | 73 | This is free software; see the source for copying conditions. There is NO |
| 83 | 74 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 84 | 75 | |
| 85 | 76 | help=" |
| @@ -123,17 +114,21 @@ | ||
| 123 | 114 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
| 124 | 115 | # Here we must recognize all the valid KERNEL-OS combinations. |
| 125 | 116 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 126 | 117 | case $maybe_os in |
| 127 | 118 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 128 | - linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
| 119 | + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
| 129 | 120 | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 130 | 121 | kopensolaris*-gnu* | \ |
| 131 | 122 | storm-chaos* | os2-emx* | rtmk-nova*) |
| 132 | 123 | os=-$maybe_os |
| 133 | 124 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 134 | 125 | ;; |
| 126 | + android-linux) | |
| 127 | + os=-linux-android | |
| 128 | + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
| 129 | + ;; | |
| 135 | 130 | *) |
| 136 | 131 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
| 137 | 132 | if [ $basic_machine != $1 ] |
| 138 | 133 | then os=`echo $1 | sed 's/.*-/-/'` |
| 139 | 134 | else os=; fi |
| @@ -152,16 +147,16 @@ | ||
| 152 | 147 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
| 153 | 148 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
| 154 | 149 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 155 | 150 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 156 | 151 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 157 | - -apple | -axis | -knuth | -cray | -microblaze) | |
| 152 | + -apple | -axis | -knuth | -cray | -microblaze*) | |
| 158 | 153 | os= |
| 159 | 154 | basic_machine=$1 |
| 160 | 155 | ;; |
| 161 | - -bluegene*) | |
| 162 | - os=-cnk | |
| 156 | + -bluegene*) | |
| 157 | + os=-cnk | |
| 163 | 158 | ;; |
| 164 | 159 | -sim | -cisco | -oki | -wec | -winbond) |
| 165 | 160 | os= |
| 166 | 161 | basic_machine=$1 |
| 167 | 162 | ;; |
| @@ -173,14 +168,14 @@ | ||
| 173 | 168 | ;; |
| 174 | 169 | -chorusos*) |
| 175 | 170 | os=-chorusos |
| 176 | 171 | basic_machine=$1 |
| 177 | 172 | ;; |
| 178 | - -chorusrdb) | |
| 179 | - os=-chorusrdb | |
| 173 | + -chorusrdb) | |
| 174 | + os=-chorusrdb | |
| 180 | 175 | basic_machine=$1 |
| 181 | - ;; | |
| 176 | + ;; | |
| 182 | 177 | -hiux*) |
| 183 | 178 | os=-hiuxwe2 |
| 184 | 179 | ;; |
| 185 | 180 | -sco6) |
| 186 | 181 | os=-sco5v6 |
| @@ -221,10 +216,16 @@ | ||
| 221 | 216 | basic_machine=clipper-intergraph |
| 222 | 217 | ;; |
| 223 | 218 | -isc*) |
| 224 | 219 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 225 | 220 | ;; |
| 221 | + -lynx*178) | |
| 222 | + os=-lynxos178 | |
| 223 | + ;; | |
| 224 | + -lynx*5) | |
| 225 | + os=-lynxos5 | |
| 226 | + ;; | |
| 226 | 227 | -lynx*) |
| 227 | 228 | os=-lynxos |
| 228 | 229 | ;; |
| 229 | 230 | -ptx*) |
| 230 | 231 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
| @@ -245,24 +246,32 @@ | ||
| 245 | 246 | case $basic_machine in |
| 246 | 247 | # Recognize the basic CPU types without company name. |
| 247 | 248 | # Some are omitted here because they have special meanings below. |
| 248 | 249 | 1750a | 580 \ |
| 249 | 250 | | a29k \ |
| 251 | + | aarch64 | aarch64_be \ | |
| 250 | 252 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 251 | 253 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 252 | 254 | | am33_2.0 \ |
| 253 | - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | |
| 255 | + | arc | arceb \ | |
| 256 | + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
| 257 | + | avr | avr32 \ | |
| 258 | + | be32 | be64 \ | |
| 254 | 259 | | bfin \ |
| 255 | - | c4x | clipper \ | |
| 260 | + | c4x | c8051 | clipper \ | |
| 256 | 261 | | d10v | d30v | dlx | dsp16xx \ |
| 262 | + | epiphany \ | |
| 257 | 263 | | fido | fr30 | frv \ |
| 258 | 264 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 265 | + | hexagon \ | |
| 259 | 266 | | i370 | i860 | i960 | ia64 \ |
| 260 | 267 | | ip2k | iq2000 \ |
| 268 | + | k1om \ | |
| 269 | + | le32 | le64 \ | |
| 261 | 270 | | lm32 \ |
| 262 | 271 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| 263 | - | maxq | mb | microblaze | mcore | mep | metag \ | |
| 272 | + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
| 264 | 273 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
| 265 | 274 | | mips16 \ |
| 266 | 275 | | mips64 | mips64el \ |
| 267 | 276 | | mips64octeon | mips64octeonel \ |
| 268 | 277 | | mips64orion | mips64orionel \ |
| @@ -272,38 +281,41 @@ | ||
| 272 | 281 | | mips64vr4300 | mips64vr4300el \ |
| 273 | 282 | | mips64vr5000 | mips64vr5000el \ |
| 274 | 283 | | mips64vr5900 | mips64vr5900el \ |
| 275 | 284 | | mipsisa32 | mipsisa32el \ |
| 276 | 285 | | mipsisa32r2 | mipsisa32r2el \ |
| 286 | + | mipsisa32r6 | mipsisa32r6el \ | |
| 277 | 287 | | mipsisa64 | mipsisa64el \ |
| 278 | 288 | | mipsisa64r2 | mipsisa64r2el \ |
| 289 | + | mipsisa64r6 | mipsisa64r6el \ | |
| 279 | 290 | | mipsisa64sb1 | mipsisa64sb1el \ |
| 280 | 291 | | mipsisa64sr71k | mipsisa64sr71kel \ |
| 292 | + | mipsr5900 | mipsr5900el \ | |
| 281 | 293 | | mipstx39 | mipstx39el \ |
| 282 | 294 | | mn10200 | mn10300 \ |
| 283 | 295 | | moxie \ |
| 284 | 296 | | mt \ |
| 285 | 297 | | msp430 \ |
| 286 | 298 | | nds32 | nds32le | nds32be \ |
| 287 | - | nios | nios2 \ | |
| 299 | + | nios | nios2 | nios2eb | nios2el \ | |
| 288 | 300 | | ns16k | ns32k \ |
| 289 | - | or32 \ | |
| 301 | + | open8 | or1k | or1knd | or32 \ | |
| 290 | 302 | | pdp10 | pdp11 | pj | pjl \ |
| 291 | - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
| 303 | + | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
| 292 | 304 | | pyramid \ |
| 293 | - | rx \ | |
| 305 | + | rl78 | rx \ | |
| 294 | 306 | | score \ |
| 295 | 307 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 296 | 308 | | sh64 | sh64le \ |
| 297 | 309 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| 298 | 310 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| 299 | - | spu | strongarm \ | |
| 300 | - | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
| 311 | + | spu \ | |
| 312 | + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
| 301 | 313 | | ubicom32 \ |
| 302 | - | v850 | v850e \ | |
| 314 | + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
| 303 | 315 | | we32k \ |
| 304 | - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | |
| 316 | + | x86 | xc16x | xstormy16 | xtensa \ | |
| 305 | 317 | | z8k | z80) |
| 306 | 318 | basic_machine=$basic_machine-unknown |
| 307 | 319 | ;; |
| 308 | 320 | c54x) |
| 309 | 321 | basic_machine=tic54x-unknown |
| @@ -312,20 +324,34 @@ | ||
| 312 | 324 | basic_machine=tic55x-unknown |
| 313 | 325 | ;; |
| 314 | 326 | c6x) |
| 315 | 327 | basic_machine=tic6x-unknown |
| 316 | 328 | ;; |
| 317 | - m6811 | m68hc11 | m6812 | m68hc12 | picochip) | |
| 318 | - # Motorola 68HC11/12. | |
| 329 | + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | |
| 319 | 330 | basic_machine=$basic_machine-unknown |
| 320 | 331 | os=-none |
| 321 | 332 | ;; |
| 322 | 333 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
| 323 | 334 | ;; |
| 324 | 335 | ms1) |
| 325 | 336 | basic_machine=mt-unknown |
| 326 | 337 | ;; |
| 338 | + | |
| 339 | + strongarm | thumb | xscale) | |
| 340 | + basic_machine=arm-unknown | |
| 341 | + ;; | |
| 342 | + xgate) | |
| 343 | + basic_machine=$basic_machine-unknown | |
| 344 | + os=-none | |
| 345 | + ;; | |
| 346 | + xscaleeb) | |
| 347 | + basic_machine=armeb-unknown | |
| 348 | + ;; | |
| 349 | + | |
| 350 | + xscaleel) | |
| 351 | + basic_machine=armel-unknown | |
| 352 | + ;; | |
| 327 | 353 | |
| 328 | 354 | # We use `pc' rather than `unknown' |
| 329 | 355 | # because (1) that's what they normally are, and |
| 330 | 356 | # (2) the word "unknown" tends to confuse beginning users. |
| 331 | 357 | i*86 | x86_64) |
| @@ -337,29 +363,35 @@ | ||
| 337 | 363 | exit 1 |
| 338 | 364 | ;; |
| 339 | 365 | # Recognize the basic CPU types with company name. |
| 340 | 366 | 580-* \ |
| 341 | 367 | | a29k-* \ |
| 368 | + | aarch64-* | aarch64_be-* \ | |
| 342 | 369 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| 343 | 370 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| 344 | - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | |
| 371 | + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | |
| 345 | 372 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 346 | 373 | | avr-* | avr32-* \ |
| 374 | + | be32-* | be64-* \ | |
| 347 | 375 | | bfin-* | bs2000-* \ |
| 348 | 376 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
| 349 | - | clipper-* | craynv-* | cydra-* \ | |
| 377 | + | c8051-* | clipper-* | craynv-* | cydra-* \ | |
| 350 | 378 | | d10v-* | d30v-* | dlx-* \ |
| 351 | 379 | | elxsi-* \ |
| 352 | 380 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| 353 | 381 | | h8300-* | h8500-* \ |
| 354 | 382 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 383 | + | hexagon-* \ | |
| 355 | 384 | | i*86-* | i860-* | i960-* | ia64-* \ |
| 356 | 385 | | ip2k-* | iq2000-* \ |
| 386 | + | k1om-* \ | |
| 387 | + | le32-* | le64-* \ | |
| 357 | 388 | | lm32-* \ |
| 358 | 389 | | m32c-* | m32r-* | m32rle-* \ |
| 359 | 390 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 360 | - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | |
| 391 | + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
| 392 | + | microblaze-* | microblazeel-* \ | |
| 361 | 393 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 362 | 394 | | mips16-* \ |
| 363 | 395 | | mips64-* | mips64el-* \ |
| 364 | 396 | | mips64octeon-* | mips64octeonel-* \ |
| 365 | 397 | | mips64orion-* | mips64orionel-* \ |
| @@ -369,39 +401,45 @@ | ||
| 369 | 401 | | mips64vr4300-* | mips64vr4300el-* \ |
| 370 | 402 | | mips64vr5000-* | mips64vr5000el-* \ |
| 371 | 403 | | mips64vr5900-* | mips64vr5900el-* \ |
| 372 | 404 | | mipsisa32-* | mipsisa32el-* \ |
| 373 | 405 | | mipsisa32r2-* | mipsisa32r2el-* \ |
| 406 | + | mipsisa32r6-* | mipsisa32r6el-* \ | |
| 374 | 407 | | mipsisa64-* | mipsisa64el-* \ |
| 375 | 408 | | mipsisa64r2-* | mipsisa64r2el-* \ |
| 409 | + | mipsisa64r6-* | mipsisa64r6el-* \ | |
| 376 | 410 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
| 377 | 411 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| 412 | + | mipsr5900-* | mipsr5900el-* \ | |
| 378 | 413 | | mipstx39-* | mipstx39el-* \ |
| 379 | 414 | | mmix-* \ |
| 380 | 415 | | mt-* \ |
| 381 | 416 | | msp430-* \ |
| 382 | 417 | | nds32-* | nds32le-* | nds32be-* \ |
| 383 | - | nios-* | nios2-* \ | |
| 418 | + | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
| 384 | 419 | | none-* | np1-* | ns16k-* | ns32k-* \ |
| 420 | + | open8-* \ | |
| 421 | + | or1k*-* \ | |
| 385 | 422 | | orion-* \ |
| 386 | 423 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 387 | - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
| 424 | + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
| 388 | 425 | | pyramid-* \ |
| 389 | - | romp-* | rs6000-* | rx-* \ | |
| 426 | + | rl78-* | romp-* | rs6000-* | rx-* \ | |
| 390 | 427 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 391 | 428 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 392 | 429 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 393 | 430 | | sparclite-* \ |
| 394 | - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | |
| 395 | - | tahoe-* | thumb-* \ | |
| 431 | + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | |
| 432 | + | tahoe-* \ | |
| 396 | 433 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 397 | - | tile-* | tilegx-* \ | |
| 434 | + | tile*-* \ | |
| 398 | 435 | | tron-* \ |
| 399 | 436 | | ubicom32-* \ |
| 400 | - | v850-* | v850e-* | vax-* \ | |
| 437 | + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
| 438 | + | vax-* \ | |
| 401 | 439 | | we32k-* \ |
| 402 | - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | |
| 440 | + | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
| 403 | 441 | | xstormy16-* | xtensa*-* \ |
| 404 | 442 | | ymp-* \ |
| 405 | 443 | | z8k-* | z80-*) |
| 406 | 444 | ;; |
| 407 | 445 | # Recognize the basic CPU types without company name, with glob match. |
| @@ -422,11 +460,11 @@ | ||
| 422 | 460 | ;; |
| 423 | 461 | a29khif) |
| 424 | 462 | basic_machine=a29k-amd |
| 425 | 463 | os=-udi |
| 426 | 464 | ;; |
| 427 | - abacus) | |
| 465 | + abacus) | |
| 428 | 466 | basic_machine=abacus-unknown |
| 429 | 467 | ;; |
| 430 | 468 | adobe68k) |
| 431 | 469 | basic_machine=m68010-adobe |
| 432 | 470 | os=-scout |
| @@ -505,11 +543,11 @@ | ||
| 505 | 543 | ;; |
| 506 | 544 | c90) |
| 507 | 545 | basic_machine=c90-cray |
| 508 | 546 | os=-unicos |
| 509 | 547 | ;; |
| 510 | - cegcc) | |
| 548 | + cegcc) | |
| 511 | 549 | basic_machine=arm-unknown |
| 512 | 550 | os=-cegcc |
| 513 | 551 | ;; |
| 514 | 552 | convex-c1) |
| 515 | 553 | basic_machine=c1-convex |
| @@ -537,11 +575,11 @@ | ||
| 537 | 575 | ;; |
| 538 | 576 | craynv) |
| 539 | 577 | basic_machine=craynv-cray |
| 540 | 578 | os=-unicosmp |
| 541 | 579 | ;; |
| 542 | - cr16) | |
| 580 | + cr16 | cr16-*) | |
| 543 | 581 | basic_machine=cr16-unknown |
| 544 | 582 | os=-elf |
| 545 | 583 | ;; |
| 546 | 584 | crds | unos) |
| 547 | 585 | basic_machine=m68k-crds |
| @@ -695,11 +733,10 @@ | ||
| 695 | 733 | os=-proelf |
| 696 | 734 | ;; |
| 697 | 735 | i370-ibm* | ibm*) |
| 698 | 736 | basic_machine=i370-ibm |
| 699 | 737 | ;; |
| 700 | -# I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
| 701 | 738 | i*86v32) |
| 702 | 739 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 703 | 740 | os=-sysv32 |
| 704 | 741 | ;; |
| 705 | 742 | i*86v4*) |
| @@ -753,15 +790,19 @@ | ||
| 753 | 790 | ;; |
| 754 | 791 | merlin) |
| 755 | 792 | basic_machine=ns32k-utek |
| 756 | 793 | os=-sysv |
| 757 | 794 | ;; |
| 758 | - microblaze) | |
| 795 | + microblaze*) | |
| 759 | 796 | basic_machine=microblaze-xilinx |
| 760 | 797 | ;; |
| 798 | + mingw64) | |
| 799 | + basic_machine=x86_64-pc | |
| 800 | + os=-mingw64 | |
| 801 | + ;; | |
| 761 | 802 | mingw32) |
| 762 | - basic_machine=i386-pc | |
| 803 | + basic_machine=i686-pc | |
| 763 | 804 | os=-mingw32 |
| 764 | 805 | ;; |
| 765 | 806 | mingw32ce) |
| 766 | 807 | basic_machine=arm-unknown |
| 767 | 808 | os=-mingw32ce |
| @@ -792,18 +833,22 @@ | ||
| 792 | 833 | os=-msdos |
| 793 | 834 | ;; |
| 794 | 835 | ms1-*) |
| 795 | 836 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
| 796 | 837 | ;; |
| 838 | + msys) | |
| 839 | + basic_machine=i686-pc | |
| 840 | + os=-msys | |
| 841 | + ;; | |
| 797 | 842 | mvs) |
| 798 | 843 | basic_machine=i370-ibm |
| 799 | 844 | os=-mvs |
| 800 | 845 | ;; |
| 801 | - msys) | |
| 802 | - basic_machine=i386-pc | |
| 803 | - os=-msys | |
| 804 | - ;; | |
| 846 | + nacl) | |
| 847 | + basic_machine=le32-unknown | |
| 848 | + os=-nacl | |
| 849 | + ;; | |
| 805 | 850 | ncr3000) |
| 806 | 851 | basic_machine=i486-ncr |
| 807 | 852 | os=-sysv4 |
| 808 | 853 | ;; |
| 809 | 854 | netbsd386) |
| @@ -864,14 +909,14 @@ | ||
| 864 | 909 | os=-nonstopux |
| 865 | 910 | ;; |
| 866 | 911 | np1) |
| 867 | 912 | basic_machine=np1-gould |
| 868 | 913 | ;; |
| 869 | - neo-tandem) | |
| 914 | + neo-tandem) | |
| 870 | 915 | basic_machine=neo-tandem |
| 871 | 916 | ;; |
| 872 | - nse-tandem) | |
| 917 | + nse-tandem) | |
| 873 | 918 | basic_machine=nse-tandem |
| 874 | 919 | ;; |
| 875 | 920 | nsr-tandem) |
| 876 | 921 | basic_machine=nsr-tandem |
| 877 | 922 | ;; |
| @@ -952,13 +997,14 @@ | ||
| 952 | 997 | pn) |
| 953 | 998 | basic_machine=pn-gould |
| 954 | 999 | ;; |
| 955 | 1000 | power) basic_machine=power-ibm |
| 956 | 1001 | ;; |
| 957 | - ppc) basic_machine=powerpc-unknown | |
| 1002 | + ppc | ppcbe) basic_machine=powerpc-unknown | |
| 958 | 1003 | ;; |
| 959 | - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
| 1004 | + ppc-* | ppcbe-*) | |
| 1005 | + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
| 960 | 1006 | ;; |
| 961 | 1007 | ppcle | powerpclittle | ppc-le | powerpc-little) |
| 962 | 1008 | basic_machine=powerpcle-unknown |
| 963 | 1009 | ;; |
| 964 | 1010 | ppcle-* | powerpclittle-*) |
| @@ -979,11 +1025,15 @@ | ||
| 979 | 1025 | ;; |
| 980 | 1026 | pw32) |
| 981 | 1027 | basic_machine=i586-unknown |
| 982 | 1028 | os=-pw32 |
| 983 | 1029 | ;; |
| 984 | - rdos) | |
| 1030 | + rdos | rdos64) | |
| 1031 | + basic_machine=x86_64-pc | |
| 1032 | + os=-rdos | |
| 1033 | + ;; | |
| 1034 | + rdos32) | |
| 985 | 1035 | basic_machine=i386-pc |
| 986 | 1036 | os=-rdos |
| 987 | 1037 | ;; |
| 988 | 1038 | rom68k) |
| 989 | 1039 | basic_machine=m68k-rom68k |
| @@ -1048,10 +1098,13 @@ | ||
| 1048 | 1098 | ;; |
| 1049 | 1099 | stratus) |
| 1050 | 1100 | basic_machine=i860-stratus |
| 1051 | 1101 | os=-sysv4 |
| 1052 | 1102 | ;; |
| 1103 | + strongarm-* | thumb-*) | |
| 1104 | + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
| 1105 | + ;; | |
| 1053 | 1106 | sun2) |
| 1054 | 1107 | basic_machine=m68000-sun |
| 1055 | 1108 | ;; |
| 1056 | 1109 | sun2os3) |
| 1057 | 1110 | basic_machine=m68000-sun |
| @@ -1104,17 +1157,12 @@ | ||
| 1104 | 1157 | ;; |
| 1105 | 1158 | t90) |
| 1106 | 1159 | basic_machine=t90-cray |
| 1107 | 1160 | os=-unicos |
| 1108 | 1161 | ;; |
| 1109 | - # This must be matched before tile*. | |
| 1110 | - tilegx*) | |
| 1111 | - basic_machine=tilegx-unknown | |
| 1112 | - os=-linux-gnu | |
| 1113 | - ;; | |
| 1114 | 1162 | tile*) |
| 1115 | - basic_machine=tile-unknown | |
| 1163 | + basic_machine=$basic_machine-unknown | |
| 1116 | 1164 | os=-linux-gnu |
| 1117 | 1165 | ;; |
| 1118 | 1166 | tx39) |
| 1119 | 1167 | basic_machine=mipstx39-unknown |
| 1120 | 1168 | ;; |
| @@ -1180,10 +1228,13 @@ | ||
| 1180 | 1228 | os=-mingw32 |
| 1181 | 1229 | ;; |
| 1182 | 1230 | xps | xps100) |
| 1183 | 1231 | basic_machine=xps100-honeywell |
| 1184 | 1232 | ;; |
| 1233 | + xscale-* | xscalee[bl]-*) | |
| 1234 | + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
| 1235 | + ;; | |
| 1185 | 1236 | ymp) |
| 1186 | 1237 | basic_machine=ymp-cray |
| 1187 | 1238 | os=-unicos |
| 1188 | 1239 | ;; |
| 1189 | 1240 | z8k-*-coff) |
| @@ -1277,15 +1328,15 @@ | ||
| 1277 | 1328 | # Decode manufacturer-specific aliases for certain operating systems. |
| 1278 | 1329 | |
| 1279 | 1330 | if [ x"$os" != x"" ] |
| 1280 | 1331 | then |
| 1281 | 1332 | case $os in |
| 1282 | - # First match some system type aliases | |
| 1283 | - # that might get confused with valid system types. | |
| 1333 | + # First match some system type aliases | |
| 1334 | + # that might get confused with valid system types. | |
| 1284 | 1335 | # -solaris* is a basic system type, with this one exception. |
| 1285 | - -auroraux) | |
| 1286 | - os=-auroraux | |
| 1336 | + -auroraux) | |
| 1337 | + os=-auroraux | |
| 1287 | 1338 | ;; |
| 1288 | 1339 | -solaris1 | -solaris1.*) |
| 1289 | 1340 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| 1290 | 1341 | ;; |
| 1291 | 1342 | -solaris) |
| @@ -1305,33 +1356,33 @@ | ||
| 1305 | 1356 | # Each alternative MUST END IN A *, to match a version number. |
| 1306 | 1357 | # -sysv* is not here because it comes later, after sysvr4. |
| 1307 | 1358 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1308 | 1359 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| 1309 | 1360 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1310 | - | -sym* | -kopensolaris* \ | |
| 1361 | + | -sym* | -kopensolaris* | -plan9* \ | |
| 1311 | 1362 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1312 | 1363 | | -aos* | -aros* \ |
| 1313 | 1364 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1314 | 1365 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1315 | 1366 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1316 | - | -openbsd* | -solidbsd* \ | |
| 1367 | + | -bitrig* | -openbsd* | -solidbsd* \ | |
| 1317 | 1368 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1318 | 1369 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1319 | 1370 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1320 | 1371 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1321 | 1372 | | -chorusos* | -chorusrdb* | -cegcc* \ |
| 1322 | 1373 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1323 | - | -mingw32* | -linux-gnu* | -linux-android* \ | |
| 1324 | - | -linux-newlib* | -linux-uclibc* \ | |
| 1374 | + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
| 1375 | + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
| 1325 | 1376 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1326 | 1377 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1327 | 1378 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1328 | 1379 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| 1329 | 1380 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1330 | 1381 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1331 | 1382 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1332 | - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | |
| 1383 | + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) | |
| 1333 | 1384 | # Remember, each alternative MUST END IN *, to match a version number. |
| 1334 | 1385 | ;; |
| 1335 | 1386 | -qnx*) |
| 1336 | 1387 | case $basic_machine in |
| 1337 | 1388 | x86-* | i*86-*) |
| @@ -1366,11 +1417,11 @@ | ||
| 1366 | 1417 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
| 1367 | 1418 | ;; |
| 1368 | 1419 | -opened*) |
| 1369 | 1420 | os=-openedition |
| 1370 | 1421 | ;; |
| 1371 | - -os400*) | |
| 1422 | + -os400*) | |
| 1372 | 1423 | os=-os400 |
| 1373 | 1424 | ;; |
| 1374 | 1425 | -wince*) |
| 1375 | 1426 | os=-wince |
| 1376 | 1427 | ;; |
| @@ -1415,11 +1466,11 @@ | ||
| 1415 | 1466 | os=`echo $os | sed -e 's|sinix|sysv|'` |
| 1416 | 1467 | ;; |
| 1417 | 1468 | -sinix*) |
| 1418 | 1469 | os=-sysv4 |
| 1419 | 1470 | ;; |
| 1420 | - -tpf*) | |
| 1471 | + -tpf*) | |
| 1421 | 1472 | os=-tpf |
| 1422 | 1473 | ;; |
| 1423 | 1474 | -triton*) |
| 1424 | 1475 | os=-sysv3 |
| 1425 | 1476 | ;; |
| @@ -1451,21 +1502,18 @@ | ||
| 1451 | 1502 | os=-mint |
| 1452 | 1503 | ;; |
| 1453 | 1504 | -aros*) |
| 1454 | 1505 | os=-aros |
| 1455 | 1506 | ;; |
| 1456 | - -kaos*) | |
| 1457 | - os=-kaos | |
| 1458 | - ;; | |
| 1459 | 1507 | -zvmoe) |
| 1460 | 1508 | os=-zvmoe |
| 1461 | 1509 | ;; |
| 1462 | 1510 | -dicos*) |
| 1463 | 1511 | os=-dicos |
| 1464 | 1512 | ;; |
| 1465 | - -nacl*) | |
| 1466 | - ;; | |
| 1513 | + -nacl*) | |
| 1514 | + ;; | |
| 1467 | 1515 | -none) |
| 1468 | 1516 | ;; |
| 1469 | 1517 | *) |
| 1470 | 1518 | # Get rid of the `-' at the beginning of $os. |
| 1471 | 1519 | os=`echo $os | sed 's/[^-]*-//'` |
| @@ -1484,14 +1532,14 @@ | ||
| 1484 | 1532 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
| 1485 | 1533 | # will signal an error saying that MANUFACTURER isn't an operating |
| 1486 | 1534 | # system, and we'll never get to this point. |
| 1487 | 1535 | |
| 1488 | 1536 | case $basic_machine in |
| 1489 | - score-*) | |
| 1537 | + score-*) | |
| 1490 | 1538 | os=-elf |
| 1491 | 1539 | ;; |
| 1492 | - spu-*) | |
| 1540 | + spu-*) | |
| 1493 | 1541 | os=-elf |
| 1494 | 1542 | ;; |
| 1495 | 1543 | *-acorn) |
| 1496 | 1544 | os=-riscix1.2 |
| 1497 | 1545 | ;; |
| @@ -1499,12 +1547,18 @@ | ||
| 1499 | 1547 | os=-linux |
| 1500 | 1548 | ;; |
| 1501 | 1549 | arm*-semi) |
| 1502 | 1550 | os=-aout |
| 1503 | 1551 | ;; |
| 1504 | - c4x-* | tic4x-*) | |
| 1505 | - os=-coff | |
| 1552 | + c4x-* | tic4x-*) | |
| 1553 | + os=-coff | |
| 1554 | + ;; | |
| 1555 | + c8051-*) | |
| 1556 | + os=-elf | |
| 1557 | + ;; | |
| 1558 | + hexagon-*) | |
| 1559 | + os=-elf | |
| 1506 | 1560 | ;; |
| 1507 | 1561 | tic54x-*) |
| 1508 | 1562 | os=-coff |
| 1509 | 1563 | ;; |
| 1510 | 1564 | tic55x-*) |
| @@ -1529,18 +1583,15 @@ | ||
| 1529 | 1583 | i386-sun) |
| 1530 | 1584 | os=-sunos4.0.2 |
| 1531 | 1585 | ;; |
| 1532 | 1586 | m68000-sun) |
| 1533 | 1587 | os=-sunos3 |
| 1534 | - # This also exists in the configure program, but was not the | |
| 1535 | - # default. | |
| 1536 | - # os=-sunos4 | |
| 1537 | 1588 | ;; |
| 1538 | 1589 | m68*-cisco) |
| 1539 | 1590 | os=-aout |
| 1540 | 1591 | ;; |
| 1541 | - mep-*) | |
| 1592 | + mep-*) | |
| 1542 | 1593 | os=-elf |
| 1543 | 1594 | ;; |
| 1544 | 1595 | mips*-cisco) |
| 1545 | 1596 | os=-elf |
| 1546 | 1597 | ;; |
| @@ -1563,11 +1614,11 @@ | ||
| 1563 | 1614 | os=-haiku |
| 1564 | 1615 | ;; |
| 1565 | 1616 | *-ibm) |
| 1566 | 1617 | os=-aix |
| 1567 | 1618 | ;; |
| 1568 | - *-knuth) | |
| 1619 | + *-knuth) | |
| 1569 | 1620 | os=-mmixware |
| 1570 | 1621 | ;; |
| 1571 | 1622 | *-wec) |
| 1572 | 1623 | os=-proelf |
| 1573 | 1624 | ;; |
| 1574 | 1625 |
| --- autosetup/config.sub | |
| +++ autosetup/config.sub | |
| @@ -1,40 +1,33 @@ | |
| 1 | #! /bin/sh |
| 2 | # Configuration validation subroutine script. |
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | # Free Software Foundation, Inc. |
| 6 | |
| 7 | timestamp='2010-09-11' |
| 8 | |
| 9 | # This file is (in principle) common to ALL GNU software. |
| 10 | # The presence of a machine in this file suggests that SOME GNU software |
| 11 | # can handle that machine. It does not imply ALL GNU software can. |
| 12 | # |
| 13 | # This file is free software; you can redistribute it and/or modify |
| 14 | # it under the terms of the GNU General Public License as published by |
| 15 | # the Free Software Foundation; either version 2 of the License, or |
| 16 | # (at your option) any later version. |
| 17 | # |
| 18 | # This program is distributed in the hope that it will be useful, |
| 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | # GNU General Public License for more details. |
| 22 | # |
| 23 | # You should have received a copy of the GNU General Public License |
| 24 | # along with this program; if not, write to the Free Software |
| 25 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| 26 | # 02110-1301, USA. |
| 27 | # |
| 28 | # As a special exception to the GNU General Public License, if you |
| 29 | # distribute this file as part of a program that contains a |
| 30 | # configuration script generated by Autoconf, you may include it under |
| 31 | # the same distribution terms that you use for the rest of that program. |
| 32 | |
| 33 | |
| 34 | # Please send patches to <[email protected]>. Submit a context |
| 35 | # diff and a properly formatted GNU ChangeLog entry. |
| 36 | # |
| 37 | # Configuration subroutine to validate and canonicalize a configuration type. |
| 38 | # Supply the specified configuration type as an argument. |
| 39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
| 40 | # Otherwise, we print the canonical config type on stdout and succeed. |
| @@ -73,13 +66,11 @@ | |
| 73 | Report bugs and patches to <[email protected]>." |
| 74 | |
| 75 | version="\ |
| 76 | GNU config.sub ($timestamp) |
| 77 | |
| 78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
| 80 | Software Foundation, Inc. |
| 81 | |
| 82 | This is free software; see the source for copying conditions. There is NO |
| 83 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 84 | |
| 85 | help=" |
| @@ -123,17 +114,21 @@ | |
| 123 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
| 124 | # Here we must recognize all the valid KERNEL-OS combinations. |
| 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 126 | case $maybe_os in |
| 127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 128 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 129 | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 130 | kopensolaris*-gnu* | \ |
| 131 | storm-chaos* | os2-emx* | rtmk-nova*) |
| 132 | os=-$maybe_os |
| 133 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 134 | ;; |
| 135 | *) |
| 136 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
| 137 | if [ $basic_machine != $1 ] |
| 138 | then os=`echo $1 | sed 's/.*-/-/'` |
| 139 | else os=; fi |
| @@ -152,16 +147,16 @@ | |
| 152 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
| 153 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
| 154 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 155 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 156 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 157 | -apple | -axis | -knuth | -cray | -microblaze) |
| 158 | os= |
| 159 | basic_machine=$1 |
| 160 | ;; |
| 161 | -bluegene*) |
| 162 | os=-cnk |
| 163 | ;; |
| 164 | -sim | -cisco | -oki | -wec | -winbond) |
| 165 | os= |
| 166 | basic_machine=$1 |
| 167 | ;; |
| @@ -173,14 +168,14 @@ | |
| 173 | ;; |
| 174 | -chorusos*) |
| 175 | os=-chorusos |
| 176 | basic_machine=$1 |
| 177 | ;; |
| 178 | -chorusrdb) |
| 179 | os=-chorusrdb |
| 180 | basic_machine=$1 |
| 181 | ;; |
| 182 | -hiux*) |
| 183 | os=-hiuxwe2 |
| 184 | ;; |
| 185 | -sco6) |
| 186 | os=-sco5v6 |
| @@ -221,10 +216,16 @@ | |
| 221 | basic_machine=clipper-intergraph |
| 222 | ;; |
| 223 | -isc*) |
| 224 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 225 | ;; |
| 226 | -lynx*) |
| 227 | os=-lynxos |
| 228 | ;; |
| 229 | -ptx*) |
| 230 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
| @@ -245,24 +246,32 @@ | |
| 245 | case $basic_machine in |
| 246 | # Recognize the basic CPU types without company name. |
| 247 | # Some are omitted here because they have special meanings below. |
| 248 | 1750a | 580 \ |
| 249 | | a29k \ |
| 250 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 251 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 252 | | am33_2.0 \ |
| 253 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
| 254 | | bfin \ |
| 255 | | c4x | clipper \ |
| 256 | | d10v | d30v | dlx | dsp16xx \ |
| 257 | | fido | fr30 | frv \ |
| 258 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 259 | | i370 | i860 | i960 | ia64 \ |
| 260 | | ip2k | iq2000 \ |
| 261 | | lm32 \ |
| 262 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| 263 | | maxq | mb | microblaze | mcore | mep | metag \ |
| 264 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
| 265 | | mips16 \ |
| 266 | | mips64 | mips64el \ |
| 267 | | mips64octeon | mips64octeonel \ |
| 268 | | mips64orion | mips64orionel \ |
| @@ -272,38 +281,41 @@ | |
| 272 | | mips64vr4300 | mips64vr4300el \ |
| 273 | | mips64vr5000 | mips64vr5000el \ |
| 274 | | mips64vr5900 | mips64vr5900el \ |
| 275 | | mipsisa32 | mipsisa32el \ |
| 276 | | mipsisa32r2 | mipsisa32r2el \ |
| 277 | | mipsisa64 | mipsisa64el \ |
| 278 | | mipsisa64r2 | mipsisa64r2el \ |
| 279 | | mipsisa64sb1 | mipsisa64sb1el \ |
| 280 | | mipsisa64sr71k | mipsisa64sr71kel \ |
| 281 | | mipstx39 | mipstx39el \ |
| 282 | | mn10200 | mn10300 \ |
| 283 | | moxie \ |
| 284 | | mt \ |
| 285 | | msp430 \ |
| 286 | | nds32 | nds32le | nds32be \ |
| 287 | | nios | nios2 \ |
| 288 | | ns16k | ns32k \ |
| 289 | | or32 \ |
| 290 | | pdp10 | pdp11 | pj | pjl \ |
| 291 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| 292 | | pyramid \ |
| 293 | | rx \ |
| 294 | | score \ |
| 295 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 296 | | sh64 | sh64le \ |
| 297 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| 298 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| 299 | | spu | strongarm \ |
| 300 | | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
| 301 | | ubicom32 \ |
| 302 | | v850 | v850e \ |
| 303 | | we32k \ |
| 304 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
| 305 | | z8k | z80) |
| 306 | basic_machine=$basic_machine-unknown |
| 307 | ;; |
| 308 | c54x) |
| 309 | basic_machine=tic54x-unknown |
| @@ -312,20 +324,34 @@ | |
| 312 | basic_machine=tic55x-unknown |
| 313 | ;; |
| 314 | c6x) |
| 315 | basic_machine=tic6x-unknown |
| 316 | ;; |
| 317 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
| 318 | # Motorola 68HC11/12. |
| 319 | basic_machine=$basic_machine-unknown |
| 320 | os=-none |
| 321 | ;; |
| 322 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
| 323 | ;; |
| 324 | ms1) |
| 325 | basic_machine=mt-unknown |
| 326 | ;; |
| 327 | |
| 328 | # We use `pc' rather than `unknown' |
| 329 | # because (1) that's what they normally are, and |
| 330 | # (2) the word "unknown" tends to confuse beginning users. |
| 331 | i*86 | x86_64) |
| @@ -337,29 +363,35 @@ | |
| 337 | exit 1 |
| 338 | ;; |
| 339 | # Recognize the basic CPU types with company name. |
| 340 | 580-* \ |
| 341 | | a29k-* \ |
| 342 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| 343 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| 344 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| 345 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 346 | | avr-* | avr32-* \ |
| 347 | | bfin-* | bs2000-* \ |
| 348 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
| 349 | | clipper-* | craynv-* | cydra-* \ |
| 350 | | d10v-* | d30v-* | dlx-* \ |
| 351 | | elxsi-* \ |
| 352 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| 353 | | h8300-* | h8500-* \ |
| 354 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 355 | | i*86-* | i860-* | i960-* | ia64-* \ |
| 356 | | ip2k-* | iq2000-* \ |
| 357 | | lm32-* \ |
| 358 | | m32c-* | m32r-* | m32rle-* \ |
| 359 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 360 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
| 361 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 362 | | mips16-* \ |
| 363 | | mips64-* | mips64el-* \ |
| 364 | | mips64octeon-* | mips64octeonel-* \ |
| 365 | | mips64orion-* | mips64orionel-* \ |
| @@ -369,39 +401,45 @@ | |
| 369 | | mips64vr4300-* | mips64vr4300el-* \ |
| 370 | | mips64vr5000-* | mips64vr5000el-* \ |
| 371 | | mips64vr5900-* | mips64vr5900el-* \ |
| 372 | | mipsisa32-* | mipsisa32el-* \ |
| 373 | | mipsisa32r2-* | mipsisa32r2el-* \ |
| 374 | | mipsisa64-* | mipsisa64el-* \ |
| 375 | | mipsisa64r2-* | mipsisa64r2el-* \ |
| 376 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
| 377 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| 378 | | mipstx39-* | mipstx39el-* \ |
| 379 | | mmix-* \ |
| 380 | | mt-* \ |
| 381 | | msp430-* \ |
| 382 | | nds32-* | nds32le-* | nds32be-* \ |
| 383 | | nios-* | nios2-* \ |
| 384 | | none-* | np1-* | ns16k-* | ns32k-* \ |
| 385 | | orion-* \ |
| 386 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 387 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| 388 | | pyramid-* \ |
| 389 | | romp-* | rs6000-* | rx-* \ |
| 390 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 391 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 392 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 393 | | sparclite-* \ |
| 394 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
| 395 | | tahoe-* | thumb-* \ |
| 396 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 397 | | tile-* | tilegx-* \ |
| 398 | | tron-* \ |
| 399 | | ubicom32-* \ |
| 400 | | v850-* | v850e-* | vax-* \ |
| 401 | | we32k-* \ |
| 402 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| 403 | | xstormy16-* | xtensa*-* \ |
| 404 | | ymp-* \ |
| 405 | | z8k-* | z80-*) |
| 406 | ;; |
| 407 | # Recognize the basic CPU types without company name, with glob match. |
| @@ -422,11 +460,11 @@ | |
| 422 | ;; |
| 423 | a29khif) |
| 424 | basic_machine=a29k-amd |
| 425 | os=-udi |
| 426 | ;; |
| 427 | abacus) |
| 428 | basic_machine=abacus-unknown |
| 429 | ;; |
| 430 | adobe68k) |
| 431 | basic_machine=m68010-adobe |
| 432 | os=-scout |
| @@ -505,11 +543,11 @@ | |
| 505 | ;; |
| 506 | c90) |
| 507 | basic_machine=c90-cray |
| 508 | os=-unicos |
| 509 | ;; |
| 510 | cegcc) |
| 511 | basic_machine=arm-unknown |
| 512 | os=-cegcc |
| 513 | ;; |
| 514 | convex-c1) |
| 515 | basic_machine=c1-convex |
| @@ -537,11 +575,11 @@ | |
| 537 | ;; |
| 538 | craynv) |
| 539 | basic_machine=craynv-cray |
| 540 | os=-unicosmp |
| 541 | ;; |
| 542 | cr16) |
| 543 | basic_machine=cr16-unknown |
| 544 | os=-elf |
| 545 | ;; |
| 546 | crds | unos) |
| 547 | basic_machine=m68k-crds |
| @@ -695,11 +733,10 @@ | |
| 695 | os=-proelf |
| 696 | ;; |
| 697 | i370-ibm* | ibm*) |
| 698 | basic_machine=i370-ibm |
| 699 | ;; |
| 700 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
| 701 | i*86v32) |
| 702 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 703 | os=-sysv32 |
| 704 | ;; |
| 705 | i*86v4*) |
| @@ -753,15 +790,19 @@ | |
| 753 | ;; |
| 754 | merlin) |
| 755 | basic_machine=ns32k-utek |
| 756 | os=-sysv |
| 757 | ;; |
| 758 | microblaze) |
| 759 | basic_machine=microblaze-xilinx |
| 760 | ;; |
| 761 | mingw32) |
| 762 | basic_machine=i386-pc |
| 763 | os=-mingw32 |
| 764 | ;; |
| 765 | mingw32ce) |
| 766 | basic_machine=arm-unknown |
| 767 | os=-mingw32ce |
| @@ -792,18 +833,22 @@ | |
| 792 | os=-msdos |
| 793 | ;; |
| 794 | ms1-*) |
| 795 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
| 796 | ;; |
| 797 | mvs) |
| 798 | basic_machine=i370-ibm |
| 799 | os=-mvs |
| 800 | ;; |
| 801 | msys) |
| 802 | basic_machine=i386-pc |
| 803 | os=-msys |
| 804 | ;; |
| 805 | ncr3000) |
| 806 | basic_machine=i486-ncr |
| 807 | os=-sysv4 |
| 808 | ;; |
| 809 | netbsd386) |
| @@ -864,14 +909,14 @@ | |
| 864 | os=-nonstopux |
| 865 | ;; |
| 866 | np1) |
| 867 | basic_machine=np1-gould |
| 868 | ;; |
| 869 | neo-tandem) |
| 870 | basic_machine=neo-tandem |
| 871 | ;; |
| 872 | nse-tandem) |
| 873 | basic_machine=nse-tandem |
| 874 | ;; |
| 875 | nsr-tandem) |
| 876 | basic_machine=nsr-tandem |
| 877 | ;; |
| @@ -952,13 +997,14 @@ | |
| 952 | pn) |
| 953 | basic_machine=pn-gould |
| 954 | ;; |
| 955 | power) basic_machine=power-ibm |
| 956 | ;; |
| 957 | ppc) basic_machine=powerpc-unknown |
| 958 | ;; |
| 959 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 960 | ;; |
| 961 | ppcle | powerpclittle | ppc-le | powerpc-little) |
| 962 | basic_machine=powerpcle-unknown |
| 963 | ;; |
| 964 | ppcle-* | powerpclittle-*) |
| @@ -979,11 +1025,15 @@ | |
| 979 | ;; |
| 980 | pw32) |
| 981 | basic_machine=i586-unknown |
| 982 | os=-pw32 |
| 983 | ;; |
| 984 | rdos) |
| 985 | basic_machine=i386-pc |
| 986 | os=-rdos |
| 987 | ;; |
| 988 | rom68k) |
| 989 | basic_machine=m68k-rom68k |
| @@ -1048,10 +1098,13 @@ | |
| 1048 | ;; |
| 1049 | stratus) |
| 1050 | basic_machine=i860-stratus |
| 1051 | os=-sysv4 |
| 1052 | ;; |
| 1053 | sun2) |
| 1054 | basic_machine=m68000-sun |
| 1055 | ;; |
| 1056 | sun2os3) |
| 1057 | basic_machine=m68000-sun |
| @@ -1104,17 +1157,12 @@ | |
| 1104 | ;; |
| 1105 | t90) |
| 1106 | basic_machine=t90-cray |
| 1107 | os=-unicos |
| 1108 | ;; |
| 1109 | # This must be matched before tile*. |
| 1110 | tilegx*) |
| 1111 | basic_machine=tilegx-unknown |
| 1112 | os=-linux-gnu |
| 1113 | ;; |
| 1114 | tile*) |
| 1115 | basic_machine=tile-unknown |
| 1116 | os=-linux-gnu |
| 1117 | ;; |
| 1118 | tx39) |
| 1119 | basic_machine=mipstx39-unknown |
| 1120 | ;; |
| @@ -1180,10 +1228,13 @@ | |
| 1180 | os=-mingw32 |
| 1181 | ;; |
| 1182 | xps | xps100) |
| 1183 | basic_machine=xps100-honeywell |
| 1184 | ;; |
| 1185 | ymp) |
| 1186 | basic_machine=ymp-cray |
| 1187 | os=-unicos |
| 1188 | ;; |
| 1189 | z8k-*-coff) |
| @@ -1277,15 +1328,15 @@ | |
| 1277 | # Decode manufacturer-specific aliases for certain operating systems. |
| 1278 | |
| 1279 | if [ x"$os" != x"" ] |
| 1280 | then |
| 1281 | case $os in |
| 1282 | # First match some system type aliases |
| 1283 | # that might get confused with valid system types. |
| 1284 | # -solaris* is a basic system type, with this one exception. |
| 1285 | -auroraux) |
| 1286 | os=-auroraux |
| 1287 | ;; |
| 1288 | -solaris1 | -solaris1.*) |
| 1289 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| 1290 | ;; |
| 1291 | -solaris) |
| @@ -1305,33 +1356,33 @@ | |
| 1305 | # Each alternative MUST END IN A *, to match a version number. |
| 1306 | # -sysv* is not here because it comes later, after sysvr4. |
| 1307 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1308 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| 1309 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1310 | | -sym* | -kopensolaris* \ |
| 1311 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1312 | | -aos* | -aros* \ |
| 1313 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1314 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1315 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1316 | | -openbsd* | -solidbsd* \ |
| 1317 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1318 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1319 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1320 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1321 | | -chorusos* | -chorusrdb* | -cegcc* \ |
| 1322 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1323 | | -mingw32* | -linux-gnu* | -linux-android* \ |
| 1324 | | -linux-newlib* | -linux-uclibc* \ |
| 1325 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1326 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1327 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1328 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| 1329 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1330 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1331 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1332 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
| 1333 | # Remember, each alternative MUST END IN *, to match a version number. |
| 1334 | ;; |
| 1335 | -qnx*) |
| 1336 | case $basic_machine in |
| 1337 | x86-* | i*86-*) |
| @@ -1366,11 +1417,11 @@ | |
| 1366 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
| 1367 | ;; |
| 1368 | -opened*) |
| 1369 | os=-openedition |
| 1370 | ;; |
| 1371 | -os400*) |
| 1372 | os=-os400 |
| 1373 | ;; |
| 1374 | -wince*) |
| 1375 | os=-wince |
| 1376 | ;; |
| @@ -1415,11 +1466,11 @@ | |
| 1415 | os=`echo $os | sed -e 's|sinix|sysv|'` |
| 1416 | ;; |
| 1417 | -sinix*) |
| 1418 | os=-sysv4 |
| 1419 | ;; |
| 1420 | -tpf*) |
| 1421 | os=-tpf |
| 1422 | ;; |
| 1423 | -triton*) |
| 1424 | os=-sysv3 |
| 1425 | ;; |
| @@ -1451,21 +1502,18 @@ | |
| 1451 | os=-mint |
| 1452 | ;; |
| 1453 | -aros*) |
| 1454 | os=-aros |
| 1455 | ;; |
| 1456 | -kaos*) |
| 1457 | os=-kaos |
| 1458 | ;; |
| 1459 | -zvmoe) |
| 1460 | os=-zvmoe |
| 1461 | ;; |
| 1462 | -dicos*) |
| 1463 | os=-dicos |
| 1464 | ;; |
| 1465 | -nacl*) |
| 1466 | ;; |
| 1467 | -none) |
| 1468 | ;; |
| 1469 | *) |
| 1470 | # Get rid of the `-' at the beginning of $os. |
| 1471 | os=`echo $os | sed 's/[^-]*-//'` |
| @@ -1484,14 +1532,14 @@ | |
| 1484 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
| 1485 | # will signal an error saying that MANUFACTURER isn't an operating |
| 1486 | # system, and we'll never get to this point. |
| 1487 | |
| 1488 | case $basic_machine in |
| 1489 | score-*) |
| 1490 | os=-elf |
| 1491 | ;; |
| 1492 | spu-*) |
| 1493 | os=-elf |
| 1494 | ;; |
| 1495 | *-acorn) |
| 1496 | os=-riscix1.2 |
| 1497 | ;; |
| @@ -1499,12 +1547,18 @@ | |
| 1499 | os=-linux |
| 1500 | ;; |
| 1501 | arm*-semi) |
| 1502 | os=-aout |
| 1503 | ;; |
| 1504 | c4x-* | tic4x-*) |
| 1505 | os=-coff |
| 1506 | ;; |
| 1507 | tic54x-*) |
| 1508 | os=-coff |
| 1509 | ;; |
| 1510 | tic55x-*) |
| @@ -1529,18 +1583,15 @@ | |
| 1529 | i386-sun) |
| 1530 | os=-sunos4.0.2 |
| 1531 | ;; |
| 1532 | m68000-sun) |
| 1533 | os=-sunos3 |
| 1534 | # This also exists in the configure program, but was not the |
| 1535 | # default. |
| 1536 | # os=-sunos4 |
| 1537 | ;; |
| 1538 | m68*-cisco) |
| 1539 | os=-aout |
| 1540 | ;; |
| 1541 | mep-*) |
| 1542 | os=-elf |
| 1543 | ;; |
| 1544 | mips*-cisco) |
| 1545 | os=-elf |
| 1546 | ;; |
| @@ -1563,11 +1614,11 @@ | |
| 1563 | os=-haiku |
| 1564 | ;; |
| 1565 | *-ibm) |
| 1566 | os=-aix |
| 1567 | ;; |
| 1568 | *-knuth) |
| 1569 | os=-mmixware |
| 1570 | ;; |
| 1571 | *-wec) |
| 1572 | os=-proelf |
| 1573 | ;; |
| 1574 |
| --- autosetup/config.sub | |
| +++ autosetup/config.sub | |
| @@ -1,40 +1,33 @@ | |
| 1 | #! /bin/sh |
| 2 | # Configuration validation subroutine script. |
| 3 | # Copyright 1992-2014 Free Software Foundation, Inc. |
| 4 | |
| 5 | timestamp='2014-05-01' |
| 6 | |
| 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 |
| 9 | # the Free Software Foundation; either version 3 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # This program is distributed in the hope that it will be useful, but |
| 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | # General Public License for more details. |
| 16 | # |
| 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/>. |
| 19 | # |
| 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 |
| 22 | # configuration script generated by Autoconf, you may include it under |
| 23 | # the same distribution terms that you use for the rest of that |
| 24 | # program. This Exception is an additional permission under section 7 |
| 25 | # of the GNU General Public License, version 3 ("GPLv3"). |
| 26 | |
| 27 | |
| 28 | # Please send patches with a ChangeLog entry to [email protected]. |
| 29 | # |
| 30 | # Configuration subroutine to validate and canonicalize a configuration type. |
| 31 | # Supply the specified configuration type as an argument. |
| 32 | # If it is invalid, we print an error message on stderr and exit with code 1. |
| 33 | # Otherwise, we print the canonical config type on stdout and succeed. |
| @@ -73,13 +66,11 @@ | |
| 66 | Report bugs and patches to <[email protected]>." |
| 67 | |
| 68 | version="\ |
| 69 | GNU config.sub ($timestamp) |
| 70 | |
| 71 | Copyright 1992-2014 Free Software Foundation, Inc. |
| 72 | |
| 73 | This is free software; see the source for copying conditions. There is NO |
| 74 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 75 | |
| 76 | help=" |
| @@ -123,17 +114,21 @@ | |
| 114 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
| 115 | # Here we must recognize all the valid KERNEL-OS combinations. |
| 116 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 117 | case $maybe_os in |
| 118 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 119 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 120 | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 121 | kopensolaris*-gnu* | \ |
| 122 | storm-chaos* | os2-emx* | rtmk-nova*) |
| 123 | os=-$maybe_os |
| 124 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 125 | ;; |
| 126 | android-linux) |
| 127 | os=-linux-android |
| 128 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown |
| 129 | ;; |
| 130 | *) |
| 131 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
| 132 | if [ $basic_machine != $1 ] |
| 133 | then os=`echo $1 | sed 's/.*-/-/'` |
| 134 | else os=; fi |
| @@ -152,16 +147,16 @@ | |
| 147 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
| 148 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
| 149 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| 150 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| 151 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| 152 | -apple | -axis | -knuth | -cray | -microblaze*) |
| 153 | os= |
| 154 | basic_machine=$1 |
| 155 | ;; |
| 156 | -bluegene*) |
| 157 | os=-cnk |
| 158 | ;; |
| 159 | -sim | -cisco | -oki | -wec | -winbond) |
| 160 | os= |
| 161 | basic_machine=$1 |
| 162 | ;; |
| @@ -173,14 +168,14 @@ | |
| 168 | ;; |
| 169 | -chorusos*) |
| 170 | os=-chorusos |
| 171 | basic_machine=$1 |
| 172 | ;; |
| 173 | -chorusrdb) |
| 174 | os=-chorusrdb |
| 175 | basic_machine=$1 |
| 176 | ;; |
| 177 | -hiux*) |
| 178 | os=-hiuxwe2 |
| 179 | ;; |
| 180 | -sco6) |
| 181 | os=-sco5v6 |
| @@ -221,10 +216,16 @@ | |
| 216 | basic_machine=clipper-intergraph |
| 217 | ;; |
| 218 | -isc*) |
| 219 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| 220 | ;; |
| 221 | -lynx*178) |
| 222 | os=-lynxos178 |
| 223 | ;; |
| 224 | -lynx*5) |
| 225 | os=-lynxos5 |
| 226 | ;; |
| 227 | -lynx*) |
| 228 | os=-lynxos |
| 229 | ;; |
| 230 | -ptx*) |
| 231 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
| @@ -245,24 +246,32 @@ | |
| 246 | case $basic_machine in |
| 247 | # Recognize the basic CPU types without company name. |
| 248 | # Some are omitted here because they have special meanings below. |
| 249 | 1750a | 580 \ |
| 250 | | a29k \ |
| 251 | | aarch64 | aarch64_be \ |
| 252 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 253 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 254 | | am33_2.0 \ |
| 255 | | arc | arceb \ |
| 256 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
| 257 | | avr | avr32 \ |
| 258 | | be32 | be64 \ |
| 259 | | bfin \ |
| 260 | | c4x | c8051 | clipper \ |
| 261 | | d10v | d30v | dlx | dsp16xx \ |
| 262 | | epiphany \ |
| 263 | | fido | fr30 | frv \ |
| 264 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 265 | | hexagon \ |
| 266 | | i370 | i860 | i960 | ia64 \ |
| 267 | | ip2k | iq2000 \ |
| 268 | | k1om \ |
| 269 | | le32 | le64 \ |
| 270 | | lm32 \ |
| 271 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| 272 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ |
| 273 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
| 274 | | mips16 \ |
| 275 | | mips64 | mips64el \ |
| 276 | | mips64octeon | mips64octeonel \ |
| 277 | | mips64orion | mips64orionel \ |
| @@ -272,38 +281,41 @@ | |
| 281 | | mips64vr4300 | mips64vr4300el \ |
| 282 | | mips64vr5000 | mips64vr5000el \ |
| 283 | | mips64vr5900 | mips64vr5900el \ |
| 284 | | mipsisa32 | mipsisa32el \ |
| 285 | | mipsisa32r2 | mipsisa32r2el \ |
| 286 | | mipsisa32r6 | mipsisa32r6el \ |
| 287 | | mipsisa64 | mipsisa64el \ |
| 288 | | mipsisa64r2 | mipsisa64r2el \ |
| 289 | | mipsisa64r6 | mipsisa64r6el \ |
| 290 | | mipsisa64sb1 | mipsisa64sb1el \ |
| 291 | | mipsisa64sr71k | mipsisa64sr71kel \ |
| 292 | | mipsr5900 | mipsr5900el \ |
| 293 | | mipstx39 | mipstx39el \ |
| 294 | | mn10200 | mn10300 \ |
| 295 | | moxie \ |
| 296 | | mt \ |
| 297 | | msp430 \ |
| 298 | | nds32 | nds32le | nds32be \ |
| 299 | | nios | nios2 | nios2eb | nios2el \ |
| 300 | | ns16k | ns32k \ |
| 301 | | open8 | or1k | or1knd | or32 \ |
| 302 | | pdp10 | pdp11 | pj | pjl \ |
| 303 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
| 304 | | pyramid \ |
| 305 | | rl78 | rx \ |
| 306 | | score \ |
| 307 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 308 | | sh64 | sh64le \ |
| 309 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| 310 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| 311 | | spu \ |
| 312 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
| 313 | | ubicom32 \ |
| 314 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
| 315 | | we32k \ |
| 316 | | x86 | xc16x | xstormy16 | xtensa \ |
| 317 | | z8k | z80) |
| 318 | basic_machine=$basic_machine-unknown |
| 319 | ;; |
| 320 | c54x) |
| 321 | basic_machine=tic54x-unknown |
| @@ -312,20 +324,34 @@ | |
| 324 | basic_machine=tic55x-unknown |
| 325 | ;; |
| 326 | c6x) |
| 327 | basic_machine=tic6x-unknown |
| 328 | ;; |
| 329 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) |
| 330 | basic_machine=$basic_machine-unknown |
| 331 | os=-none |
| 332 | ;; |
| 333 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
| 334 | ;; |
| 335 | ms1) |
| 336 | basic_machine=mt-unknown |
| 337 | ;; |
| 338 | |
| 339 | strongarm | thumb | xscale) |
| 340 | basic_machine=arm-unknown |
| 341 | ;; |
| 342 | xgate) |
| 343 | basic_machine=$basic_machine-unknown |
| 344 | os=-none |
| 345 | ;; |
| 346 | xscaleeb) |
| 347 | basic_machine=armeb-unknown |
| 348 | ;; |
| 349 | |
| 350 | xscaleel) |
| 351 | basic_machine=armel-unknown |
| 352 | ;; |
| 353 | |
| 354 | # We use `pc' rather than `unknown' |
| 355 | # because (1) that's what they normally are, and |
| 356 | # (2) the word "unknown" tends to confuse beginning users. |
| 357 | i*86 | x86_64) |
| @@ -337,29 +363,35 @@ | |
| 363 | exit 1 |
| 364 | ;; |
| 365 | # Recognize the basic CPU types with company name. |
| 366 | 580-* \ |
| 367 | | a29k-* \ |
| 368 | | aarch64-* | aarch64_be-* \ |
| 369 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
| 370 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| 371 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
| 372 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 373 | | avr-* | avr32-* \ |
| 374 | | be32-* | be64-* \ |
| 375 | | bfin-* | bs2000-* \ |
| 376 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
| 377 | | c8051-* | clipper-* | craynv-* | cydra-* \ |
| 378 | | d10v-* | d30v-* | dlx-* \ |
| 379 | | elxsi-* \ |
| 380 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| 381 | | h8300-* | h8500-* \ |
| 382 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 383 | | hexagon-* \ |
| 384 | | i*86-* | i860-* | i960-* | ia64-* \ |
| 385 | | ip2k-* | iq2000-* \ |
| 386 | | k1om-* \ |
| 387 | | le32-* | le64-* \ |
| 388 | | lm32-* \ |
| 389 | | m32c-* | m32r-* | m32rle-* \ |
| 390 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 391 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ |
| 392 | | microblaze-* | microblazeel-* \ |
| 393 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| 394 | | mips16-* \ |
| 395 | | mips64-* | mips64el-* \ |
| 396 | | mips64octeon-* | mips64octeonel-* \ |
| 397 | | mips64orion-* | mips64orionel-* \ |
| @@ -369,39 +401,45 @@ | |
| 401 | | mips64vr4300-* | mips64vr4300el-* \ |
| 402 | | mips64vr5000-* | mips64vr5000el-* \ |
| 403 | | mips64vr5900-* | mips64vr5900el-* \ |
| 404 | | mipsisa32-* | mipsisa32el-* \ |
| 405 | | mipsisa32r2-* | mipsisa32r2el-* \ |
| 406 | | mipsisa32r6-* | mipsisa32r6el-* \ |
| 407 | | mipsisa64-* | mipsisa64el-* \ |
| 408 | | mipsisa64r2-* | mipsisa64r2el-* \ |
| 409 | | mipsisa64r6-* | mipsisa64r6el-* \ |
| 410 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
| 411 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| 412 | | mipsr5900-* | mipsr5900el-* \ |
| 413 | | mipstx39-* | mipstx39el-* \ |
| 414 | | mmix-* \ |
| 415 | | mt-* \ |
| 416 | | msp430-* \ |
| 417 | | nds32-* | nds32le-* | nds32be-* \ |
| 418 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ |
| 419 | | none-* | np1-* | ns16k-* | ns32k-* \ |
| 420 | | open8-* \ |
| 421 | | or1k*-* \ |
| 422 | | orion-* \ |
| 423 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 424 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
| 425 | | pyramid-* \ |
| 426 | | rl78-* | romp-* | rs6000-* | rx-* \ |
| 427 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 428 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 429 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 430 | | sparclite-* \ |
| 431 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
| 432 | | tahoe-* \ |
| 433 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 434 | | tile*-* \ |
| 435 | | tron-* \ |
| 436 | | ubicom32-* \ |
| 437 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
| 438 | | vax-* \ |
| 439 | | we32k-* \ |
| 440 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
| 441 | | xstormy16-* | xtensa*-* \ |
| 442 | | ymp-* \ |
| 443 | | z8k-* | z80-*) |
| 444 | ;; |
| 445 | # Recognize the basic CPU types without company name, with glob match. |
| @@ -422,11 +460,11 @@ | |
| 460 | ;; |
| 461 | a29khif) |
| 462 | basic_machine=a29k-amd |
| 463 | os=-udi |
| 464 | ;; |
| 465 | abacus) |
| 466 | basic_machine=abacus-unknown |
| 467 | ;; |
| 468 | adobe68k) |
| 469 | basic_machine=m68010-adobe |
| 470 | os=-scout |
| @@ -505,11 +543,11 @@ | |
| 543 | ;; |
| 544 | c90) |
| 545 | basic_machine=c90-cray |
| 546 | os=-unicos |
| 547 | ;; |
| 548 | cegcc) |
| 549 | basic_machine=arm-unknown |
| 550 | os=-cegcc |
| 551 | ;; |
| 552 | convex-c1) |
| 553 | basic_machine=c1-convex |
| @@ -537,11 +575,11 @@ | |
| 575 | ;; |
| 576 | craynv) |
| 577 | basic_machine=craynv-cray |
| 578 | os=-unicosmp |
| 579 | ;; |
| 580 | cr16 | cr16-*) |
| 581 | basic_machine=cr16-unknown |
| 582 | os=-elf |
| 583 | ;; |
| 584 | crds | unos) |
| 585 | basic_machine=m68k-crds |
| @@ -695,11 +733,10 @@ | |
| 733 | os=-proelf |
| 734 | ;; |
| 735 | i370-ibm* | ibm*) |
| 736 | basic_machine=i370-ibm |
| 737 | ;; |
| 738 | i*86v32) |
| 739 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
| 740 | os=-sysv32 |
| 741 | ;; |
| 742 | i*86v4*) |
| @@ -753,15 +790,19 @@ | |
| 790 | ;; |
| 791 | merlin) |
| 792 | basic_machine=ns32k-utek |
| 793 | os=-sysv |
| 794 | ;; |
| 795 | microblaze*) |
| 796 | basic_machine=microblaze-xilinx |
| 797 | ;; |
| 798 | mingw64) |
| 799 | basic_machine=x86_64-pc |
| 800 | os=-mingw64 |
| 801 | ;; |
| 802 | mingw32) |
| 803 | basic_machine=i686-pc |
| 804 | os=-mingw32 |
| 805 | ;; |
| 806 | mingw32ce) |
| 807 | basic_machine=arm-unknown |
| 808 | os=-mingw32ce |
| @@ -792,18 +833,22 @@ | |
| 833 | os=-msdos |
| 834 | ;; |
| 835 | ms1-*) |
| 836 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
| 837 | ;; |
| 838 | msys) |
| 839 | basic_machine=i686-pc |
| 840 | os=-msys |
| 841 | ;; |
| 842 | mvs) |
| 843 | basic_machine=i370-ibm |
| 844 | os=-mvs |
| 845 | ;; |
| 846 | nacl) |
| 847 | basic_machine=le32-unknown |
| 848 | os=-nacl |
| 849 | ;; |
| 850 | ncr3000) |
| 851 | basic_machine=i486-ncr |
| 852 | os=-sysv4 |
| 853 | ;; |
| 854 | netbsd386) |
| @@ -864,14 +909,14 @@ | |
| 909 | os=-nonstopux |
| 910 | ;; |
| 911 | np1) |
| 912 | basic_machine=np1-gould |
| 913 | ;; |
| 914 | neo-tandem) |
| 915 | basic_machine=neo-tandem |
| 916 | ;; |
| 917 | nse-tandem) |
| 918 | basic_machine=nse-tandem |
| 919 | ;; |
| 920 | nsr-tandem) |
| 921 | basic_machine=nsr-tandem |
| 922 | ;; |
| @@ -952,13 +997,14 @@ | |
| 997 | pn) |
| 998 | basic_machine=pn-gould |
| 999 | ;; |
| 1000 | power) basic_machine=power-ibm |
| 1001 | ;; |
| 1002 | ppc | ppcbe) basic_machine=powerpc-unknown |
| 1003 | ;; |
| 1004 | ppc-* | ppcbe-*) |
| 1005 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 1006 | ;; |
| 1007 | ppcle | powerpclittle | ppc-le | powerpc-little) |
| 1008 | basic_machine=powerpcle-unknown |
| 1009 | ;; |
| 1010 | ppcle-* | powerpclittle-*) |
| @@ -979,11 +1025,15 @@ | |
| 1025 | ;; |
| 1026 | pw32) |
| 1027 | basic_machine=i586-unknown |
| 1028 | os=-pw32 |
| 1029 | ;; |
| 1030 | rdos | rdos64) |
| 1031 | basic_machine=x86_64-pc |
| 1032 | os=-rdos |
| 1033 | ;; |
| 1034 | rdos32) |
| 1035 | basic_machine=i386-pc |
| 1036 | os=-rdos |
| 1037 | ;; |
| 1038 | rom68k) |
| 1039 | basic_machine=m68k-rom68k |
| @@ -1048,10 +1098,13 @@ | |
| 1098 | ;; |
| 1099 | stratus) |
| 1100 | basic_machine=i860-stratus |
| 1101 | os=-sysv4 |
| 1102 | ;; |
| 1103 | strongarm-* | thumb-*) |
| 1104 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 1105 | ;; |
| 1106 | sun2) |
| 1107 | basic_machine=m68000-sun |
| 1108 | ;; |
| 1109 | sun2os3) |
| 1110 | basic_machine=m68000-sun |
| @@ -1104,17 +1157,12 @@ | |
| 1157 | ;; |
| 1158 | t90) |
| 1159 | basic_machine=t90-cray |
| 1160 | os=-unicos |
| 1161 | ;; |
| 1162 | tile*) |
| 1163 | basic_machine=$basic_machine-unknown |
| 1164 | os=-linux-gnu |
| 1165 | ;; |
| 1166 | tx39) |
| 1167 | basic_machine=mipstx39-unknown |
| 1168 | ;; |
| @@ -1180,10 +1228,13 @@ | |
| 1228 | os=-mingw32 |
| 1229 | ;; |
| 1230 | xps | xps100) |
| 1231 | basic_machine=xps100-honeywell |
| 1232 | ;; |
| 1233 | xscale-* | xscalee[bl]-*) |
| 1234 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
| 1235 | ;; |
| 1236 | ymp) |
| 1237 | basic_machine=ymp-cray |
| 1238 | os=-unicos |
| 1239 | ;; |
| 1240 | z8k-*-coff) |
| @@ -1277,15 +1328,15 @@ | |
| 1328 | # Decode manufacturer-specific aliases for certain operating systems. |
| 1329 | |
| 1330 | if [ x"$os" != x"" ] |
| 1331 | then |
| 1332 | case $os in |
| 1333 | # First match some system type aliases |
| 1334 | # that might get confused with valid system types. |
| 1335 | # -solaris* is a basic system type, with this one exception. |
| 1336 | -auroraux) |
| 1337 | os=-auroraux |
| 1338 | ;; |
| 1339 | -solaris1 | -solaris1.*) |
| 1340 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| 1341 | ;; |
| 1342 | -solaris) |
| @@ -1305,33 +1356,33 @@ | |
| 1356 | # Each alternative MUST END IN A *, to match a version number. |
| 1357 | # -sysv* is not here because it comes later, after sysvr4. |
| 1358 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| 1359 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| 1360 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1361 | | -sym* | -kopensolaris* | -plan9* \ |
| 1362 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1363 | | -aos* | -aros* \ |
| 1364 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1365 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1366 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1367 | | -bitrig* | -openbsd* | -solidbsd* \ |
| 1368 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1369 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1370 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1371 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1372 | | -chorusos* | -chorusrdb* | -cegcc* \ |
| 1373 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1374 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| 1375 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
| 1376 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 1377 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1378 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| 1379 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| 1380 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1381 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1382 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1383 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) |
| 1384 | # Remember, each alternative MUST END IN *, to match a version number. |
| 1385 | ;; |
| 1386 | -qnx*) |
| 1387 | case $basic_machine in |
| 1388 | x86-* | i*86-*) |
| @@ -1366,11 +1417,11 @@ | |
| 1417 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
| 1418 | ;; |
| 1419 | -opened*) |
| 1420 | os=-openedition |
| 1421 | ;; |
| 1422 | -os400*) |
| 1423 | os=-os400 |
| 1424 | ;; |
| 1425 | -wince*) |
| 1426 | os=-wince |
| 1427 | ;; |
| @@ -1415,11 +1466,11 @@ | |
| 1466 | os=`echo $os | sed -e 's|sinix|sysv|'` |
| 1467 | ;; |
| 1468 | -sinix*) |
| 1469 | os=-sysv4 |
| 1470 | ;; |
| 1471 | -tpf*) |
| 1472 | os=-tpf |
| 1473 | ;; |
| 1474 | -triton*) |
| 1475 | os=-sysv3 |
| 1476 | ;; |
| @@ -1451,21 +1502,18 @@ | |
| 1502 | os=-mint |
| 1503 | ;; |
| 1504 | -aros*) |
| 1505 | os=-aros |
| 1506 | ;; |
| 1507 | -zvmoe) |
| 1508 | os=-zvmoe |
| 1509 | ;; |
| 1510 | -dicos*) |
| 1511 | os=-dicos |
| 1512 | ;; |
| 1513 | -nacl*) |
| 1514 | ;; |
| 1515 | -none) |
| 1516 | ;; |
| 1517 | *) |
| 1518 | # Get rid of the `-' at the beginning of $os. |
| 1519 | os=`echo $os | sed 's/[^-]*-//'` |
| @@ -1484,14 +1532,14 @@ | |
| 1532 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
| 1533 | # will signal an error saying that MANUFACTURER isn't an operating |
| 1534 | # system, and we'll never get to this point. |
| 1535 | |
| 1536 | case $basic_machine in |
| 1537 | score-*) |
| 1538 | os=-elf |
| 1539 | ;; |
| 1540 | spu-*) |
| 1541 | os=-elf |
| 1542 | ;; |
| 1543 | *-acorn) |
| 1544 | os=-riscix1.2 |
| 1545 | ;; |
| @@ -1499,12 +1547,18 @@ | |
| 1547 | os=-linux |
| 1548 | ;; |
| 1549 | arm*-semi) |
| 1550 | os=-aout |
| 1551 | ;; |
| 1552 | c4x-* | tic4x-*) |
| 1553 | os=-coff |
| 1554 | ;; |
| 1555 | c8051-*) |
| 1556 | os=-elf |
| 1557 | ;; |
| 1558 | hexagon-*) |
| 1559 | os=-elf |
| 1560 | ;; |
| 1561 | tic54x-*) |
| 1562 | os=-coff |
| 1563 | ;; |
| 1564 | tic55x-*) |
| @@ -1529,18 +1583,15 @@ | |
| 1583 | i386-sun) |
| 1584 | os=-sunos4.0.2 |
| 1585 | ;; |
| 1586 | m68000-sun) |
| 1587 | os=-sunos3 |
| 1588 | ;; |
| 1589 | m68*-cisco) |
| 1590 | os=-aout |
| 1591 | ;; |
| 1592 | mep-*) |
| 1593 | os=-elf |
| 1594 | ;; |
| 1595 | mips*-cisco) |
| 1596 | os=-elf |
| 1597 | ;; |
| @@ -1563,11 +1614,11 @@ | |
| 1614 | os=-haiku |
| 1615 | ;; |
| 1616 | *-ibm) |
| 1617 | os=-aix |
| 1618 | ;; |
| 1619 | *-knuth) |
| 1620 | os=-mmixware |
| 1621 | ;; |
| 1622 | *-wec) |
| 1623 | os=-proelf |
| 1624 | ;; |
| 1625 |