config.guess revision 43f32c10
143f32c10Smrg#! /bin/sh 243f32c10Smrg# Attempt to guess a canonical system name. 343f32c10Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 443f32c10Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 543f32c10Smrg# Free Software Foundation, Inc. 643f32c10Smrg 743f32c10Smrgtimestamp='2008-01-23' 843f32c10Smrg 943f32c10Smrg# This file is free software; you can redistribute it and/or modify it 1043f32c10Smrg# under the terms of the GNU General Public License as published by 1143f32c10Smrg# the Free Software Foundation; either version 2 of the License, or 1243f32c10Smrg# (at your option) any later version. 1343f32c10Smrg# 1443f32c10Smrg# This program is distributed in the hope that it will be useful, but 1543f32c10Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1643f32c10Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1743f32c10Smrg# General Public License for more details. 1843f32c10Smrg# 1943f32c10Smrg# You should have received a copy of the GNU General Public License 2043f32c10Smrg# along with this program; if not, write to the Free Software 2143f32c10Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2243f32c10Smrg# 02110-1301, USA. 2343f32c10Smrg# 2443f32c10Smrg# As a special exception to the GNU General Public License, if you 2543f32c10Smrg# distribute this file as part of a program that contains a 2643f32c10Smrg# configuration script generated by Autoconf, you may include it under 2743f32c10Smrg# the same distribution terms that you use for the rest of that program. 2843f32c10Smrg 2943f32c10Smrg 3043f32c10Smrg# Originally written by Per Bothner <per@bothner.com>. 3143f32c10Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3243f32c10Smrg# diff and a properly formatted ChangeLog entry. 3343f32c10Smrg# 3443f32c10Smrg# This script attempts to guess a canonical system name similar to 3543f32c10Smrg# config.sub. If it succeeds, it prints the system name on stdout, and 3643f32c10Smrg# exits with 0. Otherwise, it exits with 1. 3743f32c10Smrg# 3843f32c10Smrg# The plan is that this can be called by configure scripts if you 3943f32c10Smrg# don't specify an explicit build system type. 4043f32c10Smrg 4143f32c10Smrgme=`echo "$0" | sed -e 's,.*/,,'` 4243f32c10Smrg 4343f32c10Smrgusage="\ 4443f32c10SmrgUsage: $0 [OPTION] 4543f32c10Smrg 4643f32c10SmrgOutput the configuration name of the system \`$me' is run on. 4743f32c10Smrg 4843f32c10SmrgOperation modes: 4943f32c10Smrg -h, --help print this help, then exit 5043f32c10Smrg -t, --time-stamp print date of last modification, then exit 5143f32c10Smrg -v, --version print version number, then exit 5243f32c10Smrg 5343f32c10SmrgReport bugs and patches to <config-patches@gnu.org>." 5443f32c10Smrg 5543f32c10Smrgversion="\ 5643f32c10SmrgGNU config.guess ($timestamp) 5743f32c10Smrg 5843f32c10SmrgOriginally written by Per Bothner. 5943f32c10SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 6043f32c10Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 6143f32c10Smrg 6243f32c10SmrgThis is free software; see the source for copying conditions. There is NO 6343f32c10Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 6443f32c10Smrg 6543f32c10Smrghelp=" 6643f32c10SmrgTry \`$me --help' for more information." 6743f32c10Smrg 6843f32c10Smrg# Parse command line 6943f32c10Smrgwhile test $# -gt 0 ; do 7043f32c10Smrg case $1 in 7143f32c10Smrg --time-stamp | --time* | -t ) 7243f32c10Smrg echo "$timestamp" ; exit ;; 7343f32c10Smrg --version | -v ) 7443f32c10Smrg echo "$version" ; exit ;; 7543f32c10Smrg --help | --h* | -h ) 7643f32c10Smrg echo "$usage"; exit ;; 7743f32c10Smrg -- ) # Stop option processing 7843f32c10Smrg shift; break ;; 7943f32c10Smrg - ) # Use stdin as input. 8043f32c10Smrg break ;; 8143f32c10Smrg -* ) 8243f32c10Smrg echo "$me: invalid option $1$help" >&2 8343f32c10Smrg exit 1 ;; 8443f32c10Smrg * ) 8543f32c10Smrg break ;; 8643f32c10Smrg esac 8743f32c10Smrgdone 8843f32c10Smrg 8943f32c10Smrgif test $# != 0; then 9043f32c10Smrg echo "$me: too many arguments$help" >&2 9143f32c10Smrg exit 1 9243f32c10Smrgfi 9343f32c10Smrg 9443f32c10Smrgtrap 'exit 1' 1 2 15 9543f32c10Smrg 9643f32c10Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9743f32c10Smrg# compiler to aid in system detection is discouraged as it requires 9843f32c10Smrg# temporary files to be created and, as you can see below, it is a 9943f32c10Smrg# headache to deal with in a portable fashion. 10043f32c10Smrg 10143f32c10Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 10243f32c10Smrg# use `HOST_CC' if defined, but it is deprecated. 10343f32c10Smrg 10443f32c10Smrg# Portable tmp directory creation inspired by the Autoconf team. 10543f32c10Smrg 10643f32c10Smrgset_cc_for_build=' 10743f32c10Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10843f32c10Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 10943f32c10Smrg: ${TMPDIR=/tmp} ; 11043f32c10Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 11143f32c10Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 11243f32c10Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 11343f32c10Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 11443f32c10Smrgdummy=$tmp/dummy ; 11543f32c10Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 11643f32c10Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11743f32c10Smrg ,,) echo "int x;" > $dummy.c ; 11843f32c10Smrg for c in cc gcc c89 c99 ; do 11943f32c10Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 12043f32c10Smrg CC_FOR_BUILD="$c"; break ; 12143f32c10Smrg fi ; 12243f32c10Smrg done ; 12343f32c10Smrg if test x"$CC_FOR_BUILD" = x ; then 12443f32c10Smrg CC_FOR_BUILD=no_compiler_found ; 12543f32c10Smrg fi 12643f32c10Smrg ;; 12743f32c10Smrg ,,*) CC_FOR_BUILD=$CC ;; 12843f32c10Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12943f32c10Smrgesac ; set_cc_for_build= ;' 13043f32c10Smrg 13143f32c10Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 13243f32c10Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 13343f32c10Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 13443f32c10Smrg PATH=$PATH:/.attbin ; export PATH 13543f32c10Smrgfi 13643f32c10Smrg 13743f32c10SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13843f32c10SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13943f32c10SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 14043f32c10SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 14143f32c10Smrg 14243f32c10Smrg# Note: order is significant - the case branches are not exclusive. 14343f32c10Smrg 14443f32c10Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 14543f32c10Smrg *:NetBSD:*:*) 14643f32c10Smrg # NetBSD (nbsd) targets should (where applicable) match one or 14743f32c10Smrg # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 14843f32c10Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 14943f32c10Smrg # switched to ELF, *-*-netbsd* would select the old 15043f32c10Smrg # object file format. This provides both forward 15143f32c10Smrg # compatibility and a consistent mechanism for selecting the 15243f32c10Smrg # object file format. 15343f32c10Smrg # 15443f32c10Smrg # Note: NetBSD doesn't particularly care about the vendor 15543f32c10Smrg # portion of the name. We always set it to "unknown". 15643f32c10Smrg sysctl="sysctl -n hw.machine_arch" 15743f32c10Smrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 15843f32c10Smrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 15943f32c10Smrg case "${UNAME_MACHINE_ARCH}" in 16043f32c10Smrg armeb) machine=armeb-unknown ;; 16143f32c10Smrg arm*) machine=arm-unknown ;; 16243f32c10Smrg sh3el) machine=shl-unknown ;; 16343f32c10Smrg sh3eb) machine=sh-unknown ;; 16443f32c10Smrg sh5el) machine=sh5le-unknown ;; 16543f32c10Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 16643f32c10Smrg esac 16743f32c10Smrg # The Operating System including object format, if it has switched 16843f32c10Smrg # to ELF recently, or will in the future. 16943f32c10Smrg case "${UNAME_MACHINE_ARCH}" in 17043f32c10Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 17143f32c10Smrg eval $set_cc_for_build 17243f32c10Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 17343f32c10Smrg | grep __ELF__ >/dev/null 17443f32c10Smrg then 17543f32c10Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 17643f32c10Smrg # Return netbsd for either. FIX? 17743f32c10Smrg os=netbsd 17843f32c10Smrg else 17943f32c10Smrg os=netbsdelf 18043f32c10Smrg fi 18143f32c10Smrg ;; 18243f32c10Smrg *) 18343f32c10Smrg os=netbsd 18443f32c10Smrg ;; 18543f32c10Smrg esac 18643f32c10Smrg # The OS release 18743f32c10Smrg # Debian GNU/NetBSD machines have a different userland, and 18843f32c10Smrg # thus, need a distinct triplet. However, they do not need 18943f32c10Smrg # kernel version information, so it can be replaced with a 19043f32c10Smrg # suitable tag, in the style of linux-gnu. 19143f32c10Smrg case "${UNAME_VERSION}" in 19243f32c10Smrg Debian*) 19343f32c10Smrg release='-gnu' 19443f32c10Smrg ;; 19543f32c10Smrg *) 19643f32c10Smrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 19743f32c10Smrg ;; 19843f32c10Smrg esac 19943f32c10Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 20043f32c10Smrg # contains redundant information, the shorter form: 20143f32c10Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 20243f32c10Smrg echo "${machine}-${os}${release}" 20343f32c10Smrg exit ;; 20443f32c10Smrg *:OpenBSD:*:*) 20543f32c10Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 20643f32c10Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 20743f32c10Smrg exit ;; 20843f32c10Smrg *:ekkoBSD:*:*) 20943f32c10Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 21043f32c10Smrg exit ;; 21143f32c10Smrg *:SolidBSD:*:*) 21243f32c10Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 21343f32c10Smrg exit ;; 21443f32c10Smrg macppc:MirBSD:*:*) 21543f32c10Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 21643f32c10Smrg exit ;; 21743f32c10Smrg *:MirBSD:*:*) 21843f32c10Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 21943f32c10Smrg exit ;; 22043f32c10Smrg alpha:OSF1:*:*) 22143f32c10Smrg case $UNAME_RELEASE in 22243f32c10Smrg *4.0) 22343f32c10Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 22443f32c10Smrg ;; 22543f32c10Smrg *5.*) 22643f32c10Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 22743f32c10Smrg ;; 22843f32c10Smrg esac 22943f32c10Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 23043f32c10Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 23143f32c10Smrg # covers most systems running today. This code pipes the CPU 23243f32c10Smrg # types through head -n 1, so we only detect the type of CPU 0. 23343f32c10Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 23443f32c10Smrg case "$ALPHA_CPU_TYPE" in 23543f32c10Smrg "EV4 (21064)") 23643f32c10Smrg UNAME_MACHINE="alpha" ;; 23743f32c10Smrg "EV4.5 (21064)") 23843f32c10Smrg UNAME_MACHINE="alpha" ;; 23943f32c10Smrg "LCA4 (21066/21068)") 24043f32c10Smrg UNAME_MACHINE="alpha" ;; 24143f32c10Smrg "EV5 (21164)") 24243f32c10Smrg UNAME_MACHINE="alphaev5" ;; 24343f32c10Smrg "EV5.6 (21164A)") 24443f32c10Smrg UNAME_MACHINE="alphaev56" ;; 24543f32c10Smrg "EV5.6 (21164PC)") 24643f32c10Smrg UNAME_MACHINE="alphapca56" ;; 24743f32c10Smrg "EV5.7 (21164PC)") 24843f32c10Smrg UNAME_MACHINE="alphapca57" ;; 24943f32c10Smrg "EV6 (21264)") 25043f32c10Smrg UNAME_MACHINE="alphaev6" ;; 25143f32c10Smrg "EV6.7 (21264A)") 25243f32c10Smrg UNAME_MACHINE="alphaev67" ;; 25343f32c10Smrg "EV6.8CB (21264C)") 25443f32c10Smrg UNAME_MACHINE="alphaev68" ;; 25543f32c10Smrg "EV6.8AL (21264B)") 25643f32c10Smrg UNAME_MACHINE="alphaev68" ;; 25743f32c10Smrg "EV6.8CX (21264D)") 25843f32c10Smrg UNAME_MACHINE="alphaev68" ;; 25943f32c10Smrg "EV6.9A (21264/EV69A)") 26043f32c10Smrg UNAME_MACHINE="alphaev69" ;; 26143f32c10Smrg "EV7 (21364)") 26243f32c10Smrg UNAME_MACHINE="alphaev7" ;; 26343f32c10Smrg "EV7.9 (21364A)") 26443f32c10Smrg UNAME_MACHINE="alphaev79" ;; 26543f32c10Smrg esac 26643f32c10Smrg # A Pn.n version is a patched version. 26743f32c10Smrg # A Vn.n version is a released version. 26843f32c10Smrg # A Tn.n version is a released field test version. 26943f32c10Smrg # A Xn.n version is an unreleased experimental baselevel. 27043f32c10Smrg # 1.2 uses "1.2" for uname -r. 27143f32c10Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27243f32c10Smrg exit ;; 27343f32c10Smrg Alpha\ *:Windows_NT*:*) 27443f32c10Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 27543f32c10Smrg # Should we change UNAME_MACHINE based on the output of uname instead 27643f32c10Smrg # of the specific Alpha model? 27743f32c10Smrg echo alpha-pc-interix 27843f32c10Smrg exit ;; 27943f32c10Smrg 21064:Windows_NT:50:3) 28043f32c10Smrg echo alpha-dec-winnt3.5 28143f32c10Smrg exit ;; 28243f32c10Smrg Amiga*:UNIX_System_V:4.0:*) 28343f32c10Smrg echo m68k-unknown-sysv4 28443f32c10Smrg exit ;; 28543f32c10Smrg *:[Aa]miga[Oo][Ss]:*:*) 28643f32c10Smrg echo ${UNAME_MACHINE}-unknown-amigaos 28743f32c10Smrg exit ;; 28843f32c10Smrg *:[Mm]orph[Oo][Ss]:*:*) 28943f32c10Smrg echo ${UNAME_MACHINE}-unknown-morphos 29043f32c10Smrg exit ;; 29143f32c10Smrg *:OS/390:*:*) 29243f32c10Smrg echo i370-ibm-openedition 29343f32c10Smrg exit ;; 29443f32c10Smrg *:z/VM:*:*) 29543f32c10Smrg echo s390-ibm-zvmoe 29643f32c10Smrg exit ;; 29743f32c10Smrg *:OS400:*:*) 29843f32c10Smrg echo powerpc-ibm-os400 29943f32c10Smrg exit ;; 30043f32c10Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 30143f32c10Smrg echo arm-acorn-riscix${UNAME_RELEASE} 30243f32c10Smrg exit ;; 30343f32c10Smrg arm:riscos:*:*|arm:RISCOS:*:*) 30443f32c10Smrg echo arm-unknown-riscos 30543f32c10Smrg exit ;; 30643f32c10Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 30743f32c10Smrg echo hppa1.1-hitachi-hiuxmpp 30843f32c10Smrg exit ;; 30943f32c10Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 31043f32c10Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 31143f32c10Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 31243f32c10Smrg echo pyramid-pyramid-sysv3 31343f32c10Smrg else 31443f32c10Smrg echo pyramid-pyramid-bsd 31543f32c10Smrg fi 31643f32c10Smrg exit ;; 31743f32c10Smrg NILE*:*:*:dcosx) 31843f32c10Smrg echo pyramid-pyramid-svr4 31943f32c10Smrg exit ;; 32043f32c10Smrg DRS?6000:unix:4.0:6*) 32143f32c10Smrg echo sparc-icl-nx6 32243f32c10Smrg exit ;; 32343f32c10Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 32443f32c10Smrg case `/usr/bin/uname -p` in 32543f32c10Smrg sparc) echo sparc-icl-nx7; exit ;; 32643f32c10Smrg esac ;; 32743f32c10Smrg sun4H:SunOS:5.*:*) 32843f32c10Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 32943f32c10Smrg exit ;; 33043f32c10Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 33143f32c10Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33243f32c10Smrg exit ;; 33343f32c10Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 33443f32c10Smrg echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33543f32c10Smrg exit ;; 33643f32c10Smrg sun4*:SunOS:6*:*) 33743f32c10Smrg # According to config.sub, this is the proper way to canonicalize 33843f32c10Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 33943f32c10Smrg # it's likely to be more like Solaris than SunOS4. 34043f32c10Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 34143f32c10Smrg exit ;; 34243f32c10Smrg sun4*:SunOS:*:*) 34343f32c10Smrg case "`/usr/bin/arch -k`" in 34443f32c10Smrg Series*|S4*) 34543f32c10Smrg UNAME_RELEASE=`uname -v` 34643f32c10Smrg ;; 34743f32c10Smrg esac 34843f32c10Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 34943f32c10Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 35043f32c10Smrg exit ;; 35143f32c10Smrg sun3*:SunOS:*:*) 35243f32c10Smrg echo m68k-sun-sunos${UNAME_RELEASE} 35343f32c10Smrg exit ;; 35443f32c10Smrg sun*:*:4.2BSD:*) 35543f32c10Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 35643f32c10Smrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 35743f32c10Smrg case "`/bin/arch`" in 35843f32c10Smrg sun3) 35943f32c10Smrg echo m68k-sun-sunos${UNAME_RELEASE} 36043f32c10Smrg ;; 36143f32c10Smrg sun4) 36243f32c10Smrg echo sparc-sun-sunos${UNAME_RELEASE} 36343f32c10Smrg ;; 36443f32c10Smrg esac 36543f32c10Smrg exit ;; 36643f32c10Smrg aushp:SunOS:*:*) 36743f32c10Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 36843f32c10Smrg exit ;; 36943f32c10Smrg # The situation for MiNT is a little confusing. The machine name 37043f32c10Smrg # can be virtually everything (everything which is not 37143f32c10Smrg # "atarist" or "atariste" at least should have a processor 37243f32c10Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 37343f32c10Smrg # to the lowercase version "mint" (or "freemint"). Finally 37443f32c10Smrg # the system name "TOS" denotes a system which is actually not 37543f32c10Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 37643f32c10Smrg # be no problem. 37743f32c10Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 37843f32c10Smrg echo m68k-atari-mint${UNAME_RELEASE} 37943f32c10Smrg exit ;; 38043f32c10Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 38143f32c10Smrg echo m68k-atari-mint${UNAME_RELEASE} 38243f32c10Smrg exit ;; 38343f32c10Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 38443f32c10Smrg echo m68k-atari-mint${UNAME_RELEASE} 38543f32c10Smrg exit ;; 38643f32c10Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 38743f32c10Smrg echo m68k-milan-mint${UNAME_RELEASE} 38843f32c10Smrg exit ;; 38943f32c10Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 39043f32c10Smrg echo m68k-hades-mint${UNAME_RELEASE} 39143f32c10Smrg exit ;; 39243f32c10Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 39343f32c10Smrg echo m68k-unknown-mint${UNAME_RELEASE} 39443f32c10Smrg exit ;; 39543f32c10Smrg m68k:machten:*:*) 39643f32c10Smrg echo m68k-apple-machten${UNAME_RELEASE} 39743f32c10Smrg exit ;; 39843f32c10Smrg powerpc:machten:*:*) 39943f32c10Smrg echo powerpc-apple-machten${UNAME_RELEASE} 40043f32c10Smrg exit ;; 40143f32c10Smrg RISC*:Mach:*:*) 40243f32c10Smrg echo mips-dec-mach_bsd4.3 40343f32c10Smrg exit ;; 40443f32c10Smrg RISC*:ULTRIX:*:*) 40543f32c10Smrg echo mips-dec-ultrix${UNAME_RELEASE} 40643f32c10Smrg exit ;; 40743f32c10Smrg VAX*:ULTRIX*:*:*) 40843f32c10Smrg echo vax-dec-ultrix${UNAME_RELEASE} 40943f32c10Smrg exit ;; 41043f32c10Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 41143f32c10Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 41243f32c10Smrg exit ;; 41343f32c10Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 41443f32c10Smrg eval $set_cc_for_build 41543f32c10Smrg sed 's/^ //' << EOF >$dummy.c 41643f32c10Smrg#ifdef __cplusplus 41743f32c10Smrg#include <stdio.h> /* for printf() prototype */ 41843f32c10Smrg int main (int argc, char *argv[]) { 41943f32c10Smrg#else 42043f32c10Smrg int main (argc, argv) int argc; char *argv[]; { 42143f32c10Smrg#endif 42243f32c10Smrg #if defined (host_mips) && defined (MIPSEB) 42343f32c10Smrg #if defined (SYSTYPE_SYSV) 42443f32c10Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 42543f32c10Smrg #endif 42643f32c10Smrg #if defined (SYSTYPE_SVR4) 42743f32c10Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 42843f32c10Smrg #endif 42943f32c10Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 43043f32c10Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 43143f32c10Smrg #endif 43243f32c10Smrg #endif 43343f32c10Smrg exit (-1); 43443f32c10Smrg } 43543f32c10SmrgEOF 43643f32c10Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 43743f32c10Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 43843f32c10Smrg SYSTEM_NAME=`$dummy $dummyarg` && 43943f32c10Smrg { echo "$SYSTEM_NAME"; exit; } 44043f32c10Smrg echo mips-mips-riscos${UNAME_RELEASE} 44143f32c10Smrg exit ;; 44243f32c10Smrg Motorola:PowerMAX_OS:*:*) 44343f32c10Smrg echo powerpc-motorola-powermax 44443f32c10Smrg exit ;; 44543f32c10Smrg Motorola:*:4.3:PL8-*) 44643f32c10Smrg echo powerpc-harris-powermax 44743f32c10Smrg exit ;; 44843f32c10Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 44943f32c10Smrg echo powerpc-harris-powermax 45043f32c10Smrg exit ;; 45143f32c10Smrg Night_Hawk:Power_UNIX:*:*) 45243f32c10Smrg echo powerpc-harris-powerunix 45343f32c10Smrg exit ;; 45443f32c10Smrg m88k:CX/UX:7*:*) 45543f32c10Smrg echo m88k-harris-cxux7 45643f32c10Smrg exit ;; 45743f32c10Smrg m88k:*:4*:R4*) 45843f32c10Smrg echo m88k-motorola-sysv4 45943f32c10Smrg exit ;; 46043f32c10Smrg m88k:*:3*:R3*) 46143f32c10Smrg echo m88k-motorola-sysv3 46243f32c10Smrg exit ;; 46343f32c10Smrg AViiON:dgux:*:*) 46443f32c10Smrg # DG/UX returns AViiON for all architectures 46543f32c10Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 46643f32c10Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 46743f32c10Smrg then 46843f32c10Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 46943f32c10Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 47043f32c10Smrg then 47143f32c10Smrg echo m88k-dg-dgux${UNAME_RELEASE} 47243f32c10Smrg else 47343f32c10Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 47443f32c10Smrg fi 47543f32c10Smrg else 47643f32c10Smrg echo i586-dg-dgux${UNAME_RELEASE} 47743f32c10Smrg fi 47843f32c10Smrg exit ;; 47943f32c10Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 48043f32c10Smrg echo m88k-dolphin-sysv3 48143f32c10Smrg exit ;; 48243f32c10Smrg M88*:*:R3*:*) 48343f32c10Smrg # Delta 88k system running SVR3 48443f32c10Smrg echo m88k-motorola-sysv3 48543f32c10Smrg exit ;; 48643f32c10Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 48743f32c10Smrg echo m88k-tektronix-sysv3 48843f32c10Smrg exit ;; 48943f32c10Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 49043f32c10Smrg echo m68k-tektronix-bsd 49143f32c10Smrg exit ;; 49243f32c10Smrg *:IRIX*:*:*) 49343f32c10Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 49443f32c10Smrg exit ;; 49543f32c10Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 49643f32c10Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 49743f32c10Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 49843f32c10Smrg i*86:AIX:*:*) 49943f32c10Smrg echo i386-ibm-aix 50043f32c10Smrg exit ;; 50143f32c10Smrg ia64:AIX:*:*) 50243f32c10Smrg if [ -x /usr/bin/oslevel ] ; then 50343f32c10Smrg IBM_REV=`/usr/bin/oslevel` 50443f32c10Smrg else 50543f32c10Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 50643f32c10Smrg fi 50743f32c10Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 50843f32c10Smrg exit ;; 50943f32c10Smrg *:AIX:2:3) 51043f32c10Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 51143f32c10Smrg eval $set_cc_for_build 51243f32c10Smrg sed 's/^ //' << EOF >$dummy.c 51343f32c10Smrg #include <sys/systemcfg.h> 51443f32c10Smrg 51543f32c10Smrg main() 51643f32c10Smrg { 51743f32c10Smrg if (!__power_pc()) 51843f32c10Smrg exit(1); 51943f32c10Smrg puts("powerpc-ibm-aix3.2.5"); 52043f32c10Smrg exit(0); 52143f32c10Smrg } 52243f32c10SmrgEOF 52343f32c10Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 52443f32c10Smrg then 52543f32c10Smrg echo "$SYSTEM_NAME" 52643f32c10Smrg else 52743f32c10Smrg echo rs6000-ibm-aix3.2.5 52843f32c10Smrg fi 52943f32c10Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 53043f32c10Smrg echo rs6000-ibm-aix3.2.4 53143f32c10Smrg else 53243f32c10Smrg echo rs6000-ibm-aix3.2 53343f32c10Smrg fi 53443f32c10Smrg exit ;; 53543f32c10Smrg *:AIX:*:[456]) 53643f32c10Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 53743f32c10Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 53843f32c10Smrg IBM_ARCH=rs6000 53943f32c10Smrg else 54043f32c10Smrg IBM_ARCH=powerpc 54143f32c10Smrg fi 54243f32c10Smrg if [ -x /usr/bin/oslevel ] ; then 54343f32c10Smrg IBM_REV=`/usr/bin/oslevel` 54443f32c10Smrg else 54543f32c10Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 54643f32c10Smrg fi 54743f32c10Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 54843f32c10Smrg exit ;; 54943f32c10Smrg *:AIX:*:*) 55043f32c10Smrg echo rs6000-ibm-aix 55143f32c10Smrg exit ;; 55243f32c10Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 55343f32c10Smrg echo romp-ibm-bsd4.4 55443f32c10Smrg exit ;; 55543f32c10Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 55643f32c10Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 55743f32c10Smrg exit ;; # report: romp-ibm BSD 4.3 55843f32c10Smrg *:BOSX:*:*) 55943f32c10Smrg echo rs6000-bull-bosx 56043f32c10Smrg exit ;; 56143f32c10Smrg DPX/2?00:B.O.S.:*:*) 56243f32c10Smrg echo m68k-bull-sysv3 56343f32c10Smrg exit ;; 56443f32c10Smrg 9000/[34]??:4.3bsd:1.*:*) 56543f32c10Smrg echo m68k-hp-bsd 56643f32c10Smrg exit ;; 56743f32c10Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 56843f32c10Smrg echo m68k-hp-bsd4.4 56943f32c10Smrg exit ;; 57043f32c10Smrg 9000/[34678]??:HP-UX:*:*) 57143f32c10Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 57243f32c10Smrg case "${UNAME_MACHINE}" in 57343f32c10Smrg 9000/31? ) HP_ARCH=m68000 ;; 57443f32c10Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 57543f32c10Smrg 9000/[678][0-9][0-9]) 57643f32c10Smrg if [ -x /usr/bin/getconf ]; then 57743f32c10Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 57843f32c10Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 57943f32c10Smrg case "${sc_cpu_version}" in 58043f32c10Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 58143f32c10Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 58243f32c10Smrg 532) # CPU_PA_RISC2_0 58343f32c10Smrg case "${sc_kernel_bits}" in 58443f32c10Smrg 32) HP_ARCH="hppa2.0n" ;; 58543f32c10Smrg 64) HP_ARCH="hppa2.0w" ;; 58643f32c10Smrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 58743f32c10Smrg esac ;; 58843f32c10Smrg esac 58943f32c10Smrg fi 59043f32c10Smrg if [ "${HP_ARCH}" = "" ]; then 59143f32c10Smrg eval $set_cc_for_build 59243f32c10Smrg sed 's/^ //' << EOF >$dummy.c 59343f32c10Smrg 59443f32c10Smrg #define _HPUX_SOURCE 59543f32c10Smrg #include <stdlib.h> 59643f32c10Smrg #include <unistd.h> 59743f32c10Smrg 59843f32c10Smrg int main () 59943f32c10Smrg { 60043f32c10Smrg #if defined(_SC_KERNEL_BITS) 60143f32c10Smrg long bits = sysconf(_SC_KERNEL_BITS); 60243f32c10Smrg #endif 60343f32c10Smrg long cpu = sysconf (_SC_CPU_VERSION); 60443f32c10Smrg 60543f32c10Smrg switch (cpu) 60643f32c10Smrg { 60743f32c10Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 60843f32c10Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 60943f32c10Smrg case CPU_PA_RISC2_0: 61043f32c10Smrg #if defined(_SC_KERNEL_BITS) 61143f32c10Smrg switch (bits) 61243f32c10Smrg { 61343f32c10Smrg case 64: puts ("hppa2.0w"); break; 61443f32c10Smrg case 32: puts ("hppa2.0n"); break; 61543f32c10Smrg default: puts ("hppa2.0"); break; 61643f32c10Smrg } break; 61743f32c10Smrg #else /* !defined(_SC_KERNEL_BITS) */ 61843f32c10Smrg puts ("hppa2.0"); break; 61943f32c10Smrg #endif 62043f32c10Smrg default: puts ("hppa1.0"); break; 62143f32c10Smrg } 62243f32c10Smrg exit (0); 62343f32c10Smrg } 62443f32c10SmrgEOF 62543f32c10Smrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 62643f32c10Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 62743f32c10Smrg fi ;; 62843f32c10Smrg esac 62943f32c10Smrg if [ ${HP_ARCH} = "hppa2.0w" ] 63043f32c10Smrg then 63143f32c10Smrg eval $set_cc_for_build 63243f32c10Smrg 63343f32c10Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 63443f32c10Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 63543f32c10Smrg # generating 64-bit code. GNU and HP use different nomenclature: 63643f32c10Smrg # 63743f32c10Smrg # $ CC_FOR_BUILD=cc ./config.guess 63843f32c10Smrg # => hppa2.0w-hp-hpux11.23 63943f32c10Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 64043f32c10Smrg # => hppa64-hp-hpux11.23 64143f32c10Smrg 64243f32c10Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 64343f32c10Smrg grep __LP64__ >/dev/null 64443f32c10Smrg then 64543f32c10Smrg HP_ARCH="hppa2.0w" 64643f32c10Smrg else 64743f32c10Smrg HP_ARCH="hppa64" 64843f32c10Smrg fi 64943f32c10Smrg fi 65043f32c10Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 65143f32c10Smrg exit ;; 65243f32c10Smrg ia64:HP-UX:*:*) 65343f32c10Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 65443f32c10Smrg echo ia64-hp-hpux${HPUX_REV} 65543f32c10Smrg exit ;; 65643f32c10Smrg 3050*:HI-UX:*:*) 65743f32c10Smrg eval $set_cc_for_build 65843f32c10Smrg sed 's/^ //' << EOF >$dummy.c 65943f32c10Smrg #include <unistd.h> 66043f32c10Smrg int 66143f32c10Smrg main () 66243f32c10Smrg { 66343f32c10Smrg long cpu = sysconf (_SC_CPU_VERSION); 66443f32c10Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 66543f32c10Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 66643f32c10Smrg results, however. */ 66743f32c10Smrg if (CPU_IS_PA_RISC (cpu)) 66843f32c10Smrg { 66943f32c10Smrg switch (cpu) 67043f32c10Smrg { 67143f32c10Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 67243f32c10Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 67343f32c10Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 67443f32c10Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 67543f32c10Smrg } 67643f32c10Smrg } 67743f32c10Smrg else if (CPU_IS_HP_MC68K (cpu)) 67843f32c10Smrg puts ("m68k-hitachi-hiuxwe2"); 67943f32c10Smrg else puts ("unknown-hitachi-hiuxwe2"); 68043f32c10Smrg exit (0); 68143f32c10Smrg } 68243f32c10SmrgEOF 68343f32c10Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 68443f32c10Smrg { echo "$SYSTEM_NAME"; exit; } 68543f32c10Smrg echo unknown-hitachi-hiuxwe2 68643f32c10Smrg exit ;; 68743f32c10Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 68843f32c10Smrg echo hppa1.1-hp-bsd 68943f32c10Smrg exit ;; 69043f32c10Smrg 9000/8??:4.3bsd:*:*) 69143f32c10Smrg echo hppa1.0-hp-bsd 69243f32c10Smrg exit ;; 69343f32c10Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 69443f32c10Smrg echo hppa1.0-hp-mpeix 69543f32c10Smrg exit ;; 69643f32c10Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 69743f32c10Smrg echo hppa1.1-hp-osf 69843f32c10Smrg exit ;; 69943f32c10Smrg hp8??:OSF1:*:*) 70043f32c10Smrg echo hppa1.0-hp-osf 70143f32c10Smrg exit ;; 70243f32c10Smrg i*86:OSF1:*:*) 70343f32c10Smrg if [ -x /usr/sbin/sysversion ] ; then 70443f32c10Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 70543f32c10Smrg else 70643f32c10Smrg echo ${UNAME_MACHINE}-unknown-osf1 70743f32c10Smrg fi 70843f32c10Smrg exit ;; 70943f32c10Smrg parisc*:Lites*:*:*) 71043f32c10Smrg echo hppa1.1-hp-lites 71143f32c10Smrg exit ;; 71243f32c10Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 71343f32c10Smrg echo c1-convex-bsd 71443f32c10Smrg exit ;; 71543f32c10Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 71643f32c10Smrg if getsysinfo -f scalar_acc 71743f32c10Smrg then echo c32-convex-bsd 71843f32c10Smrg else echo c2-convex-bsd 71943f32c10Smrg fi 72043f32c10Smrg exit ;; 72143f32c10Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 72243f32c10Smrg echo c34-convex-bsd 72343f32c10Smrg exit ;; 72443f32c10Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 72543f32c10Smrg echo c38-convex-bsd 72643f32c10Smrg exit ;; 72743f32c10Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 72843f32c10Smrg echo c4-convex-bsd 72943f32c10Smrg exit ;; 73043f32c10Smrg CRAY*Y-MP:*:*:*) 73143f32c10Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 73243f32c10Smrg exit ;; 73343f32c10Smrg CRAY*[A-Z]90:*:*:*) 73443f32c10Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 73543f32c10Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 73643f32c10Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 73743f32c10Smrg -e 's/\.[^.]*$/.X/' 73843f32c10Smrg exit ;; 73943f32c10Smrg CRAY*TS:*:*:*) 74043f32c10Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74143f32c10Smrg exit ;; 74243f32c10Smrg CRAY*T3E:*:*:*) 74343f32c10Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74443f32c10Smrg exit ;; 74543f32c10Smrg CRAY*SV1:*:*:*) 74643f32c10Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74743f32c10Smrg exit ;; 74843f32c10Smrg *:UNICOS/mp:*:*) 74943f32c10Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 75043f32c10Smrg exit ;; 75143f32c10Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 75243f32c10Smrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 75343f32c10Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 75443f32c10Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 75543f32c10Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 75643f32c10Smrg exit ;; 75743f32c10Smrg 5000:UNIX_System_V:4.*:*) 75843f32c10Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 75943f32c10Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 76043f32c10Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 76143f32c10Smrg exit ;; 76243f32c10Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 76343f32c10Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 76443f32c10Smrg exit ;; 76543f32c10Smrg sparc*:BSD/OS:*:*) 76643f32c10Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 76743f32c10Smrg exit ;; 76843f32c10Smrg *:BSD/OS:*:*) 76943f32c10Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 77043f32c10Smrg exit ;; 77143f32c10Smrg *:FreeBSD:*:*) 77243f32c10Smrg case ${UNAME_MACHINE} in 77343f32c10Smrg pc98) 77443f32c10Smrg echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 77543f32c10Smrg amd64) 77643f32c10Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 77743f32c10Smrg *) 77843f32c10Smrg echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 77943f32c10Smrg esac 78043f32c10Smrg exit ;; 78143f32c10Smrg i*:CYGWIN*:*) 78243f32c10Smrg echo ${UNAME_MACHINE}-pc-cygwin 78343f32c10Smrg exit ;; 78443f32c10Smrg *:MINGW*:*) 78543f32c10Smrg echo ${UNAME_MACHINE}-pc-mingw32 78643f32c10Smrg exit ;; 78743f32c10Smrg i*:windows32*:*) 78843f32c10Smrg # uname -m includes "-pc" on this system. 78943f32c10Smrg echo ${UNAME_MACHINE}-mingw32 79043f32c10Smrg exit ;; 79143f32c10Smrg i*:PW*:*) 79243f32c10Smrg echo ${UNAME_MACHINE}-pc-pw32 79343f32c10Smrg exit ;; 79443f32c10Smrg *:Interix*:[3456]*) 79543f32c10Smrg case ${UNAME_MACHINE} in 79643f32c10Smrg x86) 79743f32c10Smrg echo i586-pc-interix${UNAME_RELEASE} 79843f32c10Smrg exit ;; 79943f32c10Smrg EM64T | authenticamd) 80043f32c10Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 80143f32c10Smrg exit ;; 80243f32c10Smrg IA64) 80343f32c10Smrg echo ia64-unknown-interix${UNAME_RELEASE} 80443f32c10Smrg exit ;; 80543f32c10Smrg esac ;; 80643f32c10Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 80743f32c10Smrg echo i${UNAME_MACHINE}-pc-mks 80843f32c10Smrg exit ;; 80943f32c10Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 81043f32c10Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 81143f32c10Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 81243f32c10Smrg # UNAME_MACHINE based on the output of uname instead of i386? 81343f32c10Smrg echo i586-pc-interix 81443f32c10Smrg exit ;; 81543f32c10Smrg i*:UWIN*:*) 81643f32c10Smrg echo ${UNAME_MACHINE}-pc-uwin 81743f32c10Smrg exit ;; 81843f32c10Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 81943f32c10Smrg echo x86_64-unknown-cygwin 82043f32c10Smrg exit ;; 82143f32c10Smrg p*:CYGWIN*:*) 82243f32c10Smrg echo powerpcle-unknown-cygwin 82343f32c10Smrg exit ;; 82443f32c10Smrg prep*:SunOS:5.*:*) 82543f32c10Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 82643f32c10Smrg exit ;; 82743f32c10Smrg *:GNU:*:*) 82843f32c10Smrg # the GNU system 82943f32c10Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 83043f32c10Smrg exit ;; 83143f32c10Smrg *:GNU/*:*:*) 83243f32c10Smrg # other systems with GNU libc and userland 83343f32c10Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 83443f32c10Smrg exit ;; 83543f32c10Smrg i*86:Minix:*:*) 83643f32c10Smrg echo ${UNAME_MACHINE}-pc-minix 83743f32c10Smrg exit ;; 83843f32c10Smrg arm*:Linux:*:*) 83943f32c10Smrg eval $set_cc_for_build 84043f32c10Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 84143f32c10Smrg | grep -q __ARM_EABI__ 84243f32c10Smrg then 84343f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 84443f32c10Smrg else 84543f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 84643f32c10Smrg fi 84743f32c10Smrg exit ;; 84843f32c10Smrg avr32*:Linux:*:*) 84943f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 85043f32c10Smrg exit ;; 85143f32c10Smrg cris:Linux:*:*) 85243f32c10Smrg echo cris-axis-linux-gnu 85343f32c10Smrg exit ;; 85443f32c10Smrg crisv32:Linux:*:*) 85543f32c10Smrg echo crisv32-axis-linux-gnu 85643f32c10Smrg exit ;; 85743f32c10Smrg frv:Linux:*:*) 85843f32c10Smrg echo frv-unknown-linux-gnu 85943f32c10Smrg exit ;; 86043f32c10Smrg ia64:Linux:*:*) 86143f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86243f32c10Smrg exit ;; 86343f32c10Smrg m32r*:Linux:*:*) 86443f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86543f32c10Smrg exit ;; 86643f32c10Smrg m68*:Linux:*:*) 86743f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86843f32c10Smrg exit ;; 86943f32c10Smrg mips:Linux:*:*) 87043f32c10Smrg eval $set_cc_for_build 87143f32c10Smrg sed 's/^ //' << EOF >$dummy.c 87243f32c10Smrg #undef CPU 87343f32c10Smrg #undef mips 87443f32c10Smrg #undef mipsel 87543f32c10Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 87643f32c10Smrg CPU=mipsel 87743f32c10Smrg #else 87843f32c10Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 87943f32c10Smrg CPU=mips 88043f32c10Smrg #else 88143f32c10Smrg CPU= 88243f32c10Smrg #endif 88343f32c10Smrg #endif 88443f32c10SmrgEOF 88543f32c10Smrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 88643f32c10Smrg /^CPU/{ 88743f32c10Smrg s: ::g 88843f32c10Smrg p 88943f32c10Smrg }'`" 89043f32c10Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 89143f32c10Smrg ;; 89243f32c10Smrg mips64:Linux:*:*) 89343f32c10Smrg eval $set_cc_for_build 89443f32c10Smrg sed 's/^ //' << EOF >$dummy.c 89543f32c10Smrg #undef CPU 89643f32c10Smrg #undef mips64 89743f32c10Smrg #undef mips64el 89843f32c10Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 89943f32c10Smrg CPU=mips64el 90043f32c10Smrg #else 90143f32c10Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 90243f32c10Smrg CPU=mips64 90343f32c10Smrg #else 90443f32c10Smrg CPU= 90543f32c10Smrg #endif 90643f32c10Smrg #endif 90743f32c10SmrgEOF 90843f32c10Smrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 90943f32c10Smrg /^CPU/{ 91043f32c10Smrg s: ::g 91143f32c10Smrg p 91243f32c10Smrg }'`" 91343f32c10Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 91443f32c10Smrg ;; 91543f32c10Smrg or32:Linux:*:*) 91643f32c10Smrg echo or32-unknown-linux-gnu 91743f32c10Smrg exit ;; 91843f32c10Smrg ppc:Linux:*:*) 91943f32c10Smrg echo powerpc-unknown-linux-gnu 92043f32c10Smrg exit ;; 92143f32c10Smrg ppc64:Linux:*:*) 92243f32c10Smrg echo powerpc64-unknown-linux-gnu 92343f32c10Smrg exit ;; 92443f32c10Smrg alpha:Linux:*:*) 92543f32c10Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 92643f32c10Smrg EV5) UNAME_MACHINE=alphaev5 ;; 92743f32c10Smrg EV56) UNAME_MACHINE=alphaev56 ;; 92843f32c10Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 92943f32c10Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 93043f32c10Smrg EV6) UNAME_MACHINE=alphaev6 ;; 93143f32c10Smrg EV67) UNAME_MACHINE=alphaev67 ;; 93243f32c10Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 93343f32c10Smrg esac 93443f32c10Smrg objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 93543f32c10Smrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 93643f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 93743f32c10Smrg exit ;; 93843f32c10Smrg parisc:Linux:*:* | hppa:Linux:*:*) 93943f32c10Smrg # Look for CPU level 94043f32c10Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 94143f32c10Smrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 94243f32c10Smrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 94343f32c10Smrg *) echo hppa-unknown-linux-gnu ;; 94443f32c10Smrg esac 94543f32c10Smrg exit ;; 94643f32c10Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 94743f32c10Smrg echo hppa64-unknown-linux-gnu 94843f32c10Smrg exit ;; 94943f32c10Smrg s390:Linux:*:* | s390x:Linux:*:*) 95043f32c10Smrg echo ${UNAME_MACHINE}-ibm-linux 95143f32c10Smrg exit ;; 95243f32c10Smrg sh64*:Linux:*:*) 95343f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 95443f32c10Smrg exit ;; 95543f32c10Smrg sh*:Linux:*:*) 95643f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 95743f32c10Smrg exit ;; 95843f32c10Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 95943f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 96043f32c10Smrg exit ;; 96143f32c10Smrg vax:Linux:*:*) 96243f32c10Smrg echo ${UNAME_MACHINE}-dec-linux-gnu 96343f32c10Smrg exit ;; 96443f32c10Smrg x86_64:Linux:*:*) 96543f32c10Smrg echo x86_64-unknown-linux-gnu 96643f32c10Smrg exit ;; 96743f32c10Smrg xtensa*:Linux:*:*) 96843f32c10Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 96943f32c10Smrg exit ;; 97043f32c10Smrg i*86:Linux:*:*) 97143f32c10Smrg # The BFD linker knows what the default object file format is, so 97243f32c10Smrg # first see if it will tell us. cd to the root directory to prevent 97343f32c10Smrg # problems with other programs or directories called `ld' in the path. 97443f32c10Smrg # Set LC_ALL=C to ensure ld outputs messages in English. 97543f32c10Smrg ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 97643f32c10Smrg | sed -ne '/supported targets:/!d 97743f32c10Smrg s/[ ][ ]*/ /g 97843f32c10Smrg s/.*supported targets: *// 97943f32c10Smrg s/ .*// 98043f32c10Smrg p'` 98143f32c10Smrg case "$ld_supported_targets" in 98243f32c10Smrg elf32-i386) 98343f32c10Smrg TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 98443f32c10Smrg ;; 98543f32c10Smrg a.out-i386-linux) 98643f32c10Smrg echo "${UNAME_MACHINE}-pc-linux-gnuaout" 98743f32c10Smrg exit ;; 98843f32c10Smrg coff-i386) 98943f32c10Smrg echo "${UNAME_MACHINE}-pc-linux-gnucoff" 99043f32c10Smrg exit ;; 99143f32c10Smrg "") 99243f32c10Smrg # Either a pre-BFD a.out linker (linux-gnuoldld) or 99343f32c10Smrg # one that does not give us useful --help. 99443f32c10Smrg echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 99543f32c10Smrg exit ;; 99643f32c10Smrg esac 99743f32c10Smrg # Determine whether the default compiler is a.out or elf 99843f32c10Smrg eval $set_cc_for_build 99943f32c10Smrg sed 's/^ //' << EOF >$dummy.c 100043f32c10Smrg #include <features.h> 100143f32c10Smrg #ifdef __ELF__ 100243f32c10Smrg # ifdef __GLIBC__ 100343f32c10Smrg # if __GLIBC__ >= 2 100443f32c10Smrg LIBC=gnu 100543f32c10Smrg # else 100643f32c10Smrg LIBC=gnulibc1 100743f32c10Smrg # endif 100843f32c10Smrg # else 100943f32c10Smrg LIBC=gnulibc1 101043f32c10Smrg # endif 101143f32c10Smrg #else 101243f32c10Smrg #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 101343f32c10Smrg LIBC=gnu 101443f32c10Smrg #else 101543f32c10Smrg LIBC=gnuaout 101643f32c10Smrg #endif 101743f32c10Smrg #endif 101843f32c10Smrg #ifdef __dietlibc__ 101943f32c10Smrg LIBC=dietlibc 102043f32c10Smrg #endif 102143f32c10SmrgEOF 102243f32c10Smrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 102343f32c10Smrg /^LIBC/{ 102443f32c10Smrg s: ::g 102543f32c10Smrg p 102643f32c10Smrg }'`" 102743f32c10Smrg test x"${LIBC}" != x && { 102843f32c10Smrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 102943f32c10Smrg exit 103043f32c10Smrg } 103143f32c10Smrg test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 103243f32c10Smrg ;; 103343f32c10Smrg i*86:DYNIX/ptx:4*:*) 103443f32c10Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 103543f32c10Smrg # earlier versions are messed up and put the nodename in both 103643f32c10Smrg # sysname and nodename. 103743f32c10Smrg echo i386-sequent-sysv4 103843f32c10Smrg exit ;; 103943f32c10Smrg i*86:UNIX_SV:4.2MP:2.*) 104043f32c10Smrg # Unixware is an offshoot of SVR4, but it has its own version 104143f32c10Smrg # number series starting with 2... 104243f32c10Smrg # I am not positive that other SVR4 systems won't match this, 104343f32c10Smrg # I just have to hope. -- rms. 104443f32c10Smrg # Use sysv4.2uw... so that sysv4* matches it. 104543f32c10Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 104643f32c10Smrg exit ;; 104743f32c10Smrg i*86:OS/2:*:*) 104843f32c10Smrg # If we were able to find `uname', then EMX Unix compatibility 104943f32c10Smrg # is probably installed. 105043f32c10Smrg echo ${UNAME_MACHINE}-pc-os2-emx 105143f32c10Smrg exit ;; 105243f32c10Smrg i*86:XTS-300:*:STOP) 105343f32c10Smrg echo ${UNAME_MACHINE}-unknown-stop 105443f32c10Smrg exit ;; 105543f32c10Smrg i*86:atheos:*:*) 105643f32c10Smrg echo ${UNAME_MACHINE}-unknown-atheos 105743f32c10Smrg exit ;; 105843f32c10Smrg i*86:syllable:*:*) 105943f32c10Smrg echo ${UNAME_MACHINE}-pc-syllable 106043f32c10Smrg exit ;; 106143f32c10Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 106243f32c10Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 106343f32c10Smrg exit ;; 106443f32c10Smrg i*86:*DOS:*:*) 106543f32c10Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 106643f32c10Smrg exit ;; 106743f32c10Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 106843f32c10Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 106943f32c10Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 107043f32c10Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 107143f32c10Smrg else 107243f32c10Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 107343f32c10Smrg fi 107443f32c10Smrg exit ;; 107543f32c10Smrg i*86:*:5:[678]*) 107643f32c10Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 107743f32c10Smrg case `/bin/uname -X | grep "^Machine"` in 107843f32c10Smrg *486*) UNAME_MACHINE=i486 ;; 107943f32c10Smrg *Pentium) UNAME_MACHINE=i586 ;; 108043f32c10Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 108143f32c10Smrg esac 108243f32c10Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 108343f32c10Smrg exit ;; 108443f32c10Smrg i*86:*:3.2:*) 108543f32c10Smrg if test -f /usr/options/cb.name; then 108643f32c10Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 108743f32c10Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 108843f32c10Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 108943f32c10Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 109043f32c10Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 109143f32c10Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 109243f32c10Smrg && UNAME_MACHINE=i586 109343f32c10Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 109443f32c10Smrg && UNAME_MACHINE=i686 109543f32c10Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 109643f32c10Smrg && UNAME_MACHINE=i686 109743f32c10Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 109843f32c10Smrg else 109943f32c10Smrg echo ${UNAME_MACHINE}-pc-sysv32 110043f32c10Smrg fi 110143f32c10Smrg exit ;; 110243f32c10Smrg pc:*:*:*) 110343f32c10Smrg # Left here for compatibility: 110443f32c10Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 110543f32c10Smrg # the processor, so we play safe by assuming i386. 110643f32c10Smrg echo i386-pc-msdosdjgpp 110743f32c10Smrg exit ;; 110843f32c10Smrg Intel:Mach:3*:*) 110943f32c10Smrg echo i386-pc-mach3 111043f32c10Smrg exit ;; 111143f32c10Smrg paragon:*:*:*) 111243f32c10Smrg echo i860-intel-osf1 111343f32c10Smrg exit ;; 111443f32c10Smrg i860:*:4.*:*) # i860-SVR4 111543f32c10Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 111643f32c10Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 111743f32c10Smrg else # Add other i860-SVR4 vendors below as they are discovered. 111843f32c10Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 111943f32c10Smrg fi 112043f32c10Smrg exit ;; 112143f32c10Smrg mini*:CTIX:SYS*5:*) 112243f32c10Smrg # "miniframe" 112343f32c10Smrg echo m68010-convergent-sysv 112443f32c10Smrg exit ;; 112543f32c10Smrg mc68k:UNIX:SYSTEM5:3.51m) 112643f32c10Smrg echo m68k-convergent-sysv 112743f32c10Smrg exit ;; 112843f32c10Smrg M680?0:D-NIX:5.3:*) 112943f32c10Smrg echo m68k-diab-dnix 113043f32c10Smrg exit ;; 113143f32c10Smrg M68*:*:R3V[5678]*:*) 113243f32c10Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 113343f32c10Smrg 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) 113443f32c10Smrg OS_REL='' 113543f32c10Smrg test -r /etc/.relid \ 113643f32c10Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 113743f32c10Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 113843f32c10Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 113943f32c10Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 114043f32c10Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 114143f32c10Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 114243f32c10Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114343f32c10Smrg && { echo i486-ncr-sysv4; exit; } ;; 114443f32c10Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 114543f32c10Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 114643f32c10Smrg exit ;; 114743f32c10Smrg mc68030:UNIX_System_V:4.*:*) 114843f32c10Smrg echo m68k-atari-sysv4 114943f32c10Smrg exit ;; 115043f32c10Smrg TSUNAMI:LynxOS:2.*:*) 115143f32c10Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 115243f32c10Smrg exit ;; 115343f32c10Smrg rs6000:LynxOS:2.*:*) 115443f32c10Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 115543f32c10Smrg exit ;; 115643f32c10Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 115743f32c10Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 115843f32c10Smrg exit ;; 115943f32c10Smrg SM[BE]S:UNIX_SV:*:*) 116043f32c10Smrg echo mips-dde-sysv${UNAME_RELEASE} 116143f32c10Smrg exit ;; 116243f32c10Smrg RM*:ReliantUNIX-*:*:*) 116343f32c10Smrg echo mips-sni-sysv4 116443f32c10Smrg exit ;; 116543f32c10Smrg RM*:SINIX-*:*:*) 116643f32c10Smrg echo mips-sni-sysv4 116743f32c10Smrg exit ;; 116843f32c10Smrg *:SINIX-*:*:*) 116943f32c10Smrg if uname -p 2>/dev/null >/dev/null ; then 117043f32c10Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 117143f32c10Smrg echo ${UNAME_MACHINE}-sni-sysv4 117243f32c10Smrg else 117343f32c10Smrg echo ns32k-sni-sysv 117443f32c10Smrg fi 117543f32c10Smrg exit ;; 117643f32c10Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 117743f32c10Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 117843f32c10Smrg echo i586-unisys-sysv4 117943f32c10Smrg exit ;; 118043f32c10Smrg *:UNIX_System_V:4*:FTX*) 118143f32c10Smrg # From Gerald Hewes <hewes@openmarket.com>. 118243f32c10Smrg # How about differentiating between stratus architectures? -djm 118343f32c10Smrg echo hppa1.1-stratus-sysv4 118443f32c10Smrg exit ;; 118543f32c10Smrg *:*:*:FTX*) 118643f32c10Smrg # From seanf@swdc.stratus.com. 118743f32c10Smrg echo i860-stratus-sysv4 118843f32c10Smrg exit ;; 118943f32c10Smrg i*86:VOS:*:*) 119043f32c10Smrg # From Paul.Green@stratus.com. 119143f32c10Smrg echo ${UNAME_MACHINE}-stratus-vos 119243f32c10Smrg exit ;; 119343f32c10Smrg *:VOS:*:*) 119443f32c10Smrg # From Paul.Green@stratus.com. 119543f32c10Smrg echo hppa1.1-stratus-vos 119643f32c10Smrg exit ;; 119743f32c10Smrg mc68*:A/UX:*:*) 119843f32c10Smrg echo m68k-apple-aux${UNAME_RELEASE} 119943f32c10Smrg exit ;; 120043f32c10Smrg news*:NEWS-OS:6*:*) 120143f32c10Smrg echo mips-sony-newsos6 120243f32c10Smrg exit ;; 120343f32c10Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 120443f32c10Smrg if [ -d /usr/nec ]; then 120543f32c10Smrg echo mips-nec-sysv${UNAME_RELEASE} 120643f32c10Smrg else 120743f32c10Smrg echo mips-unknown-sysv${UNAME_RELEASE} 120843f32c10Smrg fi 120943f32c10Smrg exit ;; 121043f32c10Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 121143f32c10Smrg echo powerpc-be-beos 121243f32c10Smrg exit ;; 121343f32c10Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 121443f32c10Smrg echo powerpc-apple-beos 121543f32c10Smrg exit ;; 121643f32c10Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 121743f32c10Smrg echo i586-pc-beos 121843f32c10Smrg exit ;; 121943f32c10Smrg SX-4:SUPER-UX:*:*) 122043f32c10Smrg echo sx4-nec-superux${UNAME_RELEASE} 122143f32c10Smrg exit ;; 122243f32c10Smrg SX-5:SUPER-UX:*:*) 122343f32c10Smrg echo sx5-nec-superux${UNAME_RELEASE} 122443f32c10Smrg exit ;; 122543f32c10Smrg SX-6:SUPER-UX:*:*) 122643f32c10Smrg echo sx6-nec-superux${UNAME_RELEASE} 122743f32c10Smrg exit ;; 122843f32c10Smrg SX-7:SUPER-UX:*:*) 122943f32c10Smrg echo sx7-nec-superux${UNAME_RELEASE} 123043f32c10Smrg exit ;; 123143f32c10Smrg SX-8:SUPER-UX:*:*) 123243f32c10Smrg echo sx8-nec-superux${UNAME_RELEASE} 123343f32c10Smrg exit ;; 123443f32c10Smrg SX-8R:SUPER-UX:*:*) 123543f32c10Smrg echo sx8r-nec-superux${UNAME_RELEASE} 123643f32c10Smrg exit ;; 123743f32c10Smrg Power*:Rhapsody:*:*) 123843f32c10Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 123943f32c10Smrg exit ;; 124043f32c10Smrg *:Rhapsody:*:*) 124143f32c10Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 124243f32c10Smrg exit ;; 124343f32c10Smrg *:Darwin:*:*) 124443f32c10Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 124543f32c10Smrg case $UNAME_PROCESSOR in 124643f32c10Smrg unknown) UNAME_PROCESSOR=powerpc ;; 124743f32c10Smrg esac 124843f32c10Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 124943f32c10Smrg exit ;; 125043f32c10Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 125143f32c10Smrg UNAME_PROCESSOR=`uname -p` 125243f32c10Smrg if test "$UNAME_PROCESSOR" = "x86"; then 125343f32c10Smrg UNAME_PROCESSOR=i386 125443f32c10Smrg UNAME_MACHINE=pc 125543f32c10Smrg fi 125643f32c10Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 125743f32c10Smrg exit ;; 125843f32c10Smrg *:QNX:*:4*) 125943f32c10Smrg echo i386-pc-qnx 126043f32c10Smrg exit ;; 126143f32c10Smrg NSE-?:NONSTOP_KERNEL:*:*) 126243f32c10Smrg echo nse-tandem-nsk${UNAME_RELEASE} 126343f32c10Smrg exit ;; 126443f32c10Smrg NSR-?:NONSTOP_KERNEL:*:*) 126543f32c10Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 126643f32c10Smrg exit ;; 126743f32c10Smrg *:NonStop-UX:*:*) 126843f32c10Smrg echo mips-compaq-nonstopux 126943f32c10Smrg exit ;; 127043f32c10Smrg BS2000:POSIX*:*:*) 127143f32c10Smrg echo bs2000-siemens-sysv 127243f32c10Smrg exit ;; 127343f32c10Smrg DS/*:UNIX_System_V:*:*) 127443f32c10Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 127543f32c10Smrg exit ;; 127643f32c10Smrg *:Plan9:*:*) 127743f32c10Smrg # "uname -m" is not consistent, so use $cputype instead. 386 127843f32c10Smrg # is converted to i386 for consistency with other x86 127943f32c10Smrg # operating systems. 128043f32c10Smrg if test "$cputype" = "386"; then 128143f32c10Smrg UNAME_MACHINE=i386 128243f32c10Smrg else 128343f32c10Smrg UNAME_MACHINE="$cputype" 128443f32c10Smrg fi 128543f32c10Smrg echo ${UNAME_MACHINE}-unknown-plan9 128643f32c10Smrg exit ;; 128743f32c10Smrg *:TOPS-10:*:*) 128843f32c10Smrg echo pdp10-unknown-tops10 128943f32c10Smrg exit ;; 129043f32c10Smrg *:TENEX:*:*) 129143f32c10Smrg echo pdp10-unknown-tenex 129243f32c10Smrg exit ;; 129343f32c10Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 129443f32c10Smrg echo pdp10-dec-tops20 129543f32c10Smrg exit ;; 129643f32c10Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 129743f32c10Smrg echo pdp10-xkl-tops20 129843f32c10Smrg exit ;; 129943f32c10Smrg *:TOPS-20:*:*) 130043f32c10Smrg echo pdp10-unknown-tops20 130143f32c10Smrg exit ;; 130243f32c10Smrg *:ITS:*:*) 130343f32c10Smrg echo pdp10-unknown-its 130443f32c10Smrg exit ;; 130543f32c10Smrg SEI:*:*:SEIUX) 130643f32c10Smrg echo mips-sei-seiux${UNAME_RELEASE} 130743f32c10Smrg exit ;; 130843f32c10Smrg *:DragonFly:*:*) 130943f32c10Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 131043f32c10Smrg exit ;; 131143f32c10Smrg *:*VMS:*:*) 131243f32c10Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 131343f32c10Smrg case "${UNAME_MACHINE}" in 131443f32c10Smrg A*) echo alpha-dec-vms ; exit ;; 131543f32c10Smrg I*) echo ia64-dec-vms ; exit ;; 131643f32c10Smrg V*) echo vax-dec-vms ; exit ;; 131743f32c10Smrg esac ;; 131843f32c10Smrg *:XENIX:*:SysV) 131943f32c10Smrg echo i386-pc-xenix 132043f32c10Smrg exit ;; 132143f32c10Smrg i*86:skyos:*:*) 132243f32c10Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 132343f32c10Smrg exit ;; 132443f32c10Smrg i*86:rdos:*:*) 132543f32c10Smrg echo ${UNAME_MACHINE}-pc-rdos 132643f32c10Smrg exit ;; 132743f32c10Smrgesac 132843f32c10Smrg 132943f32c10Smrg#echo '(No uname command or uname output not recognized.)' 1>&2 133043f32c10Smrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 133143f32c10Smrg 133243f32c10Smrgeval $set_cc_for_build 133343f32c10Smrgcat >$dummy.c <<EOF 133443f32c10Smrg#ifdef _SEQUENT_ 133543f32c10Smrg# include <sys/types.h> 133643f32c10Smrg# include <sys/utsname.h> 133743f32c10Smrg#endif 133843f32c10Smrgmain () 133943f32c10Smrg{ 134043f32c10Smrg#if defined (sony) 134143f32c10Smrg#if defined (MIPSEB) 134243f32c10Smrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 134343f32c10Smrg I don't know.... */ 134443f32c10Smrg printf ("mips-sony-bsd\n"); exit (0); 134543f32c10Smrg#else 134643f32c10Smrg#include <sys/param.h> 134743f32c10Smrg printf ("m68k-sony-newsos%s\n", 134843f32c10Smrg#ifdef NEWSOS4 134943f32c10Smrg "4" 135043f32c10Smrg#else 135143f32c10Smrg "" 135243f32c10Smrg#endif 135343f32c10Smrg ); exit (0); 135443f32c10Smrg#endif 135543f32c10Smrg#endif 135643f32c10Smrg 135743f32c10Smrg#if defined (__arm) && defined (__acorn) && defined (__unix) 135843f32c10Smrg printf ("arm-acorn-riscix\n"); exit (0); 135943f32c10Smrg#endif 136043f32c10Smrg 136143f32c10Smrg#if defined (hp300) && !defined (hpux) 136243f32c10Smrg printf ("m68k-hp-bsd\n"); exit (0); 136343f32c10Smrg#endif 136443f32c10Smrg 136543f32c10Smrg#if defined (NeXT) 136643f32c10Smrg#if !defined (__ARCHITECTURE__) 136743f32c10Smrg#define __ARCHITECTURE__ "m68k" 136843f32c10Smrg#endif 136943f32c10Smrg int version; 137043f32c10Smrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 137143f32c10Smrg if (version < 4) 137243f32c10Smrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 137343f32c10Smrg else 137443f32c10Smrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 137543f32c10Smrg exit (0); 137643f32c10Smrg#endif 137743f32c10Smrg 137843f32c10Smrg#if defined (MULTIMAX) || defined (n16) 137943f32c10Smrg#if defined (UMAXV) 138043f32c10Smrg printf ("ns32k-encore-sysv\n"); exit (0); 138143f32c10Smrg#else 138243f32c10Smrg#if defined (CMU) 138343f32c10Smrg printf ("ns32k-encore-mach\n"); exit (0); 138443f32c10Smrg#else 138543f32c10Smrg printf ("ns32k-encore-bsd\n"); exit (0); 138643f32c10Smrg#endif 138743f32c10Smrg#endif 138843f32c10Smrg#endif 138943f32c10Smrg 139043f32c10Smrg#if defined (__386BSD__) 139143f32c10Smrg printf ("i386-pc-bsd\n"); exit (0); 139243f32c10Smrg#endif 139343f32c10Smrg 139443f32c10Smrg#if defined (sequent) 139543f32c10Smrg#if defined (i386) 139643f32c10Smrg printf ("i386-sequent-dynix\n"); exit (0); 139743f32c10Smrg#endif 139843f32c10Smrg#if defined (ns32000) 139943f32c10Smrg printf ("ns32k-sequent-dynix\n"); exit (0); 140043f32c10Smrg#endif 140143f32c10Smrg#endif 140243f32c10Smrg 140343f32c10Smrg#if defined (_SEQUENT_) 140443f32c10Smrg struct utsname un; 140543f32c10Smrg 140643f32c10Smrg uname(&un); 140743f32c10Smrg 140843f32c10Smrg if (strncmp(un.version, "V2", 2) == 0) { 140943f32c10Smrg printf ("i386-sequent-ptx2\n"); exit (0); 141043f32c10Smrg } 141143f32c10Smrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 141243f32c10Smrg printf ("i386-sequent-ptx1\n"); exit (0); 141343f32c10Smrg } 141443f32c10Smrg printf ("i386-sequent-ptx\n"); exit (0); 141543f32c10Smrg 141643f32c10Smrg#endif 141743f32c10Smrg 141843f32c10Smrg#if defined (vax) 141943f32c10Smrg# if !defined (ultrix) 142043f32c10Smrg# include <sys/param.h> 142143f32c10Smrg# if defined (BSD) 142243f32c10Smrg# if BSD == 43 142343f32c10Smrg printf ("vax-dec-bsd4.3\n"); exit (0); 142443f32c10Smrg# else 142543f32c10Smrg# if BSD == 199006 142643f32c10Smrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 142743f32c10Smrg# else 142843f32c10Smrg printf ("vax-dec-bsd\n"); exit (0); 142943f32c10Smrg# endif 143043f32c10Smrg# endif 143143f32c10Smrg# else 143243f32c10Smrg printf ("vax-dec-bsd\n"); exit (0); 143343f32c10Smrg# endif 143443f32c10Smrg# else 143543f32c10Smrg printf ("vax-dec-ultrix\n"); exit (0); 143643f32c10Smrg# endif 143743f32c10Smrg#endif 143843f32c10Smrg 143943f32c10Smrg#if defined (alliant) && defined (i860) 144043f32c10Smrg printf ("i860-alliant-bsd\n"); exit (0); 144143f32c10Smrg#endif 144243f32c10Smrg 144343f32c10Smrg exit (1); 144443f32c10Smrg} 144543f32c10SmrgEOF 144643f32c10Smrg 144743f32c10Smrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 144843f32c10Smrg { echo "$SYSTEM_NAME"; exit; } 144943f32c10Smrg 145043f32c10Smrg# Apollos put the system type in the environment. 145143f32c10Smrg 145243f32c10Smrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 145343f32c10Smrg 145443f32c10Smrg# Convex versions that predate uname can use getsysinfo(1) 145543f32c10Smrg 145643f32c10Smrgif [ -x /usr/convex/getsysinfo ] 145743f32c10Smrgthen 145843f32c10Smrg case `getsysinfo -f cpu_type` in 145943f32c10Smrg c1*) 146043f32c10Smrg echo c1-convex-bsd 146143f32c10Smrg exit ;; 146243f32c10Smrg c2*) 146343f32c10Smrg if getsysinfo -f scalar_acc 146443f32c10Smrg then echo c32-convex-bsd 146543f32c10Smrg else echo c2-convex-bsd 146643f32c10Smrg fi 146743f32c10Smrg exit ;; 146843f32c10Smrg c34*) 146943f32c10Smrg echo c34-convex-bsd 147043f32c10Smrg exit ;; 147143f32c10Smrg c38*) 147243f32c10Smrg echo c38-convex-bsd 147343f32c10Smrg exit ;; 147443f32c10Smrg c4*) 147543f32c10Smrg echo c4-convex-bsd 147643f32c10Smrg exit ;; 147743f32c10Smrg esac 147843f32c10Smrgfi 147943f32c10Smrg 148043f32c10Smrgcat >&2 <<EOF 148143f32c10Smrg$0: unable to guess system type 148243f32c10Smrg 148343f32c10SmrgThis script, last modified $timestamp, has failed to recognize 148443f32c10Smrgthe operating system you are using. It is advised that you 148543f32c10Smrgdownload the most up to date version of the config scripts from 148643f32c10Smrg 148743f32c10Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 148843f32c10Smrgand 148943f32c10Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 149043f32c10Smrg 149143f32c10SmrgIf the version you run ($0) is already up to date, please 149243f32c10Smrgsend the following data and any information you think might be 149343f32c10Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 149443f32c10Smrginformation to handle your system. 149543f32c10Smrg 149643f32c10Smrgconfig.guess timestamp = $timestamp 149743f32c10Smrg 149843f32c10Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 149943f32c10Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 150043f32c10Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 150143f32c10Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 150243f32c10Smrg 150343f32c10Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 150443f32c10Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 150543f32c10Smrg 150643f32c10Smrghostinfo = `(hostinfo) 2>/dev/null` 150743f32c10Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 150843f32c10Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 150943f32c10Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 151043f32c10Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 151143f32c10Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 151243f32c10Smrg 151343f32c10SmrgUNAME_MACHINE = ${UNAME_MACHINE} 151443f32c10SmrgUNAME_RELEASE = ${UNAME_RELEASE} 151543f32c10SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 151643f32c10SmrgUNAME_VERSION = ${UNAME_VERSION} 151743f32c10SmrgEOF 151843f32c10Smrg 151943f32c10Smrgexit 1 152043f32c10Smrg 152143f32c10Smrg# Local variables: 152243f32c10Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 152343f32c10Smrg# time-stamp-start: "timestamp='" 152443f32c10Smrg# time-stamp-format: "%:y-%02m-%02d" 152543f32c10Smrg# time-stamp-end: "'" 152643f32c10Smrg# End: 1527