clusterlb 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +761 -1
- data/build.sh +4 -0
- data/clusterlb.gemspec +3 -0
- data/exe/clusterlb-stectrl +3 -2
- data/lib/clusterlb/version.rb +1 -1
- data/lib/clusterlb.rb +108 -5
- data/omnibus/.gitignore +10 -0
- data/omnibus/.kitchen.yml +41 -0
- data/omnibus/.ruby-version +1 -0
- data/omnibus/Berksfile +12 -0
- data/omnibus/Gemfile +21 -0
- data/omnibus/Gemfile.lock +284 -0
- data/omnibus/README.md +120 -0
- data/omnibus/build.sh +3 -0
- data/omnibus/config/patches/eventmachine/disable-extensions.patch +11 -0
- data/omnibus/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +83 -0
- data/omnibus/config/patches/libffi/libffi-3.2.1-makefiles-sparc.patch +24 -0
- data/omnibus/config/patches/libiconv/config.guess_2015-09-14.patch +2390 -0
- data/omnibus/config/patches/libiconv/libiconv-1.14_srclib_stdio.in.h-remove-gets-declarations.patch +29 -0
- data/omnibus/config/patches/libyaml/v0.1.6.windows-configure.patch +26 -0
- data/omnibus/config/patches/ncurses/config_guess_2015-09-24.patch +857 -0
- data/omnibus/config/patches/ncurses/ncurses-5.9-gcc-5.patch +46 -0
- data/omnibus/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +28 -0
- data/omnibus/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +20 -0
- data/omnibus/config/patches/openssl/openssl-1.0.2k-no-bang.patch +17 -0
- data/omnibus/config/patches/openssl/solaris-do-not-define-xopen-source.patch +24 -0
- data/omnibus/config/patches/pkg-config-lite/pkg-config-lite-0.28-1.config.guess.patch +992 -0
- data/omnibus/config/patches/ruby/ruby-2_1_3-no-mkmf.patch +22 -0
- data/omnibus/config/patches/ruby/ruby-aix-atomic.patch +11 -0
- data/omnibus/config/patches/ruby/ruby-aix-configure-all-source.patch +11 -0
- data/omnibus/config/patches/ruby/ruby-aix-configure-use-bash.patch +8 -0
- data/omnibus/config/patches/ruby/ruby-aix-configure.patch +20 -0
- data/omnibus/config/patches/ruby/ruby-aix-vm-core.patch +14 -0
- data/omnibus/config/patches/ruby/ruby-mkmf.patch +29 -0
- data/omnibus/config/patches/ruby/ruby-no-m32-cflag.patch +38 -0
- data/omnibus/config/patches/ruby/ruby-no-stack-protector.patch +13 -0
- data/omnibus/config/patches/ruby/ruby-remove-headc.patch +10 -0
- data/omnibus/config/patches/ruby/ruby-solaris-linux-socket-compat.patch +42 -0
- data/omnibus/config/patches/ruby/ruby-take-windres-rcflags.patch +11 -0
- data/omnibus/config/patches/ruby/ruby_aix_2_1_3_ssl_EAGAIN.patch +19 -0
- data/omnibus/config/patches/ruby/ruby_aix_openssl.patch +10 -0
- data/omnibus/config/patches/ruby/ruby_nano.patch +68 -0
- data/omnibus/config/patches/zlib/zlib-windows-relocate.patch +20 -0
- data/omnibus/config/projects/clusterlb.rb +38 -0
- data/omnibus/config/software/acme.sh.rb +18 -0
- data/omnibus/config/software/cacerts.rb +89 -0
- data/omnibus/config/software/clusterlb-gem.rb +25 -0
- data/omnibus/config/software/clusterlb-zlib.rb +55 -0
- data/omnibus/config/software/config_guess.rb +36 -0
- data/omnibus/config/software/libffi.rb +70 -0
- data/omnibus/config/software/libiconv.rb +62 -0
- data/omnibus/config/software/libtool.rb +55 -0
- data/omnibus/config/software/libyaml.rb +46 -0
- data/omnibus/config/software/makedepend.rb +43 -0
- data/omnibus/config/software/ncurses.rb +154 -0
- data/omnibus/config/software/oggcert-gem.rb +24 -0
- data/omnibus/config/software/openssl.rb +166 -0
- data/omnibus/config/software/pkg-config-lite.rb +45 -0
- data/omnibus/config/software/preparation.rb +30 -0
- data/omnibus/config/software/ruby.rb +238 -0
- data/omnibus/config/software/rubygems.rb +89 -0
- data/omnibus/config/software/util-macros.rb +43 -0
- data/omnibus/config/software/xproto.rb +43 -0
- data/omnibus/config/software/zlib.rb +84 -0
- data/omnibus/omnibus.rb +54 -0
- data/omnibus/package-scripts/clusterlb/postinst +17 -0
- data/omnibus/package-scripts/clusterlb/postrm +9 -0
- data/omnibus/package-scripts/clusterlb/preinst +7 -0
- data/omnibus/package-scripts/clusterlb/prerm +15 -0
- data/omnibus/resources/clusterlb/deb/conffiles.erb +3 -0
- data/omnibus/resources/clusterlb/deb/control.erb +25 -0
- data/omnibus/resources/clusterlb/deb/md5sums.erb +3 -0
- metadata +124 -2
@@ -0,0 +1,2390 @@
|
|
1
|
+
--- build-aux/config.guess.orig 2009-06-21 05:17:33.000000000 -0600
|
2
|
+
+++ build-aux/config.guess 2015-10-16 13:15:48.917942131 -0600
|
3
|
+
@@ -1,14 +1,12 @@
|
4
|
+
#! /bin/sh
|
5
|
+
# Attempt to guess a canonical system name.
|
6
|
+
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
7
|
+
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
8
|
+
-# Free Software Foundation, Inc.
|
9
|
+
+# Copyright 1992-2015 Free Software Foundation, Inc.
|
10
|
+
|
11
|
+
-timestamp='2009-02-03'
|
12
|
+
+timestamp='2015-09-14'
|
13
|
+
|
14
|
+
# This file is free software; you can redistribute it and/or modify it
|
15
|
+
# under the terms of the GNU General Public License as published by
|
16
|
+
-# the Free Software Foundation; either version 2 of the License, or
|
17
|
+
+# the Free Software Foundation; either version 3 of the License, or
|
18
|
+
# (at your option) any later version.
|
19
|
+
#
|
20
|
+
# This program is distributed in the hope that it will be useful, but
|
21
|
+
@@ -17,26 +15,22 @@
|
22
|
+
# General Public License for more details.
|
23
|
+
#
|
24
|
+
# You should have received a copy of the GNU General Public License
|
25
|
+
-# along with this program; if not, write to the Free Software
|
26
|
+
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
27
|
+
-# 02110-1301, USA.
|
28
|
+
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
29
|
+
#
|
30
|
+
# As a special exception to the GNU General Public License, if you
|
31
|
+
# distribute this file as part of a program that contains a
|
32
|
+
# configuration script generated by Autoconf, you may include it under
|
33
|
+
-# the same distribution terms that you use for the rest of that program.
|
34
|
+
-
|
35
|
+
-
|
36
|
+
-# Originally written by Per Bothner <per@bothner.com>.
|
37
|
+
-# Please send patches to <config-patches@gnu.org>. Submit a context
|
38
|
+
-# diff and a properly formatted ChangeLog entry.
|
39
|
+
+# the same distribution terms that you use for the rest of that
|
40
|
+
+# program. This Exception is an additional permission under section 7
|
41
|
+
+# of the GNU General Public License, version 3 ("GPLv3").
|
42
|
+
#
|
43
|
+
-# This script attempts to guess a canonical system name similar to
|
44
|
+
-# config.sub. If it succeeds, it prints the system name on stdout, and
|
45
|
+
-# exits with 0. Otherwise, it exits with 1.
|
46
|
+
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
|
47
|
+
#
|
48
|
+
-# The plan is that this can be called by configure scripts if you
|
49
|
+
-# don't specify an explicit build system type.
|
50
|
+
+# You can get the latest version of this script from:
|
51
|
+
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
52
|
+
+#
|
53
|
+
+# Please send patches to <config-patches@gnu.org>.
|
54
|
+
+
|
55
|
+
|
56
|
+
me=`echo "$0" | sed -e 's,.*/,,'`
|
57
|
+
|
58
|
+
@@ -56,8 +50,7 @@
|
59
|
+
GNU config.guess ($timestamp)
|
60
|
+
|
61
|
+
Originally written by Per Bothner.
|
62
|
+
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
|
63
|
+
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
64
|
+
+Copyright 1992-2015 Free Software Foundation, Inc.
|
65
|
+
|
66
|
+
This is free software; see the source for copying conditions. There is NO
|
67
|
+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
68
|
+
@@ -139,12 +132,33 @@
|
69
|
+
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
70
|
+
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
71
|
+
|
72
|
+
+case "${UNAME_SYSTEM}" in
|
73
|
+
+Linux|GNU|GNU/*)
|
74
|
+
+ # If the system lacks a compiler, then just pick glibc.
|
75
|
+
+ # We could probably try harder.
|
76
|
+
+ LIBC=gnu
|
77
|
+
+
|
78
|
+
+ eval $set_cc_for_build
|
79
|
+
+ cat <<-EOF > $dummy.c
|
80
|
+
+ #include <features.h>
|
81
|
+
+ #if defined(__UCLIBC__)
|
82
|
+
+ LIBC=uclibc
|
83
|
+
+ #elif defined(__dietlibc__)
|
84
|
+
+ LIBC=dietlibc
|
85
|
+
+ #else
|
86
|
+
+ LIBC=gnu
|
87
|
+
+ #endif
|
88
|
+
+ EOF
|
89
|
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
|
90
|
+
+ ;;
|
91
|
+
+esac
|
92
|
+
+
|
93
|
+
# Note: order is significant - the case branches are not exclusive.
|
94
|
+
|
95
|
+
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
96
|
+
*:NetBSD:*:*)
|
97
|
+
# NetBSD (nbsd) targets should (where applicable) match one or
|
98
|
+
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
99
|
+
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
100
|
+
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
101
|
+
# switched to ELF, *-*-netbsd* would select the old
|
102
|
+
# object file format. This provides both forward
|
103
|
+
@@ -154,23 +168,30 @@
|
104
|
+
# Note: NetBSD doesn't particularly care about the vendor
|
105
|
+
# portion of the name. We always set it to "unknown".
|
106
|
+
sysctl="sysctl -n hw.machine_arch"
|
107
|
+
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
|
108
|
+
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
|
109
|
+
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
|
110
|
+
+ /sbin/$sysctl 2>/dev/null || \
|
111
|
+
+ /usr/sbin/$sysctl 2>/dev/null || \
|
112
|
+
+ echo unknown)`
|
113
|
+
case "${UNAME_MACHINE_ARCH}" in
|
114
|
+
armeb) machine=armeb-unknown ;;
|
115
|
+
arm*) machine=arm-unknown ;;
|
116
|
+
sh3el) machine=shl-unknown ;;
|
117
|
+
sh3eb) machine=sh-unknown ;;
|
118
|
+
sh5el) machine=sh5le-unknown ;;
|
119
|
+
+ earmv*)
|
120
|
+
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
|
121
|
+
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
|
122
|
+
+ machine=${arch}${endian}-unknown
|
123
|
+
+ ;;
|
124
|
+
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
125
|
+
esac
|
126
|
+
# The Operating System including object format, if it has switched
|
127
|
+
# to ELF recently, or will in the future.
|
128
|
+
case "${UNAME_MACHINE_ARCH}" in
|
129
|
+
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
130
|
+
+ arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
131
|
+
eval $set_cc_for_build
|
132
|
+
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
133
|
+
- | grep __ELF__ >/dev/null
|
134
|
+
+ | grep -q __ELF__
|
135
|
+
then
|
136
|
+
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
137
|
+
# Return netbsd for either. FIX?
|
138
|
+
@@ -180,7 +201,14 @@
|
139
|
+
fi
|
140
|
+
;;
|
141
|
+
*)
|
142
|
+
- os=netbsd
|
143
|
+
+ os=netbsd
|
144
|
+
+ ;;
|
145
|
+
+ esac
|
146
|
+
+ # Determine ABI tags.
|
147
|
+
+ case "${UNAME_MACHINE_ARCH}" in
|
148
|
+
+ earm*)
|
149
|
+
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
|
150
|
+
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
|
151
|
+
;;
|
152
|
+
esac
|
153
|
+
# The OS release
|
154
|
+
@@ -193,13 +221,17 @@
|
155
|
+
release='-gnu'
|
156
|
+
;;
|
157
|
+
*)
|
158
|
+
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
159
|
+
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
|
160
|
+
;;
|
161
|
+
esac
|
162
|
+
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
163
|
+
# contains redundant information, the shorter form:
|
164
|
+
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
165
|
+
- echo "${machine}-${os}${release}"
|
166
|
+
+ echo "${machine}-${os}${release}${abi}"
|
167
|
+
+ exit ;;
|
168
|
+
+ *:Bitrig:*:*)
|
169
|
+
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
170
|
+
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
171
|
+
exit ;;
|
172
|
+
*:OpenBSD:*:*)
|
173
|
+
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
174
|
+
@@ -217,13 +249,16 @@
|
175
|
+
*:MirBSD:*:*)
|
176
|
+
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
177
|
+
exit ;;
|
178
|
+
+ *:Sortix:*:*)
|
179
|
+
+ echo ${UNAME_MACHINE}-unknown-sortix
|
180
|
+
+ exit ;;
|
181
|
+
alpha:OSF1:*:*)
|
182
|
+
case $UNAME_RELEASE in
|
183
|
+
*4.0)
|
184
|
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
185
|
+
;;
|
186
|
+
*5.*)
|
187
|
+
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
188
|
+
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
189
|
+
;;
|
190
|
+
esac
|
191
|
+
# According to Compaq, /usr/sbin/psrinfo has been available on
|
192
|
+
@@ -269,7 +304,10 @@
|
193
|
+
# A Xn.n version is an unreleased experimental baselevel.
|
194
|
+
# 1.2 uses "1.2" for uname -r.
|
195
|
+
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
196
|
+
- exit ;;
|
197
|
+
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
198
|
+
+ exitcode=$?
|
199
|
+
+ trap '' 0
|
200
|
+
+ exit $exitcode ;;
|
201
|
+
Alpha\ *:Windows_NT*:*)
|
202
|
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
203
|
+
# Should we change UNAME_MACHINE based on the output of uname instead
|
204
|
+
@@ -295,12 +333,12 @@
|
205
|
+
echo s390-ibm-zvmoe
|
206
|
+
exit ;;
|
207
|
+
*:OS400:*:*)
|
208
|
+
- echo powerpc-ibm-os400
|
209
|
+
+ echo powerpc-ibm-os400
|
210
|
+
exit ;;
|
211
|
+
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
212
|
+
echo arm-acorn-riscix${UNAME_RELEASE}
|
213
|
+
exit ;;
|
214
|
+
- arm:riscos:*:*|arm:RISCOS:*:*)
|
215
|
+
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
|
216
|
+
echo arm-unknown-riscos
|
217
|
+
exit ;;
|
218
|
+
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
219
|
+
@@ -324,12 +362,18 @@
|
220
|
+
case `/usr/bin/uname -p` in
|
221
|
+
sparc) echo sparc-icl-nx7; exit ;;
|
222
|
+
esac ;;
|
223
|
+
+ s390x:SunOS:*:*)
|
224
|
+
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
225
|
+
+ exit ;;
|
226
|
+
sun4H:SunOS:5.*:*)
|
227
|
+
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
228
|
+
exit ;;
|
229
|
+
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
230
|
+
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
231
|
+
exit ;;
|
232
|
+
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
233
|
+
+ echo i386-pc-auroraux${UNAME_RELEASE}
|
234
|
+
+ exit ;;
|
235
|
+
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
236
|
+
eval $set_cc_for_build
|
237
|
+
SUN_ARCH="i386"
|
238
|
+
@@ -388,23 +432,23 @@
|
239
|
+
# MiNT. But MiNT is downward compatible to TOS, so this should
|
240
|
+
# be no problem.
|
241
|
+
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
242
|
+
- echo m68k-atari-mint${UNAME_RELEASE}
|
243
|
+
+ echo m68k-atari-mint${UNAME_RELEASE}
|
244
|
+
exit ;;
|
245
|
+
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
246
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
247
|
+
- exit ;;
|
248
|
+
+ exit ;;
|
249
|
+
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
250
|
+
- echo m68k-atari-mint${UNAME_RELEASE}
|
251
|
+
+ echo m68k-atari-mint${UNAME_RELEASE}
|
252
|
+
exit ;;
|
253
|
+
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
254
|
+
- echo m68k-milan-mint${UNAME_RELEASE}
|
255
|
+
- exit ;;
|
256
|
+
+ echo m68k-milan-mint${UNAME_RELEASE}
|
257
|
+
+ exit ;;
|
258
|
+
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
259
|
+
- echo m68k-hades-mint${UNAME_RELEASE}
|
260
|
+
- exit ;;
|
261
|
+
+ echo m68k-hades-mint${UNAME_RELEASE}
|
262
|
+
+ exit ;;
|
263
|
+
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
264
|
+
- echo m68k-unknown-mint${UNAME_RELEASE}
|
265
|
+
- exit ;;
|
266
|
+
+ echo m68k-unknown-mint${UNAME_RELEASE}
|
267
|
+
+ exit ;;
|
268
|
+
m68k:machten:*:*)
|
269
|
+
echo m68k-apple-machten${UNAME_RELEASE}
|
270
|
+
exit ;;
|
271
|
+
@@ -474,8 +518,8 @@
|
272
|
+
echo m88k-motorola-sysv3
|
273
|
+
exit ;;
|
274
|
+
AViiON:dgux:*:*)
|
275
|
+
- # DG/UX returns AViiON for all architectures
|
276
|
+
- UNAME_PROCESSOR=`/usr/bin/uname -p`
|
277
|
+
+ # DG/UX returns AViiON for all architectures
|
278
|
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
279
|
+
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
280
|
+
then
|
281
|
+
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
282
|
+
@@ -488,7 +532,7 @@
|
283
|
+
else
|
284
|
+
echo i586-dg-dgux${UNAME_RELEASE}
|
285
|
+
fi
|
286
|
+
- exit ;;
|
287
|
+
+ exit ;;
|
288
|
+
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
289
|
+
echo m88k-dolphin-sysv3
|
290
|
+
exit ;;
|
291
|
+
@@ -545,15 +589,16 @@
|
292
|
+
echo rs6000-ibm-aix3.2
|
293
|
+
fi
|
294
|
+
exit ;;
|
295
|
+
- *:AIX:*:[456])
|
296
|
+
+ *:AIX:*:[4567])
|
297
|
+
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
298
|
+
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
299
|
+
IBM_ARCH=rs6000
|
300
|
+
else
|
301
|
+
IBM_ARCH=powerpc
|
302
|
+
fi
|
303
|
+
- if [ -x /usr/bin/oslevel ] ; then
|
304
|
+
- IBM_REV=`/usr/bin/oslevel`
|
305
|
+
+ if [ -x /usr/bin/lslpp ] ; then
|
306
|
+
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
|
307
|
+
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
|
308
|
+
else
|
309
|
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
310
|
+
fi
|
311
|
+
@@ -588,52 +633,52 @@
|
312
|
+
9000/[678][0-9][0-9])
|
313
|
+
if [ -x /usr/bin/getconf ]; then
|
314
|
+
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
315
|
+
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
316
|
+
- case "${sc_cpu_version}" in
|
317
|
+
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
318
|
+
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
319
|
+
- 532) # CPU_PA_RISC2_0
|
320
|
+
- case "${sc_kernel_bits}" in
|
321
|
+
- 32) HP_ARCH="hppa2.0n" ;;
|
322
|
+
- 64) HP_ARCH="hppa2.0w" ;;
|
323
|
+
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
324
|
+
+ case "${sc_cpu_version}" in
|
325
|
+
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
326
|
+
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
327
|
+
+ 532) # CPU_PA_RISC2_0
|
328
|
+
+ case "${sc_kernel_bits}" in
|
329
|
+
+ 32) HP_ARCH="hppa2.0n" ;;
|
330
|
+
+ 64) HP_ARCH="hppa2.0w" ;;
|
331
|
+
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
332
|
+
- esac ;;
|
333
|
+
- esac
|
334
|
+
+ esac ;;
|
335
|
+
+ esac
|
336
|
+
fi
|
337
|
+
if [ "${HP_ARCH}" = "" ]; then
|
338
|
+
eval $set_cc_for_build
|
339
|
+
- sed 's/^ //' << EOF >$dummy.c
|
340
|
+
+ sed 's/^ //' << EOF >$dummy.c
|
341
|
+
+
|
342
|
+
+ #define _HPUX_SOURCE
|
343
|
+
+ #include <stdlib.h>
|
344
|
+
+ #include <unistd.h>
|
345
|
+
|
346
|
+
- #define _HPUX_SOURCE
|
347
|
+
- #include <stdlib.h>
|
348
|
+
- #include <unistd.h>
|
349
|
+
-
|
350
|
+
- int main ()
|
351
|
+
- {
|
352
|
+
- #if defined(_SC_KERNEL_BITS)
|
353
|
+
- long bits = sysconf(_SC_KERNEL_BITS);
|
354
|
+
- #endif
|
355
|
+
- long cpu = sysconf (_SC_CPU_VERSION);
|
356
|
+
-
|
357
|
+
- switch (cpu)
|
358
|
+
- {
|
359
|
+
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
360
|
+
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
361
|
+
- case CPU_PA_RISC2_0:
|
362
|
+
- #if defined(_SC_KERNEL_BITS)
|
363
|
+
- switch (bits)
|
364
|
+
- {
|
365
|
+
- case 64: puts ("hppa2.0w"); break;
|
366
|
+
- case 32: puts ("hppa2.0n"); break;
|
367
|
+
- default: puts ("hppa2.0"); break;
|
368
|
+
- } break;
|
369
|
+
- #else /* !defined(_SC_KERNEL_BITS) */
|
370
|
+
- puts ("hppa2.0"); break;
|
371
|
+
- #endif
|
372
|
+
- default: puts ("hppa1.0"); break;
|
373
|
+
- }
|
374
|
+
- exit (0);
|
375
|
+
- }
|
376
|
+
+ int main ()
|
377
|
+
+ {
|
378
|
+
+ #if defined(_SC_KERNEL_BITS)
|
379
|
+
+ long bits = sysconf(_SC_KERNEL_BITS);
|
380
|
+
+ #endif
|
381
|
+
+ long cpu = sysconf (_SC_CPU_VERSION);
|
382
|
+
+
|
383
|
+
+ switch (cpu)
|
384
|
+
+ {
|
385
|
+
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
386
|
+
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
387
|
+
+ case CPU_PA_RISC2_0:
|
388
|
+
+ #if defined(_SC_KERNEL_BITS)
|
389
|
+
+ switch (bits)
|
390
|
+
+ {
|
391
|
+
+ case 64: puts ("hppa2.0w"); break;
|
392
|
+
+ case 32: puts ("hppa2.0n"); break;
|
393
|
+
+ default: puts ("hppa2.0"); break;
|
394
|
+
+ } break;
|
395
|
+
+ #else /* !defined(_SC_KERNEL_BITS) */
|
396
|
+
+ puts ("hppa2.0"); break;
|
397
|
+
+ #endif
|
398
|
+
+ default: puts ("hppa1.0"); break;
|
399
|
+
+ }
|
400
|
+
+ exit (0);
|
401
|
+
+ }
|
402
|
+
EOF
|
403
|
+
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
404
|
+
test -z "$HP_ARCH" && HP_ARCH=hppa
|
405
|
+
@@ -653,7 +698,7 @@
|
406
|
+
# => hppa64-hp-hpux11.23
|
407
|
+
|
408
|
+
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
409
|
+
- grep __LP64__ >/dev/null
|
410
|
+
+ grep -q __LP64__
|
411
|
+
then
|
412
|
+
HP_ARCH="hppa2.0w"
|
413
|
+
else
|
414
|
+
@@ -724,22 +769,22 @@
|
415
|
+
exit ;;
|
416
|
+
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
417
|
+
echo c1-convex-bsd
|
418
|
+
- exit ;;
|
419
|
+
+ exit ;;
|
420
|
+
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
421
|
+
if getsysinfo -f scalar_acc
|
422
|
+
then echo c32-convex-bsd
|
423
|
+
else echo c2-convex-bsd
|
424
|
+
fi
|
425
|
+
- exit ;;
|
426
|
+
+ exit ;;
|
427
|
+
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
428
|
+
echo c34-convex-bsd
|
429
|
+
- exit ;;
|
430
|
+
+ exit ;;
|
431
|
+
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
432
|
+
echo c38-convex-bsd
|
433
|
+
- exit ;;
|
434
|
+
+ exit ;;
|
435
|
+
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
436
|
+
echo c4-convex-bsd
|
437
|
+
- exit ;;
|
438
|
+
+ exit ;;
|
439
|
+
CRAY*Y-MP:*:*:*)
|
440
|
+
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
441
|
+
exit ;;
|
442
|
+
@@ -763,14 +808,14 @@
|
443
|
+
exit ;;
|
444
|
+
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
445
|
+
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
446
|
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
447
|
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
448
|
+
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
449
|
+
- exit ;;
|
450
|
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
451
|
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
452
|
+
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
453
|
+
+ exit ;;
|
454
|
+
5000:UNIX_System_V:4.*:*)
|
455
|
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
456
|
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
457
|
+
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
458
|
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
459
|
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
460
|
+
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
461
|
+
exit ;;
|
462
|
+
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
463
|
+
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
464
|
+
@@ -782,34 +827,39 @@
|
465
|
+
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
466
|
+
exit ;;
|
467
|
+
*:FreeBSD:*:*)
|
468
|
+
- case ${UNAME_MACHINE} in
|
469
|
+
- pc98)
|
470
|
+
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
471
|
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
472
|
+
+ case ${UNAME_PROCESSOR} in
|
473
|
+
amd64)
|
474
|
+
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
475
|
+
*)
|
476
|
+
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
477
|
+
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
478
|
+
esac
|
479
|
+
exit ;;
|
480
|
+
i*:CYGWIN*:*)
|
481
|
+
echo ${UNAME_MACHINE}-pc-cygwin
|
482
|
+
exit ;;
|
483
|
+
+ *:MINGW64*:*)
|
484
|
+
+ echo ${UNAME_MACHINE}-pc-mingw64
|
485
|
+
+ exit ;;
|
486
|
+
*:MINGW*:*)
|
487
|
+
echo ${UNAME_MACHINE}-pc-mingw32
|
488
|
+
exit ;;
|
489
|
+
+ *:MSYS*:*)
|
490
|
+
+ echo ${UNAME_MACHINE}-pc-msys
|
491
|
+
+ exit ;;
|
492
|
+
i*:windows32*:*)
|
493
|
+
- # uname -m includes "-pc" on this system.
|
494
|
+
- echo ${UNAME_MACHINE}-mingw32
|
495
|
+
+ # uname -m includes "-pc" on this system.
|
496
|
+
+ echo ${UNAME_MACHINE}-mingw32
|
497
|
+
exit ;;
|
498
|
+
i*:PW*:*)
|
499
|
+
echo ${UNAME_MACHINE}-pc-pw32
|
500
|
+
exit ;;
|
501
|
+
- *:Interix*:[3456]*)
|
502
|
+
- case ${UNAME_MACHINE} in
|
503
|
+
+ *:Interix*:*)
|
504
|
+
+ case ${UNAME_MACHINE} in
|
505
|
+
x86)
|
506
|
+
echo i586-pc-interix${UNAME_RELEASE}
|
507
|
+
exit ;;
|
508
|
+
- EM64T | authenticamd | genuineintel)
|
509
|
+
+ authenticamd | genuineintel | EM64T)
|
510
|
+
echo x86_64-unknown-interix${UNAME_RELEASE}
|
511
|
+
exit ;;
|
512
|
+
IA64)
|
513
|
+
@@ -819,6 +869,9 @@
|
514
|
+
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
515
|
+
echo i${UNAME_MACHINE}-pc-mks
|
516
|
+
exit ;;
|
517
|
+
+ 8664:Windows_NT:*)
|
518
|
+
+ echo x86_64-pc-mks
|
519
|
+
+ exit ;;
|
520
|
+
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
521
|
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
522
|
+
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
523
|
+
@@ -839,210 +892,163 @@
|
524
|
+
exit ;;
|
525
|
+
*:GNU:*:*)
|
526
|
+
# the GNU system
|
527
|
+
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
528
|
+
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
529
|
+
exit ;;
|
530
|
+
*:GNU/*:*:*)
|
531
|
+
# other systems with GNU libc and userland
|
532
|
+
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
533
|
+
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
|
534
|
+
exit ;;
|
535
|
+
i*86:Minix:*:*)
|
536
|
+
echo ${UNAME_MACHINE}-pc-minix
|
537
|
+
exit ;;
|
538
|
+
+ aarch64:Linux:*:*)
|
539
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
540
|
+
+ exit ;;
|
541
|
+
+ aarch64_be:Linux:*:*)
|
542
|
+
+ UNAME_MACHINE=aarch64_be
|
543
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
544
|
+
+ exit ;;
|
545
|
+
+ alpha:Linux:*:*)
|
546
|
+
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
547
|
+
+ EV5) UNAME_MACHINE=alphaev5 ;;
|
548
|
+
+ EV56) UNAME_MACHINE=alphaev56 ;;
|
549
|
+
+ PCA56) UNAME_MACHINE=alphapca56 ;;
|
550
|
+
+ PCA57) UNAME_MACHINE=alphapca56 ;;
|
551
|
+
+ EV6) UNAME_MACHINE=alphaev6 ;;
|
552
|
+
+ EV67) UNAME_MACHINE=alphaev67 ;;
|
553
|
+
+ EV68*) UNAME_MACHINE=alphaev68 ;;
|
554
|
+
+ esac
|
555
|
+
+ objdump --private-headers /bin/sh | grep -q ld.so.1
|
556
|
+
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
|
557
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
558
|
+
+ exit ;;
|
559
|
+
+ arc:Linux:*:* | arceb:Linux:*:*)
|
560
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
561
|
+
+ exit ;;
|
562
|
+
arm*:Linux:*:*)
|
563
|
+
eval $set_cc_for_build
|
564
|
+
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
565
|
+
| grep -q __ARM_EABI__
|
566
|
+
then
|
567
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
568
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
569
|
+
else
|
570
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
571
|
+
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
572
|
+
+ | grep -q __ARM_PCS_VFP
|
573
|
+
+ then
|
574
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
|
575
|
+
+ else
|
576
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
|
577
|
+
+ fi
|
578
|
+
fi
|
579
|
+
exit ;;
|
580
|
+
avr32*:Linux:*:*)
|
581
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
582
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
583
|
+
exit ;;
|
584
|
+
cris:Linux:*:*)
|
585
|
+
- echo cris-axis-linux-gnu
|
586
|
+
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
587
|
+
exit ;;
|
588
|
+
crisv32:Linux:*:*)
|
589
|
+
- echo crisv32-axis-linux-gnu
|
590
|
+
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
591
|
+
+ exit ;;
|
592
|
+
+ e2k:Linux:*:*)
|
593
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
594
|
+
exit ;;
|
595
|
+
frv:Linux:*:*)
|
596
|
+
- echo frv-unknown-linux-gnu
|
597
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
598
|
+
+ exit ;;
|
599
|
+
+ hexagon:Linux:*:*)
|
600
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
601
|
+
+ exit ;;
|
602
|
+
+ i*86:Linux:*:*)
|
603
|
+
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
604
|
+
exit ;;
|
605
|
+
ia64:Linux:*:*)
|
606
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
607
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
608
|
+
+ exit ;;
|
609
|
+
+ k1om:Linux:*:*)
|
610
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
611
|
+
exit ;;
|
612
|
+
m32r*:Linux:*:*)
|
613
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
614
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
615
|
+
exit ;;
|
616
|
+
m68*:Linux:*:*)
|
617
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
618
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
619
|
+
exit ;;
|
620
|
+
- mips:Linux:*:*)
|
621
|
+
+ mips:Linux:*:* | mips64:Linux:*:*)
|
622
|
+
eval $set_cc_for_build
|
623
|
+
sed 's/^ //' << EOF >$dummy.c
|
624
|
+
#undef CPU
|
625
|
+
- #undef mips
|
626
|
+
- #undef mipsel
|
627
|
+
+ #undef ${UNAME_MACHINE}
|
628
|
+
+ #undef ${UNAME_MACHINE}el
|
629
|
+
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
630
|
+
- CPU=mipsel
|
631
|
+
+ CPU=${UNAME_MACHINE}el
|
632
|
+
#else
|
633
|
+
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
634
|
+
- CPU=mips
|
635
|
+
+ CPU=${UNAME_MACHINE}
|
636
|
+
#else
|
637
|
+
CPU=
|
638
|
+
#endif
|
639
|
+
#endif
|
640
|
+
EOF
|
641
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
642
|
+
- /^CPU/{
|
643
|
+
- s: ::g
|
644
|
+
- p
|
645
|
+
- }'`"
|
646
|
+
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
647
|
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
648
|
+
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
|
649
|
+
;;
|
650
|
+
- mips64:Linux:*:*)
|
651
|
+
- eval $set_cc_for_build
|
652
|
+
- sed 's/^ //' << EOF >$dummy.c
|
653
|
+
- #undef CPU
|
654
|
+
- #undef mips64
|
655
|
+
- #undef mips64el
|
656
|
+
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
657
|
+
- CPU=mips64el
|
658
|
+
- #else
|
659
|
+
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
660
|
+
- CPU=mips64
|
661
|
+
- #else
|
662
|
+
- CPU=
|
663
|
+
- #endif
|
664
|
+
- #endif
|
665
|
+
-EOF
|
666
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
667
|
+
- /^CPU/{
|
668
|
+
- s: ::g
|
669
|
+
- p
|
670
|
+
- }'`"
|
671
|
+
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
672
|
+
- ;;
|
673
|
+
- or32:Linux:*:*)
|
674
|
+
- echo or32-unknown-linux-gnu
|
675
|
+
- exit ;;
|
676
|
+
- ppc:Linux:*:*)
|
677
|
+
- echo powerpc-unknown-linux-gnu
|
678
|
+
+ openrisc*:Linux:*:*)
|
679
|
+
+ echo or1k-unknown-linux-${LIBC}
|
680
|
+
exit ;;
|
681
|
+
- ppc64:Linux:*:*)
|
682
|
+
- echo powerpc64-unknown-linux-gnu
|
683
|
+
- exit ;;
|
684
|
+
- alpha:Linux:*:*)
|
685
|
+
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
686
|
+
- EV5) UNAME_MACHINE=alphaev5 ;;
|
687
|
+
- EV56) UNAME_MACHINE=alphaev56 ;;
|
688
|
+
- PCA56) UNAME_MACHINE=alphapca56 ;;
|
689
|
+
- PCA57) UNAME_MACHINE=alphapca56 ;;
|
690
|
+
- EV6) UNAME_MACHINE=alphaev6 ;;
|
691
|
+
- EV67) UNAME_MACHINE=alphaev67 ;;
|
692
|
+
- EV68*) UNAME_MACHINE=alphaev68 ;;
|
693
|
+
- esac
|
694
|
+
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
695
|
+
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
696
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
697
|
+
+ or32:Linux:*:* | or1k*:Linux:*:*)
|
698
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
699
|
+
exit ;;
|
700
|
+
padre:Linux:*:*)
|
701
|
+
- echo sparc-unknown-linux-gnu
|
702
|
+
+ echo sparc-unknown-linux-${LIBC}
|
703
|
+
+ exit ;;
|
704
|
+
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
|
705
|
+
+ echo hppa64-unknown-linux-${LIBC}
|
706
|
+
exit ;;
|
707
|
+
parisc:Linux:*:* | hppa:Linux:*:*)
|
708
|
+
# Look for CPU level
|
709
|
+
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
710
|
+
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
711
|
+
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
712
|
+
- *) echo hppa-unknown-linux-gnu ;;
|
713
|
+
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
|
714
|
+
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
|
715
|
+
+ *) echo hppa-unknown-linux-${LIBC} ;;
|
716
|
+
esac
|
717
|
+
exit ;;
|
718
|
+
- parisc64:Linux:*:* | hppa64:Linux:*:*)
|
719
|
+
- echo hppa64-unknown-linux-gnu
|
720
|
+
+ ppc64:Linux:*:*)
|
721
|
+
+ echo powerpc64-unknown-linux-${LIBC}
|
722
|
+
+ exit ;;
|
723
|
+
+ ppc:Linux:*:*)
|
724
|
+
+ echo powerpc-unknown-linux-${LIBC}
|
725
|
+
+ exit ;;
|
726
|
+
+ ppc64le:Linux:*:*)
|
727
|
+
+ echo powerpc64le-unknown-linux-${LIBC}
|
728
|
+
+ exit ;;
|
729
|
+
+ ppcle:Linux:*:*)
|
730
|
+
+ echo powerpcle-unknown-linux-${LIBC}
|
731
|
+
exit ;;
|
732
|
+
s390:Linux:*:* | s390x:Linux:*:*)
|
733
|
+
- echo ${UNAME_MACHINE}-ibm-linux
|
734
|
+
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
|
735
|
+
exit ;;
|
736
|
+
sh64*:Linux:*:*)
|
737
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
738
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
739
|
+
exit ;;
|
740
|
+
sh*:Linux:*:*)
|
741
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
742
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
743
|
+
exit ;;
|
744
|
+
sparc:Linux:*:* | sparc64:Linux:*:*)
|
745
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
746
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
747
|
+
+ exit ;;
|
748
|
+
+ tile*:Linux:*:*)
|
749
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
750
|
+
exit ;;
|
751
|
+
vax:Linux:*:*)
|
752
|
+
- echo ${UNAME_MACHINE}-dec-linux-gnu
|
753
|
+
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
|
754
|
+
exit ;;
|
755
|
+
x86_64:Linux:*:*)
|
756
|
+
- echo x86_64-unknown-linux-gnu
|
757
|
+
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
758
|
+
exit ;;
|
759
|
+
xtensa*:Linux:*:*)
|
760
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
761
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
762
|
+
exit ;;
|
763
|
+
- i*86:Linux:*:*)
|
764
|
+
- # The BFD linker knows what the default object file format is, so
|
765
|
+
- # first see if it will tell us. cd to the root directory to prevent
|
766
|
+
- # problems with other programs or directories called `ld' in the path.
|
767
|
+
- # Set LC_ALL=C to ensure ld outputs messages in English.
|
768
|
+
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
769
|
+
- | sed -ne '/supported targets:/!d
|
770
|
+
- s/[ ][ ]*/ /g
|
771
|
+
- s/.*supported targets: *//
|
772
|
+
- s/ .*//
|
773
|
+
- p'`
|
774
|
+
- case "$ld_supported_targets" in
|
775
|
+
- elf32-i386)
|
776
|
+
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
777
|
+
- ;;
|
778
|
+
- a.out-i386-linux)
|
779
|
+
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
780
|
+
- exit ;;
|
781
|
+
- "")
|
782
|
+
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
|
783
|
+
- # one that does not give us useful --help.
|
784
|
+
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
785
|
+
- exit ;;
|
786
|
+
- esac
|
787
|
+
- # Determine whether the default compiler is a.out or elf
|
788
|
+
- eval $set_cc_for_build
|
789
|
+
- sed 's/^ //' << EOF >$dummy.c
|
790
|
+
- #include <features.h>
|
791
|
+
- #ifdef __ELF__
|
792
|
+
- # ifdef __GLIBC__
|
793
|
+
- # if __GLIBC__ >= 2
|
794
|
+
- LIBC=gnu
|
795
|
+
- # else
|
796
|
+
- LIBC=gnulibc1
|
797
|
+
- # endif
|
798
|
+
- # else
|
799
|
+
- LIBC=gnulibc1
|
800
|
+
- # endif
|
801
|
+
- #else
|
802
|
+
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
803
|
+
- LIBC=gnu
|
804
|
+
- #else
|
805
|
+
- LIBC=gnuaout
|
806
|
+
- #endif
|
807
|
+
- #endif
|
808
|
+
- #ifdef __dietlibc__
|
809
|
+
- LIBC=dietlibc
|
810
|
+
- #endif
|
811
|
+
-EOF
|
812
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
813
|
+
- /^LIBC/{
|
814
|
+
- s: ::g
|
815
|
+
- p
|
816
|
+
- }'`"
|
817
|
+
- test x"${LIBC}" != x && {
|
818
|
+
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
819
|
+
- exit
|
820
|
+
- }
|
821
|
+
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
822
|
+
- ;;
|
823
|
+
i*86:DYNIX/ptx:4*:*)
|
824
|
+
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
825
|
+
# earlier versions are messed up and put the nodename in both
|
826
|
+
@@ -1050,11 +1056,11 @@
|
827
|
+
echo i386-sequent-sysv4
|
828
|
+
exit ;;
|
829
|
+
i*86:UNIX_SV:4.2MP:2.*)
|
830
|
+
- # Unixware is an offshoot of SVR4, but it has its own version
|
831
|
+
- # number series starting with 2...
|
832
|
+
- # I am not positive that other SVR4 systems won't match this,
|
833
|
+
+ # Unixware is an offshoot of SVR4, but it has its own version
|
834
|
+
+ # number series starting with 2...
|
835
|
+
+ # I am not positive that other SVR4 systems won't match this,
|
836
|
+
# I just have to hope. -- rms.
|
837
|
+
- # Use sysv4.2uw... so that sysv4* matches it.
|
838
|
+
+ # Use sysv4.2uw... so that sysv4* matches it.
|
839
|
+
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
840
|
+
exit ;;
|
841
|
+
i*86:OS/2:*:*)
|
842
|
+
@@ -1071,7 +1077,7 @@
|
843
|
+
i*86:syllable:*:*)
|
844
|
+
echo ${UNAME_MACHINE}-pc-syllable
|
845
|
+
exit ;;
|
846
|
+
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
847
|
+
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
848
|
+
echo i386-unknown-lynxos${UNAME_RELEASE}
|
849
|
+
exit ;;
|
850
|
+
i*86:*DOS:*:*)
|
851
|
+
@@ -1086,7 +1092,7 @@
|
852
|
+
fi
|
853
|
+
exit ;;
|
854
|
+
i*86:*:5:[678]*)
|
855
|
+
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
856
|
+
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
857
|
+
case `/bin/uname -X | grep "^Machine"` in
|
858
|
+
*486*) UNAME_MACHINE=i486 ;;
|
859
|
+
*Pentium) UNAME_MACHINE=i586 ;;
|
860
|
+
@@ -1114,10 +1120,13 @@
|
861
|
+
exit ;;
|
862
|
+
pc:*:*:*)
|
863
|
+
# Left here for compatibility:
|
864
|
+
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
865
|
+
- # the processor, so we play safe by assuming i386.
|
866
|
+
- echo i386-pc-msdosdjgpp
|
867
|
+
- exit ;;
|
868
|
+
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
869
|
+
+ # the processor, so we play safe by assuming i586.
|
870
|
+
+ # Note: whatever this is, it MUST be the same as what config.sub
|
871
|
+
+ # prints for the "djgpp" host, or else GDB configury will decide that
|
872
|
+
+ # this is a cross-build.
|
873
|
+
+ echo i586-pc-msdosdjgpp
|
874
|
+
+ exit ;;
|
875
|
+
Intel:Mach:3*:*)
|
876
|
+
echo i386-pc-mach3
|
877
|
+
exit ;;
|
878
|
+
@@ -1152,8 +1161,8 @@
|
879
|
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
880
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
881
|
+
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
882
|
+
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
883
|
+
- && { echo i486-ncr-sysv4; exit; } ;;
|
884
|
+
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
885
|
+
+ && { echo i486-ncr-sysv4; exit; } ;;
|
886
|
+
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
887
|
+
OS_REL='.3'
|
888
|
+
test -r /etc/.relid \
|
889
|
+
@@ -1176,7 +1185,7 @@
|
890
|
+
rs6000:LynxOS:2.*:*)
|
891
|
+
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
892
|
+
exit ;;
|
893
|
+
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
894
|
+
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
895
|
+
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
896
|
+
exit ;;
|
897
|
+
SM[BE]S:UNIX_SV:*:*)
|
898
|
+
@@ -1196,10 +1205,10 @@
|
899
|
+
echo ns32k-sni-sysv
|
900
|
+
fi
|
901
|
+
exit ;;
|
902
|
+
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
903
|
+
- # says <Richard.M.Bartel@ccMail.Census.GOV>
|
904
|
+
- echo i586-unisys-sysv4
|
905
|
+
- exit ;;
|
906
|
+
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
907
|
+
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
|
908
|
+
+ echo i586-unisys-sysv4
|
909
|
+
+ exit ;;
|
910
|
+
*:UNIX_System_V:4*:FTX*)
|
911
|
+
# From Gerald Hewes <hewes@openmarket.com>.
|
912
|
+
# How about differentiating between stratus architectures? -djm
|
913
|
+
@@ -1225,11 +1234,11 @@
|
914
|
+
exit ;;
|
915
|
+
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
916
|
+
if [ -d /usr/nec ]; then
|
917
|
+
- echo mips-nec-sysv${UNAME_RELEASE}
|
918
|
+
+ echo mips-nec-sysv${UNAME_RELEASE}
|
919
|
+
else
|
920
|
+
- echo mips-unknown-sysv${UNAME_RELEASE}
|
921
|
+
+ echo mips-unknown-sysv${UNAME_RELEASE}
|
922
|
+
fi
|
923
|
+
- exit ;;
|
924
|
+
+ exit ;;
|
925
|
+
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
926
|
+
echo powerpc-be-beos
|
927
|
+
exit ;;
|
928
|
+
@@ -1242,6 +1251,9 @@
|
929
|
+
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
930
|
+
echo i586-pc-haiku
|
931
|
+
exit ;;
|
932
|
+
+ x86_64:Haiku:*:*)
|
933
|
+
+ echo x86_64-unknown-haiku
|
934
|
+
+ exit ;;
|
935
|
+
SX-4:SUPER-UX:*:*)
|
936
|
+
echo sx4-nec-superux${UNAME_RELEASE}
|
937
|
+
exit ;;
|
938
|
+
@@ -1268,9 +1280,31 @@
|
939
|
+
exit ;;
|
940
|
+
*:Darwin:*:*)
|
941
|
+
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
942
|
+
- case $UNAME_PROCESSOR in
|
943
|
+
- unknown) UNAME_PROCESSOR=powerpc ;;
|
944
|
+
- esac
|
945
|
+
+ eval $set_cc_for_build
|
946
|
+
+ if test "$UNAME_PROCESSOR" = unknown ; then
|
947
|
+
+ UNAME_PROCESSOR=powerpc
|
948
|
+
+ fi
|
949
|
+
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
950
|
+
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
951
|
+
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
952
|
+
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
953
|
+
+ grep IS_64BIT_ARCH >/dev/null
|
954
|
+
+ then
|
955
|
+
+ case $UNAME_PROCESSOR in
|
956
|
+
+ i386) UNAME_PROCESSOR=x86_64 ;;
|
957
|
+
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
|
958
|
+
+ esac
|
959
|
+
+ fi
|
960
|
+
+ fi
|
961
|
+
+ elif test "$UNAME_PROCESSOR" = i386 ; then
|
962
|
+
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
|
963
|
+
+ # that puts up a graphical alert prompting to install
|
964
|
+
+ # developer tools. Any system running Mac OS X 10.7 or
|
965
|
+
+ # later (Darwin 11 and later) is required to have a 64-bit
|
966
|
+
+ # processor. This is not true of the ARM version of Darwin
|
967
|
+
+ # that Apple uses in portable devices.
|
968
|
+
+ UNAME_PROCESSOR=x86_64
|
969
|
+
+ fi
|
970
|
+
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
971
|
+
exit ;;
|
972
|
+
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
973
|
+
@@ -1284,7 +1318,10 @@
|
974
|
+
*:QNX:*:4*)
|
975
|
+
echo i386-pc-qnx
|
976
|
+
exit ;;
|
977
|
+
- NSE-?:NONSTOP_KERNEL:*:*)
|
978
|
+
+ NEO-?:NONSTOP_KERNEL:*:*)
|
979
|
+
+ echo neo-tandem-nsk${UNAME_RELEASE}
|
980
|
+
+ exit ;;
|
981
|
+
+ NSE-*:NONSTOP_KERNEL:*:*)
|
982
|
+
echo nse-tandem-nsk${UNAME_RELEASE}
|
983
|
+
exit ;;
|
984
|
+
NSR-?:NONSTOP_KERNEL:*:*)
|
985
|
+
@@ -1329,13 +1366,13 @@
|
986
|
+
echo pdp10-unknown-its
|
987
|
+
exit ;;
|
988
|
+
SEI:*:*:SEIUX)
|
989
|
+
- echo mips-sei-seiux${UNAME_RELEASE}
|
990
|
+
+ echo mips-sei-seiux${UNAME_RELEASE}
|
991
|
+
exit ;;
|
992
|
+
*:DragonFly:*:*)
|
993
|
+
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
994
|
+
exit ;;
|
995
|
+
*:*VMS:*:*)
|
996
|
+
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
997
|
+
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
998
|
+
case "${UNAME_MACHINE}" in
|
999
|
+
A*) echo alpha-dec-vms ; exit ;;
|
1000
|
+
I*) echo ia64-dec-vms ; exit ;;
|
1001
|
+
@@ -1353,158 +1390,10 @@
|
1002
|
+
i*86:AROS:*:*)
|
1003
|
+
echo ${UNAME_MACHINE}-pc-aros
|
1004
|
+
exit ;;
|
1005
|
+
-esac
|
1006
|
+
-
|
1007
|
+
-#echo '(No uname command or uname output not recognized.)' 1>&2
|
1008
|
+
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
1009
|
+
-
|
1010
|
+
-eval $set_cc_for_build
|
1011
|
+
-cat >$dummy.c <<EOF
|
1012
|
+
-#ifdef _SEQUENT_
|
1013
|
+
-# include <sys/types.h>
|
1014
|
+
-# include <sys/utsname.h>
|
1015
|
+
-#endif
|
1016
|
+
-main ()
|
1017
|
+
-{
|
1018
|
+
-#if defined (sony)
|
1019
|
+
-#if defined (MIPSEB)
|
1020
|
+
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
1021
|
+
- I don't know.... */
|
1022
|
+
- printf ("mips-sony-bsd\n"); exit (0);
|
1023
|
+
-#else
|
1024
|
+
-#include <sys/param.h>
|
1025
|
+
- printf ("m68k-sony-newsos%s\n",
|
1026
|
+
-#ifdef NEWSOS4
|
1027
|
+
- "4"
|
1028
|
+
-#else
|
1029
|
+
- ""
|
1030
|
+
-#endif
|
1031
|
+
- ); exit (0);
|
1032
|
+
-#endif
|
1033
|
+
-#endif
|
1034
|
+
-
|
1035
|
+
-#if defined (__arm) && defined (__acorn) && defined (__unix)
|
1036
|
+
- printf ("arm-acorn-riscix\n"); exit (0);
|
1037
|
+
-#endif
|
1038
|
+
-
|
1039
|
+
-#if defined (hp300) && !defined (hpux)
|
1040
|
+
- printf ("m68k-hp-bsd\n"); exit (0);
|
1041
|
+
-#endif
|
1042
|
+
-
|
1043
|
+
-#if defined (NeXT)
|
1044
|
+
-#if !defined (__ARCHITECTURE__)
|
1045
|
+
-#define __ARCHITECTURE__ "m68k"
|
1046
|
+
-#endif
|
1047
|
+
- int version;
|
1048
|
+
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
1049
|
+
- if (version < 4)
|
1050
|
+
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
1051
|
+
- else
|
1052
|
+
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
1053
|
+
- exit (0);
|
1054
|
+
-#endif
|
1055
|
+
-
|
1056
|
+
-#if defined (MULTIMAX) || defined (n16)
|
1057
|
+
-#if defined (UMAXV)
|
1058
|
+
- printf ("ns32k-encore-sysv\n"); exit (0);
|
1059
|
+
-#else
|
1060
|
+
-#if defined (CMU)
|
1061
|
+
- printf ("ns32k-encore-mach\n"); exit (0);
|
1062
|
+
-#else
|
1063
|
+
- printf ("ns32k-encore-bsd\n"); exit (0);
|
1064
|
+
-#endif
|
1065
|
+
-#endif
|
1066
|
+
-#endif
|
1067
|
+
-
|
1068
|
+
-#if defined (__386BSD__)
|
1069
|
+
- printf ("i386-pc-bsd\n"); exit (0);
|
1070
|
+
-#endif
|
1071
|
+
-
|
1072
|
+
-#if defined (sequent)
|
1073
|
+
-#if defined (i386)
|
1074
|
+
- printf ("i386-sequent-dynix\n"); exit (0);
|
1075
|
+
-#endif
|
1076
|
+
-#if defined (ns32000)
|
1077
|
+
- printf ("ns32k-sequent-dynix\n"); exit (0);
|
1078
|
+
-#endif
|
1079
|
+
-#endif
|
1080
|
+
-
|
1081
|
+
-#if defined (_SEQUENT_)
|
1082
|
+
- struct utsname un;
|
1083
|
+
-
|
1084
|
+
- uname(&un);
|
1085
|
+
-
|
1086
|
+
- if (strncmp(un.version, "V2", 2) == 0) {
|
1087
|
+
- printf ("i386-sequent-ptx2\n"); exit (0);
|
1088
|
+
- }
|
1089
|
+
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
1090
|
+
- printf ("i386-sequent-ptx1\n"); exit (0);
|
1091
|
+
- }
|
1092
|
+
- printf ("i386-sequent-ptx\n"); exit (0);
|
1093
|
+
-
|
1094
|
+
-#endif
|
1095
|
+
-
|
1096
|
+
-#if defined (vax)
|
1097
|
+
-# if !defined (ultrix)
|
1098
|
+
-# include <sys/param.h>
|
1099
|
+
-# if defined (BSD)
|
1100
|
+
-# if BSD == 43
|
1101
|
+
- printf ("vax-dec-bsd4.3\n"); exit (0);
|
1102
|
+
-# else
|
1103
|
+
-# if BSD == 199006
|
1104
|
+
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
1105
|
+
-# else
|
1106
|
+
- printf ("vax-dec-bsd\n"); exit (0);
|
1107
|
+
-# endif
|
1108
|
+
-# endif
|
1109
|
+
-# else
|
1110
|
+
- printf ("vax-dec-bsd\n"); exit (0);
|
1111
|
+
-# endif
|
1112
|
+
-# else
|
1113
|
+
- printf ("vax-dec-ultrix\n"); exit (0);
|
1114
|
+
-# endif
|
1115
|
+
-#endif
|
1116
|
+
-
|
1117
|
+
-#if defined (alliant) && defined (i860)
|
1118
|
+
- printf ("i860-alliant-bsd\n"); exit (0);
|
1119
|
+
-#endif
|
1120
|
+
-
|
1121
|
+
- exit (1);
|
1122
|
+
-}
|
1123
|
+
-EOF
|
1124
|
+
-
|
1125
|
+
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
|
1126
|
+
- { echo "$SYSTEM_NAME"; exit; }
|
1127
|
+
-
|
1128
|
+
-# Apollos put the system type in the environment.
|
1129
|
+
-
|
1130
|
+
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
|
1131
|
+
-
|
1132
|
+
-# Convex versions that predate uname can use getsysinfo(1)
|
1133
|
+
-
|
1134
|
+
-if [ -x /usr/convex/getsysinfo ]
|
1135
|
+
-then
|
1136
|
+
- case `getsysinfo -f cpu_type` in
|
1137
|
+
- c1*)
|
1138
|
+
- echo c1-convex-bsd
|
1139
|
+
- exit ;;
|
1140
|
+
- c2*)
|
1141
|
+
- if getsysinfo -f scalar_acc
|
1142
|
+
- then echo c32-convex-bsd
|
1143
|
+
- else echo c2-convex-bsd
|
1144
|
+
- fi
|
1145
|
+
- exit ;;
|
1146
|
+
- c34*)
|
1147
|
+
- echo c34-convex-bsd
|
1148
|
+
+ x86_64:VMkernel:*:*)
|
1149
|
+
+ echo ${UNAME_MACHINE}-unknown-esx
|
1150
|
+
exit ;;
|
1151
|
+
- c38*)
|
1152
|
+
- echo c38-convex-bsd
|
1153
|
+
- exit ;;
|
1154
|
+
- c4*)
|
1155
|
+
- echo c4-convex-bsd
|
1156
|
+
- exit ;;
|
1157
|
+
- esac
|
1158
|
+
-fi
|
1159
|
+
+esac
|
1160
|
+
|
1161
|
+
cat >&2 <<EOF
|
1162
|
+
$0: unable to guess system type
|
1163
|
+
--- libcharset/build-aux/config.gues.orig 2009-06-21 05:17:33.000000000 -0600
|
1164
|
+
+++ libcharset/build-aux/config.guess 2015-10-16 13:17:35.689028939 -0600
|
1165
|
+
@@ -1,13 +1,12 @@
|
1166
|
+
#! /bin/sh
|
1167
|
+
# Attempt to guess a canonical system name.
|
1168
|
+
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
1169
|
+
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
1170
|
+
+# Copyright 1992-2015 Free Software Foundation, Inc.
|
1171
|
+
|
1172
|
+
-timestamp='2005-12-23'
|
1173
|
+
+timestamp='2015-09-14'
|
1174
|
+
|
1175
|
+
# This file is free software; you can redistribute it and/or modify it
|
1176
|
+
# under the terms of the GNU General Public License as published by
|
1177
|
+
-# the Free Software Foundation; either version 2 of the License, or
|
1178
|
+
+# the Free Software Foundation; either version 3 of the License, or
|
1179
|
+
# (at your option) any later version.
|
1180
|
+
#
|
1181
|
+
# This program is distributed in the hope that it will be useful, but
|
1182
|
+
@@ -16,26 +15,22 @@
|
1183
|
+
# General Public License for more details.
|
1184
|
+
#
|
1185
|
+
# You should have received a copy of the GNU General Public License
|
1186
|
+
-# along with this program; if not, write to the Free Software
|
1187
|
+
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
1188
|
+
-# 02110-1301, USA.
|
1189
|
+
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
1190
|
+
#
|
1191
|
+
# As a special exception to the GNU General Public License, if you
|
1192
|
+
# distribute this file as part of a program that contains a
|
1193
|
+
# configuration script generated by Autoconf, you may include it under
|
1194
|
+
-# the same distribution terms that you use for the rest of that program.
|
1195
|
+
-
|
1196
|
+
-
|
1197
|
+
-# Originally written by Per Bothner <per@bothner.com>.
|
1198
|
+
-# Please send patches to <config-patches@gnu.org>. Submit a context
|
1199
|
+
-# diff and a properly formatted ChangeLog entry.
|
1200
|
+
+# the same distribution terms that you use for the rest of that
|
1201
|
+
+# program. This Exception is an additional permission under section 7
|
1202
|
+
+# of the GNU General Public License, version 3 ("GPLv3").
|
1203
|
+
#
|
1204
|
+
-# This script attempts to guess a canonical system name similar to
|
1205
|
+
-# config.sub. If it succeeds, it prints the system name on stdout, and
|
1206
|
+
-# exits with 0. Otherwise, it exits with 1.
|
1207
|
+
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
|
1208
|
+
#
|
1209
|
+
-# The plan is that this can be called by configure scripts if you
|
1210
|
+
-# don't specify an explicit build system type.
|
1211
|
+
+# You can get the latest version of this script from:
|
1212
|
+
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
1213
|
+
+#
|
1214
|
+
+# Please send patches to <config-patches@gnu.org>.
|
1215
|
+
+
|
1216
|
+
|
1217
|
+
me=`echo "$0" | sed -e 's,.*/,,'`
|
1218
|
+
|
1219
|
+
@@ -55,8 +50,7 @@
|
1220
|
+
GNU config.guess ($timestamp)
|
1221
|
+
|
1222
|
+
Originally written by Per Bothner.
|
1223
|
+
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
1224
|
+
-Free Software Foundation, Inc.
|
1225
|
+
+Copyright 1992-2015 Free Software Foundation, Inc.
|
1226
|
+
|
1227
|
+
This is free software; see the source for copying conditions. There is NO
|
1228
|
+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
1229
|
+
@@ -106,7 +100,7 @@
|
1230
|
+
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
1231
|
+
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
1232
|
+
: ${TMPDIR=/tmp} ;
|
1233
|
+
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
1234
|
+
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
1235
|
+
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
1236
|
+
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
1237
|
+
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
1238
|
+
@@ -138,12 +132,33 @@
|
1239
|
+
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
1240
|
+
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
1241
|
+
|
1242
|
+
+case "${UNAME_SYSTEM}" in
|
1243
|
+
+Linux|GNU|GNU/*)
|
1244
|
+
+ # If the system lacks a compiler, then just pick glibc.
|
1245
|
+
+ # We could probably try harder.
|
1246
|
+
+ LIBC=gnu
|
1247
|
+
+
|
1248
|
+
+ eval $set_cc_for_build
|
1249
|
+
+ cat <<-EOF > $dummy.c
|
1250
|
+
+ #include <features.h>
|
1251
|
+
+ #if defined(__UCLIBC__)
|
1252
|
+
+ LIBC=uclibc
|
1253
|
+
+ #elif defined(__dietlibc__)
|
1254
|
+
+ LIBC=dietlibc
|
1255
|
+
+ #else
|
1256
|
+
+ LIBC=gnu
|
1257
|
+
+ #endif
|
1258
|
+
+ EOF
|
1259
|
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
|
1260
|
+
+ ;;
|
1261
|
+
+esac
|
1262
|
+
+
|
1263
|
+
# Note: order is significant - the case branches are not exclusive.
|
1264
|
+
|
1265
|
+
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
1266
|
+
*:NetBSD:*:*)
|
1267
|
+
# NetBSD (nbsd) targets should (where applicable) match one or
|
1268
|
+
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
1269
|
+
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
1270
|
+
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
1271
|
+
# switched to ELF, *-*-netbsd* would select the old
|
1272
|
+
# object file format. This provides both forward
|
1273
|
+
@@ -153,22 +168,30 @@
|
1274
|
+
# Note: NetBSD doesn't particularly care about the vendor
|
1275
|
+
# portion of the name. We always set it to "unknown".
|
1276
|
+
sysctl="sysctl -n hw.machine_arch"
|
1277
|
+
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
|
1278
|
+
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
|
1279
|
+
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
|
1280
|
+
+ /sbin/$sysctl 2>/dev/null || \
|
1281
|
+
+ /usr/sbin/$sysctl 2>/dev/null || \
|
1282
|
+
+ echo unknown)`
|
1283
|
+
case "${UNAME_MACHINE_ARCH}" in
|
1284
|
+
armeb) machine=armeb-unknown ;;
|
1285
|
+
arm*) machine=arm-unknown ;;
|
1286
|
+
sh3el) machine=shl-unknown ;;
|
1287
|
+
sh3eb) machine=sh-unknown ;;
|
1288
|
+
+ sh5el) machine=sh5le-unknown ;;
|
1289
|
+
+ earmv*)
|
1290
|
+
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
|
1291
|
+
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
|
1292
|
+
+ machine=${arch}${endian}-unknown
|
1293
|
+
+ ;;
|
1294
|
+
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
1295
|
+
esac
|
1296
|
+
# The Operating System including object format, if it has switched
|
1297
|
+
# to ELF recently, or will in the future.
|
1298
|
+
case "${UNAME_MACHINE_ARCH}" in
|
1299
|
+
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
1300
|
+
+ arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
1301
|
+
eval $set_cc_for_build
|
1302
|
+
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
1303
|
+
- | grep __ELF__ >/dev/null
|
1304
|
+
+ | grep -q __ELF__
|
1305
|
+
then
|
1306
|
+
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
1307
|
+
# Return netbsd for either. FIX?
|
1308
|
+
@@ -178,7 +201,14 @@
|
1309
|
+
fi
|
1310
|
+
;;
|
1311
|
+
*)
|
1312
|
+
- os=netbsd
|
1313
|
+
+ os=netbsd
|
1314
|
+
+ ;;
|
1315
|
+
+ esac
|
1316
|
+
+ # Determine ABI tags.
|
1317
|
+
+ case "${UNAME_MACHINE_ARCH}" in
|
1318
|
+
+ earm*)
|
1319
|
+
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
|
1320
|
+
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
|
1321
|
+
;;
|
1322
|
+
esac
|
1323
|
+
# The OS release
|
1324
|
+
@@ -191,13 +221,17 @@
|
1325
|
+
release='-gnu'
|
1326
|
+
;;
|
1327
|
+
*)
|
1328
|
+
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
1329
|
+
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
|
1330
|
+
;;
|
1331
|
+
esac
|
1332
|
+
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
|
1333
|
+
# contains redundant information, the shorter form:
|
1334
|
+
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
1335
|
+
- echo "${machine}-${os}${release}"
|
1336
|
+
+ echo "${machine}-${os}${release}${abi}"
|
1337
|
+
+ exit ;;
|
1338
|
+
+ *:Bitrig:*:*)
|
1339
|
+
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
1340
|
+
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
1341
|
+
exit ;;
|
1342
|
+
*:OpenBSD:*:*)
|
1343
|
+
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
1344
|
+
@@ -206,19 +240,25 @@
|
1345
|
+
*:ekkoBSD:*:*)
|
1346
|
+
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
|
1347
|
+
exit ;;
|
1348
|
+
+ *:SolidBSD:*:*)
|
1349
|
+
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
|
1350
|
+
+ exit ;;
|
1351
|
+
macppc:MirBSD:*:*)
|
1352
|
+
- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
|
1353
|
+
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
|
1354
|
+
exit ;;
|
1355
|
+
*:MirBSD:*:*)
|
1356
|
+
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
1357
|
+
exit ;;
|
1358
|
+
+ *:Sortix:*:*)
|
1359
|
+
+ echo ${UNAME_MACHINE}-unknown-sortix
|
1360
|
+
+ exit ;;
|
1361
|
+
alpha:OSF1:*:*)
|
1362
|
+
case $UNAME_RELEASE in
|
1363
|
+
*4.0)
|
1364
|
+
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
1365
|
+
;;
|
1366
|
+
*5.*)
|
1367
|
+
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
1368
|
+
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
1369
|
+
;;
|
1370
|
+
esac
|
1371
|
+
# According to Compaq, /usr/sbin/psrinfo has been available on
|
1372
|
+
@@ -264,7 +304,10 @@
|
1373
|
+
# A Xn.n version is an unreleased experimental baselevel.
|
1374
|
+
# 1.2 uses "1.2" for uname -r.
|
1375
|
+
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
1376
|
+
- exit ;;
|
1377
|
+
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
1378
|
+
+ exitcode=$?
|
1379
|
+
+ trap '' 0
|
1380
|
+
+ exit $exitcode ;;
|
1381
|
+
Alpha\ *:Windows_NT*:*)
|
1382
|
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
1383
|
+
# Should we change UNAME_MACHINE based on the output of uname instead
|
1384
|
+
@@ -290,12 +333,12 @@
|
1385
|
+
echo s390-ibm-zvmoe
|
1386
|
+
exit ;;
|
1387
|
+
*:OS400:*:*)
|
1388
|
+
- echo powerpc-ibm-os400
|
1389
|
+
+ echo powerpc-ibm-os400
|
1390
|
+
exit ;;
|
1391
|
+
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
1392
|
+
echo arm-acorn-riscix${UNAME_RELEASE}
|
1393
|
+
exit ;;
|
1394
|
+
- arm:riscos:*:*|arm:RISCOS:*:*)
|
1395
|
+
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
|
1396
|
+
echo arm-unknown-riscos
|
1397
|
+
exit ;;
|
1398
|
+
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
1399
|
+
@@ -319,14 +362,33 @@
|
1400
|
+
case `/usr/bin/uname -p` in
|
1401
|
+
sparc) echo sparc-icl-nx7; exit ;;
|
1402
|
+
esac ;;
|
1403
|
+
+ s390x:SunOS:*:*)
|
1404
|
+
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
1405
|
+
+ exit ;;
|
1406
|
+
sun4H:SunOS:5.*:*)
|
1407
|
+
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
1408
|
+
exit ;;
|
1409
|
+
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
1410
|
+
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
1411
|
+
exit ;;
|
1412
|
+
- i86pc:SunOS:5.*:*)
|
1413
|
+
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
1414
|
+
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
1415
|
+
+ echo i386-pc-auroraux${UNAME_RELEASE}
|
1416
|
+
+ exit ;;
|
1417
|
+
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
1418
|
+
+ eval $set_cc_for_build
|
1419
|
+
+ SUN_ARCH="i386"
|
1420
|
+
+ # If there is a compiler, see if it is configured for 64-bit objects.
|
1421
|
+
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
1422
|
+
+ # This test works for both compilers.
|
1423
|
+
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
1424
|
+
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
1425
|
+
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
1426
|
+
+ grep IS_64BIT_ARCH >/dev/null
|
1427
|
+
+ then
|
1428
|
+
+ SUN_ARCH="x86_64"
|
1429
|
+
+ fi
|
1430
|
+
+ fi
|
1431
|
+
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
1432
|
+
exit ;;
|
1433
|
+
sun4*:SunOS:6*:*)
|
1434
|
+
# According to config.sub, this is the proper way to canonicalize
|
1435
|
+
@@ -370,23 +432,23 @@
|
1436
|
+
# MiNT. But MiNT is downward compatible to TOS, so this should
|
1437
|
+
# be no problem.
|
1438
|
+
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
1439
|
+
- echo m68k-atari-mint${UNAME_RELEASE}
|
1440
|
+
+ echo m68k-atari-mint${UNAME_RELEASE}
|
1441
|
+
exit ;;
|
1442
|
+
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
1443
|
+
echo m68k-atari-mint${UNAME_RELEASE}
|
1444
|
+
- exit ;;
|
1445
|
+
+ exit ;;
|
1446
|
+
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
1447
|
+
- echo m68k-atari-mint${UNAME_RELEASE}
|
1448
|
+
+ echo m68k-atari-mint${UNAME_RELEASE}
|
1449
|
+
exit ;;
|
1450
|
+
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
1451
|
+
- echo m68k-milan-mint${UNAME_RELEASE}
|
1452
|
+
- exit ;;
|
1453
|
+
+ echo m68k-milan-mint${UNAME_RELEASE}
|
1454
|
+
+ exit ;;
|
1455
|
+
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
1456
|
+
- echo m68k-hades-mint${UNAME_RELEASE}
|
1457
|
+
- exit ;;
|
1458
|
+
+ echo m68k-hades-mint${UNAME_RELEASE}
|
1459
|
+
+ exit ;;
|
1460
|
+
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
1461
|
+
- echo m68k-unknown-mint${UNAME_RELEASE}
|
1462
|
+
- exit ;;
|
1463
|
+
+ echo m68k-unknown-mint${UNAME_RELEASE}
|
1464
|
+
+ exit ;;
|
1465
|
+
m68k:machten:*:*)
|
1466
|
+
echo m68k-apple-machten${UNAME_RELEASE}
|
1467
|
+
exit ;;
|
1468
|
+
@@ -456,8 +518,8 @@
|
1469
|
+
echo m88k-motorola-sysv3
|
1470
|
+
exit ;;
|
1471
|
+
AViiON:dgux:*:*)
|
1472
|
+
- # DG/UX returns AViiON for all architectures
|
1473
|
+
- UNAME_PROCESSOR=`/usr/bin/uname -p`
|
1474
|
+
+ # DG/UX returns AViiON for all architectures
|
1475
|
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
1476
|
+
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
1477
|
+
then
|
1478
|
+
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
1479
|
+
@@ -470,7 +532,7 @@
|
1480
|
+
else
|
1481
|
+
echo i586-dg-dgux${UNAME_RELEASE}
|
1482
|
+
fi
|
1483
|
+
- exit ;;
|
1484
|
+
+ exit ;;
|
1485
|
+
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
1486
|
+
echo m88k-dolphin-sysv3
|
1487
|
+
exit ;;
|
1488
|
+
@@ -527,15 +589,16 @@
|
1489
|
+
echo rs6000-ibm-aix3.2
|
1490
|
+
fi
|
1491
|
+
exit ;;
|
1492
|
+
- *:AIX:*:[45])
|
1493
|
+
+ *:AIX:*:[4567])
|
1494
|
+
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
1495
|
+
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
1496
|
+
IBM_ARCH=rs6000
|
1497
|
+
else
|
1498
|
+
IBM_ARCH=powerpc
|
1499
|
+
fi
|
1500
|
+
- if [ -x /usr/bin/oslevel ] ; then
|
1501
|
+
- IBM_REV=`/usr/bin/oslevel`
|
1502
|
+
+ if [ -x /usr/bin/lslpp ] ; then
|
1503
|
+
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
|
1504
|
+
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
|
1505
|
+
else
|
1506
|
+
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
1507
|
+
fi
|
1508
|
+
@@ -570,52 +633,52 @@
|
1509
|
+
9000/[678][0-9][0-9])
|
1510
|
+
if [ -x /usr/bin/getconf ]; then
|
1511
|
+
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
1512
|
+
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
1513
|
+
- case "${sc_cpu_version}" in
|
1514
|
+
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
1515
|
+
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
1516
|
+
- 532) # CPU_PA_RISC2_0
|
1517
|
+
- case "${sc_kernel_bits}" in
|
1518
|
+
- 32) HP_ARCH="hppa2.0n" ;;
|
1519
|
+
- 64) HP_ARCH="hppa2.0w" ;;
|
1520
|
+
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
1521
|
+
+ case "${sc_cpu_version}" in
|
1522
|
+
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
1523
|
+
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
1524
|
+
+ 532) # CPU_PA_RISC2_0
|
1525
|
+
+ case "${sc_kernel_bits}" in
|
1526
|
+
+ 32) HP_ARCH="hppa2.0n" ;;
|
1527
|
+
+ 64) HP_ARCH="hppa2.0w" ;;
|
1528
|
+
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
1529
|
+
- esac ;;
|
1530
|
+
- esac
|
1531
|
+
+ esac ;;
|
1532
|
+
+ esac
|
1533
|
+
fi
|
1534
|
+
if [ "${HP_ARCH}" = "" ]; then
|
1535
|
+
eval $set_cc_for_build
|
1536
|
+
- sed 's/^ //' << EOF >$dummy.c
|
1537
|
+
+ sed 's/^ //' << EOF >$dummy.c
|
1538
|
+
+
|
1539
|
+
+ #define _HPUX_SOURCE
|
1540
|
+
+ #include <stdlib.h>
|
1541
|
+
+ #include <unistd.h>
|
1542
|
+
+
|
1543
|
+
+ int main ()
|
1544
|
+
+ {
|
1545
|
+
+ #if defined(_SC_KERNEL_BITS)
|
1546
|
+
+ long bits = sysconf(_SC_KERNEL_BITS);
|
1547
|
+
+ #endif
|
1548
|
+
+ long cpu = sysconf (_SC_CPU_VERSION);
|
1549
|
+
|
1550
|
+
- #define _HPUX_SOURCE
|
1551
|
+
- #include <stdlib.h>
|
1552
|
+
- #include <unistd.h>
|
1553
|
+
-
|
1554
|
+
- int main ()
|
1555
|
+
- {
|
1556
|
+
- #if defined(_SC_KERNEL_BITS)
|
1557
|
+
- long bits = sysconf(_SC_KERNEL_BITS);
|
1558
|
+
- #endif
|
1559
|
+
- long cpu = sysconf (_SC_CPU_VERSION);
|
1560
|
+
-
|
1561
|
+
- switch (cpu)
|
1562
|
+
- {
|
1563
|
+
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
1564
|
+
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
1565
|
+
- case CPU_PA_RISC2_0:
|
1566
|
+
- #if defined(_SC_KERNEL_BITS)
|
1567
|
+
- switch (bits)
|
1568
|
+
- {
|
1569
|
+
- case 64: puts ("hppa2.0w"); break;
|
1570
|
+
- case 32: puts ("hppa2.0n"); break;
|
1571
|
+
- default: puts ("hppa2.0"); break;
|
1572
|
+
- } break;
|
1573
|
+
- #else /* !defined(_SC_KERNEL_BITS) */
|
1574
|
+
- puts ("hppa2.0"); break;
|
1575
|
+
- #endif
|
1576
|
+
- default: puts ("hppa1.0"); break;
|
1577
|
+
- }
|
1578
|
+
- exit (0);
|
1579
|
+
- }
|
1580
|
+
+ switch (cpu)
|
1581
|
+
+ {
|
1582
|
+
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
1583
|
+
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
1584
|
+
+ case CPU_PA_RISC2_0:
|
1585
|
+
+ #if defined(_SC_KERNEL_BITS)
|
1586
|
+
+ switch (bits)
|
1587
|
+
+ {
|
1588
|
+
+ case 64: puts ("hppa2.0w"); break;
|
1589
|
+
+ case 32: puts ("hppa2.0n"); break;
|
1590
|
+
+ default: puts ("hppa2.0"); break;
|
1591
|
+
+ } break;
|
1592
|
+
+ #else /* !defined(_SC_KERNEL_BITS) */
|
1593
|
+
+ puts ("hppa2.0"); break;
|
1594
|
+
+ #endif
|
1595
|
+
+ default: puts ("hppa1.0"); break;
|
1596
|
+
+ }
|
1597
|
+
+ exit (0);
|
1598
|
+
+ }
|
1599
|
+
EOF
|
1600
|
+
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
1601
|
+
test -z "$HP_ARCH" && HP_ARCH=hppa
|
1602
|
+
@@ -635,7 +698,7 @@
|
1603
|
+
# => hppa64-hp-hpux11.23
|
1604
|
+
|
1605
|
+
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
1606
|
+
- grep __LP64__ >/dev/null
|
1607
|
+
+ grep -q __LP64__
|
1608
|
+
then
|
1609
|
+
HP_ARCH="hppa2.0w"
|
1610
|
+
else
|
1611
|
+
@@ -706,22 +769,22 @@
|
1612
|
+
exit ;;
|
1613
|
+
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
1614
|
+
echo c1-convex-bsd
|
1615
|
+
- exit ;;
|
1616
|
+
+ exit ;;
|
1617
|
+
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
1618
|
+
if getsysinfo -f scalar_acc
|
1619
|
+
then echo c32-convex-bsd
|
1620
|
+
else echo c2-convex-bsd
|
1621
|
+
fi
|
1622
|
+
- exit ;;
|
1623
|
+
+ exit ;;
|
1624
|
+
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
1625
|
+
echo c34-convex-bsd
|
1626
|
+
- exit ;;
|
1627
|
+
+ exit ;;
|
1628
|
+
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
1629
|
+
echo c38-convex-bsd
|
1630
|
+
- exit ;;
|
1631
|
+
+ exit ;;
|
1632
|
+
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
1633
|
+
echo c4-convex-bsd
|
1634
|
+
- exit ;;
|
1635
|
+
+ exit ;;
|
1636
|
+
CRAY*Y-MP:*:*:*)
|
1637
|
+
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
1638
|
+
exit ;;
|
1639
|
+
@@ -745,14 +808,14 @@
|
1640
|
+
exit ;;
|
1641
|
+
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
1642
|
+
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
1643
|
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
1644
|
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
1645
|
+
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
1646
|
+
- exit ;;
|
1647
|
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
1648
|
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
1649
|
+
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
1650
|
+
+ exit ;;
|
1651
|
+
5000:UNIX_System_V:4.*:*)
|
1652
|
+
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
1653
|
+
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
1654
|
+
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
1655
|
+
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
1656
|
+
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
1657
|
+
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
1658
|
+
exit ;;
|
1659
|
+
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
1660
|
+
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
1661
|
+
@@ -764,32 +827,51 @@
|
1662
|
+
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
1663
|
+
exit ;;
|
1664
|
+
*:FreeBSD:*:*)
|
1665
|
+
- case ${UNAME_MACHINE} in
|
1666
|
+
- pc98)
|
1667
|
+
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
1668
|
+
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
1669
|
+
+ case ${UNAME_PROCESSOR} in
|
1670
|
+
+ amd64)
|
1671
|
+
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
1672
|
+
*)
|
1673
|
+
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
1674
|
+
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
1675
|
+
esac
|
1676
|
+
exit ;;
|
1677
|
+
i*:CYGWIN*:*)
|
1678
|
+
echo ${UNAME_MACHINE}-pc-cygwin
|
1679
|
+
exit ;;
|
1680
|
+
- i*:MINGW*:*)
|
1681
|
+
+ *:MINGW64*:*)
|
1682
|
+
+ echo ${UNAME_MACHINE}-pc-mingw64
|
1683
|
+
+ exit ;;
|
1684
|
+
+ *:MINGW*:*)
|
1685
|
+
echo ${UNAME_MACHINE}-pc-mingw32
|
1686
|
+
exit ;;
|
1687
|
+
+ *:MSYS*:*)
|
1688
|
+
+ echo ${UNAME_MACHINE}-pc-msys
|
1689
|
+
+ exit ;;
|
1690
|
+
i*:windows32*:*)
|
1691
|
+
- # uname -m includes "-pc" on this system.
|
1692
|
+
- echo ${UNAME_MACHINE}-mingw32
|
1693
|
+
+ # uname -m includes "-pc" on this system.
|
1694
|
+
+ echo ${UNAME_MACHINE}-mingw32
|
1695
|
+
exit ;;
|
1696
|
+
i*:PW*:*)
|
1697
|
+
echo ${UNAME_MACHINE}-pc-pw32
|
1698
|
+
exit ;;
|
1699
|
+
- x86:Interix*:[345]*)
|
1700
|
+
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
|
1701
|
+
- exit ;;
|
1702
|
+
+ *:Interix*:*)
|
1703
|
+
+ case ${UNAME_MACHINE} in
|
1704
|
+
+ x86)
|
1705
|
+
+ echo i586-pc-interix${UNAME_RELEASE}
|
1706
|
+
+ exit ;;
|
1707
|
+
+ authenticamd | genuineintel | EM64T)
|
1708
|
+
+ echo x86_64-unknown-interix${UNAME_RELEASE}
|
1709
|
+
+ exit ;;
|
1710
|
+
+ IA64)
|
1711
|
+
+ echo ia64-unknown-interix${UNAME_RELEASE}
|
1712
|
+
+ exit ;;
|
1713
|
+
+ esac ;;
|
1714
|
+
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
1715
|
+
echo i${UNAME_MACHINE}-pc-mks
|
1716
|
+
exit ;;
|
1717
|
+
+ 8664:Windows_NT:*)
|
1718
|
+
+ echo x86_64-pc-mks
|
1719
|
+
+ exit ;;
|
1720
|
+
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
1721
|
+
# How do we know it's Interix rather than the generic POSIX subsystem?
|
1722
|
+
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
1723
|
+
@@ -810,185 +892,163 @@
|
1724
|
+
exit ;;
|
1725
|
+
*:GNU:*:*)
|
1726
|
+
# the GNU system
|
1727
|
+
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
1728
|
+
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
1729
|
+
exit ;;
|
1730
|
+
*:GNU/*:*:*)
|
1731
|
+
# other systems with GNU libc and userland
|
1732
|
+
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
1733
|
+
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
|
1734
|
+
exit ;;
|
1735
|
+
i*86:Minix:*:*)
|
1736
|
+
echo ${UNAME_MACHINE}-pc-minix
|
1737
|
+
exit ;;
|
1738
|
+
+ aarch64:Linux:*:*)
|
1739
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1740
|
+
+ exit ;;
|
1741
|
+
+ aarch64_be:Linux:*:*)
|
1742
|
+
+ UNAME_MACHINE=aarch64_be
|
1743
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1744
|
+
+ exit ;;
|
1745
|
+
+ alpha:Linux:*:*)
|
1746
|
+
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
1747
|
+
+ EV5) UNAME_MACHINE=alphaev5 ;;
|
1748
|
+
+ EV56) UNAME_MACHINE=alphaev56 ;;
|
1749
|
+
+ PCA56) UNAME_MACHINE=alphapca56 ;;
|
1750
|
+
+ PCA57) UNAME_MACHINE=alphapca56 ;;
|
1751
|
+
+ EV6) UNAME_MACHINE=alphaev6 ;;
|
1752
|
+
+ EV67) UNAME_MACHINE=alphaev67 ;;
|
1753
|
+
+ EV68*) UNAME_MACHINE=alphaev68 ;;
|
1754
|
+
+ esac
|
1755
|
+
+ objdump --private-headers /bin/sh | grep -q ld.so.1
|
1756
|
+
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
|
1757
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1758
|
+
+ exit ;;
|
1759
|
+
+ arc:Linux:*:* | arceb:Linux:*:*)
|
1760
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1761
|
+
+ exit ;;
|
1762
|
+
arm*:Linux:*:*)
|
1763
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1764
|
+
+ eval $set_cc_for_build
|
1765
|
+
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
1766
|
+
+ | grep -q __ARM_EABI__
|
1767
|
+
+ then
|
1768
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1769
|
+
+ else
|
1770
|
+
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
1771
|
+
+ | grep -q __ARM_PCS_VFP
|
1772
|
+
+ then
|
1773
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
|
1774
|
+
+ else
|
1775
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
|
1776
|
+
+ fi
|
1777
|
+
+ fi
|
1778
|
+
+ exit ;;
|
1779
|
+
+ avr32*:Linux:*:*)
|
1780
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1781
|
+
exit ;;
|
1782
|
+
cris:Linux:*:*)
|
1783
|
+
- echo cris-axis-linux-gnu
|
1784
|
+
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
1785
|
+
exit ;;
|
1786
|
+
crisv32:Linux:*:*)
|
1787
|
+
- echo crisv32-axis-linux-gnu
|
1788
|
+
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
1789
|
+
+ exit ;;
|
1790
|
+
+ e2k:Linux:*:*)
|
1791
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1792
|
+
exit ;;
|
1793
|
+
frv:Linux:*:*)
|
1794
|
+
- echo frv-unknown-linux-gnu
|
1795
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1796
|
+
+ exit ;;
|
1797
|
+
+ hexagon:Linux:*:*)
|
1798
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1799
|
+
+ exit ;;
|
1800
|
+
+ i*86:Linux:*:*)
|
1801
|
+
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
1802
|
+
exit ;;
|
1803
|
+
ia64:Linux:*:*)
|
1804
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1805
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1806
|
+
+ exit ;;
|
1807
|
+
+ k1om:Linux:*:*)
|
1808
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1809
|
+
exit ;;
|
1810
|
+
m32r*:Linux:*:*)
|
1811
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1812
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1813
|
+
exit ;;
|
1814
|
+
m68*:Linux:*:*)
|
1815
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1816
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1817
|
+
exit ;;
|
1818
|
+
- mips:Linux:*:*)
|
1819
|
+
+ mips:Linux:*:* | mips64:Linux:*:*)
|
1820
|
+
eval $set_cc_for_build
|
1821
|
+
sed 's/^ //' << EOF >$dummy.c
|
1822
|
+
#undef CPU
|
1823
|
+
- #undef mips
|
1824
|
+
- #undef mipsel
|
1825
|
+
+ #undef ${UNAME_MACHINE}
|
1826
|
+
+ #undef ${UNAME_MACHINE}el
|
1827
|
+
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
1828
|
+
- CPU=mipsel
|
1829
|
+
+ CPU=${UNAME_MACHINE}el
|
1830
|
+
#else
|
1831
|
+
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
1832
|
+
- CPU=mips
|
1833
|
+
+ CPU=${UNAME_MACHINE}
|
1834
|
+
#else
|
1835
|
+
CPU=
|
1836
|
+
#endif
|
1837
|
+
#endif
|
1838
|
+
EOF
|
1839
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
|
1840
|
+
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
1841
|
+
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
1842
|
+
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
|
1843
|
+
;;
|
1844
|
+
- mips64:Linux:*:*)
|
1845
|
+
- eval $set_cc_for_build
|
1846
|
+
- sed 's/^ //' << EOF >$dummy.c
|
1847
|
+
- #undef CPU
|
1848
|
+
- #undef mips64
|
1849
|
+
- #undef mips64el
|
1850
|
+
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
1851
|
+
- CPU=mips64el
|
1852
|
+
- #else
|
1853
|
+
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
1854
|
+
- CPU=mips64
|
1855
|
+
- #else
|
1856
|
+
- CPU=
|
1857
|
+
- #endif
|
1858
|
+
- #endif
|
1859
|
+
-EOF
|
1860
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
|
1861
|
+
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
1862
|
+
- ;;
|
1863
|
+
- or32:Linux:*:*)
|
1864
|
+
- echo or32-unknown-linux-gnu
|
1865
|
+
+ openrisc*:Linux:*:*)
|
1866
|
+
+ echo or1k-unknown-linux-${LIBC}
|
1867
|
+
exit ;;
|
1868
|
+
- ppc:Linux:*:*)
|
1869
|
+
- echo powerpc-unknown-linux-gnu
|
1870
|
+
+ or32:Linux:*:* | or1k*:Linux:*:*)
|
1871
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1872
|
+
exit ;;
|
1873
|
+
- ppc64:Linux:*:*)
|
1874
|
+
- echo powerpc64-unknown-linux-gnu
|
1875
|
+
+ padre:Linux:*:*)
|
1876
|
+
+ echo sparc-unknown-linux-${LIBC}
|
1877
|
+
exit ;;
|
1878
|
+
- alpha:Linux:*:*)
|
1879
|
+
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
1880
|
+
- EV5) UNAME_MACHINE=alphaev5 ;;
|
1881
|
+
- EV56) UNAME_MACHINE=alphaev56 ;;
|
1882
|
+
- PCA56) UNAME_MACHINE=alphapca56 ;;
|
1883
|
+
- PCA57) UNAME_MACHINE=alphapca56 ;;
|
1884
|
+
- EV6) UNAME_MACHINE=alphaev6 ;;
|
1885
|
+
- EV67) UNAME_MACHINE=alphaev67 ;;
|
1886
|
+
- EV68*) UNAME_MACHINE=alphaev68 ;;
|
1887
|
+
- esac
|
1888
|
+
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
1889
|
+
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
1890
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
1891
|
+
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
|
1892
|
+
+ echo hppa64-unknown-linux-${LIBC}
|
1893
|
+
exit ;;
|
1894
|
+
parisc:Linux:*:* | hppa:Linux:*:*)
|
1895
|
+
# Look for CPU level
|
1896
|
+
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
1897
|
+
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
|
1898
|
+
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
1899
|
+
- *) echo hppa-unknown-linux-gnu ;;
|
1900
|
+
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
|
1901
|
+
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
|
1902
|
+
+ *) echo hppa-unknown-linux-${LIBC} ;;
|
1903
|
+
esac
|
1904
|
+
exit ;;
|
1905
|
+
- parisc64:Linux:*:* | hppa64:Linux:*:*)
|
1906
|
+
- echo hppa64-unknown-linux-gnu
|
1907
|
+
+ ppc64:Linux:*:*)
|
1908
|
+
+ echo powerpc64-unknown-linux-${LIBC}
|
1909
|
+
+ exit ;;
|
1910
|
+
+ ppc:Linux:*:*)
|
1911
|
+
+ echo powerpc-unknown-linux-${LIBC}
|
1912
|
+
+ exit ;;
|
1913
|
+
+ ppc64le:Linux:*:*)
|
1914
|
+
+ echo powerpc64le-unknown-linux-${LIBC}
|
1915
|
+
+ exit ;;
|
1916
|
+
+ ppcle:Linux:*:*)
|
1917
|
+
+ echo powerpcle-unknown-linux-${LIBC}
|
1918
|
+
exit ;;
|
1919
|
+
s390:Linux:*:* | s390x:Linux:*:*)
|
1920
|
+
- echo ${UNAME_MACHINE}-ibm-linux
|
1921
|
+
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
|
1922
|
+
exit ;;
|
1923
|
+
sh64*:Linux:*:*)
|
1924
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1925
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1926
|
+
exit ;;
|
1927
|
+
sh*:Linux:*:*)
|
1928
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1929
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1930
|
+
exit ;;
|
1931
|
+
sparc:Linux:*:* | sparc64:Linux:*:*)
|
1932
|
+
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
1933
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1934
|
+
+ exit ;;
|
1935
|
+
+ tile*:Linux:*:*)
|
1936
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1937
|
+
exit ;;
|
1938
|
+
vax:Linux:*:*)
|
1939
|
+
- echo ${UNAME_MACHINE}-dec-linux-gnu
|
1940
|
+
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
|
1941
|
+
exit ;;
|
1942
|
+
x86_64:Linux:*:*)
|
1943
|
+
- echo x86_64-unknown-linux-gnu
|
1944
|
+
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
1945
|
+
+ exit ;;
|
1946
|
+
+ xtensa*:Linux:*:*)
|
1947
|
+
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1948
|
+
exit ;;
|
1949
|
+
- i*86:Linux:*:*)
|
1950
|
+
- # The BFD linker knows what the default object file format is, so
|
1951
|
+
- # first see if it will tell us. cd to the root directory to prevent
|
1952
|
+
- # problems with other programs or directories called `ld' in the path.
|
1953
|
+
- # Set LC_ALL=C to ensure ld outputs messages in English.
|
1954
|
+
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
1955
|
+
- | sed -ne '/supported targets:/!d
|
1956
|
+
- s/[ ][ ]*/ /g
|
1957
|
+
- s/.*supported targets: *//
|
1958
|
+
- s/ .*//
|
1959
|
+
- p'`
|
1960
|
+
- case "$ld_supported_targets" in
|
1961
|
+
- elf32-i386)
|
1962
|
+
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
1963
|
+
- ;;
|
1964
|
+
- a.out-i386-linux)
|
1965
|
+
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
1966
|
+
- exit ;;
|
1967
|
+
- coff-i386)
|
1968
|
+
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
1969
|
+
- exit ;;
|
1970
|
+
- "")
|
1971
|
+
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
|
1972
|
+
- # one that does not give us useful --help.
|
1973
|
+
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
1974
|
+
- exit ;;
|
1975
|
+
- esac
|
1976
|
+
- # Determine whether the default compiler is a.out or elf
|
1977
|
+
- eval $set_cc_for_build
|
1978
|
+
- sed 's/^ //' << EOF >$dummy.c
|
1979
|
+
- #include <features.h>
|
1980
|
+
- #ifdef __ELF__
|
1981
|
+
- # ifdef __GLIBC__
|
1982
|
+
- # if __GLIBC__ >= 2
|
1983
|
+
- LIBC=gnu
|
1984
|
+
- # else
|
1985
|
+
- LIBC=gnulibc1
|
1986
|
+
- # endif
|
1987
|
+
- # else
|
1988
|
+
- LIBC=gnulibc1
|
1989
|
+
- # endif
|
1990
|
+
- #else
|
1991
|
+
- #if defined(__INTEL_COMPILER) || defined(__PGI)
|
1992
|
+
- LIBC=gnu
|
1993
|
+
- #else
|
1994
|
+
- LIBC=gnuaout
|
1995
|
+
- #endif
|
1996
|
+
- #endif
|
1997
|
+
- #ifdef __dietlibc__
|
1998
|
+
- LIBC=dietlibc
|
1999
|
+
- #endif
|
2000
|
+
-EOF
|
2001
|
+
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
|
2002
|
+
- test x"${LIBC}" != x && {
|
2003
|
+
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
2004
|
+
- exit
|
2005
|
+
- }
|
2006
|
+
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
2007
|
+
- ;;
|
2008
|
+
i*86:DYNIX/ptx:4*:*)
|
2009
|
+
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
2010
|
+
# earlier versions are messed up and put the nodename in both
|
2011
|
+
@@ -996,11 +1056,11 @@
|
2012
|
+
echo i386-sequent-sysv4
|
2013
|
+
exit ;;
|
2014
|
+
i*86:UNIX_SV:4.2MP:2.*)
|
2015
|
+
- # Unixware is an offshoot of SVR4, but it has its own version
|
2016
|
+
- # number series starting with 2...
|
2017
|
+
- # I am not positive that other SVR4 systems won't match this,
|
2018
|
+
+ # Unixware is an offshoot of SVR4, but it has its own version
|
2019
|
+
+ # number series starting with 2...
|
2020
|
+
+ # I am not positive that other SVR4 systems won't match this,
|
2021
|
+
# I just have to hope. -- rms.
|
2022
|
+
- # Use sysv4.2uw... so that sysv4* matches it.
|
2023
|
+
+ # Use sysv4.2uw... so that sysv4* matches it.
|
2024
|
+
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
2025
|
+
exit ;;
|
2026
|
+
i*86:OS/2:*:*)
|
2027
|
+
@@ -1017,7 +1077,7 @@
|
2028
|
+
i*86:syllable:*:*)
|
2029
|
+
echo ${UNAME_MACHINE}-pc-syllable
|
2030
|
+
exit ;;
|
2031
|
+
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
2032
|
+
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
2033
|
+
echo i386-unknown-lynxos${UNAME_RELEASE}
|
2034
|
+
exit ;;
|
2035
|
+
i*86:*DOS:*:*)
|
2036
|
+
@@ -1032,7 +1092,7 @@
|
2037
|
+
fi
|
2038
|
+
exit ;;
|
2039
|
+
i*86:*:5:[678]*)
|
2040
|
+
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
2041
|
+
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
2042
|
+
case `/bin/uname -X | grep "^Machine"` in
|
2043
|
+
*486*) UNAME_MACHINE=i486 ;;
|
2044
|
+
*Pentium) UNAME_MACHINE=i586 ;;
|
2045
|
+
@@ -1060,10 +1120,13 @@
|
2046
|
+
exit ;;
|
2047
|
+
pc:*:*:*)
|
2048
|
+
# Left here for compatibility:
|
2049
|
+
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
2050
|
+
- # the processor, so we play safe by assuming i386.
|
2051
|
+
- echo i386-pc-msdosdjgpp
|
2052
|
+
- exit ;;
|
2053
|
+
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
2054
|
+
+ # the processor, so we play safe by assuming i586.
|
2055
|
+
+ # Note: whatever this is, it MUST be the same as what config.sub
|
2056
|
+
+ # prints for the "djgpp" host, or else GDB configury will decide that
|
2057
|
+
+ # this is a cross-build.
|
2058
|
+
+ echo i586-pc-msdosdjgpp
|
2059
|
+
+ exit ;;
|
2060
|
+
Intel:Mach:3*:*)
|
2061
|
+
echo i386-pc-mach3
|
2062
|
+
exit ;;
|
2063
|
+
@@ -1098,8 +1161,18 @@
|
2064
|
+
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
2065
|
+
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
2066
|
+
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
2067
|
+
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
2068
|
+
- && { echo i486-ncr-sysv4; exit; } ;;
|
2069
|
+
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
2070
|
+
+ && { echo i486-ncr-sysv4; exit; } ;;
|
2071
|
+
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
2072
|
+
+ OS_REL='.3'
|
2073
|
+
+ test -r /etc/.relid \
|
2074
|
+
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
2075
|
+
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
2076
|
+
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
2077
|
+
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
2078
|
+
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
2079
|
+
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
2080
|
+
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
2081
|
+
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
2082
|
+
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
2083
|
+
exit ;;
|
2084
|
+
@@ -1112,7 +1185,7 @@
|
2085
|
+
rs6000:LynxOS:2.*:*)
|
2086
|
+
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
2087
|
+
exit ;;
|
2088
|
+
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
2089
|
+
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
2090
|
+
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
2091
|
+
exit ;;
|
2092
|
+
SM[BE]S:UNIX_SV:*:*)
|
2093
|
+
@@ -1132,10 +1205,10 @@
|
2094
|
+
echo ns32k-sni-sysv
|
2095
|
+
fi
|
2096
|
+
exit ;;
|
2097
|
+
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
2098
|
+
- # says <Richard.M.Bartel@ccMail.Census.GOV>
|
2099
|
+
- echo i586-unisys-sysv4
|
2100
|
+
- exit ;;
|
2101
|
+
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
2102
|
+
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
|
2103
|
+
+ echo i586-unisys-sysv4
|
2104
|
+
+ exit ;;
|
2105
|
+
*:UNIX_System_V:4*:FTX*)
|
2106
|
+
# From Gerald Hewes <hewes@openmarket.com>.
|
2107
|
+
# How about differentiating between stratus architectures? -djm
|
2108
|
+
@@ -1161,11 +1234,11 @@
|
2109
|
+
exit ;;
|
2110
|
+
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
2111
|
+
if [ -d /usr/nec ]; then
|
2112
|
+
- echo mips-nec-sysv${UNAME_RELEASE}
|
2113
|
+
+ echo mips-nec-sysv${UNAME_RELEASE}
|
2114
|
+
else
|
2115
|
+
- echo mips-unknown-sysv${UNAME_RELEASE}
|
2116
|
+
+ echo mips-unknown-sysv${UNAME_RELEASE}
|
2117
|
+
fi
|
2118
|
+
- exit ;;
|
2119
|
+
+ exit ;;
|
2120
|
+
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
2121
|
+
echo powerpc-be-beos
|
2122
|
+
exit ;;
|
2123
|
+
@@ -1175,6 +1248,12 @@
|
2124
|
+
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
2125
|
+
echo i586-pc-beos
|
2126
|
+
exit ;;
|
2127
|
+
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
2128
|
+
+ echo i586-pc-haiku
|
2129
|
+
+ exit ;;
|
2130
|
+
+ x86_64:Haiku:*:*)
|
2131
|
+
+ echo x86_64-unknown-haiku
|
2132
|
+
+ exit ;;
|
2133
|
+
SX-4:SUPER-UX:*:*)
|
2134
|
+
echo sx4-nec-superux${UNAME_RELEASE}
|
2135
|
+
exit ;;
|
2136
|
+
@@ -1184,6 +1263,15 @@
|
2137
|
+
SX-6:SUPER-UX:*:*)
|
2138
|
+
echo sx6-nec-superux${UNAME_RELEASE}
|
2139
|
+
exit ;;
|
2140
|
+
+ SX-7:SUPER-UX:*:*)
|
2141
|
+
+ echo sx7-nec-superux${UNAME_RELEASE}
|
2142
|
+
+ exit ;;
|
2143
|
+
+ SX-8:SUPER-UX:*:*)
|
2144
|
+
+ echo sx8-nec-superux${UNAME_RELEASE}
|
2145
|
+
+ exit ;;
|
2146
|
+
+ SX-8R:SUPER-UX:*:*)
|
2147
|
+
+ echo sx8r-nec-superux${UNAME_RELEASE}
|
2148
|
+
+ exit ;;
|
2149
|
+
Power*:Rhapsody:*:*)
|
2150
|
+
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
2151
|
+
exit ;;
|
2152
|
+
@@ -1192,9 +1280,31 @@
|
2153
|
+
exit ;;
|
2154
|
+
*:Darwin:*:*)
|
2155
|
+
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
2156
|
+
- case $UNAME_PROCESSOR in
|
2157
|
+
- unknown) UNAME_PROCESSOR=powerpc ;;
|
2158
|
+
- esac
|
2159
|
+
+ eval $set_cc_for_build
|
2160
|
+
+ if test "$UNAME_PROCESSOR" = unknown ; then
|
2161
|
+
+ UNAME_PROCESSOR=powerpc
|
2162
|
+
+ fi
|
2163
|
+
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
2164
|
+
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
2165
|
+
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
2166
|
+
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
2167
|
+
+ grep IS_64BIT_ARCH >/dev/null
|
2168
|
+
+ then
|
2169
|
+
+ case $UNAME_PROCESSOR in
|
2170
|
+
+ i386) UNAME_PROCESSOR=x86_64 ;;
|
2171
|
+
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
|
2172
|
+
+ esac
|
2173
|
+
+ fi
|
2174
|
+
+ fi
|
2175
|
+
+ elif test "$UNAME_PROCESSOR" = i386 ; then
|
2176
|
+
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
|
2177
|
+
+ # that puts up a graphical alert prompting to install
|
2178
|
+
+ # developer tools. Any system running Mac OS X 10.7 or
|
2179
|
+
+ # later (Darwin 11 and later) is required to have a 64-bit
|
2180
|
+
+ # processor. This is not true of the ARM version of Darwin
|
2181
|
+
+ # that Apple uses in portable devices.
|
2182
|
+
+ UNAME_PROCESSOR=x86_64
|
2183
|
+
+ fi
|
2184
|
+
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
2185
|
+
exit ;;
|
2186
|
+
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
2187
|
+
@@ -1208,7 +1318,10 @@
|
2188
|
+
*:QNX:*:4*)
|
2189
|
+
echo i386-pc-qnx
|
2190
|
+
exit ;;
|
2191
|
+
- NSE-?:NONSTOP_KERNEL:*:*)
|
2192
|
+
+ NEO-?:NONSTOP_KERNEL:*:*)
|
2193
|
+
+ echo neo-tandem-nsk${UNAME_RELEASE}
|
2194
|
+
+ exit ;;
|
2195
|
+
+ NSE-*:NONSTOP_KERNEL:*:*)
|
2196
|
+
echo nse-tandem-nsk${UNAME_RELEASE}
|
2197
|
+
exit ;;
|
2198
|
+
NSR-?:NONSTOP_KERNEL:*:*)
|
2199
|
+
@@ -1253,13 +1366,13 @@
|
2200
|
+
echo pdp10-unknown-its
|
2201
|
+
exit ;;
|
2202
|
+
SEI:*:*:SEIUX)
|
2203
|
+
- echo mips-sei-seiux${UNAME_RELEASE}
|
2204
|
+
+ echo mips-sei-seiux${UNAME_RELEASE}
|
2205
|
+
exit ;;
|
2206
|
+
*:DragonFly:*:*)
|
2207
|
+
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
2208
|
+
exit ;;
|
2209
|
+
*:*VMS:*:*)
|
2210
|
+
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
2211
|
+
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
2212
|
+
case "${UNAME_MACHINE}" in
|
2213
|
+
A*) echo alpha-dec-vms ; exit ;;
|
2214
|
+
I*) echo ia64-dec-vms ; exit ;;
|
2215
|
+
@@ -1274,158 +1387,13 @@
|
2216
|
+
i*86:rdos:*:*)
|
2217
|
+
echo ${UNAME_MACHINE}-pc-rdos
|
2218
|
+
exit ;;
|
2219
|
+
-esac
|
2220
|
+
-
|
2221
|
+
-#echo '(No uname command or uname output not recognized.)' 1>&2
|
2222
|
+
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
2223
|
+
-
|
2224
|
+
-eval $set_cc_for_build
|
2225
|
+
-cat >$dummy.c <<EOF
|
2226
|
+
-#ifdef _SEQUENT_
|
2227
|
+
-# include <sys/types.h>
|
2228
|
+
-# include <sys/utsname.h>
|
2229
|
+
-#endif
|
2230
|
+
-main ()
|
2231
|
+
-{
|
2232
|
+
-#if defined (sony)
|
2233
|
+
-#if defined (MIPSEB)
|
2234
|
+
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
2235
|
+
- I don't know.... */
|
2236
|
+
- printf ("mips-sony-bsd\n"); exit (0);
|
2237
|
+
-#else
|
2238
|
+
-#include <sys/param.h>
|
2239
|
+
- printf ("m68k-sony-newsos%s\n",
|
2240
|
+
-#ifdef NEWSOS4
|
2241
|
+
- "4"
|
2242
|
+
-#else
|
2243
|
+
- ""
|
2244
|
+
-#endif
|
2245
|
+
- ); exit (0);
|
2246
|
+
-#endif
|
2247
|
+
-#endif
|
2248
|
+
-
|
2249
|
+
-#if defined (__arm) && defined (__acorn) && defined (__unix)
|
2250
|
+
- printf ("arm-acorn-riscix\n"); exit (0);
|
2251
|
+
-#endif
|
2252
|
+
-
|
2253
|
+
-#if defined (hp300) && !defined (hpux)
|
2254
|
+
- printf ("m68k-hp-bsd\n"); exit (0);
|
2255
|
+
-#endif
|
2256
|
+
-
|
2257
|
+
-#if defined (NeXT)
|
2258
|
+
-#if !defined (__ARCHITECTURE__)
|
2259
|
+
-#define __ARCHITECTURE__ "m68k"
|
2260
|
+
-#endif
|
2261
|
+
- int version;
|
2262
|
+
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
2263
|
+
- if (version < 4)
|
2264
|
+
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
2265
|
+
- else
|
2266
|
+
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
2267
|
+
- exit (0);
|
2268
|
+
-#endif
|
2269
|
+
-
|
2270
|
+
-#if defined (MULTIMAX) || defined (n16)
|
2271
|
+
-#if defined (UMAXV)
|
2272
|
+
- printf ("ns32k-encore-sysv\n"); exit (0);
|
2273
|
+
-#else
|
2274
|
+
-#if defined (CMU)
|
2275
|
+
- printf ("ns32k-encore-mach\n"); exit (0);
|
2276
|
+
-#else
|
2277
|
+
- printf ("ns32k-encore-bsd\n"); exit (0);
|
2278
|
+
-#endif
|
2279
|
+
-#endif
|
2280
|
+
-#endif
|
2281
|
+
-
|
2282
|
+
-#if defined (__386BSD__)
|
2283
|
+
- printf ("i386-pc-bsd\n"); exit (0);
|
2284
|
+
-#endif
|
2285
|
+
-
|
2286
|
+
-#if defined (sequent)
|
2287
|
+
-#if defined (i386)
|
2288
|
+
- printf ("i386-sequent-dynix\n"); exit (0);
|
2289
|
+
-#endif
|
2290
|
+
-#if defined (ns32000)
|
2291
|
+
- printf ("ns32k-sequent-dynix\n"); exit (0);
|
2292
|
+
-#endif
|
2293
|
+
-#endif
|
2294
|
+
-
|
2295
|
+
-#if defined (_SEQUENT_)
|
2296
|
+
- struct utsname un;
|
2297
|
+
-
|
2298
|
+
- uname(&un);
|
2299
|
+
-
|
2300
|
+
- if (strncmp(un.version, "V2", 2) == 0) {
|
2301
|
+
- printf ("i386-sequent-ptx2\n"); exit (0);
|
2302
|
+
- }
|
2303
|
+
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
2304
|
+
- printf ("i386-sequent-ptx1\n"); exit (0);
|
2305
|
+
- }
|
2306
|
+
- printf ("i386-sequent-ptx\n"); exit (0);
|
2307
|
+
-
|
2308
|
+
-#endif
|
2309
|
+
-
|
2310
|
+
-#if defined (vax)
|
2311
|
+
-# if !defined (ultrix)
|
2312
|
+
-# include <sys/param.h>
|
2313
|
+
-# if defined (BSD)
|
2314
|
+
-# if BSD == 43
|
2315
|
+
- printf ("vax-dec-bsd4.3\n"); exit (0);
|
2316
|
+
-# else
|
2317
|
+
-# if BSD == 199006
|
2318
|
+
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
2319
|
+
-# else
|
2320
|
+
- printf ("vax-dec-bsd\n"); exit (0);
|
2321
|
+
-# endif
|
2322
|
+
-# endif
|
2323
|
+
-# else
|
2324
|
+
- printf ("vax-dec-bsd\n"); exit (0);
|
2325
|
+
-# endif
|
2326
|
+
-# else
|
2327
|
+
- printf ("vax-dec-ultrix\n"); exit (0);
|
2328
|
+
-# endif
|
2329
|
+
-#endif
|
2330
|
+
-
|
2331
|
+
-#if defined (alliant) && defined (i860)
|
2332
|
+
- printf ("i860-alliant-bsd\n"); exit (0);
|
2333
|
+
-#endif
|
2334
|
+
-
|
2335
|
+
- exit (1);
|
2336
|
+
-}
|
2337
|
+
-EOF
|
2338
|
+
-
|
2339
|
+
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
|
2340
|
+
- { echo "$SYSTEM_NAME"; exit; }
|
2341
|
+
-
|
2342
|
+
-# Apollos put the system type in the environment.
|
2343
|
+
-
|
2344
|
+
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
|
2345
|
+
-
|
2346
|
+
-# Convex versions that predate uname can use getsysinfo(1)
|
2347
|
+
-
|
2348
|
+
-if [ -x /usr/convex/getsysinfo ]
|
2349
|
+
-then
|
2350
|
+
- case `getsysinfo -f cpu_type` in
|
2351
|
+
- c1*)
|
2352
|
+
- echo c1-convex-bsd
|
2353
|
+
- exit ;;
|
2354
|
+
- c2*)
|
2355
|
+
- if getsysinfo -f scalar_acc
|
2356
|
+
- then echo c32-convex-bsd
|
2357
|
+
- else echo c2-convex-bsd
|
2358
|
+
- fi
|
2359
|
+
+ i*86:AROS:*:*)
|
2360
|
+
+ echo ${UNAME_MACHINE}-pc-aros
|
2361
|
+
exit ;;
|
2362
|
+
- c34*)
|
2363
|
+
- echo c34-convex-bsd
|
2364
|
+
+ x86_64:VMkernel:*:*)
|
2365
|
+
+ echo ${UNAME_MACHINE}-unknown-esx
|
2366
|
+
exit ;;
|
2367
|
+
- c38*)
|
2368
|
+
- echo c38-convex-bsd
|
2369
|
+
- exit ;;
|
2370
|
+
- c4*)
|
2371
|
+
- echo c4-convex-bsd
|
2372
|
+
- exit ;;
|
2373
|
+
- esac
|
2374
|
+
-fi
|
2375
|
+
+esac
|
2376
|
+
|
2377
|
+
cat >&2 <<EOF
|
2378
|
+
$0: unable to guess system type
|
2379
|
+
@@ -1434,9 +1402,9 @@
|
2380
|
+
the operating system you are using. It is advised that you
|
2381
|
+
download the most up to date version of the config scripts from
|
2382
|
+
|
2383
|
+
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
|
2384
|
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
2385
|
+
and
|
2386
|
+
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
|
2387
|
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
2388
|
+
|
2389
|
+
If the version you run ($0) is already up to date, please
|
2390
|
+
send the following data and any information you think might be
|