| 1 | #! /bin/sh
|
|---|
| 2 | # Attempt to guess a canonical system name.
|
|---|
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|---|
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | timestamp='2005-09-19'
|
|---|
| 7 |
|
|---|
| 8 | # This file is free software; you can redistribute it and/or modify it
|
|---|
| 9 | # under the terms of the GNU General Public License as published by
|
|---|
| 10 | # the Free Software Foundation; either version 3 of the License, or
|
|---|
| 11 | # (at your option) any later version.
|
|---|
| 12 | #
|
|---|
| 13 | # This program is distributed in the hope that it will be useful, but
|
|---|
| 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 16 | # General Public License for more details.
|
|---|
| 17 | #
|
|---|
| 18 | # You should have received a copy of the GNU General Public License
|
|---|
| 19 | # along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|---|
| 20 | #
|
|---|
| 21 | # As a special exception to the GNU General Public License, if you
|
|---|
| 22 | # distribute this file as part of a program that contains a
|
|---|
| 23 | # configuration script generated by Autoconf, you may include it under
|
|---|
| 24 | # the same distribution terms that you use for the rest of that program.
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | # Originally written by Per Bothner <[email protected]>.
|
|---|
| 28 | # Please send patches to <[email protected]>. Submit a context
|
|---|
| 29 | # diff and a properly formatted ChangeLog entry.
|
|---|
| 30 | #
|
|---|
| 31 | # This script attempts to guess a canonical system name similar to
|
|---|
| 32 | # config.sub. If it succeeds, it prints the system name on stdout, and
|
|---|
| 33 | # exits with 0. Otherwise, it exits with 1.
|
|---|
| 34 | #
|
|---|
| 35 | # The plan is that this can be called by configure scripts if you
|
|---|
| 36 | # don't specify an explicit build system type.
|
|---|
| 37 |
|
|---|
| 38 | me=`echo "$0" | sed -e 's,.*/,,'`
|
|---|
| 39 |
|
|---|
| 40 | usage="\
|
|---|
| 41 | Usage: $0 [OPTION]
|
|---|
| 42 |
|
|---|
| 43 | Output the configuration name of the system \`$me' is run on.
|
|---|
| 44 |
|
|---|
| 45 | Operation modes:
|
|---|
| 46 | -h, --help print this help, then exit
|
|---|
| 47 | -t, --time-stamp print date of last modification, then exit
|
|---|
| 48 | -v, --version print version number, then exit
|
|---|
| 49 |
|
|---|
| 50 | Report bugs and patches to <[email protected]>."
|
|---|
| 51 |
|
|---|
| 52 | version="\
|
|---|
| 53 | GNU config.guess ($timestamp)
|
|---|
| 54 |
|
|---|
| 55 | Originally written by Per Bothner.
|
|---|
| 56 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|---|
| 57 | Free Software Foundation, Inc.
|
|---|
| 58 |
|
|---|
| 59 | This is free software; see the source for copying conditions. There is NO
|
|---|
| 60 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|---|
| 61 |
|
|---|
| 62 | help="
|
|---|
| 63 | Try \`$me --help' for more information."
|
|---|
| 64 |
|
|---|
| 65 | # Parse command line
|
|---|
| 66 | while test $# -gt 0 ; do
|
|---|
| 67 | case $1 in
|
|---|
| 68 | --time-stamp | --time* | -t )
|
|---|
| 69 | echo "$timestamp" ; exit ;;
|
|---|
| 70 | --version | -v )
|
|---|
| 71 | echo "$version" ; exit ;;
|
|---|
| 72 | --help | --h* | -h )
|
|---|
| 73 | echo "$usage"; exit ;;
|
|---|
| 74 | -- ) # Stop option processing
|
|---|
| 75 | shift; break ;;
|
|---|
| 76 | - ) # Use stdin as input.
|
|---|
| 77 | break ;;
|
|---|
| 78 | -* )
|
|---|
| 79 | echo "$me: invalid option $1$help" >&2
|
|---|
| 80 | exit 1 ;;
|
|---|
| 81 | * )
|
|---|
| 82 | break ;;
|
|---|
| 83 | esac
|
|---|
| 84 | done
|
|---|
| 85 |
|
|---|
| 86 | if test $# != 0; then
|
|---|
| 87 | echo "$me: too many arguments$help" >&2
|
|---|
| 88 | exit 1
|
|---|
| 89 | fi
|
|---|
| 90 |
|
|---|
| 91 | trap 'exit 1' 1 2 15
|
|---|
| 92 |
|
|---|
| 93 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
|
|---|
| 94 | # compiler to aid in system detection is discouraged as it requires
|
|---|
| 95 | # temporary files to be created and, as you can see below, it is a
|
|---|
| 96 | # headache to deal with in a portable fashion.
|
|---|
| 97 |
|
|---|
| 98 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
|---|
| 99 | # use `HOST_CC' if defined, but it is deprecated.
|
|---|
| 100 |
|
|---|
| 101 | # Portable tmp directory creation inspired by the Autoconf team.
|
|---|
| 102 |
|
|---|
| 103 | set_cc_for_build='
|
|---|
| 104 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
|---|
| 105 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
|---|
| 106 | : ${TMPDIR=/tmp} ;
|
|---|
| 107 | { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
|---|
| 108 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
|---|
| 109 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
|---|
| 110 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
|---|
| 111 | dummy=$tmp/dummy ;
|
|---|
| 112 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
|
|---|
| 113 | case $CC_FOR_BUILD,$HOST_CC,$CC in
|
|---|
| 114 | ,,) echo "int x;" > $dummy.c ;
|
|---|
| 115 | for c in cc gcc c89 c99 ; do
|
|---|
| 116 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
|
|---|
| 117 | CC_FOR_BUILD="$c"; break ;
|
|---|
| 118 | fi ;
|
|---|
| 119 | done ;
|
|---|
| 120 | if test x"$CC_FOR_BUILD" = x ; then
|
|---|
| 121 | CC_FOR_BUILD=no_compiler_found ;
|
|---|
| 122 | fi
|
|---|
| 123 | ;;
|
|---|
| 124 | ,,*) CC_FOR_BUILD=$CC ;;
|
|---|
| 125 | ,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
|---|
| 126 | esac ; set_cc_for_build= ;'
|
|---|
| 127 |
|
|---|
| 128 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
|---|
| 129 | # ([email protected] 1994-08-24)
|
|---|
| 130 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
|---|
| 131 | PATH=$PATH:/.attbin ; export PATH
|
|---|
| 132 | fi
|
|---|
| 133 |
|
|---|
| 134 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
|---|
| 135 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
|---|
| 136 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
|---|
| 137 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|---|
| 138 |
|
|---|
| 139 | # Note: order is significant - the case branches are not exclusive.
|
|---|
| 140 |
|
|---|
| 141 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|---|
| 142 | *:NetBSD:*:*)
|
|---|
| 143 | # NetBSD (nbsd) targets should (where applicable) match one or
|
|---|
| 144 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
|---|
| 145 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
|---|
| 146 | # switched to ELF, *-*-netbsd* would select the old
|
|---|
| 147 | # object file format. This provides both forward
|
|---|
| 148 | # compatibility and a consistent mechanism for selecting the
|
|---|
| 149 | # object file format.
|
|---|
| 150 | #
|
|---|
| 151 | # Note: NetBSD doesn't particularly care about the vendor
|
|---|
| 152 | # portion of the name. We always set it to "unknown".
|
|---|
| 153 | sysctl="sysctl -n hw.machine_arch"
|
|---|
| 154 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
|
|---|
| 155 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
|
|---|
| 156 | case "${UNAME_MACHINE_ARCH}" in
|
|---|
| 157 | armeb) machine=armeb-unknown ;;
|
|---|
| 158 | arm*) machine=arm-unknown ;;
|
|---|
| 159 | sh3el) machine=shl-unknown ;;
|
|---|
| 160 | sh3eb) machine=sh-unknown ;;
|
|---|
| 161 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
|---|
| 162 | esac
|
|---|
| 163 | # The Operating System including object format, if it has switched
|
|---|
| 164 | # to ELF recently, or will in the future.
|
|---|
| 165 | case "${UNAME_MACHINE_ARCH}" in
|
|---|
| 166 | arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
|---|
| 167 | eval $set_cc_for_build
|
|---|
| 168 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|---|
| 169 | | grep __ELF__ >/dev/null
|
|---|
| 170 | then
|
|---|
| 171 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
|---|
| 172 | # Return netbsd for either. FIX?
|
|---|
| 173 | os=netbsd
|
|---|
| 174 | else
|
|---|
| 175 | os=netbsdelf
|
|---|
| 176 | fi
|
|---|
| 177 | ;;
|
|---|
| 178 | *)
|
|---|
| 179 | os=netbsd
|
|---|
| 180 | ;;
|
|---|
| 181 | esac
|
|---|
| 182 | # The OS release
|
|---|
| 183 | # Debian GNU/NetBSD machines have a different userland, and
|
|---|
| 184 | # thus, need a distinct triplet. However, they do not need
|
|---|
| 185 | # kernel version information, so it can be replaced with a
|
|---|
| 186 | # suitable tag, in the style of linux-gnu.
|
|---|
| 187 | case "${UNAME_VERSION}" in
|
|---|
| 188 | Debian*)
|
|---|
| 189 | release='-gnu'
|
|---|
| 190 | ;;
|
|---|
| 191 | *)
|
|---|
| 192 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
|---|
| 193 | ;;
|
|---|
| 194 | esac
|
|---|
| 195 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
|---|
| 196 | # contains redundant information, the shorter form:
|
|---|
| 197 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
|---|
| 198 | echo "${machine}-${os}${release}"
|
|---|
| 199 | exit ;;
|
|---|
| 200 | *:OpenBSD:*:*)
|
|---|
| 201 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
|---|
| 202 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
|---|
| 203 | exit ;;
|
|---|
| 204 | *:ekkoBSD:*:*)
|
|---|
| 205 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
|
|---|
| 206 | exit ;;
|
|---|
| 207 | macppc:MirBSD:*:*)
|
|---|
| 208 | echo powerppc-unknown-mirbsd${UNAME_RELEASE}
|
|---|
| 209 | exit ;;
|
|---|
| 210 | *:MirBSD:*:*)
|
|---|
| 211 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
|---|
| 212 | exit ;;
|
|---|
| 213 | alpha:OSF1:*:*)
|
|---|
| 214 | case $UNAME_RELEASE in
|
|---|
| 215 | *4.0)
|
|---|
| 216 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
|---|
| 217 | ;;
|
|---|
| 218 | *5.*)
|
|---|
| 219 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
|---|
| 220 | ;;
|
|---|
| 221 | esac
|
|---|
| 222 | # According to Compaq, /usr/sbin/psrinfo has been available on
|
|---|
| 223 | # OSF/1 and Tru64 systems produced since 1995. I hope that
|
|---|
| 224 | # covers most systems running today. This code pipes the CPU
|
|---|
| 225 | # types through head -n 1, so we only detect the type of CPU 0.
|
|---|
| 226 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
|
|---|
| 227 | case "$ALPHA_CPU_TYPE" in
|
|---|
| 228 | "EV4 (21064)")
|
|---|
| 229 | UNAME_MACHINE="alpha" ;;
|
|---|
| 230 | "EV4.5 (21064)")
|
|---|
| 231 | UNAME_MACHINE="alpha" ;;
|
|---|
| 232 | "LCA4 (21066/21068)")
|
|---|
| 233 | UNAME_MACHINE="alpha" ;;
|
|---|
| 234 | "EV5 (21164)")
|
|---|
| 235 | UNAME_MACHINE="alphaev5" ;;
|
|---|
| 236 | "EV5.6 (21164A)")
|
|---|
| 237 | UNAME_MACHINE="alphaev56" ;;
|
|---|
| 238 | "EV5.6 (21164PC)")
|
|---|
| 239 | UNAME_MACHINE="alphapca56" ;;
|
|---|
| 240 | "EV5.7 (21164PC)")
|
|---|
| 241 | UNAME_MACHINE="alphapca57" ;;
|
|---|
| 242 | "EV6 (21264)")
|
|---|
| 243 | UNAME_MACHINE="alphaev6" ;;
|
|---|
| 244 | "EV6.7 (21264A)")
|
|---|
| 245 | UNAME_MACHINE="alphaev67" ;;
|
|---|
| 246 | "EV6.8CB (21264C)")
|
|---|
| 247 | UNAME_MACHINE="alphaev68" ;;
|
|---|
| 248 | "EV6.8AL (21264B)")
|
|---|
| 249 | UNAME_MACHINE="alphaev68" ;;
|
|---|
| 250 | "EV6.8CX (21264D)")
|
|---|
| 251 | UNAME_MACHINE="alphaev68" ;;
|
|---|
| 252 | "EV6.9A (21264/EV69A)")
|
|---|
| 253 | UNAME_MACHINE="alphaev69" ;;
|
|---|
| 254 | "EV7 (21364)")
|
|---|
| 255 | UNAME_MACHINE="alphaev7" ;;
|
|---|
| 256 | "EV7.9 (21364A)")
|
|---|
| 257 | UNAME_MACHINE="alphaev79" ;;
|
|---|
| 258 | esac
|
|---|
| 259 | # A Pn.n version is a patched version.
|
|---|
| 260 | # A Vn.n version is a released version.
|
|---|
| 261 | # A Tn.n version is a released field test version.
|
|---|
| 262 | # A Xn.n version is an unreleased experimental baselevel.
|
|---|
| 263 | # 1.2 uses "1.2" for uname -r.
|
|---|
| 264 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|---|
| 265 | exit ;;
|
|---|
| 266 | Alpha\ *:Windows_NT*:*)
|
|---|
| 267 | # How do we know it's Interix rather than the generic POSIX subsystem?
|
|---|
| 268 | # Should we change UNAME_MACHINE based on the output of uname instead
|
|---|
| 269 | # of the specific Alpha model?
|
|---|
| 270 | echo alpha-pc-interix
|
|---|
| 271 | exit ;;
|
|---|
| 272 | 21064:Windows_NT:50:3)
|
|---|
| 273 | echo alpha-dec-winnt3.5
|
|---|
| 274 | exit ;;
|
|---|
| 275 | Amiga*:UNIX_System_V:4.0:*)
|
|---|
| 276 | echo m68k-unknown-sysv4
|
|---|
| 277 | exit ;;
|
|---|
| 278 | *:[Aa]miga[Oo][Ss]:*:*)
|
|---|
| 279 | echo ${UNAME_MACHINE}-unknown-amigaos
|
|---|
| 280 | exit ;;
|
|---|
| 281 | *:[Mm]orph[Oo][Ss]:*:*)
|
|---|
| 282 | echo ${UNAME_MACHINE}-unknown-morphos
|
|---|
| 283 | exit ;;
|
|---|
| 284 | *:OS/390:*:*)
|
|---|
| 285 | echo i370-ibm-openedition
|
|---|
| 286 | exit ;;
|
|---|
| 287 | *:z/VM:*:*)
|
|---|
| 288 | echo s390-ibm-zvmoe
|
|---|
| 289 | exit ;;
|
|---|
| 290 | *:OS400:*:*)
|
|---|
| 291 | echo powerpc-ibm-os400
|
|---|
| 292 | exit ;;
|
|---|
| 293 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
|---|
| 294 | echo arm-acorn-riscix${UNAME_RELEASE}
|
|---|
| 295 | exit ;;
|
|---|
| 296 | arm:riscos:*:*|arm:RISCOS:*:*)
|
|---|
| 297 | echo arm-unknown-riscos
|
|---|
| 298 | exit ;;
|
|---|
| 299 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
|---|
| 300 | echo hppa1.1-hitachi-hiuxmpp
|
|---|
| 301 | exit ;;
|
|---|
| 302 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
|---|
| 303 | # [email protected] (Earle F. Ake) contributed MIS and NILE.
|
|---|
| 304 | if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
|---|
| 305 | echo pyramid-pyramid-sysv3
|
|---|
| 306 | else
|
|---|
| 307 | echo pyramid-pyramid-bsd
|
|---|
| 308 | fi
|
|---|
| 309 | exit ;;
|
|---|
| 310 | NILE*:*:*:dcosx)
|
|---|
| 311 | echo pyramid-pyramid-svr4
|
|---|
| 312 | exit ;;
|
|---|
| 313 | DRS?6000:unix:4.0:6*)
|
|---|
| 314 | echo sparc-icl-nx6
|
|---|
| 315 | exit ;;
|
|---|
| 316 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
|
|---|
| 317 | case `/usr/bin/uname -p` in
|
|---|
| 318 | sparc) echo sparc-icl-nx7; exit ;;
|
|---|
| 319 | esac ;;
|
|---|
| 320 | sun4H:SunOS:5.*:*)
|
|---|
| 321 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|---|
| 322 | exit ;;
|
|---|
| 323 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
|---|
| 324 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|---|
| 325 | exit ;;
|
|---|
| 326 | i86pc:SunOS:5.*:*)
|
|---|
| 327 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|---|
| 328 | exit ;;
|
|---|
| 329 | sun4*:SunOS:6*:*)
|
|---|
| 330 | # According to config.sub, this is the proper way to canonicalize
|
|---|
| 331 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
|---|
| 332 | # it's likely to be more like Solaris than SunOS4.
|
|---|
| 333 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|---|
| 334 | exit ;;
|
|---|
| 335 | sun4*:SunOS:*:*)
|
|---|
| 336 | case "`/usr/bin/arch -k`" in
|
|---|
| 337 | Series*|S4*)
|
|---|
| 338 | UNAME_RELEASE=`uname -v`
|
|---|
| 339 | ;;
|
|---|
| 340 | esac
|
|---|
| 341 | # Japanese Language versions have a version number like `4.1.3-JL'.
|
|---|
| 342 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
|---|
| 343 | exit ;;
|
|---|
| 344 | sun3*:SunOS:*:*)
|
|---|
| 345 | echo m68k-sun-sunos${UNAME_RELEASE}
|
|---|
| 346 | exit ;;
|
|---|
| 347 | sun*:*:4.2BSD:*)
|
|---|
| 348 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
|---|
| 349 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
|---|
| 350 | case "`/bin/arch`" in
|
|---|
| 351 | sun3)
|
|---|
| 352 | echo m68k-sun-sunos${UNAME_RELEASE}
|
|---|
| 353 | ;;
|
|---|
| 354 | sun4)
|
|---|
| 355 | echo sparc-sun-sunos${UNAME_RELEASE}
|
|---|
| 356 | ;;
|
|---|
| 357 | esac
|
|---|
| 358 | exit ;;
|
|---|
| 359 | aushp:SunOS:*:*)
|
|---|
| 360 | echo sparc-auspex-sunos${UNAME_RELEASE}
|
|---|
| 361 | exit ;;
|
|---|
| 362 | # The situation for MiNT is a little confusing. The machine name
|
|---|
| 363 | # can be virtually everything (everything which is not
|
|---|
| 364 | # "atarist" or "atariste" at least should have a processor
|
|---|
| 365 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
|
|---|
| 366 | # to the lowercase version "mint" (or "freemint"). Finally
|
|---|
| 367 | # the system name "TOS" denotes a system which is actually not
|
|---|
| 368 | # MiNT. But MiNT is downward compatible to TOS, so this should
|
|---|
| 369 | # be no problem.
|
|---|
| 370 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
|---|
| 371 | echo m68k-atari-mint${UNAME_RELEASE}
|
|---|
| 372 | exit ;;
|
|---|
| 373 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
|---|
| 374 | echo m68k-atari-mint${UNAME_RELEASE}
|
|---|
| 375 | exit ;;
|
|---|
| 376 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
|---|
| 377 | echo m68k-atari-mint${UNAME_RELEASE}
|
|---|
| 378 | exit ;;
|
|---|
| 379 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
|---|
| 380 | echo m68k-milan-mint${UNAME_RELEASE}
|
|---|
| 381 | exit ;;
|
|---|
| 382 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
|---|
| 383 | echo m68k-hades-mint${UNAME_RELEASE}
|
|---|
| 384 | exit ;;
|
|---|
| 385 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
|---|
| 386 | echo m68k-unknown-mint${UNAME_RELEASE}
|
|---|
| 387 | exit ;;
|
|---|
| 388 | m68k:machten:*:*)
|
|---|
| 389 | echo m68k-apple-machten${UNAME_RELEASE}
|
|---|
| 390 | exit ;;
|
|---|
| 391 | powerpc:machten:*:*)
|
|---|
| 392 | echo powerpc-apple-machten${UNAME_RELEASE}
|
|---|
| 393 | exit ;;
|
|---|
| 394 | RISC*:Mach:*:*)
|
|---|
| 395 | echo mips-dec-mach_bsd4.3
|
|---|
| 396 | exit ;;
|
|---|
| 397 | RISC*:ULTRIX:*:*)
|
|---|
| 398 | echo mips-dec-ultrix${UNAME_RELEASE}
|
|---|
| 399 | exit ;;
|
|---|
| 400 | VAX*:ULTRIX*:*:*)
|
|---|
| 401 | echo vax-dec-ultrix${UNAME_RELEASE}
|
|---|
| 402 | exit ;;
|
|---|
| 403 | 2020:CLIX:*:* | 2430:CLIX:*:*)
|
|---|
| 404 | echo clipper-intergraph-clix${UNAME_RELEASE}
|
|---|
| 405 | exit ;;
|
|---|
| 406 | mips:*:*:UMIPS | mips:*:*:RISCos)
|
|---|
| 407 | eval $set_cc_for_build
|
|---|
| 408 | sed 's/^ //' << EOF >$dummy.c
|
|---|
| 409 | #ifdef __cplusplus
|
|---|
| 410 | #include <stdio.h> /* for printf() prototype */
|
|---|
| 411 | int main (int argc, char *argv[]) {
|
|---|
| 412 | #else
|
|---|
| 413 | int main (argc, argv) int argc; char *argv[]; {
|
|---|
| 414 | #endif
|
|---|
| 415 | #if defined (host_mips) && defined (MIPSEB)
|
|---|
| 416 | #if defined (SYSTYPE_SYSV)
|
|---|
| 417 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
|---|
| 418 | #endif
|
|---|
| 419 | #if defined (SYSTYPE_SVR4)
|
|---|
| 420 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
|
|---|
| 421 | #endif
|
|---|
| 422 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
|---|
| 423 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
|
|---|
| 424 | #endif
|
|---|
| 425 | #endif
|
|---|
| 426 | exit (-1);
|
|---|
| 427 | }
|
|---|
| 428 | EOF
|
|---|
| 429 | $CC_FOR_BUILD -o $dummy $dummy.c &&
|
|---|
| 430 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
|
|---|
| 431 | SYSTEM_NAME=`$dummy $dummyarg` &&
|
|---|
| 432 | { echo "$SYSTEM_NAME"; exit; }
|
|---|
| 433 | echo mips-mips-riscos${UNAME_RELEASE}
|
|---|
| 434 | exit ;;
|
|---|
| 435 | Motorola:PowerMAX_OS:*:*)
|
|---|
| 436 | echo powerpc-motorola-powermax
|
|---|
| 437 | exit ;;
|
|---|
| 438 | Motorola:*:4.3:PL8-*)
|
|---|
| 439 | echo powerpc-harris-powermax
|
|---|
| 440 | exit ;;
|
|---|
| 441 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
|
|---|
| 442 | echo powerpc-harris-powermax
|
|---|
| 443 | exit ;;
|
|---|
| 444 | Night_Hawk:Power_UNIX:*:*)
|
|---|
| 445 | echo powerpc-harris-powerunix
|
|---|
| 446 | exit ;;
|
|---|
| 447 | m88k:CX/UX:7*:*)
|
|---|
| 448 | echo m88k-harris-cxux7
|
|---|
| 449 | exit ;;
|
|---|
| 450 | m88k:*:4*:R4*)
|
|---|
| 451 | echo m88k-motorola-sysv4
|
|---|
| 452 | exit ;;
|
|---|
| 453 | m88k:*:3*:R3*)
|
|---|
| 454 | echo m88k-motorola-sysv3
|
|---|
| 455 | exit ;;
|
|---|
| 456 | AViiON:dgux:*:*)
|
|---|
| 457 | # DG/UX returns AViiON for all architectures
|
|---|
| 458 | UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|---|
| 459 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
|---|
| 460 | then
|
|---|
| 461 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
|---|
| 462 | [ ${TARGET_BINARY_INTERFACE}x = x ]
|
|---|
| 463 | then
|
|---|
| 464 | echo m88k-dg-dgux${UNAME_RELEASE}
|
|---|
| 465 | else
|
|---|
| 466 | echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
|---|
| 467 | fi
|
|---|
| 468 | else
|
|---|
| 469 | echo i586-dg-dgux${UNAME_RELEASE}
|
|---|
| 470 | fi
|
|---|
| 471 | exit ;;
|
|---|
| 472 | M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
|---|
| 473 | echo m88k-dolphin-sysv3
|
|---|
| 474 | exit ;;
|
|---|
| 475 | M88*:*:R3*:*)
|
|---|
| 476 | # Delta 88k system running SVR3
|
|---|
| 477 | echo m88k-motorola-sysv3
|
|---|
| 478 | exit ;;
|
|---|
| 479 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
|---|
| 480 | echo m88k-tektronix-sysv3
|
|---|
| 481 | exit ;;
|
|---|
| 482 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
|---|
| 483 | echo m68k-tektronix-bsd
|
|---|
| 484 | exit ;;
|
|---|
| 485 | *:IRIX*:*:*)
|
|---|
| 486 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
|---|
| 487 | exit ;;
|
|---|
| 488 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
|---|
| 489 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
|---|
| 490 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
|---|
| 491 | i*86:AIX:*:*)
|
|---|
| 492 | echo i386-ibm-aix
|
|---|
| 493 | exit ;;
|
|---|
| 494 | ia64:AIX:*:*)
|
|---|
| 495 | if [ -x /usr/bin/oslevel ] ; then
|
|---|
| 496 | IBM_REV=`/usr/bin/oslevel`
|
|---|
| 497 | else
|
|---|
| 498 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
|---|
| 499 | fi
|
|---|
| 500 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
|---|
| 501 | exit ;;
|
|---|
| 502 | *:AIX:2:3)
|
|---|
| 503 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
|---|
| 504 | eval $set_cc_for_build
|
|---|
| 505 | sed 's/^ //' << EOF >$dummy.c
|
|---|
| 506 | #include <sys/systemcfg.h>
|
|---|
| 507 |
|
|---|
| 508 | main()
|
|---|
| 509 | {
|
|---|
| 510 | if (!__power_pc())
|
|---|
| 511 | exit(1);
|
|---|
| 512 | puts("powerpc-ibm-aix3.2.5");
|
|---|
| 513 | exit(0);
|
|---|
| 514 | }
|
|---|
| 515 | EOF
|
|---|
| 516 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
|
|---|
| 517 | then
|
|---|
| 518 | echo "$SYSTEM_NAME"
|
|---|
| 519 | else
|
|---|
| 520 | echo rs6000-ibm-aix3.2.5
|
|---|
| 521 | fi
|
|---|
| 522 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
|---|
| 523 | echo rs6000-ibm-aix3.2.4
|
|---|
| 524 | else
|
|---|
| 525 | echo rs6000-ibm-aix3.2
|
|---|
| 526 | fi
|
|---|
| 527 | exit ;;
|
|---|
| 528 | *:AIX:*:[45])
|
|---|
| 529 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
|---|
| 530 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
|---|
| 531 | IBM_ARCH=rs6000
|
|---|
| 532 | else
|
|---|
| 533 | IBM_ARCH=powerpc
|
|---|
| 534 | fi
|
|---|
| 535 | if [ -x /usr/bin/oslevel ] ; then
|
|---|
| 536 | IBM_REV=`/usr/bin/oslevel`
|
|---|
| 537 | else
|
|---|
| 538 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
|---|
| 539 | fi
|
|---|
| 540 | echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
|---|
| 541 | exit ;;
|
|---|
| 542 | *:AIX:*:*)
|
|---|
| 543 | echo rs6000-ibm-aix
|
|---|
| 544 | exit ;;
|
|---|
| 545 | ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
|---|
| 546 | echo romp-ibm-bsd4.4
|
|---|
| 547 | exit ;;
|
|---|
| 548 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
|---|
| 549 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
|---|
| 550 | exit ;; # report: romp-ibm BSD 4.3
|
|---|
| 551 | *:BOSX:*:*)
|
|---|
| 552 | echo rs6000-bull-bosx
|
|---|
| 553 | exit ;;
|
|---|
| 554 | DPX/2?00:B.O.S.:*:*)
|
|---|
| 555 | echo m68k-bull-sysv3
|
|---|
| 556 | exit ;;
|
|---|
| 557 | 9000/[34]??:4.3bsd:1.*:*)
|
|---|
| 558 | echo m68k-hp-bsd
|
|---|
| 559 | exit ;;
|
|---|
| 560 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
|---|
| 561 | echo m68k-hp-bsd4.4
|
|---|
| 562 | exit ;;
|
|---|
| 563 | 9000/[34678]??:HP-UX:*:*)
|
|---|
| 564 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|---|
| 565 | case "${UNAME_MACHINE}" in
|
|---|
| 566 | 9000/31? ) HP_ARCH=m68000 ;;
|
|---|
| 567 | 9000/[34]?? ) HP_ARCH=m68k ;;
|
|---|
| 568 | 9000/[678][0-9][0-9])
|
|---|
| 569 | if [ -x /usr/bin/getconf ]; then
|
|---|
| 570 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|---|
| 571 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|---|
| 572 | case "${sc_cpu_version}" in
|
|---|
| 573 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|---|
| 574 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|---|
| 575 | 532) # CPU_PA_RISC2_0
|
|---|
| 576 | case "${sc_kernel_bits}" in
|
|---|
| 577 | 32) HP_ARCH="hppa2.0n" ;;
|
|---|
| 578 | 64) HP_ARCH="hppa2.0w" ;;
|
|---|
| 579 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
|---|
| 580 | esac ;;
|
|---|
| 581 | esac
|
|---|
| 582 | fi
|
|---|
| 583 | if [ "${HP_ARCH}" = "" ]; then
|
|---|
| 584 | eval $set_cc_for_build
|
|---|
| 585 | sed 's/^ //' << EOF >$dummy.c
|
|---|
| 586 |
|
|---|
| 587 | #define _HPUX_SOURCE
|
|---|
| 588 | #include <stdlib.h>
|
|---|
| 589 | #include <unistd.h>
|
|---|
| 590 |
|
|---|
| 591 | int main ()
|
|---|
| 592 | {
|
|---|
| 593 | #if defined(_SC_KERNEL_BITS)
|
|---|
| 594 | long bits = sysconf(_SC_KERNEL_BITS);
|
|---|
| 595 | #endif
|
|---|
| 596 | long cpu = sysconf (_SC_CPU_VERSION);
|
|---|
| 597 |
|
|---|
| 598 | switch (cpu)
|
|---|
| 599 | {
|
|---|
| 600 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|---|
| 601 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|---|
| 602 | case CPU_PA_RISC2_0:
|
|---|
| 603 | #if defined(_SC_KERNEL_BITS)
|
|---|
| 604 | switch (bits)
|
|---|
| 605 | {
|
|---|
| 606 | case 64: puts ("hppa2.0w"); break;
|
|---|
| 607 | case 32: puts ("hppa2.0n"); break;
|
|---|
| 608 | default: puts ("hppa2.0"); break;
|
|---|
| 609 | } break;
|
|---|
| 610 | #else /* !defined(_SC_KERNEL_BITS) */
|
|---|
| 611 | puts ("hppa2.0"); break;
|
|---|
| 612 | #endif
|
|---|
| 613 | default: puts ("hppa1.0"); break;
|
|---|
| 614 | }
|
|---|
| 615 | exit (0);
|
|---|
| 616 | }
|
|---|
| 617 | EOF
|
|---|
| 618 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
|---|
| 619 | test -z "$HP_ARCH" && HP_ARCH=hppa
|
|---|
| 620 | fi ;;
|
|---|
| 621 | esac
|
|---|
| 622 | if [ ${HP_ARCH} = "hppa2.0w" ]
|
|---|
| 623 | then
|
|---|
| 624 | eval $set_cc_for_build
|
|---|
| 625 |
|
|---|
| 626 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
|
|---|
| 627 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
|
|---|
| 628 | # generating 64-bit code. GNU and HP use different nomenclature:
|
|---|
| 629 | #
|
|---|
| 630 | # $ CC_FOR_BUILD=cc ./config.guess
|
|---|
| 631 | # => hppa2.0w-hp-hpux11.23
|
|---|
| 632 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
|
|---|
| 633 | # => hppa64-hp-hpux11.23
|
|---|
| 634 |
|
|---|
| 635 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
|---|
| 636 | grep __LP64__ >/dev/null
|
|---|
| 637 | then
|
|---|
| 638 | HP_ARCH="hppa2.0w"
|
|---|
| 639 | else
|
|---|
| 640 | HP_ARCH="hppa64"
|
|---|
| 641 | fi
|
|---|
| 642 | fi
|
|---|
| 643 | echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
|---|
| 644 | exit ;;
|
|---|
| 645 | ia64:HP-UX:*:*)
|
|---|
| 646 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|---|
| 647 | echo ia64-hp-hpux${HPUX_REV}
|
|---|
| 648 | exit ;;
|
|---|
| 649 | 3050*:HI-UX:*:*)
|
|---|
| 650 | eval $set_cc_for_build
|
|---|
| 651 | sed 's/^ //' << EOF >$dummy.c
|
|---|
| 652 | #include <unistd.h>
|
|---|
| 653 | int
|
|---|
| 654 | main ()
|
|---|
| 655 | {
|
|---|
| 656 | long cpu = sysconf (_SC_CPU_VERSION);
|
|---|
| 657 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
|---|
| 658 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
|---|
| 659 | results, however. */
|
|---|
| 660 | if (CPU_IS_PA_RISC (cpu))
|
|---|
| 661 | {
|
|---|
| 662 | switch (cpu)
|
|---|
| 663 | {
|
|---|
| 664 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
|---|
| 665 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
|---|
| 666 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
|---|
| 667 | default: puts ("hppa-hitachi-hiuxwe2"); break;
|
|---|
| 668 | }
|
|---|
| 669 | }
|
|---|
| 670 | else if (CPU_IS_HP_MC68K (cpu))
|
|---|
| 671 | puts ("m68k-hitachi-hiuxwe2");
|
|---|
| 672 | else puts ("unknown-hitachi-hiuxwe2");
|
|---|
| 673 | exit (0);
|
|---|
| 674 | }
|
|---|
| 675 | EOF
|
|---|
| 676 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
|
|---|
| 677 | { echo "$SYSTEM_NAME"; exit; }
|
|---|
| 678 | echo unknown-hitachi-hiuxwe2
|
|---|
| 679 | exit ;;
|
|---|
| 680 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
|---|
| 681 | echo hppa1.1-hp-bsd
|
|---|
| 682 | exit ;;
|
|---|
| 683 | 9000/8??:4.3bsd:*:*)
|
|---|
| 684 | echo hppa1.0-hp-bsd
|
|---|
| 685 | exit ;;
|
|---|
| 686 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
|---|
| 687 | echo hppa1.0-hp-mpeix
|
|---|
| 688 | exit ;;
|
|---|
| 689 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
|---|
| 690 | echo hppa1.1-hp-osf
|
|---|
| 691 | exit ;;
|
|---|
| 692 | hp8??:OSF1:*:*)
|
|---|
| 693 | echo hppa1.0-hp-osf
|
|---|
| 694 | exit ;;
|
|---|
| 695 | i*86:OSF1:*:*)
|
|---|
| 696 | if [ -x /usr/sbin/sysversion ] ; then
|
|---|
| 697 | echo ${UNAME_MACHINE}-unknown-osf1mk
|
|---|
| 698 | else
|
|---|
| 699 | echo ${UNAME_MACHINE}-unknown-osf1
|
|---|
| 700 | fi
|
|---|
| 701 | exit ;;
|
|---|
| 702 | parisc*:Lites*:*:*)
|
|---|
| 703 | echo hppa1.1-hp-lites
|
|---|
| 704 | exit ;;
|
|---|
| 705 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
|---|
| 706 | echo c1-convex-bsd
|
|---|
| 707 | exit ;;
|
|---|
| 708 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
|---|
| 709 | if getsysinfo -f scalar_acc
|
|---|
| 710 | then echo c32-convex-bsd
|
|---|
| 711 | else echo c2-convex-bsd
|
|---|
| 712 | fi
|
|---|
| 713 | exit ;;
|
|---|
| 714 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
|---|
| 715 | echo c34-convex-bsd
|
|---|
| 716 | exit ;;
|
|---|
| 717 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
|---|
| 718 | echo c38-convex-bsd
|
|---|
| 719 | exit ;;
|
|---|
| 720 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
|---|
| 721 | echo c4-convex-bsd
|
|---|
| 722 | exit ;;
|
|---|
| 723 | CRAY*Y-MP:*:*:*)
|
|---|
| 724 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|---|
| 725 | exit ;;
|
|---|
| 726 | CRAY*[A-Z]90:*:*:*)
|
|---|
| 727 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
|---|
| 728 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
|---|
| 729 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
|---|
| 730 | -e 's/\.[^.]*$/.X/'
|
|---|
| 731 | exit ;;
|
|---|
| 732 | CRAY*TS:*:*:*)
|
|---|
| 733 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|---|
| 734 | exit ;;
|
|---|
| 735 | CRAY*T3E:*:*:*)
|
|---|
| 736 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|---|
| 737 | exit ;;
|
|---|
| 738 | CRAY*SV1:*:*:*)
|
|---|
| 739 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|---|
| 740 | exit ;;
|
|---|
| 741 | *:UNICOS/mp:*:*)
|
|---|
| 742 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|---|
| 743 | exit ;;
|
|---|
| 744 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
|---|
| 745 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|---|
| 746 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|---|
| 747 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|---|
| 748 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|---|
| 749 | exit ;;
|
|---|
| 750 | 5000:UNIX_System_V:4.*:*)
|
|---|
| 751 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|---|
| 752 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
|---|
| 753 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|---|
| 754 | exit ;;
|
|---|
| 755 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
|---|
| 756 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
|---|
| 757 | exit ;;
|
|---|
| 758 | sparc*:BSD/OS:*:*)
|
|---|
| 759 | echo sparc-unknown-bsdi${UNAME_RELEASE}
|
|---|
| 760 | exit ;;
|
|---|
| 761 | *:BSD/OS:*:*)
|
|---|
| 762 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
|---|
|
|---|