16b526288Smrg#!/bin/sh 241b2f0bdSmrg# Attempt to guess a canonical system name. 36b526288Smrg# Copyright 1992-2017 Free Software Foundation, Inc. 441b2f0bdSmrg 56b526288Smrgtimestamp='2017-08-08' 641b2f0bdSmrg 741b2f0bdSmrg# This file is free software; you can redistribute it and/or modify it 841b2f0bdSmrg# under the terms of the GNU General Public License as published by 96b526288Smrg# the Free Software Foundation; either version 3 of the License, or 1041b2f0bdSmrg# (at your option) any later version. 1141b2f0bdSmrg# 1241b2f0bdSmrg# This program is distributed in the hope that it will be useful, but 1341b2f0bdSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1441b2f0bdSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1541b2f0bdSmrg# General Public License for more details. 1641b2f0bdSmrg# 1741b2f0bdSmrg# You should have received a copy of the GNU General Public License 186b526288Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 1941b2f0bdSmrg# 2041b2f0bdSmrg# As a special exception to the GNU General Public License, if you 2141b2f0bdSmrg# distribute this file as part of a program that contains a 2241b2f0bdSmrg# configuration script generated by Autoconf, you may include it under 236b526288Smrg# the same distribution terms that you use for the rest of that 246b526288Smrg# program. This Exception is an additional permission under section 7 256b526288Smrg# of the GNU General Public License, version 3 ("GPLv3"). 2641b2f0bdSmrg# 276b526288Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 2841b2f0bdSmrg# 2911a29bacSmrg# You can get the latest version of this script from: 306b526288Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 316b526288Smrg# 326b526288Smrg# Please send patches to <config-patches@gnu.org>. 336b526288Smrg 3441b2f0bdSmrg 3541b2f0bdSmrgme=`echo "$0" | sed -e 's,.*/,,'` 3641b2f0bdSmrg 3741b2f0bdSmrgusage="\ 3841b2f0bdSmrgUsage: $0 [OPTION] 3941b2f0bdSmrg 4041b2f0bdSmrgOutput the configuration name of the system \`$me' is run on. 4141b2f0bdSmrg 4241b2f0bdSmrgOperation modes: 4341b2f0bdSmrg -h, --help print this help, then exit 4441b2f0bdSmrg -t, --time-stamp print date of last modification, then exit 4541b2f0bdSmrg -v, --version print version number, then exit 4641b2f0bdSmrg 4741b2f0bdSmrgReport bugs and patches to <config-patches@gnu.org>." 4841b2f0bdSmrg 4941b2f0bdSmrgversion="\ 5041b2f0bdSmrgGNU config.guess ($timestamp) 5141b2f0bdSmrg 5241b2f0bdSmrgOriginally written by Per Bothner. 536b526288SmrgCopyright 1992-2017 Free Software Foundation, Inc. 5441b2f0bdSmrg 5541b2f0bdSmrgThis is free software; see the source for copying conditions. There is NO 5641b2f0bdSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 5741b2f0bdSmrg 5841b2f0bdSmrghelp=" 5941b2f0bdSmrgTry \`$me --help' for more information." 6041b2f0bdSmrg 6141b2f0bdSmrg# Parse command line 6241b2f0bdSmrgwhile test $# -gt 0 ; do 6341b2f0bdSmrg case $1 in 6441b2f0bdSmrg --time-stamp | --time* | -t ) 6511245024Smrg echo "$timestamp" ; exit ;; 6641b2f0bdSmrg --version | -v ) 6711245024Smrg echo "$version" ; exit ;; 6841b2f0bdSmrg --help | --h* | -h ) 6911245024Smrg echo "$usage"; exit ;; 7041b2f0bdSmrg -- ) # Stop option processing 7141b2f0bdSmrg shift; break ;; 7241b2f0bdSmrg - ) # Use stdin as input. 7341b2f0bdSmrg break ;; 7441b2f0bdSmrg -* ) 7541b2f0bdSmrg echo "$me: invalid option $1$help" >&2 7641b2f0bdSmrg exit 1 ;; 7741b2f0bdSmrg * ) 7841b2f0bdSmrg break ;; 7941b2f0bdSmrg esac 8041b2f0bdSmrgdone 8141b2f0bdSmrg 8241b2f0bdSmrgif test $# != 0; then 8341b2f0bdSmrg echo "$me: too many arguments$help" >&2 8441b2f0bdSmrg exit 1 8541b2f0bdSmrgfi 8641b2f0bdSmrg 876b526288Smrgtrap 'exit 1' 1 2 15 8841b2f0bdSmrg 8941b2f0bdSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9041b2f0bdSmrg# compiler to aid in system detection is discouraged as it requires 9141b2f0bdSmrg# temporary files to be created and, as you can see below, it is a 9241b2f0bdSmrg# headache to deal with in a portable fashion. 9341b2f0bdSmrg 9441b2f0bdSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 9541b2f0bdSmrg# use `HOST_CC' if defined, but it is deprecated. 9641b2f0bdSmrg 9741b2f0bdSmrg# Portable tmp directory creation inspired by the Autoconf team. 9841b2f0bdSmrg 9941b2f0bdSmrgset_cc_for_build=' 10041b2f0bdSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 1016b526288Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 10241b2f0bdSmrg: ${TMPDIR=/tmp} ; 10311245024Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 10441b2f0bdSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 10541b2f0bdSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 10641b2f0bdSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 10741b2f0bdSmrgdummy=$tmp/dummy ; 10841b2f0bdSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 10941b2f0bdSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11041b2f0bdSmrg ,,) echo "int x;" > $dummy.c ; 11141b2f0bdSmrg for c in cc gcc c89 c99 ; do 11241b2f0bdSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 11341b2f0bdSmrg CC_FOR_BUILD="$c"; break ; 11441b2f0bdSmrg fi ; 11541b2f0bdSmrg done ; 11641b2f0bdSmrg if test x"$CC_FOR_BUILD" = x ; then 11741b2f0bdSmrg CC_FOR_BUILD=no_compiler_found ; 11841b2f0bdSmrg fi 11941b2f0bdSmrg ;; 12041b2f0bdSmrg ,,*) CC_FOR_BUILD=$CC ;; 12141b2f0bdSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12211245024Smrgesac ; set_cc_for_build= ;' 12341b2f0bdSmrg 12441b2f0bdSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 12541b2f0bdSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 12641b2f0bdSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 12741b2f0bdSmrg PATH=$PATH:/.attbin ; export PATH 12841b2f0bdSmrgfi 12941b2f0bdSmrg 13041b2f0bdSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13141b2f0bdSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13241b2f0bdSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 13341b2f0bdSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 13441b2f0bdSmrg 1356b526288Smrgcase "${UNAME_SYSTEM}" in 1366b526288SmrgLinux|GNU|GNU/*) 1376b526288Smrg # If the system lacks a compiler, then just pick glibc. 1386b526288Smrg # We could probably try harder. 1396b526288Smrg LIBC=gnu 1406b526288Smrg 1416b526288Smrg eval $set_cc_for_build 1426b526288Smrg cat <<-EOF > $dummy.c 1436b526288Smrg #include <features.h> 1446b526288Smrg #if defined(__UCLIBC__) 1456b526288Smrg LIBC=uclibc 1466b526288Smrg #elif defined(__dietlibc__) 1476b526288Smrg LIBC=dietlibc 1486b526288Smrg #else 1496b526288Smrg LIBC=gnu 1506b526288Smrg #endif 1516b526288Smrg EOF 1526b526288Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 1536b526288Smrg ;; 1546b526288Smrgesac 1556b526288Smrg 15641b2f0bdSmrg# Note: order is significant - the case branches are not exclusive. 15741b2f0bdSmrg 15841b2f0bdSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 15941b2f0bdSmrg *:NetBSD:*:*) 16041b2f0bdSmrg # NetBSD (nbsd) targets should (where applicable) match one or 1616b526288Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 16241b2f0bdSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 16341b2f0bdSmrg # switched to ELF, *-*-netbsd* would select the old 16441b2f0bdSmrg # object file format. This provides both forward 16541b2f0bdSmrg # compatibility and a consistent mechanism for selecting the 16641b2f0bdSmrg # object file format. 16741b2f0bdSmrg # 16841b2f0bdSmrg # Note: NetBSD doesn't particularly care about the vendor 16941b2f0bdSmrg # portion of the name. We always set it to "unknown". 17041b2f0bdSmrg sysctl="sysctl -n hw.machine_arch" 1716b526288Smrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 1726b526288Smrg /sbin/$sysctl 2>/dev/null || \ 1736b526288Smrg /usr/sbin/$sysctl 2>/dev/null || \ 1746b526288Smrg echo unknown)` 17541b2f0bdSmrg case "${UNAME_MACHINE_ARCH}" in 17641b2f0bdSmrg armeb) machine=armeb-unknown ;; 17741b2f0bdSmrg arm*) machine=arm-unknown ;; 17841b2f0bdSmrg sh3el) machine=shl-unknown ;; 17941b2f0bdSmrg sh3eb) machine=sh-unknown ;; 18011245024Smrg sh5el) machine=sh5le-unknown ;; 1816b526288Smrg earmv*) 1826b526288Smrg arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 1836b526288Smrg endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 1846b526288Smrg machine=${arch}${endian}-unknown 1856b526288Smrg ;; 18641b2f0bdSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 18741b2f0bdSmrg esac 18841b2f0bdSmrg # The Operating System including object format, if it has switched 1896b526288Smrg # to ELF recently (or will in the future) and ABI. 19041b2f0bdSmrg case "${UNAME_MACHINE_ARCH}" in 1916b526288Smrg earm*) 1926b526288Smrg os=netbsdelf 1936b526288Smrg ;; 19441b2f0bdSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 19541b2f0bdSmrg eval $set_cc_for_build 19641b2f0bdSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 19711a29bacSmrg | grep -q __ELF__ 19841b2f0bdSmrg then 19941b2f0bdSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 20041b2f0bdSmrg # Return netbsd for either. FIX? 20141b2f0bdSmrg os=netbsd 20241b2f0bdSmrg else 20341b2f0bdSmrg os=netbsdelf 20441b2f0bdSmrg fi 20541b2f0bdSmrg ;; 20641b2f0bdSmrg *) 2076b526288Smrg os=netbsd 2086b526288Smrg ;; 2096b526288Smrg esac 2106b526288Smrg # Determine ABI tags. 2116b526288Smrg case "${UNAME_MACHINE_ARCH}" in 2126b526288Smrg earm*) 2136b526288Smrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 2146b526288Smrg abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 21541b2f0bdSmrg ;; 21641b2f0bdSmrg esac 21741b2f0bdSmrg # The OS release 21841b2f0bdSmrg # Debian GNU/NetBSD machines have a different userland, and 21941b2f0bdSmrg # thus, need a distinct triplet. However, they do not need 22041b2f0bdSmrg # kernel version information, so it can be replaced with a 22141b2f0bdSmrg # suitable tag, in the style of linux-gnu. 22241b2f0bdSmrg case "${UNAME_VERSION}" in 22341b2f0bdSmrg Debian*) 22441b2f0bdSmrg release='-gnu' 22541b2f0bdSmrg ;; 22641b2f0bdSmrg *) 2276b526288Smrg release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 22841b2f0bdSmrg ;; 22941b2f0bdSmrg esac 23041b2f0bdSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 23141b2f0bdSmrg # contains redundant information, the shorter form: 23241b2f0bdSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2336b526288Smrg echo "${machine}-${os}${release}${abi}" 2346b526288Smrg exit ;; 2356b526288Smrg *:Bitrig:*:*) 2366b526288Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 2376b526288Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 23811245024Smrg exit ;; 23941b2f0bdSmrg *:OpenBSD:*:*) 24011245024Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 24111245024Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 24211245024Smrg exit ;; 2436b526288Smrg *:LibertyBSD:*:*) 2446b526288Smrg UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 2456b526288Smrg echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} 2466b526288Smrg exit ;; 24711245024Smrg *:ekkoBSD:*:*) 24811245024Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 24911245024Smrg exit ;; 25011245024Smrg *:SolidBSD:*:*) 25111245024Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 25211245024Smrg exit ;; 25311245024Smrg macppc:MirBSD:*:*) 25411245024Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 25511245024Smrg exit ;; 25611245024Smrg *:MirBSD:*:*) 25711245024Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 25811245024Smrg exit ;; 2596b526288Smrg *:Sortix:*:*) 2606b526288Smrg echo ${UNAME_MACHINE}-unknown-sortix 2616b526288Smrg exit ;; 2626b526288Smrg *:Redox:*:*) 2636b526288Smrg echo ${UNAME_MACHINE}-unknown-redox 2646b526288Smrg exit ;; 26541b2f0bdSmrg alpha:OSF1:*:*) 26611245024Smrg case $UNAME_RELEASE in 26711245024Smrg *4.0) 26841b2f0bdSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 26911245024Smrg ;; 27011245024Smrg *5.*) 2716b526288Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 27211245024Smrg ;; 27311245024Smrg esac 27441b2f0bdSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 27541b2f0bdSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 27641b2f0bdSmrg # covers most systems running today. This code pipes the CPU 27741b2f0bdSmrg # types through head -n 1, so we only detect the type of CPU 0. 27841b2f0bdSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 27941b2f0bdSmrg case "$ALPHA_CPU_TYPE" in 28041b2f0bdSmrg "EV4 (21064)") 2816b526288Smrg UNAME_MACHINE=alpha ;; 28241b2f0bdSmrg "EV4.5 (21064)") 2836b526288Smrg UNAME_MACHINE=alpha ;; 28441b2f0bdSmrg "LCA4 (21066/21068)") 2856b526288Smrg UNAME_MACHINE=alpha ;; 28641b2f0bdSmrg "EV5 (21164)") 2876b526288Smrg UNAME_MACHINE=alphaev5 ;; 28841b2f0bdSmrg "EV5.6 (21164A)") 2896b526288Smrg UNAME_MACHINE=alphaev56 ;; 29041b2f0bdSmrg "EV5.6 (21164PC)") 2916b526288Smrg UNAME_MACHINE=alphapca56 ;; 29241b2f0bdSmrg "EV5.7 (21164PC)") 2936b526288Smrg UNAME_MACHINE=alphapca57 ;; 29441b2f0bdSmrg "EV6 (21264)") 2956b526288Smrg UNAME_MACHINE=alphaev6 ;; 29641b2f0bdSmrg "EV6.7 (21264A)") 2976b526288Smrg UNAME_MACHINE=alphaev67 ;; 29841b2f0bdSmrg "EV6.8CB (21264C)") 2996b526288Smrg UNAME_MACHINE=alphaev68 ;; 30041b2f0bdSmrg "EV6.8AL (21264B)") 3016b526288Smrg UNAME_MACHINE=alphaev68 ;; 30241b2f0bdSmrg "EV6.8CX (21264D)") 3036b526288Smrg UNAME_MACHINE=alphaev68 ;; 30441b2f0bdSmrg "EV6.9A (21264/EV69A)") 3056b526288Smrg UNAME_MACHINE=alphaev69 ;; 30641b2f0bdSmrg "EV7 (21364)") 3076b526288Smrg UNAME_MACHINE=alphaev7 ;; 30841b2f0bdSmrg "EV7.9 (21364A)") 3096b526288Smrg UNAME_MACHINE=alphaev79 ;; 31041b2f0bdSmrg esac 31111245024Smrg # A Pn.n version is a patched version. 31241b2f0bdSmrg # A Vn.n version is a released version. 31341b2f0bdSmrg # A Tn.n version is a released field test version. 31441b2f0bdSmrg # A Xn.n version is an unreleased experimental baselevel. 31541b2f0bdSmrg # 1.2 uses "1.2" for uname -r. 3166b526288Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 3176b526288Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 3186b526288Smrg exitcode=$? 3196b526288Smrg trap '' 0 3206b526288Smrg exit $exitcode ;; 32141b2f0bdSmrg Alpha\ *:Windows_NT*:*) 32241b2f0bdSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 32341b2f0bdSmrg # Should we change UNAME_MACHINE based on the output of uname instead 32441b2f0bdSmrg # of the specific Alpha model? 32541b2f0bdSmrg echo alpha-pc-interix 32611245024Smrg exit ;; 32741b2f0bdSmrg 21064:Windows_NT:50:3) 32841b2f0bdSmrg echo alpha-dec-winnt3.5 32911245024Smrg exit ;; 33041b2f0bdSmrg Amiga*:UNIX_System_V:4.0:*) 33141b2f0bdSmrg echo m68k-unknown-sysv4 33211245024Smrg exit ;; 33341b2f0bdSmrg *:[Aa]miga[Oo][Ss]:*:*) 33441b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-amigaos 33511245024Smrg exit ;; 33641b2f0bdSmrg *:[Mm]orph[Oo][Ss]:*:*) 33741b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-morphos 33811245024Smrg exit ;; 33941b2f0bdSmrg *:OS/390:*:*) 34041b2f0bdSmrg echo i370-ibm-openedition 34111245024Smrg exit ;; 34211245024Smrg *:z/VM:*:*) 34311245024Smrg echo s390-ibm-zvmoe 34411245024Smrg exit ;; 34511245024Smrg *:OS400:*:*) 3466b526288Smrg echo powerpc-ibm-os400 34711245024Smrg exit ;; 34841b2f0bdSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 34941b2f0bdSmrg echo arm-acorn-riscix${UNAME_RELEASE} 35011245024Smrg exit ;; 3516b526288Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 35211245024Smrg echo arm-unknown-riscos 35311245024Smrg exit ;; 35441b2f0bdSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 35541b2f0bdSmrg echo hppa1.1-hitachi-hiuxmpp 35611245024Smrg exit ;; 35741b2f0bdSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 35841b2f0bdSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 35941b2f0bdSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 36041b2f0bdSmrg echo pyramid-pyramid-sysv3 36141b2f0bdSmrg else 36241b2f0bdSmrg echo pyramid-pyramid-bsd 36341b2f0bdSmrg fi 36411245024Smrg exit ;; 36541b2f0bdSmrg NILE*:*:*:dcosx) 36641b2f0bdSmrg echo pyramid-pyramid-svr4 36711245024Smrg exit ;; 36841b2f0bdSmrg DRS?6000:unix:4.0:6*) 36941b2f0bdSmrg echo sparc-icl-nx6 37011245024Smrg exit ;; 37111245024Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 37241b2f0bdSmrg case `/usr/bin/uname -p` in 37311245024Smrg sparc) echo sparc-icl-nx7; exit ;; 37441b2f0bdSmrg esac ;; 37511a29bacSmrg s390x:SunOS:*:*) 37611a29bacSmrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37711a29bacSmrg exit ;; 37841b2f0bdSmrg sun4H:SunOS:5.*:*) 37941b2f0bdSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 38011245024Smrg exit ;; 38141b2f0bdSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 38241b2f0bdSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 38311245024Smrg exit ;; 38411a29bacSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 38511a29bacSmrg echo i386-pc-auroraux${UNAME_RELEASE} 38611a29bacSmrg exit ;; 38711245024Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 38811a29bacSmrg eval $set_cc_for_build 3896b526288Smrg SUN_ARCH=i386 39011a29bacSmrg # If there is a compiler, see if it is configured for 64-bit objects. 39111a29bacSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 39211a29bacSmrg # This test works for both compilers. 3936b526288Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 39411a29bacSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 3956b526288Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 39611a29bacSmrg grep IS_64BIT_ARCH >/dev/null 39711a29bacSmrg then 3986b526288Smrg SUN_ARCH=x86_64 39911a29bacSmrg fi 40011a29bacSmrg fi 40111a29bacSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 40211245024Smrg exit ;; 40341b2f0bdSmrg sun4*:SunOS:6*:*) 40441b2f0bdSmrg # According to config.sub, this is the proper way to canonicalize 40541b2f0bdSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 40641b2f0bdSmrg # it's likely to be more like Solaris than SunOS4. 40741b2f0bdSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 40811245024Smrg exit ;; 40941b2f0bdSmrg sun4*:SunOS:*:*) 41041b2f0bdSmrg case "`/usr/bin/arch -k`" in 41141b2f0bdSmrg Series*|S4*) 41241b2f0bdSmrg UNAME_RELEASE=`uname -v` 41341b2f0bdSmrg ;; 41441b2f0bdSmrg esac 41541b2f0bdSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 41641b2f0bdSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 41711245024Smrg exit ;; 41841b2f0bdSmrg sun3*:SunOS:*:*) 41941b2f0bdSmrg echo m68k-sun-sunos${UNAME_RELEASE} 42011245024Smrg exit ;; 42141b2f0bdSmrg sun*:*:4.2BSD:*) 42241b2f0bdSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 4236b526288Smrg test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 42441b2f0bdSmrg case "`/bin/arch`" in 42541b2f0bdSmrg sun3) 42641b2f0bdSmrg echo m68k-sun-sunos${UNAME_RELEASE} 42741b2f0bdSmrg ;; 42841b2f0bdSmrg sun4) 42941b2f0bdSmrg echo sparc-sun-sunos${UNAME_RELEASE} 43041b2f0bdSmrg ;; 43141b2f0bdSmrg esac 43211245024Smrg exit ;; 43341b2f0bdSmrg aushp:SunOS:*:*) 43441b2f0bdSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 43511245024Smrg exit ;; 43641b2f0bdSmrg # The situation for MiNT is a little confusing. The machine name 43741b2f0bdSmrg # can be virtually everything (everything which is not 43841b2f0bdSmrg # "atarist" or "atariste" at least should have a processor 43941b2f0bdSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 44041b2f0bdSmrg # to the lowercase version "mint" (or "freemint"). Finally 44141b2f0bdSmrg # the system name "TOS" denotes a system which is actually not 44241b2f0bdSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 44341b2f0bdSmrg # be no problem. 44441b2f0bdSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 4456b526288Smrg echo m68k-atari-mint${UNAME_RELEASE} 44611245024Smrg exit ;; 44741b2f0bdSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 44841b2f0bdSmrg echo m68k-atari-mint${UNAME_RELEASE} 4496b526288Smrg exit ;; 45041b2f0bdSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 4516b526288Smrg echo m68k-atari-mint${UNAME_RELEASE} 45211245024Smrg exit ;; 45341b2f0bdSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 4546b526288Smrg echo m68k-milan-mint${UNAME_RELEASE} 4556b526288Smrg exit ;; 45641b2f0bdSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 4576b526288Smrg echo m68k-hades-mint${UNAME_RELEASE} 4586b526288Smrg exit ;; 45941b2f0bdSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 4606b526288Smrg echo m68k-unknown-mint${UNAME_RELEASE} 4616b526288Smrg exit ;; 46211245024Smrg m68k:machten:*:*) 46311245024Smrg echo m68k-apple-machten${UNAME_RELEASE} 46411245024Smrg exit ;; 46541b2f0bdSmrg powerpc:machten:*:*) 46641b2f0bdSmrg echo powerpc-apple-machten${UNAME_RELEASE} 46711245024Smrg exit ;; 46841b2f0bdSmrg RISC*:Mach:*:*) 46941b2f0bdSmrg echo mips-dec-mach_bsd4.3 47011245024Smrg exit ;; 47141b2f0bdSmrg RISC*:ULTRIX:*:*) 47241b2f0bdSmrg echo mips-dec-ultrix${UNAME_RELEASE} 47311245024Smrg exit ;; 47441b2f0bdSmrg VAX*:ULTRIX*:*:*) 47541b2f0bdSmrg echo vax-dec-ultrix${UNAME_RELEASE} 47611245024Smrg exit ;; 47741b2f0bdSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 47841b2f0bdSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 47911245024Smrg exit ;; 48041b2f0bdSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 48141b2f0bdSmrg eval $set_cc_for_build 48241b2f0bdSmrg sed 's/^ //' << EOF >$dummy.c 48341b2f0bdSmrg#ifdef __cplusplus 48441b2f0bdSmrg#include <stdio.h> /* for printf() prototype */ 48541b2f0bdSmrg int main (int argc, char *argv[]) { 48641b2f0bdSmrg#else 48741b2f0bdSmrg int main (argc, argv) int argc; char *argv[]; { 48841b2f0bdSmrg#endif 48941b2f0bdSmrg #if defined (host_mips) && defined (MIPSEB) 49041b2f0bdSmrg #if defined (SYSTYPE_SYSV) 49141b2f0bdSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 49241b2f0bdSmrg #endif 49341b2f0bdSmrg #if defined (SYSTYPE_SVR4) 49441b2f0bdSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 49541b2f0bdSmrg #endif 49641b2f0bdSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 49741b2f0bdSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 49841b2f0bdSmrg #endif 49941b2f0bdSmrg #endif 50041b2f0bdSmrg exit (-1); 50141b2f0bdSmrg } 50241b2f0bdSmrgEOF 50311245024Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 50411245024Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 50511245024Smrg SYSTEM_NAME=`$dummy $dummyarg` && 50611245024Smrg { echo "$SYSTEM_NAME"; exit; } 50741b2f0bdSmrg echo mips-mips-riscos${UNAME_RELEASE} 50811245024Smrg exit ;; 50941b2f0bdSmrg Motorola:PowerMAX_OS:*:*) 51041b2f0bdSmrg echo powerpc-motorola-powermax 51111245024Smrg exit ;; 51241b2f0bdSmrg Motorola:*:4.3:PL8-*) 51341b2f0bdSmrg echo powerpc-harris-powermax 51411245024Smrg exit ;; 51541b2f0bdSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 51641b2f0bdSmrg echo powerpc-harris-powermax 51711245024Smrg exit ;; 51841b2f0bdSmrg Night_Hawk:Power_UNIX:*:*) 51941b2f0bdSmrg echo powerpc-harris-powerunix 52011245024Smrg exit ;; 52141b2f0bdSmrg m88k:CX/UX:7*:*) 52241b2f0bdSmrg echo m88k-harris-cxux7 52311245024Smrg exit ;; 52441b2f0bdSmrg m88k:*:4*:R4*) 52541b2f0bdSmrg echo m88k-motorola-sysv4 52611245024Smrg exit ;; 52741b2f0bdSmrg m88k:*:3*:R3*) 52841b2f0bdSmrg echo m88k-motorola-sysv3 52911245024Smrg exit ;; 53041b2f0bdSmrg AViiON:dgux:*:*) 5316b526288Smrg # DG/UX returns AViiON for all architectures 5326b526288Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 53341b2f0bdSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 53441b2f0bdSmrg then 53541b2f0bdSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 53641b2f0bdSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 53741b2f0bdSmrg then 53841b2f0bdSmrg echo m88k-dg-dgux${UNAME_RELEASE} 53941b2f0bdSmrg else 54041b2f0bdSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 54141b2f0bdSmrg fi 54241b2f0bdSmrg else 54341b2f0bdSmrg echo i586-dg-dgux${UNAME_RELEASE} 54441b2f0bdSmrg fi 5456b526288Smrg exit ;; 54641b2f0bdSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 54741b2f0bdSmrg echo m88k-dolphin-sysv3 54811245024Smrg exit ;; 54941b2f0bdSmrg M88*:*:R3*:*) 55041b2f0bdSmrg # Delta 88k system running SVR3 55141b2f0bdSmrg echo m88k-motorola-sysv3 55211245024Smrg exit ;; 55341b2f0bdSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 55441b2f0bdSmrg echo m88k-tektronix-sysv3 55511245024Smrg exit ;; 55641b2f0bdSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 55741b2f0bdSmrg echo m68k-tektronix-bsd 55811245024Smrg exit ;; 55941b2f0bdSmrg *:IRIX*:*:*) 56041b2f0bdSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 56111245024Smrg exit ;; 56241b2f0bdSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 56311245024Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 56411245024Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 56541b2f0bdSmrg i*86:AIX:*:*) 56641b2f0bdSmrg echo i386-ibm-aix 56711245024Smrg exit ;; 56841b2f0bdSmrg ia64:AIX:*:*) 56941b2f0bdSmrg if [ -x /usr/bin/oslevel ] ; then 57041b2f0bdSmrg IBM_REV=`/usr/bin/oslevel` 57141b2f0bdSmrg else 57241b2f0bdSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 57341b2f0bdSmrg fi 57441b2f0bdSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 57511245024Smrg exit ;; 57641b2f0bdSmrg *:AIX:2:3) 57741b2f0bdSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 57841b2f0bdSmrg eval $set_cc_for_build 57941b2f0bdSmrg sed 's/^ //' << EOF >$dummy.c 58041b2f0bdSmrg #include <sys/systemcfg.h> 58141b2f0bdSmrg 58241b2f0bdSmrg main() 58341b2f0bdSmrg { 58441b2f0bdSmrg if (!__power_pc()) 58541b2f0bdSmrg exit(1); 58641b2f0bdSmrg puts("powerpc-ibm-aix3.2.5"); 58741b2f0bdSmrg exit(0); 58841b2f0bdSmrg } 58941b2f0bdSmrgEOF 59011245024Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 59111245024Smrg then 59211245024Smrg echo "$SYSTEM_NAME" 59311245024Smrg else 59411245024Smrg echo rs6000-ibm-aix3.2.5 59511245024Smrg fi 59641b2f0bdSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 59741b2f0bdSmrg echo rs6000-ibm-aix3.2.4 59841b2f0bdSmrg else 59941b2f0bdSmrg echo rs6000-ibm-aix3.2 60041b2f0bdSmrg fi 60111245024Smrg exit ;; 60211a29bacSmrg *:AIX:*:[4567]) 60341b2f0bdSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 60441b2f0bdSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 60541b2f0bdSmrg IBM_ARCH=rs6000 60641b2f0bdSmrg else 60741b2f0bdSmrg IBM_ARCH=powerpc 60841b2f0bdSmrg fi 6096b526288Smrg if [ -x /usr/bin/lslpp ] ; then 6106b526288Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 6116b526288Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 61241b2f0bdSmrg else 61341b2f0bdSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 61441b2f0bdSmrg fi 61541b2f0bdSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 61611245024Smrg exit ;; 61741b2f0bdSmrg *:AIX:*:*) 61841b2f0bdSmrg echo rs6000-ibm-aix 61911245024Smrg exit ;; 62041b2f0bdSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 62141b2f0bdSmrg echo romp-ibm-bsd4.4 62211245024Smrg exit ;; 62341b2f0bdSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 62441b2f0bdSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 62511245024Smrg exit ;; # report: romp-ibm BSD 4.3 62641b2f0bdSmrg *:BOSX:*:*) 62741b2f0bdSmrg echo rs6000-bull-bosx 62811245024Smrg exit ;; 62941b2f0bdSmrg DPX/2?00:B.O.S.:*:*) 63041b2f0bdSmrg echo m68k-bull-sysv3 63111245024Smrg exit ;; 63241b2f0bdSmrg 9000/[34]??:4.3bsd:1.*:*) 63341b2f0bdSmrg echo m68k-hp-bsd 63411245024Smrg exit ;; 63541b2f0bdSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 63641b2f0bdSmrg echo m68k-hp-bsd4.4 63711245024Smrg exit ;; 63841b2f0bdSmrg 9000/[34678]??:HP-UX:*:*) 63941b2f0bdSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 64041b2f0bdSmrg case "${UNAME_MACHINE}" in 64141b2f0bdSmrg 9000/31? ) HP_ARCH=m68000 ;; 64241b2f0bdSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 64341b2f0bdSmrg 9000/[678][0-9][0-9]) 64441b2f0bdSmrg if [ -x /usr/bin/getconf ]; then 64541b2f0bdSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 6466b526288Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 6476b526288Smrg case "${sc_cpu_version}" in 6486b526288Smrg 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 6496b526288Smrg 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 6506b526288Smrg 532) # CPU_PA_RISC2_0 6516b526288Smrg case "${sc_kernel_bits}" in 6526b526288Smrg 32) HP_ARCH=hppa2.0n ;; 6536b526288Smrg 64) HP_ARCH=hppa2.0w ;; 6546b526288Smrg '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 6556b526288Smrg esac ;; 6566b526288Smrg esac 65741b2f0bdSmrg fi 65841b2f0bdSmrg if [ "${HP_ARCH}" = "" ]; then 65941b2f0bdSmrg eval $set_cc_for_build 6606b526288Smrg sed 's/^ //' << EOF >$dummy.c 66141b2f0bdSmrg 6626b526288Smrg #define _HPUX_SOURCE 6636b526288Smrg #include <stdlib.h> 6646b526288Smrg #include <unistd.h> 66541b2f0bdSmrg 6666b526288Smrg int main () 6676b526288Smrg { 6686b526288Smrg #if defined(_SC_KERNEL_BITS) 6696b526288Smrg long bits = sysconf(_SC_KERNEL_BITS); 6706b526288Smrg #endif 6716b526288Smrg long cpu = sysconf (_SC_CPU_VERSION); 67241b2f0bdSmrg 6736b526288Smrg switch (cpu) 6746b526288Smrg { 6756b526288Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 6766b526288Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 6776b526288Smrg case CPU_PA_RISC2_0: 6786b526288Smrg #if defined(_SC_KERNEL_BITS) 6796b526288Smrg switch (bits) 6806b526288Smrg { 6816b526288Smrg case 64: puts ("hppa2.0w"); break; 6826b526288Smrg case 32: puts ("hppa2.0n"); break; 6836b526288Smrg default: puts ("hppa2.0"); break; 6846b526288Smrg } break; 6856b526288Smrg #else /* !defined(_SC_KERNEL_BITS) */ 6866b526288Smrg puts ("hppa2.0"); break; 6876b526288Smrg #endif 6886b526288Smrg default: puts ("hppa1.0"); break; 6896b526288Smrg } 6906b526288Smrg exit (0); 6916b526288Smrg } 69241b2f0bdSmrgEOF 6936b526288Smrg (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 69441b2f0bdSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 69541b2f0bdSmrg fi ;; 69641b2f0bdSmrg esac 6976b526288Smrg if [ ${HP_ARCH} = hppa2.0w ] 69841b2f0bdSmrg then 69911245024Smrg eval $set_cc_for_build 70011245024Smrg 70111245024Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 70211245024Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 70311245024Smrg # generating 64-bit code. GNU and HP use different nomenclature: 70411245024Smrg # 70511245024Smrg # $ CC_FOR_BUILD=cc ./config.guess 70611245024Smrg # => hppa2.0w-hp-hpux11.23 70711245024Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 70811245024Smrg # => hppa64-hp-hpux11.23 70911245024Smrg 7106b526288Smrg if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 71111a29bacSmrg grep -q __LP64__ 71241b2f0bdSmrg then 7136b526288Smrg HP_ARCH=hppa2.0w 71441b2f0bdSmrg else 7156b526288Smrg HP_ARCH=hppa64 71641b2f0bdSmrg fi 71741b2f0bdSmrg fi 71841b2f0bdSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 71911245024Smrg exit ;; 72041b2f0bdSmrg ia64:HP-UX:*:*) 72141b2f0bdSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 72241b2f0bdSmrg echo ia64-hp-hpux${HPUX_REV} 72311245024Smrg exit ;; 72441b2f0bdSmrg 3050*:HI-UX:*:*) 72541b2f0bdSmrg eval $set_cc_for_build 72641b2f0bdSmrg sed 's/^ //' << EOF >$dummy.c 72741b2f0bdSmrg #include <unistd.h> 72841b2f0bdSmrg int 72941b2f0bdSmrg main () 73041b2f0bdSmrg { 73141b2f0bdSmrg long cpu = sysconf (_SC_CPU_VERSION); 73241b2f0bdSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 73341b2f0bdSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 73441b2f0bdSmrg results, however. */ 73541b2f0bdSmrg if (CPU_IS_PA_RISC (cpu)) 73641b2f0bdSmrg { 73741b2f0bdSmrg switch (cpu) 73841b2f0bdSmrg { 73941b2f0bdSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 74041b2f0bdSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 74141b2f0bdSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 74241b2f0bdSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 74341b2f0bdSmrg } 74441b2f0bdSmrg } 74541b2f0bdSmrg else if (CPU_IS_HP_MC68K (cpu)) 74641b2f0bdSmrg puts ("m68k-hitachi-hiuxwe2"); 74741b2f0bdSmrg else puts ("unknown-hitachi-hiuxwe2"); 74841b2f0bdSmrg exit (0); 74941b2f0bdSmrg } 75041b2f0bdSmrgEOF 75111245024Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 75211245024Smrg { echo "$SYSTEM_NAME"; exit; } 75341b2f0bdSmrg echo unknown-hitachi-hiuxwe2 75411245024Smrg exit ;; 75541b2f0bdSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 75641b2f0bdSmrg echo hppa1.1-hp-bsd 75711245024Smrg exit ;; 75841b2f0bdSmrg 9000/8??:4.3bsd:*:*) 75941b2f0bdSmrg echo hppa1.0-hp-bsd 76011245024Smrg exit ;; 76141b2f0bdSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 76241b2f0bdSmrg echo hppa1.0-hp-mpeix 76311245024Smrg exit ;; 76441b2f0bdSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 76541b2f0bdSmrg echo hppa1.1-hp-osf 76611245024Smrg exit ;; 76741b2f0bdSmrg hp8??:OSF1:*:*) 76841b2f0bdSmrg echo hppa1.0-hp-osf 76911245024Smrg exit ;; 77041b2f0bdSmrg i*86:OSF1:*:*) 77141b2f0bdSmrg if [ -x /usr/sbin/sysversion ] ; then 77241b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 77341b2f0bdSmrg else 77441b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-osf1 77541b2f0bdSmrg fi 77611245024Smrg exit ;; 77741b2f0bdSmrg parisc*:Lites*:*:*) 77841b2f0bdSmrg echo hppa1.1-hp-lites 77911245024Smrg exit ;; 78041b2f0bdSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 78141b2f0bdSmrg echo c1-convex-bsd 7826b526288Smrg exit ;; 78341b2f0bdSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 78441b2f0bdSmrg if getsysinfo -f scalar_acc 78541b2f0bdSmrg then echo c32-convex-bsd 78641b2f0bdSmrg else echo c2-convex-bsd 78741b2f0bdSmrg fi 7886b526288Smrg exit ;; 78941b2f0bdSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 79041b2f0bdSmrg echo c34-convex-bsd 7916b526288Smrg exit ;; 79241b2f0bdSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 79341b2f0bdSmrg echo c38-convex-bsd 7946b526288Smrg exit ;; 79541b2f0bdSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 79641b2f0bdSmrg echo c4-convex-bsd 7976b526288Smrg exit ;; 79841b2f0bdSmrg CRAY*Y-MP:*:*:*) 79941b2f0bdSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 80011245024Smrg exit ;; 80141b2f0bdSmrg CRAY*[A-Z]90:*:*:*) 80241b2f0bdSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 80341b2f0bdSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 80441b2f0bdSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 80541b2f0bdSmrg -e 's/\.[^.]*$/.X/' 80611245024Smrg exit ;; 80741b2f0bdSmrg CRAY*TS:*:*:*) 80841b2f0bdSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 80911245024Smrg exit ;; 81041b2f0bdSmrg CRAY*T3E:*:*:*) 81141b2f0bdSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 81211245024Smrg exit ;; 81341b2f0bdSmrg CRAY*SV1:*:*:*) 81441b2f0bdSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 81511245024Smrg exit ;; 81641b2f0bdSmrg *:UNICOS/mp:*:*) 81711245024Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 81811245024Smrg exit ;; 81941b2f0bdSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 8206b526288Smrg FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 8216b526288Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 8226b526288Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 8236b526288Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 8246b526288Smrg exit ;; 82511245024Smrg 5000:UNIX_System_V:4.*:*) 8266b526288Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 8276b526288Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 8286b526288Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 82911245024Smrg exit ;; 83041b2f0bdSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 83141b2f0bdSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 83211245024Smrg exit ;; 83341b2f0bdSmrg sparc*:BSD/OS:*:*) 83441b2f0bdSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 83511245024Smrg exit ;; 83641b2f0bdSmrg *:BSD/OS:*:*) 83741b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 83811245024Smrg exit ;; 83911245024Smrg *:FreeBSD:*:*) 8406b526288Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 8416b526288Smrg case ${UNAME_PROCESSOR} in 84211245024Smrg amd64) 8436b526288Smrg UNAME_PROCESSOR=x86_64 ;; 8446b526288Smrg i386) 8456b526288Smrg UNAME_PROCESSOR=i586 ;; 84611245024Smrg esac 8476b526288Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 84811245024Smrg exit ;; 84941b2f0bdSmrg i*:CYGWIN*:*) 85041b2f0bdSmrg echo ${UNAME_MACHINE}-pc-cygwin 85111245024Smrg exit ;; 8526b526288Smrg *:MINGW64*:*) 8536b526288Smrg echo ${UNAME_MACHINE}-pc-mingw64 8546b526288Smrg exit ;; 85511245024Smrg *:MINGW*:*) 85641b2f0bdSmrg echo ${UNAME_MACHINE}-pc-mingw32 85711245024Smrg exit ;; 8586b526288Smrg *:MSYS*:*) 8596b526288Smrg echo ${UNAME_MACHINE}-pc-msys 8606b526288Smrg exit ;; 86111245024Smrg i*:windows32*:*) 8626b526288Smrg # uname -m includes "-pc" on this system. 8636b526288Smrg echo ${UNAME_MACHINE}-mingw32 86411245024Smrg exit ;; 86541b2f0bdSmrg i*:PW*:*) 86641b2f0bdSmrg echo ${UNAME_MACHINE}-pc-pw32 86711245024Smrg exit ;; 86811a29bacSmrg *:Interix*:*) 8696b526288Smrg case ${UNAME_MACHINE} in 87011245024Smrg x86) 87111245024Smrg echo i586-pc-interix${UNAME_RELEASE} 87211245024Smrg exit ;; 87311a29bacSmrg authenticamd | genuineintel | EM64T) 87411245024Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 87511245024Smrg exit ;; 87611245024Smrg IA64) 87711245024Smrg echo ia64-unknown-interix${UNAME_RELEASE} 87811245024Smrg exit ;; 87911245024Smrg esac ;; 88041b2f0bdSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 88141b2f0bdSmrg echo i${UNAME_MACHINE}-pc-mks 88211245024Smrg exit ;; 88311a29bacSmrg 8664:Windows_NT:*) 88411a29bacSmrg echo x86_64-pc-mks 88511a29bacSmrg exit ;; 88641b2f0bdSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 88741b2f0bdSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 88841b2f0bdSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 88941b2f0bdSmrg # UNAME_MACHINE based on the output of uname instead of i386? 89041b2f0bdSmrg echo i586-pc-interix 89111245024Smrg exit ;; 89241b2f0bdSmrg i*:UWIN*:*) 89341b2f0bdSmrg echo ${UNAME_MACHINE}-pc-uwin 89411245024Smrg exit ;; 89511245024Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 89611245024Smrg echo x86_64-unknown-cygwin 89711245024Smrg exit ;; 89841b2f0bdSmrg p*:CYGWIN*:*) 89941b2f0bdSmrg echo powerpcle-unknown-cygwin 90011245024Smrg exit ;; 90141b2f0bdSmrg prep*:SunOS:5.*:*) 90241b2f0bdSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 90311245024Smrg exit ;; 90441b2f0bdSmrg *:GNU:*:*) 90511245024Smrg # the GNU system 9066b526288Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 90711245024Smrg exit ;; 90811245024Smrg *:GNU/*:*:*) 90911245024Smrg # other systems with GNU libc and userland 9106b526288Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 91111245024Smrg exit ;; 91241b2f0bdSmrg i*86:Minix:*:*) 91341b2f0bdSmrg echo ${UNAME_MACHINE}-pc-minix 91411245024Smrg exit ;; 9156b526288Smrg aarch64:Linux:*:*) 9166b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9176b526288Smrg exit ;; 9186b526288Smrg aarch64_be:Linux:*:*) 9196b526288Smrg UNAME_MACHINE=aarch64_be 9206b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9216b526288Smrg exit ;; 92211a29bacSmrg alpha:Linux:*:*) 92311a29bacSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 92411a29bacSmrg EV5) UNAME_MACHINE=alphaev5 ;; 92511a29bacSmrg EV56) UNAME_MACHINE=alphaev56 ;; 92611a29bacSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 92711a29bacSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 92811a29bacSmrg EV6) UNAME_MACHINE=alphaev6 ;; 92911a29bacSmrg EV67) UNAME_MACHINE=alphaev67 ;; 93011a29bacSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 9316b526288Smrg esac 93211a29bacSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 9336b526288Smrg if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 9346b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9356b526288Smrg exit ;; 9366b526288Smrg arc:Linux:*:* | arceb:Linux:*:*) 9376b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 93811a29bacSmrg exit ;; 93941b2f0bdSmrg arm*:Linux:*:*) 94011245024Smrg eval $set_cc_for_build 94111245024Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 94211245024Smrg | grep -q __ARM_EABI__ 94311245024Smrg then 9446b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94511245024Smrg else 9466b526288Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 9476b526288Smrg | grep -q __ARM_PCS_VFP 9486b526288Smrg then 9496b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 9506b526288Smrg else 9516b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 9526b526288Smrg fi 95311245024Smrg fi 95411245024Smrg exit ;; 95511245024Smrg avr32*:Linux:*:*) 9566b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 95711245024Smrg exit ;; 95841b2f0bdSmrg cris:Linux:*:*) 9596b526288Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 96011245024Smrg exit ;; 96111245024Smrg crisv32:Linux:*:*) 9626b526288Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9636b526288Smrg exit ;; 9646b526288Smrg e2k:Linux:*:*) 9656b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 96611245024Smrg exit ;; 96711245024Smrg frv:Linux:*:*) 9686b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9696b526288Smrg exit ;; 9706b526288Smrg hexagon:Linux:*:*) 9716b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97211245024Smrg exit ;; 97311a29bacSmrg i*86:Linux:*:*) 9746b526288Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 97511a29bacSmrg exit ;; 97641b2f0bdSmrg ia64:Linux:*:*) 9776b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9786b526288Smrg exit ;; 9796b526288Smrg k1om:Linux:*:*) 9806b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 98111245024Smrg exit ;; 98211245024Smrg m32r*:Linux:*:*) 9836b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 98411245024Smrg exit ;; 98541b2f0bdSmrg m68*:Linux:*:*) 9866b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 98711245024Smrg exit ;; 98811a29bacSmrg mips:Linux:*:* | mips64:Linux:*:*) 98941b2f0bdSmrg eval $set_cc_for_build 99041b2f0bdSmrg sed 's/^ //' << EOF >$dummy.c 99141b2f0bdSmrg #undef CPU 99211a29bacSmrg #undef ${UNAME_MACHINE} 99311a29bacSmrg #undef ${UNAME_MACHINE}el 99441b2f0bdSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 99511a29bacSmrg CPU=${UNAME_MACHINE}el 99641b2f0bdSmrg #else 99741b2f0bdSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 99811a29bacSmrg CPU=${UNAME_MACHINE} 99941b2f0bdSmrg #else 100041b2f0bdSmrg CPU= 100141b2f0bdSmrg #endif 100241b2f0bdSmrg #endif 100341b2f0bdSmrgEOF 100411a29bacSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 10056b526288Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 100641b2f0bdSmrg ;; 10076b526288Smrg mips64el:Linux:*:*) 10086b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10096b526288Smrg exit ;; 10106b526288Smrg openrisc*:Linux:*:*) 10116b526288Smrg echo or1k-unknown-linux-${LIBC} 10126b526288Smrg exit ;; 10136b526288Smrg or32:Linux:*:* | or1k*:Linux:*:*) 10146b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101511245024Smrg exit ;; 101611a29bacSmrg padre:Linux:*:*) 10176b526288Smrg echo sparc-unknown-linux-${LIBC} 101811245024Smrg exit ;; 101911a29bacSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 10206b526288Smrg echo hppa64-unknown-linux-${LIBC} 102111245024Smrg exit ;; 102241b2f0bdSmrg parisc:Linux:*:* | hppa:Linux:*:*) 102341b2f0bdSmrg # Look for CPU level 102441b2f0bdSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 10256b526288Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 10266b526288Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 10276b526288Smrg *) echo hppa-unknown-linux-${LIBC} ;; 102841b2f0bdSmrg esac 102911245024Smrg exit ;; 103011a29bacSmrg ppc64:Linux:*:*) 10316b526288Smrg echo powerpc64-unknown-linux-${LIBC} 103211a29bacSmrg exit ;; 103311a29bacSmrg ppc:Linux:*:*) 10346b526288Smrg echo powerpc-unknown-linux-${LIBC} 10356b526288Smrg exit ;; 10366b526288Smrg ppc64le:Linux:*:*) 10376b526288Smrg echo powerpc64le-unknown-linux-${LIBC} 10386b526288Smrg exit ;; 10396b526288Smrg ppcle:Linux:*:*) 10406b526288Smrg echo powerpcle-unknown-linux-${LIBC} 10416b526288Smrg exit ;; 10426b526288Smrg riscv32:Linux:*:* | riscv64:Linux:*:*) 10436b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 104411245024Smrg exit ;; 104541b2f0bdSmrg s390:Linux:*:* | s390x:Linux:*:*) 10466b526288Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 104711245024Smrg exit ;; 104841b2f0bdSmrg sh64*:Linux:*:*) 10496b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 105011245024Smrg exit ;; 105141b2f0bdSmrg sh*:Linux:*:*) 10526b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 105311245024Smrg exit ;; 105441b2f0bdSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 10556b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 105611245024Smrg exit ;; 105711a29bacSmrg tile*:Linux:*:*) 10586b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 105911a29bacSmrg exit ;; 106011245024Smrg vax:Linux:*:*) 10616b526288Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 106211245024Smrg exit ;; 106341b2f0bdSmrg x86_64:Linux:*:*) 10646b526288Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 106511245024Smrg exit ;; 106611245024Smrg xtensa*:Linux:*:*) 10676b526288Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 106811245024Smrg exit ;; 106941b2f0bdSmrg i*86:DYNIX/ptx:4*:*) 107041b2f0bdSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 107141b2f0bdSmrg # earlier versions are messed up and put the nodename in both 107241b2f0bdSmrg # sysname and nodename. 107341b2f0bdSmrg echo i386-sequent-sysv4 107411245024Smrg exit ;; 107541b2f0bdSmrg i*86:UNIX_SV:4.2MP:2.*) 10766b526288Smrg # Unixware is an offshoot of SVR4, but it has its own version 10776b526288Smrg # number series starting with 2... 10786b526288Smrg # I am not positive that other SVR4 systems won't match this, 107941b2f0bdSmrg # I just have to hope. -- rms. 10806b526288Smrg # Use sysv4.2uw... so that sysv4* matches it. 108141b2f0bdSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 108211245024Smrg exit ;; 108341b2f0bdSmrg i*86:OS/2:*:*) 108441b2f0bdSmrg # If we were able to find `uname', then EMX Unix compatibility 108541b2f0bdSmrg # is probably installed. 108641b2f0bdSmrg echo ${UNAME_MACHINE}-pc-os2-emx 108711245024Smrg exit ;; 108841b2f0bdSmrg i*86:XTS-300:*:STOP) 108941b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-stop 109011245024Smrg exit ;; 109141b2f0bdSmrg i*86:atheos:*:*) 109241b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-atheos 109311245024Smrg exit ;; 109411245024Smrg i*86:syllable:*:*) 109511245024Smrg echo ${UNAME_MACHINE}-pc-syllable 109611245024Smrg exit ;; 109711a29bacSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 109841b2f0bdSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 109911245024Smrg exit ;; 110041b2f0bdSmrg i*86:*DOS:*:*) 110141b2f0bdSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 110211245024Smrg exit ;; 110341b2f0bdSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 110441b2f0bdSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 110541b2f0bdSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 110641b2f0bdSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 110741b2f0bdSmrg else 110841b2f0bdSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 110941b2f0bdSmrg fi 111011245024Smrg exit ;; 111111245024Smrg i*86:*:5:[678]*) 11126b526288Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 111341b2f0bdSmrg case `/bin/uname -X | grep "^Machine"` in 111441b2f0bdSmrg *486*) UNAME_MACHINE=i486 ;; 111541b2f0bdSmrg *Pentium) UNAME_MACHINE=i586 ;; 111641b2f0bdSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 111741b2f0bdSmrg esac 111841b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 111911245024Smrg exit ;; 112041b2f0bdSmrg i*86:*:3.2:*) 112141b2f0bdSmrg if test -f /usr/options/cb.name; then 112241b2f0bdSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 112341b2f0bdSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 112441b2f0bdSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 112541b2f0bdSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 112641b2f0bdSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 112741b2f0bdSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 112841b2f0bdSmrg && UNAME_MACHINE=i586 112941b2f0bdSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 113041b2f0bdSmrg && UNAME_MACHINE=i686 113141b2f0bdSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 113241b2f0bdSmrg && UNAME_MACHINE=i686 113341b2f0bdSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 113441b2f0bdSmrg else 113541b2f0bdSmrg echo ${UNAME_MACHINE}-pc-sysv32 113641b2f0bdSmrg fi 113711245024Smrg exit ;; 113841b2f0bdSmrg pc:*:*:*) 113941b2f0bdSmrg # Left here for compatibility: 11406b526288Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 11416b526288Smrg # the processor, so we play safe by assuming i586. 114211a29bacSmrg # Note: whatever this is, it MUST be the same as what config.sub 11436b526288Smrg # prints for the "djgpp" host, or else GDB configure will decide that 114411a29bacSmrg # this is a cross-build. 114511a29bacSmrg echo i586-pc-msdosdjgpp 11466b526288Smrg exit ;; 114741b2f0bdSmrg Intel:Mach:3*:*) 114841b2f0bdSmrg echo i386-pc-mach3 114911245024Smrg exit ;; 115041b2f0bdSmrg paragon:*:*:*) 115141b2f0bdSmrg echo i860-intel-osf1 115211245024Smrg exit ;; 115341b2f0bdSmrg i860:*:4.*:*) # i860-SVR4 115441b2f0bdSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 115541b2f0bdSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 115641b2f0bdSmrg else # Add other i860-SVR4 vendors below as they are discovered. 115741b2f0bdSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 115841b2f0bdSmrg fi 115911245024Smrg exit ;; 116041b2f0bdSmrg mini*:CTIX:SYS*5:*) 116141b2f0bdSmrg # "miniframe" 116241b2f0bdSmrg echo m68010-convergent-sysv 116311245024Smrg exit ;; 116441b2f0bdSmrg mc68k:UNIX:SYSTEM5:3.51m) 116541b2f0bdSmrg echo m68k-convergent-sysv 116611245024Smrg exit ;; 116741b2f0bdSmrg M680?0:D-NIX:5.3:*) 116841b2f0bdSmrg echo m68k-diab-dnix 116911245024Smrg exit ;; 117011245024Smrg M68*:*:R3V[5678]*:*) 117111245024Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 117211245024Smrg 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) 117341b2f0bdSmrg OS_REL='' 117441b2f0bdSmrg test -r /etc/.relid \ 117541b2f0bdSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 117641b2f0bdSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 117711245024Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 117841b2f0bdSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 117911245024Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 118041b2f0bdSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 11816b526288Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11826b526288Smrg && { echo i486-ncr-sysv4; exit; } ;; 118311a29bacSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 118411a29bacSmrg OS_REL='.3' 118511a29bacSmrg test -r /etc/.relid \ 118611a29bacSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 118711a29bacSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 118811a29bacSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 118911a29bacSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 119011a29bacSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 119111a29bacSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 119211a29bacSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 119341b2f0bdSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 119441b2f0bdSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 119511245024Smrg exit ;; 119641b2f0bdSmrg mc68030:UNIX_System_V:4.*:*) 119741b2f0bdSmrg echo m68k-atari-sysv4 119811245024Smrg exit ;; 119941b2f0bdSmrg TSUNAMI:LynxOS:2.*:*) 120041b2f0bdSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 120111245024Smrg exit ;; 120241b2f0bdSmrg rs6000:LynxOS:2.*:*) 120341b2f0bdSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 120411245024Smrg exit ;; 120511a29bacSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 120641b2f0bdSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 120711245024Smrg exit ;; 120841b2f0bdSmrg SM[BE]S:UNIX_SV:*:*) 120941b2f0bdSmrg echo mips-dde-sysv${UNAME_RELEASE} 121011245024Smrg exit ;; 121141b2f0bdSmrg RM*:ReliantUNIX-*:*:*) 121241b2f0bdSmrg echo mips-sni-sysv4 121311245024Smrg exit ;; 121441b2f0bdSmrg RM*:SINIX-*:*:*) 121541b2f0bdSmrg echo mips-sni-sysv4 121611245024Smrg exit ;; 121741b2f0bdSmrg *:SINIX-*:*:*) 121841b2f0bdSmrg if uname -p 2>/dev/null >/dev/null ; then 121941b2f0bdSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 122041b2f0bdSmrg echo ${UNAME_MACHINE}-sni-sysv4 122141b2f0bdSmrg else 122241b2f0bdSmrg echo ns32k-sni-sysv 122341b2f0bdSmrg fi 122411245024Smrg exit ;; 12256b526288Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 12266b526288Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 12276b526288Smrg echo i586-unisys-sysv4 12286b526288Smrg exit ;; 122941b2f0bdSmrg *:UNIX_System_V:4*:FTX*) 123041b2f0bdSmrg # From Gerald Hewes <hewes@openmarket.com>. 123141b2f0bdSmrg # How about differentiating between stratus architectures? -djm 123241b2f0bdSmrg echo hppa1.1-stratus-sysv4 123311245024Smrg exit ;; 123441b2f0bdSmrg *:*:*:FTX*) 123541b2f0bdSmrg # From seanf@swdc.stratus.com. 123641b2f0bdSmrg echo i860-stratus-sysv4 123711245024Smrg exit ;; 123811245024Smrg i*86:VOS:*:*) 123911245024Smrg # From Paul.Green@stratus.com. 124011245024Smrg echo ${UNAME_MACHINE}-stratus-vos 124111245024Smrg exit ;; 124241b2f0bdSmrg *:VOS:*:*) 124341b2f0bdSmrg # From Paul.Green@stratus.com. 124441b2f0bdSmrg echo hppa1.1-stratus-vos 124511245024Smrg exit ;; 124641b2f0bdSmrg mc68*:A/UX:*:*) 124741b2f0bdSmrg echo m68k-apple-aux${UNAME_RELEASE} 124811245024Smrg exit ;; 124941b2f0bdSmrg news*:NEWS-OS:6*:*) 125041b2f0bdSmrg echo mips-sony-newsos6 125111245024Smrg exit ;; 125241b2f0bdSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 125341b2f0bdSmrg if [ -d /usr/nec ]; then 12546b526288Smrg echo mips-nec-sysv${UNAME_RELEASE} 125541b2f0bdSmrg else 12566b526288Smrg echo mips-unknown-sysv${UNAME_RELEASE} 125741b2f0bdSmrg fi 12586b526288Smrg exit ;; 125941b2f0bdSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 126041b2f0bdSmrg echo powerpc-be-beos 126111245024Smrg exit ;; 126241b2f0bdSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 126341b2f0bdSmrg echo powerpc-apple-beos 126411245024Smrg exit ;; 126541b2f0bdSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 126641b2f0bdSmrg echo i586-pc-beos 126711245024Smrg exit ;; 126811a29bacSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 126911a29bacSmrg echo i586-pc-haiku 127011a29bacSmrg exit ;; 12716b526288Smrg x86_64:Haiku:*:*) 12726b526288Smrg echo x86_64-unknown-haiku 12736b526288Smrg exit ;; 127441b2f0bdSmrg SX-4:SUPER-UX:*:*) 127541b2f0bdSmrg echo sx4-nec-superux${UNAME_RELEASE} 127611245024Smrg exit ;; 127741b2f0bdSmrg SX-5:SUPER-UX:*:*) 127841b2f0bdSmrg echo sx5-nec-superux${UNAME_RELEASE} 127911245024Smrg exit ;; 128041b2f0bdSmrg SX-6:SUPER-UX:*:*) 128141b2f0bdSmrg echo sx6-nec-superux${UNAME_RELEASE} 128211245024Smrg exit ;; 128311245024Smrg SX-7:SUPER-UX:*:*) 128411245024Smrg echo sx7-nec-superux${UNAME_RELEASE} 128511245024Smrg exit ;; 128611245024Smrg SX-8:SUPER-UX:*:*) 128711245024Smrg echo sx8-nec-superux${UNAME_RELEASE} 128811245024Smrg exit ;; 128911245024Smrg SX-8R:SUPER-UX:*:*) 129011245024Smrg echo sx8r-nec-superux${UNAME_RELEASE} 129111245024Smrg exit ;; 12926b526288Smrg SX-ACE:SUPER-UX:*:*) 12936b526288Smrg echo sxace-nec-superux${UNAME_RELEASE} 12946b526288Smrg exit ;; 129541b2f0bdSmrg Power*:Rhapsody:*:*) 129641b2f0bdSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 129711245024Smrg exit ;; 129841b2f0bdSmrg *:Rhapsody:*:*) 129941b2f0bdSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 130011245024Smrg exit ;; 130141b2f0bdSmrg *:Darwin:*:*) 130211245024Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 13036b526288Smrg eval $set_cc_for_build 13046b526288Smrg if test "$UNAME_PROCESSOR" = unknown ; then 13056b526288Smrg UNAME_PROCESSOR=powerpc 13066b526288Smrg fi 13076b526288Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 13086b526288Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 13096b526288Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 13106b526288Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 13116b526288Smrg grep IS_64BIT_ARCH >/dev/null 13126b526288Smrg then 13136b526288Smrg case $UNAME_PROCESSOR in 13146b526288Smrg i386) UNAME_PROCESSOR=x86_64 ;; 13156b526288Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 13166b526288Smrg esac 13176b526288Smrg fi 13186b526288Smrg # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 13196b526288Smrg if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 13206b526288Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 13216b526288Smrg grep IS_PPC >/dev/null 13226b526288Smrg then 13236b526288Smrg UNAME_PROCESSOR=powerpc 13246b526288Smrg fi 13256b526288Smrg fi 13266b526288Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 13276b526288Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 13286b526288Smrg # that puts up a graphical alert prompting to install 13296b526288Smrg # developer tools. Any system running Mac OS X 10.7 or 13306b526288Smrg # later (Darwin 11 and later) is required to have a 64-bit 13316b526288Smrg # processor. This is not true of the ARM version of Darwin 13326b526288Smrg # that Apple uses in portable devices. 13336b526288Smrg UNAME_PROCESSOR=x86_64 13346b526288Smrg fi 133541b2f0bdSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 133611245024Smrg exit ;; 133741b2f0bdSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 133841b2f0bdSmrg UNAME_PROCESSOR=`uname -p` 13396b526288Smrg if test "$UNAME_PROCESSOR" = x86; then 134041b2f0bdSmrg UNAME_PROCESSOR=i386 134141b2f0bdSmrg UNAME_MACHINE=pc 134241b2f0bdSmrg fi 134341b2f0bdSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 134411245024Smrg exit ;; 134541b2f0bdSmrg *:QNX:*:4*) 134641b2f0bdSmrg echo i386-pc-qnx 134711245024Smrg exit ;; 13486b526288Smrg NEO-*:NONSTOP_KERNEL:*:*) 13496b526288Smrg echo neo-tandem-nsk${UNAME_RELEASE} 13506b526288Smrg exit ;; 13516b526288Smrg NSE-*:NONSTOP_KERNEL:*:*) 135211245024Smrg echo nse-tandem-nsk${UNAME_RELEASE} 135311245024Smrg exit ;; 13546b526288Smrg NSR-*:NONSTOP_KERNEL:*:*) 135541b2f0bdSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 135611245024Smrg exit ;; 13576b526288Smrg NSX-*:NONSTOP_KERNEL:*:*) 13586b526288Smrg echo nsx-tandem-nsk${UNAME_RELEASE} 13596b526288Smrg exit ;; 136041b2f0bdSmrg *:NonStop-UX:*:*) 136141b2f0bdSmrg echo mips-compaq-nonstopux 136211245024Smrg exit ;; 136341b2f0bdSmrg BS2000:POSIX*:*:*) 136441b2f0bdSmrg echo bs2000-siemens-sysv 136511245024Smrg exit ;; 136641b2f0bdSmrg DS/*:UNIX_System_V:*:*) 136741b2f0bdSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 136811245024Smrg exit ;; 136941b2f0bdSmrg *:Plan9:*:*) 137041b2f0bdSmrg # "uname -m" is not consistent, so use $cputype instead. 386 137141b2f0bdSmrg # is converted to i386 for consistency with other x86 137241b2f0bdSmrg # operating systems. 13736b526288Smrg if test "$cputype" = 386; then 137441b2f0bdSmrg UNAME_MACHINE=i386 137541b2f0bdSmrg else 137641b2f0bdSmrg UNAME_MACHINE="$cputype" 137741b2f0bdSmrg fi 137841b2f0bdSmrg echo ${UNAME_MACHINE}-unknown-plan9 137911245024Smrg exit ;; 138041b2f0bdSmrg *:TOPS-10:*:*) 138141b2f0bdSmrg echo pdp10-unknown-tops10 138211245024Smrg exit ;; 138341b2f0bdSmrg *:TENEX:*:*) 138441b2f0bdSmrg echo pdp10-unknown-tenex 138511245024Smrg exit ;; 138641b2f0bdSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 138741b2f0bdSmrg echo pdp10-dec-tops20 138811245024Smrg exit ;; 138941b2f0bdSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 139041b2f0bdSmrg echo pdp10-xkl-tops20 139111245024Smrg exit ;; 139241b2f0bdSmrg *:TOPS-20:*:*) 139341b2f0bdSmrg echo pdp10-unknown-tops20 139411245024Smrg exit ;; 139541b2f0bdSmrg *:ITS:*:*) 139641b2f0bdSmrg echo pdp10-unknown-its 139711245024Smrg exit ;; 139841b2f0bdSmrg SEI:*:*:SEIUX) 13996b526288Smrg echo mips-sei-seiux${UNAME_RELEASE} 140011245024Smrg exit ;; 140111245024Smrg *:DragonFly:*:*) 140211245024Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 140311245024Smrg exit ;; 140411245024Smrg *:*VMS:*:*) 14056b526288Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 140611245024Smrg case "${UNAME_MACHINE}" in 140711245024Smrg A*) echo alpha-dec-vms ; exit ;; 140811245024Smrg I*) echo ia64-dec-vms ; exit ;; 140911245024Smrg V*) echo vax-dec-vms ; exit ;; 141011245024Smrg esac ;; 141111245024Smrg *:XENIX:*:SysV) 141211245024Smrg echo i386-pc-xenix 141311245024Smrg exit ;; 141411245024Smrg i*86:skyos:*:*) 14156b526288Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` 141611245024Smrg exit ;; 141711245024Smrg i*86:rdos:*:*) 141811245024Smrg echo ${UNAME_MACHINE}-pc-rdos 141911245024Smrg exit ;; 142011a29bacSmrg i*86:AROS:*:*) 142111a29bacSmrg echo ${UNAME_MACHINE}-pc-aros 142211a29bacSmrg exit ;; 14236b526288Smrg x86_64:VMkernel:*:*) 14246b526288Smrg echo ${UNAME_MACHINE}-unknown-esx 142511245024Smrg exit ;; 14266b526288Smrg amd64:Isilon\ OneFS:*:*) 14276b526288Smrg echo x86_64-unknown-onefs 142811245024Smrg exit ;; 14296b526288Smrgesac 143041b2f0bdSmrg 143141b2f0bdSmrgcat >&2 <<EOF 143241b2f0bdSmrg$0: unable to guess system type 143341b2f0bdSmrg 14346b526288SmrgThis script (version $timestamp), has failed to recognize the 14356b526288Smrgoperating system you are using. If your script is old, overwrite *all* 14366b526288Smrgcopies of config.guess and config.sub with the latest versions from: 143741b2f0bdSmrg 14386b526288Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 143911245024Smrgand 14406b526288Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 144141b2f0bdSmrg 14426b526288SmrgIf $0 has already been updated, send the following data and any 14436b526288Smrginformation you think might be pertinent to config-patches@gnu.org to 14446b526288Smrgprovide the necessary information to handle your system. 144541b2f0bdSmrg 144641b2f0bdSmrgconfig.guess timestamp = $timestamp 144741b2f0bdSmrg 144841b2f0bdSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 144941b2f0bdSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 145041b2f0bdSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 145141b2f0bdSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 145241b2f0bdSmrg 145341b2f0bdSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 145441b2f0bdSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 145541b2f0bdSmrg 145641b2f0bdSmrghostinfo = `(hostinfo) 2>/dev/null` 145741b2f0bdSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 145841b2f0bdSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 145941b2f0bdSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 146041b2f0bdSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 146141b2f0bdSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 146241b2f0bdSmrg 146341b2f0bdSmrgUNAME_MACHINE = ${UNAME_MACHINE} 146441b2f0bdSmrgUNAME_RELEASE = ${UNAME_RELEASE} 146541b2f0bdSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 146641b2f0bdSmrgUNAME_VERSION = ${UNAME_VERSION} 146741b2f0bdSmrgEOF 146841b2f0bdSmrg 146941b2f0bdSmrgexit 1 147041b2f0bdSmrg 147141b2f0bdSmrg# Local variables: 147241b2f0bdSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 147341b2f0bdSmrg# time-stamp-start: "timestamp='" 147441b2f0bdSmrg# time-stamp-format: "%:y-%02m-%02d" 147541b2f0bdSmrg# time-stamp-end: "'" 147641b2f0bdSmrg# End: 1477