IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2005, 11:53:03 AM (21 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/config.guess

    r3239 r3377  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    5 
    6 timestamp='2004-08-11'
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     5
     6timestamp='2003-01-10'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    5454
    5555Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    5757Free Software Foundation, Inc.
    5858
     
    107107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108108 { 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 ; } ||
    110109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
    111110dummy=$tmp/dummy ;
     
    136135UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    137136UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    138 
    139 case "${UNAME_MACHINE}" in
    140     i?86)
    141         test -z "$VENDOR" && VENDOR=pc
    142         ;;
    143     *)
    144         test -z "$VENDOR" && VENDOR=unknown
    145         ;;
    146 esac
    147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    148137
    149138# Note: order is significant - the case branches are not exclusive.
     
    208197        echo "${machine}-${os}${release}"
    209198        exit 0 ;;
    210     amd64:OpenBSD:*:*)
    211         echo x86_64-unknown-openbsd${UNAME_RELEASE}
    212         exit 0 ;;
    213199    amiga:OpenBSD:*:*)
    214200        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    217203        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    218204        exit 0 ;;
    219     cats:OpenBSD:*:*)
    220         echo arm-unknown-openbsd${UNAME_RELEASE}
    221         exit 0 ;;
    222205    hp300:OpenBSD:*:*)
    223206        echo m68k-unknown-openbsd${UNAME_RELEASE}
    224207        exit 0 ;;
    225     luna88k:OpenBSD:*:*)
    226         echo m88k-unknown-openbsd${UNAME_RELEASE}
    227         exit 0 ;;
    228208    mac68k:OpenBSD:*:*)
    229209        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    256236        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    257237        exit 0 ;;
    258     *:ekkoBSD:*:*)
    259         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    260         exit 0 ;;
    261     macppc:MirBSD:*:*)
    262         echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    263         exit 0 ;;
    264     *:MirBSD:*:*)
    265         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     238    *:MicroBSD:*:*)
     239        echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
    266240        exit 0 ;;
    267241    alpha:OSF1:*:*)
    268         case $UNAME_RELEASE in
    269         *4.0)
     242        if test $UNAME_RELEASE = "V4.0"; then
    270243                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    271                 ;;
    272         *5.*)
    273                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    274                 ;;
    275         esac
    276         # According to Compaq, /usr/sbin/psrinfo has been available on
    277         # OSF/1 and Tru64 systems produced since 1995.  I hope that
    278         # covers most systems running today.  This code pipes the CPU
    279         # types through head -n 1, so we only detect the type of CPU 0.
    280         ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
    281         case "$ALPHA_CPU_TYPE" in
    282             "EV4 (21064)")
    283                 UNAME_MACHINE="alpha" ;;
    284             "EV4.5 (21064)")
    285                 UNAME_MACHINE="alpha" ;;
    286             "LCA4 (21066/21068)")
    287                 UNAME_MACHINE="alpha" ;;
    288             "EV5 (21164)")
    289                 UNAME_MACHINE="alphaev5" ;;
    290             "EV5.6 (21164A)")
    291                 UNAME_MACHINE="alphaev56" ;;
    292             "EV5.6 (21164PC)")
    293                 UNAME_MACHINE="alphapca56" ;;
    294             "EV5.7 (21164PC)")
    295                 UNAME_MACHINE="alphapca57" ;;
    296             "EV6 (21264)")
    297                 UNAME_MACHINE="alphaev6" ;;
    298             "EV6.7 (21264A)")
    299                 UNAME_MACHINE="alphaev67" ;;
    300             "EV6.8CB (21264C)")
    301                 UNAME_MACHINE="alphaev68" ;;
    302             "EV6.8AL (21264B)")
    303                 UNAME_MACHINE="alphaev68" ;;
    304             "EV6.8CX (21264D)")
    305                 UNAME_MACHINE="alphaev68" ;;
    306             "EV6.9A (21264/EV69A)")
    307                 UNAME_MACHINE="alphaev69" ;;
    308             "EV7 (21364)")
    309                 UNAME_MACHINE="alphaev7" ;;
    310             "EV7.9 (21364A)")
    311                 UNAME_MACHINE="alphaev79" ;;
    312         esac
    313         # A Pn.n version is a patched version.
     244        fi
    314245        # A Vn.n version is a released version.
    315246        # A Tn.n version is a released field test version.
    316247        # A Xn.n version is an unreleased experimental baselevel.
    317248        # 1.2 uses "1.2" for uname -r.
    318         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     249        eval $set_cc_for_build
     250        cat <<EOF >$dummy.s
     251        .data
     252\$Lformat:
     253        .byte 37,100,45,37,120,10,0     # "%d-%x\n"
     254
     255        .text
     256        .globl main
     257        .align 4
     258        .ent main
     259main:
     260        .frame \$30,16,\$26,0
     261        ldgp \$29,0(\$27)
     262        .prologue 1
     263        .long 0x47e03d80 # implver \$0
     264        lda \$2,-1
     265        .long 0x47e20c21 # amask \$2,\$1
     266        lda \$16,\$Lformat
     267        mov \$0,\$17
     268        not \$1,\$18
     269        jsr \$26,printf
     270        ldgp \$29,0(\$26)
     271        mov 0,\$16
     272        jsr \$26,exit
     273        .end main
     274EOF
     275        $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
     276        if test "$?" = 0 ; then
     277                case `$dummy` in
     278                        0-0)
     279                                UNAME_MACHINE="alpha"
     280                                ;;
     281                        1-0)
     282                                UNAME_MACHINE="alphaev5"
     283                                ;;
     284                        1-1)
     285                                UNAME_MACHINE="alphaev56"
     286                                ;;
     287                        1-101)
     288                                UNAME_MACHINE="alphapca56"
     289                                ;;
     290                        2-303)
     291                                UNAME_MACHINE="alphaev6"
     292                                ;;
     293                        2-307)
     294                                UNAME_MACHINE="alphaev67"
     295                                ;;
     296                        2-1307)
     297                                UNAME_MACHINE="alphaev68"
     298                                ;;
     299                        3-1307)
     300                                UNAME_MACHINE="alphaev7"
     301                                ;;
     302                esac
     303        fi
     304        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    319305        exit 0 ;;
    320306    Alpha\ *:Windows_NT*:*)
     
    338324    *:OS/390:*:*)
    339325        echo i370-ibm-openedition
    340         exit 0 ;;
    341     *:OS400:*:*)
    342         echo powerpc-ibm-os400
    343326        exit 0 ;;
    344327    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    359342        echo pyramid-pyramid-svr4
    360343        exit 0 ;;
    361     DRS?6000:unix:4.0:6*)
    362         echo sparc-icl-nx6
    363         exit 0 ;;
    364344    DRS?6000:UNIX_SV:4.2*:7*)
    365345        case `/usr/bin/uname -p` in
     
    434414        echo m68k-unknown-mint${UNAME_RELEASE}
    435415        exit 0 ;;
    436     m68k:machten:*:*)
    437         echo m68k-apple-machten${UNAME_RELEASE}
    438         exit 0 ;;
    439416    powerpc:machten:*:*)
    440417        echo powerpc-apple-machten${UNAME_RELEASE}
     
    772749        exit 0 ;;
    773750    *:UNICOS/mp:*:*)
    774         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     751        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    775752        exit 0 ;;
    776753    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     
    780757        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    781758        exit 0 ;;
    782     5000:UNIX_System_V:4.*:*)
    783         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    784         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    785         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    786         exit 0 ;;
    787759    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    788760        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    795767        exit 0 ;;
    796768    *:FreeBSD:*:*)
    797         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     769        # Determine whether the default compiler uses glibc.
     770        eval $set_cc_for_build
     771        sed 's/^        //' << EOF >$dummy.c
     772        #include <features.h>
     773        #if __GLIBC__ >= 2
     774        LIBC=gnu
     775        #else
     776        LIBC=
     777        #endif
     778EOF
     779        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     780        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    798781        exit 0 ;;
    799782    i*:CYGWIN*:*)
     
    806789        echo ${UNAME_MACHINE}-pc-pw32
    807790        exit 0 ;;
    808     x86:Interix*:[34]*)
    809         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     791    x86:Interix*:3*)
     792        echo i586-pc-interix3
    810793        exit 0 ;;
    811794    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     
    828811        exit 0 ;;
    829812    *:GNU:*:*)
    830         # the GNU system
    831813        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    832         exit 0 ;;
    833     *:GNU/*:*:*)
    834         # other systems with GNU libc and userland
    835         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    836814        exit 0 ;;
    837815    i*86:Minix:*:*)
     
    839817        exit 0 ;;
    840818    arm*:Linux:*:*)
    841         echo ${UNAME_MACHINE}-${VENDOR}-linux
    842         exit 0 ;;
    843     cris:Linux:*:*)
    844         echo cris-axis-linux
     819        echo ${UNAME_MACHINE}-unknown-linux-gnu
    845820        exit 0 ;;
    846821    ia64:Linux:*:*)
    847         echo ${UNAME_MACHINE}-${VENDOR}-linux
    848         exit 0 ;;
    849     m32r*:Linux:*:*)
    850         echo ${UNAME_MACHINE}-${VENDOR}-linux
     822        echo ${UNAME_MACHINE}-unknown-linux-gnu
    851823        exit 0 ;;
    852824    m68*:Linux:*:*)
    853         echo ${UNAME_MACHINE}-${VENDOR}-linux
     825        echo ${UNAME_MACHINE}-unknown-linux-gnu
    854826        exit 0 ;;
    855827    mips:Linux:*:*)
     
    870842EOF
    871843        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    872         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     844        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    873845        ;;
    874846    mips64:Linux:*:*)
     
    889861EOF
    890862        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    891         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     863        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    892864        ;;
    893865    ppc:Linux:*:*)
    894         echo powerpc-${VENDOR}-linux
     866        echo powerpc-unknown-linux-gnu
    895867        exit 0 ;;
    896868    ppc64:Linux:*:*)
    897         echo powerpc64-${VENDOR}-linux
     869        echo powerpc64-unknown-linux-gnu
    898870        exit 0 ;;
    899871    alpha:Linux:*:*)
     
    908880        esac
    909881        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    910         if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
    911         echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
     882        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     883        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    912884        exit 0 ;;
    913885    parisc:Linux:*:* | hppa:Linux:*:*)
    914886        # Look for CPU level
    915887        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    916           PA7*) echo hppa1.1-${VENDOR}-linux ;;
    917           PA8*) echo hppa2.0-${VENDOR}-linux ;;
    918           *)    echo hppa-${VENDOR}-linux ;;
     888          PA7*) echo hppa1.1-unknown-linux-gnu ;;
     889          PA8*) echo hppa2.0-unknown-linux-gnu ;;
     890          *)    echo hppa-unknown-linux-gnu ;;
    919891        esac
    920892        exit 0 ;;
    921893    parisc64:Linux:*:* | hppa64:Linux:*:*)
    922         echo hppa64-${VENDOR}-linux
     894        echo hppa64-unknown-linux-gnu
    923895        exit 0 ;;
    924896    s390:Linux:*:* | s390x:Linux:*:*)
    925897        echo ${UNAME_MACHINE}-ibm-linux
    926898        exit 0 ;;
    927     sh64*:Linux:*:*)
    928         echo ${UNAME_MACHINE}-${VENDOR}-linux
    929         exit 0 ;;
    930899    sh*:Linux:*:*)
    931         echo ${UNAME_MACHINE}-${VENDOR}-linux
     900        echo ${UNAME_MACHINE}-unknown-linux-gnu
    932901        exit 0 ;;
    933902    sparc:Linux:*:* | sparc64:Linux:*:*)
    934         echo ${UNAME_MACHINE}-${VENDOR}-linux
     903        echo ${UNAME_MACHINE}-unknown-linux-gnu
    935904        exit 0 ;;
    936905    x86_64:Linux:*:*)
    937         echo x86_64-${VENDOR}-linux
     906        echo x86_64-unknown-linux-gnu
    938907        exit 0 ;;
    939908    i*86:Linux:*:*)
     
    950919        case "$ld_supported_targets" in
    951920          elf32-i386)
    952                 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
     921                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
    953922                ;;
    954923          a.out-i386-linux)
    955                 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
     924                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    956925                exit 0 ;;
    957926          coff-i386)
    958                 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
     927                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    959928                exit 0 ;;
    960929          "")
    961                 # Either a pre-BFD a.out linker (linuxoldld) or
     930                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    962931                # one that does not give us useful --help.
    963                 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
     932                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    964933                exit 0 ;;
    965934        esac
     
    985954        #endif
    986955        #endif
    987         #ifdef __dietlibc__
    988         LIBC=dietlibc
    989         #endif
    990956EOF
    991957        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    992         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
     958        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    993959        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    994960        ;;
     
    1017983    i*86:atheos:*:*)
    1018984        echo ${UNAME_MACHINE}-unknown-atheos
    1019         exit 0 ;;
    1020         i*86:syllable:*:*)
    1021         echo ${UNAME_MACHINE}-pc-syllable
    1022985        exit 0 ;;
    1023986    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     
    10901053        echo m68k-diab-dnix
    10911054        exit 0 ;;
    1092     M68*:*:R3V[5678]*:*)
     1055    M68*:*:R3V[567]*:*)
    10931056        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1094     3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
     1057    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)
    10951058        OS_REL=''
    10961059        test -r /etc/.relid \
     
    11901153        exit 0 ;;
    11911154    *:Darwin:*:*)
    1192         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1193         case $UNAME_PROCESSOR in
     1155        case `uname -p` in
    11941156            *86) UNAME_PROCESSOR=i686 ;;
    1195             unknown) UNAME_PROCESSOR=powerpc ;;
     1157            powerpc) UNAME_PROCESSOR=powerpc ;;
    11961158        esac
    11971159        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     
    12081170        echo i386-pc-qnx
    12091171        exit 0 ;;
    1210     NSR-?:NONSTOP_KERNEL:*:*)
     1172    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
    12111173        echo nsr-tandem-nsk${UNAME_RELEASE}
    12121174        exit 0 ;;
     
    12491211        echo pdp10-unknown-its
    12501212        exit 0 ;;
    1251     SEI:*:*:SEIUX)
    1252         echo mips-sei-seiux${UNAME_RELEASE}
    1253         exit 0 ;;
    1254     *:DragonFly:*:*)
    1255         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1256         exit 0 ;;
    1257     *:*VMS:*:*)
    1258         UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1259         case "${UNAME_MACHINE}" in
    1260             A*) echo alpha-dec-vms && exit 0 ;;
    1261             I*) echo ia64-dec-vms && exit 0 ;;
    1262             V*) echo vax-dec-vms && exit 0 ;;
    1263         esac
    12641213esac
    12651214
Note: See TracChangeset for help on using the changeset viewer.