google_hash 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.txt +2 -0
- data/VERSION +1 -1
- data/ext/clean.bat +0 -0
- data/ext/clean.sh +4 -0
- data/ext/extconf.rb +4 -5
- data/ext/go.bat +0 -0
- data/ext/sparsehash-2.0.2/AUTHORS +2 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/COPYING +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/ChangeLog +60 -0
- data/ext/sparsehash-2.0.2/INSTALL +365 -0
- data/ext/sparsehash-2.0.2/Makefile +1336 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/Makefile.am +97 -40
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/Makefile.in +538 -256
- data/ext/sparsehash-2.0.2/NEWS +188 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/README +4 -10
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/README_windows.txt +3 -3
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/TODO +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/aclocal.m4 +266 -166
- data/ext/sparsehash-2.0.2/allocator.patch +31 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/config.guess +235 -234
- data/ext/sparsehash-2.0.2/config.status +1238 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/config.sub +198 -64
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/configure +1118 -1000
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/configure.ac +4 -5
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/depcomp +136 -36
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/dense_hash_map.html +182 -67
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/dense_hash_set.html +173 -74
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/designstyle.css +0 -6
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/implementation.html +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/index.html +4 -5
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/performance.html +1 -1
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparse_hash_map.html +190 -58
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparse_hash_set.html +180 -65
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparsetable.html +1 -1
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/Makefile +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/README +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/example.c +1 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/libchash.c +1 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/libchash.h +1 -0
- data/ext/sparsehash-2.0.2/install-sh +520 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/acx_pthread.m4 +34 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/google_namespace.m4 +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/namespaces.m4 +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/stl_hash.m4 +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/stl_hash_fun.m4 +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/missing +60 -44
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb.sh +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/README +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/changelog +42 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/compat +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/control +1 -1
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/copyright +5 -4
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/docs +0 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/rules +0 -0
- data/ext/sparsehash-2.0.2/packages/deb/sparsehash.dirs +5 -0
- data/ext/sparsehash-2.0.2/packages/deb/sparsehash.install +6 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/rpm.sh +1 -1
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/rpm/rpm.spec +5 -3
- data/ext/{sparsehash-1.8.1/google-sparsehash.sln → sparsehash-2.0.2/sparsehash.sln} +0 -0
- data/ext/sparsehash-2.0.2/src/config.h +132 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/config.h.in +0 -3
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/config.h.include +0 -1
- data/ext/sparsehash-2.0.2/src/google/dense_hash_map +34 -0
- data/ext/sparsehash-2.0.2/src/google/dense_hash_set +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparse_hash_map +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparse_hash_set +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparsehash/densehashtable.h +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparsehash/hashtable-common.h +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparsehash/libc_allocator_with_realloc.h +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparsehash/sparsehashtable.h +34 -0
- data/ext/sparsehash-2.0.2/src/google/sparsetable +34 -0
- data/ext/sparsehash-2.0.2/src/google/template_util.h +34 -0
- data/ext/sparsehash-2.0.2/src/google/type_traits.h +34 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/hash_test_interface.h +64 -37
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/hashtable_test.cc +415 -141
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/libc_allocator_with_realloc_test.cc +16 -23
- data/ext/sparsehash-2.0.2/src/simple_compat_test.cc +106 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/simple_test.cc +8 -5
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/dense_hash_map +80 -37
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/dense_hash_set +64 -34
- data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/densehashtable.h +247 -173
- data/ext/sparsehash-2.0.2/src/sparsehash/internal/hashtable-common.h +381 -0
- data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/libc_allocator_with_realloc.h +5 -7
- data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/sparsehashtable.h +154 -93
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparse_hash_map +96 -36
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparse_hash_set +85 -32
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparsetable +520 -258
- data/ext/sparsehash-2.0.2/src/sparsehash/template_util.h +134 -0
- data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/type_traits.h +153 -35
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/sparsetable_unittest.cc +108 -22
- data/ext/sparsehash-2.0.2/src/stamp-h1 +1 -0
- data/ext/sparsehash-2.0.2/src/template_util_unittest.cc +134 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/testutil.h +16 -1
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/time_hash_map.cc +259 -94
- data/ext/sparsehash-2.0.2/src/type_traits_unittest.cc +636 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/config.h +4 -4
- data/ext/sparsehash-2.0.2/src/windows/google/sparsehash/sparseconfig.h +49 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/port.cc +1 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/port.h +4 -13
- data/ext/sparsehash-2.0.2/src/windows/sparsehash/internal/sparseconfig.h +49 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/hashtable_test/hashtable_test.vcproj +11 -11
- data/ext/sparsehash-2.0.2/vsprojects/libc_allocator_with_realloc_test/libc_allocator_with_realloc_test.vcproj +161 -0
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/simple_test/simple_test.vcproj +10 -10
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/sparsetable_unittest/sparsetable_unittest.vcproj +4 -4
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/time_hash_map/time_hash_map.vcproj +10 -10
- data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/type_traits_unittest/type_traits_unittest.vcproj +3 -3
- data/ext/spec.bat +0 -0
- data/ext/template/google_hash.cpp.erb +6 -5
- metadata +106 -86
- data/ext/sparsehash-1.8.1/AUTHORS +0 -2
- data/ext/sparsehash-1.8.1/INSTALL +0 -236
- data/ext/sparsehash-1.8.1/NEWS +0 -71
- data/ext/sparsehash-1.8.1/compile +0 -99
- data/ext/sparsehash-1.8.1/install-sh +0 -323
- data/ext/sparsehash-1.8.1/m4/stl_namespace.m4 +0 -25
- data/ext/sparsehash-1.8.1/mkinstalldirs +0 -158
- data/ext/sparsehash-1.8.1/packages/deb/sparsehash.dirs +0 -2
- data/ext/sparsehash-1.8.1/packages/deb/sparsehash.install +0 -2
- data/ext/sparsehash-1.8.1/src/google/sparsehash/hashtable-common.h +0 -178
- data/ext/sparsehash-1.8.1/src/type_traits_unittest.cc +0 -502
- data/ext/sparsehash-1.8.1/src/windows/google/sparsehash/sparseconfig.h +0 -32
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
diff --git a/src/sparsehash/internal/sparsehashtable.h b/src/sparsehash/internal/sparsehashtable.h
|
|
2
|
+
index 7ee1391..f54ea51 100644
|
|
3
|
+
--- a/src/sparsehash/internal/sparsehashtable.h
|
|
4
|
+
+++ b/src/sparsehash/internal/sparsehashtable.h
|
|
5
|
+
@@ -165,7 +165,7 @@ struct sparse_hashtable_iterator {
|
|
6
|
+
public:
|
|
7
|
+
typedef sparse_hashtable_iterator<V,K,HF,ExK,SetK,EqK,A> iterator;
|
|
8
|
+
typedef sparse_hashtable_const_iterator<V,K,HF,ExK,SetK,EqK,A> const_iterator;
|
|
9
|
+
- typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,A>::nonempty_iterator
|
|
10
|
+
+ typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,value_alloc_type>::nonempty_iterator
|
|
11
|
+
st_iterator;
|
|
12
|
+
|
|
13
|
+
typedef std::forward_iterator_tag iterator_category; // very little defined!
|
|
14
|
+
@@ -217,7 +217,7 @@ struct sparse_hashtable_const_iterator {
|
|
15
|
+
public:
|
|
16
|
+
typedef sparse_hashtable_iterator<V,K,HF,ExK,SetK,EqK,A> iterator;
|
|
17
|
+
typedef sparse_hashtable_const_iterator<V,K,HF,ExK,SetK,EqK,A> const_iterator;
|
|
18
|
+
- typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,A>::const_nonempty_iterator
|
|
19
|
+
+ typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,value_alloc_type>::const_nonempty_iterator
|
|
20
|
+
st_iterator;
|
|
21
|
+
|
|
22
|
+
typedef std::forward_iterator_tag iterator_category; // very little defined!
|
|
23
|
+
@@ -271,7 +271,7 @@ struct sparse_hashtable_destructive_iterator {
|
|
24
|
+
|
|
25
|
+
public:
|
|
26
|
+
typedef sparse_hashtable_destructive_iterator<V,K,HF,ExK,SetK,EqK,A> iterator;
|
|
27
|
+
- typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,A>::destructive_iterator
|
|
28
|
+
+ typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,value_alloc_type>::destructive_iterator
|
|
29
|
+
st_iterator;
|
|
30
|
+
|
|
31
|
+
typedef std::forward_iterator_tag iterator_category; // very little defined!
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#! /bin/sh
|
|
2
2
|
# Attempt to guess a canonical system name.
|
|
3
3
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
4
|
-
# 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
|
5
|
-
# Inc.
|
|
4
|
+
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
5
|
+
# 2011 Free Software Foundation, Inc.
|
|
6
6
|
|
|
7
|
-
timestamp='
|
|
7
|
+
timestamp='2011-05-11'
|
|
8
8
|
|
|
9
9
|
# This file is free software; you can redistribute it and/or modify it
|
|
10
10
|
# under the terms of the GNU General Public License as published by
|
|
@@ -27,16 +27,16 @@ timestamp='2007-07-22'
|
|
|
27
27
|
# the same distribution terms that you use for the rest of that program.
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
# Originally written by Per Bothner
|
|
31
|
-
#
|
|
32
|
-
#
|
|
30
|
+
# Originally written by Per Bothner. Please send patches (context
|
|
31
|
+
# diff format) to <config-patches@gnu.org> and include a ChangeLog
|
|
32
|
+
# entry.
|
|
33
33
|
#
|
|
34
34
|
# This script attempts to guess a canonical system name similar to
|
|
35
35
|
# config.sub. If it succeeds, it prints the system name on stdout, and
|
|
36
36
|
# exits with 0. Otherwise, it exits with 1.
|
|
37
37
|
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
38
|
+
# You can get the latest version of this script from:
|
|
39
|
+
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
40
40
|
|
|
41
41
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
|
42
42
|
|
|
@@ -56,8 +56,9 @@ version="\
|
|
|
56
56
|
GNU config.guess ($timestamp)
|
|
57
57
|
|
|
58
58
|
Originally written by Per Bothner.
|
|
59
|
-
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
60
|
-
|
|
59
|
+
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
60
|
+
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
|
|
61
|
+
Software Foundation, Inc.
|
|
61
62
|
|
|
62
63
|
This is free software; see the source for copying conditions. There is NO
|
|
63
64
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
@@ -170,7 +171,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
170
171
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
|
171
172
|
eval $set_cc_for_build
|
|
172
173
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
173
|
-
| grep __ELF__
|
|
174
|
+
| grep -q __ELF__
|
|
174
175
|
then
|
|
175
176
|
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
|
176
177
|
# Return netbsd for either. FIX?
|
|
@@ -180,7 +181,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
180
181
|
fi
|
|
181
182
|
;;
|
|
182
183
|
*)
|
|
183
|
-
|
|
184
|
+
os=netbsd
|
|
184
185
|
;;
|
|
185
186
|
esac
|
|
186
187
|
# The OS release
|
|
@@ -223,7 +224,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
223
224
|
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
|
224
225
|
;;
|
|
225
226
|
*5.*)
|
|
226
|
-
|
|
227
|
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
|
227
228
|
;;
|
|
228
229
|
esac
|
|
229
230
|
# According to Compaq, /usr/sbin/psrinfo has been available on
|
|
@@ -269,7 +270,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
269
270
|
# A Xn.n version is an unreleased experimental baselevel.
|
|
270
271
|
# 1.2 uses "1.2" for uname -r.
|
|
271
272
|
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
272
|
-
exit
|
|
273
|
+
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
|
274
|
+
exitcode=$?
|
|
275
|
+
trap '' 0
|
|
276
|
+
exit $exitcode ;;
|
|
273
277
|
Alpha\ *:Windows_NT*:*)
|
|
274
278
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
275
279
|
# Should we change UNAME_MACHINE based on the output of uname instead
|
|
@@ -295,7 +299,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
295
299
|
echo s390-ibm-zvmoe
|
|
296
300
|
exit ;;
|
|
297
301
|
*:OS400:*:*)
|
|
298
|
-
|
|
302
|
+
echo powerpc-ibm-os400
|
|
299
303
|
exit ;;
|
|
300
304
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
|
301
305
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
|
@@ -324,14 +328,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
324
328
|
case `/usr/bin/uname -p` in
|
|
325
329
|
sparc) echo sparc-icl-nx7; exit ;;
|
|
326
330
|
esac ;;
|
|
331
|
+
s390x:SunOS:*:*)
|
|
332
|
+
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
333
|
+
exit ;;
|
|
327
334
|
sun4H:SunOS:5.*:*)
|
|
328
335
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
329
336
|
exit ;;
|
|
330
337
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
|
331
338
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
332
339
|
exit ;;
|
|
340
|
+
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
|
341
|
+
echo i386-pc-auroraux${UNAME_RELEASE}
|
|
342
|
+
exit ;;
|
|
333
343
|
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
|
334
|
-
|
|
344
|
+
eval $set_cc_for_build
|
|
345
|
+
SUN_ARCH="i386"
|
|
346
|
+
# If there is a compiler, see if it is configured for 64-bit objects.
|
|
347
|
+
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
|
348
|
+
# This test works for both compilers.
|
|
349
|
+
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
350
|
+
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
351
|
+
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
352
|
+
grep IS_64BIT_ARCH >/dev/null
|
|
353
|
+
then
|
|
354
|
+
SUN_ARCH="x86_64"
|
|
355
|
+
fi
|
|
356
|
+
fi
|
|
357
|
+
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
335
358
|
exit ;;
|
|
336
359
|
sun4*:SunOS:6*:*)
|
|
337
360
|
# According to config.sub, this is the proper way to canonicalize
|
|
@@ -375,23 +398,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
375
398
|
# MiNT. But MiNT is downward compatible to TOS, so this should
|
|
376
399
|
# be no problem.
|
|
377
400
|
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
378
|
-
|
|
401
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
|
379
402
|
exit ;;
|
|
380
403
|
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
381
404
|
echo m68k-atari-mint${UNAME_RELEASE}
|
|
382
|
-
|
|
405
|
+
exit ;;
|
|
383
406
|
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
|
384
|
-
|
|
407
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
|
385
408
|
exit ;;
|
|
386
409
|
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
|
387
|
-
|
|
388
|
-
|
|
410
|
+
echo m68k-milan-mint${UNAME_RELEASE}
|
|
411
|
+
exit ;;
|
|
389
412
|
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
|
390
|
-
|
|
391
|
-
|
|
413
|
+
echo m68k-hades-mint${UNAME_RELEASE}
|
|
414
|
+
exit ;;
|
|
392
415
|
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
|
393
|
-
|
|
394
|
-
|
|
416
|
+
echo m68k-unknown-mint${UNAME_RELEASE}
|
|
417
|
+
exit ;;
|
|
395
418
|
m68k:machten:*:*)
|
|
396
419
|
echo m68k-apple-machten${UNAME_RELEASE}
|
|
397
420
|
exit ;;
|
|
@@ -461,8 +484,8 @@ EOF
|
|
|
461
484
|
echo m88k-motorola-sysv3
|
|
462
485
|
exit ;;
|
|
463
486
|
AViiON:dgux:*:*)
|
|
464
|
-
|
|
465
|
-
|
|
487
|
+
# DG/UX returns AViiON for all architectures
|
|
488
|
+
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
466
489
|
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
|
467
490
|
then
|
|
468
491
|
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
|
@@ -475,7 +498,7 @@ EOF
|
|
|
475
498
|
else
|
|
476
499
|
echo i586-dg-dgux${UNAME_RELEASE}
|
|
477
500
|
fi
|
|
478
|
-
|
|
501
|
+
exit ;;
|
|
479
502
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
|
480
503
|
echo m88k-dolphin-sysv3
|
|
481
504
|
exit ;;
|
|
@@ -532,7 +555,7 @@ EOF
|
|
|
532
555
|
echo rs6000-ibm-aix3.2
|
|
533
556
|
fi
|
|
534
557
|
exit ;;
|
|
535
|
-
*:AIX:*:[
|
|
558
|
+
*:AIX:*:[4567])
|
|
536
559
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
|
537
560
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
|
538
561
|
IBM_ARCH=rs6000
|
|
@@ -575,52 +598,52 @@ EOF
|
|
|
575
598
|
9000/[678][0-9][0-9])
|
|
576
599
|
if [ -x /usr/bin/getconf ]; then
|
|
577
600
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
601
|
+
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
602
|
+
case "${sc_cpu_version}" in
|
|
603
|
+
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
604
|
+
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
605
|
+
532) # CPU_PA_RISC2_0
|
|
606
|
+
case "${sc_kernel_bits}" in
|
|
607
|
+
32) HP_ARCH="hppa2.0n" ;;
|
|
608
|
+
64) HP_ARCH="hppa2.0w" ;;
|
|
586
609
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
|
587
|
-
|
|
588
|
-
|
|
610
|
+
esac ;;
|
|
611
|
+
esac
|
|
589
612
|
fi
|
|
590
613
|
if [ "${HP_ARCH}" = "" ]; then
|
|
591
614
|
eval $set_cc_for_build
|
|
592
|
-
sed 's/^
|
|
615
|
+
sed 's/^ //' << EOF >$dummy.c
|
|
593
616
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
617
|
+
#define _HPUX_SOURCE
|
|
618
|
+
#include <stdlib.h>
|
|
619
|
+
#include <unistd.h>
|
|
597
620
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
621
|
+
int main ()
|
|
622
|
+
{
|
|
623
|
+
#if defined(_SC_KERNEL_BITS)
|
|
624
|
+
long bits = sysconf(_SC_KERNEL_BITS);
|
|
625
|
+
#endif
|
|
626
|
+
long cpu = sysconf (_SC_CPU_VERSION);
|
|
604
627
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
628
|
+
switch (cpu)
|
|
629
|
+
{
|
|
630
|
+
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
631
|
+
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
632
|
+
case CPU_PA_RISC2_0:
|
|
633
|
+
#if defined(_SC_KERNEL_BITS)
|
|
634
|
+
switch (bits)
|
|
635
|
+
{
|
|
636
|
+
case 64: puts ("hppa2.0w"); break;
|
|
637
|
+
case 32: puts ("hppa2.0n"); break;
|
|
638
|
+
default: puts ("hppa2.0"); break;
|
|
639
|
+
} break;
|
|
640
|
+
#else /* !defined(_SC_KERNEL_BITS) */
|
|
641
|
+
puts ("hppa2.0"); break;
|
|
642
|
+
#endif
|
|
643
|
+
default: puts ("hppa1.0"); break;
|
|
644
|
+
}
|
|
645
|
+
exit (0);
|
|
646
|
+
}
|
|
624
647
|
EOF
|
|
625
648
|
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
|
626
649
|
test -z "$HP_ARCH" && HP_ARCH=hppa
|
|
@@ -640,7 +663,7 @@ EOF
|
|
|
640
663
|
# => hppa64-hp-hpux11.23
|
|
641
664
|
|
|
642
665
|
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
|
643
|
-
grep __LP64__
|
|
666
|
+
grep -q __LP64__
|
|
644
667
|
then
|
|
645
668
|
HP_ARCH="hppa2.0w"
|
|
646
669
|
else
|
|
@@ -711,22 +734,22 @@ EOF
|
|
|
711
734
|
exit ;;
|
|
712
735
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
|
713
736
|
echo c1-convex-bsd
|
|
714
|
-
|
|
737
|
+
exit ;;
|
|
715
738
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
|
716
739
|
if getsysinfo -f scalar_acc
|
|
717
740
|
then echo c32-convex-bsd
|
|
718
741
|
else echo c2-convex-bsd
|
|
719
742
|
fi
|
|
720
|
-
|
|
743
|
+
exit ;;
|
|
721
744
|
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
|
722
745
|
echo c34-convex-bsd
|
|
723
|
-
|
|
746
|
+
exit ;;
|
|
724
747
|
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
|
725
748
|
echo c38-convex-bsd
|
|
726
|
-
|
|
749
|
+
exit ;;
|
|
727
750
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
|
728
751
|
echo c4-convex-bsd
|
|
729
|
-
|
|
752
|
+
exit ;;
|
|
730
753
|
CRAY*Y-MP:*:*:*)
|
|
731
754
|
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
732
755
|
exit ;;
|
|
@@ -750,14 +773,14 @@ EOF
|
|
|
750
773
|
exit ;;
|
|
751
774
|
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
|
752
775
|
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
776
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
777
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|
778
|
+
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
779
|
+
exit ;;
|
|
757
780
|
5000:UNIX_System_V:4.*:*)
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
781
|
+
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
782
|
+
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
|
783
|
+
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
761
784
|
exit ;;
|
|
762
785
|
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
|
763
786
|
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
|
@@ -785,24 +808,30 @@ EOF
|
|
|
785
808
|
echo ${UNAME_MACHINE}-pc-mingw32
|
|
786
809
|
exit ;;
|
|
787
810
|
i*:windows32*:*)
|
|
788
|
-
|
|
789
|
-
|
|
811
|
+
# uname -m includes "-pc" on this system.
|
|
812
|
+
echo ${UNAME_MACHINE}-mingw32
|
|
790
813
|
exit ;;
|
|
791
814
|
i*:PW*:*)
|
|
792
815
|
echo ${UNAME_MACHINE}-pc-pw32
|
|
793
816
|
exit ;;
|
|
794
|
-
*:Interix
|
|
795
|
-
|
|
817
|
+
*:Interix*:*)
|
|
818
|
+
case ${UNAME_MACHINE} in
|
|
796
819
|
x86)
|
|
797
820
|
echo i586-pc-interix${UNAME_RELEASE}
|
|
798
821
|
exit ;;
|
|
799
|
-
|
|
822
|
+
authenticamd | genuineintel | EM64T)
|
|
800
823
|
echo x86_64-unknown-interix${UNAME_RELEASE}
|
|
801
824
|
exit ;;
|
|
825
|
+
IA64)
|
|
826
|
+
echo ia64-unknown-interix${UNAME_RELEASE}
|
|
827
|
+
exit ;;
|
|
802
828
|
esac ;;
|
|
803
829
|
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
|
804
830
|
echo i${UNAME_MACHINE}-pc-mks
|
|
805
831
|
exit ;;
|
|
832
|
+
8664:Windows_NT:*)
|
|
833
|
+
echo x86_64-pc-mks
|
|
834
|
+
exit ;;
|
|
806
835
|
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
|
807
836
|
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
808
837
|
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
|
@@ -832,8 +861,35 @@ EOF
|
|
|
832
861
|
i*86:Minix:*:*)
|
|
833
862
|
echo ${UNAME_MACHINE}-pc-minix
|
|
834
863
|
exit ;;
|
|
864
|
+
alpha:Linux:*:*)
|
|
865
|
+
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
866
|
+
EV5) UNAME_MACHINE=alphaev5 ;;
|
|
867
|
+
EV56) UNAME_MACHINE=alphaev56 ;;
|
|
868
|
+
PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
869
|
+
PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
870
|
+
EV6) UNAME_MACHINE=alphaev6 ;;
|
|
871
|
+
EV67) UNAME_MACHINE=alphaev67 ;;
|
|
872
|
+
EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
873
|
+
esac
|
|
874
|
+
objdump --private-headers /bin/sh | grep -q ld.so.1
|
|
875
|
+
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
876
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
877
|
+
exit ;;
|
|
835
878
|
arm*:Linux:*:*)
|
|
836
|
-
|
|
879
|
+
eval $set_cc_for_build
|
|
880
|
+
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
881
|
+
| grep -q __ARM_EABI__
|
|
882
|
+
then
|
|
883
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
884
|
+
else
|
|
885
|
+
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
886
|
+
| grep -q __ARM_PCS_VFP
|
|
887
|
+
then
|
|
888
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
|
889
|
+
else
|
|
890
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
|
891
|
+
fi
|
|
892
|
+
fi
|
|
837
893
|
exit ;;
|
|
838
894
|
avr32*:Linux:*:*)
|
|
839
895
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
@@ -845,7 +901,18 @@ EOF
|
|
|
845
901
|
echo crisv32-axis-linux-gnu
|
|
846
902
|
exit ;;
|
|
847
903
|
frv:Linux:*:*)
|
|
848
|
-
|
|
904
|
+
echo frv-unknown-linux-gnu
|
|
905
|
+
exit ;;
|
|
906
|
+
i*86:Linux:*:*)
|
|
907
|
+
LIBC=gnu
|
|
908
|
+
eval $set_cc_for_build
|
|
909
|
+
sed 's/^ //' << EOF >$dummy.c
|
|
910
|
+
#ifdef __dietlibc__
|
|
911
|
+
LIBC=dietlibc
|
|
912
|
+
#endif
|
|
913
|
+
EOF
|
|
914
|
+
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
|
915
|
+
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
849
916
|
exit ;;
|
|
850
917
|
ia64:Linux:*:*)
|
|
851
918
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
@@ -856,74 +923,33 @@ EOF
|
|
|
856
923
|
m68*:Linux:*:*)
|
|
857
924
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
858
925
|
exit ;;
|
|
859
|
-
mips:Linux:*:*)
|
|
860
|
-
eval $set_cc_for_build
|
|
861
|
-
sed 's/^ //' << EOF >$dummy.c
|
|
862
|
-
#undef CPU
|
|
863
|
-
#undef mips
|
|
864
|
-
#undef mipsel
|
|
865
|
-
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
866
|
-
CPU=mipsel
|
|
867
|
-
#else
|
|
868
|
-
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
869
|
-
CPU=mips
|
|
870
|
-
#else
|
|
871
|
-
CPU=
|
|
872
|
-
#endif
|
|
873
|
-
#endif
|
|
874
|
-
EOF
|
|
875
|
-
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
876
|
-
/^CPU/{
|
|
877
|
-
s: ::g
|
|
878
|
-
p
|
|
879
|
-
}'`"
|
|
880
|
-
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
881
|
-
;;
|
|
882
|
-
mips64:Linux:*:*)
|
|
926
|
+
mips:Linux:*:* | mips64:Linux:*:*)
|
|
883
927
|
eval $set_cc_for_build
|
|
884
928
|
sed 's/^ //' << EOF >$dummy.c
|
|
885
929
|
#undef CPU
|
|
886
|
-
#undef
|
|
887
|
-
#undef
|
|
930
|
+
#undef ${UNAME_MACHINE}
|
|
931
|
+
#undef ${UNAME_MACHINE}el
|
|
888
932
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
889
|
-
CPU
|
|
933
|
+
CPU=${UNAME_MACHINE}el
|
|
890
934
|
#else
|
|
891
935
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
892
|
-
CPU
|
|
936
|
+
CPU=${UNAME_MACHINE}
|
|
893
937
|
#else
|
|
894
938
|
CPU=
|
|
895
939
|
#endif
|
|
896
940
|
#endif
|
|
897
941
|
EOF
|
|
898
|
-
eval
|
|
899
|
-
/^CPU/{
|
|
900
|
-
s: ::g
|
|
901
|
-
p
|
|
902
|
-
}'`"
|
|
942
|
+
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
|
903
943
|
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
904
944
|
;;
|
|
905
945
|
or32:Linux:*:*)
|
|
906
946
|
echo or32-unknown-linux-gnu
|
|
907
947
|
exit ;;
|
|
908
|
-
|
|
909
|
-
echo
|
|
948
|
+
padre:Linux:*:*)
|
|
949
|
+
echo sparc-unknown-linux-gnu
|
|
910
950
|
exit ;;
|
|
911
|
-
|
|
912
|
-
echo
|
|
913
|
-
exit ;;
|
|
914
|
-
alpha:Linux:*:*)
|
|
915
|
-
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
916
|
-
EV5) UNAME_MACHINE=alphaev5 ;;
|
|
917
|
-
EV56) UNAME_MACHINE=alphaev56 ;;
|
|
918
|
-
PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
919
|
-
PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
920
|
-
EV6) UNAME_MACHINE=alphaev6 ;;
|
|
921
|
-
EV67) UNAME_MACHINE=alphaev67 ;;
|
|
922
|
-
EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
923
|
-
esac
|
|
924
|
-
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
|
925
|
-
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
926
|
-
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
951
|
+
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
952
|
+
echo hppa64-unknown-linux-gnu
|
|
927
953
|
exit ;;
|
|
928
954
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
|
929
955
|
# Look for CPU level
|
|
@@ -933,14 +959,17 @@ EOF
|
|
|
933
959
|
*) echo hppa-unknown-linux-gnu ;;
|
|
934
960
|
esac
|
|
935
961
|
exit ;;
|
|
936
|
-
|
|
937
|
-
echo
|
|
962
|
+
ppc64:Linux:*:*)
|
|
963
|
+
echo powerpc64-unknown-linux-gnu
|
|
964
|
+
exit ;;
|
|
965
|
+
ppc:Linux:*:*)
|
|
966
|
+
echo powerpc-unknown-linux-gnu
|
|
938
967
|
exit ;;
|
|
939
968
|
s390:Linux:*:* | s390x:Linux:*:*)
|
|
940
969
|
echo ${UNAME_MACHINE}-ibm-linux
|
|
941
970
|
exit ;;
|
|
942
971
|
sh64*:Linux:*:*)
|
|
943
|
-
|
|
972
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
944
973
|
exit ;;
|
|
945
974
|
sh*:Linux:*:*)
|
|
946
975
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
@@ -948,78 +977,18 @@ EOF
|
|
|
948
977
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
|
949
978
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
950
979
|
exit ;;
|
|
980
|
+
tile*:Linux:*:*)
|
|
981
|
+
echo ${UNAME_MACHINE}-tilera-linux-gnu
|
|
982
|
+
exit ;;
|
|
951
983
|
vax:Linux:*:*)
|
|
952
984
|
echo ${UNAME_MACHINE}-dec-linux-gnu
|
|
953
985
|
exit ;;
|
|
954
986
|
x86_64:Linux:*:*)
|
|
955
987
|
echo x86_64-unknown-linux-gnu
|
|
956
988
|
exit ;;
|
|
957
|
-
xtensa
|
|
958
|
-
|
|
989
|
+
xtensa*:Linux:*:*)
|
|
990
|
+
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
959
991
|
exit ;;
|
|
960
|
-
i*86:Linux:*:*)
|
|
961
|
-
# The BFD linker knows what the default object file format is, so
|
|
962
|
-
# first see if it will tell us. cd to the root directory to prevent
|
|
963
|
-
# problems with other programs or directories called `ld' in the path.
|
|
964
|
-
# Set LC_ALL=C to ensure ld outputs messages in English.
|
|
965
|
-
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
|
966
|
-
| sed -ne '/supported targets:/!d
|
|
967
|
-
s/[ ][ ]*/ /g
|
|
968
|
-
s/.*supported targets: *//
|
|
969
|
-
s/ .*//
|
|
970
|
-
p'`
|
|
971
|
-
case "$ld_supported_targets" in
|
|
972
|
-
elf32-i386)
|
|
973
|
-
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
|
974
|
-
;;
|
|
975
|
-
a.out-i386-linux)
|
|
976
|
-
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
|
977
|
-
exit ;;
|
|
978
|
-
coff-i386)
|
|
979
|
-
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
|
980
|
-
exit ;;
|
|
981
|
-
"")
|
|
982
|
-
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
|
983
|
-
# one that does not give us useful --help.
|
|
984
|
-
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
|
985
|
-
exit ;;
|
|
986
|
-
esac
|
|
987
|
-
# Determine whether the default compiler is a.out or elf
|
|
988
|
-
eval $set_cc_for_build
|
|
989
|
-
sed 's/^ //' << EOF >$dummy.c
|
|
990
|
-
#include <features.h>
|
|
991
|
-
#ifdef __ELF__
|
|
992
|
-
# ifdef __GLIBC__
|
|
993
|
-
# if __GLIBC__ >= 2
|
|
994
|
-
LIBC=gnu
|
|
995
|
-
# else
|
|
996
|
-
LIBC=gnulibc1
|
|
997
|
-
# endif
|
|
998
|
-
# else
|
|
999
|
-
LIBC=gnulibc1
|
|
1000
|
-
# endif
|
|
1001
|
-
#else
|
|
1002
|
-
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
|
1003
|
-
LIBC=gnu
|
|
1004
|
-
#else
|
|
1005
|
-
LIBC=gnuaout
|
|
1006
|
-
#endif
|
|
1007
|
-
#endif
|
|
1008
|
-
#ifdef __dietlibc__
|
|
1009
|
-
LIBC=dietlibc
|
|
1010
|
-
#endif
|
|
1011
|
-
EOF
|
|
1012
|
-
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
1013
|
-
/^LIBC/{
|
|
1014
|
-
s: ::g
|
|
1015
|
-
p
|
|
1016
|
-
}'`"
|
|
1017
|
-
test x"${LIBC}" != x && {
|
|
1018
|
-
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
1019
|
-
exit
|
|
1020
|
-
}
|
|
1021
|
-
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
|
1022
|
-
;;
|
|
1023
992
|
i*86:DYNIX/ptx:4*:*)
|
|
1024
993
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
|
1025
994
|
# earlier versions are messed up and put the nodename in both
|
|
@@ -1027,11 +996,11 @@ EOF
|
|
|
1027
996
|
echo i386-sequent-sysv4
|
|
1028
997
|
exit ;;
|
|
1029
998
|
i*86:UNIX_SV:4.2MP:2.*)
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
999
|
+
# Unixware is an offshoot of SVR4, but it has its own version
|
|
1000
|
+
# number series starting with 2...
|
|
1001
|
+
# I am not positive that other SVR4 systems won't match this,
|
|
1033
1002
|
# I just have to hope. -- rms.
|
|
1034
|
-
|
|
1003
|
+
# Use sysv4.2uw... so that sysv4* matches it.
|
|
1035
1004
|
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
|
1036
1005
|
exit ;;
|
|
1037
1006
|
i*86:OS/2:*:*)
|
|
@@ -1048,7 +1017,7 @@ EOF
|
|
|
1048
1017
|
i*86:syllable:*:*)
|
|
1049
1018
|
echo ${UNAME_MACHINE}-pc-syllable
|
|
1050
1019
|
exit ;;
|
|
1051
|
-
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.
|
|
1020
|
+
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
|
1052
1021
|
echo i386-unknown-lynxos${UNAME_RELEASE}
|
|
1053
1022
|
exit ;;
|
|
1054
1023
|
i*86:*DOS:*:*)
|
|
@@ -1063,7 +1032,7 @@ EOF
|
|
|
1063
1032
|
fi
|
|
1064
1033
|
exit ;;
|
|
1065
1034
|
i*86:*:5:[678]*)
|
|
1066
|
-
|
|
1035
|
+
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
|
1067
1036
|
case `/bin/uname -X | grep "^Machine"` in
|
|
1068
1037
|
*486*) UNAME_MACHINE=i486 ;;
|
|
1069
1038
|
*Pentium) UNAME_MACHINE=i586 ;;
|
|
@@ -1091,10 +1060,13 @@ EOF
|
|
|
1091
1060
|
exit ;;
|
|
1092
1061
|
pc:*:*:*)
|
|
1093
1062
|
# Left here for compatibility:
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1063
|
+
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
|
1064
|
+
# the processor, so we play safe by assuming i586.
|
|
1065
|
+
# Note: whatever this is, it MUST be the same as what config.sub
|
|
1066
|
+
# prints for the "djgpp" host, or else GDB configury will decide that
|
|
1067
|
+
# this is a cross-build.
|
|
1068
|
+
echo i586-pc-msdosdjgpp
|
|
1069
|
+
exit ;;
|
|
1098
1070
|
Intel:Mach:3*:*)
|
|
1099
1071
|
echo i386-pc-mach3
|
|
1100
1072
|
exit ;;
|
|
@@ -1129,8 +1101,18 @@ EOF
|
|
|
1129
1101
|
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
1130
1102
|
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
1131
1103
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
|
1132
|
-
|
|
1133
|
-
|
|
1104
|
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
1105
|
+
&& { echo i486-ncr-sysv4; exit; } ;;
|
|
1106
|
+
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
|
1107
|
+
OS_REL='.3'
|
|
1108
|
+
test -r /etc/.relid \
|
|
1109
|
+
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
1110
|
+
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
1111
|
+
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
1112
|
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
1113
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
|
1114
|
+
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
|
1115
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
1134
1116
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
|
1135
1117
|
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
|
1136
1118
|
exit ;;
|
|
@@ -1143,7 +1125,7 @@ EOF
|
|
|
1143
1125
|
rs6000:LynxOS:2.*:*)
|
|
1144
1126
|
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
|
1145
1127
|
exit ;;
|
|
1146
|
-
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.
|
|
1128
|
+
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
|
1147
1129
|
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
|
1148
1130
|
exit ;;
|
|
1149
1131
|
SM[BE]S:UNIX_SV:*:*)
|
|
@@ -1163,10 +1145,10 @@ EOF
|
|
|
1163
1145
|
echo ns32k-sni-sysv
|
|
1164
1146
|
fi
|
|
1165
1147
|
exit ;;
|
|
1166
|
-
PENTIUM:*:4.0*:*)
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1148
|
+
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
|
1149
|
+
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
|
1150
|
+
echo i586-unisys-sysv4
|
|
1151
|
+
exit ;;
|
|
1170
1152
|
*:UNIX_System_V:4*:FTX*)
|
|
1171
1153
|
# From Gerald Hewes <hewes@openmarket.com>.
|
|
1172
1154
|
# How about differentiating between stratus architectures? -djm
|
|
@@ -1192,11 +1174,11 @@ EOF
|
|
|
1192
1174
|
exit ;;
|
|
1193
1175
|
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
|
1194
1176
|
if [ -d /usr/nec ]; then
|
|
1195
|
-
|
|
1177
|
+
echo mips-nec-sysv${UNAME_RELEASE}
|
|
1196
1178
|
else
|
|
1197
|
-
|
|
1179
|
+
echo mips-unknown-sysv${UNAME_RELEASE}
|
|
1198
1180
|
fi
|
|
1199
|
-
|
|
1181
|
+
exit ;;
|
|
1200
1182
|
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
|
1201
1183
|
echo powerpc-be-beos
|
|
1202
1184
|
exit ;;
|
|
@@ -1206,6 +1188,9 @@ EOF
|
|
|
1206
1188
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
|
1207
1189
|
echo i586-pc-beos
|
|
1208
1190
|
exit ;;
|
|
1191
|
+
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
1192
|
+
echo i586-pc-haiku
|
|
1193
|
+
exit ;;
|
|
1209
1194
|
SX-4:SUPER-UX:*:*)
|
|
1210
1195
|
echo sx4-nec-superux${UNAME_RELEASE}
|
|
1211
1196
|
exit ;;
|
|
@@ -1233,6 +1218,16 @@ EOF
|
|
|
1233
1218
|
*:Darwin:*:*)
|
|
1234
1219
|
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
|
1235
1220
|
case $UNAME_PROCESSOR in
|
|
1221
|
+
i386)
|
|
1222
|
+
eval $set_cc_for_build
|
|
1223
|
+
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
1224
|
+
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
1225
|
+
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
1226
|
+
grep IS_64BIT_ARCH >/dev/null
|
|
1227
|
+
then
|
|
1228
|
+
UNAME_PROCESSOR="x86_64"
|
|
1229
|
+
fi
|
|
1230
|
+
fi ;;
|
|
1236
1231
|
unknown) UNAME_PROCESSOR=powerpc ;;
|
|
1237
1232
|
esac
|
|
1238
1233
|
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
|
@@ -1248,6 +1243,9 @@ EOF
|
|
|
1248
1243
|
*:QNX:*:4*)
|
|
1249
1244
|
echo i386-pc-qnx
|
|
1250
1245
|
exit ;;
|
|
1246
|
+
NEO-?:NONSTOP_KERNEL:*:*)
|
|
1247
|
+
echo neo-tandem-nsk${UNAME_RELEASE}
|
|
1248
|
+
exit ;;
|
|
1251
1249
|
NSE-?:NONSTOP_KERNEL:*:*)
|
|
1252
1250
|
echo nse-tandem-nsk${UNAME_RELEASE}
|
|
1253
1251
|
exit ;;
|
|
@@ -1293,13 +1291,13 @@ EOF
|
|
|
1293
1291
|
echo pdp10-unknown-its
|
|
1294
1292
|
exit ;;
|
|
1295
1293
|
SEI:*:*:SEIUX)
|
|
1296
|
-
|
|
1294
|
+
echo mips-sei-seiux${UNAME_RELEASE}
|
|
1297
1295
|
exit ;;
|
|
1298
1296
|
*:DragonFly:*:*)
|
|
1299
1297
|
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
|
1300
1298
|
exit ;;
|
|
1301
1299
|
*:*VMS:*:*)
|
|
1302
|
-
|
|
1300
|
+
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
1303
1301
|
case "${UNAME_MACHINE}" in
|
|
1304
1302
|
A*) echo alpha-dec-vms ; exit ;;
|
|
1305
1303
|
I*) echo ia64-dec-vms ; exit ;;
|
|
@@ -1314,6 +1312,9 @@ EOF
|
|
|
1314
1312
|
i*86:rdos:*:*)
|
|
1315
1313
|
echo ${UNAME_MACHINE}-pc-rdos
|
|
1316
1314
|
exit ;;
|
|
1315
|
+
i*86:AROS:*:*)
|
|
1316
|
+
echo ${UNAME_MACHINE}-pc-aros
|
|
1317
|
+
exit ;;
|
|
1317
1318
|
esac
|
|
1318
1319
|
|
|
1319
1320
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
|
@@ -1336,11 +1337,11 @@ main ()
|
|
|
1336
1337
|
#include <sys/param.h>
|
|
1337
1338
|
printf ("m68k-sony-newsos%s\n",
|
|
1338
1339
|
#ifdef NEWSOS4
|
|
1339
|
-
|
|
1340
|
+
"4"
|
|
1340
1341
|
#else
|
|
1341
|
-
|
|
1342
|
+
""
|
|
1342
1343
|
#endif
|
|
1343
|
-
|
|
1344
|
+
); exit (0);
|
|
1344
1345
|
#endif
|
|
1345
1346
|
#endif
|
|
1346
1347
|
|
|
@@ -1474,9 +1475,9 @@ This script, last modified $timestamp, has failed to recognize
|
|
|
1474
1475
|
the operating system you are using. It is advised that you
|
|
1475
1476
|
download the most up to date version of the config scripts from
|
|
1476
1477
|
|
|
1477
|
-
http://savannah.gnu.org/
|
|
1478
|
+
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
1478
1479
|
and
|
|
1479
|
-
http://savannah.gnu.org/
|
|
1480
|
+
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
|
1480
1481
|
|
|
1481
1482
|
If the version you run ($0) is already up to date, please
|
|
1482
1483
|
send the following data and any information you think might be
|