summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess158
1 files changed, 79 insertions, 79 deletions
diff --git a/config.guess b/config.guess
index 11271623b..59d4b87a5 100755
--- a/config.guess
+++ b/config.guess
@@ -176,7 +176,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
176 fi 176 fi
177 ;; 177 ;;
178 *) 178 *)
179 os=netbsd 179 os=netbsd
180 ;; 180 ;;
181 esac 181 esac
182 # The OS release 182 # The OS release
@@ -382,23 +382,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
382 # MiNT. But MiNT is downward compatible to TOS, so this should 382 # MiNT. But MiNT is downward compatible to TOS, so this should
383 # be no problem. 383 # be no problem.
384 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 384 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
385 echo m68k-atari-mint${UNAME_RELEASE} 385 echo m68k-atari-mint${UNAME_RELEASE}
386 exit 0 ;; 386 exit 0 ;;
387 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 387 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
388 echo m68k-atari-mint${UNAME_RELEASE} 388 echo m68k-atari-mint${UNAME_RELEASE}
389 exit 0 ;; 389 exit 0 ;;
390 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 390 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
391 echo m68k-atari-mint${UNAME_RELEASE} 391 echo m68k-atari-mint${UNAME_RELEASE}
392 exit 0 ;; 392 exit 0 ;;
393 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 393 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
394 echo m68k-milan-mint${UNAME_RELEASE} 394 echo m68k-milan-mint${UNAME_RELEASE}
395 exit 0 ;; 395 exit 0 ;;
396 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 396 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
397 echo m68k-hades-mint${UNAME_RELEASE} 397 echo m68k-hades-mint${UNAME_RELEASE}
398 exit 0 ;; 398 exit 0 ;;
399 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 399 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
400 echo m68k-unknown-mint${UNAME_RELEASE} 400 echo m68k-unknown-mint${UNAME_RELEASE}
401 exit 0 ;; 401 exit 0 ;;
402 powerpc:machten:*:*) 402 powerpc:machten:*:*)
403 echo powerpc-apple-machten${UNAME_RELEASE} 403 echo powerpc-apple-machten${UNAME_RELEASE}
404 exit 0 ;; 404 exit 0 ;;
@@ -464,8 +464,8 @@ EOF
464 echo m88k-motorola-sysv3 464 echo m88k-motorola-sysv3
465 exit 0 ;; 465 exit 0 ;;
466 AViiON:dgux:*:*) 466 AViiON:dgux:*:*)
467 # DG/UX returns AViiON for all architectures 467 # DG/UX returns AViiON for all architectures
468 UNAME_PROCESSOR=`/usr/bin/uname -p` 468 UNAME_PROCESSOR=`/usr/bin/uname -p`
469 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 469 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
470 then 470 then
471 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 471 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -478,7 +478,7 @@ EOF
478 else 478 else
479 echo i586-dg-dgux${UNAME_RELEASE} 479 echo i586-dg-dgux${UNAME_RELEASE}
480 fi 480 fi
481 exit 0 ;; 481 exit 0 ;;
482 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 482 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
483 echo m88k-dolphin-sysv3 483 echo m88k-dolphin-sysv3
484 exit 0 ;; 484 exit 0 ;;
@@ -574,52 +574,52 @@ EOF
574 9000/[678][0-9][0-9]) 574 9000/[678][0-9][0-9])
575 if [ -x /usr/bin/getconf ]; then 575 if [ -x /usr/bin/getconf ]; then
576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
578 case "${sc_cpu_version}" in 578 case "${sc_cpu_version}" in
579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
581 532) # CPU_PA_RISC2_0 581 532) # CPU_PA_RISC2_0
582 case "${sc_kernel_bits}" in 582 case "${sc_kernel_bits}" in
583 32) HP_ARCH="hppa2.0n" ;; 583 32) HP_ARCH="hppa2.0n" ;;
584 64) HP_ARCH="hppa2.0w" ;; 584 64) HP_ARCH="hppa2.0w" ;;
585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
586 esac ;; 586 esac ;;
587 esac 587 esac
588 fi 588 fi
589 if [ "${HP_ARCH}" = "" ]; then 589 if [ "${HP_ARCH}" = "" ]; then
590 eval $set_cc_for_build 590 eval $set_cc_for_build
591 sed 's/^ //' << EOF >$dummy.c 591 sed 's/^ //' << EOF >$dummy.c
592 592
593 #define _HPUX_SOURCE 593 #define _HPUX_SOURCE
594 #include <stdlib.h> 594 #include <stdlib.h>
595 #include <unistd.h> 595 #include <unistd.h>
596 596
597 int main () 597 int main ()
598 { 598 {
599 #if defined(_SC_KERNEL_BITS) 599 #if defined(_SC_KERNEL_BITS)
600 long bits = sysconf(_SC_KERNEL_BITS); 600 long bits = sysconf(_SC_KERNEL_BITS);
601 #endif 601 #endif
602 long cpu = sysconf (_SC_CPU_VERSION); 602 long cpu = sysconf (_SC_CPU_VERSION);
603 603
604 switch (cpu) 604 switch (cpu)
605 { 605 {
606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
608 case CPU_PA_RISC2_0: 608 case CPU_PA_RISC2_0:
609 #if defined(_SC_KERNEL_BITS) 609 #if defined(_SC_KERNEL_BITS)
610 switch (bits) 610 switch (bits)
611 { 611 {
612 case 64: puts ("hppa2.0w"); break; 612 case 64: puts ("hppa2.0w"); break;
613 case 32: puts ("hppa2.0n"); break; 613 case 32: puts ("hppa2.0n"); break;
614 default: puts ("hppa2.0"); break; 614 default: puts ("hppa2.0"); break;
615 } break; 615 } break;
616 #else /* !defined(_SC_KERNEL_BITS) */ 616 #else /* !defined(_SC_KERNEL_BITS) */
617 puts ("hppa2.0"); break; 617 puts ("hppa2.0"); break;
618 #endif 618 #endif
619 default: puts ("hppa1.0"); break; 619 default: puts ("hppa1.0"); break;
620 } 620 }
621 exit (0); 621 exit (0);
622 } 622 }
623EOF 623EOF
624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
625 test -z "$HP_ARCH" && HP_ARCH=hppa 625 test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -699,22 +699,22 @@ EOF
699 exit 0 ;; 699 exit 0 ;;
700 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 700 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
701 echo c1-convex-bsd 701 echo c1-convex-bsd
702 exit 0 ;; 702 exit 0 ;;
703 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 703 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
704 if getsysinfo -f scalar_acc 704 if getsysinfo -f scalar_acc
705 then echo c32-convex-bsd 705 then echo c32-convex-bsd
706 else echo c2-convex-bsd 706 else echo c2-convex-bsd
707 fi 707 fi
708 exit 0 ;; 708 exit 0 ;;
709 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 709 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
710 echo c34-convex-bsd 710 echo c34-convex-bsd
711 exit 0 ;; 711 exit 0 ;;
712 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 712 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
713 echo c38-convex-bsd 713 echo c38-convex-bsd
714 exit 0 ;; 714 exit 0 ;;
715 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 715 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
716 echo c4-convex-bsd 716 echo c4-convex-bsd
717 exit 0 ;; 717 exit 0 ;;
718 CRAY*Y-MP:*:*:*) 718 CRAY*Y-MP:*:*:*)
719 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 719 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
720 exit 0 ;; 720 exit 0 ;;
@@ -738,10 +738,10 @@ EOF
738 exit 0 ;; 738 exit 0 ;;
739 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 739 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
740 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 740 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
741 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 741 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
742 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 742 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
743 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 743 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
744 exit 0 ;; 744 exit 0 ;;
745 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 745 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
746 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 746 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
747 exit 0 ;; 747 exit 0 ;;
@@ -874,7 +874,7 @@ EOF
874 EV6) UNAME_MACHINE=alphaev6 ;; 874 EV6) UNAME_MACHINE=alphaev6 ;;
875 EV67) UNAME_MACHINE=alphaev67 ;; 875 EV67) UNAME_MACHINE=alphaev67 ;;
876 EV68*) UNAME_MACHINE=alphaev68 ;; 876 EV68*) UNAME_MACHINE=alphaev68 ;;
877 esac 877 esac
878 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 878 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
879 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 879 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
880 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 880 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
@@ -916,7 +916,7 @@ EOF
916 s/.*supported targets: *// 916 s/.*supported targets: *//
917 s/ .*// 917 s/ .*//
918 p'` 918 p'`
919 case "$ld_supported_targets" in 919 case "$ld_supported_targets" in
920 elf32-i386) 920 elf32-i386)
921 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 921 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
922 ;; 922 ;;
@@ -968,11 +968,11 @@ EOF
968 echo i386-sequent-sysv4 968 echo i386-sequent-sysv4
969 exit 0 ;; 969 exit 0 ;;
970 i*86:UNIX_SV:4.2MP:2.*) 970 i*86:UNIX_SV:4.2MP:2.*)
971 # Unixware is an offshoot of SVR4, but it has its own version 971 # Unixware is an offshoot of SVR4, but it has its own version
972 # number series starting with 2... 972 # number series starting with 2...
973 # I am not positive that other SVR4 systems won't match this, 973 # I am not positive that other SVR4 systems won't match this,
974 # I just have to hope. -- rms. 974 # I just have to hope. -- rms.
975 # Use sysv4.2uw... so that sysv4* matches it. 975 # Use sysv4.2uw... so that sysv4* matches it.
976 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 976 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
977 exit 0 ;; 977 exit 0 ;;
978 i*86:OS/2:*:*) 978 i*86:OS/2:*:*)
@@ -1028,10 +1028,10 @@ EOF
1028 exit 0 ;; 1028 exit 0 ;;
1029 pc:*:*:*) 1029 pc:*:*:*)
1030 # Left here for compatibility: 1030 # Left here for compatibility:
1031 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1031 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1032 # the processor, so we play safe by assuming i386. 1032 # the processor, so we play safe by assuming i386.
1033 echo i386-pc-msdosdjgpp 1033 echo i386-pc-msdosdjgpp
1034 exit 0 ;; 1034 exit 0 ;;
1035 Intel:Mach:3*:*) 1035 Intel:Mach:3*:*)
1036 echo i386-pc-mach3 1036 echo i386-pc-mach3
1037 exit 0 ;; 1037 exit 0 ;;
@@ -1066,8 +1066,8 @@ EOF
1066 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1066 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1067 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1067 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1068 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1068 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1069 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1069 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1070 && echo i486-ncr-sysv4 && exit 0 ;; 1070 && echo i486-ncr-sysv4 && exit 0 ;;
1071 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1071 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1072 echo m68k-unknown-lynxos${UNAME_RELEASE} 1072 echo m68k-unknown-lynxos${UNAME_RELEASE}
1073 exit 0 ;; 1073 exit 0 ;;
@@ -1101,9 +1101,9 @@ EOF
1101 fi 1101 fi
1102 exit 0 ;; 1102 exit 0 ;;
1103 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1103 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1104 # says <Richard.M.Bartel@ccMail.Census.GOV> 1104 # says <Richard.M.Bartel@ccMail.Census.GOV>
1105 echo i586-unisys-sysv4 1105 echo i586-unisys-sysv4
1106 exit 0 ;; 1106 exit 0 ;;
1107 *:UNIX_System_V:4*:FTX*) 1107 *:UNIX_System_V:4*:FTX*)
1108 # From Gerald Hewes <hewes@openmarket.com>. 1108 # From Gerald Hewes <hewes@openmarket.com>.
1109 # How about differentiating between stratus architectures? -djm 1109 # How about differentiating between stratus architectures? -djm
@@ -1125,11 +1125,11 @@ EOF
1125 exit 0 ;; 1125 exit 0 ;;
1126 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1126 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1127 if [ -d /usr/nec ]; then 1127 if [ -d /usr/nec ]; then
1128 echo mips-nec-sysv${UNAME_RELEASE} 1128 echo mips-nec-sysv${UNAME_RELEASE}
1129 else 1129 else
1130 echo mips-unknown-sysv${UNAME_RELEASE} 1130 echo mips-unknown-sysv${UNAME_RELEASE}
1131 fi 1131 fi
1132 exit 0 ;; 1132 exit 0 ;;
1133 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1133 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1134 echo powerpc-be-beos 1134 echo powerpc-be-beos
1135 exit 0 ;; 1135 exit 0 ;;
@@ -1238,11 +1238,11 @@ main ()
1238#include <sys/param.h> 1238#include <sys/param.h>
1239 printf ("m68k-sony-newsos%s\n", 1239 printf ("m68k-sony-newsos%s\n",
1240#ifdef NEWSOS4 1240#ifdef NEWSOS4
1241 "4" 1241 "4"
1242#else 1242#else
1243 "" 1243 ""
1244#endif 1244#endif
1245 ); exit (0); 1245 ); exit (0);
1246#endif 1246#endif
1247#endif 1247#endif
1248 1248