Changeset 4193
- Timestamp:
- Apr 30, 2020 11:56:40 AM (10 months ago)
- Location:
- ThirdParty
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/HSL/stable/2.1
- Property svn:mergeinfo changed
/ThirdParty/HSL/trunk merged: 4191-4192
- Property svn:mergeinfo changed
-
ThirdParty/HSL/stable/2.1/Makefile.in
r4172 r4193 1 # Makefile.in generated by automake 1.16. 1from Makefile.am.1 # Makefile.in generated by automake 1.16.2 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994-20 18Free Software Foundation, Inc.4 # Copyright (C) 1994-2020 Free Software Foundation, Inc. 5 5 6 6 # This Makefile.in is free software; the Free Software Foundation … … 255 255 coinhsl/hsl_ma86/C/hsl_ma86d.h coinhsl/hsl_ma97/C/hsl_ma97d.h 256 256 HEADERS = $(includecoin_HEADERS) 257 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \258 $(LISP)config.h.in CoinHslConfig.h.in257 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ 258 config.h.in CoinHslConfig.h.in 259 259 # Read a list of newline-separated strings from the standard input, 260 260 # and print each of them once, without duplicates. Input order is -
ThirdParty/HSL/stable/2.1/ar-lib
r4132 r4193 3 3 4 4 me=ar-lib 5 scriptversion=201 2-03-01.08; # UTC6 7 # Copyright (C) 2010-20 18Free Software Foundation, Inc.5 scriptversion=2019-07-04.01; # UTC 6 7 # Copyright (C) 2010-2020 Free Software Foundation, Inc. 8 8 # Written by Peter Rosin <peda@lysator.liu.se>. 9 9 # … … 51 51 # lazily determine how to convert abs files 52 52 case `uname -s` in 53 MINGW* | MSYS*)53 MINGW*) 54 54 file_conv=mingw 55 55 ;; 56 CYGWIN* )56 CYGWIN* | MSYS*) 57 57 file_conv=cygwin 58 58 ;; … … 66 66 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` 67 67 ;; 68 cygwin )68 cygwin | msys) 69 69 file=`cygpath -m "$file" || echo "$file"` 70 70 ;; … … 225 225 done 226 226 else 227 $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member 228 do 229 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? 230 done 227 $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \ 228 | while read member 229 do 230 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? 231 done 231 232 fi 232 233 -
ThirdParty/HSL/stable/2.1/compile
r4023 r4193 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1999-20 18Free Software Foundation, Inc.6 # Copyright (C) 1999-2020 Free Software Foundation, Inc. 7 7 # Written by Tom Tromey <tromey@cygnus.com>. 8 8 # … … 51 51 # lazily determine how to convert abs files 52 52 case `uname -s` in 53 MINGW* | MSYS*)53 MINGW*) 54 54 file_conv=mingw 55 55 ;; 56 CYGWIN* )56 CYGWIN* | MSYS*) 57 57 file_conv=cygwin 58 58 ;; … … 68 68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` 69 69 ;; 70 cygwin/* )70 cygwin/* | msys/*) 71 71 file=`cygpath -m "$file" || echo "$file"` 72 72 ;; … … 207 207 linker_opts="$linker_opts $2" 208 208 ;; 209 -std=*) 210 set x "$@" -std:"${1#-std=}" 211 shift 212 ;; 209 213 -*) 210 214 set x "$@" "$1" -
ThirdParty/HSL/stable/2.1/config.guess
r4023 r4193 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-20 18Free Software Foundation, Inc.4 5 timestamp='20 18-03-08'3 # Copyright 1992-2020 Free Software Foundation, Inc. 4 5 timestamp='2020-01-01' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 51 51 52 52 Originally written by Per Bothner. 53 Copyright 1992-20 18Free Software Foundation, Inc.53 Copyright 1992-2020 Free Software Foundation, Inc. 54 54 55 55 This is free software; see the source for copying conditions. There is NO … … 85 85 fi 86 86 87 trap 'exit 1' 1 2 1588 89 87 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a 90 88 # compiler to aid in system detection is discouraged as it requires … … 97 95 # Portable tmp directory creation inspired by the Autoconf team. 98 96 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 ; } ; 107 dummy=$tmp/dummy ; 108 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109 case $CC_FOR_BUILD,$HOST_CC,$CC in 110 ,,) echo "int x;" > "$dummy.c" ; 111 for c in cc gcc c89 c99 ; do 112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 113 CC_FOR_BUILD="$c"; break ; 114 fi ; 115 done ; 116 if test x"$CC_FOR_BUILD" = x ; then 117 CC_FOR_BUILD=no_compiler_found ; 118 fi 119 ;; 120 ,,*) CC_FOR_BUILD=$CC ;; 121 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 esac ; set_cc_for_build= ;' 97 tmp= 98 # shellcheck disable=SC2172 99 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 100 101 set_cc_for_build() { 102 # prevent multiple calls if $tmp is already set 103 test "$tmp" && return 0 104 : "${TMPDIR=/tmp}" 105 # shellcheck disable=SC2039 106 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || 108 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || 109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 110 dummy=$tmp/dummy 111 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in 112 ,,) echo "int x;" > "$dummy.c" 113 for driver in cc gcc c89 c99 ; do 114 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 115 CC_FOR_BUILD="$driver" 116 break 117 fi 118 done 119 if test x"$CC_FOR_BUILD" = x ; then 120 CC_FOR_BUILD=no_compiler_found 121 fi 122 ;; 123 ,,*) CC_FOR_BUILD=$CC ;; 124 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 125 esac 126 } 123 127 124 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125 129 # (ghazi@noc.rutgers.edu 1994-08-24) 126 if (test -f /.attbin/uname) >/dev/null 2>&1; then130 if test -f /.attbin/uname ; then 127 131 PATH=$PATH:/.attbin ; export PATH 128 132 fi … … 139 143 LIBC=gnu 140 144 141 eval "$set_cc_for_build"145 set_cc_for_build 142 146 cat <<-EOF > "$dummy.c" 143 147 #include <features.h> … … 200 204 ;; 201 205 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 202 eval "$set_cc_for_build"206 set_cc_for_build 203 207 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 204 208 | grep -q __ELF__ … … 238 242 # contains redundant information, the shorter form: 239 243 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 240 echo "$machine-${os}${release}${abi }"244 echo "$machine-${os}${release}${abi-}" 241 245 exit ;; 242 246 *:Bitrig:*:*) … … 261 265 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 262 266 exit ;; 267 *:OS108:*:*) 268 echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" 269 exit ;; 263 270 macppc:MirBSD:*:*) 264 271 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" … … 270 277 echo "$UNAME_MACHINE"-unknown-sortix 271 278 exit ;; 279 *:Twizzler:*:*) 280 echo "$UNAME_MACHINE"-unknown-twizzler 281 exit ;; 272 282 *:Redox:*:*) 273 283 echo "$UNAME_MACHINE"-unknown-redox 274 284 exit ;; 275 285 mips:OSF1:*.*) 276 277 286 echo mips-dec-osf1 287 exit ;; 278 288 alpha:OSF1:*:*) 279 289 case $UNAME_RELEASE in … … 390 400 exit ;; 391 401 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 392 eval "$set_cc_for_build"402 set_cc_for_build 393 403 SUN_ARCH=i386 394 404 # If there is a compiler, see if it is configured for 64-bit objects. … … 483 493 exit ;; 484 494 mips:*:*:UMIPS | mips:*:*:RISCos) 485 eval "$set_cc_for_build"495 set_cc_for_build 486 496 sed 's/^ //' << EOF > "$dummy.c" 487 497 #ifdef __cplusplus … … 580 590 *:AIX:2:3) 581 591 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 582 eval "$set_cc_for_build"592 set_cc_for_build 583 593 sed 's/^ //' << EOF > "$dummy.c" 584 594 #include <sys/systemcfg.h> … … 661 671 fi 662 672 if [ "$HP_ARCH" = "" ]; then 663 eval "$set_cc_for_build"673 set_cc_for_build 664 674 sed 's/^ //' << EOF > "$dummy.c" 665 675 … … 701 711 if [ "$HP_ARCH" = hppa2.0w ] 702 712 then 703 eval "$set_cc_for_build"713 set_cc_for_build 704 714 705 715 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating … … 727 737 exit ;; 728 738 3050*:HI-UX:*:*) 729 eval "$set_cc_for_build"739 set_cc_for_build 730 740 sed 's/^ //' << EOF > "$dummy.c" 731 741 #include <unistd.h> … … 841 851 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 842 852 exit ;; 853 arm:FreeBSD:*:*) 854 UNAME_PROCESSOR=`uname -p` 855 set_cc_for_build 856 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 857 | grep -q __ARM_PCS_VFP 858 then 859 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi 860 else 861 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf 862 fi 863 exit ;; 843 864 *:FreeBSD:*:*) 844 865 UNAME_PROCESSOR=`/usr/bin/uname -p` … … 882 903 exit ;; 883 904 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 884 echo x86_64- unknown-cygwin905 echo x86_64-pc-cygwin 885 906 exit ;; 886 907 prep*:SunOS:5.*:*) … … 895 916 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 896 917 exit ;; 897 i*86:Minix:*:*)898 echo "$UNAME_MACHINE"- pc-minix918 *:Minix:*:*) 919 echo "$UNAME_MACHINE"-unknown-minix 899 920 exit ;; 900 921 aarch64:Linux:*:*) … … 906 927 exit ;; 907 928 alpha:Linux:*:*) 908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in929 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in 909 930 EV5) UNAME_MACHINE=alphaev5 ;; 910 931 EV56) UNAME_MACHINE=alphaev56 ;; … … 923 944 exit ;; 924 945 arm*:Linux:*:*) 925 eval "$set_cc_for_build"946 set_cc_for_build 926 947 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 927 948 | grep -q __ARM_EABI__ … … 972 993 exit ;; 973 994 mips:Linux:*:* | mips64:Linux:*:*) 974 eval "$set_cc_for_build" 995 set_cc_for_build 996 IS_GLIBC=0 997 test x"${LIBC}" = xgnu && IS_GLIBC=1 975 998 sed 's/^ //' << EOF > "$dummy.c" 976 999 #undef CPU 977 #undef ${UNAME_MACHINE} 978 #undef ${UNAME_MACHINE}el 1000 #undef mips 1001 #undef mipsel 1002 #undef mips64 1003 #undef mips64el 1004 #if ${IS_GLIBC} && defined(_ABI64) 1005 LIBCABI=gnuabi64 1006 #else 1007 #if ${IS_GLIBC} && defined(_ABIN32) 1008 LIBCABI=gnuabin32 1009 #else 1010 LIBCABI=${LIBC} 1011 #endif 1012 #endif 1013 1014 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1015 CPU=mipsisa64r6 1016 #else 1017 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1018 CPU=mipsisa32r6 1019 #else 1020 #if defined(__mips64) 1021 CPU=mips64 1022 #else 1023 CPU=mips 1024 #endif 1025 #endif 1026 #endif 1027 979 1028 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 980 CPU=${UNAME_MACHINE}el1029 MIPS_ENDIAN=el 981 1030 #else 982 1031 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 983 CPU=${UNAME_MACHINE}1032 MIPS_ENDIAN= 984 1033 #else 985 CPU=1034 MIPS_ENDIAN= 986 1035 #endif 987 1036 #endif 988 1037 EOF 989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU '`"990 test "x$CPU" != x && { echo "$CPU -unknown-linux-$LIBC"; exit; }1038 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" 1039 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } 991 1040 ;; 992 1041 mips64el:Linux:*:*) … … 1101 1150 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1102 1151 esac 1103 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM} {$UNAME_VERSION}"1152 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" 1104 1153 exit ;; 1105 1154 i*86:*:3.2:*) … … 1285 1334 exit ;; 1286 1335 *:Darwin:*:*) 1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1288 eval "$set_cc_for_build" 1289 if test "$UNAME_PROCESSOR" = unknown ; then 1290 UNAME_PROCESSOR=powerpc 1291 fi 1292 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 1293 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1294 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1295 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1296 grep IS_64BIT_ARCH >/dev/null 1297 then 1298 case $UNAME_PROCESSOR in 1299 i386) UNAME_PROCESSOR=x86_64 ;; 1300 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1301 esac 1302 fi 1303 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1304 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1305 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1306 grep IS_PPC >/dev/null 1307 then 1308 UNAME_PROCESSOR=powerpc 1309 fi 1336 UNAME_PROCESSOR=`uname -p` 1337 case $UNAME_PROCESSOR in 1338 unknown) UNAME_PROCESSOR=powerpc ;; 1339 esac 1340 if command -v xcode-select > /dev/null 2> /dev/null && \ 1341 ! xcode-select --print-path > /dev/null 2> /dev/null ; then 1342 # Avoid executing cc if there is no toolchain installed as 1343 # cc will be a stub that puts up a graphical alert 1344 # prompting the user to install developer tools. 1345 CC_FOR_BUILD=no_compiler_found 1346 else 1347 set_cc_for_build 1348 fi 1349 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1350 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1351 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1352 grep IS_64BIT_ARCH >/dev/null 1353 then 1354 case $UNAME_PROCESSOR in 1355 i386) UNAME_PROCESSOR=x86_64 ;; 1356 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1357 esac 1358 fi 1359 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1360 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1361 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1362 grep IS_PPC >/dev/null 1363 then 1364 UNAME_PROCESSOR=powerpc 1310 1365 fi 1311 1366 elif test "$UNAME_PROCESSOR" = i386 ; then 1312 # Avoid executing cc on OS X 10.9, as it ships with a stub 1313 # that puts up a graphical alert prompting to install 1314 # developer tools. Any system running Mac OS X 10.7 or 1315 # later (Darwin 11 and later) is required to have a 64-bit 1316 # processor. This is not true of the ARM version of Darwin 1317 # that Apple uses in portable devices. 1318 UNAME_PROCESSOR=x86_64 1367 # uname -m returns i386 or x86_64 1368 UNAME_PROCESSOR=$UNAME_MACHINE 1319 1369 fi 1320 1370 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" … … 1359 1409 # is converted to i386 for consistency with other x86 1360 1410 # operating systems. 1411 # shellcheck disable=SC2154 1361 1412 if test "$cputype" = 386; then 1362 1413 UNAME_MACHINE=i386 … … 1415 1466 echo x86_64-unknown-onefs 1416 1467 exit ;; 1468 *:Unleashed:*:*) 1469 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" 1470 exit ;; 1417 1471 esac 1472 1473 # No uname command or uname output not recognized. 1474 set_cc_for_build 1475 cat > "$dummy.c" <<EOF 1476 #ifdef _SEQUENT_ 1477 #include <sys/types.h> 1478 #include <sys/utsname.h> 1479 #endif 1480 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1481 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1482 #include <signal.h> 1483 #if defined(_SIZE_T_) || defined(SIGLOST) 1484 #include <sys/utsname.h> 1485 #endif 1486 #endif 1487 #endif 1488 main () 1489 { 1490 #if defined (sony) 1491 #if defined (MIPSEB) 1492 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1493 I don't know.... */ 1494 printf ("mips-sony-bsd\n"); exit (0); 1495 #else 1496 #include <sys/param.h> 1497 printf ("m68k-sony-newsos%s\n", 1498 #ifdef NEWSOS4 1499 "4" 1500 #else 1501 "" 1502 #endif 1503 ); exit (0); 1504 #endif 1505 #endif 1506 1507 #if defined (NeXT) 1508 #if !defined (__ARCHITECTURE__) 1509 #define __ARCHITECTURE__ "m68k" 1510 #endif 1511 int version; 1512 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1513 if (version < 4) 1514 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1515 else 1516 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1517 exit (0); 1518 #endif 1519 1520 #if defined (MULTIMAX) || defined (n16) 1521 #if defined (UMAXV) 1522 printf ("ns32k-encore-sysv\n"); exit (0); 1523 #else 1524 #if defined (CMU) 1525 printf ("ns32k-encore-mach\n"); exit (0); 1526 #else 1527 printf ("ns32k-encore-bsd\n"); exit (0); 1528 #endif 1529 #endif 1530 #endif 1531 1532 #if defined (__386BSD__) 1533 printf ("i386-pc-bsd\n"); exit (0); 1534 #endif 1535 1536 #if defined (sequent) 1537 #if defined (i386) 1538 printf ("i386-sequent-dynix\n"); exit (0); 1539 #endif 1540 #if defined (ns32000) 1541 printf ("ns32k-sequent-dynix\n"); exit (0); 1542 #endif 1543 #endif 1544 1545 #if defined (_SEQUENT_) 1546 struct utsname un; 1547 1548 uname(&un); 1549 if (strncmp(un.version, "V2", 2) == 0) { 1550 printf ("i386-sequent-ptx2\n"); exit (0); 1551 } 1552 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1553 printf ("i386-sequent-ptx1\n"); exit (0); 1554 } 1555 printf ("i386-sequent-ptx\n"); exit (0); 1556 #endif 1557 1558 #if defined (vax) 1559 #if !defined (ultrix) 1560 #include <sys/param.h> 1561 #if defined (BSD) 1562 #if BSD == 43 1563 printf ("vax-dec-bsd4.3\n"); exit (0); 1564 #else 1565 #if BSD == 199006 1566 printf ("vax-dec-bsd4.3reno\n"); exit (0); 1567 #else 1568 printf ("vax-dec-bsd\n"); exit (0); 1569 #endif 1570 #endif 1571 #else 1572 printf ("vax-dec-bsd\n"); exit (0); 1573 #endif 1574 #else 1575 #if defined(_SIZE_T_) || defined(SIGLOST) 1576 struct utsname un; 1577 uname (&un); 1578 printf ("vax-dec-ultrix%s\n", un.release); exit (0); 1579 #else 1580 printf ("vax-dec-ultrix\n"); exit (0); 1581 #endif 1582 #endif 1583 #endif 1584 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1585 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1586 #if defined(_SIZE_T_) || defined(SIGLOST) 1587 struct utsname *un; 1588 uname (&un); 1589 printf ("mips-dec-ultrix%s\n", un.release); exit (0); 1590 #else 1591 printf ("mips-dec-ultrix\n"); exit (0); 1592 #endif 1593 #endif 1594 #endif 1595 1596 #if defined (alliant) && defined (i860) 1597 printf ("i860-alliant-bsd\n"); exit (0); 1598 #endif 1599 1600 exit (1); 1601 } 1602 EOF 1603 1604 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && 1605 { echo "$SYSTEM_NAME"; exit; } 1606 1607 # Apollos put the system type in the environment. 1608 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } 1418 1609 1419 1610 echo "$0: unable to guess system type" >&2 -
ThirdParty/HSL/stable/2.1/config.sub
r4023 r4193 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-20 18Free Software Foundation, Inc.4 5 timestamp='20 18-03-08'3 # Copyright 1992-2020 Free Software Foundation, Inc. 4 5 timestamp='2020-01-01' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 68 68 GNU config.sub ($timestamp) 69 69 70 Copyright 1992-20 18Free Software Foundation, Inc.70 Copyright 1992-2020 Free Software Foundation, Inc. 71 71 72 72 This is free software; see the source for copying conditions. There is NO … … 90 90 break ;; 91 91 -* ) 92 echo "$me: invalid option $1$help" 92 echo "$me: invalid option $1$help" >&2 93 93 exit 1 ;; 94 94 … … 111 111 esac 112 112 113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 114 # Here we must recognize all the valid KERNEL-OS combinations. 115 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 116 case $maybe_os in 117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 120 kopensolaris*-gnu* | cloudabi*-eabi* | \ 121 storm-chaos* | os2-emx* | rtmk-nova*) 122 os=-$maybe_os 123 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 124 ;; 125 android-linux) 126 os=-linux-android 127 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 128 ;; 129 *) 130 basic_machine=`echo "$1" | sed 's/-[^-]*$//'` 131 if [ "$basic_machine" != "$1" ] 132 then os=`echo "$1" | sed 's/.*-/-/'` 133 else os=; fi 134 ;; 113 # Split fields of configuration type 114 # shellcheck disable=SC2162 115 IFS="-" read field1 field2 field3 field4 <<EOF 116 $1 117 EOF 118 119 # Separate into logical components for further validation 120 case $1 in 121 *-*-*-*-*) 122 echo Invalid configuration \`"$1"\': more than four components >&2 123 exit 1 124 ;; 125 *-*-*-*) 126 basic_machine=$field1-$field2 127 os=$field3-$field4 128 ;; 129 *-*-*) 130 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two 131 # parts 132 maybe_os=$field2-$field3 133 case $maybe_os in 134 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ 135 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ 136 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ 137 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ 138 | storm-chaos* | os2-emx* | rtmk-nova*) 139 basic_machine=$field1 140 os=$maybe_os 141 ;; 142 android-linux) 143 basic_machine=$field1-unknown 144 os=linux-android 145 ;; 146 *) 147 basic_machine=$field1-$field2 148 os=$field3 149 ;; 150 esac 151 ;; 152 *-*) 153 # A lone config we happen to match not fitting any pattern 154 case $field1-$field2 in 155 decstation-3100) 156 basic_machine=mips-dec 157 os= 158 ;; 159 *-*) 160 # Second component is usually, but not always the OS 161 case $field2 in 162 # Prevent following clause from handling this valid os 163 sun*os*) 164 basic_machine=$field1 165 os=$field2 166 ;; 167 # Manufacturers 168 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ 169 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ 170 | unicom* | ibm* | next | hp | isi* | apollo | altos* \ 171 | convergent* | ncr* | news | 32* | 3600* | 3100* \ 172 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ 173 | ultra | tti* | harris | dolphin | highlevel | gould \ 174 | cbm | ns | masscomp | apple | axis | knuth | cray \ 175 | microblaze* | sim | cisco \ 176 | oki | wec | wrs | winbond) 177 basic_machine=$field1-$field2 178 os= 179 ;; 180 *) 181 basic_machine=$field1 182 os=$field2 183 ;; 184 esac 185 ;; 186 esac 187 ;; 188 *) 189 # Convert single-component short-hands not valid as part of 190 # multi-component configurations. 191 case $field1 in 192 386bsd) 193 basic_machine=i386-pc 194 os=bsd 195 ;; 196 a29khif) 197 basic_machine=a29k-amd 198 os=udi 199 ;; 200 adobe68k) 201 basic_machine=m68010-adobe 202 os=scout 203 ;; 204 alliant) 205 basic_machine=fx80-alliant 206 os= 207 ;; 208 altos | altos3068) 209 basic_machine=m68k-altos 210 os= 211 ;; 212 am29k) 213 basic_machine=a29k-none 214 os=bsd 215 ;; 216 amdahl) 217 basic_machine=580-amdahl 218 os=sysv 219 ;; 220 amiga) 221 basic_machine=m68k-unknown 222 os= 223 ;; 224 amigaos | amigados) 225 basic_machine=m68k-unknown 226 os=amigaos 227 ;; 228 amigaunix | amix) 229 basic_machine=m68k-unknown 230 os=sysv4 231 ;; 232 apollo68) 233 basic_machine=m68k-apollo 234 os=sysv 235 ;; 236 apollo68bsd) 237 basic_machine=m68k-apollo 238 os=bsd 239 ;; 240 aros) 241 basic_machine=i386-pc 242 os=aros 243 ;; 244 aux) 245 basic_machine=m68k-apple 246 os=aux 247 ;; 248 balance) 249 basic_machine=ns32k-sequent 250 os=dynix 251 ;; 252 blackfin) 253 basic_machine=bfin-unknown 254 os=linux 255 ;; 256 cegcc) 257 basic_machine=arm-unknown 258 os=cegcc 259 ;; 260 convex-c1) 261 basic_machine=c1-convex 262 os=bsd 263 ;; 264 convex-c2) 265 basic_machine=c2-convex 266 os=bsd 267 ;; 268 convex-c32) 269 basic_machine=c32-convex 270 os=bsd 271 ;; 272 convex-c34) 273 basic_machine=c34-convex 274 os=bsd 275 ;; 276 convex-c38) 277 basic_machine=c38-convex 278 os=bsd 279 ;; 280 cray) 281 basic_machine=j90-cray 282 os=unicos 283 ;; 284 crds | unos) 285 basic_machine=m68k-crds 286 os= 287 ;; 288 da30) 289 basic_machine=m68k-da30 290 os= 291 ;; 292 decstation | pmax | pmin | dec3100 | decstatn) 293 basic_machine=mips-dec 294 os= 295 ;; 296 delta88) 297 basic_machine=m88k-motorola 298 os=sysv3 299 ;; 300 dicos) 301 basic_machine=i686-pc 302 os=dicos 303 ;; 304 djgpp) 305 basic_machine=i586-pc 306 os=msdosdjgpp 307 ;; 308 ebmon29k) 309 basic_machine=a29k-amd 310 os=ebmon 311 ;; 312 es1800 | OSE68k | ose68k | ose | OSE) 313 basic_machine=m68k-ericsson 314 os=ose 315 ;; 316 gmicro) 317 basic_machine=tron-gmicro 318 os=sysv 319 ;; 320 go32) 321 basic_machine=i386-pc 322 os=go32 323 ;; 324 h8300hms) 325 basic_machine=h8300-hitachi 326 os=hms 327 ;; 328 h8300xray) 329 basic_machine=h8300-hitachi 330 os=xray 331 ;; 332 h8500hms) 333 basic_machine=h8500-hitachi 334 os=hms 335 ;; 336 harris) 337 basic_machine=m88k-harris 338 os=sysv3 339 ;; 340 hp300 | hp300hpux) 341 basic_machine=m68k-hp 342 os=hpux 343 ;; 344 hp300bsd) 345 basic_machine=m68k-hp 346 os=bsd 347 ;; 348 hppaosf) 349 basic_machine=hppa1.1-hp 350 os=osf 351 ;; 352 hppro) 353 basic_machine=hppa1.1-hp 354 os=proelf 355 ;; 356 i386mach) 357 basic_machine=i386-mach 358 os=mach 359 ;; 360 isi68 | isi) 361 basic_machine=m68k-isi 362 os=sysv 363 ;; 364 m68knommu) 365 basic_machine=m68k-unknown 366 os=linux 367 ;; 368 magnum | m3230) 369 basic_machine=mips-mips 370 os=sysv 371 ;; 372 merlin) 373 basic_machine=ns32k-utek 374 os=sysv 375 ;; 376 mingw64) 377 basic_machine=x86_64-pc 378 os=mingw64 379 ;; 380 mingw32) 381 basic_machine=i686-pc 382 os=mingw32 383 ;; 384 mingw32ce) 385 basic_machine=arm-unknown 386 os=mingw32ce 387 ;; 388 monitor) 389 basic_machine=m68k-rom68k 390 os=coff 391 ;; 392 morphos) 393 basic_machine=powerpc-unknown 394 os=morphos 395 ;; 396 moxiebox) 397 basic_machine=moxie-unknown 398 os=moxiebox 399 ;; 400 msdos) 401 basic_machine=i386-pc 402 os=msdos 403 ;; 404 msys) 405 basic_machine=i686-pc 406 os=msys 407 ;; 408 mvs) 409 basic_machine=i370-ibm 410 os=mvs 411 ;; 412 nacl) 413 basic_machine=le32-unknown 414 os=nacl 415 ;; 416 ncr3000) 417 basic_machine=i486-ncr 418 os=sysv4 419 ;; 420 netbsd386) 421 basic_machine=i386-pc 422 os=netbsd 423 ;; 424 netwinder) 425 basic_machine=armv4l-rebel 426 os=linux 427 ;; 428 news | news700 | news800 | news900) 429 basic_machine=m68k-sony 430 os=newsos 431 ;; 432 news1000) 433 basic_machine=m68030-sony 434 os=newsos 435 ;; 436 necv70) 437 basic_machine=v70-nec 438 os=sysv 439 ;; 440 nh3000) 441 basic_machine=m68k-harris 442 os=cxux 443 ;; 444 nh[45]000) 445 basic_machine=m88k-harris 446 os=cxux 447 ;; 448 nindy960) 449 basic_machine=i960-intel 450 os=nindy 451 ;; 452 mon960) 453 basic_machine=i960-intel 454 os=mon960 455 ;; 456 nonstopux) 457 basic_machine=mips-compaq 458 os=nonstopux 459 ;; 460 os400) 461 basic_machine=powerpc-ibm 462 os=os400 463 ;; 464 OSE68000 | ose68000) 465 basic_machine=m68000-ericsson 466 os=ose 467 ;; 468 os68k) 469 basic_machine=m68k-none 470 os=os68k 471 ;; 472 paragon) 473 basic_machine=i860-intel 474 os=osf 475 ;; 476 parisc) 477 basic_machine=hppa-unknown 478 os=linux 479 ;; 480 pw32) 481 basic_machine=i586-unknown 482 os=pw32 483 ;; 484 rdos | rdos64) 485 basic_machine=x86_64-pc 486 os=rdos 487 ;; 488 rdos32) 489 basic_machine=i386-pc 490 os=rdos 491 ;; 492 rom68k) 493 basic_machine=m68k-rom68k 494 os=coff 495 ;; 496 sa29200) 497 basic_machine=a29k-amd 498 os=udi 499 ;; 500 sei) 501 basic_machine=mips-sei 502 os=seiux 503 ;; 504 sequent) 505 basic_machine=i386-sequent 506 os= 507 ;; 508 sps7) 509 basic_machine=m68k-bull 510 os=sysv2 511 ;; 512 st2000) 513 basic_machine=m68k-tandem 514 os= 515 ;; 516 stratus) 517 basic_machine=i860-stratus 518 os=sysv4 519 ;; 520 sun2) 521 basic_machine=m68000-sun 522 os= 523 ;; 524 sun2os3) 525 basic_machine=m68000-sun 526 os=sunos3 527 ;; 528 sun2os4) 529 basic_machine=m68000-sun 530 os=sunos4 531 ;; 532 sun3) 533 basic_machine=m68k-sun 534 os= 535 ;; 536 sun3os3) 537 basic_machine=m68k-sun 538 os=sunos3 539 ;; 540 sun3os4) 541 basic_machine=m68k-sun 542 os=sunos4 543 ;; 544 sun4) 545 basic_machine=sparc-sun 546 os= 547 ;; 548 sun4os3) 549 basic_machine=sparc-sun 550 os=sunos3 551 ;; 552 sun4os4) 553 basic_machine=sparc-sun 554 os=sunos4 555 ;; 556 sun4sol2) 557 basic_machine=sparc-sun 558 os=solaris2 559 ;; 560 sun386 | sun386i | roadrunner) 561 basic_machine=i386-sun 562 os= 563 ;; 564 sv1) 565 basic_machine=sv1-cray 566 os=unicos 567 ;; 568 symmetry) 569 basic_machine=i386-sequent 570 os=dynix 571 ;; 572 t3e) 573 basic_machine=alphaev5-cray 574 os=unicos 575 ;; 576 t90) 577 basic_machine=t90-cray 578 os=unicos 579 ;; 580 toad1) 581 basic_machine=pdp10-xkl 582 os=tops20 583 ;; 584 tpf) 585 basic_machine=s390x-ibm 586 os=tpf 587 ;; 588 udi29k) 589 basic_machine=a29k-amd 590 os=udi 591 ;; 592 ultra3) 593 basic_machine=a29k-nyu 594 os=sym1 595 ;; 596 v810 | necv810) 597 basic_machine=v810-nec 598 os=none 599 ;; 600 vaxv) 601 basic_machine=vax-dec 602 os=sysv 603 ;; 604 vms) 605 basic_machine=vax-dec 606 os=vms 607 ;; 608 vsta) 609 basic_machine=i386-pc 610 os=vsta 611 ;; 612 vxworks960) 613 basic_machine=i960-wrs 614 os=vxworks 615 ;; 616 vxworks68) 617 basic_machine=m68k-wrs 618 os=vxworks 619 ;; 620 vxworks29k) 621 basic_machine=a29k-wrs 622 os=vxworks 623 ;; 624 xbox) 625 basic_machine=i686-pc 626 os=mingw32 627 ;; 628 ymp) 629 basic_machine=ymp-cray 630 os=unicos 631 ;; 632 *) 633 basic_machine=$1 634 os= 635 ;; 636 esac 637 ;; 135 638 esac 136 639 137 ### Let's recognize common machines as not being operating systems so 138 ### that things like config.sub decstation-3100 work. We also 139 ### recognize some manufacturers as not being operating systems, so we 140 ### can provide default operating systems below. 141 case $os in 142 -sun*os*) 143 # Prevent following clause from handling this invalid input. 144 ;; 145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 151 -apple | -axis | -knuth | -cray | -microblaze*) 152 os= 153 basic_machine=$1 154 ;; 155 -bluegene*) 156 os=-cnk 157 ;; 158 -sim | -cisco | -oki | -wec | -winbond) 159 os= 160 basic_machine=$1 161 ;; 162 -scout) 163 ;; 164 -wrs) 165 os=-vxworks 166 basic_machine=$1 167 ;; 168 -chorusos*) 169 os=-chorusos 170 basic_machine=$1 171 ;; 172 -chorusrdb) 173 os=-chorusrdb 174 basic_machine=$1 175 ;; 176 -hiux*) 177 os=-hiuxwe2 178 ;; 179 -sco6) 180 os=-sco5v6 181 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 182 ;; 183 -sco5) 184 os=-sco3.2v5 185 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 186 ;; 187 -sco4) 188 os=-sco3.2v4 189 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 190 ;; 191 -sco3.2.[4-9]*) 192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 193 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 194 ;; 195 -sco3.2v[4-9]*) 196 # Don't forget version if it is 3.2v4 or newer. 197 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 198 ;; 199 -sco5v6*) 200 # Don't forget version if it is 3.2v4 or newer. 201 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 202 ;; 203 -sco*) 204 os=-sco3.2v2 205 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 206 ;; 207 -udk*) 208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 209 ;; 210 -isc) 211 os=-isc2.2 212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 213 ;; 214 -clix*) 215 basic_machine=clipper-intergraph 216 ;; 217 -isc*) 218 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 219 ;; 220 -lynx*178) 221 os=-lynxos178 222 ;; 223 -lynx*5) 224 os=-lynxos5 225 ;; 226 -lynx*) 227 os=-lynxos 228 ;; 229 -ptx*) 230 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` 231 ;; 232 -psos*) 233 os=-psos 234 ;; 235 -mint | -mint[0-9]*) 236 basic_machine=m68k-atari 237 os=-mint 238 ;; 239 esac 240 241 # Decode aliases for certain CPU-COMPANY combinations. 640 # Decode 1-component or ad-hoc basic machines 242 641 case $basic_machine in 243 # Recognize the basic CPU types without company name. 244 # Some are omitted here because they have special meanings below. 245 1750a | 580 \ 246 | a29k \ 247 | aarch64 | aarch64_be \ 248 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 249 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 250 | am33_2.0 \ 251 | arc | arceb \ 252 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 253 | avr | avr32 \ 254 | ba \ 255 | be32 | be64 \ 256 | bfin \ 257 | c4x | c8051 | clipper \ 258 | d10v | d30v | dlx | dsp16xx \ 259 | e2k | epiphany \ 260 | fido | fr30 | frv | ft32 \ 261 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 262 | hexagon \ 263 | i370 | i860 | i960 | ia16 | ia64 \ 264 | ip2k | iq2000 \ 265 | k1om \ 266 | le32 | le64 \ 267 | lm32 \ 268 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 269 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ 270 | mips | mipsbe | mipseb | mipsel | mipsle \ 271 | mips16 \ 272 | mips64 | mips64el \ 273 | mips64octeon | mips64octeonel \ 274 | mips64orion | mips64orionel \ 275 | mips64r5900 | mips64r5900el \ 276 | mips64vr | mips64vrel \ 277 | mips64vr4100 | mips64vr4100el \ 278 | mips64vr4300 | mips64vr4300el \ 279 | mips64vr5000 | mips64vr5000el \ 280 | mips64vr5900 | mips64vr5900el \ 281 | mipsisa32 | mipsisa32el \ 282 | mipsisa32r2 | mipsisa32r2el \ 283 | mipsisa32r6 | mipsisa32r6el \ 284 | mipsisa64 | mipsisa64el \ 285 | mipsisa64r2 | mipsisa64r2el \ 286 | mipsisa64r6 | mipsisa64r6el \ 287 | mipsisa64sb1 | mipsisa64sb1el \ 288 | mipsisa64sr71k | mipsisa64sr71kel \ 289 | mipsr5900 | mipsr5900el \ 290 | mipstx39 | mipstx39el \ 291 | mn10200 | mn10300 \ 292 | moxie \ 293 | mt \ 294 | msp430 \ 295 | nds32 | nds32le | nds32be \ 296 | nios | nios2 | nios2eb | nios2el \ 297 | ns16k | ns32k \ 298 | open8 | or1k | or1knd | or32 \ 299 | pdp10 | pj | pjl \ 300 | powerpc | powerpc64 | powerpc64le | powerpcle \ 301 | pru \ 302 | pyramid \ 303 | riscv32 | riscv64 \ 304 | rl78 | rx \ 305 | score \ 306 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 307 | sh64 | sh64le \ 308 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 309 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 310 | spu \ 311 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 312 | ubicom32 \ 313 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 314 | visium \ 315 | wasm32 \ 316 | x86 | xc16x | xstormy16 | xtensa \ 317 | z8k | z80) 318 basic_machine=$basic_machine-unknown 319 ;; 320 c54x) 321 basic_machine=tic54x-unknown 322 ;; 323 c55x) 324 basic_machine=tic55x-unknown 325 ;; 326 c6x) 327 basic_machine=tic6x-unknown 642 # Here we handle the default manufacturer of certain CPU types. It is in 643 # some cases the only manufacturer, in others, it is the most popular. 644 w89k) 645 cpu=hppa1.1 646 vendor=winbond 647 ;; 648 op50n) 649 cpu=hppa1.1 650 vendor=oki 651 ;; 652 op60c) 653 cpu=hppa1.1 654 vendor=oki 655 ;; 656 ibm*) 657 cpu=i370 658 vendor=ibm 659 ;; 660 orion105) 661 cpu=clipper 662 vendor=highlevel 663 ;; 664 mac | mpw | mac-mpw) 665 cpu=m68k 666 vendor=apple 667 ;; 668 pmac | pmac-mpw) 669 cpu=powerpc 670 vendor=apple 671 ;; 672 673 # Recognize the various machine names and aliases which stand 674 # for a CPU type and a company and sometimes even an OS. 675 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 676 cpu=m68000 677 vendor=att 678 ;; 679 3b*) 680 cpu=we32k 681 vendor=att 682 ;; 683 bluegene*) 684 cpu=powerpc 685 vendor=ibm 686 os=cnk 687 ;; 688 decsystem10* | dec10*) 689 cpu=pdp10 690 vendor=dec 691 os=tops10 692 ;; 693 decsystem20* | dec20*) 694 cpu=pdp10 695 vendor=dec 696 os=tops20 697 ;; 698 delta | 3300 | motorola-3300 | motorola-delta \ 699 | 3300-motorola | delta-motorola) 700 cpu=m68k 701 vendor=motorola 702 ;; 703 dpx2*) 704 cpu=m68k 705 vendor=bull 706 os=sysv3 707 ;; 708 encore | umax | mmax) 709 cpu=ns32k 710 vendor=encore 711 ;; 712 elxsi) 713 cpu=elxsi 714 vendor=elxsi 715 os=${os:-bsd} 716 ;; 717 fx2800) 718 cpu=i860 719 vendor=alliant 720 ;; 721 genix) 722 cpu=ns32k 723 vendor=ns 724 ;; 725 h3050r* | hiux*) 726 cpu=hppa1.1 727 vendor=hitachi 728 os=hiuxwe2 729 ;; 730 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 731 cpu=hppa1.0 732 vendor=hp 733 ;; 734 hp9k2[0-9][0-9] | hp9k31[0-9]) 735 cpu=m68000 736 vendor=hp 737 ;; 738 hp9k3[2-9][0-9]) 739 cpu=m68k 740 vendor=hp 741 ;; 742 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 743 cpu=hppa1.0 744 vendor=hp 745 ;; 746 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 747 cpu=hppa1.1 748 vendor=hp 749 ;; 750 hp9k78[0-9] | hp78[0-9]) 751 # FIXME: really hppa2.0-hp 752 cpu=hppa1.1 753 vendor=hp 754 ;; 755 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 756 # FIXME: really hppa2.0-hp 757 cpu=hppa1.1 758 vendor=hp 759 ;; 760 hp9k8[0-9][13679] | hp8[0-9][13679]) 761 cpu=hppa1.1 762 vendor=hp 763 ;; 764 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 765 cpu=hppa1.0 766 vendor=hp 767 ;; 768 i*86v32) 769 cpu=`echo "$1" | sed -e 's/86.*/86/'` 770 vendor=pc 771 os=sysv32 772 ;; 773 i*86v4*) 774 cpu=`echo "$1" | sed -e 's/86.*/86/'` 775 vendor=pc 776 os=sysv4 777 ;; 778 i*86v) 779 cpu=`echo "$1" | sed -e 's/86.*/86/'` 780 vendor=pc 781 os=sysv 782 ;; 783 i*86sol2) 784 cpu=`echo "$1" | sed -e 's/86.*/86/'` 785 vendor=pc 786 os=solaris2 787 ;; 788 j90 | j90-cray) 789 cpu=j90 790 vendor=cray 791 os=${os:-unicos} 792 ;; 793 iris | iris4d) 794 cpu=mips 795 vendor=sgi 796 case $os in 797 irix*) 798 ;; 799 *) 800 os=irix4 801 ;; 802 esac 803 ;; 804 miniframe) 805 cpu=m68000 806 vendor=convergent 807 ;; 808 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) 809 cpu=m68k 810 vendor=atari 811 os=mint 812 ;; 813 news-3600 | risc-news) 814 cpu=mips 815 vendor=sony 816 os=newsos 817 ;; 818 next | m*-next) 819 cpu=m68k 820 vendor=next 821 case $os in 822 openstep*) 823 ;; 824 nextstep*) 825 ;; 826 ns2*) 827 os=nextstep2 828 ;; 829 *) 830 os=nextstep3 831 ;; 832 esac 833 ;; 834 np1) 835 cpu=np1 836 vendor=gould 837 ;; 838 op50n-* | op60c-*) 839 cpu=hppa1.1 840 vendor=oki 841 os=proelf 842 ;; 843 pa-hitachi) 844 cpu=hppa1.1 845 vendor=hitachi 846 os=hiuxwe2 847 ;; 848 pbd) 849 cpu=sparc 850 vendor=tti 851 ;; 852 pbb) 853 cpu=m68k 854 vendor=tti 855 ;; 856 pc532) 857 cpu=ns32k 858 vendor=pc532 859 ;; 860 pn) 861 cpu=pn 862 vendor=gould 863 ;; 864 power) 865 cpu=power 866 vendor=ibm 867 ;; 868 ps2) 869 cpu=i386 870 vendor=ibm 871 ;; 872 rm[46]00) 873 cpu=mips 874 vendor=siemens 875 ;; 876 rtpc | rtpc-*) 877 cpu=romp 878 vendor=ibm 879 ;; 880 sde) 881 cpu=mipsisa32 882 vendor=sde 883 os=${os:-elf} 884 ;; 885 simso-wrs) 886 cpu=sparclite 887 vendor=wrs 888 os=vxworks 889 ;; 890 tower | tower-32) 891 cpu=m68k 892 vendor=ncr 893 ;; 894 vpp*|vx|vx-*) 895 cpu=f301 896 vendor=fujitsu 897 ;; 898 w65) 899 cpu=w65 900 vendor=wdc 901 ;; 902 w89k-*) 903 cpu=hppa1.1 904 vendor=winbond 905 os=proelf 906 ;; 907 none) 908 cpu=none 909 vendor=none 328 910 ;; 329 911 leon|leon[3-9]) 330 basic_machine=sparc-$basic_machine 331 ;; 332 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 333 basic_machine=$basic_machine-unknown 334 os=-none 335 ;; 336 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) 337 ;; 338 ms1) 339 basic_machine=mt-unknown 340 ;; 341 342 strongarm | thumb | xscale) 343 basic_machine=arm-unknown 344 ;; 345 xgate) 346 basic_machine=$basic_machine-unknown 347 os=-none 348 ;; 349 xscaleeb) 350 basic_machine=armeb-unknown 351 ;; 352 353 xscaleel) 354 basic_machine=armel-unknown 355 ;; 356 912 cpu=sparc 913 vendor=$basic_machine 914 ;; 915 leon-*|leon[3-9]-*) 916 cpu=sparc 917 vendor=`echo "$basic_machine" | sed 's/-.*//'` 918 ;; 919 920 *-*) 921 # shellcheck disable=SC2162 922 IFS="-" read cpu vendor <<EOF 923 $basic_machine 924 EOF 925 ;; 357 926 # We use `pc' rather than `unknown' 358 927 # because (1) that's what they normally are, and 359 928 # (2) the word "unknown" tends to confuse beginning users. 360 929 i*86 | x86_64) 361 basic_machine=$basic_machine-pc 362 ;; 363 # Object if more than one company name word. 364 *-*-*) 365 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 366 exit 1 367 ;; 368 # Recognize the basic CPU types with company name. 369 580-* \ 370 | a29k-* \ 371 | aarch64-* | aarch64_be-* \ 372 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 373 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 374 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ 375 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 376 | avr-* | avr32-* \ 377 | ba-* \ 378 | be32-* | be64-* \ 379 | bfin-* | bs2000-* \ 380 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 381 | c8051-* | clipper-* | craynv-* | cydra-* \ 382 | d10v-* | d30v-* | dlx-* \ 383 | e2k-* | elxsi-* \ 384 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 385 | h8300-* | h8500-* \ 386 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 387 | hexagon-* \ 388 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ 389 | ip2k-* | iq2000-* \ 390 | k1om-* \ 391 | le32-* | le64-* \ 392 | lm32-* \ 393 | m32c-* | m32r-* | m32rle-* \ 394 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 395 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 396 | microblaze-* | microblazeel-* \ 397 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 398 | mips16-* \ 399 | mips64-* | mips64el-* \ 400 | mips64octeon-* | mips64octeonel-* \ 401 | mips64orion-* | mips64orionel-* \ 402 | mips64r5900-* | mips64r5900el-* \ 403 | mips64vr-* | mips64vrel-* \ 404 | mips64vr4100-* | mips64vr4100el-* \ 405 | mips64vr4300-* | mips64vr4300el-* \ 406 | mips64vr5000-* | mips64vr5000el-* \ 407 | mips64vr5900-* | mips64vr5900el-* \ 408 | mipsisa32-* | mipsisa32el-* \ 409 | mipsisa32r2-* | mipsisa32r2el-* \ 410 | mipsisa32r6-* | mipsisa32r6el-* \ 411 | mipsisa64-* | mipsisa64el-* \ 412 | mipsisa64r2-* | mipsisa64r2el-* \ 413 | mipsisa64r6-* | mipsisa64r6el-* \ 414 | mipsisa64sb1-* | mipsisa64sb1el-* \ 415 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 416 | mipsr5900-* | mipsr5900el-* \ 417 | mipstx39-* | mipstx39el-* \ 418 | mmix-* \ 419 | mt-* \ 420 | msp430-* \ 421 | nds32-* | nds32le-* | nds32be-* \ 422 | nios-* | nios2-* | nios2eb-* | nios2el-* \ 423 | none-* | np1-* | ns16k-* | ns32k-* \ 424 | open8-* \ 425 | or1k*-* \ 426 | orion-* \ 427 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 428 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 429 | pru-* \ 430 | pyramid-* \ 431 | riscv32-* | riscv64-* \ 432 | rl78-* | romp-* | rs6000-* | rx-* \ 433 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 434 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 435 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 436 | sparclite-* \ 437 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ 438 | tahoe-* \ 439 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 440 | tile*-* \ 441 | tron-* \ 442 | ubicom32-* \ 443 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 444 | vax-* \ 445 | visium-* \ 446 | wasm32-* \ 447 | we32k-* \ 448 | x86-* | x86_64-* | xc16x-* | xps100-* \ 449 | xstormy16-* | xtensa*-* \ 450 | ymp-* \ 451 | z8k-* | z80-*) 452 ;; 453 # Recognize the basic CPU types without company name, with glob match. 454 xtensa*) 455 basic_machine=$basic_machine-unknown 456 ;; 457 # Recognize the various machine names and aliases which stand 458 # for a CPU type and a company and sometimes even an OS. 459 386bsd) 460 basic_machine=i386-pc 461 os=-bsd 462 ;; 463 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 464 basic_machine=m68000-att 465 ;; 466 3b*) 467 basic_machine=we32k-att 468 ;; 469 a29khif) 470 basic_machine=a29k-amd 471 os=-udi 472 ;; 473 abacus) 474 basic_machine=abacus-unknown 475 ;; 476 adobe68k) 477 basic_machine=m68010-adobe 478 os=-scout 479 ;; 480 alliant | fx80) 481 basic_machine=fx80-alliant 482 ;; 483 altos | altos3068) 484 basic_machine=m68k-altos 485 ;; 486 am29k) 487 basic_machine=a29k-none 488 os=-bsd 489 ;; 490 amd64) 491 basic_machine=x86_64-pc 492 ;; 930 cpu=$basic_machine 931 vendor=pc 932 ;; 933 # These rules are duplicated from below for sake of the special case above; 934 # i.e. things that normalized to x86 arches should also default to "pc" 935 pc98) 936 cpu=i386 937 vendor=pc 938 ;; 939 x64 | amd64) 940 cpu=x86_64 941 vendor=pc 942 ;; 943 # Recognize the basic CPU types without company name. 944 *) 945 cpu=$basic_machine 946 vendor=unknown 947 ;; 948 esac 949 950 unset -v basic_machine 951 952 # Decode basic machines in the full and proper CPU-Company form. 953 case $cpu-$vendor in 954 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in 955 # some cases the only manufacturer, in others, it is the most popular. 956 craynv-unknown) 957 vendor=cray 958 os=${os:-unicosmp} 959 ;; 960 c90-unknown | c90-cray) 961 vendor=cray 962 os=${os:-unicos} 963 ;; 964 fx80-unknown) 965 vendor=alliant 966 ;; 967 romp-unknown) 968 vendor=ibm 969 ;; 970 mmix-unknown) 971 vendor=knuth 972 ;; 973 microblaze-unknown | microblazeel-unknown) 974 vendor=xilinx 975 ;; 976 rs6000-unknown) 977 vendor=ibm 978 ;; 979 vax-unknown) 980 vendor=dec 981 ;; 982 pdp11-unknown) 983 vendor=dec 984 ;; 985 we32k-unknown) 986 vendor=att 987 ;; 988 cydra-unknown) 989 vendor=cydrome 990 ;; 991 i370-ibm*) 992 vendor=ibm 993 ;; 994 orion-unknown) 995 vendor=highlevel 996 ;; 997 xps-unknown | xps100-unknown) 998 cpu=xps100 999 vendor=honeywell 1000 ;; 1001 1002 # Here we normalize CPU types with a missing or matching vendor 1003 dpx20-unknown | dpx20-bull) 1004 cpu=rs6000 1005 vendor=bull 1006 os=${os:-bosx} 1007 ;; 1008 1009 # Here we normalize CPU types irrespective of the vendor 493 1010 amd64-*) 494 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 495 ;; 496 amdahl) 497 basic_machine=580-amdahl 498 os=-sysv 499 ;; 500 amiga | amiga-*) 501 basic_machine=m68k-unknown 502 ;; 503 amigaos | amigados) 504 basic_machine=m68k-unknown 505 os=-amigaos 506 ;; 507 amigaunix | amix) 508 basic_machine=m68k-unknown 509 os=-sysv4 510 ;; 511 apollo68) 512 basic_machine=m68k-apollo 513 os=-sysv 514 ;; 515 apollo68bsd) 516 basic_machine=m68k-apollo 517 os=-bsd 518 ;; 519 aros) 520 basic_machine=i386-pc 521 os=-aros 522 ;; 523 asmjs) 524 basic_machine=asmjs-unknown 525 ;; 526 aux) 527 basic_machine=m68k-apple 528 os=-aux 529 ;; 530 balance) 531 basic_machine=ns32k-sequent 532 os=-dynix 533 ;; 534 blackfin) 535 basic_machine=bfin-unknown 536 os=-linux 1011 cpu=x86_64 537 1012 ;; 538 1013 blackfin-*) 539 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` 540 os=-linux 541 ;; 542 bluegene*) 543 basic_machine=powerpc-ibm 544 os=-cnk 1014 cpu=bfin 1015 os=linux 545 1016 ;; 546 1017 c54x-*) 547 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`1018 cpu=tic54x 548 1019 ;; 549 1020 c55x-*) 550 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`1021 cpu=tic55x 551 1022 ;; 552 1023 c6x-*) 553 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` 554 ;; 555 c90) 556 basic_machine=c90-cray 557 os=-unicos 558 ;; 559 cegcc) 560 basic_machine=arm-unknown 561 os=-cegcc 562 ;; 563 convex-c1) 564 basic_machine=c1-convex 565 os=-bsd 566 ;; 567 convex-c2) 568 basic_machine=c2-convex 569 os=-bsd 570 ;; 571 convex-c32) 572 basic_machine=c32-convex 573 os=-bsd 574 ;; 575 convex-c34) 576 basic_machine=c34-convex 577 os=-bsd 578 ;; 579 convex-c38) 580 basic_machine=c38-convex 581 os=-bsd 582 ;; 583 cray | j90) 584 basic_machine=j90-cray 585 os=-unicos 586 ;; 587 craynv) 588 basic_machine=craynv-cray 589 os=-unicosmp 590 ;; 591 cr16 | cr16-*) 592 basic_machine=cr16-unknown 593 os=-elf 594 ;; 595 crds | unos) 596 basic_machine=m68k-crds 597 ;; 598 crisv32 | crisv32-* | etraxfs*) 599 basic_machine=crisv32-axis 600 ;; 601 cris | cris-* | etrax*) 602 basic_machine=cris-axis 603 ;; 604 crx) 605 basic_machine=crx-unknown 606 os=-elf 607 ;; 608 da30 | da30-*) 609 basic_machine=m68k-da30 610 ;; 611 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 612 basic_machine=mips-dec 613 ;; 614 decsystem10* | dec10*) 615 basic_machine=pdp10-dec 616 os=-tops10 617 ;; 618 decsystem20* | dec20*) 619 basic_machine=pdp10-dec 620 os=-tops20 621 ;; 622 delta | 3300 | motorola-3300 | motorola-delta \ 623 | 3300-motorola | delta-motorola) 624 basic_machine=m68k-motorola 625 ;; 626 delta88) 627 basic_machine=m88k-motorola 628 os=-sysv3 629 ;; 630 dicos) 631 basic_machine=i686-pc 632 os=-dicos 633 ;; 634 djgpp) 635 basic_machine=i586-pc 636 os=-msdosdjgpp 637 ;; 638 dpx20 | dpx20-*) 639 basic_machine=rs6000-bull 640 os=-bosx 641 ;; 642 dpx2*) 643 basic_machine=m68k-bull 644 os=-sysv3 645 ;; 646 e500v[12]) 647 basic_machine=powerpc-unknown 1024 cpu=tic6x 1025 ;; 1026 e500v[12]-*) 1027 cpu=powerpc 648 1028 os=$os"spe" 649 1029 ;; 650 e500v[12]-*) 651 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 652 os=$os"spe" 653 ;; 654 ebmon29k) 655 basic_machine=a29k-amd 656 os=-ebmon 657 ;; 658 elxsi) 659 basic_machine=elxsi-elxsi 660 os=-bsd 661 ;; 662 encore | umax | mmax) 663 basic_machine=ns32k-encore 664 ;; 665 es1800 | OSE68k | ose68k | ose | OSE) 666 basic_machine=m68k-ericsson 667 os=-ose 668 ;; 669 fx2800) 670 basic_machine=i860-alliant 671 ;; 672 genix) 673 basic_machine=ns32k-ns 674 ;; 675 gmicro) 676 basic_machine=tron-gmicro 677 os=-sysv 678 ;; 679 go32) 680 basic_machine=i386-pc 681 os=-go32 682 ;; 683 h3050r* | hiux*) 684 basic_machine=hppa1.1-hitachi 685 os=-hiuxwe2 686 ;; 687 h8300hms) 688 basic_machine=h8300-hitachi 689 os=-hms 690 ;; 691 h8300xray) 692 basic_machine=h8300-hitachi 693 os=-xray 694 ;; 695 h8500hms) 696 basic_machine=h8500-hitachi 697 os=-hms 698 ;; 699 harris) 700 basic_machine=m88k-harris 701 os=-sysv3 702 ;; 703 hp300-*) 704 basic_machine=m68k-hp 705 ;; 706 hp300bsd) 707 basic_machine=m68k-hp 708 os=-bsd 709 ;; 710 hp300hpux) 711 basic_machine=m68k-hp 712 os=-hpux 713 ;; 714 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 715 basic_machine=hppa1.0-hp 716 ;; 717 hp9k2[0-9][0-9] | hp9k31[0-9]) 718 basic_machine=m68000-hp 719 ;; 720 hp9k3[2-9][0-9]) 721 basic_machine=m68k-hp 722 ;; 723 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 724 basic_machine=hppa1.0-hp 725 ;; 726 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 727 basic_machine=hppa1.1-hp 728 ;; 729 hp9k78[0-9] | hp78[0-9]) 730 # FIXME: really hppa2.0-hp 731 basic_machine=hppa1.1-hp 732 ;; 733 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 734 # FIXME: really hppa2.0-hp 735 basic_machine=hppa1.1-hp 736 ;; 737 hp9k8[0-9][13679] | hp8[0-9][13679]) 738 basic_machine=hppa1.1-hp 739 ;; 740 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 741 basic_machine=hppa1.0-hp 742 ;; 743 hppaosf) 744 basic_machine=hppa1.1-hp 745 os=-osf 746 ;; 747 hppro) 748 basic_machine=hppa1.1-hp 749 os=-proelf 750 ;; 751 i370-ibm* | ibm*) 752 basic_machine=i370-ibm 753 ;; 754 i*86v32) 755 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 756 os=-sysv32 757 ;; 758 i*86v4*) 759 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 760 os=-sysv4 761 ;; 762 i*86v) 763 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 764 os=-sysv 765 ;; 766 i*86sol2) 767 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 768 os=-solaris2 769 ;; 770 i386mach) 771 basic_machine=i386-mach 772 os=-mach 773 ;; 774 vsta) 775 basic_machine=i386-unknown 776 os=-vsta 777 ;; 778 iris | iris4d) 779 basic_machine=mips-sgi 780 case $os in 781 -irix*) 782 ;; 783 *) 784 os=-irix4 785 ;; 1030 mips3*-*) 1031 cpu=mips64 1032 ;; 1033 ms1-*) 1034 cpu=mt 1035 ;; 1036 m68knommu-*) 1037 cpu=m68k 1038 os=linux 1039 ;; 1040 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) 1041 cpu=s12z 1042 ;; 1043 openrisc-*) 1044 cpu=or32 1045 ;; 1046 parisc-*) 1047 cpu=hppa 1048 os=linux 1049 ;; 1050 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1051 cpu=i586 1052 ;; 1053 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) 1054 cpu=i686 1055 ;; 1056 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1057 cpu=i686 1058 ;; 1059 pentium4-*) 1060 cpu=i786 1061 ;; 1062 pc98-*) 1063 cpu=i386 1064 ;; 1065 ppc-* | ppcbe-*) 1066 cpu=powerpc 1067 ;; 1068 ppcle-* | powerpclittle-*) 1069 cpu=powerpcle 1070 ;; 1071 ppc64-*) 1072 cpu=powerpc64 1073 ;; 1074 ppc64le-* | powerpc64little-*) 1075 cpu=powerpc64le 1076 ;; 1077 sb1-*) 1078 cpu=mipsisa64sb1 1079 ;; 1080 sb1el-*) 1081 cpu=mipsisa64sb1el 1082 ;; 1083 sh5e[lb]-*) 1084 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` 1085 ;; 1086 spur-*) 1087 cpu=spur 1088 ;; 1089 strongarm-* | thumb-*) 1090 cpu=arm 1091 ;; 1092 tx39-*) 1093 cpu=mipstx39 1094 ;; 1095 tx39el-*) 1096 cpu=mipstx39el 1097 ;; 1098 x64-*) 1099 cpu=x86_64 1100 ;; 1101 xscale-* | xscalee[bl]-*) 1102 cpu=`echo "$cpu" | sed 's/^xscale/arm/'` 1103 ;; 1104 1105 # Recognize the canonical CPU Types that limit and/or modify the 1106 # company names they are paired with. 1107 cr16-*) 1108 os=${os:-elf} 1109 ;; 1110 crisv32-* | etraxfs*-*) 1111 cpu=crisv32 1112 vendor=axis 1113 ;; 1114 cris-* | etrax*-*) 1115 cpu=cris 1116 vendor=axis 1117 ;; 1118 crx-*) 1119 os=${os:-elf} 1120 ;; 1121 neo-tandem) 1122 cpu=neo 1123 vendor=tandem 1124 ;; 1125 nse-tandem) 1126 cpu=nse 1127 vendor=tandem 1128 ;; 1129 nsr-tandem) 1130 cpu=nsr 1131 vendor=tandem 1132 ;; 1133 nsv-tandem) 1134 cpu=nsv 1135 vendor=tandem 1136 ;; 1137 nsx-tandem) 1138 cpu=nsx 1139 vendor=tandem 1140 ;; 1141 s390-*) 1142 cpu=s390 1143 vendor=ibm 1144 ;; 1145 s390x-*) 1146 cpu=s390x 1147 vendor=ibm 1148 ;; 1149 tile*-*) 1150 os=${os:-linux-gnu} 1151 ;; 1152 1153 *) 1154 # Recognize the canonical CPU types that are allowed with any 1155 # company name. 1156 case $cpu in 1157 1750a | 580 \ 1158 | a29k \ 1159 | aarch64 | aarch64_be \ 1160 | abacus \ 1161 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ 1162 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ 1163 | alphapca5[67] | alpha64pca5[67] \ 1164 | am33_2.0 \ 1165 | amdgcn \ 1166 | arc | arceb \ 1167 | arm | arm[lb]e | arme[lb] | armv* \ 1168 | avr | avr32 \ 1169 | asmjs \ 1170 | ba \ 1171 | be32 | be64 \ 1172 | bfin | bpf | bs2000 \ 1173 | c[123]* | c30 | [cjt]90 | c4x \ 1174 | c8051 | clipper | craynv | csky | cydra \ 1175 | d10v | d30v | dlx | dsp16xx \ 1176 | e2k | elxsi | epiphany \ 1177 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ 1178 | h8300 | h8500 \ 1179 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 1180 | hexagon \ 1181 | i370 | i*86 | i860 | i960 | ia16 | ia64 \ 1182 | ip2k | iq2000 \ 1183 | k1om \ 1184 | le32 | le64 \ 1185 | lm32 \ 1186 | m32c | m32r | m32rle \ 1187 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ 1188 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ 1189 | m88110 | m88k | maxq | mb | mcore | mep | metag \ 1190 | microblaze | microblazeel \ 1191 | mips | mipsbe | mipseb | mipsel | mipsle \ 1192 | mips16 \ 1193 | mips64 | mips64eb | mips64el \ 1194 | mips64octeon | mips64octeonel \ 1195 | mips64orion | mips64orionel \ 1196 | mips64r5900 | mips64r5900el \ 1197 | mips64vr | mips64vrel \ 1198 | mips64vr4100 | mips64vr4100el \ 1199 | mips64vr4300 | mips64vr4300el \ 1200 | mips64vr5000 | mips64vr5000el \ 1201 | mips64vr5900 | mips64vr5900el \ 1202 | mipsisa32 | mipsisa32el \ 1203 | mipsisa32r2 | mipsisa32r2el \ 1204 | mipsisa32r6 | mipsisa32r6el \ 1205 | mipsisa64 | mipsisa64el \ 1206 | mipsisa64r2 | mipsisa64r2el \ 1207 | mipsisa64r6 | mipsisa64r6el \ 1208 | mipsisa64sb1 | mipsisa64sb1el \ 1209 | mipsisa64sr71k | mipsisa64sr71kel \ 1210 | mipsr5900 | mipsr5900el \ 1211 | mipstx39 | mipstx39el \ 1212 | mmix \ 1213 | mn10200 | mn10300 \ 1214 | moxie \ 1215 | mt \ 1216 | msp430 \ 1217 | nds32 | nds32le | nds32be \ 1218 | nfp \ 1219 | nios | nios2 | nios2eb | nios2el \ 1220 | none | np1 | ns16k | ns32k | nvptx \ 1221 | open8 \ 1222 | or1k* \ 1223 | or32 \ 1224 | orion \ 1225 | picochip \ 1226 | pdp10 | pdp11 | pj | pjl | pn | power \ 1227 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ 1228 | pru \ 1229 | pyramid \ 1230 | riscv | riscv32 | riscv64 \ 1231 | rl78 | romp | rs6000 | rx \ 1232 | score \ 1233 | sh | shl \ 1234 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ 1235 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ 1236 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ 1237 | sparclite \ 1238 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ 1239 | spu \ 1240 | tahoe \ 1241 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ 1242 | tron \ 1243 | ubicom32 \ 1244 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ 1245 | vax \ 1246 | visium \ 1247 | w65 \ 1248 | wasm32 | wasm64 \ 1249 | we32k \ 1250 | x86 | x86_64 | xc16x | xgate | xps100 \ 1251 | xstormy16 | xtensa* \ 1252 | ymp \ 1253 | z8k | z80) 1254 ;; 1255 1256 *) 1257 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 1258 exit 1 1259 ;; 786 1260 esac 787 1261 ;; 788 isi68 | isi) 789 basic_machine=m68k-isi 790 os=-sysv 791 ;; 792 leon-*|leon[3-9]-*) 793 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` 794 ;; 795 m68knommu) 796 basic_machine=m68k-unknown 797 os=-linux 798 ;; 799 m68knommu-*) 800 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` 801 os=-linux 802 ;; 803 magnum | m3230) 804 basic_machine=mips-mips 805 os=-sysv 806 ;; 807 merlin) 808 basic_machine=ns32k-utek 809 os=-sysv 810 ;; 811 microblaze*) 812 basic_machine=microblaze-xilinx 813 ;; 814 mingw64) 815 basic_machine=x86_64-pc 816 os=-mingw64 817 ;; 818 mingw32) 819 basic_machine=i686-pc 820 os=-mingw32 821 ;; 822 mingw32ce) 823 basic_machine=arm-unknown 824 os=-mingw32ce 825 ;; 826 miniframe) 827 basic_machine=m68000-convergent 828 ;; 829 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 830 basic_machine=m68k-atari 831 os=-mint 832 ;; 833 mips3*-*) 834 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` 835 ;; 836 mips3*) 837 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown 838 ;; 839 monitor) 840 basic_machine=m68k-rom68k 841 os=-coff 842 ;; 843 morphos) 844 basic_machine=powerpc-unknown 845 os=-morphos 846 ;; 847 moxiebox) 848 basic_machine=moxie-unknown 849 os=-moxiebox 850 ;; 851 msdos) 852 basic_machine=i386-pc 853 os=-msdos 854 ;; 855 ms1-*) 856 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` 857 ;; 858 msys) 859 basic_machine=i686-pc 860 os=-msys 861 ;; 862 mvs) 863 basic_machine=i370-ibm 864 os=-mvs 865 ;; 866 nacl) 867 basic_machine=le32-unknown 868 os=-nacl 869 ;; 870 ncr3000) 871 basic_machine=i486-ncr 872 os=-sysv4 873 ;; 874 netbsd386) 875 basic_machine=i386-unknown 876 os=-netbsd 877 ;; 878 netwinder) 879 basic_machine=armv4l-rebel 880 os=-linux 881 ;; 882 news | news700 | news800 | news900) 883 basic_machine=m68k-sony 884 os=-newsos 885 ;; 886 news1000) 887 basic_machine=m68030-sony 888 os=-newsos 889 ;; 890 news-3600 | risc-news) 891 basic_machine=mips-sony 892 os=-newsos 893 ;; 894 necv70) 895 basic_machine=v70-nec 896 os=-sysv 897 ;; 898 next | m*-next) 899 basic_machine=m68k-next 900 case $os in 901 -nextstep* ) 902 ;; 903 -ns2*) 904 os=-nextstep2 905 ;; 906 *) 907 os=-nextstep3 908 ;; 909 esac 910 ;; 911 nh3000) 912 basic_machine=m68k-harris 913 os=-cxux 914 ;; 915 nh[45]000) 916 basic_machine=m88k-harris 917 os=-cxux 918 ;; 919 nindy960) 920 basic_machine=i960-intel 921 os=-nindy 922 ;; 923 mon960) 924 basic_machine=i960-intel 925 os=-mon960 926 ;; 927 nonstopux) 928 basic_machine=mips-compaq 929 os=-nonstopux 930 ;; 931 np1) 932 basic_machine=np1-gould 933 ;; 934 neo-tandem) 935 basic_machine=neo-tandem 936 ;; 937 nse-tandem) 938 basic_machine=nse-tandem 939 ;; 940 nsr-tandem) 941 basic_machine=nsr-tandem 942 ;; 943 nsv-tandem) 944 basic_machine=nsv-tandem 945 ;; 946 nsx-tandem) 947 basic_machine=nsx-tandem 948 ;; 949 op50n-* | op60c-*) 950 basic_machine=hppa1.1-oki 951 os=-proelf 952 ;; 953 openrisc | openrisc-*) 954 basic_machine=or32-unknown 955 ;; 956 os400) 957 basic_machine=powerpc-ibm 958 os=-os400 959 ;; 960 OSE68000 | ose68000) 961 basic_machine=m68000-ericsson 962 os=-ose 963 ;; 964 os68k) 965 basic_machine=m68k-none 966 os=-os68k 967 ;; 968 pa-hitachi) 969 basic_machine=hppa1.1-hitachi 970 os=-hiuxwe2 971 ;; 972 paragon) 973 basic_machine=i860-intel 974 os=-osf 975 ;; 976 parisc) 977 basic_machine=hppa-unknown 978 os=-linux 979 ;; 980 parisc-*) 981 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` 982 os=-linux 983 ;; 984 pbd) 985 basic_machine=sparc-tti 986 ;; 987 pbb) 988 basic_machine=m68k-tti 989 ;; 990 pc532 | pc532-*) 991 basic_machine=ns32k-pc532 992 ;; 993 pc98) 994 basic_machine=i386-pc 995 ;; 996 pc98-*) 997 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` 998 ;; 999 pentium | p5 | k5 | k6 | nexgen | viac3) 1000 basic_machine=i586-pc 1001 ;; 1002 pentiumpro | p6 | 6x86 | athlon | athlon_*) 1003 basic_machine=i686-pc 1004 ;; 1005 pentiumii | pentium2 | pentiumiii | pentium3) 1006 basic_machine=i686-pc 1007 ;; 1008 pentium4) 1009 basic_machine=i786-pc 1010 ;; 1011 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1012 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1013 ;; 1014 pentiumpro-* | p6-* | 6x86-* | athlon-*) 1015 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1016 ;; 1017 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1018 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1019 ;; 1020 pentium4-*) 1021 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1022 ;; 1023 pn) 1024 basic_machine=pn-gould 1025 ;; 1026 power) basic_machine=power-ibm 1027 ;; 1028 ppc | ppcbe) basic_machine=powerpc-unknown 1029 ;; 1030 ppc-* | ppcbe-*) 1031 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1032 ;; 1033 ppcle | powerpclittle) 1034 basic_machine=powerpcle-unknown 1035 ;; 1036 ppcle-* | powerpclittle-*) 1037 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1038 ;; 1039 ppc64) basic_machine=powerpc64-unknown 1040 ;; 1041 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1042 ;; 1043 ppc64le | powerpc64little) 1044 basic_machine=powerpc64le-unknown 1045 ;; 1046 ppc64le-* | powerpc64little-*) 1047 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1048 ;; 1049 ps2) 1050 basic_machine=i386-ibm 1051 ;; 1052 pw32) 1053 basic_machine=i586-unknown 1054 os=-pw32 1055 ;; 1056 rdos | rdos64) 1057 basic_machine=x86_64-pc 1058 os=-rdos 1059 ;; 1060 rdos32) 1061 basic_machine=i386-pc 1062 os=-rdos 1063 ;; 1064 rom68k) 1065 basic_machine=m68k-rom68k 1066 os=-coff 1067 ;; 1068 rm[46]00) 1069 basic_machine=mips-siemens 1070 ;; 1071 rtpc | rtpc-*) 1072 basic_machine=romp-ibm 1073 ;; 1074 s390 | s390-*) 1075 basic_machine=s390-ibm 1076 ;; 1077 s390x | s390x-*) 1078 basic_machine=s390x-ibm 1079 ;; 1080 sa29200) 1081 basic_machine=a29k-amd 1082 os=-udi 1083 ;; 1084 sb1) 1085 basic_machine=mipsisa64sb1-unknown 1086 ;; 1087 sb1el) 1088 basic_machine=mipsisa64sb1el-unknown 1089 ;; 1090 sde) 1091 basic_machine=mipsisa32-sde 1092 os=-elf 1093 ;; 1094 sei) 1095 basic_machine=mips-sei 1096 os=-seiux 1097 ;; 1098 sequent) 1099 basic_machine=i386-sequent 1100 ;; 1101 sh5el) 1102 basic_machine=sh5le-unknown 1103 ;; 1104 simso-wrs) 1105 basic_machine=sparclite-wrs 1106 os=-vxworks 1107 ;; 1108 sps7) 1109 basic_machine=m68k-bull 1110 os=-sysv2 1111 ;; 1112 spur) 1113 basic_machine=spur-unknown 1114 ;; 1115 st2000) 1116 basic_machine=m68k-tandem 1117 ;; 1118 stratus) 1119 basic_machine=i860-stratus 1120 os=-sysv4 1121 ;; 1122 strongarm-* | thumb-*) 1123 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1124 ;; 1125 sun2) 1126 basic_machine=m68000-sun 1127 ;; 1128 sun2os3) 1129 basic_machine=m68000-sun 1130 os=-sunos3 1131 ;; 1132 sun2os4) 1133 basic_machine=m68000-sun 1134 os=-sunos4 1135 ;; 1136 sun3os3) 1137 basic_machine=m68k-sun 1138 os=-sunos3 1139 ;; 1140 sun3os4) 1141 basic_machine=m68k-sun 1142 os=-sunos4 1143 ;; 1144 sun4os3) 1145 basic_machine=sparc-sun 1146 os=-sunos3 1147 ;; 1148 sun4os4) 1149 basic_machine=sparc-sun 1150 os=-sunos4 1151 ;; 1152 sun4sol2) 1153 basic_machine=sparc-sun 1154 os=-solaris2 1155 ;; 1156 sun3 | sun3-*) 1157 basic_machine=m68k-sun 1158 ;; 1159 sun4) 1160 basic_machine=sparc-sun 1161 ;; 1162 sun386 | sun386i | roadrunner) 1163 basic_machine=i386-sun 1164 ;; 1165 sv1) 1166 basic_machine=sv1-cray 1167 os=-unicos 1168 ;; 1169 symmetry) 1170 basic_machine=i386-sequent 1171 os=-dynix 1172 ;; 1173 t3e) 1174 basic_machine=alphaev5-cray 1175 os=-unicos 1176 ;; 1177 t90) 1178 basic_machine=t90-cray 1179 os=-unicos 1180 ;; 1181 tile*) 1182 basic_machine=$basic_machine-unknown 1183 os=-linux-gnu 1184 ;; 1185 tx39) 1186 basic_machine=mipstx39-unknown 1187 ;; 1188 tx39el) 1189 basic_machine=mipstx39el-unknown 1190 ;; 1191 toad1) 1192 basic_machine=pdp10-xkl 1193 os=-tops20 1194 ;; 1195 tower | tower-32) 1196 basic_machine=m68k-ncr 1197 ;; 1198 tpf) 1199 basic_machine=s390x-ibm 1200 os=-tpf 1201 ;; 1202 udi29k) 1203 basic_machine=a29k-amd 1204 os=-udi 1205 ;; 1206 ultra3) 1207 basic_machine=a29k-nyu 1208 os=-sym1 1209 ;; 1210 v810 | necv810) 1211 basic_machine=v810-nec 1212 os=-none 1213 ;; 1214 vaxv) 1215 basic_machine=vax-dec 1216 os=-sysv 1217 ;; 1218 vms) 1219 basic_machine=vax-dec 1220 os=-vms 1221 ;; 1222 vpp*|vx|vx-*) 1223 basic_machine=f301-fujitsu 1224 ;; 1225 vxworks960) 1226 basic_machine=i960-wrs 1227 os=-vxworks 1228 ;; 1229 vxworks68) 1230 basic_machine=m68k-wrs 1231 os=-vxworks 1232 ;; 1233 vxworks29k) 1234 basic_machine=a29k-wrs 1235 os=-vxworks 1236 ;; 1237 w65*) 1238 basic_machine=w65-wdc 1239 os=-none 1240 ;; 1241 w89k-*) 1242 basic_machine=hppa1.1-winbond 1243 os=-proelf 1244 ;; 1245 x64) 1246 basic_machine=x86_64-pc 1247 ;; 1248 xbox) 1249 basic_machine=i686-pc 1250 os=-mingw32 1251 ;; 1252 xps | xps100) 1253 basic_machine=xps100-honeywell 1254 ;; 1255 xscale-* | xscalee[bl]-*) 1256 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` 1257 ;; 1258 ymp) 1259 basic_machine=ymp-cray 1260 os=-unicos 1261 ;; 1262 none) 1263 basic_machine=none-none 1264 os=-none 1265 ;; 1266 1267 # Here we handle the default manufacturer of certain CPU types. It is in 1268 # some cases the only manufacturer, in others, it is the most popular. 1269 w89k) 1270 basic_machine=hppa1.1-winbond 1271 ;; 1272 op50n) 1273 basic_machine=hppa1.1-oki 1274 ;; 1275 op60c) 1276 basic_machine=hppa1.1-oki 1277 ;; 1278 romp) 1279 basic_machine=romp-ibm 1280 ;; 1281 mmix) 1282 basic_machine=mmix-knuth 1283 ;; 1284 rs6000) 1285 basic_machine=rs6000-ibm 1286 ;; 1287 vax) 1288 basic_machine=vax-dec 1289 ;; 1290 pdp11) 1291 basic_machine=pdp11-dec 1292 ;; 1293 we32k) 1294 basic_machine=we32k-att 1295 ;; 1296 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 1297 basic_machine=sh-unknown 1298 ;; 1299 cydra) 1300 basic_machine=cydra-cydrome 1301 ;; 1302 orion) 1303 basic_machine=orion-highlevel 1304 ;; 1305 orion105) 1306 basic_machine=clipper-highlevel 1307 ;; 1308 mac | mpw | mac-mpw) 1309 basic_machine=m68k-apple 1310 ;; 1311 pmac | pmac-mpw) 1312 basic_machine=powerpc-apple 1313 ;; 1314 *-unknown) 1315 # Make sure to match an already-canonicalized machine name. 1262 esac 1263 1264 # Here we canonicalize certain aliases for manufacturers. 1265 case $vendor in 1266 digital*) 1267 vendor=dec 1268 ;; 1269 commodore*) 1270 vendor=cbm 1316 1271 ;; 1317 1272 *) 1318 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&21319 exit 11320 1273 ;; 1321 1274 esac 1322 1275 1323 # Here we canonicalize certain aliases for manufacturers.1324 case $basic_machine in1325 *-digital*)1326 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`1327 ;;1328 *-commodore*)1329 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`1330 ;;1331 *)1332 ;;1333 esac1334 1335 1276 # Decode manufacturer-specific aliases for certain operating systems. 1336 1277 1337 if [ x "$os" != x""]1278 if [ x$os != x ] 1338 1279 then 1339 1280 case $os in 1340 1281 # First match some system type aliases that might get confused 1341 1282 # with valid system types. 1342 # -solaris* is a basic system type, with this one exception. 1343 -auroraux) 1344 os=-auroraux 1345 ;; 1346 -solaris1 | -solaris1.*) 1283 # solaris* is a basic system type, with this one exception. 1284 auroraux) 1285 os=auroraux 1286 ;; 1287 bluegene*) 1288 os=cnk 1289 ;; 1290 solaris1 | solaris1.*) 1347 1291 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1348 1292 ;; 1349 -solaris)1350 os= -solaris21351 ;; 1352 -unixware*)1353 os= -sysv4.2uw1354 ;; 1355 -gnu/linux*)1293 solaris) 1294 os=solaris2 1295 ;; 1296 unixware*) 1297 os=sysv4.2uw 1298 ;; 1299 gnu/linux*) 1356 1300 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1357 1301 ;; 1358 1302 # es1800 is here to avoid being matched by es* (a different OS) 1359 -es1800*) 1360 os=-ose 1303 es1800*) 1304 os=ose 1305 ;; 1306 # Some version numbers need modification 1307 chorusos*) 1308 os=chorusos 1309 ;; 1310 isc) 1311 os=isc2.2 1312 ;; 1313 sco6) 1314 os=sco5v6 1315 ;; 1316 sco5) 1317 os=sco3.2v5 1318 ;; 1319 sco4) 1320 os=sco3.2v4 1321 ;; 1322 sco3.2.[4-9]*) 1323 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1324 ;; 1325 sco3.2v[4-9]* | sco5v6*) 1326 # Don't forget version if it is 3.2v4 or newer. 1327 ;; 1328 scout) 1329 # Don't match below 1330 ;; 1331 sco*) 1332 os=sco3.2v2 1333 ;; 1334 psos*) 1335 os=psos 1361 1336 ;; 1362 1337 # Now accept the basic system types. 1363 1338 # The portable systems comes first. 1364 1339 # Each alternative MUST end in a * to match a version number. 1365 # -sysv* is not here because it comes later, after sysvr4. 1366 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1367 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1368 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1369 | -sym* | -kopensolaris* | -plan9* \ 1370 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1371 | -aos* | -aros* | -cloudabi* | -sortix* \ 1372 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1373 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1374 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ 1375 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ 1376 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1377 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1378 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1379 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ 1380 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ 1381 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1382 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1383 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1384 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ 1385 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ 1386 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1387 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1388 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1389 | -morphos* | -superux* | -rtmk* | -windiss* \ 1390 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1391 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ 1392 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ 1393 | -midnightbsd*) 1340 # sysv* is not here because it comes later, after sysvr4. 1341 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ 1342 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ 1343 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ 1344 | sym* | kopensolaris* | plan9* \ 1345 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ 1346 | aos* | aros* | cloudabi* | sortix* | twizzler* \ 1347 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ 1348 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ 1349 | knetbsd* | mirbsd* | netbsd* \ 1350 | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ 1351 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ 1352 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ 1353 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ 1354 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \ 1355 | chorusrdb* | cegcc* | glidix* \ 1356 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ 1357 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \ 1358 | linux-newlib* | linux-musl* | linux-uclibc* \ 1359 | uxpv* | beos* | mpeix* | udk* | moxiebox* \ 1360 | interix* | uwin* | mks* | rhapsody* | darwin* \ 1361 | openstep* | oskit* | conix* | pw32* | nonstopux* \ 1362 | storm-chaos* | tops10* | tenex* | tops20* | its* \ 1363 | os2* | vos* | palmos* | uclinux* | nucleus* \ 1364 | morphos* | superux* | rtmk* | windiss* \ 1365 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ 1366 | skyos* | haiku* | rdos* | toppers* | drops* | es* \ 1367 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ 1368 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ 1369 | nsk* | powerunix) 1394 1370 # Remember, each alternative MUST END IN *, to match a version number. 1395 1371 ;; 1396 -qnx*)1397 case $ basic_machinein1398 x86 -* | i*86-*)1372 qnx*) 1373 case $cpu in 1374 x86 | i*86) 1399 1375 ;; 1400 1376 *) 1401 os= -nto$os1377 os=nto-$os 1402 1378 ;; 1403 1379 esac 1404 1380 ;; 1405 -nto-qnx*) 1406 ;; 1407 -nto*) 1381 hiux*) 1382 os=hiuxwe2 1383 ;; 1384 nto-qnx*) 1385 ;; 1386 nto*) 1408 1387 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1409 1388 ;; 1410 -sim | -xray | -os68k* | -v88r* \ 1411 | -windows* | -osx | -abug | -netware* | -os9* \ 1412 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1413 ;; 1414 -mac*) 1389 sim | xray | os68k* | v88r* \ 1390 | windows* | osx | abug | netware* | os9* \ 1391 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*) 1392 ;; 1393 linux-dietlibc) 1394 os=linux-dietlibc 1395 ;; 1396 linux*) 1397 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1398 ;; 1399 lynx*178) 1400 os=lynxos178 1401 ;; 1402 lynx*5) 1403 os=lynxos5 1404 ;; 1405 lynx*) 1406 os=lynxos 1407 ;; 1408 mac*) 1415 1409 os=`echo "$os" | sed -e 's|mac|macos|'` 1416 1410 ;; 1417 -linux-dietlibc)1418 os= -linux-dietlibc1419 ;; 1420 -linux*)1421 os= `echo $os | sed -e 's|linux|linux-gnu|'`1422 ;; 1423 -sunos5*)1411 opened*) 1412 os=openedition 1413 ;; 1414 os400*) 1415 os=os400 1416 ;; 1417 sunos5*) 1424 1418 os=`echo "$os" | sed -e 's|sunos5|solaris2|'` 1425 1419 ;; 1426 -sunos6*)1420 sunos6*) 1427 1421 os=`echo "$os" | sed -e 's|sunos6|solaris3|'` 1428 1422 ;; 1429 -opened*) 1430 os=-openedition 1431 ;; 1432 -os400*) 1433 os=-os400 1434 ;; 1435 -wince*) 1436 os=-wince 1437 ;; 1438 -utek*) 1439 os=-bsd 1440 ;; 1441 -dynix*) 1442 os=-bsd 1443 ;; 1444 -acis*) 1445 os=-aos 1446 ;; 1447 -atheos*) 1448 os=-atheos 1449 ;; 1450 -syllable*) 1451 os=-syllable 1452 ;; 1453 -386bsd) 1454 os=-bsd 1455 ;; 1456 -ctix* | -uts*) 1457 os=-sysv 1458 ;; 1459 -nova*) 1460 os=-rtmk-nova 1461 ;; 1462 -ns2) 1463 os=-nextstep2 1464 ;; 1465 -nsk*) 1466 os=-nsk 1423 wince*) 1424 os=wince 1425 ;; 1426 utek*) 1427 os=bsd 1428 ;; 1429 dynix*) 1430 os=bsd 1431 ;; 1432 acis*) 1433 os=aos 1434 ;; 1435 atheos*) 1436 os=atheos 1437 ;; 1438 syllable*) 1439 os=syllable 1440 ;; 1441 386bsd) 1442 os=bsd 1443 ;; 1444 ctix* | uts*) 1445 os=sysv 1446 ;; 1447 nova*) 1448 os=rtmk-nova 1449 ;; 1450 ns2) 1451 os=nextstep2 1467 1452 ;; 1468 1453 # Preserve the version number of sinix5. 1469 -sinix5.*)1454 sinix5.*) 1470 1455 os=`echo $os | sed -e 's|sinix|sysv|'` 1471 1456 ;; 1472 -sinix*)1473 os= -sysv41474 ;; 1475 -tpf*)1476 os= -tpf1477 ;; 1478 -triton*)1479 os= -sysv31480 ;; 1481 -oss*)1482 os= -sysv31483 ;; 1484 -svr4*)1485 os= -sysv41486 ;; 1487 -svr3)1488 os= -sysv31489 ;; 1490 -sysvr4)1491 os= -sysv41492 ;; 1493 # This must come after -sysvr4.1494 -sysv*)1495 ;; 1496 -ose*)1497 os= -ose1498 ;; 1499 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)1500 os= -mint1501 ;; 1502 -zvmoe)1503 os= -zvmoe1504 ;; 1505 -dicos*)1506 os= -dicos1507 ;; 1508 -pikeos*)1457 sinix*) 1458 os=sysv4 1459 ;; 1460 tpf*) 1461 os=tpf 1462 ;; 1463 triton*) 1464 os=sysv3 1465 ;; 1466 oss*) 1467 os=sysv3 1468 ;; 1469 svr4*) 1470 os=sysv4 1471 ;; 1472 svr3) 1473 os=sysv3 1474 ;; 1475 sysvr4) 1476 os=sysv4 1477 ;; 1478 # This must come after sysvr4. 1479 sysv*) 1480 ;; 1481 ose*) 1482 os=ose 1483 ;; 1484 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) 1485 os=mint 1486 ;; 1487 zvmoe) 1488 os=zvmoe 1489 ;; 1490 dicos*) 1491 os=dicos 1492 ;; 1493 pikeos*) 1509 1494 # Until real need of OS specific support for 1510 1495 # particular features comes up, bare metal 1511 1496 # configurations are quite functional. 1512 case $ basic_machinein1497 case $cpu in 1513 1498 arm*) 1514 os= -eabi1499 os=eabi 1515 1500 ;; 1516 1501 *) 1517 os= -elf1502 os=elf 1518 1503 ;; 1519 1504 esac 1520 1505 ;; 1521 -nacl*) 1522 ;; 1523 -ios) 1524 ;; 1525 -none) 1506 nacl*) 1507 ;; 1508 ios) 1509 ;; 1510 none) 1511 ;; 1512 *-eabi) 1526 1513 ;; 1527 1514 *) 1528 # Get rid of the `-' at the beginning of $os.1529 os=`echo $os | sed 's/[^-]*-//'`1530 1515 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 1531 1516 exit 1 … … 1544 1529 # system, and we'll never get to this point. 1545 1530 1546 case $ basic_machinein1531 case $cpu-$vendor in 1547 1532 score-*) 1548 os= -elf1533 os=elf 1549 1534 ;; 1550 1535 spu-*) 1551 os= -elf1536 os=elf 1552 1537 ;; 1553 1538 *-acorn) 1554 os= -riscix1.21539 os=riscix1.2 1555 1540 ;; 1556 1541 arm*-rebel) 1557 os= -linux1542 os=linux 1558 1543 ;; 1559 1544 arm*-semi) 1560 os= -aout1545 os=aout 1561 1546 ;; 1562 1547 c4x-* | tic4x-*) 1563 os= -coff1548 os=coff 1564 1549 ;; 1565 1550 c8051-*) 1566 os=-elf 1551 os=elf 1552 ;; 1553 clipper-intergraph) 1554 os=clix 1567 1555 ;; 1568 1556 hexagon-*) 1569 os= -elf1557 os=elf 1570 1558 ;; 1571 1559 tic54x-*) 1572 os= -coff1560 os=coff 1573 1561 ;; 1574 1562 tic55x-*) 1575 os= -coff1563 os=coff 1576 1564 ;; 1577 1565 tic6x-*) 1578 os= -coff1566 os=coff 1579 1567 ;; 1580 1568 # This must come before the *-dec entry. 1581 1569 pdp10-*) 1582 os= -tops201570 os=tops20 1583 1571 ;; 1584 1572 pdp11-*) 1585 os= -none1573 os=none 1586 1574 ;; 1587 1575 *-dec | vax-*) 1588 os= -ultrix4.21576 os=ultrix4.2 1589 1577 ;; 1590 1578 m68*-apollo) 1591 os= -domain1579 os=domain 1592 1580 ;; 1593 1581 i386-sun) 1594 os= -sunos4.0.21582 os=sunos4.0.2 1595 1583 ;; 1596 1584 m68000-sun) 1597 os= -sunos31585 os=sunos3 1598 1586 ;; 1599 1587 m68*-cisco) 1600 os= -aout1588 os=aout 1601 1589 ;; 1602 1590 mep-*) 1603 os= -elf1591 os=elf 1604 1592 ;; 1605 1593 mips*-cisco) 1606 os= -elf1594 os=elf 1607 1595 ;; 1608 1596 mips*-*) 1609 os= -elf1597 os=elf 1610 1598 ;; 1611 1599 or32-*) 1612 os= -coff1600 os=coff 1613 1601 ;; 1614 1602 *-tti) # must be before sparc entry or we get the wrong os. 1615 os= -sysv31603 os=sysv3 1616 1604 ;; 1617 1605 sparc-* | *-sun) 1618 os= -sunos4.1.11606 os=sunos4.1.1 1619 1607 ;; 1620 1608 pru-*) 1621 os= -elf1609 os=elf 1622 1610 ;; 1623 1611 *-be) 1624 os= -beos1612 os=beos 1625 1613 ;; 1626 1614 *-ibm) 1627 os= -aix1615 os=aix 1628 1616 ;; 1629 1617 *-knuth) 1630 os= -mmixware1618 os=mmixware 1631 1619 ;; 1632 1620 *-wec) 1633 os= -proelf1621 os=proelf 1634 1622 ;; 1635 1623 *-winbond) 1636 os= -proelf1624 os=proelf 1637 1625 ;; 1638 1626 *-oki) 1639 os= -proelf1627 os=proelf 1640 1628 ;; 1641 1629 *-hp) 1642 os= -hpux1630 os=hpux 1643 1631 ;; 1644 1632 *-hitachi) 1645 os= -hiux1633 os=hiux 1646 1634 ;; 1647 1635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1648 os= -sysv1636 os=sysv 1649 1637 ;; 1650 1638 *-cbm) 1651 os= -amigaos1639 os=amigaos 1652 1640 ;; 1653 1641 *-dg) 1654 os= -dgux1642 os=dgux 1655 1643 ;; 1656 1644 *-dolphin) 1657 os= -sysv31645 os=sysv3 1658 1646 ;; 1659 1647 m68k-ccur) 1660 os= -rtu1648 os=rtu 1661 1649 ;; 1662 1650 m88k-omron*) 1663 os= -luna1651 os=luna 1664 1652 ;; 1665 1653 *-next) 1666 os= -nextstep1654 os=nextstep 1667 1655 ;; 1668 1656 *-sequent) 1669 os= -ptx1657 os=ptx 1670 1658 ;; 1671 1659 *-crds) 1672 os= -unos1660 os=unos 1673 1661 ;; 1674 1662 *-ns) 1675 os= -genix1663 os=genix 1676 1664 ;; 1677 1665 i370-*) 1678 os= -mvs1666 os=mvs 1679 1667 ;; 1680 1668 *-gould) 1681 os= -sysv1669 os=sysv 1682 1670 ;; 1683 1671 *-highlevel) 1684 os= -bsd1672 os=bsd 1685 1673 ;; 1686 1674 *-encore) 1687 os= -bsd1675 os=bsd 1688 1676 ;; 1689 1677 *-sgi) 1690 os= -irix1678 os=irix 1691 1679 ;; 1692 1680 *-siemens) 1693 os= -sysv41681 os=sysv4 1694 1682 ;; 1695 1683 *-masscomp) 1696 os= -rtu1684 os=rtu 1697 1685 ;; 1698 1686 f30[01]-fujitsu | f700-fujitsu) 1699 os= -uxpv1687 os=uxpv 1700 1688 ;; 1701 1689 *-rom68k) 1702 os= -coff1690 os=coff 1703 1691 ;; 1704 1692 *-*bug) 1705 os= -coff1693 os=coff 1706 1694 ;; 1707 1695 *-apple) 1708 os= -macos1696 os=macos 1709 1697 ;; 1710 1698 *-atari*) 1711 os=-mint 1699 os=mint 1700 ;; 1701 *-wrs) 1702 os=vxworks 1712 1703 ;; 1713 1704 *) 1714 os= -none1705 os=none 1715 1706 ;; 1716 1707 esac … … 1719 1710 # Here we handle the case where we know the os, and the CPU type, but not the 1720 1711 # manufacturer. We pick the logical manufacturer. 1721 vendor=unknown 1722 case $basic_machine in 1723 *-unknown) 1712 case $vendor in 1713 unknown) 1724 1714 case $os in 1725 -riscix*)1715 riscix*) 1726 1716 vendor=acorn 1727 1717 ;; 1728 -sunos*)1718 sunos*) 1729 1719 vendor=sun 1730 1720 ;; 1731 -cnk*|-aix*)1721 cnk*|-aix*) 1732 1722 vendor=ibm 1733 1723 ;; 1734 -beos*)1724 beos*) 1735 1725 vendor=be 1736 1726 ;; 1737 -hpux*)1727 hpux*) 1738 1728 vendor=hp 1739 1729 ;; 1740 -mpeix*)1730 mpeix*) 1741 1731 vendor=hp 1742 1732 ;; 1743 -hiux*)1733 hiux*) 1744 1734 vendor=hitachi 1745 1735 ;; 1746 -unos*)1736 unos*) 1747 1737 vendor=crds 1748 1738 ;; 1749 -dgux*)1739 dgux*) 1750 1740 vendor=dg 1751 1741 ;; 1752 -luna*)1742 luna*) 1753 1743 vendor=omron 1754 1744 ;; 1755 -genix*)1745 genix*) 1756 1746 vendor=ns 1757 1747 ;; 1758 -mvs* | -opened*) 1748 clix*) 1749 vendor=intergraph 1750 ;; 1751 mvs* | opened*) 1759 1752 vendor=ibm 1760 1753 ;; 1761 -os400*)1754 os400*) 1762 1755 vendor=ibm 1763 1756 ;; 1764 -ptx*)1757 ptx*) 1765 1758 vendor=sequent 1766 1759 ;; 1767 -tpf*)1760 tpf*) 1768 1761 vendor=ibm 1769 1762 ;; 1770 -vxsim* | -vxworks* | -windiss*)1763 vxsim* | vxworks* | windiss*) 1771 1764 vendor=wrs 1772 1765 ;; 1773 -aux*)1766 aux*) 1774 1767 vendor=apple 1775 1768 ;; 1776 -hms*)1769 hms*) 1777 1770 vendor=hitachi 1778 1771 ;; 1779 -mpw* | -macos*)1772 mpw* | macos*) 1780 1773 vendor=apple 1781 1774 ;; 1782 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)1775 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) 1783 1776 vendor=atari 1784 1777 ;; 1785 -vos*)1778 vos*) 1786 1779 vendor=stratus 1787 1780 ;; 1788 1781 esac 1789 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`1790 1782 ;; 1791 1783 esac 1792 1784 1793 echo "$ basic_machine$os"1785 echo "$cpu-$vendor-$os" 1794 1786 exit 1795 1787 -
ThirdParty/HSL/stable/2.1/configure
r4188 r4193 2075 2075 2076 2076 } # ac_fn_fc_try_link 2077 2078 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2079 # ------------------------------------------------------- 2080 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2081 # the include files in INCLUDES and setting the cache variable VAR 2082 # accordingly. 2083 ac_fn_c_check_header_mongrel () 2084 { 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 if eval \${$3+:} false; then : 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088 $as_echo_n "checking for $2... " >&6; } 2089 if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091 fi 2092 eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094 $as_echo "$ac_res" >&6; } 2095 else 2096 # Is the header compilable? 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2098 $as_echo_n "checking $2 usability... " >&6; } 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100 /* end confdefs.h. */ 2101 $4 2102 #include <$2> 2103 _ACEOF 2104 if ac_fn_c_try_compile "$LINENO"; then : 2105 ac_header_compiler=yes 2106 else 2107 ac_header_compiler=no 2108 fi 2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2111 $as_echo "$ac_header_compiler" >&6; } 2112 2113 # Is the header present? 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2115 $as_echo_n "checking $2 presence... " >&6; } 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117 /* end confdefs.h. */ 2118 #include <$2> 2119 _ACEOF 2120 if ac_fn_c_try_cpp "$LINENO"; then : 2121 ac_header_preproc=yes 2122 else 2123 ac_header_preproc=no 2124 fi 2125 rm -f conftest.err conftest.i conftest.$ac_ext 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2127 $as_echo "$ac_header_preproc" >&6; } 2128 2129 # So? What about this header? 2130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2131 yes:no: ) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2133 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2136 ;; 2137 no:yes:* ) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2139 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2141 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2143 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2145 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2148 ( $as_echo "## ------------------------------------------------------------------------- ## 2149 ## Report this to https://github.com/coin-or-tools/ThirdParty-HSL/issues/new ## 2150 ## ------------------------------------------------------------------------- ##" 2151 ) | sed "s/^/$as_me: WARNING: /" >&2 2152 ;; 2153 esac 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155 $as_echo_n "checking for $2... " >&6; } 2156 if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158 else 2159 eval "$3=\$ac_header_compiler" 2160 fi 2161 eval ac_res=\$$3 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2163 $as_echo "$ac_res" >&6; } 2164 fi 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2166 2167 } # ac_fn_c_check_header_mongrel 2077 2168 cat >config.log <<_ACEOF 2078 2169 This file contains any messages produced by compilers while … … 21903 21994 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21904 21995 21905 ac_fn_c_check_header_compile "$LINENO" "metis.h" "ac_cv_header_metis_h" "$metis_cflags 21906 " 21996 coin_CPPFLAGS="$CPPFLAGS" 21997 CPPFLAGS="$CPPFLAGS $metis_cflags" 21998 ac_fn_c_check_header_mongrel "$LINENO" "metis.h" "ac_cv_header_metis_h" "$ac_includes_default" 21907 21999 if test "x$ac_cv_header_metis_h" = xyes; then : 21908 22000 … … 21912 22004 21913 22005 22006 CPPFLAGS="$coin_CPPFLAGS" 21914 22007 ac_ext=c 21915 22008 ac_cpp='$CPP $CPPFLAGS' … … 24309 24402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24310 24403 as_fn_error $? "Something went wrong bootstrapping makefile fragments 24311 for automatic dependency tracking. Try re-running configure with the 24404 for automatic dependency tracking. If GNU make was not used, consider 24405 re-running the configure script with MAKE=\"gmake\" (or whatever is 24406 necessary). You can also try re-running configure with the 24312 24407 '--disable-dependency-tracking' option to at least be able to build 24313 24408 the package (albeit without support for automatic dependency tracking). -
ThirdParty/HSL/stable/2.1/configure.ac
r4188 r4193 138 138 if test $coin_has_metis = yes ; then 139 139 AC_LANG_PUSH(C) 140 AC_CHECK_HEADER([metis.h],,[coin_has_metis=no],[$metis_cflags]) 140 coin_CPPFLAGS="$CPPFLAGS" 141 CPPFLAGS="$CPPFLAGS $metis_cflags" 142 AC_CHECK_HEADER([metis.h],,[coin_has_metis=no]) 143 CPPFLAGS="$coin_CPPFLAGS" 141 144 AC_LANG_POP(C) 142 145 fi -
ThirdParty/HSL/stable/2.1/depcomp
r4023 r4193 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1999-20 18Free Software Foundation, Inc.6 # Copyright (C) 1999-2020 Free Software Foundation, Inc. 7 7 8 8 # This program is free software; you can redistribute it and/or modify -
ThirdParty/HSL/stable/2.1/install-sh
r4023 r4193 452 452 453 453 # Copy the file name to the temp name. 454 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 454 (umask $cp_umask && 455 { test -z "$stripcmd" || { 456 # Create $dsttmp read-write so that cp doesn't create it read-only, 457 # which would cause strip to fail. 458 if test -z "$doit"; then 459 : >"$dsttmp" # No need to fork-exec 'touch'. 460 else 461 $doit touch "$dsttmp" 462 fi 463 } 464 } && 465 $doit_exec $cpprog "$src" "$dsttmp") && 455 466 456 467 # and set any options; do chmod last to preserve setuid bits. -
ThirdParty/HSL/stable/2.1/missing
r4023 r4193 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1996-20 18Free Software Foundation, Inc.6 # Copyright (C) 1996-2020 Free Software Foundation, Inc. 7 7 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. 8 8 -
ThirdParty/Mumps/stable/2.1
- Property svn:mergeinfo changed
/ThirdParty/Mumps/trunk merged: 4189-4190
- Property svn:mergeinfo changed
-
ThirdParty/Mumps/stable/2.1/Makefile.in
r4167 r4193 1 # Makefile.in generated by automake 1.16. 1from Makefile.am.1 # Makefile.in generated by automake 1.16.2 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994-20 18Free Software Foundation, Inc.4 # Copyright (C) 1994-2020 Free Software Foundation, Inc. 5 5 6 6 # This Makefile.in is free software; the Free Software Foundation … … 246 246 DATA = $(pkgconfiglib_DATA) 247 247 HEADERS = $(thirdpartyinclude_HEADERS) 248 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \249 $(LISP)config.h.in mumps_compat.h.in248 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ 249 config.h.in mumps_compat.h.in 250 250 # Read a list of newline-separated strings from the standard input, 251 251 # and print each of them once, without duplicates. Input order is -
ThirdParty/Mumps/stable/2.1/ar-lib
r4138 r4193 3 3 4 4 me=ar-lib 5 scriptversion=201 2-03-01.08; # UTC6 7 # Copyright (C) 2010-20 18Free Software Foundation, Inc.5 scriptversion=2019-07-04.01; # UTC 6 7 # Copyright (C) 2010-2020 Free Software Foundation, Inc. 8 8 # Written by Peter Rosin <peda@lysator.liu.se>. 9 9 # … … 51 51 # lazily determine how to convert abs files 52 52 case `uname -s` in 53 MINGW* | MSYS*)53 MINGW*) 54 54 file_conv=mingw 55 55 ;; 56 CYGWIN* )56 CYGWIN* | MSYS*) 57 57 file_conv=cygwin 58 58 ;; … … 66 66 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` 67 67 ;; 68 cygwin )68 cygwin | msys) 69 69 file=`cygpath -m "$file" || echo "$file"` 70 70 ;; … … 225 225 done 226 226 else 227 $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member 228 do 229 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? 230 done 227 $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \ 228 | while read member 229 do 230 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? 231 done 231 232 fi 232 233 -
ThirdParty/Mumps/stable/2.1/compile
r4025 r4193 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1999-20 18Free Software Foundation, Inc.6 # Copyright (C) 1999-2020 Free Software Foundation, Inc. 7 7 # Written by Tom Tromey <tromey@cygnus.com>. 8 8 # … … 51 51 # lazily determine how to convert abs files 52 52 case `uname -s` in 53 MINGW* | MSYS*)53 MINGW*) 54 54 file_conv=mingw 55 55 ;; 56 CYGWIN* )56 CYGWIN* | MSYS*) 57 57 file_conv=cygwin 58 58 ;; … … 68 68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` 69 69 ;; 70 cygwin/* )70 cygwin/* | msys/*) 71 71 file=`cygpath -m "$file" || echo "$file"` 72 72 ;; … … 207 207 linker_opts="$linker_opts $2" 208 208 ;; 209 -std=*) 210 set x "$@" -std:"${1#-std=}" 211 shift 212 ;; 209 213 -*) 210 214 set x "$@" "$1" -
ThirdParty/Mumps/stable/2.1/config.guess
r4025 r4193 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-20 18Free Software Foundation, Inc.4 5 timestamp='20 18-03-08'3 # Copyright 1992-2020 Free Software Foundation, Inc. 4 5 timestamp='2020-01-01' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 51 51 52 52 Originally written by Per Bothner. 53 Copyright 1992-20 18Free Software Foundation, Inc.53 Copyright 1992-2020 Free Software Foundation, Inc. 54 54 55 55 This is free software; see the source for copying conditions. There is NO … … 85 85 fi 86 86 87 trap 'exit 1' 1 2 1588 89 87 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a 90 88 # compiler to aid in system detection is discouraged as it requires … … 97 95 # Portable tmp directory creation inspired by the Autoconf team. 98 96 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 ; } ; 107 dummy=$tmp/dummy ; 108 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109 case $CC_FOR_BUILD,$HOST_CC,$CC in 110 ,,) echo "int x;" > "$dummy.c" ; 111 for c in cc gcc c89 c99 ; do 112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 113 CC_FOR_BUILD="$c"; break ; 114 fi ; 115 done ; 116 if test x"$CC_FOR_BUILD" = x ; then 117 CC_FOR_BUILD=no_compiler_found ; 118 fi 119 ;; 120 ,,*) CC_FOR_BUILD=$CC ;; 121 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 esac ; set_cc_for_build= ;' 97 tmp= 98 # shellcheck disable=SC2172 99 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 100 101 set_cc_for_build() { 102 # prevent multiple calls if $tmp is already set 103 test "$tmp" && return 0 104 : "${TMPDIR=/tmp}" 105 # shellcheck disable=SC2039 106 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || 108 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || 109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 110 dummy=$tmp/dummy 111 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in 112 ,,) echo "int x;" > "$dummy.c" 113 for driver in cc gcc c89 c99 ; do 114 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 115 CC_FOR_BUILD="$driver" 116 break 117 fi 118 done 119 if test x"$CC_FOR_BUILD" = x ; then 120 CC_FOR_BUILD=no_compiler_found 121 fi 122 ;; 123 ,,*) CC_FOR_BUILD=$CC ;; 124 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 125 esac 126 } 123 127 124 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125 129 # (ghazi@noc.rutgers.edu 1994-08-24) 126 if (test -f /.attbin/uname) >/dev/null 2>&1; then130 if test -f /.attbin/uname ; then 127 131 PATH=$PATH:/.attbin ; export PATH 128 132 fi … … 139 143 LIBC=gnu 140 144 141 eval "$set_cc_for_build"145 set_cc_for_build 142 146 cat <<-EOF > "$dummy.c" 143 147 #include <features.h> … … 200 204 ;; 201 205 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 202 eval "$set_cc_for_build"206 set_cc_for_build 203 207 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 204 208 | grep -q __ELF__ … … 238 242 # contains redundant information, the shorter form: 239 243 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 240 echo "$machine-${os}${release}${abi }"244 echo "$machine-${os}${release}${abi-}" 241 245 exit ;; 242 246 *:Bitrig:*:*) … … 261 265 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 262 266 exit ;; 267 *:OS108:*:*) 268 echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" 269 exit ;; 263 270 macppc:MirBSD:*:*) 264 271 echo powerpc-unknown-mirbsd"$UNAME_RELEASE" … … 270 277 echo "$UNAME_MACHINE"-unknown-sortix 271 278 exit ;; 279 *:Twizzler:*:*) 280 echo "$UNAME_MACHINE"-unknown-twizzler 281 exit ;; 272 282 *:Redox:*:*) 273 283 echo "$UNAME_MACHINE"-unknown-redox 274 284 exit ;; 275 285 mips:OSF1:*.*) 276 277 286 echo mips-dec-osf1 287 exit ;; 278 288 alpha:OSF1:*:*) 279 289 case $UNAME_RELEASE in … … 390 400 exit ;; 391 401 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 392 eval "$set_cc_for_build"402 set_cc_for_build 393 403 SUN_ARCH=i386 394 404 # If there is a compiler, see if it is configured for 64-bit objects. … … 483 493 exit ;; 484 494 mips:*:*:UMIPS | mips:*:*:RISCos) 485 eval "$set_cc_for_build"495 set_cc_for_build 486 496 sed 's/^ //' << EOF > "$dummy.c" 487 497 #ifdef __cplusplus … … 580 590 *:AIX:2:3) 581 591 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 582 eval "$set_cc_for_build"592 set_cc_for_build 583 593 sed 's/^ //' << EOF > "$dummy.c" 584 594 #include <sys/systemcfg.h> … … 661 671 fi 662 672 if [ "$HP_ARCH" = "" ]; then 663 eval "$set_cc_for_build"673 set_cc_for_build 664 674 sed 's/^ //' << EOF > "$dummy.c" 665 675 … … 701 711 if [ "$HP_ARCH" = hppa2.0w ] 702 712 then 703 eval "$set_cc_for_build"713 set_cc_for_build 704 714 705 715 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating … … 727 737 exit ;; 728 738 3050*:HI-UX:*:*) 729 eval "$set_cc_for_build"739 set_cc_for_build 730 740 sed 's/^ //' << EOF > "$dummy.c" 731 741 #include <unistd.h> … … 841 851 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 842 852 exit ;; 853 arm:FreeBSD:*:*) 854 UNAME_PROCESSOR=`uname -p` 855 set_cc_for_build 856 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 857 | grep -q __ARM_PCS_VFP 858 then 859 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi 860 else 861 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf 862 fi 863 exit ;; 843 864 *:FreeBSD:*:*) 844 865 UNAME_PROCESSOR=`/usr/bin/uname -p` … … 882 903 exit ;; 883 904 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 884 echo x86_64- unknown-cygwin905 echo x86_64-pc-cygwin 885 906 exit ;; 886 907 prep*:SunOS:5.*:*) … … 895 916 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 896 917 exit ;; 897 i*86:Minix:*:*)898 echo "$UNAME_MACHINE"- pc-minix918 *:Minix:*:*) 919 echo "$UNAME_MACHINE"-unknown-minix 899 920 exit ;; 900 921 aarch64:Linux:*:*) … … 906 927 exit ;; 907 928 alpha:Linux:*:*) 908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in929 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in 909 930 EV5) UNAME_MACHINE=alphaev5 ;; 910 931 EV56) UNAME_MACHINE=alphaev56 ;; … … 923 944 exit ;; 924 945 arm*:Linux:*:*) 925 eval "$set_cc_for_build"946 set_cc_for_build 926 947 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 927 948 | grep -q __ARM_EABI__ … … 972 993 exit ;; 973 994 mips:Linux:*:* | mips64:Linux:*:*) 974 eval "$set_cc_for_build" 995 set_cc_for_build 996 IS_GLIBC=0 997 test x"${LIBC}" = xgnu && IS_GLIBC=1 975 998 sed 's/^ //' << EOF > "$dummy.c" 976 999 #undef CPU 977 #undef ${UNAME_MACHINE} 978 #undef ${UNAME_MACHINE}el 1000 #undef mips 1001 #undef mipsel 1002 #undef mips64 1003 #undef mips64el 1004 #if ${IS_GLIBC} && defined(_ABI64) 1005 LIBCABI=gnuabi64 1006 #else 1007 #if ${IS_GLIBC} && defined(_ABIN32) 1008 LIBCABI=gnuabin32 1009 #else 1010 LIBCABI=${LIBC} 1011 #endif 1012 #endif 1013 1014 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1015 CPU=mipsisa64r6 1016 #else 1017 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1018 CPU=mipsisa32r6 1019 #else 1020 #if defined(__mips64) 1021 CPU=mips64 1022 #else 1023 CPU=mips 1024 #endif 1025 #endif 1026 #endif 1027 979 1028 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 980 CPU=${UNAME_MACHINE}el1029 MIPS_ENDIAN=el 981 1030 #else 982 1031 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 983 CPU=${UNAME_MACHINE}1032 MIPS_ENDIAN= 984 1033 #else 985 CPU=1034 MIPS_ENDIAN= 986 1035 #endif 987 1036 #endif 988 1037 EOF 989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU '`"990 test "x$CPU" != x && { echo "$CPU -unknown-linux-$LIBC"; exit; }1038 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" 1039 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } 991 1040 ;; 992 1041 mips64el:Linux:*:*) … … 1101 1150 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1102 1151 esac 1103 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM} {$UNAME_VERSION}"1152 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" 1104 1153 exit ;; 1105 1154 i*86:*:3.2:*) … … 1285 1334 exit ;; 1286 1335 *:Darwin:*:*) 1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1288 eval "$set_cc_for_build" 1289 if test "$UNAME_PROCESSOR" = unknown ; then 1290 UNAME_PROCESSOR=powerpc 1291 fi 1292 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 1293 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1294 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1295 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1296 grep IS_64BIT_ARCH >/dev/null 1297 then 1298 case $UNAME_PROCESSOR in 1299 i386) UNAME_PROCESSOR=x86_64 ;; 1300 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1301 esac 1302 fi 1303 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1304 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1305 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1306 grep IS_PPC >/dev/null 1307 then 1308 UNAME_PROCESSOR=powerpc 1309 fi 1336 UNAME_PROCESSOR=`uname -p` 1337 case $UNAME_PROCESSOR in 1338 unknown) UNAME_PROCESSOR=powerpc ;; 1339 esac 1340 if command -v xcode-select > /dev/null 2> /dev/null && \ 1341 ! xcode-select --print-path > /dev/null 2> /dev/null ; then 1342 # Avoid executing cc if there is no toolchain installed as 1343 # cc will be a stub that puts up a graphical alert 1344 # prompting the user to install developer tools. 1345 CC_FOR_BUILD=no_compiler_found 1346 else 1347 set_cc_for_build 1348 fi 1349 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1350 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1351 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1352 grep IS_64BIT_ARCH >/dev/null 1353 then 1354 case $UNAME_PROCESSOR in 1355 i386) UNAME_PROCESSOR=x86_64 ;; 1356 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1357 esac 1358 fi 1359 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1360 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1361 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1362 grep IS_PPC >/dev/null 1363 then 1364 UNAME_PROCESSOR=powerpc 1310 1365 fi 1311 1366 elif test "$UNAME_PROCESSOR" = i386 ; then 1312 # Avoid executing cc on OS X 10.9, as it ships with a stub 1313 # that puts up a graphical alert prompting to install 1314 # developer tools. Any system running Mac OS X 10.7 or 1315 # later (Darwin 11 and later) is required to have a 64-bit 1316 # processor. This is not true of the ARM version of Darwin 1317 # that Apple uses in portable devices. 1318 UNAME_PROCESSOR=x86_64 1367 # uname -m returns i386 or x86_64 1368 UNAME_PROCESSOR=$UNAME_MACHINE 1319 1369 fi 1320 1370 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" … … 1359 1409 # is converted to i386 for consistency with other x86 1360 1410 # operating systems. 1411 # shellcheck disable=SC2154 1361 1412 if test "$cputype" = 386; then 1362 1413 UNAME_MACHINE=i386 … … 1415 1466 echo x86_64-unknown-onefs 1416 1467 exit ;; 1468 *:Unleashed:*:*) 1469 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" 1470 exit ;; 1417 1471 esac 1472 1473 # No uname command or uname output not recognized. 1474 set_cc_for_build 1475 cat > "$dummy.c" <<EOF 1476 #ifdef _SEQUENT_ 1477 #include <sys/types.h> 1478 #include <sys/utsname.h> 1479 #endif 1480 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1481 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1482 #include <signal.h> 1483 #if defined(_SIZE_T_) || defined(SIGLOST) 1484 #include <sys/utsname.h> 1485 #endif 1486 #endif 1487 #endif 1488 main () 1489 { 1490 #if defined (sony) 1491 #if defined (MIPSEB) 1492 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1493 I don't know.... */ 1494 printf ("mips-sony-bsd\n"); exit (0); 1495 #else 1496 #include <sys/param.h> 1497 printf ("m68k-sony-newsos%s\n", 1498 #ifdef NEWSOS4 1499 "4" 1500 #else 1501 "" 1502 #endif 1503 ); exit (0); 1504 #endif 1505 #endif 1506 1507 #if defined (NeXT) 1508 #if !defined (__ARCHITECTURE__) 1509 #define __ARCHITECTURE__ "m68k" 1510 #endif 1511 int version; 1512 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1513 if (version < 4) 1514 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1515 else 1516 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1517 exit (0); 1518 #endif 1519 1520 #if defined (MULTIMAX) || defined (n16) 1521 #if defined (UMAXV) 1522 printf ("ns32k-encore-sysv\n"); exit (0); 1523 #else 1524 #if defined (CMU) 1525 printf ("ns32k-encore-mach\n"); exit (0); 1526 #else 1527 printf ("ns32k-encore-bsd\n"); exit (0); 1528 #endif 1529 #endif 1530 #endif 1531 1532 #if defined (__386BSD__) 1533 printf ("i386-pc-bsd\n"); exit (0); 1534 #endif 1535 1536 #if defined (sequent) 1537 #if defined (i386) 1538 printf ("i386-sequent-dynix\n"); exit (0); 1539 #endif 1540 #if defined (ns32000) 1541 printf ("ns32k-sequent-dynix\n"); exit (0); 1542 #endif 1543 #endif 1544 1545 #if defined (_SEQUENT_) 1546 struct utsname un; 1547 1548 uname(&un); 1549 if (strncmp(un.version, "V2", 2) == 0) { 1550 printf ("i386-sequent-ptx2\n"); exit (0); 1551 } 1552 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1553 printf ("i386-sequent-ptx1\n"); exit (0); 1554 } 1555 printf ("i386-sequent-ptx\n"); exit (0); 1556 #endif 1557 1558 #if defined (vax) 1559 #if !defined (ultrix) 1560 #include <sys/param.h> 1561 #if defined (BSD) 1562 #if BSD == 43 1563 printf ("vax-dec-bsd4.3\n"); exit (0); 1564 #else 1565 #if BSD == 199006 1566 printf ("vax-dec-bsd4.3reno\n"); exit (0); 1567 #else 1568 printf ("vax-dec-bsd\n"); exit (0); 1569 #endif 1570 #endif 1571 #else 1572 printf ("vax-dec-bsd\n"); exit (0); 1573 #endif 1574 #else 1575 #if defined(_SIZE_T_) || defined(SIGLOST) 1576 struct utsname un; 1577 uname (&un); 1578 printf ("vax-dec-ultrix%s\n", un.release); exit (0); 1579 #else 1580 printf ("vax-dec-ultrix\n"); exit (0); 1581 #endif 1582 #endif 1583 #endif 1584 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1585 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1586 #if defined(_SIZE_T_) || defined(SIGLOST) 1587 struct utsname *un; 1588 uname (&un); 1589 printf ("mips-dec-ultrix%s\n", un.release); exit (0); 1590 #else 1591 printf ("mips-dec-ultrix\n"); exit (0); 1592 #endif 1593 #endif 1594 #endif 1595 1596 #if defined (alliant) && defined (i860) 1597 printf ("i860-alliant-bsd\n"); exit (0); 1598 #endif 1599 1600 exit (1); 1601 } 1602 EOF 1603 1604 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && 1605 { echo "$SYSTEM_NAME"; exit; } 1606 1607 # Apollos put the system type in the environment. 1608 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } 1418 1609 1419 1610 echo "$0: unable to guess system type" >&2 -
ThirdParty/Mumps/stable/2.1/config.sub
r4025 r4193 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-20 18Free Software Foundation, Inc.4 5 timestamp='20 18-03-08'3 # Copyright 1992-2020 Free Software Foundation, Inc. 4 5 timestamp='2020-01-01' 6 6 7 7 # This file is free software; you can redistribute it and/or modify it … … 68 68 GNU config.sub ($timestamp) 69 69 70 Copyright 1992-20 18Free Software Foundation, Inc.70 Copyright 1992-2020 Free Software Foundation, Inc. 71 71 72 72 This is free software; see the source for copying conditions. There is NO … … 90 90 break ;; 91 91 -* ) 92 echo "$me: invalid option $1$help" 92 echo "$me: invalid option $1$help" >&2 93 93 exit 1 ;; 94 94 … … 111 111 esac 112 112 113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 114 # Here we must recognize all the valid KERNEL-OS combinations. 115 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 116 case $maybe_os in 117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 120 kopensolaris*-gnu* | cloudabi*-eabi* | \ 121 storm-chaos* | os2-emx* | rtmk-nova*) 122 os=-$maybe_os 123 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 124 ;; 125 android-linux) 126 os=-linux-android 127 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 128 ;; 129 *) 130 basic_machine=`echo "$1" | sed 's/-[^-]*$//'` 131 if [ "$basic_machine" != "$1" ] 132 then os=`echo "$1" | sed 's/.*-/-/'` 133 else os=; fi 134 ;; 113 # Split fields of configuration type 114 # shellcheck disable=SC2162 115 IFS="-" read field1 field2 field3 field4 <<EOF 116 $1 117 EOF 118 119 # Separate into logical components for further validation 120 case $1 in 121 *-*-*-*-*) 122 echo Invalid configuration \`"$1"\': more than four components >&2 123 exit 1 124 ;; 125 *-*-*-*) 126 basic_machine=$field1-$field2 127 os=$field3-$field4 128 ;; 129 *-*-*) 130 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two 131 # parts 132 maybe_os=$field2-$field3 133 case $maybe_os in 134 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ 135 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ 136 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ 137 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ 138 | storm-chaos* | os2-emx* | rtmk-nova*) 139 basic_machine=$field1 140 os=$maybe_os 141 ;; 142 android-linux) 143 basic_machine=$field1-unknown 144 os=linux-android 145 ;; 146 *) 147 basic_machine=$field1-$field2 148 os=$field3 149 ;; 150 esac 151 ;; 152 *-*) 153 # A lone config we happen to match not fitting any pattern 154 case $field1-$field2 in 155 decstation-3100) 156 basic_machine=mips-dec 157 os= 158 ;; 159 *-*) 160 # Second component is usually, but not always the OS 161 case $field2 in 162 # Prevent following clause from handling this valid os 163 sun*os*) 164 basic_machine=$field1 165 os=$field2 166 ;; 167 # Manufacturers 168 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ 169 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ 170 | unicom* | ibm* | next | hp | isi* | apollo | altos* \ 171 | convergent* | ncr* | news | 32* | 3600* | 3100* \ 172 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ 173 | ultra | tti* | harris | dolphin | highlevel | gould \ 174 | cbm | ns | masscomp | apple | axis | knuth | cray \ 175 | microblaze* | sim | cisco \ 176 | oki | wec | wrs | winbond) 177 basic_machine=$field1-$field2 178 os= 179 ;; 180 *) 181 basic_machine=$field1 182 os=$field2 183 ;; 184 esac 185 ;; 186 esac 187 ;; 188 *) 189 # Convert single-component short-hands not valid as part of 190 # multi-component configurations. 191 case $field1 in 192 386bsd) 193 basic_machine=i386-pc 194 os=bsd 195 ;; 196 a29khif) 197 basic_machine=a29k-amd 198 os=udi 199 ;; 200 adobe68k) 201 basic_machine=m68010-adobe 202 os=scout 203 ;; 204 alliant) 205 basic_machine=fx80-alliant 206 os= 207 ;; 208 altos | altos3068) 209 basic_machine=m68k-altos 210 os= 211 ;; 212 am29k) 213 basic_machine=a29k-none 214 os=bsd 215 ;; 216 amdahl) 217 basic_machine=580-amdahl 218 os=sysv 219 ;; 220 amiga) 221 basic_machine=m68k-unknown 222 os= 223 ;; 224 amigaos | amigados) 225 basic_machine=m68k-unknown 226 os=amigaos 227 ;; 228 amigaunix | amix) 229 basic_machine=m68k-unknown 230 os=sysv4 231 ;; 232 apollo68) 233 basic_machine=m68k-apollo 234 os=sysv 235 ;; 236 apollo68bsd) 237 basic_machine=m68k-apollo 238 os=bsd 239 ;; 240 aros) 241 basic_machine=i386-pc 242 os=aros 243 ;; 244 aux) 245 basic_machine=m68k-apple 246 os=aux 247 ;; 248 balance) 249 basic_machine=ns32k-sequent 250 os=dynix 251 ;; 252 blackfin) 253 basic_machine=bfin-unknown 254 os=linux 255 ;; 256 cegcc) 257 basic_machine=arm-unknown 258 os=cegcc 259 ;; 260 convex-c1) 261 basic_machine=c1-convex 262 os=bsd 263 ;; 264 convex-c2) 265 basic_machine=c2-convex 266 os=bsd 267 ;; 268 convex-c32) 269 basic_machine=c32-convex 270 os=bsd 271 ;; 272 convex-c34) 273 basic_machine=c34-convex 274 os=bsd 275 ;; 276 convex-c38) 277 basic_machine=c38-convex 278 os=bsd 279 ;; 280 cray) 281 basic_machine=j90-cray 282 os=unicos 283 ;; 284 crds | unos) 285 basic_machine=m68k-crds 286 os= 287 ;; 288 da30) 289 basic_machine=m68k-da30 290 os= 291 ;; 292 decstation | pmax | pmin | dec3100 | decstatn) 293 basic_machine=mips-dec 294 os= 295 ;; 296 delta88) 297 basic_machine=m88k-motorola 298 os=sysv3 299 ;; 300 dicos) 301 basic_machine=i686-pc 302 os=dicos 303 ;; 304 djgpp) 305 basic_machine=i586-pc 306 os=msdosdjgpp 307 ;; 308 ebmon29k) 309 basic_machine=a29k-amd 310 os=ebmon 311 ;; 312 es1800 | OSE68k | ose68k | ose | OSE) 313 basic_machine=m68k-ericsson 314 os=ose 315 ;; 316 gmicro) 317 basic_machine=tron-gmicro 318 os=sysv 319 ;; 320 go32) 321 basic_machine=i386-pc 322 os=go32 323 ;; 324 h8300hms) 325 basic_machine=h8300-hitachi 326 os=hms 327 ;; 328 h8300xray) 329 basic_machine=h8300-hitachi 330 os=xray 331 ;; 332 h8500hms) 333 basic_machine=h8500-hitachi 334 os=hms 335 ;; 336 harris) 337 basic_machine=m88k-harris 338 os=sysv3 339 ;; 340 hp300 | hp300hpux) 341 basic_machine=m68k-hp 342 os=hpux 343 ;; 344 hp300bsd) 345 basic_machine=m68k-hp 346 os=bsd 347 ;; 348 hppaosf) 349 basic_machine=hppa1.1-hp 350 os=osf 351 ;; 352 hppro) 353 basic_machine=hppa1.1-hp 354 os=proelf 355 ;; 356 i386mach) 357 basic_machine=i386-mach 358 os=mach 359 ;; 360 isi68 | isi) 361 basic_machine=m68k-isi 362 os=sysv 363 ;; 364 m68knommu) 365 basic_machine=m68k-unknown 366 os=linux 367 ;; 368 magnum | m3230) 369 basic_machine=mips-mips 370 os=sysv 371 ;; 372 merlin) 373 basic_machine=ns32k-utek 374 os=sysv 375 ;; 376 mingw64) 377 basic_machine=x86_64-pc 378 os=mingw64 379 ;; 380 mingw32) 381 basic_machine=i686-pc 382 os=mingw32 383 ;; 384 mingw32ce) 385 basic_machine=arm-unknown 386 os=mingw32ce 387 ;; 388 monitor) 389 basic_machine=m68k-rom68k 390 os=coff 391 ;; 392 morphos) 393 basic_machine=powerpc-unknown 394 os=morphos 395 ;; 396 moxiebox) 397 basic_machine=moxie-unknown 398 os=moxiebox 399 ;; 400 msdos) 401 basic_machine=i386-pc 402 os=msdos 403 ;; 404 msys) 405 basic_machine=i686-pc 406 os=msys 407 ;; 408 mvs) 409 basic_machine=i370-ibm 410 os=mvs 411 ;; 412 nacl) 413 basic_machine=le32-unknown 414 os=nacl 415 ;; 416 ncr3000) 417 basic_machine=i486-ncr 418 os=sysv4 419 ;; 420 netbsd386) 421 basic_machine=i386-pc 422 os=netbsd 423 ;; 424 netwinder) 425 basic_machine=armv4l-rebel 426 os=linux 427 ;; 428 news | news700 | news800 | news900) 429 basic_machine=m68k-sony 430 os=newsos 431 ;; 432 news1000) 433 basic_machine=m68030-sony 434 os=newsos 435 ;; 436 necv70) 437 basic_machine=v70-nec 438 os=sysv 439 ;; 440 nh3000) 441 basic_machine=m68k-harris 442 os=cxux 443 ;; 444 nh[45]000) 445 basic_machine=m88k-harris 446 os=cxux 447 ;; 448 nindy960) 449 basic_machine=i960-intel 450 os=nindy 451 ;; 452 mon960) 453 basic_machine=i960-intel 454 os=mon960 455 ;; 456 nonstopux) 457 basic_machine=mips-compaq 458 os=nonstopux 459 ;; 460 os400) 461 basic_machine=powerpc-ibm 462 os=os400 463 ;; 464 OSE68000 | ose68000) 465 basic_machine=m68000-ericsson 466 os=ose 467 ;; 468 os68k) 469 basic_machine=m68k-none 470 os=os68k 471 ;; 472 paragon) 473 basic_machine=i860-intel 474 os=osf 475 ;; 476 parisc) 477 basic_machine=hppa-unknown 478 os=linux 479 ;; 480 pw32) 481 basic_machine=i586-unknown 482 os=pw32 483 ;; 484 rdos | rdos64) 485 basic_machine=x86_64-pc 486 os=rdos 487 ;; 488 rdos32) 489 basic_machine=i386-pc 490 os=rdos 491 ;; 492 rom68k) 493 basic_machine=m68k-rom68k 494 os=coff 495 ;; 496 sa29200) 497 basic_machine=a29k-amd 498 os=udi 499 ;; 500 sei) 501 basic_machine=mips-sei 502 os=seiux 503 ;; 504 sequent) 505 basic_machine=i386-sequent 506 os= 507 ;; 508 sps7) 509 basic_machine=m68k-bull 510 os=sysv2 511 ;; 512 st2000) 513 basic_machine=m68k-tandem 514 os= 515 ;; 516 stratus) 517 basic_machine=i860-stratus 518 os=sysv4 519 ;; 520 sun2) 521 basic_machine=m68000-sun 522 os= 523 ;; 524 sun2os3) 525 basic_machine=m68000-sun 526 os=sunos3 527 ;; 528 sun2os4) 529 basic_machine=m68000-sun 530 os=sunos4 531 ;; 532 sun3) 533 basic_machine=m68k-sun 534 os= 535 ;; 536 sun3os3) 537 basic_machine=m68k-sun 538 os=sunos3 539 ;; 540 sun3os4) 541 basic_machine=m68k-sun 542 os=sunos4 543 ;; 544 sun4) 545 basic_machine=sparc-sun 546 os= 547 ;; 548 sun4os3) 549 basic_machine=sparc-sun 550 os=sunos3 551 ;; 552 sun4os4) 553 basic_machine=sparc-sun 554 os=sunos4 555 ;; 556 sun4sol2) 557 basic_machine=sparc-sun 558 os=solaris2 559 ;; 560 sun386 | sun386i | roadrunner) 561 basic_machine=i386-sun 562 os= 563 ;; 564 sv1) 565 basic_machine=sv1-cray 566 os=unicos 567 ;; 568 symmetry) 569 basic_machine=i386-sequent 570 os=dynix 571 ;; 572 t3e) 573 basic_machine=alphaev5-cray 574 os=unicos 575 ;; 576 t90) 577 basic_machine=t90-cray 578 os=unicos 579 ;; 580 toad1) 581 basic_machine=pdp10-xkl 582 os=tops20 583 ;; 584 tpf) 585 basic_machine=s390x-ibm 586 os=tpf 587 ;; 588 udi29k) 589 basic_machine=a29k-amd 590 os=udi 591 ;; 592 ultra3) 593 basic_machine=a29k-nyu 594 os=sym1 595 ;; 596 v810 | necv810) 597 basic_machine=v810-nec 598 os=none 599 ;; 600 vaxv) 601 basic_machine=vax-dec 602 os=sysv 603 ;; 604 vms) 605 basic_machine=vax-dec 606 os=vms 607 ;; 608 vsta) 609 basic_machine=i386-pc 610 os=vsta 611 ;; 612 vxworks960) 613 basic_machine=i960-wrs 614 os=vxworks 615 ;; 616 vxworks68) 617 basic_machine=m68k-wrs 618 os=vxworks 619 ;; 620 vxworks29k) 621 basic_machine=a29k-wrs 622 os=vxworks 623 ;; 624 xbox) 625 basic_machine=i686-pc 626 os=mingw32 627 ;; 628 ymp) 629 basic_machine=ymp-cray 630 os=unicos 631 ;; 632 *) 633 basic_machine=$1 634 os= 635 ;; 636 esac 637 ;; 135 638 esac 136 639 137 ### Let's recognize common machines as not being operating systems so 138 ### that things like config.sub decstation-3100 work. We also 139 ### recognize some manufacturers as not being operating systems, so we 140 ### can provide default operating systems below. 141 case $os in 142 -sun*os*) 143 # Prevent following clause from handling this invalid input. 144 ;; 145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 151 -apple | -axis | -knuth | -cray | -microblaze*) 152 os= 153 basic_machine=$1 154 ;; 155 -bluegene*) 156 os=-cnk 157 ;; 158 -sim | -cisco | -oki | -wec | -winbond) 159 os= 160 basic_machine=$1 161 ;; 162 -scout) 163 ;; 164 -wrs) 165 os=-vxworks 166 basic_machine=$1 167 ;; 168 -chorusos*) 169 os=-chorusos 170 basic_machine=$1 171 ;; 172 -chorusrdb) 173 os=-chorusrdb 174 basic_machine=$1 175 ;; 176 -hiux*) 177 os=-hiuxwe2 178 ;; 179 -sco6) 180 os=-sco5v6 181 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 182 ;; 183 -sco5) 184 os=-sco3.2v5 185 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 186 ;; 187 -sco4) 188 os=-sco3.2v4 189 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 190 ;; 191 -sco3.2.[4-9]*) 192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 193 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 194 ;; 195 -sco3.2v[4-9]*) 196 # Don't forget version if it is 3.2v4 or newer. 197 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 198 ;; 199 -sco5v6*) 200 # Don't forget version if it is 3.2v4 or newer. 201 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 202 ;; 203 -sco*) 204 os=-sco3.2v2 205 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 206 ;; 207 -udk*) 208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 209 ;; 210 -isc) 211 os=-isc2.2 212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 213 ;; 214 -clix*) 215 basic_machine=clipper-intergraph 216 ;; 217 -isc*) 218 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 219 ;; 220 -lynx*178) 221 os=-lynxos178 222 ;; 223 -lynx*5) 224 os=-lynxos5 225 ;; 226 -lynx*) 227 os=-lynxos 228 ;; 229 -ptx*) 230 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` 231 ;; 232 -psos*) 233 os=-psos 234 ;; 235 -mint | -mint[0-9]*) 236 basic_machine=m68k-atari 237 os=-mint 238 ;; 239 esac 240 241 # Decode aliases for certain CPU-COMPANY combinations. 640 # Decode 1-component or ad-hoc basic machines 242 641 case $basic_machine in 243 # Recognize the basic CPU types without company name. 244 # Some are omitted here because they have special meanings below. 245 1750a | 580 \ 246 | a29k \ 247 | aarch64 | aarch64_be \ 248 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 249 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 250 | am33_2.0 \ 251 | arc | arceb \ 252 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 253 | avr | avr32 \ 254 | ba \ 255 | be32 | be64 \ 256 | bfin \ 257 | c4x | c8051 | clipper \ 258 | d10v | d30v | dlx | dsp16xx \ 259 | e2k | epiphany \ 260 | fido | fr30 | frv | ft32 \ 261 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 262 | hexagon \ 263 | i370 | i860 | i960 | ia16 | ia64 \ 264 | ip2k | iq2000 \ 265 | k1om \ 266 | le32 | le64 \ 267 | lm32 \ 268 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 269 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ 270 | mips | mipsbe | mipseb | mipsel | mipsle \ 271 | mips16 \ 272 | mips64 | mips64el \ 273 | mips64octeon | mips64octeonel \ 274 | mips64orion | mips64orionel \ 275 | mips64r5900 | mips64r5900el \ 276 | mips64vr | mips64vrel \ 277 | mips64vr4100 | mips64vr4100el \ 278 | mips64vr4300 | mips64vr4300el \ 279 | mips64vr5000 | mips64vr5000el \ 280 | mips64vr5900 | mips64vr5900el \ 281 | mipsisa32 | mipsisa32el \ 282 | mipsisa32r2 | mipsisa32r2el \ 283 | mipsisa32r6 | mipsisa32r6el \ 284 | mipsisa64 | mipsisa64el \ 285 | mipsisa64r2 | mipsisa64r2el \ 286 | mipsisa64r6 | mipsisa64r6el \ 287 | mipsisa64sb1 | mipsisa64sb1el \ 288 | mipsisa64sr71k | mipsisa64sr71kel \ 289 | mipsr5900 | mipsr5900el \ 290 | mipstx39 | mipstx39el \ 291 | mn10200 | mn10300 \ 292 | moxie \ 293 | mt \ 294 | msp430 \ 295 | nds32 | nds32le | nds32be \ 296 | nios | nios2 | nios2eb | nios2el \ 297 | ns16k | ns32k \ 298 | open8 | or1k | or1knd | or32 \ 299 | pdp10 | pj | pjl \ 300 | powerpc | powerpc64 | powerpc64le | powerpcle \ 301 | pru \ 302 | pyramid \ 303 | riscv32 | riscv64 \ 304 | rl78 | rx \ 305 | score \ 306 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 307 | sh64 | sh64le \ 308 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 309 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 310 | spu \ 311 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 312 | ubicom32 \ 313 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 314 | visium \ 315 | wasm32 \ 316 | x86 | xc16x | xstormy16 | xtensa \ 317 | z8k | z80) 318 basic_machine=$basic_machine-unknown 319 ;; 320 c54x) 321 basic_machine=tic54x-unknown