config.guess revision bd3a1963
1659607e0Smrg#! /bin/sh
2659607e0Smrg# Attempt to guess a canonical system name.
3659607e0Smrg#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4bd3a1963Smrg#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5fc27e79cSmrg#   Free Software Foundation, Inc.
6659607e0Smrg
7bd3a1963Smrgtimestamp='2010-08-21'
8659607e0Smrg
9659607e0Smrg# This file is free software; you can redistribute it and/or modify it
10659607e0Smrg# under the terms of the GNU General Public License as published by
11659607e0Smrg# the Free Software Foundation; either version 2 of the License, or
12659607e0Smrg# (at your option) any later version.
13659607e0Smrg#
14659607e0Smrg# This program is distributed in the hope that it will be useful, but
15659607e0Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of
16659607e0Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17659607e0Smrg# General Public License for more details.
18659607e0Smrg#
19659607e0Smrg# You should have received a copy of the GNU General Public License
20659607e0Smrg# along with this program; if not, write to the Free Software
21659607e0Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22659607e0Smrg# 02110-1301, USA.
23659607e0Smrg#
24659607e0Smrg# As a special exception to the GNU General Public License, if you
25659607e0Smrg# distribute this file as part of a program that contains a
26659607e0Smrg# configuration script generated by Autoconf, you may include it under
27659607e0Smrg# the same distribution terms that you use for the rest of that program.
28659607e0Smrg
29659607e0Smrg
30b73be646Smrg# Originally written by Per Bothner.  Please send patches (context
31b73be646Smrg# diff format) to <config-patches@gnu.org> and include a ChangeLog
32b73be646Smrg# entry.
33659607e0Smrg#
34659607e0Smrg# This script attempts to guess a canonical system name similar to
35659607e0Smrg# config.sub.  If it succeeds, it prints the system name on stdout, and
36659607e0Smrg# exits with 0.  Otherwise, it exits with 1.
37659607e0Smrg#
38b73be646Smrg# You can get the latest version of this script from:
39b73be646Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40659607e0Smrg
41659607e0Smrgme=`echo "$0" | sed -e 's,.*/,,'`
42659607e0Smrg
43659607e0Smrgusage="\
44659607e0SmrgUsage: $0 [OPTION]
45659607e0Smrg
46659607e0SmrgOutput the configuration name of the system \`$me' is run on.
47659607e0Smrg
48659607e0SmrgOperation modes:
49659607e0Smrg  -h, --help         print this help, then exit
50659607e0Smrg  -t, --time-stamp   print date of last modification, then exit
51659607e0Smrg  -v, --version      print version number, then exit
52659607e0Smrg
53659607e0SmrgReport bugs and patches to <config-patches@gnu.org>."
54659607e0Smrg
55659607e0Smrgversion="\
56659607e0SmrgGNU config.guess ($timestamp)
57659607e0Smrg
58659607e0SmrgOriginally written by Per Bothner.
59bd3a1963SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60bd3a1963Smrg2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
61bd3a1963SmrgSoftware Foundation, Inc.
62659607e0Smrg
63659607e0SmrgThis is free software; see the source for copying conditions.  There is NO
64659607e0Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
65659607e0Smrg
66659607e0Smrghelp="
67659607e0SmrgTry \`$me --help' for more information."
68659607e0Smrg
69659607e0Smrg# Parse command line
70659607e0Smrgwhile test $# -gt 0 ; do
71659607e0Smrg  case $1 in
72659607e0Smrg    --time-stamp | --time* | -t )
73659607e0Smrg       echo "$timestamp" ; exit ;;
74659607e0Smrg    --version | -v )
75659607e0Smrg       echo "$version" ; exit ;;
76659607e0Smrg    --help | --h* | -h )
77659607e0Smrg       echo "$usage"; exit ;;
78659607e0Smrg    -- )     # Stop option processing
79659607e0Smrg       shift; break ;;
80659607e0Smrg    - )	# Use stdin as input.
81659607e0Smrg       break ;;
82659607e0Smrg    -* )
83659607e0Smrg       echo "$me: invalid option $1$help" >&2
84659607e0Smrg       exit 1 ;;
85659607e0Smrg    * )
86659607e0Smrg       break ;;
87659607e0Smrg  esac
88659607e0Smrgdone
89659607e0Smrg
90659607e0Smrgif test $# != 0; then
91659607e0Smrg  echo "$me: too many arguments$help" >&2
92659607e0Smrg  exit 1
93659607e0Smrgfi
94659607e0Smrg
95bd3a1963Smrgtrap 'exit 1' HUP INT TERM
96659607e0Smrg
97659607e0Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
98659607e0Smrg# compiler to aid in system detection is discouraged as it requires
99659607e0Smrg# temporary files to be created and, as you can see below, it is a
100659607e0Smrg# headache to deal with in a portable fashion.
101659607e0Smrg
102659607e0Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
103659607e0Smrg# use `HOST_CC' if defined, but it is deprecated.
104659607e0Smrg
105659607e0Smrg# Portable tmp directory creation inspired by the Autoconf team.
106659607e0Smrg
107659607e0Smrgset_cc_for_build='
108659607e0Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
109bd3a1963Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
110659607e0Smrg: ${TMPDIR=/tmp} ;
111fc27e79cSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
112659607e0Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
113659607e0Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
114659607e0Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
115659607e0Smrgdummy=$tmp/dummy ;
116659607e0Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
117659607e0Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in
118659607e0Smrg ,,)    echo "int x;" > $dummy.c ;
119659607e0Smrg	for c in cc gcc c89 c99 ; do
120659607e0Smrg	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
121659607e0Smrg	     CC_FOR_BUILD="$c"; break ;
122659607e0Smrg	  fi ;
123659607e0Smrg	done ;
124659607e0Smrg	if test x"$CC_FOR_BUILD" = x ; then
125659607e0Smrg	  CC_FOR_BUILD=no_compiler_found ;
126659607e0Smrg	fi
127659607e0Smrg	;;
128659607e0Smrg ,,*)   CC_FOR_BUILD=$CC ;;
129659607e0Smrg ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
130659607e0Smrgesac ; set_cc_for_build= ;'
131659607e0Smrg
132659607e0Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
133659607e0Smrg# (ghazi@noc.rutgers.edu 1994-08-24)
134659607e0Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then
135659607e0Smrg	PATH=$PATH:/.attbin ; export PATH
136659607e0Smrgfi
137659607e0Smrg
138659607e0SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
139659607e0SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
140659607e0SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
141659607e0SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142659607e0Smrg
143659607e0Smrg# Note: order is significant - the case branches are not exclusive.
144659607e0Smrg
145659607e0Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146659607e0Smrg    *:NetBSD:*:*)
147659607e0Smrg	# NetBSD (nbsd) targets should (where applicable) match one or
148659607e0Smrg	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
149659607e0Smrg	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
150659607e0Smrg	# switched to ELF, *-*-netbsd* would select the old
151659607e0Smrg	# object file format.  This provides both forward
152659607e0Smrg	# compatibility and a consistent mechanism for selecting the
153659607e0Smrg	# object file format.
154659607e0Smrg	#
155659607e0Smrg	# Note: NetBSD doesn't particularly care about the vendor
156659607e0Smrg	# portion of the name.  We always set it to "unknown".
157659607e0Smrg	sysctl="sysctl -n hw.machine_arch"
158659607e0Smrg	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
159659607e0Smrg	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
160659607e0Smrg	case "${UNAME_MACHINE_ARCH}" in
161659607e0Smrg	    armeb) machine=armeb-unknown ;;
162659607e0Smrg	    arm*) machine=arm-unknown ;;
163659607e0Smrg	    sh3el) machine=shl-unknown ;;
164659607e0Smrg	    sh3eb) machine=sh-unknown ;;
165fc27e79cSmrg	    sh5el) machine=sh5le-unknown ;;
166659607e0Smrg	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
167659607e0Smrg	esac
168659607e0Smrg	# The Operating System including object format, if it has switched
169659607e0Smrg	# to ELF recently, or will in the future.
170659607e0Smrg	case "${UNAME_MACHINE_ARCH}" in
171659607e0Smrg	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
172659607e0Smrg		eval $set_cc_for_build
173659607e0Smrg		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
174b73be646Smrg			| grep -q __ELF__
175659607e0Smrg		then
176659607e0Smrg		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
177659607e0Smrg		    # Return netbsd for either.  FIX?
178659607e0Smrg		    os=netbsd
179659607e0Smrg		else
180659607e0Smrg		    os=netbsdelf
181659607e0Smrg		fi
182659607e0Smrg		;;
183659607e0Smrg	    *)
184659607e0Smrg	        os=netbsd
185659607e0Smrg		;;
186659607e0Smrg	esac
187659607e0Smrg	# The OS release
188659607e0Smrg	# Debian GNU/NetBSD machines have a different userland, and
189659607e0Smrg	# thus, need a distinct triplet. However, they do not need
190659607e0Smrg	# kernel version information, so it can be replaced with a
191659607e0Smrg	# suitable tag, in the style of linux-gnu.
192659607e0Smrg	case "${UNAME_VERSION}" in
193659607e0Smrg	    Debian*)
194659607e0Smrg		release='-gnu'
195659607e0Smrg		;;
196659607e0Smrg	    *)
197659607e0Smrg		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
198659607e0Smrg		;;
199659607e0Smrg	esac
200659607e0Smrg	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
201659607e0Smrg	# contains redundant information, the shorter form:
202659607e0Smrg	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203659607e0Smrg	echo "${machine}-${os}${release}"
204659607e0Smrg	exit ;;
205659607e0Smrg    *:OpenBSD:*:*)
206659607e0Smrg	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
207659607e0Smrg	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
208659607e0Smrg	exit ;;
209659607e0Smrg    *:ekkoBSD:*:*)
210659607e0Smrg	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
211659607e0Smrg	exit ;;
212fc27e79cSmrg    *:SolidBSD:*:*)
213fc27e79cSmrg	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
214fc27e79cSmrg	exit ;;
215659607e0Smrg    macppc:MirBSD:*:*)
216fc27e79cSmrg	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
217659607e0Smrg	exit ;;
218659607e0Smrg    *:MirBSD:*:*)
219659607e0Smrg	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
220659607e0Smrg	exit ;;
221659607e0Smrg    alpha:OSF1:*:*)
222659607e0Smrg	case $UNAME_RELEASE in
223659607e0Smrg	*4.0)
224659607e0Smrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
225659607e0Smrg		;;
226659607e0Smrg	*5.*)
227659607e0Smrg	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
228659607e0Smrg		;;
229659607e0Smrg	esac
230659607e0Smrg	# According to Compaq, /usr/sbin/psrinfo has been available on
231659607e0Smrg	# OSF/1 and Tru64 systems produced since 1995.  I hope that
232659607e0Smrg	# covers most systems running today.  This code pipes the CPU
233659607e0Smrg	# types through head -n 1, so we only detect the type of CPU 0.
234659607e0Smrg	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
235659607e0Smrg	case "$ALPHA_CPU_TYPE" in
236659607e0Smrg	    "EV4 (21064)")
237659607e0Smrg		UNAME_MACHINE="alpha" ;;
238659607e0Smrg	    "EV4.5 (21064)")
239659607e0Smrg		UNAME_MACHINE="alpha" ;;
240659607e0Smrg	    "LCA4 (21066/21068)")
241659607e0Smrg		UNAME_MACHINE="alpha" ;;
242659607e0Smrg	    "EV5 (21164)")
243659607e0Smrg		UNAME_MACHINE="alphaev5" ;;
244659607e0Smrg	    "EV5.6 (21164A)")
245659607e0Smrg		UNAME_MACHINE="alphaev56" ;;
246659607e0Smrg	    "EV5.6 (21164PC)")
247659607e0Smrg		UNAME_MACHINE="alphapca56" ;;
248659607e0Smrg	    "EV5.7 (21164PC)")
249659607e0Smrg		UNAME_MACHINE="alphapca57" ;;
250659607e0Smrg	    "EV6 (21264)")
251659607e0Smrg		UNAME_MACHINE="alphaev6" ;;
252659607e0Smrg	    "EV6.7 (21264A)")
253659607e0Smrg		UNAME_MACHINE="alphaev67" ;;
254659607e0Smrg	    "EV6.8CB (21264C)")
255659607e0Smrg		UNAME_MACHINE="alphaev68" ;;
256659607e0Smrg	    "EV6.8AL (21264B)")
257659607e0Smrg		UNAME_MACHINE="alphaev68" ;;
258659607e0Smrg	    "EV6.8CX (21264D)")
259659607e0Smrg		UNAME_MACHINE="alphaev68" ;;
260659607e0Smrg	    "EV6.9A (21264/EV69A)")
261659607e0Smrg		UNAME_MACHINE="alphaev69" ;;
262659607e0Smrg	    "EV7 (21364)")
263659607e0Smrg		UNAME_MACHINE="alphaev7" ;;
264659607e0Smrg	    "EV7.9 (21364A)")
265659607e0Smrg		UNAME_MACHINE="alphaev79" ;;
266659607e0Smrg	esac
267659607e0Smrg	# A Pn.n version is a patched version.
268659607e0Smrg	# A Vn.n version is a released version.
269659607e0Smrg	# A Tn.n version is a released field test version.
270659607e0Smrg	# A Xn.n version is an unreleased experimental baselevel.
271659607e0Smrg	# 1.2 uses "1.2" for uname -r.
272659607e0Smrg	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273659607e0Smrg	exit ;;
274659607e0Smrg    Alpha\ *:Windows_NT*:*)
275659607e0Smrg	# How do we know it's Interix rather than the generic POSIX subsystem?
276659607e0Smrg	# Should we change UNAME_MACHINE based on the output of uname instead
277659607e0Smrg	# of the specific Alpha model?
278659607e0Smrg	echo alpha-pc-interix
279659607e0Smrg	exit ;;
280659607e0Smrg    21064:Windows_NT:50:3)
281659607e0Smrg	echo alpha-dec-winnt3.5
282659607e0Smrg	exit ;;
283659607e0Smrg    Amiga*:UNIX_System_V:4.0:*)
284659607e0Smrg	echo m68k-unknown-sysv4
285659607e0Smrg	exit ;;
286659607e0Smrg    *:[Aa]miga[Oo][Ss]:*:*)
287659607e0Smrg	echo ${UNAME_MACHINE}-unknown-amigaos
288659607e0Smrg	exit ;;
289659607e0Smrg    *:[Mm]orph[Oo][Ss]:*:*)
290659607e0Smrg	echo ${UNAME_MACHINE}-unknown-morphos
291659607e0Smrg	exit ;;
292659607e0Smrg    *:OS/390:*:*)
293659607e0Smrg	echo i370-ibm-openedition
294659607e0Smrg	exit ;;
295659607e0Smrg    *:z/VM:*:*)
296659607e0Smrg	echo s390-ibm-zvmoe
297659607e0Smrg	exit ;;
298659607e0Smrg    *:OS400:*:*)
299659607e0Smrg        echo powerpc-ibm-os400
300659607e0Smrg	exit ;;
301659607e0Smrg    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
302659607e0Smrg	echo arm-acorn-riscix${UNAME_RELEASE}
303659607e0Smrg	exit ;;
304659607e0Smrg    arm:riscos:*:*|arm:RISCOS:*:*)
305659607e0Smrg	echo arm-unknown-riscos
306659607e0Smrg	exit ;;
307659607e0Smrg    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
308659607e0Smrg	echo hppa1.1-hitachi-hiuxmpp
309659607e0Smrg	exit ;;
310659607e0Smrg    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
311659607e0Smrg	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
312659607e0Smrg	if test "`(/bin/universe) 2>/dev/null`" = att ; then
313659607e0Smrg		echo pyramid-pyramid-sysv3
314659607e0Smrg	else
315659607e0Smrg		echo pyramid-pyramid-bsd
316659607e0Smrg	fi
317659607e0Smrg	exit ;;
318659607e0Smrg    NILE*:*:*:dcosx)
319659607e0Smrg	echo pyramid-pyramid-svr4
320659607e0Smrg	exit ;;
321659607e0Smrg    DRS?6000:unix:4.0:6*)
322659607e0Smrg	echo sparc-icl-nx6
323659607e0Smrg	exit ;;
324659607e0Smrg    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
325659607e0Smrg	case `/usr/bin/uname -p` in
326659607e0Smrg	    sparc) echo sparc-icl-nx7; exit ;;
327659607e0Smrg	esac ;;
328b73be646Smrg    s390x:SunOS:*:*)
329b73be646Smrg	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330b73be646Smrg	exit ;;
331659607e0Smrg    sun4H:SunOS:5.*:*)
332659607e0Smrg	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333659607e0Smrg	exit ;;
334659607e0Smrg    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
335659607e0Smrg	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336659607e0Smrg	exit ;;
337b73be646Smrg    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
338b73be646Smrg	echo i386-pc-auroraux${UNAME_RELEASE}
339b73be646Smrg	exit ;;
340fc27e79cSmrg    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
341b73be646Smrg	eval $set_cc_for_build
342b73be646Smrg	SUN_ARCH="i386"
343b73be646Smrg	# If there is a compiler, see if it is configured for 64-bit objects.
344b73be646Smrg	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
345b73be646Smrg	# This test works for both compilers.
346b73be646Smrg	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
347b73be646Smrg	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
348b73be646Smrg		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
349b73be646Smrg		grep IS_64BIT_ARCH >/dev/null
350b73be646Smrg	    then
351b73be646Smrg		SUN_ARCH="x86_64"
352b73be646Smrg	    fi
353b73be646Smrg	fi
354b73be646Smrg	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355659607e0Smrg	exit ;;
356659607e0Smrg    sun4*:SunOS:6*:*)
357659607e0Smrg	# According to config.sub, this is the proper way to canonicalize
358659607e0Smrg	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
359659607e0Smrg	# it's likely to be more like Solaris than SunOS4.
360659607e0Smrg	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
361659607e0Smrg	exit ;;
362659607e0Smrg    sun4*:SunOS:*:*)
363659607e0Smrg	case "`/usr/bin/arch -k`" in
364659607e0Smrg	    Series*|S4*)
365659607e0Smrg		UNAME_RELEASE=`uname -v`
366659607e0Smrg		;;
367659607e0Smrg	esac
368659607e0Smrg	# Japanese Language versions have a version number like `4.1.3-JL'.
369659607e0Smrg	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
370659607e0Smrg	exit ;;
371659607e0Smrg    sun3*:SunOS:*:*)
372659607e0Smrg	echo m68k-sun-sunos${UNAME_RELEASE}
373659607e0Smrg	exit ;;
374659607e0Smrg    sun*:*:4.2BSD:*)
375659607e0Smrg	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
376659607e0Smrg	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
377659607e0Smrg	case "`/bin/arch`" in
378659607e0Smrg	    sun3)
379659607e0Smrg		echo m68k-sun-sunos${UNAME_RELEASE}
380659607e0Smrg		;;
381659607e0Smrg	    sun4)
382659607e0Smrg		echo sparc-sun-sunos${UNAME_RELEASE}
383659607e0Smrg		;;
384659607e0Smrg	esac
385659607e0Smrg	exit ;;
386659607e0Smrg    aushp:SunOS:*:*)
387659607e0Smrg	echo sparc-auspex-sunos${UNAME_RELEASE}
388659607e0Smrg	exit ;;
389659607e0Smrg    # The situation for MiNT is a little confusing.  The machine name
390659607e0Smrg    # can be virtually everything (everything which is not
391659607e0Smrg    # "atarist" or "atariste" at least should have a processor
392659607e0Smrg    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
393659607e0Smrg    # to the lowercase version "mint" (or "freemint").  Finally
394659607e0Smrg    # the system name "TOS" denotes a system which is actually not
395659607e0Smrg    # MiNT.  But MiNT is downward compatible to TOS, so this should
396659607e0Smrg    # be no problem.
397659607e0Smrg    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
398659607e0Smrg        echo m68k-atari-mint${UNAME_RELEASE}
399659607e0Smrg	exit ;;
400659607e0Smrg    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
401659607e0Smrg	echo m68k-atari-mint${UNAME_RELEASE}
402659607e0Smrg        exit ;;
403659607e0Smrg    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
404659607e0Smrg        echo m68k-atari-mint${UNAME_RELEASE}
405659607e0Smrg	exit ;;
406659607e0Smrg    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
407659607e0Smrg        echo m68k-milan-mint${UNAME_RELEASE}
408659607e0Smrg        exit ;;
409659607e0Smrg    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
410659607e0Smrg        echo m68k-hades-mint${UNAME_RELEASE}
411659607e0Smrg        exit ;;
412659607e0Smrg    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
413659607e0Smrg        echo m68k-unknown-mint${UNAME_RELEASE}
414659607e0Smrg        exit ;;
415659607e0Smrg    m68k:machten:*:*)
416659607e0Smrg	echo m68k-apple-machten${UNAME_RELEASE}
417659607e0Smrg	exit ;;
418659607e0Smrg    powerpc:machten:*:*)
419659607e0Smrg	echo powerpc-apple-machten${UNAME_RELEASE}
420659607e0Smrg	exit ;;
421659607e0Smrg    RISC*:Mach:*:*)
422659607e0Smrg	echo mips-dec-mach_bsd4.3
423659607e0Smrg	exit ;;
424659607e0Smrg    RISC*:ULTRIX:*:*)
425659607e0Smrg	echo mips-dec-ultrix${UNAME_RELEASE}
426659607e0Smrg	exit ;;
427659607e0Smrg    VAX*:ULTRIX*:*:*)
428659607e0Smrg	echo vax-dec-ultrix${UNAME_RELEASE}
429659607e0Smrg	exit ;;
430659607e0Smrg    2020:CLIX:*:* | 2430:CLIX:*:*)
431659607e0Smrg	echo clipper-intergraph-clix${UNAME_RELEASE}
432659607e0Smrg	exit ;;
433659607e0Smrg    mips:*:*:UMIPS | mips:*:*:RISCos)
434659607e0Smrg	eval $set_cc_for_build
435659607e0Smrg	sed 's/^	//' << EOF >$dummy.c
436659607e0Smrg#ifdef __cplusplus
437659607e0Smrg#include <stdio.h>  /* for printf() prototype */
438659607e0Smrg	int main (int argc, char *argv[]) {
439659607e0Smrg#else
440659607e0Smrg	int main (argc, argv) int argc; char *argv[]; {
441659607e0Smrg#endif
442659607e0Smrg	#if defined (host_mips) && defined (MIPSEB)
443659607e0Smrg	#if defined (SYSTYPE_SYSV)
444659607e0Smrg	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
445659607e0Smrg	#endif
446659607e0Smrg	#if defined (SYSTYPE_SVR4)
447659607e0Smrg	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
448659607e0Smrg	#endif
449659607e0Smrg	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
450659607e0Smrg	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
451659607e0Smrg	#endif
452659607e0Smrg	#endif
453659607e0Smrg	  exit (-1);
454659607e0Smrg	}
455659607e0SmrgEOF
456659607e0Smrg	$CC_FOR_BUILD -o $dummy $dummy.c &&
457659607e0Smrg	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
458659607e0Smrg	  SYSTEM_NAME=`$dummy $dummyarg` &&
459659607e0Smrg	    { echo "$SYSTEM_NAME"; exit; }
460659607e0Smrg	echo mips-mips-riscos${UNAME_RELEASE}
461659607e0Smrg	exit ;;
462659607e0Smrg    Motorola:PowerMAX_OS:*:*)
463659607e0Smrg	echo powerpc-motorola-powermax
464659607e0Smrg	exit ;;
465659607e0Smrg    Motorola:*:4.3:PL8-*)
466659607e0Smrg	echo powerpc-harris-powermax
467659607e0Smrg	exit ;;
468659607e0Smrg    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
469659607e0Smrg	echo powerpc-harris-powermax
470659607e0Smrg	exit ;;
471659607e0Smrg    Night_Hawk:Power_UNIX:*:*)
472659607e0Smrg	echo powerpc-harris-powerunix
473659607e0Smrg	exit ;;
474659607e0Smrg    m88k:CX/UX:7*:*)
475659607e0Smrg	echo m88k-harris-cxux7
476659607e0Smrg	exit ;;
477659607e0Smrg    m88k:*:4*:R4*)
478659607e0Smrg	echo m88k-motorola-sysv4
479659607e0Smrg	exit ;;
480659607e0Smrg    m88k:*:3*:R3*)
481659607e0Smrg	echo m88k-motorola-sysv3
482659607e0Smrg	exit ;;
483659607e0Smrg    AViiON:dgux:*:*)
484659607e0Smrg        # DG/UX returns AViiON for all architectures
485659607e0Smrg        UNAME_PROCESSOR=`/usr/bin/uname -p`
486659607e0Smrg	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
487659607e0Smrg	then
488659607e0Smrg	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
489659607e0Smrg	       [ ${TARGET_BINARY_INTERFACE}x = x ]
490659607e0Smrg	    then
491659607e0Smrg		echo m88k-dg-dgux${UNAME_RELEASE}
492659607e0Smrg	    else
493659607e0Smrg		echo m88k-dg-dguxbcs${UNAME_RELEASE}
494659607e0Smrg	    fi
495659607e0Smrg	else
496659607e0Smrg	    echo i586-dg-dgux${UNAME_RELEASE}
497659607e0Smrg	fi
498659607e0Smrg 	exit ;;
499659607e0Smrg    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
500659607e0Smrg	echo m88k-dolphin-sysv3
501659607e0Smrg	exit ;;
502659607e0Smrg    M88*:*:R3*:*)
503659607e0Smrg	# Delta 88k system running SVR3
504659607e0Smrg	echo m88k-motorola-sysv3
505659607e0Smrg	exit ;;
506659607e0Smrg    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
507659607e0Smrg	echo m88k-tektronix-sysv3
508659607e0Smrg	exit ;;
509659607e0Smrg    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
510659607e0Smrg	echo m68k-tektronix-bsd
511659607e0Smrg	exit ;;
512659607e0Smrg    *:IRIX*:*:*)
513659607e0Smrg	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
514659607e0Smrg	exit ;;
515659607e0Smrg    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
516659607e0Smrg	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
517659607e0Smrg	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
518659607e0Smrg    i*86:AIX:*:*)
519659607e0Smrg	echo i386-ibm-aix
520659607e0Smrg	exit ;;
521659607e0Smrg    ia64:AIX:*:*)
522659607e0Smrg	if [ -x /usr/bin/oslevel ] ; then
523659607e0Smrg		IBM_REV=`/usr/bin/oslevel`
524659607e0Smrg	else
525659607e0Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
526659607e0Smrg	fi
527659607e0Smrg	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
528659607e0Smrg	exit ;;
529659607e0Smrg    *:AIX:2:3)
530659607e0Smrg	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
531659607e0Smrg		eval $set_cc_for_build
532659607e0Smrg		sed 's/^		//' << EOF >$dummy.c
533659607e0Smrg		#include <sys/systemcfg.h>
534659607e0Smrg
535659607e0Smrg		main()
536659607e0Smrg			{
537659607e0Smrg			if (!__power_pc())
538659607e0Smrg				exit(1);
539659607e0Smrg			puts("powerpc-ibm-aix3.2.5");
540659607e0Smrg			exit(0);
541659607e0Smrg			}
542659607e0SmrgEOF
543659607e0Smrg		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
544659607e0Smrg		then
545659607e0Smrg			echo "$SYSTEM_NAME"
546659607e0Smrg		else
547659607e0Smrg			echo rs6000-ibm-aix3.2.5
548659607e0Smrg		fi
549659607e0Smrg	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
550659607e0Smrg		echo rs6000-ibm-aix3.2.4
551659607e0Smrg	else
552659607e0Smrg		echo rs6000-ibm-aix3.2
553659607e0Smrg	fi
554659607e0Smrg	exit ;;
555bd3a1963Smrg    *:AIX:*:[4567])
556659607e0Smrg	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557659607e0Smrg	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
558659607e0Smrg		IBM_ARCH=rs6000
559659607e0Smrg	else
560659607e0Smrg		IBM_ARCH=powerpc
561659607e0Smrg	fi
562659607e0Smrg	if [ -x /usr/bin/oslevel ] ; then
563659607e0Smrg		IBM_REV=`/usr/bin/oslevel`
564659607e0Smrg	else
565659607e0Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
566659607e0Smrg	fi
567659607e0Smrg	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
568659607e0Smrg	exit ;;
569659607e0Smrg    *:AIX:*:*)
570659607e0Smrg	echo rs6000-ibm-aix
571659607e0Smrg	exit ;;
572659607e0Smrg    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
573659607e0Smrg	echo romp-ibm-bsd4.4
574659607e0Smrg	exit ;;
575659607e0Smrg    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
576659607e0Smrg	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
577659607e0Smrg	exit ;;                             # report: romp-ibm BSD 4.3
578659607e0Smrg    *:BOSX:*:*)
579659607e0Smrg	echo rs6000-bull-bosx
580659607e0Smrg	exit ;;
581659607e0Smrg    DPX/2?00:B.O.S.:*:*)
582659607e0Smrg	echo m68k-bull-sysv3
583659607e0Smrg	exit ;;
584659607e0Smrg    9000/[34]??:4.3bsd:1.*:*)
585659607e0Smrg	echo m68k-hp-bsd
586659607e0Smrg	exit ;;
587659607e0Smrg    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
588659607e0Smrg	echo m68k-hp-bsd4.4
589659607e0Smrg	exit ;;
590659607e0Smrg    9000/[34678]??:HP-UX:*:*)
591659607e0Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
592659607e0Smrg	case "${UNAME_MACHINE}" in
593659607e0Smrg	    9000/31? )            HP_ARCH=m68000 ;;
594659607e0Smrg	    9000/[34]?? )         HP_ARCH=m68k ;;
595659607e0Smrg	    9000/[678][0-9][0-9])
596659607e0Smrg		if [ -x /usr/bin/getconf ]; then
597659607e0Smrg		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598659607e0Smrg                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599659607e0Smrg                    case "${sc_cpu_version}" in
600659607e0Smrg                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601659607e0Smrg                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602659607e0Smrg                      532)                      # CPU_PA_RISC2_0
603659607e0Smrg                        case "${sc_kernel_bits}" in
604659607e0Smrg                          32) HP_ARCH="hppa2.0n" ;;
605659607e0Smrg                          64) HP_ARCH="hppa2.0w" ;;
606659607e0Smrg			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
607659607e0Smrg                        esac ;;
608659607e0Smrg                    esac
609659607e0Smrg		fi
610659607e0Smrg		if [ "${HP_ARCH}" = "" ]; then
611659607e0Smrg		    eval $set_cc_for_build
612659607e0Smrg		    sed 's/^              //' << EOF >$dummy.c
613659607e0Smrg
614659607e0Smrg              #define _HPUX_SOURCE
615659607e0Smrg              #include <stdlib.h>
616659607e0Smrg              #include <unistd.h>
617659607e0Smrg
618659607e0Smrg              int main ()
619659607e0Smrg              {
620659607e0Smrg              #if defined(_SC_KERNEL_BITS)
621659607e0Smrg                  long bits = sysconf(_SC_KERNEL_BITS);
622659607e0Smrg              #endif
623659607e0Smrg                  long cpu  = sysconf (_SC_CPU_VERSION);
624659607e0Smrg
625659607e0Smrg                  switch (cpu)
626659607e0Smrg              	{
627659607e0Smrg              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628659607e0Smrg              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629659607e0Smrg              	case CPU_PA_RISC2_0:
630659607e0Smrg              #if defined(_SC_KERNEL_BITS)
631659607e0Smrg              	    switch (bits)
632659607e0Smrg              		{
633659607e0Smrg              		case 64: puts ("hppa2.0w"); break;
634659607e0Smrg              		case 32: puts ("hppa2.0n"); break;
635659607e0Smrg              		default: puts ("hppa2.0"); break;
636659607e0Smrg              		} break;
637659607e0Smrg              #else  /* !defined(_SC_KERNEL_BITS) */
638659607e0Smrg              	    puts ("hppa2.0"); break;
639659607e0Smrg              #endif
640659607e0Smrg              	default: puts ("hppa1.0"); break;
641659607e0Smrg              	}
642659607e0Smrg                  exit (0);
643659607e0Smrg              }
644659607e0SmrgEOF
645659607e0Smrg		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646659607e0Smrg		    test -z "$HP_ARCH" && HP_ARCH=hppa
647659607e0Smrg		fi ;;
648659607e0Smrg	esac
649659607e0Smrg	if [ ${HP_ARCH} = "hppa2.0w" ]
650659607e0Smrg	then
651659607e0Smrg	    eval $set_cc_for_build
652659607e0Smrg
653659607e0Smrg	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
654659607e0Smrg	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
655659607e0Smrg	    # generating 64-bit code.  GNU and HP use different nomenclature:
656659607e0Smrg	    #
657659607e0Smrg	    # $ CC_FOR_BUILD=cc ./config.guess
658659607e0Smrg	    # => hppa2.0w-hp-hpux11.23
659659607e0Smrg	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
660659607e0Smrg	    # => hppa64-hp-hpux11.23
661659607e0Smrg
662659607e0Smrg	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
663b73be646Smrg		grep -q __LP64__
664659607e0Smrg	    then
665659607e0Smrg		HP_ARCH="hppa2.0w"
666659607e0Smrg	    else
667659607e0Smrg		HP_ARCH="hppa64"
668659607e0Smrg	    fi
669659607e0Smrg	fi
670659607e0Smrg	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
671659607e0Smrg	exit ;;
672659607e0Smrg    ia64:HP-UX:*:*)
673659607e0Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
674659607e0Smrg	echo ia64-hp-hpux${HPUX_REV}
675659607e0Smrg	exit ;;
676659607e0Smrg    3050*:HI-UX:*:*)
677659607e0Smrg	eval $set_cc_for_build
678659607e0Smrg	sed 's/^	//' << EOF >$dummy.c
679659607e0Smrg	#include <unistd.h>
680659607e0Smrg	int
681659607e0Smrg	main ()
682659607e0Smrg	{
683659607e0Smrg	  long cpu = sysconf (_SC_CPU_VERSION);
684659607e0Smrg	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
685659607e0Smrg	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
686659607e0Smrg	     results, however.  */
687659607e0Smrg	  if (CPU_IS_PA_RISC (cpu))
688659607e0Smrg	    {
689659607e0Smrg	      switch (cpu)
690659607e0Smrg		{
691659607e0Smrg		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
692659607e0Smrg		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
693659607e0Smrg		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
694659607e0Smrg		  default: puts ("hppa-hitachi-hiuxwe2"); break;
695659607e0Smrg		}
696659607e0Smrg	    }
697659607e0Smrg	  else if (CPU_IS_HP_MC68K (cpu))
698659607e0Smrg	    puts ("m68k-hitachi-hiuxwe2");
699659607e0Smrg	  else puts ("unknown-hitachi-hiuxwe2");
700659607e0Smrg	  exit (0);
701659607e0Smrg	}
702659607e0SmrgEOF
703659607e0Smrg	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
704659607e0Smrg		{ echo "$SYSTEM_NAME"; exit; }
705659607e0Smrg	echo unknown-hitachi-hiuxwe2
706659607e0Smrg	exit ;;
707659607e0Smrg    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
708659607e0Smrg	echo hppa1.1-hp-bsd
709659607e0Smrg	exit ;;
710659607e0Smrg    9000/8??:4.3bsd:*:*)
711659607e0Smrg	echo hppa1.0-hp-bsd
712659607e0Smrg	exit ;;
713659607e0Smrg    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
714659607e0Smrg	echo hppa1.0-hp-mpeix
715659607e0Smrg	exit ;;
716659607e0Smrg    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
717659607e0Smrg	echo hppa1.1-hp-osf
718659607e0Smrg	exit ;;
719659607e0Smrg    hp8??:OSF1:*:*)
720659607e0Smrg	echo hppa1.0-hp-osf
721659607e0Smrg	exit ;;
722659607e0Smrg    i*86:OSF1:*:*)
723659607e0Smrg	if [ -x /usr/sbin/sysversion ] ; then
724659607e0Smrg	    echo ${UNAME_MACHINE}-unknown-osf1mk
725659607e0Smrg	else
726659607e0Smrg	    echo ${UNAME_MACHINE}-unknown-osf1
727659607e0Smrg	fi
728659607e0Smrg	exit ;;
729659607e0Smrg    parisc*:Lites*:*:*)
730659607e0Smrg	echo hppa1.1-hp-lites
731659607e0Smrg	exit ;;
732659607e0Smrg    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
733659607e0Smrg	echo c1-convex-bsd
734659607e0Smrg        exit ;;
735659607e0Smrg    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
736659607e0Smrg	if getsysinfo -f scalar_acc
737659607e0Smrg	then echo c32-convex-bsd
738659607e0Smrg	else echo c2-convex-bsd
739659607e0Smrg	fi
740659607e0Smrg        exit ;;
741659607e0Smrg    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
742659607e0Smrg	echo c34-convex-bsd
743659607e0Smrg        exit ;;
744659607e0Smrg    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
745659607e0Smrg	echo c38-convex-bsd
746659607e0Smrg        exit ;;
747659607e0Smrg    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
748659607e0Smrg	echo c4-convex-bsd
749659607e0Smrg        exit ;;
750659607e0Smrg    CRAY*Y-MP:*:*:*)
751659607e0Smrg	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752659607e0Smrg	exit ;;
753659607e0Smrg    CRAY*[A-Z]90:*:*:*)
754659607e0Smrg	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
755659607e0Smrg	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
756659607e0Smrg	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
757659607e0Smrg	      -e 's/\.[^.]*$/.X/'
758659607e0Smrg	exit ;;
759659607e0Smrg    CRAY*TS:*:*:*)
760659607e0Smrg	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
761659607e0Smrg	exit ;;
762659607e0Smrg    CRAY*T3E:*:*:*)
763659607e0Smrg	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
764659607e0Smrg	exit ;;
765659607e0Smrg    CRAY*SV1:*:*:*)
766659607e0Smrg	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
767659607e0Smrg	exit ;;
768659607e0Smrg    *:UNICOS/mp:*:*)
769659607e0Smrg	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
770659607e0Smrg	exit ;;
771659607e0Smrg    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
772659607e0Smrg	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
773659607e0Smrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774659607e0Smrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775659607e0Smrg        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776659607e0Smrg        exit ;;
777659607e0Smrg    5000:UNIX_System_V:4.*:*)
778659607e0Smrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779659607e0Smrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780659607e0Smrg        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
781659607e0Smrg	exit ;;
782659607e0Smrg    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
783659607e0Smrg	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
784659607e0Smrg	exit ;;
785659607e0Smrg    sparc*:BSD/OS:*:*)
786659607e0Smrg	echo sparc-unknown-bsdi${UNAME_RELEASE}
787659607e0Smrg	exit ;;
788659607e0Smrg    *:BSD/OS:*:*)
789659607e0Smrg	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
790659607e0Smrg	exit ;;
791659607e0Smrg    *:FreeBSD:*:*)
792fc27e79cSmrg	case ${UNAME_MACHINE} in
793fc27e79cSmrg	    pc98)
794fc27e79cSmrg		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795fc27e79cSmrg	    amd64)
796fc27e79cSmrg		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797fc27e79cSmrg	    *)
798fc27e79cSmrg		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799fc27e79cSmrg	esac
800659607e0Smrg	exit ;;
801659607e0Smrg    i*:CYGWIN*:*)
802659607e0Smrg	echo ${UNAME_MACHINE}-pc-cygwin
803659607e0Smrg	exit ;;
804fc27e79cSmrg    *:MINGW*:*)
805659607e0Smrg	echo ${UNAME_MACHINE}-pc-mingw32
806659607e0Smrg	exit ;;
807659607e0Smrg    i*:windows32*:*)
808659607e0Smrg    	# uname -m includes "-pc" on this system.
809659607e0Smrg    	echo ${UNAME_MACHINE}-mingw32
810659607e0Smrg	exit ;;
811659607e0Smrg    i*:PW*:*)
812659607e0Smrg	echo ${UNAME_MACHINE}-pc-pw32
813659607e0Smrg	exit ;;
814b73be646Smrg    *:Interix*:*)
815fc27e79cSmrg    	case ${UNAME_MACHINE} in
816fc27e79cSmrg	    x86)
817fc27e79cSmrg		echo i586-pc-interix${UNAME_RELEASE}
818fc27e79cSmrg		exit ;;
819b73be646Smrg	    authenticamd | genuineintel | EM64T)
820fc27e79cSmrg		echo x86_64-unknown-interix${UNAME_RELEASE}
821fc27e79cSmrg		exit ;;
822fc27e79cSmrg	    IA64)
823fc27e79cSmrg		echo ia64-unknown-interix${UNAME_RELEASE}
824fc27e79cSmrg		exit ;;
825fc27e79cSmrg	esac ;;
826659607e0Smrg    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
827659607e0Smrg	echo i${UNAME_MACHINE}-pc-mks
828659607e0Smrg	exit ;;
829b73be646Smrg    8664:Windows_NT:*)
830b73be646Smrg	echo x86_64-pc-mks
831b73be646Smrg	exit ;;
832659607e0Smrg    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
833659607e0Smrg	# How do we know it's Interix rather than the generic POSIX subsystem?
834659607e0Smrg	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
835659607e0Smrg	# UNAME_MACHINE based on the output of uname instead of i386?
836659607e0Smrg	echo i586-pc-interix
837659607e0Smrg	exit ;;
838659607e0Smrg    i*:UWIN*:*)
839659607e0Smrg	echo ${UNAME_MACHINE}-pc-uwin
840659607e0Smrg	exit ;;
841659607e0Smrg    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
842659607e0Smrg	echo x86_64-unknown-cygwin
843659607e0Smrg	exit ;;
844659607e0Smrg    p*:CYGWIN*:*)
845659607e0Smrg	echo powerpcle-unknown-cygwin
846659607e0Smrg	exit ;;
847659607e0Smrg    prep*:SunOS:5.*:*)
848659607e0Smrg	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
849659607e0Smrg	exit ;;
850659607e0Smrg    *:GNU:*:*)
851659607e0Smrg	# the GNU system
852659607e0Smrg	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
853659607e0Smrg	exit ;;
854659607e0Smrg    *:GNU/*:*:*)
855659607e0Smrg	# other systems with GNU libc and userland
856659607e0Smrg	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
857659607e0Smrg	exit ;;
858659607e0Smrg    i*86:Minix:*:*)
859659607e0Smrg	echo ${UNAME_MACHINE}-pc-minix
860659607e0Smrg	exit ;;
861b73be646Smrg    alpha:Linux:*:*)
862b73be646Smrg	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
863b73be646Smrg	  EV5)   UNAME_MACHINE=alphaev5 ;;
864b73be646Smrg	  EV56)  UNAME_MACHINE=alphaev56 ;;
865b73be646Smrg	  PCA56) UNAME_MACHINE=alphapca56 ;;
866b73be646Smrg	  PCA57) UNAME_MACHINE=alphapca56 ;;
867b73be646Smrg	  EV6)   UNAME_MACHINE=alphaev6 ;;
868b73be646Smrg	  EV67)  UNAME_MACHINE=alphaev67 ;;
869b73be646Smrg	  EV68*) UNAME_MACHINE=alphaev68 ;;
870b73be646Smrg        esac
871b73be646Smrg	objdump --private-headers /bin/sh | grep -q ld.so.1
872b73be646Smrg	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
873b73be646Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
874b73be646Smrg	exit ;;
875659607e0Smrg    arm*:Linux:*:*)
876fc27e79cSmrg	eval $set_cc_for_build
877fc27e79cSmrg	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
878fc27e79cSmrg	    | grep -q __ARM_EABI__
879fc27e79cSmrg	then
880fc27e79cSmrg	    echo ${UNAME_MACHINE}-unknown-linux-gnu
881fc27e79cSmrg	else
882fc27e79cSmrg	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
883fc27e79cSmrg	fi
884fc27e79cSmrg	exit ;;
885fc27e79cSmrg    avr32*:Linux:*:*)
886659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
887659607e0Smrg	exit ;;
888659607e0Smrg    cris:Linux:*:*)
889659607e0Smrg	echo cris-axis-linux-gnu
890659607e0Smrg	exit ;;
891659607e0Smrg    crisv32:Linux:*:*)
892659607e0Smrg	echo crisv32-axis-linux-gnu
893659607e0Smrg	exit ;;
894659607e0Smrg    frv:Linux:*:*)
895659607e0Smrg    	echo frv-unknown-linux-gnu
896659607e0Smrg	exit ;;
897b73be646Smrg    i*86:Linux:*:*)
898b73be646Smrg	LIBC=gnu
899b73be646Smrg	eval $set_cc_for_build
900b73be646Smrg	sed 's/^	//' << EOF >$dummy.c
901b73be646Smrg	#ifdef __dietlibc__
902b73be646Smrg	LIBC=dietlibc
903b73be646Smrg	#endif
904b73be646SmrgEOF
905b73be646Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
906b73be646Smrg	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
907b73be646Smrg	exit ;;
908659607e0Smrg    ia64:Linux:*:*)
909659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
910659607e0Smrg	exit ;;
911659607e0Smrg    m32r*:Linux:*:*)
912659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
913659607e0Smrg	exit ;;
914659607e0Smrg    m68*:Linux:*:*)
915659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
916659607e0Smrg	exit ;;
917b73be646Smrg    mips:Linux:*:* | mips64:Linux:*:*)
918659607e0Smrg	eval $set_cc_for_build
919659607e0Smrg	sed 's/^	//' << EOF >$dummy.c
920659607e0Smrg	#undef CPU
921b73be646Smrg	#undef ${UNAME_MACHINE}
922b73be646Smrg	#undef ${UNAME_MACHINE}el
923659607e0Smrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
924b73be646Smrg	CPU=${UNAME_MACHINE}el
925659607e0Smrg	#else
926659607e0Smrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
927b73be646Smrg	CPU=${UNAME_MACHINE}
928659607e0Smrg	#else
929659607e0Smrg	CPU=
930659607e0Smrg	#endif
931659607e0Smrg	#endif
932659607e0SmrgEOF
933b73be646Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
934659607e0Smrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
935659607e0Smrg	;;
936659607e0Smrg    or32:Linux:*:*)
937659607e0Smrg	echo or32-unknown-linux-gnu
938659607e0Smrg	exit ;;
939b73be646Smrg    padre:Linux:*:*)
940b73be646Smrg	echo sparc-unknown-linux-gnu
941659607e0Smrg	exit ;;
942b73be646Smrg    parisc64:Linux:*:* | hppa64:Linux:*:*)
943b73be646Smrg	echo hppa64-unknown-linux-gnu
944659607e0Smrg	exit ;;
945659607e0Smrg    parisc:Linux:*:* | hppa:Linux:*:*)
946659607e0Smrg	# Look for CPU level
947659607e0Smrg	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
948659607e0Smrg	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
949659607e0Smrg	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
950659607e0Smrg	  *)    echo hppa-unknown-linux-gnu ;;
951659607e0Smrg	esac
952659607e0Smrg	exit ;;
953b73be646Smrg    ppc64:Linux:*:*)
954b73be646Smrg	echo powerpc64-unknown-linux-gnu
955b73be646Smrg	exit ;;
956b73be646Smrg    ppc:Linux:*:*)
957b73be646Smrg	echo powerpc-unknown-linux-gnu
958659607e0Smrg	exit ;;
959659607e0Smrg    s390:Linux:*:* | s390x:Linux:*:*)
960659607e0Smrg	echo ${UNAME_MACHINE}-ibm-linux
961659607e0Smrg	exit ;;
962659607e0Smrg    sh64*:Linux:*:*)
963659607e0Smrg    	echo ${UNAME_MACHINE}-unknown-linux-gnu
964659607e0Smrg	exit ;;
965659607e0Smrg    sh*:Linux:*:*)
966659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
967659607e0Smrg	exit ;;
968659607e0Smrg    sparc:Linux:*:* | sparc64:Linux:*:*)
969659607e0Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
970659607e0Smrg	exit ;;
971bd3a1963Smrg    tile*:Linux:*:*)
972bd3a1963Smrg	echo ${UNAME_MACHINE}-tilera-linux-gnu
973bd3a1963Smrg	exit ;;
974659607e0Smrg    vax:Linux:*:*)
975659607e0Smrg	echo ${UNAME_MACHINE}-dec-linux-gnu
976659607e0Smrg	exit ;;
977659607e0Smrg    x86_64:Linux:*:*)
978659607e0Smrg	echo x86_64-unknown-linux-gnu
979659607e0Smrg	exit ;;
980fc27e79cSmrg    xtensa*:Linux:*:*)
981fc27e79cSmrg    	echo ${UNAME_MACHINE}-unknown-linux-gnu
982fc27e79cSmrg	exit ;;
983659607e0Smrg    i*86:DYNIX/ptx:4*:*)
984659607e0Smrg	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
985659607e0Smrg	# earlier versions are messed up and put the nodename in both
986659607e0Smrg	# sysname and nodename.
987659607e0Smrg	echo i386-sequent-sysv4
988659607e0Smrg	exit ;;
989659607e0Smrg    i*86:UNIX_SV:4.2MP:2.*)
990659607e0Smrg        # Unixware is an offshoot of SVR4, but it has its own version
991659607e0Smrg        # number series starting with 2...
992659607e0Smrg        # I am not positive that other SVR4 systems won't match this,
993659607e0Smrg	# I just have to hope.  -- rms.
994659607e0Smrg        # Use sysv4.2uw... so that sysv4* matches it.
995659607e0Smrg	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
996659607e0Smrg	exit ;;
997659607e0Smrg    i*86:OS/2:*:*)
998659607e0Smrg	# If we were able to find `uname', then EMX Unix compatibility
999659607e0Smrg	# is probably installed.
1000659607e0Smrg	echo ${UNAME_MACHINE}-pc-os2-emx
1001659607e0Smrg	exit ;;
1002659607e0Smrg    i*86:XTS-300:*:STOP)
1003659607e0Smrg	echo ${UNAME_MACHINE}-unknown-stop
1004659607e0Smrg	exit ;;
1005659607e0Smrg    i*86:atheos:*:*)
1006659607e0Smrg	echo ${UNAME_MACHINE}-unknown-atheos
1007659607e0Smrg	exit ;;
1008659607e0Smrg    i*86:syllable:*:*)
1009659607e0Smrg	echo ${UNAME_MACHINE}-pc-syllable
1010659607e0Smrg	exit ;;
1011b73be646Smrg    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1012659607e0Smrg	echo i386-unknown-lynxos${UNAME_RELEASE}
1013659607e0Smrg	exit ;;
1014659607e0Smrg    i*86:*DOS:*:*)
1015659607e0Smrg	echo ${UNAME_MACHINE}-pc-msdosdjgpp
1016659607e0Smrg	exit ;;
1017659607e0Smrg    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1018659607e0Smrg	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1019659607e0Smrg	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1020659607e0Smrg		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1021659607e0Smrg	else
1022659607e0Smrg		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1023659607e0Smrg	fi
1024659607e0Smrg	exit ;;
1025659607e0Smrg    i*86:*:5:[678]*)
1026659607e0Smrg    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
1027659607e0Smrg	case `/bin/uname -X | grep "^Machine"` in
1028659607e0Smrg	    *486*)	     UNAME_MACHINE=i486 ;;
1029659607e0Smrg	    *Pentium)	     UNAME_MACHINE=i586 ;;
1030659607e0Smrg	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1031659607e0Smrg	esac
1032659607e0Smrg	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1033659607e0Smrg	exit ;;
1034659607e0Smrg    i*86:*:3.2:*)
1035659607e0Smrg	if test -f /usr/options/cb.name; then
1036659607e0Smrg		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1037659607e0Smrg		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1038659607e0Smrg	elif /bin/uname -X 2>/dev/null >/dev/null ; then
1039659607e0Smrg		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1040659607e0Smrg		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1041659607e0Smrg		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1042659607e0Smrg			&& UNAME_MACHINE=i586
1043659607e0Smrg		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1044659607e0Smrg			&& UNAME_MACHINE=i686
1045659607e0Smrg		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1046659607e0Smrg			&& UNAME_MACHINE=i686
1047659607e0Smrg		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1048659607e0Smrg	else
1049659607e0Smrg		echo ${UNAME_MACHINE}-pc-sysv32
1050659607e0Smrg	fi
1051659607e0Smrg	exit ;;
1052659607e0Smrg    pc:*:*:*)
1053659607e0Smrg	# Left here for compatibility:
1054659607e0Smrg        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1055b73be646Smrg        # the processor, so we play safe by assuming i586.
1056b73be646Smrg	# Note: whatever this is, it MUST be the same as what config.sub
1057b73be646Smrg	# prints for the "djgpp" host, or else GDB configury will decide that
1058b73be646Smrg	# this is a cross-build.
1059b73be646Smrg	echo i586-pc-msdosdjgpp
1060659607e0Smrg        exit ;;
1061659607e0Smrg    Intel:Mach:3*:*)
1062659607e0Smrg	echo i386-pc-mach3
1063659607e0Smrg	exit ;;
1064659607e0Smrg    paragon:*:*:*)
1065659607e0Smrg	echo i860-intel-osf1
1066659607e0Smrg	exit ;;
1067659607e0Smrg    i860:*:4.*:*) # i860-SVR4
1068659607e0Smrg	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1069659607e0Smrg	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1070659607e0Smrg	else # Add other i860-SVR4 vendors below as they are discovered.
1071659607e0Smrg	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
1072659607e0Smrg	fi
1073659607e0Smrg	exit ;;
1074659607e0Smrg    mini*:CTIX:SYS*5:*)
1075659607e0Smrg	# "miniframe"
1076659607e0Smrg	echo m68010-convergent-sysv
1077659607e0Smrg	exit ;;
1078659607e0Smrg    mc68k:UNIX:SYSTEM5:3.51m)
1079659607e0Smrg	echo m68k-convergent-sysv
1080659607e0Smrg	exit ;;
1081659607e0Smrg    M680?0:D-NIX:5.3:*)
1082659607e0Smrg	echo m68k-diab-dnix
1083659607e0Smrg	exit ;;
1084659607e0Smrg    M68*:*:R3V[5678]*:*)
1085659607e0Smrg	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1086659607e0Smrg    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)
1087659607e0Smrg	OS_REL=''
1088659607e0Smrg	test -r /etc/.relid \
1089659607e0Smrg	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1090659607e0Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091659607e0Smrg	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1092659607e0Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1093659607e0Smrg	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1094659607e0Smrg    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1095659607e0Smrg        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1096659607e0Smrg          && { echo i486-ncr-sysv4; exit; } ;;
1097b73be646Smrg    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1098b73be646Smrg	OS_REL='.3'
1099b73be646Smrg	test -r /etc/.relid \
1100b73be646Smrg	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1101b73be646Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1102b73be646Smrg	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1103b73be646Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1104b73be646Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1105b73be646Smrg	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1106b73be646Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1107659607e0Smrg    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1108659607e0Smrg	echo m68k-unknown-lynxos${UNAME_RELEASE}
1109659607e0Smrg	exit ;;
1110659607e0Smrg    mc68030:UNIX_System_V:4.*:*)
1111659607e0Smrg	echo m68k-atari-sysv4
1112659607e0Smrg	exit ;;
1113659607e0Smrg    TSUNAMI:LynxOS:2.*:*)
1114659607e0Smrg	echo sparc-unknown-lynxos${UNAME_RELEASE}
1115659607e0Smrg	exit ;;
1116659607e0Smrg    rs6000:LynxOS:2.*:*)
1117659607e0Smrg	echo rs6000-unknown-lynxos${UNAME_RELEASE}
1118659607e0Smrg	exit ;;
1119b73be646Smrg    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1120659607e0Smrg	echo powerpc-unknown-lynxos${UNAME_RELEASE}
1121659607e0Smrg	exit ;;
1122659607e0Smrg    SM[BE]S:UNIX_SV:*:*)
1123659607e0Smrg	echo mips-dde-sysv${UNAME_RELEASE}
1124659607e0Smrg	exit ;;
1125659607e0Smrg    RM*:ReliantUNIX-*:*:*)
1126659607e0Smrg	echo mips-sni-sysv4
1127659607e0Smrg	exit ;;
1128659607e0Smrg    RM*:SINIX-*:*:*)
1129659607e0Smrg	echo mips-sni-sysv4
1130659607e0Smrg	exit ;;
1131659607e0Smrg    *:SINIX-*:*:*)
1132659607e0Smrg	if uname -p 2>/dev/null >/dev/null ; then
1133659607e0Smrg		UNAME_MACHINE=`(uname -p) 2>/dev/null`
1134659607e0Smrg		echo ${UNAME_MACHINE}-sni-sysv4
1135659607e0Smrg	else
1136659607e0Smrg		echo ns32k-sni-sysv
1137659607e0Smrg	fi
1138659607e0Smrg	exit ;;
1139659607e0Smrg    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1140659607e0Smrg                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1141659607e0Smrg        echo i586-unisys-sysv4
1142659607e0Smrg        exit ;;
1143659607e0Smrg    *:UNIX_System_V:4*:FTX*)
1144659607e0Smrg	# From Gerald Hewes <hewes@openmarket.com>.
1145659607e0Smrg	# How about differentiating between stratus architectures? -djm
1146659607e0Smrg	echo hppa1.1-stratus-sysv4
1147659607e0Smrg	exit ;;
1148659607e0Smrg    *:*:*:FTX*)
1149659607e0Smrg	# From seanf@swdc.stratus.com.
1150659607e0Smrg	echo i860-stratus-sysv4
1151659607e0Smrg	exit ;;
1152659607e0Smrg    i*86:VOS:*:*)
1153659607e0Smrg	# From Paul.Green@stratus.com.
1154659607e0Smrg	echo ${UNAME_MACHINE}-stratus-vos
1155659607e0Smrg	exit ;;
1156659607e0Smrg    *:VOS:*:*)
1157659607e0Smrg	# From Paul.Green@stratus.com.
1158659607e0Smrg	echo hppa1.1-stratus-vos
1159659607e0Smrg	exit ;;
1160659607e0Smrg    mc68*:A/UX:*:*)
1161659607e0Smrg	echo m68k-apple-aux${UNAME_RELEASE}
1162659607e0Smrg	exit ;;
1163659607e0Smrg    news*:NEWS-OS:6*:*)
1164659607e0Smrg	echo mips-sony-newsos6
1165659607e0Smrg	exit ;;
1166659607e0Smrg    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1167659607e0Smrg	if [ -d /usr/nec ]; then
1168659607e0Smrg	        echo mips-nec-sysv${UNAME_RELEASE}
1169659607e0Smrg	else
1170659607e0Smrg	        echo mips-unknown-sysv${UNAME_RELEASE}
1171659607e0Smrg	fi
1172659607e0Smrg        exit ;;
1173659607e0Smrg    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
1174659607e0Smrg	echo powerpc-be-beos
1175659607e0Smrg	exit ;;
1176659607e0Smrg    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
1177659607e0Smrg	echo powerpc-apple-beos
1178659607e0Smrg	exit ;;
1179659607e0Smrg    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
1180659607e0Smrg	echo i586-pc-beos
1181659607e0Smrg	exit ;;
1182b73be646Smrg    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1183b73be646Smrg	echo i586-pc-haiku
1184b73be646Smrg	exit ;;
1185659607e0Smrg    SX-4:SUPER-UX:*:*)
1186659607e0Smrg	echo sx4-nec-superux${UNAME_RELEASE}
1187659607e0Smrg	exit ;;
1188659607e0Smrg    SX-5:SUPER-UX:*:*)
1189659607e0Smrg	echo sx5-nec-superux${UNAME_RELEASE}
1190659607e0Smrg	exit ;;
1191659607e0Smrg    SX-6:SUPER-UX:*:*)
1192659607e0Smrg	echo sx6-nec-superux${UNAME_RELEASE}
1193659607e0Smrg	exit ;;
1194fc27e79cSmrg    SX-7:SUPER-UX:*:*)
1195fc27e79cSmrg	echo sx7-nec-superux${UNAME_RELEASE}
1196fc27e79cSmrg	exit ;;
1197fc27e79cSmrg    SX-8:SUPER-UX:*:*)
1198fc27e79cSmrg	echo sx8-nec-superux${UNAME_RELEASE}
1199fc27e79cSmrg	exit ;;
1200fc27e79cSmrg    SX-8R:SUPER-UX:*:*)
1201fc27e79cSmrg	echo sx8r-nec-superux${UNAME_RELEASE}
1202fc27e79cSmrg	exit ;;
1203659607e0Smrg    Power*:Rhapsody:*:*)
1204659607e0Smrg	echo powerpc-apple-rhapsody${UNAME_RELEASE}
1205659607e0Smrg	exit ;;
1206659607e0Smrg    *:Rhapsody:*:*)
1207659607e0Smrg	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1208659607e0Smrg	exit ;;
1209659607e0Smrg    *:Darwin:*:*)
1210659607e0Smrg	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1211659607e0Smrg	case $UNAME_PROCESSOR in
1212b73be646Smrg	    i386)
1213b73be646Smrg		eval $set_cc_for_build
1214b73be646Smrg		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1215b73be646Smrg		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1216b73be646Smrg		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1217b73be646Smrg		      grep IS_64BIT_ARCH >/dev/null
1218b73be646Smrg		  then
1219b73be646Smrg		      UNAME_PROCESSOR="x86_64"
1220b73be646Smrg		  fi
1221b73be646Smrg		fi ;;
1222659607e0Smrg	    unknown) UNAME_PROCESSOR=powerpc ;;
1223659607e0Smrg	esac
1224659607e0Smrg	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1225659607e0Smrg	exit ;;
1226659607e0Smrg    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1227659607e0Smrg	UNAME_PROCESSOR=`uname -p`
1228659607e0Smrg	if test "$UNAME_PROCESSOR" = "x86"; then
1229659607e0Smrg		UNAME_PROCESSOR=i386
1230659607e0Smrg		UNAME_MACHINE=pc
1231659607e0Smrg	fi
1232659607e0Smrg	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1233659607e0Smrg	exit ;;
1234659607e0Smrg    *:QNX:*:4*)
1235659607e0Smrg	echo i386-pc-qnx
1236659607e0Smrg	exit ;;
1237659607e0Smrg    NSE-?:NONSTOP_KERNEL:*:*)
1238659607e0Smrg	echo nse-tandem-nsk${UNAME_RELEASE}
1239659607e0Smrg	exit ;;
1240659607e0Smrg    NSR-?:NONSTOP_KERNEL:*:*)
1241659607e0Smrg	echo nsr-tandem-nsk${UNAME_RELEASE}
1242659607e0Smrg	exit ;;
1243659607e0Smrg    *:NonStop-UX:*:*)
1244659607e0Smrg	echo mips-compaq-nonstopux
1245659607e0Smrg	exit ;;
1246659607e0Smrg    BS2000:POSIX*:*:*)
1247659607e0Smrg	echo bs2000-siemens-sysv
1248659607e0Smrg	exit ;;
1249659607e0Smrg    DS/*:UNIX_System_V:*:*)
1250659607e0Smrg	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1251659607e0Smrg	exit ;;
1252659607e0Smrg    *:Plan9:*:*)
1253659607e0Smrg	# "uname -m" is not consistent, so use $cputype instead. 386
1254659607e0Smrg	# is converted to i386 for consistency with other x86
1255659607e0Smrg	# operating systems.
1256659607e0Smrg	if test "$cputype" = "386"; then
1257659607e0Smrg	    UNAME_MACHINE=i386
1258659607e0Smrg	else
1259659607e0Smrg	    UNAME_MACHINE="$cputype"
1260659607e0Smrg	fi
1261659607e0Smrg	echo ${UNAME_MACHINE}-unknown-plan9
1262659607e0Smrg	exit ;;
1263659607e0Smrg    *:TOPS-10:*:*)
1264659607e0Smrg	echo pdp10-unknown-tops10
1265659607e0Smrg	exit ;;
1266659607e0Smrg    *:TENEX:*:*)
1267659607e0Smrg	echo pdp10-unknown-tenex
1268659607e0Smrg	exit ;;
1269659607e0Smrg    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1270659607e0Smrg	echo pdp10-dec-tops20
1271659607e0Smrg	exit ;;
1272659607e0Smrg    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1273659607e0Smrg	echo pdp10-xkl-tops20
1274659607e0Smrg	exit ;;
1275659607e0Smrg    *:TOPS-20:*:*)
1276659607e0Smrg	echo pdp10-unknown-tops20
1277659607e0Smrg	exit ;;
1278659607e0Smrg    *:ITS:*:*)
1279659607e0Smrg	echo pdp10-unknown-its
1280659607e0Smrg	exit ;;
1281659607e0Smrg    SEI:*:*:SEIUX)
1282659607e0Smrg        echo mips-sei-seiux${UNAME_RELEASE}
1283659607e0Smrg	exit ;;
1284659607e0Smrg    *:DragonFly:*:*)
1285659607e0Smrg	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1286659607e0Smrg	exit ;;
1287659607e0Smrg    *:*VMS:*:*)
1288659607e0Smrg    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1289659607e0Smrg	case "${UNAME_MACHINE}" in
1290659607e0Smrg	    A*) echo alpha-dec-vms ; exit ;;
1291659607e0Smrg	    I*) echo ia64-dec-vms ; exit ;;
1292659607e0Smrg	    V*) echo vax-dec-vms ; exit ;;
1293659607e0Smrg	esac ;;
1294659607e0Smrg    *:XENIX:*:SysV)
1295659607e0Smrg	echo i386-pc-xenix
1296659607e0Smrg	exit ;;
1297659607e0Smrg    i*86:skyos:*:*)
1298659607e0Smrg	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1299659607e0Smrg	exit ;;
1300659607e0Smrg    i*86:rdos:*:*)
1301659607e0Smrg	echo ${UNAME_MACHINE}-pc-rdos
1302659607e0Smrg	exit ;;
1303b73be646Smrg    i*86:AROS:*:*)
1304b73be646Smrg	echo ${UNAME_MACHINE}-pc-aros
1305b73be646Smrg	exit ;;
1306659607e0Smrgesac
1307659607e0Smrg
1308659607e0Smrg#echo '(No uname command or uname output not recognized.)' 1>&2
1309659607e0Smrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1310659607e0Smrg
1311659607e0Smrgeval $set_cc_for_build
1312659607e0Smrgcat >$dummy.c <<EOF
1313659607e0Smrg#ifdef _SEQUENT_
1314659607e0Smrg# include <sys/types.h>
1315659607e0Smrg# include <sys/utsname.h>
1316659607e0Smrg#endif
1317659607e0Smrgmain ()
1318659607e0Smrg{
1319659607e0Smrg#if defined (sony)
1320659607e0Smrg#if defined (MIPSEB)
1321659607e0Smrg  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
1322659607e0Smrg     I don't know....  */
1323659607e0Smrg  printf ("mips-sony-bsd\n"); exit (0);
1324659607e0Smrg#else
1325659607e0Smrg#include <sys/param.h>
1326659607e0Smrg  printf ("m68k-sony-newsos%s\n",
1327659607e0Smrg#ifdef NEWSOS4
1328659607e0Smrg          "4"
1329659607e0Smrg#else
1330659607e0Smrg	  ""
1331659607e0Smrg#endif
1332659607e0Smrg         ); exit (0);
1333659607e0Smrg#endif
1334659607e0Smrg#endif
1335659607e0Smrg
1336659607e0Smrg#if defined (__arm) && defined (__acorn) && defined (__unix)
1337659607e0Smrg  printf ("arm-acorn-riscix\n"); exit (0);
1338659607e0Smrg#endif
1339659607e0Smrg
1340659607e0Smrg#if defined (hp300) && !defined (hpux)
1341659607e0Smrg  printf ("m68k-hp-bsd\n"); exit (0);
1342659607e0Smrg#endif
1343659607e0Smrg
1344659607e0Smrg#if defined (NeXT)
1345659607e0Smrg#if !defined (__ARCHITECTURE__)
1346659607e0Smrg#define __ARCHITECTURE__ "m68k"
1347659607e0Smrg#endif
1348659607e0Smrg  int version;
1349659607e0Smrg  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1350659607e0Smrg  if (version < 4)
1351659607e0Smrg    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1352659607e0Smrg  else
1353659607e0Smrg    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1354659607e0Smrg  exit (0);
1355659607e0Smrg#endif
1356659607e0Smrg
1357659607e0Smrg#if defined (MULTIMAX) || defined (n16)
1358659607e0Smrg#if defined (UMAXV)
1359659607e0Smrg  printf ("ns32k-encore-sysv\n"); exit (0);
1360659607e0Smrg#else
1361659607e0Smrg#if defined (CMU)
1362659607e0Smrg  printf ("ns32k-encore-mach\n"); exit (0);
1363659607e0Smrg#else
1364659607e0Smrg  printf ("ns32k-encore-bsd\n"); exit (0);
1365659607e0Smrg#endif
1366659607e0Smrg#endif
1367659607e0Smrg#endif
1368659607e0Smrg
1369659607e0Smrg#if defined (__386BSD__)
1370659607e0Smrg  printf ("i386-pc-bsd\n"); exit (0);
1371659607e0Smrg#endif
1372659607e0Smrg
1373659607e0Smrg#if defined (sequent)
1374659607e0Smrg#if defined (i386)
1375659607e0Smrg  printf ("i386-sequent-dynix\n"); exit (0);
1376659607e0Smrg#endif
1377659607e0Smrg#if defined (ns32000)
1378659607e0Smrg  printf ("ns32k-sequent-dynix\n"); exit (0);
1379659607e0Smrg#endif
1380659607e0Smrg#endif
1381659607e0Smrg
1382659607e0Smrg#if defined (_SEQUENT_)
1383659607e0Smrg    struct utsname un;
1384659607e0Smrg
1385659607e0Smrg    uname(&un);
1386659607e0Smrg
1387659607e0Smrg    if (strncmp(un.version, "V2", 2) == 0) {
1388659607e0Smrg	printf ("i386-sequent-ptx2\n"); exit (0);
1389659607e0Smrg    }
1390659607e0Smrg    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1391659607e0Smrg	printf ("i386-sequent-ptx1\n"); exit (0);
1392659607e0Smrg    }
1393659607e0Smrg    printf ("i386-sequent-ptx\n"); exit (0);
1394659607e0Smrg
1395659607e0Smrg#endif
1396659607e0Smrg
1397659607e0Smrg#if defined (vax)
1398659607e0Smrg# if !defined (ultrix)
1399659607e0Smrg#  include <sys/param.h>
1400659607e0Smrg#  if defined (BSD)
1401659607e0Smrg#   if BSD == 43
1402659607e0Smrg      printf ("vax-dec-bsd4.3\n"); exit (0);
1403659607e0Smrg#   else
1404659607e0Smrg#    if BSD == 199006
1405659607e0Smrg      printf ("vax-dec-bsd4.3reno\n"); exit (0);
1406659607e0Smrg#    else
1407659607e0Smrg      printf ("vax-dec-bsd\n"); exit (0);
1408659607e0Smrg#    endif
1409659607e0Smrg#   endif
1410659607e0Smrg#  else
1411659607e0Smrg    printf ("vax-dec-bsd\n"); exit (0);
1412659607e0Smrg#  endif
1413659607e0Smrg# else
1414659607e0Smrg    printf ("vax-dec-ultrix\n"); exit (0);
1415659607e0Smrg# endif
1416659607e0Smrg#endif
1417659607e0Smrg
1418659607e0Smrg#if defined (alliant) && defined (i860)
1419659607e0Smrg  printf ("i860-alliant-bsd\n"); exit (0);
1420659607e0Smrg#endif
1421659607e0Smrg
1422659607e0Smrg  exit (1);
1423659607e0Smrg}
1424659607e0SmrgEOF
1425659607e0Smrg
1426659607e0Smrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1427659607e0Smrg	{ echo "$SYSTEM_NAME"; exit; }
1428659607e0Smrg
1429659607e0Smrg# Apollos put the system type in the environment.
1430659607e0Smrg
1431659607e0Smrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1432659607e0Smrg
1433659607e0Smrg# Convex versions that predate uname can use getsysinfo(1)
1434659607e0Smrg
1435659607e0Smrgif [ -x /usr/convex/getsysinfo ]
1436659607e0Smrgthen
1437659607e0Smrg    case `getsysinfo -f cpu_type` in
1438659607e0Smrg    c1*)
1439659607e0Smrg	echo c1-convex-bsd
1440659607e0Smrg	exit ;;
1441659607e0Smrg    c2*)
1442659607e0Smrg	if getsysinfo -f scalar_acc
1443659607e0Smrg	then echo c32-convex-bsd
1444659607e0Smrg	else echo c2-convex-bsd
1445659607e0Smrg	fi
1446659607e0Smrg	exit ;;
1447659607e0Smrg    c34*)
1448659607e0Smrg	echo c34-convex-bsd
1449659607e0Smrg	exit ;;
1450659607e0Smrg    c38*)
1451659607e0Smrg	echo c38-convex-bsd
1452659607e0Smrg	exit ;;
1453659607e0Smrg    c4*)
1454659607e0Smrg	echo c4-convex-bsd
1455659607e0Smrg	exit ;;
1456659607e0Smrg    esac
1457659607e0Smrgfi
1458659607e0Smrg
1459659607e0Smrgcat >&2 <<EOF
1460659607e0Smrg$0: unable to guess system type
1461659607e0Smrg
1462659607e0SmrgThis script, last modified $timestamp, has failed to recognize
1463659607e0Smrgthe operating system you are using. It is advised that you
1464659607e0Smrgdownload the most up to date version of the config scripts from
1465659607e0Smrg
1466fc27e79cSmrg  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1467659607e0Smrgand
1468fc27e79cSmrg  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1469659607e0Smrg
1470659607e0SmrgIf the version you run ($0) is already up to date, please
1471659607e0Smrgsend the following data and any information you think might be
1472659607e0Smrgpertinent to <config-patches@gnu.org> in order to provide the needed
1473659607e0Smrginformation to handle your system.
1474659607e0Smrg
1475659607e0Smrgconfig.guess timestamp = $timestamp
1476659607e0Smrg
1477659607e0Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1478659607e0Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1479659607e0Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1480659607e0Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1481659607e0Smrg
1482659607e0Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1483659607e0Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
1484659607e0Smrg
1485659607e0Smrghostinfo               = `(hostinfo) 2>/dev/null`
1486659607e0Smrg/bin/universe          = `(/bin/universe) 2>/dev/null`
1487659607e0Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
1488659607e0Smrg/bin/arch              = `(/bin/arch) 2>/dev/null`
1489659607e0Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
1490659607e0Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1491659607e0Smrg
1492659607e0SmrgUNAME_MACHINE = ${UNAME_MACHINE}
1493659607e0SmrgUNAME_RELEASE = ${UNAME_RELEASE}
1494659607e0SmrgUNAME_SYSTEM  = ${UNAME_SYSTEM}
1495659607e0SmrgUNAME_VERSION = ${UNAME_VERSION}
1496659607e0SmrgEOF
1497659607e0Smrg
1498659607e0Smrgexit 1
1499659607e0Smrg
1500659607e0Smrg# Local variables:
1501659607e0Smrg# eval: (add-hook 'write-file-hooks 'time-stamp)
1502659607e0Smrg# time-stamp-start: "timestamp='"
1503659607e0Smrg# time-stamp-format: "%:y-%02m-%02d"
1504659607e0Smrg# time-stamp-end: "'"
1505659607e0Smrg# End:
1506