IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3239


Ignore:
Timestamp:
Feb 15, 2005, 3:22:56 PM (21 years ago)
Author:
desonia
Message:

added hack to tell libtool about library dependencies without actually
linking them in.

Location:
trunk/psLib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/config.guess

    r3238 r3239  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    5 
    6 timestamp='2003-06-17'
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
     5
     6timestamp='2004-08-11'
    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
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    5757Free Software Foundation, Inc.
    5858
     
    137137UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    138138
    139 ## for Red Hat Linux
    140 if test -f /etc/redhat-release ; then
    141     VENDOR=redhat ;
    142 else
    143     VENDOR= ;
    144 fi
     139case "${UNAME_MACHINE}" in
     140    i?86)
     141        test -z "$VENDOR" && VENDOR=pc
     142        ;;
     143    *)
     144        test -z "$VENDOR" && VENDOR=unknown
     145        ;;
     146esac
     147test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    145148
    146149# Note: order is significant - the case branches are not exclusive.
     
    205208        echo "${machine}-${os}${release}"
    206209        exit 0 ;;
     210    amd64:OpenBSD:*:*)
     211        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     212        exit 0 ;;
    207213    amiga:OpenBSD:*:*)
    208214        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    211217        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    212218        exit 0 ;;
     219    cats:OpenBSD:*:*)
     220        echo arm-unknown-openbsd${UNAME_RELEASE}
     221        exit 0 ;;
    213222    hp300:OpenBSD:*:*)
    214223        echo m68k-unknown-openbsd${UNAME_RELEASE}
    215224        exit 0 ;;
     225    luna88k:OpenBSD:*:*)
     226        echo m88k-unknown-openbsd${UNAME_RELEASE}
     227        exit 0 ;;
    216228    mac68k:OpenBSD:*:*)
    217229        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    244256        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    245257        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}
     266        exit 0 ;;
    246267    alpha:OSF1:*:*)
    247         if test $UNAME_RELEASE = "V4.0"; then
     268        case $UNAME_RELEASE in
     269        *4.0)
    248270                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    249         fi
     271                ;;
     272        *5.*)
     273                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     274                ;;
     275        esac
    250276        # According to Compaq, /usr/sbin/psrinfo has been available on
    251277        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     
    285311                UNAME_MACHINE="alphaev79" ;;
    286312        esac
     313        # A Pn.n version is a patched version.
    287314        # A Vn.n version is a released version.
    288315        # A Tn.n version is a released field test version.
    289316        # A Xn.n version is an unreleased experimental baselevel.
    290317        # 1.2 uses "1.2" for uname -r.
    291         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    292         exit 0 ;;
    293     Alpha*:OpenVMS:*:*)
    294         echo alpha-hp-vms
     318        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    295319        exit 0 ;;
    296320    Alpha\ *:Windows_NT*:*)
     
    314338    *:OS/390:*:*)
    315339        echo i370-ibm-openedition
     340        exit 0 ;;
     341    *:OS400:*:*)
     342        echo powerpc-ibm-os400
    316343        exit 0 ;;
    317344    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    407434        echo m68k-unknown-mint${UNAME_RELEASE}
    408435        exit 0 ;;
     436    m68k:machten:*:*)
     437        echo m68k-apple-machten${UNAME_RELEASE}
     438        exit 0 ;;
    409439    powerpc:machten:*:*)
    410440        echo powerpc-apple-machten${UNAME_RELEASE}
     
    742772        exit 0 ;;
    743773    *:UNICOS/mp:*:*)
    744         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     774        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    745775        exit 0 ;;
    746776    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     
    750780        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    751781        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 ;;
    752787    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    753788        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    759794        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    760795        exit 0 ;;
    761     *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
    762         # Determine whether the default compiler uses glibc.
    763         eval $set_cc_for_build
    764         sed 's/^        //' << EOF >$dummy.c
    765         #include <features.h>
    766         #if __GLIBC__ >= 2
    767         LIBC=gnu
    768         #else
    769         LIBC=
    770         #endif
    771 EOF
    772         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    773         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     796    *:FreeBSD:*:*)
     797        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    774798        exit 0 ;;
    775799    i*:CYGWIN*:*)
     
    804828        exit 0 ;;
    805829    *:GNU:*:*)
     830        # the GNU system
    806831        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
    807836        exit 0 ;;
    808837    i*86:Minix:*:*)
     
    810839        exit 0 ;;
    811840    arm*:Linux:*:*)
    812         echo ${UNAME_MACHINE}-unknown-linux-gnu
     841        echo ${UNAME_MACHINE}-${VENDOR}-linux
    813842        exit 0 ;;
    814843    cris:Linux:*:*)
    815         echo cris-axis-linux-gnu
     844        echo cris-axis-linux
    816845        exit 0 ;;
    817846    ia64:Linux:*:*)
    818         echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
     847        echo ${UNAME_MACHINE}-${VENDOR}-linux
     848        exit 0 ;;
     849    m32r*:Linux:*:*)
     850        echo ${UNAME_MACHINE}-${VENDOR}-linux
    819851        exit 0 ;;
    820852    m68*:Linux:*:*)
    821         echo ${UNAME_MACHINE}-unknown-linux-gnu
     853        echo ${UNAME_MACHINE}-${VENDOR}-linux
    822854        exit 0 ;;
    823855    mips:Linux:*:*)
     
    838870EOF
    839871        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    840         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     872        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
    841873        ;;
    842874    mips64:Linux:*:*)
     
    857889EOF
    858890        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    859         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     891        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
    860892        ;;
    861893    ppc:Linux:*:*)
    862         echo powerpc-${VENDOR:-unknown}-linux-gnu
     894        echo powerpc-${VENDOR}-linux
    863895        exit 0 ;;
    864896    ppc64:Linux:*:*)
    865         echo powerpc64-${VENDOR:-unknown}-linux-gnu
     897        echo powerpc64-${VENDOR}-linux
    866898        exit 0 ;;
    867899    alpha:Linux:*:*)
     
    876908        esac
    877909        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    878         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    879         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     910        if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
     911        echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
    880912        exit 0 ;;
    881913    parisc:Linux:*:* | hppa:Linux:*:*)
    882914        # Look for CPU level
    883915        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    884           PA7*) echo hppa1.1-unknown-linux-gnu ;;
    885           PA8*) echo hppa2.0-unknown-linux-gnu ;;
    886           *)    echo hppa-unknown-linux-gnu ;;
     916          PA7*) echo hppa1.1-${VENDOR}-linux ;;
     917          PA8*) echo hppa2.0-${VENDOR}-linux ;;
     918          *)    echo hppa-${VENDOR}-linux ;;
    887919        esac
    888920        exit 0 ;;
    889921    parisc64:Linux:*:* | hppa64:Linux:*:*)
    890         echo hppa64-unknown-linux-gnu
     922        echo hppa64-${VENDOR}-linux
    891923        exit 0 ;;
    892924    s390:Linux:*:* | s390x:Linux:*:*)
    893         echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
     925        echo ${UNAME_MACHINE}-ibm-linux
    894926        exit 0 ;;
    895927    sh64*:Linux:*:*)
    896         echo ${UNAME_MACHINE}-unknown-linux-gnu
     928        echo ${UNAME_MACHINE}-${VENDOR}-linux
    897929        exit 0 ;;
    898930    sh*:Linux:*:*)
    899         echo ${UNAME_MACHINE}-unknown-linux-gnu
     931        echo ${UNAME_MACHINE}-${VENDOR}-linux
    900932        exit 0 ;;
    901933    sparc:Linux:*:* | sparc64:Linux:*:*)
    902         echo ${UNAME_MACHINE}-unknown-linux-gnu
     934        echo ${UNAME_MACHINE}-${VENDOR}-linux
    903935        exit 0 ;;
    904936    x86_64:Linux:*:*)
    905         echo x86_64-${VENDOR:-unknown}-linux-gnu
     937        echo x86_64-${VENDOR}-linux
    906938        exit 0 ;;
    907939    i*86:Linux:*:*)
     
    918950        case "$ld_supported_targets" in
    919951          elf32-i386)
    920                 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
     952                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
    921953                ;;
    922954          a.out-i386-linux)
    923                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
     955                echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
    924956                exit 0 ;;
    925957          coff-i386)
    926                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     958                echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
    927959                exit 0 ;;
    928960          "")
    929                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
     961                # Either a pre-BFD a.out linker (linuxoldld) or
    930962                # one that does not give us useful --help.
    931                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
     963                echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
    932964                exit 0 ;;
    933965        esac
     
    953985        #endif
    954986        #endif
     987        #ifdef __dietlibc__
     988        LIBC=dietlibc
     989        #endif
    955990EOF
    956991        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    957         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
     992        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
    958993        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    959994        ;;
     
    9821017    i*86:atheos:*:*)
    9831018        echo ${UNAME_MACHINE}-unknown-atheos
     1019        exit 0 ;;
     1020        i*86:syllable:*:*)
     1021        echo ${UNAME_MACHINE}-pc-syllable
    9841022        exit 0 ;;
    9851023    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     
    10521090        echo m68k-diab-dnix
    10531091        exit 0 ;;
    1054     M68*:*:R3V[567]*:*)
     1092    M68*:*:R3V[5678]*:*)
    10551093        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1056     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)
     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)
    10571095        OS_REL=''
    10581096        test -r /etc/.relid \
     
    11521190        exit 0 ;;
    11531191    *:Darwin:*:*)
    1154         case `uname -p` in
     1192        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1193        case $UNAME_PROCESSOR in
    11551194            *86) UNAME_PROCESSOR=i686 ;;
    1156             powerpc) UNAME_PROCESSOR=powerpc ;;
     1195            unknown) UNAME_PROCESSOR=powerpc ;;
    11571196        esac
    11581197        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     
    11691208        echo i386-pc-qnx
    11701209        exit 0 ;;
    1171     NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
     1210    NSR-?:NONSTOP_KERNEL:*:*)
    11721211        echo nsr-tandem-nsk${UNAME_RELEASE}
    11731212        exit 0 ;;
     
    12131252        echo mips-sei-seiux${UNAME_RELEASE}
    12141253        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
    12151264esac
    12161265
  • trunk/psLib/config.sub

    r3238 r3239  
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    5 
    6 timestamp='2003-06-18'
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
     5
     6timestamp='2004-06-24'
    77
    88# This file is (in principle) common to ALL GNU software.
     
    7171GNU config.sub ($timestamp)
    7272
    73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    7474Free Software Foundation, Inc.
    7575
     
    119119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120120case $maybe_os in
    121   nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
     121  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
     122  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    122123    os=-$maybe_os
    123124    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    145146        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    146147        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    147         -apple | -axis)
     148        -apple | -axis | -knuth | -cray)
    148149                os=
    149150                basic_machine=$1
     
    229230        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    230231        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     232        | am33_2.0 \
    231233        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    232234        | c4x | clipper \
     
    235237        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    236238        | i370 | i860 | i960 | ia64 \
    237         | ip2k \
    238         | m32r | m68000 | m68k | m88k | mcore \
     239        | ip2k | iq2000 \
     240        | m32r | m32rle | m68000 | m68k | m88k | mcore \
    239241        | mips | mipsbe | mipseb | mipsel | mipsle \
    240242        | mips16 \
     
    248250        | mipsisa32r2 | mipsisa32r2el \
    249251        | mipsisa64 | mipsisa64el \
     252        | mipsisa64r2 | mipsisa64r2el \
    250253        | mipsisa64sb1 | mipsisa64sb1el \
    251254        | mipsisa64sr71k | mipsisa64sr71kel \
     
    258261        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    259262        | pyramid \
    260         | s390 | s390x \
    261263        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    262264        | sh64 | sh64le \
    263         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
     265        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
    264266        | strongarm \
    265267        | tahoe | thumb | tic4x | tic80 | tron \
     
    299301        | bs2000-* \
    300302        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    301         | clipper-* | cydra-* \
     303        | clipper-* | craynv-* | cydra-* \
    302304        | d10v-* | d30v-* | dlx-* \
    303305        | elxsi-* \
     
    306308        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    307309        | i*86-* | i860-* | i960-* | ia64-* \
    308         | ip2k-* \
    309         | m32r-* \
     310        | ip2k-* | iq2000-* \
     311        | m32r-* | m32rle-* \
    310312        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    311313        | m88110-* | m88k-* | mcore-* \
     
    321323        | mipsisa32r2-* | mipsisa32r2el-* \
    322324        | mipsisa64-* | mipsisa64el-* \
     325        | mipsisa64r2-* | mipsisa64r2el-* \
    323326        | mipsisa64sb1-* | mipsisa64sb1el-* \
    324327        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    325328        | mipstx39-* | mipstx39el-* \
     329        | mmix-* \
    326330        | msp430-* \
    327         | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
     331        | none-* | np1-* | ns16k-* | ns32k-* \
    328332        | orion-* \
    329333        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     
    331335        | pyramid-* \
    332336        | romp-* | rs6000-* \
    333         | s390-* | s390x-* \
    334337        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
    335338        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    336339        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
    337         | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     340        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
    338341        | tahoe-* | thumb-* \
    339342        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     
    362365                os=-udi
    363366                ;;
     367        abacus)
     368                basic_machine=abacus-unknown
     369                ;;
    364370        adobe68k)
    365371                basic_machine=m68010-adobe
     
    379385                basic_machine=x86_64-pc
    380386                ;;
     387        amd64-*)
     388                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     389                ;;
    381390        amdahl)
    382391                basic_machine=580-amdahl
     
    438447                os=-unicos
    439448                ;;
     449        craynv)
     450                basic_machine=craynv-cray
     451                os=-unicosmp
     452                ;;
     453        cr16c)
     454                basic_machine=cr16c-unknown
     455                os=-elf
     456                ;;
    440457        crds | unos)
    441458                basic_machine=m68k-crds
     
    443460        cris | cris-* | etrax*)
    444461                basic_machine=cris-axis
     462                ;;
     463        crx)
     464                basic_machine=crx-unknown
     465                os=-elf
    445466                ;;
    446467        da30 | da30-*)
     
    643664        mips3*)
    644665                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    645                 ;;
    646         mmix*)
    647                 basic_machine=mmix-knuth
    648                 os=-mmixware
    649666                ;;
    650667        monitor)
     
    728745                basic_machine=np1-gould
    729746                ;;
    730         nv1)
    731                 basic_machine=nv1-cray
    732                 os=-unicosmp
    733                 ;;
    734747        nsr-tandem)
    735748                basic_machine=nsr-tandem
     
    743756                os=-coff
    744757                ;;
     758        os400)
     759                basic_machine=powerpc-ibm
     760                os=-os400
     761                ;;
    745762        OSE68000 | ose68000)
    746763                basic_machine=m68000-ericsson
     
    834851                basic_machine=romp-ibm
    835852                ;;
     853        s390 | s390-*)
     854                basic_machine=s390-ibm
     855                ;;
     856        s390x | s390x-*)
     857                basic_machine=s390x-ibm
     858                ;;
    836859        sa29200)
    837860                basic_machine=a29k-amd
     
    956979        tower | tower-32)
    957980                basic_machine=m68k-ncr
     981                ;;
     982        tpf)
     983                basic_machine=s390x-ibm
     984                os=-tpf
    958985                ;;
    959986        udi29k)
     
    10301057                basic_machine=romp-ibm
    10311058                ;;
     1059        mmix)
     1060                basic_machine=mmix-knuth
     1061                ;;
    10321062        rs6000)
    10331063                basic_machine=rs6000-ibm
     
    10521082                basic_machine=sh64-unknown
    10531083                ;;
    1054         sparc | sparcv9 | sparcv9b)
     1084        sparc | sparcv8 | sparcv9 | sparcv9b)
    10551085                basic_machine=sparc-sun
    10561086                ;;
     
    11251155              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    11261156              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1127               | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    1128               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1157              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1158              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1159              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11291160              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11301161              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    11311162              | -chorusos* | -chorusrdb* \
    11321163              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1133               | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
     1164              | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
    11341165              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    11351166              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     
    11371168              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    11381169              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    1139               | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
     1170              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
    11401171        # Remember, each alternative MUST END IN *, to match a version number.
    11411172                ;;
     
    11611192                os=`echo $os | sed -e 's|mac|macos|'`
    11621193                ;;
    1163         -linux*)
    1164                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
     1194        -linux-dietlibc)
     1195                os=-linux-dietlibc
    11651196                ;;
    11661197        -sunos5*)
     
    11731204                os=-openedition
    11741205                ;;
     1206        -os400*)
     1207                os=-os400
     1208                ;;
    11751209        -wince*)
    11761210                os=-wince
     
    11931227        -atheos*)
    11941228                os=-atheos
     1229                ;;
     1230        -syllable*)
     1231                os=-syllable
    11951232                ;;
    11961233        -386bsd)
     
    12151252        -sinix*)
    12161253                os=-sysv4
     1254                ;;
     1255        -tpf*)
     1256                os=-tpf
    12171257                ;;
    12181258        -triton*)
     
    12831323                os=-aout
    12841324                ;;
    1285         c4x-* | tic4x-*)
    1286                 os=-coff
    1287                 ;;
     1325    c4x-* | tic4x-*)
     1326        os=-coff
     1327        ;;
    12881328        # This must come before the *-dec entry.
    12891329        pdp10-*)
     
    13311371        *-ibm)
    13321372                os=-aix
     1373                ;;
     1374        *-knuth)
     1375                os=-mmixware
    13331376                ;;
    13341377        *-wec)
     
    14641507                                vendor=ibm
    14651508                                ;;
     1509                        -os400*)
     1510                                vendor=ibm
     1511                                ;;
    14661512                        -ptx*)
    14671513                                vendor=sequent
     1514                                ;;
     1515                        -tpf*)
     1516                                vendor=ibm
    14681517                                ;;
    14691518                        -vxsim* | -vxworks* | -windiss*)
  • trunk/psLib/ltmain.sh

    r3238 r3239  
    3434progpath="$0"
    3535
    36 # RH: define SED for historic ltconfig's generated by Libtool 1.3
    37 [ -z "$SED" ] && SED=sed
    38 
    3936# The name of this program:
    4037progname=`echo "$progpath" | $SED $basename`
     
    4744PROGRAM=ltmain.sh
    4845PACKAGE=libtool
    49 VERSION=1.5.6
    50 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
    51 
     46VERSION=1.5.8
     47TIMESTAMP=" (1.1220.2.118 2004/08/07 12:24:38)"
     48
     49# See if we are running on zsh, and set the options which allow our
     50# commands through without removal of \ escapes.
     51if test -n "${ZSH_VERSION+set}" ; then
     52  setopt NO_GLOB_SUBST
     53fi
    5254
    5355# Check that we have a working $echo.
     
    238240      esac
    239241    fi
     242}
     243
     244
     245# func_extract_archives gentop oldlib ...
     246func_extract_archives () {
     247    my_gentop="$1"; shift
     248    my_oldlibs=${1+"$@"}
     249    my_oldobjs=""
     250    my_xlib=""
     251    my_xabs=""
     252    my_xdir=""
     253    my_status=""
     254
     255    $show "${rm}r $my_gentop"
     256    $run ${rm}r "$my_gentop"
     257    $show "$mkdir $my_gentop"
     258    $run $mkdir "$my_gentop"
     259    my_status=$?
     260    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
     261      exit $my_status
     262    fi
     263
     264    for my_xlib in $my_oldlibs; do
     265      # Extract the objects.
     266      case $my_xlib in
     267        [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
     268        *) my_xabs=`pwd`"/$my_xlib" ;;
     269      esac
     270      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
     271      my_xdir="$my_gentop/$my_xlib"
     272
     273      $show "${rm}r $my_xdir"
     274      $run ${rm}r "$my_xdir"
     275      $show "$mkdir $my_xdir"
     276      $run $mkdir "$my_xdir"
     277      status=$?
     278      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
     279        exit $status
     280      fi
     281      case $host in
     282      *-darwin*)
     283        $show "Extracting $my_xabs"
     284        # Do not bother doing anything if just a dry run
     285        if test -z "$run"; then
     286          darwin_orig_dir=`pwd`
     287          cd $my_xdir || exit $?
     288          darwin_archive=$my_xabs
     289          darwin_curdir=`pwd`
     290          darwin_base_archive=`basename $darwin_archive`
     291          darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
     292          if test -n "$darwin_arches"; then
     293            darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
     294            darwin_arch=
     295            $show "$darwin_base_archive has multiple architectures $darwin_arches"
     296            for darwin_arch in  $darwin_arches ; do
     297              mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     298              lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
     299              # Remove the table of contents from the thin files.
     300              $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
     301              $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
     302              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     303              $AR -xo "${darwin_base_archive}"
     304              rm "${darwin_base_archive}"
     305              cd "$darwin_curdir"
     306            done # $darwin_arches
     307      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
     308            darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
     309            darwin_file=
     310            darwin_files=
     311            for darwin_file in $darwin_filelist; do
     312              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
     313              lipo -create -output "$darwin_file" $darwin_files
     314            done # $darwin_filelist
     315            rm -rf unfat-$$
     316            cd "$darwin_orig_dir"
     317          else
     318            cd $darwin_orig_dir
     319            (cd $my_xdir && $AR x $my_xabs) || exit $?
     320          fi # $darwin_arches
     321        fi # $run
     322      ;;
     323      *)
     324        # We will extract separately just the conflicting names and we will
     325        # no longer touch any unique names. It is faster to leave these
     326        # extract automatically by $AR in one run.
     327        $show "(cd $my_xdir && $AR x $my_xabs)"
     328        $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
     329        if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
     330          :
     331        else
     332          $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
     333          $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
     334          $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
     335          do
     336            i=1
     337            while test "$i" -le "$count"
     338            do
     339              # Put our $i before any first dot (extension)
     340              # Never overwrite any file
     341              name_to="$name"
     342              while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
     343              do
     344                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
     345              done
     346              $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
     347              $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
     348              i=`expr $i + 1`
     349            done
     350          done
     351        fi
     352        ;;
     353      esac
     354      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     355    done
     356
     357    func_extract_archives_result="$my_oldobjs"
    240358}
    241359# End of Shell function definitions
     
    19822100          case $linkmode in
    19832101          lib)
    1984             if test "$deplibs_check_method" != pass_all; then
     2102            valid_a_lib=no
     2103            case $deplibs_check_method in
     2104              match_pattern*)
     2105                set dummy $deplibs_check_method
     2106                match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
     2107                if eval $echo \"$deplib\" 2>/dev/null \
     2108                    | $SED 10q \
     2109                    | $EGREP "$match_pattern_regex" > /dev/null; then
     2110                  valid_a_lib=yes
     2111                fi
     2112                ;;
     2113              pass_all)
     2114                valid_a_lib=yes
     2115                ;;
     2116            esac
     2117            if test "$valid_a_lib" != yes; then
    19852118              $echo
    19862119              $echo "*** Warning: Trying to link with static lib archive $deplib."
     
    21552288          fi
    21562289        else
    2157           dir="$ladir/$objdir"
    2158           absdir="$abs_ladir/$objdir"
    2159           # Remove this search path later
    2160           notinst_path="$notinst_path $abs_ladir"
     2290          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
     2291            dir="$ladir"
     2292            absdir="$abs_ladir"
     2293            # Remove this search path later
     2294            notinst_path="$notinst_path $abs_ladir"
     2295          else
     2296            dir="$ladir/$objdir"
     2297            absdir="$abs_ladir/$objdir"
     2298            # Remove this search path later
     2299            notinst_path="$notinst_path $abs_ladir"
     2300          fi
    21612301        fi # $installed = yes
    21622302        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     
    29453085        # Check that each of the things are valid numbers.
    29463086        case $current in
    2947         [0-9]*) ;;
     3087        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
    29483088        *)
    29493089          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
     
    29543094
    29553095        case $revision in
    2956         [0-9]*) ;;
     3096        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
    29573097        *)
    29583098          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
     
    29633103
    29643104        case $age in
    2965         [0-9]*) ;;
     3105        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
    29663106        *)
    29673107          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
     
    29913131          # Darwin ld doesn't like 0 for these options...
    29923132          minor_current=`expr $current + 1`
    2993           verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
     3133          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
    29943134          ;;
    29953135
     
    36793819          else
    36803820            gentop="$output_objdir/${outputname}x"
    3681             $show "${rm}r $gentop"
    3682             $run ${rm}r "$gentop"
    3683             $show "$mkdir $gentop"
    3684             $run $mkdir "$gentop"
    3685             status=$?
    3686             if test "$status" -ne 0 && test ! -d "$gentop"; then
    3687               exit $status
    3688             fi
    36893821            generated="$generated $gentop"
    36903822
    3691             for xlib in $convenience; do
    3692               # Extract the objects.
    3693               case $xlib in
    3694               [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3695               *) xabs=`pwd`"/$xlib" ;;
    3696               esac
    3697               xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3698               xdir="$gentop/$xlib"
    3699 
    3700               $show "${rm}r $xdir"
    3701               $run ${rm}r "$xdir"
    3702               $show "$mkdir $xdir"
    3703               $run $mkdir "$xdir"
    3704               status=$?
    3705               if test "$status" -ne 0 && test ! -d "$xdir"; then
    3706                 exit $status
    3707               fi
    3708               # We will extract separately just the conflicting names and we will no
    3709               # longer touch any unique names. It is faster to leave these extract
    3710               # automatically by $AR in one run.
    3711               $show "(cd $xdir && $AR x $xabs)"
    3712               $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    3713               if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    3714                 :
    3715               else
    3716                 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    3717                 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    3718                 $AR t "$xabs" | sort | uniq -cd | while read -r count name
    3719                 do
    3720                   i=1
    3721                   while test "$i" -le "$count"
    3722                   do
    3723                    # Put our $i before any first dot (extension)
    3724                    # Never overwrite any file
    3725                    name_to="$name"
    3726                    while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    3727                    do
    3728                      name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    3729                    done
    3730                    $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    3731                    $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    3732                    i=`expr $i + 1`
    3733                   done
    3734                 done
    3735               fi
    3736 
    3737               libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    3738             done
    3739           fi
    3740         fi
    3741 
     3823            func_extract_archives $gentop $convenience
     3824            libobjs="$libobjs $func_extract_archives_result"
     3825          fi
     3826        fi
     3827       
    37423828        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    37433829          eval flag=\"$thread_safe_flag_spec\"
     
    39774063        else
    39784064          gentop="$output_objdir/${obj}x"
    3979           $show "${rm}r $gentop"
    3980           $run ${rm}r "$gentop"
    3981           $show "$mkdir $gentop"
    3982           $run $mkdir "$gentop"
    3983           status=$?
    3984           if test "$status" -ne 0 && test ! -d "$gentop"; then
    3985             exit $status
    3986           fi
    39874065          generated="$generated $gentop"
    39884066
    3989           for xlib in $convenience; do
    3990             # Extract the objects.
    3991             case $xlib in
    3992             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3993             *) xabs=`pwd`"/$xlib" ;;
    3994             esac
    3995             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3996             xdir="$gentop/$xlib"
    3997 
    3998             $show "${rm}r $xdir"
    3999             $run ${rm}r "$xdir"
    4000             $show "$mkdir $xdir"
    4001             $run $mkdir "$xdir"
    4002             status=$?
    4003             if test "$status" -ne 0 && test ! -d "$xdir"; then
    4004               exit $status
    4005             fi
    4006             # We will extract separately just the conflicting names and we will no
    4007             # longer touch any unique names. It is faster to leave these extract
    4008             # automatically by $AR in one run.
    4009             $show "(cd $xdir && $AR x $xabs)"
    4010             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    4011             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    4012               :
    4013             else
    4014               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    4015               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    4016               $AR t "$xabs" | sort | uniq -cd | while read -r count name
    4017               do
    4018                 i=1
    4019                 while test "$i" -le "$count"
    4020                 do
    4021                  # Put our $i before any first dot (extension)
    4022                  # Never overwrite any file
    4023                  name_to="$name"
    4024                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    4025                  do
    4026                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    4027                  done
    4028                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    4029                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    4030                  i=`expr $i + 1`
    4031                 done
    4032               done
    4033             fi
    4034 
    4035             reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    4036           done
     4067          func_extract_archives $gentop $convenience
     4068          reload_conv_objs="$reload_objs $func_extract_archives_result"
    40374069        fi
    40384070      fi
     
    48154847# The HP-UX ksh and POSIX shell print the target directory to stdout
    48164848# if CDPATH is set.
    4817 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
     4849(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    48184850
    48194851relink_command=\"$relink_command\"
     
    49925024      if test -n "$addlibs"; then
    49935025        gentop="$output_objdir/${outputname}x"
    4994         $show "${rm}r $gentop"
    4995         $run ${rm}r "$gentop"
    4996         $show "$mkdir $gentop"
    4997         $run $mkdir "$gentop"
    4998         status=$?
    4999         if test "$status" -ne 0 && test ! -d "$gentop"; then
    5000           exit $status
    5001         fi
    50025026        generated="$generated $gentop"
    50035027
    5004         # Add in members from convenience archives.
    5005         for xlib in $addlibs; do
    5006           # Extract the objects.
    5007           case $xlib in
    5008           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    5009           *) xabs=`pwd`"/$xlib" ;;
    5010           esac
    5011           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    5012           xdir="$gentop/$xlib"
    5013 
    5014           $show "${rm}r $xdir"
    5015           $run ${rm}r "$xdir"
    5016           $show "$mkdir $xdir"
    5017           $run $mkdir "$xdir"
    5018           status=$?
    5019           if test "$status" -ne 0 && test ! -d "$xdir"; then
    5020             exit $status
    5021           fi
    5022           # We will extract separately just the conflicting names and we will no
    5023           # longer touch any unique names. It is faster to leave these extract
    5024           # automatically by $AR in one run.
    5025           $show "(cd $xdir && $AR x $xabs)"
    5026           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    5027           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    5028             :
    5029           else
    5030             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    5031             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    5032             $AR t "$xabs" | sort | uniq -cd | while read -r count name
    5033             do
    5034               i=1
    5035               while test "$i" -le "$count"
    5036               do
    5037                # Put our $i before any first dot (extension)
    5038                # Never overwrite any file
    5039                name_to="$name"
    5040                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    5041                do
    5042                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    5043                done
    5044                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    5045                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    5046                i=`expr $i + 1`
    5047               done
    5048             done
    5049           fi
    5050 
    5051           oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
    5052         done
     5028        func_extract_archives $gentop $addlibs
     5029        oldobjs="$oldobjs $func_extract_archives_result"
    50535030      fi
    50545031
     
    59925969
    59935970      # Now prepare to actually exec the command.
    5994       exec_cmd="\$cmd$args"
     5971      exec_cmd="\"\$cmd\"$args"
    59955972    else
    59965973      # Display what would be done.
     
    59995976        $echo "export $shlibpath_var"
    60005977      fi
    6001       $echo "$cmd$args"
     5978      eval \$echo \"\$cmd\"$args
    60025979      exit $EXIT_SUCCESS
    60035980    fi
  • trunk/psLib/src/Makefile.am

    r3127 r3239  
    2929        psTest.h \
    3030        pslib.h
     31
     32install-exec-hook: libpslib.la
     33        sed "s|\(^dependency_libs=.*\)|dependency_libs=\'$(PSLIB_LIBS)\'|" libpslib.la > $(libdir)/libpslib.la
     34
     35   
Note: See TracChangeset for help on using the changeset viewer.