| | 1 | diff -urN llvm-3.1.src/projects/sample/autoconf/config.guess llvm-3.1.src-haiku/projects/sample/autoconf/config.guess |
| | 2 | --- llvm-3.1.src/projects/sample/autoconf/config.guess 2003-10-16 01:44:20.061341696 +0000 |
| | 3 | +++ llvm-3.1.src-haiku/projects/sample/autoconf/config.guess 2012-10-01 19:29:26.839647232 +0000 |
| | 4 | @@ -1,9 +1,10 @@ |
| | 5 | #! /bin/sh |
| | 6 | # Attempt to guess a canonical system name. |
| | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| | 8 | -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| | 9 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
| | 10 | +# 2011 Free Software Foundation, Inc. |
| | 11 | |
| | 12 | -timestamp='2003-02-22' |
| | 13 | +timestamp='2011-08-20' |
| | 14 | |
| | 15 | # This file is free software; you can redistribute it and/or modify it |
| | 16 | # under the terms of the GNU General Public License as published by |
| | 17 | @@ -17,23 +18,25 @@ |
| | 18 | # |
| | 19 | # You should have received a copy of the GNU General Public License |
| | 20 | # along with this program; if not, write to the Free Software |
| | 21 | -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| | 22 | +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| | 23 | +# 02110-1301, USA. |
| | 24 | # |
| | 25 | # As a special exception to the GNU General Public License, if you |
| | 26 | # distribute this file as part of a program that contains a |
| | 27 | # configuration script generated by Autoconf, you may include it under |
| | 28 | # the same distribution terms that you use for the rest of that program. |
| | 29 | |
| | 30 | -# Originally written by Per Bothner <per@bothner.com>. |
| | 31 | -# Please send patches to <config-patches@gnu.org>. Submit a context |
| | 32 | -# diff and a properly formatted ChangeLog entry. |
| | 33 | + |
| | 34 | +# Originally written by Per Bothner. Please send patches (context |
| | 35 | +# diff format) to <config-patches@gnu.org> and include a ChangeLog |
| | 36 | +# entry. |
| | 37 | # |
| | 38 | # This script attempts to guess a canonical system name similar to |
| | 39 | # config.sub. If it succeeds, it prints the system name on stdout, and |
| | 40 | # exits with 0. Otherwise, it exits with 1. |
| | 41 | # |
| | 42 | -# The plan is that this can be called by configure scripts if you |
| | 43 | -# don't specify an explicit build system type. |
| | 44 | +# You can get the latest version of this script from: |
| | 45 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
| | 46 | |
| | 47 | me=`echo "$0" | sed -e 's,.*/,,'` |
| | 48 | |
| | 49 | @@ -53,8 +56,9 @@ |
| | 50 | GNU config.guess ($timestamp) |
| | 51 | |
| | 52 | Originally written by Per Bothner. |
| | 53 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| | 54 | -Free Software Foundation, Inc. |
| | 55 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| | 56 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
| | 57 | +Software Foundation, Inc. |
| | 58 | |
| | 59 | This is free software; see the source for copying conditions. There is NO |
| | 60 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| | 61 | @@ -66,11 +70,11 @@ |
| | 62 | while test $# -gt 0 ; do |
| | 63 | case $1 in |
| | 64 | --time-stamp | --time* | -t ) |
| | 65 | - echo "$timestamp" ; exit 0 ;; |
| | 66 | + echo "$timestamp" ; exit ;; |
| | 67 | --version | -v ) |
| | 68 | - echo "$version" ; exit 0 ;; |
| | 69 | + echo "$version" ; exit ;; |
| | 70 | --help | --h* | -h ) |
| | 71 | - echo "$usage"; exit 0 ;; |
| | 72 | + echo "$usage"; exit ;; |
| | 73 | -- ) # Stop option processing |
| | 74 | shift; break ;; |
| | 75 | - ) # Use stdin as input. |
| | 76 | @@ -104,8 +108,9 @@ |
| | 77 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
| | 78 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
| | 79 | : ${TMPDIR=/tmp} ; |
| | 80 | - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| | 81 | + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
| | 82 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
| | 83 | + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
| | 84 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
| | 85 | dummy=$tmp/dummy ; |
| | 86 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
| | 87 | @@ -122,7 +127,7 @@ |
| | 88 | ;; |
| | 89 | ,,*) CC_FOR_BUILD=$CC ;; |
| | 90 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
| | 91 | -esac ;' |
| | 92 | +esac ; set_cc_for_build= ;' |
| | 93 | |
| | 94 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
| | 95 | # (ghazi@noc.rutgers.edu 1994-08-24) |
| | 96 | @@ -157,6 +162,7 @@ |
| | 97 | arm*) machine=arm-unknown ;; |
| | 98 | sh3el) machine=shl-unknown ;; |
| | 99 | sh3eb) machine=sh-unknown ;; |
| | 100 | + sh5el) machine=sh5le-unknown ;; |
| | 101 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
| | 102 | esac |
| | 103 | # The Operating System including object format, if it has switched |
| | 104 | @@ -165,7 +171,7 @@ |
| | 105 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
| | 106 | eval $set_cc_for_build |
| | 107 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| | 108 | - | grep __ELF__ >/dev/null |
| | 109 | + | grep -q __ELF__ |
| | 110 | then |
| | 111 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
| | 112 | # Return netbsd for either. FIX? |
| | 113 | @@ -175,7 +181,7 @@ |
| | 114 | fi |
| | 115 | ;; |
| | 116 | *) |
| | 117 | - os=netbsd |
| | 118 | + os=netbsd |
| | 119 | ;; |
| | 120 | esac |
| | 121 | # The OS release |
| | 122 | @@ -195,50 +201,32 @@ |
| | 123 | # contains redundant information, the shorter form: |
| | 124 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| | 125 | echo "${machine}-${os}${release}" |
| | 126 | - exit 0 ;; |
| | 127 | - amiga:OpenBSD:*:*) |
| | 128 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
| | 129 | - exit 0 ;; |
| | 130 | - arc:OpenBSD:*:*) |
| | 131 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
| | 132 | - exit 0 ;; |
| | 133 | - hp300:OpenBSD:*:*) |
| | 134 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
| | 135 | - exit 0 ;; |
| | 136 | - mac68k:OpenBSD:*:*) |
| | 137 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
| | 138 | - exit 0 ;; |
| | 139 | - macppc:OpenBSD:*:*) |
| | 140 | - echo powerpc-unknown-openbsd${UNAME_RELEASE} |
| | 141 | - exit 0 ;; |
| | 142 | - mvme68k:OpenBSD:*:*) |
| | 143 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
| | 144 | - exit 0 ;; |
| | 145 | - mvme88k:OpenBSD:*:*) |
| | 146 | - echo m88k-unknown-openbsd${UNAME_RELEASE} |
| | 147 | - exit 0 ;; |
| | 148 | - mvmeppc:OpenBSD:*:*) |
| | 149 | - echo powerpc-unknown-openbsd${UNAME_RELEASE} |
| | 150 | - exit 0 ;; |
| | 151 | - pmax:OpenBSD:*:*) |
| | 152 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
| | 153 | - exit 0 ;; |
| | 154 | - sgi:OpenBSD:*:*) |
| | 155 | - echo mipseb-unknown-openbsd${UNAME_RELEASE} |
| | 156 | - exit 0 ;; |
| | 157 | - sun3:OpenBSD:*:*) |
| | 158 | - echo m68k-unknown-openbsd${UNAME_RELEASE} |
| | 159 | - exit 0 ;; |
| | 160 | - wgrisc:OpenBSD:*:*) |
| | 161 | - echo mipsel-unknown-openbsd${UNAME_RELEASE} |
| | 162 | - exit 0 ;; |
| | 163 | + exit ;; |
| | 164 | *:OpenBSD:*:*) |
| | 165 | - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} |
| | 166 | - exit 0 ;; |
| | 167 | + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| | 168 | + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| | 169 | + exit ;; |
| | 170 | + *:ekkoBSD:*:*) |
| | 171 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
| | 172 | + exit ;; |
| | 173 | + *:SolidBSD:*:*) |
| | 174 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
| | 175 | + exit ;; |
| | 176 | + macppc:MirBSD:*:*) |
| | 177 | + echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
| | 178 | + exit ;; |
| | 179 | + *:MirBSD:*:*) |
| | 180 | + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
| | 181 | + exit ;; |
| | 182 | alpha:OSF1:*:*) |
| | 183 | - if test $UNAME_RELEASE = "V4.0"; then |
| | 184 | + case $UNAME_RELEASE in |
| | 185 | + *4.0) |
| | 186 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
| | 187 | - fi |
| | 188 | + ;; |
| | 189 | + *5.*) |
| | 190 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
| | 191 | + ;; |
| | 192 | + esac |
| | 193 | # According to Compaq, /usr/sbin/psrinfo has been available on |
| | 194 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
| | 195 | # covers most systems running today. This code pipes the CPU |
| | 196 | @@ -276,39 +264,52 @@ |
| | 197 | "EV7.9 (21364A)") |
| | 198 | UNAME_MACHINE="alphaev79" ;; |
| | 199 | esac |
| | 200 | + # A Pn.n version is a patched version. |
| | 201 | # A Vn.n version is a released version. |
| | 202 | # A Tn.n version is a released field test version. |
| | 203 | # A Xn.n version is an unreleased experimental baselevel. |
| | 204 | # 1.2 uses "1.2" for uname -r. |
| | 205 | - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| | 206 | - exit 0 ;; |
| | 207 | + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| | 208 | + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
| | 209 | + exitcode=$? |
| | 210 | + trap '' 0 |
| | 211 | + exit $exitcode ;; |
| | 212 | Alpha\ *:Windows_NT*:*) |
| | 213 | # How do we know it's Interix rather than the generic POSIX subsystem? |
| | 214 | # Should we change UNAME_MACHINE based on the output of uname instead |
| | 215 | # of the specific Alpha model? |
| | 216 | echo alpha-pc-interix |
| | 217 | - exit 0 ;; |
| | 218 | + exit ;; |
| | 219 | 21064:Windows_NT:50:3) |
| | 220 | echo alpha-dec-winnt3.5 |
| | 221 | - exit 0 ;; |
| | 222 | + exit ;; |
| | 223 | Amiga*:UNIX_System_V:4.0:*) |
| | 224 | echo m68k-unknown-sysv4 |
| | 225 | - exit 0;; |
| | 226 | + exit ;; |
| | 227 | *:[Aa]miga[Oo][Ss]:*:*) |
| | 228 | echo ${UNAME_MACHINE}-unknown-amigaos |
| | 229 | - exit 0 ;; |
| | 230 | + exit ;; |
| | 231 | *:[Mm]orph[Oo][Ss]:*:*) |
| | 232 | echo ${UNAME_MACHINE}-unknown-morphos |
| | 233 | - exit 0 ;; |
| | 234 | + exit ;; |
| | 235 | *:OS/390:*:*) |
| | 236 | echo i370-ibm-openedition |
| | 237 | - exit 0 ;; |
| | 238 | + exit ;; |
| | 239 | + *:z/VM:*:*) |
| | 240 | + echo s390-ibm-zvmoe |
| | 241 | + exit ;; |
| | 242 | + *:OS400:*:*) |
| | 243 | + echo powerpc-ibm-os400 |
| | 244 | + exit ;; |
| | 245 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| | 246 | echo arm-acorn-riscix${UNAME_RELEASE} |
| | 247 | - exit 0;; |
| | 248 | + exit ;; |
| | 249 | + arm:riscos:*:*|arm:RISCOS:*:*) |
| | 250 | + echo arm-unknown-riscos |
| | 251 | + exit ;; |
| | 252 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| | 253 | echo hppa1.1-hitachi-hiuxmpp |
| | 254 | - exit 0;; |
| | 255 | + exit ;; |
| | 256 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
| | 257 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
| | 258 | if test "`(/bin/universe) 2>/dev/null`" = att ; then |
| | 259 | @@ -316,29 +317,51 @@ |
| | 260 | else |
| | 261 | echo pyramid-pyramid-bsd |
| | 262 | fi |
| | 263 | - exit 0 ;; |
| | 264 | + exit ;; |
| | 265 | NILE*:*:*:dcosx) |
| | 266 | echo pyramid-pyramid-svr4 |
| | 267 | - exit 0 ;; |
| | 268 | - DRS?6000:UNIX_SV:4.2*:7*) |
| | 269 | + exit ;; |
| | 270 | + DRS?6000:unix:4.0:6*) |
| | 271 | + echo sparc-icl-nx6 |
| | 272 | + exit ;; |
| | 273 | + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
| | 274 | case `/usr/bin/uname -p` in |
| | 275 | - sparc) echo sparc-icl-nx7 && exit 0 ;; |
| | 276 | + sparc) echo sparc-icl-nx7; exit ;; |
| | 277 | esac ;; |
| | 278 | + s390x:SunOS:*:*) |
| | 279 | + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 280 | + exit ;; |
| | 281 | sun4H:SunOS:5.*:*) |
| | 282 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 283 | - exit 0 ;; |
| | 284 | + exit ;; |
| | 285 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
| | 286 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 287 | - exit 0 ;; |
| | 288 | - i86pc:SunOS:5.*:*) |
| | 289 | - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 290 | - exit 0 ;; |
| | 291 | + exit ;; |
| | 292 | + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
| | 293 | + echo i386-pc-auroraux${UNAME_RELEASE} |
| | 294 | + exit ;; |
| | 295 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
| | 296 | + eval $set_cc_for_build |
| | 297 | + SUN_ARCH="i386" |
| | 298 | + # If there is a compiler, see if it is configured for 64-bit objects. |
| | 299 | + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
| | 300 | + # This test works for both compilers. |
| | 301 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| | 302 | + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| | 303 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| | 304 | + grep IS_64BIT_ARCH >/dev/null |
| | 305 | + then |
| | 306 | + SUN_ARCH="x86_64" |
| | 307 | + fi |
| | 308 | + fi |
| | 309 | + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 310 | + exit ;; |
| | 311 | sun4*:SunOS:6*:*) |
| | 312 | # According to config.sub, this is the proper way to canonicalize |
| | 313 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
| | 314 | # it's likely to be more like Solaris than SunOS4. |
| | 315 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 316 | - exit 0 ;; |
| | 317 | + exit ;; |
| | 318 | sun4*:SunOS:*:*) |
| | 319 | case "`/usr/bin/arch -k`" in |
| | 320 | Series*|S4*) |
| | 321 | @@ -347,10 +370,10 @@ |
| | 322 | esac |
| | 323 | # Japanese Language versions have a version number like `4.1.3-JL'. |
| | 324 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
| | 325 | - exit 0 ;; |
| | 326 | + exit ;; |
| | 327 | sun3*:SunOS:*:*) |
| | 328 | echo m68k-sun-sunos${UNAME_RELEASE} |
| | 329 | - exit 0 ;; |
| | 330 | + exit ;; |
| | 331 | sun*:*:4.2BSD:*) |
| | 332 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
| | 333 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
| | 334 | @@ -362,10 +385,10 @@ |
| | 335 | echo sparc-sun-sunos${UNAME_RELEASE} |
| | 336 | ;; |
| | 337 | esac |
| | 338 | - exit 0 ;; |
| | 339 | + exit ;; |
| | 340 | aushp:SunOS:*:*) |
| | 341 | echo sparc-auspex-sunos${UNAME_RELEASE} |
| | 342 | - exit 0 ;; |
| | 343 | + exit ;; |
| | 344 | # The situation for MiNT is a little confusing. The machine name |
| | 345 | # can be virtually everything (everything which is not |
| | 346 | # "atarist" or "atariste" at least should have a processor |
| | 347 | @@ -375,38 +398,41 @@ |
| | 348 | # MiNT. But MiNT is downward compatible to TOS, so this should |
| | 349 | # be no problem. |
| | 350 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
| | 351 | - echo m68k-atari-mint${UNAME_RELEASE} |
| | 352 | - exit 0 ;; |
| | 353 | + echo m68k-atari-mint${UNAME_RELEASE} |
| | 354 | + exit ;; |
| | 355 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
| | 356 | echo m68k-atari-mint${UNAME_RELEASE} |
| | 357 | - exit 0 ;; |
| | 358 | + exit ;; |
| | 359 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
| | 360 | - echo m68k-atari-mint${UNAME_RELEASE} |
| | 361 | - exit 0 ;; |
| | 362 | + echo m68k-atari-mint${UNAME_RELEASE} |
| | 363 | + exit ;; |
| | 364 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
| | 365 | - echo m68k-milan-mint${UNAME_RELEASE} |
| | 366 | - exit 0 ;; |
| | 367 | + echo m68k-milan-mint${UNAME_RELEASE} |
| | 368 | + exit ;; |
| | 369 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
| | 370 | - echo m68k-hades-mint${UNAME_RELEASE} |
| | 371 | - exit 0 ;; |
| | 372 | + echo m68k-hades-mint${UNAME_RELEASE} |
| | 373 | + exit ;; |
| | 374 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
| | 375 | - echo m68k-unknown-mint${UNAME_RELEASE} |
| | 376 | - exit 0 ;; |
| | 377 | + echo m68k-unknown-mint${UNAME_RELEASE} |
| | 378 | + exit ;; |
| | 379 | + m68k:machten:*:*) |
| | 380 | + echo m68k-apple-machten${UNAME_RELEASE} |
| | 381 | + exit ;; |
| | 382 | powerpc:machten:*:*) |
| | 383 | echo powerpc-apple-machten${UNAME_RELEASE} |
| | 384 | - exit 0 ;; |
| | 385 | + exit ;; |
| | 386 | RISC*:Mach:*:*) |
| | 387 | echo mips-dec-mach_bsd4.3 |
| | 388 | - exit 0 ;; |
| | 389 | + exit ;; |
| | 390 | RISC*:ULTRIX:*:*) |
| | 391 | echo mips-dec-ultrix${UNAME_RELEASE} |
| | 392 | - exit 0 ;; |
| | 393 | + exit ;; |
| | 394 | VAX*:ULTRIX*:*:*) |
| | 395 | echo vax-dec-ultrix${UNAME_RELEASE} |
| | 396 | - exit 0 ;; |
| | 397 | + exit ;; |
| | 398 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
| | 399 | echo clipper-intergraph-clix${UNAME_RELEASE} |
| | 400 | - exit 0 ;; |
| | 401 | + exit ;; |
| | 402 | mips:*:*:UMIPS | mips:*:*:RISCos) |
| | 403 | eval $set_cc_for_build |
| | 404 | sed 's/^ //' << EOF >$dummy.c |
| | 405 | @@ -430,35 +456,36 @@ |
| | 406 | exit (-1); |
| | 407 | } |
| | 408 | EOF |
| | 409 | - $CC_FOR_BUILD -o $dummy $dummy.c \ |
| | 410 | - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
| | 411 | - && exit 0 |
| | 412 | + $CC_FOR_BUILD -o $dummy $dummy.c && |
| | 413 | + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && |
| | 414 | + SYSTEM_NAME=`$dummy $dummyarg` && |
| | 415 | + { echo "$SYSTEM_NAME"; exit; } |
| | 416 | echo mips-mips-riscos${UNAME_RELEASE} |
| | 417 | - exit 0 ;; |
| | 418 | + exit ;; |
| | 419 | Motorola:PowerMAX_OS:*:*) |
| | 420 | echo powerpc-motorola-powermax |
| | 421 | - exit 0 ;; |
| | 422 | + exit ;; |
| | 423 | Motorola:*:4.3:PL8-*) |
| | 424 | echo powerpc-harris-powermax |
| | 425 | - exit 0 ;; |
| | 426 | + exit ;; |
| | 427 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) |
| | 428 | echo powerpc-harris-powermax |
| | 429 | - exit 0 ;; |
| | 430 | + exit ;; |
| | 431 | Night_Hawk:Power_UNIX:*:*) |
| | 432 | echo powerpc-harris-powerunix |
| | 433 | - exit 0 ;; |
| | 434 | + exit ;; |
| | 435 | m88k:CX/UX:7*:*) |
| | 436 | echo m88k-harris-cxux7 |
| | 437 | - exit 0 ;; |
| | 438 | + exit ;; |
| | 439 | m88k:*:4*:R4*) |
| | 440 | echo m88k-motorola-sysv4 |
| | 441 | - exit 0 ;; |
| | 442 | + exit ;; |
| | 443 | m88k:*:3*:R3*) |
| | 444 | echo m88k-motorola-sysv3 |
| | 445 | - exit 0 ;; |
| | 446 | + exit ;; |
| | 447 | AViiON:dgux:*:*) |
| | 448 | - # DG/UX returns AViiON for all architectures |
| | 449 | - UNAME_PROCESSOR=`/usr/bin/uname -p` |
| | 450 | + # DG/UX returns AViiON for all architectures |
| | 451 | + UNAME_PROCESSOR=`/usr/bin/uname -p` |
| | 452 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
| | 453 | then |
| | 454 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
| | 455 | @@ -471,29 +498,29 @@ |
| | 456 | else |
| | 457 | echo i586-dg-dgux${UNAME_RELEASE} |
| | 458 | fi |
| | 459 | - exit 0 ;; |
| | 460 | + exit ;; |
| | 461 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
| | 462 | echo m88k-dolphin-sysv3 |
| | 463 | - exit 0 ;; |
| | 464 | + exit ;; |
| | 465 | M88*:*:R3*:*) |
| | 466 | # Delta 88k system running SVR3 |
| | 467 | echo m88k-motorola-sysv3 |
| | 468 | - exit 0 ;; |
| | 469 | + exit ;; |
| | 470 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
| | 471 | echo m88k-tektronix-sysv3 |
| | 472 | - exit 0 ;; |
| | 473 | + exit ;; |
| | 474 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
| | 475 | echo m68k-tektronix-bsd |
| | 476 | - exit 0 ;; |
| | 477 | + exit ;; |
| | 478 | *:IRIX*:*:*) |
| | 479 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
| | 480 | - exit 0 ;; |
| | 481 | + exit ;; |
| | 482 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
| | 483 | - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
| | 484 | - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
| | 485 | + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
| | 486 | + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
| | 487 | i*86:AIX:*:*) |
| | 488 | echo i386-ibm-aix |
| | 489 | - exit 0 ;; |
| | 490 | + exit ;; |
| | 491 | ia64:AIX:*:*) |
| | 492 | if [ -x /usr/bin/oslevel ] ; then |
| | 493 | IBM_REV=`/usr/bin/oslevel` |
| | 494 | @@ -501,7 +528,7 @@ |
| | 495 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
| | 496 | fi |
| | 497 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} |
| | 498 | - exit 0 ;; |
| | 499 | + exit ;; |
| | 500 | *:AIX:2:3) |
| | 501 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
| | 502 | eval $set_cc_for_build |
| | 503 | @@ -516,15 +543,19 @@ |
| | 504 | exit(0); |
| | 505 | } |
| | 506 | EOF |
| | 507 | - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 |
| | 508 | - echo rs6000-ibm-aix3.2.5 |
| | 509 | + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` |
| | 510 | + then |
| | 511 | + echo "$SYSTEM_NAME" |
| | 512 | + else |
| | 513 | + echo rs6000-ibm-aix3.2.5 |
| | 514 | + fi |
| | 515 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
| | 516 | echo rs6000-ibm-aix3.2.4 |
| | 517 | else |
| | 518 | echo rs6000-ibm-aix3.2 |
| | 519 | fi |
| | 520 | - exit 0 ;; |
| | 521 | - *:AIX:*:[45]) |
| | 522 | + exit ;; |
| | 523 | + *:AIX:*:[4567]) |
| | 524 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
| | 525 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
| | 526 | IBM_ARCH=rs6000 |
| | 527 | @@ -537,28 +568,28 @@ |
| | 528 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
| | 529 | fi |
| | 530 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
| | 531 | - exit 0 ;; |
| | 532 | + exit ;; |
| | 533 | *:AIX:*:*) |
| | 534 | echo rs6000-ibm-aix |
| | 535 | - exit 0 ;; |
| | 536 | + exit ;; |
| | 537 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
| | 538 | echo romp-ibm-bsd4.4 |
| | 539 | - exit 0 ;; |
| | 540 | + exit ;; |
| | 541 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
| | 542 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
| | 543 | - exit 0 ;; # report: romp-ibm BSD 4.3 |
| | 544 | + exit ;; # report: romp-ibm BSD 4.3 |
| | 545 | *:BOSX:*:*) |
| | 546 | echo rs6000-bull-bosx |
| | 547 | - exit 0 ;; |
| | 548 | + exit ;; |
| | 549 | DPX/2?00:B.O.S.:*:*) |
| | 550 | echo m68k-bull-sysv3 |
| | 551 | - exit 0 ;; |
| | 552 | + exit ;; |
| | 553 | 9000/[34]??:4.3bsd:1.*:*) |
| | 554 | echo m68k-hp-bsd |
| | 555 | - exit 0 ;; |
| | 556 | + exit ;; |
| | 557 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
| | 558 | echo m68k-hp-bsd4.4 |
| | 559 | - exit 0 ;; |
| | 560 | + exit ;; |
| | 561 | 9000/[34678]??:HP-UX:*:*) |
| | 562 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
| | 563 | case "${UNAME_MACHINE}" in |
| | 564 | @@ -567,52 +598,52 @@ |
| | 565 | 9000/[678][0-9][0-9]) |
| | 566 | if [ -x /usr/bin/getconf ]; then |
| | 567 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
| | 568 | - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
| | 569 | - case "${sc_cpu_version}" in |
| | 570 | - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
| | 571 | - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
| | 572 | - 532) # CPU_PA_RISC2_0 |
| | 573 | - case "${sc_kernel_bits}" in |
| | 574 | - 32) HP_ARCH="hppa2.0n" ;; |
| | 575 | - 64) HP_ARCH="hppa2.0w" ;; |
| | 576 | + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
| | 577 | + case "${sc_cpu_version}" in |
| | 578 | + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
| | 579 | + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
| | 580 | + 532) # CPU_PA_RISC2_0 |
| | 581 | + case "${sc_kernel_bits}" in |
| | 582 | + 32) HP_ARCH="hppa2.0n" ;; |
| | 583 | + 64) HP_ARCH="hppa2.0w" ;; |
| | 584 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
| | 585 | - esac ;; |
| | 586 | - esac |
| | 587 | + esac ;; |
| | 588 | + esac |
| | 589 | fi |
| | 590 | if [ "${HP_ARCH}" = "" ]; then |
| | 591 | eval $set_cc_for_build |
| | 592 | - sed 's/^ //' << EOF >$dummy.c |
| | 593 | + sed 's/^ //' << EOF >$dummy.c |
| | 594 | + |
| | 595 | + #define _HPUX_SOURCE |
| | 596 | + #include <stdlib.h> |
| | 597 | + #include <unistd.h> |
| | 598 | |
| | 599 | - #define _HPUX_SOURCE |
| | 600 | - #include <stdlib.h> |
| | 601 | - #include <unistd.h> |
| | 602 | - |
| | 603 | - int main () |
| | 604 | - { |
| | 605 | - #if defined(_SC_KERNEL_BITS) |
| | 606 | - long bits = sysconf(_SC_KERNEL_BITS); |
| | 607 | - #endif |
| | 608 | - long cpu = sysconf (_SC_CPU_VERSION); |
| | 609 | - |
| | 610 | - switch (cpu) |
| | 611 | - { |
| | 612 | - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
| | 613 | - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
| | 614 | - case CPU_PA_RISC2_0: |
| | 615 | - #if defined(_SC_KERNEL_BITS) |
| | 616 | - switch (bits) |
| | 617 | - { |
| | 618 | - case 64: puts ("hppa2.0w"); break; |
| | 619 | - case 32: puts ("hppa2.0n"); break; |
| | 620 | - default: puts ("hppa2.0"); break; |
| | 621 | - } break; |
| | 622 | - #else /* !defined(_SC_KERNEL_BITS) */ |
| | 623 | - puts ("hppa2.0"); break; |
| | 624 | - #endif |
| | 625 | - default: puts ("hppa1.0"); break; |
| | 626 | - } |
| | 627 | - exit (0); |
| | 628 | - } |
| | 629 | + int main () |
| | 630 | + { |
| | 631 | + #if defined(_SC_KERNEL_BITS) |
| | 632 | + long bits = sysconf(_SC_KERNEL_BITS); |
| | 633 | + #endif |
| | 634 | + long cpu = sysconf (_SC_CPU_VERSION); |
| | 635 | + |
| | 636 | + switch (cpu) |
| | 637 | + { |
| | 638 | + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
| | 639 | + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
| | 640 | + case CPU_PA_RISC2_0: |
| | 641 | + #if defined(_SC_KERNEL_BITS) |
| | 642 | + switch (bits) |
| | 643 | + { |
| | 644 | + case 64: puts ("hppa2.0w"); break; |
| | 645 | + case 32: puts ("hppa2.0n"); break; |
| | 646 | + default: puts ("hppa2.0"); break; |
| | 647 | + } break; |
| | 648 | + #else /* !defined(_SC_KERNEL_BITS) */ |
| | 649 | + puts ("hppa2.0"); break; |
| | 650 | + #endif |
| | 651 | + default: puts ("hppa1.0"); break; |
| | 652 | + } |
| | 653 | + exit (0); |
| | 654 | + } |
| | 655 | EOF |
| | 656 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
| | 657 | test -z "$HP_ARCH" && HP_ARCH=hppa |
| | 658 | @@ -620,9 +651,19 @@ |
| | 659 | esac |
| | 660 | if [ ${HP_ARCH} = "hppa2.0w" ] |
| | 661 | then |
| | 662 | - # avoid double evaluation of $set_cc_for_build |
| | 663 | - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build |
| | 664 | - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null |
| | 665 | + eval $set_cc_for_build |
| | 666 | + |
| | 667 | + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
| | 668 | + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
| | 669 | + # generating 64-bit code. GNU and HP use different nomenclature: |
| | 670 | + # |
| | 671 | + # $ CC_FOR_BUILD=cc ./config.guess |
| | 672 | + # => hppa2.0w-hp-hpux11.23 |
| | 673 | + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
| | 674 | + # => hppa64-hp-hpux11.23 |
| | 675 | + |
| | 676 | + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
| | 677 | + grep -q __LP64__ |
| | 678 | then |
| | 679 | HP_ARCH="hppa2.0w" |
| | 680 | else |
| | 681 | @@ -630,11 +671,11 @@ |
| | 682 | fi |
| | 683 | fi |
| | 684 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
| | 685 | - exit 0 ;; |
| | 686 | + exit ;; |
| | 687 | ia64:HP-UX:*:*) |
| | 688 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
| | 689 | echo ia64-hp-hpux${HPUX_REV} |
| | 690 | - exit 0 ;; |
| | 691 | + exit ;; |
| | 692 | 3050*:HI-UX:*:*) |
| | 693 | eval $set_cc_for_build |
| | 694 | sed 's/^ //' << EOF >$dummy.c |
| | 695 | @@ -662,205 +703,253 @@ |
| | 696 | exit (0); |
| | 697 | } |
| | 698 | EOF |
| | 699 | - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 |
| | 700 | + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && |
| | 701 | + { echo "$SYSTEM_NAME"; exit; } |
| | 702 | echo unknown-hitachi-hiuxwe2 |
| | 703 | - exit 0 ;; |
| | 704 | + exit ;; |
| | 705 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
| | 706 | echo hppa1.1-hp-bsd |
| | 707 | - exit 0 ;; |
| | 708 | + exit ;; |
| | 709 | 9000/8??:4.3bsd:*:*) |
| | 710 | echo hppa1.0-hp-bsd |
| | 711 | - exit 0 ;; |
| | 712 | + exit ;; |
| | 713 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
| | 714 | echo hppa1.0-hp-mpeix |
| | 715 | - exit 0 ;; |
| | 716 | + exit ;; |
| | 717 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
| | 718 | echo hppa1.1-hp-osf |
| | 719 | - exit 0 ;; |
| | 720 | + exit ;; |
| | 721 | hp8??:OSF1:*:*) |
| | 722 | echo hppa1.0-hp-osf |
| | 723 | - exit 0 ;; |
| | 724 | + exit ;; |
| | 725 | i*86:OSF1:*:*) |
| | 726 | if [ -x /usr/sbin/sysversion ] ; then |
| | 727 | echo ${UNAME_MACHINE}-unknown-osf1mk |
| | 728 | else |
| | 729 | echo ${UNAME_MACHINE}-unknown-osf1 |
| | 730 | fi |
| | 731 | - exit 0 ;; |
| | 732 | + exit ;; |
| | 733 | parisc*:Lites*:*:*) |
| | 734 | echo hppa1.1-hp-lites |
| | 735 | - exit 0 ;; |
| | 736 | + exit ;; |
| | 737 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
| | 738 | echo c1-convex-bsd |
| | 739 | - exit 0 ;; |
| | 740 | + exit ;; |
| | 741 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
| | 742 | if getsysinfo -f scalar_acc |
| | 743 | then echo c32-convex-bsd |
| | 744 | else echo c2-convex-bsd |
| | 745 | fi |
| | 746 | - exit 0 ;; |
| | 747 | + exit ;; |
| | 748 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
| | 749 | echo c34-convex-bsd |
| | 750 | - exit 0 ;; |
| | 751 | + exit ;; |
| | 752 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
| | 753 | echo c38-convex-bsd |
| | 754 | - exit 0 ;; |
| | 755 | + exit ;; |
| | 756 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
| | 757 | echo c4-convex-bsd |
| | 758 | - exit 0 ;; |
| | 759 | + exit ;; |
| | 760 | CRAY*Y-MP:*:*:*) |
| | 761 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 762 | - exit 0 ;; |
| | 763 | + exit ;; |
| | 764 | CRAY*[A-Z]90:*:*:*) |
| | 765 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
| | 766 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
| | 767 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
| | 768 | -e 's/\.[^.]*$/.X/' |
| | 769 | - exit 0 ;; |
| | 770 | + exit ;; |
| | 771 | CRAY*TS:*:*:*) |
| | 772 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 773 | - exit 0 ;; |
| | 774 | + exit ;; |
| | 775 | CRAY*T3E:*:*:*) |
| | 776 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 777 | - exit 0 ;; |
| | 778 | + exit ;; |
| | 779 | CRAY*SV1:*:*:*) |
| | 780 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 781 | - exit 0 ;; |
| | 782 | + exit ;; |
| | 783 | *:UNICOS/mp:*:*) |
| | 784 | - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 785 | - exit 0 ;; |
| | 786 | + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| | 787 | + exit ;; |
| | 788 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
| | 789 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
| | 790 | - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| | 791 | - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
| | 792 | - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| | 793 | - exit 0 ;; |
| | 794 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| | 795 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
| | 796 | + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| | 797 | + exit ;; |
| | 798 | + 5000:UNIX_System_V:4.*:*) |
| | 799 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
| | 800 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
| | 801 | + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
| | 802 | + exit ;; |
| | 803 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
| | 804 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
| | 805 | - exit 0 ;; |
| | 806 | + exit ;; |
| | 807 | sparc*:BSD/OS:*:*) |
| | 808 | echo sparc-unknown-bsdi${UNAME_RELEASE} |
| | 809 | - exit 0 ;; |
| | 810 | + exit ;; |
| | 811 | *:BSD/OS:*:*) |
| | 812 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
| | 813 | - exit 0 ;; |
| | 814 | + exit ;; |
| | 815 | *:FreeBSD:*:*) |
| | 816 | - # Determine whether the default compiler uses glibc. |
| | 817 | - eval $set_cc_for_build |
| | 818 | - sed 's/^ //' << EOF >$dummy.c |
| | 819 | - #include <features.h> |
| | 820 | - #if __GLIBC__ >= 2 |
| | 821 | - LIBC=gnu |
| | 822 | - #else |
| | 823 | - LIBC= |
| | 824 | - #endif |
| | 825 | -EOF |
| | 826 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
| | 827 | - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
| | 828 | - exit 0 ;; |
| | 829 | + UNAME_PROCESSOR=`/usr/bin/uname -p` |
| | 830 | + case ${UNAME_PROCESSOR} in |
| | 831 | + amd64) |
| | 832 | + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| | 833 | + *) |
| | 834 | + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
| | 835 | + esac |
| | 836 | + exit ;; |
| | 837 | i*:CYGWIN*:*) |
| | 838 | echo ${UNAME_MACHINE}-pc-cygwin |
| | 839 | - exit 0 ;; |
| | 840 | - i*:MINGW*:*) |
| | 841 | + exit ;; |
| | 842 | + *:MINGW*:*) |
| | 843 | echo ${UNAME_MACHINE}-pc-mingw32 |
| | 844 | - exit 0 ;; |
| | 845 | + exit ;; |
| | 846 | + i*:windows32*:*) |
| | 847 | + # uname -m includes "-pc" on this system. |
| | 848 | + echo ${UNAME_MACHINE}-mingw32 |
| | 849 | + exit ;; |
| | 850 | i*:PW*:*) |
| | 851 | echo ${UNAME_MACHINE}-pc-pw32 |
| | 852 | - exit 0 ;; |
| | 853 | - x86:Interix*:3*) |
| | 854 | - echo i586-pc-interix3 |
| | 855 | - exit 0 ;; |
| | 856 | + exit ;; |
| | 857 | + *:Interix*:*) |
| | 858 | + case ${UNAME_MACHINE} in |
| | 859 | + x86) |
| | 860 | + echo i586-pc-interix${UNAME_RELEASE} |
| | 861 | + exit ;; |
| | 862 | + authenticamd | genuineintel | EM64T) |
| | 863 | + echo x86_64-unknown-interix${UNAME_RELEASE} |
| | 864 | + exit ;; |
| | 865 | + IA64) |
| | 866 | + echo ia64-unknown-interix${UNAME_RELEASE} |
| | 867 | + exit ;; |
| | 868 | + esac ;; |
| | 869 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
| | 870 | echo i${UNAME_MACHINE}-pc-mks |
| | 871 | - exit 0 ;; |
| | 872 | + exit ;; |
| | 873 | + 8664:Windows_NT:*) |
| | 874 | + echo x86_64-pc-mks |
| | 875 | + exit ;; |
| | 876 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
| | 877 | # How do we know it's Interix rather than the generic POSIX subsystem? |
| | 878 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
| | 879 | # UNAME_MACHINE based on the output of uname instead of i386? |
| | 880 | echo i586-pc-interix |
| | 881 | - exit 0 ;; |
| | 882 | + exit ;; |
| | 883 | i*:UWIN*:*) |
| | 884 | echo ${UNAME_MACHINE}-pc-uwin |
| | 885 | - exit 0 ;; |
| | 886 | + exit ;; |
| | 887 | + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
| | 888 | + echo x86_64-unknown-cygwin |
| | 889 | + exit ;; |
| | 890 | p*:CYGWIN*:*) |
| | 891 | echo powerpcle-unknown-cygwin |
| | 892 | - exit 0 ;; |
| | 893 | + exit ;; |
| | 894 | prep*:SunOS:5.*:*) |
| | 895 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| | 896 | - exit 0 ;; |
| | 897 | + exit ;; |
| | 898 | *:GNU:*:*) |
| | 899 | + # the GNU system |
| | 900 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| | 901 | - exit 0 ;; |
| | 902 | + exit ;; |
| | 903 | + *:GNU/*:*:*) |
| | 904 | + # other systems with GNU libc and userland |
| | 905 | + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
| | 906 | + exit ;; |
| | 907 | i*86:Minix:*:*) |
| | 908 | echo ${UNAME_MACHINE}-pc-minix |
| | 909 | - exit 0 ;; |
| | 910 | + exit ;; |
| | 911 | + alpha:Linux:*:*) |
| | 912 | + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| | 913 | + EV5) UNAME_MACHINE=alphaev5 ;; |
| | 914 | + EV56) UNAME_MACHINE=alphaev56 ;; |
| | 915 | + PCA56) UNAME_MACHINE=alphapca56 ;; |
| | 916 | + PCA57) UNAME_MACHINE=alphapca56 ;; |
| | 917 | + EV6) UNAME_MACHINE=alphaev6 ;; |
| | 918 | + EV67) UNAME_MACHINE=alphaev67 ;; |
| | 919 | + EV68*) UNAME_MACHINE=alphaev68 ;; |
| | 920 | + esac |
| | 921 | + objdump --private-headers /bin/sh | grep -q ld.so.1 |
| | 922 | + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
| | 923 | + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
| | 924 | + exit ;; |
| | 925 | arm*:Linux:*:*) |
| | 926 | + eval $set_cc_for_build |
| | 927 | + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| | 928 | + | grep -q __ARM_EABI__ |
| | 929 | + then |
| | 930 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 931 | + else |
| | 932 | + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
| | 933 | + | grep -q __ARM_PCS_VFP |
| | 934 | + then |
| | 935 | + echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
| | 936 | + else |
| | 937 | + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf |
| | 938 | + fi |
| | 939 | + fi |
| | 940 | + exit ;; |
| | 941 | + avr32*:Linux:*:*) |
| | 942 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 943 | - exit 0 ;; |
| | 944 | - ia64:Linux:*:*) |
| | 945 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 946 | - exit 0 ;; |
| | 947 | - m68*:Linux:*:*) |
| | 948 | - echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 949 | - exit 0 ;; |
| | 950 | - mips:Linux:*:*) |
| | 951 | + exit ;; |
| | 952 | + cris:Linux:*:*) |
| | 953 | + echo cris-axis-linux-gnu |
| | 954 | + exit ;; |
| | 955 | + crisv32:Linux:*:*) |
| | 956 | + echo crisv32-axis-linux-gnu |
| | 957 | + exit ;; |
| | 958 | + frv:Linux:*:*) |
| | 959 | + echo frv-unknown-linux-gnu |
| | 960 | + exit ;; |
| | 961 | + i*86:Linux:*:*) |
| | 962 | + LIBC=gnu |
| | 963 | eval $set_cc_for_build |
| | 964 | sed 's/^ //' << EOF >$dummy.c |
| | 965 | - #undef CPU |
| | 966 | - #undef mips |
| | 967 | - #undef mipsel |
| | 968 | - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
| | 969 | - CPU=mipsel |
| | 970 | - #else |
| | 971 | - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
| | 972 | - CPU=mips |
| | 973 | - #else |
| | 974 | - CPU= |
| | 975 | - #endif |
| | 976 | + #ifdef __dietlibc__ |
| | 977 | + LIBC=dietlibc |
| | 978 | #endif |
| | 979 | EOF |
| | 980 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
| | 981 | - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 |
| | 982 | - ;; |
| | 983 | - mips64:Linux:*:*) |
| | 984 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
| | 985 | + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
| | 986 | + exit ;; |
| | 987 | + ia64:Linux:*:*) |
| | 988 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 989 | + exit ;; |
| | 990 | + m32r*:Linux:*:*) |
| | 991 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 992 | + exit ;; |
| | 993 | + m68*:Linux:*:*) |
| | 994 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 995 | + exit ;; |
| | 996 | + mips:Linux:*:* | mips64:Linux:*:*) |
| | 997 | eval $set_cc_for_build |
| | 998 | sed 's/^ //' << EOF >$dummy.c |
| | 999 | #undef CPU |
| | 1000 | - #undef mips64 |
| | 1001 | - #undef mips64el |
| | 1002 | + #undef ${UNAME_MACHINE} |
| | 1003 | + #undef ${UNAME_MACHINE}el |
| | 1004 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
| | 1005 | - CPU=mips64el |
| | 1006 | + CPU=${UNAME_MACHINE}el |
| | 1007 | #else |
| | 1008 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
| | 1009 | - CPU=mips64 |
| | 1010 | + CPU=${UNAME_MACHINE} |
| | 1011 | #else |
| | 1012 | CPU= |
| | 1013 | #endif |
| | 1014 | #endif |
| | 1015 | EOF |
| | 1016 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
| | 1017 | - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 |
| | 1018 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| | 1019 | + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
| | 1020 | ;; |
| | 1021 | - ppc:Linux:*:*) |
| | 1022 | - echo powerpc-unknown-linux-gnu |
| | 1023 | - exit 0 ;; |
| | 1024 | - ppc64:Linux:*:*) |
| | 1025 | - echo powerpc64-unknown-linux-gnu |
| | 1026 | - exit 0 ;; |
| | 1027 | - alpha:Linux:*:*) |
| | 1028 | - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| | 1029 | - EV5) UNAME_MACHINE=alphaev5 ;; |
| | 1030 | - EV56) UNAME_MACHINE=alphaev56 ;; |
| | 1031 | - PCA56) UNAME_MACHINE=alphapca56 ;; |
| | 1032 | - PCA57) UNAME_MACHINE=alphapca56 ;; |
| | 1033 | - EV6) UNAME_MACHINE=alphaev6 ;; |
| | 1034 | - EV67) UNAME_MACHINE=alphaev67 ;; |
| | 1035 | - EV68*) UNAME_MACHINE=alphaev68 ;; |
| | 1036 | - esac |
| | 1037 | - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
| | 1038 | - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
| | 1039 | - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
| | 1040 | - exit 0 ;; |
| | 1041 | + or32:Linux:*:*) |
| | 1042 | + echo or32-unknown-linux-gnu |
| | 1043 | + exit ;; |
| | 1044 | + padre:Linux:*:*) |
| | 1045 | + echo sparc-unknown-linux-gnu |
| | 1046 | + exit ;; |
| | 1047 | + parisc64:Linux:*:* | hppa64:Linux:*:*) |
| | 1048 | + echo hppa64-unknown-linux-gnu |
| | 1049 | + exit ;; |
| | 1050 | parisc:Linux:*:* | hppa:Linux:*:*) |
| | 1051 | # Look for CPU level |
| | 1052 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| | 1053 | @@ -868,106 +957,71 @@ |
| | 1054 | PA8*) echo hppa2.0-unknown-linux-gnu ;; |
| | 1055 | *) echo hppa-unknown-linux-gnu ;; |
| | 1056 | esac |
| | 1057 | - exit 0 ;; |
| | 1058 | - parisc64:Linux:*:* | hppa64:Linux:*:*) |
| | 1059 | - echo hppa64-unknown-linux-gnu |
| | 1060 | - exit 0 ;; |
| | 1061 | + exit ;; |
| | 1062 | + ppc64:Linux:*:*) |
| | 1063 | + echo powerpc64-unknown-linux-gnu |
| | 1064 | + exit ;; |
| | 1065 | + ppc:Linux:*:*) |
| | 1066 | + echo powerpc-unknown-linux-gnu |
| | 1067 | + exit ;; |
| | 1068 | s390:Linux:*:* | s390x:Linux:*:*) |
| | 1069 | echo ${UNAME_MACHINE}-ibm-linux |
| | 1070 | - exit 0 ;; |
| | 1071 | + exit ;; |
| | 1072 | + sh64*:Linux:*:*) |
| | 1073 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 1074 | + exit ;; |
| | 1075 | sh*:Linux:*:*) |
| | 1076 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 1077 | - exit 0 ;; |
| | 1078 | + exit ;; |
| | 1079 | sparc:Linux:*:* | sparc64:Linux:*:*) |
| | 1080 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 1081 | - exit 0 ;; |
| | 1082 | + exit ;; |
| | 1083 | + tile*:Linux:*:*) |
| | 1084 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 1085 | + exit ;; |
| | 1086 | + vax:Linux:*:*) |
| | 1087 | + echo ${UNAME_MACHINE}-dec-linux-gnu |
| | 1088 | + exit ;; |
| | 1089 | x86_64:Linux:*:*) |
| | 1090 | echo x86_64-unknown-linux-gnu |
| | 1091 | - exit 0 ;; |
| | 1092 | - i*86:Linux:*:*) |
| | 1093 | - # The BFD linker knows what the default object file format is, so |
| | 1094 | - # first see if it will tell us. cd to the root directory to prevent |
| | 1095 | - # problems with other programs or directories called `ld' in the path. |
| | 1096 | - # Set LC_ALL=C to ensure ld outputs messages in English. |
| | 1097 | - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
| | 1098 | - | sed -ne '/supported targets:/!d |
| | 1099 | - s/[ ][ ]*/ /g |
| | 1100 | - s/.*supported targets: *// |
| | 1101 | - s/ .*// |
| | 1102 | - p'` |
| | 1103 | - case "$ld_supported_targets" in |
| | 1104 | - elf32-i386) |
| | 1105 | - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
| | 1106 | - ;; |
| | 1107 | - a.out-i386-linux) |
| | 1108 | - echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
| | 1109 | - exit 0 ;; |
| | 1110 | - coff-i386) |
| | 1111 | - echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
| | 1112 | - exit 0 ;; |
| | 1113 | - "") |
| | 1114 | - # Either a pre-BFD a.out linker (linux-gnuoldld) or |
| | 1115 | - # one that does not give us useful --help. |
| | 1116 | - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
| | 1117 | - exit 0 ;; |
| | 1118 | - esac |
| | 1119 | - # Determine whether the default compiler is a.out or elf |
| | 1120 | - eval $set_cc_for_build |
| | 1121 | - sed 's/^ //' << EOF >$dummy.c |
| | 1122 | - #include <features.h> |
| | 1123 | - #ifdef __ELF__ |
| | 1124 | - # ifdef __GLIBC__ |
| | 1125 | - # if __GLIBC__ >= 2 |
| | 1126 | - LIBC=gnu |
| | 1127 | - # else |
| | 1128 | - LIBC=gnulibc1 |
| | 1129 | - # endif |
| | 1130 | - # else |
| | 1131 | - LIBC=gnulibc1 |
| | 1132 | - # endif |
| | 1133 | - #else |
| | 1134 | - #ifdef __INTEL_COMPILER |
| | 1135 | - LIBC=gnu |
| | 1136 | - #else |
| | 1137 | - LIBC=gnuaout |
| | 1138 | - #endif |
| | 1139 | - #endif |
| | 1140 | -EOF |
| | 1141 | - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
| | 1142 | - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
| | 1143 | - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
| | 1144 | - ;; |
| | 1145 | + exit ;; |
| | 1146 | + xtensa*:Linux:*:*) |
| | 1147 | + echo ${UNAME_MACHINE}-unknown-linux-gnu |
| | 1148 | + exit ;; |
| | 1149 | i*86:DYNIX/ptx:4*:*) |
| | 1150 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| | 1151 | # earlier versions are messed up and put the nodename in both |
| | 1152 | # sysname and nodename. |
| | 1153 | echo i386-sequent-sysv4 |
| | 1154 | - exit 0 ;; |
| | 1155 | + exit ;; |
| | 1156 | i*86:UNIX_SV:4.2MP:2.*) |
| | 1157 | - # Unixware is an offshoot of SVR4, but it has its own version |
| | 1158 | - # number series starting with 2... |
| | 1159 | - # I am not positive that other SVR4 systems won't match this, |
| | 1160 | + # Unixware is an offshoot of SVR4, but it has its own version |
| | 1161 | + # number series starting with 2... |
| | 1162 | + # I am not positive that other SVR4 systems won't match this, |
| | 1163 | # I just have to hope. -- rms. |
| | 1164 | - # Use sysv4.2uw... so that sysv4* matches it. |
| | 1165 | + # Use sysv4.2uw... so that sysv4* matches it. |
| | 1166 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
| | 1167 | - exit 0 ;; |
| | 1168 | + exit ;; |
| | 1169 | i*86:OS/2:*:*) |
| | 1170 | # If we were able to find `uname', then EMX Unix compatibility |
| | 1171 | # is probably installed. |
| | 1172 | echo ${UNAME_MACHINE}-pc-os2-emx |
| | 1173 | - exit 0 ;; |
| | 1174 | + exit ;; |
| | 1175 | i*86:XTS-300:*:STOP) |
| | 1176 | echo ${UNAME_MACHINE}-unknown-stop |
| | 1177 | - exit 0 ;; |
| | 1178 | + exit ;; |
| | 1179 | i*86:atheos:*:*) |
| | 1180 | echo ${UNAME_MACHINE}-unknown-atheos |
| | 1181 | - exit 0 ;; |
| | 1182 | - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
| | 1183 | + exit ;; |
| | 1184 | + i*86:syllable:*:*) |
| | 1185 | + echo ${UNAME_MACHINE}-pc-syllable |
| | 1186 | + exit ;; |
| | 1187 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
| | 1188 | echo i386-unknown-lynxos${UNAME_RELEASE} |
| | 1189 | - exit 0 ;; |
| | 1190 | + exit ;; |
| | 1191 | i*86:*DOS:*:*) |
| | 1192 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
| | 1193 | - exit 0 ;; |
| | 1194 | + exit ;; |
| | 1195 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
| | 1196 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
| | 1197 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
| | 1198 | @@ -975,15 +1029,16 @@ |
| | 1199 | else |
| | 1200 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
| | 1201 | fi |
| | 1202 | - exit 0 ;; |
| | 1203 | - i*86:*:5:[78]*) |
| | 1204 | + exit ;; |
| | 1205 | + i*86:*:5:[678]*) |
| | 1206 | + # UnixWare 7.x, OpenUNIX and OpenServer 6. |
| | 1207 | case `/bin/uname -X | grep "^Machine"` in |
| | 1208 | *486*) UNAME_MACHINE=i486 ;; |
| | 1209 | *Pentium) UNAME_MACHINE=i586 ;; |
| | 1210 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
| | 1211 | esac |
| | 1212 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
| | 1213 | - exit 0 ;; |
| | 1214 | + exit ;; |
| | 1215 | i*86:*:3.2:*) |
| | 1216 | if test -f /usr/options/cb.name; then |
| | 1217 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
| | 1218 | @@ -1001,73 +1056,86 @@ |
| | 1219 | else |
| | 1220 | echo ${UNAME_MACHINE}-pc-sysv32 |
| | 1221 | fi |
| | 1222 | - exit 0 ;; |
| | 1223 | + exit ;; |
| | 1224 | pc:*:*:*) |
| | 1225 | # Left here for compatibility: |
| | 1226 | - # uname -m prints for DJGPP always 'pc', but it prints nothing about |
| | 1227 | - # the processor, so we play safe by assuming i386. |
| | 1228 | - echo i386-pc-msdosdjgpp |
| | 1229 | - exit 0 ;; |
| | 1230 | + # uname -m prints for DJGPP always 'pc', but it prints nothing about |
| | 1231 | + # the processor, so we play safe by assuming i586. |
| | 1232 | + # Note: whatever this is, it MUST be the same as what config.sub |
| | 1233 | + # prints for the "djgpp" host, or else GDB configury will decide that |
| | 1234 | + # this is a cross-build. |
| | 1235 | + echo i586-pc-msdosdjgpp |
| | 1236 | + exit ;; |
| | 1237 | Intel:Mach:3*:*) |
| | 1238 | echo i386-pc-mach3 |
| | 1239 | - exit 0 ;; |
| | 1240 | + exit ;; |
| | 1241 | paragon:*:*:*) |
| | 1242 | echo i860-intel-osf1 |
| | 1243 | - exit 0 ;; |
| | 1244 | + exit ;; |
| | 1245 | i860:*:4.*:*) # i860-SVR4 |
| | 1246 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
| | 1247 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
| | 1248 | else # Add other i860-SVR4 vendors below as they are discovered. |
| | 1249 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
| | 1250 | fi |
| | 1251 | - exit 0 ;; |
| | 1252 | + exit ;; |
| | 1253 | mini*:CTIX:SYS*5:*) |
| | 1254 | # "miniframe" |
| | 1255 | echo m68010-convergent-sysv |
| | 1256 | - exit 0 ;; |
| | 1257 | + exit ;; |
| | 1258 | mc68k:UNIX:SYSTEM5:3.51m) |
| | 1259 | echo m68k-convergent-sysv |
| | 1260 | - exit 0 ;; |
| | 1261 | + exit ;; |
| | 1262 | M680?0:D-NIX:5.3:*) |
| | 1263 | echo m68k-diab-dnix |
| | 1264 | - exit 0 ;; |
| | 1265 | - M68*:*:R3V[567]*:*) |
| | 1266 | - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
| | 1267 | - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0) |
| | 1268 | + exit ;; |
| | 1269 | + M68*:*:R3V[5678]*:*) |
| | 1270 | + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; |
| | 1271 | + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) |
| | 1272 | OS_REL='' |
| | 1273 | test -r /etc/.relid \ |
| | 1274 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
| | 1275 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| | 1276 | - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 |
| | 1277 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
| | 1278 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
| | 1279 | - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; |
| | 1280 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
| | 1281 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
| | 1282 | - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| | 1283 | - && echo i486-ncr-sysv4 && exit 0 ;; |
| | 1284 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| | 1285 | + && { echo i486-ncr-sysv4; exit; } ;; |
| | 1286 | + NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
| | 1287 | + OS_REL='.3' |
| | 1288 | + test -r /etc/.relid \ |
| | 1289 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
| | 1290 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
| | 1291 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
| | 1292 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
| | 1293 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
| | 1294 | + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
| | 1295 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
| | 1296 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
| | 1297 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
| | 1298 | - exit 0 ;; |
| | 1299 | + exit ;; |
| | 1300 | mc68030:UNIX_System_V:4.*:*) |
| | 1301 | echo m68k-atari-sysv4 |
| | 1302 | - exit 0 ;; |
| | 1303 | + exit ;; |
| | 1304 | TSUNAMI:LynxOS:2.*:*) |
| | 1305 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
| | 1306 | - exit 0 ;; |
| | 1307 | + exit ;; |
| | 1308 | rs6000:LynxOS:2.*:*) |
| | 1309 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
| | 1310 | - exit 0 ;; |
| | 1311 | - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
| | 1312 | + exit ;; |
| | 1313 | + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
| | 1314 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
| | 1315 | - exit 0 ;; |
| | 1316 | + exit ;; |
| | 1317 | SM[BE]S:UNIX_SV:*:*) |
| | 1318 | echo mips-dde-sysv${UNAME_RELEASE} |
| | 1319 | - exit 0 ;; |
| | 1320 | + exit ;; |
| | 1321 | RM*:ReliantUNIX-*:*:*) |
| | 1322 | echo mips-sni-sysv4 |
| | 1323 | - exit 0 ;; |
| | 1324 | + exit ;; |
| | 1325 | RM*:SINIX-*:*:*) |
| | 1326 | echo mips-sni-sysv4 |
| | 1327 | - exit 0 ;; |
| | 1328 | + exit ;; |
| | 1329 | *:SINIX-*:*:*) |
| | 1330 | if uname -p 2>/dev/null >/dev/null ; then |
| | 1331 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
| | 1332 | @@ -1075,68 +1143,94 @@ |
| | 1333 | else |
| | 1334 | echo ns32k-sni-sysv |
| | 1335 | fi |
| | 1336 | - exit 0 ;; |
| | 1337 | - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
| | 1338 | - # says <Richard.M.Bartel@ccMail.Census.GOV> |
| | 1339 | - echo i586-unisys-sysv4 |
| | 1340 | - exit 0 ;; |
| | 1341 | + exit ;; |
| | 1342 | + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
| | 1343 | + # says <Richard.M.Bartel@ccMail.Census.GOV> |
| | 1344 | + echo i586-unisys-sysv4 |
| | 1345 | + exit ;; |
| | 1346 | *:UNIX_System_V:4*:FTX*) |
| | 1347 | # From Gerald Hewes <hewes@openmarket.com>. |
| | 1348 | # How about differentiating between stratus architectures? -djm |
| | 1349 | echo hppa1.1-stratus-sysv4 |
| | 1350 | - exit 0 ;; |
| | 1351 | + exit ;; |
| | 1352 | *:*:*:FTX*) |
| | 1353 | # From seanf@swdc.stratus.com. |
| | 1354 | echo i860-stratus-sysv4 |
| | 1355 | - exit 0 ;; |
| | 1356 | + exit ;; |
| | 1357 | + i*86:VOS:*:*) |
| | 1358 | + # From Paul.Green@stratus.com. |
| | 1359 | + echo ${UNAME_MACHINE}-stratus-vos |
| | 1360 | + exit ;; |
| | 1361 | *:VOS:*:*) |
| | 1362 | # From Paul.Green@stratus.com. |
| | 1363 | echo hppa1.1-stratus-vos |
| | 1364 | - exit 0 ;; |
| | 1365 | + exit ;; |
| | 1366 | mc68*:A/UX:*:*) |
| | 1367 | echo m68k-apple-aux${UNAME_RELEASE} |
| | 1368 | - exit 0 ;; |
| | 1369 | + exit ;; |
| | 1370 | news*:NEWS-OS:6*:*) |
| | 1371 | echo mips-sony-newsos6 |
| | 1372 | - exit 0 ;; |
| | 1373 | + exit ;; |
| | 1374 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
| | 1375 | if [ -d /usr/nec ]; then |
| | 1376 | - echo mips-nec-sysv${UNAME_RELEASE} |
| | 1377 | + echo mips-nec-sysv${UNAME_RELEASE} |
| | 1378 | else |
| | 1379 | - echo mips-unknown-sysv${UNAME_RELEASE} |
| | 1380 | + echo mips-unknown-sysv${UNAME_RELEASE} |
| | 1381 | fi |
| | 1382 | - exit 0 ;; |
| | 1383 | + exit ;; |
| | 1384 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
| | 1385 | echo powerpc-be-beos |
| | 1386 | - exit 0 ;; |
| | 1387 | + exit ;; |
| | 1388 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| | 1389 | echo powerpc-apple-beos |
| | 1390 | - exit 0 ;; |
| | 1391 | + exit ;; |
| | 1392 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
| | 1393 | echo i586-pc-beos |
| | 1394 | - exit 0 ;; |
| | 1395 | + exit ;; |
| | 1396 | + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| | 1397 | + echo i586-pc-haiku |
| | 1398 | + exit ;; |
| | 1399 | SX-4:SUPER-UX:*:*) |
| | 1400 | echo sx4-nec-superux${UNAME_RELEASE} |
| | 1401 | - exit 0 ;; |
| | 1402 | + exit ;; |
| | 1403 | SX-5:SUPER-UX:*:*) |
| | 1404 | echo sx5-nec-superux${UNAME_RELEASE} |
| | 1405 | - exit 0 ;; |
| | 1406 | + exit ;; |
| | 1407 | SX-6:SUPER-UX:*:*) |
| | 1408 | echo sx6-nec-superux${UNAME_RELEASE} |
| | 1409 | - exit 0 ;; |
| | 1410 | + exit ;; |
| | 1411 | + SX-7:SUPER-UX:*:*) |
| | 1412 | + echo sx7-nec-superux${UNAME_RELEASE} |
| | 1413 | + exit ;; |
| | 1414 | + SX-8:SUPER-UX:*:*) |
| | 1415 | + echo sx8-nec-superux${UNAME_RELEASE} |
| | 1416 | + exit ;; |
| | 1417 | + SX-8R:SUPER-UX:*:*) |
| | 1418 | + echo sx8r-nec-superux${UNAME_RELEASE} |
| | 1419 | + exit ;; |
| | 1420 | Power*:Rhapsody:*:*) |
| | 1421 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
| | 1422 | - exit 0 ;; |
| | 1423 | + exit ;; |
| | 1424 | *:Rhapsody:*:*) |
| | 1425 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| | 1426 | - exit 0 ;; |
| | 1427 | + exit ;; |
| | 1428 | *:Darwin:*:*) |
| | 1429 | - case `uname -p` in |
| | 1430 | - *86) UNAME_PROCESSOR=i686 ;; |
| | 1431 | - powerpc) UNAME_PROCESSOR=powerpc ;; |
| | 1432 | + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| | 1433 | + case $UNAME_PROCESSOR in |
| | 1434 | + i386) |
| | 1435 | + eval $set_cc_for_build |
| | 1436 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| | 1437 | + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| | 1438 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| | 1439 | + grep IS_64BIT_ARCH >/dev/null |
| | 1440 | + then |
| | 1441 | + UNAME_PROCESSOR="x86_64" |
| | 1442 | + fi |
| | 1443 | + fi ;; |
| | 1444 | + unknown) UNAME_PROCESSOR=powerpc ;; |
| | 1445 | esac |
| | 1446 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| | 1447 | - exit 0 ;; |
| | 1448 | + exit ;; |
| | 1449 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| | 1450 | UNAME_PROCESSOR=`uname -p` |
| | 1451 | if test "$UNAME_PROCESSOR" = "x86"; then |
| | 1452 | @@ -1144,22 +1238,28 @@ |
| | 1453 | UNAME_MACHINE=pc |
| | 1454 | fi |
| | 1455 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
| | 1456 | - exit 0 ;; |
| | 1457 | + exit ;; |
| | 1458 | *:QNX:*:4*) |
| | 1459 | echo i386-pc-qnx |
| | 1460 | - exit 0 ;; |
| | 1461 | - NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) |
| | 1462 | + exit ;; |
| | 1463 | + NEO-?:NONSTOP_KERNEL:*:*) |
| | 1464 | + echo neo-tandem-nsk${UNAME_RELEASE} |
| | 1465 | + exit ;; |
| | 1466 | + NSE-?:NONSTOP_KERNEL:*:*) |
| | 1467 | + echo nse-tandem-nsk${UNAME_RELEASE} |
| | 1468 | + exit ;; |
| | 1469 | + NSR-?:NONSTOP_KERNEL:*:*) |
| | 1470 | echo nsr-tandem-nsk${UNAME_RELEASE} |
| | 1471 | - exit 0 ;; |
| | 1472 | + exit ;; |
| | 1473 | *:NonStop-UX:*:*) |
| | 1474 | echo mips-compaq-nonstopux |
| | 1475 | - exit 0 ;; |
| | 1476 | + exit ;; |
| | 1477 | BS2000:POSIX*:*:*) |
| | 1478 | echo bs2000-siemens-sysv |
| | 1479 | - exit 0 ;; |
| | 1480 | + exit ;; |
| | 1481 | DS/*:UNIX_System_V:*:*) |
| | 1482 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
| | 1483 | - exit 0 ;; |
| | 1484 | + exit ;; |
| | 1485 | *:Plan9:*:*) |
| | 1486 | # "uname -m" is not consistent, so use $cputype instead. 386 |
| | 1487 | # is converted to i386 for consistency with other x86 |
| | 1488 | @@ -1170,25 +1270,50 @@ |
| | 1489 | UNAME_MACHINE="$cputype" |
| | 1490 | fi |
| | 1491 | echo ${UNAME_MACHINE}-unknown-plan9 |
| | 1492 | - exit 0 ;; |
| | 1493 | + exit ;; |
| | 1494 | *:TOPS-10:*:*) |
| | 1495 | echo pdp10-unknown-tops10 |
| | 1496 | - exit 0 ;; |
| | 1497 | + exit ;; |
| | 1498 | *:TENEX:*:*) |
| | 1499 | echo pdp10-unknown-tenex |
| | 1500 | - exit 0 ;; |
| | 1501 | + exit ;; |
| | 1502 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
| | 1503 | echo pdp10-dec-tops20 |
| | 1504 | - exit 0 ;; |
| | 1505 | + exit ;; |
| | 1506 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) |
| | 1507 | echo pdp10-xkl-tops20 |
| | 1508 | - exit 0 ;; |
| | 1509 | + exit ;; |
| | 1510 | *:TOPS-20:*:*) |
| | 1511 | echo pdp10-unknown-tops20 |
| | 1512 | - exit 0 ;; |
| | 1513 | + exit ;; |
| | 1514 | *:ITS:*:*) |
| | 1515 | echo pdp10-unknown-its |
| | 1516 | - exit 0 ;; |
| | 1517 | + exit ;; |
| | 1518 | + SEI:*:*:SEIUX) |
| | 1519 | + echo mips-sei-seiux${UNAME_RELEASE} |
| | 1520 | + exit ;; |
| | 1521 | + *:DragonFly:*:*) |
| | 1522 | + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
| | 1523 | + exit ;; |
| | 1524 | + *:*VMS:*:*) |
| | 1525 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` |
| | 1526 | + case "${UNAME_MACHINE}" in |
| | 1527 | + A*) echo alpha-dec-vms ; exit ;; |
| | 1528 | + I*) echo ia64-dec-vms ; exit ;; |
| | 1529 | + V*) echo vax-dec-vms ; exit ;; |
| | 1530 | + esac ;; |
| | 1531 | + *:XENIX:*:SysV) |
| | 1532 | + echo i386-pc-xenix |
| | 1533 | + exit ;; |
| | 1534 | + i*86:skyos:*:*) |
| | 1535 | + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
| | 1536 | + exit ;; |
| | 1537 | + i*86:rdos:*:*) |
| | 1538 | + echo ${UNAME_MACHINE}-pc-rdos |
| | 1539 | + exit ;; |
| | 1540 | + i*86:AROS:*:*) |
| | 1541 | + echo ${UNAME_MACHINE}-pc-aros |
| | 1542 | + exit ;; |
| | 1543 | esac |
| | 1544 | |
| | 1545 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
| | 1546 | @@ -1211,16 +1336,16 @@ |
| | 1547 | #include <sys/param.h> |
| | 1548 | printf ("m68k-sony-newsos%s\n", |
| | 1549 | #ifdef NEWSOS4 |
| | 1550 | - "4" |
| | 1551 | + "4" |
| | 1552 | #else |
| | 1553 | - "" |
| | 1554 | + "" |
| | 1555 | #endif |
| | 1556 | - ); exit (0); |
| | 1557 | + ); exit (0); |
| | 1558 | #endif |
| | 1559 | #endif |
| | 1560 | |
| | 1561 | #if defined (__arm) && defined (__acorn) && defined (__unix) |
| | 1562 | - printf ("arm-acorn-riscix"); exit (0); |
| | 1563 | + printf ("arm-acorn-riscix\n"); exit (0); |
| | 1564 | #endif |
| | 1565 | |
| | 1566 | #if defined (hp300) && !defined (hpux) |
| | 1567 | @@ -1309,11 +1434,12 @@ |
| | 1568 | } |
| | 1569 | EOF |
| | 1570 | |
| | 1571 | -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 |
| | 1572 | +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && |
| | 1573 | + { echo "$SYSTEM_NAME"; exit; } |
| | 1574 | |
| | 1575 | # Apollos put the system type in the environment. |
| | 1576 | |
| | 1577 | -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } |
| | 1578 | +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } |
| | 1579 | |
| | 1580 | # Convex versions that predate uname can use getsysinfo(1) |
| | 1581 | |
| | 1582 | @@ -1322,22 +1448,22 @@ |
| | 1583 | case `getsysinfo -f cpu_type` in |
| | 1584 | c1*) |
| | 1585 | echo c1-convex-bsd |
| | 1586 | - exit 0 ;; |
| | 1587 | + exit ;; |
| | 1588 | c2*) |
| | 1589 | if getsysinfo -f scalar_acc |
| | 1590 | then echo c32-convex-bsd |
| | 1591 | else echo c2-convex-bsd |
| | 1592 | fi |
| | 1593 | - exit 0 ;; |
| | 1594 | + exit ;; |
| | 1595 | c34*) |
| | 1596 | echo c34-convex-bsd |
| | 1597 | - exit 0 ;; |
| | 1598 | + exit ;; |
| | 1599 | c38*) |
| | 1600 | echo c38-convex-bsd |
| | 1601 | - exit 0 ;; |
| | 1602 | + exit ;; |
| | 1603 | c4*) |
| | 1604 | echo c4-convex-bsd |
| | 1605 | - exit 0 ;; |
| | 1606 | + exit ;; |
| | 1607 | esac |
| | 1608 | fi |
| | 1609 | |
| | 1610 | @@ -1348,7 +1474,9 @@ |
| | 1611 | the operating system you are using. It is advised that you |
| | 1612 | download the most up to date version of the config scripts from |
| | 1613 | |
| | 1614 | - ftp://ftp.gnu.org/pub/gnu/config/ |
| | 1615 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
| | 1616 | +and |
| | 1617 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| | 1618 | |
| | 1619 | If the version you run ($0) is already up to date, please |
| | 1620 | send the following data and any information you think might be |
| | 1621 | diff -urN llvm-3.1.src/projects/sample/autoconf/config.sub llvm-3.1.src-haiku/projects/sample/autoconf/config.sub |
| | 1622 | --- llvm-3.1.src/projects/sample/autoconf/config.sub 2003-10-16 01:44:20.061341696 +0000 |
| | 1623 | +++ llvm-3.1.src-haiku/projects/sample/autoconf/config.sub 2012-10-01 19:37:47.740556800 +0000 |
| | 1624 | @@ -1,9 +1,10 @@ |
| | 1625 | #! /bin/sh |
| | 1626 | # Configuration validation subroutine script. |
| | 1627 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| | 1628 | -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| | 1629 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
| | 1630 | +# 2011 Free Software Foundation, Inc. |
| | 1631 | |
| | 1632 | -timestamp='2003-02-22' |
| | 1633 | +timestamp='2011-11-02' |
| | 1634 | |
| | 1635 | # This file is (in principle) common to ALL GNU software. |
| | 1636 | # The presence of a machine in this file suggests that SOME GNU software |
| | 1637 | @@ -21,22 +22,26 @@ |
| | 1638 | # |
| | 1639 | # You should have received a copy of the GNU General Public License |
| | 1640 | # along with this program; if not, write to the Free Software |
| | 1641 | -# Foundation, Inc., 59 Temple Place - Suite 330, |
| | 1642 | -# Boston, MA 02111-1307, USA. |
| | 1643 | - |
| | 1644 | +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| | 1645 | +# 02110-1301, USA. |
| | 1646 | +# |
| | 1647 | # As a special exception to the GNU General Public License, if you |
| | 1648 | # distribute this file as part of a program that contains a |
| | 1649 | # configuration script generated by Autoconf, you may include it under |
| | 1650 | # the same distribution terms that you use for the rest of that program. |
| | 1651 | |
| | 1652 | + |
| | 1653 | # Please send patches to <config-patches@gnu.org>. Submit a context |
| | 1654 | -# diff and a properly formatted ChangeLog entry. |
| | 1655 | +# diff and a properly formatted GNU ChangeLog entry. |
| | 1656 | # |
| | 1657 | # Configuration subroutine to validate and canonicalize a configuration type. |
| | 1658 | # Supply the specified configuration type as an argument. |
| | 1659 | # If it is invalid, we print an error message on stderr and exit with code 1. |
| | 1660 | # Otherwise, we print the canonical config type on stdout and succeed. |
| | 1661 | |
| | 1662 | +# You can get the latest version of this script from: |
| | 1663 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| | 1664 | + |
| | 1665 | # This file is supposed to be the same for all GNU packages |
| | 1666 | # and recognize all the CPU types, system types and aliases |
| | 1667 | # that are meaningful with *any* GNU software. |
| | 1668 | @@ -70,8 +75,9 @@ |
| | 1669 | version="\ |
| | 1670 | GNU config.sub ($timestamp) |
| | 1671 | |
| | 1672 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
| | 1673 | -Free Software Foundation, Inc. |
| | 1674 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| | 1675 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
| | 1676 | +Software Foundation, Inc. |
| | 1677 | |
| | 1678 | This is free software; see the source for copying conditions. There is NO |
| | 1679 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| | 1680 | @@ -83,11 +89,11 @@ |
| | 1681 | while test $# -gt 0 ; do |
| | 1682 | case $1 in |
| | 1683 | --time-stamp | --time* | -t ) |
| | 1684 | - echo "$timestamp" ; exit 0 ;; |
| | 1685 | + echo "$timestamp" ; exit ;; |
| | 1686 | --version | -v ) |
| | 1687 | - echo "$version" ; exit 0 ;; |
| | 1688 | + echo "$version" ; exit ;; |
| | 1689 | --help | --h* | -h ) |
| | 1690 | - echo "$usage"; exit 0 ;; |
| | 1691 | + echo "$usage"; exit ;; |
| | 1692 | -- ) # Stop option processing |
| | 1693 | shift; break ;; |
| | 1694 | - ) # Use stdin as input. |
| | 1695 | @@ -99,7 +105,7 @@ |
| | 1696 | *local*) |
| | 1697 | # First pass through any local machine types. |
| | 1698 | echo $1 |
| | 1699 | - exit 0;; |
| | 1700 | + exit ;; |
| | 1701 | |
| | 1702 | * ) |
| | 1703 | break ;; |
| | 1704 | @@ -118,7 +124,11 @@ |
| | 1705 | # Here we must recognize all the valid KERNEL-OS combinations. |
| | 1706 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| | 1707 | case $maybe_os in |
| | 1708 | - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
| | 1709 | + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| | 1710 | + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| | 1711 | + knetbsd*-gnu* | netbsd*-gnu* | \ |
| | 1712 | + kopensolaris*-gnu* | \ |
| | 1713 | + storm-chaos* | os2-emx* | rtmk-nova*) |
| | 1714 | os=-$maybe_os |
| | 1715 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| | 1716 | ;; |
| | 1717 | @@ -144,10 +154,13 @@ |
| | 1718 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
| | 1719 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
| | 1720 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
| | 1721 | - -apple | -axis) |
| | 1722 | + -apple | -axis | -knuth | -cray | -microblaze) |
| | 1723 | os= |
| | 1724 | basic_machine=$1 |
| | 1725 | ;; |
| | 1726 | + -bluegene*) |
| | 1727 | + os=-cnk |
| | 1728 | + ;; |
| | 1729 | -sim | -cisco | -oki | -wec | -winbond) |
| | 1730 | os= |
| | 1731 | basic_machine=$1 |
| | 1732 | @@ -162,13 +175,17 @@ |
| | 1733 | os=-chorusos |
| | 1734 | basic_machine=$1 |
| | 1735 | ;; |
| | 1736 | - -chorusrdb) |
| | 1737 | - os=-chorusrdb |
| | 1738 | + -chorusrdb) |
| | 1739 | + os=-chorusrdb |
| | 1740 | basic_machine=$1 |
| | 1741 | - ;; |
| | 1742 | + ;; |
| | 1743 | -hiux*) |
| | 1744 | os=-hiuxwe2 |
| | 1745 | ;; |
| | 1746 | + -sco6) |
| | 1747 | + os=-sco5v6 |
| | 1748 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| | 1749 | + ;; |
| | 1750 | -sco5) |
| | 1751 | os=-sco3.2v5 |
| | 1752 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| | 1753 | @@ -185,6 +202,10 @@ |
| | 1754 | # Don't forget version if it is 3.2v4 or newer. |
| | 1755 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| | 1756 | ;; |
| | 1757 | + -sco5v6*) |
| | 1758 | + # Don't forget version if it is 3.2v4 or newer. |
| | 1759 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| | 1760 | + ;; |
| | 1761 | -sco*) |
| | 1762 | os=-sco3.2v2 |
| | 1763 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
| | 1764 | @@ -228,53 +249,97 @@ |
| | 1765 | | a29k \ |
| | 1766 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| | 1767 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| | 1768 | - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| | 1769 | - | clipper \ |
| | 1770 | + | am33_2.0 \ |
| | 1771 | + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
| | 1772 | + | be32 | be64 \ |
| | 1773 | + | bfin \ |
| | 1774 | + | c4x | clipper \ |
| | 1775 | | d10v | d30v | dlx | dsp16xx \ |
| | 1776 | - | fr30 | frv \ |
| | 1777 | + | fido | fr30 | frv \ |
| | 1778 | + | hexagon \ |
| | 1779 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| | 1780 | | i370 | i860 | i960 | ia64 \ |
| | 1781 | - | ip2k \ |
| | 1782 | - | m32r | m68000 | m68k | m88k | mcore \ |
| | 1783 | + | ip2k | iq2000 \ |
| | 1784 | + | le32 | le64 \ |
| | 1785 | + | lm32 \ |
| | 1786 | + | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
| | 1787 | + | maxq | mb | microblaze | mcore | mep | metag \ |
| | 1788 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
| | 1789 | | mips16 \ |
| | 1790 | | mips64 | mips64el \ |
| | 1791 | - | mips64vr | mips64vrel \ |
| | 1792 | + | mips64octeon | mips64octeonel \ |
| | 1793 | | mips64orion | mips64orionel \ |
| | 1794 | + | mips64r5900 | mips64r5900el \ |
| | 1795 | + | mips64vr | mips64vrel \ |
| | 1796 | | mips64vr4100 | mips64vr4100el \ |
| | 1797 | | mips64vr4300 | mips64vr4300el \ |
| | 1798 | | mips64vr5000 | mips64vr5000el \ |
| | 1799 | + | mips64vr5900 | mips64vr5900el \ |
| | 1800 | | mipsisa32 | mipsisa32el \ |
| | 1801 | | mipsisa32r2 | mipsisa32r2el \ |
| | 1802 | | mipsisa64 | mipsisa64el \ |
| | 1803 | + | mipsisa64r2 | mipsisa64r2el \ |
| | 1804 | | mipsisa64sb1 | mipsisa64sb1el \ |
| | 1805 | | mipsisa64sr71k | mipsisa64sr71kel \ |
| | 1806 | | mipstx39 | mipstx39el \ |
| | 1807 | | mn10200 | mn10300 \ |
| | 1808 | + | moxie \ |
| | 1809 | + | mt \ |
| | 1810 | | msp430 \ |
| | 1811 | + | nds32 | nds32le | nds32be \ |
| | 1812 | + | nios | nios2 \ |
| | 1813 | | ns16k | ns32k \ |
| | 1814 | - | openrisc | or32 \ |
| | 1815 | + | open8 \ |
| | 1816 | + | or32 \ |
| | 1817 | | pdp10 | pdp11 | pj | pjl \ |
| | 1818 | - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| | 1819 | + | powerpc | powerpc64 | powerpc64le | powerpcle \ |
| | 1820 | | pyramid \ |
| | 1821 | - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| | 1822 | + | rx \ |
| | 1823 | + | score \ |
| | 1824 | + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| | 1825 | | sh64 | sh64le \ |
| | 1826 | - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
| | 1827 | - | strongarm \ |
| | 1828 | - | tahoe | thumb | tic80 | tron \ |
| | 1829 | - | v850 | v850e \ |
| | 1830 | + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| | 1831 | + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| | 1832 | + | spu \ |
| | 1833 | + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
| | 1834 | + | ubicom32 \ |
| | 1835 | + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
| | 1836 | | we32k \ |
| | 1837 | - | x86 | xscale | xstormy16 | xtensa \ |
| | 1838 | - | z8k) |
| | 1839 | + | x86 | xc16x | xstormy16 | xtensa \ |
| | 1840 | + | z8k | z80) |
| | 1841 | basic_machine=$basic_machine-unknown |
| | 1842 | ;; |
| | 1843 | - m6811 | m68hc11 | m6812 | m68hc12) |
| | 1844 | + c54x) |
| | 1845 | + basic_machine=tic54x-unknown |
| | 1846 | + ;; |
| | 1847 | + c55x) |
| | 1848 | + basic_machine=tic55x-unknown |
| | 1849 | + ;; |
| | 1850 | + c6x) |
| | 1851 | + basic_machine=tic6x-unknown |
| | 1852 | + ;; |
| | 1853 | + m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
| | 1854 | # Motorola 68HC11/12. |
| | 1855 | basic_machine=$basic_machine-unknown |
| | 1856 | os=-none |
| | 1857 | ;; |
| | 1858 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
| | 1859 | ;; |
| | 1860 | + ms1) |
| | 1861 | + basic_machine=mt-unknown |
| | 1862 | + ;; |
| | 1863 | + |
| | 1864 | + strongarm | thumb | xscale) |
| | 1865 | + basic_machine=arm-unknown |
| | 1866 | + ;; |
| | 1867 | + |
| | 1868 | + xscaleeb) |
| | 1869 | + basic_machine=armeb-unknown |
| | 1870 | + ;; |
| | 1871 | + |
| | 1872 | + xscaleel) |
| | 1873 | + basic_machine=armel-unknown |
| | 1874 | + ;; |
| | 1875 | |
| | 1876 | # We use `pc' rather than `unknown' |
| | 1877 | # because (1) that's what they normally are, and |
| | 1878 | @@ -294,54 +359,75 @@ |
| | 1879 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| | 1880 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| | 1881 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| | 1882 | - | avr-* \ |
| | 1883 | - | bs2000-* \ |
| | 1884 | - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| | 1885 | - | clipper-* | cydra-* \ |
| | 1886 | + | avr-* | avr32-* \ |
| | 1887 | + | be32-* | be64-* \ |
| | 1888 | + | bfin-* | bs2000-* \ |
| | 1889 | + | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
| | 1890 | + | clipper-* | craynv-* | cydra-* \ |
| | 1891 | | d10v-* | d30v-* | dlx-* \ |
| | 1892 | | elxsi-* \ |
| | 1893 | - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
| | 1894 | + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| | 1895 | | h8300-* | h8500-* \ |
| | 1896 | + | hexagon-* \ |
| | 1897 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| | 1898 | | i*86-* | i860-* | i960-* | ia64-* \ |
| | 1899 | - | ip2k-* \ |
| | 1900 | - | m32r-* \ |
| | 1901 | + | ip2k-* | iq2000-* \ |
| | 1902 | + | le32-* | le64-* \ |
| | 1903 | + | lm32-* \ |
| | 1904 | + | m32c-* | m32r-* | m32rle-* \ |
| | 1905 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| | 1906 | - | m88110-* | m88k-* | mcore-* \ |
| | 1907 | + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
| | 1908 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| | 1909 | | mips16-* \ |
| | 1910 | | mips64-* | mips64el-* \ |
| | 1911 | - | mips64vr-* | mips64vrel-* \ |
| | 1912 | + | mips64octeon-* | mips64octeonel-* \ |
| | 1913 | | mips64orion-* | mips64orionel-* \ |
| | 1914 | + | mips64r5900-* | mips64r5900el-* \ |
| | 1915 | + | mips64vr-* | mips64vrel-* \ |
| | 1916 | | mips64vr4100-* | mips64vr4100el-* \ |
| | 1917 | | mips64vr4300-* | mips64vr4300el-* \ |
| | 1918 | | mips64vr5000-* | mips64vr5000el-* \ |
| | 1919 | + | mips64vr5900-* | mips64vr5900el-* \ |
| | 1920 | | mipsisa32-* | mipsisa32el-* \ |
| | 1921 | | mipsisa32r2-* | mipsisa32r2el-* \ |
| | 1922 | | mipsisa64-* | mipsisa64el-* \ |
| | 1923 | + | mipsisa64r2-* | mipsisa64r2el-* \ |
| | 1924 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
| | 1925 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| | 1926 | | mipstx39-* | mipstx39el-* \ |
| | 1927 | + | mmix-* \ |
| | 1928 | + | mt-* \ |
| | 1929 | | msp430-* \ |
| | 1930 | - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
| | 1931 | + | nds32-* | nds32le-* | nds32be-* \ |
| | 1932 | + | nios-* | nios2-* \ |
| | 1933 | + | none-* | np1-* | ns16k-* | ns32k-* \ |
| | 1934 | + | open8-* \ |
| | 1935 | | orion-* \ |
| | 1936 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| | 1937 | - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| | 1938 | + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
| | 1939 | | pyramid-* \ |
| | 1940 | - | romp-* | rs6000-* \ |
| | 1941 | - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| | 1942 | + | romp-* | rs6000-* | rx-* \ |
| | 1943 | + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| | 1944 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| | 1945 | - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
| | 1946 | - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
| | 1947 | - | tahoe-* | thumb-* \ |
| | 1948 | + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| | 1949 | + | sparclite-* \ |
| | 1950 | + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
| | 1951 | + | tahoe-* \ |
| | 1952 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| | 1953 | + | tile*-* \ |
| | 1954 | | tron-* \ |
| | 1955 | - | v850-* | v850e-* | vax-* \ |
| | 1956 | + | ubicom32-* \ |
| | 1957 | + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
| | 1958 | + | vax-* \ |
| | 1959 | | we32k-* \ |
| | 1960 | - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
| | 1961 | - | xtensa-* \ |
| | 1962 | + | x86-* | x86_64-* | xc16x-* | xps100-* \ |
| | 1963 | + | xstormy16-* | xtensa*-* \ |
| | 1964 | | ymp-* \ |
| | 1965 | - | z8k-*) |
| | 1966 | + | z8k-* | z80-*) |
| | 1967 | + ;; |
| | 1968 | + # Recognize the basic CPU types without company name, with glob match. |
| | 1969 | + xtensa*) |
| | 1970 | + basic_machine=$basic_machine-unknown |
| | 1971 | ;; |
| | 1972 | # Recognize the various machine names and aliases which stand |
| | 1973 | # for a CPU type and a company and sometimes even an OS. |
| | 1974 | @@ -359,6 +445,9 @@ |
| | 1975 | basic_machine=a29k-amd |
| | 1976 | os=-udi |
| | 1977 | ;; |
| | 1978 | + abacus) |
| | 1979 | + basic_machine=abacus-unknown |
| | 1980 | + ;; |
| | 1981 | adobe68k) |
| | 1982 | basic_machine=m68010-adobe |
| | 1983 | os=-scout |
| | 1984 | @@ -373,6 +462,12 @@ |
| | 1985 | basic_machine=a29k-none |
| | 1986 | os=-bsd |
| | 1987 | ;; |
| | 1988 | + amd64) |
| | 1989 | + basic_machine=x86_64-pc |
| | 1990 | + ;; |
| | 1991 | + amd64-*) |
| | 1992 | + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 1993 | + ;; |
| | 1994 | amdahl) |
| | 1995 | basic_machine=580-amdahl |
| | 1996 | os=-sysv |
| | 1997 | @@ -396,6 +491,10 @@ |
| | 1998 | basic_machine=m68k-apollo |
| | 1999 | os=-bsd |
| | 2000 | ;; |
| | 2001 | + aros) |
| | 2002 | + basic_machine=i386-pc |
| | 2003 | + os=-aros |
| | 2004 | + ;; |
| | 2005 | aux) |
| | 2006 | basic_machine=m68k-apple |
| | 2007 | os=-aux |
| | 2008 | @@ -404,10 +503,35 @@ |
| | 2009 | basic_machine=ns32k-sequent |
| | 2010 | os=-dynix |
| | 2011 | ;; |
| | 2012 | + blackfin) |
| | 2013 | + basic_machine=bfin-unknown |
| | 2014 | + os=-linux |
| | 2015 | + ;; |
| | 2016 | + blackfin-*) |
| | 2017 | + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2018 | + os=-linux |
| | 2019 | + ;; |
| | 2020 | + bluegene*) |
| | 2021 | + basic_machine=powerpc-ibm |
| | 2022 | + os=-cnk |
| | 2023 | + ;; |
| | 2024 | + c54x-*) |
| | 2025 | + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2026 | + ;; |
| | 2027 | + c55x-*) |
| | 2028 | + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2029 | + ;; |
| | 2030 | + c6x-*) |
| | 2031 | + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2032 | + ;; |
| | 2033 | c90) |
| | 2034 | basic_machine=c90-cray |
| | 2035 | os=-unicos |
| | 2036 | ;; |
| | 2037 | + cegcc) |
| | 2038 | + basic_machine=arm-unknown |
| | 2039 | + os=-cegcc |
| | 2040 | + ;; |
| | 2041 | convex-c1) |
| | 2042 | basic_machine=c1-convex |
| | 2043 | os=-bsd |
| | 2044 | @@ -432,12 +556,27 @@ |
| | 2045 | basic_machine=j90-cray |
| | 2046 | os=-unicos |
| | 2047 | ;; |
| | 2048 | + craynv) |
| | 2049 | + basic_machine=craynv-cray |
| | 2050 | + os=-unicosmp |
| | 2051 | + ;; |
| | 2052 | + cr16 | cr16-*) |
| | 2053 | + basic_machine=cr16-unknown |
| | 2054 | + os=-elf |
| | 2055 | + ;; |
| | 2056 | crds | unos) |
| | 2057 | basic_machine=m68k-crds |
| | 2058 | ;; |
| | 2059 | + crisv32 | crisv32-* | etraxfs*) |
| | 2060 | + basic_machine=crisv32-axis |
| | 2061 | + ;; |
| | 2062 | cris | cris-* | etrax*) |
| | 2063 | basic_machine=cris-axis |
| | 2064 | ;; |
| | 2065 | + crx) |
| | 2066 | + basic_machine=crx-unknown |
| | 2067 | + os=-elf |
| | 2068 | + ;; |
| | 2069 | da30 | da30-*) |
| | 2070 | basic_machine=m68k-da30 |
| | 2071 | ;; |
| | 2072 | @@ -460,6 +599,14 @@ |
| | 2073 | basic_machine=m88k-motorola |
| | 2074 | os=-sysv3 |
| | 2075 | ;; |
| | 2076 | + dicos) |
| | 2077 | + basic_machine=i686-pc |
| | 2078 | + os=-dicos |
| | 2079 | + ;; |
| | 2080 | + djgpp) |
| | 2081 | + basic_machine=i586-pc |
| | 2082 | + os=-msdosdjgpp |
| | 2083 | + ;; |
| | 2084 | dpx20 | dpx20-*) |
| | 2085 | basic_machine=rs6000-bull |
| | 2086 | os=-bosx |
| | 2087 | @@ -610,6 +757,14 @@ |
| | 2088 | basic_machine=m68k-isi |
| | 2089 | os=-sysv |
| | 2090 | ;; |
| | 2091 | + m68knommu) |
| | 2092 | + basic_machine=m68k-unknown |
| | 2093 | + os=-linux |
| | 2094 | + ;; |
| | 2095 | + m68knommu-*) |
| | 2096 | + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2097 | + os=-linux |
| | 2098 | + ;; |
| | 2099 | m88k-omron*) |
| | 2100 | basic_machine=m88k-omron |
| | 2101 | ;; |
| | 2102 | @@ -621,10 +776,17 @@ |
| | 2103 | basic_machine=ns32k-utek |
| | 2104 | os=-sysv |
| | 2105 | ;; |
| | 2106 | + microblaze) |
| | 2107 | + basic_machine=microblaze-xilinx |
| | 2108 | + ;; |
| | 2109 | mingw32) |
| | 2110 | basic_machine=i386-pc |
| | 2111 | os=-mingw32 |
| | 2112 | ;; |
| | 2113 | + mingw32ce) |
| | 2114 | + basic_machine=arm-unknown |
| | 2115 | + os=-mingw32ce |
| | 2116 | + ;; |
| | 2117 | miniframe) |
| | 2118 | basic_machine=m68000-convergent |
| | 2119 | ;; |
| | 2120 | @@ -638,10 +800,6 @@ |
| | 2121 | mips3*) |
| | 2122 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
| | 2123 | ;; |
| | 2124 | - mmix*) |
| | 2125 | - basic_machine=mmix-knuth |
| | 2126 | - os=-mmixware |
| | 2127 | - ;; |
| | 2128 | monitor) |
| | 2129 | basic_machine=m68k-rom68k |
| | 2130 | os=-coff |
| | 2131 | @@ -654,10 +812,17 @@ |
| | 2132 | basic_machine=i386-pc |
| | 2133 | os=-msdos |
| | 2134 | ;; |
| | 2135 | + ms1-*) |
| | 2136 | + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
| | 2137 | + ;; |
| | 2138 | mvs) |
| | 2139 | basic_machine=i370-ibm |
| | 2140 | os=-mvs |
| | 2141 | ;; |
| | 2142 | + nacl) |
| | 2143 | + basic_machine=le32-unknown |
| | 2144 | + os=-nacl |
| | 2145 | + ;; |
| | 2146 | ncr3000) |
| | 2147 | basic_machine=i486-ncr |
| | 2148 | os=-sysv4 |
| | 2149 | @@ -722,9 +887,11 @@ |
| | 2150 | np1) |
| | 2151 | basic_machine=np1-gould |
| | 2152 | ;; |
| | 2153 | - nv1) |
| | 2154 | - basic_machine=nv1-cray |
| | 2155 | - os=-unicosmp |
| | 2156 | + neo-tandem) |
| | 2157 | + basic_machine=neo-tandem |
| | 2158 | + ;; |
| | 2159 | + nse-tandem) |
| | 2160 | + basic_machine=nse-tandem |
| | 2161 | ;; |
| | 2162 | nsr-tandem) |
| | 2163 | basic_machine=nsr-tandem |
| | 2164 | @@ -733,9 +900,12 @@ |
| | 2165 | basic_machine=hppa1.1-oki |
| | 2166 | os=-proelf |
| | 2167 | ;; |
| | 2168 | - or32 | or32-*) |
| | 2169 | + openrisc | openrisc-*) |
| | 2170 | basic_machine=or32-unknown |
| | 2171 | - os=-coff |
| | 2172 | + ;; |
| | 2173 | + os400) |
| | 2174 | + basic_machine=powerpc-ibm |
| | 2175 | + os=-os400 |
| | 2176 | ;; |
| | 2177 | OSE68000 | ose68000) |
| | 2178 | basic_machine=m68000-ericsson |
| | 2179 | @@ -753,6 +923,14 @@ |
| | 2180 | basic_machine=i860-intel |
| | 2181 | os=-osf |
| | 2182 | ;; |
| | 2183 | + parisc) |
| | 2184 | + basic_machine=hppa-unknown |
| | 2185 | + os=-linux |
| | 2186 | + ;; |
| | 2187 | + parisc-*) |
| | 2188 | + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2189 | + os=-linux |
| | 2190 | + ;; |
| | 2191 | pbd) |
| | 2192 | basic_machine=sparc-tti |
| | 2193 | ;; |
| | 2194 | @@ -762,32 +940,45 @@ |
| | 2195 | pc532 | pc532-*) |
| | 2196 | basic_machine=ns32k-pc532 |
| | 2197 | ;; |
| | 2198 | + pc98) |
| | 2199 | + basic_machine=i386-pc |
| | 2200 | + ;; |
| | 2201 | + pc98-*) |
| | 2202 | + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2203 | + ;; |
| | 2204 | pentium | p5 | k5 | k6 | nexgen | viac3) |
| | 2205 | basic_machine=i586-pc |
| | 2206 | ;; |
| | 2207 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
| | 2208 | basic_machine=i686-pc |
| | 2209 | ;; |
| | 2210 | - pentiumii | pentium2) |
| | 2211 | + pentiumii | pentium2 | pentiumiii | pentium3) |
| | 2212 | basic_machine=i686-pc |
| | 2213 | ;; |
| | 2214 | + pentium4) |
| | 2215 | + basic_machine=i786-pc |
| | 2216 | + ;; |
| | 2217 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
| | 2218 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2219 | ;; |
| | 2220 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
| | 2221 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2222 | ;; |
| | 2223 | - pentiumii-* | pentium2-*) |
| | 2224 | + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
| | 2225 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2226 | ;; |
| | 2227 | + pentium4-*) |
| | 2228 | + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2229 | + ;; |
| | 2230 | pn) |
| | 2231 | basic_machine=pn-gould |
| | 2232 | ;; |
| | 2233 | power) basic_machine=power-ibm |
| | 2234 | ;; |
| | 2235 | - ppc) basic_machine=powerpc-unknown |
| | 2236 | + ppc | ppcbe) basic_machine=powerpc-unknown |
| | 2237 | ;; |
| | 2238 | - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2239 | + ppc-* | ppcbe-*) |
| | 2240 | + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2241 | ;; |
| | 2242 | ppcle | powerpclittle | ppc-le | powerpc-little) |
| | 2243 | basic_machine=powerpcle-unknown |
| | 2244 | @@ -812,6 +1003,10 @@ |
| | 2245 | basic_machine=i586-unknown |
| | 2246 | os=-pw32 |
| | 2247 | ;; |
| | 2248 | + rdos) |
| | 2249 | + basic_machine=i386-pc |
| | 2250 | + os=-rdos |
| | 2251 | + ;; |
| | 2252 | rom68k) |
| | 2253 | basic_machine=m68k-rom68k |
| | 2254 | os=-coff |
| | 2255 | @@ -838,6 +1033,14 @@ |
| | 2256 | sb1el) |
| | 2257 | basic_machine=mipsisa64sb1el-unknown |
| | 2258 | ;; |
| | 2259 | + sde) |
| | 2260 | + basic_machine=mipsisa32-sde |
| | 2261 | + os=-elf |
| | 2262 | + ;; |
| | 2263 | + sei) |
| | 2264 | + basic_machine=mips-sei |
| | 2265 | + os=-seiux |
| | 2266 | + ;; |
| | 2267 | sequent) |
| | 2268 | basic_machine=i386-sequent |
| | 2269 | ;; |
| | 2270 | @@ -845,6 +1048,12 @@ |
| | 2271 | basic_machine=sh-hitachi |
| | 2272 | os=-hms |
| | 2273 | ;; |
| | 2274 | + sh5el) |
| | 2275 | + basic_machine=sh5le-unknown |
| | 2276 | + ;; |
| | 2277 | + sh64) |
| | 2278 | + basic_machine=sh64-unknown |
| | 2279 | + ;; |
| | 2280 | sparclite-wrs | simso-wrs) |
| | 2281 | basic_machine=sparclite-wrs |
| | 2282 | os=-vxworks |
| | 2283 | @@ -863,6 +1072,9 @@ |
| | 2284 | basic_machine=i860-stratus |
| | 2285 | os=-sysv4 |
| | 2286 | ;; |
| | 2287 | + strongarm-* | thumb-*) |
| | 2288 | + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | 2289 | + ;; |
| | 2290 | sun2) |
| | 2291 | basic_machine=m68000-sun |
| | 2292 | ;; |
| | 2293 | @@ -919,21 +1131,9 @@ |
| | 2294 | basic_machine=t90-cray |
| | 2295 | os=-unicos |
| | 2296 | ;; |
| | 2297 | - tic4x | c4x*) |
| | 2298 | - basic_machine=tic4x-unknown |
| | 2299 | - os=-coff |
| | 2300 | - ;; |
| | 2301 | - tic54x | c54x*) |
| | 2302 | - basic_machine=tic54x-unknown |
| | 2303 | - os=-coff |
| | 2304 | - ;; |
| | 2305 | - tic55x | c55x*) |
| | 2306 | - basic_machine=tic55x-unknown |
| | 2307 | - os=-coff |
| | 2308 | - ;; |
| | 2309 | - tic6x | c6x*) |
| | 2310 | - basic_machine=tic6x-unknown |
| | 2311 | - os=-coff |
| | 2312 | + tile*) |
| | 2313 | + basic_machine=$basic_machine-unknown |
| | 2314 | + os=-linux-gnu |
| | 2315 | ;; |
| | 2316 | tx39) |
| | 2317 | basic_machine=mipstx39-unknown |
| | 2318 | @@ -948,6 +1148,10 @@ |
| | 2319 | tower | tower-32) |
| | 2320 | basic_machine=m68k-ncr |
| | 2321 | ;; |
| | 2322 | + tpf) |
| | 2323 | + basic_machine=s390x-ibm |
| | 2324 | + os=-tpf |
| | 2325 | + ;; |
| | 2326 | udi29k) |
| | 2327 | basic_machine=a29k-amd |
| | 2328 | os=-udi |
| | 2329 | @@ -991,9 +1195,16 @@ |
| | 2330 | basic_machine=hppa1.1-winbond |
| | 2331 | os=-proelf |
| | 2332 | ;; |
| | 2333 | + xbox) |
| | 2334 | + basic_machine=i686-pc |
| | 2335 | + os=-mingw32 |
| | 2336 | + ;; |
| | 2337 | xps | xps100) |
| | 2338 | basic_machine=xps100-honeywell |
| | 2339 | ;; |
| | 2340 | + xscale-* | xscalee[bl]-*) |
| | 2341 | + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` |
| | 2342 | + ;; |
| | 2343 | ymp) |
| | 2344 | basic_machine=ymp-cray |
| | 2345 | os=-unicos |
| | 2346 | @@ -1002,6 +1213,10 @@ |
| | 2347 | basic_machine=z8k-unknown |
| | 2348 | os=-sim |
| | 2349 | ;; |
| | 2350 | + z80-*-coff) |
| | 2351 | + basic_machine=z80-unknown |
| | 2352 | + os=-sim |
| | 2353 | + ;; |
| | 2354 | none) |
| | 2355 | basic_machine=none-none |
| | 2356 | os=-none |
| | 2357 | @@ -1021,6 +1236,9 @@ |
| | 2358 | romp) |
| | 2359 | basic_machine=romp-ibm |
| | 2360 | ;; |
| | 2361 | + mmix) |
| | 2362 | + basic_machine=mmix-knuth |
| | 2363 | + ;; |
| | 2364 | rs6000) |
| | 2365 | basic_machine=rs6000-ibm |
| | 2366 | ;; |
| | 2367 | @@ -1037,13 +1255,10 @@ |
| | 2368 | we32k) |
| | 2369 | basic_machine=we32k-att |
| | 2370 | ;; |
| | 2371 | - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
| | 2372 | + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
| | 2373 | basic_machine=sh-unknown |
| | 2374 | ;; |
| | 2375 | - sh64) |
| | 2376 | - basic_machine=sh64-unknown |
| | 2377 | - ;; |
| | 2378 | - sparc | sparcv9 | sparcv9b) |
| | 2379 | + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
| | 2380 | basic_machine=sparc-sun |
| | 2381 | ;; |
| | 2382 | cydra) |
| | 2383 | @@ -1087,9 +1302,12 @@ |
| | 2384 | if [ x"$os" != x"" ] |
| | 2385 | then |
| | 2386 | case $os in |
| | 2387 | - # First match some system type aliases |
| | 2388 | - # that might get confused with valid system types. |
| | 2389 | + # First match some system type aliases |
| | 2390 | + # that might get confused with valid system types. |
| | 2391 | # -solaris* is a basic system type, with this one exception. |
| | 2392 | + -auroraux) |
| | 2393 | + os=-auroraux |
| | 2394 | + ;; |
| | 2395 | -solaris1 | -solaris1.*) |
| | 2396 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
| | 2397 | ;; |
| | 2398 | @@ -1110,25 +1328,31 @@ |
| | 2399 | # Each alternative MUST END IN A *, to match a version number. |
| | 2400 | # -sysv* is not here because it comes later, after sysvr4. |
| | 2401 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
| | 2402 | - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
| | 2403 | - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| | 2404 | + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| | 2405 | + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| | 2406 | + | -sym* | -kopensolaris* \ |
| | 2407 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| | 2408 | - | -aos* \ |
| | 2409 | + | -aos* | -aros* \ |
| | 2410 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| | 2411 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| | 2412 | - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
| | 2413 | - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| | 2414 | + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| | 2415 | + | -openbsd* | -solidbsd* \ |
| | 2416 | + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| | 2417 | + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| | 2418 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| | 2419 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| | 2420 | - | -chorusos* | -chorusrdb* \ |
| | 2421 | + | -chorusos* | -chorusrdb* | -cegcc* \ |
| | 2422 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| | 2423 | - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| | 2424 | + | -mingw32* | -linux-gnu* | -linux-android* \ |
| | 2425 | + | -linux-newlib* | -linux-uclibc* \ |
| | 2426 | + | -uxpv* | -beos* | -mpeix* | -udk* \ |
| | 2427 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| | 2428 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| | 2429 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| | 2430 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| | 2431 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| | 2432 | - | -powermax* | -dnix*) |
| | 2433 | + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| | 2434 | + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
| | 2435 | # Remember, each alternative MUST END IN *, to match a version number. |
| | 2436 | ;; |
| | 2437 | -qnx*) |
| | 2438 | @@ -1146,12 +1370,15 @@ |
| | 2439 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
| | 2440 | ;; |
| | 2441 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
| | 2442 | - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
| | 2443 | + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
| | 2444 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
| | 2445 | ;; |
| | 2446 | -mac*) |
| | 2447 | os=`echo $os | sed -e 's|mac|macos|'` |
| | 2448 | ;; |
| | 2449 | + -linux-dietlibc) |
| | 2450 | + os=-linux-dietlibc |
| | 2451 | + ;; |
| | 2452 | -linux*) |
| | 2453 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
| | 2454 | ;; |
| | 2455 | @@ -1164,6 +1391,9 @@ |
| | 2456 | -opened*) |
| | 2457 | os=-openedition |
| | 2458 | ;; |
| | 2459 | + -os400*) |
| | 2460 | + os=-os400 |
| | 2461 | + ;; |
| | 2462 | -wince*) |
| | 2463 | os=-wince |
| | 2464 | ;; |
| | 2465 | @@ -1185,6 +1415,9 @@ |
| | 2466 | -atheos*) |
| | 2467 | os=-atheos |
| | 2468 | ;; |
| | 2469 | + -syllable*) |
| | 2470 | + os=-syllable |
| | 2471 | + ;; |
| | 2472 | -386bsd) |
| | 2473 | os=-bsd |
| | 2474 | ;; |
| | 2475 | @@ -1207,6 +1440,9 @@ |
| | 2476 | -sinix*) |
| | 2477 | os=-sysv4 |
| | 2478 | ;; |
| | 2479 | + -tpf*) |
| | 2480 | + os=-tpf |
| | 2481 | + ;; |
| | 2482 | -triton*) |
| | 2483 | os=-sysv3 |
| | 2484 | ;; |
| | 2485 | @@ -1243,6 +1479,14 @@ |
| | 2486 | -kaos*) |
| | 2487 | os=-kaos |
| | 2488 | ;; |
| | 2489 | + -zvmoe) |
| | 2490 | + os=-zvmoe |
| | 2491 | + ;; |
| | 2492 | + -dicos*) |
| | 2493 | + os=-dicos |
| | 2494 | + ;; |
| | 2495 | + -nacl*) |
| | 2496 | + ;; |
| | 2497 | -none) |
| | 2498 | ;; |
| | 2499 | *) |
| | 2500 | @@ -1265,6 +1509,12 @@ |
| | 2501 | # system, and we'll never get to this point. |
| | 2502 | |
| | 2503 | case $basic_machine in |
| | 2504 | + score-*) |
| | 2505 | + os=-elf |
| | 2506 | + ;; |
| | 2507 | + spu-*) |
| | 2508 | + os=-elf |
| | 2509 | + ;; |
| | 2510 | *-acorn) |
| | 2511 | os=-riscix1.2 |
| | 2512 | ;; |
| | 2513 | @@ -1274,6 +1524,18 @@ |
| | 2514 | arm*-semi) |
| | 2515 | os=-aout |
| | 2516 | ;; |
| | 2517 | + c4x-* | tic4x-*) |
| | 2518 | + os=-coff |
| | 2519 | + ;; |
| | 2520 | + tic54x-*) |
| | 2521 | + os=-coff |
| | 2522 | + ;; |
| | 2523 | + tic55x-*) |
| | 2524 | + os=-coff |
| | 2525 | + ;; |
| | 2526 | + tic6x-*) |
| | 2527 | + os=-coff |
| | 2528 | + ;; |
| | 2529 | # This must come before the *-dec entry. |
| | 2530 | pdp10-*) |
| | 2531 | os=-tops20 |
| | 2532 | @@ -1299,6 +1561,9 @@ |
| | 2533 | m68*-cisco) |
| | 2534 | os=-aout |
| | 2535 | ;; |
| | 2536 | + mep-*) |
| | 2537 | + os=-elf |
| | 2538 | + ;; |
| | 2539 | mips*-cisco) |
| | 2540 | os=-elf |
| | 2541 | ;; |
| | 2542 | @@ -1317,9 +1582,15 @@ |
| | 2543 | *-be) |
| | 2544 | os=-beos |
| | 2545 | ;; |
| | 2546 | + *-haiku) |
| | 2547 | + os=-haiku |
| | 2548 | + ;; |
| | 2549 | *-ibm) |
| | 2550 | os=-aix |
| | 2551 | ;; |
| | 2552 | + *-knuth) |
| | 2553 | + os=-mmixware |
| | 2554 | + ;; |
| | 2555 | *-wec) |
| | 2556 | os=-proelf |
| | 2557 | ;; |
| | 2558 | @@ -1422,7 +1693,7 @@ |
| | 2559 | -sunos*) |
| | 2560 | vendor=sun |
| | 2561 | ;; |
| | 2562 | - -aix*) |
| | 2563 | + -cnk*|-aix*) |
| | 2564 | vendor=ibm |
| | 2565 | ;; |
| | 2566 | -beos*) |
| | 2567 | @@ -1452,9 +1723,15 @@ |
| | 2568 | -mvs* | -opened*) |
| | 2569 | vendor=ibm |
| | 2570 | ;; |
| | 2571 | + -os400*) |
| | 2572 | + vendor=ibm |
| | 2573 | + ;; |
| | 2574 | -ptx*) |
| | 2575 | vendor=sequent |
| | 2576 | ;; |
| | 2577 | + -tpf*) |
| | 2578 | + vendor=ibm |
| | 2579 | + ;; |
| | 2580 | -vxsim* | -vxworks* | -windiss*) |
| | 2581 | vendor=wrs |
| | 2582 | ;; |
| | 2583 | @@ -1479,7 +1756,7 @@ |
| | 2584 | esac |
| | 2585 | |
| | 2586 | echo $basic_machine$os |
| | 2587 | -exit 0 |
| | 2588 | +exit |
| | 2589 | |
| | 2590 | # Local variables: |
| | 2591 | # eval: (add-hook 'write-file-hooks 'time-stamp) |