Search
lxdream.org :: lxdream :: r525:eec1fd69a42c
lxdream 0.9.1
released Jun 29
Download Now
changeset525:eec1fd69a42c
parent524:96c0ee659cba
child526:ba3da45b5754
authornkeynes
dateSat Nov 17 01:30:01 2007 +0000 (11 years ago)
Add config.guess, config.sub files
config.guess
config.sub
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/config.guess Sat Nov 17 01:30:01 2007 +0000
1.3 @@ -0,0 +1,1500 @@
1.4 +#! /bin/sh
1.5 +# Attempt to guess a canonical system name.
1.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
1.8 +# Inc.
1.9 +
1.10 +timestamp='2006-07-02'
1.11 +
1.12 +# This file is free software; you can redistribute it and/or modify it
1.13 +# under the terms of the GNU General Public License as published by
1.14 +# the Free Software Foundation; either version 2 of the License, or
1.15 +# (at your option) any later version.
1.16 +#
1.17 +# This program is distributed in the hope that it will be useful, but
1.18 +# WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.20 +# General Public License for more details.
1.21 +#
1.22 +# You should have received a copy of the GNU General Public License
1.23 +# along with this program; if not, write to the Free Software
1.24 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1.25 +# 02110-1301, USA.
1.26 +#
1.27 +# As a special exception to the GNU General Public License, if you
1.28 +# distribute this file as part of a program that contains a
1.29 +# configuration script generated by Autoconf, you may include it under
1.30 +# the same distribution terms that you use for the rest of that program.
1.31 +
1.32 +
1.33 +# Originally written by Per Bothner <per@bothner.com>.
1.34 +# Please send patches to <config-patches@gnu.org>. Submit a context
1.35 +# diff and a properly formatted ChangeLog entry.
1.36 +#
1.37 +# This script attempts to guess a canonical system name similar to
1.38 +# config.sub. If it succeeds, it prints the system name on stdout, and
1.39 +# exits with 0. Otherwise, it exits with 1.
1.40 +#
1.41 +# The plan is that this can be called by configure scripts if you
1.42 +# don't specify an explicit build system type.
1.43 +
1.44 +me=`echo "$0" | sed -e 's,.*/,,'`
1.45 +
1.46 +usage="\
1.47 +Usage: $0 [OPTION]
1.48 +
1.49 +Output the configuration name of the system \`$me' is run on.
1.50 +
1.51 +Operation modes:
1.52 + -h, --help print this help, then exit
1.53 + -t, --time-stamp print date of last modification, then exit
1.54 + -v, --version print version number, then exit
1.55 +
1.56 +Report bugs and patches to <config-patches@gnu.org>."
1.57 +
1.58 +version="\
1.59 +GNU config.guess ($timestamp)
1.60 +
1.61 +Originally written by Per Bothner.
1.62 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.63 +Free Software Foundation, Inc.
1.64 +
1.65 +This is free software; see the source for copying conditions. There is NO
1.66 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1.67 +
1.68 +help="
1.69 +Try \`$me --help' for more information."
1.70 +
1.71 +# Parse command line
1.72 +while test $# -gt 0 ; do
1.73 + case $1 in
1.74 + --time-stamp | --time* | -t )
1.75 + echo "$timestamp" ; exit ;;
1.76 + --version | -v )
1.77 + echo "$version" ; exit ;;
1.78 + --help | --h* | -h )
1.79 + echo "$usage"; exit ;;
1.80 + -- ) # Stop option processing
1.81 + shift; break ;;
1.82 + - ) # Use stdin as input.
1.83 + break ;;
1.84 + -* )
1.85 + echo "$me: invalid option $1$help" >&2
1.86 + exit 1 ;;
1.87 + * )
1.88 + break ;;
1.89 + esac
1.90 +done
1.91 +
1.92 +if test $# != 0; then
1.93 + echo "$me: too many arguments$help" >&2
1.94 + exit 1
1.95 +fi
1.96 +
1.97 +trap 'exit 1' 1 2 15
1.98 +
1.99 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
1.100 +# compiler to aid in system detection is discouraged as it requires
1.101 +# temporary files to be created and, as you can see below, it is a
1.102 +# headache to deal with in a portable fashion.
1.103 +
1.104 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
1.105 +# use `HOST_CC' if defined, but it is deprecated.
1.106 +
1.107 +# Portable tmp directory creation inspired by the Autoconf team.
1.108 +
1.109 +set_cc_for_build='
1.110 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
1.111 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
1.112 +: ${TMPDIR=/tmp} ;
1.113 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
1.114 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
1.115 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
1.116 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
1.117 +dummy=$tmp/dummy ;
1.118 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
1.119 +case $CC_FOR_BUILD,$HOST_CC,$CC in
1.120 + ,,) echo "int x;" > $dummy.c ;
1.121 + for c in cc gcc c89 c99 ; do
1.122 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1.123 + CC_FOR_BUILD="$c"; break ;
1.124 + fi ;
1.125 + done ;
1.126 + if test x"$CC_FOR_BUILD" = x ; then
1.127 + CC_FOR_BUILD=no_compiler_found ;
1.128 + fi
1.129 + ;;
1.130 + ,,*) CC_FOR_BUILD=$CC ;;
1.131 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
1.132 +esac ; set_cc_for_build= ;'
1.133 +
1.134 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1.135 +# (ghazi@noc.rutgers.edu 1994-08-24)
1.136 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
1.137 + PATH=$PATH:/.attbin ; export PATH
1.138 +fi
1.139 +
1.140 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
1.141 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
1.142 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
1.143 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
1.144 +
1.145 +# Note: order is significant - the case branches are not exclusive.
1.146 +
1.147 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1.148 + *:NetBSD:*:*)
1.149 + # NetBSD (nbsd) targets should (where applicable) match one or
1.150 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
1.151 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
1.152 + # switched to ELF, *-*-netbsd* would select the old
1.153 + # object file format. This provides both forward
1.154 + # compatibility and a consistent mechanism for selecting the
1.155 + # object file format.
1.156 + #
1.157 + # Note: NetBSD doesn't particularly care about the vendor
1.158 + # portion of the name. We always set it to "unknown".
1.159 + sysctl="sysctl -n hw.machine_arch"
1.160 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
1.161 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
1.162 + case "${UNAME_MACHINE_ARCH}" in
1.163 + armeb) machine=armeb-unknown ;;
1.164 + arm*) machine=arm-unknown ;;
1.165 + sh3el) machine=shl-unknown ;;
1.166 + sh3eb) machine=sh-unknown ;;
1.167 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1.168 + esac
1.169 + # The Operating System including object format, if it has switched
1.170 + # to ELF recently, or will in the future.
1.171 + case "${UNAME_MACHINE_ARCH}" in
1.172 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1.173 + eval $set_cc_for_build
1.174 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1.175 + | grep __ELF__ >/dev/null
1.176 + then
1.177 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
1.178 + # Return netbsd for either. FIX?
1.179 + os=netbsd
1.180 + else
1.181 + os=netbsdelf
1.182 + fi
1.183 + ;;
1.184 + *)
1.185 + os=netbsd
1.186 + ;;
1.187 + esac
1.188 + # The OS release
1.189 + # Debian GNU/NetBSD machines have a different userland, and
1.190 + # thus, need a distinct triplet. However, they do not need
1.191 + # kernel version information, so it can be replaced with a
1.192 + # suitable tag, in the style of linux-gnu.
1.193 + case "${UNAME_VERSION}" in
1.194 + Debian*)
1.195 + release='-gnu'
1.196 + ;;
1.197 + *)
1.198 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1.199 + ;;
1.200 + esac
1.201 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
1.202 + # contains redundant information, the shorter form:
1.203 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
1.204 + echo "${machine}-${os}${release}"
1.205 + exit ;;
1.206 + *:OpenBSD:*:*)
1.207 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
1.208 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
1.209 + exit ;;
1.210 + *:ekkoBSD:*:*)
1.211 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
1.212 + exit ;;
1.213 + *:SolidBSD:*:*)
1.214 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
1.215 + exit ;;
1.216 + macppc:MirBSD:*:*)
1.217 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
1.218 + exit ;;
1.219 + *:MirBSD:*:*)
1.220 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
1.221 + exit ;;
1.222 + alpha:OSF1:*:*)
1.223 + case $UNAME_RELEASE in
1.224 + *4.0)
1.225 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
1.226 + ;;
1.227 + *5.*)
1.228 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
1.229 + ;;
1.230 + esac
1.231 + # According to Compaq, /usr/sbin/psrinfo has been available on
1.232 + # OSF/1 and Tru64 systems produced since 1995. I hope that
1.233 + # covers most systems running today. This code pipes the CPU
1.234 + # types through head -n 1, so we only detect the type of CPU 0.
1.235 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
1.236 + case "$ALPHA_CPU_TYPE" in
1.237 + "EV4 (21064)")
1.238 + UNAME_MACHINE="alpha" ;;
1.239 + "EV4.5 (21064)")
1.240 + UNAME_MACHINE="alpha" ;;
1.241 + "LCA4 (21066/21068)")
1.242 + UNAME_MACHINE="alpha" ;;
1.243 + "EV5 (21164)")
1.244 + UNAME_MACHINE="alphaev5" ;;
1.245 + "EV5.6 (21164A)")
1.246 + UNAME_MACHINE="alphaev56" ;;
1.247 + "EV5.6 (21164PC)")
1.248 + UNAME_MACHINE="alphapca56" ;;
1.249 + "EV5.7 (21164PC)")
1.250 + UNAME_MACHINE="alphapca57" ;;
1.251 + "EV6 (21264)")
1.252 + UNAME_MACHINE="alphaev6" ;;
1.253 + "EV6.7 (21264A)")
1.254 + UNAME_MACHINE="alphaev67" ;;
1.255 + "EV6.8CB (21264C)")
1.256 + UNAME_MACHINE="alphaev68" ;;
1.257 + "EV6.8AL (21264B)")
1.258 + UNAME_MACHINE="alphaev68" ;;
1.259 + "EV6.8CX (21264D)")
1.260 + UNAME_MACHINE="alphaev68" ;;
1.261 + "EV6.9A (21264/EV69A)")
1.262 + UNAME_MACHINE="alphaev69" ;;
1.263 + "EV7 (21364)")
1.264 + UNAME_MACHINE="alphaev7" ;;
1.265 + "EV7.9 (21364A)")
1.266 + UNAME_MACHINE="alphaev79" ;;
1.267 + esac
1.268 + # A Pn.n version is a patched version.
1.269 + # A Vn.n version is a released version.
1.270 + # A Tn.n version is a released field test version.
1.271 + # A Xn.n version is an unreleased experimental baselevel.
1.272 + # 1.2 uses "1.2" for uname -r.
1.273 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1.274 + exit ;;
1.275 + Alpha\ *:Windows_NT*:*)
1.276 + # How do we know it's Interix rather than the generic POSIX subsystem?
1.277 + # Should we change UNAME_MACHINE based on the output of uname instead
1.278 + # of the specific Alpha model?
1.279 + echo alpha-pc-interix
1.280 + exit ;;
1.281 + 21064:Windows_NT:50:3)
1.282 + echo alpha-dec-winnt3.5
1.283 + exit ;;
1.284 + Amiga*:UNIX_System_V:4.0:*)
1.285 + echo m68k-unknown-sysv4
1.286 + exit ;;
1.287 + *:[Aa]miga[Oo][Ss]:*:*)
1.288 + echo ${UNAME_MACHINE}-unknown-amigaos
1.289 + exit ;;
1.290 + *:[Mm]orph[Oo][Ss]:*:*)
1.291 + echo ${UNAME_MACHINE}-unknown-morphos
1.292 + exit ;;
1.293 + *:OS/390:*:*)
1.294 + echo i370-ibm-openedition
1.295 + exit ;;
1.296 + *:z/VM:*:*)
1.297 + echo s390-ibm-zvmoe
1.298 + exit ;;
1.299 + *:OS400:*:*)
1.300 + echo powerpc-ibm-os400
1.301 + exit ;;
1.302 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
1.303 + echo arm-acorn-riscix${UNAME_RELEASE}
1.304 + exit ;;
1.305 + arm:riscos:*:*|arm:RISCOS:*:*)
1.306 + echo arm-unknown-riscos
1.307 + exit ;;
1.308 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
1.309 + echo hppa1.1-hitachi-hiuxmpp
1.310 + exit ;;
1.311 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
1.312 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
1.313 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
1.314 + echo pyramid-pyramid-sysv3
1.315 + else
1.316 + echo pyramid-pyramid-bsd
1.317 + fi
1.318 + exit ;;
1.319 + NILE*:*:*:dcosx)
1.320 + echo pyramid-pyramid-svr4
1.321 + exit ;;
1.322 + DRS?6000:unix:4.0:6*)
1.323 + echo sparc-icl-nx6
1.324 + exit ;;
1.325 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
1.326 + case `/usr/bin/uname -p` in
1.327 + sparc) echo sparc-icl-nx7; exit ;;
1.328 + esac ;;
1.329 + sun4H:SunOS:5.*:*)
1.330 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1.331 + exit ;;
1.332 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
1.333 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1.334 + exit ;;
1.335 + i86pc:SunOS:5.*:*)
1.336 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1.337 + exit ;;
1.338 + sun4*:SunOS:6*:*)
1.339 + # According to config.sub, this is the proper way to canonicalize
1.340 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
1.341 + # it's likely to be more like Solaris than SunOS4.
1.342 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1.343 + exit ;;
1.344 + sun4*:SunOS:*:*)
1.345 + case "`/usr/bin/arch -k`" in
1.346 + Series*|S4*)
1.347 + UNAME_RELEASE=`uname -v`
1.348 + ;;
1.349 + esac
1.350 + # Japanese Language versions have a version number like `4.1.3-JL'.
1.351 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
1.352 + exit ;;
1.353 + sun3*:SunOS:*:*)
1.354 + echo m68k-sun-sunos${UNAME_RELEASE}
1.355 + exit ;;
1.356 + sun*:*:4.2BSD:*)
1.357 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
1.358 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
1.359 + case "`/bin/arch`" in
1.360 + sun3)
1.361 + echo m68k-sun-sunos${UNAME_RELEASE}
1.362 + ;;
1.363 + sun4)
1.364 + echo sparc-sun-sunos${UNAME_RELEASE}
1.365 + ;;
1.366 + esac
1.367 + exit ;;
1.368 + aushp:SunOS:*:*)
1.369 + echo sparc-auspex-sunos${UNAME_RELEASE}
1.370 + exit ;;
1.371 + # The situation for MiNT is a little confusing. The machine name
1.372 + # can be virtually everything (everything which is not
1.373 + # "atarist" or "atariste" at least should have a processor
1.374 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
1.375 + # to the lowercase version "mint" (or "freemint"). Finally
1.376 + # the system name "TOS" denotes a system which is actually not
1.377 + # MiNT. But MiNT is downward compatible to TOS, so this should
1.378 + # be no problem.
1.379 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
1.380 + echo m68k-atari-mint${UNAME_RELEASE}
1.381 + exit ;;
1.382 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
1.383 + echo m68k-atari-mint${UNAME_RELEASE}
1.384 + exit ;;
1.385 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
1.386 + echo m68k-atari-mint${UNAME_RELEASE}
1.387 + exit ;;
1.388 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
1.389 + echo m68k-milan-mint${UNAME_RELEASE}
1.390 + exit ;;
1.391 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
1.392 + echo m68k-hades-mint${UNAME_RELEASE}
1.393 + exit ;;
1.394 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
1.395 + echo m68k-unknown-mint${UNAME_RELEASE}
1.396 + exit ;;
1.397 + m68k:machten:*:*)
1.398 + echo m68k-apple-machten${UNAME_RELEASE}
1.399 + exit ;;
1.400 + powerpc:machten:*:*)
1.401 + echo powerpc-apple-machten${UNAME_RELEASE}
1.402 + exit ;;
1.403 + RISC*:Mach:*:*)
1.404 + echo mips-dec-mach_bsd4.3
1.405 + exit ;;
1.406 + RISC*:ULTRIX:*:*)
1.407 + echo mips-dec-ultrix${UNAME_RELEASE}
1.408 + exit ;;
1.409 + VAX*:ULTRIX*:*:*)
1.410 + echo vax-dec-ultrix${UNAME_RELEASE}
1.411 + exit ;;
1.412 + 2020:CLIX:*:* | 2430:CLIX:*:*)
1.413 + echo clipper-intergraph-clix${UNAME_RELEASE}
1.414 + exit ;;
1.415 + mips:*:*:UMIPS | mips:*:*:RISCos)
1.416 + eval $set_cc_for_build
1.417 + sed 's/^ //' << EOF >$dummy.c
1.418 +#ifdef __cplusplus
1.419 +#include <stdio.h> /* for printf() prototype */
1.420 + int main (int argc, char *argv[]) {
1.421 +#else
1.422 + int main (argc, argv) int argc; char *argv[]; {
1.423 +#endif
1.424 + #if defined (host_mips) && defined (MIPSEB)
1.425 + #if defined (SYSTYPE_SYSV)
1.426 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
1.427 + #endif
1.428 + #if defined (SYSTYPE_SVR4)
1.429 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
1.430 + #endif
1.431 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
1.432 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
1.433 + #endif
1.434 + #endif
1.435 + exit (-1);
1.436 + }
1.437 +EOF
1.438 + $CC_FOR_BUILD -o $dummy $dummy.c &&
1.439 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
1.440 + SYSTEM_NAME=`$dummy $dummyarg` &&
1.441 + { echo "$SYSTEM_NAME"; exit; }
1.442 + echo mips-mips-riscos${UNAME_RELEASE}
1.443 + exit ;;
1.444 + Motorola:PowerMAX_OS:*:*)
1.445 + echo powerpc-motorola-powermax
1.446 + exit ;;
1.447 + Motorola:*:4.3:PL8-*)
1.448 + echo powerpc-harris-powermax
1.449 + exit ;;
1.450 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
1.451 + echo powerpc-harris-powermax
1.452 + exit ;;
1.453 + Night_Hawk:Power_UNIX:*:*)
1.454 + echo powerpc-harris-powerunix
1.455 + exit ;;
1.456 + m88k:CX/UX:7*:*)
1.457 + echo m88k-harris-cxux7
1.458 + exit ;;
1.459 + m88k:*:4*:R4*)
1.460 + echo m88k-motorola-sysv4
1.461 + exit ;;
1.462 + m88k:*:3*:R3*)
1.463 + echo m88k-motorola-sysv3
1.464 + exit ;;
1.465 + AViiON:dgux:*:*)
1.466 + # DG/UX returns AViiON for all architectures
1.467 + UNAME_PROCESSOR=`/usr/bin/uname -p`
1.468 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
1.469 + then
1.470 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
1.471 + [ ${TARGET_BINARY_INTERFACE}x = x ]
1.472 + then
1.473 + echo m88k-dg-dgux${UNAME_RELEASE}
1.474 + else
1.475 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
1.476 + fi
1.477 + else
1.478 + echo i586-dg-dgux${UNAME_RELEASE}
1.479 + fi
1.480 + exit ;;
1.481 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
1.482 + echo m88k-dolphin-sysv3
1.483 + exit ;;
1.484 + M88*:*:R3*:*)
1.485 + # Delta 88k system running SVR3
1.486 + echo m88k-motorola-sysv3
1.487 + exit ;;
1.488 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
1.489 + echo m88k-tektronix-sysv3
1.490 + exit ;;
1.491 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
1.492 + echo m68k-tektronix-bsd
1.493 + exit ;;
1.494 + *:IRIX*:*:*)
1.495 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
1.496 + exit ;;
1.497 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
1.498 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
1.499 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
1.500 + i*86:AIX:*:*)
1.501 + echo i386-ibm-aix
1.502 + exit ;;
1.503 + ia64:AIX:*:*)
1.504 + if [ -x /usr/bin/oslevel ] ; then
1.505 + IBM_REV=`/usr/bin/oslevel`
1.506 + else
1.507 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
1.508 + fi
1.509 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
1.510 + exit ;;
1.511 + *:AIX:2:3)
1.512 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
1.513 + eval $set_cc_for_build
1.514 + sed 's/^ //' << EOF >$dummy.c
1.515 + #include <sys/systemcfg.h>
1.516 +
1.517 + main()
1.518 + {
1.519 + if (!__power_pc())
1.520 + exit(1);
1.521 + puts("powerpc-ibm-aix3.2.5");
1.522 + exit(0);
1.523 + }
1.524 +EOF
1.525 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
1.526 + then
1.527 + echo "$SYSTEM_NAME"
1.528 + else
1.529 + echo rs6000-ibm-aix3.2.5
1.530 + fi
1.531 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
1.532 + echo rs6000-ibm-aix3.2.4
1.533 + else
1.534 + echo rs6000-ibm-aix3.2
1.535 + fi
1.536 + exit ;;
1.537 + *:AIX:*:[45])
1.538 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
1.539 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
1.540 + IBM_ARCH=rs6000
1.541 + else
1.542 + IBM_ARCH=powerpc
1.543 + fi
1.544 + if [ -x /usr/bin/oslevel ] ; then
1.545 + IBM_REV=`/usr/bin/oslevel`
1.546 + else
1.547 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
1.548 + fi
1.549 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
1.550 + exit ;;
1.551 + *:AIX:*:*)
1.552 + echo rs6000-ibm-aix
1.553 + exit ;;
1.554 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
1.555 + echo romp-ibm-bsd4.4
1.556 + exit ;;
1.557 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
1.558 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
1.559 + exit ;; # report: romp-ibm BSD 4.3
1.560 + *:BOSX:*:*)
1.561 + echo rs6000-bull-bosx
1.562 + exit ;;
1.563 + DPX/2?00:B.O.S.:*:*)
1.564 + echo m68k-bull-sysv3
1.565 + exit ;;
1.566 + 9000/[34]??:4.3bsd:1.*:*)
1.567 + echo m68k-hp-bsd
1.568 + exit ;;
1.569 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
1.570 + echo m68k-hp-bsd4.4
1.571 + exit ;;
1.572 + 9000/[34678]??:HP-UX:*:*)
1.573 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1.574 + case "${UNAME_MACHINE}" in
1.575 + 9000/31? ) HP_ARCH=m68000 ;;
1.576 + 9000/[34]?? ) HP_ARCH=m68k ;;
1.577 + 9000/[678][0-9][0-9])
1.578 + if [ -x /usr/bin/getconf ]; then
1.579 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1.580 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
1.581 + case "${sc_cpu_version}" in
1.582 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
1.583 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
1.584 + 532) # CPU_PA_RISC2_0
1.585 + case "${sc_kernel_bits}" in
1.586 + 32) HP_ARCH="hppa2.0n" ;;
1.587 + 64) HP_ARCH="hppa2.0w" ;;
1.588 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
1.589 + esac ;;
1.590 + esac
1.591 + fi
1.592 + if [ "${HP_ARCH}" = "" ]; then
1.593 + eval $set_cc_for_build
1.594 + sed 's/^ //' << EOF >$dummy.c
1.595 +
1.596 + #define _HPUX_SOURCE
1.597 + #include <stdlib.h>
1.598 + #include <unistd.h>
1.599 +
1.600 + int main ()
1.601 + {
1.602 + #if defined(_SC_KERNEL_BITS)
1.603 + long bits = sysconf(_SC_KERNEL_BITS);
1.604 + #endif
1.605 + long cpu = sysconf (_SC_CPU_VERSION);
1.606 +
1.607 + switch (cpu)
1.608 + {
1.609 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
1.610 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
1.611 + case CPU_PA_RISC2_0:
1.612 + #if defined(_SC_KERNEL_BITS)
1.613 + switch (bits)
1.614 + {
1.615 + case 64: puts ("hppa2.0w"); break;
1.616 + case 32: puts ("hppa2.0n"); break;
1.617 + default: puts ("hppa2.0"); break;
1.618 + } break;
1.619 + #else /* !defined(_SC_KERNEL_BITS) */
1.620 + puts ("hppa2.0"); break;
1.621 + #endif
1.622 + default: puts ("hppa1.0"); break;
1.623 + }
1.624 + exit (0);
1.625 + }
1.626 +EOF
1.627 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
1.628 + test -z "$HP_ARCH" && HP_ARCH=hppa
1.629 + fi ;;
1.630 + esac
1.631 + if [ ${HP_ARCH} = "hppa2.0w" ]
1.632 + then
1.633 + eval $set_cc_for_build
1.634 +
1.635 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
1.636 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
1.637 + # generating 64-bit code. GNU and HP use different nomenclature:
1.638 + #
1.639 + # $ CC_FOR_BUILD=cc ./config.guess
1.640 + # => hppa2.0w-hp-hpux11.23
1.641 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
1.642 + # => hppa64-hp-hpux11.23
1.643 +
1.644 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
1.645 + grep __LP64__ >/dev/null
1.646 + then
1.647 + HP_ARCH="hppa2.0w"
1.648 + else
1.649 + HP_ARCH="hppa64"
1.650 + fi
1.651 + fi
1.652 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
1.653 + exit ;;
1.654 + ia64:HP-UX:*:*)
1.655 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1.656 + echo ia64-hp-hpux${HPUX_REV}
1.657 + exit ;;
1.658 + 3050*:HI-UX:*:*)
1.659 + eval $set_cc_for_build
1.660 + sed 's/^ //' << EOF >$dummy.c
1.661 + #include <unistd.h>
1.662 + int
1.663 + main ()
1.664 + {
1.665 + long cpu = sysconf (_SC_CPU_VERSION);
1.666 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
1.667 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
1.668 + results, however. */
1.669 + if (CPU_IS_PA_RISC (cpu))
1.670 + {
1.671 + switch (cpu)
1.672 + {
1.673 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
1.674 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
1.675 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
1.676 + default: puts ("hppa-hitachi-hiuxwe2"); break;
1.677 + }
1.678 + }
1.679 + else if (CPU_IS_HP_MC68K (cpu))
1.680 + puts ("m68k-hitachi-hiuxwe2");
1.681 + else puts ("unknown-hitachi-hiuxwe2");
1.682 + exit (0);
1.683 + }
1.684 +EOF
1.685 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
1.686 + { echo "$SYSTEM_NAME"; exit; }
1.687 + echo unknown-hitachi-hiuxwe2
1.688 + exit ;;
1.689 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
1.690 + echo hppa1.1-hp-bsd
1.691 + exit ;;
1.692 + 9000/8??:4.3bsd:*:*)
1.693 + echo hppa1.0-hp-bsd
1.694 + exit ;;
1.695 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
1.696 + echo hppa1.0-hp-mpeix
1.697 + exit ;;
1.698 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
1.699 + echo hppa1.1-hp-osf
1.700 + exit ;;
1.701 + hp8??:OSF1:*:*)
1.702 + echo hppa1.0-hp-osf
1.703 + exit ;;
1.704 + i*86:OSF1:*:*)
1.705 + if [ -x /usr/sbin/sysversion ] ; then
1.706 + echo ${UNAME_MACHINE}-unknown-osf1mk
1.707 + else
1.708 + echo ${UNAME_MACHINE}-unknown-osf1
1.709 + fi
1.710 + exit ;;
1.711 + parisc*:Lites*:*:*)
1.712 + echo hppa1.1-hp-lites
1.713 + exit ;;
1.714 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
1.715 + echo c1-convex-bsd
1.716 + exit ;;
1.717 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
1.718 + if getsysinfo -f scalar_acc
1.719 + then echo c32-convex-bsd
1.720 + else echo c2-convex-bsd
1.721 + fi
1.722 + exit ;;
1.723 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
1.724 + echo c34-convex-bsd
1.725 + exit ;;
1.726 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
1.727 + echo c38-convex-bsd
1.728 + exit ;;
1.729 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
1.730 + echo c4-convex-bsd
1.731 + exit ;;
1.732 + CRAY*Y-MP:*:*:*)
1.733 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.734 + exit ;;
1.735 + CRAY*[A-Z]90:*:*:*)
1.736 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
1.737 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
1.738 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
1.739 + -e 's/\.[^.]*$/.X/'
1.740 + exit ;;
1.741 + CRAY*TS:*:*:*)
1.742 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.743 + exit ;;
1.744 + CRAY*T3E:*:*:*)
1.745 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.746 + exit ;;
1.747 + CRAY*SV1:*:*:*)
1.748 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.749 + exit ;;
1.750 + *:UNICOS/mp:*:*)
1.751 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.752 + exit ;;
1.753 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
1.754 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1.755 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1.756 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
1.757 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1.758 + exit ;;
1.759 + 5000:UNIX_System_V:4.*:*)
1.760 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1.761 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
1.762 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1.763 + exit ;;
1.764 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
1.765 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
1.766 + exit ;;
1.767 + sparc*:BSD/OS:*:*)
1.768 + echo sparc-unknown-bsdi${UNAME_RELEASE}
1.769 + exit ;;
1.770 + *:BSD/OS:*:*)
1.771 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
1.772 + exit ;;
1.773 + *:FreeBSD:*:*)
1.774 + case ${UNAME_MACHINE} in
1.775 + pc98)
1.776 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1.777 + amd64)
1.778 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1.779 + *)
1.780 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1.781 + esac
1.782 + exit ;;
1.783 + i*:CYGWIN*:*)
1.784 + echo ${UNAME_MACHINE}-pc-cygwin
1.785 + exit ;;
1.786 + i*:MINGW*:*)
1.787 + echo ${UNAME_MACHINE}-pc-mingw32
1.788 + exit ;;
1.789 + i*:windows32*:*)
1.790 + # uname -m includes "-pc" on this system.
1.791 + echo ${UNAME_MACHINE}-mingw32
1.792 + exit ;;
1.793 + i*:PW*:*)
1.794 + echo ${UNAME_MACHINE}-pc-pw32
1.795 + exit ;;
1.796 + x86:Interix*:[3456]*)
1.797 + echo i586-pc-interix${UNAME_RELEASE}
1.798 + exit ;;
1.799 + EM64T:Interix*:[3456]*)
1.800 + echo x86_64-unknown-interix${UNAME_RELEASE}
1.801 + exit ;;
1.802 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
1.803 + echo i${UNAME_MACHINE}-pc-mks
1.804 + exit ;;
1.805 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
1.806 + # How do we know it's Interix rather than the generic POSIX subsystem?
1.807 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
1.808 + # UNAME_MACHINE based on the output of uname instead of i386?
1.809 + echo i586-pc-interix
1.810 + exit ;;
1.811 + i*:UWIN*:*)
1.812 + echo ${UNAME_MACHINE}-pc-uwin
1.813 + exit ;;
1.814 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
1.815 + echo x86_64-unknown-cygwin
1.816 + exit ;;
1.817 + p*:CYGWIN*:*)
1.818 + echo powerpcle-unknown-cygwin
1.819 + exit ;;
1.820 + prep*:SunOS:5.*:*)
1.821 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1.822 + exit ;;
1.823 + *:GNU:*:*)
1.824 + # the GNU system
1.825 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
1.826 + exit ;;
1.827 + *:GNU/*:*:*)
1.828 + # other systems with GNU libc and userland
1.829 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
1.830 + exit ;;
1.831 + i*86:Minix:*:*)
1.832 + echo ${UNAME_MACHINE}-pc-minix
1.833 + exit ;;
1.834 + arm*:Linux:*:*)
1.835 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.836 + exit ;;
1.837 + avr32*:Linux:*:*)
1.838 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.839 + exit ;;
1.840 + cris:Linux:*:*)
1.841 + echo cris-axis-linux-gnu
1.842 + exit ;;
1.843 + crisv32:Linux:*:*)
1.844 + echo crisv32-axis-linux-gnu
1.845 + exit ;;
1.846 + frv:Linux:*:*)
1.847 + echo frv-unknown-linux-gnu
1.848 + exit ;;
1.849 + ia64:Linux:*:*)
1.850 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.851 + exit ;;
1.852 + m32r*:Linux:*:*)
1.853 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.854 + exit ;;
1.855 + m68*:Linux:*:*)
1.856 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.857 + exit ;;
1.858 + mips:Linux:*:*)
1.859 + eval $set_cc_for_build
1.860 + sed 's/^ //' << EOF >$dummy.c
1.861 + #undef CPU
1.862 + #undef mips
1.863 + #undef mipsel
1.864 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1.865 + CPU=mipsel
1.866 + #else
1.867 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1.868 + CPU=mips
1.869 + #else
1.870 + CPU=
1.871 + #endif
1.872 + #endif
1.873 +EOF
1.874 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1.875 + /^CPU/{
1.876 + s: ::g
1.877 + p
1.878 + }'`"
1.879 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1.880 + ;;
1.881 + mips64:Linux:*:*)
1.882 + eval $set_cc_for_build
1.883 + sed 's/^ //' << EOF >$dummy.c
1.884 + #undef CPU
1.885 + #undef mips64
1.886 + #undef mips64el
1.887 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1.888 + CPU=mips64el
1.889 + #else
1.890 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1.891 + CPU=mips64
1.892 + #else
1.893 + CPU=
1.894 + #endif
1.895 + #endif
1.896 +EOF
1.897 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1.898 + /^CPU/{
1.899 + s: ::g
1.900 + p
1.901 + }'`"
1.902 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1.903 + ;;
1.904 + or32:Linux:*:*)
1.905 + echo or32-unknown-linux-gnu
1.906 + exit ;;
1.907 + ppc:Linux:*:*)
1.908 + echo powerpc-unknown-linux-gnu
1.909 + exit ;;
1.910 + ppc64:Linux:*:*)
1.911 + echo powerpc64-unknown-linux-gnu
1.912 + exit ;;
1.913 + alpha:Linux:*:*)
1.914 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
1.915 + EV5) UNAME_MACHINE=alphaev5 ;;
1.916 + EV56) UNAME_MACHINE=alphaev56 ;;
1.917 + PCA56) UNAME_MACHINE=alphapca56 ;;
1.918 + PCA57) UNAME_MACHINE=alphapca56 ;;
1.919 + EV6) UNAME_MACHINE=alphaev6 ;;
1.920 + EV67) UNAME_MACHINE=alphaev67 ;;
1.921 + EV68*) UNAME_MACHINE=alphaev68 ;;
1.922 + esac
1.923 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
1.924 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
1.925 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
1.926 + exit ;;
1.927 + parisc:Linux:*:* | hppa:Linux:*:*)
1.928 + # Look for CPU level
1.929 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1.930 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
1.931 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
1.932 + *) echo hppa-unknown-linux-gnu ;;
1.933 + esac
1.934 + exit ;;
1.935 + parisc64:Linux:*:* | hppa64:Linux:*:*)
1.936 + echo hppa64-unknown-linux-gnu
1.937 + exit ;;
1.938 + s390:Linux:*:* | s390x:Linux:*:*)
1.939 + echo ${UNAME_MACHINE}-ibm-linux
1.940 + exit ;;
1.941 + sh64*:Linux:*:*)
1.942 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.943 + exit ;;
1.944 + sh*:Linux:*:*)
1.945 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.946 + exit ;;
1.947 + sparc:Linux:*:* | sparc64:Linux:*:*)
1.948 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1.949 + exit ;;
1.950 + vax:Linux:*:*)
1.951 + echo ${UNAME_MACHINE}-dec-linux-gnu
1.952 + exit ;;
1.953 + x86_64:Linux:*:*)
1.954 + echo x86_64-unknown-linux-gnu
1.955 + exit ;;
1.956 + i*86:Linux:*:*)
1.957 + # The BFD linker knows what the default object file format is, so
1.958 + # first see if it will tell us. cd to the root directory to prevent
1.959 + # problems with other programs or directories called `ld' in the path.
1.960 + # Set LC_ALL=C to ensure ld outputs messages in English.
1.961 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
1.962 + | sed -ne '/supported targets:/!d
1.963 + s/[ ][ ]*/ /g
1.964 + s/.*supported targets: *//
1.965 + s/ .*//
1.966 + p'`
1.967 + case "$ld_supported_targets" in
1.968 + elf32-i386)
1.969 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1.970 + ;;
1.971 + a.out-i386-linux)
1.972 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1.973 + exit ;;
1.974 + coff-i386)
1.975 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
1.976 + exit ;;
1.977 + "")
1.978 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
1.979 + # one that does not give us useful --help.
1.980 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1.981 + exit ;;
1.982 + esac
1.983 + # Determine whether the default compiler is a.out or elf
1.984 + eval $set_cc_for_build
1.985 + sed 's/^ //' << EOF >$dummy.c
1.986 + #include <features.h>
1.987 + #ifdef __ELF__
1.988 + # ifdef __GLIBC__
1.989 + # if __GLIBC__ >= 2
1.990 + LIBC=gnu
1.991 + # else
1.992 + LIBC=gnulibc1
1.993 + # endif
1.994 + # else
1.995 + LIBC=gnulibc1
1.996 + # endif
1.997 + #else
1.998 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1.999 + LIBC=gnu
1.1000 + #else
1.1001 + LIBC=gnuaout
1.1002 + #endif
1.1003 + #endif
1.1004 + #ifdef __dietlibc__
1.1005 + LIBC=dietlibc
1.1006 + #endif
1.1007 +EOF
1.1008 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1.1009 + /^LIBC/{
1.1010 + s: ::g
1.1011 + p
1.1012 + }'`"
1.1013 + test x"${LIBC}" != x && {
1.1014 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1.1015 + exit
1.1016 + }
1.1017 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1.1018 + ;;
1.1019 + i*86:DYNIX/ptx:4*:*)
1.1020 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1.1021 + # earlier versions are messed up and put the nodename in both
1.1022 + # sysname and nodename.
1.1023 + echo i386-sequent-sysv4
1.1024 + exit ;;
1.1025 + i*86:UNIX_SV:4.2MP:2.*)
1.1026 + # Unixware is an offshoot of SVR4, but it has its own version
1.1027 + # number series starting with 2...
1.1028 + # I am not positive that other SVR4 systems won't match this,
1.1029 + # I just have to hope. -- rms.
1.1030 + # Use sysv4.2uw... so that sysv4* matches it.
1.1031 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1.1032 + exit ;;
1.1033 + i*86:OS/2:*:*)
1.1034 + # If we were able to find `uname', then EMX Unix compatibility
1.1035 + # is probably installed.
1.1036 + echo ${UNAME_MACHINE}-pc-os2-emx
1.1037 + exit ;;
1.1038 + i*86:XTS-300:*:STOP)
1.1039 + echo ${UNAME_MACHINE}-unknown-stop
1.1040 + exit ;;
1.1041 + i*86:atheos:*:*)
1.1042 + echo ${UNAME_MACHINE}-unknown-atheos
1.1043 + exit ;;
1.1044 + i*86:syllable:*:*)
1.1045 + echo ${UNAME_MACHINE}-pc-syllable
1.1046 + exit ;;
1.1047 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1.1048 + echo i386-unknown-lynxos${UNAME_RELEASE}
1.1049 + exit ;;
1.1050 + i*86:*DOS:*:*)
1.1051 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
1.1052 + exit ;;
1.1053 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1.1054 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1.1055 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1.1056 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1.1057 + else
1.1058 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1.1059 + fi
1.1060 + exit ;;
1.1061 + i*86:*:5:[678]*)
1.1062 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
1.1063 + case `/bin/uname -X | grep "^Machine"` in
1.1064 + *486*) UNAME_MACHINE=i486 ;;
1.1065 + *Pentium) UNAME_MACHINE=i586 ;;
1.1066 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1.1067 + esac
1.1068 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1.1069 + exit ;;
1.1070 + i*86:*:3.2:*)
1.1071 + if test -f /usr/options/cb.name; then
1.1072 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1.1073 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1.1074 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
1.1075 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1.1076 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1.1077 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1.1078 + && UNAME_MACHINE=i586
1.1079 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1.1080 + && UNAME_MACHINE=i686
1.1081 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1.1082 + && UNAME_MACHINE=i686
1.1083 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1.1084 + else
1.1085 + echo ${UNAME_MACHINE}-pc-sysv32
1.1086 + fi
1.1087 + exit ;;
1.1088 + pc:*:*:*)
1.1089 + # Left here for compatibility:
1.1090 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
1.1091 + # the processor, so we play safe by assuming i386.
1.1092 + echo i386-pc-msdosdjgpp
1.1093 + exit ;;
1.1094 + Intel:Mach:3*:*)
1.1095 + echo i386-pc-mach3
1.1096 + exit ;;
1.1097 + paragon:*:*:*)
1.1098 + echo i860-intel-osf1
1.1099 + exit ;;
1.1100 + i860:*:4.*:*) # i860-SVR4
1.1101 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1.1102 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1.1103 + else # Add other i860-SVR4 vendors below as they are discovered.
1.1104 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1.1105 + fi
1.1106 + exit ;;
1.1107 + mini*:CTIX:SYS*5:*)
1.1108 + # "miniframe"
1.1109 + echo m68010-convergent-sysv
1.1110 + exit ;;
1.1111 + mc68k:UNIX:SYSTEM5:3.51m)
1.1112 + echo m68k-convergent-sysv
1.1113 + exit ;;
1.1114 + M680?0:D-NIX:5.3:*)
1.1115 + echo m68k-diab-dnix
1.1116 + exit ;;
1.1117 + M68*:*:R3V[5678]*:*)
1.1118 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1.1119 + 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)
1.1120 + OS_REL=''
1.1121 + test -r /etc/.relid \
1.1122 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1.1123 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1.1124 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1.1125 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1.1126 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1.1127 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1.1128 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1.1129 + && { echo i486-ncr-sysv4; exit; } ;;
1.1130 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1.1131 + echo m68k-unknown-lynxos${UNAME_RELEASE}
1.1132 + exit ;;
1.1133 + mc68030:UNIX_System_V:4.*:*)
1.1134 + echo m68k-atari-sysv4
1.1135 + exit ;;
1.1136 + TSUNAMI:LynxOS:2.*:*)
1.1137 + echo sparc-unknown-lynxos${UNAME_RELEASE}
1.1138 + exit ;;
1.1139 + rs6000:LynxOS:2.*:*)
1.1140 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
1.1141 + exit ;;
1.1142 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1.1143 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
1.1144 + exit ;;
1.1145 + SM[BE]S:UNIX_SV:*:*)
1.1146 + echo mips-dde-sysv${UNAME_RELEASE}
1.1147 + exit ;;
1.1148 + RM*:ReliantUNIX-*:*:*)
1.1149 + echo mips-sni-sysv4
1.1150 + exit ;;
1.1151 + RM*:SINIX-*:*:*)
1.1152 + echo mips-sni-sysv4
1.1153 + exit ;;
1.1154 + *:SINIX-*:*:*)
1.1155 + if uname -p 2>/dev/null >/dev/null ; then
1.1156 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1.1157 + echo ${UNAME_MACHINE}-sni-sysv4
1.1158 + else
1.1159 + echo ns32k-sni-sysv
1.1160 + fi
1.1161 + exit ;;
1.1162 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1.1163 + # says <Richard.M.Bartel@ccMail.Census.GOV>
1.1164 + echo i586-unisys-sysv4
1.1165 + exit ;;
1.1166 + *:UNIX_System_V:4*:FTX*)
1.1167 + # From Gerald Hewes <hewes@openmarket.com>.
1.1168 + # How about differentiating between stratus architectures? -djm
1.1169 + echo hppa1.1-stratus-sysv4
1.1170 + exit ;;
1.1171 + *:*:*:FTX*)
1.1172 + # From seanf@swdc.stratus.com.
1.1173 + echo i860-stratus-sysv4
1.1174 + exit ;;
1.1175 + i*86:VOS:*:*)
1.1176 + # From Paul.Green@stratus.com.
1.1177 + echo ${UNAME_MACHINE}-stratus-vos
1.1178 + exit ;;
1.1179 + *:VOS:*:*)
1.1180 + # From Paul.Green@stratus.com.
1.1181 + echo hppa1.1-stratus-vos
1.1182 + exit ;;
1.1183 + mc68*:A/UX:*:*)
1.1184 + echo m68k-apple-aux${UNAME_RELEASE}
1.1185 + exit ;;
1.1186 + news*:NEWS-OS:6*:*)
1.1187 + echo mips-sony-newsos6
1.1188 + exit ;;
1.1189 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1.1190 + if [ -d /usr/nec ]; then
1.1191 + echo mips-nec-sysv${UNAME_RELEASE}
1.1192 + else
1.1193 + echo mips-unknown-sysv${UNAME_RELEASE}
1.1194 + fi
1.1195 + exit ;;
1.1196 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1.1197 + echo powerpc-be-beos
1.1198 + exit ;;
1.1199 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1.1200 + echo powerpc-apple-beos
1.1201 + exit ;;
1.1202 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1.1203 + echo i586-pc-beos
1.1204 + exit ;;
1.1205 + SX-4:SUPER-UX:*:*)
1.1206 + echo sx4-nec-superux${UNAME_RELEASE}
1.1207 + exit ;;
1.1208 + SX-5:SUPER-UX:*:*)
1.1209 + echo sx5-nec-superux${UNAME_RELEASE}
1.1210 + exit ;;
1.1211 + SX-6:SUPER-UX:*:*)
1.1212 + echo sx6-nec-superux${UNAME_RELEASE}
1.1213 + exit ;;
1.1214 + Power*:Rhapsody:*:*)
1.1215 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
1.1216 + exit ;;
1.1217 + *:Rhapsody:*:*)
1.1218 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1.1219 + exit ;;
1.1220 + *:Darwin:*:*)
1.1221 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1.1222 + case $UNAME_PROCESSOR in
1.1223 + unknown) UNAME_PROCESSOR=powerpc ;;
1.1224 + esac
1.1225 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1.1226 + exit ;;
1.1227 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
1.1228 + UNAME_PROCESSOR=`uname -p`
1.1229 + if test "$UNAME_PROCESSOR" = "x86"; then
1.1230 + UNAME_PROCESSOR=i386
1.1231 + UNAME_MACHINE=pc
1.1232 + fi
1.1233 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1.1234 + exit ;;
1.1235 + *:QNX:*:4*)
1.1236 + echo i386-pc-qnx
1.1237 + exit ;;
1.1238 + NSE-?:NONSTOP_KERNEL:*:*)
1.1239 + echo nse-tandem-nsk${UNAME_RELEASE}
1.1240 + exit ;;
1.1241 + NSR-?:NONSTOP_KERNEL:*:*)
1.1242 + echo nsr-tandem-nsk${UNAME_RELEASE}
1.1243 + exit ;;
1.1244 + *:NonStop-UX:*:*)
1.1245 + echo mips-compaq-nonstopux
1.1246 + exit ;;
1.1247 + BS2000:POSIX*:*:*)
1.1248 + echo bs2000-siemens-sysv
1.1249 + exit ;;
1.1250 + DS/*:UNIX_System_V:*:*)
1.1251 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1.1252 + exit ;;
1.1253 + *:Plan9:*:*)
1.1254 + # "uname -m" is not consistent, so use $cputype instead. 386
1.1255 + # is converted to i386 for consistency with other x86
1.1256 + # operating systems.
1.1257 + if test "$cputype" = "386"; then
1.1258 + UNAME_MACHINE=i386
1.1259 + else
1.1260 + UNAME_MACHINE="$cputype"
1.1261 + fi
1.1262 + echo ${UNAME_MACHINE}-unknown-plan9
1.1263 + exit ;;
1.1264 + *:TOPS-10:*:*)
1.1265 + echo pdp10-unknown-tops10
1.1266 + exit ;;
1.1267 + *:TENEX:*:*)
1.1268 + echo pdp10-unknown-tenex
1.1269 + exit ;;
1.1270 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1.1271 + echo pdp10-dec-tops20
1.1272 + exit ;;
1.1273 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1.1274 + echo pdp10-xkl-tops20
1.1275 + exit ;;
1.1276 + *:TOPS-20:*:*)
1.1277 + echo pdp10-unknown-tops20
1.1278 + exit ;;
1.1279 + *:ITS:*:*)
1.1280 + echo pdp10-unknown-its
1.1281 + exit ;;
1.1282 + SEI:*:*:SEIUX)
1.1283 + echo mips-sei-seiux${UNAME_RELEASE}
1.1284 + exit ;;
1.1285 + *:DragonFly:*:*)
1.1286 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1.1287 + exit ;;
1.1288 + *:*VMS:*:*)
1.1289 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1.1290 + case "${UNAME_MACHINE}" in
1.1291 + A*) echo alpha-dec-vms ; exit ;;
1.1292 + I*) echo ia64-dec-vms ; exit ;;
1.1293 + V*) echo vax-dec-vms ; exit ;;
1.1294 + esac ;;
1.1295 + *:XENIX:*:SysV)
1.1296 + echo i386-pc-xenix
1.1297 + exit ;;
1.1298 + i*86:skyos:*:*)
1.1299 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1.1300 + exit ;;
1.1301 + i*86:rdos:*:*)
1.1302 + echo ${UNAME_MACHINE}-pc-rdos
1.1303 + exit ;;
1.1304 +esac
1.1305 +
1.1306 +#echo '(No uname command or uname output not recognized.)' 1>&2
1.1307 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1.1308 +
1.1309 +eval $set_cc_for_build
1.1310 +cat >$dummy.c <<EOF
1.1311 +#ifdef _SEQUENT_
1.1312 +# include <sys/types.h>
1.1313 +# include <sys/utsname.h>
1.1314 +#endif
1.1315 +main ()
1.1316 +{
1.1317 +#if defined (sony)
1.1318 +#if defined (MIPSEB)
1.1319 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1.1320 + I don't know.... */
1.1321 + printf ("mips-sony-bsd\n"); exit (0);
1.1322 +#else
1.1323 +#include <sys/param.h>
1.1324 + printf ("m68k-sony-newsos%s\n",
1.1325 +#ifdef NEWSOS4
1.1326 + "4"
1.1327 +#else
1.1328 + ""
1.1329 +#endif
1.1330 + ); exit (0);
1.1331 +#endif
1.1332 +#endif
1.1333 +
1.1334 +#if defined (__arm) && defined (__acorn) && defined (__unix)
1.1335 + printf ("arm-acorn-riscix\n"); exit (0);
1.1336 +#endif
1.1337 +
1.1338 +#if defined (hp300) && !defined (hpux)
1.1339 + printf ("m68k-hp-bsd\n"); exit (0);
1.1340 +#endif
1.1341 +
1.1342 +#if defined (NeXT)
1.1343 +#if !defined (__ARCHITECTURE__)
1.1344 +#define __ARCHITECTURE__ "m68k"
1.1345 +#endif
1.1346 + int version;
1.1347 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1.1348 + if (version < 4)
1.1349 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1.1350 + else
1.1351 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1.1352 + exit (0);
1.1353 +#endif
1.1354 +
1.1355 +#if defined (MULTIMAX) || defined (n16)
1.1356 +#if defined (UMAXV)
1.1357 + printf ("ns32k-encore-sysv\n"); exit (0);
1.1358 +#else
1.1359 +#if defined (CMU)
1.1360 + printf ("ns32k-encore-mach\n"); exit (0);
1.1361 +#else
1.1362 + printf ("ns32k-encore-bsd\n"); exit (0);
1.1363 +#endif
1.1364 +#endif
1.1365 +#endif
1.1366 +
1.1367 +#if defined (__386BSD__)
1.1368 + printf ("i386-pc-bsd\n"); exit (0);
1.1369 +#endif
1.1370 +
1.1371 +#if defined (sequent)
1.1372 +#if defined (i386)
1.1373 + printf ("i386-sequent-dynix\n"); exit (0);
1.1374 +#endif
1.1375 +#if defined (ns32000)
1.1376 + printf ("ns32k-sequent-dynix\n"); exit (0);
1.1377 +#endif
1.1378 +#endif
1.1379 +
1.1380 +#if defined (_SEQUENT_)
1.1381 + struct utsname un;
1.1382 +
1.1383 + uname(&un);
1.1384 +
1.1385 + if (strncmp(un.version, "V2", 2) == 0) {
1.1386 + printf ("i386-sequent-ptx2\n"); exit (0);
1.1387 + }
1.1388 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1.1389 + printf ("i386-sequent-ptx1\n"); exit (0);
1.1390 + }
1.1391 + printf ("i386-sequent-ptx\n"); exit (0);
1.1392 +
1.1393 +#endif
1.1394 +
1.1395 +#if defined (vax)
1.1396 +# if !defined (ultrix)
1.1397 +# include <sys/param.h>
1.1398 +# if defined (BSD)
1.1399 +# if BSD == 43
1.1400 + printf ("vax-dec-bsd4.3\n"); exit (0);
1.1401 +# else
1.1402 +# if BSD == 199006
1.1403 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
1.1404 +# else
1.1405 + printf ("vax-dec-bsd\n"); exit (0);
1.1406 +# endif
1.1407 +# endif
1.1408 +# else
1.1409 + printf ("vax-dec-bsd\n"); exit (0);
1.1410 +# endif
1.1411 +# else
1.1412 + printf ("vax-dec-ultrix\n"); exit (0);
1.1413 +# endif
1.1414 +#endif
1.1415 +
1.1416 +#if defined (alliant) && defined (i860)
1.1417 + printf ("i860-alliant-bsd\n"); exit (0);
1.1418 +#endif
1.1419 +
1.1420 + exit (1);
1.1421 +}
1.1422 +EOF
1.1423 +
1.1424 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1.1425 + { echo "$SYSTEM_NAME"; exit; }
1.1426 +
1.1427 +# Apollos put the system type in the environment.
1.1428 +
1.1429 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1.1430 +
1.1431 +# Convex versions that predate uname can use getsysinfo(1)
1.1432 +
1.1433 +if [ -x /usr/convex/getsysinfo ]
1.1434 +then
1.1435 + case `getsysinfo -f cpu_type` in
1.1436 + c1*)
1.1437 + echo c1-convex-bsd
1.1438 + exit ;;
1.1439 + c2*)
1.1440 + if getsysinfo -f scalar_acc
1.1441 + then echo c32-convex-bsd
1.1442 + else echo c2-convex-bsd
1.1443 + fi
1.1444 + exit ;;
1.1445 + c34*)
1.1446 + echo c34-convex-bsd
1.1447 + exit ;;
1.1448 + c38*)
1.1449 + echo c38-convex-bsd
1.1450 + exit ;;
1.1451 + c4*)
1.1452 + echo c4-convex-bsd
1.1453 + exit ;;
1.1454 + esac
1.1455 +fi
1.1456 +
1.1457 +cat >&2 <<EOF
1.1458 +$0: unable to guess system type
1.1459 +
1.1460 +This script, last modified $timestamp, has failed to recognize
1.1461 +the operating system you are using. It is advised that you
1.1462 +download the most up to date version of the config scripts from
1.1463 +
1.1464 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1.1465 +and
1.1466 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1.1467 +
1.1468 +If the version you run ($0) is already up to date, please
1.1469 +send the following data and any information you think might be
1.1470 +pertinent to <config-patches@gnu.org> in order to provide the needed
1.1471 +information to handle your system.
1.1472 +
1.1473 +config.guess timestamp = $timestamp
1.1474 +
1.1475 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1.1476 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1.1477 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1.1478 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1479 +
1.1480 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1.1481 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1.1482 +
1.1483 +hostinfo = `(hostinfo) 2>/dev/null`
1.1484 +/bin/universe = `(/bin/universe) 2>/dev/null`
1.1485 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1.1486 +/bin/arch = `(/bin/arch) 2>/dev/null`
1.1487 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1.1488 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1.1489 +
1.1490 +UNAME_MACHINE = ${UNAME_MACHINE}
1.1491 +UNAME_RELEASE = ${UNAME_RELEASE}
1.1492 +UNAME_SYSTEM = ${UNAME_SYSTEM}
1.1493 +UNAME_VERSION = ${UNAME_VERSION}
1.1494 +EOF
1.1495 +
1.1496 +exit 1
1.1497 +
1.1498 +# Local variables:
1.1499 +# eval: (add-hook 'write-file-hooks 'time-stamp)
1.1500 +# time-stamp-start: "timestamp='"
1.1501 +# time-stamp-format: "%:y-%02m-%02d"
1.1502 +# time-stamp-end: "'"
1.1503 +# End:
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/config.sub Sat Nov 17 01:30:01 2007 +0000
2.3 @@ -0,0 +1,1608 @@
2.4 +#! /bin/sh
2.5 +# Configuration validation subroutine script.
2.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
2.8 +# Inc.
2.9 +
2.10 +timestamp='2006-07-02'
2.11 +
2.12 +# This file is (in principle) common to ALL GNU software.
2.13 +# The presence of a machine in this file suggests that SOME GNU software
2.14 +# can handle that machine. It does not imply ALL GNU software can.
2.15 +#
2.16 +# This file is free software; you can redistribute it and/or modify
2.17 +# it under the terms of the GNU General Public License as published by
2.18 +# the Free Software Foundation; either version 2 of the License, or
2.19 +# (at your option) any later version.
2.20 +#
2.21 +# This program is distributed in the hope that it will be useful,
2.22 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2.23 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2.24 +# GNU General Public License for more details.
2.25 +#
2.26 +# You should have received a copy of the GNU General Public License
2.27 +# along with this program; if not, write to the Free Software
2.28 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
2.29 +# 02110-1301, USA.
2.30 +#
2.31 +# As a special exception to the GNU General Public License, if you
2.32 +# distribute this file as part of a program that contains a
2.33 +# configuration script generated by Autoconf, you may include it under
2.34 +# the same distribution terms that you use for the rest of that program.
2.35 +
2.36 +
2.37 +# Please send patches to <config-patches@gnu.org>. Submit a context
2.38 +# diff and a properly formatted ChangeLog entry.
2.39 +#
2.40 +# Configuration subroutine to validate and canonicalize a configuration type.
2.41 +# Supply the specified configuration type as an argument.
2.42 +# If it is invalid, we print an error message on stderr and exit with code 1.
2.43 +# Otherwise, we print the canonical config type on stdout and succeed.
2.44 +
2.45 +# This file is supposed to be the same for all GNU packages
2.46 +# and recognize all the CPU types, system types and aliases
2.47 +# that are meaningful with *any* GNU software.
2.48 +# Each package is responsible for reporting which valid configurations
2.49 +# it does not support. The user should be able to distinguish
2.50 +# a failure to support a valid configuration from a meaningless
2.51 +# configuration.
2.52 +
2.53 +# The goal of this file is to map all the various variations of a given
2.54 +# machine specification into a single specification in the form:
2.55 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
2.56 +# or in some cases, the newer four-part form:
2.57 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
2.58 +# It is wrong to echo any other type of specification.
2.59 +
2.60 +me=`echo "$0" | sed -e 's,.*/,,'`
2.61 +
2.62 +usage="\
2.63 +Usage: $0 [OPTION] CPU-MFR-OPSYS
2.64 + $0 [OPTION] ALIAS
2.65 +
2.66 +Canonicalize a configuration name.
2.67 +
2.68 +Operation modes:
2.69 + -h, --help print this help, then exit
2.70 + -t, --time-stamp print date of last modification, then exit
2.71 + -v, --version print version number, then exit
2.72 +
2.73 +Report bugs and patches to <config-patches@gnu.org>."
2.74 +
2.75 +version="\
2.76 +GNU config.sub ($timestamp)
2.77 +
2.78 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
2.79 +Free Software Foundation, Inc.
2.80 +
2.81 +This is free software; see the source for copying conditions. There is NO
2.82 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2.83 +
2.84 +help="
2.85 +Try \`$me --help' for more information."
2.86 +
2.87 +# Parse command line
2.88 +while test $# -gt 0 ; do
2.89 + case $1 in
2.90 + --time-stamp | --time* | -t )
2.91 + echo "$timestamp" ; exit ;;
2.92 + --version | -v )
2.93 + echo "$version" ; exit ;;
2.94 + --help | --h* | -h )
2.95 + echo "$usage"; exit ;;
2.96 + -- ) # Stop option processing
2.97 + shift; break ;;
2.98 + - ) # Use stdin as input.
2.99 + break ;;
2.100 + -* )
2.101 + echo "$me: invalid option $1$help"
2.102 + exit 1 ;;
2.103 +
2.104 + *local*)
2.105 + # First pass through any local machine types.
2.106 + echo $1
2.107 + exit ;;
2.108 +
2.109 + * )
2.110 + break ;;
2.111 + esac
2.112 +done
2.113 +
2.114 +case $# in
2.115 + 0) echo "$me: missing argument$help" >&2
2.116 + exit 1;;
2.117 + 1) ;;
2.118 + *) echo "$me: too many arguments$help" >&2
2.119 + exit 1;;
2.120 +esac
2.121 +
2.122 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
2.123 +# Here we must recognize all the valid KERNEL-OS combinations.
2.124 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
2.125 +case $maybe_os in
2.126 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
2.127 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
2.128 + storm-chaos* | os2-emx* | rtmk-nova*)
2.129 + os=-$maybe_os
2.130 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
2.131 + ;;
2.132 + *)
2.133 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
2.134 + if [ $basic_machine != $1 ]
2.135 + then os=`echo $1 | sed 's/.*-/-/'`
2.136 + else os=; fi
2.137 + ;;
2.138 +esac
2.139 +
2.140 +### Let's recognize common machines as not being operating systems so
2.141 +### that things like config.sub decstation-3100 work. We also
2.142 +### recognize some manufacturers as not being operating systems, so we
2.143 +### can provide default operating systems below.
2.144 +case $os in
2.145 + -sun*os*)
2.146 + # Prevent following clause from handling this invalid input.
2.147 + ;;
2.148 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
2.149 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
2.150 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
2.151 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
2.152 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
2.153 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
2.154 + -apple | -axis | -knuth | -cray)
2.155 + os=
2.156 + basic_machine=$1
2.157 + ;;
2.158 + -sim | -cisco | -oki | -wec | -winbond)
2.159 + os=
2.160 + basic_machine=$1
2.161 + ;;
2.162 + -scout)
2.163 + ;;
2.164 + -wrs)
2.165 + os=-vxworks
2.166 + basic_machine=$1
2.167 + ;;
2.168 + -chorusos*)
2.169 + os=-chorusos
2.170 + basic_machine=$1
2.171 + ;;
2.172 + -chorusrdb)
2.173 + os=-chorusrdb
2.174 + basic_machine=$1
2.175 + ;;
2.176 + -hiux*)
2.177 + os=-hiuxwe2
2.178 + ;;
2.179 + -sco6)
2.180 + os=-sco5v6
2.181 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.182 + ;;
2.183 + -sco5)
2.184 + os=-sco3.2v5
2.185 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.186 + ;;
2.187 + -sco4)
2.188 + os=-sco3.2v4
2.189 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.190 + ;;
2.191 + -sco3.2.[4-9]*)
2.192 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
2.193 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.194 + ;;
2.195 + -sco3.2v[4-9]*)
2.196 + # Don't forget version if it is 3.2v4 or newer.
2.197 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.198 + ;;
2.199 + -sco5v6*)
2.200 + # Don't forget version if it is 3.2v4 or newer.
2.201 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.202 + ;;
2.203 + -sco*)
2.204 + os=-sco3.2v2
2.205 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.206 + ;;
2.207 + -udk*)
2.208 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.209 + ;;
2.210 + -isc)
2.211 + os=-isc2.2
2.212 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.213 + ;;
2.214 + -clix*)
2.215 + basic_machine=clipper-intergraph
2.216 + ;;
2.217 + -isc*)
2.218 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2.219 + ;;
2.220 + -lynx*)
2.221 + os=-lynxos
2.222 + ;;
2.223 + -ptx*)
2.224 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
2.225 + ;;
2.226 + -windowsnt*)
2.227 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
2.228 + ;;
2.229 + -psos*)
2.230 + os=-psos
2.231 + ;;
2.232 + -mint | -mint[0-9]*)
2.233 + basic_machine=m68k-atari
2.234 + os=-mint
2.235 + ;;
2.236 +esac
2.237 +
2.238 +# Decode aliases for certain CPU-COMPANY combinations.
2.239 +case $basic_machine in
2.240 + # Recognize the basic CPU types without company name.
2.241 + # Some are omitted here because they have special meanings below.
2.242 + 1750a | 580 \
2.243 + | a29k \
2.244 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2.245 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2.246 + | am33_2.0 \
2.247 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
2.248 + | bfin \
2.249 + | c4x | clipper \
2.250 + | d10v | d30v | dlx | dsp16xx \
2.251 + | fr30 | frv \
2.252 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2.253 + | i370 | i860 | i960 | ia64 \
2.254 + | ip2k | iq2000 \
2.255 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
2.256 + | maxq | mb | microblaze | mcore \
2.257 + | mips | mipsbe | mipseb | mipsel | mipsle \
2.258 + | mips16 \
2.259 + | mips64 | mips64el \
2.260 + | mips64vr | mips64vrel \
2.261 + | mips64orion | mips64orionel \
2.262 + | mips64vr4100 | mips64vr4100el \
2.263 + | mips64vr4300 | mips64vr4300el \
2.264 + | mips64vr5000 | mips64vr5000el \
2.265 + | mips64vr5900 | mips64vr5900el \
2.266 + | mipsisa32 | mipsisa32el \
2.267 + | mipsisa32r2 | mipsisa32r2el \
2.268 + | mipsisa64 | mipsisa64el \
2.269 + | mipsisa64r2 | mipsisa64r2el \
2.270 + | mipsisa64sb1 | mipsisa64sb1el \
2.271 + | mipsisa64sr71k | mipsisa64sr71kel \
2.272 + | mipstx39 | mipstx39el \
2.273 + | mn10200 | mn10300 \
2.274 + | mt \
2.275 + | msp430 \
2.276 + | nios | nios2 \
2.277 + | ns16k | ns32k \
2.278 + | or32 \
2.279 + | pdp10 | pdp11 | pj | pjl \
2.280 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2.281 + | pyramid \
2.282 + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2.283 + | sh64 | sh64le \
2.284 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
2.285 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
2.286 + | spu | strongarm \
2.287 + | tahoe | thumb | tic4x | tic80 | tron \
2.288 + | v850 | v850e \
2.289 + | we32k \
2.290 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
2.291 + | z8k)
2.292 + basic_machine=$basic_machine-unknown
2.293 + ;;
2.294 + m6811 | m68hc11 | m6812 | m68hc12)
2.295 + # Motorola 68HC11/12.
2.296 + basic_machine=$basic_machine-unknown
2.297 + os=-none
2.298 + ;;
2.299 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
2.300 + ;;
2.301 + ms1)
2.302 + basic_machine=mt-unknown
2.303 + ;;
2.304 +
2.305 + # We use `pc' rather than `unknown'
2.306 + # because (1) that's what they normally are, and
2.307 + # (2) the word "unknown" tends to confuse beginning users.
2.308 + i*86 | x86_64)
2.309 + basic_machine=$basic_machine-pc
2.310 + ;;
2.311 + # Object if more than one company name word.
2.312 + *-*-*)
2.313 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2.314 + exit 1
2.315 + ;;
2.316 + # Recognize the basic CPU types with company name.
2.317 + 580-* \
2.318 + | a29k-* \
2.319 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
2.320 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
2.321 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
2.322 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
2.323 + | avr-* | avr32-* \
2.324 + | bfin-* | bs2000-* \
2.325 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
2.326 + | clipper-* | craynv-* | cydra-* \
2.327 + | d10v-* | d30v-* | dlx-* \
2.328 + | elxsi-* \
2.329 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
2.330 + | h8300-* | h8500-* \
2.331 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
2.332 + | i*86-* | i860-* | i960-* | ia64-* \
2.333 + | ip2k-* | iq2000-* \
2.334 + | m32c-* | m32r-* | m32rle-* \
2.335 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
2.336 + | m88110-* | m88k-* | maxq-* | mcore-* \
2.337 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
2.338 + | mips16-* \
2.339 + | mips64-* | mips64el-* \
2.340 + | mips64vr-* | mips64vrel-* \
2.341 + | mips64orion-* | mips64orionel-* \
2.342 + | mips64vr4100-* | mips64vr4100el-* \
2.343 + | mips64vr4300-* | mips64vr4300el-* \
2.344 + | mips64vr5000-* | mips64vr5000el-* \
2.345 + | mips64vr5900-* | mips64vr5900el-* \
2.346 + | mipsisa32-* | mipsisa32el-* \
2.347 + | mipsisa32r2-* | mipsisa32r2el-* \
2.348 + | mipsisa64-* | mipsisa64el-* \
2.349 + | mipsisa64r2-* | mipsisa64r2el-* \
2.350 + | mipsisa64sb1-* | mipsisa64sb1el-* \
2.351 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
2.352 + | mipstx39-* | mipstx39el-* \
2.353 + | mmix-* \
2.354 + | mt-* \
2.355 + | msp430-* \
2.356 + | nios-* | nios2-* \
2.357 + | none-* | np1-* | ns16k-* | ns32k-* \
2.358 + | orion-* \
2.359 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
2.360 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
2.361 + | pyramid-* \
2.362 + | romp-* | rs6000-* \
2.363 + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
2.364 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
2.365 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
2.366 + | sparclite-* \
2.367 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
2.368 + | tahoe-* | thumb-* \
2.369 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
2.370 + | tron-* \
2.371 + | v850-* | v850e-* | vax-* \
2.372 + | we32k-* \
2.373 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
2.374 + | xstormy16-* | xtensa-* \
2.375 + | ymp-* \
2.376 + | z8k-*)
2.377 + ;;
2.378 + # Recognize the various machine names and aliases which stand
2.379 + # for a CPU type and a company and sometimes even an OS.
2.380 + 386bsd)
2.381 + basic_machine=i386-unknown
2.382 + os=-bsd
2.383 + ;;
2.384 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
2.385 + basic_machine=m68000-att
2.386 + ;;
2.387 + 3b*)
2.388 + basic_machine=we32k-att
2.389 + ;;
2.390 + a29khif)
2.391 + basic_machine=a29k-amd
2.392 + os=-udi
2.393 + ;;
2.394 + abacus)
2.395 + basic_machine=abacus-unknown
2.396 + ;;
2.397 + adobe68k)
2.398 + basic_machine=m68010-adobe
2.399 + os=-scout
2.400 + ;;
2.401 + alliant | fx80)
2.402 + basic_machine=fx80-alliant
2.403 + ;;
2.404 + altos | altos3068)
2.405 + basic_machine=m68k-altos
2.406 + ;;
2.407 + am29k)
2.408 + basic_machine=a29k-none
2.409 + os=-bsd
2.410 + ;;
2.411 + amd64)
2.412 + basic_machine=x86_64-pc
2.413 + ;;
2.414 + amd64-*)
2.415 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
2.416 + ;;
2.417 + amdahl)
2.418 + basic_machine=580-amdahl
2.419 + os=-sysv
2.420 + ;;
2.421 + amiga | amiga-*)
2.422 + basic_machine=m68k-unknown
2.423 + ;;
2.424 + amigaos | amigados)
2.425 + basic_machine=m68k-unknown
2.426 + os=-amigaos
2.427 + ;;
2.428 + amigaunix | amix)
2.429 + basic_machine=m68k-unknown
2.430 + os=-sysv4
2.431 + ;;
2.432 + apollo68)
2.433 + basic_machine=m68k-apollo
2.434 + os=-sysv
2.435 + ;;
2.436 + apollo68bsd)
2.437 + basic_machine=m68k-apollo
2.438 + os=-bsd
2.439 + ;;
2.440 + aux)
2.441 + basic_machine=m68k-apple
2.442 + os=-aux
2.443 + ;;
2.444 + balance)
2.445 + basic_machine=ns32k-sequent
2.446 + os=-dynix
2.447 + ;;
2.448 + c90)
2.449 + basic_machine=c90-cray
2.450 + os=-unicos
2.451 + ;;
2.452 + convex-c1)
2.453 + basic_machine=c1-convex
2.454 + os=-bsd
2.455 + ;;
2.456 + convex-c2)
2.457 + basic_machine=c2-convex
2.458 + os=-bsd
2.459 + ;;
2.460 + convex-c32)
2.461 + basic_machine=c32-convex
2.462 + os=-bsd
2.463 + ;;
2.464 + convex-c34)
2.465 + basic_machine=c34-convex
2.466 + os=-bsd
2.467 + ;;
2.468 + convex-c38)
2.469 + basic_machine=c38-convex
2.470 + os=-bsd
2.471 + ;;
2.472 + cray | j90)
2.473 + basic_machine=j90-cray
2.474 + os=-unicos
2.475 + ;;
2.476 + craynv)
2.477 + basic_machine=craynv-cray
2.478 + os=-unicosmp
2.479 + ;;
2.480 + cr16c)
2.481 + basic_machine=cr16c-unknown
2.482 + os=-elf
2.483 + ;;
2.484 + crds | unos)
2.485 + basic_machine=m68k-crds
2.486 + ;;
2.487 + crisv32 | crisv32-* | etraxfs*)
2.488 + basic_machine=crisv32-axis
2.489 + ;;
2.490 + cris | cris-* | etrax*)
2.491 + basic_machine=cris-axis
2.492 + ;;
2.493 + crx)
2.494 + basic_machine=crx-unknown
2.495 + os=-elf
2.496 + ;;
2.497 + da30 | da30-*)
2.498 + basic_machine=m68k-da30
2.499 + ;;
2.500 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2.501 + basic_machine=mips-dec
2.502 + ;;
2.503 + decsystem10* | dec10*)
2.504 + basic_machine=pdp10-dec
2.505 + os=-tops10
2.506 + ;;
2.507 + decsystem20* | dec20*)
2.508 + basic_machine=pdp10-dec
2.509 + os=-tops20
2.510 + ;;
2.511 + delta | 3300 | motorola-3300 | motorola-delta \
2.512 + | 3300-motorola | delta-motorola)
2.513 + basic_machine=m68k-motorola
2.514 + ;;
2.515 + delta88)
2.516 + basic_machine=m88k-motorola
2.517 + os=-sysv3
2.518 + ;;
2.519 + djgpp)
2.520 + basic_machine=i586-pc
2.521 + os=-msdosdjgpp
2.522 + ;;
2.523 + dpx20 | dpx20-*)
2.524 + basic_machine=rs6000-bull
2.525 + os=-bosx
2.526 + ;;
2.527 + dpx2* | dpx2*-bull)
2.528 + basic_machine=m68k-bull
2.529 + os=-sysv3
2.530 + ;;
2.531 + ebmon29k)
2.532 + basic_machine=a29k-amd
2.533 + os=-ebmon
2.534 + ;;
2.535 + elxsi)
2.536 + basic_machine=elxsi-elxsi
2.537 + os=-bsd
2.538 + ;;
2.539 + encore | umax | mmax)
2.540 + basic_machine=ns32k-encore
2.541 + ;;
2.542 + es1800 | OSE68k | ose68k | ose | OSE)
2.543 + basic_machine=m68k-ericsson
2.544 + os=-ose
2.545 + ;;
2.546 + fx2800)
2.547 + basic_machine=i860-alliant
2.548 + ;;
2.549 + genix)
2.550 + basic_machine=ns32k-ns
2.551 + ;;
2.552 + gmicro)
2.553 + basic_machine=tron-gmicro
2.554 + os=-sysv
2.555 + ;;
2.556 + go32)
2.557 + basic_machine=i386-pc
2.558 + os=-go32
2.559 + ;;
2.560 + h3050r* | hiux*)
2.561 + basic_machine=hppa1.1-hitachi
2.562 + os=-hiuxwe2
2.563 + ;;
2.564 + h8300hms)
2.565 + basic_machine=h8300-hitachi
2.566 + os=-hms
2.567 + ;;
2.568 + h8300xray)
2.569 + basic_machine=h8300-hitachi
2.570 + os=-xray
2.571 + ;;
2.572 + h8500hms)
2.573 + basic_machine=h8500-hitachi
2.574 + os=-hms
2.575 + ;;
2.576 + harris)
2.577 + basic_machine=m88k-harris
2.578 + os=-sysv3
2.579 + ;;
2.580 + hp300-*)
2.581 + basic_machine=m68k-hp
2.582 + ;;
2.583 + hp300bsd)
2.584 + basic_machine=m68k-hp
2.585 + os=-bsd
2.586 + ;;
2.587 + hp300hpux)
2.588 + basic_machine=m68k-hp
2.589 + os=-hpux
2.590 + ;;
2.591 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
2.592 + basic_machine=hppa1.0-hp
2.593 + ;;
2.594 + hp9k2[0-9][0-9] | hp9k31[0-9])
2.595 + basic_machine=m68000-hp
2.596 + ;;
2.597 + hp9k3[2-9][0-9])
2.598 + basic_machine=m68k-hp
2.599 + ;;
2.600 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
2.601 + basic_machine=hppa1.0-hp
2.602 + ;;
2.603 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
2.604 + basic_machine=hppa1.1-hp
2.605 + ;;
2.606 + hp9k78[0-9] | hp78[0-9])
2.607 + # FIXME: really hppa2.0-hp
2.608 + basic_machine=hppa1.1-hp
2.609 + ;;
2.610 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2.611 + # FIXME: really hppa2.0-hp
2.612 + basic_machine=hppa1.1-hp
2.613 + ;;
2.614 + hp9k8[0-9][13679] | hp8[0-9][13679])
2.615 + basic_machine=hppa1.1-hp
2.616 + ;;
2.617 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
2.618 + basic_machine=hppa1.0-hp
2.619 + ;;
2.620 + hppa-next)
2.621 + os=-nextstep3
2.622 + ;;
2.623 + hppaosf)
2.624 + basic_machine=hppa1.1-hp
2.625 + os=-osf
2.626 + ;;
2.627 + hppro)
2.628 + basic_machine=hppa1.1-hp
2.629 + os=-proelf
2.630 + ;;
2.631 + i370-ibm* | ibm*)
2.632 + basic_machine=i370-ibm
2.633 + ;;
2.634 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
2.635 + i*86v32)
2.636 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2.637 + os=-sysv32
2.638 + ;;
2.639 + i*86v4*)
2.640 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2.641 + os=-sysv4
2.642 + ;;
2.643 + i*86v)
2.644 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2.645 + os=-sysv
2.646 + ;;
2.647 + i*86sol2)
2.648 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2.649 + os=-solaris2
2.650 + ;;
2.651 + i386mach)
2.652 + basic_machine=i386-mach
2.653 + os=-mach
2.654 + ;;
2.655 + i386-vsta | vsta)
2.656 + basic_machine=i386-unknown
2.657 + os=-vsta
2.658 + ;;
2.659 + iris | iris4d)
2.660 + basic_machine=mips-sgi
2.661 + case $os in
2.662 + -irix*)
2.663 + ;;
2.664 + *)
2.665 + os=-irix4
2.666 + ;;
2.667 + esac
2.668 + ;;
2.669 + isi68 | isi)
2.670 + basic_machine=m68k-isi
2.671 + os=-sysv
2.672 + ;;
2.673 + m88k-omron*)
2.674 + basic_machine=m88k-omron
2.675 + ;;
2.676 + magnum | m3230)
2.677 + basic_machine=mips-mips
2.678 + os=-sysv
2.679 + ;;
2.680 + merlin)
2.681 + basic_machine=ns32k-utek
2.682 + os=-sysv
2.683 + ;;
2.684 + mingw32)
2.685 + basic_machine=i386-pc
2.686 + os=-mingw32
2.687 + ;;
2.688 + miniframe)
2.689 + basic_machine=m68000-convergent
2.690 + ;;
2.691 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2.692 + basic_machine=m68k-atari
2.693 + os=-mint
2.694 + ;;
2.695 + mips3*-*)
2.696 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2.697 + ;;
2.698 + mips3*)
2.699 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2.700 + ;;
2.701 + monitor)
2.702 + basic_machine=m68k-rom68k
2.703 + os=-coff
2.704 + ;;
2.705 + morphos)
2.706 + basic_machine=powerpc-unknown
2.707 + os=-morphos
2.708 + ;;
2.709 + msdos)
2.710 + basic_machine=i386-pc
2.711 + os=-msdos
2.712 + ;;
2.713 + ms1-*)
2.714 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2.715 + ;;
2.716 + mvs)
2.717 + basic_machine=i370-ibm
2.718 + os=-mvs
2.719 + ;;
2.720 + ncr3000)
2.721 + basic_machine=i486-ncr
2.722 + os=-sysv4
2.723 + ;;
2.724 + netbsd386)
2.725 + basic_machine=i386-unknown
2.726 + os=-netbsd
2.727 + ;;
2.728 + netwinder)
2.729 + basic_machine=armv4l-rebel
2.730 + os=-linux
2.731 + ;;
2.732 + news | news700 | news800 | news900)
2.733 + basic_machine=m68k-sony
2.734 + os=-newsos
2.735 + ;;
2.736 + news1000)
2.737 + basic_machine=m68030-sony
2.738 + os=-newsos
2.739 + ;;
2.740 + news-3600 | risc-news)
2.741 + basic_machine=mips-sony
2.742 + os=-newsos
2.743 + ;;
2.744 + necv70)
2.745 + basic_machine=v70-nec
2.746 + os=-sysv
2.747 + ;;
2.748 + next | m*-next )
2.749 + basic_machine=m68k-next
2.750 + case $os in
2.751 + -nextstep* )
2.752 + ;;
2.753 + -ns2*)
2.754 + os=-nextstep2
2.755 + ;;
2.756 + *)
2.757 + os=-nextstep3
2.758 + ;;
2.759 + esac
2.760 + ;;
2.761 + nh3000)
2.762 + basic_machine=m68k-harris
2.763 + os=-cxux
2.764 + ;;
2.765 + nh[45]000)
2.766 + basic_machine=m88k-harris
2.767 + os=-cxux
2.768 + ;;
2.769 + nindy960)
2.770 + basic_machine=i960-intel
2.771 + os=-nindy
2.772 + ;;
2.773 + mon960)
2.774 + basic_machine=i960-intel
2.775 + os=-mon960
2.776 + ;;
2.777 + nonstopux)
2.778 + basic_machine=mips-compaq
2.779 + os=-nonstopux
2.780 + ;;
2.781 + np1)
2.782 + basic_machine=np1-gould
2.783 + ;;
2.784 + nsr-tandem)
2.785 + basic_machine=nsr-tandem
2.786 + ;;
2.787 + op50n-* | op60c-*)
2.788 + basic_machine=hppa1.1-oki
2.789 + os=-proelf
2.790 + ;;
2.791 + openrisc | openrisc-*)
2.792 + basic_machine=or32-unknown
2.793 + ;;
2.794 + os400)
2.795 + basic_machine=powerpc-ibm
2.796 + os=-os400
2.797 + ;;
2.798 + OSE68000 | ose68000)
2.799 + basic_machine=m68000-ericsson
2.800 + os=-ose
2.801 + ;;
2.802 + os68k)
2.803 + basic_machine=m68k-none
2.804 + os=-os68k
2.805 + ;;
2.806 + pa-hitachi)
2.807 + basic_machine=hppa1.1-hitachi
2.808 + os=-hiuxwe2
2.809 + ;;
2.810 + paragon)
2.811 + basic_machine=i860-intel
2.812 + os=-osf
2.813 + ;;
2.814 + pbd)
2.815 + basic_machine=sparc-tti
2.816 + ;;
2.817 + pbb)
2.818 + basic_machine=m68k-tti
2.819 + ;;
2.820 + pc532 | pc532-*)
2.821 + basic_machine=ns32k-pc532
2.822 + ;;
2.823 + pc98)
2.824 + basic_machine=i386-pc
2.825 + ;;
2.826 + pc98-*)
2.827 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
2.828 + ;;
2.829 + pentium | p5 | k5 | k6 | nexgen | viac3)
2.830 + basic_machine=i586-pc
2.831 + ;;
2.832 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
2.833 + basic_machine=i686-pc
2.834 + ;;
2.835 + pentiumii | pentium2 | pentiumiii | pentium3)
2.836 + basic_machine=i686-pc
2.837 + ;;
2.838 + pentium4)
2.839 + basic_machine=i786-pc
2.840 + ;;
2.841 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2.842 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2.843 + ;;
2.844 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
2.845 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2.846 + ;;
2.847 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2.848 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2.849 + ;;
2.850 + pentium4-*)
2.851 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2.852 + ;;
2.853 + pn)
2.854 + basic_machine=pn-gould
2.855 + ;;
2.856 + power) basic_machine=power-ibm
2.857 + ;;
2.858 + ppc) basic_machine=powerpc-unknown
2.859 + ;;
2.860 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2.861 + ;;
2.862 + ppcle | powerpclittle | ppc-le | powerpc-little)
2.863 + basic_machine=powerpcle-unknown
2.864 + ;;
2.865 + ppcle-* | powerpclittle-*)
2.866 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2.867 + ;;
2.868 + ppc64) basic_machine=powerpc64-unknown
2.869 + ;;
2.870 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2.871 + ;;
2.872 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2.873 + basic_machine=powerpc64le-unknown
2.874 + ;;
2.875 + ppc64le-* | powerpc64little-*)
2.876 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2.877 + ;;
2.878 + ps2)
2.879 + basic_machine=i386-ibm
2.880 + ;;
2.881 + pw32)
2.882 + basic_machine=i586-unknown
2.883 + os=-pw32
2.884 + ;;
2.885 + rdos)
2.886 + basic_machine=i386-pc
2.887 + os=-rdos
2.888 + ;;
2.889 + rom68k)
2.890 + basic_machine=m68k-rom68k
2.891 + os=-coff
2.892 + ;;
2.893 + rm[46]00)
2.894 + basic_machine=mips-siemens
2.895 + ;;
2.896 + rtpc | rtpc-*)
2.897 + basic_machine=romp-ibm
2.898 + ;;
2.899 + s390 | s390-*)
2.900 + basic_machine=s390-ibm
2.901 + ;;
2.902 + s390x | s390x-*)
2.903 + basic_machine=s390x-ibm
2.904 + ;;
2.905 + sa29200)
2.906 + basic_machine=a29k-amd
2.907 + os=-udi
2.908 + ;;
2.909 + sb1)
2.910 + basic_machine=mipsisa64sb1-unknown
2.911 + ;;
2.912 + sb1el)
2.913 + basic_machine=mipsisa64sb1el-unknown
2.914 + ;;
2.915 + sei)
2.916 + basic_machine=mips-sei
2.917 + os=-seiux
2.918 + ;;
2.919 + sequent)
2.920 + basic_machine=i386-sequent
2.921 + ;;
2.922 + sh)
2.923 + basic_machine=sh-hitachi
2.924 + os=-hms
2.925 + ;;
2.926 + sh64)
2.927 + basic_machine=sh64-unknown
2.928 + ;;
2.929 + sparclite-wrs | simso-wrs)
2.930 + basic_machine=sparclite-wrs
2.931 + os=-vxworks
2.932 + ;;
2.933 + sps7)
2.934 + basic_machine=m68k-bull
2.935 + os=-sysv2
2.936 + ;;
2.937 + spur)
2.938 + basic_machine=spur-unknown
2.939 + ;;
2.940 + st2000)
2.941 + basic_machine=m68k-tandem
2.942 + ;;
2.943 + stratus)
2.944 + basic_machine=i860-stratus
2.945 + os=-sysv4
2.946 + ;;
2.947 + sun2)
2.948 + basic_machine=m68000-sun
2.949 + ;;
2.950 + sun2os3)
2.951 + basic_machine=m68000-sun
2.952 + os=-sunos3
2.953 + ;;
2.954 + sun2os4)
2.955 + basic_machine=m68000-sun
2.956 + os=-sunos4
2.957 + ;;
2.958 + sun3os3)
2.959 + basic_machine=m68k-sun
2.960 + os=-sunos3
2.961 + ;;
2.962 + sun3os4)
2.963 + basic_machine=m68k-sun
2.964 + os=-sunos4
2.965 + ;;
2.966 + sun4os3)
2.967 + basic_machine=sparc-sun
2.968 + os=-sunos3
2.969 + ;;
2.970 + sun4os4)
2.971 + basic_machine=sparc-sun
2.972 + os=-sunos4
2.973 + ;;
2.974 + sun4sol2)
2.975 + basic_machine=sparc-sun
2.976 + os=-solaris2
2.977 + ;;
2.978 + sun3 | sun3-*)
2.979 + basic_machine=m68k-sun
2.980 + ;;
2.981 + sun4)
2.982 + basic_machine=sparc-sun
2.983 + ;;
2.984 + sun386 | sun386i | roadrunner)
2.985 + basic_machine=i386-sun
2.986 + ;;
2.987 + sv1)
2.988 + basic_machine=sv1-cray
2.989 + os=-unicos
2.990 + ;;
2.991 + symmetry)
2.992 + basic_machine=i386-sequent
2.993 + os=-dynix
2.994 + ;;
2.995 + t3e)
2.996 + basic_machine=alphaev5-cray
2.997 + os=-unicos
2.998 + ;;
2.999 + t90)
2.1000 + basic_machine=t90-cray
2.1001 + os=-unicos
2.1002 + ;;
2.1003 + tic54x | c54x*)
2.1004 + basic_machine=tic54x-unknown
2.1005 + os=-coff
2.1006 + ;;
2.1007 + tic55x | c55x*)
2.1008 + basic_machine=tic55x-unknown
2.1009 + os=-coff
2.1010 + ;;
2.1011 + tic6x | c6x*)
2.1012 + basic_machine=tic6x-unknown
2.1013 + os=-coff
2.1014 + ;;
2.1015 + tx39)
2.1016 + basic_machine=mipstx39-unknown
2.1017 + ;;
2.1018 + tx39el)
2.1019 + basic_machine=mipstx39el-unknown
2.1020 + ;;
2.1021 + toad1)
2.1022 + basic_machine=pdp10-xkl
2.1023 + os=-tops20
2.1024 + ;;
2.1025 + tower | tower-32)
2.1026 + basic_machine=m68k-ncr
2.1027 + ;;
2.1028 + tpf)
2.1029 + basic_machine=s390x-ibm
2.1030 + os=-tpf
2.1031 + ;;
2.1032 + udi29k)
2.1033 + basic_machine=a29k-amd
2.1034 + os=-udi
2.1035 + ;;
2.1036 + ultra3)
2.1037 + basic_machine=a29k-nyu
2.1038 + os=-sym1
2.1039 + ;;
2.1040 + v810 | necv810)
2.1041 + basic_machine=v810-nec
2.1042 + os=-none
2.1043 + ;;
2.1044 + vaxv)
2.1045 + basic_machine=vax-dec
2.1046 + os=-sysv
2.1047 + ;;
2.1048 + vms)
2.1049 + basic_machine=vax-dec
2.1050 + os=-vms
2.1051 + ;;
2.1052 + vpp*|vx|vx-*)
2.1053 + basic_machine=f301-fujitsu
2.1054 + ;;
2.1055 + vxworks960)
2.1056 + basic_machine=i960-wrs
2.1057 + os=-vxworks
2.1058 + ;;
2.1059 + vxworks68)
2.1060 + basic_machine=m68k-wrs
2.1061 + os=-vxworks
2.1062 + ;;
2.1063 + vxworks29k)
2.1064 + basic_machine=a29k-wrs
2.1065 + os=-vxworks
2.1066 + ;;
2.1067 + w65*)
2.1068 + basic_machine=w65-wdc
2.1069 + os=-none
2.1070 + ;;
2.1071 + w89k-*)
2.1072 + basic_machine=hppa1.1-winbond
2.1073 + os=-proelf
2.1074 + ;;
2.1075 + xbox)
2.1076 + basic_machine=i686-pc
2.1077 + os=-mingw32
2.1078 + ;;
2.1079 + xps | xps100)
2.1080 + basic_machine=xps100-honeywell
2.1081 + ;;
2.1082 + ymp)
2.1083 + basic_machine=ymp-cray
2.1084 + os=-unicos
2.1085 + ;;
2.1086 + z8k-*-coff)
2.1087 + basic_machine=z8k-unknown
2.1088 + os=-sim
2.1089 + ;;
2.1090 + none)
2.1091 + basic_machine=none-none
2.1092 + os=-none
2.1093 + ;;
2.1094 +
2.1095 +# Here we handle the default manufacturer of certain CPU types. It is in
2.1096 +# some cases the only manufacturer, in others, it is the most popular.
2.1097 + w89k)
2.1098 + basic_machine=hppa1.1-winbond
2.1099 + ;;
2.1100 + op50n)
2.1101 + basic_machine=hppa1.1-oki
2.1102 + ;;
2.1103 + op60c)
2.1104 + basic_machine=hppa1.1-oki
2.1105 + ;;
2.1106 + romp)
2.1107 + basic_machine=romp-ibm
2.1108 + ;;
2.1109 + mmix)
2.1110 + basic_machine=mmix-knuth
2.1111 + ;;
2.1112 + rs6000)
2.1113 + basic_machine=rs6000-ibm
2.1114 + ;;
2.1115 + vax)
2.1116 + basic_machine=vax-dec
2.1117 + ;;
2.1118 + pdp10)
2.1119 + # there are many clones, so DEC is not a safe bet
2.1120 + basic_machine=pdp10-unknown
2.1121 + ;;
2.1122 + pdp11)
2.1123 + basic_machine=pdp11-dec
2.1124 + ;;
2.1125 + we32k)
2.1126 + basic_machine=we32k-att
2.1127 + ;;
2.1128 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
2.1129 + basic_machine=sh-unknown
2.1130 + ;;
2.1131 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
2.1132 + basic_machine=sparc-sun
2.1133 + ;;
2.1134 + cydra)
2.1135 + basic_machine=cydra-cydrome
2.1136 + ;;
2.1137 + orion)
2.1138 + basic_machine=orion-highlevel
2.1139 + ;;
2.1140 + orion105)
2.1141 + basic_machine=clipper-highlevel
2.1142 + ;;
2.1143 + mac | mpw | mac-mpw)
2.1144 + basic_machine=m68k-apple
2.1145 + ;;
2.1146 + pmac | pmac-mpw)
2.1147 + basic_machine=powerpc-apple
2.1148 + ;;
2.1149 + *-unknown)
2.1150 + # Make sure to match an already-canonicalized machine name.
2.1151 + ;;
2.1152 + *)
2.1153 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2.1154 + exit 1
2.1155 + ;;
2.1156 +esac
2.1157 +
2.1158 +# Here we canonicalize certain aliases for manufacturers.
2.1159 +case $basic_machine in
2.1160 + *-digital*)
2.1161 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
2.1162 + ;;
2.1163 + *-commodore*)
2.1164 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
2.1165 + ;;
2.1166 + *)
2.1167 + ;;
2.1168 +esac
2.1169 +
2.1170 +# Decode manufacturer-specific aliases for certain operating systems.
2.1171 +
2.1172 +if [ x"$os" != x"" ]
2.1173 +then
2.1174 +case $os in
2.1175 + # First match some system type aliases
2.1176 + # that might get confused with valid system types.
2.1177 + # -solaris* is a basic system type, with this one exception.
2.1178 + -solaris1 | -solaris1.*)
2.1179 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
2.1180 + ;;
2.1181 + -solaris)
2.1182 + os=-solaris2
2.1183 + ;;
2.1184 + -svr4*)
2.1185 + os=-sysv4
2.1186 + ;;
2.1187 + -unixware*)
2.1188 + os=-sysv4.2uw
2.1189 + ;;
2.1190 + -gnu/linux*)
2.1191 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2.1192 + ;;
2.1193 + # First accept the basic system types.
2.1194 + # The portable systems comes first.
2.1195 + # Each alternative MUST END IN A *, to match a version number.
2.1196 + # -sysv* is not here because it comes later, after sysvr4.
2.1197 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2.1198 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
2.1199 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
2.1200 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2.1201 + | -aos* \
2.1202 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2.1203 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2.1204 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2.1205 + | -openbsd* | -solidbsd* \
2.1206 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2.1207 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2.1208 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2.1209 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2.1210 + | -chorusos* | -chorusrdb* \
2.1211 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2.1212 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
2.1213 + | -uxpv* | -beos* | -mpeix* | -udk* \
2.1214 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2.1215 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2.1216 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2.1217 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2.1218 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2.1219 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2.1220 + | -skyos* | -haiku* | -rdos* | -toppers*)
2.1221 + # Remember, each alternative MUST END IN *, to match a version number.
2.1222 + ;;
2.1223 + -qnx*)
2.1224 + case $basic_machine in
2.1225 + x86-* | i*86-*)
2.1226 + ;;
2.1227 + *)
2.1228 + os=-nto$os
2.1229 + ;;
2.1230 + esac
2.1231 + ;;
2.1232 + -nto-qnx*)
2.1233 + ;;
2.1234 + -nto*)
2.1235 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
2.1236 + ;;
2.1237 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2.1238 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
2.1239 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2.1240 + ;;
2.1241 + -mac*)
2.1242 + os=`echo $os | sed -e 's|mac|macos|'`
2.1243 + ;;
2.1244 + -linux-dietlibc)
2.1245 + os=-linux-dietlibc
2.1246 + ;;
2.1247 + -linux*)
2.1248 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
2.1249 + ;;
2.1250 + -sunos5*)
2.1251 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
2.1252 + ;;
2.1253 + -sunos6*)
2.1254 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
2.1255 + ;;
2.1256 + -opened*)
2.1257 + os=-openedition
2.1258 + ;;
2.1259 + -os400*)
2.1260 + os=-os400
2.1261 + ;;
2.1262 + -wince*)
2.1263 + os=-wince
2.1264 + ;;
2.1265 + -osfrose*)
2.1266 + os=-osfrose
2.1267 + ;;
2.1268 + -osf*)
2.1269 + os=-osf
2.1270 + ;;
2.1271 + -utek*)
2.1272 + os=-bsd
2.1273 + ;;
2.1274 + -dynix*)
2.1275 + os=-bsd
2.1276 + ;;
2.1277 + -acis*)
2.1278 + os=-aos
2.1279 + ;;
2.1280 + -atheos*)
2.1281 + os=-atheos
2.1282 + ;;
2.1283 + -syllable*)
2.1284 + os=-syllable
2.1285 + ;;
2.1286 + -386bsd)
2.1287 + os=-bsd
2.1288 + ;;
2.1289 + -ctix* | -uts*)
2.1290 + os=-sysv
2.1291 + ;;
2.1292 + -nova*)
2.1293 + os=-rtmk-nova
2.1294 + ;;
2.1295 + -ns2 )
2.1296 + os=-nextstep2
2.1297 + ;;
2.1298 + -nsk*)
2.1299 + os=-nsk
2.1300 + ;;
2.1301 + # Preserve the version number of sinix5.
2.1302 + -sinix5.*)
2.1303 + os=`echo $os | sed -e 's|sinix|sysv|'`
2.1304 + ;;
2.1305 + -sinix*)
2.1306 + os=-sysv4
2.1307 + ;;
2.1308 + -tpf*)
2.1309 + os=-tpf
2.1310 + ;;
2.1311 + -triton*)
2.1312 + os=-sysv3
2.1313 + ;;
2.1314 + -oss*)
2.1315 + os=-sysv3
2.1316 + ;;
2.1317 + -svr4)
2.1318 + os=-sysv4
2.1319 + ;;
2.1320 + -svr3)
2.1321 + os=-sysv3
2.1322 + ;;
2.1323 + -sysvr4)
2.1324 + os=-sysv4
2.1325 + ;;
2.1326 + # This must come after -sysvr4.
2.1327 + -sysv*)
2.1328 + ;;
2.1329 + -ose*)
2.1330 + os=-ose
2.1331 + ;;
2.1332 + -es1800*)
2.1333 + os=-ose
2.1334 + ;;
2.1335 + -xenix)
2.1336 + os=-xenix
2.1337 + ;;
2.1338 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2.1339 + os=-mint
2.1340 + ;;
2.1341 + -aros*)
2.1342 + os=-aros
2.1343 + ;;
2.1344 + -kaos*)
2.1345 + os=-kaos
2.1346 + ;;
2.1347 + -zvmoe)
2.1348 + os=-zvmoe
2.1349 + ;;
2.1350 + -none)
2.1351 + ;;
2.1352 + *)
2.1353 + # Get rid of the `-' at the beginning of $os.
2.1354 + os=`echo $os | sed 's/[^-]*-//'`
2.1355 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
2.1356 + exit 1
2.1357 + ;;
2.1358 +esac
2.1359 +else
2.1360 +
2.1361 +# Here we handle the default operating systems that come with various machines.
2.1362 +# The value should be what the vendor currently ships out the door with their
2.1363 +# machine or put another way, the most popular os provided with the machine.
2.1364 +
2.1365 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
2.1366 +# "-sun"), then you have to tell the case statement up towards the top
2.1367 +# that MANUFACTURER isn't an operating system. Otherwise, code above
2.1368 +# will signal an error saying that MANUFACTURER isn't an operating
2.1369 +# system, and we'll never get to this point.
2.1370 +
2.1371 +case $basic_machine in
2.1372 + spu-*)
2.1373 + os=-elf
2.1374 + ;;
2.1375 + *-acorn)
2.1376 + os=-riscix1.2
2.1377 + ;;
2.1378 + arm*-rebel)
2.1379 + os=-linux
2.1380 + ;;
2.1381 + arm*-semi)
2.1382 + os=-aout
2.1383 + ;;
2.1384 + c4x-* | tic4x-*)
2.1385 + os=-coff
2.1386 + ;;
2.1387 + # This must come before the *-dec entry.
2.1388 + pdp10-*)
2.1389 + os=-tops20
2.1390 + ;;
2.1391 + pdp11-*)
2.1392 + os=-none
2.1393 + ;;
2.1394 + *-dec | vax-*)
2.1395 + os=-ultrix4.2
2.1396 + ;;
2.1397 + m68*-apollo)
2.1398 + os=-domain
2.1399 + ;;
2.1400 + i386-sun)
2.1401 + os=-sunos4.0.2
2.1402 + ;;
2.1403 + m68000-sun)
2.1404 + os=-sunos3
2.1405 + # This also exists in the configure program, but was not the
2.1406 + # default.
2.1407 + # os=-sunos4
2.1408 + ;;
2.1409 + m68*-cisco)
2.1410 + os=-aout
2.1411 + ;;
2.1412 + mips*-cisco)
2.1413 + os=-elf
2.1414 + ;;
2.1415 + mips*-*)
2.1416 + os=-elf
2.1417 + ;;
2.1418 + or32-*)
2.1419 + os=-coff
2.1420 + ;;
2.1421 + *-tti) # must be before sparc entry or we get the wrong os.
2.1422 + os=-sysv3
2.1423 + ;;
2.1424 + sparc-* | *-sun)
2.1425 + os=-sunos4.1.1
2.1426 + ;;
2.1427 + *-be)
2.1428 + os=-beos
2.1429 + ;;
2.1430 + *-haiku)
2.1431 + os=-haiku
2.1432 + ;;
2.1433 + *-ibm)
2.1434 + os=-aix
2.1435 + ;;
2.1436 + *-knuth)
2.1437 + os=-mmixware
2.1438 + ;;
2.1439 + *-wec)
2.1440 + os=-proelf
2.1441 + ;;
2.1442 + *-winbond)
2.1443 + os=-proelf
2.1444 + ;;
2.1445 + *-oki)
2.1446 + os=-proelf
2.1447 + ;;
2.1448 + *-hp)
2.1449 + os=-hpux
2.1450 + ;;
2.1451 + *-hitachi)
2.1452 + os=-hiux
2.1453 + ;;
2.1454 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
2.1455 + os=-sysv
2.1456 + ;;
2.1457 + *-cbm)
2.1458 + os=-amigaos
2.1459 + ;;
2.1460 + *-dg)
2.1461 + os=-dgux
2.1462 + ;;
2.1463 + *-dolphin)
2.1464 + os=-sysv3
2.1465 + ;;
2.1466 + m68k-ccur)
2.1467 + os=-rtu
2.1468 + ;;
2.1469 + m88k-omron*)
2.1470 + os=-luna
2.1471 + ;;
2.1472 + *-next )
2.1473 + os=-nextstep
2.1474 + ;;
2.1475 + *-sequent)
2.1476 + os=-ptx
2.1477 + ;;
2.1478 + *-crds)
2.1479 + os=-unos
2.1480 + ;;
2.1481 + *-ns)
2.1482 + os=-genix
2.1483 + ;;
2.1484 + i370-*)
2.1485 + os=-mvs
2.1486 + ;;
2.1487 + *-next)
2.1488 + os=-nextstep3
2.1489 + ;;
2.1490 + *-gould)
2.1491 + os=-sysv
2.1492 + ;;
2.1493 + *-highlevel)
2.1494 + os=-bsd
2.1495 + ;;
2.1496 + *-encore)
2.1497 + os=-bsd
2.1498 + ;;
2.1499 + *-sgi)
2.1500 + os=-irix
2.1501 + ;;
2.1502 + *-siemens)
2.1503 + os=-sysv4
2.1504 + ;;
2.1505 + *-masscomp)
2.1506 + os=-rtu
2.1507 + ;;
2.1508 + f30[01]-fujitsu | f700-fujitsu)
2.1509 + os=-uxpv
2.1510 + ;;
2.1511 + *-rom68k)
2.1512 + os=-coff
2.1513 + ;;
2.1514 + *-*bug)
2.1515 + os=-coff
2.1516 + ;;
2.1517 + *-apple)
2.1518 + os=-macos
2.1519 + ;;
2.1520 + *-atari*)
2.1521 + os=-mint
2.1522 + ;;
2.1523 + *)
2.1524 + os=-none
2.1525 + ;;
2.1526 +esac
2.1527 +fi
2.1528 +
2.1529 +# Here we handle the case where we know the os, and the CPU type, but not the
2.1530 +# manufacturer. We pick the logical manufacturer.
2.1531 +vendor=unknown
2.1532 +case $basic_machine in
2.1533 + *-unknown)
2.1534 + case $os in
2.1535 + -riscix*)
2.1536 + vendor=acorn
2.1537 + ;;
2.1538 + -sunos*)
2.1539 + vendor=sun
2.1540 + ;;
2.1541 + -aix*)
2.1542 + vendor=ibm
2.1543 + ;;
2.1544 + -beos*)
2.1545 + vendor=be
2.1546 + ;;
2.1547 + -hpux*)
2.1548 + vendor=hp
2.1549 + ;;
2.1550 + -mpeix*)
2.1551 + vendor=hp
2.1552 + ;;
2.1553 + -hiux*)
2.1554 + vendor=hitachi
2.1555 + ;;
2.1556 + -unos*)
2.1557 + vendor=crds
2.1558 + ;;
2.1559 + -dgux*)
2.1560 + vendor=dg
2.1561 + ;;
2.1562 + -luna*)
2.1563 + vendor=omron
2.1564 + ;;
2.1565 + -genix*)
2.1566 + vendor=ns
2.1567 + ;;
2.1568 + -mvs* | -opened*)
2.1569 + vendor=ibm
2.1570 + ;;
2.1571 + -os400*)
2.1572 + vendor=ibm
2.1573 + ;;
2.1574 + -ptx*)
2.1575 + vendor=sequent
2.1576 + ;;
2.1577 + -tpf*)
2.1578 + vendor=ibm
2.1579 + ;;
2.1580 + -vxsim* | -vxworks* | -windiss*)
2.1581 + vendor=wrs
2.1582 + ;;
2.1583 + -aux*)
2.1584 + vendor=apple
2.1585 + ;;
2.1586 + -hms*)
2.1587 + vendor=hitachi
2.1588 + ;;
2.1589 + -mpw* | -macos*)
2.1590 + vendor=apple
2.1591 + ;;
2.1592 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2.1593 + vendor=atari
2.1594 + ;;
2.1595 + -vos*)
2.1596 + vendor=stratus
2.1597 + ;;
2.1598 + esac
2.1599 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
2.1600 + ;;
2.1601 +esac
2.1602 +
2.1603 +echo $basic_machine$os
2.1604 +exit
2.1605 +
2.1606 +# Local variables:
2.1607 +# eval: (add-hook 'write-file-hooks 'time-stamp)
2.1608 +# time-stamp-start: "timestamp='"
2.1609 +# time-stamp-format: "%:y-%02m-%02d"
2.1610 +# time-stamp-end: "'"
2.1611 +# End:
.