1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Attempt to guess a canonical system name. |
2 | # Attempt to guess a canonical system name. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 | # Copyright 1992-2014 Free Software Foundation, Inc. |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
|
|
5 | |
4 | |
6 | timestamp='2005-08-03' |
5 | timestamp='2014-03-23' |
7 | |
6 | |
8 | # This file is free software; you can redistribute it and/or modify it |
7 | # This file is free software; you can redistribute it and/or modify it |
9 | # under the terms of the GNU General Public License as published by |
8 | # under the terms of the GNU General Public License as published by |
10 | # the Free Software Foundation; either version 2 of the License, or |
9 | # the Free Software Foundation; either version 3 of the License, or |
11 | # (at your option) any later version. |
10 | # (at your option) any later version. |
12 | # |
11 | # |
13 | # This program is distributed in the hope that it will be useful, but |
12 | # This program is distributed in the hope that it will be useful, but |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | # General Public License for more details. |
15 | # General Public License for more details. |
17 | # |
16 | # |
18 | # You should have received a copy of the GNU General Public License |
17 | # You should have received a copy of the GNU General Public License |
19 | # along with this program; if not, write to the Free Software |
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
20 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
|
|
21 | # 02110-1301, USA. |
|
|
22 | # |
19 | # |
23 | # As a special exception to the GNU General Public License, if you |
20 | # As a special exception to the GNU General Public License, if you |
24 | # distribute this file as part of a program that contains a |
21 | # distribute this file as part of a program that contains a |
25 | # configuration script generated by Autoconf, you may include it under |
22 | # configuration script generated by Autoconf, you may include it under |
26 | # the same distribution terms that you use for the rest of that program. |
23 | # the same distribution terms that you use for the rest of that |
27 | |
24 | # program. This Exception is an additional permission under section 7 |
28 | |
25 | # of the GNU General Public License, version 3 ("GPLv3"). |
29 | # Originally written by Per Bothner <per@bothner.com>. |
|
|
30 | # Please send patches to <config-patches@gnu.org>. Submit a context |
|
|
31 | # diff and a properly formatted ChangeLog entry. |
|
|
32 | # |
26 | # |
33 | # This script attempts to guess a canonical system name similar to |
27 | # Originally written by Per Bothner. |
34 | # config.sub. If it succeeds, it prints the system name on stdout, and |
|
|
35 | # exits with 0. Otherwise, it exits with 1. |
|
|
36 | # |
28 | # |
37 | # The plan is that this can be called by configure scripts if you |
29 | # You can get the latest version of this script from: |
38 | # don't specify an explicit build system type. |
30 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
|
|
31 | # |
|
|
32 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. |
|
|
33 | |
39 | |
34 | |
40 | me=`echo "$0" | sed -e 's,.*/,,'` |
35 | me=`echo "$0" | sed -e 's,.*/,,'` |
41 | |
36 | |
42 | usage="\ |
37 | usage="\ |
43 | Usage: $0 [OPTION] |
38 | Usage: $0 [OPTION] |
… | |
… | |
53 | |
48 | |
54 | version="\ |
49 | version="\ |
55 | GNU config.guess ($timestamp) |
50 | GNU config.guess ($timestamp) |
56 | |
51 | |
57 | Originally written by Per Bothner. |
52 | Originally written by Per Bothner. |
58 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|
|
59 | Free Software Foundation, Inc. |
53 | Copyright 1992-2014 Free Software Foundation, Inc. |
60 | |
54 | |
61 | This is free software; see the source for copying conditions. There is NO |
55 | This is free software; see the source for copying conditions. There is NO |
62 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
63 | |
57 | |
64 | help=" |
58 | help=" |
… | |
… | |
104 | |
98 | |
105 | set_cc_for_build=' |
99 | set_cc_for_build=' |
106 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
100 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
107 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
101 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
108 | : ${TMPDIR=/tmp} ; |
102 | : ${TMPDIR=/tmp} ; |
109 | { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
103 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
110 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
104 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
111 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
105 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || |
112 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
106 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; |
113 | dummy=$tmp/dummy ; |
107 | dummy=$tmp/dummy ; |
114 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
108 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
… | |
… | |
136 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
130 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
137 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
131 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
138 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
132 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
139 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
140 | |
134 | |
|
|
135 | case "${UNAME_SYSTEM}" in |
|
|
136 | Linux|GNU|GNU/*) |
|
|
137 | # If the system lacks a compiler, then just pick glibc. |
|
|
138 | # We could probably try harder. |
|
|
139 | LIBC=gnu |
|
|
140 | |
|
|
141 | eval $set_cc_for_build |
|
|
142 | cat <<-EOF > $dummy.c |
|
|
143 | #include <features.h> |
|
|
144 | #if defined(__UCLIBC__) |
|
|
145 | LIBC=uclibc |
|
|
146 | #elif defined(__dietlibc__) |
|
|
147 | LIBC=dietlibc |
|
|
148 | #else |
|
|
149 | LIBC=gnu |
|
|
150 | #endif |
|
|
151 | EOF |
|
|
152 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` |
|
|
153 | ;; |
|
|
154 | esac |
|
|
155 | |
141 | # Note: order is significant - the case branches are not exclusive. |
156 | # Note: order is significant - the case branches are not exclusive. |
142 | |
157 | |
143 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
158 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
144 | *:NetBSD:*:*) |
159 | *:NetBSD:*:*) |
145 | # NetBSD (nbsd) targets should (where applicable) match one or |
160 | # NetBSD (nbsd) targets should (where applicable) match one or |
146 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
161 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
147 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
162 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
148 | # switched to ELF, *-*-netbsd* would select the old |
163 | # switched to ELF, *-*-netbsd* would select the old |
149 | # object file format. This provides both forward |
164 | # object file format. This provides both forward |
150 | # compatibility and a consistent mechanism for selecting the |
165 | # compatibility and a consistent mechanism for selecting the |
151 | # object file format. |
166 | # object file format. |
… | |
… | |
158 | case "${UNAME_MACHINE_ARCH}" in |
173 | case "${UNAME_MACHINE_ARCH}" in |
159 | armeb) machine=armeb-unknown ;; |
174 | armeb) machine=armeb-unknown ;; |
160 | arm*) machine=arm-unknown ;; |
175 | arm*) machine=arm-unknown ;; |
161 | sh3el) machine=shl-unknown ;; |
176 | sh3el) machine=shl-unknown ;; |
162 | sh3eb) machine=sh-unknown ;; |
177 | sh3eb) machine=sh-unknown ;; |
|
|
178 | sh5el) machine=sh5le-unknown ;; |
163 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
179 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
164 | esac |
180 | esac |
165 | # The Operating System including object format, if it has switched |
181 | # The Operating System including object format, if it has switched |
166 | # to ELF recently, or will in the future. |
182 | # to ELF recently, or will in the future. |
167 | case "${UNAME_MACHINE_ARCH}" in |
183 | case "${UNAME_MACHINE_ARCH}" in |
168 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
184 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
169 | eval $set_cc_for_build |
185 | eval $set_cc_for_build |
170 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
186 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
171 | | grep __ELF__ >/dev/null |
187 | | grep -q __ELF__ |
172 | then |
188 | then |
173 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
189 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
174 | # Return netbsd for either. FIX? |
190 | # Return netbsd for either. FIX? |
175 | os=netbsd |
191 | os=netbsd |
176 | else |
192 | else |
177 | os=netbsdelf |
193 | os=netbsdelf |
178 | fi |
194 | fi |
179 | ;; |
195 | ;; |
180 | *) |
196 | *) |
181 | os=netbsd |
197 | os=netbsd |
182 | ;; |
198 | ;; |
183 | esac |
199 | esac |
184 | # The OS release |
200 | # The OS release |
185 | # Debian GNU/NetBSD machines have a different userland, and |
201 | # Debian GNU/NetBSD machines have a different userland, and |
186 | # thus, need a distinct triplet. However, they do not need |
202 | # thus, need a distinct triplet. However, they do not need |
… | |
… | |
197 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
213 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
198 | # contains redundant information, the shorter form: |
214 | # contains redundant information, the shorter form: |
199 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
215 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
200 | echo "${machine}-${os}${release}" |
216 | echo "${machine}-${os}${release}" |
201 | exit ;; |
217 | exit ;; |
|
|
218 | *:Bitrig:*:*) |
|
|
219 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
|
|
220 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} |
|
|
221 | exit ;; |
202 | *:OpenBSD:*:*) |
222 | *:OpenBSD:*:*) |
203 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
223 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
204 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
224 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
205 | exit ;; |
225 | exit ;; |
206 | *:ekkoBSD:*:*) |
226 | *:ekkoBSD:*:*) |
207 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
227 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
208 | exit ;; |
228 | exit ;; |
|
|
229 | *:SolidBSD:*:*) |
|
|
230 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
|
|
231 | exit ;; |
209 | macppc:MirBSD:*:*) |
232 | macppc:MirBSD:*:*) |
210 | echo powerppc-unknown-mirbsd${UNAME_RELEASE} |
233 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
211 | exit ;; |
234 | exit ;; |
212 | *:MirBSD:*:*) |
235 | *:MirBSD:*:*) |
213 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
236 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
214 | exit ;; |
237 | exit ;; |
215 | alpha:OSF1:*:*) |
238 | alpha:OSF1:*:*) |
216 | case $UNAME_RELEASE in |
239 | case $UNAME_RELEASE in |
217 | *4.0) |
240 | *4.0) |
218 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
241 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
219 | ;; |
242 | ;; |
220 | *5.*) |
243 | *5.*) |
221 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
244 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
222 | ;; |
245 | ;; |
223 | esac |
246 | esac |
224 | # According to Compaq, /usr/sbin/psrinfo has been available on |
247 | # According to Compaq, /usr/sbin/psrinfo has been available on |
225 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
248 | # OSF/1 and Tru64 systems produced since 1995. I hope that |
226 | # covers most systems running today. This code pipes the CPU |
249 | # covers most systems running today. This code pipes the CPU |
… | |
… | |
262 | # A Vn.n version is a released version. |
285 | # A Vn.n version is a released version. |
263 | # A Tn.n version is a released field test version. |
286 | # A Tn.n version is a released field test version. |
264 | # A Xn.n version is an unreleased experimental baselevel. |
287 | # A Xn.n version is an unreleased experimental baselevel. |
265 | # 1.2 uses "1.2" for uname -r. |
288 | # 1.2 uses "1.2" for uname -r. |
266 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
289 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
267 | exit ;; |
290 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
|
|
291 | exitcode=$? |
|
|
292 | trap '' 0 |
|
|
293 | exit $exitcode ;; |
268 | Alpha\ *:Windows_NT*:*) |
294 | Alpha\ *:Windows_NT*:*) |
269 | # How do we know it's Interix rather than the generic POSIX subsystem? |
295 | # How do we know it's Interix rather than the generic POSIX subsystem? |
270 | # Should we change UNAME_MACHINE based on the output of uname instead |
296 | # Should we change UNAME_MACHINE based on the output of uname instead |
271 | # of the specific Alpha model? |
297 | # of the specific Alpha model? |
272 | echo alpha-pc-interix |
298 | echo alpha-pc-interix |
… | |
… | |
288 | exit ;; |
314 | exit ;; |
289 | *:z/VM:*:*) |
315 | *:z/VM:*:*) |
290 | echo s390-ibm-zvmoe |
316 | echo s390-ibm-zvmoe |
291 | exit ;; |
317 | exit ;; |
292 | *:OS400:*:*) |
318 | *:OS400:*:*) |
293 | echo powerpc-ibm-os400 |
319 | echo powerpc-ibm-os400 |
294 | exit ;; |
320 | exit ;; |
295 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
321 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
296 | echo arm-acorn-riscix${UNAME_RELEASE} |
322 | echo arm-acorn-riscix${UNAME_RELEASE} |
297 | exit ;; |
323 | exit ;; |
298 | arm:riscos:*:*|arm:RISCOS:*:*) |
324 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
299 | echo arm-unknown-riscos |
325 | echo arm-unknown-riscos |
300 | exit ;; |
326 | exit ;; |
301 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
327 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
302 | echo hppa1.1-hitachi-hiuxmpp |
328 | echo hppa1.1-hitachi-hiuxmpp |
303 | exit ;; |
329 | exit ;; |
… | |
… | |
317 | exit ;; |
343 | exit ;; |
318 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
344 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) |
319 | case `/usr/bin/uname -p` in |
345 | case `/usr/bin/uname -p` in |
320 | sparc) echo sparc-icl-nx7; exit ;; |
346 | sparc) echo sparc-icl-nx7; exit ;; |
321 | esac ;; |
347 | esac ;; |
|
|
348 | s390x:SunOS:*:*) |
|
|
349 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
|
|
350 | exit ;; |
322 | sun4H:SunOS:5.*:*) |
351 | sun4H:SunOS:5.*:*) |
323 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
352 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
324 | exit ;; |
353 | exit ;; |
325 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
354 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
326 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
355 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
327 | exit ;; |
356 | exit ;; |
328 | i86pc:SunOS:5.*:*) |
357 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
|
|
358 | echo i386-pc-auroraux${UNAME_RELEASE} |
|
|
359 | exit ;; |
|
|
360 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
|
|
361 | eval $set_cc_for_build |
|
|
362 | SUN_ARCH="i386" |
|
|
363 | # If there is a compiler, see if it is configured for 64-bit objects. |
|
|
364 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
|
|
365 | # This test works for both compilers. |
|
|
366 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
|
|
367 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
|
|
368 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
|
|
369 | grep IS_64BIT_ARCH >/dev/null |
|
|
370 | then |
|
|
371 | SUN_ARCH="x86_64" |
|
|
372 | fi |
|
|
373 | fi |
329 | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
374 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
330 | exit ;; |
375 | exit ;; |
331 | sun4*:SunOS:6*:*) |
376 | sun4*:SunOS:6*:*) |
332 | # According to config.sub, this is the proper way to canonicalize |
377 | # According to config.sub, this is the proper way to canonicalize |
333 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
378 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
334 | # it's likely to be more like Solaris than SunOS4. |
379 | # it's likely to be more like Solaris than SunOS4. |
… | |
… | |
368 | # to the lowercase version "mint" (or "freemint"). Finally |
413 | # to the lowercase version "mint" (or "freemint"). Finally |
369 | # the system name "TOS" denotes a system which is actually not |
414 | # the system name "TOS" denotes a system which is actually not |
370 | # MiNT. But MiNT is downward compatible to TOS, so this should |
415 | # MiNT. But MiNT is downward compatible to TOS, so this should |
371 | # be no problem. |
416 | # be no problem. |
372 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
417 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
373 | echo m68k-atari-mint${UNAME_RELEASE} |
418 | echo m68k-atari-mint${UNAME_RELEASE} |
374 | exit ;; |
419 | exit ;; |
375 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
420 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
376 | echo m68k-atari-mint${UNAME_RELEASE} |
421 | echo m68k-atari-mint${UNAME_RELEASE} |
377 | exit ;; |
422 | exit ;; |
378 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
423 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
379 | echo m68k-atari-mint${UNAME_RELEASE} |
424 | echo m68k-atari-mint${UNAME_RELEASE} |
380 | exit ;; |
425 | exit ;; |
381 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
426 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
382 | echo m68k-milan-mint${UNAME_RELEASE} |
427 | echo m68k-milan-mint${UNAME_RELEASE} |
383 | exit ;; |
428 | exit ;; |
384 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
429 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
385 | echo m68k-hades-mint${UNAME_RELEASE} |
430 | echo m68k-hades-mint${UNAME_RELEASE} |
386 | exit ;; |
431 | exit ;; |
387 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
432 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
388 | echo m68k-unknown-mint${UNAME_RELEASE} |
433 | echo m68k-unknown-mint${UNAME_RELEASE} |
389 | exit ;; |
434 | exit ;; |
390 | m68k:machten:*:*) |
435 | m68k:machten:*:*) |
391 | echo m68k-apple-machten${UNAME_RELEASE} |
436 | echo m68k-apple-machten${UNAME_RELEASE} |
392 | exit ;; |
437 | exit ;; |
393 | powerpc:machten:*:*) |
438 | powerpc:machten:*:*) |
394 | echo powerpc-apple-machten${UNAME_RELEASE} |
439 | echo powerpc-apple-machten${UNAME_RELEASE} |
… | |
… | |
454 | exit ;; |
499 | exit ;; |
455 | m88k:*:3*:R3*) |
500 | m88k:*:3*:R3*) |
456 | echo m88k-motorola-sysv3 |
501 | echo m88k-motorola-sysv3 |
457 | exit ;; |
502 | exit ;; |
458 | AViiON:dgux:*:*) |
503 | AViiON:dgux:*:*) |
459 | # DG/UX returns AViiON for all architectures |
504 | # DG/UX returns AViiON for all architectures |
460 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
505 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
461 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
506 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
462 | then |
507 | then |
463 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
508 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
464 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
509 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
465 | then |
510 | then |
… | |
… | |
468 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
513 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
469 | fi |
514 | fi |
470 | else |
515 | else |
471 | echo i586-dg-dgux${UNAME_RELEASE} |
516 | echo i586-dg-dgux${UNAME_RELEASE} |
472 | fi |
517 | fi |
473 | exit ;; |
518 | exit ;; |
474 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
519 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
475 | echo m88k-dolphin-sysv3 |
520 | echo m88k-dolphin-sysv3 |
476 | exit ;; |
521 | exit ;; |
477 | M88*:*:R3*:*) |
522 | M88*:*:R3*:*) |
478 | # Delta 88k system running SVR3 |
523 | # Delta 88k system running SVR3 |
… | |
… | |
525 | echo rs6000-ibm-aix3.2.4 |
570 | echo rs6000-ibm-aix3.2.4 |
526 | else |
571 | else |
527 | echo rs6000-ibm-aix3.2 |
572 | echo rs6000-ibm-aix3.2 |
528 | fi |
573 | fi |
529 | exit ;; |
574 | exit ;; |
530 | *:AIX:*:[45]) |
575 | *:AIX:*:[4567]) |
531 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
576 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
532 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
577 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
533 | IBM_ARCH=rs6000 |
578 | IBM_ARCH=rs6000 |
534 | else |
579 | else |
535 | IBM_ARCH=powerpc |
580 | IBM_ARCH=powerpc |
… | |
… | |
568 | 9000/31? ) HP_ARCH=m68000 ;; |
613 | 9000/31? ) HP_ARCH=m68000 ;; |
569 | 9000/[34]?? ) HP_ARCH=m68k ;; |
614 | 9000/[34]?? ) HP_ARCH=m68k ;; |
570 | 9000/[678][0-9][0-9]) |
615 | 9000/[678][0-9][0-9]) |
571 | if [ -x /usr/bin/getconf ]; then |
616 | if [ -x /usr/bin/getconf ]; then |
572 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
617 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
573 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
618 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
574 | case "${sc_cpu_version}" in |
619 | case "${sc_cpu_version}" in |
575 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
620 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
576 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
621 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
577 | 532) # CPU_PA_RISC2_0 |
622 | 532) # CPU_PA_RISC2_0 |
578 | case "${sc_kernel_bits}" in |
623 | case "${sc_kernel_bits}" in |
579 | 32) HP_ARCH="hppa2.0n" ;; |
624 | 32) HP_ARCH="hppa2.0n" ;; |
580 | 64) HP_ARCH="hppa2.0w" ;; |
625 | 64) HP_ARCH="hppa2.0w" ;; |
581 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
626 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
582 | esac ;; |
627 | esac ;; |
583 | esac |
628 | esac |
584 | fi |
629 | fi |
585 | if [ "${HP_ARCH}" = "" ]; then |
630 | if [ "${HP_ARCH}" = "" ]; then |
586 | eval $set_cc_for_build |
631 | eval $set_cc_for_build |
587 | sed 's/^ //' << EOF >$dummy.c |
632 | sed 's/^ //' << EOF >$dummy.c |
588 | |
633 | |
589 | #define _HPUX_SOURCE |
634 | #define _HPUX_SOURCE |
590 | #include <stdlib.h> |
635 | #include <stdlib.h> |
591 | #include <unistd.h> |
636 | #include <unistd.h> |
592 | |
637 | |
593 | int main () |
638 | int main () |
594 | { |
639 | { |
595 | #if defined(_SC_KERNEL_BITS) |
640 | #if defined(_SC_KERNEL_BITS) |
596 | long bits = sysconf(_SC_KERNEL_BITS); |
641 | long bits = sysconf(_SC_KERNEL_BITS); |
597 | #endif |
642 | #endif |
598 | long cpu = sysconf (_SC_CPU_VERSION); |
643 | long cpu = sysconf (_SC_CPU_VERSION); |
599 | |
644 | |
600 | switch (cpu) |
645 | switch (cpu) |
601 | { |
646 | { |
602 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
647 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
603 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
648 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
604 | case CPU_PA_RISC2_0: |
649 | case CPU_PA_RISC2_0: |
605 | #if defined(_SC_KERNEL_BITS) |
650 | #if defined(_SC_KERNEL_BITS) |
606 | switch (bits) |
651 | switch (bits) |
607 | { |
652 | { |
608 | case 64: puts ("hppa2.0w"); break; |
653 | case 64: puts ("hppa2.0w"); break; |
609 | case 32: puts ("hppa2.0n"); break; |
654 | case 32: puts ("hppa2.0n"); break; |
610 | default: puts ("hppa2.0"); break; |
655 | default: puts ("hppa2.0"); break; |
611 | } break; |
656 | } break; |
612 | #else /* !defined(_SC_KERNEL_BITS) */ |
657 | #else /* !defined(_SC_KERNEL_BITS) */ |
613 | puts ("hppa2.0"); break; |
658 | puts ("hppa2.0"); break; |
614 | #endif |
659 | #endif |
615 | default: puts ("hppa1.0"); break; |
660 | default: puts ("hppa1.0"); break; |
616 | } |
661 | } |
617 | exit (0); |
662 | exit (0); |
618 | } |
663 | } |
619 | EOF |
664 | EOF |
620 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
665 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
621 | test -z "$HP_ARCH" && HP_ARCH=hppa |
666 | test -z "$HP_ARCH" && HP_ARCH=hppa |
622 | fi ;; |
667 | fi ;; |
623 | esac |
668 | esac |
… | |
… | |
633 | # => hppa2.0w-hp-hpux11.23 |
678 | # => hppa2.0w-hp-hpux11.23 |
634 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
679 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
635 | # => hppa64-hp-hpux11.23 |
680 | # => hppa64-hp-hpux11.23 |
636 | |
681 | |
637 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
682 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
638 | grep __LP64__ >/dev/null |
683 | grep -q __LP64__ |
639 | then |
684 | then |
640 | HP_ARCH="hppa2.0w" |
685 | HP_ARCH="hppa2.0w" |
641 | else |
686 | else |
642 | HP_ARCH="hppa64" |
687 | HP_ARCH="hppa64" |
643 | fi |
688 | fi |
… | |
… | |
704 | parisc*:Lites*:*:*) |
749 | parisc*:Lites*:*:*) |
705 | echo hppa1.1-hp-lites |
750 | echo hppa1.1-hp-lites |
706 | exit ;; |
751 | exit ;; |
707 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
752 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
708 | echo c1-convex-bsd |
753 | echo c1-convex-bsd |
709 | exit ;; |
754 | exit ;; |
710 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
755 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
711 | if getsysinfo -f scalar_acc |
756 | if getsysinfo -f scalar_acc |
712 | then echo c32-convex-bsd |
757 | then echo c32-convex-bsd |
713 | else echo c2-convex-bsd |
758 | else echo c2-convex-bsd |
714 | fi |
759 | fi |
715 | exit ;; |
760 | exit ;; |
716 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
761 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
717 | echo c34-convex-bsd |
762 | echo c34-convex-bsd |
718 | exit ;; |
763 | exit ;; |
719 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
764 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
720 | echo c38-convex-bsd |
765 | echo c38-convex-bsd |
721 | exit ;; |
766 | exit ;; |
722 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
767 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
723 | echo c4-convex-bsd |
768 | echo c4-convex-bsd |
724 | exit ;; |
769 | exit ;; |
725 | CRAY*Y-MP:*:*:*) |
770 | CRAY*Y-MP:*:*:*) |
726 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
771 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
727 | exit ;; |
772 | exit ;; |
728 | CRAY*[A-Z]90:*:*:*) |
773 | CRAY*[A-Z]90:*:*:*) |
729 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
774 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
… | |
… | |
743 | *:UNICOS/mp:*:*) |
788 | *:UNICOS/mp:*:*) |
744 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
789 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
745 | exit ;; |
790 | exit ;; |
746 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
791 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
747 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
792 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
748 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
793 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
749 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
794 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
750 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
795 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
751 | exit ;; |
796 | exit ;; |
752 | 5000:UNIX_System_V:4.*:*) |
797 | 5000:UNIX_System_V:4.*:*) |
753 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
798 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
754 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
799 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
755 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
800 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
756 | exit ;; |
801 | exit ;; |
757 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
802 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
758 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
803 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
759 | exit ;; |
804 | exit ;; |
760 | sparc*:BSD/OS:*:*) |
805 | sparc*:BSD/OS:*:*) |
… | |
… | |
762 | exit ;; |
807 | exit ;; |
763 | *:BSD/OS:*:*) |
808 | *:BSD/OS:*:*) |
764 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
809 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
765 | exit ;; |
810 | exit ;; |
766 | *:FreeBSD:*:*) |
811 | *:FreeBSD:*:*) |
|
|
812 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
|
|
813 | case ${UNAME_PROCESSOR} in |
|
|
814 | amd64) |
|
|
815 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
|
|
816 | *) |
767 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
817 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
|
|
818 | esac |
768 | exit ;; |
819 | exit ;; |
769 | i*:CYGWIN*:*) |
820 | i*:CYGWIN*:*) |
770 | echo ${UNAME_MACHINE}-pc-cygwin |
821 | echo ${UNAME_MACHINE}-pc-cygwin |
771 | exit ;; |
822 | exit ;; |
|
|
823 | *:MINGW64*:*) |
|
|
824 | echo ${UNAME_MACHINE}-pc-mingw64 |
|
|
825 | exit ;; |
772 | i*:MINGW*:*) |
826 | *:MINGW*:*) |
773 | echo ${UNAME_MACHINE}-pc-mingw32 |
827 | echo ${UNAME_MACHINE}-pc-mingw32 |
774 | exit ;; |
828 | exit ;; |
|
|
829 | *:MSYS*:*) |
|
|
830 | echo ${UNAME_MACHINE}-pc-msys |
|
|
831 | exit ;; |
775 | i*:windows32*:*) |
832 | i*:windows32*:*) |
776 | # uname -m includes "-pc" on this system. |
833 | # uname -m includes "-pc" on this system. |
777 | echo ${UNAME_MACHINE}-mingw32 |
834 | echo ${UNAME_MACHINE}-mingw32 |
778 | exit ;; |
835 | exit ;; |
779 | i*:PW*:*) |
836 | i*:PW*:*) |
780 | echo ${UNAME_MACHINE}-pc-pw32 |
837 | echo ${UNAME_MACHINE}-pc-pw32 |
781 | exit ;; |
838 | exit ;; |
782 | x86:Interix*:[34]*) |
839 | *:Interix*:*) |
|
|
840 | case ${UNAME_MACHINE} in |
|
|
841 | x86) |
783 | echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' |
842 | echo i586-pc-interix${UNAME_RELEASE} |
784 | exit ;; |
843 | exit ;; |
|
|
844 | authenticamd | genuineintel | EM64T) |
|
|
845 | echo x86_64-unknown-interix${UNAME_RELEASE} |
|
|
846 | exit ;; |
|
|
847 | IA64) |
|
|
848 | echo ia64-unknown-interix${UNAME_RELEASE} |
|
|
849 | exit ;; |
|
|
850 | esac ;; |
785 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
851 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
786 | echo i${UNAME_MACHINE}-pc-mks |
852 | echo i${UNAME_MACHINE}-pc-mks |
|
|
853 | exit ;; |
|
|
854 | 8664:Windows_NT:*) |
|
|
855 | echo x86_64-pc-mks |
787 | exit ;; |
856 | exit ;; |
788 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
857 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
789 | # How do we know it's Interix rather than the generic POSIX subsystem? |
858 | # How do we know it's Interix rather than the generic POSIX subsystem? |
790 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
859 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
791 | # UNAME_MACHINE based on the output of uname instead of i386? |
860 | # UNAME_MACHINE based on the output of uname instead of i386? |
… | |
… | |
803 | prep*:SunOS:5.*:*) |
872 | prep*:SunOS:5.*:*) |
804 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
873 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
805 | exit ;; |
874 | exit ;; |
806 | *:GNU:*:*) |
875 | *:GNU:*:*) |
807 | # the GNU system |
876 | # the GNU system |
808 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
877 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
809 | exit ;; |
878 | exit ;; |
810 | *:GNU/*:*:*) |
879 | *:GNU/*:*:*) |
811 | # other systems with GNU libc and userland |
880 | # other systems with GNU libc and userland |
812 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
881 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
813 | exit ;; |
882 | exit ;; |
814 | i*86:Minix:*:*) |
883 | i*86:Minix:*:*) |
815 | echo ${UNAME_MACHINE}-pc-minix |
884 | echo ${UNAME_MACHINE}-pc-minix |
816 | exit ;; |
885 | exit ;; |
817 | arm*:Linux:*:*) |
886 | aarch64:Linux:*:*) |
818 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
887 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
819 | exit ;; |
888 | exit ;; |
820 | cris:Linux:*:*) |
|
|
821 | echo cris-axis-linux-gnu |
|
|
822 | exit ;; |
|
|
823 | crisv32:Linux:*:*) |
|
|
824 | echo crisv32-axis-linux-gnu |
|
|
825 | exit ;; |
|
|
826 | frv:Linux:*:*) |
|
|
827 | echo frv-unknown-linux-gnu |
|
|
828 | exit ;; |
|
|
829 | ia64:Linux:*:*) |
889 | aarch64_be:Linux:*:*) |
|
|
890 | UNAME_MACHINE=aarch64_be |
830 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
891 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
831 | exit ;; |
|
|
832 | m32r*:Linux:*:*) |
|
|
833 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
834 | exit ;; |
|
|
835 | m68*:Linux:*:*) |
|
|
836 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
837 | exit ;; |
|
|
838 | mips:Linux:*:*) |
|
|
839 | eval $set_cc_for_build |
|
|
840 | sed 's/^ //' << EOF >$dummy.c |
|
|
841 | #undef CPU |
|
|
842 | #undef mips |
|
|
843 | #undef mipsel |
|
|
844 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
845 | CPU=mipsel |
|
|
846 | #else |
|
|
847 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
848 | CPU=mips |
|
|
849 | #else |
|
|
850 | CPU= |
|
|
851 | #endif |
|
|
852 | #endif |
|
|
853 | EOF |
|
|
854 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
|
|
855 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
|
|
856 | ;; |
|
|
857 | mips64:Linux:*:*) |
|
|
858 | eval $set_cc_for_build |
|
|
859 | sed 's/^ //' << EOF >$dummy.c |
|
|
860 | #undef CPU |
|
|
861 | #undef mips64 |
|
|
862 | #undef mips64el |
|
|
863 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
864 | CPU=mips64el |
|
|
865 | #else |
|
|
866 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
867 | CPU=mips64 |
|
|
868 | #else |
|
|
869 | CPU= |
|
|
870 | #endif |
|
|
871 | #endif |
|
|
872 | EOF |
|
|
873 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
|
|
874 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
|
|
875 | ;; |
|
|
876 | or32:Linux:*:*) |
|
|
877 | echo or32-unknown-linux-gnu |
|
|
878 | exit ;; |
|
|
879 | ppc:Linux:*:*) |
|
|
880 | echo powerpc-unknown-linux-gnu |
|
|
881 | exit ;; |
|
|
882 | ppc64:Linux:*:*) |
|
|
883 | echo powerpc64-unknown-linux-gnu |
|
|
884 | exit ;; |
892 | exit ;; |
885 | alpha:Linux:*:*) |
893 | alpha:Linux:*:*) |
886 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
894 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
887 | EV5) UNAME_MACHINE=alphaev5 ;; |
895 | EV5) UNAME_MACHINE=alphaev5 ;; |
888 | EV56) UNAME_MACHINE=alphaev56 ;; |
896 | EV56) UNAME_MACHINE=alphaev56 ;; |
889 | PCA56) UNAME_MACHINE=alphapca56 ;; |
897 | PCA56) UNAME_MACHINE=alphapca56 ;; |
890 | PCA57) UNAME_MACHINE=alphapca56 ;; |
898 | PCA57) UNAME_MACHINE=alphapca56 ;; |
891 | EV6) UNAME_MACHINE=alphaev6 ;; |
899 | EV6) UNAME_MACHINE=alphaev6 ;; |
892 | EV67) UNAME_MACHINE=alphaev67 ;; |
900 | EV67) UNAME_MACHINE=alphaev67 ;; |
893 | EV68*) UNAME_MACHINE=alphaev68 ;; |
901 | EV68*) UNAME_MACHINE=alphaev68 ;; |
894 | esac |
902 | esac |
895 | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
903 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
896 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
904 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
897 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
905 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
906 | exit ;; |
|
|
907 | arc:Linux:*:* | arceb:Linux:*:*) |
|
|
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
909 | exit ;; |
|
|
910 | arm*:Linux:*:*) |
|
|
911 | eval $set_cc_for_build |
|
|
912 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
|
|
913 | | grep -q __ARM_EABI__ |
|
|
914 | then |
|
|
915 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
916 | else |
|
|
917 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
|
|
918 | | grep -q __ARM_PCS_VFP |
|
|
919 | then |
|
|
920 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
|
|
921 | else |
|
|
922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
|
|
923 | fi |
|
|
924 | fi |
|
|
925 | exit ;; |
|
|
926 | avr32*:Linux:*:*) |
|
|
927 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
928 | exit ;; |
|
|
929 | cris:Linux:*:*) |
|
|
930 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
|
|
931 | exit ;; |
|
|
932 | crisv32:Linux:*:*) |
|
|
933 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
|
|
934 | exit ;; |
|
|
935 | frv:Linux:*:*) |
|
|
936 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
937 | exit ;; |
|
|
938 | hexagon:Linux:*:*) |
|
|
939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
940 | exit ;; |
|
|
941 | i*86:Linux:*:*) |
|
|
942 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
|
|
943 | exit ;; |
|
|
944 | ia64:Linux:*:*) |
|
|
945 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
946 | exit ;; |
|
|
947 | m32r*:Linux:*:*) |
|
|
948 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
949 | exit ;; |
|
|
950 | m68*:Linux:*:*) |
|
|
951 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
952 | exit ;; |
|
|
953 | mips:Linux:*:* | mips64:Linux:*:*) |
|
|
954 | eval $set_cc_for_build |
|
|
955 | sed 's/^ //' << EOF >$dummy.c |
|
|
956 | #undef CPU |
|
|
957 | #undef ${UNAME_MACHINE} |
|
|
958 | #undef ${UNAME_MACHINE}el |
|
|
959 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
|
|
960 | CPU=${UNAME_MACHINE}el |
|
|
961 | #else |
|
|
962 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
|
|
963 | CPU=${UNAME_MACHINE} |
|
|
964 | #else |
|
|
965 | CPU= |
|
|
966 | #endif |
|
|
967 | #endif |
|
|
968 | EOF |
|
|
969 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
|
|
970 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
|
|
971 | ;; |
|
|
972 | openrisc*:Linux:*:*) |
|
|
973 | echo or1k-unknown-linux-${LIBC} |
|
|
974 | exit ;; |
|
|
975 | or32:Linux:*:* | or1k*:Linux:*:*) |
|
|
976 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
977 | exit ;; |
|
|
978 | padre:Linux:*:*) |
|
|
979 | echo sparc-unknown-linux-${LIBC} |
|
|
980 | exit ;; |
|
|
981 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
|
|
982 | echo hppa64-unknown-linux-${LIBC} |
898 | exit ;; |
983 | exit ;; |
899 | parisc:Linux:*:* | hppa:Linux:*:*) |
984 | parisc:Linux:*:* | hppa:Linux:*:*) |
900 | # Look for CPU level |
985 | # Look for CPU level |
901 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
986 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
902 | PA7*) echo hppa1.1-unknown-linux-gnu ;; |
987 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
903 | PA8*) echo hppa2.0-unknown-linux-gnu ;; |
988 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
904 | *) echo hppa-unknown-linux-gnu ;; |
989 | *) echo hppa-unknown-linux-${LIBC} ;; |
905 | esac |
990 | esac |
906 | exit ;; |
991 | exit ;; |
907 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
992 | ppc64:Linux:*:*) |
908 | echo hppa64-unknown-linux-gnu |
993 | echo powerpc64-unknown-linux-${LIBC} |
|
|
994 | exit ;; |
|
|
995 | ppc:Linux:*:*) |
|
|
996 | echo powerpc-unknown-linux-${LIBC} |
|
|
997 | exit ;; |
|
|
998 | ppc64le:Linux:*:*) |
|
|
999 | echo powerpc64le-unknown-linux-${LIBC} |
|
|
1000 | exit ;; |
|
|
1001 | ppcle:Linux:*:*) |
|
|
1002 | echo powerpcle-unknown-linux-${LIBC} |
909 | exit ;; |
1003 | exit ;; |
910 | s390:Linux:*:* | s390x:Linux:*:*) |
1004 | s390:Linux:*:* | s390x:Linux:*:*) |
911 | echo ${UNAME_MACHINE}-ibm-linux |
1005 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
912 | exit ;; |
1006 | exit ;; |
913 | sh64*:Linux:*:*) |
1007 | sh64*:Linux:*:*) |
914 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
1008 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
915 | exit ;; |
1009 | exit ;; |
916 | sh*:Linux:*:*) |
1010 | sh*:Linux:*:*) |
917 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
1011 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
918 | exit ;; |
1012 | exit ;; |
919 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1013 | sparc:Linux:*:* | sparc64:Linux:*:*) |
920 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
1014 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
1015 | exit ;; |
|
|
1016 | tile*:Linux:*:*) |
|
|
1017 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
|
|
1018 | exit ;; |
|
|
1019 | vax:Linux:*:*) |
|
|
1020 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
921 | exit ;; |
1021 | exit ;; |
922 | x86_64:Linux:*:*) |
1022 | x86_64:Linux:*:*) |
923 | echo x86_64-unknown-linux-gnu |
1023 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
924 | exit ;; |
|
|
925 | i*86:Linux:*:*) |
|
|
926 | # The BFD linker knows what the default object file format is, so |
|
|
927 | # first see if it will tell us. cd to the root directory to prevent |
|
|
928 | # problems with other programs or directories called `ld' in the path. |
|
|
929 | # Set LC_ALL=C to ensure ld outputs messages in English. |
|
|
930 | ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
|
|
931 | | sed -ne '/supported targets:/!d |
|
|
932 | s/[ ][ ]*/ /g |
|
|
933 | s/.*supported targets: *// |
|
|
934 | s/ .*// |
|
|
935 | p'` |
|
|
936 | case "$ld_supported_targets" in |
|
|
937 | elf32-i386) |
|
|
938 | TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
|
|
939 | ;; |
|
|
940 | a.out-i386-linux) |
|
|
941 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
|
|
942 | exit ;; |
1024 | exit ;; |
943 | coff-i386) |
1025 | xtensa*:Linux:*:*) |
944 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
1026 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
945 | exit ;; |
1027 | exit ;; |
946 | "") |
|
|
947 | # Either a pre-BFD a.out linker (linux-gnuoldld) or |
|
|
948 | # one that does not give us useful --help. |
|
|
949 | echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
|
|
950 | exit ;; |
|
|
951 | esac |
|
|
952 | # Determine whether the default compiler is a.out or elf |
|
|
953 | eval $set_cc_for_build |
|
|
954 | sed 's/^ //' << EOF >$dummy.c |
|
|
955 | #include <features.h> |
|
|
956 | #ifdef __ELF__ |
|
|
957 | # ifdef __GLIBC__ |
|
|
958 | # if __GLIBC__ >= 2 |
|
|
959 | LIBC=gnu |
|
|
960 | # else |
|
|
961 | LIBC=gnulibc1 |
|
|
962 | # endif |
|
|
963 | # else |
|
|
964 | LIBC=gnulibc1 |
|
|
965 | # endif |
|
|
966 | #else |
|
|
967 | #ifdef __INTEL_COMPILER |
|
|
968 | LIBC=gnu |
|
|
969 | #else |
|
|
970 | LIBC=gnuaout |
|
|
971 | #endif |
|
|
972 | #endif |
|
|
973 | #ifdef __dietlibc__ |
|
|
974 | LIBC=dietlibc |
|
|
975 | #endif |
|
|
976 | EOF |
|
|
977 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
|
|
978 | test x"${LIBC}" != x && { |
|
|
979 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
|
|
980 | exit |
|
|
981 | } |
|
|
982 | test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } |
|
|
983 | ;; |
|
|
984 | i*86:DYNIX/ptx:4*:*) |
1028 | i*86:DYNIX/ptx:4*:*) |
985 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1029 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
986 | # earlier versions are messed up and put the nodename in both |
1030 | # earlier versions are messed up and put the nodename in both |
987 | # sysname and nodename. |
1031 | # sysname and nodename. |
988 | echo i386-sequent-sysv4 |
1032 | echo i386-sequent-sysv4 |
989 | exit ;; |
1033 | exit ;; |
990 | i*86:UNIX_SV:4.2MP:2.*) |
1034 | i*86:UNIX_SV:4.2MP:2.*) |
991 | # Unixware is an offshoot of SVR4, but it has its own version |
1035 | # Unixware is an offshoot of SVR4, but it has its own version |
992 | # number series starting with 2... |
1036 | # number series starting with 2... |
993 | # I am not positive that other SVR4 systems won't match this, |
1037 | # I am not positive that other SVR4 systems won't match this, |
994 | # I just have to hope. -- rms. |
1038 | # I just have to hope. -- rms. |
995 | # Use sysv4.2uw... so that sysv4* matches it. |
1039 | # Use sysv4.2uw... so that sysv4* matches it. |
996 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
1040 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
997 | exit ;; |
1041 | exit ;; |
998 | i*86:OS/2:*:*) |
1042 | i*86:OS/2:*:*) |
999 | # If we were able to find `uname', then EMX Unix compatibility |
1043 | # If we were able to find `uname', then EMX Unix compatibility |
1000 | # is probably installed. |
1044 | # is probably installed. |
… | |
… | |
1007 | echo ${UNAME_MACHINE}-unknown-atheos |
1051 | echo ${UNAME_MACHINE}-unknown-atheos |
1008 | exit ;; |
1052 | exit ;; |
1009 | i*86:syllable:*:*) |
1053 | i*86:syllable:*:*) |
1010 | echo ${UNAME_MACHINE}-pc-syllable |
1054 | echo ${UNAME_MACHINE}-pc-syllable |
1011 | exit ;; |
1055 | exit ;; |
1012 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) |
1056 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1013 | echo i386-unknown-lynxos${UNAME_RELEASE} |
1057 | echo i386-unknown-lynxos${UNAME_RELEASE} |
1014 | exit ;; |
1058 | exit ;; |
1015 | i*86:*DOS:*:*) |
1059 | i*86:*DOS:*:*) |
1016 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1060 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1017 | exit ;; |
1061 | exit ;; |
… | |
… | |
1022 | else |
1066 | else |
1023 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1067 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
1024 | fi |
1068 | fi |
1025 | exit ;; |
1069 | exit ;; |
1026 | i*86:*:5:[678]*) |
1070 | i*86:*:5:[678]*) |
1027 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1071 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
1028 | case `/bin/uname -X | grep "^Machine"` in |
1072 | case `/bin/uname -X | grep "^Machine"` in |
1029 | *486*) UNAME_MACHINE=i486 ;; |
1073 | *486*) UNAME_MACHINE=i486 ;; |
1030 | *Pentium) UNAME_MACHINE=i586 ;; |
1074 | *Pentium) UNAME_MACHINE=i586 ;; |
1031 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1075 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1032 | esac |
1076 | esac |
… | |
… | |
1050 | echo ${UNAME_MACHINE}-pc-sysv32 |
1094 | echo ${UNAME_MACHINE}-pc-sysv32 |
1051 | fi |
1095 | fi |
1052 | exit ;; |
1096 | exit ;; |
1053 | pc:*:*:*) |
1097 | pc:*:*:*) |
1054 | # Left here for compatibility: |
1098 | # Left here for compatibility: |
1055 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1099 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1056 | # the processor, so we play safe by assuming i386. |
1100 | # the processor, so we play safe by assuming i586. |
|
|
1101 | # Note: whatever this is, it MUST be the same as what config.sub |
|
|
1102 | # prints for the "djgpp" host, or else GDB configury will decide that |
|
|
1103 | # this is a cross-build. |
1057 | echo i386-pc-msdosdjgpp |
1104 | echo i586-pc-msdosdjgpp |
1058 | exit ;; |
1105 | exit ;; |
1059 | Intel:Mach:3*:*) |
1106 | Intel:Mach:3*:*) |
1060 | echo i386-pc-mach3 |
1107 | echo i386-pc-mach3 |
1061 | exit ;; |
1108 | exit ;; |
1062 | paragon:*:*:*) |
1109 | paragon:*:*:*) |
1063 | echo i860-intel-osf1 |
1110 | echo i860-intel-osf1 |
… | |
… | |
1088 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1135 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1089 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1136 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1090 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1137 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1091 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1138 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1092 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1139 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1093 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1140 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1094 | && { echo i486-ncr-sysv4; exit; } ;; |
1141 | && { echo i486-ncr-sysv4; exit; } ;; |
|
|
1142 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
|
|
1143 | OS_REL='.3' |
|
|
1144 | test -r /etc/.relid \ |
|
|
1145 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
|
|
1146 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
|
|
1147 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
|
|
1148 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
|
|
1149 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
|
|
1150 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
|
|
1151 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1095 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1152 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1096 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1153 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1097 | exit ;; |
1154 | exit ;; |
1098 | mc68030:UNIX_System_V:4.*:*) |
1155 | mc68030:UNIX_System_V:4.*:*) |
1099 | echo m68k-atari-sysv4 |
1156 | echo m68k-atari-sysv4 |
… | |
… | |
1102 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1159 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1103 | exit ;; |
1160 | exit ;; |
1104 | rs6000:LynxOS:2.*:*) |
1161 | rs6000:LynxOS:2.*:*) |
1105 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1162 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1106 | exit ;; |
1163 | exit ;; |
1107 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) |
1164 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1108 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1165 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1109 | exit ;; |
1166 | exit ;; |
1110 | SM[BE]S:UNIX_SV:*:*) |
1167 | SM[BE]S:UNIX_SV:*:*) |
1111 | echo mips-dde-sysv${UNAME_RELEASE} |
1168 | echo mips-dde-sysv${UNAME_RELEASE} |
1112 | exit ;; |
1169 | exit ;; |
… | |
… | |
1122 | echo ${UNAME_MACHINE}-sni-sysv4 |
1179 | echo ${UNAME_MACHINE}-sni-sysv4 |
1123 | else |
1180 | else |
1124 | echo ns32k-sni-sysv |
1181 | echo ns32k-sni-sysv |
1125 | fi |
1182 | fi |
1126 | exit ;; |
1183 | exit ;; |
1127 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1184 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1128 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
1185 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
1129 | echo i586-unisys-sysv4 |
1186 | echo i586-unisys-sysv4 |
1130 | exit ;; |
1187 | exit ;; |
1131 | *:UNIX_System_V:4*:FTX*) |
1188 | *:UNIX_System_V:4*:FTX*) |
1132 | # From Gerald Hewes <hewes@openmarket.com>. |
1189 | # From Gerald Hewes <hewes@openmarket.com>. |
1133 | # How about differentiating between stratus architectures? -djm |
1190 | # How about differentiating between stratus architectures? -djm |
1134 | echo hppa1.1-stratus-sysv4 |
1191 | echo hppa1.1-stratus-sysv4 |
1135 | exit ;; |
1192 | exit ;; |
… | |
… | |
1151 | news*:NEWS-OS:6*:*) |
1208 | news*:NEWS-OS:6*:*) |
1152 | echo mips-sony-newsos6 |
1209 | echo mips-sony-newsos6 |
1153 | exit ;; |
1210 | exit ;; |
1154 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1211 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1155 | if [ -d /usr/nec ]; then |
1212 | if [ -d /usr/nec ]; then |
1156 | echo mips-nec-sysv${UNAME_RELEASE} |
1213 | echo mips-nec-sysv${UNAME_RELEASE} |
1157 | else |
1214 | else |
1158 | echo mips-unknown-sysv${UNAME_RELEASE} |
1215 | echo mips-unknown-sysv${UNAME_RELEASE} |
1159 | fi |
1216 | fi |
1160 | exit ;; |
1217 | exit ;; |
1161 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1218 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1162 | echo powerpc-be-beos |
1219 | echo powerpc-be-beos |
1163 | exit ;; |
1220 | exit ;; |
1164 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1221 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1165 | echo powerpc-apple-beos |
1222 | echo powerpc-apple-beos |
1166 | exit ;; |
1223 | exit ;; |
1167 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1224 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1168 | echo i586-pc-beos |
1225 | echo i586-pc-beos |
1169 | exit ;; |
1226 | exit ;; |
|
|
1227 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
|
|
1228 | echo i586-pc-haiku |
|
|
1229 | exit ;; |
|
|
1230 | x86_64:Haiku:*:*) |
|
|
1231 | echo x86_64-unknown-haiku |
|
|
1232 | exit ;; |
1170 | SX-4:SUPER-UX:*:*) |
1233 | SX-4:SUPER-UX:*:*) |
1171 | echo sx4-nec-superux${UNAME_RELEASE} |
1234 | echo sx4-nec-superux${UNAME_RELEASE} |
1172 | exit ;; |
1235 | exit ;; |
1173 | SX-5:SUPER-UX:*:*) |
1236 | SX-5:SUPER-UX:*:*) |
1174 | echo sx5-nec-superux${UNAME_RELEASE} |
1237 | echo sx5-nec-superux${UNAME_RELEASE} |
1175 | exit ;; |
1238 | exit ;; |
1176 | SX-6:SUPER-UX:*:*) |
1239 | SX-6:SUPER-UX:*:*) |
1177 | echo sx6-nec-superux${UNAME_RELEASE} |
1240 | echo sx6-nec-superux${UNAME_RELEASE} |
1178 | exit ;; |
1241 | exit ;; |
|
|
1242 | SX-7:SUPER-UX:*:*) |
|
|
1243 | echo sx7-nec-superux${UNAME_RELEASE} |
|
|
1244 | exit ;; |
|
|
1245 | SX-8:SUPER-UX:*:*) |
|
|
1246 | echo sx8-nec-superux${UNAME_RELEASE} |
|
|
1247 | exit ;; |
|
|
1248 | SX-8R:SUPER-UX:*:*) |
|
|
1249 | echo sx8r-nec-superux${UNAME_RELEASE} |
|
|
1250 | exit ;; |
1179 | Power*:Rhapsody:*:*) |
1251 | Power*:Rhapsody:*:*) |
1180 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1252 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1181 | exit ;; |
1253 | exit ;; |
1182 | *:Rhapsody:*:*) |
1254 | *:Rhapsody:*:*) |
1183 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1255 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1184 | exit ;; |
1256 | exit ;; |
1185 | *:Darwin:*:*) |
1257 | *:Darwin:*:*) |
1186 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1258 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
|
|
1259 | eval $set_cc_for_build |
|
|
1260 | if test "$UNAME_PROCESSOR" = unknown ; then |
|
|
1261 | UNAME_PROCESSOR=powerpc |
|
|
1262 | fi |
|
|
1263 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then |
|
|
1264 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
|
|
1265 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
|
|
1266 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
|
|
1267 | grep IS_64BIT_ARCH >/dev/null |
|
|
1268 | then |
1187 | case $UNAME_PROCESSOR in |
1269 | case $UNAME_PROCESSOR in |
1188 | *86) UNAME_PROCESSOR=i686 ;; |
1270 | i386) UNAME_PROCESSOR=x86_64 ;; |
1189 | unknown) UNAME_PROCESSOR=powerpc ;; |
1271 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1190 | esac |
1272 | esac |
|
|
1273 | fi |
|
|
1274 | fi |
|
|
1275 | elif test "$UNAME_PROCESSOR" = i386 ; then |
|
|
1276 | # Avoid executing cc on OS X 10.9, as it ships with a stub |
|
|
1277 | # that puts up a graphical alert prompting to install |
|
|
1278 | # developer tools. Any system running Mac OS X 10.7 or |
|
|
1279 | # later (Darwin 11 and later) is required to have a 64-bit |
|
|
1280 | # processor. This is not true of the ARM version of Darwin |
|
|
1281 | # that Apple uses in portable devices. |
|
|
1282 | UNAME_PROCESSOR=x86_64 |
|
|
1283 | fi |
1191 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1192 | exit ;; |
1285 | exit ;; |
1193 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1286 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1194 | UNAME_PROCESSOR=`uname -p` |
1287 | UNAME_PROCESSOR=`uname -p` |
1195 | if test "$UNAME_PROCESSOR" = "x86"; then |
1288 | if test "$UNAME_PROCESSOR" = "x86"; then |
… | |
… | |
1199 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1292 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
1200 | exit ;; |
1293 | exit ;; |
1201 | *:QNX:*:4*) |
1294 | *:QNX:*:4*) |
1202 | echo i386-pc-qnx |
1295 | echo i386-pc-qnx |
1203 | exit ;; |
1296 | exit ;; |
1204 | NSE-?:NONSTOP_KERNEL:*:*) |
1297 | NEO-?:NONSTOP_KERNEL:*:*) |
|
|
1298 | echo neo-tandem-nsk${UNAME_RELEASE} |
|
|
1299 | exit ;; |
|
|
1300 | NSE-*:NONSTOP_KERNEL:*:*) |
1205 | echo nse-tandem-nsk${UNAME_RELEASE} |
1301 | echo nse-tandem-nsk${UNAME_RELEASE} |
1206 | exit ;; |
1302 | exit ;; |
1207 | NSR-?:NONSTOP_KERNEL:*:*) |
1303 | NSR-?:NONSTOP_KERNEL:*:*) |
1208 | echo nsr-tandem-nsk${UNAME_RELEASE} |
1304 | echo nsr-tandem-nsk${UNAME_RELEASE} |
1209 | exit ;; |
1305 | exit ;; |
… | |
… | |
1244 | exit ;; |
1340 | exit ;; |
1245 | *:ITS:*:*) |
1341 | *:ITS:*:*) |
1246 | echo pdp10-unknown-its |
1342 | echo pdp10-unknown-its |
1247 | exit ;; |
1343 | exit ;; |
1248 | SEI:*:*:SEIUX) |
1344 | SEI:*:*:SEIUX) |
1249 | echo mips-sei-seiux${UNAME_RELEASE} |
1345 | echo mips-sei-seiux${UNAME_RELEASE} |
1250 | exit ;; |
1346 | exit ;; |
1251 | *:DragonFly:*:*) |
1347 | *:DragonFly:*:*) |
1252 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1348 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1253 | exit ;; |
1349 | exit ;; |
1254 | *:*VMS:*:*) |
1350 | *:*VMS:*:*) |
1255 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1351 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1256 | case "${UNAME_MACHINE}" in |
1352 | case "${UNAME_MACHINE}" in |
1257 | A*) echo alpha-dec-vms ; exit ;; |
1353 | A*) echo alpha-dec-vms ; exit ;; |
1258 | I*) echo ia64-dec-vms ; exit ;; |
1354 | I*) echo ia64-dec-vms ; exit ;; |
1259 | V*) echo vax-dec-vms ; exit ;; |
1355 | V*) echo vax-dec-vms ; exit ;; |
1260 | esac ;; |
1356 | esac ;; |
… | |
… | |
1262 | echo i386-pc-xenix |
1358 | echo i386-pc-xenix |
1263 | exit ;; |
1359 | exit ;; |
1264 | i*86:skyos:*:*) |
1360 | i*86:skyos:*:*) |
1265 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1361 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1266 | exit ;; |
1362 | exit ;; |
|
|
1363 | i*86:rdos:*:*) |
|
|
1364 | echo ${UNAME_MACHINE}-pc-rdos |
|
|
1365 | exit ;; |
|
|
1366 | i*86:AROS:*:*) |
|
|
1367 | echo ${UNAME_MACHINE}-pc-aros |
|
|
1368 | exit ;; |
|
|
1369 | x86_64:VMkernel:*:*) |
|
|
1370 | echo ${UNAME_MACHINE}-unknown-esx |
|
|
1371 | exit ;; |
1267 | esac |
1372 | esac |
1268 | |
|
|
1269 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
|
|
1270 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
|
|
1271 | |
|
|
1272 | eval $set_cc_for_build |
|
|
1273 | cat >$dummy.c <<EOF |
|
|
1274 | #ifdef _SEQUENT_ |
|
|
1275 | # include <sys/types.h> |
|
|
1276 | # include <sys/utsname.h> |
|
|
1277 | #endif |
|
|
1278 | main () |
|
|
1279 | { |
|
|
1280 | #if defined (sony) |
|
|
1281 | #if defined (MIPSEB) |
|
|
1282 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
|
|
1283 | I don't know.... */ |
|
|
1284 | printf ("mips-sony-bsd\n"); exit (0); |
|
|
1285 | #else |
|
|
1286 | #include <sys/param.h> |
|
|
1287 | printf ("m68k-sony-newsos%s\n", |
|
|
1288 | #ifdef NEWSOS4 |
|
|
1289 | "4" |
|
|
1290 | #else |
|
|
1291 | "" |
|
|
1292 | #endif |
|
|
1293 | ); exit (0); |
|
|
1294 | #endif |
|
|
1295 | #endif |
|
|
1296 | |
|
|
1297 | #if defined (__arm) && defined (__acorn) && defined (__unix) |
|
|
1298 | printf ("arm-acorn-riscix\n"); exit (0); |
|
|
1299 | #endif |
|
|
1300 | |
|
|
1301 | #if defined (hp300) && !defined (hpux) |
|
|
1302 | printf ("m68k-hp-bsd\n"); exit (0); |
|
|
1303 | #endif |
|
|
1304 | |
|
|
1305 | #if defined (NeXT) |
|
|
1306 | #if !defined (__ARCHITECTURE__) |
|
|
1307 | #define __ARCHITECTURE__ "m68k" |
|
|
1308 | #endif |
|
|
1309 | int version; |
|
|
1310 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
|
|
1311 | if (version < 4) |
|
|
1312 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
|
|
1313 | else |
|
|
1314 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
|
|
1315 | exit (0); |
|
|
1316 | #endif |
|
|
1317 | |
|
|
1318 | #if defined (MULTIMAX) || defined (n16) |
|
|
1319 | #if defined (UMAXV) |
|
|
1320 | printf ("ns32k-encore-sysv\n"); exit (0); |
|
|
1321 | #else |
|
|
1322 | #if defined (CMU) |
|
|
1323 | printf ("ns32k-encore-mach\n"); exit (0); |
|
|
1324 | #else |
|
|
1325 | printf ("ns32k-encore-bsd\n"); exit (0); |
|
|
1326 | #endif |
|
|
1327 | #endif |
|
|
1328 | #endif |
|
|
1329 | |
|
|
1330 | #if defined (__386BSD__) |
|
|
1331 | printf ("i386-pc-bsd\n"); exit (0); |
|
|
1332 | #endif |
|
|
1333 | |
|
|
1334 | #if defined (sequent) |
|
|
1335 | #if defined (i386) |
|
|
1336 | printf ("i386-sequent-dynix\n"); exit (0); |
|
|
1337 | #endif |
|
|
1338 | #if defined (ns32000) |
|
|
1339 | printf ("ns32k-sequent-dynix\n"); exit (0); |
|
|
1340 | #endif |
|
|
1341 | #endif |
|
|
1342 | |
|
|
1343 | #if defined (_SEQUENT_) |
|
|
1344 | struct utsname un; |
|
|
1345 | |
|
|
1346 | uname(&un); |
|
|
1347 | |
|
|
1348 | if (strncmp(un.version, "V2", 2) == 0) { |
|
|
1349 | printf ("i386-sequent-ptx2\n"); exit (0); |
|
|
1350 | } |
|
|
1351 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
|
|
1352 | printf ("i386-sequent-ptx1\n"); exit (0); |
|
|
1353 | } |
|
|
1354 | printf ("i386-sequent-ptx\n"); exit (0); |
|
|
1355 | |
|
|
1356 | #endif |
|
|
1357 | |
|
|
1358 | #if defined (vax) |
|
|
1359 | # if !defined (ultrix) |
|
|
1360 | # include <sys/param.h> |
|
|
1361 | # if defined (BSD) |
|
|
1362 | # if BSD == 43 |
|
|
1363 | printf ("vax-dec-bsd4.3\n"); exit (0); |
|
|
1364 | # else |
|
|
1365 | # if BSD == 199006 |
|
|
1366 | printf ("vax-dec-bsd4.3reno\n"); exit (0); |
|
|
1367 | # else |
|
|
1368 | printf ("vax-dec-bsd\n"); exit (0); |
|
|
1369 | # endif |
|
|
1370 | # endif |
|
|
1371 | # else |
|
|
1372 | printf ("vax-dec-bsd\n"); exit (0); |
|
|
1373 | # endif |
|
|
1374 | # else |
|
|
1375 | printf ("vax-dec-ultrix\n"); exit (0); |
|
|
1376 | # endif |
|
|
1377 | #endif |
|
|
1378 | |
|
|
1379 | #if defined (alliant) && defined (i860) |
|
|
1380 | printf ("i860-alliant-bsd\n"); exit (0); |
|
|
1381 | #endif |
|
|
1382 | |
|
|
1383 | exit (1); |
|
|
1384 | } |
|
|
1385 | EOF |
|
|
1386 | |
|
|
1387 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && |
|
|
1388 | { echo "$SYSTEM_NAME"; exit; } |
|
|
1389 | |
|
|
1390 | # Apollos put the system type in the environment. |
|
|
1391 | |
|
|
1392 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } |
|
|
1393 | |
|
|
1394 | # Convex versions that predate uname can use getsysinfo(1) |
|
|
1395 | |
|
|
1396 | if [ -x /usr/convex/getsysinfo ] |
|
|
1397 | then |
|
|
1398 | case `getsysinfo -f cpu_type` in |
|
|
1399 | c1*) |
|
|
1400 | echo c1-convex-bsd |
|
|
1401 | exit ;; |
|
|
1402 | c2*) |
|
|
1403 | if getsysinfo -f scalar_acc |
|
|
1404 | then echo c32-convex-bsd |
|
|
1405 | else echo c2-convex-bsd |
|
|
1406 | fi |
|
|
1407 | exit ;; |
|
|
1408 | c34*) |
|
|
1409 | echo c34-convex-bsd |
|
|
1410 | exit ;; |
|
|
1411 | c38*) |
|
|
1412 | echo c38-convex-bsd |
|
|
1413 | exit ;; |
|
|
1414 | c4*) |
|
|
1415 | echo c4-convex-bsd |
|
|
1416 | exit ;; |
|
|
1417 | esac |
|
|
1418 | fi |
|
|
1419 | |
1373 | |
1420 | cat >&2 <<EOF |
1374 | cat >&2 <<EOF |
1421 | $0: unable to guess system type |
1375 | $0: unable to guess system type |
1422 | |
1376 | |
1423 | This script, last modified $timestamp, has failed to recognize |
1377 | This script, last modified $timestamp, has failed to recognize |
1424 | the operating system you are using. It is advised that you |
1378 | the operating system you are using. It is advised that you |
1425 | download the most up to date version of the config scripts from |
1379 | download the most up to date version of the config scripts from |
1426 | |
1380 | |
1427 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
1381 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1428 | and |
1382 | and |
1429 | http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
1383 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1430 | |
1384 | |
1431 | If the version you run ($0) is already up to date, please |
1385 | If the version you run ($0) is already up to date, please |
1432 | send the following data and any information you think might be |
1386 | send the following data and any information you think might be |
1433 | pertinent to <config-patches@gnu.org> in order to provide the needed |
1387 | pertinent to <config-patches@gnu.org> in order to provide the needed |
1434 | information to handle your system. |
1388 | information to handle your system. |