source:
scripts/untested/blfs-patches/alsa-tools-1.0.8-update_ac3dec_config_foo-1.patch@
a8f17cf
Last change on this file since a8f17cf was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 48.3 KB |
-
ac3dec/config.guess
diff -uNr alsa-tools-1.0.8/ac3dec/config.guess alsa-tools-1.0.8-mod/ac3dec/config.guess
old new 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, 2003Free Software Foundation, Inc.3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 5 6 timestamp='200 3-07-02'6 timestamp='2001-09-04' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it 9 9 # under the terms of the GNU General Public License as published by … … 24 24 # configuration script generated by Autoconf, you may include it under 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 32 31 # config.sub. If it succeeds, it prints the system name on stdout, and … … 88 87 exit 1 89 88 fi 90 89 91 trap 'exit 1' 1 2 1592 90 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. 91 dummy=dummy-$$ 92 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 97 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 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 98 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 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 117 103 CC_FOR_BUILD="$c"; break ; 118 104 fi ; 119 105 done ; 106 rm -f $dummy.c $dummy.o $dummy.rel ; 120 107 if test x"$CC_FOR_BUILD" = x ; then 121 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 116 # (ghazi@noc.rutgers.edu 1994-08-24) … … 136 123 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 137 124 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 125 139 case "${UNAME_MACHINE}" in140 i?86)141 test -z "$VENDOR" && VENDOR=pc142 ;;143 *)144 test -z "$VENDOR" && VENDOR=unknown145 ;;146 esac147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse148 149 126 # Note: order is significant - the case branches are not exclusive. 150 127 151 128 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 152 129 *:NetBSD:*:*) 153 # Net BSD(nbsd) targets should (where applicable) match one or130 # Netbsd (nbsd) targets should (where applicable) match one or 154 131 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 155 132 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 156 133 # switched to ELF, *-*-netbsd* would select the old 157 134 # object file format. This provides both forward 158 135 # compatibility and a consistent mechanism for selecting the 159 136 # object file format. 160 # 161 # Note: NetBSD doesn't particularly care about the vendor 162 # portion of the name. We always set it to "unknown". 163 sysctl="sysctl -n hw.machine_arch" 164 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 165 /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 166 case "${UNAME_MACHINE_ARCH}" in 167 armeb) machine=armeb-unknown ;; 168 arm*) machine=arm-unknown ;; 169 sh3el) machine=shl-unknown ;; 170 sh3eb) machine=sh-unknown ;; 171 *) 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 ;; 172 148 esac 173 149 # The Operating System including object format, if it has switched 174 150 # to ELF recently, or will in the future. 175 case "${UNAME_MACHINE _ARCH}" in176 arm*|i386|m68k|ns32k|sh3*|sparc|vax)151 case "${UNAME_MACHINE}" in 152 i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k) 177 153 eval $set_cc_for_build 178 154 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 179 155 | grep __ELF__ >/dev/null … … 190 166 ;; 191 167 esac 192 168 # The OS release 193 # Debian GNU/NetBSD machines have a different userland, and 194 # thus, need a distinct triplet. However, they do not need 195 # kernel version information, so it can be replaced with a 196 # suitable tag, in the style of linux-gnu. 197 case "${UNAME_VERSION}" in 198 Debian*) 199 release='-gnu' 200 ;; 201 *) 202 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 203 ;; 204 esac 169 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 205 170 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 206 171 # contains redundant information, the shorter form: 207 172 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 208 173 echo "${machine}-${os}${release}" 209 174 exit 0 ;; 210 amiga:OpenBSD:*:*)211 echo m68k-unknown-openbsd${UNAME_RELEASE}212 exit 0 ;;213 arc:OpenBSD:*:*)214 echo mipsel-unknown-openbsd${UNAME_RELEASE}215 exit 0 ;;216 hp300:OpenBSD:*:*)217 echo m68k-unknown-openbsd${UNAME_RELEASE}218 exit 0 ;;219 mac68k:OpenBSD:*:*)220 echo m68k-unknown-openbsd${UNAME_RELEASE}221 exit 0 ;;222 macppc:OpenBSD:*:*)223 echo powerpc-unknown-openbsd${UNAME_RELEASE}224 exit 0 ;;225 mvme68k:OpenBSD:*:*)226 echo m68k-unknown-openbsd${UNAME_RELEASE}227 exit 0 ;;228 mvme88k:OpenBSD:*:*)229 echo m88k-unknown-openbsd${UNAME_RELEASE}230 exit 0 ;;231 mvmeppc:OpenBSD:*:*)232 echo powerpc-unknown-openbsd${UNAME_RELEASE}233 exit 0 ;;234 pmax:OpenBSD:*:*)235 echo mipsel-unknown-openbsd${UNAME_RELEASE}236 exit 0 ;;237 sgi:OpenBSD:*:*)238 echo mipseb-unknown-openbsd${UNAME_RELEASE}239 exit 0 ;;240 sun3:OpenBSD:*:*)241 echo m68k-unknown-openbsd${UNAME_RELEASE}242 exit 0 ;;243 wgrisc:OpenBSD:*:*)244 echo mipsel-unknown-openbsd${UNAME_RELEASE}245 exit 0 ;;246 *:OpenBSD:*:*)247 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}248 exit 0 ;;249 175 alpha:OSF1:*:*) 250 176 if test $UNAME_RELEASE = "V4.0"; then 251 177 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 252 178 fi 253 # According to Compaq, /usr/sbin/psrinfo has been available on254 # OSF/1 and Tru64 systems produced since 1995. I hope that255 # covers most systems running today. This code pipes the CPU256 # types through head -n 1, so we only detect the type of CPU 0.257 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`258 case "$ALPHA_CPU_TYPE" in259 "EV4 (21064)")260 UNAME_MACHINE="alpha" ;;261 "EV4.5 (21064)")262 UNAME_MACHINE="alpha" ;;263 "LCA4 (21066/21068)")264 UNAME_MACHINE="alpha" ;;265 "EV5 (21164)")266 UNAME_MACHINE="alphaev5" ;;267 "EV5.6 (21164A)")268 UNAME_MACHINE="alphaev56" ;;269 "EV5.6 (21164PC)")270 UNAME_MACHINE="alphapca56" ;;271 "EV5.7 (21164PC)")272 UNAME_MACHINE="alphapca57" ;;273 "EV6 (21264)")274 UNAME_MACHINE="alphaev6" ;;275 "EV6.7 (21264A)")276 UNAME_MACHINE="alphaev67" ;;277 "EV6.8CB (21264C)")278 UNAME_MACHINE="alphaev68" ;;279 "EV6.8AL (21264B)")280 UNAME_MACHINE="alphaev68" ;;281 "EV6.8CX (21264D)")282 UNAME_MACHINE="alphaev68" ;;283 "EV6.9A (21264/EV69A)")284 UNAME_MACHINE="alphaev69" ;;285 "EV7 (21364)")286 UNAME_MACHINE="alphaev7" ;;287 "EV7.9 (21364A)")288 UNAME_MACHINE="alphaev79" ;;289 esac290 179 # A Vn.n version is a released version. 291 180 # A Tn.n version is a released field test version. 292 181 # A Xn.n version is an unreleased experimental baselevel. 293 182 # 1.2 uses "1.2" for uname -r. 183 cat <<EOF >$dummy.s 184 .data 185 \$Lformat: 186 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 187 188 .text 189 .globl main 190 .align 4 191 .ent main 192 main: 193 .frame \$30,16,\$26,0 194 ldgp \$29,0(\$27) 195 .prologue 1 196 .long 0x47e03d80 # implver \$0 197 lda \$2,-1 198 .long 0x47e20c21 # amask \$2,\$1 199 lda \$16,\$Lformat 200 mov \$0,\$17 201 not \$1,\$18 202 jsr \$26,printf 203 ldgp \$29,0(\$26) 204 mov 0,\$16 205 jsr \$26,exit 206 .end main 207 EOF 208 eval $set_cc_for_build 209 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 210 if test "$?" = 0 ; then 211 case `./$dummy` in 212 0-0) 213 UNAME_MACHINE="alpha" 214 ;; 215 1-0) 216 UNAME_MACHINE="alphaev5" 217 ;; 218 1-1) 219 UNAME_MACHINE="alphaev56" 220 ;; 221 1-101) 222 UNAME_MACHINE="alphapca56" 223 ;; 224 2-303) 225 UNAME_MACHINE="alphaev6" 226 ;; 227 2-307) 228 UNAME_MACHINE="alphaev67" 229 ;; 230 2-1307) 231 UNAME_MACHINE="alphaev68" 232 ;; 233 esac 234 fi 235 rm -f $dummy.s $dummy 294 236 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 295 237 exit 0 ;; 296 Alpha*:OpenVMS:*:*)297 echo alpha-hp-vms298 exit 0 ;;299 238 Alpha\ *:Windows_NT*:*) 300 239 # How do we know it's Interix rather than the generic POSIX subsystem? 301 240 # Should we change UNAME_MACHINE based on the output of uname instead … … 308 247 Amiga*:UNIX_System_V:4.0:*) 309 248 echo m68k-unknown-sysv4 310 249 exit 0;; 250 amiga:OpenBSD:*:*) 251 echo m68k-unknown-openbsd${UNAME_RELEASE} 252 exit 0 ;; 311 253 *:[Aa]miga[Oo][Ss]:*:*) 312 254 echo ${UNAME_MACHINE}-unknown-amigaos 313 255 exit 0 ;; 314 *:[Mm]orph[Oo][Ss]:*:*) 315 echo ${UNAME_MACHINE}-unknown-morphos 256 arc64:OpenBSD:*:*) 257 echo mips64el-unknown-openbsd${UNAME_RELEASE} 258 exit 0 ;; 259 arc:OpenBSD:*:*) 260 echo mipsel-unknown-openbsd${UNAME_RELEASE} 261 exit 0 ;; 262 hkmips:OpenBSD:*:*) 263 echo mips-unknown-openbsd${UNAME_RELEASE} 264 exit 0 ;; 265 pmax:OpenBSD:*:*) 266 echo mipsel-unknown-openbsd${UNAME_RELEASE} 267 exit 0 ;; 268 sgi:OpenBSD:*:*) 269 echo mips-unknown-openbsd${UNAME_RELEASE} 270 exit 0 ;; 271 wgrisc:OpenBSD:*:*) 272 echo mipsel-unknown-openbsd${UNAME_RELEASE} 316 273 exit 0 ;; 317 274 *:OS/390:*:*) 318 275 echo i370-ibm-openedition … … 334 291 NILE*:*:*:dcosx) 335 292 echo pyramid-pyramid-svr4 336 293 exit 0 ;; 337 DRS?6000:unix:4.0:6*)338 echo sparc-icl-nx6339 exit 0 ;;340 DRS?6000:UNIX_SV:4.2*:7*)341 case `/usr/bin/uname -p` in342 sparc) echo sparc-icl-nx7 && exit 0 ;;343 esac ;;344 294 sun4H:SunOS:5.*:*) 345 295 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 346 296 exit 0 ;; … … 369 319 echo m68k-sun-sunos${UNAME_RELEASE} 370 320 exit 0 ;; 371 321 sun*:*:4.2BSD:*) 372 UNAME_RELEASE=`( sed 1q/etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`322 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 373 323 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 374 324 case "`/bin/arch`" in 375 325 sun3) … … 383 333 aushp:SunOS:*:*) 384 334 echo sparc-auspex-sunos${UNAME_RELEASE} 385 335 exit 0 ;; 336 sparc*:NetBSD:*) 337 echo `uname -p`-unknown-netbsd${UNAME_RELEASE} 338 exit 0 ;; 339 atari*:OpenBSD:*:*) 340 echo m68k-unknown-openbsd${UNAME_RELEASE} 341 exit 0 ;; 386 342 # The situation for MiNT is a little confusing. The machine name 387 343 # can be virtually everything (everything which is not 388 344 # "atarist" or "atariste" at least should have a processor … … 409 365 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 410 366 echo m68k-unknown-mint${UNAME_RELEASE} 411 367 exit 0 ;; 368 sun3*:OpenBSD:*:*) 369 echo m68k-unknown-openbsd${UNAME_RELEASE} 370 exit 0 ;; 371 mac68k:OpenBSD:*:*) 372 echo m68k-unknown-openbsd${UNAME_RELEASE} 373 exit 0 ;; 374 mvme68k:OpenBSD:*:*) 375 echo m68k-unknown-openbsd${UNAME_RELEASE} 376 exit 0 ;; 377 mvme88k:OpenBSD:*:*) 378 echo m88k-unknown-openbsd${UNAME_RELEASE} 379 exit 0 ;; 412 380 powerpc:machten:*:*) 413 381 echo powerpc-apple-machten${UNAME_RELEASE} 414 382 exit 0 ;; … … 447 415 exit (-1); 448 416 } 449 417 EOF 450 $CC_FOR_BUILD -o $dummy $dummy.c \ 451 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 452 && exit 0 418 $CC_FOR_BUILD $dummy.c -o $dummy \ 419 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 420 && rm -f $dummy.c $dummy && exit 0 421 rm -f $dummy.c $dummy 453 422 echo mips-mips-riscos${UNAME_RELEASE} 454 423 exit 0 ;; 455 424 Motorola:PowerMAX_OS:*:*) 456 425 echo powerpc-motorola-powermax 457 426 exit 0 ;; 458 Motorola:*:4.3:PL8-*)459 echo powerpc-harris-powermax460 exit 0 ;;461 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)462 echo powerpc-harris-powermax463 exit 0 ;;464 427 Night_Hawk:Power_UNIX:*:*) 465 428 echo powerpc-harris-powerunix 466 429 exit 0 ;; … … 533 496 exit(0); 534 497 } 535 498 EOF 536 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 499 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 500 rm -f $dummy.c $dummy 537 501 echo rs6000-ibm-aix3.2.5 538 502 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 539 503 echo rs6000-ibm-aix3.2.4 … … 542 506 fi 543 507 exit 0 ;; 544 508 *:AIX:*:[45]) 545 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q| awk '{ print $1 }'`509 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` 546 510 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 547 511 IBM_ARCH=rs6000 548 512 else … … 582 546 9000/31? ) HP_ARCH=m68000 ;; 583 547 9000/[34]?? ) HP_ARCH=m68k ;; 584 548 9000/[678][0-9][0-9]) 585 if [ -x /usr/bin/getconf ]; then 586 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 549 case "${HPUX_REV}" in 550 11.[0-9][0-9]) 551 if [ -x /usr/bin/getconf ]; then 552 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 587 553 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 588 554 case "${sc_cpu_version}" in 589 555 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 … … 592 558 case "${sc_kernel_bits}" in 593 559 32) HP_ARCH="hppa2.0n" ;; 594 560 64) HP_ARCH="hppa2.0w" ;; 595 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20596 561 esac ;; 597 562 esac 598 fi 599 if [ "${HP_ARCH}" = "" ]; then 600 eval $set_cc_for_build 601 sed 's/^ //' << EOF >$dummy.c 563 fi ;; 564 esac 565 if [ "${HP_ARCH}" = "" ]; then 566 eval $set_cc_for_build 567 sed 's/^ //' << EOF >$dummy.c 602 568 603 569 #define _HPUX_SOURCE 604 570 #include <stdlib.h> … … 631 597 exit (0); 632 598 } 633 599 EOF 634 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 635 test -z "$HP_ARCH" && HP_ARCH=hppa 636 fi ;; 600 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 601 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 602 rm -f $dummy.c $dummy 603 fi ;; 637 604 esac 638 if [ ${HP_ARCH} = "hppa2.0w" ]639 then640 # avoid double evaluation of $set_cc_for_build641 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null643 then644 HP_ARCH="hppa2.0w"645 else646 HP_ARCH="hppa64"647 fi648 fi649 605 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 650 606 exit 0 ;; 651 607 ia64:HP-UX:*:*) … … 679 635 exit (0); 680 636 } 681 637 EOF 682 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 638 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 639 rm -f $dummy.c $dummy 683 640 echo unknown-hitachi-hiuxwe2 684 641 exit 0 ;; 685 642 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) … … 707 664 parisc*:Lites*:*:*) 708 665 echo hppa1.1-hp-lites 709 666 exit 0 ;; 667 hppa*:OpenBSD:*:*) 668 echo hppa-unknown-openbsd 669 exit 0 ;; 710 670 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 711 671 echo c1-convex-bsd 712 672 exit 0 ;; … … 725 685 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 726 686 echo c4-convex-bsd 727 687 exit 0 ;; 688 CRAY*X-MP:*:*:*) 689 echo xmp-cray-unicos 690 exit 0 ;; 728 691 CRAY*Y-MP:*:*:*) 729 692 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 730 693 exit 0 ;; … … 737 700 CRAY*TS:*:*:*) 738 701 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 739 702 exit 0 ;; 703 CRAY*T3D:*:*:*) 704 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 705 exit 0 ;; 740 706 CRAY*T3E:*:*:*) 741 707 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 742 708 exit 0 ;; 743 709 CRAY*SV1:*:*:*) 744 710 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 745 711 exit 0 ;; 746 *:UNICOS/mp:*:*)747 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'748 712 CRAY-2:*:*:*) 713 echo cray2-cray-unicos 714 exit 0 ;; 749 715 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 750 716 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 751 717 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 752 718 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 753 719 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 754 720 exit 0 ;; 721 hp300:OpenBSD:*:*) 722 echo m68k-unknown-openbsd${UNAME_RELEASE} 723 exit 0 ;; 755 724 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 756 725 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 757 726 exit 0 ;; … … 761 730 *:BSD/OS:*:*) 762 731 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 763 732 exit 0 ;; 764 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 765 # Determine whether the default compiler uses glibc. 766 eval $set_cc_for_build 767 sed 's/^ //' << EOF >$dummy.c 768 #include <features.h> 769 #if __GLIBC__ >= 2 770 LIBC=gnu 771 #else 772 LIBC= 773 #endif 774 EOF 775 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 776 # GNU/FreeBSD systems have a "k" prefix to indicate we are using 777 # FreeBSD's kernel, but not the complete OS. 778 case ${LIBC} in gnu) kernel_only='k' ;; esac 779 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 733 *:FreeBSD:*:*) 734 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 735 exit 0 ;; 736 *:OpenBSD:*:*) 737 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 780 738 exit 0 ;; 781 739 i*:CYGWIN*:*) 782 740 echo ${UNAME_MACHINE}-pc-cygwin … … 787 745 i*:PW*:*) 788 746 echo ${UNAME_MACHINE}-pc-pw32 789 747 exit 0 ;; 790 x86:Interix*:[34]*)791 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'792 exit 0 ;;793 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)794 echo i${UNAME_MACHINE}-pc-mks795 exit 0 ;;796 748 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 797 749 # How do we know it's Interix rather than the generic POSIX subsystem? 798 750 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 799 751 # UNAME_MACHINE based on the output of uname instead of i386? 800 echo i 586-pc-interix752 echo i386-pc-interix 801 753 exit 0 ;; 802 754 i*:UWIN*:*) 803 755 echo ${UNAME_MACHINE}-pc-uwin … … 815 767 echo ${UNAME_MACHINE}-pc-minix 816 768 exit 0 ;; 817 769 arm*:Linux:*:*) 818 echo ${UNAME_MACHINE}-${VENDOR}-linux 819 exit 0 ;; 820 cris:Linux:*:*) 821 echo cris-axis-linux 770 echo ${UNAME_MACHINE}-unknown-linux-gnu 822 771 exit 0 ;; 823 772 ia64:Linux:*:*) 824 echo ${UNAME_MACHINE}- ${VENDOR}-linux773 echo ${UNAME_MACHINE}-unknown-linux 825 774 exit 0 ;; 826 775 m68*:Linux:*:*) 827 echo ${UNAME_MACHINE}- ${VENDOR}-linux776 echo ${UNAME_MACHINE}-unknown-linux-gnu 828 777 exit 0 ;; 829 778 mips:Linux:*:*) 830 eval $set_cc_for_build 831 sed 's/^ //' << EOF >$dummy.c 832 #undef CPU 833 #undef mips 834 #undef mipsel 835 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 836 CPU=mipsel 837 #else 838 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 839 CPU=mips 840 #else 841 CPU= 842 #endif 843 #endif 844 EOF 845 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 846 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 847 ;; 848 mips64:Linux:*:*) 849 eval $set_cc_for_build 850 sed 's/^ //' << EOF >$dummy.c 851 #undef CPU 852 #undef mips64 853 #undef mips64el 854 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 855 CPU=mips64el 856 #else 857 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 858 CPU=mips64 859 #else 860 CPU= 861 #endif 862 #endif 863 EOF 864 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 865 test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 779 case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in 780 big) echo mips-unknown-linux-gnu && exit 0 ;; 781 little) echo mipsel-unknown-linux-gnu && exit 0 ;; 782 esac 866 783 ;; 867 784 ppc:Linux:*:*) 868 echo powerpc- ${VENDOR}-linux785 echo powerpc-unknown-linux-gnu 869 786 exit 0 ;; 870 787 ppc64:Linux:*:*) 871 echo powerpc64- ${VENDOR}-linux788 echo powerpc64-unknown-linux-gnu 872 789 exit 0 ;; 873 790 alpha:Linux:*:*) 874 791 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in … … 881 798 EV68*) UNAME_MACHINE=alphaev68 ;; 882 799 esac 883 800 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 884 if test "$?" = 0 ; then LIBC=" -libc1" ; else LIBC="" ; fi885 echo ${UNAME_MACHINE}- ${VENDOR}-linux${LIBC}801 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 802 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 886 803 exit 0 ;; 887 804 parisc:Linux:*:* | hppa:Linux:*:*) 888 805 # Look for CPU level 889 806 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 890 PA7*) echo hppa1.1- ${VENDOR}-linux;;891 PA8*) echo hppa2.0- ${VENDOR}-linux;;892 *) echo hppa- ${VENDOR}-linux;;807 PA7*) echo hppa1.1-unknown-linux-gnu ;; 808 PA8*) echo hppa2.0-unknown-linux-gnu ;; 809 *) echo hppa-unknown-linux-gnu ;; 893 810 esac 894 811 exit 0 ;; 895 812 parisc64:Linux:*:* | hppa64:Linux:*:*) 896 echo hppa64- ${VENDOR}-linux813 echo hppa64-unknown-linux-gnu 897 814 exit 0 ;; 898 815 s390:Linux:*:* | s390x:Linux:*:*) 899 816 echo ${UNAME_MACHINE}-ibm-linux 900 817 exit 0 ;; 901 sh64*:Linux:*:*)902 echo ${UNAME_MACHINE}-${VENDOR}-linux903 exit 0 ;;904 818 sh*:Linux:*:*) 905 echo ${UNAME_MACHINE}- ${VENDOR}-linux819 echo ${UNAME_MACHINE}-unknown-linux-gnu 906 820 exit 0 ;; 907 821 sparc:Linux:*:* | sparc64:Linux:*:*) 908 echo ${UNAME_MACHINE}- ${VENDOR}-linux822 echo ${UNAME_MACHINE}-unknown-linux-gnu 909 823 exit 0 ;; 910 824 x86_64:Linux:*:*) 911 echo x86_64- ${VENDOR}-linux825 echo x86_64-unknown-linux-gnu 912 826 exit 0 ;; 913 827 i*86:Linux:*:*) 914 828 # The BFD linker knows what the default object file format is, so 915 829 # first see if it will tell us. cd to the root directory to prevent 916 830 # problems with other programs or directories called `ld' in the path. 917 # Set LC_ALL=C to ensure ld outputs messages in English. 918 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 831 ld_supported_targets=`cd /; ld --help 2>&1 \ 919 832 | sed -ne '/supported targets:/!d 920 833 s/[ ][ ]*/ /g 921 834 s/.*supported targets: *// … … 923 836 p'` 924 837 case "$ld_supported_targets" in 925 838 elf32-i386) 926 TENTATIVE="${UNAME_MACHINE}- ${VENDOR}-linux"839 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 927 840 ;; 928 841 a.out-i386-linux) 929 echo "${UNAME_MACHINE}- ${VENDOR}-linuxaout"930 exit 0 ;; 842 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 843 exit 0 ;; 931 844 coff-i386) 932 echo "${UNAME_MACHINE}- ${VENDOR}-linuxcoff"845 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 933 846 exit 0 ;; 934 847 "") 935 # Either a pre-BFD a.out linker (linux oldld) or848 # Either a pre-BFD a.out linker (linux-gnuoldld) or 936 849 # one that does not give us useful --help. 937 echo "${UNAME_MACHINE}- ${VENDOR}-linuxoldld"850 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 938 851 exit 0 ;; 939 852 esac 940 853 # Determine whether the default compiler is a.out or elf 941 854 eval $set_cc_for_build 942 sed 's/^ //' << EOF >$dummy.c 943 #include <features.h> 944 #ifdef __ELF__ 945 # ifdef __GLIBC__ 946 # if __GLIBC__ >= 2 947 LIBC=gnu 948 # else 949 LIBC=gnulibc1 950 # endif 951 # else 952 LIBC=gnulibc1 953 # endif 954 #else 955 #ifdef __INTEL_COMPILER 956 LIBC=gnu 957 #else 958 LIBC=gnuaout 959 #endif 960 #endif 855 cat >$dummy.c <<EOF 856 #include <features.h> 857 #ifdef __cplusplus 858 #include <stdio.h> /* for printf() prototype */ 859 int main (int argc, char *argv[]) { 860 #else 861 int main (argc, argv) int argc; char *argv[]; { 862 #endif 863 #ifdef __ELF__ 864 # ifdef __GLIBC__ 865 # if __GLIBC__ >= 2 866 printf ("%s-pc-linux-gnu\n", argv[1]); 867 # else 868 printf ("%s-pc-linux-gnulibc1\n", argv[1]); 869 # endif 870 # else 871 printf ("%s-pc-linux-gnulibc1\n", argv[1]); 872 # endif 873 #else 874 printf ("%s-pc-linux-gnuaout\n", argv[1]); 875 #endif 876 return 0; 877 } 961 878 EOF 962 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`963 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0879 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0 880 rm -f $dummy.c $dummy 964 881 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 965 882 ;; 966 883 i*86:DYNIX/ptx:4*:*) … … 977 894 # Use sysv4.2uw... so that sysv4* matches it. 978 895 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 979 896 exit 0 ;; 980 i*86:OS/2:*:*)981 # If we were able to find `uname', then EMX Unix compatibility982 # is probably installed.983 echo ${UNAME_MACHINE}-pc-os2-emx984 exit 0 ;;985 i*86:XTS-300:*:STOP)986 echo ${UNAME_MACHINE}-unknown-stop987 exit 0 ;;988 i*86:atheos:*:*)989 echo ${UNAME_MACHINE}-unknown-atheos990 exit 0 ;;991 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)992 echo i386-unknown-lynxos${UNAME_RELEASE}993 exit 0 ;;994 i*86:*DOS:*:*)995 echo ${UNAME_MACHINE}-pc-msdosdjgpp996 exit 0 ;;997 897 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 998 898 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 999 899 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 1015 915 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1016 916 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1017 917 elif /bin/uname -X 2>/dev/null >/dev/null ; then 1018 UNAME_REL=`(/bin/uname -X| grep Release|sed -e 's/.*= //')`1019 (/bin/uname -X| grep i80486 >/dev/null) && UNAME_MACHINE=i4861020 (/bin/uname -X| grep '^Machine.*Pentium' >/dev/null) \918 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 919 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 920 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 1021 921 && UNAME_MACHINE=i586 1022 (/bin/uname -X| grep '^Machine.*Pent *II' >/dev/null) \922 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 1023 923 && UNAME_MACHINE=i686 1024 (/bin/uname -X| grep '^Machine.*Pentium Pro' >/dev/null) \924 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 1025 925 && UNAME_MACHINE=i686 1026 926 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1027 927 else 1028 928 echo ${UNAME_MACHINE}-pc-sysv32 1029 929 fi 1030 930 exit 0 ;; 931 i*86:*DOS:*:*) 932 echo ${UNAME_MACHINE}-pc-msdosdjgpp 933 exit 0 ;; 1031 934 pc:*:*:*) 1032 935 # Left here for compatibility: 1033 936 # uname -m prints for DJGPP always 'pc', but it prints nothing about … … 1051 954 # "miniframe" 1052 955 echo m68010-convergent-sysv 1053 956 exit 0 ;; 1054 mc68k:UNIX:SYSTEM5:3.51m)1055 echo m68k-convergent-sysv1056 exit 0 ;;1057 M680?0:D-NIX:5.3:*)1058 echo m68k-diab-dnix1059 exit 0 ;;1060 957 M68*:*:R3V[567]*:*) 1061 958 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1062 3[34]??:*: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)959 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) 1063 960 OS_REL='' 1064 961 test -r /etc/.relid \ 1065 962 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` … … 1076 973 mc68030:UNIX_System_V:4.*:*) 1077 974 echo m68k-atari-sysv4 1078 975 exit 0 ;; 976 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 977 echo i386-unknown-lynxos${UNAME_RELEASE} 978 exit 0 ;; 1079 979 TSUNAMI:LynxOS:2.*:*) 1080 980 echo sparc-unknown-lynxos${UNAME_RELEASE} 1081 981 exit 0 ;; … … 1147 1047 SX-5:SUPER-UX:*:*) 1148 1048 echo sx5-nec-superux${UNAME_RELEASE} 1149 1049 exit 0 ;; 1150 SX-6:SUPER-UX:*:*)1151 echo sx6-nec-superux${UNAME_RELEASE}1152 exit 0 ;;1153 1050 Power*:Rhapsody:*:*) 1154 1051 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1155 1052 exit 0 ;; … … 1157 1054 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1158 1055 exit 0 ;; 1159 1056 *:Darwin:*:*) 1160 case `uname -p` in 1161 *86) UNAME_PROCESSOR=i686 ;; 1162 powerpc) UNAME_PROCESSOR=powerpc ;; 1163 esac 1164 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1057 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1165 1058 exit 0 ;; 1166 1059 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1167 UNAME_PROCESSOR=`uname -p` 1168 if test "$UNAME_PROCESSOR" = "x86"; then 1169 UNAME_PROCESSOR=i386 1060 if test "${UNAME_MACHINE}" = "x86pc"; then 1170 1061 UNAME_MACHINE=pc 1171 1062 fi 1172 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1063 echo `uname -p`-${UNAME_MACHINE}-nto-qnx 1173 1064 exit 0 ;; 1174 1065 *:QNX:*:4*) 1175 1066 echo i386-pc-qnx 1176 1067 exit 0 ;; 1177 NSR-[ DGKLNPTVW]:NONSTOP_KERNEL:*:*)1068 NSR-[KW]:NONSTOP_KERNEL:*:*) 1178 1069 echo nsr-tandem-nsk${UNAME_RELEASE} 1179 1070 exit 0 ;; 1180 1071 *:NonStop-UX:*:*) … … 1197 1088 fi 1198 1089 echo ${UNAME_MACHINE}-unknown-plan9 1199 1090 exit 0 ;; 1091 i*86:OS/2:*:*) 1092 # If we were able to find `uname', then EMX Unix compatibility 1093 # is probably installed. 1094 echo ${UNAME_MACHINE}-pc-os2-emx 1095 exit 0 ;; 1200 1096 *:TOPS-10:*:*) 1201 1097 echo pdp10-unknown-tops10 1202 1098 exit 0 ;; … … 1215 1111 *:ITS:*:*) 1216 1112 echo pdp10-unknown-its 1217 1113 exit 0 ;; 1218 SEI:*:*:SEIUX) 1219 echo mips-sei-seiux${UNAME_RELEASE} 1114 i*86:XTS-300:*:STOP) 1115 echo ${UNAME_MACHINE}-unknown-stop 1116 exit 0 ;; 1117 i*86:atheos:*:*) 1118 echo ${UNAME_MACHINE}-unknown-atheos 1220 1119 exit 0 ;; 1221 1120 esac 1222 1121 … … 1338 1237 } 1339 1238 EOF 1340 1239 1341 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1240 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1241 rm -f $dummy.c $dummy 1342 1242 1343 1243 # Apollos put the system type in the environment. 1344 1244 -
ac3dec/config.sub
diff -uNr alsa-tools-1.0.8/ac3dec/config.sub alsa-tools-1.0.8-mod/ac3dec/config.sub
old new 1 1 #! /bin/sh 2 # Configuration validation subroutine script, version 1.1. 3 # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. 2 # Configuration validation subroutine script. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 6 timestamp='2001-09-07' 7 4 8 # This file is (in principle) common to ALL GNU software. 5 9 # The presence of a machine in this file suggests that SOME GNU software 6 10 # can handle that machine. It does not imply ALL GNU software can. … … 25 29 # configuration script generated by Autoconf, you may include it under 26 30 # the same distribution terms that you use for the rest of that program. 27 31 32 # Please send patches to <config-patches@gnu.org>. 33 # 28 34 # Configuration subroutine to validate and canonicalize a configuration type. 29 35 # Supply the specified configuration type as an argument. 30 36 # If it is invalid, we print an error message on stderr and exit with code 1. … … 45 51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 46 52 # It is wrong to echo any other type of specification. 47 53 48 if [ x$1 = x ] 49 then 50 echo Configuration name missing. 1>&2 51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 52 echo "or $0 ALIAS" 1>&2 53 echo where ALIAS is a recognized configuration type. 1>&2 54 exit 1 55 fi 54 me=`echo "$0" | sed -e 's,.*/,,'` 56 55 57 # First pass through any local machine types. 58 case $1 in 59 *local*) 60 echo $1 61 exit 0 62 ;; 63 *) 64 ;; 56 usage="\ 57 Usage: $0 [OPTION] CPU-MFR-OPSYS 58 $0 [OPTION] ALIAS 59 60 Canonicalize a configuration name. 61 62 Operation modes: 63 -h, --help print this help, then exit 64 -t, --time-stamp print date of last modification, then exit 65 -v, --version print version number, then exit 66 67 Report bugs and patches to <config-patches@gnu.org>." 68 69 version="\ 70 GNU config.sub ($timestamp) 71 72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Free Software Foundation, Inc. 74 75 This is free software; see the source for copying conditions. There is NO 76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 77 78 help=" 79 Try \`$me --help' for more information." 80 81 # Parse command line 82 while test $# -gt 0 ; do 83 case $1 in 84 --time-stamp | --time* | -t ) 85 echo "$timestamp" ; exit 0 ;; 86 --version | -v ) 87 echo "$version" ; exit 0 ;; 88 --help | --h* | -h ) 89 echo "$usage"; exit 0 ;; 90 -- ) # Stop option processing 91 shift; break ;; 92 - ) # Use stdin as input. 93 break ;; 94 -* ) 95 echo "$me: invalid option $1$help" 96 exit 1 ;; 97 98 *local*) 99 # First pass through any local machine types. 100 echo $1 101 exit 0;; 102 103 * ) 104 break ;; 105 esac 106 done 107 108 case $# in 109 0) echo "$me: missing argument$help" >&2 110 exit 1;; 111 1) ;; 112 *) echo "$me: too many arguments$help" >&2 113 exit 1;; 65 114 esac 66 115 67 116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 68 117 # Here we must recognize all the valid KERNEL-OS combinations. 69 118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 70 119 case $maybe_os in 71 linux-*)120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) 72 121 os=-$maybe_os 73 122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 74 123 ;; … … 94 143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 95 144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 96 145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 97 -apple )146 -apple | -axis) 98 147 os= 99 148 basic_machine=$1 100 149 ;; … … 108 157 os=-vxworks 109 158 basic_machine=$1 110 159 ;; 160 -chorusos*) 161 os=-chorusos 162 basic_machine=$1 163 ;; 164 -chorusrdb) 165 os=-chorusrdb 166 basic_machine=$1 167 ;; 111 168 -hiux*) 112 169 os=-hiuxwe2 113 170 ;; … … 166 223 case $basic_machine in 167 224 # Recognize the basic CPU types without company name. 168 225 # Some are omitted here because they have special meanings below. 169 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 170 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 171 | 580 | i960 | h8300 \ 172 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 173 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ 174 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ 175 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ 176 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 177 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 178 | mips64vr5000 | miprs64vr5000el | mcore \ 179 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ 180 | thumb | d10v | fr30) 226 1750a | 580 \ 227 | a29k \ 228 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 229 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 230 | c4x | clipper \ 231 | d10v | d30v | dsp16xx \ 232 | fr30 \ 233 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 234 | i370 | i860 | i960 | ia64 \ 235 | m32r | m68000 | m68k | m88k | mcore \ 236 | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ 237 | mips64vr4100 | mips64vr4100el | mips64vr4300 \ 238 | mips64vr4300el | mips64vr5000 | mips64vr5000el \ 239 | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ 240 | mipsisa32 \ 241 | mn10200 | mn10300 \ 242 | ns16k | ns32k \ 243 | openrisc \ 244 | pdp10 | pdp11 | pj | pjl \ 245 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 246 | pyramid \ 247 | s390 | s390x \ 248 | sh | sh[34] | sh[34]eb | shbe | shle \ 249 | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \ 250 | stormy16 | strongarm \ 251 | tahoe | thumb | tic80 | tron \ 252 | v850 \ 253 | we32k \ 254 | x86 | xscale \ 255 | z8k) 181 256 basic_machine=$basic_machine-unknown 182 257 ;; 183 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) 258 m6811 | m68hc11 | m6812 | m68hc12) 259 # Motorola 68HC11/12. 260 basic_machine=$basic_machine-unknown 261 os=-none 262 ;; 263 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 184 264 ;; 185 265 186 266 # We use `pc' rather than `unknown' 187 267 # because (1) that's what they normally are, and 188 268 # (2) the word "unknown" tends to confuse beginning users. 189 i[34567]86) 190 if test -e /etc/SuSE-release ; then 191 basic_machine=$basic_machine-suse 192 os=-linux 193 else 194 basic_machine=$basic_machine-pc 195 fi 196 ;; 197 s390 | s390-suse) 198 basic_machine=s390-suse 199 ;; 200 s390-unknown) 201 basic_machine=s390-unknown 202 if test -e /etc/SuSE-release ; then 203 basic_machine=s390-suse 204 os=-linux 205 fi 206 ;; 207 s390-ibm) 208 basic_machine=s390-ibm 209 ;; 210 s390-redhat) 211 basic_machine=s390-redhat 269 i*86 | x86_64) 270 basic_machine=$basic_machine-pc 212 271 ;; 213 272 # Object if more than one company name word. 214 273 *-*-*) … … 216 275 exit 1 217 276 ;; 218 277 # Recognize the basic CPU types with company name. 219 # FIXME: clean up the formatting here. 220 vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 221 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 222 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 223 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 224 | xmp-* | ymp-* \ 225 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ 226 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ 227 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 228 | clipper-* | orion-* \ 229 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 230 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ 231 | mips64el-* | mips64orion-* | mips64orionel-* \ 232 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 233 | mipstx39-* | mipstx39el-* | mcore-* \ 234 | f301-* | armv*-* | t3e-* \ 235 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 236 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* ) 278 580-* \ 279 | a29k-* \ 280 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 281 | alphapca5[67]-* | arc-* \ 282 | arm-* | armbe-* | armle-* | armv*-* \ 283 | bs2000-* \ 284 | c[123]* | c30-* | [cjt]90-* | c54x-* \ 285 | clipper-* | cray2-* | cydra-* \ 286 | d10v-* | d30v-* \ 287 | elxsi-* \ 288 | f30[01]-* | f700-* | fr30-* | fx80-* \ 289 | h8300-* | h8500-* \ 290 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 291 | i*86-* | i860-* | i960-* | ia64-* \ 292 | m32r-* \ 293 | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \ 294 | m88110-* | m88k-* | mcore-* \ 295 | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ 296 | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ 297 | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ 298 | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ 299 | none-* | np1-* | ns16k-* | ns32k-* \ 300 | orion-* \ 301 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 302 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 303 | pyramid-* \ 304 | romp-* | rs6000-* \ 305 | s390-* | s390x-* \ 306 | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \ 307 | sparc-* | sparc64-* | sparc86x-* | sparclite-* \ 308 | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \ 309 | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ 310 | v850-* | vax-* \ 311 | we32k-* \ 312 | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \ 313 | ymp-* \ 314 | z8k-*) 237 315 ;; 238 316 # Recognize the various machine names and aliases which stand 239 317 # for a CPU type and a company and sometimes even an OS. … … 270 348 os=-sysv 271 349 ;; 272 350 amiga | amiga-*) 273 basic_machine=m68k- cbm351 basic_machine=m68k-unknown 274 352 ;; 275 353 amigaos | amigados) 276 basic_machine=m68k- cbm354 basic_machine=m68k-unknown 277 355 os=-amigaos 278 356 ;; 279 357 amigaunix | amix) 280 basic_machine=m68k- cbm358 basic_machine=m68k-unknown 281 359 os=-sysv4 282 360 ;; 283 361 apollo68) … … 324 402 basic_machine=cray2-cray 325 403 os=-unicos 326 404 ;; 327 [c tj]90-cray)328 basic_machine= c90-cray405 [cjt]90) 406 basic_machine=${basic_machine}-cray 329 407 os=-unicos 330 408 ;; 331 409 crds | unos) 332 410 basic_machine=m68k-crds 333 411 ;; 412 cris | cris-* | etrax*) 413 basic_machine=cris-axis 414 ;; 334 415 da30 | da30-*) 335 416 basic_machine=m68k-da30 336 417 ;; … … 378 459 basic_machine=tron-gmicro 379 460 os=-sysv 380 461 ;; 462 go32) 463 basic_machine=i386-pc 464 os=-go32 465 ;; 381 466 h3050r* | hiux*) 382 467 basic_machine=hppa1.1-hitachi 383 468 os=-hiuxwe2 … … 453 538 basic_machine=i370-ibm 454 539 ;; 455 540 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 456 i [34567]86v32)541 i*86v32) 457 542 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 458 543 os=-sysv32 459 544 ;; 460 i [34567]86v4*)545 i*86v4*) 461 546 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 462 547 os=-sysv4 463 548 ;; 464 i [34567]86v)549 i*86v) 465 550 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 466 551 os=-sysv 467 552 ;; 468 i [34567]86sol2)553 i*86sol2) 469 554 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 470 555 os=-solaris2 471 556 ;; … … 477 562 basic_machine=i386-unknown 478 563 os=-vsta 479 564 ;; 480 i386-go32 | go32)481 basic_machine=i386-unknown482 os=-go32483 ;;484 i386-mingw32 | mingw32)485 basic_machine=i386-unknown486 os=-mingw32487 ;;488 i386-qnx | qnx)489 basic_machine=i386-qnx490 ;;491 565 iris | iris4d) 492 566 basic_machine=mips-sgi 493 567 case $os in … … 513 587 basic_machine=ns32k-utek 514 588 os=-sysv 515 589 ;; 590 mingw32) 591 basic_machine=i386-pc 592 os=-mingw32 593 ;; 516 594 miniframe) 517 595 basic_machine=m68000-convergent 518 596 ;; … … 522 600 ;; 523 601 mipsel*-linux*) 524 602 basic_machine=mipsel-unknown 525 test -e /etc/SuSE-release && basic_machine=mipsel-suse 526 os=-linux 603 os=-linux-gnu 527 604 ;; 528 605 mips*-linux*) 529 606 basic_machine=mips-unknown 530 test -e /etc/SuSE-release && basic_machine=mips-suse 531 os=-linux 607 os=-linux-gnu 532 608 ;; 533 609 mips3*-*) 534 610 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` … … 536 612 mips3*) 537 613 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 538 614 ;; 615 mmix*) 616 basic_machine=mmix-knuth 617 os=-mmixware 618 ;; 539 619 monitor) 540 620 basic_machine=m68k-rom68k 541 621 os=-coff 542 622 ;; 543 623 msdos) 544 basic_machine=i386- unknown624 basic_machine=i386-pc 545 625 os=-msdos 546 626 ;; 547 627 mvs) … … 605 685 basic_machine=i960-intel 606 686 os=-mon960 607 687 ;; 688 nonstopux) 689 basic_machine=mips-compaq 690 os=-nonstopux 691 ;; 608 692 np1) 609 693 basic_machine=np1-gould 610 694 ;; 695 nsr-tandem) 696 basic_machine=nsr-tandem 697 ;; 611 698 op50n-* | op60c-*) 612 699 basic_machine=hppa1.1-oki 613 700 os=-proelf … … 637 724 pc532 | pc532-*) 638 725 basic_machine=ns32k-pc532 639 726 ;; 640 pentium | p5 | k5 | k6 | nex en)727 pentium | p5 | k5 | k6 | nexgen) 641 728 basic_machine=i586-pc 642 729 ;; 643 pentiumpro | p6 | 6x86 )730 pentiumpro | p6 | 6x86 | athlon) 644 731 basic_machine=i686-pc 645 732 ;; 646 733 pentiumii | pentium2) 647 basic_machine=i 786-pc734 basic_machine=i686-pc 648 735 ;; 649 pentium-* | p5-* | k5-* | k6-* | nex en-*)736 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 650 737 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 651 738 ;; 652 pentiumpro-* | p6-* | 6x86-* )739 pentiumpro-* | p6-* | 6x86-* | athlon-*) 653 740 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 654 741 ;; 655 742 pentiumii-* | pentium2-*) 656 basic_machine=i 786-`echo $basic_machine | sed 's/^[^-]*-//'`743 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 657 744 ;; 658 745 pn) 659 746 basic_machine=pn-gould 660 747 ;; 661 power) basic_machine= rs6000-ibm748 power) basic_machine=power-ibm 662 749 ;; 663 750 ppc) basic_machine=powerpc-unknown 664 751 ;; … … 670 757 ppcle-* | powerpclittle-*) 671 758 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 672 759 ;; 760 ppc64) basic_machine=powerpc64-unknown 761 ;; 762 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 763 ;; 764 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 765 basic_machine=powerpc64le-unknown 766 ;; 767 ppc64le-* | powerpc64little-*) 768 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 769 ;; 673 770 ps2) 674 771 basic_machine=i386-ibm 675 772 ;; 773 pw32) 774 basic_machine=i586-unknown 775 os=-pw32 776 ;; 676 777 rom68k) 677 778 basic_machine=m68k-rom68k 678 779 os=-coff … … 752 853 sun386 | sun386i | roadrunner) 753 854 basic_machine=i386-sun 754 855 ;; 856 sv1) 857 basic_machine=sv1-cray 858 os=-unicos 859 ;; 755 860 symmetry) 756 861 basic_machine=i386-sequent 757 862 os=-dynix … … 760 865 basic_machine=t3e-cray 761 866 os=-unicos 762 867 ;; 868 tic54x | c54x*) 869 basic_machine=tic54x-unknown 870 os=-coff 871 ;; 763 872 tx39) 764 873 basic_machine=mipstx39-unknown 765 874 ;; … … 812 921 basic_machine=hppa1.1-winbond 813 922 os=-proelf 814 923 ;; 924 windows32) 925 basic_machine=i386-pc 926 os=-windows32-msvcrt 927 ;; 815 928 xmp) 816 929 basic_machine=xmp-cray 817 930 os=-unicos … … 840 953 basic_machine=hppa1.1-oki 841 954 ;; 842 955 mips) 843 if [ x$os = x-linux -o x$os = x-linux-gnu ]; then956 if [ x$os = x-linux-gnu ]; then 844 957 basic_machine=mips-unknown 845 test -e /etc/SuSE-release && basic_machine=mips-suse846 os=-linux847 958 else 848 959 basic_machine=mips-mips 849 960 fi … … 857 968 vax) 858 969 basic_machine=vax-dec 859 970 ;; 971 pdp10) 972 # there are many clones, so DEC is not a safe bet 973 basic_machine=pdp10-unknown 974 ;; 860 975 pdp11) 861 976 basic_machine=pdp11-dec 862 977 ;; 863 978 we32k) 864 979 basic_machine=we32k-att 865 980 ;; 866 sparc | sparcv9) 981 sh3 | sh4 | sh3eb | sh4eb) 982 basic_machine=sh-unknown 983 ;; 984 sparc | sparcv9 | sparcv9b) 867 985 basic_machine=sparc-sun 868 986 ;; 869 987 cydra) … … 885 1003 basic_machine=c4x-none 886 1004 os=-coff 887 1005 ;; 1006 *-unknown) 1007 # Make sure to match an already-canonicalized machine name. 1008 ;; 888 1009 *) 889 1010 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 890 1011 exit 1 … … 924 1045 os=-sysv4.2uw 925 1046 ;; 926 1047 -gnu/linux*) 927 os=`echo $os | sed -e 's|gnu/linux|linux |'`1048 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 928 1049 ;; 929 1050 # First accept the basic system types. 930 1051 # The portable systems comes first. … … 941 1062 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 942 1063 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 943 1064 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1065 | -chorusos* | -chorusrdb* \ 944 1066 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 945 | -mingw32* | -linux-* | -uxpv* | -beos* | -mpeix* | -udk* \ 946 | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*) 1067 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1068 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1069 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1070 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1071 | -os2* | -vos*) 947 1072 # Remember, each alternative MUST END IN *, to match a version number. 948 1073 ;; 1074 -qnx*) 1075 case $basic_machine in 1076 x86-* | i*86-*) 1077 ;; 1078 *) 1079 os=-nto$os 1080 ;; 1081 esac 1082 ;; 1083 -nto*) 1084 os=-nto-qnx 1085 ;; 949 1086 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 950 1087 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 951 | -macos* | -mpw* | -magic* | -m on960* | -lnews*)1088 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 952 1089 ;; 953 1090 -mac*) 954 1091 os=`echo $os | sed -e 's|mac|macos|'` 955 1092 ;; 956 1093 -linux*) 957 os=`echo $os | sed -e 's|linux -gnu|linux|'`1094 os=`echo $os | sed -e 's|linux|linux-gnu|'` 958 1095 ;; 959 1096 -sunos5*) 960 1097 os=`echo $os | sed -e 's|sunos5|solaris2|'` … … 965 1102 -opened*) 966 1103 os=-openedition 967 1104 ;; 1105 -wince*) 1106 os=-wince 1107 ;; 968 1108 -osfrose*) 969 1109 os=-osfrose 970 1110 ;; … … 989 1129 -ns2 ) 990 1130 os=-nextstep2 991 1131 ;; 1132 -nsk*) 1133 os=-nsk 1134 ;; 992 1135 # Preserve the version number of sinix5. 993 1136 -sinix5.*) 994 1137 os=`echo $os | sed -e 's|sinix|sysv|'` … … 1002 1145 -oss*) 1003 1146 os=-sysv3 1004 1147 ;; 1005 -qnx)1006 os=-qnx41007 ;;1008 1148 -svr4) 1009 1149 os=-sysv4 1010 1150 ;; … … 1026 1166 -xenix) 1027 1167 os=-xenix 1028 1168 ;; 1029 -*mint | - *MiNT)1169 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1030 1170 os=-mint 1031 1171 ;; 1032 1172 -none) … … 1060 1200 arm*-semi) 1061 1201 os=-aout 1062 1202 ;; 1203 pdp10-*) 1204 os=-tops20 1205 ;; 1063 1206 pdp11-*) 1064 1207 os=-none 1065 1208 ;; … … 1168 1311 *-masscomp) 1169 1312 os=-rtu 1170 1313 ;; 1171 f30 1-fujitsu)1314 f30[01]-fujitsu | f700-fujitsu) 1172 1315 os=-uxpv 1173 1316 ;; 1174 1317 *-rom68k) … … 1246 1389 -mpw* | -macos*) 1247 1390 vendor=apple 1248 1391 ;; 1249 -*mint | - *MiNT)1392 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1250 1393 vendor=atari 1251 1394 ;; 1395 -vos*) 1396 vendor=stratus 1397 ;; 1252 1398 esac 1253 1399 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1254 1400 ;; 1255 1401 esac 1256 1402 1257 1403 echo $basic_machine$os 1404 exit 0 1405 1406 # Local variables: 1407 # eval: (add-hook 'write-file-hooks 'time-stamp) 1408 # time-stamp-start: "timestamp='" 1409 # time-stamp-format: "%:y-%02m-%02d" 1410 # time-stamp-end: "'" 1411 # End:
Note:
See TracBrowser
for help on using the repository browser.