comparison config.guess @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents cc15677e0335
children 74fd4e045ea6
comparison
equal deleted inserted replaced
379:76b7d63099ad 380:8626e4521993
110 echo m68k-cbm-netbsd${UNAME_RELEASE} 110 echo m68k-cbm-netbsd${UNAME_RELEASE}
111 exit 0 ;; 111 exit 0 ;;
112 amiga:OpenBSD:*:*) 112 amiga:OpenBSD:*:*)
113 echo m68k-unknown-openbsd${UNAME_RELEASE} 113 echo m68k-unknown-openbsd${UNAME_RELEASE}
114 exit 0 ;; 114 exit 0 ;;
115 *:[Aa]miga[Oo][Ss]:*:*)
116 echo ${UNAME_MACHINE}-unknown-amigaos
117 exit 0 ;;
115 arc64:OpenBSD:*:*) 118 arc64:OpenBSD:*:*)
116 echo mips64el-unknown-openbsd${UNAME_RELEASE} 119 echo mips64el-unknown-openbsd${UNAME_RELEASE}
117 exit 0 ;; 120 exit 0 ;;
118 arc:OpenBSD:*:*) 121 arc:OpenBSD:*:*)
119 echo mipsel-unknown-openbsd${UNAME_RELEASE} 122 echo mipsel-unknown-openbsd${UNAME_RELEASE}
137 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 140 echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
138 exit 0 ;; 141 exit 0 ;;
139 SR2?01:HI-UX/MPP:*:*) 142 SR2?01:HI-UX/MPP:*:*)
140 echo hppa1.1-hitachi-hiuxmpp 143 echo hppa1.1-hitachi-hiuxmpp
141 exit 0;; 144 exit 0;;
142 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) 145 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)
143 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 146 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
144 if test "`(/bin/universe) 2>/dev/null`" = att ; then 147 if test "`(/bin/universe) 2>/dev/null`" = att ; then
145 echo pyramid-pyramid-sysv3 148 echo pyramid-pyramid-sysv3
146 else 149 else
147 echo pyramid-pyramid-bsd 150 echo pyramid-pyramid-bsd
217 echo m88k-unknown-openbsd${UNAME_RELEASE} 220 echo m88k-unknown-openbsd${UNAME_RELEASE}
218 exit 0 ;; 221 exit 0 ;;
219 powerpc:machten:*:*) 222 powerpc:machten:*:*)
220 echo powerpc-apple-machten${UNAME_RELEASE} 223 echo powerpc-apple-machten${UNAME_RELEASE}
221 exit 0 ;; 224 exit 0 ;;
225 macppc:NetBSD:*:*)
226 echo powerpc-apple-netbsd${UNAME_RELEASE}
227 exit 0 ;;
222 RISC*:Mach:*:*) 228 RISC*:Mach:*:*)
223 echo mips-dec-mach_bsd4.3 229 echo mips-dec-mach_bsd4.3
224 exit 0 ;; 230 exit 0 ;;
225 RISC*:ULTRIX:*:*) 231 RISC*:ULTRIX:*:*)
226 echo mips-dec-ultrix${UNAME_RELEASE} 232 echo mips-dec-ultrix${UNAME_RELEASE}
322 else 328 else
323 echo rs6000-ibm-aix3.2 329 echo rs6000-ibm-aix3.2
324 fi 330 fi
325 exit 0 ;; 331 exit 0 ;;
326 *:AIX:*:4) 332 *:AIX:*:4)
327 if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then 333 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
334 if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
328 IBM_ARCH=rs6000 335 IBM_ARCH=rs6000
329 else 336 else
330 IBM_ARCH=powerpc 337 IBM_ARCH=powerpc
331 fi 338 fi
332 if [ -x /usr/bin/oslevel ] ; then 339 if [ -x /usr/bin/oslevel ] ; then
355 echo m68k-hp-bsd 362 echo m68k-hp-bsd
356 exit 0 ;; 363 exit 0 ;;
357 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 364 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
358 echo m68k-hp-bsd4.4 365 echo m68k-hp-bsd4.4
359 exit 0 ;; 366 exit 0 ;;
360 9000/[3478]??:HP-UX:*:*) 367 9000/[34678]??:HP-UX:*:*)
361 case "${UNAME_MACHINE}" in 368 case "${UNAME_MACHINE}" in
362 9000/31? ) HP_ARCH=m68000 ;; 369 9000/31? ) HP_ARCH=m68000 ;;
363 9000/[34]?? ) HP_ARCH=m68k ;; 370 9000/[34]?? ) HP_ARCH=m68k ;;
364 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; 371 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 )
365 9000/8?? ) HP_ARCH=hppa1.0 ;; 372 sed 's/^ //' << EOF >dummy.c
373 #include <stdlib.h>
374 #include <unistd.h>
375
376 int main ()
377 {
378 #if defined(_SC_KERNEL_BITS)
379 long bits = sysconf(_SC_KERNEL_BITS);
380 #endif
381 long cpu = sysconf (_SC_CPU_VERSION);
382
383 switch (cpu)
384 {
385 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
386 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
387 case CPU_PA_RISC2_0:
388 #if defined(_SC_KERNEL_BITS)
389 switch (bits)
390 {
391 case 64: puts ("hppa2.0w"); break;
392 case 32: puts ("hppa2.0n"); break;
393 default: puts ("hppa2.0"); break;
394 } break;
395 #else /* !defined(_SC_KERNEL_BITS) */
396 puts ("hppa2.0"); break;
397 #endif
398 default: puts ("hppa1.0"); break;
399 }
400 exit (0);
401 }
402 EOF
403 ${CC-cc} dummy.c -o dummy && HP_ARCH=`./dummy`
404 rm -f dummy.c dummy
366 esac 405 esac
367 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 406 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
368 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 407 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
369 exit 0 ;; 408 exit 0 ;;
370 3050*:HI-UX:*:*) 409 3050*:HI-UX:*:*)
465 hp3[0-9][05]:NetBSD:*:*) 504 hp3[0-9][05]:NetBSD:*:*)
466 echo m68k-hp-netbsd${UNAME_RELEASE} 505 echo m68k-hp-netbsd${UNAME_RELEASE}
467 exit 0 ;; 506 exit 0 ;;
468 hp300:OpenBSD:*:*) 507 hp300:OpenBSD:*:*)
469 echo m68k-unknown-openbsd${UNAME_RELEASE} 508 echo m68k-unknown-openbsd${UNAME_RELEASE}
509 exit 0 ;;
510 sparc*:BSD/OS:*:*)
511 echo sparc-unknown-bsdi${UNAME_RELEASE}
470 exit 0 ;; 512 exit 0 ;;
471 i?86:BSD/386:*:* | *:BSD/OS:*:*) 513 i?86:BSD/386:*:* | *:BSD/OS:*:*)
472 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 514 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
473 exit 0 ;; 515 exit 0 ;;
474 *:FreeBSD:*:*) 516 *:FreeBSD:*:*)
660 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 702 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
661 else 703 else
662 echo ${UNAME_MACHINE}-pc-sysv32 704 echo ${UNAME_MACHINE}-pc-sysv32
663 fi 705 fi
664 exit 0 ;; 706 exit 0 ;;
707 i?86:UnixWare:*:*)
708 if /bin/uname -X 2>/dev/null >/dev/null ; then
709 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
710 && UNAME_MACHINE=i586
711 fi
712 echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
713 exit 0 ;;
665 pc:*:*:*) 714 pc:*:*:*)
666 # uname -m prints for DJGPP always 'pc', but it prints nothing about 715 # uname -m prints for DJGPP always 'pc', but it prints nothing about
667 # the processor, so we play safe by assuming i386. 716 # the processor, so we play safe by assuming i386.
668 echo i386-pc-msdosdjgpp 717 echo i386-pc-msdosdjgpp
669 exit 0 ;; 718 exit 0 ;;
743 echo m68k-apple-aux${UNAME_RELEASE} 792 echo m68k-apple-aux${UNAME_RELEASE}
744 exit 0 ;; 793 exit 0 ;;
745 news*:NEWS-OS:*:6*) 794 news*:NEWS-OS:*:6*)
746 echo mips-sony-newsos6 795 echo mips-sony-newsos6
747 exit 0 ;; 796 exit 0 ;;
748 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) 797 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)
749 if [ -d /usr/nec ]; then 798 if [ -d /usr/nec ]; then
750 echo mips-nec-sysv${UNAME_RELEASE} 799 echo mips-nec-sysv${UNAME_RELEASE}
751 else 800 else
752 echo mips-unknown-sysv${UNAME_RELEASE} 801 echo mips-unknown-sysv${UNAME_RELEASE}
753 fi 802 fi
754 exit 0 ;; 803 exit 0 ;;
804 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
805 echo powerpc-be-beos
806 exit 0 ;;
807 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
808 echo powerpc-apple-beos
809 exit 0 ;;
810 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
811 echo i586-pc-beos
812 exit 0 ;;
755 esac 813 esac
756 814
757 #echo '(No uname command or uname output not recognized.)' 1>&2 815 #echo '(No uname command or uname output not recognized.)' 1>&2
758 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 816 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
759 817