Ticket #2041: ruby_on_haiku_06_04_2008.diff
File ruby_on_haiku_06_04_2008.diff, 61.6 KB (added by , 16 years ago) |
---|
-
process.c
30 30 #include <time.h> 31 31 #include <ctype.h> 32 32 33 #ifdef __HAIKU__ 34 # include <sys/resource.h> 35 #endif 36 33 37 #ifndef EXIT_SUCCESS 34 38 #define EXIT_SUCCESS 0 35 39 #endif -
ext/syslog/syslog.c
224 224 return INT2FIX(LOG_MASK(FIX2INT(pri))); 225 225 } 226 226 227 #ifdef __HAIKU__ 228 #define LOG_UPTO(pri) ((1 << ((pri) + 1)) - 1) 229 #endif 230 227 231 static VALUE mSyslogConstants_LOG_UPTO(VALUE klass, VALUE pri) 228 232 { 229 233 return INT2FIX(LOG_UPTO(FIX2INT(pri))); -
ext/socket/getaddrinfo.c
42 42 #include <sys/types.h> 43 43 #if !defined(_WIN32) && !defined(__VMS) 44 44 #include <sys/param.h> 45 #if defined(__BEOS__) 45 #if defined(__BEOS__) && !defined(__HAIKU__) 46 46 # include <net/socket.h> 47 47 #else 48 48 # include <sys/socket.h> … … 199 199 200 200 #define ERR(err) { error = (err); goto bad; } 201 201 202 /* 202 203 #if defined __UCLIBC__ 203 204 const 204 205 #endif … … 210 211 ecode = EAI_MAX; 211 212 return (char *)ai_errlist[ecode]; 212 213 } 214 */ 213 215 214 216 void 215 217 freeaddrinfo(ai) -
ext/socket/extconf.rb
38 38 end 39 39 40 40 ipv6 = false 41 default_ipv6 = /cygwin / !~ RUBY_PLATFORM41 default_ipv6 = /cygwin|beos|haiku/ !~ RUBY_PLATFORM 42 42 if enable_config("ipv6", default_ipv6) 43 43 if checking_for("ipv6") {try_link(<<EOF)} 44 44 #include <sys/types.h> -
ext/socket/socket.c
26 26 #endif 27 27 28 28 #ifndef _WIN32 29 #if defined(__BEOS__) 29 #if defined(__BEOS__) && !defined(__HAIKU__) 30 30 # include <net/socket.h> 31 31 #else 32 32 # include <sys/socket.h> … … 4043 4043 #endif 4044 4044 #ifdef AF_UNIX 4045 4045 sock_define_const("AF_UNIX", AF_UNIX); 4046 #endif 4047 #ifdef PF_UNIX 4046 4048 sock_define_const("PF_UNIX", PF_UNIX); 4047 4049 #endif 4048 4050 #ifdef AF_AX25 … … 4051 4053 #endif 4052 4054 #ifdef AF_IPX 4053 4055 sock_define_const("AF_IPX", AF_IPX); 4056 #endif 4057 #ifdef PF_IPX 4054 4058 sock_define_const("PF_IPX", PF_IPX); 4055 4059 #endif 4056 4060 #ifdef AF_APPLETALK 4057 4061 sock_define_const("AF_APPLETALK", AF_APPLETALK); 4062 #endif 4063 #ifdef PF_APPLETALK 4058 4064 sock_define_const("PF_APPLETALK", PF_APPLETALK); 4059 4065 #endif 4060 4066 #ifdef AF_UNSPEC -
ext/socket/addrinfo.h
103 103 #define AI_CANONNAME 0x00000002 /* fill ai_canonname */ 104 104 #define AI_NUMERICHOST 0x00000004 /* prevent name resolution */ 105 105 /* valid flags for addrinfo */ 106 #ifndef __HAIKU__ 106 107 #define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST) 108 #endif 107 109 108 110 #define AI_ALL 0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */ 109 111 #define AI_V4MAPPED_CFG 0x00000200 /* accept IPv4-mapped if kernel supports */ … … 159 161 #if defined __UCLIBC__ 160 162 const 161 163 #endif 164 #ifndef __HAIKU__ 162 165 extern char *gai_strerror __P((int)); 166 #endif 163 167 164 168 /* In case there is no definition of offsetof() provided - though any proper 165 169 Standard C system should have one. */ -
ext/socket/getnameinfo.c
38 38 #include <stdio.h> 39 39 #include <sys/types.h> 40 40 #ifndef _WIN32 41 #if defined(__BEOS__) 41 #if defined(__BEOS__) && !defined(__HAIKU__) 42 42 # include <net/socket.h> 43 43 #else 44 44 # include <sys/socket.h> … … 110 110 #define ENI_FAMILY 5 111 111 #define ENI_SALEN 6 112 112 113 #ifdef __HAIKU__ 114 #define HAVE_INET_NTOP 115 #endif 116 113 117 #ifndef HAVE_INET_NTOP 114 118 static const char * 115 119 inet_ntop(af, addr, numaddr, numaddr_len) -
configure.in
404 404 ac_cv_func_setitimer=no 405 405 ;; 406 406 beos*) ac_cv_func_link=no;; 407 cygwin*) ;; 407 haiku*) ac_cv_func_link=no;; 408 cygwin*) rb_cv_have_daylight=no 409 ac_cv_var_tzname=no 410 ac_cv_func__setjmp=no 411 ac_cv_func_setitimer=no 412 ;; 408 413 mingw*) if test "$with_winsock2" = yes; then 409 414 LIBS="-lws2_32 $LIBS" 410 415 else … … 527 532 #ifdef HAVE_SYS_TIME_H 528 533 # include <sys/time.h> 529 534 #endif 535 #ifdef __HAIKU__ 536 #define HAVE_SYS_RESOURCE_H 537 #endif 530 538 #ifdef HAVE_SYS_RESOURCE_H 531 539 # include <sys/resource.h> 532 540 #endif … … 1103 1111 openstep*) CCDLFLAGS="$CCDLFLAGS -fno-common";; 1104 1112 rhapsody*) CCDLFLAGS="$CCDLFLAGS -fno-common";; 1105 1113 darwin*) CCDLFLAGS="$CCDLFLAGS -fno-common";; 1106 human*|bsdi*|beos*| cygwin*|mingw*|aix*|interix*) ;;1114 human*|bsdi*|beos*|haiku*|cygwin*|mingw*|aix*|interix*) ;; 1107 1115 *) CCDLFLAGS="$CCDLFLAGS -fPIC";; 1108 1116 esac 1109 1117 else … … 1225 1233 esac 1226 1234 : ${LIBPATHENV=LIBRARY_PATH} 1227 1235 rb_cv_dlopen=yes ;; 1236 haiku*) case "$target_cpu" in 1237 powerpc*) 1238 : ${LDSHARED="ld -xms"} 1239 DLDFLAGS="$DLDFLAGS "'-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o' 1240 ;; 1241 i586*) 1242 : ${LDSHARED="ld -shared"} 1243 DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lbe -lroot" 1244 ;; 1245 esac 1246 : ${LIBPATHENV=LIBRARY_PATH} 1247 rb_cv_dlopen=yes ;; 1228 1248 nto-qnx*) DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" 1229 1249 : ${LDSHARED='ld -Bshareable -x'} 1230 1250 LDFLAGS="$LDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" … … 1418 1438 SOLIBS= 1419 1439 1420 1440 case "$target_os" in 1421 cygwin*|mingw*|beos*| openstep*|nextstep*|rhapsody*|darwin*|os2-emx*)1441 cygwin*|mingw*|beos*|haiku*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*) 1422 1442 : ${DLDLIBS=""} 1423 1443 ;; 1424 1444 *) … … 1501 1521 ;; 1502 1522 esac 1503 1523 ;; 1524 haiku*) 1525 case "$target_cpu" in 1526 powerpc*) 1527 LIBRUBY_DLDFLAGS='-f ruby.exp -lnet -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o' 1528 ;; 1529 esac 1530 ;; 1504 1531 darwin*) 1505 1532 LIBRUBY_SO='lib$(RUBY_SO_NAME).$(MAJOR).$(MINOR).$(TEENY).dylib' 1506 1533 LIBRUBY_LDSHARED='cc -dynamiclib -undefined suppress -flat_namespace' … … 1585 1612 ;; 1586 1613 esac 1587 1614 ;; 1615 haiku*) 1616 case "$target_cpu" in 1617 powerpc*) 1618 CFLAGS="$CFLAGS -relax_pointers" 1619 ;; 1620 esac 1621 ;; 1588 1622 cygwin*|mingw*) 1589 1623 case "$target_os" in 1590 1624 cygwin*) -
io.c
83 83 84 84 extern void Init_File _((void)); 85 85 86 #ifdef __BEOS__ 86 #ifdef __HAIKU__ 87 #include <sys/socket.h> 87 88 # ifndef NOFILE 88 89 # define NOFILE (OPEN_MAX) 89 90 # endif 90 #include <net/socket.h> 91 #else 92 # ifdef __BEOS__ 93 # ifndef NOFILE 94 # define NOFILE (OPEN_MAX) 95 # endif 96 # include <net/socket.h> 97 # endif 91 98 #endif 92 99 93 100 #include "util.h" -
config.guess
1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 5 # Free Software Foundation, Inc. 5 6 6 timestamp='200 4-06-11'7 timestamp='2008-01-08' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it 9 10 # under the terms of the GNU General Public License as published by … … 17 18 # 18 19 # You should have received a copy of the GNU General Public License 19 20 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22 # 02110-1301, USA. 21 23 # 22 24 # As a special exception to the GNU General Public License, if you 23 25 # distribute this file as part of a program that contains a 24 26 # configuration script generated by Autoconf, you may include it under 25 27 # the same distribution terms that you use for the rest of that program. 26 28 29 27 30 # Originally written by Per Bothner <per@bothner.com>. 28 31 # Please send patches to <config-patches@gnu.org>. Submit a context 29 32 # diff and a properly formatted ChangeLog entry. … … 53 56 GNU config.guess ($timestamp) 54 57 55 58 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 Free Software Foundation, Inc.59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 58 61 59 62 This is free software; see the source for copying conditions. There is NO 60 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." … … 66 69 while test $# -gt 0 ; do 67 70 case $1 in 68 71 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;72 echo "$timestamp" ; exit ;; 70 73 --version | -v ) 71 echo "$version" ; exit 0;;74 echo "$version" ; exit ;; 72 75 --help | --h* | -h ) 73 echo "$usage"; exit 0;;76 echo "$usage"; exit ;; 74 77 -- ) # Stop option processing 75 78 shift; break ;; 76 79 - ) # Use stdin as input. … … 104 107 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 105 108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 109 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 110 113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; … … 123 126 ;; 124 127 ,,*) CC_FOR_BUILD=$CC ;; 125 128 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ; '129 esac ; set_cc_for_build= ;' 127 130 128 131 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 129 132 # (ghazi@noc.rutgers.edu 1994-08-24) … … 158 161 arm*) machine=arm-unknown ;; 159 162 sh3el) machine=shl-unknown ;; 160 163 sh3eb) machine=sh-unknown ;; 164 sh5el) machine=sh5le-unknown ;; 161 165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 162 166 esac 163 167 # The Operating System including object format, if it has switched … … 196 200 # contains redundant information, the shorter form: 197 201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 198 202 echo "${machine}-${os}${release}" 199 exit 0 ;; 200 amd64:OpenBSD:*:*) 201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 203 amiga:OpenBSD:*:*) 204 echo m68k-unknown-openbsd${UNAME_RELEASE} 205 exit 0 ;; 206 arc:OpenBSD:*:*) 207 echo mipsel-unknown-openbsd${UNAME_RELEASE} 208 exit 0 ;; 209 cats:OpenBSD:*:*) 210 echo arm-unknown-openbsd${UNAME_RELEASE} 211 exit 0 ;; 212 hp300:OpenBSD:*:*) 213 echo m68k-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 215 luna88k:OpenBSD:*:*) 216 echo m88k-unknown-openbsd${UNAME_RELEASE} 217 exit 0 ;; 218 mac68k:OpenBSD:*:*) 219 echo m68k-unknown-openbsd${UNAME_RELEASE} 220 exit 0 ;; 221 macppc:OpenBSD:*:*) 222 echo powerpc-unknown-openbsd${UNAME_RELEASE} 223 exit 0 ;; 224 mvme68k:OpenBSD:*:*) 225 echo m68k-unknown-openbsd${UNAME_RELEASE} 226 exit 0 ;; 227 mvme88k:OpenBSD:*:*) 228 echo m88k-unknown-openbsd${UNAME_RELEASE} 229 exit 0 ;; 230 mvmeppc:OpenBSD:*:*) 231 echo powerpc-unknown-openbsd${UNAME_RELEASE} 232 exit 0 ;; 233 pmax:OpenBSD:*:*) 234 echo mipsel-unknown-openbsd${UNAME_RELEASE} 235 exit 0 ;; 236 sgi:OpenBSD:*:*) 237 echo mipseb-unknown-openbsd${UNAME_RELEASE} 238 exit 0 ;; 239 sun3:OpenBSD:*:*) 240 echo m68k-unknown-openbsd${UNAME_RELEASE} 241 exit 0 ;; 242 wgrisc:OpenBSD:*:*) 243 echo mipsel-unknown-openbsd${UNAME_RELEASE} 244 exit 0 ;; 203 exit ;; 245 204 *:OpenBSD:*:*) 246 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 247 exit 0 ;; 205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 207 exit ;; 248 208 *:ekkoBSD:*:*) 249 209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 250 exit 0 ;; 210 exit ;; 211 *:SolidBSD:*:*) 212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 213 exit ;; 251 214 macppc:MirBSD:*:*) 252 echo powerp pc-unknown-mirbsd${UNAME_RELEASE}253 exit 0;;215 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 216 exit ;; 254 217 *:MirBSD:*:*) 255 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 256 exit 0;;219 exit ;; 257 220 alpha:OSF1:*:*) 258 221 case $UNAME_RELEASE in 259 222 *4.0) … … 306 269 # A Xn.n version is an unreleased experimental baselevel. 307 270 # 1.2 uses "1.2" for uname -r. 308 271 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 312 exit 0 ;; 272 exit ;; 313 273 Alpha\ *:Windows_NT*:*) 314 274 # How do we know it's Interix rather than the generic POSIX subsystem? 315 275 # Should we change UNAME_MACHINE based on the output of uname instead 316 276 # of the specific Alpha model? 317 277 echo alpha-pc-interix 318 exit 0;;278 exit ;; 319 279 21064:Windows_NT:50:3) 320 280 echo alpha-dec-winnt3.5 321 exit 0;;281 exit ;; 322 282 Amiga*:UNIX_System_V:4.0:*) 323 283 echo m68k-unknown-sysv4 324 exit 0;;284 exit ;; 325 285 *:[Aa]miga[Oo][Ss]:*:*) 326 286 echo ${UNAME_MACHINE}-unknown-amigaos 327 exit 0;;287 exit ;; 328 288 *:[Mm]orph[Oo][Ss]:*:*) 329 289 echo ${UNAME_MACHINE}-unknown-morphos 330 exit 0;;290 exit ;; 331 291 *:OS/390:*:*) 332 292 echo i370-ibm-openedition 333 exit 0 ;; 293 exit ;; 294 *:z/VM:*:*) 295 echo s390-ibm-zvmoe 296 exit ;; 334 297 *:OS400:*:*) 335 298 echo powerpc-ibm-os400 336 exit 0;;299 exit ;; 337 300 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 338 301 echo arm-acorn-riscix${UNAME_RELEASE} 339 exit 0;; 302 exit ;; 303 arm:riscos:*:*|arm:RISCOS:*:*) 304 echo arm-unknown-riscos 305 exit ;; 340 306 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 341 307 echo hppa1.1-hitachi-hiuxmpp 342 exit 0;;308 exit ;; 343 309 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 344 310 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 345 311 if test "`(/bin/universe) 2>/dev/null`" = att ; then … … 347 313 else 348 314 echo pyramid-pyramid-bsd 349 315 fi 350 exit 0;;316 exit ;; 351 317 NILE*:*:*:dcosx) 352 318 echo pyramid-pyramid-svr4 353 exit 0;;319 exit ;; 354 320 DRS?6000:unix:4.0:6*) 355 321 echo sparc-icl-nx6 356 exit 0;;357 DRS?6000:UNIX_SV:4.2*:7* )322 exit ;; 323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 358 324 case `/usr/bin/uname -p` in 359 sparc) echo sparc-icl-nx7 && exit 0;;325 sparc) echo sparc-icl-nx7; exit ;; 360 326 esac ;; 361 327 sun4H:SunOS:5.*:*) 362 328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 363 exit 0;;329 exit ;; 364 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 365 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 366 exit 0;;367 i86pc:SunOS:5.*:* )332 exit ;; 333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 368 334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 369 exit 0;;335 exit ;; 370 336 sun4*:SunOS:6*:*) 371 337 # According to config.sub, this is the proper way to canonicalize 372 338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 373 339 # it's likely to be more like Solaris than SunOS4. 374 340 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 375 exit 0;;341 exit ;; 376 342 sun4*:SunOS:*:*) 377 343 case "`/usr/bin/arch -k`" in 378 344 Series*|S4*) … … 381 347 esac 382 348 # Japanese Language versions have a version number like `4.1.3-JL'. 383 349 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 384 exit 0;;350 exit ;; 385 351 sun3*:SunOS:*:*) 386 352 echo m68k-sun-sunos${UNAME_RELEASE} 387 exit 0;;353 exit ;; 388 354 sun*:*:4.2BSD:*) 389 355 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 390 356 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 … … 396 362 echo sparc-sun-sunos${UNAME_RELEASE} 397 363 ;; 398 364 esac 399 exit 0;;365 exit ;; 400 366 aushp:SunOS:*:*) 401 367 echo sparc-auspex-sunos${UNAME_RELEASE} 402 exit 0;;368 exit ;; 403 369 # The situation for MiNT is a little confusing. The machine name 404 370 # can be virtually everything (everything which is not 405 371 # "atarist" or "atariste" at least should have a processor … … 410 376 # be no problem. 411 377 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 412 378 echo m68k-atari-mint${UNAME_RELEASE} 413 exit 0;;379 exit ;; 414 380 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 415 381 echo m68k-atari-mint${UNAME_RELEASE} 416 exit 0;;382 exit ;; 417 383 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 418 384 echo m68k-atari-mint${UNAME_RELEASE} 419 exit 0;;385 exit ;; 420 386 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 421 387 echo m68k-milan-mint${UNAME_RELEASE} 422 exit 0;;388 exit ;; 423 389 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 424 390 echo m68k-hades-mint${UNAME_RELEASE} 425 exit 0;;391 exit ;; 426 392 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 427 393 echo m68k-unknown-mint${UNAME_RELEASE} 428 exit 0;;394 exit ;; 429 395 m68k:machten:*:*) 430 396 echo m68k-apple-machten${UNAME_RELEASE} 431 exit 0;;397 exit ;; 432 398 powerpc:machten:*:*) 433 399 echo powerpc-apple-machten${UNAME_RELEASE} 434 exit 0;;400 exit ;; 435 401 RISC*:Mach:*:*) 436 402 echo mips-dec-mach_bsd4.3 437 exit 0;;403 exit ;; 438 404 RISC*:ULTRIX:*:*) 439 405 echo mips-dec-ultrix${UNAME_RELEASE} 440 exit 0;;406 exit ;; 441 407 VAX*:ULTRIX*:*:*) 442 408 echo vax-dec-ultrix${UNAME_RELEASE} 443 exit 0;;409 exit ;; 444 410 2020:CLIX:*:* | 2430:CLIX:*:*) 445 411 echo clipper-intergraph-clix${UNAME_RELEASE} 446 exit 0;;412 exit ;; 447 413 mips:*:*:UMIPS | mips:*:*:RISCos) 448 414 eval $set_cc_for_build 449 415 sed 's/^ //' << EOF >$dummy.c … … 467 433 exit (-1); 468 434 } 469 435 EOF 470 $CC_FOR_BUILD -o $dummy $dummy.c \ 471 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 472 && exit 0 436 $CC_FOR_BUILD -o $dummy $dummy.c && 437 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 438 SYSTEM_NAME=`$dummy $dummyarg` && 439 { echo "$SYSTEM_NAME"; exit; } 473 440 echo mips-mips-riscos${UNAME_RELEASE} 474 exit 0;;441 exit ;; 475 442 Motorola:PowerMAX_OS:*:*) 476 443 echo powerpc-motorola-powermax 477 exit 0;;444 exit ;; 478 445 Motorola:*:4.3:PL8-*) 479 446 echo powerpc-harris-powermax 480 exit 0;;447 exit ;; 481 448 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 482 449 echo powerpc-harris-powermax 483 exit 0;;450 exit ;; 484 451 Night_Hawk:Power_UNIX:*:*) 485 452 echo powerpc-harris-powerunix 486 exit 0;;453 exit ;; 487 454 m88k:CX/UX:7*:*) 488 455 echo m88k-harris-cxux7 489 exit 0;;456 exit ;; 490 457 m88k:*:4*:R4*) 491 458 echo m88k-motorola-sysv4 492 exit 0;;459 exit ;; 493 460 m88k:*:3*:R3*) 494 461 echo m88k-motorola-sysv3 495 exit 0;;462 exit ;; 496 463 AViiON:dgux:*:*) 497 464 # DG/UX returns AViiON for all architectures 498 465 UNAME_PROCESSOR=`/usr/bin/uname -p` … … 508 475 else 509 476 echo i586-dg-dgux${UNAME_RELEASE} 510 477 fi 511 exit 0;;478 exit ;; 512 479 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 513 480 echo m88k-dolphin-sysv3 514 exit 0;;481 exit ;; 515 482 M88*:*:R3*:*) 516 483 # Delta 88k system running SVR3 517 484 echo m88k-motorola-sysv3 518 exit 0;;485 exit ;; 519 486 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 520 487 echo m88k-tektronix-sysv3 521 exit 0;;488 exit ;; 522 489 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 523 490 echo m68k-tektronix-bsd 524 exit 0;;491 exit ;; 525 492 *:IRIX*:*:*) 526 493 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 527 exit 0;;494 exit ;; 528 495 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 529 echo romp-ibm-aix 530 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '496 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 497 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 531 498 i*86:AIX:*:*) 532 499 echo i386-ibm-aix 533 exit 0;;500 exit ;; 534 501 ia64:AIX:*:*) 535 502 if [ -x /usr/bin/oslevel ] ; then 536 503 IBM_REV=`/usr/bin/oslevel` … … 538 505 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 539 506 fi 540 507 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 541 exit 0;;508 exit ;; 542 509 *:AIX:2:3) 543 510 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 544 511 eval $set_cc_for_build … … 553 520 exit(0); 554 521 } 555 522 EOF 556 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 557 echo rs6000-ibm-aix3.2.5 523 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 524 then 525 echo "$SYSTEM_NAME" 526 else 527 echo rs6000-ibm-aix3.2.5 528 fi 558 529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 559 530 echo rs6000-ibm-aix3.2.4 560 531 else 561 532 echo rs6000-ibm-aix3.2 562 533 fi 563 exit 0;;564 *:AIX:*:[45 ])534 exit ;; 535 *:AIX:*:[456]) 565 536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 566 537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 567 538 IBM_ARCH=rs6000 … … 574 545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 575 546 fi 576 547 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 577 exit 0;;548 exit ;; 578 549 *:AIX:*:*) 579 550 echo rs6000-ibm-aix 580 exit 0;;551 exit ;; 581 552 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 582 553 echo romp-ibm-bsd4.4 583 exit 0;;554 exit ;; 584 555 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 585 556 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 586 exit 0 ;;# report: romp-ibm BSD 4.3557 exit ;; # report: romp-ibm BSD 4.3 587 558 *:BOSX:*:*) 588 559 echo rs6000-bull-bosx 589 exit 0;;560 exit ;; 590 561 DPX/2?00:B.O.S.:*:*) 591 562 echo m68k-bull-sysv3 592 exit 0;;563 exit ;; 593 564 9000/[34]??:4.3bsd:1.*:*) 594 565 echo m68k-hp-bsd 595 exit 0;;566 exit ;; 596 567 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 597 568 echo m68k-hp-bsd4.4 598 exit 0;;569 exit ;; 599 570 9000/[34678]??:HP-UX:*:*) 600 571 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 601 572 case "${UNAME_MACHINE}" in … … 657 628 esac 658 629 if [ ${HP_ARCH} = "hppa2.0w" ] 659 630 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 631 eval $set_cc_for_build 632 633 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 634 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 635 # generating 64-bit code. GNU and HP use different nomenclature: 636 # 637 # $ CC_FOR_BUILD=cc ./config.guess 638 # => hppa2.0w-hp-hpux11.23 639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 640 # => hppa64-hp-hpux11.23 641 642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 643 grep __LP64__ >/dev/null 663 644 then 664 645 HP_ARCH="hppa2.0w" 665 646 else … … 667 648 fi 668 649 fi 669 650 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 670 exit 0;;651 exit ;; 671 652 ia64:HP-UX:*:*) 672 653 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 673 654 echo ia64-hp-hpux${HPUX_REV} 674 exit 0;;655 exit ;; 675 656 3050*:HI-UX:*:*) 676 657 eval $set_cc_for_build 677 658 sed 's/^ //' << EOF >$dummy.c … … 699 680 exit (0); 700 681 } 701 682 EOF 702 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 683 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 684 { echo "$SYSTEM_NAME"; exit; } 703 685 echo unknown-hitachi-hiuxwe2 704 exit 0;;686 exit ;; 705 687 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 706 688 echo hppa1.1-hp-bsd 707 exit 0;;689 exit ;; 708 690 9000/8??:4.3bsd:*:*) 709 691 echo hppa1.0-hp-bsd 710 exit 0;;692 exit ;; 711 693 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 712 694 echo hppa1.0-hp-mpeix 713 exit 0;;695 exit ;; 714 696 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 715 697 echo hppa1.1-hp-osf 716 exit 0;;698 exit ;; 717 699 hp8??:OSF1:*:*) 718 700 echo hppa1.0-hp-osf 719 exit 0;;701 exit ;; 720 702 i*86:OSF1:*:*) 721 703 if [ -x /usr/sbin/sysversion ] ; then 722 704 echo ${UNAME_MACHINE}-unknown-osf1mk 723 705 else 724 706 echo ${UNAME_MACHINE}-unknown-osf1 725 707 fi 726 exit 0;;708 exit ;; 727 709 parisc*:Lites*:*:*) 728 710 echo hppa1.1-hp-lites 729 exit 0;;711 exit ;; 730 712 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 731 713 echo c1-convex-bsd 732 exit 0;;714 exit ;; 733 715 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 734 716 if getsysinfo -f scalar_acc 735 717 then echo c32-convex-bsd 736 718 else echo c2-convex-bsd 737 719 fi 738 exit 0;;720 exit ;; 739 721 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 740 722 echo c34-convex-bsd 741 exit 0;;723 exit ;; 742 724 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 743 725 echo c38-convex-bsd 744 exit 0;;726 exit ;; 745 727 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 746 728 echo c4-convex-bsd 747 exit 0;;729 exit ;; 748 730 CRAY*Y-MP:*:*:*) 749 731 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit 0;;732 exit ;; 751 733 CRAY*[A-Z]90:*:*:*) 752 734 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 753 735 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 754 736 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 755 737 -e 's/\.[^.]*$/.X/' 756 exit 0;;738 exit ;; 757 739 CRAY*TS:*:*:*) 758 740 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 759 exit 0;;741 exit ;; 760 742 CRAY*T3E:*:*:*) 761 743 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 762 exit 0;;744 exit ;; 763 745 CRAY*SV1:*:*:*) 764 746 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 765 exit 0;;747 exit ;; 766 748 *:UNICOS/mp:*:*) 767 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'768 exit 0;;749 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 exit ;; 769 751 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 770 752 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 771 753 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 772 754 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 773 755 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 774 exit 0;;756 exit ;; 775 757 5000:UNIX_System_V:4.*:*) 776 758 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 777 759 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 778 760 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 779 exit 0;;761 exit ;; 780 762 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 781 763 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 782 exit 0;;764 exit ;; 783 765 sparc*:BSD/OS:*:*) 784 766 echo sparc-unknown-bsdi${UNAME_RELEASE} 785 exit 0;;767 exit ;; 786 768 *:BSD/OS:*:*) 787 769 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 788 exit 0;;770 exit ;; 789 771 *: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 799 EOF 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 804 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 805 exit 0 ;; 772 case ${UNAME_MACHINE} in 773 pc98) 774 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 775 amd64) 776 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 777 *) 778 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 779 esac 780 exit ;; 806 781 i*:CYGWIN*:*) 807 782 echo ${UNAME_MACHINE}-pc-cygwin 808 exit 0;;809 i*:MINGW*:*)783 exit ;; 784 *:MINGW*:*) 810 785 echo ${UNAME_MACHINE}-pc-mingw32 811 exit 0 ;; 786 exit ;; 787 i*:windows32*:*) 788 # uname -m includes "-pc" on this system. 789 echo ${UNAME_MACHINE}-mingw32 790 exit ;; 812 791 i*:PW*:*) 813 792 echo ${UNAME_MACHINE}-pc-pw32 814 exit 0 ;; 815 x86:Interix*:[34]*) 816 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 817 exit 0 ;; 793 exit ;; 794 *:Interix*:[3456]*) 795 case ${UNAME_MACHINE} in 796 x86) 797 echo i586-pc-interix${UNAME_RELEASE} 798 exit ;; 799 EM64T | authenticamd) 800 echo x86_64-unknown-interix${UNAME_RELEASE} 801 exit ;; 802 IA64) 803 echo ia64-unknown-interix${UNAME_RELEASE} 804 exit ;; 805 esac ;; 818 806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 819 807 echo i${UNAME_MACHINE}-pc-mks 820 exit 0;;808 exit ;; 821 809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 822 810 # How do we know it's Interix rather than the generic POSIX subsystem? 823 811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 824 812 # UNAME_MACHINE based on the output of uname instead of i386? 825 813 echo i586-pc-interix 826 exit 0;;814 exit ;; 827 815 i*:UWIN*:*) 828 816 echo ${UNAME_MACHINE}-pc-uwin 829 exit 0 ;; 817 exit ;; 818 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 819 echo x86_64-unknown-cygwin 820 exit ;; 830 821 p*:CYGWIN*:*) 831 822 echo powerpcle-unknown-cygwin 832 exit 0;;823 exit ;; 833 824 prep*:SunOS:5.*:*) 834 825 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 835 exit 0;;826 exit ;; 836 827 *:GNU:*:*) 837 828 # the GNU system 838 829 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 839 exit 0;;830 exit ;; 840 831 *:GNU/*:*:*) 841 832 # other systems with GNU libc and userland 842 833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 843 exit 0;;834 exit ;; 844 835 i*86:Minix:*:*) 845 836 echo ${UNAME_MACHINE}-pc-minix 846 exit 0;;837 exit ;; 847 838 arm*:Linux:*:*) 839 eval $set_cc_for_build 840 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 841 | grep -q __ARM_EABI__ 842 then 843 echo ${UNAME_MACHINE}-unknown-linux-gnu 844 else 845 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 846 fi 847 exit ;; 848 avr32*:Linux:*:*) 848 849 echo ${UNAME_MACHINE}-unknown-linux-gnu 849 exit 0;;850 exit ;; 850 851 cris:Linux:*:*) 851 852 echo cris-axis-linux-gnu 852 exit 0 ;; 853 exit ;; 854 crisv32:Linux:*:*) 855 echo crisv32-axis-linux-gnu 856 exit ;; 857 frv:Linux:*:*) 858 echo frv-unknown-linux-gnu 859 exit ;; 853 860 ia64:Linux:*:*) 854 861 echo ${UNAME_MACHINE}-unknown-linux-gnu 855 exit 0;;862 exit ;; 856 863 m32r*:Linux:*:*) 857 864 echo ${UNAME_MACHINE}-unknown-linux-gnu 858 exit 0;;865 exit ;; 859 866 m68*:Linux:*:*) 860 867 echo ${UNAME_MACHINE}-unknown-linux-gnu 861 exit 0;;868 exit ;; 862 869 mips:Linux:*:*) 863 870 eval $set_cc_for_build 864 871 sed 's/^ //' << EOF >$dummy.c … … 875 882 #endif 876 883 #endif 877 884 EOF 878 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 879 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 885 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 886 /^CPU/{ 887 s: ::g 888 p 889 }'`" 890 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 880 891 ;; 881 892 mips64:Linux:*:*) 882 893 eval $set_cc_for_build … … 894 905 #endif 895 906 #endif 896 907 EOF 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 908 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 909 /^CPU/{ 910 s: ::g 911 p 912 }'`" 913 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 899 914 ;; 915 or32:Linux:*:*) 916 echo or32-unknown-linux-gnu 917 exit ;; 900 918 ppc:Linux:*:*) 901 919 echo powerpc-unknown-linux-gnu 902 exit 0;;920 exit ;; 903 921 ppc64:Linux:*:*) 904 922 echo powerpc64-unknown-linux-gnu 905 exit 0;;923 exit ;; 906 924 alpha:Linux:*:*) 907 925 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 908 926 EV5) UNAME_MACHINE=alphaev5 ;; … … 916 934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 917 935 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 918 936 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 919 exit 0;;937 exit ;; 920 938 parisc:Linux:*:* | hppa:Linux:*:*) 921 939 # Look for CPU level 922 940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in … … 924 942 PA8*) echo hppa2.0-unknown-linux-gnu ;; 925 943 *) echo hppa-unknown-linux-gnu ;; 926 944 esac 927 exit 0;;945 exit ;; 928 946 parisc64:Linux:*:* | hppa64:Linux:*:*) 929 947 echo hppa64-unknown-linux-gnu 930 exit 0;;948 exit ;; 931 949 s390:Linux:*:* | s390x:Linux:*:*) 932 950 echo ${UNAME_MACHINE}-ibm-linux 933 exit 0;;951 exit ;; 934 952 sh64*:Linux:*:*) 935 953 echo ${UNAME_MACHINE}-unknown-linux-gnu 936 exit 0;;954 exit ;; 937 955 sh*:Linux:*:*) 938 956 echo ${UNAME_MACHINE}-unknown-linux-gnu 939 exit 0;;957 exit ;; 940 958 sparc:Linux:*:* | sparc64:Linux:*:*) 941 959 echo ${UNAME_MACHINE}-unknown-linux-gnu 942 exit 0 ;; 960 exit ;; 961 vax:Linux:*:*) 962 echo ${UNAME_MACHINE}-dec-linux-gnu 963 exit ;; 943 964 x86_64:Linux:*:*) 944 965 echo x86_64-unknown-linux-gnu 945 exit 0 ;; 966 exit ;; 967 xtensa*:Linux:*:*) 968 echo ${UNAME_MACHINE}-unknown-linux-gnu 969 exit ;; 946 970 i*86:Linux:*:*) 947 971 # The BFD linker knows what the default object file format is, so 948 972 # first see if it will tell us. cd to the root directory to prevent … … 960 984 ;; 961 985 a.out-i386-linux) 962 986 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 963 exit 0;;987 exit ;; 964 988 coff-i386) 965 989 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 966 exit 0;;990 exit ;; 967 991 "") 968 992 # Either a pre-BFD a.out linker (linux-gnuoldld) or 969 993 # one that does not give us useful --help. 970 994 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 971 exit 0;;995 exit ;; 972 996 esac 973 997 # Determine whether the default compiler is a.out or elf 974 998 eval $set_cc_for_build … … 985 1009 LIBC=gnulibc1 986 1010 # endif 987 1011 #else 988 #if def __INTEL_COMPILER1012 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 989 1013 LIBC=gnu 990 1014 #else 991 1015 LIBC=gnuaout … … 995 1019 LIBC=dietlibc 996 1020 #endif 997 1021 EOF 998 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 999 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 1000 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1022 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1023 /^LIBC/{ 1024 s: ::g 1025 p 1026 }'`" 1027 test x"${LIBC}" != x && { 1028 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1029 exit 1030 } 1031 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1001 1032 ;; 1002 1033 i*86:DYNIX/ptx:4*:*) 1003 1034 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1004 1035 # earlier versions are messed up and put the nodename in both 1005 1036 # sysname and nodename. 1006 1037 echo i386-sequent-sysv4 1007 exit 0;;1038 exit ;; 1008 1039 i*86:UNIX_SV:4.2MP:2.*) 1009 1040 # Unixware is an offshoot of SVR4, but it has its own version 1010 1041 # number series starting with 2... … … 1012 1043 # I just have to hope. -- rms. 1013 1044 # Use sysv4.2uw... so that sysv4* matches it. 1014 1045 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1015 exit 0;;1046 exit ;; 1016 1047 i*86:OS/2:*:*) 1017 1048 # If we were able to find `uname', then EMX Unix compatibility 1018 1049 # is probably installed. 1019 1050 echo ${UNAME_MACHINE}-pc-os2-emx 1020 exit 0;;1051 exit ;; 1021 1052 i*86:XTS-300:*:STOP) 1022 1053 echo ${UNAME_MACHINE}-unknown-stop 1023 exit 0;;1054 exit ;; 1024 1055 i*86:atheos:*:*) 1025 1056 echo ${UNAME_MACHINE}-unknown-atheos 1026 exit 0;;1027 1057 exit ;; 1058 i*86:syllable:*:*) 1028 1059 echo ${UNAME_MACHINE}-pc-syllable 1029 exit 0;;1060 exit ;; 1030 1061 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1031 1062 echo i386-unknown-lynxos${UNAME_RELEASE} 1032 exit 0;;1063 exit ;; 1033 1064 i*86:*DOS:*:*) 1034 1065 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1035 exit 0;;1066 exit ;; 1036 1067 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1037 1068 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1038 1069 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 1040 1071 else 1041 1072 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1042 1073 fi 1043 exit 0 ;; 1044 i*86:*:5:[78]*) 1074 exit ;; 1075 i*86:*:5:[678]*) 1076 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1045 1077 case `/bin/uname -X | grep "^Machine"` in 1046 1078 *486*) UNAME_MACHINE=i486 ;; 1047 1079 *Pentium) UNAME_MACHINE=i586 ;; 1048 1080 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1049 1081 esac 1050 1082 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1051 exit 0;;1083 exit ;; 1052 1084 i*86:*:3.2:*) 1053 1085 if test -f /usr/options/cb.name; then 1054 1086 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` … … 1066 1098 else 1067 1099 echo ${UNAME_MACHINE}-pc-sysv32 1068 1100 fi 1069 exit 0;;1101 exit ;; 1070 1102 pc:*:*:*) 1071 1103 # Left here for compatibility: 1072 1104 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1073 1105 # the processor, so we play safe by assuming i386. 1074 1106 echo i386-pc-msdosdjgpp 1075 exit 0;;1107 exit ;; 1076 1108 Intel:Mach:3*:*) 1077 1109 echo i386-pc-mach3 1078 exit 0;;1110 exit ;; 1079 1111 paragon:*:*:*) 1080 1112 echo i860-intel-osf1 1081 exit 0;;1113 exit ;; 1082 1114 i860:*:4.*:*) # i860-SVR4 1083 1115 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1084 1116 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1085 1117 else # Add other i860-SVR4 vendors below as they are discovered. 1086 1118 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1087 1119 fi 1088 exit 0;;1120 exit ;; 1089 1121 mini*:CTIX:SYS*5:*) 1090 1122 # "miniframe" 1091 1123 echo m68010-convergent-sysv 1092 exit 0;;1124 exit ;; 1093 1125 mc68k:UNIX:SYSTEM5:3.51m) 1094 1126 echo m68k-convergent-sysv 1095 exit 0;;1127 exit ;; 1096 1128 M680?0:D-NIX:5.3:*) 1097 1129 echo m68k-diab-dnix 1098 exit 0;;1130 exit ;; 1099 1131 M68*:*:R3V[5678]*:*) 1100 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 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 )1132 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1133 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) 1102 1134 OS_REL='' 1103 1135 test -r /etc/.relid \ 1104 1136 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1105 1137 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1106 && echo i486-ncr-sysv4.3${OS_REL} && exit 01138 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1107 1139 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1108 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1140 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1109 1141 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1110 1142 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1111 && echo i486-ncr-sysv4 && exit 0;;1143 && { echo i486-ncr-sysv4; exit; } ;; 1112 1144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1113 1145 echo m68k-unknown-lynxos${UNAME_RELEASE} 1114 exit 0;;1146 exit ;; 1115 1147 mc68030:UNIX_System_V:4.*:*) 1116 1148 echo m68k-atari-sysv4 1117 exit 0;;1149 exit ;; 1118 1150 TSUNAMI:LynxOS:2.*:*) 1119 1151 echo sparc-unknown-lynxos${UNAME_RELEASE} 1120 exit 0;;1152 exit ;; 1121 1153 rs6000:LynxOS:2.*:*) 1122 1154 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1123 exit 0;;1155 exit ;; 1124 1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1125 1157 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1126 exit 0;;1158 exit ;; 1127 1159 SM[BE]S:UNIX_SV:*:*) 1128 1160 echo mips-dde-sysv${UNAME_RELEASE} 1129 exit 0;;1161 exit ;; 1130 1162 RM*:ReliantUNIX-*:*:*) 1131 1163 echo mips-sni-sysv4 1132 exit 0;;1164 exit ;; 1133 1165 RM*:SINIX-*:*:*) 1134 1166 echo mips-sni-sysv4 1135 exit 0;;1167 exit ;; 1136 1168 *:SINIX-*:*:*) 1137 1169 if uname -p 2>/dev/null >/dev/null ; then 1138 1170 UNAME_MACHINE=`(uname -p) 2>/dev/null` … … 1140 1172 else 1141 1173 echo ns32k-sni-sysv 1142 1174 fi 1143 exit 0;;1175 exit ;; 1144 1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1145 1177 # says <Richard.M.Bartel@ccMail.Census.GOV> 1146 1178 echo i586-unisys-sysv4 1147 exit 0;;1179 exit ;; 1148 1180 *:UNIX_System_V:4*:FTX*) 1149 1181 # From Gerald Hewes <hewes@openmarket.com>. 1150 1182 # How about differentiating between stratus architectures? -djm 1151 1183 echo hppa1.1-stratus-sysv4 1152 exit 0;;1184 exit ;; 1153 1185 *:*:*:FTX*) 1154 1186 # From seanf@swdc.stratus.com. 1155 1187 echo i860-stratus-sysv4 1156 exit 0 ;; 1188 exit ;; 1189 i*86:VOS:*:*) 1190 # From Paul.Green@stratus.com. 1191 echo ${UNAME_MACHINE}-stratus-vos 1192 exit ;; 1157 1193 *:VOS:*:*) 1158 1194 # From Paul.Green@stratus.com. 1159 1195 echo hppa1.1-stratus-vos 1160 exit 0;;1196 exit ;; 1161 1197 mc68*:A/UX:*:*) 1162 1198 echo m68k-apple-aux${UNAME_RELEASE} 1163 exit 0;;1199 exit ;; 1164 1200 news*:NEWS-OS:6*:*) 1165 1201 echo mips-sony-newsos6 1166 exit 0;;1202 exit ;; 1167 1203 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1168 1204 if [ -d /usr/nec ]; then 1169 1205 echo mips-nec-sysv${UNAME_RELEASE} 1170 1206 else 1171 1207 echo mips-unknown-sysv${UNAME_RELEASE} 1172 1208 fi 1173 exit 0;;1209 exit ;; 1174 1210 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1175 1211 echo powerpc-be-beos 1176 exit 0;;1212 exit ;; 1177 1213 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1178 1214 echo powerpc-apple-beos 1179 exit 0;;1215 exit ;; 1180 1216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1181 1217 echo i586-pc-beos 1182 exit 0 ;; 1218 exit ;; 1219 BeMac:Haiku:*:*) 1220 echo powerpc-apple-haiku 1221 exit ;; 1222 BePC:Haiku:*:*) 1223 echo i586-pc-haiku 1224 exit ;; 1183 1225 SX-4:SUPER-UX:*:*) 1184 1226 echo sx4-nec-superux${UNAME_RELEASE} 1185 exit 0;;1227 exit ;; 1186 1228 SX-5:SUPER-UX:*:*) 1187 1229 echo sx5-nec-superux${UNAME_RELEASE} 1188 exit 0;;1230 exit ;; 1189 1231 SX-6:SUPER-UX:*:*) 1190 1232 echo sx6-nec-superux${UNAME_RELEASE} 1191 exit 0 ;; 1233 exit ;; 1234 SX-7:SUPER-UX:*:*) 1235 echo sx7-nec-superux${UNAME_RELEASE} 1236 exit ;; 1237 SX-8:SUPER-UX:*:*) 1238 echo sx8-nec-superux${UNAME_RELEASE} 1239 exit ;; 1240 SX-8R:SUPER-UX:*:*) 1241 echo sx8r-nec-superux${UNAME_RELEASE} 1242 exit ;; 1192 1243 Power*:Rhapsody:*:*) 1193 1244 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1194 exit 0;;1245 exit ;; 1195 1246 *:Rhapsody:*:*) 1196 1247 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1197 exit 0;;1248 exit ;; 1198 1249 *:Darwin:*:*) 1199 case `uname -p` in1200 *86) UNAME_PROCESSOR=i686 ;;1201 powerpc) UNAME_PROCESSOR=powerpc ;;1250 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1251 case $UNAME_PROCESSOR in 1252 unknown) UNAME_PROCESSOR=powerpc ;; 1202 1253 esac 1203 1254 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1204 exit 0;;1255 exit ;; 1205 1256 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1206 1257 UNAME_PROCESSOR=`uname -p` 1207 1258 if test "$UNAME_PROCESSOR" = "x86"; then … … 1209 1260 UNAME_MACHINE=pc 1210 1261 fi 1211 1262 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1212 exit 0;;1263 exit ;; 1213 1264 *:QNX:*:4*) 1214 1265 echo i386-pc-qnx 1215 exit 0 ;; 1266 exit ;; 1267 NSE-?:NONSTOP_KERNEL:*:*) 1268 echo nse-tandem-nsk${UNAME_RELEASE} 1269 exit ;; 1216 1270 NSR-?:NONSTOP_KERNEL:*:*) 1217 1271 echo nsr-tandem-nsk${UNAME_RELEASE} 1218 exit 0;;1272 exit ;; 1219 1273 *:NonStop-UX:*:*) 1220 1274 echo mips-compaq-nonstopux 1221 exit 0;;1275 exit ;; 1222 1276 BS2000:POSIX*:*:*) 1223 1277 echo bs2000-siemens-sysv 1224 exit 0;;1278 exit ;; 1225 1279 DS/*:UNIX_System_V:*:*) 1226 1280 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1227 exit 0;;1281 exit ;; 1228 1282 *:Plan9:*:*) 1229 1283 # "uname -m" is not consistent, so use $cputype instead. 386 1230 1284 # is converted to i386 for consistency with other x86 … … 1235 1289 UNAME_MACHINE="$cputype" 1236 1290 fi 1237 1291 echo ${UNAME_MACHINE}-unknown-plan9 1238 exit 0;;1292 exit ;; 1239 1293 *:TOPS-10:*:*) 1240 1294 echo pdp10-unknown-tops10 1241 exit 0;;1295 exit ;; 1242 1296 *:TENEX:*:*) 1243 1297 echo pdp10-unknown-tenex 1244 exit 0;;1298 exit ;; 1245 1299 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1246 1300 echo pdp10-dec-tops20 1247 exit 0;;1301 exit ;; 1248 1302 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1249 1303 echo pdp10-xkl-tops20 1250 exit 0;;1304 exit ;; 1251 1305 *:TOPS-20:*:*) 1252 1306 echo pdp10-unknown-tops20 1253 exit 0;;1307 exit ;; 1254 1308 *:ITS:*:*) 1255 1309 echo pdp10-unknown-its 1256 exit 0;;1310 exit ;; 1257 1311 SEI:*:*:SEIUX) 1258 1312 echo mips-sei-seiux${UNAME_RELEASE} 1259 exit 0;;1313 exit ;; 1260 1314 *:DragonFly:*:*) 1261 1315 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1262 exit 0 ;; 1316 exit ;; 1317 *:*VMS:*:*) 1318 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1319 case "${UNAME_MACHINE}" in 1320 A*) echo alpha-dec-vms ; exit ;; 1321 I*) echo ia64-dec-vms ; exit ;; 1322 V*) echo vax-dec-vms ; exit ;; 1323 esac ;; 1324 *:XENIX:*:SysV) 1325 echo i386-pc-xenix 1326 exit ;; 1327 i*86:skyos:*:*) 1328 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1329 exit ;; 1330 i*86:rdos:*:*) 1331 echo ${UNAME_MACHINE}-pc-rdos 1332 exit ;; 1263 1333 esac 1264 1334 1265 1335 #echo '(No uname command or uname output not recognized.)' 1>&2 … … 1291 1361 #endif 1292 1362 1293 1363 #if defined (__arm) && defined (__acorn) && defined (__unix) 1294 printf ("arm-acorn-riscix "); exit (0);1364 printf ("arm-acorn-riscix\n"); exit (0); 1295 1365 #endif 1296 1366 1297 1367 #if defined (hp300) && !defined (hpux) … … 1380 1450 } 1381 1451 EOF 1382 1452 1383 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1453 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1454 { echo "$SYSTEM_NAME"; exit; } 1384 1455 1385 1456 # Apollos put the system type in the environment. 1386 1457 1387 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1458 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1388 1459 1389 1460 # Convex versions that predate uname can use getsysinfo(1) 1390 1461 … … 1393 1464 case `getsysinfo -f cpu_type` in 1394 1465 c1*) 1395 1466 echo c1-convex-bsd 1396 exit 0;;1467 exit ;; 1397 1468 c2*) 1398 1469 if getsysinfo -f scalar_acc 1399 1470 then echo c32-convex-bsd 1400 1471 else echo c2-convex-bsd 1401 1472 fi 1402 exit 0;;1473 exit ;; 1403 1474 c34*) 1404 1475 echo c34-convex-bsd 1405 exit 0;;1476 exit ;; 1406 1477 c38*) 1407 1478 echo c38-convex-bsd 1408 exit 0;;1479 exit ;; 1409 1480 c4*) 1410 1481 echo c4-convex-bsd 1411 exit 0;;1482 exit ;; 1412 1483 esac 1413 1484 fi 1414 1485 … … 1419 1490 the operating system you are using. It is advised that you 1420 1491 download the most up to date version of the config scripts from 1421 1492 1422 ftp://ftp.gnu.org/pub/gnu/config/ 1493 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1494 and 1495 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1423 1496 1424 1497 If the version you run ($0) is already up to date, please 1425 1498 send the following data and any information you think might be -
config.sub
1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 5 # Free Software Foundation, Inc. 5 6 6 timestamp='200 4-06-11'7 timestamp='2008-01-16' 7 8 8 9 # This file is (in principle) common to ALL GNU software. 9 10 # The presence of a machine in this file suggests that SOME GNU software … … 21 22 # 22 23 # You should have received a copy of the GNU General Public License 23 24 # along with this program; if not, write to the Free Software 24 # Foundation, Inc., 5 9 Temple Place - Suite 330,25 # Boston, MA 02111-1307, USA.26 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 26 # 02110-1301, USA. 27 # 27 28 # As a special exception to the GNU General Public License, if you 28 29 # distribute this file as part of a program that contains a 29 30 # configuration script generated by Autoconf, you may include it under 30 31 # the same distribution terms that you use for the rest of that program. 31 32 33 32 34 # Please send patches to <config-patches@gnu.org>. Submit a context 33 35 # diff and a properly formatted ChangeLog entry. 34 36 # … … 70 72 version="\ 71 73 GNU config.sub ($timestamp) 72 74 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74 Free Software Foundation, Inc.75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 76 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 75 77 76 78 This is free software; see the source for copying conditions. There is NO 77 79 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." … … 83 85 while test $# -gt 0 ; do 84 86 case $1 in 85 87 --time-stamp | --time* | -t ) 86 echo "$timestamp" ; exit 0;;88 echo "$timestamp" ; exit ;; 87 89 --version | -v ) 88 echo "$version" ; exit 0;;90 echo "$version" ; exit ;; 89 91 --help | --h* | -h ) 90 echo "$usage"; exit 0;;92 echo "$usage"; exit ;; 91 93 -- ) # Stop option processing 92 94 shift; break ;; 93 95 - ) # Use stdin as input. … … 99 101 *local*) 100 102 # First pass through any local machine types. 101 103 echo $1 102 exit 0;;104 exit ;; 103 105 104 106 * ) 105 107 break ;; … … 118 120 # Here we must recognize all the valid KERNEL-OS combinations. 119 121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 122 case $maybe_os in 121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 125 storm-chaos* | os2-emx* | rtmk-nova*) 123 126 os=-$maybe_os 124 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 125 128 ;; … … 145 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 146 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 147 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 148 -apple | -axis )151 -apple | -axis | -knuth | -cray) 149 152 os= 150 153 basic_machine=$1 151 154 ;; … … 170 173 -hiux*) 171 174 os=-hiuxwe2 172 175 ;; 176 -sco6) 177 os=-sco5v6 178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 179 ;; 173 180 -sco5) 174 181 os=-sco3.2v5 175 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 186 193 # Don't forget version if it is 3.2v4 or newer. 187 194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 188 195 ;; 196 -sco5v6*) 197 # Don't forget version if it is 3.2v4 or newer. 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 199 ;; 189 200 -sco*) 190 201 os=-sco3.2v2 191 202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 230 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 231 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 243 | am33_2.0 \ 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 245 | bfin \ 234 246 | c4x | clipper \ 235 247 | d10v | d30v | dlx | dsp16xx \ 236 | f r30 | frv \248 | fido | fr30 | frv \ 237 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 238 250 | i370 | i860 | i960 | ia64 \ 239 251 | ip2k | iq2000 \ 240 | m32r | m68000 | m68k | m88k | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 253 | maxq | mb | microblaze | mcore | mep \ 241 254 | mips | mipsbe | mipseb | mipsel | mipsle \ 242 255 | mips16 \ 243 256 | mips64 | mips64el \ … … 246 259 | mips64vr4100 | mips64vr4100el \ 247 260 | mips64vr4300 | mips64vr4300el \ 248 261 | mips64vr5000 | mips64vr5000el \ 262 | mips64vr5900 | mips64vr5900el \ 249 263 | mipsisa32 | mipsisa32el \ 250 264 | mipsisa32r2 | mipsisa32r2el \ 251 265 | mipsisa64 | mipsisa64el \ … … 254 268 | mipsisa64sr71k | mipsisa64sr71kel \ 255 269 | mipstx39 | mipstx39el \ 256 270 | mn10200 | mn10300 \ 271 | mt \ 257 272 | msp430 \ 273 | nios | nios2 \ 258 274 | ns16k | ns32k \ 259 | o penrisc | or32 \275 | or32 \ 260 276 | pdp10 | pdp11 | pj | pjl \ 261 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 262 278 | pyramid \ 263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | score \ 280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 264 281 | sh64 | sh64le \ 265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 266 | strongarm \ 282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 284 | spu | strongarm \ 267 285 | tahoe | thumb | tic4x | tic80 | tron \ 268 286 | v850 | v850e \ 269 287 | we32k \ 270 | x86 | x scale| xstormy16 | xtensa \288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 271 289 | z8k) 272 290 basic_machine=$basic_machine-unknown 273 291 ;; … … 278 296 ;; 279 297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 280 298 ;; 299 ms1) 300 basic_machine=mt-unknown 301 ;; 281 302 282 303 # We use `pc' rather than `unknown' 283 304 # because (1) that's what they normally are, and … … 297 318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 298 319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 299 320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 300 | avr-* \301 | b s2000-* \321 | avr-* | avr32-* \ 322 | bfin-* | bs2000-* \ 302 323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303 | clipper-* | c ydra-* \324 | clipper-* | craynv-* | cydra-* \ 304 325 | d10v-* | d30v-* | dlx-* \ 305 326 | elxsi-* \ 306 | f30[01]-* | f700-* | f r30-* | frv-* | fx80-* \327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 307 328 | h8300-* | h8500-* \ 308 329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 309 330 | i*86-* | i860-* | i960-* | ia64-* \ 310 331 | ip2k-* | iq2000-* \ 311 | m32 r-* \332 | m32c-* | m32r-* | m32rle-* \ 312 333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 313 | m88110-* | m88k-* | m core-* \334 | m88110-* | m88k-* | maxq-* | mcore-* \ 314 335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 315 336 | mips16-* \ 316 337 | mips64-* | mips64el-* \ … … 319 340 | mips64vr4100-* | mips64vr4100el-* \ 320 341 | mips64vr4300-* | mips64vr4300el-* \ 321 342 | mips64vr5000-* | mips64vr5000el-* \ 343 | mips64vr5900-* | mips64vr5900el-* \ 322 344 | mipsisa32-* | mipsisa32el-* \ 323 345 | mipsisa32r2-* | mipsisa32r2el-* \ 324 346 | mipsisa64-* | mipsisa64el-* \ … … 326 348 | mipsisa64sb1-* | mipsisa64sb1el-* \ 327 349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 328 350 | mipstx39-* | mipstx39el-* \ 351 | mmix-* \ 352 | mt-* \ 329 353 | msp430-* \ 330 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 354 | nios-* | nios2-* \ 355 | none-* | np1-* | ns16k-* | ns32k-* \ 331 356 | orion-* \ 332 357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 333 358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 334 359 | pyramid-* \ 335 360 | romp-* | rs6000-* \ 336 | sh-* | sh[1234]-* | sh[2 3]e-* | sh[34]eb-* | shbe-* \361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 337 362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 338 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 339 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 364 | sparclite-* \ 365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 340 366 | tahoe-* | thumb-* \ 341 367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 342 368 | tron-* \ 343 369 | v850-* | v850e-* | vax-* \ 344 370 | we32k-* \ 345 | x86-* | x86_64-* | x ps100-* | xscale-* | xstormy16-* \346 | x tensa-* \371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 372 | xstormy16-* | xtensa*-* \ 347 373 | ymp-* \ 348 374 | z8k-*) 349 375 ;; 376 # Recognize the basic CPU types without company name, with glob match. 377 xtensa*) 378 basic_machine=$basic_machine-unknown 379 ;; 350 380 # Recognize the various machine names and aliases which stand 351 381 # for a CPU type and a company and sometimes even an OS. 352 382 386bsd) … … 363 393 basic_machine=a29k-amd 364 394 os=-udi 365 395 ;; 396 abacus) 397 basic_machine=abacus-unknown 398 ;; 366 399 adobe68k) 367 400 basic_machine=m68010-adobe 368 401 os=-scout … … 414 447 basic_machine=ns32k-sequent 415 448 os=-dynix 416 449 ;; 450 blackfin) 451 basic_machine=bfin-unknown 452 os=-linux 453 ;; 454 blackfin-*) 455 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 456 os=-linux 457 ;; 417 458 c90) 418 459 basic_machine=c90-cray 419 460 os=-unicos … … 442 483 basic_machine=j90-cray 443 484 os=-unicos 444 485 ;; 486 craynv) 487 basic_machine=craynv-cray 488 os=-unicosmp 489 ;; 490 cr16) 491 basic_machine=cr16-unknown 492 os=-elf 493 ;; 445 494 crds | unos) 446 495 basic_machine=m68k-crds 447 496 ;; 497 crisv32 | crisv32-* | etraxfs*) 498 basic_machine=crisv32-axis 499 ;; 448 500 cris | cris-* | etrax*) 449 501 basic_machine=cris-axis 450 502 ;; 503 crx) 504 basic_machine=crx-unknown 505 os=-elf 506 ;; 451 507 da30 | da30-*) 452 508 basic_machine=m68k-da30 453 509 ;; … … 470 526 basic_machine=m88k-motorola 471 527 os=-sysv3 472 528 ;; 529 djgpp) 530 basic_machine=i586-pc 531 os=-msdosdjgpp 532 ;; 473 533 dpx20 | dpx20-*) 474 534 basic_machine=rs6000-bull 475 535 os=-bosx … … 620 680 basic_machine=m68k-isi 621 681 os=-sysv 622 682 ;; 683 m68knommu) 684 basic_machine=m68k-unknown 685 os=-linux 686 ;; 687 m68knommu-*) 688 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 689 os=-linux 690 ;; 623 691 m88k-omron*) 624 692 basic_machine=m88k-omron 625 693 ;; … … 635 703 basic_machine=i386-pc 636 704 os=-mingw32 637 705 ;; 706 mingw32ce) 707 basic_machine=arm-unknown 708 os=-mingw32ce 709 ;; 638 710 miniframe) 639 711 basic_machine=m68000-convergent 640 712 ;; … … 648 720 mips3*) 649 721 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 650 722 ;; 651 mmix*)652 basic_machine=mmix-knuth653 os=-mmixware654 ;;655 723 monitor) 656 724 basic_machine=m68k-rom68k 657 725 os=-coff … … 664 732 basic_machine=i386-pc 665 733 os=-msdos 666 734 ;; 735 ms1-*) 736 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 737 ;; 667 738 mvs) 668 739 basic_machine=i370-ibm 669 740 os=-mvs … … 732 803 np1) 733 804 basic_machine=np1-gould 734 805 ;; 735 nv1)736 basic_machine=nv1-cray737 os=-unicosmp738 ;;739 806 nsr-tandem) 740 807 basic_machine=nsr-tandem 741 808 ;; … … 743 810 basic_machine=hppa1.1-oki 744 811 os=-proelf 745 812 ;; 746 o r32 | or32-*)813 openrisc | openrisc-*) 747 814 basic_machine=or32-unknown 748 os=-coff749 815 ;; 750 816 os400) 751 817 basic_machine=powerpc-ibm … … 767 833 basic_machine=i860-intel 768 834 os=-osf 769 835 ;; 836 parisc) 837 basic_machine=hppa-unknown 838 os=-linux 839 ;; 840 parisc-*) 841 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 842 os=-linux 843 ;; 770 844 pbd) 771 845 basic_machine=sparc-tti 772 846 ;; … … 776 850 pc532 | pc532-*) 777 851 basic_machine=ns32k-pc532 778 852 ;; 853 pc98) 854 basic_machine=i386-pc 855 ;; 856 pc98-*) 857 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 858 ;; 779 859 pentium | p5 | k5 | k6 | nexgen | viac3) 780 860 basic_machine=i586-pc 781 861 ;; … … 832 912 basic_machine=i586-unknown 833 913 os=-pw32 834 914 ;; 915 rdos) 916 basic_machine=i386-pc 917 os=-rdos 918 ;; 835 919 rom68k) 836 920 basic_machine=m68k-rom68k 837 921 os=-coff … … 858 942 sb1el) 859 943 basic_machine=mipsisa64sb1el-unknown 860 944 ;; 945 sde) 946 basic_machine=mipsisa32-sde 947 os=-elf 948 ;; 861 949 sei) 862 950 basic_machine=mips-sei 863 951 os=-seiux … … 869 957 basic_machine=sh-hitachi 870 958 os=-hms 871 959 ;; 960 sh5el) 961 basic_machine=sh5le-unknown 962 ;; 872 963 sh64) 873 964 basic_machine=sh64-unknown 874 965 ;; … … 958 1049 basic_machine=tic6x-unknown 959 1050 os=-coff 960 1051 ;; 1052 tile*) 1053 basic_machine=tile-unknown 1054 os=-linux-gnu 1055 ;; 961 1056 tx39) 962 1057 basic_machine=mipstx39-unknown 963 1058 ;; … … 1018 1113 basic_machine=hppa1.1-winbond 1019 1114 os=-proelf 1020 1115 ;; 1116 xbox) 1117 basic_machine=i686-pc 1118 os=-mingw32 1119 ;; 1021 1120 xps | xps100) 1022 1121 basic_machine=xps100-honeywell 1023 1122 ;; … … 1048 1147 romp) 1049 1148 basic_machine=romp-ibm 1050 1149 ;; 1150 mmix) 1151 basic_machine=mmix-knuth 1152 ;; 1051 1153 rs6000) 1052 1154 basic_machine=rs6000-ibm 1053 1155 ;; … … 1064 1166 we32k) 1065 1167 basic_machine=we32k-att 1066 1168 ;; 1067 sh 3 | sh4| sh[34]eb | sh[1234]le | sh[23]ele)1169 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1068 1170 basic_machine=sh-unknown 1069 1171 ;; 1070 sh64) 1071 basic_machine=sh64-unknown 1072 ;; 1073 sparc | sparcv9 | sparcv9b) 1172 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1074 1173 basic_machine=sparc-sun 1075 1174 ;; 1076 1175 cydra) … … 1130 1229 os=-sysv4.2uw 1131 1230 ;; 1132 1231 -gnu/linux*) 1133 os=`echo $os | sed -e 's|gnu/linux|linux |'`1232 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1134 1233 ;; 1135 1234 # First accept the basic system types. 1136 1235 # The portable systems comes first. … … 1143 1242 | -aos* \ 1144 1243 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1145 1244 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1146 | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ 1147 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1245 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1246 | -openbsd* | -solidbsd* \ 1247 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1248 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1148 1249 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1149 1250 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1150 1251 | -chorusos* | -chorusrdb* \ 1151 1252 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1152 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1253 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1254 | -uxpv* | -beos* | -mpeix* | -udk* \ 1153 1255 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1154 1256 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1155 1257 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1156 1258 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1157 1259 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1158 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1260 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1261 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 1159 1262 # Remember, each alternative MUST END IN *, to match a version number. 1160 1263 ;; 1161 1264 -qnx*) … … 1173 1276 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1174 1277 ;; 1175 1278 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1176 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \1279 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1177 1280 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1178 1281 ;; 1179 1282 -mac*) … … 1183 1286 os=-linux-dietlibc 1184 1287 ;; 1185 1288 -linux*) 1186 os= -linux1289 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1187 1290 ;; 1188 1291 -sunos5*) 1189 1292 os=`echo $os | sed -e 's|sunos5|solaris2|'` … … 1282 1385 -kaos*) 1283 1386 os=-kaos 1284 1387 ;; 1388 -zvmoe) 1389 os=-zvmoe 1390 ;; 1285 1391 -none) 1286 1392 ;; 1287 1393 *) … … 1304 1410 # system, and we'll never get to this point. 1305 1411 1306 1412 case $basic_machine in 1413 score-*) 1414 os=-elf 1415 ;; 1416 spu-*) 1417 os=-elf 1418 ;; 1307 1419 *-acorn) 1308 1420 os=-riscix1.2 1309 1421 ;; … … 1313 1425 arm*-semi) 1314 1426 os=-aout 1315 1427 ;; 1316 c4x-* | tic4x-*)1317 os=-coff1318 1428 c4x-* | tic4x-*) 1429 os=-coff 1430 ;; 1319 1431 # This must come before the *-dec entry. 1320 1432 pdp10-*) 1321 1433 os=-tops20 … … 1341 1453 m68*-cisco) 1342 1454 os=-aout 1343 1455 ;; 1456 mep-*) 1457 os=-elf 1458 ;; 1344 1459 mips*-cisco) 1345 1460 os=-elf 1346 1461 ;; … … 1359 1474 *-be) 1360 1475 os=-beos 1361 1476 ;; 1477 *-haiku) 1478 os=-haiku 1479 ;; 1362 1480 *-ibm) 1363 1481 os=-aix 1364 1482 ;; 1483 *-knuth) 1484 os=-mmixware 1485 ;; 1365 1486 *-wec) 1366 1487 os=-proelf 1367 1488 ;; … … 1527 1648 esac 1528 1649 1529 1650 echo $basic_machine$os 1530 exit 01651 exit 1531 1652 1532 1653 # Local variables: 1533 1654 # eval: (add-hook 'write-file-hooks 'time-stamp) -
defines.h
190 190 #include "vms.h" 191 191 #endif 192 192 193 #if defined(__HAIKU__) 194 #include <sys/socket.h> /* intern.h needs fd_set definition */ 195 #else 193 196 #if defined(__BEOS__) 194 197 #include <net/socket.h> /* intern.h needs fd_set definition */ 195 198 #endif 199 #endif 196 200 197 201 #ifdef RUBY_EXPORT 198 202 #undef RUBY_EXTERN -
signal.c
422 422 #define sighandler_t sh_t 423 423 #endif 424 424 425 #ifndef __HAIKU__ 425 426 typedef RETSIGTYPE (*sighandler_t)_((int)); 427 #endif 426 428 427 429 #ifdef POSIX_SIGNAL 428 430 static sighandler_t -
eval.c
72 72 #include <unistd.h> 73 73 #endif 74 74 75 #ifdef __BEOS__ 76 #include <net/socket.h> 75 #ifdef __HAIKU__ 76 #include <sys/socket.h> 77 #else 78 #ifdef __BEOS__ 79 #include <net/socket.h> 80 #endif 77 81 #endif 78 82 79 83 #ifdef __MACOS__