ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/config.guess
(Generate patch)

Comparing deliantra/server/utils/config.guess (file contents):
Revision 1.1 by root, Fri Feb 3 07:14:46 2006 UTC vs.
Revision 1.3 by elmex, Wed Mar 15 15:35:53 2006 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, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5 5
6timestamp='2005-04-22' 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.
51 51
52version="\ 52version="\
53GNU config.guess ($timestamp) 53GNU config.guess ($timestamp)
54 54
55Originally written by Per Bothner. 55Originally written by Per Bothner.
56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
57Free Software Foundation, Inc. 57Free Software Foundation, Inc.
58 58
59This is free software; see the source for copying conditions. There is NO 59This is free software; see the source for copying conditions. There is NO
60warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 60warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
61 61
201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 201 echo x86_64-unknown-openbsd${UNAME_RELEASE}
202 exit 0 ;; 202 exit 0 ;;
203 amiga:OpenBSD:*:*) 203 amiga:OpenBSD:*:*)
204 echo m68k-unknown-openbsd${UNAME_RELEASE} 204 echo m68k-unknown-openbsd${UNAME_RELEASE}
205 exit 0 ;; 205 exit 0 ;;
206 arc:OpenBSD:*:*)
207 echo mipsel-unknown-openbsd${UNAME_RELEASE}
208 exit 0 ;;
206 cats:OpenBSD:*:*) 209 cats:OpenBSD:*:*)
207 echo arm-unknown-openbsd${UNAME_RELEASE} 210 echo arm-unknown-openbsd${UNAME_RELEASE}
208 exit 0 ;; 211 exit 0 ;;
209 hp300:OpenBSD:*:*) 212 hp300:OpenBSD:*:*)
210 echo m68k-unknown-openbsd${UNAME_RELEASE} 213 echo m68k-unknown-openbsd${UNAME_RELEASE}
211 exit 0 ;; 214 exit 0 ;;
212 luna88k:OpenBSD:*:*)
213 echo m88k-unknown-openbsd${UNAME_RELEASE}
214 exit 0 ;;
215 mac68k:OpenBSD:*:*) 215 mac68k:OpenBSD:*:*)
216 echo m68k-unknown-openbsd${UNAME_RELEASE} 216 echo m68k-unknown-openbsd${UNAME_RELEASE}
217 exit 0 ;; 217 exit 0 ;;
218 macppc:OpenBSD:*:*) 218 macppc:OpenBSD:*:*)
219 echo powerpc-unknown-openbsd${UNAME_RELEASE} 219 echo powerpc-unknown-openbsd${UNAME_RELEASE}
225 echo m88k-unknown-openbsd${UNAME_RELEASE} 225 echo m88k-unknown-openbsd${UNAME_RELEASE}
226 exit 0 ;; 226 exit 0 ;;
227 mvmeppc:OpenBSD:*:*) 227 mvmeppc:OpenBSD:*:*)
228 echo powerpc-unknown-openbsd${UNAME_RELEASE} 228 echo powerpc-unknown-openbsd${UNAME_RELEASE}
229 exit 0 ;; 229 exit 0 ;;
230 pegasos:OpenBSD:*:*)
231 echo powerpc-unknown-openbsd${UNAME_RELEASE}
232 exit 0 ;;
233 pmax:OpenBSD:*:*)
234 echo mipsel-unknown-openbsd${UNAME_RELEASE}
235 exit 0 ;;
230 sgi:OpenBSD:*:*) 236 sgi:OpenBSD:*:*)
231 echo mips64-unknown-openbsd${UNAME_RELEASE} 237 echo mipseb-unknown-openbsd${UNAME_RELEASE}
232 exit 0 ;; 238 exit 0 ;;
233 sun3:OpenBSD:*:*) 239 sun3:OpenBSD:*:*)
234 echo m68k-unknown-openbsd${UNAME_RELEASE} 240 echo m68k-unknown-openbsd${UNAME_RELEASE}
241 exit 0 ;;
242 wgrisc:OpenBSD:*:*)
243 echo mipsel-unknown-openbsd${UNAME_RELEASE}
235 exit 0 ;; 244 exit 0 ;;
236 *:OpenBSD:*:*) 245 *:OpenBSD:*:*)
237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 246 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
238 exit 0 ;; 247 exit 0 ;;
239 *:ekkoBSD:*:*) 248 *:ekkoBSD:*:*)
296 # A Tn.n version is a released field test version. 305 # A Tn.n version is a released field test version.
297 # A Xn.n version is an unreleased experimental baselevel. 306 # A Xn.n version is an unreleased experimental baselevel.
298 # 1.2 uses "1.2" for uname -r. 307 # 1.2 uses "1.2" for uname -r.
299 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 308 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
300 exit 0 ;; 309 exit 0 ;;
310 Alpha*:OpenVMS:*:*)
311 echo alpha-hp-vms
312 exit 0 ;;
301 Alpha\ *:Windows_NT*:*) 313 Alpha\ *:Windows_NT*:*)
302 # 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?
303 # 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
304 # of the specific Alpha model? 316 # of the specific Alpha model?
305 echo alpha-pc-interix 317 echo alpha-pc-interix
316 *:[Mm]orph[Oo][Ss]:*:*) 328 *:[Mm]orph[Oo][Ss]:*:*)
317 echo ${UNAME_MACHINE}-unknown-morphos 329 echo ${UNAME_MACHINE}-unknown-morphos
318 exit 0 ;; 330 exit 0 ;;
319 *:OS/390:*:*) 331 *:OS/390:*:*)
320 echo i370-ibm-openedition 332 echo i370-ibm-openedition
321 exit 0 ;;
322 *:z/VM:*:*)
323 echo s390-ibm-zvmoe
324 exit 0 ;; 333 exit 0 ;;
325 *:OS400:*:*) 334 *:OS400:*:*)
326 echo powerpc-ibm-os400 335 echo powerpc-ibm-os400
327 exit 0 ;; 336 exit 0 ;;
328 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 337 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
343 echo pyramid-pyramid-svr4 352 echo pyramid-pyramid-svr4
344 exit 0 ;; 353 exit 0 ;;
345 DRS?6000:unix:4.0:6*) 354 DRS?6000:unix:4.0:6*)
346 echo sparc-icl-nx6 355 echo sparc-icl-nx6
347 exit 0 ;; 356 exit 0 ;;
348 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 357 DRS?6000:UNIX_SV:4.2*:7*)
349 case `/usr/bin/uname -p` in 358 case `/usr/bin/uname -p` in
350 sparc) echo sparc-icl-nx7 && exit 0 ;; 359 sparc) echo sparc-icl-nx7 && exit 0 ;;
351 esac ;; 360 esac ;;
352 sun4H:SunOS:5.*:*) 361 sun4H:SunOS:5.*:*)
353 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 362 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
753 exit 0 ;; 762 exit 0 ;;
754 CRAY*SV1:*:*:*) 763 CRAY*SV1:*:*:*)
755 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 764 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756 exit 0 ;; 765 exit 0 ;;
757 *:UNICOS/mp:*:*) 766 *:UNICOS/mp:*:*)
758 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 767 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759 exit 0 ;; 768 exit 0 ;;
760 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 769 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 770 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
762 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
763 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
776 exit 0 ;; 785 exit 0 ;;
777 *:BSD/OS:*:*) 786 *:BSD/OS:*:*)
778 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 787 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779 exit 0 ;; 788 exit 0 ;;
780 *:FreeBSD:*:*) 789 *:FreeBSD:*:*)
790 # Determine whether the default compiler uses glibc.
791 eval $set_cc_for_build
792 sed 's/^ //' << EOF >$dummy.c
793 #include <features.h>
794 #if __GLIBC__ >= 2
795 LIBC=gnu
796 #else
797 LIBC=
798 #endif
799EOF
800 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
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
781 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 804 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
782 exit 0 ;; 805 exit 0 ;;
783 i*:CYGWIN*:*) 806 i*:CYGWIN*:*)
784 echo ${UNAME_MACHINE}-pc-cygwin 807 echo ${UNAME_MACHINE}-pc-cygwin
785 exit 0 ;; 808 exit 0 ;;
786 i*:MINGW*:*) 809 i*:MINGW*:*)
802 echo i586-pc-interix 825 echo i586-pc-interix
803 exit 0 ;; 826 exit 0 ;;
804 i*:UWIN*:*) 827 i*:UWIN*:*)
805 echo ${UNAME_MACHINE}-pc-uwin 828 echo ${UNAME_MACHINE}-pc-uwin
806 exit 0 ;; 829 exit 0 ;;
807 amd64:CYGWIN*:*:*)
808 echo x86_64-unknown-cygwin
809 exit 0 ;;
810 p*:CYGWIN*:*) 830 p*:CYGWIN*:*)
811 echo powerpcle-unknown-cygwin 831 echo powerpcle-unknown-cygwin
812 exit 0 ;; 832 exit 0 ;;
813 prep*:SunOS:5.*:*) 833 prep*:SunOS:5.*:*)
814 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 834 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
827 arm*:Linux:*:*) 847 arm*:Linux:*:*)
828 echo ${UNAME_MACHINE}-unknown-linux-gnu 848 echo ${UNAME_MACHINE}-unknown-linux-gnu
829 exit 0 ;; 849 exit 0 ;;
830 cris:Linux:*:*) 850 cris:Linux:*:*)
831 echo cris-axis-linux-gnu 851 echo cris-axis-linux-gnu
832 exit 0 ;;
833 crisv32:Linux:*:*)
834 echo crisv32-axis-linux-gnu
835 exit 0 ;;
836 frv:Linux:*:*)
837 echo frv-unknown-linux-gnu
838 exit 0 ;; 852 exit 0 ;;
839 ia64:Linux:*:*) 853 ia64:Linux:*:*)
840 echo ${UNAME_MACHINE}-unknown-linux-gnu 854 echo ${UNAME_MACHINE}-unknown-linux-gnu
841 exit 0 ;; 855 exit 0 ;;
842 m32r*:Linux:*:*) 856 m32r*:Linux:*:*)
1080 echo m68k-convergent-sysv 1094 echo m68k-convergent-sysv
1081 exit 0 ;; 1095 exit 0 ;;
1082 M680?0:D-NIX:5.3:*) 1096 M680?0:D-NIX:5.3:*)
1083 echo m68k-diab-dnix 1097 echo m68k-diab-dnix
1084 exit 0 ;; 1098 exit 0 ;;
1085 M68*:*:R3V[5678]*:*) 1099 M68*:*:R3V[567]*:*)
1086 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1100 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1087 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) 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)
1088 OS_REL='' 1102 OS_REL=''
1089 test -r /etc/.relid \ 1103 test -r /etc/.relid \
1090 && 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`
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1105 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1106 && echo i486-ncr-sysv4.3${OS_REL} && exit 0
1138 exit 0 ;; 1152 exit 0 ;;
1139 *:*:*:FTX*) 1153 *:*:*:FTX*)
1140 # From seanf@swdc.stratus.com. 1154 # From seanf@swdc.stratus.com.
1141 echo i860-stratus-sysv4 1155 echo i860-stratus-sysv4
1142 exit 0 ;; 1156 exit 0 ;;
1143 i*86:VOS:*:*)
1144 # From Paul.Green@stratus.com.
1145 echo ${UNAME_MACHINE}-stratus-vos
1146 exit 0 ;;
1147 *:VOS:*:*) 1157 *:VOS:*:*)
1148 # From Paul.Green@stratus.com. 1158 # From Paul.Green@stratus.com.
1149 echo hppa1.1-stratus-vos 1159 echo hppa1.1-stratus-vos
1150 exit 0 ;; 1160 exit 0 ;;
1151 mc68*:A/UX:*:*) 1161 mc68*:A/UX:*:*)
1184 exit 0 ;; 1194 exit 0 ;;
1185 *:Rhapsody:*:*) 1195 *:Rhapsody:*:*)
1186 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1196 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1187 exit 0 ;; 1197 exit 0 ;;
1188 *:Darwin:*:*) 1198 *:Darwin:*:*)
1189 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1199 case `uname -p` in
1190 case $UNAME_PROCESSOR in
1191 *86) UNAME_PROCESSOR=i686 ;; 1200 *86) UNAME_PROCESSOR=i686 ;;
1192 unknown) UNAME_PROCESSOR=powerpc ;; 1201 powerpc) UNAME_PROCESSOR=powerpc ;;
1193 esac 1202 esac
1194 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1203 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1195 exit 0 ;; 1204 exit 0 ;;
1196 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1205 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1197 UNAME_PROCESSOR=`uname -p` 1206 UNAME_PROCESSOR=`uname -p`
1201 fi 1210 fi
1202 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1211 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1203 exit 0 ;; 1212 exit 0 ;;
1204 *:QNX:*:4*) 1213 *:QNX:*:4*)
1205 echo i386-pc-qnx 1214 echo i386-pc-qnx
1206 exit 0 ;;
1207 NSE-?:NONSTOP_KERNEL:*:*)
1208 echo nse-tandem-nsk${UNAME_RELEASE}
1209 exit 0 ;; 1215 exit 0 ;;
1210 NSR-?:NONSTOP_KERNEL:*:*) 1216 NSR-?:NONSTOP_KERNEL:*:*)
1211 echo nsr-tandem-nsk${UNAME_RELEASE} 1217 echo nsr-tandem-nsk${UNAME_RELEASE}
1212 exit 0 ;; 1218 exit 0 ;;
1213 *:NonStop-UX:*:*) 1219 *:NonStop-UX:*:*)
1251 SEI:*:*:SEIUX) 1257 SEI:*:*:SEIUX)
1252 echo mips-sei-seiux${UNAME_RELEASE} 1258 echo mips-sei-seiux${UNAME_RELEASE}
1253 exit 0 ;; 1259 exit 0 ;;
1254 *:DragonFly:*:*) 1260 *:DragonFly:*:*)
1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1261 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1256 exit 0 ;;
1257 *:*VMS:*:*)
1258 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1259 case "${UNAME_MACHINE}" in
1260 A*) echo alpha-dec-vms && exit 0 ;;
1261 I*) echo ia64-dec-vms && exit 0 ;;
1262 V*) echo vax-dec-vms && exit 0 ;;
1263 esac ;;
1264 *:XENIX:*:SysV)
1265 echo i386-pc-xenix
1266 exit 0 ;; 1262 exit 0 ;;
1267esac 1263esac
1268 1264
1269#echo '(No uname command or uname output not recognized.)' 1>&2 1265#echo '(No uname command or uname output not recognized.)' 1>&2
1270#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1266#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1421 1417
1422This script, last modified $timestamp, has failed to recognize 1418This script, last modified $timestamp, has failed to recognize
1423the operating system you are using. It is advised that you 1419the operating system you are using. It is advised that you
1424download the most up to date version of the config scripts from 1420download the most up to date version of the config scripts from
1425 1421
1426 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1422 ftp://ftp.gnu.org/pub/gnu/config/
1427and
1428 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1429 1423
1430If the version you run ($0) is already up to date, please 1424If the version you run ($0) is already up to date, please
1431send the following data and any information you think might be 1425send the following data and any information you think might be
1432pertinent to <config-patches@gnu.org> in order to provide the needed 1426pertinent to <config-patches@gnu.org> in order to provide the needed
1433information to handle your system. 1427information to handle your system.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines