Changeset 7187 in orxonox.OLD
- Timestamp:
- Feb 22, 2006, 2:49:47 AM (19 years ago)
- Location:
- branches/shared_lib
- Files:
-
- 1 deleted
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/Makefile.am
r4976 r7187 1 1 AUTOMAKE_OPTIONS = foreign no-installman no-installinfo 2 2 3 SUBDIRS = src 3 SUBDIRS = \ 4 src \ 5 libltdl 4 6 5 7 EXTRA_DIST = CODING-STANDARDS \ -
branches/shared_lib/config.guess
r5750 r7187 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005Free Software Foundation, Inc.5 6 timestamp='200 5-02-10'3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 6 timestamp='2001-06-12' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 25 25 # the same distribution terms that you use for the rest of that program. 26 26 27 # Originally written by Per Bothner <per@bothner.com>. 28 # Please send patches to <config-patches@gnu.org>. Submit a context 29 # diff and a properly formatted ChangeLog entry. 27 # Written by Per Bothner <bothner@cygnus.com>. 28 # Please send patches to <config-patches@gnu.org>. 30 29 # 31 30 # This script attempts to guess a canonical system name similar to … … 54 53 55 54 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 , 2002, 2003, 2004, 200555 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 56 Free Software Foundation, Inc. 58 57 … … 89 88 fi 90 89 91 trap 'exit 1' 1 2 15 92 93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a 94 # compiler to aid in system detection is discouraged as it requires 95 # temporary files to be created and, as you can see below, it is a 96 # headache to deal with in a portable fashion. 97 90 91 dummy=dummy-$$ 92 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 93 94 # CC_FOR_BUILD -- compiler used by this script. 98 95 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 99 96 # use `HOST_CC' if defined, but it is deprecated. 100 97 101 # Portable tmp directory creation inspired by the Autoconf team.102 103 set_cc_for_build='104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;106 : ${TMPDIR=/tmp} ;107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;111 dummy=$tmp/dummy ;112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;113 98 case $CC_FOR_BUILD,$HOST_CC,$CC in 114 ,,) echo "int x;" > $dummy.c ; 115 for c in cc gcc c89 c99 ; do 116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 117 CC_FOR_BUILD="$c"; break ; 118 fi ; 119 done ; 99 ,,) echo "int dummy(){}" > $dummy.c 100 for c in cc gcc c89 ; do 101 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 102 if test $? = 0 ; then 103 CC_FOR_BUILD="$c"; break 104 fi 105 done 106 rm -f $dummy.c $dummy.o $dummy.rel 120 107 if test x"$CC_FOR_BUILD" = x ; then 121 CC_FOR_BUILD=no_compiler_found ;108 CC_FOR_BUILD=no_compiler_found 122 109 fi 123 110 ;; 124 111 ,,*) CC_FOR_BUILD=$CC ;; 125 112 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ;'113 esac 127 114 128 115 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 129 # (ghazi@noc.rutgers.edu 1994-08-24)116 # (ghazi@noc.rutgers.edu 8/24/94.) 130 117 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 131 118 PATH=$PATH:/.attbin ; export PATH … … 141 128 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 142 129 *:NetBSD:*:*) 143 # Net BSD(nbsd) targets should (where applicable) match one or130 # Netbsd (nbsd) targets should (where applicable) match one or 144 131 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 145 132 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently … … 148 135 # compatibility and a consistent mechanism for selecting the 149 136 # object file format. 150 # 151 # Note: NetBSD doesn't particularly care about the vendor 152 # portion of the name. We always set it to "unknown". 153 sysctl="sysctl -n hw.machine_arch" 154 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 155 /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 156 case "${UNAME_MACHINE_ARCH}" in 157 armeb) machine=armeb-unknown ;; 158 arm*) machine=arm-unknown ;; 159 sh3el) machine=shl-unknown ;; 160 sh3eb) machine=sh-unknown ;; 161 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 137 # Determine the machine/vendor (is the vendor relevant). 138 case "${UNAME_MACHINE}" in 139 amiga) machine=m68k-unknown ;; 140 arm32) machine=arm-unknown ;; 141 atari*) machine=m68k-atari ;; 142 sun3*) machine=m68k-sun ;; 143 mac68k) machine=m68k-apple ;; 144 macppc) machine=powerpc-apple ;; 145 hp3[0-9][05]) machine=m68k-hp ;; 146 ibmrt|romp-ibm) machine=romp-ibm ;; 147 *) machine=${UNAME_MACHINE}-unknown ;; 162 148 esac 163 149 # The Operating System including object format, if it has switched 164 150 # to ELF recently, or will in the future. 165 case "${UNAME_MACHINE_ARCH}" in 166 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 167 eval $set_cc_for_build 151 case "${UNAME_MACHINE}" in 152 i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k) 168 153 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 169 154 | grep __ELF__ >/dev/null … … 181 166 esac 182 167 # The OS release 183 # Debian GNU/NetBSD machines have a different userland, and 184 # thus, need a distinct triplet. However, they do not need 185 # kernel version information, so it can be replaced with a 186 # suitable tag, in the style of linux-gnu. 187 case "${UNAME_VERSION}" in 188 Debian*) 189 release='-gnu' 190 ;; 191 *) 192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 193 ;; 194 esac 168 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 195 169 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 196 170 # contains redundant information, the shorter form: … … 198 172 echo "${machine}-${os}${release}" 199 173 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 cats:OpenBSD:*:*)207 echo arm-unknown-openbsd${UNAME_RELEASE}208 exit 0 ;;209 hp300:OpenBSD:*:*)210 echo m68k-unknown-openbsd${UNAME_RELEASE}211 exit 0 ;;212 luna88k:OpenBSD:*:*)213 echo m88k-unknown-openbsd${UNAME_RELEASE}214 exit 0 ;;215 mac68k:OpenBSD:*:*)216 echo m68k-unknown-openbsd${UNAME_RELEASE}217 exit 0 ;;218 macppc:OpenBSD:*:*)219 echo powerpc-unknown-openbsd${UNAME_RELEASE}220 exit 0 ;;221 mvme68k:OpenBSD:*:*)222 echo m68k-unknown-openbsd${UNAME_RELEASE}223 exit 0 ;;224 mvme88k:OpenBSD:*:*)225 echo m88k-unknown-openbsd${UNAME_RELEASE}226 exit 0 ;;227 mvmeppc:OpenBSD:*:*)228 echo powerpc-unknown-openbsd${UNAME_RELEASE}229 exit 0 ;;230 sgi:OpenBSD:*:*)231 echo mips64-unknown-openbsd${UNAME_RELEASE}232 exit 0 ;;233 sun3:OpenBSD:*:*)234 echo m68k-unknown-openbsd${UNAME_RELEASE}235 exit 0 ;;236 *:OpenBSD:*:*)237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}238 exit 0 ;;239 *:ekkoBSD:*:*)240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}241 exit 0 ;;242 macppc:MirBSD:*:*)243 echo powerppc-unknown-mirbsd${UNAME_RELEASE}244 exit 0 ;;245 *:MirBSD:*:*)246 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}247 exit 0 ;;248 174 alpha:OSF1:*:*) 249 case $UNAME_RELEASE in 250 *4.0) 175 if test $UNAME_RELEASE = "V4.0"; then 251 176 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 252 ;; 253 *5.*) 254 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 255 ;; 256 esac 257 # According to Compaq, /usr/sbin/psrinfo has been available on 258 # OSF/1 and Tru64 systems produced since 1995. I hope that 259 # covers most systems running today. This code pipes the CPU 260 # types through head -n 1, so we only detect the type of CPU 0. 261 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 262 case "$ALPHA_CPU_TYPE" in 263 "EV4 (21064)") 264 UNAME_MACHINE="alpha" ;; 265 "EV4.5 (21064)") 266 UNAME_MACHINE="alpha" ;; 267 "LCA4 (21066/21068)") 268 UNAME_MACHINE="alpha" ;; 269 "EV5 (21164)") 270 UNAME_MACHINE="alphaev5" ;; 271 "EV5.6 (21164A)") 272 UNAME_MACHINE="alphaev56" ;; 273 "EV5.6 (21164PC)") 274 UNAME_MACHINE="alphapca56" ;; 275 "EV5.7 (21164PC)") 276 UNAME_MACHINE="alphapca57" ;; 277 "EV6 (21264)") 278 UNAME_MACHINE="alphaev6" ;; 279 "EV6.7 (21264A)") 280 UNAME_MACHINE="alphaev67" ;; 281 "EV6.8CB (21264C)") 282 UNAME_MACHINE="alphaev68" ;; 283 "EV6.8AL (21264B)") 284 UNAME_MACHINE="alphaev68" ;; 285 "EV6.8CX (21264D)") 286 UNAME_MACHINE="alphaev68" ;; 287 "EV6.9A (21264/EV69A)") 288 UNAME_MACHINE="alphaev69" ;; 289 "EV7 (21364)") 290 UNAME_MACHINE="alphaev7" ;; 291 "EV7.9 (21364A)") 292 UNAME_MACHINE="alphaev79" ;; 293 esac 294 # A Pn.n version is a patched version. 177 fi 295 178 # A Vn.n version is a released version. 296 179 # A Tn.n version is a released field test version. 297 180 # A Xn.n version is an unreleased experimental baselevel. 298 181 # 1.2 uses "1.2" for uname -r. 299 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 182 cat <<EOF >$dummy.s 183 .data 184 \$Lformat: 185 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 186 187 .text 188 .globl main 189 .align 4 190 .ent main 191 main: 192 .frame \$30,16,\$26,0 193 ldgp \$29,0(\$27) 194 .prologue 1 195 .long 0x47e03d80 # implver \$0 196 lda \$2,-1 197 .long 0x47e20c21 # amask \$2,\$1 198 lda \$16,\$Lformat 199 mov \$0,\$17 200 not \$1,\$18 201 jsr \$26,printf 202 ldgp \$29,0(\$26) 203 mov 0,\$16 204 jsr \$26,exit 205 .end main 206 EOF 207 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 208 if test "$?" = 0 ; then 209 case `./$dummy` in 210 0-0) 211 UNAME_MACHINE="alpha" 212 ;; 213 1-0) 214 UNAME_MACHINE="alphaev5" 215 ;; 216 1-1) 217 UNAME_MACHINE="alphaev56" 218 ;; 219 1-101) 220 UNAME_MACHINE="alphapca56" 221 ;; 222 2-303) 223 UNAME_MACHINE="alphaev6" 224 ;; 225 2-307) 226 UNAME_MACHINE="alphaev67" 227 ;; 228 esac 229 fi 230 rm -f $dummy.s $dummy 231 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 300 232 exit 0 ;; 301 233 Alpha\ *:Windows_NT*:*) … … 311 243 echo m68k-unknown-sysv4 312 244 exit 0;; 245 amiga:OpenBSD:*:*) 246 echo m68k-unknown-openbsd${UNAME_RELEASE} 247 exit 0 ;; 313 248 *:[Aa]miga[Oo][Ss]:*:*) 314 249 echo ${UNAME_MACHINE}-unknown-amigaos 315 250 exit 0 ;; 316 *:[Mm]orph[Oo][Ss]:*:*) 317 echo ${UNAME_MACHINE}-unknown-morphos 251 arc64:OpenBSD:*:*) 252 echo mips64el-unknown-openbsd${UNAME_RELEASE} 253 exit 0 ;; 254 arc:OpenBSD:*:*) 255 echo mipsel-unknown-openbsd${UNAME_RELEASE} 256 exit 0 ;; 257 hkmips:OpenBSD:*:*) 258 echo mips-unknown-openbsd${UNAME_RELEASE} 259 exit 0 ;; 260 pmax:OpenBSD:*:*) 261 echo mipsel-unknown-openbsd${UNAME_RELEASE} 262 exit 0 ;; 263 sgi:OpenBSD:*:*) 264 echo mips-unknown-openbsd${UNAME_RELEASE} 265 exit 0 ;; 266 wgrisc:OpenBSD:*:*) 267 echo mipsel-unknown-openbsd${UNAME_RELEASE} 318 268 exit 0 ;; 319 269 *:OS/390:*:*) 320 270 echo i370-ibm-openedition 321 exit 0 ;;322 *:z/VM:*:*)323 echo s390-ibm-zvmoe324 exit 0 ;;325 *:OS400:*:*)326 echo powerpc-ibm-os400327 271 exit 0 ;; 328 272 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 343 287 echo pyramid-pyramid-svr4 344 288 exit 0 ;; 345 DRS?6000:unix:4.0:6*)346 echo sparc-icl-nx6347 exit 0 ;;348 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)349 case `/usr/bin/uname -p` in350 sparc) echo sparc-icl-nx7 && exit 0 ;;351 esac ;;352 289 sun4H:SunOS:5.*:*) 353 290 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` … … 378 315 exit 0 ;; 379 316 sun*:*:4.2BSD:*) 380 UNAME_RELEASE=`( sed 1q/etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`317 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 381 318 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 382 319 case "`/bin/arch`" in … … 391 328 aushp:SunOS:*:*) 392 329 echo sparc-auspex-sunos${UNAME_RELEASE} 330 exit 0 ;; 331 atari*:OpenBSD:*:*) 332 echo m68k-unknown-openbsd${UNAME_RELEASE} 393 333 exit 0 ;; 394 334 # The situation for MiNT is a little confusing. The machine name … … 418 358 echo m68k-unknown-mint${UNAME_RELEASE} 419 359 exit 0 ;; 420 m68k:machten:*:*) 421 echo m68k-apple-machten${UNAME_RELEASE} 360 sun3*:OpenBSD:*:*) 361 echo m68k-unknown-openbsd${UNAME_RELEASE} 362 exit 0 ;; 363 mac68k:OpenBSD:*:*) 364 echo m68k-unknown-openbsd${UNAME_RELEASE} 365 exit 0 ;; 366 mvme68k:OpenBSD:*:*) 367 echo m68k-unknown-openbsd${UNAME_RELEASE} 368 exit 0 ;; 369 mvme88k:OpenBSD:*:*) 370 echo m88k-unknown-openbsd${UNAME_RELEASE} 422 371 exit 0 ;; 423 372 powerpc:machten:*:*) … … 437 386 exit 0 ;; 438 387 mips:*:*:UMIPS | mips:*:*:RISCos) 439 eval $set_cc_for_build440 388 sed 's/^ //' << EOF >$dummy.c 441 389 #ifdef __cplusplus … … 459 407 } 460 408 EOF 461 $CC_FOR_BUILD -o $dummy $dummy.c \ 462 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 463 && exit 0 409 $CC_FOR_BUILD $dummy.c -o $dummy \ 410 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 411 && rm -f $dummy.c $dummy && exit 0 412 rm -f $dummy.c $dummy 464 413 echo mips-mips-riscos${UNAME_RELEASE} 465 414 exit 0 ;; 466 415 Motorola:PowerMAX_OS:*:*) 467 416 echo powerpc-motorola-powermax 468 exit 0 ;;469 Motorola:*:4.3:PL8-*)470 echo powerpc-harris-powermax471 exit 0 ;;472 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)473 echo powerpc-harris-powermax474 417 exit 0 ;; 475 418 Night_Hawk:Power_UNIX:*:*) … … 533 476 *:AIX:2:3) 534 477 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 535 eval $set_cc_for_build536 478 sed 's/^ //' << EOF >$dummy.c 537 479 #include <sys/systemcfg.h> … … 545 487 } 546 488 EOF 547 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 489 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 490 rm -f $dummy.c $dummy 548 491 echo rs6000-ibm-aix3.2.5 549 492 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then … … 554 497 exit 0 ;; 555 498 *:AIX:*:[45]) 556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q| awk '{ print $1 }'`499 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` 557 500 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 558 501 IBM_ARCH=rs6000 … … 594 537 9000/[34]?? ) HP_ARCH=m68k ;; 595 538 9000/[678][0-9][0-9]) 596 if [ -x /usr/bin/getconf ]; then 597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 539 case "${HPUX_REV}" in 540 11.[0-9][0-9]) 541 if [ -x /usr/bin/getconf ]; then 542 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 598 543 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 599 544 case "${sc_cpu_version}" in … … 604 549 32) HP_ARCH="hppa2.0n" ;; 605 550 64) HP_ARCH="hppa2.0w" ;; 606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20607 551 esac ;; 608 552 esac 609 fi 610 if [ "${HP_ARCH}" = "" ]; then 611 eval $set_cc_for_build 612 553 fi ;; 554 esac 555 if [ "${HP_ARCH}" = "" ]; then 556 sed 's/^ //' << EOF >$dummy.c 613 557 614 558 #define _HPUX_SOURCE … … 643 587 } 644 588 EOF 645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 646 test -z "$HP_ARCH" && HP_ARCH=hppa 647 fi ;; 589 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 590 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 591 rm -f $dummy.c $dummy 592 fi ;; 648 593 esac 649 if [ ${HP_ARCH} = "hppa2.0w" ]650 then651 # avoid double evaluation of $set_cc_for_build652 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build653 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null654 then655 HP_ARCH="hppa2.0w"656 else657 HP_ARCH="hppa64"658 fi659 fi660 594 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 661 595 exit 0 ;; … … 665 599 exit 0 ;; 666 600 3050*:HI-UX:*:*) 667 eval $set_cc_for_build668 601 sed 's/^ //' << EOF >$dummy.c 669 602 #include <unistd.h> … … 691 624 } 692 625 EOF 693 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 626 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 627 rm -f $dummy.c $dummy 694 628 echo unknown-hitachi-hiuxwe2 695 629 exit 0 ;; … … 700 634 echo hppa1.0-hp-bsd 701 635 exit 0 ;; 702 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)636 *9??*:MPE/iX:*:*) 703 637 echo hppa1.0-hp-mpeix 704 638 exit 0 ;; … … 719 653 echo hppa1.1-hp-lites 720 654 exit 0 ;; 655 hppa*:OpenBSD:*:*) 656 echo hppa-unknown-openbsd 657 exit 0 ;; 721 658 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 722 659 echo c1-convex-bsd … … 737 674 echo c4-convex-bsd 738 675 exit 0 ;; 676 CRAY*X-MP:*:*:*) 677 echo xmp-cray-unicos 678 exit 0 ;; 739 679 CRAY*Y-MP:*:*:*) 740 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'680 echo ymp-cray-unicos${UNAME_RELEASE} 741 681 exit 0 ;; 742 682 CRAY*[A-Z]90:*:*:*) 743 683 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 744 684 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 745 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 746 -e 's/\.[^.]*$/.X/' 685 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ 747 686 exit 0 ;; 748 687 CRAY*TS:*:*:*) 749 688 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 750 689 exit 0 ;; 690 CRAY*T3D:*:*:*) 691 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 692 exit 0 ;; 751 693 CRAY*T3E:*:*:*) 752 694 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' … … 755 697 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 756 698 exit 0 ;; 757 *:UNICOS/mp:*:*)758 echo cray nv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'759 699 CRAY-2:*:*:*) 700 echo cray2-cray-unicos 701 exit 0 ;; 760 702 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 761 703 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 764 706 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 765 707 exit 0 ;; 766 5000:UNIX_System_V:4.*:*) 767 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 768 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 769 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 708 hp300:OpenBSD:*:*) 709 echo m68k-unknown-openbsd${UNAME_RELEASE} 770 710 exit 0 ;; 771 711 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) … … 781 721 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 782 722 exit 0 ;; 723 *:OpenBSD:*:*) 724 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 725 exit 0 ;; 783 726 i*:CYGWIN*:*) 784 727 echo ${UNAME_MACHINE}-pc-cygwin … … 790 733 echo ${UNAME_MACHINE}-pc-pw32 791 734 exit 0 ;; 792 x86:Interix*:[34]*)793 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'794 exit 0 ;; 795 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)796 echo i${UNAME_MACHINE}-pc-mks735 i*:P4W*:*) 736 echo ${UNAME_MACHINE}-pc-p4w 737 exit 0 ;; 738 i*:MSYS*:*) 739 echo ${UNAME_MACHINE}-pc-msys 797 740 exit 0 ;; 798 741 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) … … 800 743 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 801 744 # UNAME_MACHINE based on the output of uname instead of i386? 802 echo i 586-pc-interix745 echo i386-pc-interix 803 746 exit 0 ;; 804 747 i*:UWIN*:*) 805 748 echo ${UNAME_MACHINE}-pc-uwin 806 749 exit 0 ;; 807 amd64:CYGWIN*:*:*)808 echo x86_64-unknown-cygwin809 exit 0 ;;810 750 p*:CYGWIN*:*) 811 751 echo powerpcle-unknown-cygwin … … 815 755 exit 0 ;; 816 756 *:GNU:*:*) 817 # the GNU system818 757 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 819 exit 0 ;;820 *:GNU/*:*:*)821 # other systems with GNU libc and userland822 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu823 758 exit 0 ;; 824 759 i*86:Minix:*:*) … … 828 763 echo ${UNAME_MACHINE}-unknown-linux-gnu 829 764 exit 0 ;; 830 cris:Linux:*:*)831 echo cris-axis-linux-gnu832 exit 0 ;;833 crisv32:Linux:*:*)834 echo crisv32-axis-linux-gnu835 exit 0 ;;836 frv:Linux:*:*)837 echo frv-unknown-linux-gnu838 exit 0 ;;839 765 ia64:Linux:*:*) 840 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 exit 0 ;; 842 m32r*:Linux:*:*) 843 echo ${UNAME_MACHINE}-unknown-linux-gnu 766 echo ${UNAME_MACHINE}-unknown-linux 844 767 exit 0 ;; 845 768 m68*:Linux:*:*) … … 847 770 exit 0 ;; 848 771 mips:Linux:*:*) 849 eval $set_cc_for_build 850 sed 's/^ //' << EOF >$dummy.c 851 #undef CPU 852 #undef mips 853 #undef mipsel 854 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 855 CPU=mipsel 856 #else 857 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 858 CPU=mips 859 #else 860 CPU= 861 #endif 862 #endif 772 cat >$dummy.c <<EOF 773 #ifdef __cplusplus 774 #include <stdio.h> /* for printf() prototype */ 775 int main (int argc, char *argv[]) { 776 #else 777 int main (argc, argv) int argc; char *argv[]; { 778 #endif 779 #ifdef __MIPSEB__ 780 printf ("%s-unknown-linux-gnu\n", argv[1]); 781 #endif 782 #ifdef __MIPSEL__ 783 printf ("%sel-unknown-linux-gnu\n", argv[1]); 784 #endif 785 return 0; 786 } 863 787 EOF 864 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 865 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 866 ;; 867 mips64:Linux:*:*) 868 eval $set_cc_for_build 869 sed 's/^ //' << EOF >$dummy.c 870 #undef CPU 871 #undef mips64 872 #undef mips64el 873 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 874 CPU=mips64el 875 #else 876 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 877 CPU=mips64 878 #else 879 CPU= 880 #endif 881 #endif 882 EOF 883 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 884 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 788 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0 789 rm -f $dummy.c $dummy 885 790 ;; 886 791 ppc:Linux:*:*) 887 echo powerpc-unknown-linux-gnu 888 exit 0 ;; 889 ppc64:Linux:*:*) 890 echo powerpc64-unknown-linux-gnu 792 # Determine Lib Version 793 cat >$dummy.c <<EOF 794 #include <features.h> 795 #if defined(__GLIBC__) 796 extern char __libc_version[]; 797 extern char __libc_release[]; 798 #endif 799 main(argc, argv) 800 int argc; 801 char *argv[]; 802 { 803 #if defined(__GLIBC__) 804 printf("%s %s\n", __libc_version, __libc_release); 805 #else 806 printf("unknown\n"); 807 #endif 808 return 0; 809 } 810 EOF 811 LIBC="" 812 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null 813 if test "$?" = 0 ; then 814 ./$dummy | grep 1\.99 > /dev/null 815 if test "$?" = 0 ; then LIBC="libc1" ; fi 816 fi 817 rm -f $dummy.c $dummy 818 echo powerpc-unknown-linux-gnu${LIBC} 891 819 exit 0 ;; 892 820 alpha:Linux:*:*) 893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 894 EV5) UNAME_MACHINE=alphaev5 ;; 895 EV56) UNAME_MACHINE=alphaev56 ;; 896 PCA56) UNAME_MACHINE=alphapca56 ;; 897 PCA57) UNAME_MACHINE=alphapca56 ;; 898 EV6) UNAME_MACHINE=alphaev6 ;; 899 EV67) UNAME_MACHINE=alphaev67 ;; 900 EV68*) UNAME_MACHINE=alphaev68 ;; 901 esac 902 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 903 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 821 cat <<EOF >$dummy.s 822 .data 823 \$Lformat: 824 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 825 .text 826 .globl main 827 .align 4 828 .ent main 829 main: 830 .frame \$30,16,\$26,0 831 ldgp \$29,0(\$27) 832 .prologue 1 833 .long 0x47e03d80 # implver \$0 834 lda \$2,-1 835 .long 0x47e20c21 # amask \$2,\$1 836 lda \$16,\$Lformat 837 mov \$0,\$17 838 not \$1,\$18 839 jsr \$26,printf 840 ldgp \$29,0(\$26) 841 mov 0,\$16 842 jsr \$26,exit 843 .end main 844 EOF 845 LIBC="" 846 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 847 if test "$?" = 0 ; then 848 case `./$dummy` in 849 0-0) UNAME_MACHINE="alpha" ;; 850 1-0) UNAME_MACHINE="alphaev5" ;; 851 1-1) UNAME_MACHINE="alphaev56" ;; 852 1-101) UNAME_MACHINE="alphapca56" ;; 853 2-303) UNAME_MACHINE="alphaev6" ;; 854 2-307) UNAME_MACHINE="alphaev67" ;; 855 esac 856 objdump --private-headers $dummy | \ 857 grep ld.so.1 > /dev/null 858 if test "$?" = 0 ; then 859 LIBC="libc1" 860 fi 861 fi 862 rm -f $dummy.s $dummy 904 863 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 905 864 exit 0 ;; … … 918 877 echo ${UNAME_MACHINE}-ibm-linux 919 878 exit 0 ;; 920 sh64*:Linux:*:*)921 echo ${UNAME_MACHINE}-unknown-linux-gnu922 exit 0 ;;923 879 sh*:Linux:*:*) 924 880 echo ${UNAME_MACHINE}-unknown-linux-gnu … … 934 890 # first see if it will tell us. cd to the root directory to prevent 935 891 # problems with other programs or directories called `ld' in the path. 936 # Set LC_ALL=C to ensure ld outputs messages in English. 937 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 892 ld_supported_targets=`cd /; ld --help 2>&1 \ 938 893 | sed -ne '/supported targets:/!d 939 894 s/[ ][ ]*/ /g … … 947 902 a.out-i386-linux) 948 903 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 949 exit 0 ;; 904 exit 0 ;; 950 905 coff-i386) 951 906 echo "${UNAME_MACHINE}-pc-linux-gnucoff" … … 958 913 esac 959 914 # Determine whether the default compiler is a.out or elf 960 eval $set_cc_for_build961 sed 's/^ //' << EOF >$dummy.c 962 #include <features.h> 963 #ifdef __ELF__ 964 # ifdef __GLIBC__965 # if __GLIBC__ >= 2 966 LIBC=gnu967 # else 968 LIBC=gnulibc1 969 # endif 970 # else 971 LIBC=gnulibc1 972 # endif 973 #else 974 #ifdef __INTEL_COMPILER 975 LIBC=gnu 976 #else 977 LIBC=gnuaout 978 #endif 979 #endif 980 #ifdef __dietlibc__ 981 LIBC=dietlibc 982 #endif 915 cat >$dummy.c <<EOF 916 #include <features.h> 917 #ifdef __cplusplus 918 #include <stdio.h> /* for printf() prototype */ 919 int main (int argc, char *argv[]) { 920 #else 921 int main (argc, argv) int argc; char *argv[]; { 922 #endif 923 #ifdef __ELF__ 924 # ifdef __GLIBC__ 925 # if __GLIBC__ >= 2 926 printf ("%s-pc-linux-gnu\n", argv[1]); 927 # else 928 printf ("%s-pc-linux-gnulibc1\n", argv[1]); 929 # endif 930 # else 931 printf ("%s-pc-linux-gnulibc1\n", argv[1]); 932 # endif 933 #else 934 printf ("%s-pc-linux-gnuaout\n", argv[1]); 935 #endif 936 return 0; 937 } 983 938 EOF 984 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`985 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0939 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0 940 rm -f $dummy.c $dummy 986 941 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 987 942 ;; 943 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 944 # are messed up and put the nodename in both sysname and nodename. 988 945 i*86:DYNIX/ptx:4*:*) 989 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.990 # earlier versions are messed up and put the nodename in both991 # sysname and nodename.992 946 echo i386-sequent-sysv4 993 947 exit 0 ;; … … 1000 954 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1001 955 exit 0 ;; 1002 i*86:OS/2:*:*)1003 # If we were able to find `uname', then EMX Unix compatibility1004 # is probably installed.1005 echo ${UNAME_MACHINE}-pc-os2-emx1006 exit 0 ;;1007 i*86:XTS-300:*:STOP)1008 echo ${UNAME_MACHINE}-unknown-stop1009 exit 0 ;;1010 i*86:atheos:*:*)1011 echo ${UNAME_MACHINE}-unknown-atheos1012 exit 0 ;;1013 i*86:syllable:*:*)1014 echo ${UNAME_MACHINE}-pc-syllable1015 exit 0 ;;1016 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)1017 echo i386-unknown-lynxos${UNAME_RELEASE}1018 exit 0 ;;1019 i*86:*DOS:*:*)1020 echo ${UNAME_MACHINE}-pc-msdosdjgpp1021 exit 0 ;;1022 956 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1023 957 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` … … 1029 963 exit 0 ;; 1030 964 i*86:*:5:[78]*) 1031 case `/bin/uname -X | grep "^Machine"` in965 case `/bin/uname -X | grep ^Machine` in 1032 966 *486*) UNAME_MACHINE=i486 ;; 1033 *Pentium ) UNAME_MACHINE=i586 ;;967 *Pentium*) UNAME_MACHINE=i586 ;; 1034 968 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1035 969 esac … … 1041 975 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1042 976 elif /bin/uname -X 2>/dev/null >/dev/null ; then 1043 UNAME_REL=`(/bin/uname -X| grep Release|sed -e 's/.*= //')`1044 (/bin/uname -X| grep i80486 >/dev/null) && UNAME_MACHINE=i4861045 (/bin/uname -X| grep '^Machine.*Pentium' >/dev/null) \977 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 978 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 979 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 1046 980 && UNAME_MACHINE=i586 1047 (/bin/uname -X| grep '^Machine.*Pent *II' >/dev/null) \981 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 1048 982 && UNAME_MACHINE=i686 1049 (/bin/uname -X| grep '^Machine.*Pentium Pro' >/dev/null) \983 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 1050 984 && UNAME_MACHINE=i686 1051 985 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL … … 1053 987 echo ${UNAME_MACHINE}-pc-sysv32 1054 988 fi 989 exit 0 ;; 990 i*86:*DOS:*:*) 991 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1055 992 exit 0 ;; 1056 993 pc:*:*:*) … … 1077 1014 echo m68010-convergent-sysv 1078 1015 exit 0 ;; 1079 mc68k:UNIX:SYSTEM5:3.51m) 1080 echo m68k-convergent-sysv 1081 exit 0 ;; 1082 M680?0:D-NIX:5.3:*) 1083 echo m68k-diab-dnix 1084 exit 0 ;; 1085 M68*:*:R3V[5678]*:*) 1016 M68*:*:R3V[567]*:*) 1086 1017 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1087 3[34 5]??:*: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)1018 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) 1088 1019 OS_REL='' 1089 1020 test -r /etc/.relid \ … … 1102 1033 echo m68k-atari-sysv4 1103 1034 exit 0 ;; 1035 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1036 echo i386-unknown-lynxos${UNAME_RELEASE} 1037 exit 0 ;; 1104 1038 TSUNAMI:LynxOS:2.*:*) 1105 1039 echo sparc-unknown-lynxos${UNAME_RELEASE} … … 1128 1062 fi 1129 1063 exit 0 ;; 1130 PENTIUM: *:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1131 # says <Richard.M.Bartel@ccMail.Census.GOV>1064 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1065 # says <Richard.M.Bartel@ccMail.Census.GOV> 1132 1066 echo i586-unisys-sysv4 1133 1067 exit 0 ;; … … 1140 1074 # From seanf@swdc.stratus.com. 1141 1075 echo i860-stratus-sysv4 1142 exit 0 ;;1143 *:VOS:*:*)1144 # From Paul.Green@stratus.com.1145 echo hppa1.1-stratus-vos1146 1076 exit 0 ;; 1147 1077 mc68*:A/UX:*:*) … … 1173 1103 echo sx5-nec-superux${UNAME_RELEASE} 1174 1104 exit 0 ;; 1175 SX-6:SUPER-UX:*:*)1176 echo sx6-nec-superux${UNAME_RELEASE}1177 exit 0 ;;1178 1105 Power*:Rhapsody:*:*) 1179 1106 echo powerpc-apple-rhapsody${UNAME_RELEASE} … … 1183 1110 exit 0 ;; 1184 1111 *:Darwin:*:*) 1185 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1186 case $UNAME_PROCESSOR in 1187 *86) UNAME_PROCESSOR=i686 ;; 1188 unknown) UNAME_PROCESSOR=powerpc ;; 1189 esac 1190 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1112 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1191 1113 exit 0 ;; 1192 1114 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1193 UNAME_PROCESSOR=`uname -p` 1194 if test "$UNAME_PROCESSOR" = "x86"; then 1195 UNAME_PROCESSOR=i386 1115 if test "${UNAME_MACHINE}" = "x86pc"; then 1196 1116 UNAME_MACHINE=pc 1197 1117 fi 1198 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1118 echo `uname -p`-${UNAME_MACHINE}-nto-qnx 1199 1119 exit 0 ;; 1200 1120 *:QNX:*:4*) 1201 1121 echo i386-pc-qnx 1202 1122 exit 0 ;; 1203 NSE-?:NONSTOP_KERNEL:*:*) 1204 echo nse-tandem-nsk${UNAME_RELEASE} 1205 exit 0 ;; 1206 NSR-?:NONSTOP_KERNEL:*:*) 1123 NSR-[KW]:NONSTOP_KERNEL:*:*) 1207 1124 echo nsr-tandem-nsk${UNAME_RELEASE} 1208 1125 exit 0 ;; … … 1227 1144 echo ${UNAME_MACHINE}-unknown-plan9 1228 1145 exit 0 ;; 1146 i*86:OS/2:*:*) 1147 # If we were able to find `uname', then EMX Unix compatibility 1148 # is probably installed. 1149 echo ${UNAME_MACHINE}-pc-os2-emx 1150 exit 0 ;; 1229 1151 *:TOPS-10:*:*) 1230 1152 echo pdp10-unknown-tops10 … … 1245 1167 echo pdp10-unknown-its 1246 1168 exit 0 ;; 1247 SEI:*:*:SEIUX)1248 echo mips-sei-seiux${UNAME_RELEASE}1249 exit 0 ;;1250 *:DragonFly:*:*)1251 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1252 exit 0 ;;1253 *:*VMS:*:*)1254 UNAME_MACHINE=`(uname -p) 2>/dev/null`1255 case "${UNAME_MACHINE}" in1256 A*) echo alpha-dec-vms && exit 0 ;;1257 I*) echo ia64-dec-vms && exit 0 ;;1258 V*) echo vax-dec-vms && exit 0 ;;1259 esac ;;1260 *:XENIX:*:SysV)1261 echo i386-pc-xenix1262 exit 0 ;;1263 1169 esac 1264 1170 … … 1266 1172 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1267 1173 1268 eval $set_cc_for_build1269 1174 cat >$dummy.c <<EOF 1270 1175 #ifdef _SEQUENT_ … … 1381 1286 EOF 1382 1287 1383 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1288 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1289 rm -f $dummy.c $dummy 1384 1290 1385 1291 # Apollos put the system type in the environment. -
branches/shared_lib/config.sub
r5750 r7187 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005Free Software Foundation, Inc.5 6 timestamp='200 5-02-10'3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 6 timestamp='2001-06-08' 7 7 8 8 # This file is (in principle) common to ALL GNU software. … … 30 30 # the same distribution terms that you use for the rest of that program. 31 31 32 # Please send patches to <config-patches@gnu.org>. Submit a context 33 # diff and a properly formatted ChangeLog entry. 32 # Please send patches to <config-patches@gnu.org>. 34 33 # 35 34 # Configuration subroutine to validate and canonicalize a configuration type. … … 71 70 GNU config.sub ($timestamp) 72 71 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 , 2002, 2003, 2004, 200572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74 73 Free Software Foundation, Inc. 75 74 … … 119 118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 119 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*) 120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) 123 121 os=-$maybe_os 124 122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 146 144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 147 145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 148 -apple | -axis | -knuth | -cray)146 -apple | -axis) 149 147 os= 150 148 basic_machine=$1 … … 226 224 # Recognize the basic CPU types without company name. 227 225 # Some are omitted here because they have special meanings below. 228 1750a | 580 \ 229 | a29k \ 230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \ 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 234 | c4x | clipper \ 235 | d10v | d30v | dlx | dsp16xx \ 236 | fr30 | frv \ 237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 238 | i370 | i860 | i960 | ia64 \ 239 | ip2k | iq2000 \ 240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 241 | mips | mipsbe | mipseb | mipsel | mipsle \ 242 | mips16 \ 243 | mips64 | mips64el \ 244 | mips64vr | mips64vrel \ 245 | mips64orion | mips64orionel \ 246 | mips64vr4100 | mips64vr4100el \ 247 | mips64vr4300 | mips64vr4300el \ 248 | mips64vr5000 | mips64vr5000el \ 249 | mipsisa32 | mipsisa32el \ 250 | mipsisa32r2 | mipsisa32r2el \ 251 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \ 253 | mipsisa64sb1 | mipsisa64sb1el \ 254 | mipsisa64sr71k | mipsisa64sr71kel \ 255 | mipstx39 | mipstx39el \ 256 | mn10200 | mn10300 \ 257 | msp430 \ 258 | ns16k | ns32k \ 259 | openrisc | or32 \ 260 | pdp10 | pdp11 | pj | pjl \ 261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 262 | pyramid \ 263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 264 | sh64 | sh64le \ 265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 266 | strongarm \ 267 | tahoe | thumb | tic4x | tic80 | tron \ 268 | v850 | v850e \ 269 | we32k \ 270 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 271 | z8k) 226 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ 227 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ 228 | pyramid | mn10200 | mn10300 | tron | a29k \ 229 | 580 | i960 | h8300 \ 230 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ 231 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 232 | hppa64 \ 233 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 234 | alphaev6[78] \ 235 | we32k | ns16k | clipper | i370 | sh | sh[34] \ 236 | powerpc | powerpcle \ 237 | 1750a | dsp16xx | pdp10 | pdp11 \ 238 | mips16 | mips64 | mipsel | mips64el \ 239 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 240 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 241 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ 242 | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ 243 | v850 | c4x \ 244 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ 245 | pj | pjl | h8500 | z8k) 272 246 basic_machine=$basic_machine-unknown 273 247 ;; … … 292 266 ;; 293 267 # Recognize the basic CPU types with company name. 294 580-* \ 295 | a29k-* \ 296 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 297 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 300 | avr-* \ 301 | bs2000-* \ 302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303 | clipper-* | craynv-* | cydra-* \ 304 | d10v-* | d30v-* | dlx-* \ 305 | elxsi-* \ 306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 307 | h8300-* | h8500-* \ 308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 309 | i*86-* | i860-* | i960-* | ia64-* \ 310 | ip2k-* | iq2000-* \ 311 | m32r-* | m32rle-* \ 312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 313 | m88110-* | m88k-* | maxq-* | mcore-* \ 314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 315 | mips16-* \ 316 | mips64-* | mips64el-* \ 317 | mips64vr-* | mips64vrel-* \ 318 | mips64orion-* | mips64orionel-* \ 319 | mips64vr4100-* | mips64vr4100el-* \ 320 | mips64vr4300-* | mips64vr4300el-* \ 321 | mips64vr5000-* | mips64vr5000el-* \ 322 | mipsisa32-* | mipsisa32el-* \ 323 | mipsisa32r2-* | mipsisa32r2el-* \ 324 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \ 326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 328 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \ 330 | msp430-* \ 331 | none-* | np1-* | ns16k-* | ns32k-* \ 332 | orion-* \ 333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 334 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 335 | pyramid-* \ 336 | romp-* | rs6000-* \ 337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 341 | tahoe-* | thumb-* \ 342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 343 | tron-* \ 344 | v850-* | v850e-* | vax-* \ 345 | we32k-* \ 346 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 347 | xstormy16-* | xtensa-* \ 348 | ymp-* \ 349 | z8k-*) 268 # FIXME: clean up the formatting here. 269 vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 270 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ 271 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ 272 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 273 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 274 | xmp-* | ymp-* \ 275 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ 276 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 277 | hppa2.0n-* | hppa64-* \ 278 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ 279 | alphaev6[78]-* \ 280 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 281 | clipper-* | orion-* \ 282 | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \ 283 | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ 284 | mips16-* | mips64-* | mipsel-* \ 285 | mips64el-* | mips64orion-* | mips64orionel-* \ 286 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 287 | mipstx39-* | mipstx39el-* | mcore-* \ 288 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ 289 | [cjt]90-* \ 290 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 291 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ 292 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) 350 293 ;; 351 294 # Recognize the various machine names and aliases which stand … … 365 308 os=-udi 366 309 ;; 367 abacus)368 basic_machine=abacus-unknown369 ;;370 310 adobe68k) 371 311 basic_machine=m68010-adobe … … 382 322 os=-bsd 383 323 ;; 384 amd64)385 basic_machine=x86_64-pc386 ;;387 amd64-*)388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`389 ;;390 324 amdahl) 391 325 basic_machine=580-amdahl … … 419 353 os=-dynix 420 354 ;; 421 c90)422 basic_machine=c90-cray423 os=-unicos424 ;;425 355 convex-c1) 426 356 basic_machine=c1-convex … … 443 373 os=-bsd 444 374 ;; 445 cray | j90)446 basic_machine= j90-cray375 cray | ymp) 376 basic_machine=ymp-cray 447 377 os=-unicos 448 378 ;; 449 cray nv)450 basic_machine=cray nv-cray451 os=-unicos mp452 ;; 453 cr16c)454 basic_machine= cr16c-unknown455 os=- elf379 cray2) 380 basic_machine=cray2-cray 381 os=-unicos 382 ;; 383 [cjt]90) 384 basic_machine=${basic_machine}-cray 385 os=-unicos 456 386 ;; 457 387 crds | unos) 458 388 basic_machine=m68k-crds 459 389 ;; 460 crisv32 | crisv32-* | etraxfs*)461 basic_machine=crisv32-axis462 ;;463 390 cris | cris-* | etrax*) 464 391 basic_machine=cris-axis 465 392 ;; 466 c rx)467 basic_machine= crx-unknown468 os=- elf393 cygwin*) 394 basic_machine=i586-pc 395 os=-cygwin 469 396 ;; 470 397 da30 | da30-*) … … 473 400 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 474 401 basic_machine=mips-dec 475 ;;476 decsystem10* | dec10*)477 basic_machine=pdp10-dec478 os=-tops10479 ;;480 decsystem20* | dec20*)481 basic_machine=pdp10-dec482 os=-tops20483 402 ;; 484 403 delta | 3300 | motorola-3300 | motorola-delta \ … … 489 408 basic_machine=m88k-motorola 490 409 os=-sysv3 491 ;;492 djgpp)493 basic_machine=i586-pc494 os=-msdosdjgpp495 410 ;; 496 411 dpx20 | dpx20-*) … … 655 570 os=-sysv 656 571 ;; 657 mingw 32)658 basic_machine=i 386-pc659 os=-mingw 32572 mingw*) 573 basic_machine=i586-pc 574 os=-mingw 660 575 ;; 661 576 miniframe) … … 666 581 os=-mint 667 582 ;; 583 mipsel*-linux*) 584 basic_machine=mipsel-unknown 585 os=-linux-gnu 586 ;; 587 mips*-linux*) 588 basic_machine=mips-unknown 589 os=-linux-gnu 590 ;; 668 591 mips3*-*) 669 592 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` … … 671 594 mips3*) 672 595 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 596 ;; 597 mmix*) 598 basic_machine=mmix-knuth 599 os=-mmixware 673 600 ;; 674 601 monitor) … … 676 603 os=-coff 677 604 ;; 678 morphos)679 basic_machine=powerpc-unknown680 os=-morphos681 ;;682 605 msdos) 683 606 basic_machine=i386-pc 684 607 os=-msdos 608 ;; 609 msys) 610 basic_machine=i386-pc 611 os=-msys 685 612 ;; 686 613 mvs) … … 759 686 os=-proelf 760 687 ;; 761 or32 | or32-*)762 basic_machine=or32-unknown763 os=-coff764 ;;765 os400)766 basic_machine=powerpc-ibm767 os=-os400768 ;;769 688 OSE68000 | ose68000) 770 689 basic_machine=m68000-ericsson … … 775 694 os=-os68k 776 695 ;; 696 p4w) 697 basic_machine=i586-pc 698 os=-p4w 699 ;; 777 700 pa-hitachi) 778 701 basic_machine=hppa1.1-hitachi … … 789 712 basic_machine=m68k-tti 790 713 ;; 791 714 pc532 | pc532-*) 792 715 basic_machine=ns32k-pc532 793 716 ;; 794 pentium | p5 | k5 | k6 | nexgen | viac3)717 pentium | p5 | k5 | k6 | nexgen) 795 718 basic_machine=i586-pc 796 719 ;; 797 pentiumpro | p6 | 6x86 | athlon | athlon_*)720 pentiumpro | p6 | 6x86 | athlon) 798 721 basic_machine=i686-pc 799 722 ;; 800 pentiumii | pentium2 | pentiumiii | pentium3)723 pentiumii | pentium2) 801 724 basic_machine=i686-pc 802 725 ;; 803 pentium4) 804 basic_machine=i786-pc 805 ;; 806 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 726 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 807 727 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 808 728 ;; … … 810 730 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 811 731 ;; 812 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)732 pentiumii-* | pentium2-*) 813 733 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 814 ;;815 pentium4-*)816 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`817 734 ;; 818 735 pn) … … 822 739 ;; 823 740 ppc) basic_machine=powerpc-unknown 824 741 ;; 825 742 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 826 743 ;; 827 744 ppcle | powerpclittle | ppc-le | powerpc-little) 828 745 basic_machine=powerpcle-unknown 829 746 ;; 830 747 ppcle-* | powerpclittle-*) 831 748 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 832 ;;833 ppc64) basic_machine=powerpc64-unknown834 ;;835 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`836 ;;837 ppc64le | powerpc64little | ppc64-le | powerpc64-little)838 basic_machine=powerpc64le-unknown839 ;;840 ppc64le-* | powerpc64little-*)841 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`842 749 ;; 843 750 ps2) … … 858 765 basic_machine=romp-ibm 859 766 ;; 860 s390 | s390-*)861 basic_machine=s390-ibm862 ;;863 s390x | s390x-*)864 basic_machine=s390x-ibm865 ;;866 767 sa29200) 867 768 basic_machine=a29k-amd 868 769 os=-udi 869 770 ;; 870 sb1)871 basic_machine=mipsisa64sb1-unknown872 ;;873 sb1el)874 basic_machine=mipsisa64sb1el-unknown875 ;;876 sei)877 basic_machine=mips-sei878 os=-seiux879 ;;880 771 sequent) 881 772 basic_machine=i386-sequent … … 885 776 os=-hms 886 777 ;; 887 sh64) 888 basic_machine=sh64-unknown 889 ;; 890 sparclite-wrs | simso-wrs) 778 sparclite-wrs) 891 779 basic_machine=sparclite-wrs 892 780 os=-vxworks … … 955 843 ;; 956 844 t3e) 957 basic_machine=alphaev5-cray 958 os=-unicos 959 ;; 960 t90) 961 basic_machine=t90-cray 845 basic_machine=t3e-cray 962 846 os=-unicos 963 847 ;; … … 966 850 os=-coff 967 851 ;; 968 tic55x | c55x*)969 basic_machine=tic55x-unknown970 os=-coff971 ;;972 tic6x | c6x*)973 basic_machine=tic6x-unknown974 os=-coff975 ;;976 852 tx39) 977 853 basic_machine=mipstx39-unknown … … 980 856 basic_machine=mipstx39el-unknown 981 857 ;; 982 toad1)983 basic_machine=pdp10-xkl984 os=-tops20985 ;;986 858 tower | tower-32) 987 859 basic_machine=m68k-ncr 988 ;;989 tpf)990 basic_machine=s390x-ibm991 os=-tpf992 860 ;; 993 861 udi29k) … … 1012 880 ;; 1013 881 vpp*|vx|vx-*) 1014 1015 882 basic_machine=f301-fujitsu 883 ;; 1016 884 vxworks960) 1017 885 basic_machine=i960-wrs … … 1034 902 os=-proelf 1035 903 ;; 1036 xbox) 1037 basic_machine=i686-pc 1038 os=-mingw32 1039 ;; 1040 xps | xps100) 904 windows32) 905 basic_machine=i386-pc 906 os=-windows32-msvcrt 907 ;; 908 xmp) 909 basic_machine=xmp-cray 910 os=-unicos 911 ;; 912 xps | xps100) 1041 913 basic_machine=xps100-honeywell 1042 ;;1043 ymp)1044 basic_machine=ymp-cray1045 os=-unicos1046 914 ;; 1047 915 z8k-*-coff) … … 1065 933 basic_machine=hppa1.1-oki 1066 934 ;; 935 mips) 936 if [ x$os = x-linux-gnu ]; then 937 basic_machine=mips-unknown 938 else 939 basic_machine=mips-mips 940 fi 941 ;; 1067 942 romp) 1068 943 basic_machine=romp-ibm 1069 ;;1070 mmix)1071 basic_machine=mmix-knuth1072 944 ;; 1073 945 rs6000) … … 1087 959 basic_machine=we32k-att 1088 960 ;; 1089 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)961 sh3 | sh4) 1090 962 basic_machine=sh-unknown 1091 963 ;; 1092 sh64) 1093 basic_machine=sh64-unknown 1094 ;; 1095 sparc | sparcv8 | sparcv9 | sparcv9b) 964 sparc | sparcv9 | sparcv9b) 1096 965 basic_machine=sparc-sun 1097 966 ;; 1098 967 cydra) 1099 968 basic_machine=cydra-cydrome 1100 969 ;; … … 1110 979 pmac | pmac-mpw) 1111 980 basic_machine=powerpc-apple 981 ;; 982 c4x*) 983 basic_machine=c4x-none 984 os=-coff 1112 985 ;; 1113 986 *-unknown) … … 1166 1039 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1167 1040 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1168 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1169 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1170 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1041 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1042 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1171 1043 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1172 1044 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1173 1045 | -chorusos* | -chorusrdb* \ 1174 | -cygwin* | - pe* | -psos* | -moss* | -proelf* | -rtems* \1175 | -mingw 32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \1176 | -interix* | -uwin* | - mks* | -rhapsody* | -darwin* | -opened* \1046 | -cygwin* | -msys* | -p4w* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1047 | -mingw* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1048 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1177 1049 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1178 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1179 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1180 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1181 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1050 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) 1182 1051 # Remember, each alternative MUST END IN *, to match a version number. 1183 1052 ;; … … 1191 1060 esac 1192 1061 ;; 1193 -nto-qnx*)1194 ;;1195 1062 -nto*) 1196 os= `echo $os | sed -e 's|nto|nto-qnx|'`1063 os=-nto-qnx 1197 1064 ;; 1198 1065 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ … … 1203 1070 os=`echo $os | sed -e 's|mac|macos|'` 1204 1071 ;; 1205 -linux-dietlibc)1206 os=-linux-dietlibc1207 ;;1208 1072 -linux*) 1209 1073 os=`echo $os | sed -e 's|linux|linux-gnu|'` … … 1218 1082 os=-openedition 1219 1083 ;; 1220 -os400*)1221 os=-os4001222 ;;1223 1084 -wince*) 1224 1085 os=-wince … … 1239 1100 os=-aos 1240 1101 ;; 1241 -atheos*)1242 os=-atheos1243 ;;1244 -syllable*)1245 os=-syllable1246 ;;1247 1102 -386bsd) 1248 1103 os=-bsd … … 1251 1106 os=-sysv 1252 1107 ;; 1253 -nova*)1254 os=-rtmk-nova1255 ;;1256 1108 -ns2 ) 1257 1109 os=-nextstep2 1258 1110 ;; 1259 1111 -nsk*) … … 1267 1119 os=-sysv4 1268 1120 ;; 1269 -tpf*)1270 os=-tpf1271 ;;1272 1121 -triton*) 1273 1122 os=-sysv3 … … 1297 1146 os=-xenix 1298 1147 ;; 1299 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1300 os=-mint 1301 ;; 1302 -aros*) 1303 os=-aros 1304 ;; 1305 -kaos*) 1306 os=-kaos 1307 ;; 1308 -zvmoe) 1309 os=-zvmoe 1148 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1149 os=-mint 1310 1150 ;; 1311 1151 -none) … … 1340 1180 os=-aout 1341 1181 ;; 1342 c4x-* | tic4x-*)1343 os=-coff1344 ;;1345 # This must come before the *-dec entry.1346 1182 pdp10-*) 1347 1183 os=-tops20 1348 1184 ;; 1349 1185 pdp11-*) 1350 1186 os=-none 1351 1187 ;; … … 1374 1210 os=-elf 1375 1211 ;; 1376 or32-*)1377 os=-coff1378 ;;1379 1212 *-tti) # must be before sparc entry or we get the wrong os. 1380 1213 os=-sysv3 … … 1389 1222 os=-aix 1390 1223 ;; 1391 *-knuth)1392 os=-mmixware1393 ;;1394 1224 *-wec) 1395 1225 os=-proelf … … 1443 1273 os=-nextstep3 1444 1274 ;; 1445 1275 *-gould) 1446 1276 os=-sysv 1447 1277 ;; 1448 1278 *-highlevel) 1449 1279 os=-bsd 1450 1280 ;; … … 1452 1282 os=-bsd 1453 1283 ;; 1454 1284 *-sgi) 1455 1285 os=-irix 1456 1286 ;; 1457 1287 *-siemens) 1458 1288 os=-sysv4 1459 1289 ;; … … 1524 1354 vendor=ibm 1525 1355 ;; 1526 -os400*)1527 vendor=ibm1528 ;;1529 1356 -ptx*) 1530 1357 vendor=sequent 1531 1358 ;; 1532 -tpf*) 1533 vendor=ibm 1534 ;; 1535 -vxsim* | -vxworks* | -windiss*) 1359 -vxsim* | -vxworks*) 1536 1360 vendor=wrs 1537 1361 ;; … … 1547 1371 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1548 1372 vendor=atari 1549 ;;1550 -vos*)1551 vendor=stratus1552 1373 ;; 1553 1374 esac -
branches/shared_lib/configure.ac
r7183 r7187 42 42 ######################### 43 43 AC_PROG_CXX 44 AC_LIBLTDL_INSTALLABLE45 44 AC_LIBTOOL_DLOPEN 46 45 AC_PROG_LIBTOOL … … 645 644 src/lib/parser/tinyxml/Makefile 646 645 src/lib/parser/ini_parser/Makefile 646 src/lib/libltdl/Makefile 647 647 src/util/Makefile 648 648 src/world_entities/Makefile -
branches/shared_lib/src/lib/BuildLibs.am
r7178 r7187 15 15 $(LIB_PREFIX)/parser/tinyxml/libtinyxml.a \ 16 16 $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \ 17 $(LIB_PREFIX)/libltdl/libltdl.a \ 17 18 $(LIB_PREFIX)/shell/libORXshell.a \ 18 19 $(LIB_PREFIX)/math/libORXmath.a -
branches/shared_lib/src/lib/Makefile.am
r7165 r7187 48 48 shell \ 49 49 gui \ 50 libltdl \ 50 51 . -
branches/shared_lib/src/orxonox.cc
r7181 r7187 54 54 55 55 #include "load_param_description.h" 56 #include "dynamic_loader.h" 56 57 57 58 #include "network_manager.h" … … 290 291 } 291 292 292 #include "dynamic_loader.h"293 #include <dlfcn.h>294 295 293 /** 296 294 * initializes and loads resource files -
branches/shared_lib/src/util/Makefile.am
r7174 r7187 3 3 4 4 noinst_LIBRARIES = libORXutils.a 5 6 INCLUDES = $(LTDLINCL) 5 7 6 8 -
branches/shared_lib/src/util/loading/dynamic_loader.h
r7175 r7187 8 8 9 9 #include "factory.h" 10 #include <ltdl.h>10 #include "lib/libltdl/ltdl.h" 11 11 12 12 #include <string> -
branches/shared_lib/src/util/loading/resource_manager.cc
r7174 r7187 1049 1049 { 1050 1050 char cwd[1024]; 1051 char* err no= getcwd(cwd, 1024);1052 if (err no== 0)1051 char* errorCode = getcwd(cwd, 1024); 1052 if (errorCode == 0) 1053 1053 return NULL; 1054 1054
Note: See TracChangeset
for help on using the changeset viewer.