Codebase list x11-apps / 2118d96
Update xload config.{guess,sub}, adding avr32 support (closes: #536410) Julien Cristau 14 years ago
3 changed file(s) with 616 addition(s) and 381 deletion(s). Raw diff Collapse all Expand all
0 x11-apps (7.4+3) UNRELEASED; urgency=low
1
2 * Update xload config.{guess,sub}, adding avr32 support (closes: #536410)
3
4 -- Julien Cristau <jcristau@debian.org> Sun, 02 Aug 2009 16:10:47 +0200
5
06 x11-apps (7.4+2) unstable; urgency=low
17
28 * Add xedit 1.1.2, closes: #499085, #505064.
00 #! /bin/sh
1 #
2 # $NetBSD: config.guess,v 1.8 2004/08/14 19:13:55 schmonz Exp $
3 #
41 # Attempt to guess a canonical system name.
52 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
7
8 timestamp='2004-06-11'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-04-27'
97
108 # This file is free software; you can redistribute it and/or modify it
119 # under the terms of the GNU General Public License as published by
1917 #
2018 # You should have received a copy of the GNU General Public License
2119 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
2322 #
2423 # As a special exception to the GNU General Public License, if you
2524 # distribute this file as part of a program that contains a
2625 # configuration script generated by Autoconf, you may include it under
2726 # the same distribution terms that you use for the rest of that program.
27
2828
2929 # Originally written by Per Bothner <per@bothner.com>.
3030 # Please send patches to <config-patches@gnu.org>. Submit a context
5555 GNU config.guess ($timestamp)
5656
5757 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
59 Free Software Foundation, Inc.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6060
6161 This is free software; see the source for copying conditions. There is NO
6262 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
6868 while test $# -gt 0 ; do
6969 case $1 in
7070 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit 0 ;;
71 echo "$timestamp" ; exit ;;
7272 --version | -v )
73 echo "$version" ; exit 0 ;;
73 echo "$version" ; exit ;;
7474 --help | --h* | -h )
75 echo "$usage"; exit 0 ;;
75 echo "$usage"; exit ;;
7676 -- ) # Stop option processing
7777 shift; break ;;
7878 - ) # Use stdin as input.
106106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
125125 ;;
126126 ,,*) CC_FOR_BUILD=$CC ;;
127127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ;'
128 esac ; set_cc_for_build= ;'
129129
130130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131131 # (ghazi@noc.rutgers.edu 1994-08-24)
199199 # contains redundant information, the shorter form:
200200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201201 echo "${machine}-${os}${release}"
202 exit 0 ;;
203 amd64:OpenBSD:*:*)
204 echo x86_64-unknown-openbsd${UNAME_RELEASE}
205 exit 0 ;;
206 amiga:OpenBSD:*:*)
207 echo m68k-unknown-openbsd${UNAME_RELEASE}
208 exit 0 ;;
209 arc:OpenBSD:*:*)
210 echo mipsel-unknown-openbsd${UNAME_RELEASE}
211 exit 0 ;;
212 cats:OpenBSD:*:*)
213 echo arm-unknown-openbsd${UNAME_RELEASE}
214 exit 0 ;;
215 hp300:OpenBSD:*:*)
216 echo m68k-unknown-openbsd${UNAME_RELEASE}
217 exit 0 ;;
218 luna88k:OpenBSD:*:*)
219 echo m88k-unknown-openbsd${UNAME_RELEASE}
220 exit 0 ;;
221 mac68k:OpenBSD:*:*)
222 echo m68k-unknown-openbsd${UNAME_RELEASE}
223 exit 0 ;;
224 macppc:OpenBSD:*:*)
225 echo powerpc-unknown-openbsd${UNAME_RELEASE}
226 exit 0 ;;
227 mvme68k:OpenBSD:*:*)
228 echo m68k-unknown-openbsd${UNAME_RELEASE}
229 exit 0 ;;
230 mvme88k:OpenBSD:*:*)
231 echo m88k-unknown-openbsd${UNAME_RELEASE}
232 exit 0 ;;
233 mvmeppc:OpenBSD:*:*)
234 echo powerpc-unknown-openbsd${UNAME_RELEASE}
235 exit 0 ;;
236 pmax:OpenBSD:*:*)
237 echo mipsel-unknown-openbsd${UNAME_RELEASE}
238 exit 0 ;;
239 sgi:OpenBSD:*:*)
240 echo mipseb-unknown-openbsd${UNAME_RELEASE}
241 exit 0 ;;
242 sun3:OpenBSD:*:*)
243 echo m68k-unknown-openbsd${UNAME_RELEASE}
244 exit 0 ;;
245 wgrisc:OpenBSD:*:*)
246 echo mipsel-unknown-openbsd${UNAME_RELEASE}
247 exit 0 ;;
202 exit ;;
248203 *:OpenBSD:*:*)
249 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
250 exit 0 ;;
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
251207 *:ekkoBSD:*:*)
252208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
253 exit 0 ;;
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
254213 macppc:MirBSD:*:*)
255 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
256 exit 0 ;;
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
257216 *:MirBSD:*:*)
258217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
259 exit 0 ;;
218 exit ;;
260219 alpha:OSF1:*:*)
261220 case $UNAME_RELEASE in
262221 *4.0)
309268 # A Xn.n version is an unreleased experimental baselevel.
310269 # 1.2 uses "1.2" for uname -r.
311270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
312 exit 0 ;;
313 Alpha*:OpenVMS:*:*)
314 echo alpha-hp-vms
315 exit 0 ;;
271 exit ;;
316272 Alpha\ *:Windows_NT*:*)
317273 # How do we know it's Interix rather than the generic POSIX subsystem?
318274 # Should we change UNAME_MACHINE based on the output of uname instead
319275 # of the specific Alpha model?
320276 echo alpha-pc-interix
321 exit 0 ;;
277 exit ;;
322278 21064:Windows_NT:50:3)
323279 echo alpha-dec-winnt3.5
324 exit 0 ;;
280 exit ;;
325281 Amiga*:UNIX_System_V:4.0:*)
326282 echo m68k-unknown-sysv4
327 exit 0;;
283 exit ;;
328284 *:[Aa]miga[Oo][Ss]:*:*)
329285 echo ${UNAME_MACHINE}-unknown-amigaos
330 exit 0 ;;
286 exit ;;
331287 *:[Mm]orph[Oo][Ss]:*:*)
332288 echo ${UNAME_MACHINE}-unknown-morphos
333 exit 0 ;;
289 exit ;;
334290 *:OS/390:*:*)
335291 echo i370-ibm-openedition
336 exit 0 ;;
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
337296 *:OS400:*:*)
338297 echo powerpc-ibm-os400
339 exit 0 ;;
298 exit ;;
340299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
341300 echo arm-acorn-riscix${UNAME_RELEASE}
342 exit 0;;
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
343305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
344306 echo hppa1.1-hitachi-hiuxmpp
345 exit 0;;
307 exit ;;
346308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
347309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
348310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
350312 else
351313 echo pyramid-pyramid-bsd
352314 fi
353 exit 0 ;;
315 exit ;;
354316 NILE*:*:*:dcosx)
355317 echo pyramid-pyramid-svr4
356 exit 0 ;;
318 exit ;;
357319 DRS?6000:unix:4.0:6*)
358320 echo sparc-icl-nx6
359 exit 0 ;;
360 DRS?6000:UNIX_SV:4.2*:7*)
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
361323 case `/usr/bin/uname -p` in
362 sparc) echo sparc-icl-nx7 && exit 0 ;;
324 sparc) echo sparc-icl-nx7; exit ;;
363325 esac ;;
326 s390x:SunOS:*:*)
327 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
364329 sun4H:SunOS:5.*:*)
365330 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
366 exit 0 ;;
331 exit ;;
367332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
368333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
369 exit 0 ;;
370 i86pc:SunOS:5.*:*)
371 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
372 exit 0 ;;
334 exit ;;
335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
336 eval $set_cc_for_build
337 SUN_ARCH="i386"
338 # If there is a compiler, see if it is configured for 64-bit objects.
339 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
340 # This test works for both compilers.
341 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
342 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
343 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
344 grep IS_64BIT_ARCH >/dev/null
345 then
346 SUN_ARCH="x86_64"
347 fi
348 fi
349 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
350 exit ;;
373351 sun4*:SunOS:6*:*)
374352 # According to config.sub, this is the proper way to canonicalize
375353 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
376354 # it's likely to be more like Solaris than SunOS4.
377355 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
378 exit 0 ;;
356 exit ;;
379357 sun4*:SunOS:*:*)
380358 case "`/usr/bin/arch -k`" in
381359 Series*|S4*)
384362 esac
385363 # Japanese Language versions have a version number like `4.1.3-JL'.
386364 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
387 exit 0 ;;
365 exit ;;
388366 sun3*:SunOS:*:*)
389367 echo m68k-sun-sunos${UNAME_RELEASE}
390 exit 0 ;;
368 exit ;;
391369 sun*:*:4.2BSD:*)
392370 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
393371 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
399377 echo sparc-sun-sunos${UNAME_RELEASE}
400378 ;;
401379 esac
402 exit 0 ;;
380 exit ;;
403381 aushp:SunOS:*:*)
404382 echo sparc-auspex-sunos${UNAME_RELEASE}
405 exit 0 ;;
383 exit ;;
406384 # The situation for MiNT is a little confusing. The machine name
407385 # can be virtually everything (everything which is not
408386 # "atarist" or "atariste" at least should have a processor
413391 # be no problem.
414392 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
415393 echo m68k-atari-mint${UNAME_RELEASE}
416 exit 0 ;;
394 exit ;;
417395 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
418396 echo m68k-atari-mint${UNAME_RELEASE}
419 exit 0 ;;
397 exit ;;
420398 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
421399 echo m68k-atari-mint${UNAME_RELEASE}
422 exit 0 ;;
400 exit ;;
423401 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
424402 echo m68k-milan-mint${UNAME_RELEASE}
425 exit 0 ;;
403 exit ;;
426404 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
427405 echo m68k-hades-mint${UNAME_RELEASE}
428 exit 0 ;;
406 exit ;;
429407 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
430408 echo m68k-unknown-mint${UNAME_RELEASE}
431 exit 0 ;;
409 exit ;;
432410 m68k:machten:*:*)
433411 echo m68k-apple-machten${UNAME_RELEASE}
434 exit 0 ;;
412 exit ;;
435413 powerpc:machten:*:*)
436414 echo powerpc-apple-machten${UNAME_RELEASE}
437 exit 0 ;;
415 exit ;;
438416 RISC*:Mach:*:*)
439417 echo mips-dec-mach_bsd4.3
440 exit 0 ;;
418 exit ;;
441419 RISC*:ULTRIX:*:*)
442420 echo mips-dec-ultrix${UNAME_RELEASE}
443 exit 0 ;;
421 exit ;;
444422 VAX*:ULTRIX*:*:*)
445423 echo vax-dec-ultrix${UNAME_RELEASE}
446 exit 0 ;;
424 exit ;;
447425 2020:CLIX:*:* | 2430:CLIX:*:*)
448426 echo clipper-intergraph-clix${UNAME_RELEASE}
449 exit 0 ;;
427 exit ;;
450428 mips:*:*:UMIPS | mips:*:*:RISCos)
451429 eval $set_cc_for_build
452430 sed 's/^ //' << EOF >$dummy.c
470448 exit (-1);
471449 }
472450 EOF
473 $CC_FOR_BUILD -o $dummy $dummy.c \
474 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
475 && exit 0
451 $CC_FOR_BUILD -o $dummy $dummy.c &&
452 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
453 SYSTEM_NAME=`$dummy $dummyarg` &&
454 { echo "$SYSTEM_NAME"; exit; }
476455 echo mips-mips-riscos${UNAME_RELEASE}
477 exit 0 ;;
456 exit ;;
478457 Motorola:PowerMAX_OS:*:*)
479458 echo powerpc-motorola-powermax
480 exit 0 ;;
459 exit ;;
481460 Motorola:*:4.3:PL8-*)
482461 echo powerpc-harris-powermax
483 exit 0 ;;
462 exit ;;
484463 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
485464 echo powerpc-harris-powermax
486 exit 0 ;;
465 exit ;;
487466 Night_Hawk:Power_UNIX:*:*)
488467 echo powerpc-harris-powerunix
489 exit 0 ;;
468 exit ;;
490469 m88k:CX/UX:7*:*)
491470 echo m88k-harris-cxux7
492 exit 0 ;;
471 exit ;;
493472 m88k:*:4*:R4*)
494473 echo m88k-motorola-sysv4
495 exit 0 ;;
474 exit ;;
496475 m88k:*:3*:R3*)
497476 echo m88k-motorola-sysv3
498 exit 0 ;;
477 exit ;;
499478 AViiON:dgux:*:*)
500479 # DG/UX returns AViiON for all architectures
501480 UNAME_PROCESSOR=`/usr/bin/uname -p`
511490 else
512491 echo i586-dg-dgux${UNAME_RELEASE}
513492 fi
514 exit 0 ;;
493 exit ;;
515494 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
516495 echo m88k-dolphin-sysv3
517 exit 0 ;;
496 exit ;;
518497 M88*:*:R3*:*)
519498 # Delta 88k system running SVR3
520499 echo m88k-motorola-sysv3
521 exit 0 ;;
500 exit ;;
522501 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
523502 echo m88k-tektronix-sysv3
524 exit 0 ;;
503 exit ;;
525504 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
526505 echo m68k-tektronix-bsd
527 exit 0 ;;
506 exit ;;
528507 *:IRIX*:*:*)
529508 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
530 exit 0 ;;
509 exit ;;
531510 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
532 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
533 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
511 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
512 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
534513 i*86:AIX:*:*)
535514 echo i386-ibm-aix
536 exit 0 ;;
515 exit ;;
537516 ia64:AIX:*:*)
538517 if [ -x /usr/bin/oslevel ] ; then
539518 IBM_REV=`/usr/bin/oslevel`
541520 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
542521 fi
543522 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
544 exit 0 ;;
523 exit ;;
545524 *:AIX:2:3)
546525 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
547526 eval $set_cc_for_build
556535 exit(0);
557536 }
558537 EOF
559 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
560 echo rs6000-ibm-aix3.2.5
538 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
539 then
540 echo "$SYSTEM_NAME"
541 else
542 echo rs6000-ibm-aix3.2.5
543 fi
561544 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
562545 echo rs6000-ibm-aix3.2.4
563546 else
564547 echo rs6000-ibm-aix3.2
565548 fi
566 exit 0 ;;
567 *:AIX:*:[45])
549 exit ;;
550 *:AIX:*:[456])
568551 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
569552 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
570553 IBM_ARCH=rs6000
577560 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
578561 fi
579562 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
580 exit 0 ;;
563 exit ;;
581564 *:AIX:*:*)
582565 echo rs6000-ibm-aix
583 exit 0 ;;
566 exit ;;
584567 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
585568 echo romp-ibm-bsd4.4
586 exit 0 ;;
569 exit ;;
587570 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
588571 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
589 exit 0 ;; # report: romp-ibm BSD 4.3
572 exit ;; # report: romp-ibm BSD 4.3
590573 *:BOSX:*:*)
591574 echo rs6000-bull-bosx
592 exit 0 ;;
575 exit ;;
593576 DPX/2?00:B.O.S.:*:*)
594577 echo m68k-bull-sysv3
595 exit 0 ;;
578 exit ;;
596579 9000/[34]??:4.3bsd:1.*:*)
597580 echo m68k-hp-bsd
598 exit 0 ;;
581 exit ;;
599582 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
600583 echo m68k-hp-bsd4.4
601 exit 0 ;;
584 exit ;;
602585 9000/[34678]??:HP-UX:*:*)
603586 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
604587 case "${UNAME_MACHINE}" in
660643 esac
661644 if [ ${HP_ARCH} = "hppa2.0w" ]
662645 then
663 # avoid double evaluation of $set_cc_for_build
664 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
665 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
646 eval $set_cc_for_build
647
648 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
649 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
650 # generating 64-bit code. GNU and HP use different nomenclature:
651 #
652 # $ CC_FOR_BUILD=cc ./config.guess
653 # => hppa2.0w-hp-hpux11.23
654 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
655 # => hppa64-hp-hpux11.23
656
657 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
658 grep __LP64__ >/dev/null
666659 then
667660 HP_ARCH="hppa2.0w"
668661 else
670663 fi
671664 fi
672665 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
673 exit 0 ;;
666 exit ;;
674667 ia64:HP-UX:*:*)
675668 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
676669 echo ia64-hp-hpux${HPUX_REV}
677 exit 0 ;;
670 exit ;;
678671 3050*:HI-UX:*:*)
679672 eval $set_cc_for_build
680673 sed 's/^ //' << EOF >$dummy.c
702695 exit (0);
703696 }
704697 EOF
705 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
698 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
699 { echo "$SYSTEM_NAME"; exit; }
706700 echo unknown-hitachi-hiuxwe2
707 exit 0 ;;
701 exit ;;
708702 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
709703 echo hppa1.1-hp-bsd
710 exit 0 ;;
704 exit ;;
711705 9000/8??:4.3bsd:*:*)
712706 echo hppa1.0-hp-bsd
713 exit 0 ;;
707 exit ;;
714708 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
715709 echo hppa1.0-hp-mpeix
716 exit 0 ;;
710 exit ;;
717711 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
718712 echo hppa1.1-hp-osf
719 exit 0 ;;
713 exit ;;
720714 hp8??:OSF1:*:*)
721715 echo hppa1.0-hp-osf
722 exit 0 ;;
716 exit ;;
723717 i*86:OSF1:*:*)
724718 if [ -x /usr/sbin/sysversion ] ; then
725719 echo ${UNAME_MACHINE}-unknown-osf1mk
726720 else
727721 echo ${UNAME_MACHINE}-unknown-osf1
728722 fi
729 exit 0 ;;
723 exit ;;
730724 parisc*:Lites*:*:*)
731725 echo hppa1.1-hp-lites
732 exit 0 ;;
726 exit ;;
733727 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
734728 echo c1-convex-bsd
735 exit 0 ;;
729 exit ;;
736730 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
737731 if getsysinfo -f scalar_acc
738732 then echo c32-convex-bsd
739733 else echo c2-convex-bsd
740734 fi
741 exit 0 ;;
735 exit ;;
742736 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
743737 echo c34-convex-bsd
744 exit 0 ;;
738 exit ;;
745739 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
746740 echo c38-convex-bsd
747 exit 0 ;;
741 exit ;;
748742 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
749743 echo c4-convex-bsd
750 exit 0 ;;
744 exit ;;
751745 CRAY*Y-MP:*:*:*)
752746 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753 exit 0 ;;
747 exit ;;
754748 CRAY*[A-Z]90:*:*:*)
755749 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
756750 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
757751 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
758752 -e 's/\.[^.]*$/.X/'
759 exit 0 ;;
753 exit ;;
760754 CRAY*TS:*:*:*)
761755 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762 exit 0 ;;
756 exit ;;
763757 CRAY*T3E:*:*:*)
764758 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 exit 0 ;;
759 exit ;;
766760 CRAY*SV1:*:*:*)
767761 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768 exit 0 ;;
762 exit ;;
769763 *:UNICOS/mp:*:*)
770 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771 exit 0 ;;
764 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 exit ;;
772766 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
773767 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
774768 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
775769 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
776770 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777 exit 0 ;;
771 exit ;;
778772 5000:UNIX_System_V:4.*:*)
779773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
780774 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
781775 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
782 exit 0 ;;
776 exit ;;
783777 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
784778 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
785 exit 0 ;;
779 exit ;;
786780 sparc*:BSD/OS:*:*)
787781 echo sparc-unknown-bsdi${UNAME_RELEASE}
788 exit 0 ;;
782 exit ;;
789783 *:BSD/OS:*:*)
790784 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
791 exit 0 ;;
785 exit ;;
792786 *:FreeBSD:*:*)
793 # Determine whether the default compiler uses glibc.
794 eval $set_cc_for_build
795 sed 's/^ //' << EOF >$dummy.c
796 #include <features.h>
797 #if __GLIBC__ >= 2
798 LIBC=gnu
799 #else
800 LIBC=
801 #endif
802 EOF
803 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
804 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
805 # FreeBSD's kernel, but not the complete OS.
806 case ${LIBC} in gnu) kernel_only='k' ;; esac
807 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
808 exit 0 ;;
787 case ${UNAME_MACHINE} in
788 pc98)
789 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
790 amd64)
791 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792 *)
793 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 esac
795 exit ;;
809796 i*:CYGWIN*:*)
810797 echo ${UNAME_MACHINE}-pc-cygwin
811 exit 0 ;;
812 i*:MINGW*:*)
798 exit ;;
799 *:MINGW*:*)
813800 echo ${UNAME_MACHINE}-pc-mingw32
814 exit 0 ;;
801 exit ;;
802 i*:windows32*:*)
803 # uname -m includes "-pc" on this system.
804 echo ${UNAME_MACHINE}-mingw32
805 exit ;;
815806 i*:PW*:*)
816807 echo ${UNAME_MACHINE}-pc-pw32
817 exit 0 ;;
818 x86:Interix*:[34]*)
819 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
820 exit 0 ;;
808 exit ;;
809 *:Interix*:[3456]*)
810 case ${UNAME_MACHINE} in
811 x86)
812 echo i586-pc-interix${UNAME_RELEASE}
813 exit ;;
814 EM64T | authenticamd | genuineintel)
815 echo x86_64-unknown-interix${UNAME_RELEASE}
816 exit ;;
817 IA64)
818 echo ia64-unknown-interix${UNAME_RELEASE}
819 exit ;;
820 esac ;;
821821 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
822822 echo i${UNAME_MACHINE}-pc-mks
823 exit 0 ;;
823 exit ;;
824824 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
825825 # How do we know it's Interix rather than the generic POSIX subsystem?
826826 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
827827 # UNAME_MACHINE based on the output of uname instead of i386?
828828 echo i586-pc-interix
829 exit 0 ;;
829 exit ;;
830830 i*:UWIN*:*)
831831 echo ${UNAME_MACHINE}-pc-uwin
832 exit 0 ;;
832 exit ;;
833 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
834 echo x86_64-unknown-cygwin
835 exit ;;
833836 p*:CYGWIN*:*)
834837 echo powerpcle-unknown-cygwin
835 exit 0 ;;
838 exit ;;
836839 prep*:SunOS:5.*:*)
837840 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
838 exit 0 ;;
841 exit ;;
839842 *:GNU:*:*)
840843 # the GNU system
841844 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
842 exit 0 ;;
845 exit ;;
843846 *:GNU/*:*:*)
844847 # other systems with GNU libc and userland
845848 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
846 exit 0 ;;
849 exit ;;
847850 i*86:Minix:*:*)
848851 echo ${UNAME_MACHINE}-pc-minix
849 exit 0 ;;
852 exit ;;
850853 arm*:Linux:*:*)
854 eval $set_cc_for_build
855 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
856 | grep -q __ARM_EABI__
857 then
858 echo ${UNAME_MACHINE}-unknown-linux-gnu
859 else
860 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
861 fi
862 exit ;;
863 avr32*:Linux:*:*)
851864 echo ${UNAME_MACHINE}-unknown-linux-gnu
852 exit 0 ;;
865 exit ;;
853866 cris:Linux:*:*)
854867 echo cris-axis-linux-gnu
855 exit 0 ;;
868 exit ;;
869 crisv32:Linux:*:*)
870 echo crisv32-axis-linux-gnu
871 exit ;;
872 frv:Linux:*:*)
873 echo frv-unknown-linux-gnu
874 exit ;;
856875 ia64:Linux:*:*)
857876 echo ${UNAME_MACHINE}-unknown-linux-gnu
858 exit 0 ;;
877 exit ;;
859878 m32r*:Linux:*:*)
860879 echo ${UNAME_MACHINE}-unknown-linux-gnu
861 exit 0 ;;
880 exit ;;
862881 m68*:Linux:*:*)
863882 echo ${UNAME_MACHINE}-unknown-linux-gnu
864 exit 0 ;;
883 exit ;;
865884 mips:Linux:*:*)
866885 eval $set_cc_for_build
867886 sed 's/^ //' << EOF >$dummy.c
878897 #endif
879898 #endif
880899 EOF
881 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
882 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
900 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
901 /^CPU/{
902 s: ::g
903 p
904 }'`"
905 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
883906 ;;
884907 mips64:Linux:*:*)
885908 eval $set_cc_for_build
897920 #endif
898921 #endif
899922 EOF
900 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
901 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
923 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
924 /^CPU/{
925 s: ::g
926 p
927 }'`"
928 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
902929 ;;
930 or32:Linux:*:*)
931 echo or32-unknown-linux-gnu
932 exit ;;
903933 ppc:Linux:*:*)
904934 echo powerpc-unknown-linux-gnu
905 exit 0 ;;
935 exit ;;
906936 ppc64:Linux:*:*)
907937 echo powerpc64-unknown-linux-gnu
908 exit 0 ;;
938 exit ;;
909939 alpha:Linux:*:*)
910940 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
911941 EV5) UNAME_MACHINE=alphaev5 ;;
919949 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
920950 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
921951 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
922 exit 0 ;;
952 exit ;;
953 padre:Linux:*:*)
954 echo sparc-unknown-linux-gnu
955 exit ;;
923956 parisc:Linux:*:* | hppa:Linux:*:*)
924957 # Look for CPU level
925958 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
927960 PA8*) echo hppa2.0-unknown-linux-gnu ;;
928961 *) echo hppa-unknown-linux-gnu ;;
929962 esac
930 exit 0 ;;
963 exit ;;
931964 parisc64:Linux:*:* | hppa64:Linux:*:*)
932965 echo hppa64-unknown-linux-gnu
933 exit 0 ;;
966 exit ;;
934967 s390:Linux:*:* | s390x:Linux:*:*)
935968 echo ${UNAME_MACHINE}-ibm-linux
936 exit 0 ;;
969 exit ;;
937970 sh64*:Linux:*:*)
938971 echo ${UNAME_MACHINE}-unknown-linux-gnu
939 exit 0 ;;
972 exit ;;
940973 sh*:Linux:*:*)
941974 echo ${UNAME_MACHINE}-unknown-linux-gnu
942 exit 0 ;;
975 exit ;;
943976 sparc:Linux:*:* | sparc64:Linux:*:*)
944977 echo ${UNAME_MACHINE}-unknown-linux-gnu
945 exit 0 ;;
978 exit ;;
979 vax:Linux:*:*)
980 echo ${UNAME_MACHINE}-dec-linux-gnu
981 exit ;;
946982 x86_64:Linux:*:*)
947983 echo x86_64-unknown-linux-gnu
948 exit 0 ;;
984 exit ;;
985 xtensa*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-gnu
987 exit ;;
949988 i*86:Linux:*:*)
950989 # The BFD linker knows what the default object file format is, so
951990 # first see if it will tell us. cd to the root directory to prevent
9631002 ;;
9641003 a.out-i386-linux)
9651004 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
966 exit 0 ;;
967 coff-i386)
968 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
969 exit 0 ;;
1005 exit ;;
9701006 "")
9711007 # Either a pre-BFD a.out linker (linux-gnuoldld) or
9721008 # one that does not give us useful --help.
9731009 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
974 exit 0 ;;
1010 exit ;;
9751011 esac
9761012 # Determine whether the default compiler is a.out or elf
9771013 eval $set_cc_for_build
9881024 LIBC=gnulibc1
9891025 # endif
9901026 #else
991 #ifdef __INTEL_COMPILER
1027 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
9921028 LIBC=gnu
9931029 #else
9941030 LIBC=gnuaout
9981034 LIBC=dietlibc
9991035 #endif
10001036 EOF
1001 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1002 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
1003 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
1037 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1038 /^LIBC/{
1039 s: ::g
1040 p
1041 }'`"
1042 test x"${LIBC}" != x && {
1043 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1044 exit
1045 }
1046 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
10041047 ;;
10051048 i*86:DYNIX/ptx:4*:*)
10061049 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10071050 # earlier versions are messed up and put the nodename in both
10081051 # sysname and nodename.
10091052 echo i386-sequent-sysv4
1010 exit 0 ;;
1053 exit ;;
10111054 i*86:UNIX_SV:4.2MP:2.*)
10121055 # Unixware is an offshoot of SVR4, but it has its own version
10131056 # number series starting with 2...
10151058 # I just have to hope. -- rms.
10161059 # Use sysv4.2uw... so that sysv4* matches it.
10171060 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1018 exit 0 ;;
1061 exit ;;
10191062 i*86:OS/2:*:*)
10201063 # If we were able to find `uname', then EMX Unix compatibility
10211064 # is probably installed.
10221065 echo ${UNAME_MACHINE}-pc-os2-emx
1023 exit 0 ;;
1066 exit ;;
10241067 i*86:XTS-300:*:STOP)
10251068 echo ${UNAME_MACHINE}-unknown-stop
1026 exit 0 ;;
1069 exit ;;
10271070 i*86:atheos:*:*)
10281071 echo ${UNAME_MACHINE}-unknown-atheos
1029 exit 0 ;;
1030 i*86:syllable:*:*)
1072 exit ;;
1073 i*86:syllable:*:*)
10311074 echo ${UNAME_MACHINE}-pc-syllable
1032 exit 0 ;;
1075 exit ;;
10331076 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
10341077 echo i386-unknown-lynxos${UNAME_RELEASE}
1035 exit 0 ;;
1078 exit ;;
10361079 i*86:*DOS:*:*)
10371080 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1038 exit 0 ;;
1081 exit ;;
10391082 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
10401083 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
10411084 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
10431086 else
10441087 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
10451088 fi
1046 exit 0 ;;
1047 i*86:*:5:[78]*)
1089 exit ;;
1090 i*86:*:5:[678]*)
1091 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10481092 case `/bin/uname -X | grep "^Machine"` in
10491093 *486*) UNAME_MACHINE=i486 ;;
10501094 *Pentium) UNAME_MACHINE=i586 ;;
10511095 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10521096 esac
10531097 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1054 exit 0 ;;
1098 exit ;;
10551099 i*86:*:3.2:*)
10561100 if test -f /usr/options/cb.name; then
10571101 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
10691113 else
10701114 echo ${UNAME_MACHINE}-pc-sysv32
10711115 fi
1072 exit 0 ;;
1116 exit ;;
10731117 pc:*:*:*)
10741118 # Left here for compatibility:
10751119 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1076 # the processor, so we play safe by assuming i386.
1077 echo i386-pc-msdosdjgpp
1078 exit 0 ;;
1120 # the processor, so we play safe by assuming i586.
1121 # Note: whatever this is, it MUST be the same as what config.sub
1122 # prints for the "djgpp" host, or else GDB configury will decide that
1123 # this is a cross-build.
1124 echo i586-pc-msdosdjgpp
1125 exit ;;
10791126 Intel:Mach:3*:*)
10801127 echo i386-pc-mach3
1081 exit 0 ;;
1128 exit ;;
10821129 paragon:*:*:*)
10831130 echo i860-intel-osf1
1084 exit 0 ;;
1131 exit ;;
10851132 i860:*:4.*:*) # i860-SVR4
10861133 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
10871134 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
10881135 else # Add other i860-SVR4 vendors below as they are discovered.
10891136 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
10901137 fi
1091 exit 0 ;;
1138 exit ;;
10921139 mini*:CTIX:SYS*5:*)
10931140 # "miniframe"
10941141 echo m68010-convergent-sysv
1095 exit 0 ;;
1142 exit ;;
10961143 mc68k:UNIX:SYSTEM5:3.51m)
10971144 echo m68k-convergent-sysv
1098 exit 0 ;;
1145 exit ;;
10991146 M680?0:D-NIX:5.3:*)
11001147 echo m68k-diab-dnix
1101 exit 0 ;;
1148 exit ;;
11021149 M68*:*:R3V[5678]*:*)
1103 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1104 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
1150 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1151 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
11051152 OS_REL=''
11061153 test -r /etc/.relid \
11071154 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11081155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1109 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1156 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
11101157 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1111 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1158 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11121159 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11131160 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && echo i486-ncr-sysv4 && exit 0 ;;
1161 && { echo i486-ncr-sysv4; exit; } ;;
1162 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1163 OS_REL='.3'
1164 test -r /etc/.relid \
1165 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1166 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1167 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1168 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1169 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1170 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1171 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11151172 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
11161173 echo m68k-unknown-lynxos${UNAME_RELEASE}
1117 exit 0 ;;
1174 exit ;;
11181175 mc68030:UNIX_System_V:4.*:*)
11191176 echo m68k-atari-sysv4
1120 exit 0 ;;
1177 exit ;;
11211178 TSUNAMI:LynxOS:2.*:*)
11221179 echo sparc-unknown-lynxos${UNAME_RELEASE}
1123 exit 0 ;;
1180 exit ;;
11241181 rs6000:LynxOS:2.*:*)
11251182 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1126 exit 0 ;;
1183 exit ;;
11271184 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11281185 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1129 exit 0 ;;
1186 exit ;;
11301187 SM[BE]S:UNIX_SV:*:*)
11311188 echo mips-dde-sysv${UNAME_RELEASE}
1132 exit 0 ;;
1189 exit ;;
11331190 RM*:ReliantUNIX-*:*:*)
11341191 echo mips-sni-sysv4
1135 exit 0 ;;
1192 exit ;;
11361193 RM*:SINIX-*:*:*)
11371194 echo mips-sni-sysv4
1138 exit 0 ;;
1195 exit ;;
11391196 *:SINIX-*:*:*)
11401197 if uname -p 2>/dev/null >/dev/null ; then
11411198 UNAME_MACHINE=`(uname -p) 2>/dev/null`
11431200 else
11441201 echo ns32k-sni-sysv
11451202 fi
1146 exit 0 ;;
1203 exit ;;
11471204 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11481205 # says <Richard.M.Bartel@ccMail.Census.GOV>
11491206 echo i586-unisys-sysv4
1150 exit 0 ;;
1207 exit ;;
11511208 *:UNIX_System_V:4*:FTX*)
11521209 # From Gerald Hewes <hewes@openmarket.com>.
11531210 # How about differentiating between stratus architectures? -djm
11541211 echo hppa1.1-stratus-sysv4
1155 exit 0 ;;
1212 exit ;;
11561213 *:*:*:FTX*)
11571214 # From seanf@swdc.stratus.com.
11581215 echo i860-stratus-sysv4
1159 exit 0 ;;
1216 exit ;;
1217 i*86:VOS:*:*)
1218 # From Paul.Green@stratus.com.
1219 echo ${UNAME_MACHINE}-stratus-vos
1220 exit ;;
11601221 *:VOS:*:*)
11611222 # From Paul.Green@stratus.com.
11621223 echo hppa1.1-stratus-vos
1163 exit 0 ;;
1224 exit ;;
11641225 mc68*:A/UX:*:*)
11651226 echo m68k-apple-aux${UNAME_RELEASE}
1166 exit 0 ;;
1227 exit ;;
11671228 news*:NEWS-OS:6*:*)
11681229 echo mips-sony-newsos6
1169 exit 0 ;;
1230 exit ;;
11701231 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11711232 if [ -d /usr/nec ]; then
11721233 echo mips-nec-sysv${UNAME_RELEASE}
11731234 else
11741235 echo mips-unknown-sysv${UNAME_RELEASE}
11751236 fi
1176 exit 0 ;;
1237 exit ;;
11771238 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11781239 echo powerpc-be-beos
1179 exit 0 ;;
1240 exit ;;
11801241 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
11811242 echo powerpc-apple-beos
1182 exit 0 ;;
1243 exit ;;
11831244 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
11841245 echo i586-pc-beos
1185 exit 0 ;;
1246 exit ;;
1247 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1248 echo i586-pc-haiku
1249 exit ;;
11861250 SX-4:SUPER-UX:*:*)
11871251 echo sx4-nec-superux${UNAME_RELEASE}
1188 exit 0 ;;
1252 exit ;;
11891253 SX-5:SUPER-UX:*:*)
11901254 echo sx5-nec-superux${UNAME_RELEASE}
1191 exit 0 ;;
1255 exit ;;
11921256 SX-6:SUPER-UX:*:*)
11931257 echo sx6-nec-superux${UNAME_RELEASE}
1194 exit 0 ;;
1258 exit ;;
1259 SX-7:SUPER-UX:*:*)
1260 echo sx7-nec-superux${UNAME_RELEASE}
1261 exit ;;
1262 SX-8:SUPER-UX:*:*)
1263 echo sx8-nec-superux${UNAME_RELEASE}
1264 exit ;;
1265 SX-8R:SUPER-UX:*:*)
1266 echo sx8r-nec-superux${UNAME_RELEASE}
1267 exit ;;
11951268 Power*:Rhapsody:*:*)
11961269 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1197 exit 0 ;;
1270 exit ;;
11981271 *:Rhapsody:*:*)
11991272 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1200 exit 0 ;;
1273 exit ;;
12011274 *:Darwin:*:*)
1202 case `uname -p` in
1203 *86) UNAME_PROCESSOR=i686 ;;
1204 powerpc) UNAME_PROCESSOR=powerpc ;;
1275 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1276 case $UNAME_PROCESSOR in
1277 unknown) UNAME_PROCESSOR=powerpc ;;
12051278 esac
12061279 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1207 exit 0 ;;
1280 exit ;;
12081281 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12091282 UNAME_PROCESSOR=`uname -p`
12101283 if test "$UNAME_PROCESSOR" = "x86"; then
12121285 UNAME_MACHINE=pc
12131286 fi
12141287 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1215 exit 0 ;;
1288 exit ;;
12161289 *:QNX:*:4*)
12171290 echo i386-pc-qnx
1218 exit 0 ;;
1291 exit ;;
1292 NSE-?:NONSTOP_KERNEL:*:*)
1293 echo nse-tandem-nsk${UNAME_RELEASE}
1294 exit ;;
12191295 NSR-?:NONSTOP_KERNEL:*:*)
12201296 echo nsr-tandem-nsk${UNAME_RELEASE}
1221 exit 0 ;;
1297 exit ;;
12221298 *:NonStop-UX:*:*)
12231299 echo mips-compaq-nonstopux
1224 exit 0 ;;
1300 exit ;;
12251301 BS2000:POSIX*:*:*)
12261302 echo bs2000-siemens-sysv
1227 exit 0 ;;
1303 exit ;;
12281304 DS/*:UNIX_System_V:*:*)
12291305 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1230 exit 0 ;;
1306 exit ;;
12311307 *:Plan9:*:*)
12321308 # "uname -m" is not consistent, so use $cputype instead. 386
12331309 # is converted to i386 for consistency with other x86
12381314 UNAME_MACHINE="$cputype"
12391315 fi
12401316 echo ${UNAME_MACHINE}-unknown-plan9
1241 exit 0 ;;
1317 exit ;;
12421318 *:TOPS-10:*:*)
12431319 echo pdp10-unknown-tops10
1244 exit 0 ;;
1320 exit ;;
12451321 *:TENEX:*:*)
12461322 echo pdp10-unknown-tenex
1247 exit 0 ;;
1323 exit ;;
12481324 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
12491325 echo pdp10-dec-tops20
1250 exit 0 ;;
1326 exit ;;
12511327 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
12521328 echo pdp10-xkl-tops20
1253 exit 0 ;;
1329 exit ;;
12541330 *:TOPS-20:*:*)
12551331 echo pdp10-unknown-tops20
1256 exit 0 ;;
1332 exit ;;
12571333 *:ITS:*:*)
12581334 echo pdp10-unknown-its
1259 exit 0 ;;
1335 exit ;;
12601336 SEI:*:*:SEIUX)
12611337 echo mips-sei-seiux${UNAME_RELEASE}
1262 exit 0 ;;
1338 exit ;;
12631339 *:DragonFly:*:*)
12641340 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1265 exit 0 ;;
1341 exit ;;
1342 *:*VMS:*:*)
1343 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1344 case "${UNAME_MACHINE}" in
1345 A*) echo alpha-dec-vms ; exit ;;
1346 I*) echo ia64-dec-vms ; exit ;;
1347 V*) echo vax-dec-vms ; exit ;;
1348 esac ;;
1349 *:XENIX:*:SysV)
1350 echo i386-pc-xenix
1351 exit ;;
1352 i*86:skyos:*:*)
1353 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1354 exit ;;
1355 i*86:rdos:*:*)
1356 echo ${UNAME_MACHINE}-pc-rdos
1357 exit ;;
1358 i*86:AROS:*:*)
1359 echo ${UNAME_MACHINE}-pc-aros
1360 exit ;;
12661361 esac
12671362
12681363 #echo '(No uname command or uname output not recognized.)' 1>&2
12941389 #endif
12951390
12961391 #if defined (__arm) && defined (__acorn) && defined (__unix)
1297 printf ("arm-acorn-riscix"); exit (0);
1392 printf ("arm-acorn-riscix\n"); exit (0);
12981393 #endif
12991394
13001395 #if defined (hp300) && !defined (hpux)
13831478 }
13841479 EOF
13851480
1386 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1481 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1482 { echo "$SYSTEM_NAME"; exit; }
13871483
13881484 # Apollos put the system type in the environment.
13891485
1390 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1486 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
13911487
13921488 # Convex versions that predate uname can use getsysinfo(1)
13931489
13961492 case `getsysinfo -f cpu_type` in
13971493 c1*)
13981494 echo c1-convex-bsd
1399 exit 0 ;;
1495 exit ;;
14001496 c2*)
14011497 if getsysinfo -f scalar_acc
14021498 then echo c32-convex-bsd
14031499 else echo c2-convex-bsd
14041500 fi
1405 exit 0 ;;
1501 exit ;;
14061502 c34*)
14071503 echo c34-convex-bsd
1408 exit 0 ;;
1504 exit ;;
14091505 c38*)
14101506 echo c38-convex-bsd
1411 exit 0 ;;
1507 exit ;;
14121508 c4*)
14131509 echo c4-convex-bsd
1414 exit 0 ;;
1510 exit ;;
14151511 esac
14161512 fi
14171513
14221518 the operating system you are using. It is advised that you
14231519 download the most up to date version of the config scripts from
14241520
1425 ftp://ftp.gnu.org/pub/gnu/config/
1521 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1522 and
1523 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
14261524
14271525 If the version you run ($0) is already up to date, please
14281526 send the following data and any information you think might be
00 #! /bin/sh
1 #
2 # $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $
3 #
41 # Configuration validation subroutine script.
52 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
7
8 timestamp='2004-03-12'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-04-17'
97
108 # This file is (in principle) common to ALL GNU software.
119 # The presence of a machine in this file suggests that SOME GNU software
2321 #
2422 # You should have received a copy of the GNU General Public License
2523 # along with this program; if not, write to the Free Software
26 # Foundation, Inc., 59 Temple Place - Suite 330,
27 # Boston, MA 02111-1307, USA.
28
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
2927 # As a special exception to the GNU General Public License, if you
3028 # distribute this file as part of a program that contains a
3129 # configuration script generated by Autoconf, you may include it under
3230 # the same distribution terms that you use for the rest of that program.
31
3332
3433 # Please send patches to <config-patches@gnu.org>. Submit a context
3534 # diff and a properly formatted ChangeLog entry.
7271 version="\
7372 GNU config.sub ($timestamp)
7473
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
76 Free Software Foundation, Inc.
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7776
7877 This is free software; see the source for copying conditions. There is NO
7978 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8584 while test $# -gt 0 ; do
8685 case $1 in
8786 --time-stamp | --time* | -t )
88 echo "$timestamp" ; exit 0 ;;
87 echo "$timestamp" ; exit ;;
8988 --version | -v )
90 echo "$version" ; exit 0 ;;
89 echo "$version" ; exit ;;
9190 --help | --h* | -h )
92 echo "$usage"; exit 0 ;;
91 echo "$usage"; exit ;;
9392 -- ) # Stop option processing
9493 shift; break ;;
9594 - ) # Use stdin as input.
101100 *local*)
102101 # First pass through any local machine types.
103102 echo $1
104 exit 0;;
103 exit ;;
105104
106105 * )
107106 break ;;
120119 # Here we must recognize all the valid KERNEL-OS combinations.
121120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122121 case $maybe_os in
123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
124 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 kopensolaris*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
125126 os=-$maybe_os
126127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127128 ;;
147148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis)
151 -apple | -axis | -knuth | -cray)
151152 os=
152153 basic_machine=$1
153154 ;;
172173 -hiux*)
173174 os=-hiuxwe2
174175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
175180 -sco5)
176181 os=-sco3.2v5
177182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186191 ;;
187192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
188197 # Don't forget version if it is 3.2v4 or newer.
189198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190199 ;;
232241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
233242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
234243 | am33_2.0 \
235 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
236246 | c4x | clipper \
237247 | d10v | d30v | dlx | dsp16xx \
238 | fr30 | frv \
248 | fido | fr30 | frv \
239249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240250 | i370 | i860 | i960 | ia64 \
241251 | ip2k | iq2000 \
242 | m32r | m32rle | m68000 | m68k | m88k | mcore \
252 | lm32 \
253 | m32c | m32r | m32rle | m68000 | m68k | m88k \
254 | maxq | mb | microblaze | mcore | mep | metag \
243255 | mips | mipsbe | mipseb | mipsel | mipsle \
244256 | mips16 \
245257 | mips64 | mips64el \
258 | mips64octeon | mips64octeonel \
259 | mips64orion | mips64orionel \
260 | mips64r5900 | mips64r5900el \
246261 | mips64vr | mips64vrel \
247 | mips64orion | mips64orionel \
248262 | mips64vr4100 | mips64vr4100el \
249263 | mips64vr4300 | mips64vr4300el \
250264 | mips64vr5000 | mips64vr5000el \
265 | mips64vr5900 | mips64vr5900el \
251266 | mipsisa32 | mipsisa32el \
252267 | mipsisa32r2 | mipsisa32r2el \
253268 | mipsisa64 | mipsisa64el \
256271 | mipsisa64sr71k | mipsisa64sr71kel \
257272 | mipstx39 | mipstx39el \
258273 | mn10200 | mn10300 \
274 | moxie \
275 | mt \
259276 | msp430 \
277 | nios | nios2 \
260278 | ns16k | ns32k \
261 | openrisc | or32 \
279 | or32 \
262280 | pdp10 | pdp11 | pj | pjl \
263281 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
264282 | pyramid \
265 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
283 | score \
284 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
266285 | sh64 | sh64le \
267 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
268 | strongarm \
286 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
287 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
288 | spu | strongarm \
269289 | tahoe | thumb | tic4x | tic80 | tron \
270290 | v850 | v850e \
271291 | we32k \
272 | x86 | xscale | xstormy16 | xtensa \
273 | z8k)
292 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
293 | z8k | z80)
274294 basic_machine=$basic_machine-unknown
275295 ;;
276296 m6811 | m68hc11 | m6812 | m68hc12)
279299 os=-none
280300 ;;
281301 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
302 ;;
303 ms1)
304 basic_machine=mt-unknown
282305 ;;
283306
284307 # We use `pc' rather than `unknown'
299322 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
300323 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
301324 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
302 | avr-* \
303 | bs2000-* \
325 | avr-* | avr32-* \
326 | bfin-* | bs2000-* \
304327 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
305 | clipper-* | cydra-* \
328 | clipper-* | craynv-* | cydra-* \
306329 | d10v-* | d30v-* | dlx-* \
307330 | elxsi-* \
308 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
331 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
309332 | h8300-* | h8500-* \
310333 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
311334 | i*86-* | i860-* | i960-* | ia64-* \
312335 | ip2k-* | iq2000-* \
313 | m32r-* | m32rle-* \
336 | lm32-* \
337 | m32c-* | m32r-* | m32rle-* \
314338 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
315 | m88110-* | m88k-* | mcore-* \
339 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
316340 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
317341 | mips16-* \
318342 | mips64-* | mips64el-* \
343 | mips64octeon-* | mips64octeonel-* \
344 | mips64orion-* | mips64orionel-* \
345 | mips64r5900-* | mips64r5900el-* \
319346 | mips64vr-* | mips64vrel-* \
320 | mips64orion-* | mips64orionel-* \
321347 | mips64vr4100-* | mips64vr4100el-* \
322348 | mips64vr4300-* | mips64vr4300el-* \
323349 | mips64vr5000-* | mips64vr5000el-* \
350 | mips64vr5900-* | mips64vr5900el-* \
324351 | mipsisa32-* | mipsisa32el-* \
325352 | mipsisa32r2-* | mipsisa32r2el-* \
326353 | mipsisa64-* | mipsisa64el-* \
328355 | mipsisa64sb1-* | mipsisa64sb1el-* \
329356 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
330357 | mipstx39-* | mipstx39el-* \
358 | mmix-* \
359 | mt-* \
331360 | msp430-* \
332 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
361 | nios-* | nios2-* \
362 | none-* | np1-* | ns16k-* | ns32k-* \
333363 | orion-* \
334364 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
335365 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
336366 | pyramid-* \
337367 | romp-* | rs6000-* \
338 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
368 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
339369 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
340 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
341 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
370 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
371 | sparclite-* \
372 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
342373 | tahoe-* | thumb-* \
343 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
374 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
344375 | tron-* \
345376 | v850-* | v850e-* | vax-* \
346377 | we32k-* \
347 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
348 | xtensa-* \
378 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
379 | xstormy16-* | xtensa*-* \
349380 | ymp-* \
350 | z8k-*)
381 | z8k-* | z80-*)
382 ;;
383 # Recognize the basic CPU types without company name, with glob match.
384 xtensa*)
385 basic_machine=$basic_machine-unknown
351386 ;;
352387 # Recognize the various machine names and aliases which stand
353388 # for a CPU type and a company and sometimes even an OS.
411446 basic_machine=m68k-apollo
412447 os=-bsd
413448 ;;
449 aros)
450 basic_machine=i386-pc
451 os=-aros
452 ;;
414453 aux)
415454 basic_machine=m68k-apple
416455 os=-aux
419458 basic_machine=ns32k-sequent
420459 os=-dynix
421460 ;;
461 blackfin)
462 basic_machine=bfin-unknown
463 os=-linux
464 ;;
465 blackfin-*)
466 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
467 os=-linux
468 ;;
422469 c90)
423470 basic_machine=c90-cray
424471 os=-unicos
425472 ;;
473 cegcc)
474 basic_machine=arm-unknown
475 os=-cegcc
476 ;;
426477 convex-c1)
427478 basic_machine=c1-convex
428479 os=-bsd
447498 basic_machine=j90-cray
448499 os=-unicos
449500 ;;
450 cr16c)
451 basic_machine=cr16c-unknown
501 craynv)
502 basic_machine=craynv-cray
503 os=-unicosmp
504 ;;
505 cr16)
506 basic_machine=cr16-unknown
452507 os=-elf
453508 ;;
454509 crds | unos)
455510 basic_machine=m68k-crds
511 ;;
512 crisv32 | crisv32-* | etraxfs*)
513 basic_machine=crisv32-axis
456514 ;;
457515 cris | cris-* | etrax*)
458516 basic_machine=cris-axis
482540 delta88)
483541 basic_machine=m88k-motorola
484542 os=-sysv3
543 ;;
544 dicos)
545 basic_machine=i686-pc
546 os=-dicos
547 ;;
548 djgpp)
549 basic_machine=i586-pc
550 os=-msdosdjgpp
485551 ;;
486552 dpx20 | dpx20-*)
487553 basic_machine=rs6000-bull
633699 basic_machine=m68k-isi
634700 os=-sysv
635701 ;;
702 m68knommu)
703 basic_machine=m68k-unknown
704 os=-linux
705 ;;
706 m68knommu-*)
707 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
708 os=-linux
709 ;;
636710 m88k-omron*)
637711 basic_machine=m88k-omron
638712 ;;
648722 basic_machine=i386-pc
649723 os=-mingw32
650724 ;;
725 mingw32ce)
726 basic_machine=arm-unknown
727 os=-mingw32ce
728 ;;
651729 miniframe)
652730 basic_machine=m68000-convergent
653731 ;;
661739 mips3*)
662740 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
663741 ;;
664 mmix*)
665 basic_machine=mmix-knuth
666 os=-mmixware
667 ;;
668742 monitor)
669743 basic_machine=m68k-rom68k
670744 os=-coff
676750 msdos)
677751 basic_machine=i386-pc
678752 os=-msdos
753 ;;
754 ms1-*)
755 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
679756 ;;
680757 mvs)
681758 basic_machine=i370-ibm
745822 np1)
746823 basic_machine=np1-gould
747824 ;;
748 nv1)
749 basic_machine=nv1-cray
750 os=-unicosmp
751 ;;
752825 nsr-tandem)
753826 basic_machine=nsr-tandem
754827 ;;
756829 basic_machine=hppa1.1-oki
757830 os=-proelf
758831 ;;
759 or32 | or32-*)
832 openrisc | openrisc-*)
760833 basic_machine=or32-unknown
761 os=-coff
762834 ;;
763835 os400)
764836 basic_machine=powerpc-ibm
780852 basic_machine=i860-intel
781853 os=-osf
782854 ;;
855 parisc)
856 basic_machine=hppa-unknown
857 os=-linux
858 ;;
859 parisc-*)
860 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
861 os=-linux
862 ;;
783863 pbd)
784864 basic_machine=sparc-tti
785865 ;;
788868 ;;
789869 pc532 | pc532-*)
790870 basic_machine=ns32k-pc532
871 ;;
872 pc98)
873 basic_machine=i386-pc
874 ;;
875 pc98-*)
876 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
791877 ;;
792878 pentium | p5 | k5 | k6 | nexgen | viac3)
793879 basic_machine=i586-pc
845931 basic_machine=i586-unknown
846932 os=-pw32
847933 ;;
934 rdos)
935 basic_machine=i386-pc
936 os=-rdos
937 ;;
848938 rom68k)
849939 basic_machine=m68k-rom68k
850940 os=-coff
871961 sb1el)
872962 basic_machine=mipsisa64sb1el-unknown
873963 ;;
964 sde)
965 basic_machine=mipsisa32-sde
966 os=-elf
967 ;;
874968 sei)
875969 basic_machine=mips-sei
876970 os=-seiux
882976 basic_machine=sh-hitachi
883977 os=-hms
884978 ;;
979 sh5el)
980 basic_machine=sh5le-unknown
981 ;;
885982 sh64)
886983 basic_machine=sh64-unknown
887984 ;;
9711068 basic_machine=tic6x-unknown
9721069 os=-coff
9731070 ;;
1071 tile*)
1072 basic_machine=tile-unknown
1073 os=-linux-gnu
1074 ;;
9741075 tx39)
9751076 basic_machine=mipstx39-unknown
9761077 ;;
10311132 basic_machine=hppa1.1-winbond
10321133 os=-proelf
10331134 ;;
1135 xbox)
1136 basic_machine=i686-pc
1137 os=-mingw32
1138 ;;
10341139 xps | xps100)
10351140 basic_machine=xps100-honeywell
10361141 ;;
10401145 ;;
10411146 z8k-*-coff)
10421147 basic_machine=z8k-unknown
1148 os=-sim
1149 ;;
1150 z80-*-coff)
1151 basic_machine=z80-unknown
10431152 os=-sim
10441153 ;;
10451154 none)
10611170 romp)
10621171 basic_machine=romp-ibm
10631172 ;;
1173 mmix)
1174 basic_machine=mmix-knuth
1175 ;;
10641176 rs6000)
10651177 basic_machine=rs6000-ibm
10661178 ;;
10771189 we32k)
10781190 basic_machine=we32k-att
10791191 ;;
1080 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1192 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
10811193 basic_machine=sh-unknown
10821194 ;;
1083 sh5el)
1084 basic_machine=sh5le-unknown
1085 ;;
1086 sh64)
1087 basic_machine=sh64-unknown
1088 ;;
1089 sparc | sparcv8 | sparcv9 | sparcv9b)
1195 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
10901196 basic_machine=sparc-sun
10911197 ;;
10921198 cydra)
11551261 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
11561262 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
11571263 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1264 | -kopensolaris* \
11581265 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1159 | -aos* \
1266 | -aos* | -aros* \
11601267 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
11611268 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1162 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1269 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1270 | -openbsd* | -solidbsd* \
11631271 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
11641272 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
11651273 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
11661274 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1167 | -chorusos* | -chorusrdb* \
1275 | -chorusos* | -chorusrdb* | -cegcc* \
11681276 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1169 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1277 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1278 | -uxpv* | -beos* | -mpeix* | -udk* \
11701279 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
11711280 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
11721281 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
11731282 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
11741283 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1175 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1284 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1285 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
11761286 # Remember, each alternative MUST END IN *, to match a version number.
11771287 ;;
11781288 -qnx*)
11901300 os=`echo $os | sed -e 's|nto|nto-qnx|'`
11911301 ;;
11921302 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1193 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1303 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
11941304 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
11951305 ;;
11961306 -mac*)
12981408 ;;
12991409 -kaos*)
13001410 os=-kaos
1411 ;;
1412 -zvmoe)
1413 os=-zvmoe
1414 ;;
1415 -dicos*)
1416 os=-dicos
13011417 ;;
13021418 -none)
13031419 ;;
13211437 # system, and we'll never get to this point.
13221438
13231439 case $basic_machine in
1440 score-*)
1441 os=-elf
1442 ;;
1443 spu-*)
1444 os=-elf
1445 ;;
13241446 *-acorn)
13251447 os=-riscix1.2
13261448 ;;
13301452 arm*-semi)
13311453 os=-aout
13321454 ;;
1333 c4x-* | tic4x-*)
1334 os=-coff
1335 ;;
1455 c4x-* | tic4x-*)
1456 os=-coff
1457 ;;
13361458 # This must come before the *-dec entry.
13371459 pdp10-*)
13381460 os=-tops20
13581480 m68*-cisco)
13591481 os=-aout
13601482 ;;
1483 mep-*)
1484 os=-elf
1485 ;;
13611486 mips*-cisco)
13621487 os=-elf
13631488 ;;
13761501 *-be)
13771502 os=-beos
13781503 ;;
1504 *-haiku)
1505 os=-haiku
1506 ;;
13791507 *-ibm)
13801508 os=-aix
1509 ;;
1510 *-knuth)
1511 os=-mmixware
13811512 ;;
13821513 *-wec)
13831514 os=-proelf
15441675 esac
15451676
15461677 echo $basic_machine$os
1547 exit 0
1678 exit
15481679
15491680 # Local variables:
15501681 # eval: (add-hook 'write-file-hooks 'time-stamp)