config.guess revision 9511053f
1a850946eSmrg#! /bin/sh 2a850946eSmrg# Attempt to guess a canonical system name. 39511053fSmrg# Copyright 1992-2013 Free Software Foundation, Inc. 4a850946eSmrg 59511053fSmrgtimestamp='2013-06-10' 6a850946eSmrg 7a850946eSmrg# This file is free software; you can redistribute it and/or modify it 8a850946eSmrg# under the terms of the GNU General Public License as published by 99511053fSmrg# the Free Software Foundation; either version 3 of the License, or 10a850946eSmrg# (at your option) any later version. 11a850946eSmrg# 12a850946eSmrg# This program is distributed in the hope that it will be useful, but 13a850946eSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 14a850946eSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15a850946eSmrg# General Public License for more details. 16a850946eSmrg# 17a850946eSmrg# You should have received a copy of the GNU General Public License 189511053fSmrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 19a850946eSmrg# 20a850946eSmrg# As a special exception to the GNU General Public License, if you 21a850946eSmrg# distribute this file as part of a program that contains a 22a850946eSmrg# configuration script generated by Autoconf, you may include it under 239511053fSmrg# the same distribution terms that you use for the rest of that 249511053fSmrg# program. This Exception is an additional permission under section 7 259511053fSmrg# of the GNU General Public License, version 3 ("GPLv3"). 26a850946eSmrg# 279511053fSmrg# Originally written by Per Bothner. 28a850946eSmrg# 297dff02feSmrg# You can get the latest version of this script from: 307dff02feSmrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 319511053fSmrg# 329511053fSmrg# Please send patches with a ChangeLog entry to config-patches@gnu.org. 339511053fSmrg 34a850946eSmrg 35a850946eSmrgme=`echo "$0" | sed -e 's,.*/,,'` 36a850946eSmrg 37a850946eSmrgusage="\ 38a850946eSmrgUsage: $0 [OPTION] 39a850946eSmrg 40a850946eSmrgOutput the configuration name of the system \`$me' is run on. 41a850946eSmrg 42a850946eSmrgOperation modes: 43a850946eSmrg -h, --help print this help, then exit 44a850946eSmrg -t, --time-stamp print date of last modification, then exit 45a850946eSmrg -v, --version print version number, then exit 46a850946eSmrg 47a850946eSmrgReport bugs and patches to <config-patches@gnu.org>." 48a850946eSmrg 49a850946eSmrgversion="\ 50a850946eSmrgGNU config.guess ($timestamp) 51a850946eSmrg 52a850946eSmrgOriginally written by Per Bothner. 539511053fSmrgCopyright 1992-2013 Free Software Foundation, Inc. 54a850946eSmrg 55a850946eSmrgThis is free software; see the source for copying conditions. There is NO 56a850946eSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 57a850946eSmrg 58a850946eSmrghelp=" 59a850946eSmrgTry \`$me --help' for more information." 60a850946eSmrg 61a850946eSmrg# Parse command line 62a850946eSmrgwhile test $# -gt 0 ; do 63a850946eSmrg case $1 in 64a850946eSmrg --time-stamp | --time* | -t ) 6570f7c90cSmrg echo "$timestamp" ; exit ;; 66a850946eSmrg --version | -v ) 6770f7c90cSmrg echo "$version" ; exit ;; 68a850946eSmrg --help | --h* | -h ) 6970f7c90cSmrg echo "$usage"; exit ;; 70a850946eSmrg -- ) # Stop option processing 71a850946eSmrg shift; break ;; 72a850946eSmrg - ) # Use stdin as input. 73a850946eSmrg break ;; 74a850946eSmrg -* ) 75a850946eSmrg echo "$me: invalid option $1$help" >&2 76a850946eSmrg exit 1 ;; 77a850946eSmrg * ) 78a850946eSmrg break ;; 79a850946eSmrg esac 80a850946eSmrgdone 81a850946eSmrg 82a850946eSmrgif test $# != 0; then 83a850946eSmrg echo "$me: too many arguments$help" >&2 84a850946eSmrg exit 1 85a850946eSmrgfi 86a850946eSmrg 879511053fSmrgtrap 'exit 1' 1 2 15 88a850946eSmrg 89a850946eSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 90a850946eSmrg# compiler to aid in system detection is discouraged as it requires 91a850946eSmrg# temporary files to be created and, as you can see below, it is a 92a850946eSmrg# headache to deal with in a portable fashion. 93a850946eSmrg 94a850946eSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 95a850946eSmrg# use `HOST_CC' if defined, but it is deprecated. 96a850946eSmrg 97a850946eSmrg# Portable tmp directory creation inspired by the Autoconf team. 98a850946eSmrg 99a850946eSmrgset_cc_for_build=' 100a850946eSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 1019511053fSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 102a850946eSmrg: ${TMPDIR=/tmp} ; 10370f7c90cSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 104a850946eSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 105a850946eSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 106a850946eSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 107a850946eSmrgdummy=$tmp/dummy ; 108a850946eSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109a850946eSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 110a850946eSmrg ,,) echo "int x;" > $dummy.c ; 111a850946eSmrg for c in cc gcc c89 c99 ; do 112a850946eSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 113a850946eSmrg CC_FOR_BUILD="$c"; break ; 114a850946eSmrg fi ; 115a850946eSmrg done ; 116a850946eSmrg if test x"$CC_FOR_BUILD" = x ; then 117a850946eSmrg CC_FOR_BUILD=no_compiler_found ; 118a850946eSmrg fi 119a850946eSmrg ;; 120a850946eSmrg ,,*) CC_FOR_BUILD=$CC ;; 121a850946eSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12270f7c90cSmrgesac ; set_cc_for_build= ;' 123a850946eSmrg 124a850946eSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125a850946eSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 126a850946eSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 127a850946eSmrg PATH=$PATH:/.attbin ; export PATH 128a850946eSmrgfi 129a850946eSmrg 130a850946eSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 131a850946eSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 132a850946eSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 133a850946eSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 134a850946eSmrg 1359511053fSmrgcase "${UNAME_SYSTEM}" in 1369511053fSmrgLinux|GNU|GNU/*) 1379511053fSmrg # If the system lacks a compiler, then just pick glibc. 1389511053fSmrg # We could probably try harder. 1399511053fSmrg LIBC=gnu 1409511053fSmrg 1419511053fSmrg eval $set_cc_for_build 1429511053fSmrg cat <<-EOF > $dummy.c 1439511053fSmrg #include <features.h> 1449511053fSmrg #if defined(__UCLIBC__) 1459511053fSmrg LIBC=uclibc 1469511053fSmrg #elif defined(__dietlibc__) 1479511053fSmrg LIBC=dietlibc 1489511053fSmrg #else 1499511053fSmrg LIBC=gnu 1509511053fSmrg #endif 1519511053fSmrg EOF 1529511053fSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 1539511053fSmrg ;; 1549511053fSmrgesac 1559511053fSmrg 156a850946eSmrg# Note: order is significant - the case branches are not exclusive. 157a850946eSmrg 158a850946eSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 159a850946eSmrg *:NetBSD:*:*) 160a850946eSmrg # NetBSD (nbsd) targets should (where applicable) match one or 1619511053fSmrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 162a850946eSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 163a850946eSmrg # switched to ELF, *-*-netbsd* would select the old 164a850946eSmrg # object file format. This provides both forward 165a850946eSmrg # compatibility and a consistent mechanism for selecting the 166a850946eSmrg # object file format. 167a850946eSmrg # 168a850946eSmrg # Note: NetBSD doesn't particularly care about the vendor 169a850946eSmrg # portion of the name. We always set it to "unknown". 170a850946eSmrg sysctl="sysctl -n hw.machine_arch" 171a850946eSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 172a850946eSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 173a850946eSmrg case "${UNAME_MACHINE_ARCH}" in 174a850946eSmrg armeb) machine=armeb-unknown ;; 175a850946eSmrg arm*) machine=arm-unknown ;; 176a850946eSmrg sh3el) machine=shl-unknown ;; 177a850946eSmrg sh3eb) machine=sh-unknown ;; 17870f7c90cSmrg sh5el) machine=sh5le-unknown ;; 179a850946eSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 180a850946eSmrg esac 181a850946eSmrg # The Operating System including object format, if it has switched 182a850946eSmrg # to ELF recently, or will in the future. 183a850946eSmrg case "${UNAME_MACHINE_ARCH}" in 184a850946eSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 185a850946eSmrg eval $set_cc_for_build 186a850946eSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 1877dff02feSmrg | grep -q __ELF__ 188a850946eSmrg then 189a850946eSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 190a850946eSmrg # Return netbsd for either. FIX? 191a850946eSmrg os=netbsd 192a850946eSmrg else 193a850946eSmrg os=netbsdelf 194a850946eSmrg fi 195a850946eSmrg ;; 196a850946eSmrg *) 1979511053fSmrg os=netbsd 198a850946eSmrg ;; 199a850946eSmrg esac 200a850946eSmrg # The OS release 201a850946eSmrg # Debian GNU/NetBSD machines have a different userland, and 202a850946eSmrg # thus, need a distinct triplet. However, they do not need 203a850946eSmrg # kernel version information, so it can be replaced with a 204a850946eSmrg # suitable tag, in the style of linux-gnu. 205a850946eSmrg case "${UNAME_VERSION}" in 206a850946eSmrg Debian*) 207a850946eSmrg release='-gnu' 208a850946eSmrg ;; 209a850946eSmrg *) 210a850946eSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 211a850946eSmrg ;; 212a850946eSmrg esac 213a850946eSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 214a850946eSmrg # contains redundant information, the shorter form: 215a850946eSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 216a850946eSmrg echo "${machine}-${os}${release}" 21770f7c90cSmrg exit ;; 2189511053fSmrg *:Bitrig:*:*) 2199511053fSmrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 2209511053fSmrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 2219511053fSmrg exit ;; 222a850946eSmrg *:OpenBSD:*:*) 22370f7c90cSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 22470f7c90cSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 22570f7c90cSmrg exit ;; 22670f7c90cSmrg *:ekkoBSD:*:*) 22770f7c90cSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 22870f7c90cSmrg exit ;; 22970f7c90cSmrg *:SolidBSD:*:*) 23070f7c90cSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 23170f7c90cSmrg exit ;; 23270f7c90cSmrg macppc:MirBSD:*:*) 23370f7c90cSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 23470f7c90cSmrg exit ;; 23570f7c90cSmrg *:MirBSD:*:*) 23670f7c90cSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 23770f7c90cSmrg exit ;; 238a850946eSmrg alpha:OSF1:*:*) 23970f7c90cSmrg case $UNAME_RELEASE in 24070f7c90cSmrg *4.0) 241a850946eSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 24270f7c90cSmrg ;; 24370f7c90cSmrg *5.*) 2449511053fSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 24570f7c90cSmrg ;; 24670f7c90cSmrg esac 247a850946eSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 248a850946eSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 249a850946eSmrg # covers most systems running today. This code pipes the CPU 250a850946eSmrg # types through head -n 1, so we only detect the type of CPU 0. 251a850946eSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 252a850946eSmrg case "$ALPHA_CPU_TYPE" in 253a850946eSmrg "EV4 (21064)") 254a850946eSmrg UNAME_MACHINE="alpha" ;; 255a850946eSmrg "EV4.5 (21064)") 256a850946eSmrg UNAME_MACHINE="alpha" ;; 257a850946eSmrg "LCA4 (21066/21068)") 258a850946eSmrg UNAME_MACHINE="alpha" ;; 259a850946eSmrg "EV5 (21164)") 260a850946eSmrg UNAME_MACHINE="alphaev5" ;; 261a850946eSmrg "EV5.6 (21164A)") 262a850946eSmrg UNAME_MACHINE="alphaev56" ;; 263a850946eSmrg "EV5.6 (21164PC)") 264a850946eSmrg UNAME_MACHINE="alphapca56" ;; 265a850946eSmrg "EV5.7 (21164PC)") 266a850946eSmrg UNAME_MACHINE="alphapca57" ;; 267a850946eSmrg "EV6 (21264)") 268a850946eSmrg UNAME_MACHINE="alphaev6" ;; 269a850946eSmrg "EV6.7 (21264A)") 270a850946eSmrg UNAME_MACHINE="alphaev67" ;; 271a850946eSmrg "EV6.8CB (21264C)") 272a850946eSmrg UNAME_MACHINE="alphaev68" ;; 273a850946eSmrg "EV6.8AL (21264B)") 274a850946eSmrg UNAME_MACHINE="alphaev68" ;; 275a850946eSmrg "EV6.8CX (21264D)") 276a850946eSmrg UNAME_MACHINE="alphaev68" ;; 277a850946eSmrg "EV6.9A (21264/EV69A)") 278a850946eSmrg UNAME_MACHINE="alphaev69" ;; 279a850946eSmrg "EV7 (21364)") 280a850946eSmrg UNAME_MACHINE="alphaev7" ;; 281a850946eSmrg "EV7.9 (21364A)") 282a850946eSmrg UNAME_MACHINE="alphaev79" ;; 283a850946eSmrg esac 28470f7c90cSmrg # A Pn.n version is a patched version. 285a850946eSmrg # A Vn.n version is a released version. 286a850946eSmrg # A Tn.n version is a released field test version. 287a850946eSmrg # A Xn.n version is an unreleased experimental baselevel. 288a850946eSmrg # 1.2 uses "1.2" for uname -r. 28970f7c90cSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 2909511053fSmrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 2919511053fSmrg exitcode=$? 2929511053fSmrg trap '' 0 2939511053fSmrg exit $exitcode ;; 294a850946eSmrg Alpha\ *:Windows_NT*:*) 295a850946eSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 296a850946eSmrg # Should we change UNAME_MACHINE based on the output of uname instead 297a850946eSmrg # of the specific Alpha model? 298a850946eSmrg echo alpha-pc-interix 29970f7c90cSmrg exit ;; 300a850946eSmrg 21064:Windows_NT:50:3) 301a850946eSmrg echo alpha-dec-winnt3.5 30270f7c90cSmrg exit ;; 303a850946eSmrg Amiga*:UNIX_System_V:4.0:*) 304a850946eSmrg echo m68k-unknown-sysv4 30570f7c90cSmrg exit ;; 306a850946eSmrg *:[Aa]miga[Oo][Ss]:*:*) 307a850946eSmrg echo ${UNAME_MACHINE}-unknown-amigaos 30870f7c90cSmrg exit ;; 309a850946eSmrg *:[Mm]orph[Oo][Ss]:*:*) 310a850946eSmrg echo ${UNAME_MACHINE}-unknown-morphos 31170f7c90cSmrg exit ;; 312a850946eSmrg *:OS/390:*:*) 313a850946eSmrg echo i370-ibm-openedition 31470f7c90cSmrg exit ;; 31570f7c90cSmrg *:z/VM:*:*) 31670f7c90cSmrg echo s390-ibm-zvmoe 31770f7c90cSmrg exit ;; 31870f7c90cSmrg *:OS400:*:*) 3199511053fSmrg echo powerpc-ibm-os400 32070f7c90cSmrg exit ;; 321a850946eSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 322a850946eSmrg echo arm-acorn-riscix${UNAME_RELEASE} 32370f7c90cSmrg exit ;; 3249511053fSmrg arm*:riscos:*:*|arm*:RISCOS:*:*) 32570f7c90cSmrg echo arm-unknown-riscos 32670f7c90cSmrg exit ;; 327a850946eSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 328a850946eSmrg echo hppa1.1-hitachi-hiuxmpp 32970f7c90cSmrg exit ;; 330a850946eSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 331a850946eSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 332a850946eSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 333a850946eSmrg echo pyramid-pyramid-sysv3 334a850946eSmrg else 335a850946eSmrg echo pyramid-pyramid-bsd 336a850946eSmrg fi 33770f7c90cSmrg exit ;; 338a850946eSmrg NILE*:*:*:dcosx) 339a850946eSmrg echo pyramid-pyramid-svr4 34070f7c90cSmrg exit ;; 341a850946eSmrg DRS?6000:unix:4.0:6*) 342a850946eSmrg echo sparc-icl-nx6 34370f7c90cSmrg exit ;; 34470f7c90cSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 345a850946eSmrg case `/usr/bin/uname -p` in 34670f7c90cSmrg sparc) echo sparc-icl-nx7; exit ;; 347a850946eSmrg esac ;; 34870f7c90cSmrg s390x:SunOS:*:*) 34970f7c90cSmrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35070f7c90cSmrg exit ;; 351a850946eSmrg sun4H:SunOS:5.*:*) 352a850946eSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35370f7c90cSmrg exit ;; 354a850946eSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 355a850946eSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35670f7c90cSmrg exit ;; 3577dff02feSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 3587dff02feSmrg echo i386-pc-auroraux${UNAME_RELEASE} 3597dff02feSmrg exit ;; 36070f7c90cSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 36170f7c90cSmrg eval $set_cc_for_build 36270f7c90cSmrg SUN_ARCH="i386" 36370f7c90cSmrg # If there is a compiler, see if it is configured for 64-bit objects. 36470f7c90cSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 36570f7c90cSmrg # This test works for both compilers. 36670f7c90cSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 36770f7c90cSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 36870f7c90cSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 36970f7c90cSmrg grep IS_64BIT_ARCH >/dev/null 37070f7c90cSmrg then 37170f7c90cSmrg SUN_ARCH="x86_64" 37270f7c90cSmrg fi 37370f7c90cSmrg fi 37470f7c90cSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37570f7c90cSmrg exit ;; 376a850946eSmrg sun4*:SunOS:6*:*) 377a850946eSmrg # According to config.sub, this is the proper way to canonicalize 378a850946eSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 379a850946eSmrg # it's likely to be more like Solaris than SunOS4. 380a850946eSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 38170f7c90cSmrg exit ;; 382a850946eSmrg sun4*:SunOS:*:*) 383a850946eSmrg case "`/usr/bin/arch -k`" in 384a850946eSmrg Series*|S4*) 385a850946eSmrg UNAME_RELEASE=`uname -v` 386a850946eSmrg ;; 387a850946eSmrg esac 388a850946eSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 389a850946eSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 39070f7c90cSmrg exit ;; 391a850946eSmrg sun3*:SunOS:*:*) 392a850946eSmrg echo m68k-sun-sunos${UNAME_RELEASE} 39370f7c90cSmrg exit ;; 394a850946eSmrg sun*:*:4.2BSD:*) 395a850946eSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 396a850946eSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 397a850946eSmrg case "`/bin/arch`" in 398a850946eSmrg sun3) 399a850946eSmrg echo m68k-sun-sunos${UNAME_RELEASE} 400a850946eSmrg ;; 401a850946eSmrg sun4) 402a850946eSmrg echo sparc-sun-sunos${UNAME_RELEASE} 403a850946eSmrg ;; 404a850946eSmrg esac 40570f7c90cSmrg exit ;; 406a850946eSmrg aushp:SunOS:*:*) 407a850946eSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 40870f7c90cSmrg exit ;; 409a850946eSmrg # The situation for MiNT is a little confusing. The machine name 410a850946eSmrg # can be virtually everything (everything which is not 411a850946eSmrg # "atarist" or "atariste" at least should have a processor 412a850946eSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 413a850946eSmrg # to the lowercase version "mint" (or "freemint"). Finally 414a850946eSmrg # the system name "TOS" denotes a system which is actually not 415a850946eSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 416a850946eSmrg # be no problem. 417a850946eSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 4189511053fSmrg echo m68k-atari-mint${UNAME_RELEASE} 41970f7c90cSmrg exit ;; 420a850946eSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 421a850946eSmrg echo m68k-atari-mint${UNAME_RELEASE} 4229511053fSmrg exit ;; 423a850946eSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 4249511053fSmrg echo m68k-atari-mint${UNAME_RELEASE} 42570f7c90cSmrg exit ;; 426a850946eSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 4279511053fSmrg echo m68k-milan-mint${UNAME_RELEASE} 4289511053fSmrg exit ;; 429a850946eSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 4309511053fSmrg echo m68k-hades-mint${UNAME_RELEASE} 4319511053fSmrg exit ;; 432a850946eSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 4339511053fSmrg echo m68k-unknown-mint${UNAME_RELEASE} 4349511053fSmrg exit ;; 43570f7c90cSmrg m68k:machten:*:*) 43670f7c90cSmrg echo m68k-apple-machten${UNAME_RELEASE} 43770f7c90cSmrg exit ;; 438a850946eSmrg powerpc:machten:*:*) 439a850946eSmrg echo powerpc-apple-machten${UNAME_RELEASE} 44070f7c90cSmrg exit ;; 441a850946eSmrg RISC*:Mach:*:*) 442a850946eSmrg echo mips-dec-mach_bsd4.3 44370f7c90cSmrg exit ;; 444a850946eSmrg RISC*:ULTRIX:*:*) 445a850946eSmrg echo mips-dec-ultrix${UNAME_RELEASE} 44670f7c90cSmrg exit ;; 447a850946eSmrg VAX*:ULTRIX*:*:*) 448a850946eSmrg echo vax-dec-ultrix${UNAME_RELEASE} 44970f7c90cSmrg exit ;; 450a850946eSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 451a850946eSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 45270f7c90cSmrg exit ;; 453a850946eSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 454a850946eSmrg eval $set_cc_for_build 455a850946eSmrg sed 's/^ //' << EOF >$dummy.c 456a850946eSmrg#ifdef __cplusplus 457a850946eSmrg#include <stdio.h> /* for printf() prototype */ 458a850946eSmrg int main (int argc, char *argv[]) { 459a850946eSmrg#else 460a850946eSmrg int main (argc, argv) int argc; char *argv[]; { 461a850946eSmrg#endif 462a850946eSmrg #if defined (host_mips) && defined (MIPSEB) 463a850946eSmrg #if defined (SYSTYPE_SYSV) 464a850946eSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 465a850946eSmrg #endif 466a850946eSmrg #if defined (SYSTYPE_SVR4) 467a850946eSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 468a850946eSmrg #endif 469a850946eSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 470a850946eSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 471a850946eSmrg #endif 472a850946eSmrg #endif 473a850946eSmrg exit (-1); 474a850946eSmrg } 475a850946eSmrgEOF 47670f7c90cSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 47770f7c90cSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 47870f7c90cSmrg SYSTEM_NAME=`$dummy $dummyarg` && 47970f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 480a850946eSmrg echo mips-mips-riscos${UNAME_RELEASE} 48170f7c90cSmrg exit ;; 482a850946eSmrg Motorola:PowerMAX_OS:*:*) 483a850946eSmrg echo powerpc-motorola-powermax 48470f7c90cSmrg exit ;; 485a850946eSmrg Motorola:*:4.3:PL8-*) 486a850946eSmrg echo powerpc-harris-powermax 48770f7c90cSmrg exit ;; 488a850946eSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 489a850946eSmrg echo powerpc-harris-powermax 49070f7c90cSmrg exit ;; 491a850946eSmrg Night_Hawk:Power_UNIX:*:*) 492a850946eSmrg echo powerpc-harris-powerunix 49370f7c90cSmrg exit ;; 494a850946eSmrg m88k:CX/UX:7*:*) 495a850946eSmrg echo m88k-harris-cxux7 49670f7c90cSmrg exit ;; 497a850946eSmrg m88k:*:4*:R4*) 498a850946eSmrg echo m88k-motorola-sysv4 49970f7c90cSmrg exit ;; 500a850946eSmrg m88k:*:3*:R3*) 501a850946eSmrg echo m88k-motorola-sysv3 50270f7c90cSmrg exit ;; 503a850946eSmrg AViiON:dgux:*:*) 5049511053fSmrg # DG/UX returns AViiON for all architectures 5059511053fSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 506a850946eSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 507a850946eSmrg then 508a850946eSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 509a850946eSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 510a850946eSmrg then 511a850946eSmrg echo m88k-dg-dgux${UNAME_RELEASE} 512a850946eSmrg else 513a850946eSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 514a850946eSmrg fi 515a850946eSmrg else 516a850946eSmrg echo i586-dg-dgux${UNAME_RELEASE} 517a850946eSmrg fi 5189511053fSmrg exit ;; 519a850946eSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 520a850946eSmrg echo m88k-dolphin-sysv3 52170f7c90cSmrg exit ;; 522a850946eSmrg M88*:*:R3*:*) 523a850946eSmrg # Delta 88k system running SVR3 524a850946eSmrg echo m88k-motorola-sysv3 52570f7c90cSmrg exit ;; 526a850946eSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 527a850946eSmrg echo m88k-tektronix-sysv3 52870f7c90cSmrg exit ;; 529a850946eSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 530a850946eSmrg echo m68k-tektronix-bsd 53170f7c90cSmrg exit ;; 532a850946eSmrg *:IRIX*:*:*) 533a850946eSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 53470f7c90cSmrg exit ;; 535a850946eSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 53670f7c90cSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 53770f7c90cSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 538a850946eSmrg i*86:AIX:*:*) 539a850946eSmrg echo i386-ibm-aix 54070f7c90cSmrg exit ;; 541a850946eSmrg ia64:AIX:*:*) 542a850946eSmrg if [ -x /usr/bin/oslevel ] ; then 543a850946eSmrg IBM_REV=`/usr/bin/oslevel` 544a850946eSmrg else 545a850946eSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 546a850946eSmrg fi 547a850946eSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 54870f7c90cSmrg exit ;; 549a850946eSmrg *:AIX:2:3) 550a850946eSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 551a850946eSmrg eval $set_cc_for_build 552a850946eSmrg sed 's/^ //' << EOF >$dummy.c 553a850946eSmrg #include <sys/systemcfg.h> 554a850946eSmrg 555a850946eSmrg main() 556a850946eSmrg { 557a850946eSmrg if (!__power_pc()) 558a850946eSmrg exit(1); 559a850946eSmrg puts("powerpc-ibm-aix3.2.5"); 560a850946eSmrg exit(0); 561a850946eSmrg } 562a850946eSmrgEOF 56370f7c90cSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 56470f7c90cSmrg then 56570f7c90cSmrg echo "$SYSTEM_NAME" 56670f7c90cSmrg else 56770f7c90cSmrg echo rs6000-ibm-aix3.2.5 56870f7c90cSmrg fi 569a850946eSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 570a850946eSmrg echo rs6000-ibm-aix3.2.4 571a850946eSmrg else 572a850946eSmrg echo rs6000-ibm-aix3.2 573a850946eSmrg fi 57470f7c90cSmrg exit ;; 57569a1fe56Smrg *:AIX:*:[4567]) 576a850946eSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 577a850946eSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 578a850946eSmrg IBM_ARCH=rs6000 579a850946eSmrg else 580a850946eSmrg IBM_ARCH=powerpc 581a850946eSmrg fi 582a850946eSmrg if [ -x /usr/bin/oslevel ] ; then 583a850946eSmrg IBM_REV=`/usr/bin/oslevel` 584a850946eSmrg else 585a850946eSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 586a850946eSmrg fi 587a850946eSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 58870f7c90cSmrg exit ;; 589a850946eSmrg *:AIX:*:*) 590a850946eSmrg echo rs6000-ibm-aix 59170f7c90cSmrg exit ;; 592a850946eSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 593a850946eSmrg echo romp-ibm-bsd4.4 59470f7c90cSmrg exit ;; 595a850946eSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 596a850946eSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 59770f7c90cSmrg exit ;; # report: romp-ibm BSD 4.3 598a850946eSmrg *:BOSX:*:*) 599a850946eSmrg echo rs6000-bull-bosx 60070f7c90cSmrg exit ;; 601a850946eSmrg DPX/2?00:B.O.S.:*:*) 602a850946eSmrg echo m68k-bull-sysv3 60370f7c90cSmrg exit ;; 604a850946eSmrg 9000/[34]??:4.3bsd:1.*:*) 605a850946eSmrg echo m68k-hp-bsd 60670f7c90cSmrg exit ;; 607a850946eSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 608a850946eSmrg echo m68k-hp-bsd4.4 60970f7c90cSmrg exit ;; 610a850946eSmrg 9000/[34678]??:HP-UX:*:*) 611a850946eSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 612a850946eSmrg case "${UNAME_MACHINE}" in 613a850946eSmrg 9000/31? ) HP_ARCH=m68000 ;; 614a850946eSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 615a850946eSmrg 9000/[678][0-9][0-9]) 616a850946eSmrg if [ -x /usr/bin/getconf ]; then 617a850946eSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 6189511053fSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 6199511053fSmrg case "${sc_cpu_version}" in 6209511053fSmrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 6219511053fSmrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 6229511053fSmrg 532) # CPU_PA_RISC2_0 6239511053fSmrg case "${sc_kernel_bits}" in 6249511053fSmrg 32) HP_ARCH="hppa2.0n" ;; 6259511053fSmrg 64) HP_ARCH="hppa2.0w" ;; 626a850946eSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 6279511053fSmrg esac ;; 6289511053fSmrg esac 629a850946eSmrg fi 630a850946eSmrg if [ "${HP_ARCH}" = "" ]; then 631a850946eSmrg eval $set_cc_for_build 6329511053fSmrg sed 's/^ //' << EOF >$dummy.c 633a850946eSmrg 6349511053fSmrg #define _HPUX_SOURCE 6359511053fSmrg #include <stdlib.h> 6369511053fSmrg #include <unistd.h> 637a850946eSmrg 6389511053fSmrg int main () 6399511053fSmrg { 6409511053fSmrg #if defined(_SC_KERNEL_BITS) 6419511053fSmrg long bits = sysconf(_SC_KERNEL_BITS); 6429511053fSmrg #endif 6439511053fSmrg long cpu = sysconf (_SC_CPU_VERSION); 644a850946eSmrg 6459511053fSmrg switch (cpu) 6469511053fSmrg { 6479511053fSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 6489511053fSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 6499511053fSmrg case CPU_PA_RISC2_0: 6509511053fSmrg #if defined(_SC_KERNEL_BITS) 6519511053fSmrg switch (bits) 6529511053fSmrg { 6539511053fSmrg case 64: puts ("hppa2.0w"); break; 6549511053fSmrg case 32: puts ("hppa2.0n"); break; 6559511053fSmrg default: puts ("hppa2.0"); break; 6569511053fSmrg } break; 6579511053fSmrg #else /* !defined(_SC_KERNEL_BITS) */ 6589511053fSmrg puts ("hppa2.0"); break; 6599511053fSmrg #endif 6609511053fSmrg default: puts ("hppa1.0"); break; 6619511053fSmrg } 6629511053fSmrg exit (0); 6639511053fSmrg } 664a850946eSmrgEOF 665a850946eSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 666a850946eSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 667a850946eSmrg fi ;; 668a850946eSmrg esac 669a850946eSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 670a850946eSmrg then 67170f7c90cSmrg eval $set_cc_for_build 67270f7c90cSmrg 67370f7c90cSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 67470f7c90cSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 67570f7c90cSmrg # generating 64-bit code. GNU and HP use different nomenclature: 67670f7c90cSmrg # 67770f7c90cSmrg # $ CC_FOR_BUILD=cc ./config.guess 67870f7c90cSmrg # => hppa2.0w-hp-hpux11.23 67970f7c90cSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 68070f7c90cSmrg # => hppa64-hp-hpux11.23 68170f7c90cSmrg 68270f7c90cSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 6837dff02feSmrg grep -q __LP64__ 684a850946eSmrg then 685a850946eSmrg HP_ARCH="hppa2.0w" 686a850946eSmrg else 687a850946eSmrg HP_ARCH="hppa64" 688a850946eSmrg fi 689a850946eSmrg fi 690a850946eSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 69170f7c90cSmrg exit ;; 692a850946eSmrg ia64:HP-UX:*:*) 693a850946eSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 694a850946eSmrg echo ia64-hp-hpux${HPUX_REV} 69570f7c90cSmrg exit ;; 696a850946eSmrg 3050*:HI-UX:*:*) 697a850946eSmrg eval $set_cc_for_build 698a850946eSmrg sed 's/^ //' << EOF >$dummy.c 699a850946eSmrg #include <unistd.h> 700a850946eSmrg int 701a850946eSmrg main () 702a850946eSmrg { 703a850946eSmrg long cpu = sysconf (_SC_CPU_VERSION); 704a850946eSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 705a850946eSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 706a850946eSmrg results, however. */ 707a850946eSmrg if (CPU_IS_PA_RISC (cpu)) 708a850946eSmrg { 709a850946eSmrg switch (cpu) 710a850946eSmrg { 711a850946eSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 712a850946eSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 713a850946eSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 714a850946eSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 715a850946eSmrg } 716a850946eSmrg } 717a850946eSmrg else if (CPU_IS_HP_MC68K (cpu)) 718a850946eSmrg puts ("m68k-hitachi-hiuxwe2"); 719a850946eSmrg else puts ("unknown-hitachi-hiuxwe2"); 720a850946eSmrg exit (0); 721a850946eSmrg } 722a850946eSmrgEOF 72370f7c90cSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 72470f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 725a850946eSmrg echo unknown-hitachi-hiuxwe2 72670f7c90cSmrg exit ;; 727a850946eSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 728a850946eSmrg echo hppa1.1-hp-bsd 72970f7c90cSmrg exit ;; 730a850946eSmrg 9000/8??:4.3bsd:*:*) 731a850946eSmrg echo hppa1.0-hp-bsd 73270f7c90cSmrg exit ;; 733a850946eSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 734a850946eSmrg echo hppa1.0-hp-mpeix 73570f7c90cSmrg exit ;; 736a850946eSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 737a850946eSmrg echo hppa1.1-hp-osf 73870f7c90cSmrg exit ;; 739a850946eSmrg hp8??:OSF1:*:*) 740a850946eSmrg echo hppa1.0-hp-osf 74170f7c90cSmrg exit ;; 742a850946eSmrg i*86:OSF1:*:*) 743a850946eSmrg if [ -x /usr/sbin/sysversion ] ; then 744a850946eSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 745a850946eSmrg else 746a850946eSmrg echo ${UNAME_MACHINE}-unknown-osf1 747a850946eSmrg fi 74870f7c90cSmrg exit ;; 749a850946eSmrg parisc*:Lites*:*:*) 750a850946eSmrg echo hppa1.1-hp-lites 75170f7c90cSmrg exit ;; 752a850946eSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 753a850946eSmrg echo c1-convex-bsd 7549511053fSmrg exit ;; 755a850946eSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 756a850946eSmrg if getsysinfo -f scalar_acc 757a850946eSmrg then echo c32-convex-bsd 758a850946eSmrg else echo c2-convex-bsd 759a850946eSmrg fi 7609511053fSmrg exit ;; 761a850946eSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 762a850946eSmrg echo c34-convex-bsd 7639511053fSmrg exit ;; 764a850946eSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 765a850946eSmrg echo c38-convex-bsd 7669511053fSmrg exit ;; 767a850946eSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 768a850946eSmrg echo c4-convex-bsd 7699511053fSmrg exit ;; 770a850946eSmrg CRAY*Y-MP:*:*:*) 771a850946eSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 77270f7c90cSmrg exit ;; 773a850946eSmrg CRAY*[A-Z]90:*:*:*) 774a850946eSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 775a850946eSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 776a850946eSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 777a850946eSmrg -e 's/\.[^.]*$/.X/' 77870f7c90cSmrg exit ;; 779a850946eSmrg CRAY*TS:*:*:*) 780a850946eSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78170f7c90cSmrg exit ;; 782a850946eSmrg CRAY*T3E:*:*:*) 783a850946eSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78470f7c90cSmrg exit ;; 785a850946eSmrg CRAY*SV1:*:*:*) 786a850946eSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78770f7c90cSmrg exit ;; 788a850946eSmrg *:UNICOS/mp:*:*) 78970f7c90cSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 79070f7c90cSmrg exit ;; 791a850946eSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 792a850946eSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7939511053fSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7949511053fSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 7959511053fSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7969511053fSmrg exit ;; 79770f7c90cSmrg 5000:UNIX_System_V:4.*:*) 7989511053fSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7999511053fSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 8009511053fSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 80170f7c90cSmrg exit ;; 802a850946eSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 803a850946eSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 80470f7c90cSmrg exit ;; 805a850946eSmrg sparc*:BSD/OS:*:*) 806a850946eSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 80770f7c90cSmrg exit ;; 808a850946eSmrg *:BSD/OS:*:*) 809a850946eSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 81070f7c90cSmrg exit ;; 81170f7c90cSmrg *:FreeBSD:*:*) 8129511053fSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 8139511053fSmrg case ${UNAME_PROCESSOR} in 81470f7c90cSmrg amd64) 81570f7c90cSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 81670f7c90cSmrg *) 8179511053fSmrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 81870f7c90cSmrg esac 81970f7c90cSmrg exit ;; 820a850946eSmrg i*:CYGWIN*:*) 821a850946eSmrg echo ${UNAME_MACHINE}-pc-cygwin 82270f7c90cSmrg exit ;; 8239511053fSmrg *:MINGW64*:*) 8249511053fSmrg echo ${UNAME_MACHINE}-pc-mingw64 8259511053fSmrg exit ;; 82670f7c90cSmrg *:MINGW*:*) 827a850946eSmrg echo ${UNAME_MACHINE}-pc-mingw32 82870f7c90cSmrg exit ;; 8299511053fSmrg i*:MSYS*:*) 8309511053fSmrg echo ${UNAME_MACHINE}-pc-msys 8319511053fSmrg exit ;; 83270f7c90cSmrg i*:windows32*:*) 8339511053fSmrg # uname -m includes "-pc" on this system. 8349511053fSmrg echo ${UNAME_MACHINE}-mingw32 83570f7c90cSmrg exit ;; 836a850946eSmrg i*:PW*:*) 837a850946eSmrg echo ${UNAME_MACHINE}-pc-pw32 83870f7c90cSmrg exit ;; 8397dff02feSmrg *:Interix*:*) 8409511053fSmrg case ${UNAME_MACHINE} in 84170f7c90cSmrg x86) 84270f7c90cSmrg echo i586-pc-interix${UNAME_RELEASE} 84370f7c90cSmrg exit ;; 8447dff02feSmrg authenticamd | genuineintel | EM64T) 84570f7c90cSmrg echo x86_64-unknown-interix${UNAME_RELEASE} 84670f7c90cSmrg exit ;; 84770f7c90cSmrg IA64) 84870f7c90cSmrg echo ia64-unknown-interix${UNAME_RELEASE} 84970f7c90cSmrg exit ;; 85070f7c90cSmrg esac ;; 851a850946eSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 852a850946eSmrg echo i${UNAME_MACHINE}-pc-mks 85370f7c90cSmrg exit ;; 8547dff02feSmrg 8664:Windows_NT:*) 8557dff02feSmrg echo x86_64-pc-mks 8567dff02feSmrg exit ;; 857a850946eSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 858a850946eSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 859a850946eSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 860a850946eSmrg # UNAME_MACHINE based on the output of uname instead of i386? 861a850946eSmrg echo i586-pc-interix 86270f7c90cSmrg exit ;; 863a850946eSmrg i*:UWIN*:*) 864a850946eSmrg echo ${UNAME_MACHINE}-pc-uwin 86570f7c90cSmrg exit ;; 86670f7c90cSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 86770f7c90cSmrg echo x86_64-unknown-cygwin 86870f7c90cSmrg exit ;; 869a850946eSmrg p*:CYGWIN*:*) 870a850946eSmrg echo powerpcle-unknown-cygwin 87170f7c90cSmrg exit ;; 872a850946eSmrg prep*:SunOS:5.*:*) 873a850946eSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 87470f7c90cSmrg exit ;; 875a850946eSmrg *:GNU:*:*) 87670f7c90cSmrg # the GNU system 8779511053fSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 87870f7c90cSmrg exit ;; 87970f7c90cSmrg *:GNU/*:*:*) 88070f7c90cSmrg # other systems with GNU libc and userland 8819511053fSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 88270f7c90cSmrg exit ;; 883a850946eSmrg i*86:Minix:*:*) 884a850946eSmrg echo ${UNAME_MACHINE}-pc-minix 88570f7c90cSmrg exit ;; 8869511053fSmrg aarch64:Linux:*:*) 8879511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 8889511053fSmrg exit ;; 8899511053fSmrg aarch64_be:Linux:*:*) 8909511053fSmrg UNAME_MACHINE=aarch64_be 8919511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 8929511053fSmrg exit ;; 8937dff02feSmrg alpha:Linux:*:*) 8947dff02feSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 8957dff02feSmrg EV5) UNAME_MACHINE=alphaev5 ;; 8967dff02feSmrg EV56) UNAME_MACHINE=alphaev56 ;; 8977dff02feSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 8987dff02feSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 8997dff02feSmrg EV6) UNAME_MACHINE=alphaev6 ;; 9007dff02feSmrg EV67) UNAME_MACHINE=alphaev67 ;; 9017dff02feSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 9029511053fSmrg esac 9037dff02feSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 9049511053fSmrg if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 9059511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9069511053fSmrg exit ;; 9079511053fSmrg arc:Linux:*:* | arceb:Linux:*:*) 9089511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9097dff02feSmrg exit ;; 910a850946eSmrg arm*:Linux:*:*) 91170f7c90cSmrg eval $set_cc_for_build 91270f7c90cSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 91370f7c90cSmrg | grep -q __ARM_EABI__ 91470f7c90cSmrg then 9159511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 91670f7c90cSmrg else 9179511053fSmrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 9189511053fSmrg | grep -q __ARM_PCS_VFP 9199511053fSmrg then 9209511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 9219511053fSmrg else 9229511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 9239511053fSmrg fi 92470f7c90cSmrg fi 92570f7c90cSmrg exit ;; 92670f7c90cSmrg avr32*:Linux:*:*) 9279511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 92870f7c90cSmrg exit ;; 929a850946eSmrg cris:Linux:*:*) 9309511053fSmrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 93170f7c90cSmrg exit ;; 93270f7c90cSmrg crisv32:Linux:*:*) 9339511053fSmrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 93470f7c90cSmrg exit ;; 93570f7c90cSmrg frv:Linux:*:*) 9369511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9379511053fSmrg exit ;; 9389511053fSmrg hexagon:Linux:*:*) 9399511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94070f7c90cSmrg exit ;; 9417dff02feSmrg i*86:Linux:*:*) 9429511053fSmrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 9437dff02feSmrg exit ;; 944a850946eSmrg ia64:Linux:*:*) 9459511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94670f7c90cSmrg exit ;; 94770f7c90cSmrg m32r*:Linux:*:*) 9489511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94970f7c90cSmrg exit ;; 950a850946eSmrg m68*:Linux:*:*) 9519511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 95270f7c90cSmrg exit ;; 9537dff02feSmrg mips:Linux:*:* | mips64:Linux:*:*) 954a850946eSmrg eval $set_cc_for_build 955a850946eSmrg sed 's/^ //' << EOF >$dummy.c 956a850946eSmrg #undef CPU 9577dff02feSmrg #undef ${UNAME_MACHINE} 9587dff02feSmrg #undef ${UNAME_MACHINE}el 959a850946eSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 9607dff02feSmrg CPU=${UNAME_MACHINE}el 961a850946eSmrg #else 962a850946eSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 9637dff02feSmrg CPU=${UNAME_MACHINE} 964a850946eSmrg #else 965a850946eSmrg CPU= 966a850946eSmrg #endif 967a850946eSmrg #endif 968a850946eSmrgEOF 9697dff02feSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 9709511053fSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 971a850946eSmrg ;; 9729511053fSmrg or1k:Linux:*:*) 9739511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9749511053fSmrg exit ;; 97570f7c90cSmrg or32:Linux:*:*) 9769511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97770f7c90cSmrg exit ;; 97870f7c90cSmrg padre:Linux:*:*) 9799511053fSmrg echo sparc-unknown-linux-${LIBC} 98070f7c90cSmrg exit ;; 9817dff02feSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 9829511053fSmrg echo hppa64-unknown-linux-${LIBC} 9837dff02feSmrg exit ;; 984a850946eSmrg parisc:Linux:*:* | hppa:Linux:*:*) 985a850946eSmrg # Look for CPU level 986a850946eSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 9879511053fSmrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 9889511053fSmrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 9899511053fSmrg *) echo hppa-unknown-linux-${LIBC} ;; 990a850946eSmrg esac 99170f7c90cSmrg exit ;; 9927dff02feSmrg ppc64:Linux:*:*) 9939511053fSmrg echo powerpc64-unknown-linux-${LIBC} 9947dff02feSmrg exit ;; 9957dff02feSmrg ppc:Linux:*:*) 9969511053fSmrg echo powerpc-unknown-linux-${LIBC} 9979511053fSmrg exit ;; 9989511053fSmrg ppc64le:Linux:*:*) 9999511053fSmrg echo powerpc64le-unknown-linux-${LIBC} 10009511053fSmrg exit ;; 10019511053fSmrg ppcle:Linux:*:*) 10029511053fSmrg echo powerpcle-unknown-linux-${LIBC} 100370f7c90cSmrg exit ;; 1004a850946eSmrg s390:Linux:*:* | s390x:Linux:*:*) 10059511053fSmrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 100670f7c90cSmrg exit ;; 1007a850946eSmrg sh64*:Linux:*:*) 10089511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 100970f7c90cSmrg exit ;; 1010a850946eSmrg sh*:Linux:*:*) 10119511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101270f7c90cSmrg exit ;; 1013a850946eSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 10149511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101570f7c90cSmrg exit ;; 101669a1fe56Smrg tile*:Linux:*:*) 10179511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101869a1fe56Smrg exit ;; 101970f7c90cSmrg vax:Linux:*:*) 10209511053fSmrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 102170f7c90cSmrg exit ;; 1022a850946eSmrg x86_64:Linux:*:*) 10239511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 102470f7c90cSmrg exit ;; 102570f7c90cSmrg xtensa*:Linux:*:*) 10269511053fSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 102770f7c90cSmrg exit ;; 1028a850946eSmrg i*86:DYNIX/ptx:4*:*) 1029a850946eSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1030a850946eSmrg # earlier versions are messed up and put the nodename in both 1031a850946eSmrg # sysname and nodename. 1032a850946eSmrg echo i386-sequent-sysv4 103370f7c90cSmrg exit ;; 1034a850946eSmrg i*86:UNIX_SV:4.2MP:2.*) 10359511053fSmrg # Unixware is an offshoot of SVR4, but it has its own version 10369511053fSmrg # number series starting with 2... 10379511053fSmrg # I am not positive that other SVR4 systems won't match this, 1038a850946eSmrg # I just have to hope. -- rms. 10399511053fSmrg # Use sysv4.2uw... so that sysv4* matches it. 1040a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 104170f7c90cSmrg exit ;; 1042a850946eSmrg i*86:OS/2:*:*) 1043a850946eSmrg # If we were able to find `uname', then EMX Unix compatibility 1044a850946eSmrg # is probably installed. 1045a850946eSmrg echo ${UNAME_MACHINE}-pc-os2-emx 104670f7c90cSmrg exit ;; 1047a850946eSmrg i*86:XTS-300:*:STOP) 1048a850946eSmrg echo ${UNAME_MACHINE}-unknown-stop 104970f7c90cSmrg exit ;; 1050a850946eSmrg i*86:atheos:*:*) 1051a850946eSmrg echo ${UNAME_MACHINE}-unknown-atheos 105270f7c90cSmrg exit ;; 105370f7c90cSmrg i*86:syllable:*:*) 105470f7c90cSmrg echo ${UNAME_MACHINE}-pc-syllable 105570f7c90cSmrg exit ;; 10567dff02feSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1057a850946eSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 105870f7c90cSmrg exit ;; 1059a850946eSmrg i*86:*DOS:*:*) 1060a850946eSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 106170f7c90cSmrg exit ;; 1062a850946eSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1063a850946eSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1064a850946eSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1065a850946eSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1066a850946eSmrg else 1067a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1068a850946eSmrg fi 106970f7c90cSmrg exit ;; 107070f7c90cSmrg i*86:*:5:[678]*) 10719511053fSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 1072a850946eSmrg case `/bin/uname -X | grep "^Machine"` in 1073a850946eSmrg *486*) UNAME_MACHINE=i486 ;; 1074a850946eSmrg *Pentium) UNAME_MACHINE=i586 ;; 1075a850946eSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1076a850946eSmrg esac 1077a850946eSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 107870f7c90cSmrg exit ;; 1079a850946eSmrg i*86:*:3.2:*) 1080a850946eSmrg if test -f /usr/options/cb.name; then 1081a850946eSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1082a850946eSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1083a850946eSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 1084a850946eSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1085a850946eSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1086a850946eSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 1087a850946eSmrg && UNAME_MACHINE=i586 1088a850946eSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 1089a850946eSmrg && UNAME_MACHINE=i686 1090a850946eSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1091a850946eSmrg && UNAME_MACHINE=i686 1092a850946eSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1093a850946eSmrg else 1094a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv32 1095a850946eSmrg fi 109670f7c90cSmrg exit ;; 1097a850946eSmrg pc:*:*:*) 1098a850946eSmrg # Left here for compatibility: 10999511053fSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 11009511053fSmrg # the processor, so we play safe by assuming i586. 110170f7c90cSmrg # Note: whatever this is, it MUST be the same as what config.sub 110270f7c90cSmrg # prints for the "djgpp" host, or else GDB configury will decide that 110370f7c90cSmrg # this is a cross-build. 110470f7c90cSmrg echo i586-pc-msdosdjgpp 11059511053fSmrg exit ;; 1106a850946eSmrg Intel:Mach:3*:*) 1107a850946eSmrg echo i386-pc-mach3 110870f7c90cSmrg exit ;; 1109a850946eSmrg paragon:*:*:*) 1110a850946eSmrg echo i860-intel-osf1 111170f7c90cSmrg exit ;; 1112a850946eSmrg i860:*:4.*:*) # i860-SVR4 1113a850946eSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1114a850946eSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1115a850946eSmrg else # Add other i860-SVR4 vendors below as they are discovered. 1116a850946eSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1117a850946eSmrg fi 111870f7c90cSmrg exit ;; 1119a850946eSmrg mini*:CTIX:SYS*5:*) 1120a850946eSmrg # "miniframe" 1121a850946eSmrg echo m68010-convergent-sysv 112270f7c90cSmrg exit ;; 1123a850946eSmrg mc68k:UNIX:SYSTEM5:3.51m) 1124a850946eSmrg echo m68k-convergent-sysv 112570f7c90cSmrg exit ;; 1126a850946eSmrg M680?0:D-NIX:5.3:*) 1127a850946eSmrg echo m68k-diab-dnix 112870f7c90cSmrg exit ;; 112970f7c90cSmrg M68*:*:R3V[5678]*:*) 113070f7c90cSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 113170f7c90cSmrg 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) 1132a850946eSmrg OS_REL='' 1133a850946eSmrg test -r /etc/.relid \ 1134a850946eSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1135a850946eSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 113670f7c90cSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1137a850946eSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 113870f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1139a850946eSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 11409511053fSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11419511053fSmrg && { echo i486-ncr-sysv4; exit; } ;; 114270f7c90cSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 114370f7c90cSmrg OS_REL='.3' 114470f7c90cSmrg test -r /etc/.relid \ 114570f7c90cSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 114670f7c90cSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114770f7c90cSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 114870f7c90cSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 114970f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 115070f7c90cSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 115170f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1152a850946eSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1153a850946eSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 115470f7c90cSmrg exit ;; 1155a850946eSmrg mc68030:UNIX_System_V:4.*:*) 1156a850946eSmrg echo m68k-atari-sysv4 115770f7c90cSmrg exit ;; 1158a850946eSmrg TSUNAMI:LynxOS:2.*:*) 1159a850946eSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 116070f7c90cSmrg exit ;; 1161a850946eSmrg rs6000:LynxOS:2.*:*) 1162a850946eSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 116370f7c90cSmrg exit ;; 11647dff02feSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1165a850946eSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 116670f7c90cSmrg exit ;; 1167a850946eSmrg SM[BE]S:UNIX_SV:*:*) 1168a850946eSmrg echo mips-dde-sysv${UNAME_RELEASE} 116970f7c90cSmrg exit ;; 1170a850946eSmrg RM*:ReliantUNIX-*:*:*) 1171a850946eSmrg echo mips-sni-sysv4 117270f7c90cSmrg exit ;; 1173a850946eSmrg RM*:SINIX-*:*:*) 1174a850946eSmrg echo mips-sni-sysv4 117570f7c90cSmrg exit ;; 1176a850946eSmrg *:SINIX-*:*:*) 1177a850946eSmrg if uname -p 2>/dev/null >/dev/null ; then 1178a850946eSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1179a850946eSmrg echo ${UNAME_MACHINE}-sni-sysv4 1180a850946eSmrg else 1181a850946eSmrg echo ns32k-sni-sysv 1182a850946eSmrg fi 118370f7c90cSmrg exit ;; 11849511053fSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 11859511053fSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 11869511053fSmrg echo i586-unisys-sysv4 11879511053fSmrg exit ;; 1188a850946eSmrg *:UNIX_System_V:4*:FTX*) 1189a850946eSmrg # From Gerald Hewes <hewes@openmarket.com>. 1190a850946eSmrg # How about differentiating between stratus architectures? -djm 1191a850946eSmrg echo hppa1.1-stratus-sysv4 119270f7c90cSmrg exit ;; 1193a850946eSmrg *:*:*:FTX*) 1194a850946eSmrg # From seanf@swdc.stratus.com. 1195a850946eSmrg echo i860-stratus-sysv4 119670f7c90cSmrg exit ;; 119770f7c90cSmrg i*86:VOS:*:*) 119870f7c90cSmrg # From Paul.Green@stratus.com. 119970f7c90cSmrg echo ${UNAME_MACHINE}-stratus-vos 120070f7c90cSmrg exit ;; 1201a850946eSmrg *:VOS:*:*) 1202a850946eSmrg # From Paul.Green@stratus.com. 1203a850946eSmrg echo hppa1.1-stratus-vos 120470f7c90cSmrg exit ;; 1205a850946eSmrg mc68*:A/UX:*:*) 1206a850946eSmrg echo m68k-apple-aux${UNAME_RELEASE} 120770f7c90cSmrg exit ;; 1208a850946eSmrg news*:NEWS-OS:6*:*) 1209a850946eSmrg echo mips-sony-newsos6 121070f7c90cSmrg exit ;; 1211a850946eSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1212a850946eSmrg if [ -d /usr/nec ]; then 12139511053fSmrg echo mips-nec-sysv${UNAME_RELEASE} 1214a850946eSmrg else 12159511053fSmrg echo mips-unknown-sysv${UNAME_RELEASE} 1216a850946eSmrg fi 12179511053fSmrg exit ;; 1218a850946eSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1219a850946eSmrg echo powerpc-be-beos 122070f7c90cSmrg exit ;; 1221a850946eSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1222a850946eSmrg echo powerpc-apple-beos 122370f7c90cSmrg exit ;; 1224a850946eSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1225a850946eSmrg echo i586-pc-beos 122670f7c90cSmrg exit ;; 122770f7c90cSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 122870f7c90cSmrg echo i586-pc-haiku 122970f7c90cSmrg exit ;; 12309511053fSmrg x86_64:Haiku:*:*) 12319511053fSmrg echo x86_64-unknown-haiku 12329511053fSmrg exit ;; 1233a850946eSmrg SX-4:SUPER-UX:*:*) 1234a850946eSmrg echo sx4-nec-superux${UNAME_RELEASE} 123570f7c90cSmrg exit ;; 1236a850946eSmrg SX-5:SUPER-UX:*:*) 1237a850946eSmrg echo sx5-nec-superux${UNAME_RELEASE} 123870f7c90cSmrg exit ;; 1239a850946eSmrg SX-6:SUPER-UX:*:*) 1240a850946eSmrg echo sx6-nec-superux${UNAME_RELEASE} 124170f7c90cSmrg exit ;; 124270f7c90cSmrg SX-7:SUPER-UX:*:*) 124370f7c90cSmrg echo sx7-nec-superux${UNAME_RELEASE} 124470f7c90cSmrg exit ;; 124570f7c90cSmrg SX-8:SUPER-UX:*:*) 124670f7c90cSmrg echo sx8-nec-superux${UNAME_RELEASE} 124770f7c90cSmrg exit ;; 124870f7c90cSmrg SX-8R:SUPER-UX:*:*) 124970f7c90cSmrg echo sx8r-nec-superux${UNAME_RELEASE} 125070f7c90cSmrg exit ;; 1251a850946eSmrg Power*:Rhapsody:*:*) 1252a850946eSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 125370f7c90cSmrg exit ;; 1254a850946eSmrg *:Rhapsody:*:*) 1255a850946eSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 125670f7c90cSmrg exit ;; 1257a850946eSmrg *:Darwin:*:*) 125870f7c90cSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 12599511053fSmrg eval $set_cc_for_build 12609511053fSmrg if test "$UNAME_PROCESSOR" = unknown ; then 12619511053fSmrg UNAME_PROCESSOR=powerpc 12629511053fSmrg fi 12639511053fSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 12649511053fSmrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 12659511053fSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 12669511053fSmrg grep IS_64BIT_ARCH >/dev/null 12679511053fSmrg then 12689511053fSmrg case $UNAME_PROCESSOR in 12699511053fSmrg i386) UNAME_PROCESSOR=x86_64 ;; 12709511053fSmrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 12719511053fSmrg esac 12729511053fSmrg fi 12739511053fSmrg fi 1274a850946eSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 127570f7c90cSmrg exit ;; 1276a850946eSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 1277a850946eSmrg UNAME_PROCESSOR=`uname -p` 1278a850946eSmrg if test "$UNAME_PROCESSOR" = "x86"; then 1279a850946eSmrg UNAME_PROCESSOR=i386 1280a850946eSmrg UNAME_MACHINE=pc 1281a850946eSmrg fi 1282a850946eSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 128370f7c90cSmrg exit ;; 1284a850946eSmrg *:QNX:*:4*) 1285a850946eSmrg echo i386-pc-qnx 128670f7c90cSmrg exit ;; 12879511053fSmrg NEO-?:NONSTOP_KERNEL:*:*) 12889511053fSmrg echo neo-tandem-nsk${UNAME_RELEASE} 12899511053fSmrg exit ;; 12909511053fSmrg NSE-*:NONSTOP_KERNEL:*:*) 129170f7c90cSmrg echo nse-tandem-nsk${UNAME_RELEASE} 129270f7c90cSmrg exit ;; 129370f7c90cSmrg NSR-?:NONSTOP_KERNEL:*:*) 1294a850946eSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 129570f7c90cSmrg exit ;; 1296a850946eSmrg *:NonStop-UX:*:*) 1297a850946eSmrg echo mips-compaq-nonstopux 129870f7c90cSmrg exit ;; 1299a850946eSmrg BS2000:POSIX*:*:*) 1300a850946eSmrg echo bs2000-siemens-sysv 130170f7c90cSmrg exit ;; 1302a850946eSmrg DS/*:UNIX_System_V:*:*) 1303a850946eSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 130470f7c90cSmrg exit ;; 1305a850946eSmrg *:Plan9:*:*) 1306a850946eSmrg # "uname -m" is not consistent, so use $cputype instead. 386 1307a850946eSmrg # is converted to i386 for consistency with other x86 1308a850946eSmrg # operating systems. 1309a850946eSmrg if test "$cputype" = "386"; then 1310a850946eSmrg UNAME_MACHINE=i386 1311a850946eSmrg else 1312a850946eSmrg UNAME_MACHINE="$cputype" 1313a850946eSmrg fi 1314a850946eSmrg echo ${UNAME_MACHINE}-unknown-plan9 131570f7c90cSmrg exit ;; 1316a850946eSmrg *:TOPS-10:*:*) 1317a850946eSmrg echo pdp10-unknown-tops10 131870f7c90cSmrg exit ;; 1319a850946eSmrg *:TENEX:*:*) 1320a850946eSmrg echo pdp10-unknown-tenex 132170f7c90cSmrg exit ;; 1322a850946eSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1323a850946eSmrg echo pdp10-dec-tops20 132470f7c90cSmrg exit ;; 1325a850946eSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1326a850946eSmrg echo pdp10-xkl-tops20 132770f7c90cSmrg exit ;; 1328a850946eSmrg *:TOPS-20:*:*) 1329a850946eSmrg echo pdp10-unknown-tops20 133070f7c90cSmrg exit ;; 1331a850946eSmrg *:ITS:*:*) 1332a850946eSmrg echo pdp10-unknown-its 133370f7c90cSmrg exit ;; 1334a850946eSmrg SEI:*:*:SEIUX) 13359511053fSmrg echo mips-sei-seiux${UNAME_RELEASE} 133670f7c90cSmrg exit ;; 133770f7c90cSmrg *:DragonFly:*:*) 133870f7c90cSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 133970f7c90cSmrg exit ;; 134070f7c90cSmrg *:*VMS:*:*) 13419511053fSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 134270f7c90cSmrg case "${UNAME_MACHINE}" in 134370f7c90cSmrg A*) echo alpha-dec-vms ; exit ;; 134470f7c90cSmrg I*) echo ia64-dec-vms ; exit ;; 134570f7c90cSmrg V*) echo vax-dec-vms ; exit ;; 134670f7c90cSmrg esac ;; 134770f7c90cSmrg *:XENIX:*:SysV) 134870f7c90cSmrg echo i386-pc-xenix 134970f7c90cSmrg exit ;; 135070f7c90cSmrg i*86:skyos:*:*) 135170f7c90cSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 135270f7c90cSmrg exit ;; 135370f7c90cSmrg i*86:rdos:*:*) 135470f7c90cSmrg echo ${UNAME_MACHINE}-pc-rdos 135570f7c90cSmrg exit ;; 135670f7c90cSmrg i*86:AROS:*:*) 135770f7c90cSmrg echo ${UNAME_MACHINE}-pc-aros 135870f7c90cSmrg exit ;; 13599511053fSmrg x86_64:VMkernel:*:*) 13609511053fSmrg echo ${UNAME_MACHINE}-unknown-esx 13619511053fSmrg exit ;; 1362a850946eSmrgesac 1363a850946eSmrg 1364a850946eSmrgeval $set_cc_for_build 1365a850946eSmrgcat >$dummy.c <<EOF 1366a850946eSmrg#ifdef _SEQUENT_ 1367a850946eSmrg# include <sys/types.h> 1368a850946eSmrg# include <sys/utsname.h> 1369a850946eSmrg#endif 1370a850946eSmrgmain () 1371a850946eSmrg{ 1372a850946eSmrg#if defined (sony) 1373a850946eSmrg#if defined (MIPSEB) 1374a850946eSmrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1375a850946eSmrg I don't know.... */ 1376a850946eSmrg printf ("mips-sony-bsd\n"); exit (0); 1377a850946eSmrg#else 1378a850946eSmrg#include <sys/param.h> 1379a850946eSmrg printf ("m68k-sony-newsos%s\n", 1380a850946eSmrg#ifdef NEWSOS4 13819511053fSmrg "4" 1382a850946eSmrg#else 13839511053fSmrg "" 1384a850946eSmrg#endif 13859511053fSmrg ); exit (0); 1386a850946eSmrg#endif 1387a850946eSmrg#endif 1388a850946eSmrg 1389a850946eSmrg#if defined (__arm) && defined (__acorn) && defined (__unix) 139070f7c90cSmrg printf ("arm-acorn-riscix\n"); exit (0); 1391a850946eSmrg#endif 1392a850946eSmrg 1393a850946eSmrg#if defined (hp300) && !defined (hpux) 1394a850946eSmrg printf ("m68k-hp-bsd\n"); exit (0); 1395a850946eSmrg#endif 1396a850946eSmrg 1397a850946eSmrg#if defined (NeXT) 1398a850946eSmrg#if !defined (__ARCHITECTURE__) 1399a850946eSmrg#define __ARCHITECTURE__ "m68k" 1400a850946eSmrg#endif 1401a850946eSmrg int version; 1402a850946eSmrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1403a850946eSmrg if (version < 4) 1404a850946eSmrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1405a850946eSmrg else 1406a850946eSmrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1407a850946eSmrg exit (0); 1408a850946eSmrg#endif 1409a850946eSmrg 1410a850946eSmrg#if defined (MULTIMAX) || defined (n16) 1411a850946eSmrg#if defined (UMAXV) 1412a850946eSmrg printf ("ns32k-encore-sysv\n"); exit (0); 1413a850946eSmrg#else 1414a850946eSmrg#if defined (CMU) 1415a850946eSmrg printf ("ns32k-encore-mach\n"); exit (0); 1416a850946eSmrg#else 1417a850946eSmrg printf ("ns32k-encore-bsd\n"); exit (0); 1418a850946eSmrg#endif 1419a850946eSmrg#endif 1420a850946eSmrg#endif 1421a850946eSmrg 1422a850946eSmrg#if defined (__386BSD__) 1423a850946eSmrg printf ("i386-pc-bsd\n"); exit (0); 1424a850946eSmrg#endif 1425a850946eSmrg 1426a850946eSmrg#if defined (sequent) 1427a850946eSmrg#if defined (i386) 1428a850946eSmrg printf ("i386-sequent-dynix\n"); exit (0); 1429a850946eSmrg#endif 1430a850946eSmrg#if defined (ns32000) 1431a850946eSmrg printf ("ns32k-sequent-dynix\n"); exit (0); 1432a850946eSmrg#endif 1433a850946eSmrg#endif 1434a850946eSmrg 1435a850946eSmrg#if defined (_SEQUENT_) 1436a850946eSmrg struct utsname un; 1437a850946eSmrg 1438a850946eSmrg uname(&un); 1439a850946eSmrg 1440a850946eSmrg if (strncmp(un.version, "V2", 2) == 0) { 1441a850946eSmrg printf ("i386-sequent-ptx2\n"); exit (0); 1442a850946eSmrg } 1443a850946eSmrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1444a850946eSmrg printf ("i386-sequent-ptx1\n"); exit (0); 1445a850946eSmrg } 1446a850946eSmrg printf ("i386-sequent-ptx\n"); exit (0); 1447a850946eSmrg 1448a850946eSmrg#endif 1449a850946eSmrg 1450a850946eSmrg#if defined (vax) 1451a850946eSmrg# if !defined (ultrix) 1452a850946eSmrg# include <sys/param.h> 1453a850946eSmrg# if defined (BSD) 1454a850946eSmrg# if BSD == 43 1455a850946eSmrg printf ("vax-dec-bsd4.3\n"); exit (0); 1456a850946eSmrg# else 1457a850946eSmrg# if BSD == 199006 1458a850946eSmrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 1459a850946eSmrg# else 1460a850946eSmrg printf ("vax-dec-bsd\n"); exit (0); 1461a850946eSmrg# endif 1462a850946eSmrg# endif 1463a850946eSmrg# else 1464a850946eSmrg printf ("vax-dec-bsd\n"); exit (0); 1465a850946eSmrg# endif 1466a850946eSmrg# else 1467a850946eSmrg printf ("vax-dec-ultrix\n"); exit (0); 1468a850946eSmrg# endif 1469a850946eSmrg#endif 1470a850946eSmrg 1471a850946eSmrg#if defined (alliant) && defined (i860) 1472a850946eSmrg printf ("i860-alliant-bsd\n"); exit (0); 1473a850946eSmrg#endif 1474a850946eSmrg 1475a850946eSmrg exit (1); 1476a850946eSmrg} 1477a850946eSmrgEOF 1478a850946eSmrg 147970f7c90cSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 148070f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 1481a850946eSmrg 1482a850946eSmrg# Apollos put the system type in the environment. 1483a850946eSmrg 148470f7c90cSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1485a850946eSmrg 1486a850946eSmrg# Convex versions that predate uname can use getsysinfo(1) 1487a850946eSmrg 1488a850946eSmrgif [ -x /usr/convex/getsysinfo ] 1489a850946eSmrgthen 1490a850946eSmrg case `getsysinfo -f cpu_type` in 1491a850946eSmrg c1*) 1492a850946eSmrg echo c1-convex-bsd 149370f7c90cSmrg exit ;; 1494a850946eSmrg c2*) 1495a850946eSmrg if getsysinfo -f scalar_acc 1496a850946eSmrg then echo c32-convex-bsd 1497a850946eSmrg else echo c2-convex-bsd 1498a850946eSmrg fi 149970f7c90cSmrg exit ;; 1500a850946eSmrg c34*) 1501a850946eSmrg echo c34-convex-bsd 150270f7c90cSmrg exit ;; 1503a850946eSmrg c38*) 1504a850946eSmrg echo c38-convex-bsd 150570f7c90cSmrg exit ;; 1506a850946eSmrg c4*) 1507a850946eSmrg echo c4-convex-bsd 150870f7c90cSmrg exit ;; 1509a850946eSmrg esac 1510a850946eSmrgfi 1511a850946eSmrg 1512a850946eSmrgcat >&2 <<EOF 1513a850946eSmrg$0: unable to guess system type 1514a850946eSmrg 1515a850946eSmrgThis script, last modified $timestamp, has failed to recognize 1516a850946eSmrgthe operating system you are using. It is advised that you 1517a850946eSmrgdownload the most up to date version of the config scripts from 1518a850946eSmrg 151970f7c90cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 152070f7c90cSmrgand 152170f7c90cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1522a850946eSmrg 1523a850946eSmrgIf the version you run ($0) is already up to date, please 1524a850946eSmrgsend the following data and any information you think might be 1525a850946eSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 1526a850946eSmrginformation to handle your system. 1527a850946eSmrg 1528a850946eSmrgconfig.guess timestamp = $timestamp 1529a850946eSmrg 1530a850946eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1531a850946eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1532a850946eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1533a850946eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1534a850946eSmrg 1535a850946eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1536a850946eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1537a850946eSmrg 1538a850946eSmrghostinfo = `(hostinfo) 2>/dev/null` 1539a850946eSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 1540a850946eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1541a850946eSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 1542a850946eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1543a850946eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1544a850946eSmrg 1545a850946eSmrgUNAME_MACHINE = ${UNAME_MACHINE} 1546a850946eSmrgUNAME_RELEASE = ${UNAME_RELEASE} 1547a850946eSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 1548a850946eSmrgUNAME_VERSION = ${UNAME_VERSION} 1549a850946eSmrgEOF 1550a850946eSmrg 1551a850946eSmrgexit 1 1552a850946eSmrg 1553a850946eSmrg# Local variables: 1554a850946eSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 1555a850946eSmrg# time-stamp-start: "timestamp='" 1556a850946eSmrg# time-stamp-format: "%:y-%02m-%02d" 1557a850946eSmrg# time-stamp-end: "'" 1558a850946eSmrg# End: 1559