Changeset 2721


Ignore:
Timestamp:
2001-08-30T16:54:45+12:00 (23 years ago)
Author:
jrm21
Message:

Updated to newer versions (eg for some alpha machines)

Location:
trunk/gsdl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/config.guess

    r2279 r2721  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
     4#   Free Software Foundation, Inc.
    45#
    56# This file is free software; you can redistribute it and/or modify it
     
    2425# Written by Per Bothner <[email protected]>.
    2526# The master version of this file is at the FSF in /home/gd/gnu/lib.
     27# Please send patches to the Autoconf mailing list <[email protected]>.
    2628#
    2729# This script attempts to guess a canonical system name similar to
     
    3638#
    3739
     40# Use $HOST_CC if defined. $CC may point to a cross-compiler
     41if test x"$CC_FOR_BUILD" = x; then
     42  if test x"$HOST_CC" != x; then
     43    CC_FOR_BUILD="$HOST_CC"
     44  else
     45    if test x"$CC" != x; then
     46      CC_FOR_BUILD="$CC"
     47    else
     48      CC_FOR_BUILD=cc
     49    fi
     50  fi
     51fi
     52
     53
    3854# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    3955# ([email protected] 8/24/94.)
     
    4763UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    4864
    49 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
     65dummy=dummy-$$
     66trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
    5067
    5168# Note: order is significant - the case branches are not exclusive.
     
    6077    # A Xn.n version is an unreleased experimental baselevel.
    6178    # 1.2 uses "1.2" for uname -r.
    62     cat <<EOF >dummy.s
     79    cat <<EOF >$dummy.s
    6380    .globl main
    6481    .ent main
     
    7794    .end main
    7895EOF
    79     ${CC-cc} dummy.s -o dummy 2>/dev/null
     96    $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    8097    if test "$?" = 0 ; then
    81         ./dummy
     98        ./$dummy
    8299        case "$?" in
    83100            7)
     
    98115        esac
    99116    fi
    100     rm -f dummy.s dummy
    101     echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
     117    rm -f $dummy.s $dummy
     118    echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     119    exit 0 ;;
     120    Alpha\ *:Windows_NT*:*)
     121    # How do we know it's Interix rather than the generic POSIX subsystem?
     122    # Should we change UNAME_MACHINE based on the output of uname instead
     123    # of the specific Alpha model?
     124    echo alpha-pc-interix
    102125    exit 0 ;;
    103126    21064:Windows_NT:50:3)
     
    143166    echo hppa1.1-hitachi-hiuxmpp
    144167    exit 0;;
    145     Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)
     168    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    146169    # [email protected] (Earle F. Ake) contributed MIS and NILE.
    147170    if test "`(/bin/universe) 2>/dev/null`" = att ; then
     
    151174    fi
    152175    exit 0 ;;
    153     NILE:*:*:dcosx)
     176    NILE*:*:*:dcosx)
    154177    echo pyramid-pyramid-svr4
    155178    exit 0 ;;
     
    202225    echo m68k-unknown-openbsd${UNAME_RELEASE}
    203226    exit 0 ;;
     227    # The situation for MiNT is a little confusing.  The machine name
     228    # can be virtually everything (everything which is not
     229    # "atarist" or "atariste" at least should have a processor
     230    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
     231    # to the lowercase version "mint" (or "freemint").  Finally
     232    # the system name "TOS" denotes a system which is actually not
     233    # MiNT.  But MiNT is downward compatible to TOS, so this should
     234    # be no problem.
     235    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
     236        echo m68k-atari-mint${UNAME_RELEASE}
     237    exit 0 ;;
     238    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
     239    echo m68k-atari-mint${UNAME_RELEASE}
     240        exit 0 ;;
     241    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
     242        echo m68k-atari-mint${UNAME_RELEASE}
     243    exit 0 ;;
     244    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
     245        echo m68k-milan-mint${UNAME_RELEASE}
     246        exit 0 ;;
     247    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
     248        echo m68k-hades-mint${UNAME_RELEASE}
     249        exit 0 ;;
     250    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
     251        echo m68k-unknown-mint${UNAME_RELEASE}
     252        exit 0 ;;
    204253    sun3*:NetBSD:*:*)
    205254    echo m68k-sun-netbsd${UNAME_RELEASE}
     
    235284    echo vax-dec-ultrix${UNAME_RELEASE}
    236285    exit 0 ;;
    237     2020:CLIX:*:*)
     286    2020:CLIX:*:* | 2430:CLIX:*:*)
    238287    echo clipper-intergraph-clix${UNAME_RELEASE}
    239288    exit 0 ;;
    240289    mips:*:*:UMIPS | mips:*:*:RISCos)
    241     sed 's/^    //' << EOF >dummy.c
    242     int main (argc, argv) int argc; char **argv; {
     290    sed 's/^    //' << EOF >$dummy.c
     291#ifdef __cplusplus
     292    int main (int argc, char *argv[]) {
     293#else
     294    int main (argc, argv) int argc; char *argv[]; {
     295#endif
    243296    #if defined (host_mips) && defined (MIPSEB)
    244297    #if defined (SYSTYPE_SYSV)
     
    255308    }
    256309EOF
    257     ${CC-cc} dummy.c -o dummy \
    258       && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    259       && rm dummy.c dummy && exit 0
    260     rm -f dummy.c dummy
     310    $CC_FOR_BUILD $dummy.c -o $dummy \
     311      && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     312      && rm $dummy.c $dummy && exit 0
     313    rm -f $dummy.c $dummy
    261314    echo mips-mips-riscos${UNAME_RELEASE}
    262315    exit 0 ;;
     
    310363    *:AIX:2:3)
    311364    if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    312         sed 's/^        //' << EOF >dummy.c
     365        sed 's/^        //' << EOF >$dummy.c
    313366        #include <sys/systemcfg.h>
    314367
     
    321374            }
    322375EOF
    323         ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
    324         rm -f dummy.c dummy
     376        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
     377        rm -f $dummy.c $dummy
    325378        echo rs6000-ibm-aix3.2.5
    326379    elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     
    369422        9000/31? )            HP_ARCH=m68000 ;;
    370423        9000/[34]?? )         HP_ARCH=m68k ;;
    371         9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 )
    372               sed 's/^              //' << EOF >dummy.c
     424        9000/[678][0-9][0-9])
     425              sed 's/^              //' << EOF >$dummy.c
    373426              #include <stdlib.h>
    374427              #include <unistd.h>
    375              
     428
    376429              int main ()
    377430              {
    378431              #if defined(_SC_KERNEL_BITS)
    379432                  long bits = sysconf(_SC_KERNEL_BITS);
    380               #endif 
     433              #endif
    381434                  long cpu  = sysconf (_SC_CPU_VERSION);
    382              
    383                   switch (cpu) 
     435
     436                  switch (cpu)
    384437                {
    385438                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
    386439                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
    387                 case CPU_PA_RISC2_0: 
     440                case CPU_PA_RISC2_0:
    388441              #if defined(_SC_KERNEL_BITS)
    389                     switch (bits) 
     442                    switch (bits)
    390443                    {
    391444                    case 64: puts ("hppa2.0w"); break;
     
    395448              #else  /* !defined(_SC_KERNEL_BITS) */
    396449                    puts ("hppa2.0"); break;
    397               #endif 
     450              #endif
    398451                default: puts ("hppa1.0"); break;
    399452                }
     
    401454              }
    402455EOF
    403     (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`
    404     rm -f dummy.c dummy
     456    ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
     457    rm -f $dummy.c $dummy
    405458    esac
    406459    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    408461    exit 0 ;;
    409462    3050*:HI-UX:*:*)
    410     sed 's/^    //' << EOF >dummy.c
     463    sed 's/^    //' << EOF >$dummy.c
    411464    #include <unistd.h>
    412465    int
     
    433486    }
    434487EOF
    435     ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
    436     rm -f dummy.c dummy
     488    $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
     489    rm -f $dummy.c $dummy
    437490    echo unknown-hitachi-hiuxwe2
    438491    exit 0 ;;
     
    442495    9000/8??:4.3bsd:*:*)
    443496    echo hppa1.0-hp-bsd
     497    exit 0 ;;
     498    *9??*:MPE/iX:*:*)
     499    echo hppa1.0-hp-mpeix
    444500    exit 0 ;;
    445501    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
     
    459515    echo hppa1.1-hp-lites
    460516    exit 0 ;;
     517    hppa*:OpenBSD:*:*)
     518    echo hppa-unknown-openbsd
     519    exit 0 ;;
    461520    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    462521    echo c1-convex-bsd
     
    491550    echo t90-cray-unicos${UNAME_RELEASE}
    492551    exit 0 ;;
     552    CRAY*T3E:*:*:*)
     553    echo alpha-cray-unicosmk${UNAME_RELEASE}
     554    exit 0 ;;
    493555    CRAY-2:*:*:*)
    494556    echo cray2-cray-unicos
    495557        exit 0 ;;
    496558    F300:UNIX_System_V:*:*)
    497         FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
     559        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    498560        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    499561        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     
    508570    echo m68k-unknown-openbsd${UNAME_RELEASE}
    509571    exit 0 ;;
     572    i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
     573    echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     574    exit 0 ;;
    510575    sparc*:BSD/OS:*:*)
    511576    echo sparc-unknown-bsdi${UNAME_RELEASE}
    512577    exit 0 ;;
    513     i?86:BSD/386:*:* | *:BSD/OS:*:*)
    514     echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     578    *:BSD/OS:*:*)
     579    echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    515580    exit 0 ;;
    516581    *:FreeBSD:*:*)
     582    if test -x /usr/bin/objformat; then
     583        if test "elf" = "`/usr/bin/objformat`"; then
     584        echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
     585        exit 0
     586        fi
     587    fi
    517588    echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    518589    exit 0 ;;
     
    528599    i*:MINGW*:*)
    529600    echo ${UNAME_MACHINE}-pc-mingw32
     601    exit 0 ;;
     602    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     603    # How do we know it's Interix rather than the generic POSIX subsystem?
     604    # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
     605    # UNAME_MACHINE based on the output of uname instead of i386?
     606    echo i386-pc-interix
     607    exit 0 ;;
     608    i*:UWIN*:*)
     609    echo ${UNAME_MACHINE}-pc-uwin
    530610    exit 0 ;;
    531611    p*:CYGWIN*:*)
     
    542622    # filter it out.
    543623    case "$UNAME_MACHINE" in
     624      armv*)              UNAME_MACHINE=$UNAME_MACHINE ;;
    544625      arm* | sa110*)          UNAME_MACHINE="arm" ;;
    545626    esac
    546627
    547628    # The BFD linker knows what the default object file format is, so
    548     # first see if it will tell us.
    549     ld_help_string=`ld --help 2>&1`
     629    # first see if it will tell us. cd to the root directory to prevent
     630    # problems with other programs or directories called `ld' in the path.
     631    ld_help_string=`cd /; ld --help 2>&1`
    550632    ld_supported_emulations=`echo $ld_help_string \
    551633             | sed -ne '/supported emulations:/!d
     
    555637                    p'`
    556638        case "$ld_supported_emulations" in
     639      *ia64)      echo "${UNAME_MACHINE}-unknown-linux"         ; exit 0 ;;
    557640      i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;;
    558641      i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;;
     
    560643      armlinux)   echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
    561644      m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
    562       elf32ppc)   echo "powerpc-unknown-linux-gnu"              ; exit 0 ;;
     645      elf32ppc | elf32ppclinux)
     646        # Determine Lib Version
     647        cat >$dummy.c <<EOF
     648#include <features.h>
     649#if defined(__GLIBC__)
     650extern char __libc_version[];
     651extern char __libc_release[];
     652#endif
     653main(argc, argv)
     654     int argc;
     655     char *argv[];
     656{
     657#if defined(__GLIBC__)
     658  printf("%s %s\n", __libc_version, __libc_release);
     659#else
     660  printf("unkown\n");
     661#endif
     662  return 0;
     663}
     664EOF
     665        LIBC=""
     666        $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
     667        if test "$?" = 0 ; then
     668            ./$dummy | grep 1\.99 > /dev/null
     669            if test "$?" = 0 ; then
     670                LIBC="libc1"
     671            fi
     672        fi 
     673        rm -f $dummy.c $dummy
     674        echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
    563675    esac
    564676
    565677    if test "${UNAME_MACHINE}" = "alpha" ; then
    566         sed 's/^    //'  <<EOF >dummy.s
     678        sed 's/^    //'  <<EOF >$dummy.s
    567679        .globl main
    568680        .ent main
     
    582694EOF
    583695        LIBC=""
    584         ${CC-cc} dummy.s -o dummy 2>/dev/null
     696        $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    585697        if test "$?" = 0 ; then
    586             ./dummy
     698            ./$dummy
    587699            case "$?" in
    588700            7)
     
    601713                UNAME_MACHINE="alphaev6"
    602714                ;;
    603             esac   
    604 
    605             objdump --private-headers dummy | \
     715            esac
     716
     717            objdump --private-headers $dummy | \
    606718              grep ld.so.1 > /dev/null
    607719            if test "$?" = 0 ; then
    608720                LIBC="libc1"
    609721            fi
    610         fi 
    611         rm -f dummy.s dummy
     722        fi
     723        rm -f $dummy.s $dummy
    612724        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
    613725    elif test "${UNAME_MACHINE}" = "mips" ; then
    614       cat >dummy.c <<EOF
    615 main(argc, argv)
    616      int argc;
    617      char *argv[];
    618 {
     726      cat >$dummy.c <<EOF
     727#ifdef __cplusplus
     728    int main (int argc, char *argv[]) {
     729#else
     730    int main (argc, argv) int argc; char *argv[]; {
     731#endif
    619732#ifdef __MIPSEB__
    620733  printf ("%s-unknown-linux-gnu\n", argv[1]);
     
    626739}
    627740EOF
    628       ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
    629       rm -f dummy.c dummy
     741      $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
     742      rm -f $dummy.c $dummy
    630743    else
    631744      # Either a pre-BFD a.out linker (linux-gnuoldld)
     
    646759      esac
    647760      # Determine whether the default compiler is a.out or elf
    648       cat >dummy.c <<EOF
     761      cat >$dummy.c <<EOF
    649762#include <features.h>
    650 main(argc, argv)
    651      int argc;
    652      char *argv[];
    653 {
     763#ifdef __cplusplus
     764    int main (int argc, char *argv[]) {
     765#else
     766    int main (argc, argv) int argc; char *argv[]; {
     767#endif
    654768#ifdef __ELF__
    655769# ifdef __GLIBC__
     
    668782}
    669783EOF
    670       ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
    671       rm -f dummy.c dummy
     784      $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
     785      rm -f $dummy.c $dummy
    672786    fi ;;
    673787# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
     
    690804        echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
    691805    fi
     806    exit 0 ;;
     807    i?86:*:5:7*)
     808    UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
     809    (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
     810    (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586
     811    (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686
     812    (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585
     813    echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE}
    692814    exit 0 ;;
    693815    i?86:*:3.2:*)
     
    700822        (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
    701823            && UNAME_MACHINE=i586
     824        (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
     825            && UNAME_MACHINE=i686
     826        (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
     827            && UNAME_MACHINE=i686
    702828        echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
    703829    else
    704830        echo ${UNAME_MACHINE}-pc-sysv32
    705831    fi
    706     exit 0 ;;
    707     i?86:UnixWare:*:*)
    708     if /bin/uname -X 2>/dev/null >/dev/null ; then
    709       (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
    710         && UNAME_MACHINE=i586
    711     fi
    712     echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
    713832    exit 0 ;;
    714833    pc:*:*:*)
     
    753872    echo m68k-atari-sysv4
    754873    exit 0 ;;
    755     i?86:LynxOS:2.*:*)
     874    i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
    756875    echo i386-unknown-lynxos${UNAME_RELEASE}
    757876    exit 0 ;;
     
    764883    SM[BE]S:UNIX_SV:*:*)
    765884    echo mips-dde-sysv${UNAME_RELEASE}
     885    exit 0 ;;
     886    RM*:ReliantUNIX-*:*:*)
     887    echo mips-sni-sysv4
    766888    exit 0 ;;
    767889    RM*:SINIX-*:*:*)
     
    795917    echo mips-sony-newsos6
    796918    exit 0 ;;
    797     R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)
     919    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    798920    if [ -d /usr/nec ]; then
    799921            echo mips-nec-sysv${UNAME_RELEASE}
     
    802924    fi
    803925        exit 0 ;;
     926    BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
     927    echo powerpc-be-beos
     928    exit 0 ;;
     929    BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
     930    echo powerpc-apple-beos
     931    exit 0 ;;
     932    BePC:BeOS:*:*)  # BeOS running on Intel PC compatible.
     933    echo i586-pc-beos
     934    exit 0 ;;
     935    SX-4:SUPER-UX:*:*)
     936    echo sx4-nec-superux${UNAME_RELEASE}
     937    exit 0 ;;
     938    SX-5:SUPER-UX:*:*)
     939    echo sx5-nec-superux${UNAME_RELEASE}
     940    exit 0 ;;
    804941    Power*:Rhapsody:*:*)
    805         echo powerpc-apple-rhapsody${UNAME_RELEASE}
     942    echo powerpc-apple-rhapsody${UNAME_RELEASE}
    806943    exit 0 ;;
    807944    *:Rhapsody:*:*)
    808945    echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    809946    exit 0 ;;
    810     *:Darwin:*:* | *:"Mac OS":*:*)
    811     echo `uname -p`-apple-darwin${UNAME_RELEASE}
    812     exit 0 ;;
    813     BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
    814     echo powerpc-be-beos
    815     exit 0 ;;
    816     BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
    817     echo powerpc-apple-beos
    818     exit 0 ;;
    819     BePC:BeOS:*:*)  # BeOS running on Intel PC compatible.
    820     echo i586-pc-beos
    821     exit 0 ;;
    822947esac
    823948
     
    825950#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
    826951
    827 cat >dummy.c <<EOF
     952cat >$dummy.c <<EOF
    828953#ifdef _SEQUENT_
    829954# include <sys/types.h>
     
    9261051EOF
    9271052
    928 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
    929 rm -f dummy.c dummy
     1053$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
     1054rm -f $dummy.c $dummy
    9301055
    9311056# Apollos put the system type in the environment.
  • trunk/gsdl/config.sub

    r2279 r2721  
    11#! /bin/sh
    22# Configuration validation subroutine script, version 1.1.
    3 #   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
     3#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
    44# This file is (in principle) common to ALL GNU software.
    55# The presence of a machine in this file suggests that SOME GNU software
     
    9999        basic_machine=$1
    100100        ;;
     101    -sim | -cisco | -oki | -wec | -winbond)
     102        os=
     103        basic_machine=$1
     104        ;;
     105    -scout)
     106        ;;
     107    -wrs)
     108        os=vxworks
     109        basic_machine=$1
     110        ;;
    101111    -hiux*)
    102112        os=-hiuxwe2
    103113        ;;
    104114    -sco5)
    105         os=sco3.2v5
     115        os=-sco3.2v5
    106116        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    107117        ;;
     
    120130    -sco*)
    121131        os=-sco3.2v2
     132        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     133        ;;
     134    -udk*)
    122135        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    123136        ;;
     
    150163    # Recognize the basic CPU types without company name.
    151164    # Some are omitted here because they have special meanings below.
    152     tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
     165    tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
    153166        | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
    154         | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
    155         | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
    156         | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
    157         | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
    158         | mipstx39 | mipstx39el \
    159         | sparc | sparclet | sparclite | sparc64 | v850)
     167        | 580 | i960 | h8300 \
     168        | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
     169        | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
     170        | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
     171        | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
     172        | mips64orion | mips64orionel | mipstx39 | mipstx39el \
     173        | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
     174        | mips64vr5000 | miprs64vr5000el | mcore \
     175        | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
     176        | thumb | d10v)
    160177        basic_machine=$basic_machine-unknown
    161178        ;;
     179    m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
     180        ;;
     181
    162182    # We use `pc' rather than `unknown'
    163183    # because (1) that's what they normally are, and
     
    172192        ;;
    173193    # Recognize the basic CPU types with company name.
    174     vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
     194    # FIXME: clean up the formatting here.
     195    vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
    175196          | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
    176197          | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
    177           | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
    178           | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
    179           | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
    180           | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
     198          | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
     199          | xmp-* | ymp-* \
     200          | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
     201          | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
     202          | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
     203          | clipper-* | orion-* \
    181204          | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
    182           | sparc64-* | mips64-* | mipsel-* \
    183           | mips64el-* | mips64orion-* | mips64orionel-*  \
    184           | mipstx39-* | mipstx39el-* \
    185           | f301-*)
     205          | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
     206          | mips64el-* | mips64orion-* | mips64orionel-* \
     207          | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
     208          | mipstx39-* | mipstx39el-* | mcore-* \
     209          | f301-* | armv*-* | t3e-* \
     210          | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
     211          | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
    186212        ;;
    187213    # Recognize the various machine names and aliases which stand
    188214    # for a CPU type and a company and sometimes even an OS.
     215    386bsd)
     216        basic_machine=i386-unknown
     217        os=-bsd
     218        ;;
    189219    3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
    190220        basic_machine=m68000-att
     
    192222    3b*)
    193223        basic_machine=we32k-att
     224        ;;
     225    a29khif)
     226        basic_machine=a29k-amd
     227        os=-udi
     228        ;;
     229    adobe68k)
     230        basic_machine=m68010-adobe
     231        os=-scout
    194232        ;;
    195233    alliant | fx80)
     
    222260        os=-sysv
    223261        ;;
     262    apollo68bsd)
     263        basic_machine=m68k-apollo
     264        os=-bsd
     265        ;;
    224266    aux)
    225267        basic_machine=m68k-apple
     
    298340        basic_machine=ns32k-encore
    299341        ;;
     342    es1800 | OSE68k | ose68k | ose | OSE)
     343        basic_machine=m68k-ericsson
     344        os=-ose
     345        ;;
    300346    fx2800)
    301347        basic_machine=i860-alliant
     
    316362        os=-hms
    317363        ;;
     364    h8300xray)
     365        basic_machine=h8300-hitachi
     366        os=-xray
     367        ;;
     368    h8500hms)
     369        basic_machine=h8500-hitachi
     370        os=-hms
     371        ;;
    318372    harris)
    319373        basic_machine=m88k-harris
     
    331385        os=-hpux
    332386        ;;
     387    hp3k9[0-9][0-9] | hp9[0-9][0-9])
     388        basic_machine=hppa1.0-hp
     389        ;;
    333390    hp9k2[0-9][0-9] | hp9k31[0-9])
    334391        basic_machine=m68000-hp
     
    337394        basic_machine=m68k-hp
    338395        ;;
    339     hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
     396    hp9k6[0-9][0-9] | hp6[0-9][0-9])
     397        basic_machine=hppa1.0-hp
     398        ;;
     399    hp9k7[0-79][0-9] | hp7[0-79][0-9])
     400        basic_machine=hppa1.1-hp
     401        ;;
     402    hp9k78[0-9] | hp78[0-9])
     403        # FIXME: really hppa2.0-hp
     404        basic_machine=hppa1.1-hp
     405        ;;
     406    hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
     407        # FIXME: really hppa2.0-hp
     408        basic_machine=hppa1.1-hp
     409        ;;
     410    hp9k8[0-9][13679] | hp8[0-9][13679])
    340411        basic_machine=hppa1.1-hp
    341412        ;;
     
    345416    hppa-next)
    346417        os=-nextstep3
     418        ;;
     419    hppaosf)
     420        basic_machine=hppa1.1-hp
     421        os=-osf
     422        ;;
     423    hppro)
     424        basic_machine=hppa1.1-hp
     425        os=-proelf
    347426        ;;
    348427    i370-ibm* | ibm*)
     
    366445        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    367446        os=-solaris2
     447        ;;
     448    i386mach)
     449        basic_machine=i386-mach
     450        os=-mach
     451        ;;
     452    i386-vsta | vsta)
     453        basic_machine=i386-unknown
     454        os=-vsta
     455        ;;
     456    i386-go32 | go32)
     457        basic_machine=i386-unknown
     458        os=-go32
     459        ;;
     460    i386-mingw32 | mingw32)
     461        basic_machine=i386-unknown
     462        os=-mingw32
    368463        ;;
    369464    iris | iris4d)
     
    395490        basic_machine=m68000-convergent
    396491        ;;
     492    *mint | *MiNT)
     493        basic_machine=m68k-atari
     494        os=-mint
     495        ;;
    397496    mipsel*-linux*)
    398497        basic_machine=mipsel-unknown
     
    409508        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    410509        ;;
     510    monitor)
     511        basic_machine=m68k-rom68k
     512        os=-coff
     513        ;;
     514    msdos)
     515        basic_machine=i386-unknown
     516        os=-msdos
     517        ;;
    411518    ncr3000)
    412519        basic_machine=i486-ncr
    413520        os=-sysv4
    414521        ;;
     522    netbsd386)
     523        basic_machine=i386-unknown
     524        os=-netbsd
     525        ;;
     526    netwinder)
     527        basic_machine=armv4l-corel
     528        os=-linux
     529        ;;
    415530    news | news700 | news800 | news900)
    416531        basic_machine=m68k-sony
     
    424539        basic_machine=mips-sony
    425540        os=-newsos
     541        ;;
     542    necv70)
     543        basic_machine=v70-nec
     544        os=-sysv
    426545        ;;
    427546    next | m*-next )
     
    450569        os=-nindy
    451570        ;;
     571    mon960)
     572        basic_machine=i960-intel
     573        os=-mon960
     574        ;;
    452575    np1)
    453576        basic_machine=np1-gould
     577        ;;
     578    op50n-* | op60c-*)
     579        basic_machine=hppa1.1-oki
     580        os=-proelf
     581        ;;
     582    OSE68000 | ose68000)
     583        basic_machine=m68000-ericsson
     584        os=-ose
     585        ;;
     586    os68k)
     587        basic_machine=m68k-none
     588        os=-os68k
    454589        ;;
    455590    pa-hitachi)
     
    470605        basic_machine=ns32k-pc532
    471606        ;;
    472     pentium | p5 | k5 | nexen)
     607    pentium | p5 | k5 | k6 | nexen)
    473608        basic_machine=i586-pc
    474609        ;;
    475     pentiumpro | p6 | k6 | 6x86)
     610    pentiumpro | p6 | 6x86)
    476611        basic_machine=i686-pc
    477612        ;;
     
    479614        basic_machine=i786-pc
    480615        ;;
    481     pentium-* | p5-* | k5-* | nexen-*)
     616    pentium-* | p5-* | k5-* | k6-* | nexen-*)
    482617        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    483618        ;;
    484     pentiumpro-* | p6-* | k6-* | 6x86-*)
     619    pentiumpro-* | p6-* | 6x86-*)
    485620        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    486621        ;;
     
    506641        basic_machine=i386-ibm
    507642        ;;
     643    rom68k)
     644        basic_machine=m68k-rom68k
     645        os=-coff
     646        ;;
    508647    rm[46]00)
    509648        basic_machine=mips-siemens
     
    511650    rtpc | rtpc-*)
    512651        basic_machine=romp-ibm
     652        ;;
     653    sa29200)
     654        basic_machine=a29k-amd
     655        os=-udi
    513656        ;;
    514657    sequent)
     
    519662        os=-hms
    520663        ;;
     664    sparclite-wrs)
     665        basic_machine=sparclite-wrs
     666        os=-vxworks
     667        ;;
    521668    sps7)
    522669        basic_machine=m68k-bull
     
    526673        basic_machine=spur-unknown
    527674        ;;
     675    st2000)
     676        basic_machine=m68k-tandem
     677        ;;
     678    stratus)
     679        basic_machine=i860-stratus
     680        os=-sysv4
     681        ;;
    528682    sun2)
    529683        basic_machine=m68000-sun
     
    570724        os=-dynix
    571725        ;;
     726    t3e)
     727        basic_machine=t3e-cray
     728        os=-unicos
     729        ;;
    572730    tx39)
    573731        basic_machine=mipstx39-unknown
     
    586744        basic_machine=a29k-nyu
    587745        os=-sym1
     746        ;;
     747    v810 | necv810)
     748        basic_machine=v810-nec
     749        os=-none
    588750        ;;
    589751    vaxv)
     
    610772        os=-vxworks
    611773        ;;
     774    w65*)
     775        basic_machine=w65-wdc
     776        os=-none
     777        ;;
     778    w89k-*)
     779        basic_machine=hppa1.1-winbond
     780        os=-proelf
     781        ;;
    612782    xmp)
    613783        basic_machine=xmp-cray
     
    617787        basic_machine=xps100-honeywell
    618788        ;;
     789    z8k-*-coff)
     790        basic_machine=z8k-unknown
     791        os=-sim
     792        ;;
    619793    none)
    620794        basic_machine=none-none
     
    624798# Here we handle the default manufacturer of certain CPU types.  It is in
    625799# some cases the only manufacturer, in others, it is the most popular.
     800    w89k)
     801        basic_machine=hppa1.1-winbond
     802        ;;
     803    op50n)
     804        basic_machine=hppa1.1-oki
     805        ;;
     806    op60c)
     807        basic_machine=hppa1.1-oki
     808        ;;
    626809    mips)
    627810        if [ x$os = x-linux-gnu ]; then
     
    646829        basic_machine=we32k-att
    647830        ;;
    648     sparc)
     831    sparc | sparcv9)
    649832        basic_machine=sparc-sun
    650833        ;;
     
    657840    orion105)
    658841        basic_machine=clipper-highlevel
     842        ;;
     843    mac | mpw | mac-mpw)
     844        basic_machine=m68k-apple
     845        ;;
     846    pmac | pmac-mpw)
     847        basic_machine=powerpc-apple
     848        ;;
     849    c4x*)
     850        basic_machine=c4x-none
     851        os=-coff
    659852        ;;
    660853    *)
     
    711904          | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    712905          | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    713           | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
     906          | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    714907          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    715908          | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    716909          | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    717           | -mingw32* | -linux-gnu* | -uxpv* | -openstep* | -rhapsody* | -darwin* | -beos*)
     910          | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
     911          | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
    718912    # Remember, each alternative MUST END IN *, to match a version number.
     913        ;;
     914    -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
     915          | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     916          | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
     917        ;;
     918    -mac*)
     919        os=`echo $os | sed -e 's|mac|macos|'`
    719920        ;;
    720921    -linux*)
     
    741942    -acis*)
    742943        os=-aos
     944        ;;
     945    -386bsd)
     946        os=-bsd
    743947        ;;
    744948    -ctix* | -uts*)
     
    773977    -sysv*)
    774978        ;;
     979    -ose*)
     980        os=-ose
     981        ;;
     982    -es1800*)
     983        os=-ose
     984        ;;
    775985    -xenix)
    776986        os=-xenix
     987        ;;
     988        -*mint | -*MiNT)
     989            os=-mint
    777990        ;;
    778991    -none)
     
    8011014        os=-riscix1.2
    8021015        ;;
     1016    arm*-corel)
     1017        os=-linux
     1018        ;;
    8031019    arm*-semi)
    8041020        os=-aout
     
    8221038        # os=-sunos4
    8231039        ;;
     1040    m68*-cisco)
     1041        os=-aout
     1042        ;;
     1043    mips*-cisco)
     1044        os=-elf
     1045        ;;
     1046    mips*-*)
     1047        os=-elf
     1048        ;;
    8241049    *-tti)  # must be before sparc entry or we get the wrong os.
    8251050        os=-sysv3
     
    8341059        os=-aix
    8351060        ;;
     1061    *-wec)
     1062        os=-proelf
     1063        ;;
     1064    *-winbond)
     1065        os=-proelf
     1066        ;;
     1067    *-oki)
     1068        os=-proelf
     1069        ;;
    8361070    *-hp)
    8371071        os=-hpux
     
    8961130    f301-fujitsu)
    8971131        os=-uxpv
     1132        ;;
     1133    *-rom68k)
     1134        os=-coff
     1135        ;;
     1136    *-*bug)
     1137        os=-coff
     1138        ;;
     1139    *-apple)
     1140        os=-macos
     1141        ;;
     1142    *-atari*)
     1143        os=-mint
    8981144        ;;
    8991145    *)
     
    9181164                vendor=ibm
    9191165                ;;
     1166            -beos*)
     1167                vendor=be
     1168                ;;
    9201169            -hpux*)
    9211170                vendor=hp
    9221171                ;;
     1172            -mpeix*)
     1173                vendor=hp
     1174                ;;
    9231175            -hiux*)
    9241176                vendor=hitachi
     
    9481200                vendor=apple
    9491201                ;;
     1202            -hms*)
     1203                vendor=hitachi
     1204                ;;
     1205            -mpw* | -macos*)
     1206                vendor=apple
     1207                ;;
     1208            -*mint | -*MiNT)
     1209                vendor=atari
     1210                ;;
    9501211        esac
    9511212        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
Note: See TracChangeset for help on using the changeset viewer.