nutcracker 0.4.1.22 → 0.4.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/nutcracker/Makefile.in +9 -6
- data/ext/nutcracker/aclocal.m4 +86 -103
- data/ext/nutcracker/autom4te.cache/output.0 +96 -95
- data/ext/nutcracker/autom4te.cache/output.1 +96 -95
- data/ext/nutcracker/autom4te.cache/requests +221 -221
- data/ext/nutcracker/autom4te.cache/traces.0 +92 -106
- data/ext/nutcracker/autom4te.cache/traces.1 +9 -9
- data/ext/nutcracker/config/compile +4 -4
- data/ext/nutcracker/config/config.guess +281 -278
- data/ext/nutcracker/config/config.sub +107 -142
- data/ext/nutcracker/config/depcomp +4 -4
- data/ext/nutcracker/config/install-sh +31 -14
- data/ext/nutcracker/config/missing +7 -7
- data/ext/nutcracker/configure +96 -95
- data/ext/nutcracker/contrib/Makefile.in +9 -6
- data/ext/nutcracker/contrib/yaml-0.1.4/Makefile.in +9 -6
- data/ext/nutcracker/contrib/yaml-0.1.4/aclocal.m4 +86 -103
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +96 -95
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +96 -95
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +96 -95
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +390 -390
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +92 -106
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +9 -9
- data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +92 -106
- data/ext/nutcracker/contrib/yaml-0.1.4/config/compile +4 -4
- data/ext/nutcracker/contrib/yaml-0.1.4/config/config.guess +281 -278
- data/ext/nutcracker/contrib/yaml-0.1.4/config/config.sub +107 -142
- data/ext/nutcracker/contrib/yaml-0.1.4/config/depcomp +4 -4
- data/ext/nutcracker/contrib/yaml-0.1.4/config/install-sh +31 -14
- data/ext/nutcracker/contrib/yaml-0.1.4/config/missing +7 -7
- data/ext/nutcracker/contrib/yaml-0.1.4/config/test-driver +4 -4
- data/ext/nutcracker/contrib/yaml-0.1.4/configure +96 -95
- data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile.in +53 -26
- data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile.in +58 -22
- data/ext/nutcracker/src/Makefile.in +93 -41
- data/ext/nutcracker/src/event/Makefile.in +36 -21
- data/ext/nutcracker/src/hashkit/Makefile.in +64 -29
- data/ext/nutcracker/src/proto/Makefile.in +33 -20
- data/lib/nutcracker.rb +6 -4
- data/lib/nutcracker/version.rb +1 -1
- metadata +5 -4
@@ -1,9 +1,9 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Wrapper for compilers which do not understand '-c -o'.
|
3
3
|
|
4
|
-
scriptversion=
|
4
|
+
scriptversion=2018-03-07.03; # UTC
|
5
5
|
|
6
|
-
# Copyright (C) 1999-
|
6
|
+
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
7
7
|
# Written by Tom Tromey <tromey@cygnus.com>.
|
8
8
|
#
|
9
9
|
# This program is free software; you can redistribute it and/or modify
|
@@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC
|
|
17
17
|
# GNU General Public License for more details.
|
18
18
|
#
|
19
19
|
# You should have received a copy of the GNU General Public License
|
20
|
-
# along with this program. If not, see <
|
20
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
21
21
|
|
22
22
|
# As a special exception to the GNU General Public License, if you
|
23
23
|
# distribute this file as part of a program that contains a
|
@@ -340,7 +340,7 @@ exit $ret
|
|
340
340
|
# Local Variables:
|
341
341
|
# mode: shell-script
|
342
342
|
# sh-indentation: 2
|
343
|
-
# eval: (add-hook '
|
343
|
+
# eval: (add-hook 'before-save-hook 'time-stamp)
|
344
344
|
# time-stamp-start: "scriptversion="
|
345
345
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
346
346
|
# time-stamp-time-zone: "UTC0"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Attempt to guess a canonical system name.
|
3
|
-
# Copyright 1992-
|
3
|
+
# Copyright 1992-2018 Free Software Foundation, Inc.
|
4
4
|
|
5
|
-
timestamp='
|
5
|
+
timestamp='2018-03-08'
|
6
6
|
|
7
7
|
# This file is free software; you can redistribute it and/or modify it
|
8
8
|
# under the terms of the GNU General Public License as published by
|
@@ -15,7 +15,7 @@ timestamp='2017-05-27'
|
|
15
15
|
# General Public License for more details.
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
|
-
# along with this program; if not, see <
|
18
|
+
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
# As a special exception to the GNU General Public License, if you
|
21
21
|
# distribute this file as part of a program that contains a
|
@@ -27,7 +27,7 @@ timestamp='2017-05-27'
|
|
27
27
|
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
|
28
28
|
#
|
29
29
|
# You can get the latest version of this script from:
|
30
|
-
#
|
30
|
+
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
|
31
31
|
#
|
32
32
|
# Please send patches to <config-patches@gnu.org>.
|
33
33
|
|
@@ -39,7 +39,7 @@ Usage: $0 [OPTION]
|
|
39
39
|
|
40
40
|
Output the configuration name of the system \`$me' is run on.
|
41
41
|
|
42
|
-
|
42
|
+
Options:
|
43
43
|
-h, --help print this help, then exit
|
44
44
|
-t, --time-stamp print date of last modification, then exit
|
45
45
|
-v, --version print version number, then exit
|
@@ -50,7 +50,7 @@ version="\
|
|
50
50
|
GNU config.guess ($timestamp)
|
51
51
|
|
52
52
|
Originally written by Per Bothner.
|
53
|
-
Copyright 1992-
|
53
|
+
Copyright 1992-2018 Free Software Foundation, Inc.
|
54
54
|
|
55
55
|
This is free software; see the source for copying conditions. There is NO
|
56
56
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
@@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
|
107
107
|
dummy=$tmp/dummy ;
|
108
108
|
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
|
109
109
|
case $CC_FOR_BUILD,$HOST_CC,$CC in
|
110
|
-
,,) echo "int x;" > $dummy.c ;
|
110
|
+
,,) echo "int x;" > "$dummy.c" ;
|
111
111
|
for c in cc gcc c89 c99 ; do
|
112
|
-
if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
|
112
|
+
if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
|
113
113
|
CC_FOR_BUILD="$c"; break ;
|
114
114
|
fi ;
|
115
115
|
done ;
|
@@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
|
132
132
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
133
133
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
134
134
|
|
135
|
-
case "$
|
135
|
+
case "$UNAME_SYSTEM" in
|
136
136
|
Linux|GNU|GNU/*)
|
137
137
|
# If the system lacks a compiler, then just pick glibc.
|
138
138
|
# We could probably try harder.
|
139
139
|
LIBC=gnu
|
140
140
|
|
141
|
-
eval $set_cc_for_build
|
142
|
-
cat <<-EOF > $dummy.c
|
141
|
+
eval "$set_cc_for_build"
|
142
|
+
cat <<-EOF > "$dummy.c"
|
143
143
|
#include <features.h>
|
144
144
|
#if defined(__UCLIBC__)
|
145
145
|
LIBC=uclibc
|
@@ -149,13 +149,20 @@ Linux|GNU|GNU/*)
|
|
149
149
|
LIBC=gnu
|
150
150
|
#endif
|
151
151
|
EOF
|
152
|
-
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
|
152
|
+
eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
|
153
|
+
|
154
|
+
# If ldd exists, use it to detect musl libc.
|
155
|
+
if command -v ldd >/dev/null && \
|
156
|
+
ldd --version 2>&1 | grep -q ^musl
|
157
|
+
then
|
158
|
+
LIBC=musl
|
159
|
+
fi
|
153
160
|
;;
|
154
161
|
esac
|
155
162
|
|
156
163
|
# Note: order is significant - the case branches are not exclusive.
|
157
164
|
|
158
|
-
case "$
|
165
|
+
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
|
159
166
|
*:NetBSD:*:*)
|
160
167
|
# NetBSD (nbsd) targets should (where applicable) match one or
|
161
168
|
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
@@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
169
176
|
# portion of the name. We always set it to "unknown".
|
170
177
|
sysctl="sysctl -n hw.machine_arch"
|
171
178
|
UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
|
172
|
-
/sbin/$sysctl 2>/dev/null || \
|
173
|
-
/usr/sbin/$sysctl 2>/dev/null || \
|
179
|
+
"/sbin/$sysctl" 2>/dev/null || \
|
180
|
+
"/usr/sbin/$sysctl" 2>/dev/null || \
|
174
181
|
echo unknown)`
|
175
|
-
case "$
|
182
|
+
case "$UNAME_MACHINE_ARCH" in
|
176
183
|
armeb) machine=armeb-unknown ;;
|
177
184
|
arm*) machine=arm-unknown ;;
|
178
185
|
sh3el) machine=shl-unknown ;;
|
179
186
|
sh3eb) machine=sh-unknown ;;
|
180
187
|
sh5el) machine=sh5le-unknown ;;
|
181
188
|
earmv*)
|
182
|
-
arch=`echo $
|
183
|
-
endian=`echo $
|
184
|
-
machine
|
189
|
+
arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
|
190
|
+
endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
|
191
|
+
machine="${arch}${endian}"-unknown
|
185
192
|
;;
|
186
|
-
*) machine
|
193
|
+
*) machine="$UNAME_MACHINE_ARCH"-unknown ;;
|
187
194
|
esac
|
188
195
|
# The Operating System including object format, if it has switched
|
189
196
|
# to ELF recently (or will in the future) and ABI.
|
190
|
-
case "$
|
197
|
+
case "$UNAME_MACHINE_ARCH" in
|
191
198
|
earm*)
|
192
199
|
os=netbsdelf
|
193
200
|
;;
|
194
201
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
195
|
-
eval $set_cc_for_build
|
202
|
+
eval "$set_cc_for_build"
|
196
203
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
197
204
|
| grep -q __ELF__
|
198
205
|
then
|
@@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
208
215
|
;;
|
209
216
|
esac
|
210
217
|
# Determine ABI tags.
|
211
|
-
case "$
|
218
|
+
case "$UNAME_MACHINE_ARCH" in
|
212
219
|
earm*)
|
213
220
|
expr='s/^earmv[0-9]/-eabi/;s/eb$//'
|
214
|
-
abi=`echo $
|
221
|
+
abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
|
215
222
|
;;
|
216
223
|
esac
|
217
224
|
# The OS release
|
@@ -219,46 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
219
226
|
# thus, need a distinct triplet. However, they do not need
|
220
227
|
# kernel version information, so it can be replaced with a
|
221
228
|
# suitable tag, in the style of linux-gnu.
|
222
|
-
case "$
|
229
|
+
case "$UNAME_VERSION" in
|
223
230
|
Debian*)
|
224
231
|
release='-gnu'
|
225
232
|
;;
|
226
233
|
*)
|
227
|
-
release=`echo $
|
234
|
+
release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
|
228
235
|
;;
|
229
236
|
esac
|
230
237
|
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
231
238
|
# contains redundant information, the shorter form:
|
232
239
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
233
|
-
echo "$
|
240
|
+
echo "$machine-${os}${release}${abi}"
|
234
241
|
exit ;;
|
235
242
|
*:Bitrig:*:*)
|
236
243
|
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
237
|
-
echo $
|
244
|
+
echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
|
238
245
|
exit ;;
|
239
246
|
*:OpenBSD:*:*)
|
240
247
|
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
241
|
-
echo $
|
248
|
+
echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
|
242
249
|
exit ;;
|
243
250
|
*:LibertyBSD:*:*)
|
244
251
|
UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
|
245
|
-
echo $
|
252
|
+
echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
|
253
|
+
exit ;;
|
254
|
+
*:MidnightBSD:*:*)
|
255
|
+
echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
|
246
256
|
exit ;;
|
247
257
|
*:ekkoBSD:*:*)
|
248
|
-
echo $
|
258
|
+
echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
|
249
259
|
exit ;;
|
250
260
|
*:SolidBSD:*:*)
|
251
|
-
echo $
|
261
|
+
echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
|
252
262
|
exit ;;
|
253
263
|
macppc:MirBSD:*:*)
|
254
|
-
echo powerpc-unknown-mirbsd$
|
264
|
+
echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
|
255
265
|
exit ;;
|
256
266
|
*:MirBSD:*:*)
|
257
|
-
echo $
|
267
|
+
echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
|
258
268
|
exit ;;
|
259
269
|
*:Sortix:*:*)
|
260
|
-
echo $
|
270
|
+
echo "$UNAME_MACHINE"-unknown-sortix
|
271
|
+
exit ;;
|
272
|
+
*:Redox:*:*)
|
273
|
+
echo "$UNAME_MACHINE"-unknown-redox
|
261
274
|
exit ;;
|
275
|
+
mips:OSF1:*.*)
|
276
|
+
echo mips-dec-osf1
|
277
|
+
exit ;;
|
262
278
|
alpha:OSF1:*:*)
|
263
279
|
case $UNAME_RELEASE in
|
264
280
|
*4.0)
|
@@ -310,28 +326,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
310
326
|
# A Tn.n version is a released field test version.
|
311
327
|
# A Xn.n version is an unreleased experimental baselevel.
|
312
328
|
# 1.2 uses "1.2" for uname -r.
|
313
|
-
echo $
|
329
|
+
echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
314
330
|
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
315
331
|
exitcode=$?
|
316
332
|
trap '' 0
|
317
333
|
exit $exitcode ;;
|
318
|
-
Alpha\ *:Windows_NT*:*)
|
319
|
-
# How do we know it's Interix rather than the generic POSIX subsystem?
|
320
|
-
# Should we change UNAME_MACHINE based on the output of uname instead
|
321
|
-
# of the specific Alpha model?
|
322
|
-
echo alpha-pc-interix
|
323
|
-
exit ;;
|
324
|
-
21064:Windows_NT:50:3)
|
325
|
-
echo alpha-dec-winnt3.5
|
326
|
-
exit ;;
|
327
334
|
Amiga*:UNIX_System_V:4.0:*)
|
328
335
|
echo m68k-unknown-sysv4
|
329
336
|
exit ;;
|
330
337
|
*:[Aa]miga[Oo][Ss]:*:*)
|
331
|
-
echo $
|
338
|
+
echo "$UNAME_MACHINE"-unknown-amigaos
|
332
339
|
exit ;;
|
333
340
|
*:[Mm]orph[Oo][Ss]:*:*)
|
334
|
-
echo $
|
341
|
+
echo "$UNAME_MACHINE"-unknown-morphos
|
335
342
|
exit ;;
|
336
343
|
*:OS/390:*:*)
|
337
344
|
echo i370-ibm-openedition
|
@@ -343,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
343
350
|
echo powerpc-ibm-os400
|
344
351
|
exit ;;
|
345
352
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
346
|
-
echo arm-acorn-riscix$
|
353
|
+
echo arm-acorn-riscix"$UNAME_RELEASE"
|
347
354
|
exit ;;
|
348
355
|
arm*:riscos:*:*|arm*:RISCOS:*:*)
|
349
356
|
echo arm-unknown-riscos
|
@@ -370,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
370
377
|
sparc) echo sparc-icl-nx7; exit ;;
|
371
378
|
esac ;;
|
372
379
|
s390x:SunOS:*:*)
|
373
|
-
echo $
|
380
|
+
echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
|
374
381
|
exit ;;
|
375
382
|
sun4H:SunOS:5.*:*)
|
376
|
-
echo sparc-hal-solaris2`echo $
|
383
|
+
echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
|
377
384
|
exit ;;
|
378
385
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
379
|
-
echo sparc-sun-solaris2`echo $
|
386
|
+
echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
|
380
387
|
exit ;;
|
381
388
|
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
382
|
-
echo i386-pc-auroraux$
|
389
|
+
echo i386-pc-auroraux"$UNAME_RELEASE"
|
383
390
|
exit ;;
|
384
391
|
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
385
|
-
eval $set_cc_for_build
|
392
|
+
eval "$set_cc_for_build"
|
386
393
|
SUN_ARCH=i386
|
387
394
|
# If there is a compiler, see if it is configured for 64-bit objects.
|
388
395
|
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
@@ -395,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
395
402
|
SUN_ARCH=x86_64
|
396
403
|
fi
|
397
404
|
fi
|
398
|
-
echo $
|
405
|
+
echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
|
399
406
|
exit ;;
|
400
407
|
sun4*:SunOS:6*:*)
|
401
408
|
# According to config.sub, this is the proper way to canonicalize
|
402
409
|
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
403
410
|
# it's likely to be more like Solaris than SunOS4.
|
404
|
-
echo sparc-sun-solaris3`echo $
|
411
|
+
echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
|
405
412
|
exit ;;
|
406
413
|
sun4*:SunOS:*:*)
|
407
414
|
case "`/usr/bin/arch -k`" in
|
@@ -410,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
410
417
|
;;
|
411
418
|
esac
|
412
419
|
# Japanese Language versions have a version number like `4.1.3-JL'.
|
413
|
-
echo sparc-sun-sunos`echo $
|
420
|
+
echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
|
414
421
|
exit ;;
|
415
422
|
sun3*:SunOS:*:*)
|
416
|
-
echo m68k-sun-sunos$
|
423
|
+
echo m68k-sun-sunos"$UNAME_RELEASE"
|
417
424
|
exit ;;
|
418
425
|
sun*:*:4.2BSD:*)
|
419
426
|
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
420
|
-
test "x$
|
427
|
+
test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
|
421
428
|
case "`/bin/arch`" in
|
422
429
|
sun3)
|
423
|
-
echo m68k-sun-sunos$
|
430
|
+
echo m68k-sun-sunos"$UNAME_RELEASE"
|
424
431
|
;;
|
425
432
|
sun4)
|
426
|
-
echo sparc-sun-sunos$
|
433
|
+
echo sparc-sun-sunos"$UNAME_RELEASE"
|
427
434
|
;;
|
428
435
|
esac
|
429
436
|
exit ;;
|
430
437
|
aushp:SunOS:*:*)
|
431
|
-
echo sparc-auspex-sunos$
|
438
|
+
echo sparc-auspex-sunos"$UNAME_RELEASE"
|
432
439
|
exit ;;
|
433
440
|
# The situation for MiNT is a little confusing. The machine name
|
434
441
|
# can be virtually everything (everything which is not
|
@@ -439,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
439
446
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
440
447
|
# be no problem.
|
441
448
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
442
|
-
echo m68k-atari-mint$
|
449
|
+
echo m68k-atari-mint"$UNAME_RELEASE"
|
443
450
|
exit ;;
|
444
451
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
445
|
-
echo m68k-atari-mint$
|
452
|
+
echo m68k-atari-mint"$UNAME_RELEASE"
|
446
453
|
exit ;;
|
447
454
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
448
|
-
echo m68k-atari-mint$
|
455
|
+
echo m68k-atari-mint"$UNAME_RELEASE"
|
449
456
|
exit ;;
|
450
457
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
451
|
-
echo m68k-milan-mint$
|
458
|
+
echo m68k-milan-mint"$UNAME_RELEASE"
|
452
459
|
exit ;;
|
453
460
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
454
|
-
echo m68k-hades-mint$
|
461
|
+
echo m68k-hades-mint"$UNAME_RELEASE"
|
455
462
|
exit ;;
|
456
463
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
457
|
-
echo m68k-unknown-mint$
|
464
|
+
echo m68k-unknown-mint"$UNAME_RELEASE"
|
458
465
|
exit ;;
|
459
466
|
m68k:machten:*:*)
|
460
|
-
echo m68k-apple-machten$
|
467
|
+
echo m68k-apple-machten"$UNAME_RELEASE"
|
461
468
|
exit ;;
|
462
469
|
powerpc:machten:*:*)
|
463
|
-
echo powerpc-apple-machten$
|
470
|
+
echo powerpc-apple-machten"$UNAME_RELEASE"
|
464
471
|
exit ;;
|
465
472
|
RISC*:Mach:*:*)
|
466
473
|
echo mips-dec-mach_bsd4.3
|
467
474
|
exit ;;
|
468
475
|
RISC*:ULTRIX:*:*)
|
469
|
-
echo mips-dec-ultrix$
|
476
|
+
echo mips-dec-ultrix"$UNAME_RELEASE"
|
470
477
|
exit ;;
|
471
478
|
VAX*:ULTRIX*:*:*)
|
472
|
-
echo vax-dec-ultrix$
|
479
|
+
echo vax-dec-ultrix"$UNAME_RELEASE"
|
473
480
|
exit ;;
|
474
481
|
2020:CLIX:*:* | 2430:CLIX:*:*)
|
475
|
-
echo clipper-intergraph-clix$
|
482
|
+
echo clipper-intergraph-clix"$UNAME_RELEASE"
|
476
483
|
exit ;;
|
477
484
|
mips:*:*:UMIPS | mips:*:*:RISCos)
|
478
|
-
eval $set_cc_for_build
|
479
|
-
sed 's/^ //' << EOF
|
485
|
+
eval "$set_cc_for_build"
|
486
|
+
sed 's/^ //' << EOF > "$dummy.c"
|
480
487
|
#ifdef __cplusplus
|
481
488
|
#include <stdio.h> /* for printf() prototype */
|
482
489
|
int main (int argc, char *argv[]) {
|
@@ -485,23 +492,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
485
492
|
#endif
|
486
493
|
#if defined (host_mips) && defined (MIPSEB)
|
487
494
|
#if defined (SYSTYPE_SYSV)
|
488
|
-
printf ("mips-mips-riscos%ssysv
|
495
|
+
printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
|
489
496
|
#endif
|
490
497
|
#if defined (SYSTYPE_SVR4)
|
491
|
-
printf ("mips-mips-riscos%ssvr4
|
498
|
+
printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
|
492
499
|
#endif
|
493
500
|
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
494
|
-
printf ("mips-mips-riscos%sbsd
|
501
|
+
printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
|
495
502
|
#endif
|
496
503
|
#endif
|
497
504
|
exit (-1);
|
498
505
|
}
|
499
506
|
EOF
|
500
|
-
$CC_FOR_BUILD -o $dummy $dummy.c &&
|
501
|
-
dummyarg=`echo "$
|
502
|
-
SYSTEM_NAME
|
507
|
+
$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
|
508
|
+
dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
|
509
|
+
SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
|
503
510
|
{ echo "$SYSTEM_NAME"; exit; }
|
504
|
-
echo mips-mips-riscos$
|
511
|
+
echo mips-mips-riscos"$UNAME_RELEASE"
|
505
512
|
exit ;;
|
506
513
|
Motorola:PowerMAX_OS:*:*)
|
507
514
|
echo powerpc-motorola-powermax
|
@@ -527,17 +534,17 @@ EOF
|
|
527
534
|
AViiON:dgux:*:*)
|
528
535
|
# DG/UX returns AViiON for all architectures
|
529
536
|
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
530
|
-
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
537
|
+
if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
|
531
538
|
then
|
532
|
-
if [ $
|
533
|
-
[ $
|
539
|
+
if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
|
540
|
+
[ "$TARGET_BINARY_INTERFACE"x = x ]
|
534
541
|
then
|
535
|
-
echo m88k-dg-dgux$
|
542
|
+
echo m88k-dg-dgux"$UNAME_RELEASE"
|
536
543
|
else
|
537
|
-
echo m88k-dg-dguxbcs$
|
544
|
+
echo m88k-dg-dguxbcs"$UNAME_RELEASE"
|
538
545
|
fi
|
539
546
|
else
|
540
|
-
echo i586-dg-dgux$
|
547
|
+
echo i586-dg-dgux"$UNAME_RELEASE"
|
541
548
|
fi
|
542
549
|
exit ;;
|
543
550
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
@@ -554,7 +561,7 @@ EOF
|
|
554
561
|
echo m68k-tektronix-bsd
|
555
562
|
exit ;;
|
556
563
|
*:IRIX*:*:*)
|
557
|
-
echo mips-sgi-irix`echo $
|
564
|
+
echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
|
558
565
|
exit ;;
|
559
566
|
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
560
567
|
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
@@ -566,14 +573,14 @@ EOF
|
|
566
573
|
if [ -x /usr/bin/oslevel ] ; then
|
567
574
|
IBM_REV=`/usr/bin/oslevel`
|
568
575
|
else
|
569
|
-
IBM_REV
|
576
|
+
IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
|
570
577
|
fi
|
571
|
-
echo $
|
578
|
+
echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
|
572
579
|
exit ;;
|
573
580
|
*:AIX:2:3)
|
574
581
|
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
575
|
-
eval $set_cc_for_build
|
576
|
-
sed 's/^ //' << EOF
|
582
|
+
eval "$set_cc_for_build"
|
583
|
+
sed 's/^ //' << EOF > "$dummy.c"
|
577
584
|
#include <sys/systemcfg.h>
|
578
585
|
|
579
586
|
main()
|
@@ -584,7 +591,7 @@ EOF
|
|
584
591
|
exit(0);
|
585
592
|
}
|
586
593
|
EOF
|
587
|
-
if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME
|
594
|
+
if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
|
588
595
|
then
|
589
596
|
echo "$SYSTEM_NAME"
|
590
597
|
else
|
@@ -598,7 +605,7 @@ EOF
|
|
598
605
|
exit ;;
|
599
606
|
*:AIX:*:[4567])
|
600
607
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
601
|
-
if /usr/sbin/lsattr -El $
|
608
|
+
if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
|
602
609
|
IBM_ARCH=rs6000
|
603
610
|
else
|
604
611
|
IBM_ARCH=powerpc
|
@@ -607,18 +614,18 @@ EOF
|
|
607
614
|
IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
|
608
615
|
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
|
609
616
|
else
|
610
|
-
IBM_REV
|
617
|
+
IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
|
611
618
|
fi
|
612
|
-
echo $
|
619
|
+
echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
|
613
620
|
exit ;;
|
614
621
|
*:AIX:*:*)
|
615
622
|
echo rs6000-ibm-aix
|
616
623
|
exit ;;
|
617
|
-
ibmrt:4.4BSD:*|romp-ibm:
|
624
|
+
ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
|
618
625
|
echo romp-ibm-bsd4.4
|
619
626
|
exit ;;
|
620
627
|
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
621
|
-
echo romp-ibm-bsd$
|
628
|
+
echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
|
622
629
|
exit ;; # report: romp-ibm BSD 4.3
|
623
630
|
*:BOSX:*:*)
|
624
631
|
echo rs6000-bull-bosx
|
@@ -633,28 +640,28 @@ EOF
|
|
633
640
|
echo m68k-hp-bsd4.4
|
634
641
|
exit ;;
|
635
642
|
9000/[34678]??:HP-UX:*:*)
|
636
|
-
HPUX_REV=`echo $
|
637
|
-
case "$
|
638
|
-
9000/31?
|
639
|
-
9000/[34]??
|
643
|
+
HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
|
644
|
+
case "$UNAME_MACHINE" in
|
645
|
+
9000/31?) HP_ARCH=m68000 ;;
|
646
|
+
9000/[34]??) HP_ARCH=m68k ;;
|
640
647
|
9000/[678][0-9][0-9])
|
641
648
|
if [ -x /usr/bin/getconf ]; then
|
642
649
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
643
650
|
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
644
|
-
case "$
|
651
|
+
case "$sc_cpu_version" in
|
645
652
|
523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
|
646
653
|
528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
|
647
654
|
532) # CPU_PA_RISC2_0
|
648
|
-
case "$
|
655
|
+
case "$sc_kernel_bits" in
|
649
656
|
32) HP_ARCH=hppa2.0n ;;
|
650
657
|
64) HP_ARCH=hppa2.0w ;;
|
651
658
|
'') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
|
652
659
|
esac ;;
|
653
660
|
esac
|
654
661
|
fi
|
655
|
-
if [ "$
|
656
|
-
eval $set_cc_for_build
|
657
|
-
sed 's/^ //' << EOF
|
662
|
+
if [ "$HP_ARCH" = "" ]; then
|
663
|
+
eval "$set_cc_for_build"
|
664
|
+
sed 's/^ //' << EOF > "$dummy.c"
|
658
665
|
|
659
666
|
#define _HPUX_SOURCE
|
660
667
|
#include <stdlib.h>
|
@@ -687,13 +694,13 @@ EOF
|
|
687
694
|
exit (0);
|
688
695
|
}
|
689
696
|
EOF
|
690
|
-
(CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH
|
697
|
+
(CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
|
691
698
|
test -z "$HP_ARCH" && HP_ARCH=hppa
|
692
699
|
fi ;;
|
693
700
|
esac
|
694
|
-
if [ $
|
701
|
+
if [ "$HP_ARCH" = hppa2.0w ]
|
695
702
|
then
|
696
|
-
eval $set_cc_for_build
|
703
|
+
eval "$set_cc_for_build"
|
697
704
|
|
698
705
|
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
|
699
706
|
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
|
@@ -712,15 +719,15 @@ EOF
|
|
712
719
|
HP_ARCH=hppa64
|
713
720
|
fi
|
714
721
|
fi
|
715
|
-
echo $
|
722
|
+
echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
|
716
723
|
exit ;;
|
717
724
|
ia64:HP-UX:*:*)
|
718
|
-
HPUX_REV=`echo $
|
719
|
-
echo ia64-hp-hpux$
|
725
|
+
HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
|
726
|
+
echo ia64-hp-hpux"$HPUX_REV"
|
720
727
|
exit ;;
|
721
728
|
3050*:HI-UX:*:*)
|
722
|
-
eval $set_cc_for_build
|
723
|
-
sed 's/^ //' << EOF
|
729
|
+
eval "$set_cc_for_build"
|
730
|
+
sed 's/^ //' << EOF > "$dummy.c"
|
724
731
|
#include <unistd.h>
|
725
732
|
int
|
726
733
|
main ()
|
@@ -745,11 +752,11 @@ EOF
|
|
745
752
|
exit (0);
|
746
753
|
}
|
747
754
|
EOF
|
748
|
-
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME
|
755
|
+
$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
|
749
756
|
{ echo "$SYSTEM_NAME"; exit; }
|
750
757
|
echo unknown-hitachi-hiuxwe2
|
751
758
|
exit ;;
|
752
|
-
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*
|
759
|
+
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
|
753
760
|
echo hppa1.1-hp-bsd
|
754
761
|
exit ;;
|
755
762
|
9000/8??:4.3bsd:*:*)
|
@@ -758,7 +765,7 @@ EOF
|
|
758
765
|
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
759
766
|
echo hppa1.0-hp-mpeix
|
760
767
|
exit ;;
|
761
|
-
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*
|
768
|
+
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
|
762
769
|
echo hppa1.1-hp-osf
|
763
770
|
exit ;;
|
764
771
|
hp8??:OSF1:*:*)
|
@@ -766,9 +773,9 @@ EOF
|
|
766
773
|
exit ;;
|
767
774
|
i*86:OSF1:*:*)
|
768
775
|
if [ -x /usr/sbin/sysversion ] ; then
|
769
|
-
echo $
|
776
|
+
echo "$UNAME_MACHINE"-unknown-osf1mk
|
770
777
|
else
|
771
|
-
echo $
|
778
|
+
echo "$UNAME_MACHINE"-unknown-osf1
|
772
779
|
fi
|
773
780
|
exit ;;
|
774
781
|
parisc*:Lites*:*:*)
|
@@ -793,128 +800,109 @@ EOF
|
|
793
800
|
echo c4-convex-bsd
|
794
801
|
exit ;;
|
795
802
|
CRAY*Y-MP:*:*:*)
|
796
|
-
echo ymp-cray-unicos$
|
803
|
+
echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
|
797
804
|
exit ;;
|
798
805
|
CRAY*[A-Z]90:*:*:*)
|
799
|
-
echo $
|
806
|
+
echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
|
800
807
|
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
801
808
|
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
802
809
|
-e 's/\.[^.]*$/.X/'
|
803
810
|
exit ;;
|
804
811
|
CRAY*TS:*:*:*)
|
805
|
-
echo t90-cray-unicos$
|
812
|
+
echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
|
806
813
|
exit ;;
|
807
814
|
CRAY*T3E:*:*:*)
|
808
|
-
echo alphaev5-cray-unicosmk$
|
815
|
+
echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
|
809
816
|
exit ;;
|
810
817
|
CRAY*SV1:*:*:*)
|
811
|
-
echo sv1-cray-unicos$
|
818
|
+
echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
|
812
819
|
exit ;;
|
813
820
|
*:UNICOS/mp:*:*)
|
814
|
-
echo craynv-cray-unicosmp$
|
821
|
+
echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
|
815
822
|
exit ;;
|
816
823
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
817
824
|
FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
818
825
|
FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
|
819
|
-
FUJITSU_REL=`echo $
|
826
|
+
FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
|
820
827
|
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
821
828
|
exit ;;
|
822
829
|
5000:UNIX_System_V:4.*:*)
|
823
830
|
FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
|
824
|
-
FUJITSU_REL=`echo $
|
831
|
+
FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
|
825
832
|
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
826
833
|
exit ;;
|
827
834
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
828
|
-
echo $
|
835
|
+
echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
|
829
836
|
exit ;;
|
830
837
|
sparc*:BSD/OS:*:*)
|
831
|
-
echo sparc-unknown-bsdi$
|
838
|
+
echo sparc-unknown-bsdi"$UNAME_RELEASE"
|
832
839
|
exit ;;
|
833
840
|
*:BSD/OS:*:*)
|
834
|
-
echo $
|
841
|
+
echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
|
835
842
|
exit ;;
|
836
843
|
*:FreeBSD:*:*)
|
837
844
|
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
838
|
-
case $
|
845
|
+
case "$UNAME_PROCESSOR" in
|
839
846
|
amd64)
|
840
847
|
UNAME_PROCESSOR=x86_64 ;;
|
841
848
|
i386)
|
842
849
|
UNAME_PROCESSOR=i586 ;;
|
843
850
|
esac
|
844
|
-
echo $
|
851
|
+
echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
|
845
852
|
exit ;;
|
846
853
|
i*:CYGWIN*:*)
|
847
|
-
echo $
|
854
|
+
echo "$UNAME_MACHINE"-pc-cygwin
|
848
855
|
exit ;;
|
849
856
|
*:MINGW64*:*)
|
850
|
-
echo $
|
857
|
+
echo "$UNAME_MACHINE"-pc-mingw64
|
851
858
|
exit ;;
|
852
859
|
*:MINGW*:*)
|
853
|
-
echo $
|
860
|
+
echo "$UNAME_MACHINE"-pc-mingw32
|
854
861
|
exit ;;
|
855
862
|
*:MSYS*:*)
|
856
|
-
echo $
|
857
|
-
exit ;;
|
858
|
-
i*:windows32*:*)
|
859
|
-
# uname -m includes "-pc" on this system.
|
860
|
-
echo ${UNAME_MACHINE}-mingw32
|
863
|
+
echo "$UNAME_MACHINE"-pc-msys
|
861
864
|
exit ;;
|
862
865
|
i*:PW*:*)
|
863
|
-
echo $
|
866
|
+
echo "$UNAME_MACHINE"-pc-pw32
|
864
867
|
exit ;;
|
865
868
|
*:Interix*:*)
|
866
|
-
case $
|
869
|
+
case "$UNAME_MACHINE" in
|
867
870
|
x86)
|
868
|
-
echo i586-pc-interix$
|
871
|
+
echo i586-pc-interix"$UNAME_RELEASE"
|
869
872
|
exit ;;
|
870
873
|
authenticamd | genuineintel | EM64T)
|
871
|
-
echo x86_64-unknown-interix$
|
874
|
+
echo x86_64-unknown-interix"$UNAME_RELEASE"
|
872
875
|
exit ;;
|
873
876
|
IA64)
|
874
|
-
echo ia64-unknown-interix$
|
877
|
+
echo ia64-unknown-interix"$UNAME_RELEASE"
|
875
878
|
exit ;;
|
876
879
|
esac ;;
|
877
|
-
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
878
|
-
echo i${UNAME_MACHINE}-pc-mks
|
879
|
-
exit ;;
|
880
|
-
8664:Windows_NT:*)
|
881
|
-
echo x86_64-pc-mks
|
882
|
-
exit ;;
|
883
|
-
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
884
|
-
# How do we know it's Interix rather than the generic POSIX subsystem?
|
885
|
-
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
886
|
-
# UNAME_MACHINE based on the output of uname instead of i386?
|
887
|
-
echo i586-pc-interix
|
888
|
-
exit ;;
|
889
880
|
i*:UWIN*:*)
|
890
|
-
echo $
|
881
|
+
echo "$UNAME_MACHINE"-pc-uwin
|
891
882
|
exit ;;
|
892
883
|
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
|
893
884
|
echo x86_64-unknown-cygwin
|
894
885
|
exit ;;
|
895
|
-
p*:CYGWIN*:*)
|
896
|
-
echo powerpcle-unknown-cygwin
|
897
|
-
exit ;;
|
898
886
|
prep*:SunOS:5.*:*)
|
899
|
-
echo powerpcle-unknown-solaris2`echo $
|
887
|
+
echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
|
900
888
|
exit ;;
|
901
889
|
*:GNU:*:*)
|
902
890
|
# the GNU system
|
903
|
-
echo `echo $
|
891
|
+
echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
|
904
892
|
exit ;;
|
905
893
|
*:GNU/*:*:*)
|
906
894
|
# other systems with GNU libc and userland
|
907
|
-
echo $
|
895
|
+
echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
|
908
896
|
exit ;;
|
909
897
|
i*86:Minix:*:*)
|
910
|
-
echo $
|
898
|
+
echo "$UNAME_MACHINE"-pc-minix
|
911
899
|
exit ;;
|
912
900
|
aarch64:Linux:*:*)
|
913
|
-
echo $
|
901
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
914
902
|
exit ;;
|
915
903
|
aarch64_be:Linux:*:*)
|
916
904
|
UNAME_MACHINE=aarch64_be
|
917
|
-
echo $
|
905
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
918
906
|
exit ;;
|
919
907
|
alpha:Linux:*:*)
|
920
908
|
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
@@ -928,63 +916,63 @@ EOF
|
|
928
916
|
esac
|
929
917
|
objdump --private-headers /bin/sh | grep -q ld.so.1
|
930
918
|
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
|
931
|
-
echo $
|
919
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
932
920
|
exit ;;
|
933
921
|
arc:Linux:*:* | arceb:Linux:*:*)
|
934
|
-
echo $
|
922
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
935
923
|
exit ;;
|
936
924
|
arm*:Linux:*:*)
|
937
|
-
eval $set_cc_for_build
|
925
|
+
eval "$set_cc_for_build"
|
938
926
|
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
939
927
|
| grep -q __ARM_EABI__
|
940
928
|
then
|
941
|
-
echo $
|
929
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
942
930
|
else
|
943
931
|
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
944
932
|
| grep -q __ARM_PCS_VFP
|
945
933
|
then
|
946
|
-
echo $
|
934
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
|
947
935
|
else
|
948
|
-
echo $
|
936
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
|
949
937
|
fi
|
950
938
|
fi
|
951
939
|
exit ;;
|
952
940
|
avr32*:Linux:*:*)
|
953
|
-
echo $
|
941
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
954
942
|
exit ;;
|
955
943
|
cris:Linux:*:*)
|
956
|
-
echo $
|
944
|
+
echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
|
957
945
|
exit ;;
|
958
946
|
crisv32:Linux:*:*)
|
959
|
-
echo $
|
947
|
+
echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
|
960
948
|
exit ;;
|
961
949
|
e2k:Linux:*:*)
|
962
|
-
echo $
|
950
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
963
951
|
exit ;;
|
964
952
|
frv:Linux:*:*)
|
965
|
-
echo $
|
953
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
966
954
|
exit ;;
|
967
955
|
hexagon:Linux:*:*)
|
968
|
-
echo $
|
956
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
969
957
|
exit ;;
|
970
958
|
i*86:Linux:*:*)
|
971
|
-
echo $
|
959
|
+
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
|
972
960
|
exit ;;
|
973
961
|
ia64:Linux:*:*)
|
974
|
-
echo $
|
962
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
975
963
|
exit ;;
|
976
964
|
k1om:Linux:*:*)
|
977
|
-
echo $
|
965
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
978
966
|
exit ;;
|
979
967
|
m32r*:Linux:*:*)
|
980
|
-
echo $
|
968
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
981
969
|
exit ;;
|
982
970
|
m68*:Linux:*:*)
|
983
|
-
echo $
|
971
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
984
972
|
exit ;;
|
985
973
|
mips:Linux:*:* | mips64:Linux:*:*)
|
986
|
-
eval $set_cc_for_build
|
987
|
-
sed 's/^ //' << EOF
|
974
|
+
eval "$set_cc_for_build"
|
975
|
+
sed 's/^ //' << EOF > "$dummy.c"
|
988
976
|
#undef CPU
|
989
977
|
#undef ${UNAME_MACHINE}
|
990
978
|
#undef ${UNAME_MACHINE}el
|
@@ -998,70 +986,70 @@ EOF
|
|
998
986
|
#endif
|
999
987
|
#endif
|
1000
988
|
EOF
|
1001
|
-
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
1002
|
-
test x
|
989
|
+
eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
|
990
|
+
test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
|
1003
991
|
;;
|
1004
992
|
mips64el:Linux:*:*)
|
1005
|
-
echo $
|
993
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1006
994
|
exit ;;
|
1007
995
|
openrisc*:Linux:*:*)
|
1008
|
-
echo or1k-unknown-linux
|
996
|
+
echo or1k-unknown-linux-"$LIBC"
|
1009
997
|
exit ;;
|
1010
998
|
or32:Linux:*:* | or1k*:Linux:*:*)
|
1011
|
-
echo $
|
999
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1012
1000
|
exit ;;
|
1013
1001
|
padre:Linux:*:*)
|
1014
|
-
echo sparc-unknown-linux
|
1002
|
+
echo sparc-unknown-linux-"$LIBC"
|
1015
1003
|
exit ;;
|
1016
1004
|
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
1017
|
-
echo hppa64-unknown-linux
|
1005
|
+
echo hppa64-unknown-linux-"$LIBC"
|
1018
1006
|
exit ;;
|
1019
1007
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
1020
1008
|
# Look for CPU level
|
1021
1009
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
1022
|
-
PA7*) echo hppa1.1-unknown-linux
|
1023
|
-
PA8*) echo hppa2.0-unknown-linux
|
1024
|
-
*) echo hppa-unknown-linux
|
1010
|
+
PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
|
1011
|
+
PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
|
1012
|
+
*) echo hppa-unknown-linux-"$LIBC" ;;
|
1025
1013
|
esac
|
1026
1014
|
exit ;;
|
1027
1015
|
ppc64:Linux:*:*)
|
1028
|
-
echo powerpc64-unknown-linux
|
1016
|
+
echo powerpc64-unknown-linux-"$LIBC"
|
1029
1017
|
exit ;;
|
1030
1018
|
ppc:Linux:*:*)
|
1031
|
-
echo powerpc-unknown-linux
|
1019
|
+
echo powerpc-unknown-linux-"$LIBC"
|
1032
1020
|
exit ;;
|
1033
1021
|
ppc64le:Linux:*:*)
|
1034
|
-
echo powerpc64le-unknown-linux
|
1022
|
+
echo powerpc64le-unknown-linux-"$LIBC"
|
1035
1023
|
exit ;;
|
1036
1024
|
ppcle:Linux:*:*)
|
1037
|
-
echo powerpcle-unknown-linux
|
1025
|
+
echo powerpcle-unknown-linux-"$LIBC"
|
1038
1026
|
exit ;;
|
1039
1027
|
riscv32:Linux:*:* | riscv64:Linux:*:*)
|
1040
|
-
echo $
|
1028
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1041
1029
|
exit ;;
|
1042
1030
|
s390:Linux:*:* | s390x:Linux:*:*)
|
1043
|
-
echo $
|
1031
|
+
echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
|
1044
1032
|
exit ;;
|
1045
1033
|
sh64*:Linux:*:*)
|
1046
|
-
echo $
|
1034
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1047
1035
|
exit ;;
|
1048
1036
|
sh*:Linux:*:*)
|
1049
|
-
echo $
|
1037
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1050
1038
|
exit ;;
|
1051
1039
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
1052
|
-
echo $
|
1040
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1053
1041
|
exit ;;
|
1054
1042
|
tile*:Linux:*:*)
|
1055
|
-
echo $
|
1043
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1056
1044
|
exit ;;
|
1057
1045
|
vax:Linux:*:*)
|
1058
|
-
echo $
|
1046
|
+
echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
|
1059
1047
|
exit ;;
|
1060
1048
|
x86_64:Linux:*:*)
|
1061
|
-
echo $
|
1049
|
+
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
|
1062
1050
|
exit ;;
|
1063
1051
|
xtensa*:Linux:*:*)
|
1064
|
-
echo $
|
1052
|
+
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
|
1065
1053
|
exit ;;
|
1066
1054
|
i*86:DYNIX/ptx:4*:*)
|
1067
1055
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
@@ -1075,34 +1063,34 @@ EOF
|
|
1075
1063
|
# I am not positive that other SVR4 systems won't match this,
|
1076
1064
|
# I just have to hope. -- rms.
|
1077
1065
|
# Use sysv4.2uw... so that sysv4* matches it.
|
1078
|
-
echo $
|
1066
|
+
echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
|
1079
1067
|
exit ;;
|
1080
1068
|
i*86:OS/2:*:*)
|
1081
1069
|
# If we were able to find `uname', then EMX Unix compatibility
|
1082
1070
|
# is probably installed.
|
1083
|
-
echo $
|
1071
|
+
echo "$UNAME_MACHINE"-pc-os2-emx
|
1084
1072
|
exit ;;
|
1085
1073
|
i*86:XTS-300:*:STOP)
|
1086
|
-
echo $
|
1074
|
+
echo "$UNAME_MACHINE"-unknown-stop
|
1087
1075
|
exit ;;
|
1088
1076
|
i*86:atheos:*:*)
|
1089
|
-
echo $
|
1077
|
+
echo "$UNAME_MACHINE"-unknown-atheos
|
1090
1078
|
exit ;;
|
1091
1079
|
i*86:syllable:*:*)
|
1092
|
-
echo $
|
1080
|
+
echo "$UNAME_MACHINE"-pc-syllable
|
1093
1081
|
exit ;;
|
1094
1082
|
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
1095
|
-
echo i386-unknown-lynxos$
|
1083
|
+
echo i386-unknown-lynxos"$UNAME_RELEASE"
|
1096
1084
|
exit ;;
|
1097
1085
|
i*86:*DOS:*:*)
|
1098
|
-
echo $
|
1086
|
+
echo "$UNAME_MACHINE"-pc-msdosdjgpp
|
1099
1087
|
exit ;;
|
1100
|
-
i*86:*:4.*:*
|
1101
|
-
UNAME_REL=`echo $
|
1088
|
+
i*86:*:4.*:*)
|
1089
|
+
UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
|
1102
1090
|
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
1103
|
-
echo $
|
1091
|
+
echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
|
1104
1092
|
else
|
1105
|
-
echo $
|
1093
|
+
echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
|
1106
1094
|
fi
|
1107
1095
|
exit ;;
|
1108
1096
|
i*86:*:5:[678]*)
|
@@ -1112,12 +1100,12 @@ EOF
|
|
1112
1100
|
*Pentium) UNAME_MACHINE=i586 ;;
|
1113
1101
|
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
1114
1102
|
esac
|
1115
|
-
echo $
|
1103
|
+
echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
|
1116
1104
|
exit ;;
|
1117
1105
|
i*86:*:3.2:*)
|
1118
1106
|
if test -f /usr/options/cb.name; then
|
1119
1107
|
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
1120
|
-
echo $
|
1108
|
+
echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
|
1121
1109
|
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
1122
1110
|
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
|
1123
1111
|
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
|
@@ -1127,9 +1115,9 @@ EOF
|
|
1127
1115
|
&& UNAME_MACHINE=i686
|
1128
1116
|
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
|
1129
1117
|
&& UNAME_MACHINE=i686
|
1130
|
-
echo $
|
1118
|
+
echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
|
1131
1119
|
else
|
1132
|
-
echo $
|
1120
|
+
echo "$UNAME_MACHINE"-pc-sysv32
|
1133
1121
|
fi
|
1134
1122
|
exit ;;
|
1135
1123
|
pc:*:*:*)
|
@@ -1149,9 +1137,9 @@ EOF
|
|
1149
1137
|
exit ;;
|
1150
1138
|
i860:*:4.*:*) # i860-SVR4
|
1151
1139
|
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
1152
|
-
echo i860-stardent-sysv$
|
1140
|
+
echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
|
1153
1141
|
else # Add other i860-SVR4 vendors below as they are discovered.
|
1154
|
-
echo i860-unknown-sysv$
|
1142
|
+
echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
|
1155
1143
|
fi
|
1156
1144
|
exit ;;
|
1157
1145
|
mini*:CTIX:SYS*5:*)
|
@@ -1171,9 +1159,9 @@ EOF
|
|
1171
1159
|
test -r /etc/.relid \
|
1172
1160
|
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
1173
1161
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1174
|
-
&& { echo i486-ncr-sysv4.3$
|
1162
|
+
&& { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
|
1175
1163
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1176
|
-
&& { echo i586-ncr-sysv4.3$
|
1164
|
+
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
|
1177
1165
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
1178
1166
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1179
1167
|
&& { echo i486-ncr-sysv4; exit; } ;;
|
@@ -1182,28 +1170,28 @@ EOF
|
|
1182
1170
|
test -r /etc/.relid \
|
1183
1171
|
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
1184
1172
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
1185
|
-
&& { echo i486-ncr-sysv4.3$
|
1173
|
+
&& { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
|
1186
1174
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
1187
|
-
&& { echo i586-ncr-sysv4.3$
|
1175
|
+
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
|
1188
1176
|
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
1189
|
-
&& { echo i586-ncr-sysv4.3$
|
1177
|
+
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
|
1190
1178
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
1191
|
-
echo m68k-unknown-lynxos$
|
1179
|
+
echo m68k-unknown-lynxos"$UNAME_RELEASE"
|
1192
1180
|
exit ;;
|
1193
1181
|
mc68030:UNIX_System_V:4.*:*)
|
1194
1182
|
echo m68k-atari-sysv4
|
1195
1183
|
exit ;;
|
1196
1184
|
TSUNAMI:LynxOS:2.*:*)
|
1197
|
-
echo sparc-unknown-lynxos$
|
1185
|
+
echo sparc-unknown-lynxos"$UNAME_RELEASE"
|
1198
1186
|
exit ;;
|
1199
1187
|
rs6000:LynxOS:2.*:*)
|
1200
|
-
echo rs6000-unknown-lynxos$
|
1188
|
+
echo rs6000-unknown-lynxos"$UNAME_RELEASE"
|
1201
1189
|
exit ;;
|
1202
1190
|
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
1203
|
-
echo powerpc-unknown-lynxos$
|
1191
|
+
echo powerpc-unknown-lynxos"$UNAME_RELEASE"
|
1204
1192
|
exit ;;
|
1205
1193
|
SM[BE]S:UNIX_SV:*:*)
|
1206
|
-
echo mips-dde-sysv$
|
1194
|
+
echo mips-dde-sysv"$UNAME_RELEASE"
|
1207
1195
|
exit ;;
|
1208
1196
|
RM*:ReliantUNIX-*:*:*)
|
1209
1197
|
echo mips-sni-sysv4
|
@@ -1214,7 +1202,7 @@ EOF
|
|
1214
1202
|
*:SINIX-*:*:*)
|
1215
1203
|
if uname -p 2>/dev/null >/dev/null ; then
|
1216
1204
|
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
1217
|
-
echo $
|
1205
|
+
echo "$UNAME_MACHINE"-sni-sysv4
|
1218
1206
|
else
|
1219
1207
|
echo ns32k-sni-sysv
|
1220
1208
|
fi
|
@@ -1234,23 +1222,23 @@ EOF
|
|
1234
1222
|
exit ;;
|
1235
1223
|
i*86:VOS:*:*)
|
1236
1224
|
# From Paul.Green@stratus.com.
|
1237
|
-
echo $
|
1225
|
+
echo "$UNAME_MACHINE"-stratus-vos
|
1238
1226
|
exit ;;
|
1239
1227
|
*:VOS:*:*)
|
1240
1228
|
# From Paul.Green@stratus.com.
|
1241
1229
|
echo hppa1.1-stratus-vos
|
1242
1230
|
exit ;;
|
1243
1231
|
mc68*:A/UX:*:*)
|
1244
|
-
echo m68k-apple-aux$
|
1232
|
+
echo m68k-apple-aux"$UNAME_RELEASE"
|
1245
1233
|
exit ;;
|
1246
1234
|
news*:NEWS-OS:6*:*)
|
1247
1235
|
echo mips-sony-newsos6
|
1248
1236
|
exit ;;
|
1249
1237
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
1250
1238
|
if [ -d /usr/nec ]; then
|
1251
|
-
echo mips-nec-sysv$
|
1239
|
+
echo mips-nec-sysv"$UNAME_RELEASE"
|
1252
1240
|
else
|
1253
|
-
echo mips-unknown-sysv$
|
1241
|
+
echo mips-unknown-sysv"$UNAME_RELEASE"
|
1254
1242
|
fi
|
1255
1243
|
exit ;;
|
1256
1244
|
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
@@ -1269,39 +1257,39 @@ EOF
|
|
1269
1257
|
echo x86_64-unknown-haiku
|
1270
1258
|
exit ;;
|
1271
1259
|
SX-4:SUPER-UX:*:*)
|
1272
|
-
echo sx4-nec-superux$
|
1260
|
+
echo sx4-nec-superux"$UNAME_RELEASE"
|
1273
1261
|
exit ;;
|
1274
1262
|
SX-5:SUPER-UX:*:*)
|
1275
|
-
echo sx5-nec-superux$
|
1263
|
+
echo sx5-nec-superux"$UNAME_RELEASE"
|
1276
1264
|
exit ;;
|
1277
1265
|
SX-6:SUPER-UX:*:*)
|
1278
|
-
echo sx6-nec-superux$
|
1266
|
+
echo sx6-nec-superux"$UNAME_RELEASE"
|
1279
1267
|
exit ;;
|
1280
1268
|
SX-7:SUPER-UX:*:*)
|
1281
|
-
echo sx7-nec-superux$
|
1269
|
+
echo sx7-nec-superux"$UNAME_RELEASE"
|
1282
1270
|
exit ;;
|
1283
1271
|
SX-8:SUPER-UX:*:*)
|
1284
|
-
echo sx8-nec-superux$
|
1272
|
+
echo sx8-nec-superux"$UNAME_RELEASE"
|
1285
1273
|
exit ;;
|
1286
1274
|
SX-8R:SUPER-UX:*:*)
|
1287
|
-
echo sx8r-nec-superux$
|
1275
|
+
echo sx8r-nec-superux"$UNAME_RELEASE"
|
1288
1276
|
exit ;;
|
1289
1277
|
SX-ACE:SUPER-UX:*:*)
|
1290
|
-
echo sxace-nec-superux$
|
1278
|
+
echo sxace-nec-superux"$UNAME_RELEASE"
|
1291
1279
|
exit ;;
|
1292
1280
|
Power*:Rhapsody:*:*)
|
1293
|
-
echo powerpc-apple-rhapsody$
|
1281
|
+
echo powerpc-apple-rhapsody"$UNAME_RELEASE"
|
1294
1282
|
exit ;;
|
1295
1283
|
*:Rhapsody:*:*)
|
1296
|
-
echo $
|
1284
|
+
echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
|
1297
1285
|
exit ;;
|
1298
1286
|
*:Darwin:*:*)
|
1299
1287
|
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
1300
|
-
eval $set_cc_for_build
|
1288
|
+
eval "$set_cc_for_build"
|
1301
1289
|
if test "$UNAME_PROCESSOR" = unknown ; then
|
1302
1290
|
UNAME_PROCESSOR=powerpc
|
1303
1291
|
fi
|
1304
|
-
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
1292
|
+
if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
|
1305
1293
|
if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
|
1306
1294
|
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
1307
1295
|
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
|
@@ -1329,7 +1317,7 @@ EOF
|
|
1329
1317
|
# that Apple uses in portable devices.
|
1330
1318
|
UNAME_PROCESSOR=x86_64
|
1331
1319
|
fi
|
1332
|
-
echo $
|
1320
|
+
echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
|
1333
1321
|
exit ;;
|
1334
1322
|
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
1335
1323
|
UNAME_PROCESSOR=`uname -p`
|
@@ -1337,22 +1325,25 @@ EOF
|
|
1337
1325
|
UNAME_PROCESSOR=i386
|
1338
1326
|
UNAME_MACHINE=pc
|
1339
1327
|
fi
|
1340
|
-
echo $
|
1328
|
+
echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
|
1341
1329
|
exit ;;
|
1342
1330
|
*:QNX:*:4*)
|
1343
1331
|
echo i386-pc-qnx
|
1344
1332
|
exit ;;
|
1345
1333
|
NEO-*:NONSTOP_KERNEL:*:*)
|
1346
|
-
echo neo-tandem-nsk$
|
1334
|
+
echo neo-tandem-nsk"$UNAME_RELEASE"
|
1347
1335
|
exit ;;
|
1348
1336
|
NSE-*:NONSTOP_KERNEL:*:*)
|
1349
|
-
echo nse-tandem-nsk$
|
1337
|
+
echo nse-tandem-nsk"$UNAME_RELEASE"
|
1350
1338
|
exit ;;
|
1351
1339
|
NSR-*:NONSTOP_KERNEL:*:*)
|
1352
|
-
echo nsr-tandem-nsk$
|
1340
|
+
echo nsr-tandem-nsk"$UNAME_RELEASE"
|
1341
|
+
exit ;;
|
1342
|
+
NSV-*:NONSTOP_KERNEL:*:*)
|
1343
|
+
echo nsv-tandem-nsk"$UNAME_RELEASE"
|
1353
1344
|
exit ;;
|
1354
1345
|
NSX-*:NONSTOP_KERNEL:*:*)
|
1355
|
-
echo nsx-tandem-nsk$
|
1346
|
+
echo nsx-tandem-nsk"$UNAME_RELEASE"
|
1356
1347
|
exit ;;
|
1357
1348
|
*:NonStop-UX:*:*)
|
1358
1349
|
echo mips-compaq-nonstopux
|
@@ -1361,7 +1352,7 @@ EOF
|
|
1361
1352
|
echo bs2000-siemens-sysv
|
1362
1353
|
exit ;;
|
1363
1354
|
DS/*:UNIX_System_V:*:*)
|
1364
|
-
echo $
|
1355
|
+
echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
|
1365
1356
|
exit ;;
|
1366
1357
|
*:Plan9:*:*)
|
1367
1358
|
# "uname -m" is not consistent, so use $cputype instead. 386
|
@@ -1372,7 +1363,7 @@ EOF
|
|
1372
1363
|
else
|
1373
1364
|
UNAME_MACHINE="$cputype"
|
1374
1365
|
fi
|
1375
|
-
echo $
|
1366
|
+
echo "$UNAME_MACHINE"-unknown-plan9
|
1376
1367
|
exit ;;
|
1377
1368
|
*:TOPS-10:*:*)
|
1378
1369
|
echo pdp10-unknown-tops10
|
@@ -1393,14 +1384,14 @@ EOF
|
|
1393
1384
|
echo pdp10-unknown-its
|
1394
1385
|
exit ;;
|
1395
1386
|
SEI:*:*:SEIUX)
|
1396
|
-
echo mips-sei-seiux$
|
1387
|
+
echo mips-sei-seiux"$UNAME_RELEASE"
|
1397
1388
|
exit ;;
|
1398
1389
|
*:DragonFly:*:*)
|
1399
|
-
echo $
|
1390
|
+
echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
|
1400
1391
|
exit ;;
|
1401
1392
|
*:*VMS:*:*)
|
1402
1393
|
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
1403
|
-
case "$
|
1394
|
+
case "$UNAME_MACHINE" in
|
1404
1395
|
A*) echo alpha-dec-vms ; exit ;;
|
1405
1396
|
I*) echo ia64-dec-vms ; exit ;;
|
1406
1397
|
V*) echo vax-dec-vms ; exit ;;
|
@@ -1409,32 +1400,44 @@ EOF
|
|
1409
1400
|
echo i386-pc-xenix
|
1410
1401
|
exit ;;
|
1411
1402
|
i*86:skyos:*:*)
|
1412
|
-
echo $
|
1403
|
+
echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
|
1413
1404
|
exit ;;
|
1414
1405
|
i*86:rdos:*:*)
|
1415
|
-
echo $
|
1406
|
+
echo "$UNAME_MACHINE"-pc-rdos
|
1416
1407
|
exit ;;
|
1417
1408
|
i*86:AROS:*:*)
|
1418
|
-
echo $
|
1409
|
+
echo "$UNAME_MACHINE"-pc-aros
|
1419
1410
|
exit ;;
|
1420
1411
|
x86_64:VMkernel:*:*)
|
1421
|
-
echo $
|
1412
|
+
echo "$UNAME_MACHINE"-unknown-esx
|
1422
1413
|
exit ;;
|
1423
1414
|
amd64:Isilon\ OneFS:*:*)
|
1424
1415
|
echo x86_64-unknown-onefs
|
1425
1416
|
exit ;;
|
1426
1417
|
esac
|
1427
1418
|
|
1419
|
+
echo "$0: unable to guess system type" >&2
|
1420
|
+
|
1421
|
+
case "$UNAME_MACHINE:$UNAME_SYSTEM" in
|
1422
|
+
mips:Linux | mips64:Linux)
|
1423
|
+
# If we got here on MIPS GNU/Linux, output extra information.
|
1424
|
+
cat >&2 <<EOF
|
1425
|
+
|
1426
|
+
NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
|
1427
|
+
the system type. Please install a C compiler and try again.
|
1428
|
+
EOF
|
1429
|
+
;;
|
1430
|
+
esac
|
1431
|
+
|
1428
1432
|
cat >&2 <<EOF
|
1429
|
-
$0: unable to guess system type
|
1430
1433
|
|
1431
1434
|
This script (version $timestamp), has failed to recognize the
|
1432
|
-
operating system you are using. If your script is old, overwrite
|
1433
|
-
config.guess and config.sub with the latest versions from:
|
1435
|
+
operating system you are using. If your script is old, overwrite *all*
|
1436
|
+
copies of config.guess and config.sub with the latest versions from:
|
1434
1437
|
|
1435
|
-
|
1438
|
+
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
|
1436
1439
|
and
|
1437
|
-
|
1440
|
+
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
|
1438
1441
|
|
1439
1442
|
If $0 has already been updated, send the following data and any
|
1440
1443
|
information you think might be pertinent to config-patches@gnu.org to
|
@@ -1457,16 +1460,16 @@ hostinfo = `(hostinfo) 2>/dev/null`
|
|
1457
1460
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
|
1458
1461
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
|
1459
1462
|
|
1460
|
-
UNAME_MACHINE = $
|
1461
|
-
UNAME_RELEASE = $
|
1462
|
-
UNAME_SYSTEM = $
|
1463
|
-
UNAME_VERSION = $
|
1463
|
+
UNAME_MACHINE = "$UNAME_MACHINE"
|
1464
|
+
UNAME_RELEASE = "$UNAME_RELEASE"
|
1465
|
+
UNAME_SYSTEM = "$UNAME_SYSTEM"
|
1466
|
+
UNAME_VERSION = "$UNAME_VERSION"
|
1464
1467
|
EOF
|
1465
1468
|
|
1466
1469
|
exit 1
|
1467
1470
|
|
1468
1471
|
# Local variables:
|
1469
|
-
# eval: (add-hook '
|
1472
|
+
# eval: (add-hook 'before-save-hook 'time-stamp)
|
1470
1473
|
# time-stamp-start: "timestamp='"
|
1471
1474
|
# time-stamp-format: "%:y-%02m-%02d"
|
1472
1475
|
# time-stamp-end: "'"
|