1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Attempt to guess a canonical system name. |
# Attempt to guess a canonical system name. |
3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# Free Software Foundation, Inc. |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2001-07-12' |
timestamp='2002-09-03' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# 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 |
# under the terms of the GNU General Public License as published by |
24 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
25 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
26 |
|
|
27 |
# Written by Per Bothner <bothner@cygnus.com>. |
# Originally written by Per Bothner <per@bothner.com>. |
28 |
# Please send patches to <config-patches@gnu.org>. |
# Please send patches to <config-patches@gnu.org>. Submit a context |
29 |
|
# diff and a properly formatted ChangeLog entry. |
30 |
# |
# |
31 |
# This script attempts to guess a canonical system name similar to |
# 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 |
# config.sub. If it succeeds, it prints the system name on stdout, and |
88 |
exit 1 |
exit 1 |
89 |
fi |
fi |
90 |
|
|
91 |
|
trap 'exit 1' 1 2 15 |
92 |
|
|
93 |
dummy=dummy-$$ |
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
94 |
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 |
# 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 |
|
|
|
# CC_FOR_BUILD -- compiler used by this script. |
|
98 |
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
99 |
# use `HOST_CC' if defined, but it is deprecated. |
# use `HOST_CC' if defined, but it is deprecated. |
100 |
|
|
101 |
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in |
# This shell variable is my proudest work .. or something. --bje |
102 |
,,) echo "int dummy(){}" > $dummy.c ; |
|
103 |
for c in cc gcc c89 ; do |
set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; |
104 |
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; |
(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) |
105 |
if test $? = 0 ; then |
|| (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; |
106 |
|
dummy=$tmpdir/dummy ; |
107 |
|
files="$dummy.c $dummy.o $dummy.rel $dummy" ; |
108 |
|
trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; |
109 |
|
case $CC_FOR_BUILD,$HOST_CC,$CC in |
110 |
|
,,) echo "int x;" > $dummy.c ; |
111 |
|
for c in cc gcc c89 c99 ; do |
112 |
|
if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then |
113 |
CC_FOR_BUILD="$c"; break ; |
CC_FOR_BUILD="$c"; break ; |
114 |
fi ; |
fi ; |
115 |
done ; |
done ; |
116 |
rm -f $dummy.c $dummy.o $dummy.rel ; |
rm -f $files ; |
117 |
if test x"$CC_FOR_BUILD" = x ; then |
if test x"$CC_FOR_BUILD" = x ; then |
118 |
CC_FOR_BUILD=no_compiler_found ; |
CC_FOR_BUILD=no_compiler_found ; |
119 |
fi |
fi |
120 |
;; |
;; |
121 |
,,*) CC_FOR_BUILD=$CC ;; |
,,*) CC_FOR_BUILD=$CC ;; |
122 |
,*,*) CC_FOR_BUILD=$HOST_CC ;; |
,*,*) CC_FOR_BUILD=$HOST_CC ;; |
123 |
esac' |
esac ; |
124 |
|
unset files' |
125 |
|
|
126 |
# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
127 |
# (ghazi@noc.rutgers.edu 1994-08-24) |
# (ghazi@noc.rutgers.edu 1994-08-24) |
138 |
|
|
139 |
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
140 |
*:NetBSD:*:*) |
*:NetBSD:*:*) |
141 |
# Netbsd (nbsd) targets should (where applicable) match one or |
# NetBSD (nbsd) targets should (where applicable) match one or |
142 |
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
143 |
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
144 |
# switched to ELF, *-*-netbsd* would select the old |
# switched to ELF, *-*-netbsd* would select the old |
145 |
# object file format. This provides both forward |
# object file format. This provides both forward |
146 |
# compatibility and a consistent mechanism for selecting the |
# compatibility and a consistent mechanism for selecting the |
147 |
# object file format. |
# object file format. |
148 |
# Determine the machine/vendor (is the vendor relevant). |
# |
149 |
case "${UNAME_MACHINE}" in |
# Note: NetBSD doesn't particularly care about the vendor |
150 |
amiga) machine=m68k-unknown ;; |
# portion of the name. We always set it to "unknown". |
151 |
arm32) machine=arm-unknown ;; |
sysctl="sysctl -n hw.machine_arch" |
152 |
atari*) machine=m68k-atari ;; |
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ |
153 |
sun3*) machine=m68k-sun ;; |
/usr/sbin/$sysctl 2>/dev/null || echo unknown)` |
154 |
mac68k) machine=m68k-apple ;; |
case "${UNAME_MACHINE_ARCH}" in |
155 |
macppc) machine=powerpc-apple ;; |
armeb) machine=armeb-unknown ;; |
156 |
hp3[0-9][05]) machine=m68k-hp ;; |
arm*) machine=arm-unknown ;; |
157 |
ibmrt|romp-ibm) machine=romp-ibm ;; |
sh3el) machine=shl-unknown ;; |
158 |
*) machine=${UNAME_MACHINE}-unknown ;; |
sh3eb) machine=sh-unknown ;; |
159 |
|
*) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
160 |
esac |
esac |
161 |
# The Operating System including object format, if it has switched |
# The Operating System including object format, if it has switched |
162 |
# to ELF recently, or will in the future. |
# to ELF recently, or will in the future. |
163 |
case "${UNAME_MACHINE}" in |
case "${UNAME_MACHINE_ARCH}" in |
164 |
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k) |
arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
165 |
eval $set_cc_for_build |
eval $set_cc_for_build |
166 |
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
167 |
| grep __ELF__ >/dev/null |
| grep __ELF__ >/dev/null |
184 |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
185 |
echo "${machine}-${os}${release}" |
echo "${machine}-${os}${release}" |
186 |
exit 0 ;; |
exit 0 ;; |
187 |
|
amiga:OpenBSD:*:*) |
188 |
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
189 |
|
exit 0 ;; |
190 |
|
arc:OpenBSD:*:*) |
191 |
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
192 |
|
exit 0 ;; |
193 |
|
hp300:OpenBSD:*:*) |
194 |
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
195 |
|
exit 0 ;; |
196 |
|
mac68k:OpenBSD:*:*) |
197 |
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
198 |
|
exit 0 ;; |
199 |
|
macppc:OpenBSD:*:*) |
200 |
|
echo powerpc-unknown-openbsd${UNAME_RELEASE} |
201 |
|
exit 0 ;; |
202 |
|
mvme68k:OpenBSD:*:*) |
203 |
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
204 |
|
exit 0 ;; |
205 |
|
mvme88k:OpenBSD:*:*) |
206 |
|
echo m88k-unknown-openbsd${UNAME_RELEASE} |
207 |
|
exit 0 ;; |
208 |
|
mvmeppc:OpenBSD:*:*) |
209 |
|
echo powerpc-unknown-openbsd${UNAME_RELEASE} |
210 |
|
exit 0 ;; |
211 |
|
pmax:OpenBSD:*:*) |
212 |
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
213 |
|
exit 0 ;; |
214 |
|
sgi:OpenBSD:*:*) |
215 |
|
echo mipseb-unknown-openbsd${UNAME_RELEASE} |
216 |
|
exit 0 ;; |
217 |
|
sun3:OpenBSD:*:*) |
218 |
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
219 |
|
exit 0 ;; |
220 |
|
wgrisc:OpenBSD:*:*) |
221 |
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
222 |
|
exit 0 ;; |
223 |
|
*:OpenBSD:*:*) |
224 |
|
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} |
225 |
|
exit 0 ;; |
226 |
alpha:OSF1:*:*) |
alpha:OSF1:*:*) |
227 |
if test $UNAME_RELEASE = "V4.0"; then |
if test $UNAME_RELEASE = "V4.0"; then |
228 |
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
231 |
# A Tn.n version is a released field test version. |
# A Tn.n version is a released field test version. |
232 |
# A Xn.n version is an unreleased experimental baselevel. |
# A Xn.n version is an unreleased experimental baselevel. |
233 |
# 1.2 uses "1.2" for uname -r. |
# 1.2 uses "1.2" for uname -r. |
234 |
|
eval $set_cc_for_build |
235 |
cat <<EOF >$dummy.s |
cat <<EOF >$dummy.s |
236 |
.data |
.data |
237 |
\$Lformat: |
\$Lformat: |
257 |
jsr \$26,exit |
jsr \$26,exit |
258 |
.end main |
.end main |
259 |
EOF |
EOF |
|
eval $set_cc_for_build |
|
260 |
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
261 |
if test "$?" = 0 ; then |
if test "$?" = 0 ; then |
262 |
case `./$dummy` in |
case `$dummy` in |
263 |
0-0) |
0-0) |
264 |
UNAME_MACHINE="alpha" |
UNAME_MACHINE="alpha" |
265 |
;; |
;; |
278 |
2-307) |
2-307) |
279 |
UNAME_MACHINE="alphaev67" |
UNAME_MACHINE="alphaev67" |
280 |
;; |
;; |
281 |
|
2-1307) |
282 |
|
UNAME_MACHINE="alphaev68" |
283 |
|
;; |
284 |
|
3-1307) |
285 |
|
UNAME_MACHINE="alphaev7" |
286 |
|
;; |
287 |
esac |
esac |
288 |
fi |
fi |
289 |
rm -f $dummy.s $dummy |
rm -f $dummy.s $dummy && rmdir $tmpdir |
290 |
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
291 |
exit 0 ;; |
exit 0 ;; |
292 |
Alpha\ *:Windows_NT*:*) |
Alpha\ *:Windows_NT*:*) |
301 |
Amiga*:UNIX_System_V:4.0:*) |
Amiga*:UNIX_System_V:4.0:*) |
302 |
echo m68k-unknown-sysv4 |
echo m68k-unknown-sysv4 |
303 |
exit 0;; |
exit 0;; |
|
amiga:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
304 |
*:[Aa]miga[Oo][Ss]:*:*) |
*:[Aa]miga[Oo][Ss]:*:*) |
305 |
echo ${UNAME_MACHINE}-unknown-amigaos |
echo ${UNAME_MACHINE}-unknown-amigaos |
306 |
exit 0 ;; |
exit 0 ;; |
307 |
arc64:OpenBSD:*:*) |
*:[Mm]orph[Oo][Ss]:*:*) |
308 |
echo mips64el-unknown-openbsd${UNAME_RELEASE} |
echo ${UNAME_MACHINE}-unknown-morphos |
|
exit 0 ;; |
|
|
arc:OpenBSD:*:*) |
|
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
hkmips:OpenBSD:*:*) |
|
|
echo mips-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
pmax:OpenBSD:*:*) |
|
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
sgi:OpenBSD:*:*) |
|
|
echo mips-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
wgrisc:OpenBSD:*:*) |
|
|
echo mipsel-unknown-openbsd${UNAME_RELEASE} |
|
309 |
exit 0 ;; |
exit 0 ;; |
310 |
*:OS/390:*:*) |
*:OS/390:*:*) |
311 |
echo i370-ibm-openedition |
echo i370-ibm-openedition |
327 |
NILE*:*:*:dcosx) |
NILE*:*:*:dcosx) |
328 |
echo pyramid-pyramid-svr4 |
echo pyramid-pyramid-svr4 |
329 |
exit 0 ;; |
exit 0 ;; |
330 |
|
DRS?6000:UNIX_SV:4.2*:7*) |
331 |
|
case `/usr/bin/uname -p` in |
332 |
|
sparc) echo sparc-icl-nx7 && exit 0 ;; |
333 |
|
esac ;; |
334 |
sun4H:SunOS:5.*:*) |
sun4H:SunOS:5.*:*) |
335 |
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
336 |
exit 0 ;; |
exit 0 ;; |
359 |
echo m68k-sun-sunos${UNAME_RELEASE} |
echo m68k-sun-sunos${UNAME_RELEASE} |
360 |
exit 0 ;; |
exit 0 ;; |
361 |
sun*:*:4.2BSD:*) |
sun*:*:4.2BSD:*) |
362 |
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
363 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
364 |
case "`/bin/arch`" in |
case "`/bin/arch`" in |
365 |
sun3) |
sun3) |
373 |
aushp:SunOS:*:*) |
aushp:SunOS:*:*) |
374 |
echo sparc-auspex-sunos${UNAME_RELEASE} |
echo sparc-auspex-sunos${UNAME_RELEASE} |
375 |
exit 0 ;; |
exit 0 ;; |
|
atari*:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
376 |
# The situation for MiNT is a little confusing. The machine name |
# The situation for MiNT is a little confusing. The machine name |
377 |
# can be virtually everything (everything which is not |
# can be virtually everything (everything which is not |
378 |
# "atarist" or "atariste" at least should have a processor |
# "atarist" or "atariste" at least should have a processor |
399 |
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
400 |
echo m68k-unknown-mint${UNAME_RELEASE} |
echo m68k-unknown-mint${UNAME_RELEASE} |
401 |
exit 0 ;; |
exit 0 ;; |
|
sun3*:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
mac68k:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
mvme68k:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
|
mvme88k:OpenBSD:*:*) |
|
|
echo m88k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
402 |
powerpc:machten:*:*) |
powerpc:machten:*:*) |
403 |
echo powerpc-apple-machten${UNAME_RELEASE} |
echo powerpc-apple-machten${UNAME_RELEASE} |
404 |
exit 0 ;; |
exit 0 ;; |
415 |
echo clipper-intergraph-clix${UNAME_RELEASE} |
echo clipper-intergraph-clix${UNAME_RELEASE} |
416 |
exit 0 ;; |
exit 0 ;; |
417 |
mips:*:*:UMIPS | mips:*:*:RISCos) |
mips:*:*:UMIPS | mips:*:*:RISCos) |
418 |
|
eval $set_cc_for_build |
419 |
sed 's/^ //' << EOF >$dummy.c |
sed 's/^ //' << EOF >$dummy.c |
420 |
#ifdef __cplusplus |
#ifdef __cplusplus |
421 |
#include <stdio.h> /* for printf() prototype */ |
#include <stdio.h> /* for printf() prototype */ |
437 |
exit (-1); |
exit (-1); |
438 |
} |
} |
439 |
EOF |
EOF |
|
eval $set_cc_for_build |
|
440 |
$CC_FOR_BUILD $dummy.c -o $dummy \ |
$CC_FOR_BUILD $dummy.c -o $dummy \ |
441 |
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
442 |
&& rm -f $dummy.c $dummy && exit 0 |
&& rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 |
443 |
rm -f $dummy.c $dummy |
rm -f $dummy.c $dummy && rmdir $tmpdir |
444 |
echo mips-mips-riscos${UNAME_RELEASE} |
echo mips-mips-riscos${UNAME_RELEASE} |
445 |
exit 0 ;; |
exit 0 ;; |
446 |
Motorola:PowerMAX_OS:*:*) |
Motorola:PowerMAX_OS:*:*) |
447 |
echo powerpc-motorola-powermax |
echo powerpc-motorola-powermax |
448 |
exit 0 ;; |
exit 0 ;; |
449 |
|
Motorola:*:4.3:PL8-*) |
450 |
|
echo powerpc-harris-powermax |
451 |
|
exit 0 ;; |
452 |
|
Night_Hawk:*:*:PowerMAX_OS) |
453 |
|
echo powerpc-harris-powermax |
454 |
|
exit 0 ;; |
455 |
Night_Hawk:Power_UNIX:*:*) |
Night_Hawk:Power_UNIX:*:*) |
456 |
echo powerpc-harris-powerunix |
echo powerpc-harris-powerunix |
457 |
exit 0 ;; |
exit 0 ;; |
512 |
exit 0 ;; |
exit 0 ;; |
513 |
*:AIX:2:3) |
*:AIX:2:3) |
514 |
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
515 |
|
eval $set_cc_for_build |
516 |
sed 's/^ //' << EOF >$dummy.c |
sed 's/^ //' << EOF >$dummy.c |
517 |
#include <sys/systemcfg.h> |
#include <sys/systemcfg.h> |
518 |
|
|
524 |
exit(0); |
exit(0); |
525 |
} |
} |
526 |
EOF |
EOF |
527 |
eval $set_cc_for_build |
$CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 |
528 |
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 |
rm -f $dummy.c $dummy && rmdir $tmpdir |
|
rm -f $dummy.c $dummy |
|
529 |
echo rs6000-ibm-aix3.2.5 |
echo rs6000-ibm-aix3.2.5 |
530 |
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
531 |
echo rs6000-ibm-aix3.2.4 |
echo rs6000-ibm-aix3.2.4 |
534 |
fi |
fi |
535 |
exit 0 ;; |
exit 0 ;; |
536 |
*:AIX:*:[45]) |
*:AIX:*:[45]) |
537 |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
538 |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
539 |
IBM_ARCH=rs6000 |
IBM_ARCH=rs6000 |
540 |
else |
else |
574 |
9000/31? ) HP_ARCH=m68000 ;; |
9000/31? ) HP_ARCH=m68000 ;; |
575 |
9000/[34]?? ) HP_ARCH=m68k ;; |
9000/[34]?? ) HP_ARCH=m68k ;; |
576 |
9000/[678][0-9][0-9]) |
9000/[678][0-9][0-9]) |
577 |
case "${HPUX_REV}" in |
if [ -x /usr/bin/getconf ]; then |
578 |
11.[0-9][0-9]) |
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
|
if [ -x /usr/bin/getconf ]; then |
|
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
|
579 |
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
580 |
case "${sc_cpu_version}" in |
case "${sc_cpu_version}" in |
581 |
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
584 |
case "${sc_kernel_bits}" in |
case "${sc_kernel_bits}" in |
585 |
32) HP_ARCH="hppa2.0n" ;; |
32) HP_ARCH="hppa2.0n" ;; |
586 |
64) HP_ARCH="hppa2.0w" ;; |
64) HP_ARCH="hppa2.0w" ;; |
587 |
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
588 |
esac ;; |
esac ;; |
589 |
esac |
esac |
590 |
fi ;; |
fi |
591 |
esac |
if [ "${HP_ARCH}" = "" ]; then |
592 |
if [ "${HP_ARCH}" = "" ]; then |
eval $set_cc_for_build |
593 |
sed 's/^ //' << EOF >$dummy.c |
sed 's/^ //' << EOF >$dummy.c |
594 |
|
|
595 |
#define _HPUX_SOURCE |
#define _HPUX_SOURCE |
596 |
#include <stdlib.h> |
#include <stdlib.h> |
623 |
exit (0); |
exit (0); |
624 |
} |
} |
625 |
EOF |
EOF |
626 |
eval $set_cc_for_build |
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` |
627 |
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` |
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi |
628 |
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi |
rm -f $dummy.c $dummy && rmdir $tmpdir |
629 |
rm -f $dummy.c $dummy |
fi ;; |
|
fi ;; |
|
630 |
esac |
esac |
631 |
echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
632 |
exit 0 ;; |
exit 0 ;; |
635 |
echo ia64-hp-hpux${HPUX_REV} |
echo ia64-hp-hpux${HPUX_REV} |
636 |
exit 0 ;; |
exit 0 ;; |
637 |
3050*:HI-UX:*:*) |
3050*:HI-UX:*:*) |
638 |
|
eval $set_cc_for_build |
639 |
sed 's/^ //' << EOF >$dummy.c |
sed 's/^ //' << EOF >$dummy.c |
640 |
#include <unistd.h> |
#include <unistd.h> |
641 |
int |
int |
661 |
exit (0); |
exit (0); |
662 |
} |
} |
663 |
EOF |
EOF |
664 |
eval $set_cc_for_build |
$CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 |
665 |
$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 |
rm -f $dummy.c $dummy && rmdir $tmpdir |
|
rm -f $dummy.c $dummy |
|
666 |
echo unknown-hitachi-hiuxwe2 |
echo unknown-hitachi-hiuxwe2 |
667 |
exit 0 ;; |
exit 0 ;; |
668 |
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
690 |
parisc*:Lites*:*:*) |
parisc*:Lites*:*:*) |
691 |
echo hppa1.1-hp-lites |
echo hppa1.1-hp-lites |
692 |
exit 0 ;; |
exit 0 ;; |
|
hppa*:OpenBSD:*:*) |
|
|
echo hppa-unknown-openbsd |
|
|
exit 0 ;; |
|
693 |
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
694 |
echo c1-convex-bsd |
echo c1-convex-bsd |
695 |
exit 0 ;; |
exit 0 ;; |
708 |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
709 |
echo c4-convex-bsd |
echo c4-convex-bsd |
710 |
exit 0 ;; |
exit 0 ;; |
|
CRAY*X-MP:*:*:*) |
|
|
echo xmp-cray-unicos |
|
|
exit 0 ;; |
|
711 |
CRAY*Y-MP:*:*:*) |
CRAY*Y-MP:*:*:*) |
712 |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
713 |
exit 0 ;; |
exit 0 ;; |
729 |
CRAY*SV1:*:*:*) |
CRAY*SV1:*:*:*) |
730 |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
731 |
exit 0 ;; |
exit 0 ;; |
|
CRAY-2:*:*:*) |
|
|
echo cray2-cray-unicos |
|
|
exit 0 ;; |
|
732 |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
733 |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
734 |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
735 |
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
736 |
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
737 |
exit 0 ;; |
exit 0 ;; |
|
hp300:OpenBSD:*:*) |
|
|
echo m68k-unknown-openbsd${UNAME_RELEASE} |
|
|
exit 0 ;; |
|
738 |
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
739 |
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
740 |
exit 0 ;; |
exit 0 ;; |
745 |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
746 |
exit 0 ;; |
exit 0 ;; |
747 |
*:FreeBSD:*:*) |
*:FreeBSD:*:*) |
748 |
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
# Determine whether the default compiler uses glibc. |
749 |
exit 0 ;; |
eval $set_cc_for_build |
750 |
*:OpenBSD:*:*) |
sed 's/^ //' << EOF >$dummy.c |
751 |
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
#include <features.h> |
752 |
|
#if __GLIBC__ >= 2 |
753 |
|
LIBC=gnu |
754 |
|
#else |
755 |
|
LIBC= |
756 |
|
#endif |
757 |
|
EOF |
758 |
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
759 |
|
rm -f $dummy.c && rmdir $tmpdir |
760 |
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
761 |
exit 0 ;; |
exit 0 ;; |
762 |
i*:CYGWIN*:*) |
i*:CYGWIN*:*) |
763 |
echo ${UNAME_MACHINE}-pc-cygwin |
echo ${UNAME_MACHINE}-pc-cygwin |
768 |
i*:PW*:*) |
i*:PW*:*) |
769 |
echo ${UNAME_MACHINE}-pc-pw32 |
echo ${UNAME_MACHINE}-pc-pw32 |
770 |
exit 0 ;; |
exit 0 ;; |
771 |
|
x86:Interix*:3*) |
772 |
|
echo i386-pc-interix3 |
773 |
|
exit 0 ;; |
774 |
i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
775 |
# How do we know it's Interix rather than the generic POSIX subsystem? |
# How do we know it's Interix rather than the generic POSIX subsystem? |
776 |
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
796 |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
797 |
exit 0 ;; |
exit 0 ;; |
798 |
ia64:Linux:*:*) |
ia64:Linux:*:*) |
799 |
echo ${UNAME_MACHINE}-unknown-linux |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
800 |
exit 0 ;; |
exit 0 ;; |
801 |
m68*:Linux:*:*) |
m68*:Linux:*:*) |
802 |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
803 |
exit 0 ;; |
exit 0 ;; |
804 |
mips:Linux:*:*) |
mips:Linux:*:*) |
805 |
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in |
eval $set_cc_for_build |
806 |
big) echo mips-unknown-linux-gnu && exit 0 ;; |
sed 's/^ //' << EOF >$dummy.c |
807 |
little) echo mipsel-unknown-linux-gnu && exit 0 ;; |
#undef CPU |
808 |
esac |
#undef mips |
809 |
|
#undef mipsel |
810 |
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
811 |
|
CPU=mipsel |
812 |
|
#else |
813 |
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
814 |
|
CPU=mips |
815 |
|
#else |
816 |
|
CPU= |
817 |
|
#endif |
818 |
|
#endif |
819 |
|
EOF |
820 |
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
821 |
|
rm -f $dummy.c && rmdir $tmpdir |
822 |
|
test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 |
823 |
;; |
;; |
824 |
ppc:Linux:*:*) |
ppc:Linux:*:*) |
825 |
echo powerpc-unknown-linux-gnu |
echo powerpc-unknown-linux-gnu |
826 |
exit 0 ;; |
exit 0 ;; |
827 |
|
ppc64:Linux:*:*) |
828 |
|
echo powerpc64-unknown-linux-gnu |
829 |
|
exit 0 ;; |
830 |
alpha:Linux:*:*) |
alpha:Linux:*:*) |
831 |
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
832 |
EV5) UNAME_MACHINE=alphaev5 ;; |
EV5) UNAME_MACHINE=alphaev5 ;; |
835 |
PCA57) UNAME_MACHINE=alphapca56 ;; |
PCA57) UNAME_MACHINE=alphapca56 ;; |
836 |
EV6) UNAME_MACHINE=alphaev6 ;; |
EV6) UNAME_MACHINE=alphaev6 ;; |
837 |
EV67) UNAME_MACHINE=alphaev67 ;; |
EV67) UNAME_MACHINE=alphaev67 ;; |
838 |
EV68*) UNAME_MACHINE=alphaev67 ;; |
EV68*) UNAME_MACHINE=alphaev68 ;; |
839 |
esac |
esac |
840 |
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
841 |
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
868 |
# The BFD linker knows what the default object file format is, so |
# The BFD linker knows what the default object file format is, so |
869 |
# first see if it will tell us. cd to the root directory to prevent |
# first see if it will tell us. cd to the root directory to prevent |
870 |
# problems with other programs or directories called `ld' in the path. |
# problems with other programs or directories called `ld' in the path. |
871 |
ld_supported_targets=`cd /; ld --help 2>&1 \ |
# Set LC_ALL=C to ensure ld outputs messages in English. |
872 |
|
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
873 |
| sed -ne '/supported targets:/!d |
| sed -ne '/supported targets:/!d |
874 |
s/[ ][ ]*/ /g |
s/[ ][ ]*/ /g |
875 |
s/.*supported targets: *// |
s/.*supported targets: *// |
881 |
;; |
;; |
882 |
a.out-i386-linux) |
a.out-i386-linux) |
883 |
echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
884 |
exit 0 ;; |
exit 0 ;; |
885 |
coff-i386) |
coff-i386) |
886 |
echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
887 |
exit 0 ;; |
exit 0 ;; |
892 |
exit 0 ;; |
exit 0 ;; |
893 |
esac |
esac |
894 |
# Determine whether the default compiler is a.out or elf |
# Determine whether the default compiler is a.out or elf |
|
cat >$dummy.c <<EOF |
|
|
#include <features.h> |
|
|
#ifdef __cplusplus |
|
|
#include <stdio.h> /* for printf() prototype */ |
|
|
int main (int argc, char *argv[]) { |
|
|
#else |
|
|
int main (argc, argv) int argc; char *argv[]; { |
|
|
#endif |
|
|
#ifdef __ELF__ |
|
|
# ifdef __GLIBC__ |
|
|
# if __GLIBC__ >= 2 |
|
|
printf ("%s-pc-linux-gnu\n", argv[1]); |
|
|
# else |
|
|
printf ("%s-pc-linux-gnulibc1\n", argv[1]); |
|
|
# endif |
|
|
# else |
|
|
printf ("%s-pc-linux-gnulibc1\n", argv[1]); |
|
|
# endif |
|
|
#else |
|
|
printf ("%s-pc-linux-gnuaout\n", argv[1]); |
|
|
#endif |
|
|
return 0; |
|
|
} |
|
|
EOF |
|
895 |
eval $set_cc_for_build |
eval $set_cc_for_build |
896 |
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0 |
sed 's/^ //' << EOF >$dummy.c |
897 |
rm -f $dummy.c $dummy |
#include <features.h> |
898 |
|
#ifdef __ELF__ |
899 |
|
# ifdef __GLIBC__ |
900 |
|
# if __GLIBC__ >= 2 |
901 |
|
LIBC=gnu |
902 |
|
# else |
903 |
|
LIBC=gnulibc1 |
904 |
|
# endif |
905 |
|
# else |
906 |
|
LIBC=gnulibc1 |
907 |
|
# endif |
908 |
|
#else |
909 |
|
#ifdef __INTEL_COMPILER |
910 |
|
LIBC=gnu |
911 |
|
#else |
912 |
|
LIBC=gnuaout |
913 |
|
#endif |
914 |
|
#endif |
915 |
|
EOF |
916 |
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
917 |
|
rm -f $dummy.c && rmdir $tmpdir |
918 |
|
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
919 |
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
920 |
;; |
;; |
921 |
i*86:DYNIX/ptx:4*:*) |
i*86:DYNIX/ptx:4*:*) |
953 |
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
954 |
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
955 |
elif /bin/uname -X 2>/dev/null >/dev/null ; then |
elif /bin/uname -X 2>/dev/null >/dev/null ; then |
956 |
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
957 |
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
958 |
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ |
959 |
&& UNAME_MACHINE=i586 |
&& UNAME_MACHINE=i586 |
960 |
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ |
961 |
&& UNAME_MACHINE=i686 |
&& UNAME_MACHINE=i686 |
962 |
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ |
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
963 |
&& UNAME_MACHINE=i686 |
&& UNAME_MACHINE=i686 |
964 |
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
965 |
else |
else |
992 |
# "miniframe" |
# "miniframe" |
993 |
echo m68010-convergent-sysv |
echo m68010-convergent-sysv |
994 |
exit 0 ;; |
exit 0 ;; |
995 |
|
mc68k:UNIX:SYSTEM5:3.51m) |
996 |
|
echo m68k-convergent-sysv |
997 |
|
exit 0 ;; |
998 |
M68*:*:R3V[567]*:*) |
M68*:*:R3V[567]*:*) |
999 |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
1000 |
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) |
3[34]??:*: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) |
1001 |
OS_REL='' |
OS_REL='' |
1002 |
test -r /etc/.relid \ |
test -r /etc/.relid \ |
1003 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1043 |
echo ns32k-sni-sysv |
echo ns32k-sni-sysv |
1044 |
fi |
fi |
1045 |
exit 0 ;; |
exit 0 ;; |
1046 |
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1047 |
# says <Richard.M.Bartel@ccMail.Census.GOV> |
# says <Richard.M.Bartel@ccMail.Census.GOV> |
1048 |
echo i586-unisys-sysv4 |
echo i586-unisys-sysv4 |
1049 |
exit 0 ;; |
exit 0 ;; |
1050 |
*:UNIX_System_V:4*:FTX*) |
*:UNIX_System_V:4*:FTX*) |
1056 |
# From seanf@swdc.stratus.com. |
# From seanf@swdc.stratus.com. |
1057 |
echo i860-stratus-sysv4 |
echo i860-stratus-sysv4 |
1058 |
exit 0 ;; |
exit 0 ;; |
1059 |
|
*:VOS:*:*) |
1060 |
|
# From Paul.Green@stratus.com. |
1061 |
|
echo hppa1.1-stratus-vos |
1062 |
|
exit 0 ;; |
1063 |
mc68*:A/UX:*:*) |
mc68*:A/UX:*:*) |
1064 |
echo m68k-apple-aux${UNAME_RELEASE} |
echo m68k-apple-aux${UNAME_RELEASE} |
1065 |
exit 0 ;; |
exit 0 ;; |
1088 |
SX-5:SUPER-UX:*:*) |
SX-5:SUPER-UX:*:*) |
1089 |
echo sx5-nec-superux${UNAME_RELEASE} |
echo sx5-nec-superux${UNAME_RELEASE} |
1090 |
exit 0 ;; |
exit 0 ;; |
1091 |
|
SX-6:SUPER-UX:*:*) |
1092 |
|
echo sx6-nec-superux${UNAME_RELEASE} |
1093 |
|
exit 0 ;; |
1094 |
Power*:Rhapsody:*:*) |
Power*:Rhapsody:*:*) |
1095 |
echo powerpc-apple-rhapsody${UNAME_RELEASE} |
echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1096 |
exit 0 ;; |
exit 0 ;; |
1101 |
echo `uname -p`-apple-darwin${UNAME_RELEASE} |
echo `uname -p`-apple-darwin${UNAME_RELEASE} |
1102 |
exit 0 ;; |
exit 0 ;; |
1103 |
*:procnto*:*:* | *:QNX:[0123456789]*:*) |
*:procnto*:*:* | *:QNX:[0123456789]*:*) |
1104 |
if test "${UNAME_MACHINE}" = "x86pc"; then |
UNAME_PROCESSOR=`uname -p` |
1105 |
|
if test "$UNAME_PROCESSOR" = "x86"; then |
1106 |
|
UNAME_PROCESSOR=i386 |
1107 |
UNAME_MACHINE=pc |
UNAME_MACHINE=pc |
1108 |
fi |
fi |
1109 |
echo `uname -p`-${UNAME_MACHINE}-nto-qnx |
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1110 |
exit 0 ;; |
exit 0 ;; |
1111 |
*:QNX:*:4*) |
*:QNX:*:4*) |
1112 |
echo i386-pc-qnx |
echo i386-pc-qnx |
1113 |
exit 0 ;; |
exit 0 ;; |
1114 |
NSR-[KW]:NONSTOP_KERNEL:*:*) |
NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) |
1115 |
echo nsr-tandem-nsk${UNAME_RELEASE} |
echo nsr-tandem-nsk${UNAME_RELEASE} |
1116 |
exit 0 ;; |
exit 0 ;; |
1117 |
*:NonStop-UX:*:*) |
*:NonStop-UX:*:*) |
1157 |
*:ITS:*:*) |
*:ITS:*:*) |
1158 |
echo pdp10-unknown-its |
echo pdp10-unknown-its |
1159 |
exit 0 ;; |
exit 0 ;; |
1160 |
|
i*86:XTS-300:*:STOP) |
1161 |
|
echo ${UNAME_MACHINE}-unknown-stop |
1162 |
|
exit 0 ;; |
1163 |
|
i*86:atheos:*:*) |
1164 |
|
echo ${UNAME_MACHINE}-unknown-atheos |
1165 |
|
exit 0 ;; |
1166 |
esac |
esac |
1167 |
|
|
1168 |
#echo '(No uname command or uname output not recognized.)' 1>&2 |
#echo '(No uname command or uname output not recognized.)' 1>&2 |
1169 |
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1170 |
|
|
1171 |
|
eval $set_cc_for_build |
1172 |
cat >$dummy.c <<EOF |
cat >$dummy.c <<EOF |
1173 |
#ifdef _SEQUENT_ |
#ifdef _SEQUENT_ |
1174 |
# include <sys/types.h> |
# include <sys/types.h> |
1283 |
} |
} |
1284 |
EOF |
EOF |
1285 |
|
|
1286 |
eval $set_cc_for_build |
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 |
1287 |
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 |
rm -f $dummy.c $dummy && rmdir $tmpdir |
|
rm -f $dummy.c $dummy |
|
1288 |
|
|
1289 |
# Apollos put the system type in the environment. |
# Apollos put the system type in the environment. |
1290 |
|
|