scripts/config.guess
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 12 19:24:03 2010 +0100 (2010-01-12)
changeset 1761 88020b2c3246
parent 1547 9317c32fe7e5
child 2025 b38f4954e4ed
permissions -rwxr-xr-x
scripts/functions: change handling of nochdir

- 'nochdir' must be the first option
- have systematic pushd/popd, even if nochdir
yann@1101
     1
#! /bin/sh
yann@1101
     2
# Attempt to guess a canonical system name.
yann@1101
     3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
yann@1418
     4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
yann@1101
     5
#   Free Software Foundation, Inc.
yann@1101
     6
yann@1652
     7
timestamp='2009-11-19'
yann@1101
     8
yann@1101
     9
# This file is free software; you can redistribute it and/or modify it
yann@1101
    10
# under the terms of the GNU General Public License as published by
yann@1101
    11
# the Free Software Foundation; either version 2 of the License, or
yann@1101
    12
# (at your option) any later version.
yann@1101
    13
#
yann@1101
    14
# This program is distributed in the hope that it will be useful, but
yann@1101
    15
# WITHOUT ANY WARRANTY; without even the implied warranty of
yann@1101
    16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
yann@1101
    17
# General Public License for more details.
yann@1101
    18
#
yann@1101
    19
# You should have received a copy of the GNU General Public License
yann@1101
    20
# along with this program; if not, write to the Free Software
yann@1101
    21
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
yann@1101
    22
# 02110-1301, USA.
yann@1101
    23
#
yann@1101
    24
# As a special exception to the GNU General Public License, if you
yann@1101
    25
# distribute this file as part of a program that contains a
yann@1101
    26
# configuration script generated by Autoconf, you may include it under
yann@1101
    27
# the same distribution terms that you use for the rest of that program.
yann@1101
    28
yann@1101
    29
yann@1511
    30
# Originally written by Per Bothner.  Please send patches (context
yann@1511
    31
# diff format) to <config-patches@gnu.org> and include a ChangeLog
yann@1511
    32
# entry.
yann@1101
    33
#
yann@1101
    34
# This script attempts to guess a canonical system name similar to
yann@1101
    35
# config.sub.  If it succeeds, it prints the system name on stdout, and
yann@1101
    36
# exits with 0.  Otherwise, it exits with 1.
yann@1101
    37
#
yann@1511
    38
# You can get the latest version of this script from:
yann@1511
    39
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
yann@1101
    40
yann@1101
    41
me=`echo "$0" | sed -e 's,.*/,,'`
yann@1101
    42
yann@1101
    43
usage="\
yann@1101
    44
Usage: $0 [OPTION]
yann@1101
    45
yann@1101
    46
Output the configuration name of the system \`$me' is run on.
yann@1101
    47
yann@1101
    48
Operation modes:
yann@1101
    49
  -h, --help         print this help, then exit
yann@1101
    50
  -t, --time-stamp   print date of last modification, then exit
yann@1101
    51
  -v, --version      print version number, then exit
yann@1101
    52
yann@1101
    53
Report bugs and patches to <config-patches@gnu.org>."
yann@1101
    54
yann@1101
    55
version="\
yann@1101
    56
GNU config.guess ($timestamp)
yann@1101
    57
yann@1101
    58
Originally written by Per Bothner.
yann@1101
    59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
yann@1101
    60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
yann@1101
    61
yann@1101
    62
This is free software; see the source for copying conditions.  There is NO
yann@1101
    63
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
yann@1101
    64
yann@1101
    65
help="
yann@1101
    66
Try \`$me --help' for more information."
yann@1101
    67
yann@1101
    68
# Parse command line
yann@1101
    69
while test $# -gt 0 ; do
yann@1101
    70
  case $1 in
yann@1101
    71
    --time-stamp | --time* | -t )
yann@1101
    72
       echo "$timestamp" ; exit ;;
yann@1101
    73
    --version | -v )
yann@1101
    74
       echo "$version" ; exit ;;
yann@1101
    75
    --help | --h* | -h )
yann@1101
    76
       echo "$usage"; exit ;;
yann@1101
    77
    -- )     # Stop option processing
yann@1101
    78
       shift; break ;;
yann@1101
    79
    - )	# Use stdin as input.
yann@1101
    80
       break ;;
yann@1101
    81
    -* )
yann@1101
    82
       echo "$me: invalid option $1$help" >&2
yann@1101
    83
       exit 1 ;;
yann@1101
    84
    * )
yann@1101
    85
       break ;;
yann@1101
    86
  esac
yann@1101
    87
done
yann@1101
    88
yann@1101
    89
if test $# != 0; then
yann@1101
    90
  echo "$me: too many arguments$help" >&2
yann@1101
    91
  exit 1
yann@1101
    92
fi
yann@1101
    93
yann@1101
    94
trap 'exit 1' 1 2 15
yann@1101
    95
yann@1101
    96
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
yann@1101
    97
# compiler to aid in system detection is discouraged as it requires
yann@1101
    98
# temporary files to be created and, as you can see below, it is a
yann@1101
    99
# headache to deal with in a portable fashion.
yann@1101
   100
yann@1101
   101
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
yann@1101
   102
# use `HOST_CC' if defined, but it is deprecated.
yann@1101
   103
yann@1101
   104
# Portable tmp directory creation inspired by the Autoconf team.
yann@1101
   105
yann@1101
   106
set_cc_for_build='
yann@1101
   107
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
yann@1101
   108
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
yann@1101
   109
: ${TMPDIR=/tmp} ;
yann@1101
   110
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
yann@1101
   111
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
yann@1101
   112
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
yann@1101
   113
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
yann@1101
   114
dummy=$tmp/dummy ;
yann@1101
   115
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
yann@1101
   116
case $CC_FOR_BUILD,$HOST_CC,$CC in
yann@1101
   117
 ,,)    echo "int x;" > $dummy.c ;
yann@1101
   118
	for c in cc gcc c89 c99 ; do
yann@1101
   119
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
yann@1101
   120
	     CC_FOR_BUILD="$c"; break ;
yann@1101
   121
	  fi ;
yann@1101
   122
	done ;
yann@1101
   123
	if test x"$CC_FOR_BUILD" = x ; then
yann@1101
   124
	  CC_FOR_BUILD=no_compiler_found ;
yann@1101
   125
	fi
yann@1101
   126
	;;
yann@1101
   127
 ,,*)   CC_FOR_BUILD=$CC ;;
yann@1101
   128
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
yann@1101
   129
esac ; set_cc_for_build= ;'
yann@1101
   130
yann@1101
   131
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
yann@1101
   132
# (ghazi@noc.rutgers.edu 1994-08-24)
yann@1101
   133
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
yann@1101
   134
	PATH=$PATH:/.attbin ; export PATH
yann@1101
   135
fi
yann@1101
   136
yann@1101
   137
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
yann@1101
   138
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
yann@1101
   139
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
yann@1101
   140
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
yann@1101
   141
yann@1101
   142
# Note: order is significant - the case branches are not exclusive.
yann@1101
   143
yann@1101
   144
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
yann@1101
   145
    *:NetBSD:*:*)
yann@1101
   146
	# NetBSD (nbsd) targets should (where applicable) match one or
yann@1101
   147
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
yann@1101
   148
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
yann@1101
   149
	# switched to ELF, *-*-netbsd* would select the old
yann@1101
   150
	# object file format.  This provides both forward
yann@1101
   151
	# compatibility and a consistent mechanism for selecting the
yann@1101
   152
	# object file format.
yann@1101
   153
	#
yann@1101
   154
	# Note: NetBSD doesn't particularly care about the vendor
yann@1101
   155
	# portion of the name.  We always set it to "unknown".
yann@1101
   156
	sysctl="sysctl -n hw.machine_arch"
yann@1101
   157
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
yann@1101
   158
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
yann@1101
   159
	case "${UNAME_MACHINE_ARCH}" in
yann@1101
   160
	    armeb) machine=armeb-unknown ;;
yann@1101
   161
	    arm*) machine=arm-unknown ;;
yann@1101
   162
	    sh3el) machine=shl-unknown ;;
yann@1101
   163
	    sh3eb) machine=sh-unknown ;;
yann@1101
   164
	    sh5el) machine=sh5le-unknown ;;
yann@1101
   165
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
yann@1101
   166
	esac
yann@1101
   167
	# The Operating System including object format, if it has switched
yann@1101
   168
	# to ELF recently, or will in the future.
yann@1101
   169
	case "${UNAME_MACHINE_ARCH}" in
yann@1101
   170
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
yann@1101
   171
		eval $set_cc_for_build
yann@1101
   172
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
yann@1418
   173
			| grep -q __ELF__
yann@1101
   174
		then
yann@1101
   175
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
yann@1101
   176
		    # Return netbsd for either.  FIX?
yann@1101
   177
		    os=netbsd
yann@1101
   178
		else
yann@1101
   179
		    os=netbsdelf
yann@1101
   180
		fi
yann@1101
   181
		;;
yann@1101
   182
	    *)
yann@1101
   183
	        os=netbsd
yann@1101
   184
		;;
yann@1101
   185
	esac
yann@1101
   186
	# The OS release
yann@1101
   187
	# Debian GNU/NetBSD machines have a different userland, and
yann@1101
   188
	# thus, need a distinct triplet. However, they do not need
yann@1101
   189
	# kernel version information, so it can be replaced with a
yann@1101
   190
	# suitable tag, in the style of linux-gnu.
yann@1101
   191
	case "${UNAME_VERSION}" in
yann@1101
   192
	    Debian*)
yann@1101
   193
		release='-gnu'
yann@1101
   194
		;;
yann@1101
   195
	    *)
yann@1101
   196
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
yann@1101
   197
		;;
yann@1101
   198
	esac
yann@1101
   199
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
yann@1101
   200
	# contains redundant information, the shorter form:
yann@1101
   201
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
yann@1101
   202
	echo "${machine}-${os}${release}"
yann@1101
   203
	exit ;;
yann@1101
   204
    *:OpenBSD:*:*)
yann@1101
   205
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
yann@1101
   206
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
yann@1101
   207
	exit ;;
yann@1101
   208
    *:ekkoBSD:*:*)
yann@1101
   209
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
yann@1101
   210
	exit ;;
yann@1101
   211
    *:SolidBSD:*:*)
yann@1101
   212
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
yann@1101
   213
	exit ;;
yann@1101
   214
    macppc:MirBSD:*:*)
yann@1101
   215
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
yann@1101
   216
	exit ;;
yann@1101
   217
    *:MirBSD:*:*)
yann@1101
   218
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
yann@1101
   219
	exit ;;
yann@1101
   220
    alpha:OSF1:*:*)
yann@1101
   221
	case $UNAME_RELEASE in
yann@1101
   222
	*4.0)
yann@1101
   223
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
yann@1101
   224
		;;
yann@1101
   225
	*5.*)
yann@1101
   226
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
yann@1101
   227
		;;
yann@1101
   228
	esac
yann@1101
   229
	# According to Compaq, /usr/sbin/psrinfo has been available on
yann@1101
   230
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
yann@1101
   231
	# covers most systems running today.  This code pipes the CPU
yann@1101
   232
	# types through head -n 1, so we only detect the type of CPU 0.
yann@1101
   233
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
yann@1101
   234
	case "$ALPHA_CPU_TYPE" in
yann@1101
   235
	    "EV4 (21064)")
yann@1101
   236
		UNAME_MACHINE="alpha" ;;
yann@1101
   237
	    "EV4.5 (21064)")
yann@1101
   238
		UNAME_MACHINE="alpha" ;;
yann@1101
   239
	    "LCA4 (21066/21068)")
yann@1101
   240
		UNAME_MACHINE="alpha" ;;
yann@1101
   241
	    "EV5 (21164)")
yann@1101
   242
		UNAME_MACHINE="alphaev5" ;;
yann@1101
   243
	    "EV5.6 (21164A)")
yann@1101
   244
		UNAME_MACHINE="alphaev56" ;;
yann@1101
   245
	    "EV5.6 (21164PC)")
yann@1101
   246
		UNAME_MACHINE="alphapca56" ;;
yann@1101
   247
	    "EV5.7 (21164PC)")
yann@1101
   248
		UNAME_MACHINE="alphapca57" ;;
yann@1101
   249
	    "EV6 (21264)")
yann@1101
   250
		UNAME_MACHINE="alphaev6" ;;
yann@1101
   251
	    "EV6.7 (21264A)")
yann@1101
   252
		UNAME_MACHINE="alphaev67" ;;
yann@1101
   253
	    "EV6.8CB (21264C)")
yann@1101
   254
		UNAME_MACHINE="alphaev68" ;;
yann@1101
   255
	    "EV6.8AL (21264B)")
yann@1101
   256
		UNAME_MACHINE="alphaev68" ;;
yann@1101
   257
	    "EV6.8CX (21264D)")
yann@1101
   258
		UNAME_MACHINE="alphaev68" ;;
yann@1101
   259
	    "EV6.9A (21264/EV69A)")
yann@1101
   260
		UNAME_MACHINE="alphaev69" ;;
yann@1101
   261
	    "EV7 (21364)")
yann@1101
   262
		UNAME_MACHINE="alphaev7" ;;
yann@1101
   263
	    "EV7.9 (21364A)")
yann@1101
   264
		UNAME_MACHINE="alphaev79" ;;
yann@1101
   265
	esac
yann@1101
   266
	# A Pn.n version is a patched version.
yann@1101
   267
	# A Vn.n version is a released version.
yann@1101
   268
	# A Tn.n version is a released field test version.
yann@1101
   269
	# A Xn.n version is an unreleased experimental baselevel.
yann@1101
   270
	# 1.2 uses "1.2" for uname -r.
yann@1101
   271
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
yann@1101
   272
	exit ;;
yann@1101
   273
    Alpha\ *:Windows_NT*:*)
yann@1101
   274
	# How do we know it's Interix rather than the generic POSIX subsystem?
yann@1101
   275
	# Should we change UNAME_MACHINE based on the output of uname instead
yann@1101
   276
	# of the specific Alpha model?
yann@1101
   277
	echo alpha-pc-interix
yann@1101
   278
	exit ;;
yann@1101
   279
    21064:Windows_NT:50:3)
yann@1101
   280
	echo alpha-dec-winnt3.5
yann@1101
   281
	exit ;;
yann@1101
   282
    Amiga*:UNIX_System_V:4.0:*)
yann@1101
   283
	echo m68k-unknown-sysv4
yann@1101
   284
	exit ;;
yann@1101
   285
    *:[Aa]miga[Oo][Ss]:*:*)
yann@1101
   286
	echo ${UNAME_MACHINE}-unknown-amigaos
yann@1101
   287
	exit ;;
yann@1101
   288
    *:[Mm]orph[Oo][Ss]:*:*)
yann@1101
   289
	echo ${UNAME_MACHINE}-unknown-morphos
yann@1101
   290
	exit ;;
yann@1101
   291
    *:OS/390:*:*)
yann@1101
   292
	echo i370-ibm-openedition
yann@1101
   293
	exit ;;
yann@1101
   294
    *:z/VM:*:*)
yann@1101
   295
	echo s390-ibm-zvmoe
yann@1101
   296
	exit ;;
yann@1101
   297
    *:OS400:*:*)
yann@1101
   298
        echo powerpc-ibm-os400
yann@1101
   299
	exit ;;
yann@1101
   300
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
yann@1101
   301
	echo arm-acorn-riscix${UNAME_RELEASE}
yann@1101
   302
	exit ;;
yann@1101
   303
    arm:riscos:*:*|arm:RISCOS:*:*)
yann@1101
   304
	echo arm-unknown-riscos
yann@1101
   305
	exit ;;
yann@1101
   306
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
yann@1101
   307
	echo hppa1.1-hitachi-hiuxmpp
yann@1101
   308
	exit ;;
yann@1101
   309
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
yann@1101
   310
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
yann@1101
   311
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
yann@1101
   312
		echo pyramid-pyramid-sysv3
yann@1101
   313
	else
yann@1101
   314
		echo pyramid-pyramid-bsd
yann@1101
   315
	fi
yann@1101
   316
	exit ;;
yann@1101
   317
    NILE*:*:*:dcosx)
yann@1101
   318
	echo pyramid-pyramid-svr4
yann@1101
   319
	exit ;;
yann@1101
   320
    DRS?6000:unix:4.0:6*)
yann@1101
   321
	echo sparc-icl-nx6
yann@1101
   322
	exit ;;
yann@1101
   323
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
yann@1101
   324
	case `/usr/bin/uname -p` in
yann@1101
   325
	    sparc) echo sparc-icl-nx7; exit ;;
yann@1101
   326
	esac ;;
yann@1418
   327
    s390x:SunOS:*:*)
yann@1418
   328
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1418
   329
	exit ;;
yann@1101
   330
    sun4H:SunOS:5.*:*)
yann@1101
   331
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1101
   332
	exit ;;
yann@1101
   333
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
yann@1101
   334
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1101
   335
	exit ;;
yann@1101
   336
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
yann@1101
   337
	eval $set_cc_for_build
yann@1101
   338
	SUN_ARCH="i386"
yann@1101
   339
	# If there is a compiler, see if it is configured for 64-bit objects.
yann@1101
   340
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
yann@1261
   341
	# This test works for both compilers.
yann@1101
   342
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
yann@1261
   343
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
yann@1101
   344
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
yann@1101
   345
		grep IS_64BIT_ARCH >/dev/null
yann@1101
   346
	    then
yann@1101
   347
		SUN_ARCH="x86_64"
yann@1101
   348
	    fi
yann@1101
   349
	fi
yann@1101
   350
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1101
   351
	exit ;;
yann@1101
   352
    sun4*:SunOS:6*:*)
yann@1101
   353
	# According to config.sub, this is the proper way to canonicalize
yann@1101
   354
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
yann@1101
   355
	# it's likely to be more like Solaris than SunOS4.
yann@1101
   356
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1101
   357
	exit ;;
yann@1101
   358
    sun4*:SunOS:*:*)
yann@1101
   359
	case "`/usr/bin/arch -k`" in
yann@1101
   360
	    Series*|S4*)
yann@1101
   361
		UNAME_RELEASE=`uname -v`
yann@1101
   362
		;;
yann@1101
   363
	esac
yann@1101
   364
	# Japanese Language versions have a version number like `4.1.3-JL'.
yann@1101
   365
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
yann@1101
   366
	exit ;;
yann@1101
   367
    sun3*:SunOS:*:*)
yann@1101
   368
	echo m68k-sun-sunos${UNAME_RELEASE}
yann@1101
   369
	exit ;;
yann@1101
   370
    sun*:*:4.2BSD:*)
yann@1101
   371
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
yann@1101
   372
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
yann@1101
   373
	case "`/bin/arch`" in
yann@1101
   374
	    sun3)
yann@1101
   375
		echo m68k-sun-sunos${UNAME_RELEASE}
yann@1101
   376
		;;
yann@1101
   377
	    sun4)
yann@1101
   378
		echo sparc-sun-sunos${UNAME_RELEASE}
yann@1101
   379
		;;
yann@1101
   380
	esac
yann@1101
   381
	exit ;;
yann@1101
   382
    aushp:SunOS:*:*)
yann@1101
   383
	echo sparc-auspex-sunos${UNAME_RELEASE}
yann@1101
   384
	exit ;;
yann@1101
   385
    # The situation for MiNT is a little confusing.  The machine name
yann@1101
   386
    # can be virtually everything (everything which is not
yann@1101
   387
    # "atarist" or "atariste" at least should have a processor
yann@1101
   388
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
yann@1101
   389
    # to the lowercase version "mint" (or "freemint").  Finally
yann@1101
   390
    # the system name "TOS" denotes a system which is actually not
yann@1101
   391
    # MiNT.  But MiNT is downward compatible to TOS, so this should
yann@1101
   392
    # be no problem.
yann@1101
   393
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
yann@1101
   394
        echo m68k-atari-mint${UNAME_RELEASE}
yann@1101
   395
	exit ;;
yann@1101
   396
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
yann@1101
   397
	echo m68k-atari-mint${UNAME_RELEASE}
yann@1101
   398
        exit ;;
yann@1101
   399
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
yann@1101
   400
        echo m68k-atari-mint${UNAME_RELEASE}
yann@1101
   401
	exit ;;
yann@1101
   402
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
yann@1101
   403
        echo m68k-milan-mint${UNAME_RELEASE}
yann@1101
   404
        exit ;;
yann@1101
   405
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
yann@1101
   406
        echo m68k-hades-mint${UNAME_RELEASE}
yann@1101
   407
        exit ;;
yann@1101
   408
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
yann@1101
   409
        echo m68k-unknown-mint${UNAME_RELEASE}
yann@1101
   410
        exit ;;
yann@1101
   411
    m68k:machten:*:*)
yann@1101
   412
	echo m68k-apple-machten${UNAME_RELEASE}
yann@1101
   413
	exit ;;
yann@1101
   414
    powerpc:machten:*:*)
yann@1101
   415
	echo powerpc-apple-machten${UNAME_RELEASE}
yann@1101
   416
	exit ;;
yann@1101
   417
    RISC*:Mach:*:*)
yann@1101
   418
	echo mips-dec-mach_bsd4.3
yann@1101
   419
	exit ;;
yann@1101
   420
    RISC*:ULTRIX:*:*)
yann@1101
   421
	echo mips-dec-ultrix${UNAME_RELEASE}
yann@1101
   422
	exit ;;
yann@1101
   423
    VAX*:ULTRIX*:*:*)
yann@1101
   424
	echo vax-dec-ultrix${UNAME_RELEASE}
yann@1101
   425
	exit ;;
yann@1101
   426
    2020:CLIX:*:* | 2430:CLIX:*:*)
yann@1101
   427
	echo clipper-intergraph-clix${UNAME_RELEASE}
yann@1101
   428
	exit ;;
yann@1101
   429
    mips:*:*:UMIPS | mips:*:*:RISCos)
yann@1101
   430
	eval $set_cc_for_build
yann@1101
   431
	sed 's/^	//' << EOF >$dummy.c
yann@1101
   432
#ifdef __cplusplus
yann@1101
   433
#include <stdio.h>  /* for printf() prototype */
yann@1101
   434
	int main (int argc, char *argv[]) {
yann@1101
   435
#else
yann@1101
   436
	int main (argc, argv) int argc; char *argv[]; {
yann@1101
   437
#endif
yann@1101
   438
	#if defined (host_mips) && defined (MIPSEB)
yann@1101
   439
	#if defined (SYSTYPE_SYSV)
yann@1101
   440
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
yann@1101
   441
	#endif
yann@1101
   442
	#if defined (SYSTYPE_SVR4)
yann@1101
   443
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
yann@1101
   444
	#endif
yann@1101
   445
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
yann@1101
   446
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
yann@1101
   447
	#endif
yann@1101
   448
	#endif
yann@1101
   449
	  exit (-1);
yann@1101
   450
	}
yann@1101
   451
EOF
yann@1101
   452
	$CC_FOR_BUILD -o $dummy $dummy.c &&
yann@1101
   453
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
yann@1101
   454
	  SYSTEM_NAME=`$dummy $dummyarg` &&
yann@1101
   455
	    { echo "$SYSTEM_NAME"; exit; }
yann@1101
   456
	echo mips-mips-riscos${UNAME_RELEASE}
yann@1101
   457
	exit ;;
yann@1101
   458
    Motorola:PowerMAX_OS:*:*)
yann@1101
   459
	echo powerpc-motorola-powermax
yann@1101
   460
	exit ;;
yann@1101
   461
    Motorola:*:4.3:PL8-*)
yann@1101
   462
	echo powerpc-harris-powermax
yann@1101
   463
	exit ;;
yann@1101
   464
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
yann@1101
   465
	echo powerpc-harris-powermax
yann@1101
   466
	exit ;;
yann@1101
   467
    Night_Hawk:Power_UNIX:*:*)
yann@1101
   468
	echo powerpc-harris-powerunix
yann@1101
   469
	exit ;;
yann@1101
   470
    m88k:CX/UX:7*:*)
yann@1101
   471
	echo m88k-harris-cxux7
yann@1101
   472
	exit ;;
yann@1101
   473
    m88k:*:4*:R4*)
yann@1101
   474
	echo m88k-motorola-sysv4
yann@1101
   475
	exit ;;
yann@1101
   476
    m88k:*:3*:R3*)
yann@1101
   477
	echo m88k-motorola-sysv3
yann@1101
   478
	exit ;;
yann@1101
   479
    AViiON:dgux:*:*)
yann@1101
   480
        # DG/UX returns AViiON for all architectures
yann@1101
   481
        UNAME_PROCESSOR=`/usr/bin/uname -p`
yann@1101
   482
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
yann@1101
   483
	then
yann@1101
   484
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
yann@1101
   485
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
yann@1101
   486
	    then
yann@1101
   487
		echo m88k-dg-dgux${UNAME_RELEASE}
yann@1101
   488
	    else
yann@1101
   489
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
yann@1101
   490
	    fi
yann@1101
   491
	else
yann@1101
   492
	    echo i586-dg-dgux${UNAME_RELEASE}
yann@1101
   493
	fi
yann@1101
   494
 	exit ;;
yann@1101
   495
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
yann@1101
   496
	echo m88k-dolphin-sysv3
yann@1101
   497
	exit ;;
yann@1101
   498
    M88*:*:R3*:*)
yann@1101
   499
	# Delta 88k system running SVR3
yann@1101
   500
	echo m88k-motorola-sysv3
yann@1101
   501
	exit ;;
yann@1101
   502
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
yann@1101
   503
	echo m88k-tektronix-sysv3
yann@1101
   504
	exit ;;
yann@1101
   505
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
yann@1101
   506
	echo m68k-tektronix-bsd
yann@1101
   507
	exit ;;
yann@1101
   508
    *:IRIX*:*:*)
yann@1101
   509
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
yann@1101
   510
	exit ;;
yann@1101
   511
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
yann@1101
   512
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
yann@1101
   513
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
yann@1101
   514
    i*86:AIX:*:*)
yann@1101
   515
	echo i386-ibm-aix
yann@1101
   516
	exit ;;
yann@1101
   517
    ia64:AIX:*:*)
yann@1101
   518
	if [ -x /usr/bin/oslevel ] ; then
yann@1101
   519
		IBM_REV=`/usr/bin/oslevel`
yann@1101
   520
	else
yann@1101
   521
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
yann@1101
   522
	fi
yann@1101
   523
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
yann@1101
   524
	exit ;;
yann@1101
   525
    *:AIX:2:3)
yann@1101
   526
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
yann@1101
   527
		eval $set_cc_for_build
yann@1101
   528
		sed 's/^		//' << EOF >$dummy.c
yann@1101
   529
		#include <sys/systemcfg.h>
yann@1101
   530
yann@1101
   531
		main()
yann@1101
   532
			{
yann@1101
   533
			if (!__power_pc())
yann@1101
   534
				exit(1);
yann@1101
   535
			puts("powerpc-ibm-aix3.2.5");
yann@1101
   536
			exit(0);
yann@1101
   537
			}
yann@1101
   538
EOF
yann@1101
   539
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
yann@1101
   540
		then
yann@1101
   541
			echo "$SYSTEM_NAME"
yann@1101
   542
		else
yann@1101
   543
			echo rs6000-ibm-aix3.2.5
yann@1101
   544
		fi
yann@1101
   545
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
yann@1101
   546
		echo rs6000-ibm-aix3.2.4
yann@1101
   547
	else
yann@1101
   548
		echo rs6000-ibm-aix3.2
yann@1101
   549
	fi
yann@1101
   550
	exit ;;
yann@1101
   551
    *:AIX:*:[456])
yann@1101
   552
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
yann@1101
   553
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
yann@1101
   554
		IBM_ARCH=rs6000
yann@1101
   555
	else
yann@1101
   556
		IBM_ARCH=powerpc
yann@1101
   557
	fi
yann@1101
   558
	if [ -x /usr/bin/oslevel ] ; then
yann@1101
   559
		IBM_REV=`/usr/bin/oslevel`
yann@1101
   560
	else
yann@1101
   561
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
yann@1101
   562
	fi
yann@1101
   563
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
yann@1101
   564
	exit ;;
yann@1101
   565
    *:AIX:*:*)
yann@1101
   566
	echo rs6000-ibm-aix
yann@1101
   567
	exit ;;
yann@1101
   568
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
yann@1101
   569
	echo romp-ibm-bsd4.4
yann@1101
   570
	exit ;;
yann@1101
   571
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
yann@1101
   572
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
yann@1101
   573
	exit ;;                             # report: romp-ibm BSD 4.3
yann@1101
   574
    *:BOSX:*:*)
yann@1101
   575
	echo rs6000-bull-bosx
yann@1101
   576
	exit ;;
yann@1101
   577
    DPX/2?00:B.O.S.:*:*)
yann@1101
   578
	echo m68k-bull-sysv3
yann@1101
   579
	exit ;;
yann@1101
   580
    9000/[34]??:4.3bsd:1.*:*)
yann@1101
   581
	echo m68k-hp-bsd
yann@1101
   582
	exit ;;
yann@1101
   583
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
yann@1101
   584
	echo m68k-hp-bsd4.4
yann@1101
   585
	exit ;;
yann@1101
   586
    9000/[34678]??:HP-UX:*:*)
yann@1101
   587
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
yann@1101
   588
	case "${UNAME_MACHINE}" in
yann@1101
   589
	    9000/31? )            HP_ARCH=m68000 ;;
yann@1101
   590
	    9000/[34]?? )         HP_ARCH=m68k ;;
yann@1101
   591
	    9000/[678][0-9][0-9])
yann@1101
   592
		if [ -x /usr/bin/getconf ]; then
yann@1101
   593
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
yann@1101
   594
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
yann@1101
   595
                    case "${sc_cpu_version}" in
yann@1101
   596
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
yann@1101
   597
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
yann@1101
   598
                      532)                      # CPU_PA_RISC2_0
yann@1101
   599
                        case "${sc_kernel_bits}" in
yann@1101
   600
                          32) HP_ARCH="hppa2.0n" ;;
yann@1101
   601
                          64) HP_ARCH="hppa2.0w" ;;
yann@1101
   602
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
yann@1101
   603
                        esac ;;
yann@1101
   604
                    esac
yann@1101
   605
		fi
yann@1101
   606
		if [ "${HP_ARCH}" = "" ]; then
yann@1101
   607
		    eval $set_cc_for_build
yann@1101
   608
		    sed 's/^              //' << EOF >$dummy.c
yann@1101
   609
yann@1101
   610
              #define _HPUX_SOURCE
yann@1101
   611
              #include <stdlib.h>
yann@1101
   612
              #include <unistd.h>
yann@1101
   613
yann@1101
   614
              int main ()
yann@1101
   615
              {
yann@1101
   616
              #if defined(_SC_KERNEL_BITS)
yann@1101
   617
                  long bits = sysconf(_SC_KERNEL_BITS);
yann@1101
   618
              #endif
yann@1101
   619
                  long cpu  = sysconf (_SC_CPU_VERSION);
yann@1101
   620
yann@1101
   621
                  switch (cpu)
yann@1101
   622
              	{
yann@1101
   623
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
yann@1101
   624
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
yann@1101
   625
              	case CPU_PA_RISC2_0:
yann@1101
   626
              #if defined(_SC_KERNEL_BITS)
yann@1101
   627
              	    switch (bits)
yann@1101
   628
              		{
yann@1101
   629
              		case 64: puts ("hppa2.0w"); break;
yann@1101
   630
              		case 32: puts ("hppa2.0n"); break;
yann@1101
   631
              		default: puts ("hppa2.0"); break;
yann@1101
   632
              		} break;
yann@1101
   633
              #else  /* !defined(_SC_KERNEL_BITS) */
yann@1101
   634
              	    puts ("hppa2.0"); break;
yann@1101
   635
              #endif
yann@1101
   636
              	default: puts ("hppa1.0"); break;
yann@1101
   637
              	}
yann@1101
   638
                  exit (0);
yann@1101
   639
              }
yann@1101
   640
EOF
yann@1101
   641
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
yann@1101
   642
		    test -z "$HP_ARCH" && HP_ARCH=hppa
yann@1101
   643
		fi ;;
yann@1101
   644
	esac
yann@1101
   645
	if [ ${HP_ARCH} = "hppa2.0w" ]
yann@1101
   646
	then
yann@1101
   647
	    eval $set_cc_for_build
yann@1101
   648
yann@1101
   649
	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
yann@1101
   650
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
yann@1101
   651
	    # generating 64-bit code.  GNU and HP use different nomenclature:
yann@1101
   652
	    #
yann@1101
   653
	    # $ CC_FOR_BUILD=cc ./config.guess
yann@1101
   654
	    # => hppa2.0w-hp-hpux11.23
yann@1101
   655
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
yann@1101
   656
	    # => hppa64-hp-hpux11.23
yann@1101
   657
yann@1101
   658
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
yann@1418
   659
		grep -q __LP64__
yann@1101
   660
	    then
yann@1101
   661
		HP_ARCH="hppa2.0w"
yann@1101
   662
	    else
yann@1101
   663
		HP_ARCH="hppa64"
yann@1101
   664
	    fi
yann@1101
   665
	fi
yann@1101
   666
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
yann@1101
   667
	exit ;;
yann@1101
   668
    ia64:HP-UX:*:*)
yann@1101
   669
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
yann@1101
   670
	echo ia64-hp-hpux${HPUX_REV}
yann@1101
   671
	exit ;;
yann@1101
   672
    3050*:HI-UX:*:*)
yann@1101
   673
	eval $set_cc_for_build
yann@1101
   674
	sed 's/^	//' << EOF >$dummy.c
yann@1101
   675
	#include <unistd.h>
yann@1101
   676
	int
yann@1101
   677
	main ()
yann@1101
   678
	{
yann@1101
   679
	  long cpu = sysconf (_SC_CPU_VERSION);
yann@1101
   680
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
yann@1101
   681
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
yann@1101
   682
	     results, however.  */
yann@1101
   683
	  if (CPU_IS_PA_RISC (cpu))
yann@1101
   684
	    {
yann@1101
   685
	      switch (cpu)
yann@1101
   686
		{
yann@1101
   687
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
yann@1101
   688
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
yann@1101
   689
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
yann@1101
   690
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
yann@1101
   691
		}
yann@1101
   692
	    }
yann@1101
   693
	  else if (CPU_IS_HP_MC68K (cpu))
yann@1101
   694
	    puts ("m68k-hitachi-hiuxwe2");
yann@1101
   695
	  else puts ("unknown-hitachi-hiuxwe2");
yann@1101
   696
	  exit (0);
yann@1101
   697
	}
yann@1101
   698
EOF
yann@1101
   699
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
yann@1101
   700
		{ echo "$SYSTEM_NAME"; exit; }
yann@1101
   701
	echo unknown-hitachi-hiuxwe2
yann@1101
   702
	exit ;;
yann@1101
   703
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
yann@1101
   704
	echo hppa1.1-hp-bsd
yann@1101
   705
	exit ;;
yann@1101
   706
    9000/8??:4.3bsd:*:*)
yann@1101
   707
	echo hppa1.0-hp-bsd
yann@1101
   708
	exit ;;
yann@1101
   709
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
yann@1101
   710
	echo hppa1.0-hp-mpeix
yann@1101
   711
	exit ;;
yann@1101
   712
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
yann@1101
   713
	echo hppa1.1-hp-osf
yann@1101
   714
	exit ;;
yann@1101
   715
    hp8??:OSF1:*:*)
yann@1101
   716
	echo hppa1.0-hp-osf
yann@1101
   717
	exit ;;
yann@1101
   718
    i*86:OSF1:*:*)
yann@1101
   719
	if [ -x /usr/sbin/sysversion ] ; then
yann@1101
   720
	    echo ${UNAME_MACHINE}-unknown-osf1mk
yann@1101
   721
	else
yann@1101
   722
	    echo ${UNAME_MACHINE}-unknown-osf1
yann@1101
   723
	fi
yann@1101
   724
	exit ;;
yann@1101
   725
    parisc*:Lites*:*:*)
yann@1101
   726
	echo hppa1.1-hp-lites
yann@1101
   727
	exit ;;
yann@1101
   728
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
yann@1101
   729
	echo c1-convex-bsd
yann@1101
   730
        exit ;;
yann@1101
   731
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
yann@1101
   732
	if getsysinfo -f scalar_acc
yann@1101
   733
	then echo c32-convex-bsd
yann@1101
   734
	else echo c2-convex-bsd
yann@1101
   735
	fi
yann@1101
   736
        exit ;;
yann@1101
   737
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
yann@1101
   738
	echo c34-convex-bsd
yann@1101
   739
        exit ;;
yann@1101
   740
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
yann@1101
   741
	echo c38-convex-bsd
yann@1101
   742
        exit ;;
yann@1101
   743
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
yann@1101
   744
	echo c4-convex-bsd
yann@1101
   745
        exit ;;
yann@1101
   746
    CRAY*Y-MP:*:*:*)
yann@1101
   747
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
yann@1101
   748
	exit ;;
yann@1101
   749
    CRAY*[A-Z]90:*:*:*)
yann@1101
   750
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
yann@1101
   751
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
yann@1101
   752
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
yann@1101
   753
	      -e 's/\.[^.]*$/.X/'
yann@1101
   754
	exit ;;
yann@1101
   755
    CRAY*TS:*:*:*)
yann@1101
   756
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
yann@1101
   757
	exit ;;
yann@1101
   758
    CRAY*T3E:*:*:*)
yann@1101
   759
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
yann@1101
   760
	exit ;;
yann@1101
   761
    CRAY*SV1:*:*:*)
yann@1101
   762
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
yann@1101
   763
	exit ;;
yann@1101
   764
    *:UNICOS/mp:*:*)
yann@1101
   765
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
yann@1101
   766
	exit ;;
yann@1101
   767
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
yann@1101
   768
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
yann@1101
   769
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
yann@1101
   770
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
yann@1101
   771
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
yann@1101
   772
        exit ;;
yann@1101
   773
    5000:UNIX_System_V:4.*:*)
yann@1101
   774
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
yann@1101
   775
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
yann@1101
   776
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
yann@1101
   777
	exit ;;
yann@1101
   778
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
yann@1101
   779
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
yann@1101
   780
	exit ;;
yann@1101
   781
    sparc*:BSD/OS:*:*)
yann@1101
   782
	echo sparc-unknown-bsdi${UNAME_RELEASE}
yann@1101
   783
	exit ;;
yann@1101
   784
    *:BSD/OS:*:*)
yann@1101
   785
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
yann@1101
   786
	exit ;;
yann@1101
   787
    *:FreeBSD:*:*)
yann@1101
   788
	case ${UNAME_MACHINE} in
yann@1101
   789
	    pc98)
yann@1101
   790
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
yann@1101
   791
	    amd64)
yann@1101
   792
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
yann@1101
   793
	    *)
yann@1101
   794
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
yann@1101
   795
	esac
yann@1101
   796
	exit ;;
yann@1101
   797
    i*:CYGWIN*:*)
yann@1101
   798
	echo ${UNAME_MACHINE}-pc-cygwin
yann@1101
   799
	exit ;;
yann@1101
   800
    *:MINGW*:*)
yann@1101
   801
	echo ${UNAME_MACHINE}-pc-mingw32
yann@1101
   802
	exit ;;
yann@1101
   803
    i*:windows32*:*)
yann@1101
   804
    	# uname -m includes "-pc" on this system.
yann@1101
   805
    	echo ${UNAME_MACHINE}-mingw32
yann@1101
   806
	exit ;;
yann@1101
   807
    i*:PW*:*)
yann@1101
   808
	echo ${UNAME_MACHINE}-pc-pw32
yann@1101
   809
	exit ;;
yann@1652
   810
    *:Interix*:*)
yann@1101
   811
    	case ${UNAME_MACHINE} in
yann@1101
   812
	    x86)
yann@1101
   813
		echo i586-pc-interix${UNAME_RELEASE}
yann@1101
   814
		exit ;;
yann@1652
   815
	    authenticamd | genuineintel | EM64T)
yann@1101
   816
		echo x86_64-unknown-interix${UNAME_RELEASE}
yann@1101
   817
		exit ;;
yann@1101
   818
	    IA64)
yann@1101
   819
		echo ia64-unknown-interix${UNAME_RELEASE}
yann@1101
   820
		exit ;;
yann@1101
   821
	esac ;;
yann@1101
   822
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
yann@1101
   823
	echo i${UNAME_MACHINE}-pc-mks
yann@1101
   824
	exit ;;
yann@1418
   825
    8664:Windows_NT:*)
yann@1418
   826
	echo x86_64-pc-mks
yann@1418
   827
	exit ;;
yann@1101
   828
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
yann@1101
   829
	# How do we know it's Interix rather than the generic POSIX subsystem?
yann@1101
   830
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
yann@1101
   831
	# UNAME_MACHINE based on the output of uname instead of i386?
yann@1101
   832
	echo i586-pc-interix
yann@1101
   833
	exit ;;
yann@1101
   834
    i*:UWIN*:*)
yann@1101
   835
	echo ${UNAME_MACHINE}-pc-uwin
yann@1101
   836
	exit ;;
yann@1101
   837
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
yann@1101
   838
	echo x86_64-unknown-cygwin
yann@1101
   839
	exit ;;
yann@1101
   840
    p*:CYGWIN*:*)
yann@1101
   841
	echo powerpcle-unknown-cygwin
yann@1101
   842
	exit ;;
yann@1101
   843
    prep*:SunOS:5.*:*)
yann@1101
   844
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
yann@1101
   845
	exit ;;
yann@1101
   846
    *:GNU:*:*)
yann@1101
   847
	# the GNU system
yann@1101
   848
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
yann@1101
   849
	exit ;;
yann@1101
   850
    *:GNU/*:*:*)
yann@1101
   851
	# other systems with GNU libc and userland
yann@1101
   852
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
yann@1101
   853
	exit ;;
yann@1101
   854
    i*86:Minix:*:*)
yann@1101
   855
	echo ${UNAME_MACHINE}-pc-minix
yann@1101
   856
	exit ;;
yann@1547
   857
    alpha:Linux:*:*)
yann@1547
   858
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
yann@1547
   859
	  EV5)   UNAME_MACHINE=alphaev5 ;;
yann@1547
   860
	  EV56)  UNAME_MACHINE=alphaev56 ;;
yann@1547
   861
	  PCA56) UNAME_MACHINE=alphapca56 ;;
yann@1547
   862
	  PCA57) UNAME_MACHINE=alphapca56 ;;
yann@1547
   863
	  EV6)   UNAME_MACHINE=alphaev6 ;;
yann@1547
   864
	  EV67)  UNAME_MACHINE=alphaev67 ;;
yann@1547
   865
	  EV68*) UNAME_MACHINE=alphaev68 ;;
yann@1547
   866
        esac
yann@1547
   867
	objdump --private-headers /bin/sh | grep -q ld.so.1
yann@1547
   868
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
yann@1547
   869
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
yann@1547
   870
	exit ;;
yann@1101
   871
    arm*:Linux:*:*)
yann@1101
   872
	eval $set_cc_for_build
yann@1101
   873
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
yann@1101
   874
	    | grep -q __ARM_EABI__
yann@1101
   875
	then
yann@1101
   876
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   877
	else
yann@1101
   878
	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
yann@1101
   879
	fi
yann@1101
   880
	exit ;;
yann@1101
   881
    avr32*:Linux:*:*)
yann@1101
   882
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   883
	exit ;;
yann@1101
   884
    cris:Linux:*:*)
yann@1101
   885
	echo cris-axis-linux-gnu
yann@1101
   886
	exit ;;
yann@1101
   887
    crisv32:Linux:*:*)
yann@1101
   888
	echo crisv32-axis-linux-gnu
yann@1101
   889
	exit ;;
yann@1101
   890
    frv:Linux:*:*)
yann@1101
   891
    	echo frv-unknown-linux-gnu
yann@1101
   892
	exit ;;
yann@1547
   893
    i*86:Linux:*:*)
yann@1652
   894
	LIBC=gnu
yann@1652
   895
	eval $set_cc_for_build
yann@1652
   896
	sed 's/^	//' << EOF >$dummy.c
yann@1652
   897
	#ifdef __dietlibc__
yann@1652
   898
	LIBC=dietlibc
yann@1652
   899
	#endif
yann@1652
   900
EOF
yann@1652
   901
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
yann@1652
   902
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
yann@1547
   903
	exit ;;
yann@1101
   904
    ia64:Linux:*:*)
yann@1101
   905
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   906
	exit ;;
yann@1101
   907
    m32r*:Linux:*:*)
yann@1101
   908
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   909
	exit ;;
yann@1101
   910
    m68*:Linux:*:*)
yann@1101
   911
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   912
	exit ;;
yann@1418
   913
    mips:Linux:*:* | mips64:Linux:*:*)
yann@1101
   914
	eval $set_cc_for_build
yann@1101
   915
	sed 's/^	//' << EOF >$dummy.c
yann@1101
   916
	#undef CPU
yann@1418
   917
	#undef ${UNAME_MACHINE}
yann@1418
   918
	#undef ${UNAME_MACHINE}el
yann@1101
   919
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
yann@1418
   920
	CPU=${UNAME_MACHINE}el
yann@1101
   921
	#else
yann@1101
   922
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
yann@1418
   923
	CPU=${UNAME_MACHINE}
yann@1101
   924
	#else
yann@1101
   925
	CPU=
yann@1101
   926
	#endif
yann@1101
   927
	#endif
yann@1101
   928
EOF
yann@1652
   929
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
yann@1101
   930
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
yann@1101
   931
	;;
yann@1101
   932
    or32:Linux:*:*)
yann@1101
   933
	echo or32-unknown-linux-gnu
yann@1101
   934
	exit ;;
yann@1101
   935
    padre:Linux:*:*)
yann@1101
   936
	echo sparc-unknown-linux-gnu
yann@1101
   937
	exit ;;
yann@1547
   938
    parisc64:Linux:*:* | hppa64:Linux:*:*)
yann@1547
   939
	echo hppa64-unknown-linux-gnu
yann@1547
   940
	exit ;;
yann@1101
   941
    parisc:Linux:*:* | hppa:Linux:*:*)
yann@1101
   942
	# Look for CPU level
yann@1101
   943
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
yann@1101
   944
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
yann@1101
   945
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
yann@1101
   946
	  *)    echo hppa-unknown-linux-gnu ;;
yann@1101
   947
	esac
yann@1101
   948
	exit ;;
yann@1547
   949
    ppc64:Linux:*:*)
yann@1547
   950
	echo powerpc64-unknown-linux-gnu
yann@1547
   951
	exit ;;
yann@1547
   952
    ppc:Linux:*:*)
yann@1547
   953
	echo powerpc-unknown-linux-gnu
yann@1101
   954
	exit ;;
yann@1101
   955
    s390:Linux:*:* | s390x:Linux:*:*)
yann@1101
   956
	echo ${UNAME_MACHINE}-ibm-linux
yann@1101
   957
	exit ;;
yann@1101
   958
    sh64*:Linux:*:*)
yann@1101
   959
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   960
	exit ;;
yann@1101
   961
    sh*:Linux:*:*)
yann@1101
   962
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   963
	exit ;;
yann@1101
   964
    sparc:Linux:*:* | sparc64:Linux:*:*)
yann@1101
   965
	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   966
	exit ;;
yann@1101
   967
    vax:Linux:*:*)
yann@1101
   968
	echo ${UNAME_MACHINE}-dec-linux-gnu
yann@1101
   969
	exit ;;
yann@1101
   970
    x86_64:Linux:*:*)
yann@1101
   971
	echo x86_64-unknown-linux-gnu
yann@1101
   972
	exit ;;
yann@1101
   973
    xtensa*:Linux:*:*)
yann@1101
   974
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
yann@1101
   975
	exit ;;
yann@1101
   976
    i*86:DYNIX/ptx:4*:*)
yann@1101
   977
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
yann@1101
   978
	# earlier versions are messed up and put the nodename in both
yann@1101
   979
	# sysname and nodename.
yann@1101
   980
	echo i386-sequent-sysv4
yann@1101
   981
	exit ;;
yann@1101
   982
    i*86:UNIX_SV:4.2MP:2.*)
yann@1101
   983
        # Unixware is an offshoot of SVR4, but it has its own version
yann@1101
   984
        # number series starting with 2...
yann@1101
   985
        # I am not positive that other SVR4 systems won't match this,
yann@1101
   986
	# I just have to hope.  -- rms.
yann@1101
   987
        # Use sysv4.2uw... so that sysv4* matches it.
yann@1101
   988
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
yann@1101
   989
	exit ;;
yann@1101
   990
    i*86:OS/2:*:*)
yann@1101
   991
	# If we were able to find `uname', then EMX Unix compatibility
yann@1101
   992
	# is probably installed.
yann@1101
   993
	echo ${UNAME_MACHINE}-pc-os2-emx
yann@1101
   994
	exit ;;
yann@1101
   995
    i*86:XTS-300:*:STOP)
yann@1101
   996
	echo ${UNAME_MACHINE}-unknown-stop
yann@1101
   997
	exit ;;
yann@1101
   998
    i*86:atheos:*:*)
yann@1101
   999
	echo ${UNAME_MACHINE}-unknown-atheos
yann@1101
  1000
	exit ;;
yann@1101
  1001
    i*86:syllable:*:*)
yann@1101
  1002
	echo ${UNAME_MACHINE}-pc-syllable
yann@1101
  1003
	exit ;;
yann@1418
  1004
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
yann@1101
  1005
	echo i386-unknown-lynxos${UNAME_RELEASE}
yann@1101
  1006
	exit ;;
yann@1101
  1007
    i*86:*DOS:*:*)
yann@1101
  1008
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
yann@1101
  1009
	exit ;;
yann@1101
  1010
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
yann@1101
  1011
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
yann@1101
  1012
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
yann@1101
  1013
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
yann@1101
  1014
	else
yann@1101
  1015
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
yann@1101
  1016
	fi
yann@1101
  1017
	exit ;;
yann@1101
  1018
    i*86:*:5:[678]*)
yann@1101
  1019
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
yann@1101
  1020
	case `/bin/uname -X | grep "^Machine"` in
yann@1101
  1021
	    *486*)	     UNAME_MACHINE=i486 ;;
yann@1101
  1022
	    *Pentium)	     UNAME_MACHINE=i586 ;;
yann@1101
  1023
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
yann@1101
  1024
	esac
yann@1101
  1025
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
yann@1101
  1026
	exit ;;
yann@1101
  1027
    i*86:*:3.2:*)
yann@1101
  1028
	if test -f /usr/options/cb.name; then
yann@1101
  1029
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
yann@1101
  1030
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
yann@1101
  1031
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
yann@1101
  1032
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
yann@1101
  1033
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
yann@1101
  1034
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
yann@1101
  1035
			&& UNAME_MACHINE=i586
yann@1101
  1036
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
yann@1101
  1037
			&& UNAME_MACHINE=i686
yann@1101
  1038
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
yann@1101
  1039
			&& UNAME_MACHINE=i686
yann@1101
  1040
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
yann@1101
  1041
	else
yann@1101
  1042
		echo ${UNAME_MACHINE}-pc-sysv32
yann@1101
  1043
	fi
yann@1101
  1044
	exit ;;
yann@1101
  1045
    pc:*:*:*)
yann@1101
  1046
	# Left here for compatibility:
yann@1101
  1047
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
yann@1309
  1048
        # the processor, so we play safe by assuming i586.
yann@1309
  1049
	# Note: whatever this is, it MUST be the same as what config.sub
yann@1309
  1050
	# prints for the "djgpp" host, or else GDB configury will decide that
yann@1309
  1051
	# this is a cross-build.
yann@1309
  1052
	echo i586-pc-msdosdjgpp
yann@1101
  1053
        exit ;;
yann@1101
  1054
    Intel:Mach:3*:*)
yann@1101
  1055
	echo i386-pc-mach3
yann@1101
  1056
	exit ;;
yann@1101
  1057
    paragon:*:*:*)
yann@1101
  1058
	echo i860-intel-osf1
yann@1101
  1059
	exit ;;
yann@1101
  1060
    i860:*:4.*:*) # i860-SVR4
yann@1101
  1061
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
yann@1101
  1062
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
yann@1101
  1063
	else # Add other i860-SVR4 vendors below as they are discovered.
yann@1101
  1064
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
yann@1101
  1065
	fi
yann@1101
  1066
	exit ;;
yann@1101
  1067
    mini*:CTIX:SYS*5:*)
yann@1101
  1068
	# "miniframe"
yann@1101
  1069
	echo m68010-convergent-sysv
yann@1101
  1070
	exit ;;
yann@1101
  1071
    mc68k:UNIX:SYSTEM5:3.51m)
yann@1101
  1072
	echo m68k-convergent-sysv
yann@1101
  1073
	exit ;;
yann@1101
  1074
    M680?0:D-NIX:5.3:*)
yann@1101
  1075
	echo m68k-diab-dnix
yann@1101
  1076
	exit ;;
yann@1101
  1077
    M68*:*:R3V[5678]*:*)
yann@1101
  1078
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
yann@1101
  1079
    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)
yann@1101
  1080
	OS_REL=''
yann@1101
  1081
	test -r /etc/.relid \
yann@1101
  1082
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
yann@1101
  1083
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
yann@1101
  1084
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
yann@1101
  1085
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
yann@1101
  1086
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
yann@1101
  1087
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
yann@1101
  1088
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
yann@1101
  1089
          && { echo i486-ncr-sysv4; exit; } ;;
yann@1261
  1090
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
yann@1261
  1091
	OS_REL='.3'
yann@1261
  1092
	test -r /etc/.relid \
yann@1261
  1093
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
yann@1261
  1094
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
yann@1261
  1095
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
yann@1261
  1096
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
yann@1261
  1097
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
yann@1261
  1098
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
yann@1261
  1099
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
yann@1101
  1100
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
yann@1101
  1101
	echo m68k-unknown-lynxos${UNAME_RELEASE}
yann@1101
  1102
	exit ;;
yann@1101
  1103
    mc68030:UNIX_System_V:4.*:*)
yann@1101
  1104
	echo m68k-atari-sysv4
yann@1101
  1105
	exit ;;
yann@1101
  1106
    TSUNAMI:LynxOS:2.*:*)
yann@1101
  1107
	echo sparc-unknown-lynxos${UNAME_RELEASE}
yann@1101
  1108
	exit ;;
yann@1101
  1109
    rs6000:LynxOS:2.*:*)
yann@1101
  1110
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
yann@1101
  1111
	exit ;;
yann@1418
  1112
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
yann@1101
  1113
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
yann@1101
  1114
	exit ;;
yann@1101
  1115
    SM[BE]S:UNIX_SV:*:*)
yann@1101
  1116
	echo mips-dde-sysv${UNAME_RELEASE}
yann@1101
  1117
	exit ;;
yann@1101
  1118
    RM*:ReliantUNIX-*:*:*)
yann@1101
  1119
	echo mips-sni-sysv4
yann@1101
  1120
	exit ;;
yann@1101
  1121
    RM*:SINIX-*:*:*)
yann@1101
  1122
	echo mips-sni-sysv4
yann@1101
  1123
	exit ;;
yann@1101
  1124
    *:SINIX-*:*:*)
yann@1101
  1125
	if uname -p 2>/dev/null >/dev/null ; then
yann@1101
  1126
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
yann@1101
  1127
		echo ${UNAME_MACHINE}-sni-sysv4
yann@1101
  1128
	else
yann@1101
  1129
		echo ns32k-sni-sysv
yann@1101
  1130
	fi
yann@1101
  1131
	exit ;;
yann@1101
  1132
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
yann@1101
  1133
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
yann@1101
  1134
        echo i586-unisys-sysv4
yann@1101
  1135
        exit ;;
yann@1101
  1136
    *:UNIX_System_V:4*:FTX*)
yann@1101
  1137
	# From Gerald Hewes <hewes@openmarket.com>.
yann@1101
  1138
	# How about differentiating between stratus architectures? -djm
yann@1101
  1139
	echo hppa1.1-stratus-sysv4
yann@1101
  1140
	exit ;;
yann@1101
  1141
    *:*:*:FTX*)
yann@1101
  1142
	# From seanf@swdc.stratus.com.
yann@1101
  1143
	echo i860-stratus-sysv4
yann@1101
  1144
	exit ;;
yann@1101
  1145
    i*86:VOS:*:*)
yann@1101
  1146
	# From Paul.Green@stratus.com.
yann@1101
  1147
	echo ${UNAME_MACHINE}-stratus-vos
yann@1101
  1148
	exit ;;
yann@1101
  1149
    *:VOS:*:*)
yann@1101
  1150
	# From Paul.Green@stratus.com.
yann@1101
  1151
	echo hppa1.1-stratus-vos
yann@1101
  1152
	exit ;;
yann@1101
  1153
    mc68*:A/UX:*:*)
yann@1101
  1154
	echo m68k-apple-aux${UNAME_RELEASE}
yann@1101
  1155
	exit ;;
yann@1101
  1156
    news*:NEWS-OS:6*:*)
yann@1101
  1157
	echo mips-sony-newsos6
yann@1101
  1158
	exit ;;
yann@1101
  1159
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
yann@1101
  1160
	if [ -d /usr/nec ]; then
yann@1101
  1161
	        echo mips-nec-sysv${UNAME_RELEASE}
yann@1101
  1162
	else
yann@1101
  1163
	        echo mips-unknown-sysv${UNAME_RELEASE}
yann@1101
  1164
	fi
yann@1101
  1165
        exit ;;
yann@1101
  1166
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
yann@1101
  1167
	echo powerpc-be-beos
yann@1101
  1168
	exit ;;
yann@1101
  1169
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
yann@1101
  1170
	echo powerpc-apple-beos
yann@1101
  1171
	exit ;;
yann@1101
  1172
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
yann@1101
  1173
	echo i586-pc-beos
yann@1101
  1174
	exit ;;
yann@1101
  1175
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
yann@1101
  1176
	echo i586-pc-haiku
yann@1101
  1177
	exit ;;
yann@1101
  1178
    SX-4:SUPER-UX:*:*)
yann@1101
  1179
	echo sx4-nec-superux${UNAME_RELEASE}
yann@1101
  1180
	exit ;;
yann@1101
  1181
    SX-5:SUPER-UX:*:*)
yann@1101
  1182
	echo sx5-nec-superux${UNAME_RELEASE}
yann@1101
  1183
	exit ;;
yann@1101
  1184
    SX-6:SUPER-UX:*:*)
yann@1101
  1185
	echo sx6-nec-superux${UNAME_RELEASE}
yann@1101
  1186
	exit ;;
yann@1101
  1187
    SX-7:SUPER-UX:*:*)
yann@1101
  1188
	echo sx7-nec-superux${UNAME_RELEASE}
yann@1101
  1189
	exit ;;
yann@1101
  1190
    SX-8:SUPER-UX:*:*)
yann@1101
  1191
	echo sx8-nec-superux${UNAME_RELEASE}
yann@1101
  1192
	exit ;;
yann@1101
  1193
    SX-8R:SUPER-UX:*:*)
yann@1101
  1194
	echo sx8r-nec-superux${UNAME_RELEASE}
yann@1101
  1195
	exit ;;
yann@1101
  1196
    Power*:Rhapsody:*:*)
yann@1101
  1197
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
yann@1101
  1198
	exit ;;
yann@1101
  1199
    *:Rhapsody:*:*)
yann@1101
  1200
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
yann@1101
  1201
	exit ;;
yann@1101
  1202
    *:Darwin:*:*)
yann@1101
  1203
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
yann@1101
  1204
	case $UNAME_PROCESSOR in
yann@1547
  1205
	    i386)
yann@1547
  1206
		eval $set_cc_for_build
yann@1547
  1207
		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
yann@1547
  1208
		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
yann@1547
  1209
		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
yann@1547
  1210
		      grep IS_64BIT_ARCH >/dev/null
yann@1547
  1211
		  then
yann@1547
  1212
		      UNAME_PROCESSOR="x86_64"
yann@1547
  1213
		  fi
yann@1547
  1214
		fi ;;
yann@1101
  1215
	    unknown) UNAME_PROCESSOR=powerpc ;;
yann@1101
  1216
	esac
yann@1101
  1217
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
yann@1101
  1218
	exit ;;
yann@1101
  1219
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
yann@1101
  1220
	UNAME_PROCESSOR=`uname -p`
yann@1101
  1221
	if test "$UNAME_PROCESSOR" = "x86"; then
yann@1101
  1222
		UNAME_PROCESSOR=i386
yann@1101
  1223
		UNAME_MACHINE=pc
yann@1101
  1224
	fi
yann@1101
  1225
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
yann@1101
  1226
	exit ;;
yann@1101
  1227
    *:QNX:*:4*)
yann@1101
  1228
	echo i386-pc-qnx
yann@1101
  1229
	exit ;;
yann@1101
  1230
    NSE-?:NONSTOP_KERNEL:*:*)
yann@1101
  1231
	echo nse-tandem-nsk${UNAME_RELEASE}
yann@1101
  1232
	exit ;;
yann@1101
  1233
    NSR-?:NONSTOP_KERNEL:*:*)
yann@1101
  1234
	echo nsr-tandem-nsk${UNAME_RELEASE}
yann@1101
  1235
	exit ;;
yann@1101
  1236
    *:NonStop-UX:*:*)
yann@1101
  1237
	echo mips-compaq-nonstopux
yann@1101
  1238
	exit ;;
yann@1101
  1239
    BS2000:POSIX*:*:*)
yann@1101
  1240
	echo bs2000-siemens-sysv
yann@1101
  1241
	exit ;;
yann@1101
  1242
    DS/*:UNIX_System_V:*:*)
yann@1101
  1243
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
yann@1101
  1244
	exit ;;
yann@1101
  1245
    *:Plan9:*:*)
yann@1101
  1246
	# "uname -m" is not consistent, so use $cputype instead. 386
yann@1101
  1247
	# is converted to i386 for consistency with other x86
yann@1101
  1248
	# operating systems.
yann@1101
  1249
	if test "$cputype" = "386"; then
yann@1101
  1250
	    UNAME_MACHINE=i386
yann@1101
  1251
	else
yann@1101
  1252
	    UNAME_MACHINE="$cputype"
yann@1101
  1253
	fi
yann@1101
  1254
	echo ${UNAME_MACHINE}-unknown-plan9
yann@1101
  1255
	exit ;;
yann@1101
  1256
    *:TOPS-10:*:*)
yann@1101
  1257
	echo pdp10-unknown-tops10
yann@1101
  1258
	exit ;;
yann@1101
  1259
    *:TENEX:*:*)
yann@1101
  1260
	echo pdp10-unknown-tenex
yann@1101
  1261
	exit ;;
yann@1101
  1262
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
yann@1101
  1263
	echo pdp10-dec-tops20
yann@1101
  1264
	exit ;;
yann@1101
  1265
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
yann@1101
  1266
	echo pdp10-xkl-tops20
yann@1101
  1267
	exit ;;
yann@1101
  1268
    *:TOPS-20:*:*)
yann@1101
  1269
	echo pdp10-unknown-tops20
yann@1101
  1270
	exit ;;
yann@1101
  1271
    *:ITS:*:*)
yann@1101
  1272
	echo pdp10-unknown-its
yann@1101
  1273
	exit ;;
yann@1101
  1274
    SEI:*:*:SEIUX)
yann@1101
  1275
        echo mips-sei-seiux${UNAME_RELEASE}
yann@1101
  1276
	exit ;;
yann@1101
  1277
    *:DragonFly:*:*)
yann@1101
  1278
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
yann@1101
  1279
	exit ;;
yann@1101
  1280
    *:*VMS:*:*)
yann@1101
  1281
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
yann@1101
  1282
	case "${UNAME_MACHINE}" in
yann@1101
  1283
	    A*) echo alpha-dec-vms ; exit ;;
yann@1101
  1284
	    I*) echo ia64-dec-vms ; exit ;;
yann@1101
  1285
	    V*) echo vax-dec-vms ; exit ;;
yann@1101
  1286
	esac ;;
yann@1101
  1287
    *:XENIX:*:SysV)
yann@1101
  1288
	echo i386-pc-xenix
yann@1101
  1289
	exit ;;
yann@1101
  1290
    i*86:skyos:*:*)
yann@1101
  1291
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
yann@1101
  1292
	exit ;;
yann@1101
  1293
    i*86:rdos:*:*)
yann@1101
  1294
	echo ${UNAME_MACHINE}-pc-rdos
yann@1101
  1295
	exit ;;
yann@1261
  1296
    i*86:AROS:*:*)
yann@1261
  1297
	echo ${UNAME_MACHINE}-pc-aros
yann@1261
  1298
	exit ;;
yann@1101
  1299
esac
yann@1101
  1300
yann@1101
  1301
#echo '(No uname command or uname output not recognized.)' 1>&2
yann@1101
  1302
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
yann@1101
  1303
yann@1101
  1304
eval $set_cc_for_build
yann@1101
  1305
cat >$dummy.c <<EOF
yann@1101
  1306
#ifdef _SEQUENT_
yann@1101
  1307
# include <sys/types.h>
yann@1101
  1308
# include <sys/utsname.h>
yann@1101
  1309
#endif
yann@1101
  1310
main ()
yann@1101
  1311
{
yann@1101
  1312
#if defined (sony)
yann@1101
  1313
#if defined (MIPSEB)
yann@1101
  1314
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
yann@1101
  1315
     I don't know....  */
yann@1101
  1316
  printf ("mips-sony-bsd\n"); exit (0);
yann@1101
  1317
#else
yann@1101
  1318
#include <sys/param.h>
yann@1101
  1319
  printf ("m68k-sony-newsos%s\n",
yann@1101
  1320
#ifdef NEWSOS4
yann@1101
  1321
          "4"
yann@1101
  1322
#else
yann@1101
  1323
	  ""
yann@1101
  1324
#endif
yann@1101
  1325
         ); exit (0);
yann@1101
  1326
#endif
yann@1101
  1327
#endif
yann@1101
  1328
yann@1101
  1329
#if defined (__arm) && defined (__acorn) && defined (__unix)
yann@1101
  1330
  printf ("arm-acorn-riscix\n"); exit (0);
yann@1101
  1331
#endif
yann@1101
  1332
yann@1101
  1333
#if defined (hp300) && !defined (hpux)
yann@1101
  1334
  printf ("m68k-hp-bsd\n"); exit (0);
yann@1101
  1335
#endif
yann@1101
  1336
yann@1101
  1337
#if defined (NeXT)
yann@1101
  1338
#if !defined (__ARCHITECTURE__)
yann@1101
  1339
#define __ARCHITECTURE__ "m68k"
yann@1101
  1340
#endif
yann@1101
  1341
  int version;
yann@1101
  1342
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
yann@1101
  1343
  if (version < 4)
yann@1101
  1344
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
yann@1101
  1345
  else
yann@1101
  1346
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
yann@1101
  1347
  exit (0);
yann@1101
  1348
#endif
yann@1101
  1349
yann@1101
  1350
#if defined (MULTIMAX) || defined (n16)
yann@1101
  1351
#if defined (UMAXV)
yann@1101
  1352
  printf ("ns32k-encore-sysv\n"); exit (0);
yann@1101
  1353
#else
yann@1101
  1354
#if defined (CMU)
yann@1101
  1355
  printf ("ns32k-encore-mach\n"); exit (0);
yann@1101
  1356
#else
yann@1101
  1357
  printf ("ns32k-encore-bsd\n"); exit (0);
yann@1101
  1358
#endif
yann@1101
  1359
#endif
yann@1101
  1360
#endif
yann@1101
  1361
yann@1101
  1362
#if defined (__386BSD__)
yann@1101
  1363
  printf ("i386-pc-bsd\n"); exit (0);
yann@1101
  1364
#endif
yann@1101
  1365
yann@1101
  1366
#if defined (sequent)
yann@1101
  1367
#if defined (i386)
yann@1101
  1368
  printf ("i386-sequent-dynix\n"); exit (0);
yann@1101
  1369
#endif
yann@1101
  1370
#if defined (ns32000)
yann@1101
  1371
  printf ("ns32k-sequent-dynix\n"); exit (0);
yann@1101
  1372
#endif
yann@1101
  1373
#endif
yann@1101
  1374
yann@1101
  1375
#if defined (_SEQUENT_)
yann@1101
  1376
    struct utsname un;
yann@1101
  1377
yann@1101
  1378
    uname(&un);
yann@1101
  1379
yann@1101
  1380
    if (strncmp(un.version, "V2", 2) == 0) {
yann@1101
  1381
	printf ("i386-sequent-ptx2\n"); exit (0);
yann@1101
  1382
    }
yann@1101
  1383
    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
yann@1101
  1384
	printf ("i386-sequent-ptx1\n"); exit (0);
yann@1101
  1385
    }
yann@1101
  1386
    printf ("i386-sequent-ptx\n"); exit (0);
yann@1101
  1387
yann@1101
  1388
#endif
yann@1101
  1389
yann@1101
  1390
#if defined (vax)
yann@1101
  1391
# if !defined (ultrix)
yann@1101
  1392
#  include <sys/param.h>
yann@1101
  1393
#  if defined (BSD)
yann@1101
  1394
#   if BSD == 43
yann@1101
  1395
      printf ("vax-dec-bsd4.3\n"); exit (0);
yann@1101
  1396
#   else
yann@1101
  1397
#    if BSD == 199006
yann@1101
  1398
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
yann@1101
  1399
#    else
yann@1101
  1400
      printf ("vax-dec-bsd\n"); exit (0);
yann@1101
  1401
#    endif
yann@1101
  1402
#   endif
yann@1101
  1403
#  else
yann@1101
  1404
    printf ("vax-dec-bsd\n"); exit (0);
yann@1101
  1405
#  endif
yann@1101
  1406
# else
yann@1101
  1407
    printf ("vax-dec-ultrix\n"); exit (0);
yann@1101
  1408
# endif
yann@1101
  1409
#endif
yann@1101
  1410
yann@1101
  1411
#if defined (alliant) && defined (i860)
yann@1101
  1412
  printf ("i860-alliant-bsd\n"); exit (0);
yann@1101
  1413
#endif
yann@1101
  1414
yann@1101
  1415
  exit (1);
yann@1101
  1416
}
yann@1101
  1417
EOF
yann@1101
  1418
yann@1101
  1419
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
yann@1101
  1420
	{ echo "$SYSTEM_NAME"; exit; }
yann@1101
  1421
yann@1101
  1422
# Apollos put the system type in the environment.
yann@1101
  1423
yann@1101
  1424
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
yann@1101
  1425
yann@1101
  1426
# Convex versions that predate uname can use getsysinfo(1)
yann@1101
  1427
yann@1101
  1428
if [ -x /usr/convex/getsysinfo ]
yann@1101
  1429
then
yann@1101
  1430
    case `getsysinfo -f cpu_type` in
yann@1101
  1431
    c1*)
yann@1101
  1432
	echo c1-convex-bsd
yann@1101
  1433
	exit ;;
yann@1101
  1434
    c2*)
yann@1101
  1435
	if getsysinfo -f scalar_acc
yann@1101
  1436
	then echo c32-convex-bsd
yann@1101
  1437
	else echo c2-convex-bsd
yann@1101
  1438
	fi
yann@1101
  1439
	exit ;;
yann@1101
  1440
    c34*)
yann@1101
  1441
	echo c34-convex-bsd
yann@1101
  1442
	exit ;;
yann@1101
  1443
    c38*)
yann@1101
  1444
	echo c38-convex-bsd
yann@1101
  1445
	exit ;;
yann@1101
  1446
    c4*)
yann@1101
  1447
	echo c4-convex-bsd
yann@1101
  1448
	exit ;;
yann@1101
  1449
    esac
yann@1101
  1450
fi
yann@1101
  1451
yann@1101
  1452
cat >&2 <<EOF
yann@1101
  1453
$0: unable to guess system type
yann@1101
  1454
yann@1101
  1455
This script, last modified $timestamp, has failed to recognize
yann@1101
  1456
the operating system you are using. It is advised that you
yann@1101
  1457
download the most up to date version of the config scripts from
yann@1101
  1458
yann@1101
  1459
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
yann@1101
  1460
and
yann@1101
  1461
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
yann@1101
  1462
yann@1101
  1463
If the version you run ($0) is already up to date, please
yann@1101
  1464
send the following data and any information you think might be
yann@1101
  1465
pertinent to <config-patches@gnu.org> in order to provide the needed
yann@1101
  1466
information to handle your system.
yann@1101
  1467
yann@1101
  1468
config.guess timestamp = $timestamp
yann@1101
  1469
yann@1101
  1470
uname -m = `(uname -m) 2>/dev/null || echo unknown`
yann@1101
  1471
uname -r = `(uname -r) 2>/dev/null || echo unknown`
yann@1101
  1472
uname -s = `(uname -s) 2>/dev/null || echo unknown`
yann@1101
  1473
uname -v = `(uname -v) 2>/dev/null || echo unknown`
yann@1101
  1474
yann@1101
  1475
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
yann@1101
  1476
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
yann@1101
  1477
yann@1101
  1478
hostinfo               = `(hostinfo) 2>/dev/null`
yann@1101
  1479
/bin/universe          = `(/bin/universe) 2>/dev/null`
yann@1101
  1480
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
yann@1101
  1481
/bin/arch              = `(/bin/arch) 2>/dev/null`
yann@1101
  1482
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
yann@1101
  1483
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
yann@1101
  1484
yann@1101
  1485
UNAME_MACHINE = ${UNAME_MACHINE}
yann@1101
  1486
UNAME_RELEASE = ${UNAME_RELEASE}
yann@1101
  1487
UNAME_SYSTEM  = ${UNAME_SYSTEM}
yann@1101
  1488
UNAME_VERSION = ${UNAME_VERSION}
yann@1101
  1489
EOF
yann@1101
  1490
yann@1101
  1491
exit 1
yann@1101
  1492
yann@1101
  1493
# Local variables:
yann@1101
  1494
# eval: (add-hook 'write-file-hooks 'time-stamp)
yann@1101
  1495
# time-stamp-start: "timestamp='"
yann@1101
  1496
# time-stamp-format: "%:y-%02m-%02d"
yann@1101
  1497
# time-stamp-end: "'"
yann@1101
  1498
# End: