config.guess revision b68e1f86
16df26cacSmrg#! /bin/sh 26df26cacSmrg# Attempt to guess a canonical system name. 36df26cacSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4b68e1f86Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 5b68e1f86Smrg# Free Software Foundation, Inc. 66df26cacSmrg 7b68e1f86Smrgtimestamp='2008-01-23' 86df26cacSmrg 96df26cacSmrg# This file is free software; you can redistribute it and/or modify it 106df26cacSmrg# under the terms of the GNU General Public License as published by 116df26cacSmrg# the Free Software Foundation; either version 2 of the License, or 126df26cacSmrg# (at your option) any later version. 136df26cacSmrg# 146df26cacSmrg# This program is distributed in the hope that it will be useful, but 156df26cacSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 166df26cacSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 176df26cacSmrg# General Public License for more details. 186df26cacSmrg# 196df26cacSmrg# You should have received a copy of the GNU General Public License 206df26cacSmrg# along with this program; if not, write to the Free Software 216df26cacSmrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 226df26cacSmrg# 02110-1301, USA. 236df26cacSmrg# 246df26cacSmrg# As a special exception to the GNU General Public License, if you 256df26cacSmrg# distribute this file as part of a program that contains a 266df26cacSmrg# configuration script generated by Autoconf, you may include it under 276df26cacSmrg# the same distribution terms that you use for the rest of that program. 286df26cacSmrg 296df26cacSmrg 306df26cacSmrg# Originally written by Per Bothner <per@bothner.com>. 316df26cacSmrg# Please send patches to <config-patches@gnu.org>. Submit a context 326df26cacSmrg# diff and a properly formatted ChangeLog entry. 336df26cacSmrg# 346df26cacSmrg# This script attempts to guess a canonical system name similar to 356df26cacSmrg# config.sub. If it succeeds, it prints the system name on stdout, and 366df26cacSmrg# exits with 0. Otherwise, it exits with 1. 376df26cacSmrg# 386df26cacSmrg# The plan is that this can be called by configure scripts if you 396df26cacSmrg# don't specify an explicit build system type. 406df26cacSmrg 416df26cacSmrgme=`echo "$0" | sed -e 's,.*/,,'` 426df26cacSmrg 436df26cacSmrgusage="\ 446df26cacSmrgUsage: $0 [OPTION] 456df26cacSmrg 466df26cacSmrgOutput the configuration name of the system \`$me' is run on. 476df26cacSmrg 486df26cacSmrgOperation modes: 496df26cacSmrg -h, --help print this help, then exit 506df26cacSmrg -t, --time-stamp print date of last modification, then exit 516df26cacSmrg -v, --version print version number, then exit 526df26cacSmrg 536df26cacSmrgReport bugs and patches to <config-patches@gnu.org>." 546df26cacSmrg 556df26cacSmrgversion="\ 566df26cacSmrgGNU config.guess ($timestamp) 576df26cacSmrg 586df26cacSmrgOriginally written by Per Bothner. 59b68e1f86SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 60b68e1f86Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 616df26cacSmrg 626df26cacSmrgThis is free software; see the source for copying conditions. There is NO 636df26cacSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 646df26cacSmrg 656df26cacSmrghelp=" 666df26cacSmrgTry \`$me --help' for more information." 676df26cacSmrg 686df26cacSmrg# Parse command line 696df26cacSmrgwhile test $# -gt 0 ; do 706df26cacSmrg case $1 in 716df26cacSmrg --time-stamp | --time* | -t ) 726df26cacSmrg echo "$timestamp" ; exit ;; 736df26cacSmrg --version | -v ) 746df26cacSmrg echo "$version" ; exit ;; 756df26cacSmrg --help | --h* | -h ) 766df26cacSmrg echo "$usage"; exit ;; 776df26cacSmrg -- ) # Stop option processing 786df26cacSmrg shift; break ;; 796df26cacSmrg - ) # Use stdin as input. 806df26cacSmrg break ;; 816df26cacSmrg -* ) 826df26cacSmrg echo "$me: invalid option $1$help" >&2 836df26cacSmrg exit 1 ;; 846df26cacSmrg * ) 856df26cacSmrg break ;; 866df26cacSmrg esac 876df26cacSmrgdone 886df26cacSmrg 896df26cacSmrgif test $# != 0; then 906df26cacSmrg echo "$me: too many arguments$help" >&2 916df26cacSmrg exit 1 926df26cacSmrgfi 936df26cacSmrg 946df26cacSmrgtrap 'exit 1' 1 2 15 956df26cacSmrg 966df26cacSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 976df26cacSmrg# compiler to aid in system detection is discouraged as it requires 986df26cacSmrg# temporary files to be created and, as you can see below, it is a 996df26cacSmrg# headache to deal with in a portable fashion. 1006df26cacSmrg 1016df26cacSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 1026df26cacSmrg# use `HOST_CC' if defined, but it is deprecated. 1036df26cacSmrg 1046df26cacSmrg# Portable tmp directory creation inspired by the Autoconf team. 1056df26cacSmrg 1066df26cacSmrgset_cc_for_build=' 1076df26cacSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 1086df26cacSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1096df26cacSmrg: ${TMPDIR=/tmp} ; 1106df26cacSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1116df26cacSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1126df26cacSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1136df26cacSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1146df26cacSmrgdummy=$tmp/dummy ; 1156df26cacSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1166df26cacSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 1176df26cacSmrg ,,) echo "int x;" > $dummy.c ; 1186df26cacSmrg for c in cc gcc c89 c99 ; do 1196df26cacSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 1206df26cacSmrg CC_FOR_BUILD="$c"; break ; 1216df26cacSmrg fi ; 1226df26cacSmrg done ; 1236df26cacSmrg if test x"$CC_FOR_BUILD" = x ; then 1246df26cacSmrg CC_FOR_BUILD=no_compiler_found ; 1256df26cacSmrg fi 1266df26cacSmrg ;; 1276df26cacSmrg ,,*) CC_FOR_BUILD=$CC ;; 1286df26cacSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1296df26cacSmrgesac ; set_cc_for_build= ;' 1306df26cacSmrg 1316df26cacSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1326df26cacSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 1336df26cacSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1346df26cacSmrg PATH=$PATH:/.attbin ; export PATH 1356df26cacSmrgfi 1366df26cacSmrg 1376df26cacSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1386df26cacSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1396df26cacSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1406df26cacSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1416df26cacSmrg 1426df26cacSmrg# Note: order is significant - the case branches are not exclusive. 1436df26cacSmrg 1446df26cacSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 1456df26cacSmrg *:NetBSD:*:*) 1466df26cacSmrg # NetBSD (nbsd) targets should (where applicable) match one or 1476df26cacSmrg # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 1486df26cacSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1496df26cacSmrg # switched to ELF, *-*-netbsd* would select the old 1506df26cacSmrg # object file format. This provides both forward 1516df26cacSmrg # compatibility and a consistent mechanism for selecting the 1526df26cacSmrg # object file format. 1536df26cacSmrg # 1546df26cacSmrg # Note: NetBSD doesn't particularly care about the vendor 1556df26cacSmrg # portion of the name. We always set it to "unknown". 1566df26cacSmrg sysctl="sysctl -n hw.machine_arch" 1576df26cacSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 1586df26cacSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 1596df26cacSmrg case "${UNAME_MACHINE_ARCH}" in 1606df26cacSmrg armeb) machine=armeb-unknown ;; 1616df26cacSmrg arm*) machine=arm-unknown ;; 1626df26cacSmrg sh3el) machine=shl-unknown ;; 1636df26cacSmrg sh3eb) machine=sh-unknown ;; 16416fd1166Smrg sh5el) machine=sh5le-unknown ;; 1656df26cacSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 1666df26cacSmrg esac 1676df26cacSmrg # The Operating System including object format, if it has switched 1686df26cacSmrg # to ELF recently, or will in the future. 1696df26cacSmrg case "${UNAME_MACHINE_ARCH}" in 1706df26cacSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 1716df26cacSmrg eval $set_cc_for_build 1726df26cacSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 1736df26cacSmrg | grep __ELF__ >/dev/null 1746df26cacSmrg then 1756df26cacSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 1766df26cacSmrg # Return netbsd for either. FIX? 1776df26cacSmrg os=netbsd 1786df26cacSmrg else 1796df26cacSmrg os=netbsdelf 1806df26cacSmrg fi 1816df26cacSmrg ;; 1826df26cacSmrg *) 1836df26cacSmrg os=netbsd 1846df26cacSmrg ;; 1856df26cacSmrg esac 1866df26cacSmrg # The OS release 1876df26cacSmrg # Debian GNU/NetBSD machines have a different userland, and 1886df26cacSmrg # thus, need a distinct triplet. However, they do not need 1896df26cacSmrg # kernel version information, so it can be replaced with a 1906df26cacSmrg # suitable tag, in the style of linux-gnu. 1916df26cacSmrg case "${UNAME_VERSION}" in 1926df26cacSmrg Debian*) 1936df26cacSmrg release='-gnu' 1946df26cacSmrg ;; 1956df26cacSmrg *) 1966df26cacSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 1976df26cacSmrg ;; 1986df26cacSmrg esac 1996df26cacSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 2006df26cacSmrg # contains redundant information, the shorter form: 2016df26cacSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2026df26cacSmrg echo "${machine}-${os}${release}" 2036df26cacSmrg exit ;; 2046df26cacSmrg *:OpenBSD:*:*) 2056df26cacSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 2066df26cacSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 2076df26cacSmrg exit ;; 2086df26cacSmrg *:ekkoBSD:*:*) 2096df26cacSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 2106df26cacSmrg exit ;; 2116df26cacSmrg *:SolidBSD:*:*) 2126df26cacSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 2136df26cacSmrg exit ;; 2146df26cacSmrg macppc:MirBSD:*:*) 2156df26cacSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 2166df26cacSmrg exit ;; 2176df26cacSmrg *:MirBSD:*:*) 2186df26cacSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 2196df26cacSmrg exit ;; 2206df26cacSmrg alpha:OSF1:*:*) 2216df26cacSmrg case $UNAME_RELEASE in 2226df26cacSmrg *4.0) 2236df26cacSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2246df26cacSmrg ;; 2256df26cacSmrg *5.*) 2266df26cacSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2276df26cacSmrg ;; 2286df26cacSmrg esac 2296df26cacSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 2306df26cacSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2316df26cacSmrg # covers most systems running today. This code pipes the CPU 2326df26cacSmrg # types through head -n 1, so we only detect the type of CPU 0. 2336df26cacSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2346df26cacSmrg case "$ALPHA_CPU_TYPE" in 2356df26cacSmrg "EV4 (21064)") 2366df26cacSmrg UNAME_MACHINE="alpha" ;; 2376df26cacSmrg "EV4.5 (21064)") 2386df26cacSmrg UNAME_MACHINE="alpha" ;; 2396df26cacSmrg "LCA4 (21066/21068)") 2406df26cacSmrg UNAME_MACHINE="alpha" ;; 2416df26cacSmrg "EV5 (21164)") 2426df26cacSmrg UNAME_MACHINE="alphaev5" ;; 2436df26cacSmrg "EV5.6 (21164A)") 2446df26cacSmrg UNAME_MACHINE="alphaev56" ;; 2456df26cacSmrg "EV5.6 (21164PC)") 2466df26cacSmrg UNAME_MACHINE="alphapca56" ;; 2476df26cacSmrg "EV5.7 (21164PC)") 2486df26cacSmrg UNAME_MACHINE="alphapca57" ;; 2496df26cacSmrg "EV6 (21264)") 2506df26cacSmrg UNAME_MACHINE="alphaev6" ;; 2516df26cacSmrg "EV6.7 (21264A)") 2526df26cacSmrg UNAME_MACHINE="alphaev67" ;; 2536df26cacSmrg "EV6.8CB (21264C)") 2546df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2556df26cacSmrg "EV6.8AL (21264B)") 2566df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2576df26cacSmrg "EV6.8CX (21264D)") 2586df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2596df26cacSmrg "EV6.9A (21264/EV69A)") 2606df26cacSmrg UNAME_MACHINE="alphaev69" ;; 2616df26cacSmrg "EV7 (21364)") 2626df26cacSmrg UNAME_MACHINE="alphaev7" ;; 2636df26cacSmrg "EV7.9 (21364A)") 2646df26cacSmrg UNAME_MACHINE="alphaev79" ;; 2656df26cacSmrg esac 2666df26cacSmrg # A Pn.n version is a patched version. 2676df26cacSmrg # A Vn.n version is a released version. 2686df26cacSmrg # A Tn.n version is a released field test version. 2696df26cacSmrg # A Xn.n version is an unreleased experimental baselevel. 2706df26cacSmrg # 1.2 uses "1.2" for uname -r. 2716df26cacSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 2726df26cacSmrg exit ;; 2736df26cacSmrg Alpha\ *:Windows_NT*:*) 2746df26cacSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 2756df26cacSmrg # Should we change UNAME_MACHINE based on the output of uname instead 2766df26cacSmrg # of the specific Alpha model? 2776df26cacSmrg echo alpha-pc-interix 2786df26cacSmrg exit ;; 2796df26cacSmrg 21064:Windows_NT:50:3) 2806df26cacSmrg echo alpha-dec-winnt3.5 2816df26cacSmrg exit ;; 2826df26cacSmrg Amiga*:UNIX_System_V:4.0:*) 2836df26cacSmrg echo m68k-unknown-sysv4 2846df26cacSmrg exit ;; 2856df26cacSmrg *:[Aa]miga[Oo][Ss]:*:*) 2866df26cacSmrg echo ${UNAME_MACHINE}-unknown-amigaos 2876df26cacSmrg exit ;; 2886df26cacSmrg *:[Mm]orph[Oo][Ss]:*:*) 2896df26cacSmrg echo ${UNAME_MACHINE}-unknown-morphos 2906df26cacSmrg exit ;; 2916df26cacSmrg *:OS/390:*:*) 2926df26cacSmrg echo i370-ibm-openedition 2936df26cacSmrg exit ;; 2946df26cacSmrg *:z/VM:*:*) 2956df26cacSmrg echo s390-ibm-zvmoe 2966df26cacSmrg exit ;; 2976df26cacSmrg *:OS400:*:*) 2986df26cacSmrg echo powerpc-ibm-os400 2996df26cacSmrg exit ;; 3006df26cacSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 3016df26cacSmrg echo arm-acorn-riscix${UNAME_RELEASE} 3026df26cacSmrg exit ;; 3036df26cacSmrg arm:riscos:*:*|arm:RISCOS:*:*) 3046df26cacSmrg echo arm-unknown-riscos 3056df26cacSmrg exit ;; 3066df26cacSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3076df26cacSmrg echo hppa1.1-hitachi-hiuxmpp 3086df26cacSmrg exit ;; 3096df26cacSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3106df26cacSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3116df26cacSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3126df26cacSmrg echo pyramid-pyramid-sysv3 3136df26cacSmrg else 3146df26cacSmrg echo pyramid-pyramid-bsd 3156df26cacSmrg fi 3166df26cacSmrg exit ;; 3176df26cacSmrg NILE*:*:*:dcosx) 3186df26cacSmrg echo pyramid-pyramid-svr4 3196df26cacSmrg exit ;; 3206df26cacSmrg DRS?6000:unix:4.0:6*) 3216df26cacSmrg echo sparc-icl-nx6 3226df26cacSmrg exit ;; 3236df26cacSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3246df26cacSmrg case `/usr/bin/uname -p` in 3256df26cacSmrg sparc) echo sparc-icl-nx7; exit ;; 3266df26cacSmrg esac ;; 3276df26cacSmrg sun4H:SunOS:5.*:*) 3286df26cacSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3296df26cacSmrg exit ;; 3306df26cacSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 3316df26cacSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3326df26cacSmrg exit ;; 333b68e1f86Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 3346df26cacSmrg echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3356df26cacSmrg exit ;; 3366df26cacSmrg sun4*:SunOS:6*:*) 3376df26cacSmrg # According to config.sub, this is the proper way to canonicalize 3386df26cacSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 3396df26cacSmrg # it's likely to be more like Solaris than SunOS4. 3406df26cacSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3416df26cacSmrg exit ;; 3426df26cacSmrg sun4*:SunOS:*:*) 3436df26cacSmrg case "`/usr/bin/arch -k`" in 3446df26cacSmrg Series*|S4*) 3456df26cacSmrg UNAME_RELEASE=`uname -v` 3466df26cacSmrg ;; 3476df26cacSmrg esac 3486df26cacSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 3496df26cacSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 3506df26cacSmrg exit ;; 3516df26cacSmrg sun3*:SunOS:*:*) 3526df26cacSmrg echo m68k-sun-sunos${UNAME_RELEASE} 3536df26cacSmrg exit ;; 3546df26cacSmrg sun*:*:4.2BSD:*) 3556df26cacSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 3566df26cacSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 3576df26cacSmrg case "`/bin/arch`" in 3586df26cacSmrg sun3) 3596df26cacSmrg echo m68k-sun-sunos${UNAME_RELEASE} 3606df26cacSmrg ;; 3616df26cacSmrg sun4) 3626df26cacSmrg echo sparc-sun-sunos${UNAME_RELEASE} 3636df26cacSmrg ;; 3646df26cacSmrg esac 3656df26cacSmrg exit ;; 3666df26cacSmrg aushp:SunOS:*:*) 3676df26cacSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 3686df26cacSmrg exit ;; 3696df26cacSmrg # The situation for MiNT is a little confusing. The machine name 3706df26cacSmrg # can be virtually everything (everything which is not 3716df26cacSmrg # "atarist" or "atariste" at least should have a processor 3726df26cacSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 3736df26cacSmrg # to the lowercase version "mint" (or "freemint"). Finally 3746df26cacSmrg # the system name "TOS" denotes a system which is actually not 3756df26cacSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 3766df26cacSmrg # be no problem. 3776df26cacSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 3786df26cacSmrg echo m68k-atari-mint${UNAME_RELEASE} 3796df26cacSmrg exit ;; 3806df26cacSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 3816df26cacSmrg echo m68k-atari-mint${UNAME_RELEASE} 3826df26cacSmrg exit ;; 3836df26cacSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 3846df26cacSmrg echo m68k-atari-mint${UNAME_RELEASE} 3856df26cacSmrg exit ;; 3866df26cacSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 3876df26cacSmrg echo m68k-milan-mint${UNAME_RELEASE} 3886df26cacSmrg exit ;; 3896df26cacSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 3906df26cacSmrg echo m68k-hades-mint${UNAME_RELEASE} 3916df26cacSmrg exit ;; 3926df26cacSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 3936df26cacSmrg echo m68k-unknown-mint${UNAME_RELEASE} 3946df26cacSmrg exit ;; 3956df26cacSmrg m68k:machten:*:*) 3966df26cacSmrg echo m68k-apple-machten${UNAME_RELEASE} 3976df26cacSmrg exit ;; 3986df26cacSmrg powerpc:machten:*:*) 3996df26cacSmrg echo powerpc-apple-machten${UNAME_RELEASE} 4006df26cacSmrg exit ;; 4016df26cacSmrg RISC*:Mach:*:*) 4026df26cacSmrg echo mips-dec-mach_bsd4.3 4036df26cacSmrg exit ;; 4046df26cacSmrg RISC*:ULTRIX:*:*) 4056df26cacSmrg echo mips-dec-ultrix${UNAME_RELEASE} 4066df26cacSmrg exit ;; 4076df26cacSmrg VAX*:ULTRIX*:*:*) 4086df26cacSmrg echo vax-dec-ultrix${UNAME_RELEASE} 4096df26cacSmrg exit ;; 4106df26cacSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 4116df26cacSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 4126df26cacSmrg exit ;; 4136df26cacSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 4146df26cacSmrg eval $set_cc_for_build 4156df26cacSmrg sed 's/^ //' << EOF >$dummy.c 4166df26cacSmrg#ifdef __cplusplus 4176df26cacSmrg#include <stdio.h> /* for printf() prototype */ 4186df26cacSmrg int main (int argc, char *argv[]) { 4196df26cacSmrg#else 4206df26cacSmrg int main (argc, argv) int argc; char *argv[]; { 4216df26cacSmrg#endif 4226df26cacSmrg #if defined (host_mips) && defined (MIPSEB) 4236df26cacSmrg #if defined (SYSTYPE_SYSV) 4246df26cacSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 4256df26cacSmrg #endif 4266df26cacSmrg #if defined (SYSTYPE_SVR4) 4276df26cacSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 4286df26cacSmrg #endif 4296df26cacSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 4306df26cacSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 4316df26cacSmrg #endif 4326df26cacSmrg #endif 4336df26cacSmrg exit (-1); 4346df26cacSmrg } 4356df26cacSmrgEOF 4366df26cacSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 4376df26cacSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 4386df26cacSmrg SYSTEM_NAME=`$dummy $dummyarg` && 4396df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 4406df26cacSmrg echo mips-mips-riscos${UNAME_RELEASE} 4416df26cacSmrg exit ;; 4426df26cacSmrg Motorola:PowerMAX_OS:*:*) 4436df26cacSmrg echo powerpc-motorola-powermax 4446df26cacSmrg exit ;; 4456df26cacSmrg Motorola:*:4.3:PL8-*) 4466df26cacSmrg echo powerpc-harris-powermax 4476df26cacSmrg exit ;; 4486df26cacSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 4496df26cacSmrg echo powerpc-harris-powermax 4506df26cacSmrg exit ;; 4516df26cacSmrg Night_Hawk:Power_UNIX:*:*) 4526df26cacSmrg echo powerpc-harris-powerunix 4536df26cacSmrg exit ;; 4546df26cacSmrg m88k:CX/UX:7*:*) 4556df26cacSmrg echo m88k-harris-cxux7 4566df26cacSmrg exit ;; 4576df26cacSmrg m88k:*:4*:R4*) 4586df26cacSmrg echo m88k-motorola-sysv4 4596df26cacSmrg exit ;; 4606df26cacSmrg m88k:*:3*:R3*) 4616df26cacSmrg echo m88k-motorola-sysv3 4626df26cacSmrg exit ;; 4636df26cacSmrg AViiON:dgux:*:*) 4646df26cacSmrg # DG/UX returns AViiON for all architectures 4656df26cacSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 4666df26cacSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 4676df26cacSmrg then 4686df26cacSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 4696df26cacSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 4706df26cacSmrg then 4716df26cacSmrg echo m88k-dg-dgux${UNAME_RELEASE} 4726df26cacSmrg else 4736df26cacSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 4746df26cacSmrg fi 4756df26cacSmrg else 4766df26cacSmrg echo i586-dg-dgux${UNAME_RELEASE} 4776df26cacSmrg fi 4786df26cacSmrg exit ;; 4796df26cacSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 4806df26cacSmrg echo m88k-dolphin-sysv3 4816df26cacSmrg exit ;; 4826df26cacSmrg M88*:*:R3*:*) 4836df26cacSmrg # Delta 88k system running SVR3 4846df26cacSmrg echo m88k-motorola-sysv3 4856df26cacSmrg exit ;; 4866df26cacSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 4876df26cacSmrg echo m88k-tektronix-sysv3 4886df26cacSmrg exit ;; 4896df26cacSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 4906df26cacSmrg echo m68k-tektronix-bsd 4916df26cacSmrg exit ;; 4926df26cacSmrg *:IRIX*:*:*) 4936df26cacSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 4946df26cacSmrg exit ;; 4956df26cacSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 4966df26cacSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 4976df26cacSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 4986df26cacSmrg i*86:AIX:*:*) 4996df26cacSmrg echo i386-ibm-aix 5006df26cacSmrg exit ;; 5016df26cacSmrg ia64:AIX:*:*) 5026df26cacSmrg if [ -x /usr/bin/oslevel ] ; then 5036df26cacSmrg IBM_REV=`/usr/bin/oslevel` 5046df26cacSmrg else 5056df26cacSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5066df26cacSmrg fi 5076df26cacSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 5086df26cacSmrg exit ;; 5096df26cacSmrg *:AIX:2:3) 5106df26cacSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 5116df26cacSmrg eval $set_cc_for_build 5126df26cacSmrg sed 's/^ //' << EOF >$dummy.c 5136df26cacSmrg #include <sys/systemcfg.h> 5146df26cacSmrg 5156df26cacSmrg main() 5166df26cacSmrg { 5176df26cacSmrg if (!__power_pc()) 5186df26cacSmrg exit(1); 5196df26cacSmrg puts("powerpc-ibm-aix3.2.5"); 5206df26cacSmrg exit(0); 5216df26cacSmrg } 5226df26cacSmrgEOF 5236df26cacSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 5246df26cacSmrg then 5256df26cacSmrg echo "$SYSTEM_NAME" 5266df26cacSmrg else 5276df26cacSmrg echo rs6000-ibm-aix3.2.5 5286df26cacSmrg fi 5296df26cacSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 5306df26cacSmrg echo rs6000-ibm-aix3.2.4 5316df26cacSmrg else 5326df26cacSmrg echo rs6000-ibm-aix3.2 5336df26cacSmrg fi 5346df26cacSmrg exit ;; 535b68e1f86Smrg *:AIX:*:[456]) 5366df26cacSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 5376df26cacSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 5386df26cacSmrg IBM_ARCH=rs6000 5396df26cacSmrg else 5406df26cacSmrg IBM_ARCH=powerpc 5416df26cacSmrg fi 5426df26cacSmrg if [ -x /usr/bin/oslevel ] ; then 5436df26cacSmrg IBM_REV=`/usr/bin/oslevel` 5446df26cacSmrg else 5456df26cacSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5466df26cacSmrg fi 5476df26cacSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 5486df26cacSmrg exit ;; 5496df26cacSmrg *:AIX:*:*) 5506df26cacSmrg echo rs6000-ibm-aix 5516df26cacSmrg exit ;; 5526df26cacSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 5536df26cacSmrg echo romp-ibm-bsd4.4 5546df26cacSmrg exit ;; 5556df26cacSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 5566df26cacSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 5576df26cacSmrg exit ;; # report: romp-ibm BSD 4.3 5586df26cacSmrg *:BOSX:*:*) 5596df26cacSmrg echo rs6000-bull-bosx 5606df26cacSmrg exit ;; 5616df26cacSmrg DPX/2?00:B.O.S.:*:*) 5626df26cacSmrg echo m68k-bull-sysv3 5636df26cacSmrg exit ;; 5646df26cacSmrg 9000/[34]??:4.3bsd:1.*:*) 5656df26cacSmrg echo m68k-hp-bsd 5666df26cacSmrg exit ;; 5676df26cacSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 5686df26cacSmrg echo m68k-hp-bsd4.4 5696df26cacSmrg exit ;; 5706df26cacSmrg 9000/[34678]??:HP-UX:*:*) 5716df26cacSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 5726df26cacSmrg case "${UNAME_MACHINE}" in 5736df26cacSmrg 9000/31? ) HP_ARCH=m68000 ;; 5746df26cacSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 5756df26cacSmrg 9000/[678][0-9][0-9]) 5766df26cacSmrg if [ -x /usr/bin/getconf ]; then 5776df26cacSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 5786df26cacSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 5796df26cacSmrg case "${sc_cpu_version}" in 5806df26cacSmrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 5816df26cacSmrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 5826df26cacSmrg 532) # CPU_PA_RISC2_0 5836df26cacSmrg case "${sc_kernel_bits}" in 5846df26cacSmrg 32) HP_ARCH="hppa2.0n" ;; 5856df26cacSmrg 64) HP_ARCH="hppa2.0w" ;; 5866df26cacSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 5876df26cacSmrg esac ;; 5886df26cacSmrg esac 5896df26cacSmrg fi 5906df26cacSmrg if [ "${HP_ARCH}" = "" ]; then 5916df26cacSmrg eval $set_cc_for_build 5926df26cacSmrg sed 's/^ //' << EOF >$dummy.c 5936df26cacSmrg 5946df26cacSmrg #define _HPUX_SOURCE 5956df26cacSmrg #include <stdlib.h> 5966df26cacSmrg #include <unistd.h> 5976df26cacSmrg 5986df26cacSmrg int main () 5996df26cacSmrg { 6006df26cacSmrg #if defined(_SC_KERNEL_BITS) 6016df26cacSmrg long bits = sysconf(_SC_KERNEL_BITS); 6026df26cacSmrg #endif 6036df26cacSmrg long cpu = sysconf (_SC_CPU_VERSION); 6046df26cacSmrg 6056df26cacSmrg switch (cpu) 6066df26cacSmrg { 6076df26cacSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 6086df26cacSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 6096df26cacSmrg case CPU_PA_RISC2_0: 6106df26cacSmrg #if defined(_SC_KERNEL_BITS) 6116df26cacSmrg switch (bits) 6126df26cacSmrg { 6136df26cacSmrg case 64: puts ("hppa2.0w"); break; 6146df26cacSmrg case 32: puts ("hppa2.0n"); break; 6156df26cacSmrg default: puts ("hppa2.0"); break; 6166df26cacSmrg } break; 6176df26cacSmrg #else /* !defined(_SC_KERNEL_BITS) */ 6186df26cacSmrg puts ("hppa2.0"); break; 6196df26cacSmrg #endif 6206df26cacSmrg default: puts ("hppa1.0"); break; 6216df26cacSmrg } 6226df26cacSmrg exit (0); 6236df26cacSmrg } 6246df26cacSmrgEOF 6256df26cacSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 6266df26cacSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 6276df26cacSmrg fi ;; 6286df26cacSmrg esac 6296df26cacSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 6306df26cacSmrg then 6316df26cacSmrg eval $set_cc_for_build 6326df26cacSmrg 6336df26cacSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 6346df26cacSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 6356df26cacSmrg # generating 64-bit code. GNU and HP use different nomenclature: 6366df26cacSmrg # 6376df26cacSmrg # $ CC_FOR_BUILD=cc ./config.guess 6386df26cacSmrg # => hppa2.0w-hp-hpux11.23 6396df26cacSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 6406df26cacSmrg # => hppa64-hp-hpux11.23 6416df26cacSmrg 6426df26cacSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 6436df26cacSmrg grep __LP64__ >/dev/null 6446df26cacSmrg then 6456df26cacSmrg HP_ARCH="hppa2.0w" 6466df26cacSmrg else 6476df26cacSmrg HP_ARCH="hppa64" 6486df26cacSmrg fi 6496df26cacSmrg fi 6506df26cacSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 6516df26cacSmrg exit ;; 6526df26cacSmrg ia64:HP-UX:*:*) 6536df26cacSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6546df26cacSmrg echo ia64-hp-hpux${HPUX_REV} 6556df26cacSmrg exit ;; 6566df26cacSmrg 3050*:HI-UX:*:*) 6576df26cacSmrg eval $set_cc_for_build 6586df26cacSmrg sed 's/^ //' << EOF >$dummy.c 6596df26cacSmrg #include <unistd.h> 6606df26cacSmrg int 6616df26cacSmrg main () 6626df26cacSmrg { 6636df26cacSmrg long cpu = sysconf (_SC_CPU_VERSION); 6646df26cacSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 6656df26cacSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 6666df26cacSmrg results, however. */ 6676df26cacSmrg if (CPU_IS_PA_RISC (cpu)) 6686df26cacSmrg { 6696df26cacSmrg switch (cpu) 6706df26cacSmrg { 6716df26cacSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 6726df26cacSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 6736df26cacSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 6746df26cacSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 6756df26cacSmrg } 6766df26cacSmrg } 6776df26cacSmrg else if (CPU_IS_HP_MC68K (cpu)) 6786df26cacSmrg puts ("m68k-hitachi-hiuxwe2"); 6796df26cacSmrg else puts ("unknown-hitachi-hiuxwe2"); 6806df26cacSmrg exit (0); 6816df26cacSmrg } 6826df26cacSmrgEOF 6836df26cacSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 6846df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 6856df26cacSmrg echo unknown-hitachi-hiuxwe2 6866df26cacSmrg exit ;; 6876df26cacSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 6886df26cacSmrg echo hppa1.1-hp-bsd 6896df26cacSmrg exit ;; 6906df26cacSmrg 9000/8??:4.3bsd:*:*) 6916df26cacSmrg echo hppa1.0-hp-bsd 6926df26cacSmrg exit ;; 6936df26cacSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 6946df26cacSmrg echo hppa1.0-hp-mpeix 6956df26cacSmrg exit ;; 6966df26cacSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 6976df26cacSmrg echo hppa1.1-hp-osf 6986df26cacSmrg exit ;; 6996df26cacSmrg hp8??:OSF1:*:*) 7006df26cacSmrg echo hppa1.0-hp-osf 7016df26cacSmrg exit ;; 7026df26cacSmrg i*86:OSF1:*:*) 7036df26cacSmrg if [ -x /usr/sbin/sysversion ] ; then 7046df26cacSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 7056df26cacSmrg else 7066df26cacSmrg echo ${UNAME_MACHINE}-unknown-osf1 7076df26cacSmrg fi 7086df26cacSmrg exit ;; 7096df26cacSmrg parisc*:Lites*:*:*) 7106df26cacSmrg echo hppa1.1-hp-lites 7116df26cacSmrg exit ;; 7126df26cacSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7136df26cacSmrg echo c1-convex-bsd 7146df26cacSmrg exit ;; 7156df26cacSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7166df26cacSmrg if getsysinfo -f scalar_acc 7176df26cacSmrg then echo c32-convex-bsd 7186df26cacSmrg else echo c2-convex-bsd 7196df26cacSmrg fi 7206df26cacSmrg exit ;; 7216df26cacSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7226df26cacSmrg echo c34-convex-bsd 7236df26cacSmrg exit ;; 7246df26cacSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7256df26cacSmrg echo c38-convex-bsd 7266df26cacSmrg exit ;; 7276df26cacSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 7286df26cacSmrg echo c4-convex-bsd 7296df26cacSmrg exit ;; 7306df26cacSmrg CRAY*Y-MP:*:*:*) 7316df26cacSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7326df26cacSmrg exit ;; 7336df26cacSmrg CRAY*[A-Z]90:*:*:*) 7346df26cacSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 7356df26cacSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 7366df26cacSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 7376df26cacSmrg -e 's/\.[^.]*$/.X/' 7386df26cacSmrg exit ;; 7396df26cacSmrg CRAY*TS:*:*:*) 7406df26cacSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7416df26cacSmrg exit ;; 7426df26cacSmrg CRAY*T3E:*:*:*) 7436df26cacSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7446df26cacSmrg exit ;; 7456df26cacSmrg CRAY*SV1:*:*:*) 7466df26cacSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7476df26cacSmrg exit ;; 7486df26cacSmrg *:UNICOS/mp:*:*) 7496df26cacSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7506df26cacSmrg exit ;; 7516df26cacSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 7526df26cacSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7536df26cacSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7546df26cacSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 7556df26cacSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7566df26cacSmrg exit ;; 7576df26cacSmrg 5000:UNIX_System_V:4.*:*) 7586df26cacSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7596df26cacSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 7606df26cacSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7616df26cacSmrg exit ;; 7626df26cacSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 7636df26cacSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 7646df26cacSmrg exit ;; 7656df26cacSmrg sparc*:BSD/OS:*:*) 7666df26cacSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 7676df26cacSmrg exit ;; 7686df26cacSmrg *:BSD/OS:*:*) 7696df26cacSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 7706df26cacSmrg exit ;; 7716df26cacSmrg *:FreeBSD:*:*) 7726df26cacSmrg case ${UNAME_MACHINE} in 7736df26cacSmrg pc98) 7746df26cacSmrg echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7756df26cacSmrg amd64) 7766df26cacSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7776df26cacSmrg *) 7786df26cacSmrg echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7796df26cacSmrg esac 7806df26cacSmrg exit ;; 7816df26cacSmrg i*:CYGWIN*:*) 7826df26cacSmrg echo ${UNAME_MACHINE}-pc-cygwin 7836df26cacSmrg exit ;; 78416fd1166Smrg *:MINGW*:*) 7856df26cacSmrg echo ${UNAME_MACHINE}-pc-mingw32 7866df26cacSmrg exit ;; 7876df26cacSmrg i*:windows32*:*) 7886df26cacSmrg # uname -m includes "-pc" on this system. 7896df26cacSmrg echo ${UNAME_MACHINE}-mingw32 7906df26cacSmrg exit ;; 7916df26cacSmrg i*:PW*:*) 7926df26cacSmrg echo ${UNAME_MACHINE}-pc-pw32 7936df26cacSmrg exit ;; 79416fd1166Smrg *:Interix*:[3456]*) 79516fd1166Smrg case ${UNAME_MACHINE} in 796b68e1f86Smrg x86) 79716fd1166Smrg echo i586-pc-interix${UNAME_RELEASE} 79816fd1166Smrg exit ;; 79916fd1166Smrg EM64T | authenticamd) 80016fd1166Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 80116fd1166Smrg exit ;; 802b68e1f86Smrg IA64) 803b68e1f86Smrg echo ia64-unknown-interix${UNAME_RELEASE} 804b68e1f86Smrg exit ;; 80516fd1166Smrg esac ;; 8066df26cacSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 8076df26cacSmrg echo i${UNAME_MACHINE}-pc-mks 8086df26cacSmrg exit ;; 8096df26cacSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 8106df26cacSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 8116df26cacSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 8126df26cacSmrg # UNAME_MACHINE based on the output of uname instead of i386? 8136df26cacSmrg echo i586-pc-interix 8146df26cacSmrg exit ;; 8156df26cacSmrg i*:UWIN*:*) 8166df26cacSmrg echo ${UNAME_MACHINE}-pc-uwin 8176df26cacSmrg exit ;; 8186df26cacSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8196df26cacSmrg echo x86_64-unknown-cygwin 8206df26cacSmrg exit ;; 8216df26cacSmrg p*:CYGWIN*:*) 8226df26cacSmrg echo powerpcle-unknown-cygwin 8236df26cacSmrg exit ;; 8246df26cacSmrg prep*:SunOS:5.*:*) 8256df26cacSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 8266df26cacSmrg exit ;; 8276df26cacSmrg *:GNU:*:*) 8286df26cacSmrg # the GNU system 8296df26cacSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 8306df26cacSmrg exit ;; 8316df26cacSmrg *:GNU/*:*:*) 8326df26cacSmrg # other systems with GNU libc and userland 8336df26cacSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 8346df26cacSmrg exit ;; 8356df26cacSmrg i*86:Minix:*:*) 8366df26cacSmrg echo ${UNAME_MACHINE}-pc-minix 8376df26cacSmrg exit ;; 8386df26cacSmrg arm*:Linux:*:*) 839b68e1f86Smrg eval $set_cc_for_build 840b68e1f86Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 841b68e1f86Smrg | grep -q __ARM_EABI__ 842b68e1f86Smrg then 843b68e1f86Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 844b68e1f86Smrg else 845b68e1f86Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 846b68e1f86Smrg fi 8476df26cacSmrg exit ;; 8486df26cacSmrg avr32*:Linux:*:*) 8496df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8506df26cacSmrg exit ;; 8516df26cacSmrg cris:Linux:*:*) 8526df26cacSmrg echo cris-axis-linux-gnu 8536df26cacSmrg exit ;; 8546df26cacSmrg crisv32:Linux:*:*) 8556df26cacSmrg echo crisv32-axis-linux-gnu 8566df26cacSmrg exit ;; 8576df26cacSmrg frv:Linux:*:*) 8586df26cacSmrg echo frv-unknown-linux-gnu 8596df26cacSmrg exit ;; 8606df26cacSmrg ia64:Linux:*:*) 8616df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8626df26cacSmrg exit ;; 8636df26cacSmrg m32r*:Linux:*:*) 8646df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8656df26cacSmrg exit ;; 8666df26cacSmrg m68*:Linux:*:*) 8676df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8686df26cacSmrg exit ;; 8696df26cacSmrg mips:Linux:*:*) 8706df26cacSmrg eval $set_cc_for_build 8716df26cacSmrg sed 's/^ //' << EOF >$dummy.c 8726df26cacSmrg #undef CPU 8736df26cacSmrg #undef mips 8746df26cacSmrg #undef mipsel 8756df26cacSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 8766df26cacSmrg CPU=mipsel 8776df26cacSmrg #else 8786df26cacSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 8796df26cacSmrg CPU=mips 8806df26cacSmrg #else 8816df26cacSmrg CPU= 8826df26cacSmrg #endif 8836df26cacSmrg #endif 8846df26cacSmrgEOF 8856df26cacSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 8866df26cacSmrg /^CPU/{ 8876df26cacSmrg s: ::g 8886df26cacSmrg p 8896df26cacSmrg }'`" 8906df26cacSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 8916df26cacSmrg ;; 8926df26cacSmrg mips64:Linux:*:*) 8936df26cacSmrg eval $set_cc_for_build 8946df26cacSmrg sed 's/^ //' << EOF >$dummy.c 8956df26cacSmrg #undef CPU 8966df26cacSmrg #undef mips64 8976df26cacSmrg #undef mips64el 8986df26cacSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 8996df26cacSmrg CPU=mips64el 9006df26cacSmrg #else 9016df26cacSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 9026df26cacSmrg CPU=mips64 9036df26cacSmrg #else 9046df26cacSmrg CPU= 9056df26cacSmrg #endif 9066df26cacSmrg #endif 9076df26cacSmrgEOF 9086df26cacSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 9096df26cacSmrg /^CPU/{ 9106df26cacSmrg s: ::g 9116df26cacSmrg p 9126df26cacSmrg }'`" 9136df26cacSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 9146df26cacSmrg ;; 9156df26cacSmrg or32:Linux:*:*) 9166df26cacSmrg echo or32-unknown-linux-gnu 9176df26cacSmrg exit ;; 9186df26cacSmrg ppc:Linux:*:*) 9196df26cacSmrg echo powerpc-unknown-linux-gnu 9206df26cacSmrg exit ;; 9216df26cacSmrg ppc64:Linux:*:*) 9226df26cacSmrg echo powerpc64-unknown-linux-gnu 9236df26cacSmrg exit ;; 9246df26cacSmrg alpha:Linux:*:*) 9256df26cacSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 9266df26cacSmrg EV5) UNAME_MACHINE=alphaev5 ;; 9276df26cacSmrg EV56) UNAME_MACHINE=alphaev56 ;; 9286df26cacSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 9296df26cacSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 9306df26cacSmrg EV6) UNAME_MACHINE=alphaev6 ;; 9316df26cacSmrg EV67) UNAME_MACHINE=alphaev67 ;; 9326df26cacSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 9336df26cacSmrg esac 9346df26cacSmrg objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 9356df26cacSmrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 9366df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 9376df26cacSmrg exit ;; 9386df26cacSmrg parisc:Linux:*:* | hppa:Linux:*:*) 9396df26cacSmrg # Look for CPU level 9406df26cacSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 9416df26cacSmrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 9426df26cacSmrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 9436df26cacSmrg *) echo hppa-unknown-linux-gnu ;; 9446df26cacSmrg esac 9456df26cacSmrg exit ;; 9466df26cacSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 9476df26cacSmrg echo hppa64-unknown-linux-gnu 9486df26cacSmrg exit ;; 9496df26cacSmrg s390:Linux:*:* | s390x:Linux:*:*) 9506df26cacSmrg echo ${UNAME_MACHINE}-ibm-linux 9516df26cacSmrg exit ;; 9526df26cacSmrg sh64*:Linux:*:*) 9536df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9546df26cacSmrg exit ;; 9556df26cacSmrg sh*:Linux:*:*) 9566df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9576df26cacSmrg exit ;; 9586df26cacSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 9596df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9606df26cacSmrg exit ;; 9616df26cacSmrg vax:Linux:*:*) 9626df26cacSmrg echo ${UNAME_MACHINE}-dec-linux-gnu 9636df26cacSmrg exit ;; 9646df26cacSmrg x86_64:Linux:*:*) 9656df26cacSmrg echo x86_64-unknown-linux-gnu 9666df26cacSmrg exit ;; 967b68e1f86Smrg xtensa*:Linux:*:*) 968b68e1f86Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 96916fd1166Smrg exit ;; 9706df26cacSmrg i*86:Linux:*:*) 9716df26cacSmrg # The BFD linker knows what the default object file format is, so 9726df26cacSmrg # first see if it will tell us. cd to the root directory to prevent 9736df26cacSmrg # problems with other programs or directories called `ld' in the path. 9746df26cacSmrg # Set LC_ALL=C to ensure ld outputs messages in English. 9756df26cacSmrg ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 9766df26cacSmrg | sed -ne '/supported targets:/!d 9776df26cacSmrg s/[ ][ ]*/ /g 9786df26cacSmrg s/.*supported targets: *// 9796df26cacSmrg s/ .*// 9806df26cacSmrg p'` 9816df26cacSmrg case "$ld_supported_targets" in 9826df26cacSmrg elf32-i386) 9836df26cacSmrg TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 9846df26cacSmrg ;; 9856df26cacSmrg a.out-i386-linux) 9866df26cacSmrg echo "${UNAME_MACHINE}-pc-linux-gnuaout" 9876df26cacSmrg exit ;; 9886df26cacSmrg coff-i386) 9896df26cacSmrg echo "${UNAME_MACHINE}-pc-linux-gnucoff" 9906df26cacSmrg exit ;; 9916df26cacSmrg "") 9926df26cacSmrg # Either a pre-BFD a.out linker (linux-gnuoldld) or 9936df26cacSmrg # one that does not give us useful --help. 9946df26cacSmrg echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 9956df26cacSmrg exit ;; 9966df26cacSmrg esac 9976df26cacSmrg # Determine whether the default compiler is a.out or elf 9986df26cacSmrg eval $set_cc_for_build 9996df26cacSmrg sed 's/^ //' << EOF >$dummy.c 10006df26cacSmrg #include <features.h> 10016df26cacSmrg #ifdef __ELF__ 10026df26cacSmrg # ifdef __GLIBC__ 10036df26cacSmrg # if __GLIBC__ >= 2 10046df26cacSmrg LIBC=gnu 10056df26cacSmrg # else 10066df26cacSmrg LIBC=gnulibc1 10076df26cacSmrg # endif 10086df26cacSmrg # else 10096df26cacSmrg LIBC=gnulibc1 10106df26cacSmrg # endif 10116df26cacSmrg #else 10126df26cacSmrg #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 10136df26cacSmrg LIBC=gnu 10146df26cacSmrg #else 10156df26cacSmrg LIBC=gnuaout 10166df26cacSmrg #endif 10176df26cacSmrg #endif 10186df26cacSmrg #ifdef __dietlibc__ 10196df26cacSmrg LIBC=dietlibc 10206df26cacSmrg #endif 10216df26cacSmrgEOF 10226df26cacSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 10236df26cacSmrg /^LIBC/{ 10246df26cacSmrg s: ::g 10256df26cacSmrg p 10266df26cacSmrg }'`" 10276df26cacSmrg test x"${LIBC}" != x && { 10286df26cacSmrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 10296df26cacSmrg exit 10306df26cacSmrg } 10316df26cacSmrg test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 10326df26cacSmrg ;; 10336df26cacSmrg i*86:DYNIX/ptx:4*:*) 10346df26cacSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10356df26cacSmrg # earlier versions are messed up and put the nodename in both 10366df26cacSmrg # sysname and nodename. 10376df26cacSmrg echo i386-sequent-sysv4 10386df26cacSmrg exit ;; 10396df26cacSmrg i*86:UNIX_SV:4.2MP:2.*) 10406df26cacSmrg # Unixware is an offshoot of SVR4, but it has its own version 10416df26cacSmrg # number series starting with 2... 10426df26cacSmrg # I am not positive that other SVR4 systems won't match this, 10436df26cacSmrg # I just have to hope. -- rms. 10446df26cacSmrg # Use sysv4.2uw... so that sysv4* matches it. 10456df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 10466df26cacSmrg exit ;; 10476df26cacSmrg i*86:OS/2:*:*) 10486df26cacSmrg # If we were able to find `uname', then EMX Unix compatibility 10496df26cacSmrg # is probably installed. 10506df26cacSmrg echo ${UNAME_MACHINE}-pc-os2-emx 10516df26cacSmrg exit ;; 10526df26cacSmrg i*86:XTS-300:*:STOP) 10536df26cacSmrg echo ${UNAME_MACHINE}-unknown-stop 10546df26cacSmrg exit ;; 10556df26cacSmrg i*86:atheos:*:*) 10566df26cacSmrg echo ${UNAME_MACHINE}-unknown-atheos 10576df26cacSmrg exit ;; 10586df26cacSmrg i*86:syllable:*:*) 10596df26cacSmrg echo ${UNAME_MACHINE}-pc-syllable 10606df26cacSmrg exit ;; 10616df26cacSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 10626df26cacSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 10636df26cacSmrg exit ;; 10646df26cacSmrg i*86:*DOS:*:*) 10656df26cacSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 10666df26cacSmrg exit ;; 10676df26cacSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 10686df26cacSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 10696df26cacSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 10706df26cacSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 10716df26cacSmrg else 10726df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 10736df26cacSmrg fi 10746df26cacSmrg exit ;; 10756df26cacSmrg i*86:*:5:[678]*) 10766df26cacSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10776df26cacSmrg case `/bin/uname -X | grep "^Machine"` in 10786df26cacSmrg *486*) UNAME_MACHINE=i486 ;; 10796df26cacSmrg *Pentium) UNAME_MACHINE=i586 ;; 10806df26cacSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 10816df26cacSmrg esac 10826df26cacSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 10836df26cacSmrg exit ;; 10846df26cacSmrg i*86:*:3.2:*) 10856df26cacSmrg if test -f /usr/options/cb.name; then 10866df26cacSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 10876df26cacSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 10886df26cacSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 10896df26cacSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 10906df26cacSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 10916df26cacSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 10926df26cacSmrg && UNAME_MACHINE=i586 10936df26cacSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 10946df26cacSmrg && UNAME_MACHINE=i686 10956df26cacSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 10966df26cacSmrg && UNAME_MACHINE=i686 10976df26cacSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 10986df26cacSmrg else 10996df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv32 11006df26cacSmrg fi 11016df26cacSmrg exit ;; 11026df26cacSmrg pc:*:*:*) 11036df26cacSmrg # Left here for compatibility: 11046df26cacSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 11056df26cacSmrg # the processor, so we play safe by assuming i386. 11066df26cacSmrg echo i386-pc-msdosdjgpp 11076df26cacSmrg exit ;; 11086df26cacSmrg Intel:Mach:3*:*) 11096df26cacSmrg echo i386-pc-mach3 11106df26cacSmrg exit ;; 11116df26cacSmrg paragon:*:*:*) 11126df26cacSmrg echo i860-intel-osf1 11136df26cacSmrg exit ;; 11146df26cacSmrg i860:*:4.*:*) # i860-SVR4 11156df26cacSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 11166df26cacSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 11176df26cacSmrg else # Add other i860-SVR4 vendors below as they are discovered. 11186df26cacSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 11196df26cacSmrg fi 11206df26cacSmrg exit ;; 11216df26cacSmrg mini*:CTIX:SYS*5:*) 11226df26cacSmrg # "miniframe" 11236df26cacSmrg echo m68010-convergent-sysv 11246df26cacSmrg exit ;; 11256df26cacSmrg mc68k:UNIX:SYSTEM5:3.51m) 11266df26cacSmrg echo m68k-convergent-sysv 11276df26cacSmrg exit ;; 11286df26cacSmrg M680?0:D-NIX:5.3:*) 11296df26cacSmrg echo m68k-diab-dnix 11306df26cacSmrg exit ;; 11316df26cacSmrg M68*:*:R3V[5678]*:*) 11326df26cacSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11336df26cacSmrg 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) 11346df26cacSmrg OS_REL='' 11356df26cacSmrg test -r /etc/.relid \ 11366df26cacSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11376df26cacSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11386df26cacSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11396df26cacSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11406df26cacSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11416df26cacSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 11426df26cacSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11436df26cacSmrg && { echo i486-ncr-sysv4; exit; } ;; 11446df26cacSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 11456df26cacSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 11466df26cacSmrg exit ;; 11476df26cacSmrg mc68030:UNIX_System_V:4.*:*) 11486df26cacSmrg echo m68k-atari-sysv4 11496df26cacSmrg exit ;; 11506df26cacSmrg TSUNAMI:LynxOS:2.*:*) 11516df26cacSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 11526df26cacSmrg exit ;; 11536df26cacSmrg rs6000:LynxOS:2.*:*) 11546df26cacSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 11556df26cacSmrg exit ;; 11566df26cacSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 11576df26cacSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 11586df26cacSmrg exit ;; 11596df26cacSmrg SM[BE]S:UNIX_SV:*:*) 11606df26cacSmrg echo mips-dde-sysv${UNAME_RELEASE} 11616df26cacSmrg exit ;; 11626df26cacSmrg RM*:ReliantUNIX-*:*:*) 11636df26cacSmrg echo mips-sni-sysv4 11646df26cacSmrg exit ;; 11656df26cacSmrg RM*:SINIX-*:*:*) 11666df26cacSmrg echo mips-sni-sysv4 11676df26cacSmrg exit ;; 11686df26cacSmrg *:SINIX-*:*:*) 11696df26cacSmrg if uname -p 2>/dev/null >/dev/null ; then 11706df26cacSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 11716df26cacSmrg echo ${UNAME_MACHINE}-sni-sysv4 11726df26cacSmrg else 11736df26cacSmrg echo ns32k-sni-sysv 11746df26cacSmrg fi 11756df26cacSmrg exit ;; 11766df26cacSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 11776df26cacSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 11786df26cacSmrg echo i586-unisys-sysv4 11796df26cacSmrg exit ;; 11806df26cacSmrg *:UNIX_System_V:4*:FTX*) 11816df26cacSmrg # From Gerald Hewes <hewes@openmarket.com>. 11826df26cacSmrg # How about differentiating between stratus architectures? -djm 11836df26cacSmrg echo hppa1.1-stratus-sysv4 11846df26cacSmrg exit ;; 11856df26cacSmrg *:*:*:FTX*) 11866df26cacSmrg # From seanf@swdc.stratus.com. 11876df26cacSmrg echo i860-stratus-sysv4 11886df26cacSmrg exit ;; 11896df26cacSmrg i*86:VOS:*:*) 11906df26cacSmrg # From Paul.Green@stratus.com. 11916df26cacSmrg echo ${UNAME_MACHINE}-stratus-vos 11926df26cacSmrg exit ;; 11936df26cacSmrg *:VOS:*:*) 11946df26cacSmrg # From Paul.Green@stratus.com. 11956df26cacSmrg echo hppa1.1-stratus-vos 11966df26cacSmrg exit ;; 11976df26cacSmrg mc68*:A/UX:*:*) 11986df26cacSmrg echo m68k-apple-aux${UNAME_RELEASE} 11996df26cacSmrg exit ;; 12006df26cacSmrg news*:NEWS-OS:6*:*) 12016df26cacSmrg echo mips-sony-newsos6 12026df26cacSmrg exit ;; 12036df26cacSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12046df26cacSmrg if [ -d /usr/nec ]; then 12056df26cacSmrg echo mips-nec-sysv${UNAME_RELEASE} 12066df26cacSmrg else 12076df26cacSmrg echo mips-unknown-sysv${UNAME_RELEASE} 12086df26cacSmrg fi 12096df26cacSmrg exit ;; 12106df26cacSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12116df26cacSmrg echo powerpc-be-beos 12126df26cacSmrg exit ;; 12136df26cacSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12146df26cacSmrg echo powerpc-apple-beos 12156df26cacSmrg exit ;; 12166df26cacSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12176df26cacSmrg echo i586-pc-beos 12186df26cacSmrg exit ;; 12196df26cacSmrg SX-4:SUPER-UX:*:*) 12206df26cacSmrg echo sx4-nec-superux${UNAME_RELEASE} 12216df26cacSmrg exit ;; 12226df26cacSmrg SX-5:SUPER-UX:*:*) 12236df26cacSmrg echo sx5-nec-superux${UNAME_RELEASE} 12246df26cacSmrg exit ;; 12256df26cacSmrg SX-6:SUPER-UX:*:*) 12266df26cacSmrg echo sx6-nec-superux${UNAME_RELEASE} 12276df26cacSmrg exit ;; 122816fd1166Smrg SX-7:SUPER-UX:*:*) 122916fd1166Smrg echo sx7-nec-superux${UNAME_RELEASE} 123016fd1166Smrg exit ;; 123116fd1166Smrg SX-8:SUPER-UX:*:*) 123216fd1166Smrg echo sx8-nec-superux${UNAME_RELEASE} 123316fd1166Smrg exit ;; 123416fd1166Smrg SX-8R:SUPER-UX:*:*) 123516fd1166Smrg echo sx8r-nec-superux${UNAME_RELEASE} 123616fd1166Smrg exit ;; 12376df26cacSmrg Power*:Rhapsody:*:*) 12386df26cacSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 12396df26cacSmrg exit ;; 12406df26cacSmrg *:Rhapsody:*:*) 12416df26cacSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12426df26cacSmrg exit ;; 12436df26cacSmrg *:Darwin:*:*) 12446df26cacSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 12456df26cacSmrg case $UNAME_PROCESSOR in 12466df26cacSmrg unknown) UNAME_PROCESSOR=powerpc ;; 12476df26cacSmrg esac 12486df26cacSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 12496df26cacSmrg exit ;; 12506df26cacSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 12516df26cacSmrg UNAME_PROCESSOR=`uname -p` 12526df26cacSmrg if test "$UNAME_PROCESSOR" = "x86"; then 12536df26cacSmrg UNAME_PROCESSOR=i386 12546df26cacSmrg UNAME_MACHINE=pc 12556df26cacSmrg fi 12566df26cacSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 12576df26cacSmrg exit ;; 12586df26cacSmrg *:QNX:*:4*) 12596df26cacSmrg echo i386-pc-qnx 12606df26cacSmrg exit ;; 12616df26cacSmrg NSE-?:NONSTOP_KERNEL:*:*) 12626df26cacSmrg echo nse-tandem-nsk${UNAME_RELEASE} 12636df26cacSmrg exit ;; 12646df26cacSmrg NSR-?:NONSTOP_KERNEL:*:*) 12656df26cacSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 12666df26cacSmrg exit ;; 12676df26cacSmrg *:NonStop-UX:*:*) 12686df26cacSmrg echo mips-compaq-nonstopux 12696df26cacSmrg exit ;; 12706df26cacSmrg BS2000:POSIX*:*:*) 12716df26cacSmrg echo bs2000-siemens-sysv 12726df26cacSmrg exit ;; 12736df26cacSmrg DS/*:UNIX_System_V:*:*) 12746df26cacSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 12756df26cacSmrg exit ;; 12766df26cacSmrg *:Plan9:*:*) 12776df26cacSmrg # "uname -m" is not consistent, so use $cputype instead. 386 12786df26cacSmrg # is converted to i386 for consistency with other x86 12796df26cacSmrg # operating systems. 12806df26cacSmrg if test "$cputype" = "386"; then 12816df26cacSmrg UNAME_MACHINE=i386 12826df26cacSmrg else 12836df26cacSmrg UNAME_MACHINE="$cputype" 12846df26cacSmrg fi 12856df26cacSmrg echo ${UNAME_MACHINE}-unknown-plan9 12866df26cacSmrg exit ;; 12876df26cacSmrg *:TOPS-10:*:*) 12886df26cacSmrg echo pdp10-unknown-tops10 12896df26cacSmrg exit ;; 12906df26cacSmrg *:TENEX:*:*) 12916df26cacSmrg echo pdp10-unknown-tenex 12926df26cacSmrg exit ;; 12936df26cacSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 12946df26cacSmrg echo pdp10-dec-tops20 12956df26cacSmrg exit ;; 12966df26cacSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 12976df26cacSmrg echo pdp10-xkl-tops20 12986df26cacSmrg exit ;; 12996df26cacSmrg *:TOPS-20:*:*) 13006df26cacSmrg echo pdp10-unknown-tops20 13016df26cacSmrg exit ;; 13026df26cacSmrg *:ITS:*:*) 13036df26cacSmrg echo pdp10-unknown-its 13046df26cacSmrg exit ;; 13056df26cacSmrg SEI:*:*:SEIUX) 13066df26cacSmrg echo mips-sei-seiux${UNAME_RELEASE} 13076df26cacSmrg exit ;; 13086df26cacSmrg *:DragonFly:*:*) 13096df26cacSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 13106df26cacSmrg exit ;; 13116df26cacSmrg *:*VMS:*:*) 13126df26cacSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 13136df26cacSmrg case "${UNAME_MACHINE}" in 13146df26cacSmrg A*) echo alpha-dec-vms ; exit ;; 13156df26cacSmrg I*) echo ia64-dec-vms ; exit ;; 13166df26cacSmrg V*) echo vax-dec-vms ; exit ;; 13176df26cacSmrg esac ;; 13186df26cacSmrg *:XENIX:*:SysV) 13196df26cacSmrg echo i386-pc-xenix 13206df26cacSmrg exit ;; 13216df26cacSmrg i*86:skyos:*:*) 13226df26cacSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 13236df26cacSmrg exit ;; 13246df26cacSmrg i*86:rdos:*:*) 13256df26cacSmrg echo ${UNAME_MACHINE}-pc-rdos 13266df26cacSmrg exit ;; 13276df26cacSmrgesac 13286df26cacSmrg 13296df26cacSmrg#echo '(No uname command or uname output not recognized.)' 1>&2 13306df26cacSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 13316df26cacSmrg 13326df26cacSmrgeval $set_cc_for_build 13336df26cacSmrgcat >$dummy.c <<EOF 13346df26cacSmrg#ifdef _SEQUENT_ 13356df26cacSmrg# include <sys/types.h> 13366df26cacSmrg# include <sys/utsname.h> 13376df26cacSmrg#endif 13386df26cacSmrgmain () 13396df26cacSmrg{ 13406df26cacSmrg#if defined (sony) 13416df26cacSmrg#if defined (MIPSEB) 13426df26cacSmrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 13436df26cacSmrg I don't know.... */ 13446df26cacSmrg printf ("mips-sony-bsd\n"); exit (0); 13456df26cacSmrg#else 13466df26cacSmrg#include <sys/param.h> 13476df26cacSmrg printf ("m68k-sony-newsos%s\n", 13486df26cacSmrg#ifdef NEWSOS4 13496df26cacSmrg "4" 13506df26cacSmrg#else 13516df26cacSmrg "" 13526df26cacSmrg#endif 13536df26cacSmrg ); exit (0); 13546df26cacSmrg#endif 13556df26cacSmrg#endif 13566df26cacSmrg 13576df26cacSmrg#if defined (__arm) && defined (__acorn) && defined (__unix) 13586df26cacSmrg printf ("arm-acorn-riscix\n"); exit (0); 13596df26cacSmrg#endif 13606df26cacSmrg 13616df26cacSmrg#if defined (hp300) && !defined (hpux) 13626df26cacSmrg printf ("m68k-hp-bsd\n"); exit (0); 13636df26cacSmrg#endif 13646df26cacSmrg 13656df26cacSmrg#if defined (NeXT) 13666df26cacSmrg#if !defined (__ARCHITECTURE__) 13676df26cacSmrg#define __ARCHITECTURE__ "m68k" 13686df26cacSmrg#endif 13696df26cacSmrg int version; 13706df26cacSmrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 13716df26cacSmrg if (version < 4) 13726df26cacSmrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 13736df26cacSmrg else 13746df26cacSmrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 13756df26cacSmrg exit (0); 13766df26cacSmrg#endif 13776df26cacSmrg 13786df26cacSmrg#if defined (MULTIMAX) || defined (n16) 13796df26cacSmrg#if defined (UMAXV) 13806df26cacSmrg printf ("ns32k-encore-sysv\n"); exit (0); 13816df26cacSmrg#else 13826df26cacSmrg#if defined (CMU) 13836df26cacSmrg printf ("ns32k-encore-mach\n"); exit (0); 13846df26cacSmrg#else 13856df26cacSmrg printf ("ns32k-encore-bsd\n"); exit (0); 13866df26cacSmrg#endif 13876df26cacSmrg#endif 13886df26cacSmrg#endif 13896df26cacSmrg 13906df26cacSmrg#if defined (__386BSD__) 13916df26cacSmrg printf ("i386-pc-bsd\n"); exit (0); 13926df26cacSmrg#endif 13936df26cacSmrg 13946df26cacSmrg#if defined (sequent) 13956df26cacSmrg#if defined (i386) 13966df26cacSmrg printf ("i386-sequent-dynix\n"); exit (0); 13976df26cacSmrg#endif 13986df26cacSmrg#if defined (ns32000) 13996df26cacSmrg printf ("ns32k-sequent-dynix\n"); exit (0); 14006df26cacSmrg#endif 14016df26cacSmrg#endif 14026df26cacSmrg 14036df26cacSmrg#if defined (_SEQUENT_) 14046df26cacSmrg struct utsname un; 14056df26cacSmrg 14066df26cacSmrg uname(&un); 14076df26cacSmrg 14086df26cacSmrg if (strncmp(un.version, "V2", 2) == 0) { 14096df26cacSmrg printf ("i386-sequent-ptx2\n"); exit (0); 14106df26cacSmrg } 14116df26cacSmrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 14126df26cacSmrg printf ("i386-sequent-ptx1\n"); exit (0); 14136df26cacSmrg } 14146df26cacSmrg printf ("i386-sequent-ptx\n"); exit (0); 14156df26cacSmrg 14166df26cacSmrg#endif 14176df26cacSmrg 14186df26cacSmrg#if defined (vax) 14196df26cacSmrg# if !defined (ultrix) 14206df26cacSmrg# include <sys/param.h> 14216df26cacSmrg# if defined (BSD) 14226df26cacSmrg# if BSD == 43 14236df26cacSmrg printf ("vax-dec-bsd4.3\n"); exit (0); 14246df26cacSmrg# else 14256df26cacSmrg# if BSD == 199006 14266df26cacSmrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 14276df26cacSmrg# else 14286df26cacSmrg printf ("vax-dec-bsd\n"); exit (0); 14296df26cacSmrg# endif 14306df26cacSmrg# endif 14316df26cacSmrg# else 14326df26cacSmrg printf ("vax-dec-bsd\n"); exit (0); 14336df26cacSmrg# endif 14346df26cacSmrg# else 14356df26cacSmrg printf ("vax-dec-ultrix\n"); exit (0); 14366df26cacSmrg# endif 14376df26cacSmrg#endif 14386df26cacSmrg 14396df26cacSmrg#if defined (alliant) && defined (i860) 14406df26cacSmrg printf ("i860-alliant-bsd\n"); exit (0); 14416df26cacSmrg#endif 14426df26cacSmrg 14436df26cacSmrg exit (1); 14446df26cacSmrg} 14456df26cacSmrgEOF 14466df26cacSmrg 14476df26cacSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 14486df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 14496df26cacSmrg 14506df26cacSmrg# Apollos put the system type in the environment. 14516df26cacSmrg 14526df26cacSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 14536df26cacSmrg 14546df26cacSmrg# Convex versions that predate uname can use getsysinfo(1) 14556df26cacSmrg 14566df26cacSmrgif [ -x /usr/convex/getsysinfo ] 14576df26cacSmrgthen 14586df26cacSmrg case `getsysinfo -f cpu_type` in 14596df26cacSmrg c1*) 14606df26cacSmrg echo c1-convex-bsd 14616df26cacSmrg exit ;; 14626df26cacSmrg c2*) 14636df26cacSmrg if getsysinfo -f scalar_acc 14646df26cacSmrg then echo c32-convex-bsd 14656df26cacSmrg else echo c2-convex-bsd 14666df26cacSmrg fi 14676df26cacSmrg exit ;; 14686df26cacSmrg c34*) 14696df26cacSmrg echo c34-convex-bsd 14706df26cacSmrg exit ;; 14716df26cacSmrg c38*) 14726df26cacSmrg echo c38-convex-bsd 14736df26cacSmrg exit ;; 14746df26cacSmrg c4*) 14756df26cacSmrg echo c4-convex-bsd 14766df26cacSmrg exit ;; 14776df26cacSmrg esac 14786df26cacSmrgfi 14796df26cacSmrg 14806df26cacSmrgcat >&2 <<EOF 14816df26cacSmrg$0: unable to guess system type 14826df26cacSmrg 14836df26cacSmrgThis script, last modified $timestamp, has failed to recognize 14846df26cacSmrgthe operating system you are using. It is advised that you 14856df26cacSmrgdownload the most up to date version of the config scripts from 14866df26cacSmrg 1487b68e1f86Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 14886df26cacSmrgand 1489b68e1f86Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 14906df26cacSmrg 14916df26cacSmrgIf the version you run ($0) is already up to date, please 14926df26cacSmrgsend the following data and any information you think might be 14936df26cacSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 14946df26cacSmrginformation to handle your system. 14956df26cacSmrg 14966df26cacSmrgconfig.guess timestamp = $timestamp 14976df26cacSmrg 14986df26cacSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 14996df26cacSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 15006df26cacSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 15016df26cacSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 15026df26cacSmrg 15036df26cacSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 15046df26cacSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 15056df26cacSmrg 15066df26cacSmrghostinfo = `(hostinfo) 2>/dev/null` 15076df26cacSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 15086df26cacSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 15096df26cacSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 15106df26cacSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 15116df26cacSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 15126df26cacSmrg 15136df26cacSmrgUNAME_MACHINE = ${UNAME_MACHINE} 15146df26cacSmrgUNAME_RELEASE = ${UNAME_RELEASE} 15156df26cacSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 15166df26cacSmrgUNAME_VERSION = ${UNAME_VERSION} 15176df26cacSmrgEOF 15186df26cacSmrg 15196df26cacSmrgexit 1 15206df26cacSmrg 15216df26cacSmrg# Local variables: 15226df26cacSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 15236df26cacSmrg# time-stamp-start: "timestamp='" 15246df26cacSmrg# time-stamp-format: "%:y-%02m-%02d" 15256df26cacSmrg# time-stamp-end: "'" 15266df26cacSmrg# End: 1527