common/autoconf/build-aux/autoconf-config.guess

Wed, 27 Apr 2016 01:39:08 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:39:08 +0800
changeset 0
75a576e87639
child 1133
50aaf272884f
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/
changeset: 1170:d117f01bfb4f
tag: jdk8u25-b17

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

mercurial