comparison config.guess @ 4614:afbfad080ddd

The URLs in our current config.guess and config.sub files are obsolete. Update to the latest upstream release to get correct URLs, as well as fixes and enhancements to those scripts.
author Jerry James <james@xemacs.org>
date Wed, 11 Feb 2009 11:09:35 -0700
parents 528c4d906843
children ec3712ffd0e6
comparison
equal deleted inserted replaced
4613:e254bf96eb9e 4614:afbfad080ddd
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, 2003, 2004, 2005, 2006 Free Software Foundation, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 # Inc. 5 # Free Software Foundation, Inc.
6 6
7 timestamp='2007-12-05' 7 timestamp='2009-02-03'
8 8
9 # This file is free software; you can redistribute it and/or modify it 9 # This file is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by 10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or 11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version. 12 # (at your option) any later version.
54 54
55 version="\ 55 version="\
56 GNU config.guess ($timestamp) 56 GNU config.guess ($timestamp)
57 57
58 Originally written by Per Bothner. 58 Originally written by Per Bothner.
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60 Free Software Foundation, Inc. 60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
61 61
62 This is free software; see the source for copying conditions. There is NO 62 This is free software; see the source for copying conditions. There is NO
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 64
65 help=" 65 help="
329 exit ;; 329 exit ;;
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;; 332 exit ;;
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 334 eval $set_cc_for_build
335 SUN_ARCH="i386"
336 # If there is a compiler, see if it is configured for 64-bit objects.
337 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
338 # This test works for both compilers.
339 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
340 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
341 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
342 grep IS_64BIT_ARCH >/dev/null
343 then
344 SUN_ARCH="x86_64"
345 fi
346 fi
347 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;; 348 exit ;;
336 sun4*:SunOS:6*:*) 349 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize 350 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 351 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
339 # it's likely to be more like Solaris than SunOS4. 352 # it's likely to be more like Solaris than SunOS4.
530 echo rs6000-ibm-aix3.2.4 543 echo rs6000-ibm-aix3.2.4
531 else 544 else
532 echo rs6000-ibm-aix3.2 545 echo rs6000-ibm-aix3.2
533 fi 546 fi
534 exit ;; 547 exit ;;
535 *:AIX:*:[45]) 548 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 549 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 550 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000 551 IBM_ARCH=rs6000
539 else 552 else
540 IBM_ARCH=powerpc 553 IBM_ARCH=powerpc
794 *:Interix*:[3456]*) 807 *:Interix*:[3456]*)
795 case ${UNAME_MACHINE} in 808 case ${UNAME_MACHINE} in
796 x86) 809 x86)
797 echo i586-pc-interix${UNAME_RELEASE} 810 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;; 811 exit ;;
799 EM64T | authenticamd) 812 EM64T | authenticamd | genuineintel)
800 echo x86_64-unknown-interix${UNAME_RELEASE} 813 echo x86_64-unknown-interix${UNAME_RELEASE}
814 exit ;;
815 IA64)
816 echo ia64-unknown-interix${UNAME_RELEASE}
801 exit ;; 817 exit ;;
802 esac ;; 818 esac ;;
803 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 819 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804 echo i${UNAME_MACHINE}-pc-mks 820 echo i${UNAME_MACHINE}-pc-mks
805 exit ;; 821 exit ;;
930 esac 946 esac
931 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 947 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
932 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 948 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
933 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 949 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
934 exit ;; 950 exit ;;
951 padre:Linux:*:*)
952 echo sparc-unknown-linux-gnu
953 exit ;;
935 parisc:Linux:*:* | hppa:Linux:*:*) 954 parisc:Linux:*:* | hppa:Linux:*:*)
936 # Look for CPU level 955 # Look for CPU level
937 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 956 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
938 PA7*) echo hppa1.1-unknown-linux-gnu ;; 957 PA7*) echo hppa1.1-unknown-linux-gnu ;;
939 PA8*) echo hppa2.0-unknown-linux-gnu ;; 958 PA8*) echo hppa2.0-unknown-linux-gnu ;;
979 elf32-i386) 998 elf32-i386)
980 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 999 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
981 ;; 1000 ;;
982 a.out-i386-linux) 1001 a.out-i386-linux)
983 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 1002 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
984 exit ;;
985 coff-i386)
986 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
987 exit ;; 1003 exit ;;
988 "") 1004 "")
989 # Either a pre-BFD a.out linker (linux-gnuoldld) or 1005 # Either a pre-BFD a.out linker (linux-gnuoldld) or
990 # one that does not give us useful --help. 1006 # one that does not give us useful --help.
991 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 1007 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1136 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1152 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1153 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1138 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1154 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140 && { echo i486-ncr-sysv4; exit; } ;; 1156 && { echo i486-ncr-sysv4; exit; } ;;
1157 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1158 OS_REL='.3'
1159 test -r /etc/.relid \
1160 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1161 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1162 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1163 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1164 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1165 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1166 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1141 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1167 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1142 echo m68k-unknown-lynxos${UNAME_RELEASE} 1168 echo m68k-unknown-lynxos${UNAME_RELEASE}
1143 exit ;; 1169 exit ;;
1144 mc68030:UNIX_System_V:4.*:*) 1170 mc68030:UNIX_System_V:4.*:*)
1145 echo m68k-atari-sysv4 1171 echo m68k-atari-sysv4
1210 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1236 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1211 echo powerpc-apple-beos 1237 echo powerpc-apple-beos
1212 exit ;; 1238 exit ;;
1213 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1239 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1214 echo i586-pc-beos 1240 echo i586-pc-beos
1241 exit ;;
1242 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1243 echo i586-pc-haiku
1215 exit ;; 1244 exit ;;
1216 SX-4:SUPER-UX:*:*) 1245 SX-4:SUPER-UX:*:*)
1217 echo sx4-nec-superux${UNAME_RELEASE} 1246 echo sx4-nec-superux${UNAME_RELEASE}
1218 exit ;; 1247 exit ;;
1219 SX-5:SUPER-UX:*:*) 1248 SX-5:SUPER-UX:*:*)
1318 i*86:skyos:*:*) 1347 i*86:skyos:*:*)
1319 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1348 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1320 exit ;; 1349 exit ;;
1321 i*86:rdos:*:*) 1350 i*86:rdos:*:*)
1322 echo ${UNAME_MACHINE}-pc-rdos 1351 echo ${UNAME_MACHINE}-pc-rdos
1352 exit ;;
1353 i*86:AROS:*:*)
1354 echo ${UNAME_MACHINE}-pc-aros
1323 exit ;; 1355 exit ;;
1324 esac 1356 esac
1325 1357
1326 #echo '(No uname command or uname output not recognized.)' 1>&2 1358 #echo '(No uname command or uname output not recognized.)' 1>&2
1327 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1359 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1479 1511
1480 This script, last modified $timestamp, has failed to recognize 1512 This script, last modified $timestamp, has failed to recognize
1481 the operating system you are using. It is advised that you 1513 the operating system you are using. It is advised that you
1482 download the most up to date version of the config scripts from 1514 download the most up to date version of the config scripts from
1483 1515
1484 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1516 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1485 and 1517 and
1486 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1518 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1487 1519
1488 If the version you run ($0) is already up to date, please 1520 If the version you run ($0) is already up to date, please
1489 send the following data and any information you think might be 1521 send the following data and any information you think might be
1490 pertinent to <config-patches@gnu.org> in order to provide the needed 1522 pertinent to <config-patches@gnu.org> in order to provide the needed
1491 information to handle your system. 1523 information to handle your system.