1 diff -urN jpeg.old/config.guess jpeg.dev/config.guess
2 --- jpeg.old/config.guess 2006-08-04 22:46:02.473275944 +0200
3 +++ jpeg.dev/config.guess 2006-08-04 22:53:56.904151488 +0200
6 # Attempt to guess a canonical system name.
7 -# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
9 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
10 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
12 +timestamp='2005-04-22'
14 # This file is free software; you can redistribute it and/or modify it
15 # under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of the License, or
18 # configuration script generated by Autoconf, you may include it under
19 # the same distribution terms that you use for the rest of that program.
21 -# Written by Per Bothner <bothner@cygnus.com>.
22 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
23 +# Originally written by Per Bothner <per@bothner.com>.
24 +# Please send patches to <config-patches@gnu.org>. Submit a context
25 +# diff and a properly formatted ChangeLog entry.
27 # This script attempts to guess a canonical system name similar to
28 # config.sub. If it succeeds, it prints the system name on stdout, and
29 # exits with 0. Otherwise, it exits with 1.
31 # The plan is that this can be called by configure scripts if you
32 -# don't specify an explicit system type (host/target name).
34 -# Only a few systems have been added to this list; please add others
35 -# (but try to keep the structure clean).
37 +# don't specify an explicit build system type.
39 +me=`echo "$0" | sed -e 's,.*/,,'`
44 +Output the configuration name of the system \`$me' is run on.
47 + -h, --help print this help, then exit
48 + -t, --time-stamp print date of last modification, then exit
49 + -v, --version print version number, then exit
51 +Report bugs and patches to <config-patches@gnu.org>."
54 +GNU config.guess ($timestamp)
56 +Originally written by Per Bothner.
57 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
58 +Free Software Foundation, Inc.
60 +This is free software; see the source for copying conditions. There is NO
61 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 +Try \`$me --help' for more information."
67 +while test $# -gt 0 ; do
69 + --time-stamp | --time* | -t )
70 + echo "$timestamp" ; exit 0 ;;
72 + echo "$version" ; exit 0 ;;
73 + --help | --h* | -h )
74 + echo "$usage"; exit 0 ;;
75 + -- ) # Stop option processing
77 + - ) # Use stdin as input.
80 + echo "$me: invalid option $1$help" >&2
87 +if test $# != 0; then
88 + echo "$me: too many arguments$help" >&2
94 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
95 +# compiler to aid in system detection is discouraged as it requires
96 +# temporary files to be created and, as you can see below, it is a
97 +# headache to deal with in a portable fashion.
99 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
100 +# use `HOST_CC' if defined, but it is deprecated.
102 +# Portable tmp directory creation inspired by the Autoconf team.
105 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
106 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
109 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
110 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
111 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
114 +case $CC_FOR_BUILD,$HOST_CC,$CC in
115 + ,,) echo "int x;" > $dummy.c ;
116 + for c in cc gcc c89 c99 ; do
117 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
118 + CC_FOR_BUILD="$c"; break ;
121 + if test x"$CC_FOR_BUILD" = x ; then
122 + CC_FOR_BUILD=no_compiler_found ;
125 + ,,*) CC_FOR_BUILD=$CC ;;
126 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
129 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
130 -# (ghazi@noc.rutgers.edu 8/24/94.)
131 +# (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142 -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
144 # Note: order is significant - the case branches are not exclusive.
146 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
148 + # NetBSD (nbsd) targets should (where applicable) match one or
149 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
150 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
151 + # switched to ELF, *-*-netbsd* would select the old
152 + # object file format. This provides both forward
153 + # compatibility and a consistent mechanism for selecting the
154 + # object file format.
156 + # Note: NetBSD doesn't particularly care about the vendor
157 + # portion of the name. We always set it to "unknown".
158 + sysctl="sysctl -n hw.machine_arch"
159 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
160 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
161 + case "${UNAME_MACHINE_ARCH}" in
162 + armeb) machine=armeb-unknown ;;
163 + arm*) machine=arm-unknown ;;
164 + sh3el) machine=shl-unknown ;;
165 + sh3eb) machine=sh-unknown ;;
166 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
168 + # The Operating System including object format, if it has switched
169 + # to ELF recently, or will in the future.
170 + case "${UNAME_MACHINE_ARCH}" in
171 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
172 + eval $set_cc_for_build
173 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
174 + | grep __ELF__ >/dev/null
176 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
177 + # Return netbsd for either. FIX?
188 + # Debian GNU/NetBSD machines have a different userland, and
189 + # thus, need a distinct triplet. However, they do not need
190 + # kernel version information, so it can be replaced with a
191 + # suitable tag, in the style of linux-gnu.
192 + case "${UNAME_VERSION}" in
197 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
200 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
201 + # contains redundant information, the shorter form:
202 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203 + echo "${machine}-${os}${release}"
206 + echo x86_64-unknown-openbsd${UNAME_RELEASE}
209 + echo m68k-unknown-openbsd${UNAME_RELEASE}
212 + echo arm-unknown-openbsd${UNAME_RELEASE}
215 + echo m68k-unknown-openbsd${UNAME_RELEASE}
217 + luna88k:OpenBSD:*:*)
218 + echo m88k-unknown-openbsd${UNAME_RELEASE}
220 + mac68k:OpenBSD:*:*)
221 + echo m68k-unknown-openbsd${UNAME_RELEASE}
223 + macppc:OpenBSD:*:*)
224 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
226 + mvme68k:OpenBSD:*:*)
227 + echo m68k-unknown-openbsd${UNAME_RELEASE}
229 + mvme88k:OpenBSD:*:*)
230 + echo m88k-unknown-openbsd${UNAME_RELEASE}
232 + mvmeppc:OpenBSD:*:*)
233 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
236 + echo mips64-unknown-openbsd${UNAME_RELEASE}
239 + echo m68k-unknown-openbsd${UNAME_RELEASE}
242 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
245 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
248 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
251 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
254 - if test $UNAME_RELEASE = "V4.0"; then
255 + case $UNAME_RELEASE in
257 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
261 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
264 + # According to Compaq, /usr/sbin/psrinfo has been available on
265 + # OSF/1 and Tru64 systems produced since 1995. I hope that
266 + # covers most systems running today. This code pipes the CPU
267 + # types through head -n 1, so we only detect the type of CPU 0.
268 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
269 + case "$ALPHA_CPU_TYPE" in
271 + UNAME_MACHINE="alpha" ;;
273 + UNAME_MACHINE="alpha" ;;
274 + "LCA4 (21066/21068)")
275 + UNAME_MACHINE="alpha" ;;
277 + UNAME_MACHINE="alphaev5" ;;
279 + UNAME_MACHINE="alphaev56" ;;
281 + UNAME_MACHINE="alphapca56" ;;
283 + UNAME_MACHINE="alphapca57" ;;
285 + UNAME_MACHINE="alphaev6" ;;
287 + UNAME_MACHINE="alphaev67" ;;
288 + "EV6.8CB (21264C)")
289 + UNAME_MACHINE="alphaev68" ;;
290 + "EV6.8AL (21264B)")
291 + UNAME_MACHINE="alphaev68" ;;
292 + "EV6.8CX (21264D)")
293 + UNAME_MACHINE="alphaev68" ;;
294 + "EV6.9A (21264/EV69A)")
295 + UNAME_MACHINE="alphaev69" ;;
297 + UNAME_MACHINE="alphaev7" ;;
299 + UNAME_MACHINE="alphaev79" ;;
301 + # A Pn.n version is a patched version.
302 # A Vn.n version is a released version.
303 # A Tn.n version is a released field test version.
304 # A Xn.n version is an unreleased experimental baselevel.
305 # 1.2 uses "1.2" for uname -r.
310 - .frame \$30,0,\$26,0
312 - .long 0x47e03d80 # implver $0
314 - .long 0x47e20c21 # amask $2,$1
323 - ${CC-cc} dummy.s -o dummy 2>/dev/null
324 - if test "$?" = 0 ; then
328 - UNAME_MACHINE="alpha"
331 - UNAME_MACHINE="alphaev5"
334 - UNAME_MACHINE="alphaev56"
337 - UNAME_MACHINE="alphapca56"
340 - UNAME_MACHINE="alphaev6"
344 - rm -f dummy.s dummy
345 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
346 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
348 + Alpha\ *:Windows_NT*:*)
349 + # How do we know it's Interix rather than the generic POSIX subsystem?
350 + # Should we change UNAME_MACHINE based on the output of uname instead
351 + # of the specific Alpha model?
352 + echo alpha-pc-interix
354 21064:Windows_NT:50:3)
355 echo alpha-dec-winnt3.5
357 Amiga*:UNIX_System_V:4.0:*)
358 - echo m68k-cbm-sysv4
359 + echo m68k-unknown-sysv4
362 - echo m68k-cbm-netbsd${UNAME_RELEASE}
365 - echo m68k-unknown-openbsd${UNAME_RELEASE}
368 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
369 + *:[Aa]miga[Oo][Ss]:*:*)
370 + echo ${UNAME_MACHINE}-unknown-amigaos
373 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
374 + *:[Mm]orph[Oo][Ss]:*:*)
375 + echo ${UNAME_MACHINE}-unknown-morphos
377 - hkmips:OpenBSD:*:*)
378 - echo mips-unknown-openbsd${UNAME_RELEASE}
380 + echo i370-ibm-openedition
383 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
386 - echo mips-unknown-openbsd${UNAME_RELEASE}
388 + echo s390-ibm-zvmoe
390 - wgrisc:OpenBSD:*:*)
391 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
393 + echo powerpc-ibm-os400
395 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
396 echo arm-acorn-riscix${UNAME_RELEASE}
399 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
401 - SR2?01:HI-UX/MPP:*:*)
402 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
403 echo hppa1.1-hitachi-hiuxmpp
405 - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
406 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
407 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
408 if test "`(/bin/universe) 2>/dev/null`" = att ; then
409 echo pyramid-pyramid-sysv3
411 echo pyramid-pyramid-bsd
416 echo pyramid-pyramid-svr4
418 + DRS?6000:unix:4.0:6*)
421 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
422 + case `/usr/bin/uname -p` in
423 + sparc) echo sparc-icl-nx7 && exit 0 ;;
426 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
428 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
429 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
432 echo m68k-sun-sunos${UNAME_RELEASE}
435 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
436 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
437 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
438 case "`/bin/arch`" in
440 @@ -189,29 +391,34 @@
442 echo sparc-auspex-sunos${UNAME_RELEASE}
445 - echo m68k-atari-netbsd${UNAME_RELEASE}
446 + # The situation for MiNT is a little confusing. The machine name
447 + # can be virtually everything (everything which is not
448 + # "atarist" or "atariste" at least should have a processor
449 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
450 + # to the lowercase version "mint" (or "freemint"). Finally
451 + # the system name "TOS" denotes a system which is actually not
452 + # MiNT. But MiNT is downward compatible to TOS, so this should
454 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
455 + echo m68k-atari-mint${UNAME_RELEASE}
457 - atari*:OpenBSD:*:*)
458 - echo m68k-unknown-openbsd${UNAME_RELEASE}
461 - echo m68k-sun-netbsd${UNAME_RELEASE}
464 - echo m68k-unknown-openbsd${UNAME_RELEASE}
467 - echo m68k-apple-netbsd${UNAME_RELEASE}
469 - mac68k:OpenBSD:*:*)
470 - echo m68k-unknown-openbsd${UNAME_RELEASE}
472 - mvme68k:OpenBSD:*:*)
473 - echo m68k-unknown-openbsd${UNAME_RELEASE}
474 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
475 + echo m68k-atari-mint${UNAME_RELEASE}
477 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
478 + echo m68k-atari-mint${UNAME_RELEASE}
480 - mvme88k:OpenBSD:*:*)
481 - echo m88k-unknown-openbsd${UNAME_RELEASE}
482 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
483 + echo m68k-milan-mint${UNAME_RELEASE}
485 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
486 + echo m68k-hades-mint${UNAME_RELEASE}
488 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
489 + echo m68k-unknown-mint${UNAME_RELEASE}
492 + echo m68k-apple-machten${UNAME_RELEASE}
495 echo powerpc-apple-machten${UNAME_RELEASE}
496 @@ -225,12 +432,18 @@
498 echo vax-dec-ultrix${UNAME_RELEASE}
501 + 2020:CLIX:*:* | 2430:CLIX:*:*)
502 echo clipper-intergraph-clix${UNAME_RELEASE}
504 mips:*:*:UMIPS | mips:*:*:RISCos)
505 - sed 's/^ //' << EOF >dummy.c
506 - int main (argc, argv) int argc; char **argv; {
507 + eval $set_cc_for_build
508 + sed 's/^ //' << EOF >$dummy.c
510 +#include <stdio.h> /* for printf() prototype */
511 + int main (int argc, char *argv[]) {
513 + int main (argc, argv) int argc; char *argv[]; {
515 #if defined (host_mips) && defined (MIPSEB)
516 #if defined (SYSTYPE_SYSV)
517 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
518 @@ -245,12 +458,20 @@
522 - ${CC-cc} dummy.c -o dummy \
523 - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
524 - && rm dummy.c dummy && exit 0
525 - rm -f dummy.c dummy
526 + $CC_FOR_BUILD -o $dummy $dummy.c \
527 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
529 echo mips-mips-riscos${UNAME_RELEASE}
531 + Motorola:PowerMAX_OS:*:*)
532 + echo powerpc-motorola-powermax
534 + Motorola:*:4.3:PL8-*)
535 + echo powerpc-harris-powermax
537 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
538 + echo powerpc-harris-powermax
540 Night_Hawk:Power_UNIX:*:*)
541 echo powerpc-harris-powerunix
543 @@ -266,15 +487,18 @@
545 # DG/UX returns AViiON for all architectures
546 UNAME_PROCESSOR=`/usr/bin/uname -p`
547 - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
548 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
549 - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
550 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
552 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
553 + [ ${TARGET_BINARY_INTERFACE}x = x ]
555 echo m88k-dg-dgux${UNAME_RELEASE}
558 echo m88k-dg-dguxbcs${UNAME_RELEASE}
561 + echo i586-dg-dgux${UNAME_RELEASE}
563 - else echo i586-dg-dgux${UNAME_RELEASE}
566 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
567 echo m88k-dolphin-sysv3
568 @@ -295,12 +519,21 @@
569 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
570 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
571 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
577 + if [ -x /usr/bin/oslevel ] ; then
578 + IBM_REV=`/usr/bin/oslevel`
580 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
582 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
585 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
586 - sed 's/^ //' << EOF >dummy.c
587 + eval $set_cc_for_build
588 + sed 's/^ //' << EOF >$dummy.c
589 #include <sys/systemcfg.h>
596 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
597 - rm -f dummy.c dummy
598 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
599 echo rs6000-ibm-aix3.2.5
600 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
601 echo rs6000-ibm-aix3.2.4
603 echo rs6000-ibm-aix3.2
607 - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
609 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
610 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
615 if [ -x /usr/bin/oslevel ] ; then
616 IBM_REV=`/usr/bin/oslevel`
618 - IBM_REV=4.${UNAME_RELEASE}
619 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
621 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
624 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
627 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
628 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
629 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
630 exit 0 ;; # report: romp-ibm BSD 4.3
632 @@ -354,18 +587,85 @@
633 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
636 - 9000/[3478]??:HP-UX:*:*)
637 + 9000/[34678]??:HP-UX:*:*)
638 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
639 case "${UNAME_MACHINE}" in
640 9000/31? ) HP_ARCH=m68000 ;;
641 9000/[34]?? ) HP_ARCH=m68k ;;
642 - 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
643 - 9000/8?? ) HP_ARCH=hppa1.0 ;;
644 + 9000/[678][0-9][0-9])
645 + if [ -x /usr/bin/getconf ]; then
646 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
647 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
648 + case "${sc_cpu_version}" in
649 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
650 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
651 + 532) # CPU_PA_RISC2_0
652 + case "${sc_kernel_bits}" in
653 + 32) HP_ARCH="hppa2.0n" ;;
654 + 64) HP_ARCH="hppa2.0w" ;;
655 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
659 + if [ "${HP_ARCH}" = "" ]; then
660 + eval $set_cc_for_build
661 + sed 's/^ //' << EOF >$dummy.c
663 + #define _HPUX_SOURCE
664 + #include <stdlib.h>
665 + #include <unistd.h>
669 + #if defined(_SC_KERNEL_BITS)
670 + long bits = sysconf(_SC_KERNEL_BITS);
672 + long cpu = sysconf (_SC_CPU_VERSION);
676 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
677 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
678 + case CPU_PA_RISC2_0:
679 + #if defined(_SC_KERNEL_BITS)
682 + case 64: puts ("hppa2.0w"); break;
683 + case 32: puts ("hppa2.0n"); break;
684 + default: puts ("hppa2.0"); break;
686 + #else /* !defined(_SC_KERNEL_BITS) */
687 + puts ("hppa2.0"); break;
689 + default: puts ("hppa1.0"); break;
694 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
695 + test -z "$HP_ARCH" && HP_ARCH=hppa
698 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
699 + if [ ${HP_ARCH} = "hppa2.0w" ]
701 + # avoid double evaluation of $set_cc_for_build
702 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
703 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
710 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
713 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
714 + echo ia64-hp-hpux${HPUX_REV}
717 - sed 's/^ //' << EOF >dummy.c
718 + eval $set_cc_for_build
719 + sed 's/^ //' << EOF >$dummy.c
727 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
728 - rm -f dummy.c dummy
729 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
730 echo unknown-hitachi-hiuxwe2
732 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
733 @@ -400,13 +699,16 @@
737 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
738 + echo hppa1.0-hp-mpeix
740 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
748 if [ -x /usr/sbin/sysversion ] ; then
749 echo ${UNAME_MACHINE}-unknown-osf1mk
751 @@ -434,196 +736,262 @@
752 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
756 - echo xmp-cray-unicos
759 - echo ymp-cray-unicos${UNAME_RELEASE}
760 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
763 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
764 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
765 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
766 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
767 + -e 's/\.[^.]*$/.X/'
770 - echo t90-cray-unicos${UNAME_RELEASE}
771 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
774 - echo cray2-cray-unicos
776 - F300:UNIX_System_V:*:*)
777 - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
779 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
782 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
785 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
787 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
788 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
789 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
790 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
791 - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
792 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
794 - F301:UNIX_System_V:*:*)
795 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
797 - hp3[0-9][05]:NetBSD:*:*)
798 - echo m68k-hp-netbsd${UNAME_RELEASE}
801 - echo m68k-unknown-openbsd${UNAME_RELEASE}
802 + 5000:UNIX_System_V:4.*:*)
803 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
804 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
805 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
807 - i?86:BSD/386:*:* | *:BSD/OS:*:*)
808 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
809 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
812 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
814 + echo sparc-unknown-bsdi${UNAME_RELEASE}
817 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
819 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
822 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
824 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
827 - echo i386-pc-cygwin32
828 + echo ${UNAME_MACHINE}-pc-cygwin
831 - echo i386-pc-mingw32
832 + echo ${UNAME_MACHINE}-pc-mingw32
835 + echo ${UNAME_MACHINE}-pc-pw32
837 + x86:Interix*:[34]*)
838 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
840 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
841 + echo i${UNAME_MACHINE}-pc-mks
843 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
844 + # How do we know it's Interix rather than the generic POSIX subsystem?
845 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
846 + # UNAME_MACHINE based on the output of uname instead of i386?
847 + echo i586-pc-interix
850 + echo ${UNAME_MACHINE}-pc-uwin
853 + echo x86_64-unknown-cygwin
856 - echo powerpcle-unknown-cygwin32
857 + echo powerpcle-unknown-cygwin
860 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
864 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
868 + # other systems with GNU libc and userland
869 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
872 + echo ${UNAME_MACHINE}-pc-minix
875 + echo ${UNAME_MACHINE}-unknown-linux-gnu
878 + echo cris-axis-linux-gnu
881 + echo crisv32-axis-linux-gnu
884 + echo frv-unknown-linux-gnu
887 + echo ${UNAME_MACHINE}-unknown-linux-gnu
890 + echo ${UNAME_MACHINE}-unknown-linux-gnu
893 + echo ${UNAME_MACHINE}-unknown-linux-gnu
896 + eval $set_cc_for_build
897 + sed 's/^ //' << EOF >$dummy.c
901 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
904 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
911 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
912 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
915 + eval $set_cc_for_build
916 + sed 's/^ //' << EOF >$dummy.c
920 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
923 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
930 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
931 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
934 + echo powerpc-unknown-linux-gnu
937 + echo powerpc64-unknown-linux-gnu
940 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
941 + EV5) UNAME_MACHINE=alphaev5 ;;
942 + EV56) UNAME_MACHINE=alphaev56 ;;
943 + PCA56) UNAME_MACHINE=alphapca56 ;;
944 + PCA57) UNAME_MACHINE=alphapca56 ;;
945 + EV6) UNAME_MACHINE=alphaev6 ;;
946 + EV67) UNAME_MACHINE=alphaev67 ;;
947 + EV68*) UNAME_MACHINE=alphaev68 ;;
949 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
950 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
951 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
953 + parisc:Linux:*:* | hppa:Linux:*:*)
954 + # Look for CPU level
955 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
956 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
957 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
958 + *) echo hppa-unknown-linux-gnu ;;
961 + parisc64:Linux:*:* | hppa64:Linux:*:*)
962 + echo hppa64-unknown-linux-gnu
964 + s390:Linux:*:* | s390x:Linux:*:*)
965 + echo ${UNAME_MACHINE}-ibm-linux
968 + echo ${UNAME_MACHINE}-unknown-linux-gnu
971 + echo ${UNAME_MACHINE}-unknown-linux-gnu
973 + sparc:Linux:*:* | sparc64:Linux:*:*)
974 + echo ${UNAME_MACHINE}-unknown-linux-gnu
977 + echo x86_64-unknown-linux-gnu
980 # The BFD linker knows what the default object file format is, so
981 - # first see if it will tell us.
982 - ld_help_string=`ld --help 2>&1`
983 - ld_supported_emulations=`echo $ld_help_string \
984 - | sed -ne '/supported emulations:/!d
985 + # first see if it will tell us. cd to the root directory to prevent
986 + # problems with other programs or directories called `ld' in the path.
987 + # Set LC_ALL=C to ensure ld outputs messages in English.
988 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
989 + | sed -ne '/supported targets:/!d
991 - s/.*supported emulations: *//
992 + s/.*supported targets: *//
995 - case "$ld_supported_emulations" in
996 - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
997 - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
998 - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
999 - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
1000 - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
1003 - if test "${UNAME_MACHINE}" = "alpha" ; then
1004 - sed 's/^ //' <<EOF >dummy.s
1008 - .frame \$30,0,\$26,0
1010 - .long 0x47e03d80 # implver $0
1012 - .long 0x47e20c21 # amask $2,$1
1022 - ${CC-cc} dummy.s -o dummy 2>/dev/null
1023 - if test "$?" = 0 ; then
1027 - UNAME_MACHINE="alpha"
1030 - UNAME_MACHINE="alphaev5"
1033 - UNAME_MACHINE="alphaev56"
1036 - UNAME_MACHINE="alphapca56"
1039 - UNAME_MACHINE="alphaev6"
1043 - objdump --private-headers dummy | \
1044 - grep ld.so.1 > /dev/null
1045 - if test "$?" = 0 ; then
1049 - rm -f dummy.s dummy
1050 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
1051 - elif test "${UNAME_MACHINE}" = "mips" ; then
1052 - cat >dummy.c <<EOF
1058 - printf ("%s-unknown-linux-gnu\n", argv[1]);
1061 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
1066 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
1067 - rm -f dummy.c dummy
1069 - # Either a pre-BFD a.out linker (linux-gnuoldld)
1070 - # or one that does not give us useful --help.
1071 - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
1072 - # If ld does not provide *any* "supported emulations:"
1073 - # that means it is gnuoldld.
1074 - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
1075 - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
1077 - case "${UNAME_MACHINE}" in
1085 - # Determine whether the default compiler is a.out or elf
1086 - cat >dummy.c <<EOF
1087 -#include <features.h>
1094 -# if __GLIBC__ >= 2
1095 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
1097 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
1100 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
1103 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
1107 + case "$ld_supported_targets" in
1109 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1112 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1115 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
1118 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
1119 + # one that does not give us useful --help.
1120 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1123 + # Determine whether the default compiler is a.out or elf
1124 + eval $set_cc_for_build
1125 + sed 's/^ //' << EOF >$dummy.c
1126 + #include <features.h>
1129 + # if __GLIBC__ >= 2
1138 + #ifdef __INTEL_COMPILER
1144 + #ifdef __dietlibc__
1148 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
1149 - rm -f dummy.c dummy
1151 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
1152 -# are messed up and put the nodename in both sysname and nodename.
1153 - i?86:DYNIX/ptx:4*:*)
1154 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1155 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
1156 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
1158 + i*86:DYNIX/ptx:4*:*)
1159 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1160 + # earlier versions are messed up and put the nodename in both
1161 + # sysname and nodename.
1162 echo i386-sequent-sysv4
1164 - i?86:UNIX_SV:4.2MP:2.*)
1165 + i*86:UNIX_SV:4.2MP:2.*)
1166 # Unixware is an offshoot of SVR4, but it has its own version
1167 # number series starting with 2...
1168 # I am not positive that other SVR4 systems won't match this,
1169 @@ -631,28 +999,62 @@
1170 # Use sysv4.2uw... so that sysv4* matches it.
1171 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1173 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
1175 + # If we were able to find `uname', then EMX Unix compatibility
1176 + # is probably installed.
1177 + echo ${UNAME_MACHINE}-pc-os2-emx
1179 + i*86:XTS-300:*:STOP)
1180 + echo ${UNAME_MACHINE}-unknown-stop
1183 + echo ${UNAME_MACHINE}-unknown-atheos
1185 + i*86:syllable:*:*)
1186 + echo ${UNAME_MACHINE}-pc-syllable
1188 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1189 + echo i386-unknown-lynxos${UNAME_RELEASE}
1192 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
1194 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1195 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1196 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1197 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
1198 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1200 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
1201 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1206 + case `/bin/uname -X | grep "^Machine"` in
1207 + *486*) UNAME_MACHINE=i486 ;;
1208 + *Pentium) UNAME_MACHINE=i586 ;;
1209 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1211 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1214 if test -f /usr/options/cb.name; then
1215 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1216 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1217 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1218 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
1219 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
1220 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
1221 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1222 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1223 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1224 && UNAME_MACHINE=i586
1225 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1226 + && UNAME_MACHINE=i686
1227 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1228 + && UNAME_MACHINE=i686
1229 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1231 echo ${UNAME_MACHINE}-pc-sysv32
1235 + # Left here for compatibility:
1236 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1237 # the processor, so we play safe by assuming i386.
1238 echo i386-pc-msdosdjgpp
1239 @@ -674,9 +1076,15 @@
1241 echo m68010-convergent-sysv
1243 - M68*:*:R3V[567]*:*)
1244 + mc68k:UNIX:SYSTEM5:3.51m)
1245 + echo m68k-convergent-sysv
1247 + M680?0:D-NIX:5.3:*)
1248 + echo m68k-diab-dnix
1250 + M68*:*:R3V[5678]*:*)
1251 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1252 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
1253 + 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)
1255 test -r /etc/.relid \
1256 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1257 @@ -687,24 +1095,27 @@
1258 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1259 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1260 && echo i486-ncr-sysv4 && exit 0 ;;
1261 - m68*:LynxOS:2.*:*)
1262 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1263 echo m68k-unknown-lynxos${UNAME_RELEASE}
1265 mc68030:UNIX_System_V:4.*:*)
1266 echo m68k-atari-sysv4
1268 - i?86:LynxOS:2.*:*)
1269 - echo i386-unknown-lynxos${UNAME_RELEASE}
1271 TSUNAMI:LynxOS:2.*:*)
1272 echo sparc-unknown-lynxos${UNAME_RELEASE}
1274 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
1275 + rs6000:LynxOS:2.*:*)
1276 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1278 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1279 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
1281 SM[BE]S:UNIX_SV:*:*)
1282 echo mips-dde-sysv${UNAME_RELEASE}
1284 + RM*:ReliantUNIX-*:*:*)
1285 + echo mips-sni-sysv4
1290 @@ -716,8 +1127,8 @@
1294 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1295 - # says <Richard.M.Bartel@ccMail.Census.GOV>
1296 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1297 + # says <Richard.M.Bartel@ccMail.Census.GOV>
1298 echo i586-unisys-sysv4
1300 *:UNIX_System_V:4*:FTX*)
1301 @@ -729,25 +1140,137 @@
1302 # From seanf@swdc.stratus.com.
1303 echo i860-stratus-sysv4
1306 + # From Paul.Green@stratus.com.
1307 + echo ${UNAME_MACHINE}-stratus-vos
1310 + # From Paul.Green@stratus.com.
1311 + echo hppa1.1-stratus-vos
1314 echo m68k-apple-aux${UNAME_RELEASE}
1316 - news*:NEWS-OS:*:6*)
1317 + news*:NEWS-OS:6*:*)
1318 echo mips-sony-newsos6
1320 - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
1321 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1322 if [ -d /usr/nec ]; then
1323 echo mips-nec-sysv${UNAME_RELEASE}
1325 echo mips-unknown-sysv${UNAME_RELEASE}
1328 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1329 + echo powerpc-be-beos
1331 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1332 + echo powerpc-apple-beos
1334 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1337 + SX-4:SUPER-UX:*:*)
1338 + echo sx4-nec-superux${UNAME_RELEASE}
1340 + SX-5:SUPER-UX:*:*)
1341 + echo sx5-nec-superux${UNAME_RELEASE}
1343 + SX-6:SUPER-UX:*:*)
1344 + echo sx6-nec-superux${UNAME_RELEASE}
1346 + Power*:Rhapsody:*:*)
1347 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
1350 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1353 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1354 + case $UNAME_PROCESSOR in
1355 + *86) UNAME_PROCESSOR=i686 ;;
1356 + unknown) UNAME_PROCESSOR=powerpc ;;
1358 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1360 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
1361 + UNAME_PROCESSOR=`uname -p`
1362 + if test "$UNAME_PROCESSOR" = "x86"; then
1363 + UNAME_PROCESSOR=i386
1366 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1371 + NSE-?:NONSTOP_KERNEL:*:*)
1372 + echo nse-tandem-nsk${UNAME_RELEASE}
1374 + NSR-?:NONSTOP_KERNEL:*:*)
1375 + echo nsr-tandem-nsk${UNAME_RELEASE}
1378 + echo mips-compaq-nonstopux
1380 + BS2000:POSIX*:*:*)
1381 + echo bs2000-siemens-sysv
1383 + DS/*:UNIX_System_V:*:*)
1384 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1387 + # "uname -m" is not consistent, so use $cputype instead. 386
1388 + # is converted to i386 for consistency with other x86
1389 + # operating systems.
1390 + if test "$cputype" = "386"; then
1391 + UNAME_MACHINE=i386
1393 + UNAME_MACHINE="$cputype"
1395 + echo ${UNAME_MACHINE}-unknown-plan9
1398 + echo pdp10-unknown-tops10
1401 + echo pdp10-unknown-tenex
1403 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1404 + echo pdp10-dec-tops20
1406 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1407 + echo pdp10-xkl-tops20
1410 + echo pdp10-unknown-tops20
1413 + echo pdp10-unknown-its
1416 + echo mips-sei-seiux${UNAME_RELEASE}
1419 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1422 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1423 + case "${UNAME_MACHINE}" in
1424 + A*) echo alpha-dec-vms && exit 0 ;;
1425 + I*) echo ia64-dec-vms && exit 0 ;;
1426 + V*) echo vax-dec-vms && exit 0 ;;
1429 + echo i386-pc-xenix
1433 #echo '(No uname command or uname output not recognized.)' 1>&2
1434 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1437 +eval $set_cc_for_build
1438 +cat >$dummy.c <<EOF
1440 # include <sys/types.h>
1441 # include <sys/utsname.h>
1442 @@ -785,7 +1308,10 @@
1445 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1446 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1448 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1450 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1454 @@ -830,11 +1356,24 @@
1458 -#if !defined (ultrix)
1459 - printf ("vax-dec-bsd\n"); exit (0);
1461 - printf ("vax-dec-ultrix\n"); exit (0);
1463 +# if !defined (ultrix)
1464 +# include <sys/param.h>
1467 + printf ("vax-dec-bsd4.3\n"); exit (0);
1470 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
1472 + printf ("vax-dec-bsd\n"); exit (0);
1476 + printf ("vax-dec-bsd\n"); exit (0);
1479 + printf ("vax-dec-ultrix\n"); exit (0);
1483 #if defined (alliant) && defined (i860)
1484 @@ -845,8 +1384,7 @@
1488 -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
1489 -rm -f dummy.c dummy
1490 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1492 # Apollos put the system type in the environment.
1494 @@ -878,6 +1416,50 @@
1498 -#echo '(Unable to guess system type)' 1>&2
1500 +$0: unable to guess system type
1502 +This script, last modified $timestamp, has failed to recognize
1503 +the operating system you are using. It is advised that you
1504 +download the most up to date version of the config scripts from
1506 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1508 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1510 +If the version you run ($0) is already up to date, please
1511 +send the following data and any information you think might be
1512 +pertinent to <config-patches@gnu.org> in order to provide the needed
1513 +information to handle your system.
1515 +config.guess timestamp = $timestamp
1517 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1518 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1519 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1520 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1522 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1523 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1525 +hostinfo = `(hostinfo) 2>/dev/null`
1526 +/bin/universe = `(/bin/universe) 2>/dev/null`
1527 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1528 +/bin/arch = `(/bin/arch) 2>/dev/null`
1529 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1530 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1532 +UNAME_MACHINE = ${UNAME_MACHINE}
1533 +UNAME_RELEASE = ${UNAME_RELEASE}
1534 +UNAME_SYSTEM = ${UNAME_SYSTEM}
1535 +UNAME_VERSION = ${UNAME_VERSION}
1541 +# eval: (add-hook 'write-file-hooks 'time-stamp)
1542 +# time-stamp-start: "timestamp='"
1543 +# time-stamp-format: "%:y-%02m-%02d"
1544 +# time-stamp-end: "'"
1546 diff -urN jpeg.old/config.sub jpeg.dev/config.sub
1547 --- jpeg.old/config.sub 2006-08-04 22:46:02.474275792 +0200
1548 +++ jpeg.dev/config.sub 2006-08-04 22:53:56.904151488 +0200
1551 -# Configuration validation subroutine script, version 1.1.
1552 -# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
1553 +# Configuration validation subroutine script.
1554 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1555 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1557 +timestamp='2005-04-22'
1559 # This file is (in principle) common to ALL GNU software.
1560 # The presence of a machine in this file suggests that SOME GNU software
1561 # can handle that machine. It does not imply ALL GNU software can.
1563 # configuration script generated by Autoconf, you may include it under
1564 # the same distribution terms that you use for the rest of that program.
1566 +# Please send patches to <config-patches@gnu.org>. Submit a context
1567 +# diff and a properly formatted ChangeLog entry.
1569 # Configuration subroutine to validate and canonicalize a configuration type.
1570 # Supply the specified configuration type as an argument.
1571 # If it is invalid, we print an error message on stderr and exit with code 1.
1573 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
1574 # It is wrong to echo any other type of specification.
1578 - echo Configuration name missing. 1>&2
1579 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
1580 - echo "or $0 ALIAS" 1>&2
1581 - echo where ALIAS is a recognized configuration type. 1>&2
1584 +me=`echo "$0" | sed -e 's,.*/,,'`
1586 -# First pass through any local machine types.
1595 +Usage: $0 [OPTION] CPU-MFR-OPSYS
1598 +Canonicalize a configuration name.
1601 + -h, --help print this help, then exit
1602 + -t, --time-stamp print date of last modification, then exit
1603 + -v, --version print version number, then exit
1605 +Report bugs and patches to <config-patches@gnu.org>."
1608 +GNU config.sub ($timestamp)
1610 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1611 +Free Software Foundation, Inc.
1613 +This is free software; see the source for copying conditions. There is NO
1614 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1617 +Try \`$me --help' for more information."
1619 +# Parse command line
1620 +while test $# -gt 0 ; do
1622 + --time-stamp | --time* | -t )
1623 + echo "$timestamp" ; exit 0 ;;
1625 + echo "$version" ; exit 0 ;;
1626 + --help | --h* | -h )
1627 + echo "$usage"; exit 0 ;;
1628 + -- ) # Stop option processing
1630 + - ) # Use stdin as input.
1633 + echo "$me: invalid option $1$help"
1637 + # First pass through any local machine types.
1647 + 0) echo "$me: missing argument$help" >&2
1650 + *) echo "$me: too many arguments$help" >&2
1654 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
1655 # Here we must recognize all the valid KERNEL-OS combinations.
1656 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1659 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
1660 + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
1662 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1664 @@ -94,15 +145,33 @@
1665 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1666 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1667 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1669 + -apple | -axis | -knuth | -cray)
1673 + -sim | -cisco | -oki | -wec | -winbond)
1697 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1702 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1705 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1709 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1710 @@ -143,26 +215,76 @@
1714 + -mint | -mint[0-9]*)
1715 + basic_machine=m68k-atari
1720 # Decode aliases for certain CPU-COMPANY combinations.
1721 case $basic_machine in
1722 # Recognize the basic CPU types without company name.
1723 # Some are omitted here because they have special meanings below.
1724 - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
1725 - | arme[lb] | pyramid | mn10200 | mn10300 \
1726 - | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
1727 - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
1728 - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
1729 - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
1730 - | mipstx39 | mipstx39el \
1731 - | sparc | sparclet | sparclite | sparc64 | v850)
1734 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1735 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1737 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
1740 + | d10v | d30v | dlx | dsp16xx \
1742 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1743 + | i370 | i860 | i960 | ia64 \
1745 + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
1746 + | mips | mipsbe | mipseb | mipsel | mipsle \
1748 + | mips64 | mips64el \
1749 + | mips64vr | mips64vrel \
1750 + | mips64orion | mips64orionel \
1751 + | mips64vr4100 | mips64vr4100el \
1752 + | mips64vr4300 | mips64vr4300el \
1753 + | mips64vr5000 | mips64vr5000el \
1754 + | mipsisa32 | mipsisa32el \
1755 + | mipsisa32r2 | mipsisa32r2el \
1756 + | mipsisa64 | mipsisa64el \
1757 + | mipsisa64r2 | mipsisa64r2el \
1758 + | mipsisa64sb1 | mipsisa64sb1el \
1759 + | mipsisa64sr71k | mipsisa64sr71kel \
1760 + | mipstx39 | mipstx39el \
1761 + | mn10200 | mn10300 \
1764 + | openrisc | or32 \
1765 + | pdp10 | pdp11 | pj | pjl \
1766 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1768 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
1770 + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
1771 + | sparcv8 | sparcv9 | sparcv9b \
1773 + | tahoe | thumb | tic4x | tic80 | tron \
1776 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
1778 basic_machine=$basic_machine-unknown
1780 + m6811 | m68hc11 | m6812 | m68hc12)
1781 + # Motorola 68HC11/12.
1782 + basic_machine=$basic_machine-unknown
1785 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
1788 # We use `pc' rather than `unknown'
1789 # because (1) that's what they normally are, and
1790 # (2) the word "unknown" tends to confuse beginning users.
1793 basic_machine=$basic_machine-pc
1795 # Object if more than one company name word.
1796 @@ -171,27 +293,87 @@
1799 # Recognize the basic CPU types with company name.
1800 - vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
1801 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
1802 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
1803 - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
1804 - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
1805 - | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
1806 - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
1807 - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
1808 - | sparc64-* | mips64-* | mipsel-* \
1809 - | mips64el-* | mips64orion-* | mips64orionel-* \
1810 - | mipstx39-* | mipstx39el-* \
1814 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1815 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1816 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1817 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1819 + | bfin-* | bs2000-* \
1820 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1821 + | clipper-* | craynv-* | cydra-* \
1822 + | d10v-* | d30v-* | dlx-* \
1824 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
1825 + | h8300-* | h8500-* \
1826 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1827 + | i*86-* | i860-* | i960-* | ia64-* \
1828 + | ip2k-* | iq2000-* \
1829 + | m32r-* | m32rle-* \
1830 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1831 + | m88110-* | m88k-* | maxq-* | mcore-* \
1832 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1834 + | mips64-* | mips64el-* \
1835 + | mips64vr-* | mips64vrel-* \
1836 + | mips64orion-* | mips64orionel-* \
1837 + | mips64vr4100-* | mips64vr4100el-* \
1838 + | mips64vr4300-* | mips64vr4300el-* \
1839 + | mips64vr5000-* | mips64vr5000el-* \
1840 + | mipsisa32-* | mipsisa32el-* \
1841 + | mipsisa32r2-* | mipsisa32r2el-* \
1842 + | mipsisa64-* | mipsisa64el-* \
1843 + | mipsisa64r2-* | mipsisa64r2el-* \
1844 + | mipsisa64sb1-* | mipsisa64sb1el-* \
1845 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
1846 + | mipstx39-* | mipstx39el-* \
1849 + | none-* | np1-* | ns16k-* | ns32k-* \
1851 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1852 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1854 + | romp-* | rs6000-* \
1855 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
1856 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1857 + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
1859 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
1860 + | tahoe-* | thumb-* \
1861 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1863 + | v850-* | v850e-* | vax-* \
1865 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
1866 + | xstormy16-* | xtensa-* \
1870 # Recognize the various machine names and aliases which stand
1871 # for a CPU type and a company and sometimes even an OS.
1873 + basic_machine=i386-unknown
1876 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1877 basic_machine=m68000-att
1880 basic_machine=we32k-att
1883 + basic_machine=a29k-amd
1887 + basic_machine=abacus-unknown
1890 + basic_machine=m68010-adobe
1894 basic_machine=fx80-alliant
1896 @@ -202,25 +384,35 @@
1897 basic_machine=a29k-none
1901 + basic_machine=x86_64-pc
1904 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
1907 basic_machine=580-amdahl
1911 - basic_machine=m68k-cbm
1912 + basic_machine=m68k-unknown
1915 - basic_machine=m68k-cbm
1916 + basic_machine=m68k-unknown
1920 - basic_machine=m68k-cbm
1921 + basic_machine=m68k-unknown
1925 basic_machine=m68k-apollo
1929 + basic_machine=m68k-apollo
1933 basic_machine=m68k-apple
1935 @@ -229,6 +421,10 @@
1936 basic_machine=ns32k-sequent
1940 + basic_machine=c90-cray
1944 basic_machine=c1-convex
1946 @@ -249,27 +445,45 @@
1947 basic_machine=c38-convex
1951 - basic_machine=ymp-cray
1955 - basic_machine=cray2-cray
1957 + basic_machine=j90-cray
1961 - basic_machine=c90-cray
1964 + basic_machine=craynv-cray
1968 + basic_machine=cr16c-unknown
1972 basic_machine=m68k-crds
1974 + crisv32 | crisv32-* | etraxfs*)
1975 + basic_machine=crisv32-axis
1977 + cris | cris-* | etrax*)
1978 + basic_machine=cris-axis
1981 + basic_machine=crx-unknown
1985 basic_machine=m68k-da30
1987 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
1988 basic_machine=mips-dec
1990 + decsystem10* | dec10*)
1991 + basic_machine=pdp10-dec
1994 + decsystem20* | dec20*)
1995 + basic_machine=pdp10-dec
1998 delta | 3300 | motorola-3300 | motorola-delta \
1999 | 3300-motorola | delta-motorola)
2000 basic_machine=m68k-motorola
2001 @@ -278,6 +492,10 @@
2002 basic_machine=m88k-motorola
2006 + basic_machine=i586-pc
2010 basic_machine=rs6000-bull
2012 @@ -297,6 +515,10 @@
2013 encore | umax | mmax)
2014 basic_machine=ns32k-encore
2016 + es1800 | OSE68k | ose68k | ose | OSE)
2017 + basic_machine=m68k-ericsson
2021 basic_machine=i860-alliant
2023 @@ -307,6 +529,10 @@
2024 basic_machine=tron-gmicro
2028 + basic_machine=i386-pc
2032 basic_machine=hppa1.1-hitachi
2034 @@ -315,6 +541,14 @@
2035 basic_machine=h8300-hitachi
2039 + basic_machine=h8300-hitachi
2043 + basic_machine=h8500-hitachi
2047 basic_machine=m88k-harris
2049 @@ -330,13 +564,30 @@
2050 basic_machine=m68k-hp
2053 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
2054 + basic_machine=hppa1.0-hp
2056 hp9k2[0-9][0-9] | hp9k31[0-9])
2057 basic_machine=m68000-hp
2060 basic_machine=m68k-hp
2062 - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
2063 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
2064 + basic_machine=hppa1.0-hp
2066 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
2067 + basic_machine=hppa1.1-hp
2069 + hp9k78[0-9] | hp78[0-9])
2070 + # FIXME: really hppa2.0-hp
2071 + basic_machine=hppa1.1-hp
2073 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2074 + # FIXME: really hppa2.0-hp
2075 + basic_machine=hppa1.1-hp
2077 + hp9k8[0-9][13679] | hp8[0-9][13679])
2078 basic_machine=hppa1.1-hp
2080 hp9k8[0-9][0-9] | hp8[0-9][0-9])
2081 @@ -345,27 +596,42 @@
2086 + basic_machine=hppa1.1-hp
2090 + basic_machine=hppa1.1-hp
2094 basic_machine=i370-ibm
2097 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
2100 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2105 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2110 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2115 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2119 + basic_machine=i386-mach
2123 + basic_machine=i386-unknown
2127 basic_machine=mips-sgi
2129 @@ -391,16 +657,16 @@
2130 basic_machine=ns32k-utek
2134 + basic_machine=i386-pc
2138 basic_machine=m68000-convergent
2141 - basic_machine=mipsel-unknown
2145 - basic_machine=mips-unknown
2147 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
2148 + basic_machine=m68k-atari
2152 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
2153 @@ -408,10 +674,34 @@
2155 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
2158 + basic_machine=m68k-rom68k
2162 + basic_machine=powerpc-unknown
2166 + basic_machine=i386-pc
2170 + basic_machine=i370-ibm
2174 basic_machine=i486-ncr
2178 + basic_machine=i386-unknown
2182 + basic_machine=armv4l-rebel
2185 news | news700 | news800 | news900)
2186 basic_machine=m68k-sony
2188 @@ -424,6 +714,10 @@
2189 basic_machine=mips-sony
2193 + basic_machine=v70-nec
2197 basic_machine=m68k-next
2199 @@ -449,9 +743,40 @@
2200 basic_machine=i960-intel
2204 + basic_machine=i960-intel
2208 + basic_machine=mips-compaq
2212 basic_machine=np1-gould
2215 + basic_machine=nsr-tandem
2217 + op50n-* | op60c-*)
2218 + basic_machine=hppa1.1-oki
2222 + basic_machine=or32-unknown
2226 + basic_machine=powerpc-ibm
2229 + OSE68000 | ose68000)
2230 + basic_machine=m68000-ericsson
2234 + basic_machine=m68k-none
2238 basic_machine=hppa1.1-hitachi
2240 @@ -466,53 +791,95 @@
2242 basic_machine=m68k-tti
2246 basic_machine=ns32k-pc532
2249 - basic_machine=i586-intel
2250 + pentium | p5 | k5 | k6 | nexgen | viac3)
2251 + basic_machine=i586-pc
2253 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
2254 + basic_machine=i686-pc
2257 - basic_machine=i686-intel
2258 + pentiumii | pentium2 | pentiumiii | pentium3)
2259 + basic_machine=i686-pc
2263 + basic_machine=i786-pc
2265 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2266 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
2268 - pentiumpro-* | p6-*)
2269 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
2270 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2272 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2273 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
2276 - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
2277 - basic_machine=i586-amd
2280 - # We don't have specific support for Nexgen yet, so just call it a Pentium
2281 - basic_machine=i586-nexgen
2283 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
2286 basic_machine=pn-gould
2288 - power) basic_machine=rs6000-ibm
2289 + power) basic_machine=power-ibm
2291 ppc) basic_machine=powerpc-unknown
2294 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2296 ppcle | powerpclittle | ppc-le | powerpc-little)
2297 basic_machine=powerpcle-unknown
2300 ppcle-* | powerpclittle-*)
2301 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
2303 + ppc64) basic_machine=powerpc64-unknown
2305 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
2307 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
2308 + basic_machine=powerpc64le-unknown
2310 + ppc64le-* | powerpc64little-*)
2311 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
2314 basic_machine=i386-ibm
2317 + basic_machine=i586-unknown
2321 + basic_machine=m68k-rom68k
2325 basic_machine=mips-siemens
2328 basic_machine=romp-ibm
2331 + basic_machine=s390-ibm
2334 + basic_machine=s390x-ibm
2337 + basic_machine=a29k-amd
2341 + basic_machine=mipsisa64sb1-unknown
2344 + basic_machine=mipsisa64sb1el-unknown
2347 + basic_machine=mips-sei
2351 basic_machine=i386-sequent
2353 @@ -520,6 +887,13 @@
2354 basic_machine=sh-hitachi
2358 + basic_machine=sh64-unknown
2360 + sparclite-wrs | simso-wrs)
2361 + basic_machine=sparclite-wrs
2365 basic_machine=m68k-bull
2367 @@ -527,6 +901,13 @@
2369 basic_machine=spur-unknown
2372 + basic_machine=m68k-tandem
2375 + basic_machine=i860-stratus
2379 basic_machine=m68000-sun
2381 @@ -567,19 +948,51 @@
2382 sun386 | sun386i | roadrunner)
2383 basic_machine=i386-sun
2386 + basic_machine=sv1-cray
2390 basic_machine=i386-sequent
2394 + basic_machine=alphaev5-cray
2398 + basic_machine=t90-cray
2402 + basic_machine=tic54x-unknown
2406 + basic_machine=tic55x-unknown
2410 + basic_machine=tic6x-unknown
2414 basic_machine=mipstx39-unknown
2417 basic_machine=mipstx39el-unknown
2420 + basic_machine=pdp10-xkl
2424 basic_machine=m68k-ncr
2427 + basic_machine=s390x-ibm
2431 basic_machine=a29k-amd
2433 @@ -588,6 +1001,10 @@
2434 basic_machine=a29k-nyu
2438 + basic_machine=v810-nec
2442 basic_machine=vax-dec
2444 @@ -597,8 +1014,8 @@
2448 - basic_machine=f301-fujitsu
2450 + basic_machine=f301-fujitsu
2453 basic_machine=i960-wrs
2455 @@ -611,13 +1028,29 @@
2456 basic_machine=a29k-wrs
2460 - basic_machine=xmp-cray
2463 + basic_machine=w65-wdc
2467 + basic_machine=hppa1.1-winbond
2471 + basic_machine=i686-pc
2476 basic_machine=xps100-honeywell
2479 + basic_machine=ymp-cray
2483 + basic_machine=z8k-unknown
2487 basic_machine=none-none
2489 @@ -625,32 +1058,47 @@
2491 # Here we handle the default manufacturer of certain CPU types. It is in
2492 # some cases the only manufacturer, in others, it is the most popular.
2494 - if [ x$os = x-linux-gnu ]; then
2495 - basic_machine=mips-unknown
2497 - basic_machine=mips-mips
2500 + basic_machine=hppa1.1-winbond
2503 + basic_machine=hppa1.1-oki
2506 + basic_machine=hppa1.1-oki
2509 basic_machine=romp-ibm
2512 + basic_machine=mmix-knuth
2515 basic_machine=rs6000-ibm
2518 basic_machine=vax-dec
2521 + # there are many clones, so DEC is not a safe bet
2522 + basic_machine=pdp10-unknown
2525 basic_machine=pdp11-dec
2528 basic_machine=we32k-att
2531 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
2532 + basic_machine=sh-unknown
2535 + basic_machine=sh64-unknown
2537 + sparc | sparcv8 | sparcv9 | sparcv9b)
2538 basic_machine=sparc-sun
2542 basic_machine=cydra-cydrome
2545 @@ -659,6 +1107,15 @@
2547 basic_machine=clipper-highlevel
2549 + mac | mpw | mac-mpw)
2550 + basic_machine=m68k-apple
2553 + basic_machine=powerpc-apple
2556 + # Make sure to match an already-canonicalized machine name.
2559 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2561 @@ -711,14 +1168,46 @@
2563 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2564 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2565 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
2566 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
2567 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
2568 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2569 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2570 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2571 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2572 - | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2573 - | -mingw32* | -linux-gnu* | -uxpv*)
2574 + | -chorusos* | -chorusrdb* \
2575 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2576 + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
2577 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2578 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2579 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
2580 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2581 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2582 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
2583 # Remember, each alternative MUST END IN *, to match a version number.
2586 + case $basic_machine in
2597 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
2599 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
2600 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
2601 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
2604 + os=`echo $os | sed -e 's|mac|macos|'`
2607 + os=-linux-dietlibc
2610 os=`echo $os | sed -e 's|linux|linux-gnu|'`
2612 @@ -728,6 +1217,15 @@
2614 os=`echo $os | sed -e 's|sunos6|solaris3|'`
2628 @@ -743,11 +1241,26 @@
2654 # Preserve the version number of sinix5.
2656 @@ -756,6 +1269,9 @@
2666 @@ -774,9 +1290,27 @@
2667 # This must come after -sysvr4.
2679 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2694 @@ -802,10 +1336,20 @@
2708 + # This must come before the *-dec entry.
2716 @@ -823,15 +1367,42 @@
2732 *-tti) # must be before sparc entry or we get the wrong os.
2759 @@ -874,27 +1445,39 @@
2786 + f30[01]-fujitsu | f700-fujitsu)
2804 @@ -916,9 +1499,15 @@
2820 @@ -934,21 +1523,47 @@
2834 - -vxsim* | -vxworks*)
2838 + -vxsim* | -vxworks* | -windiss*)
2850 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
2857 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
2861 echo $basic_machine$os
2865 +# eval: (add-hook 'write-file-hooks 'time-stamp)
2866 +# time-stamp-start: "timestamp='"
2867 +# time-stamp-format: "%:y-%02m-%02d"
2868 +# time-stamp-end: "'"