1
1
#! /bin/sh
2
2
# Attempt to guess a canonical system name.
3
- # Copyright 1992-2015 Free Software Foundation, Inc.
3
+ # Copyright 1992-2016 Free Software Foundation, Inc.
4
4
5
- timestamp=' 2015-07-03 '
5
+ timestamp=' 2016-04-02 '
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
@@ -27,7 +27,7 @@ timestamp='2015-07-03'
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
- # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30
+ # http://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
@@ -50,7 +50,7 @@ version="\
50
50
GNU config.guess ($timestamp )
51
51
52
52
Originally written by Per Bothner.
53
- Copyright 1992-2015 Free Software Foundation, Inc.
53
+ Copyright 1992-2016 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."
@@ -237,6 +237,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
237
237
UNAME_MACHINE_ARCH=` arch | sed ' s/OpenBSD.//' `
238
238
echo ${UNAME_MACHINE_ARCH} -unknown-openbsd${UNAME_RELEASE}
239
239
exit ;;
240
+ * :LibertyBSD:* :* )
241
+ UNAME_MACHINE_ARCH=` arch | sed ' s/^.*BSD\.//' `
242
+ echo ${UNAME_MACHINE_ARCH} -unknown-libertybsd${UNAME_RELEASE}
243
+ exit ;;
240
244
* :ekkoBSD:* :* )
241
245
echo ${UNAME_MACHINE} -unknown-ekkobsd${UNAME_RELEASE}
242
246
exit ;;
@@ -249,6 +253,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
249
253
* :MirBSD:* :* )
250
254
echo ${UNAME_MACHINE} -unknown-mirbsd${UNAME_RELEASE}
251
255
exit ;;
256
+ * :Sortix:* :* )
257
+ echo ${UNAME_MACHINE} -unknown-sortix
258
+ exit ;;
252
259
alpha:OSF1:* :* )
253
260
case $UNAME_RELEASE in
254
261
* 4.0)
@@ -265,42 +272,42 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
265
272
ALPHA_CPU_TYPE=` /usr/sbin/psrinfo -v | sed -n -e ' s/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
266
273
case " $ALPHA_CPU_TYPE " in
267
274
" EV4 (21064)" )
268
- UNAME_MACHINE=" alpha" ;;
275
+ UNAME_MACHINE=alpha ;;
269
276
" EV4.5 (21064)" )
270
- UNAME_MACHINE=" alpha" ;;
277
+ UNAME_MACHINE=alpha ;;
271
278
" LCA4 (21066/21068)" )
272
- UNAME_MACHINE=" alpha" ;;
279
+ UNAME_MACHINE=alpha ;;
273
280
" EV5 (21164)" )
274
- UNAME_MACHINE=" alphaev5" ;;
281
+ UNAME_MACHINE=alphaev5 ;;
275
282
" EV5.6 (21164A)" )
276
- UNAME_MACHINE=" alphaev56" ;;
283
+ UNAME_MACHINE=alphaev56 ;;
277
284
" EV5.6 (21164PC)" )
278
- UNAME_MACHINE=" alphapca56" ;;
285
+ UNAME_MACHINE=alphapca56 ;;
279
286
" EV5.7 (21164PC)" )
280
- UNAME_MACHINE=" alphapca57" ;;
287
+ UNAME_MACHINE=alphapca57 ;;
281
288
" EV6 (21264)" )
282
- UNAME_MACHINE=" alphaev6" ;;
289
+ UNAME_MACHINE=alphaev6 ;;
283
290
" EV6.7 (21264A)" )
284
- UNAME_MACHINE=" alphaev67" ;;
291
+ UNAME_MACHINE=alphaev67 ;;
285
292
" EV6.8CB (21264C)" )
286
- UNAME_MACHINE=" alphaev68" ;;
293
+ UNAME_MACHINE=alphaev68 ;;
287
294
" EV6.8AL (21264B)" )
288
- UNAME_MACHINE=" alphaev68" ;;
295
+ UNAME_MACHINE=alphaev68 ;;
289
296
" EV6.8CX (21264D)" )
290
- UNAME_MACHINE=" alphaev68" ;;
297
+ UNAME_MACHINE=alphaev68 ;;
291
298
" EV6.9A (21264/EV69A)" )
292
- UNAME_MACHINE=" alphaev69" ;;
299
+ UNAME_MACHINE=alphaev69 ;;
293
300
" EV7 (21364)" )
294
- UNAME_MACHINE=" alphaev7" ;;
301
+ UNAME_MACHINE=alphaev7 ;;
295
302
" EV7.9 (21364A)" )
296
- UNAME_MACHINE=" alphaev79" ;;
303
+ UNAME_MACHINE=alphaev79 ;;
297
304
esac
298
305
# A Pn.n version is a patched version.
299
306
# A Vn.n version is a released version.
300
307
# A Tn.n version is a released field test version.
301
308
# A Xn.n version is an unreleased experimental baselevel.
302
309
# 1.2 uses "1.2" for uname -r.
303
- echo ${UNAME_MACHINE} -dec-osf` echo ${UNAME_RELEASE} | sed -e ' s/^[PVTX]//' | tr ' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ' abcdefghijklmnopqrstuvwxyz' `
310
+ echo ${UNAME_MACHINE} -dec-osf` echo ${UNAME_RELEASE} | sed -e ' s/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
304
311
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
305
312
exitcode=$?
306
313
trap ' ' 0
@@ -373,16 +380,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
373
380
exit ;;
374
381
i86pc:SunOS:5.* :* | i86xen:SunOS:5.* :* )
375
382
eval $set_cc_for_build
376
- SUN_ARCH=" i386"
383
+ SUN_ARCH=i386
377
384
# If there is a compiler, see if it is configured for 64-bit objects.
378
385
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
379
386
# This test works for both compilers.
380
- if [ " $CC_FOR_BUILD " != ' no_compiler_found' ]; then
387
+ if [ " $CC_FOR_BUILD " != no_compiler_found ]; then
381
388
if (echo ' #ifdef __amd64' ; echo IS_64BIT_ARCH; echo ' #endif' ) | \
382
- (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) | \
389
+ (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) | \
383
390
grep IS_64BIT_ARCH > /dev/null
384
391
then
385
- SUN_ARCH=" x86_64"
392
+ SUN_ARCH=x86_64
386
393
fi
387
394
fi
388
395
echo ${SUN_ARCH} -pc-solaris2` echo ${UNAME_RELEASE} | sed -e ' s/[^.]*//' `
@@ -407,7 +414,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
407
414
exit ;;
408
415
sun* :* :4.2BSD:* )
409
416
UNAME_RELEASE=` (sed 1q /etc/motd | awk ' {print substr($5,1,3)}' ) 2> /dev/null`
410
- test " x${UNAME_RELEASE} " = " x " && UNAME_RELEASE=3
417
+ test " x${UNAME_RELEASE} " = x && UNAME_RELEASE=3
411
418
case " ` /bin/arch` " in
412
419
sun3)
413
420
echo m68k-sun-sunos${UNAME_RELEASE}
@@ -632,13 +639,13 @@ EOF
632
639
sc_cpu_version=` /usr/bin/getconf SC_CPU_VERSION 2> /dev/null`
633
640
sc_kernel_bits=` /usr/bin/getconf SC_KERNEL_BITS 2> /dev/null`
634
641
case " ${sc_cpu_version} " in
635
- 523) HP_ARCH=" hppa1.0" ;; # CPU_PA_RISC1_0
636
- 528) HP_ARCH=" hppa1.1" ;; # CPU_PA_RISC1_1
642
+ 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
643
+ 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
637
644
532) # CPU_PA_RISC2_0
638
645
case " ${sc_kernel_bits} " in
639
- 32) HP_ARCH=" hppa2.0n" ;;
640
- 64) HP_ARCH=" hppa2.0w" ;;
641
- ' ' ) HP_ARCH=" hppa2.0" ;; # HP-UX 10.20
646
+ 32) HP_ARCH=hppa2.0n ;;
647
+ 64) HP_ARCH=hppa2.0w ;;
648
+ ' ' ) HP_ARCH=hppa2.0 ;; # HP-UX 10.20
642
649
esac ;;
643
650
esac
644
651
fi
@@ -677,11 +684,11 @@ EOF
677
684
exit (0);
678
685
}
679
686
EOF
680
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy .c 2> /dev/null) && HP_ARCH=` $dummy `
687
+ (CCOPTS=" " $CC_FOR_BUILD -o $dummy $dummy .c 2> /dev/null) && HP_ARCH=` $dummy `
681
688
test -z " $HP_ARCH " && HP_ARCH=hppa
682
689
fi ;;
683
690
esac
684
- if [ ${HP_ARCH} = " hppa2.0w" ]
691
+ if [ ${HP_ARCH} = hppa2.0w ]
685
692
then
686
693
eval $set_cc_for_build
687
694
@@ -694,12 +701,12 @@ EOF
694
701
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
695
702
# => hppa64-hp-hpux11.23
696
703
697
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) |
704
+ if echo __LP64__ | (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) |
698
705
grep -q __LP64__
699
706
then
700
- HP_ARCH=" hppa2.0w"
707
+ HP_ARCH=hppa2.0w
701
708
else
702
- HP_ARCH=" hppa64"
709
+ HP_ARCH=hppa64
703
710
fi
704
711
fi
705
712
echo ${HP_ARCH} -hp-hpux${HPUX_REV}
@@ -804,14 +811,14 @@ EOF
804
811
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e ' s/\.[^.]*$/.X/'
805
812
exit ;;
806
813
F30[01]:UNIX_System_V:* :* | F700:UNIX_System_V:* :* )
807
- FUJITSU_PROC=` uname -m | tr ' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ' abcdefghijklmnopqrstuvwxyz' `
808
- FUJITSU_SYS=` uname -p | tr ' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ' abcdefghijklmnopqrstuvwxyz' | sed -e ' s/\///' `
814
+ FUJITSU_PROC=` uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
815
+ FUJITSU_SYS=` uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e ' s/\///' `
809
816
FUJITSU_REL=` echo ${UNAME_RELEASE} | sed -e ' s/ /_/' `
810
817
echo " ${FUJITSU_PROC} -fujitsu-${FUJITSU_SYS}${FUJITSU_REL} "
811
818
exit ;;
812
819
5000:UNIX_System_V:4.* :* )
813
- FUJITSU_SYS=` uname -p | tr ' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ' abcdefghijklmnopqrstuvwxyz' | sed -e ' s/\///' `
814
- FUJITSU_REL=` echo ${UNAME_RELEASE} | tr ' ABCDEFGHIJKLMNOPQRSTUVWXYZ' ' abcdefghijklmnopqrstuvwxyz' | sed -e ' s/ /_/' `
820
+ FUJITSU_SYS=` uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e ' s/\///' `
821
+ FUJITSU_REL=` echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e ' s/ /_/' `
815
822
echo " sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} "
816
823
exit ;;
817
824
i* 86:BSD/386:* :* | i* 86:BSD/OS:* :* | * :Ascend\ Embedded/OS:* :* )
893
900
exit ;;
894
901
* :GNU/* :* :* )
895
902
# other systems with GNU libc and userland
896
- echo ${UNAME_MACHINE} -unknown-` echo ${UNAME_SYSTEM} | sed ' s,^[^/]*/,,' | tr ' [A-Z] ' ' [a-z] ' ` ` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' ` -${LIBC}
903
+ echo ${UNAME_MACHINE} -unknown-` echo ${UNAME_SYSTEM} | sed ' s,^[^/]*/,,' | tr " [:upper:] " " [:lower:] " ` ` echo ${UNAME_RELEASE} | sed -e ' s/[-(].*//' ` -${LIBC}
897
904
exit ;;
898
905
i* 86:Minix:* :* )
899
906
echo ${UNAME_MACHINE} -pc-minix
916
923
EV68* ) UNAME_MACHINE=alphaev68 ;;
917
924
esac
918
925
objdump --private-headers /bin/sh | grep -q ld.so.1
919
- if test " $? " = 0 ; then LIBC=" gnulibc1" ; fi
926
+ if test " $? " = 0 ; then LIBC=gnulibc1 ; fi
920
927
echo ${UNAME_MACHINE} -unknown-linux-${LIBC}
921
928
exit ;;
922
929
arc:Linux:* :* | arceb:Linux:* :* )
962
969
ia64:Linux:* :* )
963
970
echo ${UNAME_MACHINE} -unknown-linux-${LIBC}
964
971
exit ;;
972
+ k1om:Linux:* :* )
973
+ echo ${UNAME_MACHINE} -unknown-linux-${LIBC}
974
+ exit ;;
965
975
m32r* :Linux:* :* )
966
976
echo ${UNAME_MACHINE} -unknown-linux-${LIBC}
967
977
exit ;;
@@ -1117,7 +1127,7 @@ EOF
1117
1127
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1118
1128
# the processor, so we play safe by assuming i586.
1119
1129
# Note: whatever this is, it MUST be the same as what config.sub
1120
- # prints for the "djgpp" host, or else GDB configury will decide that
1130
+ # prints for the "djgpp" host, or else GDB configure will decide that
1121
1131
# this is a cross-build.
1122
1132
echo i586-pc-msdosdjgpp
1123
1133
exit ;;
@@ -1266,6 +1276,9 @@ EOF
1266
1276
SX-8R:SUPER-UX:* :* )
1267
1277
echo sx8r-nec-superux${UNAME_RELEASE}
1268
1278
exit ;;
1279
+ SX-ACE:SUPER-UX:* :* )
1280
+ echo sxace-nec-superux${UNAME_RELEASE}
1281
+ exit ;;
1269
1282
Power* :Rhapsody:* :* )
1270
1283
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1271
1284
exit ;;
@@ -1279,9 +1292,9 @@ EOF
1279
1292
UNAME_PROCESSOR=powerpc
1280
1293
fi
1281
1294
if test ` echo " $UNAME_RELEASE " | sed -e ' s/\..*//' ` -le 10 ; then
1282
- if [ " $CC_FOR_BUILD " != ' no_compiler_found' ]; then
1295
+ if [ " $CC_FOR_BUILD " != no_compiler_found ]; then
1283
1296
if (echo ' #ifdef __LP64__' ; echo IS_64BIT_ARCH; echo ' #endif' ) | \
1284
- (CCOPTS= $CC_FOR_BUILD -E - 2> /dev/null) | \
1297
+ (CCOPTS=" " $CC_FOR_BUILD -E - 2> /dev/null) | \
1285
1298
grep IS_64BIT_ARCH > /dev/null
1286
1299
then
1287
1300
case $UNAME_PROCESSOR in
@@ -1303,7 +1316,7 @@ EOF
1303
1316
exit ;;
1304
1317
* :procnto* :* :* | * :QNX:[0123456789]* :* )
1305
1318
UNAME_PROCESSOR=` uname -p`
1306
- if test " $UNAME_PROCESSOR " = " x86" ; then
1319
+ if test " $UNAME_PROCESSOR " = x86; then
1307
1320
UNAME_PROCESSOR=i386
1308
1321
UNAME_MACHINE=pc
1309
1322
fi
@@ -1334,7 +1347,7 @@ EOF
1334
1347
# "uname -m" is not consistent, so use $cputype instead. 386
1335
1348
# is converted to i386 for consistency with other x86
1336
1349
# operating systems.
1337
- if test " $cputype " = " 386" ; then
1350
+ if test " $cputype " = 386; then
1338
1351
UNAME_MACHINE=i386
1339
1352
else
1340
1353
UNAME_MACHINE=" $cputype "
@@ -1376,7 +1389,7 @@ EOF
1376
1389
echo i386-pc-xenix
1377
1390
exit ;;
1378
1391
i* 86:skyos:* :* )
1379
- echo ${UNAME_MACHINE} -pc-skyos` echo ${UNAME_RELEASE} ` | sed -e ' s/ .*$//'
1392
+ echo ${UNAME_MACHINE} -pc-skyos` echo ${UNAME_RELEASE} | sed -e ' s/ .*$//' `
1380
1393
exit ;;
1381
1394
i* 86:rdos:* :* )
1382
1395
echo ${UNAME_MACHINE} -pc-rdos
@@ -1387,6 +1400,9 @@ EOF
1387
1400
x86_64:VMkernel:* :* )
1388
1401
echo ${UNAME_MACHINE} -unknown-esx
1389
1402
exit ;;
1403
+ amd64:Isilon\ OneFS:* :* )
1404
+ echo x86_64-unknown-onefs
1405
+ exit ;;
1390
1406
esac
1391
1407
1392
1408
cat >&2 << EOF
@@ -1396,9 +1412,9 @@ This script, last modified $timestamp, has failed to recognize
1396
1412
the operating system you are using. It is advised that you
1397
1413
download the most up to date version of the config scripts from
1398
1414
1399
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1415
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1400
1416
and
1401
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1417
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1402
1418
1403
1419
If the version you run ($0 ) is already up to date, please
1404
1420
send the following data and any information you think might be
0 commit comments