Mercurial > sdl-ios-xcode
comparison test/config.guess @ 51:fba28d77901f
Disabled /dev/event joystick interface by default
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 10 Jun 2001 04:54:53 +0000 |
parents | 74212992fb08 |
children | 25dfe480c75e |
comparison
equal
deleted
inserted
replaced
50:eda2f15ffb70 | 51:fba28d77901f |
---|---|
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, 2000 | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 |
4 # Free Software Foundation, Inc. | 4 # Free Software Foundation, Inc. |
5 | 5 # |
6 version='2000-09-05' | |
7 | |
8 # This file is free software; you can redistribute it and/or modify it | 6 # 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 | 7 # under the terms of the GNU General Public License as published by |
10 # the Free Software Foundation; either version 2 of the License, or | 8 # the Free Software Foundation; either version 2 of the License, or |
11 # (at your option) any later version. | 9 # (at your option) any later version. |
12 # | 10 # |
23 # distribute this file as part of a program that contains a | 21 # distribute this file as part of a program that contains a |
24 # configuration script generated by Autoconf, you may include it under | 22 # configuration script generated by Autoconf, you may include it under |
25 # 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 program. |
26 | 24 |
27 # Written by Per Bothner <bothner@cygnus.com>. | 25 # Written by Per Bothner <bothner@cygnus.com>. |
28 # Please send patches to <config-patches@gnu.org>. | 26 # The master version of this file is at the FSF in /home/gd/gnu/lib. |
27 # Please send patches to the Autoconf mailing list <autoconf@gnu.org>. | |
29 # | 28 # |
30 # This script attempts to guess a canonical system name similar to | 29 # This script attempts to guess a canonical system name similar to |
31 # config.sub. If it succeeds, it prints the system name on stdout, and | 30 # config.sub. If it succeeds, it prints the system name on stdout, and |
32 # exits with 0. Otherwise, it exits with 1. | 31 # exits with 0. Otherwise, it exits with 1. |
33 # | 32 # |
35 # don't specify an explicit system type (host/target name). | 34 # don't specify an explicit system type (host/target name). |
36 # | 35 # |
37 # Only a few systems have been added to this list; please add others | 36 # Only a few systems have been added to this list; please add others |
38 # (but try to keep the structure clean). | 37 # (but try to keep the structure clean). |
39 # | 38 # |
40 | |
41 me=`echo "$0" | sed -e 's,.*/,,'` | |
42 | |
43 usage="\ | |
44 Usage: $0 [OPTION] | |
45 | |
46 Output the configuration name of this system. | |
47 | |
48 Operation modes: | |
49 -h, --help print this help, then exit | |
50 -V, --version print version number, then exit" | |
51 | |
52 help=" | |
53 Try \`$me --help' for more information." | |
54 | |
55 # Parse command line | |
56 while test $# -gt 0 ; do | |
57 case "$1" in | |
58 --version | --vers* | -V ) | |
59 echo "$version" ; exit 0 ;; | |
60 --help | --h* | -h ) | |
61 echo "$usage"; exit 0 ;; | |
62 -- ) # Stop option processing | |
63 shift; break ;; | |
64 - ) # Use stdin as input. | |
65 break ;; | |
66 -* ) | |
67 exec >&2 | |
68 echo "$me: invalid option $1" | |
69 echo "$help" | |
70 exit 1 ;; | |
71 * ) | |
72 break ;; | |
73 esac | |
74 done | |
75 | |
76 if test $# != 0; then | |
77 echo "$me: too many arguments$help" >&2 | |
78 exit 1 | |
79 fi | |
80 | 39 |
81 # Use $HOST_CC if defined. $CC may point to a cross-compiler | 40 # Use $HOST_CC if defined. $CC may point to a cross-compiler |
82 if test x"$CC_FOR_BUILD" = x; then | 41 if test x"$CC_FOR_BUILD" = x; then |
83 if test x"$HOST_CC" != x; then | 42 if test x"$HOST_CC" != x; then |
84 CC_FOR_BUILD="$HOST_CC" | 43 CC_FOR_BUILD="$HOST_CC" |
107 trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 | 66 trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 |
108 | 67 |
109 # Note: order is significant - the case branches are not exclusive. | 68 # Note: order is significant - the case branches are not exclusive. |
110 | 69 |
111 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 70 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
112 *:NetBSD:*:*) | |
113 # Netbsd (nbsd) targets should (where applicable) match one or | |
114 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
115 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
116 # switched to ELF, *-*-netbsd* would select the old | |
117 # object file format. This provides both forward | |
118 # compatibility and a consistent mechanism for selecting the | |
119 # object file format. | |
120 # Determine the machine/vendor (is the vendor relevant). | |
121 case "${UNAME_MACHINE}" in | |
122 amiga) machine=m68k-unknown ;; | |
123 arm32) machine=arm-unknown ;; | |
124 atari*) machine=m68k-atari ;; | |
125 sun3*) machine=m68k-sun ;; | |
126 mac68k) machine=m68k-apple ;; | |
127 macppc) machine=powerpc-apple ;; | |
128 hp3[0-9][05]) machine=m68k-hp ;; | |
129 ibmrt|romp-ibm) machine=romp-ibm ;; | |
130 *) machine=${UNAME_MACHINE}-unknown ;; | |
131 esac | |
132 # The Operating System including object format. | |
133 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
134 | grep __ELF__ >/dev/null | |
135 then | |
136 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
137 # Return netbsd for either. FIX? | |
138 os=netbsd | |
139 else | |
140 os=netbsdelf | |
141 fi | |
142 # The OS release | |
143 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
144 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |
145 # contains redundant information, the shorter form: | |
146 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
147 echo "${machine}-${os}${release}" | |
148 exit 0 ;; | |
149 alpha:OSF1:*:*) | 71 alpha:OSF1:*:*) |
150 if test $UNAME_RELEASE = "V4.0"; then | 72 if test $UNAME_RELEASE = "V4.0"; then |
151 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | 73 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
152 fi | 74 fi |
153 # A Vn.n version is a released version. | 75 # A Vn.n version is a released version. |
154 # A Tn.n version is a released field test version. | 76 # A Tn.n version is a released field test version. |
155 # A Xn.n version is an unreleased experimental baselevel. | 77 # A Xn.n version is an unreleased experimental baselevel. |
156 # 1.2 uses "1.2" for uname -r. | 78 # 1.2 uses "1.2" for uname -r. |
157 cat <<EOF >$dummy.s | 79 cat <<EOF >$dummy.s |
158 .data | |
159 \$Lformat: | |
160 .byte 37,100,45,37,120,10,0 # "%d-%x\n" | |
161 | |
162 .text | |
163 .globl main | 80 .globl main |
164 .align 4 | |
165 .ent main | 81 .ent main |
166 main: | 82 main: |
167 .frame \$30,16,\$26,0 | 83 .frame \$30,0,\$26,0 |
168 ldgp \$29,0(\$27) | 84 .prologue 0 |
169 .prologue 1 | 85 .long 0x47e03d80 # implver $0 |
170 .long 0x47e03d80 # implver \$0 | 86 lda \$2,259 |
171 lda \$2,-1 | 87 .long 0x47e20c21 # amask $2,$1 |
172 .long 0x47e20c21 # amask \$2,\$1 | 88 srl \$1,8,\$2 |
173 lda \$16,\$Lformat | 89 sll \$2,2,\$2 |
174 mov \$0,\$17 | 90 sll \$0,3,\$0 |
175 not \$1,\$18 | 91 addl \$1,\$0,\$0 |
176 jsr \$26,printf | 92 addl \$2,\$0,\$0 |
177 ldgp \$29,0(\$26) | 93 ret \$31,(\$26),1 |
178 mov 0,\$16 | |
179 jsr \$26,exit | |
180 .end main | 94 .end main |
181 EOF | 95 EOF |
182 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | 96 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
183 if test "$?" = 0 ; then | 97 if test "$?" = 0 ; then |
184 case `./$dummy` in | 98 ./$dummy |
185 0-0) | 99 case "$?" in |
100 7) | |
186 UNAME_MACHINE="alpha" | 101 UNAME_MACHINE="alpha" |
187 ;; | 102 ;; |
188 1-0) | 103 15) |
189 UNAME_MACHINE="alphaev5" | 104 UNAME_MACHINE="alphaev5" |
190 ;; | 105 ;; |
191 1-1) | 106 14) |
192 UNAME_MACHINE="alphaev56" | 107 UNAME_MACHINE="alphaev56" |
193 ;; | 108 ;; |
194 1-101) | 109 10) |
195 UNAME_MACHINE="alphapca56" | 110 UNAME_MACHINE="alphapca56" |
196 ;; | 111 ;; |
197 2-303) | 112 16) |
198 UNAME_MACHINE="alphaev6" | 113 UNAME_MACHINE="alphaev6" |
199 ;; | |
200 2-307) | |
201 UNAME_MACHINE="alphaev67" | |
202 ;; | 114 ;; |
203 esac | 115 esac |
204 fi | 116 fi |
205 rm -f $dummy.s $dummy | 117 rm -f $dummy.s $dummy |
206 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 118 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
213 exit 0 ;; | 125 exit 0 ;; |
214 21064:Windows_NT:50:3) | 126 21064:Windows_NT:50:3) |
215 echo alpha-dec-winnt3.5 | 127 echo alpha-dec-winnt3.5 |
216 exit 0 ;; | 128 exit 0 ;; |
217 Amiga*:UNIX_System_V:4.0:*) | 129 Amiga*:UNIX_System_V:4.0:*) |
218 echo m68k-unknown-sysv4 | 130 echo m68k-cbm-sysv4 |
219 exit 0;; | 131 exit 0;; |
132 amiga:NetBSD:*:*) | |
133 echo m68k-cbm-netbsd${UNAME_RELEASE} | |
134 exit 0 ;; | |
220 amiga:OpenBSD:*:*) | 135 amiga:OpenBSD:*:*) |
221 echo m68k-unknown-openbsd${UNAME_RELEASE} | 136 echo m68k-unknown-openbsd${UNAME_RELEASE} |
222 exit 0 ;; | 137 exit 0 ;; |
223 *:[Aa]miga[Oo][Ss]:*:*) | 138 *:[Aa]miga[Oo][Ss]:*:*) |
224 echo ${UNAME_MACHINE}-unknown-amigaos | 139 echo ${UNAME_MACHINE}-unknown-amigaos |
238 sgi:OpenBSD:*:*) | 153 sgi:OpenBSD:*:*) |
239 echo mips-unknown-openbsd${UNAME_RELEASE} | 154 echo mips-unknown-openbsd${UNAME_RELEASE} |
240 exit 0 ;; | 155 exit 0 ;; |
241 wgrisc:OpenBSD:*:*) | 156 wgrisc:OpenBSD:*:*) |
242 echo mipsel-unknown-openbsd${UNAME_RELEASE} | 157 echo mipsel-unknown-openbsd${UNAME_RELEASE} |
243 exit 0 ;; | |
244 *:OS/390:*:*) | |
245 echo i370-ibm-openedition | |
246 exit 0 ;; | 158 exit 0 ;; |
247 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 159 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
248 echo arm-acorn-riscix${UNAME_RELEASE} | 160 echo arm-acorn-riscix${UNAME_RELEASE} |
249 exit 0;; | 161 exit 0;; |
162 arm32:NetBSD:*:*) | |
163 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
164 exit 0 ;; | |
250 SR2?01:HI-UX/MPP:*:*) | 165 SR2?01:HI-UX/MPP:*:*) |
251 echo hppa1.1-hitachi-hiuxmpp | 166 echo hppa1.1-hitachi-hiuxmpp |
252 exit 0;; | 167 exit 0;; |
253 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | 168 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
254 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | 169 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
301 esac | 216 esac |
302 exit 0 ;; | 217 exit 0 ;; |
303 aushp:SunOS:*:*) | 218 aushp:SunOS:*:*) |
304 echo sparc-auspex-sunos${UNAME_RELEASE} | 219 echo sparc-auspex-sunos${UNAME_RELEASE} |
305 exit 0 ;; | 220 exit 0 ;; |
221 atari*:NetBSD:*:*) | |
222 echo m68k-atari-netbsd${UNAME_RELEASE} | |
223 exit 0 ;; | |
306 atari*:OpenBSD:*:*) | 224 atari*:OpenBSD:*:*) |
307 echo m68k-unknown-openbsd${UNAME_RELEASE} | 225 echo m68k-unknown-openbsd${UNAME_RELEASE} |
308 exit 0 ;; | 226 exit 0 ;; |
309 # The situation for MiNT is a little confusing. The machine name | 227 # The situation for MiNT is a little confusing. The machine name |
310 # can be virtually everything (everything which is not | 228 # can be virtually everything (everything which is not |
311 # "atarist" or "atariste" at least should have a processor | 229 # "atarist" or "atariste" at least should have a processor |
312 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | 230 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
313 # to the lowercase version "mint" (or "freemint"). Finally | 231 # to the lowercase version "mint" (or "freemint"). Finally |
314 # the system name "TOS" denotes a system which is actually not | 232 # the system name "TOS" denotes a system which is actually not |
315 # MiNT. But MiNT is downward compatible to TOS, so this should | 233 # MiNT. But MiNT is downward compatible to TOS, so this should |
316 # be no problem. | 234 # be no problem. |
330 echo m68k-hades-mint${UNAME_RELEASE} | 248 echo m68k-hades-mint${UNAME_RELEASE} |
331 exit 0 ;; | 249 exit 0 ;; |
332 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 250 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
333 echo m68k-unknown-mint${UNAME_RELEASE} | 251 echo m68k-unknown-mint${UNAME_RELEASE} |
334 exit 0 ;; | 252 exit 0 ;; |
253 sun3*:NetBSD:*:*) | |
254 echo m68k-sun-netbsd${UNAME_RELEASE} | |
255 exit 0 ;; | |
335 sun3*:OpenBSD:*:*) | 256 sun3*:OpenBSD:*:*) |
336 echo m68k-unknown-openbsd${UNAME_RELEASE} | 257 echo m68k-unknown-openbsd${UNAME_RELEASE} |
337 exit 0 ;; | 258 exit 0 ;; |
259 mac68k:NetBSD:*:*) | |
260 echo m68k-apple-netbsd${UNAME_RELEASE} | |
261 exit 0 ;; | |
338 mac68k:OpenBSD:*:*) | 262 mac68k:OpenBSD:*:*) |
339 echo m68k-unknown-openbsd${UNAME_RELEASE} | 263 echo m68k-unknown-openbsd${UNAME_RELEASE} |
340 exit 0 ;; | 264 exit 0 ;; |
341 mvme68k:OpenBSD:*:*) | 265 mvme68k:OpenBSD:*:*) |
342 echo m68k-unknown-openbsd${UNAME_RELEASE} | 266 echo m68k-unknown-openbsd${UNAME_RELEASE} |
345 echo m88k-unknown-openbsd${UNAME_RELEASE} | 269 echo m88k-unknown-openbsd${UNAME_RELEASE} |
346 exit 0 ;; | 270 exit 0 ;; |
347 powerpc:machten:*:*) | 271 powerpc:machten:*:*) |
348 echo powerpc-apple-machten${UNAME_RELEASE} | 272 echo powerpc-apple-machten${UNAME_RELEASE} |
349 exit 0 ;; | 273 exit 0 ;; |
274 macppc:NetBSD:*:*) | |
275 echo powerpc-apple-netbsd${UNAME_RELEASE} | |
276 exit 0 ;; | |
350 RISC*:Mach:*:*) | 277 RISC*:Mach:*:*) |
351 echo mips-dec-mach_bsd4.3 | 278 echo mips-dec-mach_bsd4.3 |
352 exit 0 ;; | 279 exit 0 ;; |
353 RISC*:ULTRIX:*:*) | 280 RISC*:ULTRIX:*:*) |
354 echo mips-dec-ultrix${UNAME_RELEASE} | 281 echo mips-dec-ultrix${UNAME_RELEASE} |
360 echo clipper-intergraph-clix${UNAME_RELEASE} | 287 echo clipper-intergraph-clix${UNAME_RELEASE} |
361 exit 0 ;; | 288 exit 0 ;; |
362 mips:*:*:UMIPS | mips:*:*:RISCos) | 289 mips:*:*:UMIPS | mips:*:*:RISCos) |
363 sed 's/^ //' << EOF >$dummy.c | 290 sed 's/^ //' << EOF >$dummy.c |
364 #ifdef __cplusplus | 291 #ifdef __cplusplus |
365 #include <stdio.h> /* for printf() prototype */ | |
366 int main (int argc, char *argv[]) { | 292 int main (int argc, char *argv[]) { |
367 #else | 293 #else |
368 int main (argc, argv) int argc; char *argv[]; { | 294 int main (argc, argv) int argc; char *argv[]; { |
369 #endif | 295 #endif |
370 #if defined (host_mips) && defined (MIPSEB) | 296 #if defined (host_mips) && defined (MIPSEB) |
400 echo m88k-motorola-sysv3 | 326 echo m88k-motorola-sysv3 |
401 exit 0 ;; | 327 exit 0 ;; |
402 AViiON:dgux:*:*) | 328 AViiON:dgux:*:*) |
403 # DG/UX returns AViiON for all architectures | 329 # DG/UX returns AViiON for all architectures |
404 UNAME_PROCESSOR=`/usr/bin/uname -p` | 330 UNAME_PROCESSOR=`/usr/bin/uname -p` |
405 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | 331 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then |
406 then | 332 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ |
407 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | 333 -o ${TARGET_BINARY_INTERFACE}x = x ] ; then |
408 [ ${TARGET_BINARY_INTERFACE}x = x ] | |
409 then | |
410 echo m88k-dg-dgux${UNAME_RELEASE} | 334 echo m88k-dg-dgux${UNAME_RELEASE} |
411 else | 335 else |
412 echo m88k-dg-dguxbcs${UNAME_RELEASE} | 336 echo m88k-dg-dguxbcs${UNAME_RELEASE} |
413 fi | 337 fi |
414 else | 338 else echo i586-dg-dgux${UNAME_RELEASE} |
415 echo i586-dg-dgux${UNAME_RELEASE} | 339 fi |
416 fi | |
417 exit 0 ;; | 340 exit 0 ;; |
418 M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 341 M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
419 echo m88k-dolphin-sysv3 | 342 echo m88k-dolphin-sysv3 |
420 exit 0 ;; | 343 exit 0 ;; |
421 M88*:*:R3*:*) | 344 M88*:*:R3*:*) |
477 echo rs6000-ibm-aix | 400 echo rs6000-ibm-aix |
478 exit 0 ;; | 401 exit 0 ;; |
479 ibmrt:4.4BSD:*|romp-ibm:BSD:*) | 402 ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
480 echo romp-ibm-bsd4.4 | 403 echo romp-ibm-bsd4.4 |
481 exit 0 ;; | 404 exit 0 ;; |
482 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | 405 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and |
483 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | 406 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
484 exit 0 ;; # report: romp-ibm BSD 4.3 | 407 exit 0 ;; # report: romp-ibm BSD 4.3 |
485 *:BOSX:*:*) | 408 *:BOSX:*:*) |
486 echo rs6000-bull-bosx | 409 echo rs6000-bull-bosx |
487 exit 0 ;; | 410 exit 0 ;; |
498 case "${UNAME_MACHINE}" in | 421 case "${UNAME_MACHINE}" in |
499 9000/31? ) HP_ARCH=m68000 ;; | 422 9000/31? ) HP_ARCH=m68000 ;; |
500 9000/[34]?? ) HP_ARCH=m68k ;; | 423 9000/[34]?? ) HP_ARCH=m68k ;; |
501 9000/[678][0-9][0-9]) | 424 9000/[678][0-9][0-9]) |
502 sed 's/^ //' << EOF >$dummy.c | 425 sed 's/^ //' << EOF >$dummy.c |
503 | |
504 #define _HPUX_SOURCE | |
505 #include <stdlib.h> | 426 #include <stdlib.h> |
506 #include <unistd.h> | 427 #include <unistd.h> |
507 | 428 |
508 int main () | 429 int main () |
509 { | 430 { |
530 default: puts ("hppa1.0"); break; | 451 default: puts ("hppa1.0"); break; |
531 } | 452 } |
532 exit (0); | 453 exit (0); |
533 } | 454 } |
534 EOF | 455 EOF |
535 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` | 456 ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` |
536 rm -f $dummy.c $dummy | 457 rm -f $dummy.c $dummy |
537 esac | 458 esac |
538 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | 459 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
539 echo ${HP_ARCH}-hp-hpux${HPUX_REV} | 460 echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
540 exit 0 ;; | 461 exit 0 ;; |
624 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | 545 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
625 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | 546 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
626 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ | 547 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ |
627 exit 0 ;; | 548 exit 0 ;; |
628 CRAY*TS:*:*:*) | 549 CRAY*TS:*:*:*) |
629 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | 550 echo t90-cray-unicos${UNAME_RELEASE} |
630 exit 0 ;; | 551 exit 0 ;; |
631 CRAY*T3E:*:*:*) | 552 CRAY*T3E:*:*:*) |
632 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | 553 echo t3e-cray-unicosmk${UNAME_RELEASE} |
633 exit 0 ;; | |
634 CRAY*SV1:*:*:*) | |
635 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
636 exit 0 ;; | 554 exit 0 ;; |
637 CRAY-2:*:*:*) | 555 CRAY-2:*:*:*) |
638 echo cray2-cray-unicos | 556 echo cray2-cray-unicos |
639 exit 0 ;; | 557 exit 0 ;; |
640 F300:UNIX_System_V:*:*) | 558 F300:UNIX_System_V:*:*) |
643 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 561 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
644 exit 0 ;; | 562 exit 0 ;; |
645 F301:UNIX_System_V:*:*) | 563 F301:UNIX_System_V:*:*) |
646 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` | 564 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` |
647 exit 0 ;; | 565 exit 0 ;; |
566 hp3[0-9][05]:NetBSD:*:*) | |
567 echo m68k-hp-netbsd${UNAME_RELEASE} | |
568 exit 0 ;; | |
648 hp300:OpenBSD:*:*) | 569 hp300:OpenBSD:*:*) |
649 echo m68k-unknown-openbsd${UNAME_RELEASE} | 570 echo m68k-unknown-openbsd${UNAME_RELEASE} |
650 exit 0 ;; | 571 exit 0 ;; |
651 i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | 572 i?86:BSD/386:*:* | i?86:BSD/OS:*:*) |
652 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | 573 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
653 exit 0 ;; | 574 exit 0 ;; |
654 sparc*:BSD/OS:*:*) | 575 sparc*:BSD/OS:*:*) |
655 echo sparc-unknown-bsdi${UNAME_RELEASE} | 576 echo sparc-unknown-bsdi${UNAME_RELEASE} |
656 exit 0 ;; | 577 exit 0 ;; |
657 *:BSD/OS:*:*) | 578 *:BSD/OS:*:*) |
658 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | 579 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
659 exit 0 ;; | 580 exit 0 ;; |
660 *:FreeBSD:*:*) | 581 *:FreeBSD:*:*) |
582 if test -x /usr/bin/objformat; then | |
583 if test "elf" = "`/usr/bin/objformat`"; then | |
584 echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` | |
585 exit 0 | |
586 fi | |
587 fi | |
661 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 588 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
589 exit 0 ;; | |
590 *:NetBSD:*:*) | |
591 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
662 exit 0 ;; | 592 exit 0 ;; |
663 *:OpenBSD:*:*) | 593 *:OpenBSD:*:*) |
664 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 594 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
665 exit 0 ;; | 595 exit 0 ;; |
666 i*:CYGWIN*:*) | 596 i*:CYGWIN*:*) |
667 echo ${UNAME_MACHINE}-pc-cygwin | 597 echo ${UNAME_MACHINE}-pc-cygwin |
668 exit 0 ;; | 598 exit 0 ;; |
669 i*:MINGW*:*) | 599 i*:MINGW*:*) |
670 echo ${UNAME_MACHINE}-pc-mingw32 | 600 echo ${UNAME_MACHINE}-pc-mingw32 |
671 exit 0 ;; | |
672 i*:PW*:*) | |
673 echo ${UNAME_MACHINE}-pc-pw32 | |
674 exit 0 ;; | 601 exit 0 ;; |
675 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | 602 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
676 # How do we know it's Interix rather than the generic POSIX subsystem? | 603 # How do we know it's Interix rather than the generic POSIX subsystem? |
677 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | 604 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
678 # UNAME_MACHINE based on the output of uname instead of i386? | 605 # UNAME_MACHINE based on the output of uname instead of i386? |
688 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 615 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
689 exit 0 ;; | 616 exit 0 ;; |
690 *:GNU:*:*) | 617 *:GNU:*:*) |
691 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | 618 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
692 exit 0 ;; | 619 exit 0 ;; |
693 i*86:Minix:*:*) | |
694 echo ${UNAME_MACHINE}-pc-minix | |
695 exit 0 ;; | |
696 *:Linux:*:*) | 620 *:Linux:*:*) |
621 # # uname on the ARM produces all sorts of strangeness, and we need to | |
622 # # filter it out. | |
623 # case "$UNAME_MACHINE" in | |
624 # armv*) UNAME_MACHINE=$UNAME_MACHINE ;; | |
625 # arm* | sa110*) UNAME_MACHINE="arm" ;; | |
626 # esac | |
697 | 627 |
698 # The BFD linker knows what the default object file format is, so | 628 # The BFD linker knows what the default object file format is, so |
699 # first see if it will tell us. cd to the root directory to prevent | 629 # first see if it will tell us. cd to the root directory to prevent |
700 # problems with other programs or directories called `ld' in the path. | 630 # problems with other programs or directories called `ld' in the path. |
701 ld_help_string=`cd /; ld --help 2>&1` | 631 ld_help_string=`cd /; ld --help 2>&1` |
704 s/[ ][ ]*/ /g | 634 s/[ ][ ]*/ /g |
705 s/.*supported emulations: *// | 635 s/.*supported emulations: *// |
706 s/ .*// | 636 s/ .*// |
707 p'` | 637 p'` |
708 case "$ld_supported_emulations" in | 638 case "$ld_supported_emulations" in |
709 *ia64) | 639 i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; |
710 echo "${UNAME_MACHINE}-unknown-linux" | 640 i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; |
711 exit 0 | 641 sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; |
712 ;; | 642 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; |
713 i?86linux) | 643 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; |
714 echo "${UNAME_MACHINE}-pc-linux-gnuaout" | 644 elf32arm) echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 ;; |
715 exit 0 | 645 elf32ppc) |
716 ;; | |
717 elf_i?86) | |
718 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
719 ;; | |
720 i?86coff) | |
721 echo "${UNAME_MACHINE}-pc-linux-gnucoff" | |
722 exit 0 | |
723 ;; | |
724 sparclinux) | |
725 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | |
726 exit 0 | |
727 ;; | |
728 armlinux) | |
729 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | |
730 exit 0 | |
731 ;; | |
732 elf32arm*) | |
733 echo "${UNAME_MACHINE}-unknown-linux-gnuoldld" | |
734 exit 0 | |
735 ;; | |
736 armelf_linux*) | |
737 echo "${UNAME_MACHINE}-unknown-linux-gnu" | |
738 exit 0 | |
739 ;; | |
740 m68klinux) | |
741 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | |
742 exit 0 | |
743 ;; | |
744 elf32ppc | elf32ppclinux) | |
745 # Determine Lib Version | 646 # Determine Lib Version |
746 cat >$dummy.c <<EOF | 647 cat >$dummy.c <<EOF |
747 #include <features.h> | 648 #include <features.h> |
748 #if defined(__GLIBC__) | 649 #if defined(__GLIBC__) |
749 extern char __libc_version[]; | 650 extern char __libc_version[]; |
766 if test "$?" = 0 ; then | 667 if test "$?" = 0 ; then |
767 ./$dummy | grep 1\.99 > /dev/null | 668 ./$dummy | grep 1\.99 > /dev/null |
768 if test "$?" = 0 ; then | 669 if test "$?" = 0 ; then |
769 LIBC="libc1" | 670 LIBC="libc1" |
770 fi | 671 fi |
771 fi | 672 fi |
772 rm -f $dummy.c $dummy | 673 rm -f $dummy.c $dummy |
773 echo powerpc-unknown-linux-gnu${LIBC} | 674 echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; |
774 exit 0 | |
775 ;; | |
776 shelf_linux) | |
777 echo "${UNAME_MACHINE}-unknown-linux-gnu" | |
778 exit 0 | |
779 ;; | |
780 esac | 675 esac |
781 | 676 |
782 if test "${UNAME_MACHINE}" = "alpha" ; then | 677 if test "${UNAME_MACHINE}" = "alpha" ; then |
783 cat <<EOF >$dummy.s | 678 sed 's/^ //' <<EOF >$dummy.s |
784 .data | 679 .globl main |
785 \$Lformat: | 680 .ent main |
786 .byte 37,100,45,37,120,10,0 # "%d-%x\n" | 681 main: |
787 | 682 .frame \$30,0,\$26,0 |
788 .text | 683 .prologue 0 |
789 .globl main | 684 .long 0x47e03d80 # implver $0 |
790 .align 4 | 685 lda \$2,259 |
791 .ent main | 686 .long 0x47e20c21 # amask $2,$1 |
792 main: | 687 srl \$1,8,\$2 |
793 .frame \$30,16,\$26,0 | 688 sll \$2,2,\$2 |
794 ldgp \$29,0(\$27) | 689 sll \$0,3,\$0 |
795 .prologue 1 | 690 addl \$1,\$0,\$0 |
796 .long 0x47e03d80 # implver \$0 | 691 addl \$2,\$0,\$0 |
797 lda \$2,-1 | 692 ret \$31,(\$26),1 |
798 .long 0x47e20c21 # amask \$2,\$1 | 693 .end main |
799 lda \$16,\$Lformat | |
800 mov \$0,\$17 | |
801 not \$1,\$18 | |
802 jsr \$26,printf | |
803 ldgp \$29,0(\$26) | |
804 mov 0,\$16 | |
805 jsr \$26,exit | |
806 .end main | |
807 EOF | 694 EOF |
808 LIBC="" | 695 LIBC="" |
809 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | 696 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
810 if test "$?" = 0 ; then | 697 if test "$?" = 0 ; then |
811 case `./$dummy` in | 698 ./$dummy |
812 0-0) | 699 case "$?" in |
700 7) | |
813 UNAME_MACHINE="alpha" | 701 UNAME_MACHINE="alpha" |
814 ;; | 702 ;; |
815 1-0) | 703 15) |
816 UNAME_MACHINE="alphaev5" | 704 UNAME_MACHINE="alphaev5" |
817 ;; | 705 ;; |
818 1-1) | 706 14) |
819 UNAME_MACHINE="alphaev56" | 707 UNAME_MACHINE="alphaev56" |
820 ;; | 708 ;; |
821 1-101) | 709 10) |
822 UNAME_MACHINE="alphapca56" | 710 UNAME_MACHINE="alphapca56" |
823 ;; | 711 ;; |
824 2-303) | 712 16) |
825 UNAME_MACHINE="alphaev6" | 713 UNAME_MACHINE="alphaev6" |
826 ;; | |
827 2-307) | |
828 UNAME_MACHINE="alphaev67" | |
829 ;; | 714 ;; |
830 esac | 715 esac |
831 | 716 |
832 objdump --private-headers $dummy | \ | 717 objdump --private-headers $dummy | \ |
833 grep ld.so.1 > /dev/null | 718 grep ld.so.1 > /dev/null |
838 rm -f $dummy.s $dummy | 723 rm -f $dummy.s $dummy |
839 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 | 724 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 |
840 elif test "${UNAME_MACHINE}" = "mips" ; then | 725 elif test "${UNAME_MACHINE}" = "mips" ; then |
841 cat >$dummy.c <<EOF | 726 cat >$dummy.c <<EOF |
842 #ifdef __cplusplus | 727 #ifdef __cplusplus |
843 #include <stdio.h> /* for printf() prototype */ | |
844 int main (int argc, char *argv[]) { | 728 int main (int argc, char *argv[]) { |
845 #else | 729 #else |
846 int main (argc, argv) int argc; char *argv[]; { | 730 int main (argc, argv) int argc; char *argv[]; { |
847 #endif | 731 #endif |
848 #ifdef __MIPSEB__ | 732 #ifdef __MIPSEB__ |
854 return 0; | 738 return 0; |
855 } | 739 } |
856 EOF | 740 EOF |
857 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 | 741 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
858 rm -f $dummy.c $dummy | 742 rm -f $dummy.c $dummy |
859 elif test "${UNAME_MACHINE}" = "s390"; then | |
860 echo s390-ibm-linux && exit 0 | |
861 elif test "${UNAME_MACHINE}" = "x86_64"; then | |
862 echo x86_64-unknown-linux-gnu && exit 0 | |
863 else | 743 else |
864 # Either a pre-BFD a.out linker (linux-gnuoldld) | 744 # Either a pre-BFD a.out linker (linux-gnuoldld) |
865 # or one that does not give us useful --help. | 745 # or one that does not give us useful --help. |
866 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. | 746 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. |
867 # If ld does not provide *any* "supported emulations:" | 747 # If ld does not provide *any* "supported emulations:" |
879 esac | 759 esac |
880 # Determine whether the default compiler is a.out or elf | 760 # Determine whether the default compiler is a.out or elf |
881 cat >$dummy.c <<EOF | 761 cat >$dummy.c <<EOF |
882 #include <features.h> | 762 #include <features.h> |
883 #ifdef __cplusplus | 763 #ifdef __cplusplus |
884 #include <stdio.h> /* for printf() prototype */ | |
885 int main (int argc, char *argv[]) { | 764 int main (int argc, char *argv[]) { |
886 #else | 765 #else |
887 int main (argc, argv) int argc; char *argv[]; { | 766 int main (argc, argv) int argc; char *argv[]; { |
888 #endif | 767 #endif |
889 #ifdef __ELF__ | 768 #ifdef __ELF__ |
902 return 0; | 781 return 0; |
903 } | 782 } |
904 EOF | 783 EOF |
905 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 | 784 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
906 rm -f $dummy.c $dummy | 785 rm -f $dummy.c $dummy |
907 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 | |
908 fi ;; | 786 fi ;; |
909 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions | 787 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions |
910 # are messed up and put the nodename in both sysname and nodename. | 788 # are messed up and put the nodename in both sysname and nodename. |
911 i?86:DYNIX/ptx:4*:*) | 789 i?86:DYNIX/ptx:4*:*) |
912 echo i386-sequent-sysv4 | 790 echo i386-sequent-sysv4 |
918 # I just have to hope. -- rms. | 796 # I just have to hope. -- rms. |
919 # Use sysv4.2uw... so that sysv4* matches it. | 797 # Use sysv4.2uw... so that sysv4* matches it. |
920 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | 798 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
921 exit 0 ;; | 799 exit 0 ;; |
922 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) | 800 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) |
923 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
924 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | 801 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
925 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | 802 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} |
926 else | 803 else |
927 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | 804 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} |
928 fi | 805 fi |
929 exit 0 ;; | 806 exit 0 ;; |
930 i?86:*:5:7*) | 807 i?86:*:5:7*) |
931 # Fixed at (any) Pentium or better | 808 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
932 UNAME_MACHINE=i586 | 809 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
933 if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then | 810 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586 |
934 echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} | 811 (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686 |
935 else | 812 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585 |
936 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} | 813 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} |
937 fi | |
938 exit 0 ;; | 814 exit 0 ;; |
939 i?86:*:3.2:*) | 815 i?86:*:3.2:*) |
940 if test -f /usr/options/cb.name; then | 816 if test -f /usr/options/cb.name; then |
941 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | 817 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
942 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | 818 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
952 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | 828 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
953 else | 829 else |
954 echo ${UNAME_MACHINE}-pc-sysv32 | 830 echo ${UNAME_MACHINE}-pc-sysv32 |
955 fi | 831 fi |
956 exit 0 ;; | 832 exit 0 ;; |
957 i?86:*DOS:*:*) | |
958 echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
959 exit 0 ;; | |
960 pc:*:*:*) | 833 pc:*:*:*) |
961 # Left here for compatibility: | |
962 # uname -m prints for DJGPP always 'pc', but it prints nothing about | 834 # uname -m prints for DJGPP always 'pc', but it prints nothing about |
963 # the processor, so we play safe by assuming i386. | 835 # the processor, so we play safe by assuming i386. |
964 echo i386-pc-msdosdjgpp | 836 echo i386-pc-msdosdjgpp |
965 exit 0 ;; | 837 exit 0 ;; |
966 Intel:Mach:3*:*) | 838 Intel:Mach:3*:*) |
1039 echo i860-stratus-sysv4 | 911 echo i860-stratus-sysv4 |
1040 exit 0 ;; | 912 exit 0 ;; |
1041 mc68*:A/UX:*:*) | 913 mc68*:A/UX:*:*) |
1042 echo m68k-apple-aux${UNAME_RELEASE} | 914 echo m68k-apple-aux${UNAME_RELEASE} |
1043 exit 0 ;; | 915 exit 0 ;; |
1044 news*:NEWS-OS:6*:*) | 916 news*:NEWS-OS:*:6*) |
1045 echo mips-sony-newsos6 | 917 echo mips-sony-newsos6 |
1046 exit 0 ;; | 918 exit 0 ;; |
1047 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | 919 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1048 if [ -d /usr/nec ]; then | 920 if [ -d /usr/nec ]; then |
1049 echo mips-nec-sysv${UNAME_RELEASE} | 921 echo mips-nec-sysv${UNAME_RELEASE} |
1069 Power*:Rhapsody:*:*) | 941 Power*:Rhapsody:*:*) |
1070 echo powerpc-apple-rhapsody${UNAME_RELEASE} | 942 echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1071 exit 0 ;; | 943 exit 0 ;; |
1072 *:Rhapsody:*:*) | 944 *:Rhapsody:*:*) |
1073 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 945 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1074 exit 0 ;; | |
1075 *:Darwin:*:*) | |
1076 echo `uname -p`-apple-darwin${UNAME_RELEASE} | |
1077 exit 0 ;; | |
1078 *:procnto*:*:* | *:QNX:[0123456789]*:*) | |
1079 if test "${UNAME_MACHINE}" = "x86pc"; then | |
1080 UNAME_MACHINE=pc | |
1081 fi | |
1082 echo `uname -p`-${UNAME_MACHINE}-nto-qnx | |
1083 exit 0 ;; | |
1084 *:QNX:*:4*) | |
1085 echo i386-pc-qnx | |
1086 exit 0 ;; | |
1087 NSR-[KW]:NONSTOP_KERNEL:*:*) | |
1088 echo nsr-tandem-nsk${UNAME_RELEASE} | |
1089 exit 0 ;; | |
1090 BS2000:POSIX*:*:*) | |
1091 echo bs2000-siemens-sysv | |
1092 exit 0 ;; | |
1093 DS/*:UNIX_System_V:*:*) | |
1094 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1095 exit 0 ;; | |
1096 *:Plan9:*:*) | |
1097 # "uname -m" is not consistent, so use $cputype instead. 386 | |
1098 # is converted to i386 for consistency with other x86 | |
1099 # operating systems. | |
1100 if test "$cputype" = "386"; then | |
1101 UNAME_MACHINE=i386 | |
1102 else | |
1103 UNAME_MACHINE="$cputype" | |
1104 fi | |
1105 echo ${UNAME_MACHINE}-unknown-plan9 | |
1106 exit 0 ;; | 946 exit 0 ;; |
1107 esac | 947 esac |
1108 | 948 |
1109 #echo '(No uname command or uname output not recognized.)' 1>&2 | 949 #echo '(No uname command or uname output not recognized.)' 1>&2 |
1110 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 950 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1241 echo c4-convex-bsd | 1081 echo c4-convex-bsd |
1242 exit 0 ;; | 1082 exit 0 ;; |
1243 esac | 1083 esac |
1244 fi | 1084 fi |
1245 | 1085 |
1246 cat >&2 <<EOF | 1086 #echo '(Unable to guess system type)' 1>&2 |
1247 $0: unable to guess system type | |
1248 | |
1249 The $version version of this script cannot recognize your system type. | |
1250 Please download the most up to date version of the config scripts: | |
1251 | |
1252 ftp://ftp.gnu.org/pub/gnu/config/ | |
1253 | |
1254 If the version you run ($0) is already up to date, please | |
1255 send the following data and any information you think might be | |
1256 pertinent to <config-patches@gnu.org> in order to provide the needed | |
1257 information to handle your system. | |
1258 | |
1259 config.guess version = $version | |
1260 | |
1261 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1262 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1263 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1264 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1265 | |
1266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | |
1267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null` | |
1268 | |
1269 hostinfo = `(hostinfo) 2>/dev/null` | |
1270 /bin/universe = `(/bin/universe) 2>/dev/null` | |
1271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | |
1272 /bin/arch = `(/bin/arch) 2>/dev/null` | |
1273 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | |
1274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | |
1275 | |
1276 UNAME_MACHINE = ${UNAME_MACHINE} | |
1277 UNAME_RELEASE = ${UNAME_RELEASE} | |
1278 UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1279 UNAME_VERSION = ${UNAME_VERSION} | |
1280 EOF | |
1281 | 1087 |
1282 exit 1 | 1088 exit 1 |
1283 | |
1284 # Local variables: | |
1285 # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1286 # time-stamp-start: "version='" | |
1287 # time-stamp-format: "%:y-%02m-%02d" | |
1288 # time-stamp-end: "'" | |
1289 # End: |