ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/autoconf/config.guess
(Generate patch)

Comparing rxvt-unicode/autoconf/config.guess (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.2 by root, Tue Aug 10 22:36:30 2004 UTC

1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 5
6timestamp='2002-09-03' 6timestamp='2004-03-12'
7 7
8# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or 10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version. 11# (at your option) any later version.
96# headache to deal with in a portable fashion. 96# headache to deal with in a portable fashion.
97 97
98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
99# use `HOST_CC' if defined, but it is deprecated. 99# use `HOST_CC' if defined, but it is deprecated.
100 100
101# This shell variable is my proudest work .. or something. --bje 101# Portable tmp directory creation inspired by the Autoconf team.
102 102
103set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; 103set_cc_for_build='
104(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) 104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; 105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106: ${TMPDIR=/tmp} ;
107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106dummy=$tmpdir/dummy ; 111dummy=$tmp/dummy ;
107files="$dummy.c $dummy.o $dummy.rel $dummy" ; 112tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in 113case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ; 114 ,,) echo "int x;" > $dummy.c ;
111 for c in cc gcc c89 c99 ; do 115 for c in cc gcc c89 c99 ; do
112 if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then 116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$c"; break ; 117 CC_FOR_BUILD="$c"; break ;
114 fi ; 118 fi ;
115 done ; 119 done ;
116 rm -f $files ;
117 if test x"$CC_FOR_BUILD" = x ; then 120 if test x"$CC_FOR_BUILD" = x ; then
118 CC_FOR_BUILD=no_compiler_found ; 121 CC_FOR_BUILD=no_compiler_found ;
119 fi 122 fi
120 ;; 123 ;;
121 ,,*) CC_FOR_BUILD=$CC ;; 124 ,,*) CC_FOR_BUILD=$CC ;;
122 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
123esac ; 126esac ;'
124unset files'
125 127
126# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
127# (ghazi@noc.rutgers.edu 1994-08-24) 129# (ghazi@noc.rutgers.edu 1994-08-24)
128if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 130if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
129 PATH=$PATH:/.attbin ; export PATH 131 PATH=$PATH:/.attbin ; export PATH
176 *) 178 *)
177 os=netbsd 179 os=netbsd
178 ;; 180 ;;
179 esac 181 esac
180 # The OS release 182 # The OS release
183 # Debian GNU/NetBSD machines have a different userland, and
184 # thus, need a distinct triplet. However, they do not need
185 # kernel version information, so it can be replaced with a
186 # suitable tag, in the style of linux-gnu.
187 case "${UNAME_VERSION}" in
188 Debian*)
189 release='-gnu'
190 ;;
191 *)
181 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
193 ;;
194 esac
182 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
183 # contains redundant information, the shorter form: 196 # contains redundant information, the shorter form:
184 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
185 echo "${machine}-${os}${release}" 198 echo "${machine}-${os}${release}"
186 exit 0 ;; 199 exit 0 ;;
200 amd64:OpenBSD:*:*)
201 echo x86_64-unknown-openbsd${UNAME_RELEASE}
202 exit 0 ;;
187 amiga:OpenBSD:*:*) 203 amiga:OpenBSD:*:*)
188 echo m68k-unknown-openbsd${UNAME_RELEASE} 204 echo m68k-unknown-openbsd${UNAME_RELEASE}
189 exit 0 ;; 205 exit 0 ;;
190 arc:OpenBSD:*:*) 206 arc:OpenBSD:*:*)
191 echo mipsel-unknown-openbsd${UNAME_RELEASE} 207 echo mipsel-unknown-openbsd${UNAME_RELEASE}
192 exit 0 ;; 208 exit 0 ;;
209 cats:OpenBSD:*:*)
210 echo arm-unknown-openbsd${UNAME_RELEASE}
211 exit 0 ;;
193 hp300:OpenBSD:*:*) 212 hp300:OpenBSD:*:*)
194 echo m68k-unknown-openbsd${UNAME_RELEASE} 213 echo m68k-unknown-openbsd${UNAME_RELEASE}
195 exit 0 ;; 214 exit 0 ;;
196 mac68k:OpenBSD:*:*) 215 mac68k:OpenBSD:*:*)
197 echo m68k-unknown-openbsd${UNAME_RELEASE} 216 echo m68k-unknown-openbsd${UNAME_RELEASE}
206 echo m88k-unknown-openbsd${UNAME_RELEASE} 225 echo m88k-unknown-openbsd${UNAME_RELEASE}
207 exit 0 ;; 226 exit 0 ;;
208 mvmeppc:OpenBSD:*:*) 227 mvmeppc:OpenBSD:*:*)
209 echo powerpc-unknown-openbsd${UNAME_RELEASE} 228 echo powerpc-unknown-openbsd${UNAME_RELEASE}
210 exit 0 ;; 229 exit 0 ;;
230 pegasos:OpenBSD:*:*)
231 echo powerpc-unknown-openbsd${UNAME_RELEASE}
232 exit 0 ;;
211 pmax:OpenBSD:*:*) 233 pmax:OpenBSD:*:*)
212 echo mipsel-unknown-openbsd${UNAME_RELEASE} 234 echo mipsel-unknown-openbsd${UNAME_RELEASE}
213 exit 0 ;; 235 exit 0 ;;
214 sgi:OpenBSD:*:*) 236 sgi:OpenBSD:*:*)
215 echo mipseb-unknown-openbsd${UNAME_RELEASE} 237 echo mipseb-unknown-openbsd${UNAME_RELEASE}
221 echo mipsel-unknown-openbsd${UNAME_RELEASE} 243 echo mipsel-unknown-openbsd${UNAME_RELEASE}
222 exit 0 ;; 244 exit 0 ;;
223 *:OpenBSD:*:*) 245 *:OpenBSD:*:*)
224 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 246 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
225 exit 0 ;; 247 exit 0 ;;
248 *:ekkoBSD:*:*)
249 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
250 exit 0 ;;
251 macppc:MirBSD:*:*)
252 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
253 exit 0 ;;
254 *:MirBSD:*:*)
255 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
256 exit 0 ;;
226 alpha:OSF1:*:*) 257 alpha:OSF1:*:*)
227 if test $UNAME_RELEASE = "V4.0"; then 258 case $UNAME_RELEASE in
259 *4.0)
228 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 260 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
229 fi 261 ;;
262 *5.*)
263 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
264 ;;
265 esac
266 # According to Compaq, /usr/sbin/psrinfo has been available on
267 # OSF/1 and Tru64 systems produced since 1995. I hope that
268 # covers most systems running today. This code pipes the CPU
269 # types through head -n 1, so we only detect the type of CPU 0.
270 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
271 case "$ALPHA_CPU_TYPE" in
272 "EV4 (21064)")
273 UNAME_MACHINE="alpha" ;;
274 "EV4.5 (21064)")
275 UNAME_MACHINE="alpha" ;;
276 "LCA4 (21066/21068)")
277 UNAME_MACHINE="alpha" ;;
278 "EV5 (21164)")
279 UNAME_MACHINE="alphaev5" ;;
280 "EV5.6 (21164A)")
281 UNAME_MACHINE="alphaev56" ;;
282 "EV5.6 (21164PC)")
283 UNAME_MACHINE="alphapca56" ;;
284 "EV5.7 (21164PC)")
285 UNAME_MACHINE="alphapca57" ;;
286 "EV6 (21264)")
287 UNAME_MACHINE="alphaev6" ;;
288 "EV6.7 (21264A)")
289 UNAME_MACHINE="alphaev67" ;;
290 "EV6.8CB (21264C)")
291 UNAME_MACHINE="alphaev68" ;;
292 "EV6.8AL (21264B)")
293 UNAME_MACHINE="alphaev68" ;;
294 "EV6.8CX (21264D)")
295 UNAME_MACHINE="alphaev68" ;;
296 "EV6.9A (21264/EV69A)")
297 UNAME_MACHINE="alphaev69" ;;
298 "EV7 (21364)")
299 UNAME_MACHINE="alphaev7" ;;
300 "EV7.9 (21364A)")
301 UNAME_MACHINE="alphaev79" ;;
302 esac
303 # A Pn.n version is a patched version.
230 # A Vn.n version is a released version. 304 # A Vn.n version is a released version.
231 # A Tn.n version is a released field test version. 305 # A Tn.n version is a released field test version.
232 # A Xn.n version is an unreleased experimental baselevel. 306 # A Xn.n version is an unreleased experimental baselevel.
233 # 1.2 uses "1.2" for uname -r. 307 # 1.2 uses "1.2" for uname -r.
234 eval $set_cc_for_build
235 cat <<EOF >$dummy.s
236 .data
237\$Lformat:
238 .byte 37,100,45,37,120,10,0 # "%d-%x\n"
239
240 .text
241 .globl main
242 .align 4
243 .ent main
244main:
245 .frame \$30,16,\$26,0
246 ldgp \$29,0(\$27)
247 .prologue 1
248 .long 0x47e03d80 # implver \$0
249 lda \$2,-1
250 .long 0x47e20c21 # amask \$2,\$1
251 lda \$16,\$Lformat
252 mov \$0,\$17
253 not \$1,\$18
254 jsr \$26,printf
255 ldgp \$29,0(\$26)
256 mov 0,\$16
257 jsr \$26,exit
258 .end main
259EOF
260 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
261 if test "$?" = 0 ; then
262 case `$dummy` in
263 0-0)
264 UNAME_MACHINE="alpha"
265 ;;
266 1-0)
267 UNAME_MACHINE="alphaev5"
268 ;;
269 1-1)
270 UNAME_MACHINE="alphaev56"
271 ;;
272 1-101)
273 UNAME_MACHINE="alphapca56"
274 ;;
275 2-303)
276 UNAME_MACHINE="alphaev6"
277 ;;
278 2-307)
279 UNAME_MACHINE="alphaev67"
280 ;;
281 2-1307)
282 UNAME_MACHINE="alphaev68"
283 ;;
284 3-1307)
285 UNAME_MACHINE="alphaev7"
286 ;;
287 esac
288 fi
289 rm -f $dummy.s $dummy && rmdir $tmpdir
290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 308 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
309 exit 0 ;;
310 Alpha*:OpenVMS:*:*)
311 echo alpha-hp-vms
291 exit 0 ;; 312 exit 0 ;;
292 Alpha\ *:Windows_NT*:*) 313 Alpha\ *:Windows_NT*:*)
293 # How do we know it's Interix rather than the generic POSIX subsystem? 314 # How do we know it's Interix rather than the generic POSIX subsystem?
294 # Should we change UNAME_MACHINE based on the output of uname instead 315 # Should we change UNAME_MACHINE based on the output of uname instead
295 # of the specific Alpha model? 316 # of the specific Alpha model?
307 *:[Mm]orph[Oo][Ss]:*:*) 328 *:[Mm]orph[Oo][Ss]:*:*)
308 echo ${UNAME_MACHINE}-unknown-morphos 329 echo ${UNAME_MACHINE}-unknown-morphos
309 exit 0 ;; 330 exit 0 ;;
310 *:OS/390:*:*) 331 *:OS/390:*:*)
311 echo i370-ibm-openedition 332 echo i370-ibm-openedition
333 exit 0 ;;
334 *:OS400:*:*)
335 echo powerpc-ibm-os400
312 exit 0 ;; 336 exit 0 ;;
313 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 337 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
314 echo arm-acorn-riscix${UNAME_RELEASE} 338 echo arm-acorn-riscix${UNAME_RELEASE}
315 exit 0;; 339 exit 0;;
316 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 340 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
325 fi 349 fi
326 exit 0 ;; 350 exit 0 ;;
327 NILE*:*:*:dcosx) 351 NILE*:*:*:dcosx)
328 echo pyramid-pyramid-svr4 352 echo pyramid-pyramid-svr4
329 exit 0 ;; 353 exit 0 ;;
354 DRS?6000:unix:4.0:6*)
355 echo sparc-icl-nx6
356 exit 0 ;;
330 DRS?6000:UNIX_SV:4.2*:7*) 357 DRS?6000:UNIX_SV:4.2*:7*)
331 case `/usr/bin/uname -p` in 358 case `/usr/bin/uname -p` in
332 sparc) echo sparc-icl-nx7 && exit 0 ;; 359 sparc) echo sparc-icl-nx7 && exit 0 ;;
333 esac ;; 360 esac ;;
334 sun4H:SunOS:5.*:*) 361 sun4H:SunOS:5.*:*)
397 echo m68k-hades-mint${UNAME_RELEASE} 424 echo m68k-hades-mint${UNAME_RELEASE}
398 exit 0 ;; 425 exit 0 ;;
399 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 426 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
400 echo m68k-unknown-mint${UNAME_RELEASE} 427 echo m68k-unknown-mint${UNAME_RELEASE}
401 exit 0 ;; 428 exit 0 ;;
429 m68k:machten:*:*)
430 echo m68k-apple-machten${UNAME_RELEASE}
431 exit 0 ;;
402 powerpc:machten:*:*) 432 powerpc:machten:*:*)
403 echo powerpc-apple-machten${UNAME_RELEASE} 433 echo powerpc-apple-machten${UNAME_RELEASE}
404 exit 0 ;; 434 exit 0 ;;
405 RISC*:Mach:*:*) 435 RISC*:Mach:*:*)
406 echo mips-dec-mach_bsd4.3 436 echo mips-dec-mach_bsd4.3
435 #endif 465 #endif
436 #endif 466 #endif
437 exit (-1); 467 exit (-1);
438 } 468 }
439EOF 469EOF
440 $CC_FOR_BUILD $dummy.c -o $dummy \ 470 $CC_FOR_BUILD -o $dummy $dummy.c \
441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 471 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 472 && exit 0
443 rm -f $dummy.c $dummy && rmdir $tmpdir
444 echo mips-mips-riscos${UNAME_RELEASE} 473 echo mips-mips-riscos${UNAME_RELEASE}
445 exit 0 ;; 474 exit 0 ;;
446 Motorola:PowerMAX_OS:*:*) 475 Motorola:PowerMAX_OS:*:*)
447 echo powerpc-motorola-powermax 476 echo powerpc-motorola-powermax
448 exit 0 ;; 477 exit 0 ;;
449 Motorola:*:4.3:PL8-*) 478 Motorola:*:4.3:PL8-*)
450 echo powerpc-harris-powermax 479 echo powerpc-harris-powermax
451 exit 0 ;; 480 exit 0 ;;
452 Night_Hawk:*:*:PowerMAX_OS) 481 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
453 echo powerpc-harris-powermax 482 echo powerpc-harris-powermax
454 exit 0 ;; 483 exit 0 ;;
455 Night_Hawk:Power_UNIX:*:*) 484 Night_Hawk:Power_UNIX:*:*)
456 echo powerpc-harris-powerunix 485 echo powerpc-harris-powerunix
457 exit 0 ;; 486 exit 0 ;;
522 exit(1); 551 exit(1);
523 puts("powerpc-ibm-aix3.2.5"); 552 puts("powerpc-ibm-aix3.2.5");
524 exit(0); 553 exit(0);
525 } 554 }
526EOF 555EOF
527 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 556 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
528 rm -f $dummy.c $dummy && rmdir $tmpdir
529 echo rs6000-ibm-aix3.2.5 557 echo rs6000-ibm-aix3.2.5
530 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 558 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
531 echo rs6000-ibm-aix3.2.4 559 echo rs6000-ibm-aix3.2.4
532 else 560 else
533 echo rs6000-ibm-aix3.2 561 echo rs6000-ibm-aix3.2
621 default: puts ("hppa1.0"); break; 649 default: puts ("hppa1.0"); break;
622 } 650 }
623 exit (0); 651 exit (0);
624 } 652 }
625EOF 653EOF
626 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` 654 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
627 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 655 test -z "$HP_ARCH" && HP_ARCH=hppa
628 rm -f $dummy.c $dummy && rmdir $tmpdir
629 fi ;; 656 fi ;;
630 esac 657 esac
658 if [ ${HP_ARCH} = "hppa2.0w" ]
659 then
660 # avoid double evaluation of $set_cc_for_build
661 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
663 then
664 HP_ARCH="hppa2.0w"
665 else
666 HP_ARCH="hppa64"
667 fi
668 fi
631 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 669 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
632 exit 0 ;; 670 exit 0 ;;
633 ia64:HP-UX:*:*) 671 ia64:HP-UX:*:*)
634 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 672 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
635 echo ia64-hp-hpux${HPUX_REV} 673 echo ia64-hp-hpux${HPUX_REV}
659 puts ("m68k-hitachi-hiuxwe2"); 697 puts ("m68k-hitachi-hiuxwe2");
660 else puts ("unknown-hitachi-hiuxwe2"); 698 else puts ("unknown-hitachi-hiuxwe2");
661 exit (0); 699 exit (0);
662 } 700 }
663EOF 701EOF
664 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 702 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
665 rm -f $dummy.c $dummy && rmdir $tmpdir
666 echo unknown-hitachi-hiuxwe2 703 echo unknown-hitachi-hiuxwe2
667 exit 0 ;; 704 exit 0 ;;
668 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 705 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
669 echo hppa1.1-hp-bsd 706 echo hppa1.1-hp-bsd
670 exit 0 ;; 707 exit 0 ;;
718 -e 's/\.[^.]*$/.X/' 755 -e 's/\.[^.]*$/.X/'
719 exit 0 ;; 756 exit 0 ;;
720 CRAY*TS:*:*:*) 757 CRAY*TS:*:*:*)
721 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 758 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
722 exit 0 ;; 759 exit 0 ;;
723 CRAY*T3D:*:*:*)
724 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
725 exit 0 ;;
726 CRAY*T3E:*:*:*) 760 CRAY*T3E:*:*:*)
727 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 761 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
728 exit 0 ;; 762 exit 0 ;;
729 CRAY*SV1:*:*:*) 763 CRAY*SV1:*:*:*)
730 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 764 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 exit 0 ;;
766 *:UNICOS/mp:*:*)
767 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit 0 ;; 768 exit 0 ;;
732 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 769 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
733 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 770 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
734 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
735 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
736 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 773 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
737 exit 0 ;; 774 exit 0 ;;
775 5000:UNIX_System_V:4.*:*)
776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779 exit 0 ;;
738 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 780 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
739 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 781 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
740 exit 0 ;; 782 exit 0 ;;
741 sparc*:BSD/OS:*:*) 783 sparc*:BSD/OS:*:*)
742 echo sparc-unknown-bsdi${UNAME_RELEASE} 784 echo sparc-unknown-bsdi${UNAME_RELEASE}
754 #else 796 #else
755 LIBC= 797 LIBC=
756 #endif 798 #endif
757EOF 799EOF
758 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 800 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
759 rm -f $dummy.c && rmdir $tmpdir 801 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
802 # FreeBSD's kernel, but not the complete OS.
803 case ${LIBC} in gnu) kernel_only='k' ;; esac
760 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 804 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
761 exit 0 ;; 805 exit 0 ;;
762 i*:CYGWIN*:*) 806 i*:CYGWIN*:*)
763 echo ${UNAME_MACHINE}-pc-cygwin 807 echo ${UNAME_MACHINE}-pc-cygwin
764 exit 0 ;; 808 exit 0 ;;
765 i*:MINGW*:*) 809 i*:MINGW*:*)
766 echo ${UNAME_MACHINE}-pc-mingw32 810 echo ${UNAME_MACHINE}-pc-mingw32
767 exit 0 ;; 811 exit 0 ;;
768 i*:PW*:*) 812 i*:PW*:*)
769 echo ${UNAME_MACHINE}-pc-pw32 813 echo ${UNAME_MACHINE}-pc-pw32
770 exit 0 ;; 814 exit 0 ;;
771 x86:Interix*:3*) 815 x86:Interix*:[34]*)
772 echo i386-pc-interix3 816 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
817 exit 0 ;;
818 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
819 echo i${UNAME_MACHINE}-pc-mks
773 exit 0 ;; 820 exit 0 ;;
774 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 821 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
775 # How do we know it's Interix rather than the generic POSIX subsystem? 822 # How do we know it's Interix rather than the generic POSIX subsystem?
776 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 823 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
777 # UNAME_MACHINE based on the output of uname instead of i386? 824 # UNAME_MACHINE based on the output of uname instead of i386?
778 echo i386-pc-interix 825 echo i586-pc-interix
779 exit 0 ;; 826 exit 0 ;;
780 i*:UWIN*:*) 827 i*:UWIN*:*)
781 echo ${UNAME_MACHINE}-pc-uwin 828 echo ${UNAME_MACHINE}-pc-uwin
782 exit 0 ;; 829 exit 0 ;;
783 p*:CYGWIN*:*) 830 p*:CYGWIN*:*)
785 exit 0 ;; 832 exit 0 ;;
786 prep*:SunOS:5.*:*) 833 prep*:SunOS:5.*:*)
787 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 834 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
788 exit 0 ;; 835 exit 0 ;;
789 *:GNU:*:*) 836 *:GNU:*:*)
837 # the GNU system
790 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 838 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
839 exit 0 ;;
840 *:GNU/*:*:*)
841 # other systems with GNU libc and userland
842 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
791 exit 0 ;; 843 exit 0 ;;
792 i*86:Minix:*:*) 844 i*86:Minix:*:*)
793 echo ${UNAME_MACHINE}-pc-minix 845 echo ${UNAME_MACHINE}-pc-minix
794 exit 0 ;; 846 exit 0 ;;
795 arm*:Linux:*:*) 847 arm*:Linux:*:*)
796 echo ${UNAME_MACHINE}-unknown-linux-gnu 848 echo ${UNAME_MACHINE}-unknown-linux-gnu
797 exit 0 ;; 849 exit 0 ;;
850 cris:Linux:*:*)
851 echo cris-axis-linux-gnu
852 exit 0 ;;
798 ia64:Linux:*:*) 853 ia64:Linux:*:*)
854 echo ${UNAME_MACHINE}-unknown-linux-gnu
855 exit 0 ;;
856 m32r*:Linux:*:*)
799 echo ${UNAME_MACHINE}-unknown-linux-gnu 857 echo ${UNAME_MACHINE}-unknown-linux-gnu
800 exit 0 ;; 858 exit 0 ;;
801 m68*:Linux:*:*) 859 m68*:Linux:*:*)
802 echo ${UNAME_MACHINE}-unknown-linux-gnu 860 echo ${UNAME_MACHINE}-unknown-linux-gnu
803 exit 0 ;; 861 exit 0 ;;
816 CPU= 874 CPU=
817 #endif 875 #endif
818 #endif 876 #endif
819EOF 877EOF
820 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 878 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
821 rm -f $dummy.c && rmdir $tmpdir
822 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 879 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
880 ;;
881 mips64:Linux:*:*)
882 eval $set_cc_for_build
883 sed 's/^ //' << EOF >$dummy.c
884 #undef CPU
885 #undef mips64
886 #undef mips64el
887 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
888 CPU=mips64el
889 #else
890 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
891 CPU=mips64
892 #else
893 CPU=
894 #endif
895 #endif
896EOF
897 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
898 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
823 ;; 899 ;;
824 ppc:Linux:*:*) 900 ppc:Linux:*:*)
825 echo powerpc-unknown-linux-gnu 901 echo powerpc-unknown-linux-gnu
826 exit 0 ;; 902 exit 0 ;;
827 ppc64:Linux:*:*) 903 ppc64:Linux:*:*)
852 parisc64:Linux:*:* | hppa64:Linux:*:*) 928 parisc64:Linux:*:* | hppa64:Linux:*:*)
853 echo hppa64-unknown-linux-gnu 929 echo hppa64-unknown-linux-gnu
854 exit 0 ;; 930 exit 0 ;;
855 s390:Linux:*:* | s390x:Linux:*:*) 931 s390:Linux:*:* | s390x:Linux:*:*)
856 echo ${UNAME_MACHINE}-ibm-linux 932 echo ${UNAME_MACHINE}-ibm-linux
933 exit 0 ;;
934 sh64*:Linux:*:*)
935 echo ${UNAME_MACHINE}-unknown-linux-gnu
857 exit 0 ;; 936 exit 0 ;;
858 sh*:Linux:*:*) 937 sh*:Linux:*:*)
859 echo ${UNAME_MACHINE}-unknown-linux-gnu 938 echo ${UNAME_MACHINE}-unknown-linux-gnu
860 exit 0 ;; 939 exit 0 ;;
861 sparc:Linux:*:* | sparc64:Linux:*:*) 940 sparc:Linux:*:* | sparc64:Linux:*:*)
910 LIBC=gnu 989 LIBC=gnu
911 #else 990 #else
912 LIBC=gnuaout 991 LIBC=gnuaout
913 #endif 992 #endif
914 #endif 993 #endif
994 #ifdef __dietlibc__
995 LIBC=dietlibc
996 #endif
915EOF 997EOF
916 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 998 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
917 rm -f $dummy.c && rmdir $tmpdir
918 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 999 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
919 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1000 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
920 ;; 1001 ;;
921 i*86:DYNIX/ptx:4*:*) 1002 i*86:DYNIX/ptx:4*:*)
922 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1003 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
929 # number series starting with 2... 1010 # number series starting with 2...
930 # I am not positive that other SVR4 systems won't match this, 1011 # I am not positive that other SVR4 systems won't match this,
931 # I just have to hope. -- rms. 1012 # I just have to hope. -- rms.
932 # Use sysv4.2uw... so that sysv4* matches it. 1013 # Use sysv4.2uw... so that sysv4* matches it.
933 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1014 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1015 exit 0 ;;
1016 i*86:OS/2:*:*)
1017 # If we were able to find `uname', then EMX Unix compatibility
1018 # is probably installed.
1019 echo ${UNAME_MACHINE}-pc-os2-emx
1020 exit 0 ;;
1021 i*86:XTS-300:*:STOP)
1022 echo ${UNAME_MACHINE}-unknown-stop
1023 exit 0 ;;
1024 i*86:atheos:*:*)
1025 echo ${UNAME_MACHINE}-unknown-atheos
1026 exit 0 ;;
1027 i*86:syllable:*:*)
1028 echo ${UNAME_MACHINE}-pc-syllable
1029 exit 0 ;;
1030 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1031 echo i386-unknown-lynxos${UNAME_RELEASE}
1032 exit 0 ;;
1033 i*86:*DOS:*:*)
1034 echo ${UNAME_MACHINE}-pc-msdosdjgpp
934 exit 0 ;; 1035 exit 0 ;;
935 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1036 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
936 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1037 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
937 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1038 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
938 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1039 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
964 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1065 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
965 else 1066 else
966 echo ${UNAME_MACHINE}-pc-sysv32 1067 echo ${UNAME_MACHINE}-pc-sysv32
967 fi 1068 fi
968 exit 0 ;; 1069 exit 0 ;;
969 i*86:*DOS:*:*)
970 echo ${UNAME_MACHINE}-pc-msdosdjgpp
971 exit 0 ;;
972 pc:*:*:*) 1070 pc:*:*:*)
973 # Left here for compatibility: 1071 # Left here for compatibility:
974 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1072 # uname -m prints for DJGPP always 'pc', but it prints nothing about
975 # the processor, so we play safe by assuming i386. 1073 # the processor, so we play safe by assuming i386.
976 echo i386-pc-msdosdjgpp 1074 echo i386-pc-msdosdjgpp
993 echo m68010-convergent-sysv 1091 echo m68010-convergent-sysv
994 exit 0 ;; 1092 exit 0 ;;
995 mc68k:UNIX:SYSTEM5:3.51m) 1093 mc68k:UNIX:SYSTEM5:3.51m)
996 echo m68k-convergent-sysv 1094 echo m68k-convergent-sysv
997 exit 0 ;; 1095 exit 0 ;;
1096 M680?0:D-NIX:5.3:*)
1097 echo m68k-diab-dnix
1098 exit 0 ;;
998 M68*:*:R3V[567]*:*) 1099 M68*:*:R3V[567]*:*)
999 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1100 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1000 3[34]??:*: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) 1101 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)
1001 OS_REL='' 1102 OS_REL=''
1002 test -r /etc/.relid \ 1103 test -r /etc/.relid \
1003 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1104 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1004 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1105 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1005 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1106 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1012 echo m68k-unknown-lynxos${UNAME_RELEASE} 1113 echo m68k-unknown-lynxos${UNAME_RELEASE}
1013 exit 0 ;; 1114 exit 0 ;;
1014 mc68030:UNIX_System_V:4.*:*) 1115 mc68030:UNIX_System_V:4.*:*)
1015 echo m68k-atari-sysv4 1116 echo m68k-atari-sysv4
1016 exit 0 ;; 1117 exit 0 ;;
1017 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1018 echo i386-unknown-lynxos${UNAME_RELEASE}
1019 exit 0 ;;
1020 TSUNAMI:LynxOS:2.*:*) 1118 TSUNAMI:LynxOS:2.*:*)
1021 echo sparc-unknown-lynxos${UNAME_RELEASE} 1119 echo sparc-unknown-lynxos${UNAME_RELEASE}
1022 exit 0 ;; 1120 exit 0 ;;
1023 rs6000:LynxOS:2.*:*) 1121 rs6000:LynxOS:2.*:*)
1024 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1122 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1096 exit 0 ;; 1194 exit 0 ;;
1097 *:Rhapsody:*:*) 1195 *:Rhapsody:*:*)
1098 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1196 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1099 exit 0 ;; 1197 exit 0 ;;
1100 *:Darwin:*:*) 1198 *:Darwin:*:*)
1101 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1199 case `uname -p` in
1200 *86) UNAME_PROCESSOR=i686 ;;
1201 powerpc) UNAME_PROCESSOR=powerpc ;;
1202 esac
1203 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1102 exit 0 ;; 1204 exit 0 ;;
1103 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1205 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1104 UNAME_PROCESSOR=`uname -p` 1206 UNAME_PROCESSOR=`uname -p`
1105 if test "$UNAME_PROCESSOR" = "x86"; then 1207 if test "$UNAME_PROCESSOR" = "x86"; then
1106 UNAME_PROCESSOR=i386 1208 UNAME_PROCESSOR=i386
1109 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1211 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1110 exit 0 ;; 1212 exit 0 ;;
1111 *:QNX:*:4*) 1213 *:QNX:*:4*)
1112 echo i386-pc-qnx 1214 echo i386-pc-qnx
1113 exit 0 ;; 1215 exit 0 ;;
1114 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) 1216 NSR-?:NONSTOP_KERNEL:*:*)
1115 echo nsr-tandem-nsk${UNAME_RELEASE} 1217 echo nsr-tandem-nsk${UNAME_RELEASE}
1116 exit 0 ;; 1218 exit 0 ;;
1117 *:NonStop-UX:*:*) 1219 *:NonStop-UX:*:*)
1118 echo mips-compaq-nonstopux 1220 echo mips-compaq-nonstopux
1119 exit 0 ;; 1221 exit 0 ;;
1132 else 1234 else
1133 UNAME_MACHINE="$cputype" 1235 UNAME_MACHINE="$cputype"
1134 fi 1236 fi
1135 echo ${UNAME_MACHINE}-unknown-plan9 1237 echo ${UNAME_MACHINE}-unknown-plan9
1136 exit 0 ;; 1238 exit 0 ;;
1137 i*86:OS/2:*:*)
1138 # If we were able to find `uname', then EMX Unix compatibility
1139 # is probably installed.
1140 echo ${UNAME_MACHINE}-pc-os2-emx
1141 exit 0 ;;
1142 *:TOPS-10:*:*) 1239 *:TOPS-10:*:*)
1143 echo pdp10-unknown-tops10 1240 echo pdp10-unknown-tops10
1144 exit 0 ;; 1241 exit 0 ;;
1145 *:TENEX:*:*) 1242 *:TENEX:*:*)
1146 echo pdp10-unknown-tenex 1243 echo pdp10-unknown-tenex
1155 echo pdp10-unknown-tops20 1252 echo pdp10-unknown-tops20
1156 exit 0 ;; 1253 exit 0 ;;
1157 *:ITS:*:*) 1254 *:ITS:*:*)
1158 echo pdp10-unknown-its 1255 echo pdp10-unknown-its
1159 exit 0 ;; 1256 exit 0 ;;
1160 i*86:XTS-300:*:STOP) 1257 SEI:*:*:SEIUX)
1161 echo ${UNAME_MACHINE}-unknown-stop 1258 echo mips-sei-seiux${UNAME_RELEASE}
1162 exit 0 ;; 1259 exit 0 ;;
1163 i*86:atheos:*:*) 1260 *:DragonFly:*:*)
1164 echo ${UNAME_MACHINE}-unknown-atheos 1261 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1165 exit 0 ;; 1262 exit 0 ;;
1166esac 1263esac
1167 1264
1168#echo '(No uname command or uname output not recognized.)' 1>&2 1265#echo '(No uname command or uname output not recognized.)' 1>&2
1169#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1266#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1281 1378
1282 exit (1); 1379 exit (1);
1283} 1380}
1284EOF 1381EOF
1285 1382
1286$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 1383$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
1287rm -f $dummy.c $dummy && rmdir $tmpdir
1288 1384
1289# Apollos put the system type in the environment. 1385# Apollos put the system type in the environment.
1290 1386
1291test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 1387test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
1292 1388

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines