Changeset 12832 for trunk/FACT++


Ignore:
Timestamp:
02/03/12 12:45:51 (13 years ago)
Author:
tbretz
Message:
Updated to the latest version produced by autoconf 2.68 and Ubuntu 11.11
Location:
trunk/FACT++
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/.aux_dir/config.guess

    r10183 r12832  
    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, 2005, 2006, 2007, 2008, 2009, 2010
    5 #   Free Software Foundation, Inc.
    6 
    7 timestamp='2009-12-30'
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     5#   2011 Free Software Foundation, Inc.
     6
     7timestamp='2011-05-11'
    88
    99# This file is free software; you can redistribute it and/or modify it
     
    5858Originally written by Per Bothner.
    5959Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
     602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
    6161Software Foundation, Inc.
    6262
     
    182182                ;;
    183183            *)
    184                 os=netbsd
     184                os=netbsd
    185185                ;;
    186186        esac
     
    225225                ;;
    226226        *5.*)
    227                 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     227                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
    228228                ;;
    229229        esac
     
    271271        # 1.2 uses "1.2" for uname -r.
    272272        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    273         exit ;;
     273        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
     274        exitcode=$?
     275        trap '' 0
     276        exit $exitcode ;;
    274277    Alpha\ *:Windows_NT*:*)
    275278        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    297300        exit ;;
    298301    *:OS400:*:*)
    299         echo powerpc-ibm-os400
     302        echo powerpc-ibm-os400
    300303        exit ;;
    301304    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    396399    # be no problem.
    397400    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    398         echo m68k-atari-mint${UNAME_RELEASE}
     401        echo m68k-atari-mint${UNAME_RELEASE}
    399402        exit ;;
    400403    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    401404        echo m68k-atari-mint${UNAME_RELEASE}
    402         exit ;;
     405        exit ;;
    403406    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    404         echo m68k-atari-mint${UNAME_RELEASE}
     407        echo m68k-atari-mint${UNAME_RELEASE}
    405408        exit ;;
    406409    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    407         echo m68k-milan-mint${UNAME_RELEASE}
    408         exit ;;
     410        echo m68k-milan-mint${UNAME_RELEASE}
     411        exit ;;
    409412    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    410         echo m68k-hades-mint${UNAME_RELEASE}
    411         exit ;;
     413        echo m68k-hades-mint${UNAME_RELEASE}
     414        exit ;;
    412415    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    413         echo m68k-unknown-mint${UNAME_RELEASE}
    414         exit ;;
     416        echo m68k-unknown-mint${UNAME_RELEASE}
     417        exit ;;
    415418    m68k:machten:*:*)
    416419        echo m68k-apple-machten${UNAME_RELEASE}
     
    482485        exit ;;
    483486    AViiON:dgux:*:*)
    484         # DG/UX returns AViiON for all architectures
    485         UNAME_PROCESSOR=`/usr/bin/uname -p`
     487        # DG/UX returns AViiON for all architectures
     488        UNAME_PROCESSOR=`/usr/bin/uname -p`
    486489        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
    487490        then
     
    496499            echo i586-dg-dgux${UNAME_RELEASE}
    497500        fi
    498         exit ;;
     501        exit ;;
    499502    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    500503        echo m88k-dolphin-sysv3
     
    553556        fi
    554557        exit ;;
    555     *:AIX:*:[456])
     558    *:AIX:*:[4567])
    556559        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    557560        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     
    596599                if [ -x /usr/bin/getconf ]; then
    597600                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    598                     sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    599                     case "${sc_cpu_version}" in
    600                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
    601                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
    602                       532)                      # CPU_PA_RISC2_0
    603                         case "${sc_kernel_bits}" in
    604                           32) HP_ARCH="hppa2.0n" ;;
    605                           64) HP_ARCH="hppa2.0w" ;;
     601                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
     602                    case "${sc_cpu_version}" in
     603                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     604                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
     605                      532)                      # CPU_PA_RISC2_0
     606                        case "${sc_kernel_bits}" in
     607                          32) HP_ARCH="hppa2.0n" ;;
     608                          64) HP_ARCH="hppa2.0w" ;;
    606609                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
    607                         esac ;;
    608                     esac
     610                        esac ;;
     611                    esac
    609612                fi
    610613                if [ "${HP_ARCH}" = "" ]; then
    611614                    eval $set_cc_for_build
    612                     sed 's/^              //' << EOF >$dummy.c
    613 
    614               #define _HPUX_SOURCE
    615               #include <stdlib.h>
    616               #include <unistd.h>
    617 
    618               int main ()
    619               {
    620               #if defined(_SC_KERNEL_BITS)
    621                   long bits = sysconf(_SC_KERNEL_BITS);
    622               #endif
    623                   long cpu  = sysconf (_SC_CPU_VERSION);
    624 
    625                   switch (cpu)
    626                 {
    627                 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
    628                 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
    629                 case CPU_PA_RISC2_0:
    630               #if defined(_SC_KERNEL_BITS)
    631                     switch (bits)
    632                         {
    633                         case 64: puts ("hppa2.0w"); break;
    634                         case 32: puts ("hppa2.0n"); break;
    635                         default: puts ("hppa2.0"); break;
    636                         } break;
    637               #else  /* !defined(_SC_KERNEL_BITS) */
    638                     puts ("hppa2.0"); break;
    639               #endif
    640                 default: puts ("hppa1.0"); break;
    641                 }
    642                   exit (0);
    643               }
     615                    sed 's/^            //' << EOF >$dummy.c
     616
     617                #define _HPUX_SOURCE
     618                #include <stdlib.h>
     619                #include <unistd.h>
     620
     621                int main ()
     622                {
     623                #if defined(_SC_KERNEL_BITS)
     624                    long bits = sysconf(_SC_KERNEL_BITS);
     625                #endif
     626                    long cpu  = sysconf (_SC_CPU_VERSION);
     627
     628                    switch (cpu)
     629                        {
     630                        case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
     631                        case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
     632                        case CPU_PA_RISC2_0:
     633                #if defined(_SC_KERNEL_BITS)
     634                            switch (bits)
     635                                {
     636                                case 64: puts ("hppa2.0w"); break;
     637                                case 32: puts ("hppa2.0n"); break;
     638                                default: puts ("hppa2.0"); break;
     639                                } break;
     640                #else  /* !defined(_SC_KERNEL_BITS) */
     641                            puts ("hppa2.0"); break;
     642                #endif
     643                        default: puts ("hppa1.0"); break;
     644                        }
     645                    exit (0);
     646                }
    644647EOF
    645648                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     
    732735    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    733736        echo c1-convex-bsd
    734         exit ;;
     737        exit ;;
    735738    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    736739        if getsysinfo -f scalar_acc
     
    738741        else echo c2-convex-bsd
    739742        fi
    740         exit ;;
     743        exit ;;
    741744    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    742745        echo c34-convex-bsd
    743         exit ;;
     746        exit ;;
    744747    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    745748        echo c38-convex-bsd
    746         exit ;;
     749        exit ;;
    747750    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    748751        echo c4-convex-bsd
    749         exit ;;
     752        exit ;;
    750753    CRAY*Y-MP:*:*:*)
    751754        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    771774    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    772775        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    773         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    774         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    775         echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    776         exit ;;
     776        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     777        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     778        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     779        exit ;;
    777780    5000:UNIX_System_V:4.*:*)
    778         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    779         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    780         echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     781        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     782        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     783        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    781784        exit ;;
    782785    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
     
    806809        exit ;;
    807810    i*:windows32*:*)
    808         # uname -m includes "-pc" on this system.
    809         echo ${UNAME_MACHINE}-mingw32
     811        # uname -m includes "-pc" on this system.
     812        echo ${UNAME_MACHINE}-mingw32
    810813        exit ;;
    811814    i*:PW*:*)
     
    813816        exit ;;
    814817    *:Interix*:*)
    815         case ${UNAME_MACHINE} in
     818        case ${UNAME_MACHINE} in
    816819            x86)
    817820                echo i586-pc-interix${UNAME_RELEASE}
     
    868871          EV67)  UNAME_MACHINE=alphaev67 ;;
    869872          EV68*) UNAME_MACHINE=alphaev68 ;;
    870         esac
     873        esac
    871874        objdump --private-headers /bin/sh | grep -q ld.so.1
    872875        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     
    880883            echo ${UNAME_MACHINE}-unknown-linux-gnu
    881884        else
    882             echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     885            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
     886                | grep -q __ARM_PCS_VFP
     887            then
     888                echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     889            else
     890                echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
     891            fi
    883892        fi
    884893        exit ;;
     
    893902        exit ;;
    894903    frv:Linux:*:*)
    895         echo frv-unknown-linux-gnu
     904        echo frv-unknown-linux-gnu
    896905        exit ;;
    897906    i*86:Linux:*:*)
     
    961970        exit ;;
    962971    sh64*:Linux:*:*)
    963         echo ${UNAME_MACHINE}-unknown-linux-gnu
     972        echo ${UNAME_MACHINE}-unknown-linux-gnu
    964973        exit ;;
    965974    sh*:Linux:*:*)
     
    969978        echo ${UNAME_MACHINE}-unknown-linux-gnu
    970979        exit ;;
     980    tile*:Linux:*:*)
     981        echo ${UNAME_MACHINE}-tilera-linux-gnu
     982        exit ;;
    971983    vax:Linux:*:*)
    972984        echo ${UNAME_MACHINE}-dec-linux-gnu
     
    976988        exit ;;
    977989    xtensa*:Linux:*:*)
    978         echo ${UNAME_MACHINE}-unknown-linux-gnu
     990        echo ${UNAME_MACHINE}-unknown-linux-gnu
    979991        exit ;;
    980992    i*86:DYNIX/ptx:4*:*)
     
    985997        exit ;;
    986998    i*86:UNIX_SV:4.2MP:2.*)
    987         # Unixware is an offshoot of SVR4, but it has its own version
    988         # number series starting with 2...
    989         # I am not positive that other SVR4 systems won't match this,
     999        # Unixware is an offshoot of SVR4, but it has its own version
     1000        # number series starting with 2...
     1001        # I am not positive that other SVR4 systems won't match this,
    9901002        # I just have to hope.  -- rms.
    991         # Use sysv4.2uw... so that sysv4* matches it.
     1003        # Use sysv4.2uw... so that sysv4* matches it.
    9921004        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    9931005        exit ;;
     
    10211033        exit ;;
    10221034    i*86:*:5:[678]*)
    1023         # UnixWare 7.x, OpenUNIX and OpenServer 6.
     1035        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10241036        case `/bin/uname -X | grep "^Machine"` in
    10251037            *486*)           UNAME_MACHINE=i486 ;;
     
    10491061    pc:*:*:*)
    10501062        # Left here for compatibility:
    1051         # uname -m prints for DJGPP always 'pc', but it prints nothing about
    1052         # the processor, so we play safe by assuming i586.
     1063        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     1064        # the processor, so we play safe by assuming i586.
    10531065        # Note: whatever this is, it MUST be the same as what config.sub
    10541066        # prints for the "djgpp" host, or else GDB configury will decide that
    10551067        # this is a cross-build.
    10561068        echo i586-pc-msdosdjgpp
    1057         exit ;;
     1069        exit ;;
    10581070    Intel:Mach:3*:*)
    10591071        echo i386-pc-mach3
     
    10901102          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    10911103    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    1092         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1093           && { echo i486-ncr-sysv4; exit; } ;;
     1104        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     1105          && { echo i486-ncr-sysv4; exit; } ;;
    10941106    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
    10951107        OS_REL='.3'
     
    11341146        fi
    11351147        exit ;;
    1136     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    1137                       # says <Richard.M.Bartel@ccMail.Census.GOV>
    1138         echo i586-unisys-sysv4
    1139         exit ;;
     1148    PENTIUM:*:4.0*:*)   # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
     1149                        # says <Richard.M.Bartel@ccMail.Census.GOV>
     1150        echo i586-unisys-sysv4
     1151        exit ;;
    11401152    *:UNIX_System_V:4*:FTX*)
    11411153        # From Gerald Hewes <hewes@openmarket.com>.
     
    11631175    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11641176        if [ -d /usr/nec ]; then
    1165                 echo mips-nec-sysv${UNAME_RELEASE}
     1177                echo mips-nec-sysv${UNAME_RELEASE}
    11661178        else
    1167                 echo mips-unknown-sysv${UNAME_RELEASE}
    1168         fi
    1169         exit ;;
     1179                echo mips-unknown-sysv${UNAME_RELEASE}
     1180        fi
     1181        exit ;;
    11701182    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11711183        echo powerpc-be-beos
     
    12321244        echo i386-pc-qnx
    12331245        exit ;;
     1246    NEO-?:NONSTOP_KERNEL:*:*)
     1247        echo neo-tandem-nsk${UNAME_RELEASE}
     1248        exit ;;
    12341249    NSE-?:NONSTOP_KERNEL:*:*)
    12351250        echo nse-tandem-nsk${UNAME_RELEASE}
     
    12771292        exit ;;
    12781293    SEI:*:*:SEIUX)
    1279         echo mips-sei-seiux${UNAME_RELEASE}
     1294        echo mips-sei-seiux${UNAME_RELEASE}
    12801295        exit ;;
    12811296    *:DragonFly:*:*)
     
    12831298        exit ;;
    12841299    *:*VMS:*:*)
    1285         UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1300        UNAME_MACHINE=`(uname -p) 2>/dev/null`
    12861301        case "${UNAME_MACHINE}" in
    12871302            A*) echo alpha-dec-vms ; exit ;;
     
    13231338  printf ("m68k-sony-newsos%s\n",
    13241339#ifdef NEWSOS4
    1325           "4"
     1340        "4"
    13261341#else
    1327           ""
    1328 #endif
    1329          ); exit (0);
     1342        ""
     1343#endif
     1344        ); exit (0);
    13301345#endif
    13311346#endif
  • trunk/FACT++/.aux_dir/config.sub

    r10183 r12832  
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
    5 #   Free Software Foundation, Inc.
    6 
    7 timestamp='2010-01-22'
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     5#   2011 Free Software Foundation, Inc.
     6
     7timestamp='2011-03-23'
    88
    99# This file is (in principle) common to ALL GNU software.
     
    7777
    7878Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
     792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
    8080Software Foundation, Inc.
    8181
     
    125125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    126126case $maybe_os in
    127   nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
    128   uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
     127  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
     128  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
     129  knetbsd*-gnu* | netbsd*-gnu* | \
    129130  kopensolaris*-gnu* | \
    130131  storm-chaos* | os2-emx* | rtmk-nova*)
     
    158159                basic_machine=$1
    159160                ;;
    160         -bluegene*)
    161                 os=-cnk
     161        -bluegene*)
     162                os=-cnk
    162163                ;;
    163164        -sim | -cisco | -oki | -wec | -winbond)
     
    175176                basic_machine=$1
    176177                ;;
    177         -chorusrdb)
    178                 os=-chorusrdb
     178        -chorusrdb)
     179                os=-chorusrdb
    179180                basic_machine=$1
    180                 ;;
     181                ;;
    181182        -hiux*)
    182183                os=-hiuxwe2
     
    283284        | mt \
    284285        | msp430 \
     286        | nds32 | nds32le | nds32be \
    285287        | nios | nios2 \
    286288        | ns16k | ns32k \
     289        | open8 \
    287290        | or32 \
    288291        | pdp10 | pdp11 | pj | pjl \
    289         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
     292        | powerpc | powerpc64 | powerpc64le | powerpcle \
    290293        | pyramid \
    291294        | rx \
     
    295298        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    296299        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    297         | spu | strongarm \
    298         | tahoe | thumb | tic4x | tic80 | tron \
     300        | spu \
     301        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
    299302        | ubicom32 \
    300303        | v850 | v850e \
    301304        | we32k \
    302         | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
     305        | x86 | xc16x | xstormy16 | xtensa \
    303306        | z8k | z80)
    304307                basic_machine=$basic_machine-unknown
     308                ;;
     309        c54x)
     310                basic_machine=tic54x-unknown
     311                ;;
     312        c55x)
     313                basic_machine=tic55x-unknown
     314                ;;
     315        c6x)
     316                basic_machine=tic6x-unknown
    305317                ;;
    306318        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
     
    313325        ms1)
    314326                basic_machine=mt-unknown
     327                ;;
     328
     329        strongarm | thumb | xscale)
     330                basic_machine=arm-unknown
     331                ;;
     332
     333        xscaleeb)
     334                basic_machine=armeb-unknown
     335                ;;
     336
     337        xscaleel)
     338                basic_machine=armel-unknown
    315339                ;;
    316340
     
    335359        | avr-* | avr32-* \
    336360        | bfin-* | bs2000-* \
    337         | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
     361        | c[123]* | c30-* | [cjt]90-* | c4x-* \
    338362        | clipper-* | craynv-* | cydra-* \
    339363        | d10v-* | d30v-* | dlx-* \
     
    369393        | mt-* \
    370394        | msp430-* \
     395        | nds32-* | nds32le-* | nds32be-* \
    371396        | nios-* | nios2-* \
    372397        | none-* | np1-* | ns16k-* | ns32k-* \
     398        | open8-* \
    373399        | orion-* \
    374400        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    375         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
     401        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
    376402        | pyramid-* \
    377403        | romp-* | rs6000-* | rx-* \
     
    380406        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
    381407        | sparclite-* \
    382         | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
    383         | tahoe-* | thumb-* \
     408        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
     409        | tahoe-* \
    384410        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    385411        | tile-* | tilegx-* \
     
    388414        | v850-* | v850e-* | vax-* \
    389415        | we32k-* \
    390         | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
     416        | x86-* | x86_64-* | xc16x-* | xps100-* \
    391417        | xstormy16-* | xtensa*-* \
    392418        | ymp-* \
     
    413439                os=-udi
    414440                ;;
    415         abacus)
     441        abacus)
    416442                basic_machine=abacus-unknown
    417443                ;;
     
    483509                os=-cnk
    484510                ;;
     511        c54x-*)
     512                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
     513                ;;
     514        c55x-*)
     515                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
     516                ;;
     517        c6x-*)
     518                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
     519                ;;
    485520        c90)
    486521                basic_machine=c90-cray
    487522                os=-unicos
    488523                ;;
    489         cegcc)
     524        cegcc)
    490525                basic_machine=arm-unknown
    491526                os=-cegcc
     
    519554                os=-unicosmp
    520555                ;;
    521         cr16)
     556        cr16 | cr16-*)
    522557                basic_machine=cr16-unknown
    523558                os=-elf
     
    735770                os=-sysv
    736771                ;;
    737         microblaze)
     772        microblaze)
    738773                basic_machine=microblaze-xilinx
    739774                ;;
     
    842877                basic_machine=np1-gould
    843878                ;;
     879        neo-tandem)
     880                basic_machine=neo-tandem
     881                ;;
     882        nse-tandem)
     883                basic_machine=nse-tandem
     884                ;;
    844885        nsr-tandem)
    845886                basic_machine=nsr-tandem
     
    924965        power)  basic_machine=power-ibm
    925966                ;;
    926         ppc)    basic_machine=powerpc-unknown
    927                 ;;
    928         ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
     967        ppc | ppcbe)    basic_machine=powerpc-unknown
     968                ;;
     969        ppc-* | ppcbe-*)
     970                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    929971                ;;
    930972        ppcle | powerpclittle | ppc-le | powerpc-little)
     
    10201062                os=-sysv4
    10211063                ;;
     1064        strongarm-* | thumb-*)
     1065                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
     1066                ;;
    10221067        sun2)
    10231068                basic_machine=m68000-sun
     
    10761121                os=-unicos
    10771122                ;;
    1078         tic54x | c54x*)
    1079                 basic_machine=tic54x-unknown
    1080                 os=-coff
    1081                 ;;
    1082         tic55x | c55x*)
    1083                 basic_machine=tic55x-unknown
    1084                 os=-coff
    1085                 ;;
    1086         tic6x | c6x*)
    1087                 basic_machine=tic6x-unknown
    1088                 os=-coff
    1089                 ;;
    1090         # This must be matched before tile*.
    1091         tilegx*)
     1123        # This must be matched before tile*.
     1124        tilegx*)
    10921125                basic_machine=tilegx-unknown
    10931126                os=-linux-gnu
     
    11631196        xps | xps100)
    11641197                basic_machine=xps100-honeywell
     1198                ;;
     1199        xscale-* | xscalee[bl]-*)
     1200                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
    11651201                ;;
    11661202        ymp)
     
    12611297then
    12621298case $os in
    1263         # First match some system type aliases
    1264         # that might get confused with valid system types.
     1299        # First match some system type aliases
     1300        # that might get confused with valid system types.
    12651301        # -solaris* is a basic system type, with this one exception.
    1266         -auroraux)
    1267                 os=-auroraux
     1302        -auroraux)
     1303                os=-auroraux
    12681304                ;;
    12691305        -solaris1 | -solaris1.*)
     
    13021338              | -chorusos* | -chorusrdb* | -cegcc* \
    13031339              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1304               | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
     1340              | -mingw32* | -linux-gnu* | -linux-android* \
     1341              | -linux-newlib* | -linux-uclibc* \
    13051342              | -uxpv* | -beos* | -mpeix* | -udk* \
    13061343              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
     
    13491386                os=-openedition
    13501387                ;;
    1351         -os400*)
     1388        -os400*)
    13521389                os=-os400
    13531390                ;;
     
    13981435                os=-sysv4
    13991436                ;;
    1400         -tpf*)
     1437        -tpf*)
    14011438                os=-tpf
    14021439                ;;
     
    14431480                os=-dicos
    14441481                ;;
    1445         -nacl*)
    1446                 ;;
     1482        -nacl*)
     1483                ;;
    14471484        -none)
    14481485                ;;
     
    14671504
    14681505case $basic_machine in
    1469         score-*)
     1506        score-*)
    14701507                os=-elf
    14711508                ;;
    1472         spu-*)
     1509        spu-*)
    14731510                os=-elf
    14741511                ;;
     
    14821519                os=-aout
    14831520                ;;
    1484         c4x-* | tic4x-*)
    1485                 os=-coff
     1521        c4x-* | tic4x-*)
     1522                os=-coff
     1523                ;;
     1524        tic54x-*)
     1525                os=-coff
     1526                ;;
     1527        tic55x-*)
     1528                os=-coff
     1529                ;;
     1530        tic6x-*)
     1531                os=-coff
    14861532                ;;
    14871533        # This must come before the *-dec entry.
     
    15101556                os=-aout
    15111557                ;;
    1512         mep-*)
     1558        mep-*)
    15131559                os=-elf
    15141560                ;;
     
    15371583                os=-aix
    15381584                ;;
    1539         *-knuth)
     1585        *-knuth)
    15401586                os=-mmixware
    15411587                ;;
  • trunk/FACT++/.aux_dir/ltmain.sh

    r10591 r12832  
    1 # Generated from ltmain.m4sh.
    2 
    3 # ltmain.sh (GNU libtool) 2.2.6b
     1
     2# libtool (GNU libtool) 2.4
    43# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    54
    6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
     5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
     6# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    77# This is free software; see the source for copying conditions.  There is NO
    88# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    3333# Provide generalized library-building support services.
    3434#
    35 #     --config             show all configuration variables
    36 #     --debug              enable verbose shell tracing
    37 # -n, --dry-run            display commands without modifying any files
    38 #     --features           display basic configuration information and exit
    39 #     --mode=MODE          use operation mode MODE
    40 #     --preserve-dup-deps  don't remove duplicate dependency libraries
    41 #     --quiet, --silent    don't print informational messages
    42 #     --tag=TAG            use configuration variables from tag TAG
    43 # -v, --verbose            print informational messages (default)
    44 #     --version            print version information
    45 # -h, --help               print short or long help message
     35#       --config             show all configuration variables
     36#       --debug              enable verbose shell tracing
     37#   -n, --dry-run            display commands without modifying any files
     38#       --features           display basic configuration information and exit
     39#       --mode=MODE          use operation mode MODE
     40#       --preserve-dup-deps  don't remove duplicate dependency libraries
     41#       --quiet, --silent    don't print informational messages
     42#       --no-quiet, --no-silent
     43#                            print informational messages (default)
     44#       --tag=TAG            use configuration variables from tag TAG
     45#   -v, --verbose            print more informational messages than default
     46#       --no-verbose         don't print the extra informational messages
     47#       --version            print version information
     48#   -h, --help, --help-all   print short, long, or detailed help message
    4649#
    4750# MODE must be one of the following:
    4851#
    49 #       clean              remove files from the build directory
    50 #       compile            compile a source file into a libtool object
    51 #       execute            automatically set library path, then run a program
    52 #       finish             complete the installation of libtool libraries
    53 #       install            install libraries or executables
    54 #       link               create a library or an executable
    55 #       uninstall          remove libraries from an installed directory
     52#         clean              remove files from the build directory
     53#         compile            compile a source file into a libtool object
     54#         execute            automatically set library path, then run a program
     55#         finish             complete the installation of libtool libraries
     56#         install            install libraries or executables
     57#         link               create a library or an executable
     58#         uninstall          remove libraries from an installed directory
    5659#
    57 # MODE-ARGS vary depending on the MODE.
     60# MODE-ARGS vary depending on the MODE.  When passed as first option,
     61# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
    5862# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
    5963#
     
    6165# include the following information:
    6266#
    63 #       host-triplet:   $host
    64 #       shell:          $SHELL
    65 #       compiler:               $LTCC
    66 #       compiler flags:         $LTCFLAGS
    67 #       linker:         $LD (gnu? $with_gnu_ld)
    68 #       $progname:              (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
    69 #       automake:               $automake_version
    70 #       autoconf:               $autoconf_version
     67#         host-triplet: $host
     68#         shell:                $SHELL
     69#         compiler:             $LTCC
     70#         compiler flags:               $LTCFLAGS
     71#         linker:               $LD (gnu? $with_gnu_ld)
     72#         $progname:    (GNU libtool) 2.4 Debian-2.4-2ubuntu1
     73#         automake:     $automake_version
     74#         autoconf:     $autoconf_version
    7175#
    7276# Report bugs to <bug-libtool@gnu.org>.
    73 
    74 PROGRAM=ltmain.sh
     77# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
     78# General help using GNU software: <http://www.gnu.org/gethelp/>.
     79
     80PROGRAM=libtool
    7581PACKAGE=libtool
    76 VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
     82VERSION="2.4 Debian-2.4-2ubuntu1"
    7783TIMESTAMP=""
    78 package_revision=1.3017
     84package_revision=1.3293
    7985
    8086# Be Bourne compatible
     
    9298DUALCASE=1; export DUALCASE # for MKS sh
    9399
     100# A function that is used when there is no print builtin or printf.
     101func_fallback_echo ()
     102{
     103  eval 'cat <<_LTECHO_EOF
     104$1
     105_LTECHO_EOF'
     106}
     107
    94108# NLS nuisances: We save the old values to restore during execute mode.
    95 # Only set LANG and LC_ALL to C if already set.
    96 # These must not be set unconditionally because not all systems understand
    97 # e.g. LANG=C (notably SCO).
    98109lt_user_locale=
    99110lt_safe_locale=
     
    108119        fi"
    109120done
     121LC_ALL=C
     122LANGUAGE=C
     123export LANGUAGE LC_ALL
    110124
    111125$lt_unset CDPATH
    112126
    113127
     128# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
     129# is ksh but when the shell is invoked as "sh" and the current value of
     130# the _XPG environment variable is not equal to 1 (one), the special
     131# positional parameter $0, within a function call, is the name of the
     132# function.
     133progpath="$0"
    114134
    115135
    116136
    117137: ${CP="cp -f"}
    118 : ${ECHO="echo"}
     138test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
    119139: ${EGREP="/bin/grep -E"}
    120140: ${FGREP="/bin/grep -F"}
     
    144164dirname="s,/[^/]*$,,"
    145165basename="s,^.*/,,"
     166
     167# func_dirname file append nondir_replacement
     168# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
     169# otherwise set result to NONDIR_REPLACEMENT.
     170func_dirname ()
     171{
     172    func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
     173    if test "X$func_dirname_result" = "X${1}"; then
     174      func_dirname_result="${3}"
     175    else
     176      func_dirname_result="$func_dirname_result${2}"
     177    fi
     178} # func_dirname may be replaced by extended shell implementation
     179
     180
     181# func_basename file
     182func_basename ()
     183{
     184    func_basename_result=`$ECHO "${1}" | $SED "$basename"`
     185} # func_basename may be replaced by extended shell implementation
     186
    146187
    147188# func_dirname_and_basename file append nondir_replacement
     
    159200func_dirname_and_basename ()
    160201{
    161   # Extract subdirectory from the argument.
    162   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    163   if test "X$func_dirname_result" = "X${1}"; then
    164     func_dirname_result="${3}"
    165   else
    166     func_dirname_result="$func_dirname_result${2}"
     202    # Extract subdirectory from the argument.
     203    func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
     204    if test "X$func_dirname_result" = "X${1}"; then
     205      func_dirname_result="${3}"
     206    else
     207      func_dirname_result="$func_dirname_result${2}"
     208    fi
     209    func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
     210} # func_dirname_and_basename may be replaced by extended shell implementation
     211
     212
     213# func_stripname prefix suffix name
     214# strip PREFIX and SUFFIX off of NAME.
     215# PREFIX and SUFFIX must not contain globbing or regex special
     216# characters, hashes, percent signs, but SUFFIX may contain a leading
     217# dot (in which case that matches only a dot).
     218# func_strip_suffix prefix name
     219func_stripname ()
     220{
     221    case ${2} in
     222      .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     223      *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     224    esac
     225} # func_stripname may be replaced by extended shell implementation
     226
     227
     228# These SED scripts presuppose an absolute path with a trailing slash.
     229pathcar='s,^/\([^/]*\).*$,\1,'
     230pathcdr='s,^/[^/]*,,'
     231removedotparts=':dotsl
     232                s@/\./@/@g
     233                t dotsl
     234                s,/\.$,/,'
     235collapseslashes='s@/\{1,\}@/@g'
     236finalslash='s,/*$,/,'
     237
     238# func_normal_abspath PATH
     239# Remove doubled-up and trailing slashes, "." path components,
     240# and cancel out any ".." path components in PATH after making
     241# it an absolute path.
     242#             value returned in "$func_normal_abspath_result"
     243func_normal_abspath ()
     244{
     245  # Start from root dir and reassemble the path.
     246  func_normal_abspath_result=
     247  func_normal_abspath_tpath=$1
     248  func_normal_abspath_altnamespace=
     249  case $func_normal_abspath_tpath in
     250    "")
     251      # Empty path, that just means $cwd.
     252      func_stripname '' '/' "`pwd`"
     253      func_normal_abspath_result=$func_stripname_result
     254      return
     255    ;;
     256    # The next three entries are used to spot a run of precisely
     257    # two leading slashes without using negated character classes;
     258    # we take advantage of case's first-match behaviour.
     259    ///*)
     260      # Unusual form of absolute path, do nothing.
     261    ;;
     262    //*)
     263      # Not necessarily an ordinary path; POSIX reserves leading '//'
     264      # and for example Cygwin uses it to access remote file shares
     265      # over CIFS/SMB, so we conserve a leading double slash if found.
     266      func_normal_abspath_altnamespace=/
     267    ;;
     268    /*)
     269      # Absolute path, do nothing.
     270    ;;
     271    *)
     272      # Relative path, prepend $cwd.
     273      func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
     274    ;;
     275  esac
     276  # Cancel out all the simple stuff to save iterations.  We also want
     277  # the path to end with a slash for ease of parsing, so make sure
     278  # there is one (and only one) here.
     279  func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     280        -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
     281  while :; do
     282    # Processed it all yet?
     283    if test "$func_normal_abspath_tpath" = / ; then
     284      # If we ascended to the root using ".." the result may be empty now.
     285      if test -z "$func_normal_abspath_result" ; then
     286        func_normal_abspath_result=/
     287      fi
     288      break
     289    fi
     290    func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
     291        -e "$pathcar"`
     292    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     293        -e "$pathcdr"`
     294    # Figure out what to do with it
     295    case $func_normal_abspath_tcomponent in
     296      "")
     297        # Trailing empty path component, ignore it.
     298      ;;
     299      ..)
     300        # Parent dir; strip last assembled component from result.
     301        func_dirname "$func_normal_abspath_result"
     302        func_normal_abspath_result=$func_dirname_result
     303      ;;
     304      *)
     305        # Actual path component, append it.
     306        func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
     307      ;;
     308    esac
     309  done
     310  # Restore leading double-slash if one was found on entry.
     311  func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
     312}
     313
     314# func_relative_path SRCDIR DSTDIR
     315# generates a relative path from SRCDIR to DSTDIR, with a trailing
     316# slash if non-empty, suitable for immediately appending a filename
     317# without needing to append a separator.
     318#             value returned in "$func_relative_path_result"
     319func_relative_path ()
     320{
     321  func_relative_path_result=
     322  func_normal_abspath "$1"
     323  func_relative_path_tlibdir=$func_normal_abspath_result
     324  func_normal_abspath "$2"
     325  func_relative_path_tbindir=$func_normal_abspath_result
     326
     327  # Ascend the tree starting from libdir
     328  while :; do
     329    # check if we have found a prefix of bindir
     330    case $func_relative_path_tbindir in
     331      $func_relative_path_tlibdir)
     332        # found an exact match
     333        func_relative_path_tcancelled=
     334        break
     335        ;;
     336      $func_relative_path_tlibdir*)
     337        # found a matching prefix
     338        func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
     339        func_relative_path_tcancelled=$func_stripname_result
     340        if test -z "$func_relative_path_result"; then
     341          func_relative_path_result=.
     342        fi
     343        break
     344        ;;
     345      *)
     346        func_dirname $func_relative_path_tlibdir
     347        func_relative_path_tlibdir=${func_dirname_result}
     348        if test "x$func_relative_path_tlibdir" = x ; then
     349          # Have to descend all the way to the root!
     350          func_relative_path_result=../$func_relative_path_result
     351          func_relative_path_tcancelled=$func_relative_path_tbindir
     352          break
     353        fi
     354        func_relative_path_result=../$func_relative_path_result
     355        ;;
     356    esac
     357  done
     358
     359  # Now calculate path; take care to avoid doubling-up slashes.
     360  func_stripname '' '/' "$func_relative_path_result"
     361  func_relative_path_result=$func_stripname_result
     362  func_stripname '/' '/' "$func_relative_path_tcancelled"
     363  if test "x$func_stripname_result" != x ; then
     364    func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
    167365  fi
    168   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    169 }
    170 
    171 # Generated shell functions inserted here.
    172 
    173 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    174 # is ksh but when the shell is invoked as "sh" and the current value of
    175 # the _XPG environment variable is not equal to 1 (one), the special
    176 # positional parameter $0, within a function call, is the name of the
    177 # function.
    178 progpath="$0"
     366
     367  # Normalisation. If bindir is libdir, return empty string,
     368  # else relative path ending with a slash; either way, target
     369  # file name can be directly appended.
     370  if test ! -z "$func_relative_path_result"; then
     371    func_stripname './' '' "$func_relative_path_result/"
     372    func_relative_path_result=$func_stripname_result
     373  fi
     374}
    179375
    180376# The name of this program:
    181 # In the unlikely event $progname began with a '-', it would play havoc with
    182 # func_echo (imagine progname=-n), so we prepend ./ in that case:
    183377func_dirname_and_basename "$progpath"
    184378progname=$func_basename_result
    185 case $progname in
    186   -*) progname=./$progname ;;
    187 esac
    188379
    189380# Make sure we have an absolute path for reexecution:
     
    216407double_quote_subst='s/\(["`\\]\)/\\\1/g'
    217408
     409# Sed substitution that turns a string into a regex matching for the
     410# string literally.
     411sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
     412
     413# Sed substitution that converts a w32 file name or path
     414# which contains forward slashes, into one that contains
     415# (escaped) backslashes.  A very naive implementation.
     416lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
     417
    218418# Re-`\' parameter expansions in output of double_quote_subst that were
    219419# `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
     
    244444func_echo ()
    245445{
    246     $ECHO "$progname${mode+: }$mode: $*"
     446    $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
    247447}
    248448
     
    259459}
    260460
     461# func_echo_all arg...
     462# Invoke $ECHO with all args, space-separated.
     463func_echo_all ()
     464{
     465    $ECHO "$*"
     466}
     467
    261468# func_error arg...
    262469# Echo program name prefixed message to standard error.
    263470func_error ()
    264471{
    265     $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
     472    $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
    266473}
    267474
     
    270477func_warning ()
    271478{
    272     $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
     479    $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
    273480
    274481    # bash bug again:
     
    327534
    328535        # ...otherwise throw away the child directory and loop
    329         my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
     536        my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
    330537      done
    331       my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
     538      my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
    332539
    333540      save_mkdir_p_IFS="$IFS"; IFS=':'
     
    379586    fi
    380587
    381     $ECHO "X$my_tmpdir" | $Xsed
     588    $ECHO "$my_tmpdir"
    382589}
    383590
     
    393600    case $1 in
    394601      *[\\\`\"\$]*)
    395         func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
     602        func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
    396603      *)
    397604        func_quote_for_eval_unquoted_result="$1" ;;
     
    420627    case $1 in
    421628      *[\\\`\"]*)
    422         my_arg=`$ECHO "X$1" | $Xsed \
     629        my_arg=`$ECHO "$1" | $SED \
    423630            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
    424631      *)
     
    489696}
    490697
    491 
    492 
     698# func_tr_sh
     699# Turn $1 into a string suitable for a shell variable name.
     700# Result is stored in $func_tr_sh_result.  All characters
     701# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
     702# if $1 begins with a digit, a '_' is prepended as well.
     703func_tr_sh ()
     704{
     705  case $1 in
     706  [0-9]* | *[!a-zA-Z0-9_]*)
     707    func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
     708    ;;
     709  * )
     710    func_tr_sh_result=$1
     711    ;;
     712  esac
     713}
    493714
    494715
     
    497718func_version ()
    498719{
    499     $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
     720    $opt_debug
     721
     722    $SED -n '/(C)/!b go
     723        :more
     724        /\./!{
     725          N
     726          s/\n# / /
     727          b more
     728        }
     729        :go
     730        /^# '$PROGRAM' (GNU /,/# warranty; / {
    500731        s/^# //
    501732        s/^# *$//
     
    510741func_usage ()
    511742{
    512     $SED -n '/^# Usage:/,/# -h/ {
     743    $opt_debug
     744
     745    $SED -n '/^# Usage:/,/^#  *.*--help/ {
    513746        s/^# //
    514747        s/^# *$//
     
    516749        p
    517750    }' < "$progpath"
    518     $ECHO
     751    echo
    519752    $ECHO "run \`$progname --help | more' for full usage"
    520753    exit $?
    521754}
    522755
    523 # func_help
    524 # Echo long help message to standard output and exit.
     756# func_help [NOEXIT]
     757# Echo long help message to standard output and exit,
     758# unless 'noexit' is passed as argument.
    525759func_help ()
    526760{
     761    $opt_debug
     762
    527763    $SED -n '/^# Usage:/,/# Report bugs to/ {
     764        :print
    528765        s/^# //
    529766        s/^# *$//
     
    538775        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
    539776        p
    540      }' < "$progpath"
    541     exit $?
     777        d
     778     }
     779     /^# .* home page:/b print
     780     /^# General help using/b print
     781     ' < "$progpath"
     782    ret=$?
     783    if test -z "$1"; then
     784      exit $ret
     785    fi
    542786}
    543787
     
    547791func_missing_arg ()
    548792{
    549     func_error "missing argument for $1"
     793    $opt_debug
     794
     795    func_error "missing argument for $1."
    550796    exit_cmd=exit
    551797}
    552798
     799
     800# func_split_short_opt shortopt
     801# Set func_split_short_opt_name and func_split_short_opt_arg shell
     802# variables after splitting SHORTOPT after the 2nd character.
     803func_split_short_opt ()
     804{
     805    my_sed_short_opt='1s/^\(..\).*$/\1/;q'
     806    my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
     807
     808    func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
     809    func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
     810} # func_split_short_opt may be replaced by extended shell implementation
     811
     812
     813# func_split_long_opt longopt
     814# Set func_split_long_opt_name and func_split_long_opt_arg shell
     815# variables after splitting LONGOPT at the `=' sign.
     816func_split_long_opt ()
     817{
     818    my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
     819    my_sed_long_arg='1s/^--[^=]*=//'
     820
     821    func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
     822    func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
     823} # func_split_long_opt may be replaced by extended shell implementation
     824
    553825exit_cmd=:
    554826
     
    556828
    557829
    558 
    559 # Check that we have a working $ECHO.
    560 if test "X$1" = X--no-reexec; then
    561   # Discard the --no-reexec flag, and continue.
    562   shift
    563 elif test "X$1" = X--fallback-echo; then
    564   # Avoid inline document here, it may be left over
    565   :
    566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
    567   # Yippee, $ECHO works!
    568   :
    569 else
    570   # Restart under the correct shell, and then maybe $ECHO will work.
    571   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
    572 fi
    573 
    574 if test "X$1" = X--fallback-echo; then
    575   # used as fallback echo
    576   shift
    577   cat <<EOF
    578 $*
    579 EOF
    580   exit $EXIT_SUCCESS
    581 fi
    582830
    583831magic="%%%MAGIC variable%%%"
     
    585833
    586834# Global variables.
    587 # $mode is unset
    588835nonopt=
    589 execute_dlfiles=
    590836preserve_args=
    591837lo2o="s/\\.lo\$/.${objext}/"
     
    594840extracted_serial=0
    595841
    596 opt_dry_run=false
    597 opt_duplicate_deps=false
    598 opt_silent=false
    599 opt_debug=:
    600 
    601842# If this variable is set in any of the actions, the command in it
    602843# will be execed at the end.  This prevents here-documents from being
     
    604845exec_cmd=
    605846
     847# func_append var value
     848# Append VALUE to the end of shell variable VAR.
     849func_append ()
     850{
     851    eval "${1}=\$${1}\${2}"
     852} # func_append may be replaced by extended shell implementation
     853
     854# func_append_quoted var value
     855# Quote VALUE and append to the end of shell variable VAR, separated
     856# by a space.
     857func_append_quoted ()
     858{
     859    func_quote_for_eval "${2}"
     860    eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
     861} # func_append_quoted may be replaced by extended shell implementation
     862
     863
     864# func_arith arithmetic-term...
     865func_arith ()
     866{
     867    func_arith_result=`expr "${@}"`
     868} # func_arith may be replaced by extended shell implementation
     869
     870
     871# func_len string
     872# STRING may not start with a hyphen.
     873func_len ()
     874{
     875    func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
     876} # func_len may be replaced by extended shell implementation
     877
     878
     879# func_lo2o object
     880func_lo2o ()
     881{
     882    func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
     883} # func_lo2o may be replaced by extended shell implementation
     884
     885
     886# func_xform libobj-or-source
     887func_xform ()
     888{
     889    func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
     890} # func_xform may be replaced by extended shell implementation
     891
     892
    606893# func_fatal_configuration arg...
    607894# Echo program name prefixed message to standard error, followed by
     
    637924func_features ()
    638925{
    639     $ECHO "host: $host"
     926    echo "host: $host"
    640927    if test "$build_libtool_libs" = yes; then
    641       $ECHO "enable shared libraries"
     928      echo "enable shared libraries"
    642929    else
    643       $ECHO "disable shared libraries"
     930      echo "disable shared libraries"
    644931    fi
    645932    if test "$build_old_libs" = yes; then
    646       $ECHO "enable static libraries"
     933      echo "enable static libraries"
    647934    else
    648       $ECHO "disable static libraries"
     935      echo "disable static libraries"
    649936    fi
    650937
     
    691978      ;;
    692979  esac
    693 }
    694 
    695 # Parse options once, thoroughly.  This comes as soon as possible in
    696 # the script to make things like `libtool --version' happen quickly.
    697 {
    698 
    699   # Shorthand for --mode=foo, only valid as the first argument
    700   case $1 in
    701   clean|clea|cle|cl)
    702     shift; set dummy --mode clean ${1+"$@"}; shift
    703     ;;
    704   compile|compil|compi|comp|com|co|c)
    705     shift; set dummy --mode compile ${1+"$@"}; shift
    706     ;;
    707   execute|execut|execu|exec|exe|ex|e)
    708     shift; set dummy --mode execute ${1+"$@"}; shift
    709     ;;
    710   finish|finis|fini|fin|fi|f)
    711     shift; set dummy --mode finish ${1+"$@"}; shift
    712     ;;
    713   install|instal|insta|inst|ins|in|i)
    714     shift; set dummy --mode install ${1+"$@"}; shift
    715     ;;
    716   link|lin|li|l)
    717     shift; set dummy --mode link ${1+"$@"}; shift
    718     ;;
    719   uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
    720     shift; set dummy --mode uninstall ${1+"$@"}; shift
    721     ;;
    722   esac
    723 
    724   # Parse non-mode specific arguments:
    725   while test "$#" -gt 0; do
    726     opt="$1"
    727     shift
    728 
    729     case $opt in
    730       --config)         func_config                                     ;;
    731 
    732       --debug)          preserve_args="$preserve_args $opt"
    733                         func_echo "enabling shell trace mode"
    734                         opt_debug='set -x'
    735                         $opt_debug
    736                         ;;
    737 
    738       -dlopen)          test "$#" -eq 0 && func_missing_arg "$opt" && break
    739                         execute_dlfiles="$execute_dlfiles $1"
    740                         shift
    741                         ;;
    742 
    743       --dry-run | -n)   opt_dry_run=:                                   ;;
    744       --features)       func_features                                   ;;
    745       --finish)         mode="finish"                                   ;;
    746 
    747       --mode)           test "$#" -eq 0 && func_missing_arg "$opt" && break
    748                         case $1 in
    749                           # Valid mode arguments:
    750                           clean)        ;;
    751                           compile)      ;;
    752                           execute)      ;;
    753                           finish)       ;;
    754                           install)      ;;
    755                           link)         ;;
    756                           relink)       ;;
    757                           uninstall)    ;;
    758 
    759                           # Catch anything else as an error
    760                           *) func_error "invalid argument for $opt"
    761                              exit_cmd=exit
    762                              break
    763                              ;;
    764                         esac
    765 
    766                         mode="$1"
    767                         shift
    768                         ;;
    769 
    770       --preserve-dup-deps)
    771                         opt_duplicate_deps=:                            ;;
    772 
    773       --quiet|--silent) preserve_args="$preserve_args $opt"
    774                         opt_silent=:
    775                         ;;
    776 
    777       --verbose| -v)    preserve_args="$preserve_args $opt"
    778                         opt_silent=false
    779                         ;;
    780 
    781       --tag)            test "$#" -eq 0 && func_missing_arg "$opt" && break
    782                         preserve_args="$preserve_args $opt $1"
    783                         func_enable_tag "$1"    # tagname is set here
    784                         shift
    785                         ;;
    786 
    787       # Separate optargs to long options:
    788       -dlopen=*|--mode=*|--tag=*)
    789                         func_opt_split "$opt"
    790                         set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
    791                         shift
    792                         ;;
    793 
    794       -\?|-h)           func_usage                                      ;;
    795       --help)           opt_help=:                                      ;;
    796       --version)        func_version                                    ;;
    797 
    798       -*)               func_fatal_help "unrecognized option \`$opt'"   ;;
    799 
    800       *)                nonopt="$opt"
    801                         break
    802                         ;;
    803     esac
    804   done
    805 
    806 
    807   case $host in
    808     *cygwin* | *mingw* | *pw32* | *cegcc*)
    809       # don't eliminate duplications in $postdeps and $predeps
    810       opt_duplicate_compiler_generated_deps=:
    811       ;;
    812     *)
    813       opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
    814       ;;
    815   esac
    816 
    817   # Having warned about all mis-specified options, bail out if
    818   # anything was wrong.
    819   $exit_cmd $EXIT_FAILURE
    820980}
    821981
     
    8561016
    8571017
     1018# Shorthand for --mode=foo, only valid as the first argument
     1019case $1 in
     1020clean|clea|cle|cl)
     1021  shift; set dummy --mode clean ${1+"$@"}; shift
     1022  ;;
     1023compile|compil|compi|comp|com|co|c)
     1024  shift; set dummy --mode compile ${1+"$@"}; shift
     1025  ;;
     1026execute|execut|execu|exec|exe|ex|e)
     1027  shift; set dummy --mode execute ${1+"$@"}; shift
     1028  ;;
     1029finish|finis|fini|fin|fi|f)
     1030  shift; set dummy --mode finish ${1+"$@"}; shift
     1031  ;;
     1032install|instal|insta|inst|ins|in|i)
     1033  shift; set dummy --mode install ${1+"$@"}; shift
     1034  ;;
     1035link|lin|li|l)
     1036  shift; set dummy --mode link ${1+"$@"}; shift
     1037  ;;
     1038uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
     1039  shift; set dummy --mode uninstall ${1+"$@"}; shift
     1040  ;;
     1041esac
     1042
     1043
     1044
     1045# Option defaults:
     1046opt_debug=:
     1047opt_dry_run=false
     1048opt_config=false
     1049opt_preserve_dup_deps=false
     1050opt_features=false
     1051opt_finish=false
     1052opt_help=false
     1053opt_help_all=false
     1054opt_silent=:
     1055opt_verbose=:
     1056opt_silent=false
     1057opt_verbose=false
     1058
     1059
     1060# Parse options once, thoroughly.  This comes as soon as possible in the
     1061# script to make things like `--version' happen as quickly as we can.
     1062{
     1063  # this just eases exit handling
     1064  while test $# -gt 0; do
     1065    opt="$1"
     1066    shift
     1067    case $opt in
     1068      --debug|-x)       opt_debug='set -x'
     1069                        func_echo "enabling shell trace mode"
     1070                        $opt_debug
     1071                        ;;
     1072      --dry-run|--dryrun|-n)
     1073                        opt_dry_run=:
     1074                        ;;
     1075      --config)
     1076                        opt_config=:
     1077func_config
     1078                        ;;
     1079      --dlopen|-dlopen)
     1080                        optarg="$1"
     1081                        opt_dlopen="${opt_dlopen+$opt_dlopen
     1082}$optarg"
     1083                        shift
     1084                        ;;
     1085      --preserve-dup-deps)
     1086                        opt_preserve_dup_deps=:
     1087                        ;;
     1088      --features)
     1089                        opt_features=:
     1090func_features
     1091                        ;;
     1092      --finish)
     1093                        opt_finish=:
     1094set dummy --mode finish ${1+"$@"}; shift
     1095                        ;;
     1096      --help)
     1097                        opt_help=:
     1098                        ;;
     1099      --help-all)
     1100                        opt_help_all=:
     1101opt_help=': help-all'
     1102                        ;;
     1103      --mode)
     1104                        test $# = 0 && func_missing_arg $opt && break
     1105                        optarg="$1"
     1106                        opt_mode="$optarg"
     1107case $optarg in
     1108  # Valid mode arguments:
     1109  clean|compile|execute|finish|install|link|relink|uninstall) ;;
     1110
     1111  # Catch anything else as an error
     1112  *) func_error "invalid argument for $opt"
     1113     exit_cmd=exit
     1114     break
     1115     ;;
     1116esac
     1117                        shift
     1118                        ;;
     1119      --no-silent|--no-quiet)
     1120                        opt_silent=false
     1121func_append preserve_args " $opt"
     1122                        ;;
     1123      --no-verbose)
     1124                        opt_verbose=false
     1125func_append preserve_args " $opt"
     1126                        ;;
     1127      --silent|--quiet)
     1128                        opt_silent=:
     1129func_append preserve_args " $opt"
     1130        opt_verbose=false
     1131                        ;;
     1132      --verbose|-v)
     1133                        opt_verbose=:
     1134func_append preserve_args " $opt"
     1135opt_silent=false
     1136                        ;;
     1137      --tag)
     1138                        test $# = 0 && func_missing_arg $opt && break
     1139                        optarg="$1"
     1140                        opt_tag="$optarg"
     1141func_append preserve_args " $opt $optarg"
     1142func_enable_tag "$optarg"
     1143                        shift
     1144                        ;;
     1145
     1146      -\?|-h)           func_usage                              ;;
     1147      --help)           func_help                               ;;
     1148      --version)        func_version                            ;;
     1149
     1150      # Separate optargs to long options:
     1151      --*=*)
     1152                        func_split_long_opt "$opt"
     1153                        set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
     1154                        shift
     1155                        ;;
     1156
     1157      # Separate non-argument short options:
     1158      -\?*|-h*|-n*|-v*)
     1159                        func_split_short_opt "$opt"
     1160                        set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
     1161                        shift
     1162                        ;;
     1163
     1164      --)               break                                   ;;
     1165      -*)               func_fatal_help "unrecognized option \`$opt'" ;;
     1166      *)                set dummy "$opt" ${1+"$@"};     shift; break  ;;
     1167    esac
     1168  done
     1169
     1170  # Validate options:
     1171
     1172  # save first non-option argument
     1173  if test "$#" -gt 0; then
     1174    nonopt="$opt"
     1175    shift
     1176  fi
     1177
     1178  # preserve --debug
     1179  test "$opt_debug" = : || func_append preserve_args " --debug"
     1180
     1181  case $host in
     1182    *cygwin* | *mingw* | *pw32* | *cegcc*)
     1183      # don't eliminate duplications in $postdeps and $predeps
     1184      opt_duplicate_compiler_generated_deps=:
     1185      ;;
     1186    *)
     1187      opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
     1188      ;;
     1189  esac
     1190
     1191  $opt_help || {
     1192    # Sanity checks first:
     1193    func_check_version_match
     1194
     1195    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
     1196      func_fatal_configuration "not configured to build any kind of library"
     1197    fi
     1198
     1199    # Darwin sucks
     1200    eval std_shrext=\"$shrext_cmds\"
     1201
     1202    # Only execute mode is allowed to have -dlopen flags.
     1203    if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
     1204      func_error "unrecognized option \`-dlopen'"
     1205      $ECHO "$help" 1>&2
     1206      exit $EXIT_FAILURE
     1207    fi
     1208
     1209    # Change the help message to a mode-specific one.
     1210    generic_help="$help"
     1211    help="Try \`$progname --help --mode=$opt_mode' for more information."
     1212  }
     1213
     1214
     1215  # Bail if the options were screwed
     1216  $exit_cmd $EXIT_FAILURE
     1217}
     1218
     1219
     1220
     1221
    8581222## ----------- ##
    8591223##    Main.    ##
    8601224## ----------- ##
    861 
    862 $opt_help || {
    863   # Sanity checks first:
    864   func_check_version_match
    865 
    866   if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
    867     func_fatal_configuration "not configured to build any kind of library"
    868   fi
    869 
    870   test -z "$mode" && func_fatal_error "error: you must specify a MODE."
    871 
    872 
    873   # Darwin sucks
    874   eval std_shrext=\"$shrext_cmds\"
    875 
    876 
    877   # Only execute mode is allowed to have -dlopen flags.
    878   if test -n "$execute_dlfiles" && test "$mode" != execute; then
    879     func_error "unrecognized option \`-dlopen'"
    880     $ECHO "$help" 1>&2
    881     exit $EXIT_FAILURE
    882   fi
    883 
    884   # Change the help message to a mode-specific one.
    885   generic_help="$help"
    886   help="Try \`$progname --help --mode=$mode' for more information."
    887 }
    888 
    8891225
    8901226# func_lalib_p file
     
    9511287func_ltwrapper_scriptname ()
    9521288{
    953     func_ltwrapper_scriptname_result=""
    954     if func_ltwrapper_executable_p "$1"; then
    955         func_dirname_and_basename "$1" "" "."
    956         func_stripname '' '.exe' "$func_basename_result"
    957         func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
    958     fi
     1289    func_dirname_and_basename "$1" "" "."
     1290    func_stripname '' '.exe' "$func_basename_result"
     1291    func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
    9591292}
    9601293
     
    10021335
    10031336
     1337# func_resolve_sysroot PATH
     1338# Replace a leading = in PATH with a sysroot.  Store the result into
     1339# func_resolve_sysroot_result
     1340func_resolve_sysroot ()
     1341{
     1342  func_resolve_sysroot_result=$1
     1343  case $func_resolve_sysroot_result in
     1344  =*)
     1345    func_stripname '=' '' "$func_resolve_sysroot_result"
     1346    func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
     1347    ;;
     1348  esac
     1349}
     1350
     1351# func_replace_sysroot PATH
     1352# If PATH begins with the sysroot, replace it with = and
     1353# store the result into func_replace_sysroot_result.
     1354func_replace_sysroot ()
     1355{
     1356  case "$lt_sysroot:$1" in
     1357  ?*:"$lt_sysroot"*)
     1358    func_stripname "$lt_sysroot" '' "$1"
     1359    func_replace_sysroot_result="=$func_stripname_result"
     1360    ;;
     1361  *)
     1362    # Including no sysroot.
     1363    func_replace_sysroot_result=$1
     1364    ;;
     1365  esac
     1366}
     1367
    10041368# func_infer_tag arg
    10051369# Infer tagged configuration to use if any are available and
     
    10141378      CC_quoted=
    10151379      for arg in $CC; do
    1016         func_quote_for_eval "$arg"
    1017         CC_quoted="$CC_quoted $func_quote_for_eval_result"
     1380        func_append_quoted CC_quoted "$arg"
    10181381      done
     1382      CC_expanded=`func_echo_all $CC`
     1383      CC_quoted_expanded=`func_echo_all $CC_quoted`
    10191384      case $@ in
    10201385      # Blanks in the command may have been stripped by the calling shell,
    10211386      # but not from the CC environment variable when configure was run.
    1022       " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
     1387      " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1388      " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
    10231389      # Blanks at the start of $base_compile will cause this to fail
    10241390      # if we don't check for them as well.
     
    10311397            for arg in $CC; do
    10321398              # Double-quote args containing other shell metacharacters.
    1033               func_quote_for_eval "$arg"
    1034               CC_quoted="$CC_quoted $func_quote_for_eval_result"
     1399              func_append_quoted CC_quoted "$arg"
    10351400            done
     1401            CC_expanded=`func_echo_all $CC`
     1402            CC_quoted_expanded=`func_echo_all $CC_quoted`
    10361403            case "$@ " in
    1037               " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
     1404            " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1405            " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
    10381406              # The compiler in the base compile command matches
    10391407              # the one in the tagged configuration.
     
    10981466}
    10991467
     1468
     1469##################################################
     1470# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
     1471##################################################
     1472
     1473# func_convert_core_file_wine_to_w32 ARG
     1474# Helper function used by file name conversion functions when $build is *nix,
     1475# and $host is mingw, cygwin, or some other w32 environment. Relies on a
     1476# correctly configured wine environment available, with the winepath program
     1477# in $build's $PATH.
     1478#
     1479# ARG is the $build file name to be converted to w32 format.
     1480# Result is available in $func_convert_core_file_wine_to_w32_result, and will
     1481# be empty on error (or when ARG is empty)
     1482func_convert_core_file_wine_to_w32 ()
     1483{
     1484  $opt_debug
     1485  func_convert_core_file_wine_to_w32_result="$1"
     1486  if test -n "$1"; then
     1487    # Unfortunately, winepath does not exit with a non-zero error code, so we
     1488    # are forced to check the contents of stdout. On the other hand, if the
     1489    # command is not found, the shell will set an exit code of 127 and print
     1490    # *an error message* to stdout. So we must check for both error code of
     1491    # zero AND non-empty stdout, which explains the odd construction:
     1492    func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
     1493    if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
     1494      func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
     1495        $SED -e "$lt_sed_naive_backslashify"`
     1496    else
     1497      func_convert_core_file_wine_to_w32_result=
     1498    fi
     1499  fi
     1500}
     1501# end: func_convert_core_file_wine_to_w32
     1502
     1503
     1504# func_convert_core_path_wine_to_w32 ARG
     1505# Helper function used by path conversion functions when $build is *nix, and
     1506# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
     1507# configured wine environment available, with the winepath program in $build's
     1508# $PATH. Assumes ARG has no leading or trailing path separator characters.
     1509#
     1510# ARG is path to be converted from $build format to win32.
     1511# Result is available in $func_convert_core_path_wine_to_w32_result.
     1512# Unconvertible file (directory) names in ARG are skipped; if no directory names
     1513# are convertible, then the result may be empty.
     1514func_convert_core_path_wine_to_w32 ()
     1515{
     1516  $opt_debug
     1517  # unfortunately, winepath doesn't convert paths, only file names
     1518  func_convert_core_path_wine_to_w32_result=""
     1519  if test -n "$1"; then
     1520    oldIFS=$IFS
     1521    IFS=:
     1522    for func_convert_core_path_wine_to_w32_f in $1; do
     1523      IFS=$oldIFS
     1524      func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
     1525      if test -n "$func_convert_core_file_wine_to_w32_result" ; then
     1526        if test -z "$func_convert_core_path_wine_to_w32_result"; then
     1527          func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
     1528        else
     1529          func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
     1530        fi
     1531      fi
     1532    done
     1533    IFS=$oldIFS
     1534  fi
     1535}
     1536# end: func_convert_core_path_wine_to_w32
     1537
     1538
     1539# func_cygpath ARGS...
     1540# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
     1541# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
     1542# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
     1543# (2), returns the Cygwin file name or path in func_cygpath_result (input
     1544# file name or path is assumed to be in w32 format, as previously converted
     1545# from $build's *nix or MSYS format). In case (3), returns the w32 file name
     1546# or path in func_cygpath_result (input file name or path is assumed to be in
     1547# Cygwin format). Returns an empty string on error.
     1548#
     1549# ARGS are passed to cygpath, with the last one being the file name or path to
     1550# be converted.
     1551#
     1552# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
     1553# environment variable; do not put it in $PATH.
     1554func_cygpath ()
     1555{
     1556  $opt_debug
     1557  if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
     1558    func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
     1559    if test "$?" -ne 0; then
     1560      # on failure, ensure result is empty
     1561      func_cygpath_result=
     1562    fi
     1563  else
     1564    func_cygpath_result=
     1565    func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
     1566  fi
     1567}
     1568#end: func_cygpath
     1569
     1570
     1571# func_convert_core_msys_to_w32 ARG
     1572# Convert file name or path ARG from MSYS format to w32 format.  Return
     1573# result in func_convert_core_msys_to_w32_result.
     1574func_convert_core_msys_to_w32 ()
     1575{
     1576  $opt_debug
     1577  # awkward: cmd appends spaces to result
     1578  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
     1579    $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
     1580}
     1581#end: func_convert_core_msys_to_w32
     1582
     1583
     1584# func_convert_file_check ARG1 ARG2
     1585# Verify that ARG1 (a file name in $build format) was converted to $host
     1586# format in ARG2. Otherwise, emit an error message, but continue (resetting
     1587# func_to_host_file_result to ARG1).
     1588func_convert_file_check ()
     1589{
     1590  $opt_debug
     1591  if test -z "$2" && test -n "$1" ; then
     1592    func_error "Could not determine host file name corresponding to"
     1593    func_error "  \`$1'"
     1594    func_error "Continuing, but uninstalled executables may not work."
     1595    # Fallback:
     1596    func_to_host_file_result="$1"
     1597  fi
     1598}
     1599# end func_convert_file_check
     1600
     1601
     1602# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
     1603# Verify that FROM_PATH (a path in $build format) was converted to $host
     1604# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
     1605# func_to_host_file_result to a simplistic fallback value (see below).
     1606func_convert_path_check ()
     1607{
     1608  $opt_debug
     1609  if test -z "$4" && test -n "$3"; then
     1610    func_error "Could not determine the host path corresponding to"
     1611    func_error "  \`$3'"
     1612    func_error "Continuing, but uninstalled executables may not work."
     1613    # Fallback.  This is a deliberately simplistic "conversion" and
     1614    # should not be "improved".  See libtool.info.
     1615    if test "x$1" != "x$2"; then
     1616      lt_replace_pathsep_chars="s|$1|$2|g"
     1617      func_to_host_path_result=`echo "$3" |
     1618        $SED -e "$lt_replace_pathsep_chars"`
     1619    else
     1620      func_to_host_path_result="$3"
     1621    fi
     1622  fi
     1623}
     1624# end func_convert_path_check
     1625
     1626
     1627# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
     1628# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
     1629# and appending REPL if ORIG matches BACKPAT.
     1630func_convert_path_front_back_pathsep ()
     1631{
     1632  $opt_debug
     1633  case $4 in
     1634  $1 ) func_to_host_path_result="$3$func_to_host_path_result"
     1635    ;;
     1636  esac
     1637  case $4 in
     1638  $2 ) func_append func_to_host_path_result "$3"
     1639    ;;
     1640  esac
     1641}
     1642# end func_convert_path_front_back_pathsep
     1643
     1644
     1645##################################################
     1646# $build to $host FILE NAME CONVERSION FUNCTIONS #
     1647##################################################
     1648# invoked via `$to_host_file_cmd ARG'
     1649#
     1650# In each case, ARG is the path to be converted from $build to $host format.
     1651# Result will be available in $func_to_host_file_result.
     1652
     1653
     1654# func_to_host_file ARG
     1655# Converts the file name ARG from $build format to $host format. Return result
     1656# in func_to_host_file_result.
     1657func_to_host_file ()
     1658{
     1659  $opt_debug
     1660  $to_host_file_cmd "$1"
     1661}
     1662# end func_to_host_file
     1663
     1664
     1665# func_to_tool_file ARG LAZY
     1666# converts the file name ARG from $build format to toolchain format. Return
     1667# result in func_to_tool_file_result.  If the conversion in use is listed
     1668# in (the comma separated) LAZY, no conversion takes place.
     1669func_to_tool_file ()
     1670{
     1671  $opt_debug
     1672  case ,$2, in
     1673    *,"$to_tool_file_cmd",*)
     1674      func_to_tool_file_result=$1
     1675      ;;
     1676    *)
     1677      $to_tool_file_cmd "$1"
     1678      func_to_tool_file_result=$func_to_host_file_result
     1679      ;;
     1680  esac
     1681}
     1682# end func_to_tool_file
     1683
     1684
     1685# func_convert_file_noop ARG
     1686# Copy ARG to func_to_host_file_result.
     1687func_convert_file_noop ()
     1688{
     1689  func_to_host_file_result="$1"
     1690}
     1691# end func_convert_file_noop
     1692
     1693
     1694# func_convert_file_msys_to_w32 ARG
     1695# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1696# conversion to w32 is not available inside the cwrapper.  Returns result in
     1697# func_to_host_file_result.
     1698func_convert_file_msys_to_w32 ()
     1699{
     1700  $opt_debug
     1701  func_to_host_file_result="$1"
     1702  if test -n "$1"; then
     1703    func_convert_core_msys_to_w32 "$1"
     1704    func_to_host_file_result="$func_convert_core_msys_to_w32_result"
     1705  fi
     1706  func_convert_file_check "$1" "$func_to_host_file_result"
     1707}
     1708# end func_convert_file_msys_to_w32
     1709
     1710
     1711# func_convert_file_cygwin_to_w32 ARG
     1712# Convert file name ARG from Cygwin to w32 format.  Returns result in
     1713# func_to_host_file_result.
     1714func_convert_file_cygwin_to_w32 ()
     1715{
     1716  $opt_debug
     1717  func_to_host_file_result="$1"
     1718  if test -n "$1"; then
     1719    # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
     1720    # LT_CYGPATH in this case.
     1721    func_to_host_file_result=`cygpath -m "$1"`
     1722  fi
     1723  func_convert_file_check "$1" "$func_to_host_file_result"
     1724}
     1725# end func_convert_file_cygwin_to_w32
     1726
     1727
     1728# func_convert_file_nix_to_w32 ARG
     1729# Convert file name ARG from *nix to w32 format.  Requires a wine environment
     1730# and a working winepath. Returns result in func_to_host_file_result.
     1731func_convert_file_nix_to_w32 ()
     1732{
     1733  $opt_debug
     1734  func_to_host_file_result="$1"
     1735  if test -n "$1"; then
     1736    func_convert_core_file_wine_to_w32 "$1"
     1737    func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
     1738  fi
     1739  func_convert_file_check "$1" "$func_to_host_file_result"
     1740}
     1741# end func_convert_file_nix_to_w32
     1742
     1743
     1744# func_convert_file_msys_to_cygwin ARG
     1745# Convert file name ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
     1746# Returns result in func_to_host_file_result.
     1747func_convert_file_msys_to_cygwin ()
     1748{
     1749  $opt_debug
     1750  func_to_host_file_result="$1"
     1751  if test -n "$1"; then
     1752    func_convert_core_msys_to_w32 "$1"
     1753    func_cygpath -u "$func_convert_core_msys_to_w32_result"
     1754    func_to_host_file_result="$func_cygpath_result"
     1755  fi
     1756  func_convert_file_check "$1" "$func_to_host_file_result"
     1757}
     1758# end func_convert_file_msys_to_cygwin
     1759
     1760
     1761# func_convert_file_nix_to_cygwin ARG
     1762# Convert file name ARG from *nix to Cygwin format.  Requires Cygwin installed
     1763# in a wine environment, working winepath, and LT_CYGPATH set.  Returns result
     1764# in func_to_host_file_result.
     1765func_convert_file_nix_to_cygwin ()
     1766{
     1767  $opt_debug
     1768  func_to_host_file_result="$1"
     1769  if test -n "$1"; then
     1770    # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
     1771    func_convert_core_file_wine_to_w32 "$1"
     1772    func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
     1773    func_to_host_file_result="$func_cygpath_result"
     1774  fi
     1775  func_convert_file_check "$1" "$func_to_host_file_result"
     1776}
     1777# end func_convert_file_nix_to_cygwin
     1778
     1779
     1780#############################################
     1781# $build to $host PATH CONVERSION FUNCTIONS #
     1782#############################################
     1783# invoked via `$to_host_path_cmd ARG'
     1784#
     1785# In each case, ARG is the path to be converted from $build to $host format.
     1786# The result will be available in $func_to_host_path_result.
     1787#
     1788# Path separators are also converted from $build format to $host format.  If
     1789# ARG begins or ends with a path separator character, it is preserved (but
     1790# converted to $host format) on output.
     1791#
     1792# All path conversion functions are named using the following convention:
     1793#   file name conversion function    : func_convert_file_X_to_Y ()
     1794#   path conversion function         : func_convert_path_X_to_Y ()
     1795# where, for any given $build/$host combination the 'X_to_Y' value is the
     1796# same.  If conversion functions are added for new $build/$host combinations,
     1797# the two new functions must follow this pattern, or func_init_to_host_path_cmd
     1798# will break.
     1799
     1800
     1801# func_init_to_host_path_cmd
     1802# Ensures that function "pointer" variable $to_host_path_cmd is set to the
     1803# appropriate value, based on the value of $to_host_file_cmd.
     1804to_host_path_cmd=
     1805func_init_to_host_path_cmd ()
     1806{
     1807  $opt_debug
     1808  if test -z "$to_host_path_cmd"; then
     1809    func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
     1810    to_host_path_cmd="func_convert_path_${func_stripname_result}"
     1811  fi
     1812}
     1813
     1814
     1815# func_to_host_path ARG
     1816# Converts the path ARG from $build format to $host format. Return result
     1817# in func_to_host_path_result.
     1818func_to_host_path ()
     1819{
     1820  $opt_debug
     1821  func_init_to_host_path_cmd
     1822  $to_host_path_cmd "$1"
     1823}
     1824# end func_to_host_path
     1825
     1826
     1827# func_convert_path_noop ARG
     1828# Copy ARG to func_to_host_path_result.
     1829func_convert_path_noop ()
     1830{
     1831  func_to_host_path_result="$1"
     1832}
     1833# end func_convert_path_noop
     1834
     1835
     1836# func_convert_path_msys_to_w32 ARG
     1837# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1838# conversion to w32 is not available inside the cwrapper.  Returns result in
     1839# func_to_host_path_result.
     1840func_convert_path_msys_to_w32 ()
     1841{
     1842  $opt_debug
     1843  func_to_host_path_result="$1"
     1844  if test -n "$1"; then
     1845    # Remove leading and trailing path separator characters from ARG.  MSYS
     1846    # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
     1847    # and winepath ignores them completely.
     1848    func_stripname : : "$1"
     1849    func_to_host_path_tmp1=$func_stripname_result
     1850    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
     1851    func_to_host_path_result="$func_convert_core_msys_to_w32_result"
     1852    func_convert_path_check : ";" \
     1853      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1854    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1855  fi
     1856}
     1857# end func_convert_path_msys_to_w32
     1858
     1859
     1860# func_convert_path_cygwin_to_w32 ARG
     1861# Convert path ARG from Cygwin to w32 format.  Returns result in
     1862# func_to_host_file_result.
     1863func_convert_path_cygwin_to_w32 ()
     1864{
     1865  $opt_debug
     1866  func_to_host_path_result="$1"
     1867  if test -n "$1"; then
     1868    # See func_convert_path_msys_to_w32:
     1869    func_stripname : : "$1"
     1870    func_to_host_path_tmp1=$func_stripname_result
     1871    func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
     1872    func_convert_path_check : ";" \
     1873      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1874    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1875  fi
     1876}
     1877# end func_convert_path_cygwin_to_w32
     1878
     1879
     1880# func_convert_path_nix_to_w32 ARG
     1881# Convert path ARG from *nix to w32 format.  Requires a wine environment and
     1882# a working winepath.  Returns result in func_to_host_file_result.
     1883func_convert_path_nix_to_w32 ()
     1884{
     1885  $opt_debug
     1886  func_to_host_path_result="$1"
     1887  if test -n "$1"; then
     1888    # See func_convert_path_msys_to_w32:
     1889    func_stripname : : "$1"
     1890    func_to_host_path_tmp1=$func_stripname_result
     1891    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
     1892    func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
     1893    func_convert_path_check : ";" \
     1894      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1895    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1896  fi
     1897}
     1898# end func_convert_path_nix_to_w32
     1899
     1900
     1901# func_convert_path_msys_to_cygwin ARG
     1902# Convert path ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
     1903# Returns result in func_to_host_file_result.
     1904func_convert_path_msys_to_cygwin ()
     1905{
     1906  $opt_debug
     1907  func_to_host_path_result="$1"
     1908  if test -n "$1"; then
     1909    # See func_convert_path_msys_to_w32:
     1910    func_stripname : : "$1"
     1911    func_to_host_path_tmp1=$func_stripname_result
     1912    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
     1913    func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
     1914    func_to_host_path_result="$func_cygpath_result"
     1915    func_convert_path_check : : \
     1916      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1917    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
     1918  fi
     1919}
     1920# end func_convert_path_msys_to_cygwin
     1921
     1922
     1923# func_convert_path_nix_to_cygwin ARG
     1924# Convert path ARG from *nix to Cygwin format.  Requires Cygwin installed in a
     1925# a wine environment, working winepath, and LT_CYGPATH set.  Returns result in
     1926# func_to_host_file_result.
     1927func_convert_path_nix_to_cygwin ()
     1928{
     1929  $opt_debug
     1930  func_to_host_path_result="$1"
     1931  if test -n "$1"; then
     1932    # Remove leading and trailing path separator characters from
     1933    # ARG. msys behavior is inconsistent here, cygpath turns them
     1934    # into '.;' and ';.', and winepath ignores them completely.
     1935    func_stripname : : "$1"
     1936    func_to_host_path_tmp1=$func_stripname_result
     1937    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
     1938    func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
     1939    func_to_host_path_result="$func_cygpath_result"
     1940    func_convert_path_check : : \
     1941      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1942    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
     1943  fi
     1944}
     1945# end func_convert_path_nix_to_cygwin
     1946
     1947
    11001948# func_mode_compile arg...
    11011949func_mode_compile ()
     
    11381986
    11391987        -pie | -fpie | -fPIE)
    1140           pie_flag="$pie_flag $arg"
     1988          func_append pie_flag " $arg"
    11411989          continue
    11421990          ;;
    11431991
    11441992        -shared | -static | -prefer-pic | -prefer-non-pic)
    1145           later="$later $arg"
     1993          func_append later " $arg"
    11461994          continue
    11471995          ;;
     
    11642012          for arg in $args; do
    11652013            IFS="$save_ifs"
    1166             func_quote_for_eval "$arg"
    1167             lastarg="$lastarg $func_quote_for_eval_result"
     2014            func_append_quoted lastarg "$arg"
    11682015          done
    11692016          IFS="$save_ifs"
     
    11722019
    11732020          # Add the arguments to base_compile.
    1174           base_compile="$base_compile $lastarg"
     2021          func_append base_compile " $lastarg"
    11752022          continue
    11762023          ;;
     
    11882035
    11892036      # Aesthetically quote the previous argument.
    1190       func_quote_for_eval "$lastarg"
    1191       base_compile="$base_compile $func_quote_for_eval_result"
     2037      func_append_quoted base_compile "$lastarg"
    11922038    done # for arg
    11932039
     
    12142060    *.ada | *.adb | *.ads | *.asm | \
    12152061    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
    1216     *.[fF][09]? | *.for | *.java | *.obj | *.sx)
     2062    *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
    12172063      func_xform "$libobj"
    12182064      libobj=$func_xform_result
     
    12892135    # not support -o with -c
    12902136    if test "$compiler_c_o" = no; then
    1291       output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
     2137      output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
    12922138      lockfile="$output_obj.lock"
    12932139    else
     
    13202166        exit $EXIT_FAILURE
    13212167      fi
    1322       removelist="$removelist $output_obj"
     2168      func_append removelist " $output_obj"
    13232169      $ECHO "$srcfile" > "$lockfile"
    13242170    fi
    13252171
    13262172    $opt_dry_run || $RM $removelist
    1327     removelist="$removelist $lockfile"
     2173    func_append removelist " $lockfile"
    13282174    trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
    13292175
    1330     if test -n "$fix_srcfile_path"; then
    1331       eval srcfile=\"$fix_srcfile_path\"
    1332     fi
     2176    func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
     2177    srcfile=$func_to_tool_file_result
    13332178    func_quote_for_eval "$srcfile"
    13342179    qsrcfile=$func_quote_for_eval_result
     
    13502195      if test -z "$output_obj"; then
    13512196        # Place PIC objects in $objdir
    1352         command="$command -o $lobj"
     2197        func_append command " -o $lobj"
    13532198      fi
    13542199
     
    13972242      fi
    13982243      if test "$compiler_c_o" = yes; then
    1399         command="$command -o $obj"
     2244        func_append command " -o $obj"
    14002245      fi
    14012246
    14022247      # Suppress compiler output if we already did a PIC compilation.
    1403       command="$command$suppress_output"
     2248      func_append command "$suppress_output"
    14042249      func_show_eval_locale "$command" \
    14052250        '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
     
    14462291
    14472292$opt_help || {
    1448 test "$mode" = compile && func_mode_compile ${1+"$@"}
     2293  test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
    14492294}
    14502295
     
    14522297{
    14532298    # We need to display help for each of the modes.
    1454     case $mode in
     2299    case $opt_mode in
    14552300      "")
    14562301        # Generic help is extracted from the usage comments
     
    14832328  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
    14842329  -no-suppress      do not suppress compiler output for multiple passes
    1485   -prefer-pic       try to building PIC objects only
    1486   -prefer-non-pic   try to building non-PIC objects only
     2330  -prefer-pic       try to build PIC objects only
     2331  -prefer-non-pic   try to build non-PIC objects only
    14872332  -shared           do not build a \`.o' file suitable for static linking
    14882333  -static           only build a \`.o' file suitable for static linking
     2334  -Wc,FLAG          pass FLAG directly to the compiler
    14892335
    14902336COMPILE-COMMAND is a command to be used in creating a \`standard' object file
     
    15392385The following components of INSTALL-COMMAND are treated specially:
    15402386
    1541   -inst-prefix PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
     2387  -inst-prefix-dir PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
    15422388
    15432389The rest of the components are interpreted as arguments to that command (only
     
    15592405  -all-static       do not do any dynamic linking at all
    15602406  -avoid-version    do not add a version suffix if possible
     2407  -bindir BINDIR    specify path to binaries directory (for systems where
     2408                    libraries must be found in the PATH setting at runtime)
    15612409  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
    15622410  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
     
    15872435                    specify library version info [each variable defaults to 0]
    15882436  -weak LIBNAME     declare that the target provides the LIBNAME interface
     2437  -Wc,FLAG
     2438  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
     2439  -Wl,FLAG
     2440  -Xlinker FLAG     pass linker-specific FLAG directly to the linker
     2441  -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
    15892442
    15902443All other options (arguments beginning with \`-') are ignored.
     
    16202473
    16212474      *)
    1622         func_fatal_help "invalid operation mode \`$mode'"
     2475        func_fatal_help "invalid operation mode \`$opt_mode'"
    16232476        ;;
    16242477    esac
    16252478
    1626     $ECHO
     2479    echo
    16272480    $ECHO "Try \`$progname --help' for more information about other modes."
    1628 
    1629     exit $?
    1630 }
    1631 
    1632   # Now that we've collected a possible --mode arg, show help if necessary
    1633   $opt_help && func_mode_help
     2481}
     2482
     2483# Now that we've collected a possible --mode arg, show help if necessary
     2484if $opt_help; then
     2485  if test "$opt_help" = :; then
     2486    func_mode_help
     2487  else
     2488    {
     2489      func_help noexit
     2490      for opt_mode in compile link execute install finish uninstall clean; do
     2491        func_mode_help
     2492      done
     2493    } | sed -n '1p; 2,$s/^Usage:/  or: /p'
     2494    {
     2495      func_help noexit
     2496      for opt_mode in compile link execute install finish uninstall clean; do
     2497        echo
     2498        func_mode_help
     2499      done
     2500    } |
     2501    sed '1d
     2502      /^When reporting/,/^Report/{
     2503        H
     2504        d
     2505      }
     2506      $x
     2507      /information about other modes/d
     2508      /more detailed .*MODE/d
     2509      s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
     2510  fi
     2511  exit $?
     2512fi
    16342513
    16352514
     
    16442523
    16452524    # Handle -dlopen flags immediately.
    1646     for file in $execute_dlfiles; do
     2525    for file in $opt_dlopen; do
    16472526      test -f "$file" \
    16482527        || func_fatal_help "\`$file' is not a file"
     
    16512530      case $file in
    16522531      *.la)
     2532        func_resolve_sysroot "$file"
     2533        file=$func_resolve_sysroot_result
     2534
    16532535        # Check to see that this really is a libtool archive.
    16542536        func_lalib_unsafe_p "$file" \
     
    16722554
    16732555        if test -f "$dir/$objdir/$dlname"; then
    1674           dir="$dir/$objdir"
     2556          func_append dir "/$objdir"
    16752557        else
    16762558          if test ! -f "$dir/$dlname"; then
     
    17132595    do
    17142596      case $file in
    1715       -*) ;;
     2597      -* | *.la | *.lo ) ;;
    17162598      *)
    17172599        # Do a test to see if this is really a libtool program.
     
    17292611      esac
    17302612      # Quote arguments (to preserve shell metacharacters).
    1731       func_quote_for_eval "$file"
    1732       args="$args $func_quote_for_eval_result"
     2613      func_append_quoted args "$file"
    17332614    done
    17342615
     
    17552636      if test -n "$shlibpath_var"; then
    17562637        eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
    1757         $ECHO "export $shlibpath_var"
     2638        echo "export $shlibpath_var"
    17582639      fi
    17592640      $ECHO "$cmd$args"
     
    17622643}
    17632644
    1764 test "$mode" = execute && func_mode_execute ${1+"$@"}
     2645test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
    17652646
    17662647
     
    17692650{
    17702651    $opt_debug
    1771     libdirs="$nonopt"
     2652    libs=
     2653    libdirs=
    17722654    admincmds=
    17732655
     2656    for opt in "$nonopt" ${1+"$@"}
     2657    do
     2658      if test -d "$opt"; then
     2659        func_append libdirs " $opt"
     2660
     2661      elif test -f "$opt"; then
     2662        if func_lalib_unsafe_p "$opt"; then
     2663          func_append libs " $opt"
     2664        else
     2665          func_warning "\`$opt' is not a valid libtool archive"
     2666        fi
     2667
     2668      else
     2669        func_fatal_error "invalid argument \`$opt'"
     2670      fi
     2671    done
     2672
     2673    if test -n "$libs"; then
     2674      if test -n "$lt_sysroot"; then
     2675        sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
     2676        sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
     2677      else
     2678        sysroot_cmd=
     2679      fi
     2680
     2681      # Remove sysroot references
     2682      if $opt_dry_run; then
     2683        for lib in $libs; do
     2684          echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
     2685        done
     2686      else
     2687        tmpdir=`func_mktempdir`
     2688        for lib in $libs; do
     2689          sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
     2690            > $tmpdir/tmp-la
     2691          mv -f $tmpdir/tmp-la $lib
     2692        done
     2693        ${RM}r "$tmpdir"
     2694      fi
     2695    fi
     2696
    17742697    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
    1775       for dir
    1776       do
    1777         libdirs="$libdirs $dir"
    1778       done
    1779 
    17802698      for libdir in $libdirs; do
    17812699        if test -n "$finish_cmds"; then
     
    17872705          # Do the single finish_eval.
    17882706          eval cmds=\"$finish_eval\"
    1789           $opt_dry_run || eval "$cmds" || admincmds="$admincmds
     2707          $opt_dry_run || eval "$cmds" || func_append admincmds "
    17902708       $cmds"
    17912709        fi
     
    17962714    $opt_silent && exit $EXIT_SUCCESS
    17972715
    1798     $ECHO "X----------------------------------------------------------------------" | $Xsed
    1799     $ECHO "Libraries have been installed in:"
    1800     for libdir in $libdirs; do
    1801       $ECHO "   $libdir"
    1802     done
    1803     $ECHO
    1804     $ECHO "If you ever happen to want to link against installed libraries"
    1805     $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
    1806     $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
    1807     $ECHO "flag during linking and do at least one of the following:"
    1808     if test -n "$shlibpath_var"; then
    1809       $ECHO "   - add LIBDIR to the \`$shlibpath_var' environment variable"
    1810       $ECHO "     during execution"
     2716    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
     2717      echo "----------------------------------------------------------------------"
     2718      echo "Libraries have been installed in:"
     2719      for libdir in $libdirs; do
     2720        $ECHO "   $libdir"
     2721      done
     2722      echo
     2723      echo "If you ever happen to want to link against installed libraries"
     2724      echo "in a given directory, LIBDIR, you must either use libtool, and"
     2725      echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
     2726      echo "flag during linking and do at least one of the following:"
     2727      if test -n "$shlibpath_var"; then
     2728        echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
     2729        echo "     during execution"
     2730      fi
     2731      if test -n "$runpath_var"; then
     2732        echo "   - add LIBDIR to the \`$runpath_var' environment variable"
     2733        echo "     during linking"
     2734      fi
     2735      if test -n "$hardcode_libdir_flag_spec"; then
     2736        libdir=LIBDIR
     2737        eval flag=\"$hardcode_libdir_flag_spec\"
     2738
     2739        $ECHO "   - use the \`$flag' linker flag"
     2740      fi
     2741      if test -n "$admincmds"; then
     2742        $ECHO "   - have your system administrator run these commands:$admincmds"
     2743      fi
     2744      if test -f /etc/ld.so.conf; then
     2745        echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
     2746      fi
     2747      echo
     2748
     2749      echo "See any operating system documentation about shared libraries for"
     2750      case $host in
     2751        solaris2.[6789]|solaris2.1[0-9])
     2752          echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
     2753          echo "pages."
     2754          ;;
     2755        *)
     2756          echo "more information, such as the ld(1) and ld.so(8) manual pages."
     2757          ;;
     2758      esac
     2759      echo "----------------------------------------------------------------------"
    18112760    fi
    1812     if test -n "$runpath_var"; then
    1813       $ECHO "   - add LIBDIR to the \`$runpath_var' environment variable"
    1814       $ECHO "     during linking"
    1815     fi
    1816     if test -n "$hardcode_libdir_flag_spec"; then
    1817       libdir=LIBDIR
    1818       eval flag=\"$hardcode_libdir_flag_spec\"
    1819 
    1820       $ECHO "   - use the \`$flag' linker flag"
    1821     fi
    1822     if test -n "$admincmds"; then
    1823       $ECHO "   - have your system administrator run these commands:$admincmds"
    1824     fi
    1825     if test -f /etc/ld.so.conf; then
    1826       $ECHO "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
    1827     fi
    1828     $ECHO
    1829 
    1830     $ECHO "See any operating system documentation about shared libraries for"
    1831     case $host in
    1832       solaris2.[6789]|solaris2.1[0-9])
    1833         $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
    1834         $ECHO "pages."
    1835         ;;
    1836       *)
    1837         $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
    1838         ;;
    1839     esac
    1840     $ECHO "X----------------------------------------------------------------------" | $Xsed
    18412761    exit $EXIT_SUCCESS
    18422762}
    18432763
    1844 test "$mode" = finish && func_mode_finish ${1+"$@"}
     2764test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
    18452765
    18462766
     
    18532773    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
    18542774       # Allow the use of GNU shtool's install command.
    1855        $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
     2775       case $nonopt in *shtool*) :;; *) false;; esac; then
    18562776      # Aesthetically quote it.
    18572777      func_quote_for_eval "$nonopt"
     
    18672787    # Aesthetically quote it.
    18682788    func_quote_for_eval "$arg"
    1869     install_prog="$install_prog$func_quote_for_eval_result"
     2789    func_append install_prog "$func_quote_for_eval_result"
     2790    install_shared_prog=$install_prog
     2791    case " $install_prog " in
     2792      *[\\\ /]cp\ *) install_cp=: ;;
     2793      *) install_cp=false ;;
     2794    esac
    18702795
    18712796    # We need to accept at least all the BSD install flags.
     
    18772802    isdir=no
    18782803    stripme=
     2804    no_mode=:
    18792805    for arg
    18802806    do
     2807      arg2=
    18812808      if test -n "$dest"; then
    1882         files="$files $dest"
     2809        func_append files " $dest"
    18832810        dest=$arg
    18842811        continue
     
    18882815      -d) isdir=yes ;;
    18892816      -f)
    1890         case " $install_prog " in
    1891         *[\\\ /]cp\ *) ;;
    1892         *) prev=$arg ;;
    1893         esac
     2817        if $install_cp; then :; else
     2818          prev=$arg
     2819        fi
    18942820        ;;
    18952821      -g | -m | -o)
     
    19052831        # If the previous option needed an argument, then skip it.
    19062832        if test -n "$prev"; then
     2833          if test "x$prev" = x-m && test -n "$install_override_mode"; then
     2834            arg2=$install_override_mode
     2835            no_mode=false
     2836          fi
    19072837          prev=
    19082838        else
     
    19152845      # Aesthetically quote the argument.
    19162846      func_quote_for_eval "$arg"
    1917       install_prog="$install_prog $func_quote_for_eval_result"
     2847      func_append install_prog " $func_quote_for_eval_result"
     2848      if test -n "$arg2"; then
     2849        func_quote_for_eval "$arg2"
     2850      fi
     2851      func_append install_shared_prog " $func_quote_for_eval_result"
    19182852    done
    19192853
     
    19232857    test -n "$prev" && \
    19242858      func_fatal_help "the \`$prev' option requires an argument"
     2859
     2860    if test -n "$install_override_mode" && $no_mode; then
     2861      if $install_cp; then :; else
     2862        func_quote_for_eval "$install_override_mode"
     2863        func_append install_shared_prog " -m $func_quote_for_eval_result"
     2864      fi
     2865    fi
    19252866
    19262867    if test -z "$files"; then
     
    19782919      *.$libext)
    19792920        # Do the static libraries later.
    1980         staticlibs="$staticlibs $file"
     2921        func_append staticlibs " $file"
    19812922        ;;
    19822923
    19832924      *.la)
     2925        func_resolve_sysroot "$file"
     2926        file=$func_resolve_sysroot_result
     2927
    19842928        # Check to see that this really is a libtool archive.
    19852929        func_lalib_unsafe_p "$file" \
     
    19952939          case "$current_libdirs " in
    19962940          *" $libdir "*) ;;
    1997           *) current_libdirs="$current_libdirs $libdir" ;;
     2941          *) func_append current_libdirs " $libdir" ;;
    19982942          esac
    19992943        else
     
    20012945          case "$future_libdirs " in
    20022946          *" $libdir "*) ;;
    2003           *) future_libdirs="$future_libdirs $libdir" ;;
     2947          *) func_append future_libdirs " $libdir" ;;
    20042948          esac
    20052949        fi
     
    20072951        func_dirname "$file" "/" ""
    20082952        dir="$func_dirname_result"
    2009         dir="$dir$objdir"
     2953        func_append dir "$objdir"
    20102954
    20112955        if test -n "$relink_command"; then
    20122956          # Determine the prefix the user has applied to our future dir.
    2013           inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
     2957          inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
    20142958
    20152959          # Don't allow the user to place us outside of our expected
     
    20242968          if test -n "$inst_prefix_dir"; then
    20252969            # Stick the inst_prefix_dir data into the link command.
    2026             relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
     2970            relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
    20272971          else
    2028             relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
     2972            relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
    20292973          fi
    20302974
     
    20442988
    20452989          # Install the shared library and build the symlinks.
    2046           func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
     2990          func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
    20472991              'exit $?'
    20482992          tstripme="$stripme"
     
    20843028
    20853029        # Maybe install the static library, too.
    2086         test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
     3030        test -n "$old_library" && func_append staticlibs " $dir/$old_library"
    20873031        ;;
    20883032
     
    21843128              func_source "$lib"
    21853129            fi
    2186             libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
     3130            libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
    21873131            if test -n "$libdir" && test ! -f "$libfile"; then
    21883132              func_warning "\`$lib' has not been installed in \`$libdir'"
     
    22033147                outputname="$tmpdir/$file"
    22043148                # Replace the output file specification.
    2205                 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
     3149                relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
    22063150
    22073151                $opt_silent || {
     
    22223166          else
    22233167            # Install the binary that we compiled earlier.
    2224             file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
     3168            file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
    22253169          fi
    22263170        fi
     
    22813225}
    22823226
    2283 test "$mode" = install && func_mode_install ${1+"$@"}
     3227test "$opt_mode" = install && func_mode_install ${1+"$@"}
    22843228
    22853229
     
    23243268#endif
    23253269
     3270#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
     3271#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
     3272#endif
     3273
     3274/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3275#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3276/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3277   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3278# define LT_DLSYM_CONST
     3279#elif defined(__osf__)
     3280/* This system does not cope well with relocations in const data.  */
     3281# define LT_DLSYM_CONST
     3282#else
     3283# define LT_DLSYM_CONST const
     3284#endif
     3285
    23263286/* External symbol declarations for the compiler. */\
    23273287"
     
    23333293
    23343294          # Add our own program objects to the symbol list.
    2335           progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     3295          progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
    23363296          for progfile in $progfiles; do
    2337             func_verbose "extracting global C symbols from \`$progfile'"
    2338             $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
     3297            func_to_tool_file "$progfile" func_convert_file_msys_to_w32
     3298            func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
     3299            $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
    23393300          done
    23403301
     
    23723333              eval '$MV "$nlist"T "$nlist"'
    23733334              case $host in
    2374                 *cygwin | *mingw* | *cegcc* )
     3335                *cygwin* | *mingw* | *cegcc* )
    23753336                  eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
    23763337                  eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
     
    23853346          func_basename "$dlprefile"
    23863347          name="$func_basename_result"
    2387           $opt_dry_run || {
    2388             eval '$ECHO ": $name " >> "$nlist"'
    2389             eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
    2390           }
     3348          case $host in
     3349            *cygwin* | *mingw* | *cegcc* )
     3350              # if an import library, we need to obtain dlname
     3351              if func_win32_import_lib_p "$dlprefile"; then
     3352                func_tr_sh "$dlprefile"
     3353                eval "curr_lafile=\$libfile_$func_tr_sh_result"
     3354                dlprefile_dlbasename=""
     3355                if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
     3356                  # Use subshell, to avoid clobbering current variable values
     3357                  dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
     3358                  if test -n "$dlprefile_dlname" ; then
     3359                    func_basename "$dlprefile_dlname"
     3360                    dlprefile_dlbasename="$func_basename_result"
     3361                  else
     3362                    # no lafile. user explicitly requested -dlpreopen <import library>.
     3363                    $sharedlib_from_linklib_cmd "$dlprefile"
     3364                    dlprefile_dlbasename=$sharedlib_from_linklib_result
     3365                  fi
     3366                fi
     3367                $opt_dry_run || {
     3368                  if test -n "$dlprefile_dlbasename" ; then
     3369                    eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
     3370                  else
     3371                    func_warning "Could not compute DLL name from $name"
     3372                    eval '$ECHO ": $name " >> "$nlist"'
     3373                  fi
     3374                  func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3375                  eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
     3376                    $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
     3377                }
     3378              else # not an import lib
     3379                $opt_dry_run || {
     3380                  eval '$ECHO ": $name " >> "$nlist"'
     3381                  func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3382                  eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
     3383                }
     3384              fi
     3385            ;;
     3386            *)
     3387              $opt_dry_run || {
     3388                eval '$ECHO ": $name " >> "$nlist"'
     3389                func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3390                eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
     3391              }
     3392            ;;
     3393          esac
    23913394        done
    23923395
     
    24163419            eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
    24173420          else
    2418             $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
     3421            echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
    24193422          fi
    24203423
    2421           $ECHO >> "$output_objdir/$my_dlsyms" "\
     3424          echo >> "$output_objdir/$my_dlsyms" "\
    24223425
    24233426/* The mapping between symbol names and symbols.  */
     
    24263429  void *address;
    24273430} lt_dlsymlist;
    2428 "
    2429           case $host in
    2430           *cygwin* | *mingw* | *cegcc* )
    2431             $ECHO >> "$output_objdir/$my_dlsyms" "\
    2432 /* DATA imports from DLLs on WIN32 con't be const, because
    2433    runtime relocations are performed -- see ld's documentation
    2434    on pseudo-relocs.  */"
    2435             lt_dlsym_const= ;;
    2436           *osf5*)
    2437             echo >> "$output_objdir/$my_dlsyms" "\
    2438 /* This system does not cope well with relocations in const data */"
    2439             lt_dlsym_const= ;;
    2440           *)
    2441             lt_dlsym_const=const ;;
    2442           esac
    2443 
    2444           $ECHO >> "$output_objdir/$my_dlsyms" "\
    2445 extern $lt_dlsym_const lt_dlsymlist
     3431extern LT_DLSYM_CONST lt_dlsymlist
    24463432lt_${my_prefix}_LTX_preloaded_symbols[];
    2447 $lt_dlsym_const lt_dlsymlist
     3433LT_DLSYM_CONST lt_dlsymlist
    24483434lt_${my_prefix}_LTX_preloaded_symbols[] =
    24493435{\
     
    24583444            ;;
    24593445          esac
    2460           $ECHO >> "$output_objdir/$my_dlsyms" "\
     3446          echo >> "$output_objdir/$my_dlsyms" "\
    24613447  {0, (void *) 0}
    24623448};
     
    25013487          case $arg in
    25023488          -pie | -fpie | -fPIE) ;;
    2503           *) symtab_cflags="$symtab_cflags $arg" ;;
     3489          *) func_append symtab_cflags " $arg" ;;
    25043490          esac
    25053491        done
     
    25163502        *cygwin* | *mingw* | *cegcc* )
    25173503          if test -f "$output_objdir/$my_outputname.def"; then
    2518             compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
    2519             finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     3504            compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     3505            finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
    25203506          else
    2521             compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
    2522             finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
     3507            compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3508            finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
    25233509          fi
    25243510          ;;
    25253511        *)
    2526           compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
    2527           finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
     3512          compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3513          finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
    25283514          ;;
    25293515        esac
     
    25393525
    25403526      # Nullify the symbol file.
    2541       compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
    2542       finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
     3527      compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
     3528      finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
    25433529    fi
    25443530}
     
    25503536# Has to be a shell function in order to 'eat' the argument
    25513537# that is supplied when $file_magic_command is called.
     3538# Despite the name, also deal with 64 bit binaries.
    25523539func_win32_libid ()
    25533540{
     
    25603547    ;;
    25613548  *ar\ archive*) # could be an import, or static
     3549    # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
    25623550    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
    2563        $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
    2564       win32_nmres=`eval $NM -f posix -A $1 |
     3551       $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
     3552      func_to_tool_file "$1" func_convert_file_msys_to_w32
     3553      win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
    25653554        $SED -n -e '
    25663555            1,100{
     
    25913580}
    25923581
     3582# func_cygming_dll_for_implib ARG
     3583#
     3584# Platform-specific function to extract the
     3585# name of the DLL associated with the specified
     3586# import library ARG.
     3587# Invoked by eval'ing the libtool variable
     3588#    $sharedlib_from_linklib_cmd
     3589# Result is available in the variable
     3590#    $sharedlib_from_linklib_result
     3591func_cygming_dll_for_implib ()
     3592{
     3593  $opt_debug
     3594  sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
     3595}
     3596
     3597# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
     3598#
     3599# The is the core of a fallback implementation of a
     3600# platform-specific function to extract the name of the
     3601# DLL associated with the specified import library LIBNAME.
     3602#
     3603# SECTION_NAME is either .idata$6 or .idata$7, depending
     3604# on the platform and compiler that created the implib.
     3605#
     3606# Echos the name of the DLL associated with the
     3607# specified import library.
     3608func_cygming_dll_for_implib_fallback_core ()
     3609{
     3610  $opt_debug
     3611  match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
     3612  $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
     3613    $SED '/^Contents of section '"$match_literal"':/{
     3614      # Place marker at beginning of archive member dllname section
     3615      s/.*/====MARK====/
     3616      p
     3617      d
     3618    }
     3619    # These lines can sometimes be longer than 43 characters, but
     3620    # are always uninteresting
     3621    /:[  ]*file format pe[i]\{,1\}-/d
     3622    /^In archive [^:]*:/d
     3623    # Ensure marker is printed
     3624    /^====MARK====/p
     3625    # Remove all lines with less than 43 characters
     3626    /^.\{43\}/!d
     3627    # From remaining lines, remove first 43 characters
     3628    s/^.\{43\}//' |
     3629    $SED -n '
     3630      # Join marker and all lines until next marker into a single line
     3631      /^====MARK====/ b para
     3632      H
     3633      $ b para
     3634      b
     3635      :para
     3636      x
     3637      s/\n//g
     3638      # Remove the marker
     3639      s/^====MARK====//
     3640      # Remove trailing dots and whitespace
     3641      s/[\. \t]*$//
     3642      # Print
     3643      /./p' |
     3644    # we now have a list, one entry per line, of the stringified
     3645    # contents of the appropriate section of all members of the
     3646    # archive which possess that section. Heuristic: eliminate
     3647    # all those which have a first or second character that is
     3648    # a '.' (that is, objdump's representation of an unprintable
     3649    # character.) This should work for all archives with less than
     3650    # 0x302f exports -- but will fail for DLLs whose name actually
     3651    # begins with a literal '.' or a single character followed by
     3652    # a '.'.
     3653    #
     3654    # Of those that remain, print the first one.
     3655    $SED -e '/^\./d;/^.\./d;q'
     3656}
     3657
     3658# func_cygming_gnu_implib_p ARG
     3659# This predicate returns with zero status (TRUE) if
     3660# ARG is a GNU/binutils-style import library. Returns
     3661# with nonzero status (FALSE) otherwise.
     3662func_cygming_gnu_implib_p ()
     3663{
     3664  $opt_debug
     3665  func_to_tool_file "$1" func_convert_file_msys_to_w32
     3666  func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
     3667  test -n "$func_cygming_gnu_implib_tmp"
     3668}
     3669
     3670# func_cygming_ms_implib_p ARG
     3671# This predicate returns with zero status (TRUE) if
     3672# ARG is an MS-style import library. Returns
     3673# with nonzero status (FALSE) otherwise.
     3674func_cygming_ms_implib_p ()
     3675{
     3676  $opt_debug
     3677  func_to_tool_file "$1" func_convert_file_msys_to_w32
     3678  func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
     3679  test -n "$func_cygming_ms_implib_tmp"
     3680}
     3681
     3682# func_cygming_dll_for_implib_fallback ARG
     3683# Platform-specific function to extract the
     3684# name of the DLL associated with the specified
     3685# import library ARG.
     3686#
     3687# This fallback implementation is for use when $DLLTOOL
     3688# does not support the --identify-strict option.
     3689# Invoked by eval'ing the libtool variable
     3690#    $sharedlib_from_linklib_cmd
     3691# Result is available in the variable
     3692#    $sharedlib_from_linklib_result
     3693func_cygming_dll_for_implib_fallback ()
     3694{
     3695  $opt_debug
     3696  if func_cygming_gnu_implib_p "$1" ; then
     3697    # binutils import library
     3698    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
     3699  elif func_cygming_ms_implib_p "$1" ; then
     3700    # ms-generated import library
     3701    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
     3702  else
     3703    # unknown
     3704    sharedlib_from_linklib_result=""
     3705  fi
     3706}
    25933707
    25943708
     
    25993713    f_ex_an_ar_dir="$1"; shift
    26003714    f_ex_an_ar_oldlib="$1"
    2601     func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
     3715    if test "$lock_old_archive_extraction" = yes; then
     3716      lockfile=$f_ex_an_ar_oldlib.lock
     3717      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
     3718        func_echo "Waiting for $lockfile to be removed"
     3719        sleep 2
     3720      done
     3721    fi
     3722    func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
     3723                   'stat=$?; rm -f "$lockfile"; exit $stat'
     3724    if test "$lock_old_archive_extraction" = yes; then
     3725      $opt_dry_run || rm -f "$lockfile"
     3726    fi
    26023727    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
    26033728     :
     
    26703795            darwin_files=
    26713796            for darwin_file in $darwin_filelist; do
    2672               darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
     3797              darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
    26733798              $LIPO -create -output "$darwin_file" $darwin_files
    26743799            done # $darwin_filelist
     
    26853810        ;;
    26863811      esac
    2687       my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     3812      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
    26883813    done
    26893814
    26903815    func_extract_archives_result="$my_oldobjs"
    26913816}
    2692 
    2693 
    2694 
    2695 # func_emit_wrapper_part1 [arg=no]
    2696 #
    2697 # Emit the first part of a libtool wrapper script on stdout.
    2698 # For more information, see the description associated with
    2699 # func_emit_wrapper(), below.
    2700 func_emit_wrapper_part1 ()
    2701 {
    2702         func_emit_wrapper_part1_arg1=no
    2703         if test -n "$1" ; then
    2704           func_emit_wrapper_part1_arg1=$1
    2705         fi
    2706 
    2707         $ECHO "\
    2708 #! $SHELL
    2709 
    2710 # $output - temporary wrapper script for $objdir/$outputname
    2711 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
    2712 #
    2713 # The $output program cannot be directly executed until all the libtool
    2714 # libraries that it depends on are installed.
    2715 #
    2716 # This wrapper script should never be moved out of the build directory.
    2717 # If it is, it will not operate correctly.
    2718 
    2719 # Sed substitution that helps us do robust quoting.  It backslashifies
    2720 # metacharacters that are still active within double-quoted strings.
    2721 Xsed='${SED} -e 1s/^X//'
    2722 sed_quote_subst='$sed_quote_subst'
    2723 
    2724 # Be Bourne compatible
    2725 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
    2726   emulate sh
    2727   NULLCMD=:
    2728   # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
    2729   # is contrary to our usage.  Disable this feature.
    2730   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    2731   setopt NO_GLOB_SUBST
    2732 else
    2733   case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
    2734 fi
    2735 BIN_SH=xpg4; export BIN_SH # for Tru64
    2736 DUALCASE=1; export DUALCASE # for MKS sh
    2737 
    2738 # The HP-UX ksh and POSIX shell print the target directory to stdout
    2739 # if CDPATH is set.
    2740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    2741 
    2742 relink_command=\"$relink_command\"
    2743 
    2744 # This environment variable determines our operation mode.
    2745 if test \"\$libtool_install_magic\" = \"$magic\"; then
    2746   # install mode needs the following variables:
    2747   generated_by_libtool_version='$macro_version'
    2748   notinst_deplibs='$notinst_deplibs'
    2749 else
    2750   # When we are sourced in execute mode, \$file and \$ECHO are already set.
    2751   if test \"\$libtool_execute_magic\" != \"$magic\"; then
    2752     ECHO=\"$qecho\"
    2753     file=\"\$0\"
    2754     # Make sure echo works.
    2755     if test \"X\$1\" = X--no-reexec; then
    2756       # Discard the --no-reexec flag, and continue.
    2757       shift
    2758     elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
    2759       # Yippee, \$ECHO works!
    2760       :
    2761     else
    2762       # Restart under the correct shell, and then maybe \$ECHO will work.
    2763       exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
    2764     fi
    2765   fi\
    2766 "
    2767         $ECHO "\
    2768 
    2769   # Find the directory that this script lives in.
    2770   thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
    2771   test \"x\$thisdir\" = \"x\$file\" && thisdir=.
    2772 
    2773   # Follow symbolic links until we get to the real thisdir.
    2774   file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
    2775   while test -n \"\$file\"; do
    2776     destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
    2777 
    2778     # If there was a directory component, then change thisdir.
    2779     if test \"x\$destdir\" != \"x\$file\"; then
    2780       case \"\$destdir\" in
    2781       [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
    2782       *) thisdir=\"\$thisdir/\$destdir\" ;;
    2783       esac
    2784     fi
    2785 
    2786     file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
    2787     file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
    2788   done
    2789 "
    2790 }
    2791 # end: func_emit_wrapper_part1
    2792 
    2793 # func_emit_wrapper_part2 [arg=no]
    2794 #
    2795 # Emit the second part of a libtool wrapper script on stdout.
    2796 # For more information, see the description associated with
    2797 # func_emit_wrapper(), below.
    2798 func_emit_wrapper_part2 ()
    2799 {
    2800         func_emit_wrapper_part2_arg1=no
    2801         if test -n "$1" ; then
    2802           func_emit_wrapper_part2_arg1=$1
    2803         fi
    2804 
    2805         $ECHO "\
    2806 
    2807   # Usually 'no', except on cygwin/mingw when embedded into
    2808   # the cwrapper.
    2809   WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
    2810   if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
    2811     # special case for '.'
    2812     if test \"\$thisdir\" = \".\"; then
    2813       thisdir=\`pwd\`
    2814     fi
    2815     # remove .libs from thisdir
    2816     case \"\$thisdir\" in
    2817     *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
    2818     $objdir )   thisdir=. ;;
    2819     esac
    2820   fi
    2821 
    2822   # Try to get the absolute directory name.
    2823   absdir=\`cd \"\$thisdir\" && pwd\`
    2824   test -n \"\$absdir\" && thisdir=\"\$absdir\"
    2825 "
    2826 
    2827         if test "$fast_install" = yes; then
    2828           $ECHO "\
    2829   program=lt-'$outputname'$exeext
    2830   progdir=\"\$thisdir/$objdir\"
    2831 
    2832   if test ! -f \"\$progdir/\$program\" ||
    2833      { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
    2834        test \"X\$file\" != \"X\$progdir/\$program\"; }; then
    2835 
    2836     file=\"\$\$-\$program\"
    2837 
    2838     if test ! -d \"\$progdir\"; then
    2839       $MKDIR \"\$progdir\"
    2840     else
    2841       $RM \"\$progdir/\$file\"
    2842     fi"
    2843 
    2844           $ECHO "\
    2845 
    2846     # relink executable if necessary
    2847     if test -n \"\$relink_command\"; then
    2848       if relink_command_output=\`eval \$relink_command 2>&1\`; then :
    2849       else
    2850         $ECHO \"\$relink_command_output\" >&2
    2851         $RM \"\$progdir/\$file\"
    2852         exit 1
    2853       fi
    2854     fi
    2855 
    2856     $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
    2857     { $RM \"\$progdir/\$program\";
    2858       $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
    2859     $RM \"\$progdir/\$file\"
    2860   fi"
    2861         else
    2862           $ECHO "\
    2863   program='$outputname'
    2864   progdir=\"\$thisdir/$objdir\"
    2865 "
    2866         fi
    2867 
    2868         $ECHO "\
    2869 
    2870   if test -f \"\$progdir/\$program\"; then"
    2871 
    2872         # Export our shlibpath_var if we have one.
    2873         if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
    2874           $ECHO "\
    2875     # Add our own library path to $shlibpath_var
    2876     $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
    2877 
    2878     # Some systems cannot cope with colon-terminated $shlibpath_var
    2879     # The second colon is a workaround for a bug in BeOS R4 sed
    2880     $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
    2881 
    2882     export $shlibpath_var
    2883 "
    2884         fi
    2885 
    2886         # fixup the dll searchpath if we need to.
    2887         if test -n "$dllsearchpath"; then
    2888           $ECHO "\
    2889     # Add the dll search path components to the executable PATH
    2890     PATH=$dllsearchpath:\$PATH
    2891 "
    2892         fi
    2893 
    2894         $ECHO "\
    2895     if test \"\$libtool_execute_magic\" != \"$magic\"; then
    2896       # Run the actual program with our arguments.
    2897 "
    2898         case $host in
    2899         # Backslashes separate directories on plain windows
    2900         *-*-mingw | *-*-os2* | *-cegcc*)
    2901           $ECHO "\
    2902       exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
    2903 "
    2904           ;;
    2905 
    2906         *)
    2907           $ECHO "\
    2908       exec \"\$progdir/\$program\" \${1+\"\$@\"}
    2909 "
    2910           ;;
    2911         esac
    2912         $ECHO "\
    2913       \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
    2914       exit 1
    2915     fi
    2916   else
    2917     # The program doesn't exist.
    2918     \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
    2919     \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
    2920     $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
    2921     exit 1
    2922   fi
    2923 fi\
    2924 "
    2925 }
    2926 # end: func_emit_wrapper_part2
    29273817
    29283818
     
    29433833func_emit_wrapper ()
    29443834{
    2945         func_emit_wrapper_arg1=no
    2946         if test -n "$1" ; then
    2947           func_emit_wrapper_arg1=$1
    2948         fi
    2949 
    2950         # split this up so that func_emit_cwrapperexe_src
    2951         # can call each part independently.
    2952         func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
    2953         func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
    2954 }
    2955 
    2956 
    2957 # func_to_host_path arg
     3835        func_emit_wrapper_arg1=${1-no}
     3836
     3837        $ECHO "\
     3838#! $SHELL
     3839
     3840# $output - temporary wrapper script for $objdir/$outputname
     3841# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
    29583842#
    2959 # Convert paths to host format when used with build tools.
    2960 # Intended for use with "native" mingw (where libtool itself
    2961 # is running under the msys shell), or in the following cross-
    2962 # build environments:
    2963 #    $build          $host
    2964 #    mingw (msys)    mingw  [e.g. native]
    2965 #    cygwin          mingw
    2966 #    *nix + wine     mingw
    2967 # where wine is equipped with the `winepath' executable.
    2968 # In the native mingw case, the (msys) shell automatically
    2969 # converts paths for any non-msys applications it launches,
    2970 # but that facility isn't available from inside the cwrapper.
    2971 # Similar accommodations are necessary for $host mingw and
    2972 # $build cygwin.  Calling this function does no harm for other
    2973 # $host/$build combinations not listed above.
     3843# The $output program cannot be directly executed until all the libtool
     3844# libraries that it depends on are installed.
    29743845#
    2975 # ARG is the path (on $build) that should be converted to
    2976 # the proper representation for $host. The result is stored
    2977 # in $func_to_host_path_result.
    2978 func_to_host_path ()
    2979 {
    2980   func_to_host_path_result="$1"
    2981   if test -n "$1" ; then
    2982     case $host in
    2983       *mingw* )
    2984         lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
    2985         case $build in
    2986           *mingw* ) # actually, msys
    2987             # awkward: cmd appends spaces to result
    2988             lt_sed_strip_trailing_spaces="s/[ ]*\$//"
    2989             func_to_host_path_tmp1=`( cmd //c echo "$1" |\
    2990               $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
    2991             func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
    2992               $SED -e "$lt_sed_naive_backslashify"`
    2993             ;;
    2994           *cygwin* )
    2995             func_to_host_path_tmp1=`cygpath -w "$1"`
    2996             func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
    2997               $SED -e "$lt_sed_naive_backslashify"`
    2998             ;;
    2999           * )
    3000             # Unfortunately, winepath does not exit with a non-zero
    3001             # error code, so we are forced to check the contents of
    3002             # stdout. On the other hand, if the command is not
    3003             # found, the shell will set an exit code of 127 and print
    3004             # *an error message* to stdout. So we must check for both
    3005             # error code of zero AND non-empty stdout, which explains
    3006             # the odd construction:
    3007             func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
    3008             if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
    3009               func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
    3010                 $SED -e "$lt_sed_naive_backslashify"`
    3011             else
    3012               # Allow warning below.
    3013               func_to_host_path_result=""
    3014             fi
    3015             ;;
    3016         esac
    3017         if test -z "$func_to_host_path_result" ; then
    3018           func_error "Could not determine host path corresponding to"
    3019           func_error "  '$1'"
    3020           func_error "Continuing, but uninstalled executables may not work."
    3021           # Fallback:
    3022           func_to_host_path_result="$1"
    3023         fi
    3024         ;;
     3846# This wrapper script should never be moved out of the build directory.
     3847# If it is, it will not operate correctly.
     3848
     3849# Sed substitution that helps us do robust quoting.  It backslashifies
     3850# metacharacters that are still active within double-quoted strings.
     3851sed_quote_subst='$sed_quote_subst'
     3852
     3853# Be Bourne compatible
     3854if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
     3855  emulate sh
     3856  NULLCMD=:
     3857  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
     3858  # is contrary to our usage.  Disable this feature.
     3859  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     3860  setopt NO_GLOB_SUBST
     3861else
     3862  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
     3863fi
     3864BIN_SH=xpg4; export BIN_SH # for Tru64
     3865DUALCASE=1; export DUALCASE # for MKS sh
     3866
     3867# The HP-UX ksh and POSIX shell print the target directory to stdout
     3868# if CDPATH is set.
     3869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     3870
     3871relink_command=\"$relink_command\"
     3872
     3873# This environment variable determines our operation mode.
     3874if test \"\$libtool_install_magic\" = \"$magic\"; then
     3875  # install mode needs the following variables:
     3876  generated_by_libtool_version='$macro_version'
     3877  notinst_deplibs='$notinst_deplibs'
     3878else
     3879  # When we are sourced in execute mode, \$file and \$ECHO are already set.
     3880  if test \"\$libtool_execute_magic\" != \"$magic\"; then
     3881    file=\"\$0\""
     3882
     3883    qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
     3884    $ECHO "\
     3885
     3886# A function that is used when there is no print builtin or printf.
     3887func_fallback_echo ()
     3888{
     3889  eval 'cat <<_LTECHO_EOF
     3890\$1
     3891_LTECHO_EOF'
     3892}
     3893    ECHO=\"$qECHO\"
     3894  fi
     3895
     3896# Very basic option parsing. These options are (a) specific to
     3897# the libtool wrapper, (b) are identical between the wrapper
     3898# /script/ and the wrapper /executable/ which is used only on
     3899# windows platforms, and (c) all begin with the string "--lt-"
     3900# (application programs are unlikely to have options which match
     3901# this pattern).
     3902#
     3903# There are only two supported options: --lt-debug and
     3904# --lt-dump-script. There is, deliberately, no --lt-help.
     3905#
     3906# The first argument to this parsing function should be the
     3907# script's $0 value, followed by "$@".
     3908lt_option_debug=
     3909func_parse_lt_options ()
     3910{
     3911  lt_script_arg0=\$0
     3912  shift
     3913  for lt_opt
     3914  do
     3915    case \"\$lt_opt\" in
     3916    --lt-debug) lt_option_debug=1 ;;
     3917    --lt-dump-script)
     3918        lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
     3919        test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
     3920        lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
     3921        cat \"\$lt_dump_D/\$lt_dump_F\"
     3922        exit 0
     3923      ;;
     3924    --lt-*)
     3925        \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
     3926        exit 1
     3927      ;;
     3928    esac
     3929  done
     3930
     3931  # Print the debug banner immediately:
     3932  if test -n \"\$lt_option_debug\"; then
     3933    echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
     3934  fi
     3935}
     3936
     3937# Used when --lt-debug. Prints its arguments to stdout
     3938# (redirection is the responsibility of the caller)
     3939func_lt_dump_args ()
     3940{
     3941  lt_dump_args_N=1;
     3942  for lt_arg
     3943  do
     3944    \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
     3945    lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
     3946  done
     3947}
     3948
     3949# Core function for launching the target application
     3950func_exec_program_core ()
     3951{
     3952"
     3953  case $host in
     3954  # Backslashes separate directories on plain windows
     3955  *-*-mingw | *-*-os2* | *-cegcc*)
     3956    $ECHO "\
     3957      if test -n \"\$lt_option_debug\"; then
     3958        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
     3959        func_lt_dump_args \${1+\"\$@\"} 1>&2
     3960      fi
     3961      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
     3962"
     3963    ;;
     3964
     3965  *)
     3966    $ECHO "\
     3967      if test -n \"\$lt_option_debug\"; then
     3968        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
     3969        func_lt_dump_args \${1+\"\$@\"} 1>&2
     3970      fi
     3971      exec \"\$progdir/\$program\" \${1+\"\$@\"}
     3972"
     3973    ;;
     3974  esac
     3975  $ECHO "\
     3976      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
     3977      exit 1
     3978}
     3979
     3980# A function to encapsulate launching the target application
     3981# Strips options in the --lt-* namespace from \$@ and
     3982# launches target application with the remaining arguments.
     3983func_exec_program ()
     3984{
     3985  for lt_wr_arg
     3986  do
     3987    case \$lt_wr_arg in
     3988    --lt-*) ;;
     3989    *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
     3990    esac
     3991    shift
     3992  done
     3993  func_exec_program_core \${1+\"\$@\"}
     3994}
     3995
     3996  # Parse options
     3997  func_parse_lt_options \"\$0\" \${1+\"\$@\"}
     3998
     3999  # Find the directory that this script lives in.
     4000  thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
     4001  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
     4002
     4003  # Follow symbolic links until we get to the real thisdir.
     4004  file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
     4005  while test -n \"\$file\"; do
     4006    destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
     4007
     4008    # If there was a directory component, then change thisdir.
     4009    if test \"x\$destdir\" != \"x\$file\"; then
     4010      case \"\$destdir\" in
     4011      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
     4012      *) thisdir=\"\$thisdir/\$destdir\" ;;
     4013      esac
     4014    fi
     4015
     4016    file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
     4017    file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
     4018  done
     4019
     4020  # Usually 'no', except on cygwin/mingw when embedded into
     4021  # the cwrapper.
     4022  WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
     4023  if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
     4024    # special case for '.'
     4025    if test \"\$thisdir\" = \".\"; then
     4026      thisdir=\`pwd\`
     4027    fi
     4028    # remove .libs from thisdir
     4029    case \"\$thisdir\" in
     4030    *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
     4031    $objdir )   thisdir=. ;;
    30254032    esac
    30264033  fi
    3027 }
    3028 # end: func_to_host_path
    3029 
    3030 # func_to_host_pathlist arg
    3031 #
    3032 # Convert pathlists to host format when used with build tools.
    3033 # See func_to_host_path(), above. This function supports the
    3034 # following $build/$host combinations (but does no harm for
    3035 # combinations not listed here):
    3036 #    $build          $host
    3037 #    mingw (msys)    mingw  [e.g. native]
    3038 #    cygwin          mingw
    3039 #    *nix + wine     mingw
    3040 #
    3041 # Path separators are also converted from $build format to
    3042 # $host format. If ARG begins or ends with a path separator
    3043 # character, it is preserved (but converted to $host format)
    3044 # on output.
    3045 #
    3046 # ARG is a pathlist (on $build) that should be converted to
    3047 # the proper representation on $host. The result is stored
    3048 # in $func_to_host_pathlist_result.
    3049 func_to_host_pathlist ()
    3050 {
    3051   func_to_host_pathlist_result="$1"
    3052   if test -n "$1" ; then
    3053     case $host in
    3054       *mingw* )
    3055         lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
    3056         # Remove leading and trailing path separator characters from
    3057         # ARG. msys behavior is inconsistent here, cygpath turns them
    3058         # into '.;' and ';.', and winepath ignores them completely.
    3059         func_to_host_pathlist_tmp2="$1"
    3060         # Once set for this call, this variable should not be
    3061         # reassigned. It is used in tha fallback case.
    3062         func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
    3063           $SED -e 's|^:*||' -e 's|:*$||'`
    3064         case $build in
    3065           *mingw* ) # Actually, msys.
    3066             # Awkward: cmd appends spaces to result.
    3067             lt_sed_strip_trailing_spaces="s/[ ]*\$//"
    3068             func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
    3069               $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
    3070             func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
    3071               $SED -e "$lt_sed_naive_backslashify"`
    3072             ;;
    3073           *cygwin* )
    3074             func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
    3075             func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
    3076               $SED -e "$lt_sed_naive_backslashify"`
    3077             ;;
    3078           * )
    3079             # unfortunately, winepath doesn't convert pathlists
    3080             func_to_host_pathlist_result=""
    3081             func_to_host_pathlist_oldIFS=$IFS
    3082             IFS=:
    3083             for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
    3084               IFS=$func_to_host_pathlist_oldIFS
    3085               if test -n "$func_to_host_pathlist_f" ; then
    3086                 func_to_host_path "$func_to_host_pathlist_f"
    3087                 if test -n "$func_to_host_path_result" ; then
    3088                   if test -z "$func_to_host_pathlist_result" ; then
    3089                     func_to_host_pathlist_result="$func_to_host_path_result"
    3090                   else
    3091                     func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
    3092                   fi
    3093                 fi
    3094               fi
    3095               IFS=:
    3096             done
    3097             IFS=$func_to_host_pathlist_oldIFS
    3098             ;;
    3099         esac
    3100         if test -z "$func_to_host_pathlist_result" ; then
    3101           func_error "Could not determine the host path(s) corresponding to"
    3102           func_error "  '$1'"
    3103           func_error "Continuing, but uninstalled executables may not work."
    3104           # Fallback. This may break if $1 contains DOS-style drive
    3105           # specifications. The fix is not to complicate the expression
    3106           # below, but for the user to provide a working wine installation
    3107           # with winepath so that path translation in the cross-to-mingw
    3108           # case works properly.
    3109           lt_replace_pathsep_nix_to_dos="s|:|;|g"
    3110           func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
    3111             $SED -e "$lt_replace_pathsep_nix_to_dos"`
    3112         fi
    3113         # Now, add the leading and trailing path separators back
    3114         case "$1" in
    3115           :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
    3116             ;;
    3117         esac
    3118         case "$1" in
    3119           *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
    3120             ;;
    3121         esac
    3122         ;;
    3123     esac
     4034
     4035  # Try to get the absolute directory name.
     4036  absdir=\`cd \"\$thisdir\" && pwd\`
     4037  test -n \"\$absdir\" && thisdir=\"\$absdir\"
     4038"
     4039
     4040        if test "$fast_install" = yes; then
     4041          $ECHO "\
     4042  program=lt-'$outputname'$exeext
     4043  progdir=\"\$thisdir/$objdir\"
     4044
     4045  if test ! -f \"\$progdir/\$program\" ||
     4046     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
     4047       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
     4048
     4049    file=\"\$\$-\$program\"
     4050
     4051    if test ! -d \"\$progdir\"; then
     4052      $MKDIR \"\$progdir\"
     4053    else
     4054      $RM \"\$progdir/\$file\"
     4055    fi"
     4056
     4057          $ECHO "\
     4058
     4059    # relink executable if necessary
     4060    if test -n \"\$relink_command\"; then
     4061      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
     4062      else
     4063        $ECHO \"\$relink_command_output\" >&2
     4064        $RM \"\$progdir/\$file\"
     4065        exit 1
     4066      fi
     4067    fi
     4068
     4069    $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
     4070    { $RM \"\$progdir/\$program\";
     4071      $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
     4072    $RM \"\$progdir/\$file\"
     4073  fi"
     4074        else
     4075          $ECHO "\
     4076  program='$outputname'
     4077  progdir=\"\$thisdir/$objdir\"
     4078"
     4079        fi
     4080
     4081        $ECHO "\
     4082
     4083  if test -f \"\$progdir/\$program\"; then"
     4084
     4085        # fixup the dll searchpath if we need to.
     4086        #
     4087        # Fix the DLL searchpath if we need to.  Do this before prepending
     4088        # to shlibpath, because on Windows, both are PATH and uninstalled
     4089        # libraries must come first.
     4090        if test -n "$dllsearchpath"; then
     4091          $ECHO "\
     4092    # Add the dll search path components to the executable PATH
     4093    PATH=$dllsearchpath:\$PATH
     4094"
     4095        fi
     4096
     4097        # Export our shlibpath_var if we have one.
     4098        if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
     4099          $ECHO "\
     4100    # Add our own library path to $shlibpath_var
     4101    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
     4102
     4103    # Some systems cannot cope with colon-terminated $shlibpath_var
     4104    # The second colon is a workaround for a bug in BeOS R4 sed
     4105    $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
     4106
     4107    export $shlibpath_var
     4108"
     4109        fi
     4110
     4111        $ECHO "\
     4112    if test \"\$libtool_execute_magic\" != \"$magic\"; then
     4113      # Run the actual program with our arguments.
     4114      func_exec_program \${1+\"\$@\"}
     4115    fi
     4116  else
     4117    # The program doesn't exist.
     4118    \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
     4119    \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
     4120    \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
     4121    exit 1
    31244122  fi
    3125 }
    3126 # end: func_to_host_pathlist
     4123fi\
     4124"
     4125}
     4126
    31274127
    31284128# func_emit_cwrapperexe_src
     
    31424142   This wrapper executable should never be moved out of the build directory.
    31434143   If it is, it will not operate correctly.
    3144 
    3145    Currently, it simply execs the wrapper *script* "$SHELL $output",
    3146    but could eventually absorb all of the scripts functionality and
    3147    exec $objdir/$outputname directly.
    31484144*/
    31494145EOF
    31504146            cat <<"EOF"
     4147#ifdef _MSC_VER
     4148# define _CRT_SECURE_NO_DEPRECATE 1
     4149#endif
    31514150#include <stdio.h>
    31524151#include <stdlib.h>
     
    31554154# include <process.h>
    31564155# include <io.h>
    3157 # define setmode _setmode
    31584156#else
    31594157# include <unistd.h>
     
    31614159# ifdef __CYGWIN__
    31624160#  include <io.h>
    3163 #  define HAVE_SETENV
    3164 #  ifdef __STRICT_ANSI__
    3165 char *realpath (const char *, char *);
    3166 int putenv (char *);
    3167 int setenv (const char *, const char *, int);
    3168 #  endif
    31694161# endif
    31704162#endif
     
    31784170#include <sys/stat.h>
    31794171
     4172/* declarations of non-ANSI functions */
     4173#if defined(__MINGW32__)
     4174# ifdef __STRICT_ANSI__
     4175int _putenv (const char *);
     4176# endif
     4177#elif defined(__CYGWIN__)
     4178# ifdef __STRICT_ANSI__
     4179char *realpath (const char *, char *);
     4180int putenv (char *);
     4181int setenv (const char *, const char *, int);
     4182# endif
     4183/* #elif defined (other platforms) ... */
     4184#endif
     4185
     4186/* portability defines, excluding path handling macros */
     4187#if defined(_MSC_VER)
     4188# define setmode _setmode
     4189# define stat    _stat
     4190# define chmod   _chmod
     4191# define getcwd  _getcwd
     4192# define putenv  _putenv
     4193# define S_IXUSR _S_IEXEC
     4194# ifndef _INTPTR_T_DEFINED
     4195#  define _INTPTR_T_DEFINED
     4196#  define intptr_t int
     4197# endif
     4198#elif defined(__MINGW32__)
     4199# define setmode _setmode
     4200# define stat    _stat
     4201# define chmod   _chmod
     4202# define getcwd  _getcwd
     4203# define putenv  _putenv
     4204#elif defined(__CYGWIN__)
     4205# define HAVE_SETENV
     4206# define FOPEN_WB "wb"
     4207/* #elif defined (other platforms) ... */
     4208#endif
     4209
    31804210#if defined(PATH_MAX)
    31814211# define LT_PATHMAX PATH_MAX
     
    31934223#endif
    31944224
    3195 #ifdef _MSC_VER
    3196 # define S_IXUSR _S_IEXEC
    3197 # define stat _stat
    3198 # ifndef _INTPTR_T_DEFINED
    3199 #  define intptr_t int
    3200 # endif
    3201 #endif
    3202 
     4225/* path handling portability macros */
    32034226#ifndef DIR_SEPARATOR
    32044227# define DIR_SEPARATOR '/'
     
    32314254#endif /* PATH_SEPARATOR_2 */
    32324255
    3233 #ifdef __CYGWIN__
    3234 # define FOPEN_WB "wb"
    3235 #endif
    3236 
    32374256#ifndef FOPEN_WB
    32384257# define FOPEN_WB "w"
     
    32474266} while (0)
    32484267
    3249 #undef LTWRAPPER_DEBUGPRINTF
    3250 #if defined DEBUGWRAPPER
    3251 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
    3252 static void
    3253 ltwrapper_debugprintf (const char *fmt, ...)
    3254 {
    3255     va_list args;
    3256     va_start (args, fmt);
    3257     (void) vfprintf (stderr, fmt, args);
    3258     va_end (args);
    3259 }
     4268#if defined(LT_DEBUGWRAPPER)
     4269static int lt_debug = 1;
    32604270#else
    3261 # define LTWRAPPER_DEBUGPRINTF(args)
     4271static int lt_debug = 0;
    32624272#endif
    32634273
    3264 const char *program_name = NULL;
     4274const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
    32654275
    32664276void *xmalloc (size_t num);
     
    32724282int check_executable (const char *path);
    32734283char *strendzap (char *str, const char *pat);
    3274 void lt_fatal (const char *message, ...);
     4284void lt_debugprintf (const char *file, int line, const char *fmt, ...);
     4285void lt_fatal (const char *file, int line, const char *message, ...);
     4286static const char *nonnull (const char *s);
     4287static const char *nonempty (const char *s);
    32754288void lt_setenv (const char *name, const char *value);
    32764289char *lt_extend_str (const char *orig_value, const char *add, int to_end);
    3277 void lt_opt_process_env_set (const char *arg);
    3278 void lt_opt_process_env_prepend (const char *arg);
    3279 void lt_opt_process_env_append (const char *arg);
    3280 int lt_split_name_value (const char *arg, char** name, char** value);
    32814290void lt_update_exe_path (const char *name, const char *value);
    32824291void lt_update_lib_path (const char *name, const char *value);
    3283 
    3284 static const char *script_text_part1 =
     4292char **prepare_spawn (char **argv);
     4293void lt_dump_script (FILE *f);
    32854294EOF
    32864295
    3287             func_emit_wrapper_part1 yes |
    3288                 $SED -e 's/\([\\"]\)/\\\1/g' \
    3289                      -e 's/^/  "/' -e 's/$/\\n"/'
    3290             echo ";"
    32914296            cat <<EOF
    3292 
    3293 static const char *script_text_part2 =
    3294 EOF
    3295             func_emit_wrapper_part2 yes |
    3296                 $SED -e 's/\([\\"]\)/\\\1/g' \
    3297                      -e 's/^/  "/' -e 's/$/\\n"/'
    3298             echo ";"
    3299 
    3300             cat <<EOF
    3301 const char * MAGIC_EXE = "$magic_exe";
     4297volatile const char * MAGIC_EXE = "$magic_exe";
    33024298const char * LIB_PATH_VARNAME = "$shlibpath_var";
    33034299EOF
    33044300
    33054301            if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
    3306               func_to_host_pathlist "$temp_rpath"
     4302              func_to_host_path "$temp_rpath"
    33074303              cat <<EOF
    3308 const char * LIB_PATH_VALUE   = "$func_to_host_pathlist_result";
     4304const char * LIB_PATH_VALUE   = "$func_to_host_path_result";
    33094305EOF
    33104306            else
     
    33154311
    33164312            if test -n "$dllsearchpath"; then
    3317               func_to_host_pathlist "$dllsearchpath:"
     4313              func_to_host_path "$dllsearchpath:"
    33184314              cat <<EOF
    33194315const char * EXE_PATH_VARNAME = "PATH";
    3320 const char * EXE_PATH_VALUE   = "$func_to_host_pathlist_result";
     4316const char * EXE_PATH_VALUE   = "$func_to_host_path_result";
    33214317EOF
    33224318            else
     
    33414337
    33424338#define LTWRAPPER_OPTION_PREFIX         "--lt-"
    3343 #define LTWRAPPER_OPTION_PREFIX_LENGTH  5
    3344 
    3345 static const size_t opt_prefix_len         = LTWRAPPER_OPTION_PREFIX_LENGTH;
     4339
    33464340static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
    3347 
    33484341static const char *dumpscript_opt       = LTWRAPPER_OPTION_PREFIX "dump-script";
    3349 
    3350 static const size_t env_set_opt_len     = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
    3351 static const char *env_set_opt          = LTWRAPPER_OPTION_PREFIX "env-set";
    3352   /* argument is putenv-style "foo=bar", value of foo is set to bar */
    3353 
    3354 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
    3355 static const char *env_prepend_opt      = LTWRAPPER_OPTION_PREFIX "env-prepend";
    3356   /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
    3357 
    3358 static const size_t env_append_opt_len  = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
    3359 static const char *env_append_opt       = LTWRAPPER_OPTION_PREFIX "env-append";
    3360   /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
     4342static const char *debug_opt            = LTWRAPPER_OPTION_PREFIX "debug";
    33614343
    33624344int
     
    33754357
    33764358  program_name = (char *) xstrdup (base_name (argv[0]));
    3377   LTWRAPPER_DEBUGPRINTF (("(main) argv[0]      : %s\n", argv[0]));
    3378   LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
    3379 
    3380   /* very simple arg parsing; don't want to rely on getopt */
     4359  newargz = XMALLOC (char *, argc + 1);
     4360
     4361  /* very simple arg parsing; don't want to rely on getopt
     4362   * also, copy all non cwrapper options to newargz, except
     4363   * argz[0], which is handled differently
     4364   */
     4365  newargc=0;
    33814366  for (i = 1; i < argc; i++)
    33824367    {
     
    33924377
    33934378            cat <<"EOF"
    3394           printf ("%s", script_text_part1);
    3395           printf ("%s", script_text_part2);
     4379          lt_dump_script (stdout);
    33964380          return 0;
    33974381        }
     4382      if (strcmp (argv[i], debug_opt) == 0)
     4383        {
     4384          lt_debug = 1;
     4385          continue;
     4386        }
     4387      if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
     4388        {
     4389          /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
     4390             namespace, but it is not one of the ones we know about and
     4391             have already dealt with, above (inluding dump-script), then
     4392             report an error. Otherwise, targets might begin to believe
     4393             they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
     4394             namespace. The first time any user complains about this, we'll
     4395             need to make LTWRAPPER_OPTION_PREFIX a configure-time option
     4396             or a configure.ac-settable value.
     4397           */
     4398          lt_fatal (__FILE__, __LINE__,
     4399                    "unrecognized %s option: '%s'",
     4400                    ltwrapper_option_prefix, argv[i]);
     4401        }
     4402      /* otherwise ... */
     4403      newargz[++newargc] = xstrdup (argv[i]);
    33984404    }
    3399 
    3400   newargz = XMALLOC (char *, argc + 1);
     4405  newargz[++newargc] = NULL;
     4406
     4407EOF
     4408            cat <<EOF
     4409  /* The GNU banner must be the first non-error debug message */
     4410  lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
     4411EOF
     4412            cat <<"EOF"
     4413  lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
     4414  lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
     4415
    34014416  tmp_pathspec = find_executable (argv[0]);
    34024417  if (tmp_pathspec == NULL)
    3403     lt_fatal ("Couldn't find %s", argv[0]);
    3404   LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
    3405                           tmp_pathspec));
     4418    lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
     4419  lt_debugprintf (__FILE__, __LINE__,
     4420                  "(main) found exe (before symlink chase) at: %s\n",
     4421                  tmp_pathspec);
    34064422
    34074423  actual_cwrapper_path = chase_symlinks (tmp_pathspec);
    3408   LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
    3409                           actual_cwrapper_path));
     4424  lt_debugprintf (__FILE__, __LINE__,
     4425                  "(main) found exe (after symlink chase) at: %s\n",
     4426                  actual_cwrapper_path);
    34104427  XFREE (tmp_pathspec);
    34114428
    3412   actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
     4429  actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
    34134430  strendzap (actual_cwrapper_path, actual_cwrapper_name);
    34144431
     
    34284445  tmp_pathspec = 0;
    34294446
    3430   LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
    3431                           target_name));
     4447  lt_debugprintf (__FILE__, __LINE__,
     4448                  "(main) libtool target name: %s\n",
     4449                  target_name);
    34324450EOF
    34334451
     
    34794497  lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
    34804498  lt_setenv ("DUALCASE", "1");  /* for MSK sh */
     4499  /* Update the DLL searchpath.  EXE_PATH_VALUE ($dllsearchpath) must
     4500     be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
     4501     because on Windows, both *_VARNAMEs are PATH but uninstalled
     4502     libraries must come first. */
     4503  lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
    34814504  lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
    3482   lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
    3483 
    3484   newargc=0;
    3485   for (i = 1; i < argc; i++)
    3486     {
    3487       if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
    3488         {
    3489           if (argv[i][env_set_opt_len] == '=')
    3490             {
    3491               const char *p = argv[i] + env_set_opt_len + 1;
    3492               lt_opt_process_env_set (p);
    3493             }
    3494           else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
    3495             {
    3496               lt_opt_process_env_set (argv[++i]); /* don't copy */
    3497             }
    3498           else
    3499             lt_fatal ("%s missing required argument", env_set_opt);
    3500           continue;
    3501         }
    3502       if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
    3503         {
    3504           if (argv[i][env_prepend_opt_len] == '=')
    3505             {
    3506               const char *p = argv[i] + env_prepend_opt_len + 1;
    3507               lt_opt_process_env_prepend (p);
    3508             }
    3509           else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
    3510             {
    3511               lt_opt_process_env_prepend (argv[++i]); /* don't copy */
    3512             }
    3513           else
    3514             lt_fatal ("%s missing required argument", env_prepend_opt);
    3515           continue;
    3516         }
    3517       if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
    3518         {
    3519           if (argv[i][env_append_opt_len] == '=')
    3520             {
    3521               const char *p = argv[i] + env_append_opt_len + 1;
    3522               lt_opt_process_env_append (p);
    3523             }
    3524           else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
    3525             {
    3526               lt_opt_process_env_append (argv[++i]); /* don't copy */
    3527             }
    3528           else
    3529             lt_fatal ("%s missing required argument", env_append_opt);
    3530           continue;
    3531         }
    3532       if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
    3533         {
    3534           /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
    3535              namespace, but it is not one of the ones we know about and
    3536              have already dealt with, above (inluding dump-script), then
    3537              report an error. Otherwise, targets might begin to believe
    3538              they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
    3539              namespace. The first time any user complains about this, we'll
    3540              need to make LTWRAPPER_OPTION_PREFIX a configure-time option
    3541              or a configure.ac-settable value.
    3542            */
    3543           lt_fatal ("Unrecognized option in %s namespace: '%s'",
    3544                     ltwrapper_option_prefix, argv[i]);
    3545         }
    3546       /* otherwise ... */
    3547       newargz[++newargc] = xstrdup (argv[i]);
    3548     }
    3549   newargz[++newargc] = NULL;
    3550 
    3551   LTWRAPPER_DEBUGPRINTF     (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
     4505
     4506  lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
     4507                  nonnull (lt_argv_zero));
    35524508  for (i = 0; i < newargc; i++)
    35534509    {
    3554       LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d]   : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
     4510      lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
     4511                      i, nonnull (newargz[i]));
    35554512    }
    35564513
     
    35614518                cat <<"EOF"
    35624519  /* execv doesn't actually work on mingw as expected on unix */
     4520  newargz = prepare_spawn (newargz);
    35634521  rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
    35644522  if (rval == -1)
    35654523    {
    35664524      /* failed to start process */
    3567       LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
     4525      lt_debugprintf (__FILE__, __LINE__,
     4526                      "(main) failed to launch target \"%s\": %s\n",
     4527                      lt_argv_zero, nonnull (strerror (errno)));
    35684528      return 127;
    35694529    }
     
    35874547  void *p = (void *) malloc (num);
    35884548  if (!p)
    3589     lt_fatal ("Memory exhausted");
     4549    lt_fatal (__FILE__, __LINE__, "memory exhausted");
    35904550
    35914551  return p;
     
    36214581  struct stat st;
    36224582
    3623   LTWRAPPER_DEBUGPRINTF (("(check_executable)  : %s\n",
    3624                           path ? (*path ? path : "EMPTY!") : "NULL!"));
     4583  lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
     4584                  nonempty (path));
    36254585  if ((!path) || (!*path))
    36264586    return 0;
     
    36394599  struct stat st;
    36404600
    3641   LTWRAPPER_DEBUGPRINTF (("(make_executable)   : %s\n",
    3642                           path ? (*path ? path : "EMPTY!") : "NULL!"));
     4601  lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
     4602                  nonempty (path));
    36434603  if ((!path) || (!*path))
    36444604    return 0;
     
    36664626  char *concat_name;
    36674627
    3668   LTWRAPPER_DEBUGPRINTF (("(find_executable)   : %s\n",
    3669                           wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
     4628  lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
     4629                  nonempty (wrapper));
    36704630
    36714631  if ((wrapper == NULL) || (*wrapper == '\0'))
     
    37204680                  /* empty path: current directory */
    37214681                  if (getcwd (tmp, LT_PATHMAX) == NULL)
    3722                     lt_fatal ("getcwd failed");
     4682                    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
     4683                              nonnull (strerror (errno)));
    37234684                  tmp_len = strlen (tmp);
    37244685                  concat_name =
     
    37454706  /* Relative path | not found in path: prepend cwd */
    37464707  if (getcwd (tmp, LT_PATHMAX) == NULL)
    3747     lt_fatal ("getcwd failed");
     4708    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
     4709              nonnull (strerror (errno)));
    37484710  tmp_len = strlen (tmp);
    37494711  concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
     
    37714733  while (strlen (tmp_pathspec) && !has_symlinks)
    37724734    {
    3773       LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
    3774                               tmp_pathspec));
     4735      lt_debugprintf (__FILE__, __LINE__,
     4736                      "checking path component for symlinks: %s\n",
     4737                      tmp_pathspec);
    37754738      if (lstat (tmp_pathspec, &s) == 0)
    37764739        {
     
    37944757      else
    37954758        {
    3796           char *errstr = strerror (errno);
    3797           lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
     4759          lt_fatal (__FILE__, __LINE__,
     4760                    "error accessing file \"%s\": %s",
     4761                    tmp_pathspec, nonnull (strerror (errno)));
    37984762        }
    37994763    }
     
    38084772  if (tmp_pathspec == 0)
    38094773    {
    3810       lt_fatal ("Could not follow symlinks for %s", pathspec);
     4774      lt_fatal (__FILE__, __LINE__,
     4775                "could not follow symlinks for %s", pathspec);
    38114776    }
    38124777  return xstrdup (tmp_pathspec);
     
    38344799}
    38354800
     4801void
     4802lt_debugprintf (const char *file, int line, const char *fmt, ...)
     4803{
     4804  va_list args;
     4805  if (lt_debug)
     4806    {
     4807      (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
     4808      va_start (args, fmt);
     4809      (void) vfprintf (stderr, fmt, args);
     4810      va_end (args);
     4811    }
     4812}
     4813
    38364814static void
    3837 lt_error_core (int exit_status, const char *mode,
     4815lt_error_core (int exit_status, const char *file,
     4816               int line, const char *mode,
    38384817               const char *message, va_list ap)
    38394818{
    3840   fprintf (stderr, "%s: %s: ", program_name, mode);
     4819  fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
    38414820  vfprintf (stderr, message, ap);
    38424821  fprintf (stderr, ".\n");
     
    38474826
    38484827void
    3849 lt_fatal (const char *message, ...)
     4828lt_fatal (const char *file, int line, const char *message, ...)
    38504829{
    38514830  va_list ap;
    38524831  va_start (ap, message);
    3853   lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
     4832  lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
    38544833  va_end (ap);
     4834}
     4835
     4836static const char *
     4837nonnull (const char *s)
     4838{
     4839  return s ? s : "(null)";
     4840}
     4841
     4842static const char *
     4843nonempty (const char *s)
     4844{
     4845  return (s && !*s) ? "(empty)" : nonnull (s);
    38554846}
    38564847
     
    38584849lt_setenv (const char *name, const char *value)
    38594850{
    3860   LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
    3861                           (name ? name : "<NULL>"),
    3862                           (value ? value : "<NULL>")));
     4851  lt_debugprintf (__FILE__, __LINE__,
     4852                  "(lt_setenv) setting '%s' to '%s'\n",
     4853                  nonnull (name), nonnull (value));
    38634854  {
    38644855#ifdef HAVE_SETENV
     
    39054896}
    39064897
    3907 int
    3908 lt_split_name_value (const char *arg, char** name, char** value)
    3909 {
    3910   const char *p;
    3911   int len;
    3912   if (!arg || !*arg)
    3913     return 1;
    3914 
    3915   p = strchr (arg, (int)'=');
    3916 
    3917   if (!p)
    3918     return 1;
    3919 
    3920   *value = xstrdup (++p);
    3921 
    3922   len = strlen (arg) - strlen (*value);
    3923   *name = XMALLOC (char, len);
    3924   strncpy (*name, arg, len-1);
    3925   (*name)[len - 1] = '\0';
    3926 
    3927   return 0;
    3928 }
    3929 
    3930 void
    3931 lt_opt_process_env_set (const char *arg)
    3932 {
    3933   char *name = NULL;
    3934   char *value = NULL;
    3935 
    3936   if (lt_split_name_value (arg, &name, &value) != 0)
    3937     {
    3938       XFREE (name);
    3939       XFREE (value);
    3940       lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
    3941     }
    3942 
    3943   lt_setenv (name, value);
    3944   XFREE (name);
    3945   XFREE (value);
    3946 }
    3947 
    3948 void
    3949 lt_opt_process_env_prepend (const char *arg)
    3950 {
    3951   char *name = NULL;
    3952   char *value = NULL;
    3953   char *new_value = NULL;
    3954 
    3955   if (lt_split_name_value (arg, &name, &value) != 0)
    3956     {
    3957       XFREE (name);
    3958       XFREE (value);
    3959       lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
    3960     }
    3961 
    3962   new_value = lt_extend_str (getenv (name), value, 0);
    3963   lt_setenv (name, new_value);
    3964   XFREE (new_value);
    3965   XFREE (name);
    3966   XFREE (value);
    3967 }
    3968 
    3969 void
    3970 lt_opt_process_env_append (const char *arg)
    3971 {
    3972   char *name = NULL;
    3973   char *value = NULL;
    3974   char *new_value = NULL;
    3975 
    3976   if (lt_split_name_value (arg, &name, &value) != 0)
    3977     {
    3978       XFREE (name);
    3979       XFREE (value);
    3980       lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
    3981     }
    3982 
    3983   new_value = lt_extend_str (getenv (name), value, 1);
    3984   lt_setenv (name, new_value);
    3985   XFREE (new_value);
    3986   XFREE (name);
    3987   XFREE (value);
    3988 }
    3989 
    39904898void
    39914899lt_update_exe_path (const char *name, const char *value)
    39924900{
    3993   LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
    3994                           (name ? name : "<NULL>"),
    3995                           (value ? value : "<NULL>")));
     4901  lt_debugprintf (__FILE__, __LINE__,
     4902                  "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
     4903                  nonnull (name), nonnull (value));
    39964904
    39974905  if (name && *name && value && *value)
     
    40124920lt_update_lib_path (const char *name, const char *value)
    40134921{
    4014   LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
    4015                           (name ? name : "<NULL>"),
    4016                           (value ? value : "<NULL>")));
     4922  lt_debugprintf (__FILE__, __LINE__,
     4923                  "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
     4924                  nonnull (name), nonnull (value));
    40174925
    40184926  if (name && *name && value && *value)
     
    40244932}
    40254933
    4026 
    40274934EOF
     4935            case $host_os in
     4936              mingw*)
     4937                cat <<"EOF"
     4938
     4939/* Prepares an argument vector before calling spawn().
     4940   Note that spawn() does not by itself call the command interpreter
     4941     (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
     4942      ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     4943         GetVersionEx(&v);
     4944         v.dwPlatformId == VER_PLATFORM_WIN32_NT;
     4945      }) ? "cmd.exe" : "command.com").
     4946   Instead it simply concatenates the arguments, separated by ' ', and calls
     4947   CreateProcess().  We must quote the arguments since Win32 CreateProcess()
     4948   interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
     4949   special way:
     4950   - Space and tab are interpreted as delimiters. They are not treated as
     4951     delimiters if they are surrounded by double quotes: "...".
     4952   - Unescaped double quotes are removed from the input. Their only effect is
     4953     that within double quotes, space and tab are treated like normal
     4954     characters.
     4955   - Backslashes not followed by double quotes are not special.
     4956   - But 2*n+1 backslashes followed by a double quote become
     4957     n backslashes followed by a double quote (n >= 0):
     4958       \" -> "
     4959       \\\" -> \"
     4960       \\\\\" -> \\"
     4961 */
     4962#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
     4963#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
     4964char **
     4965prepare_spawn (char **argv)
     4966{
     4967  size_t argc;
     4968  char **new_argv;
     4969  size_t i;
     4970
     4971  /* Count number of arguments.  */
     4972  for (argc = 0; argv[argc] != NULL; argc++)
     4973    ;
     4974
     4975  /* Allocate new argument vector.  */
     4976  new_argv = XMALLOC (char *, argc + 1);
     4977
     4978  /* Put quoted arguments into the new argument vector.  */
     4979  for (i = 0; i < argc; i++)
     4980    {
     4981      const char *string = argv[i];
     4982
     4983      if (string[0] == '\0')
     4984        new_argv[i] = xstrdup ("\"\"");
     4985      else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
     4986        {
     4987          int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
     4988          size_t length;
     4989          unsigned int backslashes;
     4990          const char *s;
     4991          char *quoted_string;
     4992          char *p;
     4993
     4994          length = 0;
     4995          backslashes = 0;
     4996          if (quote_around)
     4997            length++;
     4998          for (s = string; *s != '\0'; s++)
     4999            {
     5000              char c = *s;
     5001              if (c == '"')
     5002                length += backslashes + 1;
     5003              length++;
     5004              if (c == '\\')
     5005                backslashes++;
     5006              else
     5007                backslashes = 0;
     5008            }
     5009          if (quote_around)
     5010            length += backslashes + 1;
     5011
     5012          quoted_string = XMALLOC (char, length + 1);
     5013
     5014          p = quoted_string;
     5015          backslashes = 0;
     5016          if (quote_around)
     5017            *p++ = '"';
     5018          for (s = string; *s != '\0'; s++)
     5019            {
     5020              char c = *s;
     5021              if (c == '"')
     5022                {
     5023                  unsigned int j;
     5024                  for (j = backslashes + 1; j > 0; j--)
     5025                    *p++ = '\\';
     5026                }
     5027              *p++ = c;
     5028              if (c == '\\')
     5029                backslashes++;
     5030              else
     5031                backslashes = 0;
     5032            }
     5033          if (quote_around)
     5034            {
     5035              unsigned int j;
     5036              for (j = backslashes; j > 0; j--)
     5037                *p++ = '\\';
     5038              *p++ = '"';
     5039            }
     5040          *p = '\0';
     5041
     5042          new_argv[i] = quoted_string;
     5043        }
     5044      else
     5045        new_argv[i] = (char *) string;
     5046    }
     5047  new_argv[argc] = NULL;
     5048
     5049  return new_argv;
     5050}
     5051EOF
     5052                ;;
     5053            esac
     5054
     5055            cat <<"EOF"
     5056void lt_dump_script (FILE* f)
     5057{
     5058EOF
     5059            func_emit_wrapper yes |
     5060              $SED -e 's/\([\\"]\)/\\\1/g' \
     5061                   -e 's/^/  fputs ("/' -e 's/$/\\n", f);/'
     5062
     5063            cat <<"EOF"
     5064}
     5065EOF
    40285066}
    40295067# end: func_emit_cwrapperexe_src
     5068
     5069# func_win32_import_lib_p ARG
     5070# True if ARG is an import lib, as indicated by $file_magic_cmd
     5071func_win32_import_lib_p ()
     5072{
     5073    $opt_debug
     5074    case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
     5075    *import*) : ;;
     5076    *) false ;;
     5077    esac
     5078}
    40305079
    40315080# func_mode_link arg...
     
    40735122
    40745123    avoid_version=no
     5124    bindir=
    40755125    dlfiles=
    40765126    dlprefiles=
     
    41655215
    41665216        case $prev in
     5217        bindir)
     5218          bindir="$arg"
     5219          prev=
     5220          continue
     5221          ;;
    41675222        dlfiles|dlprefiles)
    41685223          if test "$preload" = no; then
     
    41965251          *)
    41975252            if test "$prev" = dlfiles; then
    4198               dlfiles="$dlfiles $arg"
     5253              func_append dlfiles " $arg"
    41995254            else
    4200               dlprefiles="$dlprefiles $arg"
     5255              func_append dlprefiles " $arg"
    42015256            fi
    42025257            prev=
     
    42225277              case "$deplibs " in
    42235278                *" $qarg.ltframework "*) ;;
    4224                 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
     5279                *) func_append deplibs " $qarg.ltframework" # this is fixed later
    42255280                   ;;
    42265281              esac
     
    42415296            for fil in `cat "$save_arg"`
    42425297            do
    4243 #             moreargs="$moreargs $fil"
     5298#             func_append moreargs " $fil"
    42445299              arg=$fil
    42455300              # A libtool-controlled object.
     
    42705325                  if test "$prev" = dlfiles; then
    42715326                    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
    4272                       dlfiles="$dlfiles $pic_object"
     5327                      func_append dlfiles " $pic_object"
    42735328                      prev=
    42745329                      continue
     
    42825337                  if test "$prev" = dlprefiles; then
    42835338                    # Preload the old-style object.
    4284                     dlprefiles="$dlprefiles $pic_object"
     5339                    func_append dlprefiles " $pic_object"
    42855340                    prev=
    42865341                  fi
     
    43525407            case "$rpath " in
    43535408            *" $arg "*) ;;
    4354             *) rpath="$rpath $arg" ;;
     5409            *) func_append rpath " $arg" ;;
    43555410            esac
    43565411          else
    43575412            case "$xrpath " in
    43585413            *" $arg "*) ;;
    4359             *) xrpath="$xrpath $arg" ;;
     5414            *) func_append xrpath " $arg" ;;
    43605415            esac
    43615416          fi
     
    43695424          ;;
    43705425        weak)
    4371           weak_libs="$weak_libs $arg"
     5426          func_append weak_libs " $arg"
    43725427          prev=
    43735428          continue
    43745429          ;;
    43755430        xcclinker)
    4376           linker_flags="$linker_flags $qarg"
    4377           compiler_flags="$compiler_flags $qarg"
     5431          func_append linker_flags " $qarg"
     5432          func_append compiler_flags " $qarg"
    43785433          prev=
    43795434          func_append compile_command " $qarg"
     
    43825437          ;;
    43835438        xcompiler)
    4384           compiler_flags="$compiler_flags $qarg"
     5439          func_append compiler_flags " $qarg"
    43855440          prev=
    43865441          func_append compile_command " $qarg"
     
    43895444          ;;
    43905445        xlinker)
    4391           linker_flags="$linker_flags $qarg"
    4392           compiler_flags="$compiler_flags $wl$qarg"
     5446          func_append linker_flags " $qarg"
     5447          func_append compiler_flags " $wl$qarg"
    43935448          prev=
    43945449          func_append compile_command " $wl$qarg"
     
    44265481        ;;
    44275482
     5483      -bindir)
     5484        prev=bindir
     5485        continue
     5486        ;;
     5487
    44285488      -dlopen)
    44295489        prev=dlfiles
     
    44765536
    44775537      -L*)
    4478         func_stripname '-L' '' "$arg"
    4479         dir=$func_stripname_result
    4480         if test -z "$dir"; then
     5538        func_stripname "-L" '' "$arg"
     5539        if test -z "$func_stripname_result"; then
    44815540          if test "$#" -gt 0; then
    44825541            func_fatal_error "require no space between \`-L' and \`$1'"
     
    44855544          fi
    44865545        fi
     5546        func_resolve_sysroot "$func_stripname_result"
     5547        dir=$func_resolve_sysroot_result
    44875548        # We need an absolute path.
    44885549        case $dir in
     
    44965557        esac
    44975558        case "$deplibs " in
    4498         *" -L$dir "*) ;;
     5559        *" -L$dir "* | *" $arg "*)
     5560          # Will only happen for absolute or sysroot arguments
     5561          ;;
    44995562        *)
    4500           deplibs="$deplibs -L$dir"
    4501           lib_search_path="$lib_search_path $dir"
     5563          # Preserve sysroot, but never include relative directories
     5564          case $dir in
     5565            [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
     5566            *) func_append deplibs " -L$dir" ;;
     5567          esac
     5568          func_append lib_search_path " $dir"
    45025569          ;;
    45035570        esac
    45045571        case $host in
    45055572        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
    4506           testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
     5573          testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
    45075574          case :$dllsearchpath: in
    45085575          *":$dir:"*) ;;
    45095576          ::) dllsearchpath=$dir;;
    4510           *) dllsearchpath="$dllsearchpath:$dir";;
     5577          *) func_append dllsearchpath ":$dir";;
    45115578          esac
    45125579          case :$dllsearchpath: in
    45135580          *":$testbindir:"*) ;;
    45145581          ::) dllsearchpath=$testbindir;;
    4515           *) dllsearchpath="$dllsearchpath:$testbindir";;
     5582          *) func_append dllsearchpath ":$testbindir";;
    45165583          esac
    45175584          ;;
     
    45235590        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
    45245591          case $host in
    4525           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
     5592          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
    45265593            # These systems don't actually have a C or math library (as such)
    45275594            continue
     
    45375604          *-*-rhapsody* | *-*-darwin1.[012])
    45385605            # Rhapsody C and math libraries are in the System framework
    4539             deplibs="$deplibs System.ltframework"
     5606            func_append deplibs " System.ltframework"
    45405607            continue
    45415608            ;;
     
    45575624         esac
    45585625        fi
    4559         deplibs="$deplibs $arg"
     5626        func_append deplibs " $arg"
    45605627        continue
    45615628        ;;
     
    45695636      # classes, name mangling, and exception handling.
    45705637      # Darwin uses the -arch flag to determine output architecture.
    4571       -model|-arch|-isysroot)
    4572         compiler_flags="$compiler_flags $arg"
     5638      -model|-arch|-isysroot|--sysroot)
     5639        func_append compiler_flags " $arg"
    45735640        func_append compile_command " $arg"
    45745641        func_append finalize_command " $arg"
     
    45785645
    45795646      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
    4580         compiler_flags="$compiler_flags $arg"
     5647        func_append compiler_flags " $arg"
    45815648        func_append compile_command " $arg"
    45825649        func_append finalize_command " $arg"
    45835650        case "$new_inherited_linker_flags " in
    45845651            *" $arg "*) ;;
    4585             * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
     5652            * ) func_append new_inherited_linker_flags " $arg" ;;
    45865653        esac
    45875654        continue
     
    46505717        case $dir in
    46515718        [\\/]* | [A-Za-z]:[\\/]*) ;;
     5719        =*)
     5720          func_stripname '=' '' "$dir"
     5721          dir=$lt_sysroot$func_stripname_result
     5722          ;;
    46525723        *)
    46535724          func_fatal_error "only absolute run-paths are allowed"
     
    46565727        case "$xrpath " in
    46575728        *" $dir "*) ;;
    4658         *) xrpath="$xrpath $dir" ;;
     5729        *) func_append xrpath " $dir" ;;
    46595730        esac
    46605731        continue
     
    47095780          IFS="$save_ifs"
    47105781          func_quote_for_eval "$flag"
    4711           arg="$arg $wl$func_quote_for_eval_result"
    4712           compiler_flags="$compiler_flags $func_quote_for_eval_result"
     5782          func_append arg " $func_quote_for_eval_result"
     5783          func_append compiler_flags " $func_quote_for_eval_result"
    47135784        done
    47145785        IFS="$save_ifs"
     
    47255796          IFS="$save_ifs"
    47265797          func_quote_for_eval "$flag"
    4727           arg="$arg $wl$func_quote_for_eval_result"
    4728           compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
    4729           linker_flags="$linker_flags $func_quote_for_eval_result"
     5798          func_append arg " $wl$func_quote_for_eval_result"
     5799          func_append compiler_flags " $wl$func_quote_for_eval_result"
     5800          func_append linker_flags " $func_quote_for_eval_result"
    47305801        done
    47315802        IFS="$save_ifs"
     
    47555826        ;;
    47565827
    4757       # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
    4758       # -r[0-9][0-9]* specifies the processor on the SGI compiler
    4759       # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
    4760       # +DA*, +DD* enable 64-bit mode on the HP compiler
    4761       # -q* pass through compiler args for the IBM compiler
    4762       # -m*, -t[45]*, -txscale* pass through architecture-specific
    4763       # compiler args for GCC
    4764       # -F/path gives path to uninstalled frameworks, gcc on darwin
    4765       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
    4766       # @file GCC response files
     5828      # Flags to be passed through unchanged, with rationale:
     5829      # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
     5830      # -r[0-9][0-9]*        specify processor for the SGI compiler
     5831      # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
     5832      # +DA*, +DD*           enable 64-bit mode for the HP compiler
     5833      # -q*                  compiler args for the IBM compiler
     5834      # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
     5835      # -F/path              path to uninstalled frameworks, gcc on darwin
     5836      # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
     5837      # @file                GCC response files
     5838      # -tp=*                Portland pgcc target processor selection
     5839      # --sysroot=*          for sysroot support
     5840      # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
    47675841      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
    4768       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
     5842      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
     5843      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
    47695844        func_quote_for_eval "$arg"
    47705845        arg="$func_quote_for_eval_result"
    47715846        func_append compile_command " $arg"
    47725847        func_append finalize_command " $arg"
    4773         compiler_flags="$compiler_flags $arg"
     5848        func_append compiler_flags " $arg"
    47745849        continue
    47755850        ;;
     
    47835858      *.$objext)
    47845859        # A standard object.
    4785         objs="$objs $arg"
     5860        func_append objs " $arg"
    47865861        ;;
    47875862
     
    48145889            if test "$prev" = dlfiles; then
    48155890              if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
    4816                 dlfiles="$dlfiles $pic_object"
     5891                func_append dlfiles " $pic_object"
    48175892                prev=
    48185893                continue
     
    48265901            if test "$prev" = dlprefiles; then
    48275902              # Preload the old-style object.
    4828               dlprefiles="$dlprefiles $pic_object"
     5903              func_append dlprefiles " $pic_object"
    48295904              prev=
    48305905            fi
     
    48715946      *.$libext)
    48725947        # An archive.
    4873         deplibs="$deplibs $arg"
    4874         old_deplibs="$old_deplibs $arg"
     5948        func_append deplibs " $arg"
     5949        func_append old_deplibs " $arg"
    48755950        continue
    48765951        ;;
     
    48795954        # A libtool-controlled library.
    48805955
     5956        func_resolve_sysroot "$arg"
    48815957        if test "$prev" = dlfiles; then
    48825958          # This library was specified with -dlopen.
    4883           dlfiles="$dlfiles $arg"
     5959          func_append dlfiles " $func_resolve_sysroot_result"
    48845960          prev=
    48855961        elif test "$prev" = dlprefiles; then
    48865962          # The library was specified with -dlpreopen.
    4887           dlprefiles="$dlprefiles $arg"
     5963          func_append dlprefiles " $func_resolve_sysroot_result"
    48885964          prev=
    48895965        else
    4890           deplibs="$deplibs $arg"
     5966          func_append deplibs " $func_resolve_sysroot_result"
    48915967        fi
    48925968        continue
     
    49266002    if test -n "$shlibpath_var"; then
    49276003      # get the directories listed in $shlibpath_var
    4928       eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
     6004      eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
    49296005    else
    49306006      shlib_search_path=
     
    49356011    func_dirname "$output" "/" ""
    49366012    output_objdir="$func_dirname_result$objdir"
     6013    func_to_tool_file "$output_objdir/"
     6014    tool_output_objdir=$func_to_tool_file_result
    49376015    # Create the object directory.
    49386016    func_mkdir_p "$output_objdir"
     
    49556033    # that are linked more than once (e.g. -la -lb -la)
    49566034    for deplib in $deplibs; do
    4957       if $opt_duplicate_deps ; then
     6035      if $opt_preserve_dup_deps ; then
    49586036        case "$libs " in
    4959         *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     6037        *" $deplib "*) func_append specialdeplibs " $deplib" ;;
    49606038        esac
    49616039      fi
    4962       libs="$libs $deplib"
     6040      func_append libs " $deplib"
    49636041    done
    49646042
     
    49736051        for pre_post_dep in $predeps $postdeps; do
    49746052          case "$pre_post_deps " in
    4975           *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
     6053          *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
    49766054          esac
    4977           pre_post_deps="$pre_post_deps $pre_post_dep"
     6055          func_append pre_post_deps " $pre_post_dep"
    49786056        done
    49796057      fi
     
    50456123          # Ignore non-libtool-libs
    50466124          dependency_libs=
     6125          func_resolve_sysroot "$lib"
    50476126          case $lib in
    5048           *.la) func_source "$lib" ;;
     6127          *.la) func_source "$func_resolve_sysroot_result" ;;
    50496128          esac
    50506129
     
    50526131          # has declared as weak libs
    50536132          for deplib in $dependency_libs; do
    5054             deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
     6133            func_basename "$deplib"
     6134            deplib_base=$func_basename_result
    50556135            case " $weak_libs " in
    50566136            *" $deplib_base "*) ;;
    5057             *) deplibs="$deplibs $deplib" ;;
     6137            *) func_append deplibs " $deplib" ;;
    50586138            esac
    50596139          done
     
    50766156            finalize_deplibs="$deplib $finalize_deplibs"
    50776157          else
    5078             compiler_flags="$compiler_flags $deplib"
     6158            func_append compiler_flags " $deplib"
    50796159            if test "$linkmode" = lib ; then
    50806160                case "$new_inherited_linker_flags " in
    50816161                    *" $deplib "*) ;;
    5082                     * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
     6162                    * ) func_append new_inherited_linker_flags " $deplib" ;;
    50836163                esac
    50846164            fi
     
    51656245                case "$new_inherited_linker_flags " in
    51666246                    *" $deplib "*) ;;
    5167                     * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
     6247                    * ) func_append new_inherited_linker_flags " $deplib" ;;
    51686248                esac
    51696249            fi
     
    51786258            newdependency_libs="$deplib $newdependency_libs"
    51796259            func_stripname '-L' '' "$deplib"
    5180             newlib_search_path="$newlib_search_path $func_stripname_result"
     6260            func_resolve_sysroot "$func_stripname_result"
     6261            func_append newlib_search_path " $func_resolve_sysroot_result"
    51816262            ;;
    51826263          prog)
     
    51926273            fi
    51936274            func_stripname '-L' '' "$deplib"
    5194             newlib_search_path="$newlib_search_path $func_stripname_result"
     6275            func_resolve_sysroot "$func_stripname_result"
     6276            func_append newlib_search_path " $func_resolve_sysroot_result"
    51956277            ;;
    51966278          *)
     
    52036285          if test "$pass" = link; then
    52046286            func_stripname '-R' '' "$deplib"
    5205             dir=$func_stripname_result
     6287            func_resolve_sysroot "$func_stripname_result"
     6288            dir=$func_resolve_sysroot_result
    52066289            # Make sure the xrpath contains only unique directories.
    52076290            case "$xrpath " in
    52086291            *" $dir "*) ;;
    5209             *) xrpath="$xrpath $dir" ;;
     6292            *) func_append xrpath " $dir" ;;
    52106293            esac
    52116294          fi
     
    52136296          continue
    52146297          ;;
    5215         *.la) lib="$deplib" ;;
     6298        *.la)
     6299          func_resolve_sysroot "$deplib"
     6300          lib=$func_resolve_sysroot_result
     6301          ;;
    52166302        *.$libext)
    52176303          if test "$pass" = conv; then
     
    52316317                  set dummy $deplibs_check_method; shift
    52326318                  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
    5233                   if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
     6319                  if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
    52346320                    | $EGREP "$match_pattern_regex" > /dev/null; then
    52356321                    valid_a_lib=yes
     
    52416327              esac
    52426328              if test "$valid_a_lib" != yes; then
    5243                 $ECHO
     6329                echo
    52446330                $ECHO "*** Warning: Trying to link with static lib archive $deplib."
    5245                 $ECHO "*** I have the capability to make that library automatically link in when"
    5246                 $ECHO "*** you link to this library.  But I can only do this if you have a"
    5247                 $ECHO "*** shared version of the library, which you do not appear to have"
    5248                 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
    5249                 $ECHO "*** that it is just a static archive that I should not use here."
     6331                echo "*** I have the capability to make that library automatically link in when"
     6332                echo "*** you link to this library.  But I can only do this if you have a"
     6333                echo "*** shared version of the library, which you do not appear to have"
     6334                echo "*** because the file extensions .$libext of this argument makes me believe"
     6335                echo "*** that it is just a static archive that I should not use here."
    52506336              else
    5251                 $ECHO
     6337                echo
    52526338                $ECHO "*** Warning: Linking the shared library $output against the"
    52536339                $ECHO "*** static library $deplib is not portable!"
     
    52766362              # If there is no dlopen support or we're linking statically,
    52776363              # we need to preload.
    5278               newdlprefiles="$newdlprefiles $deplib"
     6364              func_append newdlprefiles " $deplib"
    52796365              compile_deplibs="$deplib $compile_deplibs"
    52806366              finalize_deplibs="$deplib $finalize_deplibs"
    52816367            else
    5282               newdlfiles="$newdlfiles $deplib"
     6368              func_append newdlfiles " $deplib"
    52836369            fi
    52846370          fi
     
    53226408        # Convert "-framework foo" to "foo.ltframework"
    53236409        if test -n "$inherited_linker_flags"; then
    5324           tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
     6410          tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
    53256411          for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
    53266412            case " $new_inherited_linker_flags " in
    53276413              *" $tmp_inherited_linker_flag "*) ;;
    5328               *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
     6414              *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
    53296415            esac
    53306416          done
    53316417        fi
    5332         dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     6418        dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    53336419        if test "$linkmode,$pass" = "lib,link" ||
    53346420           test "$linkmode,$pass" = "prog,scan" ||
    53356421           { test "$linkmode" != prog && test "$linkmode" != lib; }; then
    5336           test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
    5337           test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
     6422          test -n "$dlopen" && func_append dlfiles " $dlopen"
     6423          test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
    53386424        fi
    53396425
     
    53466432            fi
    53476433            # It is a libtool convenience library, so add in its objects.
    5348             convenience="$convenience $ladir/$objdir/$old_library"
    5349             old_convenience="$old_convenience $ladir/$objdir/$old_library"
     6434            func_append convenience " $ladir/$objdir/$old_library"
     6435            func_append old_convenience " $ladir/$objdir/$old_library"
    53506436            tmp_libs=
    53516437            for deplib in $dependency_libs; do
    53526438              deplibs="$deplib $deplibs"
    5353               if $opt_duplicate_deps ; then
     6439              if $opt_preserve_dup_deps ; then
    53546440                case "$tmp_libs " in
    5355                 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     6441                *" $deplib "*) func_append specialdeplibs " $deplib" ;;
    53566442                esac
    53576443              fi
    5358               tmp_libs="$tmp_libs $deplib"
     6444              func_append tmp_libs " $deplib"
    53596445            done
    53606446          elif test "$linkmode" != prog && test "$linkmode" != lib; then
     
    53676453        # Get the name of the library we link against.
    53686454        linklib=
    5369         for l in $old_library $library_names; do
    5370           linklib="$l"
    5371         done
     6455        if test -n "$old_library" &&
     6456           { test "$prefer_static_libs" = yes ||
     6457             test "$prefer_static_libs,$installed" = "built,no"; }; then
     6458          linklib=$old_library
     6459        else
     6460          for l in $old_library $library_names; do
     6461            linklib="$l"
     6462          done
     6463        fi
    53726464        if test -z "$linklib"; then
    53736465          func_fatal_error "cannot find name of link library for \`$lib'"
     
    53866478            # dependent libraries so libltdl's deplib preloader doesn't
    53876479            # bomb out in the load deplibs phase.
    5388             dlprefiles="$dlprefiles $lib $dependency_libs"
     6480            func_append dlprefiles " $lib $dependency_libs"
    53896481          else
    5390             newdlfiles="$newdlfiles $lib"
     6482            func_append newdlfiles " $lib"
    53916483          fi
    53926484          continue
     
    54106502        # Find the relevant object directory and library name.
    54116503        if test "X$installed" = Xyes; then
    5412           if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
     6504          if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
    54136505            func_warning "library \`$lib' was moved."
    54146506            dir="$ladir"
     
    54166508            libdir="$abs_ladir"
    54176509          else
    5418             dir="$libdir"
    5419             absdir="$libdir"
     6510            dir="$lt_sysroot$libdir"
     6511            absdir="$lt_sysroot$libdir"
    54206512          fi
    54216513          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
     
    54256517            absdir="$abs_ladir"
    54266518            # Remove this search path later
    5427             notinst_path="$notinst_path $abs_ladir"
     6519            func_append notinst_path " $abs_ladir"
    54286520          else
    54296521            dir="$ladir/$objdir"
    54306522            absdir="$abs_ladir/$objdir"
    54316523            # Remove this search path later
    5432             notinst_path="$notinst_path $abs_ladir"
     6524            func_append notinst_path " $abs_ladir"
    54336525          fi
    54346526        fi # $installed = yes
     
    54416533            func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
    54426534          fi
    5443           # Prefer using a static library (so that no silly _DYNAMIC symbols
    5444           # are required to link).
    5445           if test -n "$old_library"; then
    5446             newdlprefiles="$newdlprefiles $dir/$old_library"
    5447             # Keep a list of preopened convenience libraries to check
    5448             # that they are being used correctly in the link pass.
    5449             test -z "$libdir" && \
    5450                 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
    5451           # Otherwise, use the dlname, so that lt_dlopen finds it.
    5452           elif test -n "$dlname"; then
    5453             newdlprefiles="$newdlprefiles $dir/$dlname"
    5454           else
    5455             newdlprefiles="$newdlprefiles $dir/$linklib"
    5456           fi
     6535          case "$host" in
     6536            # special handling for platforms with PE-DLLs.
     6537            *cygwin* | *mingw* | *cegcc* )
     6538              # Linker will automatically link against shared library if both
     6539              # static and shared are present.  Therefore, ensure we extract
     6540              # symbols from the import library if a shared library is present
     6541              # (otherwise, the dlopen module name will be incorrect).  We do
     6542              # this by putting the import library name into $newdlprefiles.
     6543              # We recover the dlopen module name by 'saving' the la file
     6544              # name in a special purpose variable, and (later) extracting the
     6545              # dlname from the la file.
     6546              if test -n "$dlname"; then
     6547                func_tr_sh "$dir/$linklib"
     6548                eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
     6549                func_append newdlprefiles " $dir/$linklib"
     6550              else
     6551                func_append newdlprefiles " $dir/$old_library"
     6552                # Keep a list of preopened convenience libraries to check
     6553                # that they are being used correctly in the link pass.
     6554                test -z "$libdir" && \
     6555                  func_append dlpreconveniencelibs " $dir/$old_library"
     6556              fi
     6557            ;;
     6558            * )
     6559              # Prefer using a static library (so that no silly _DYNAMIC symbols
     6560              # are required to link).
     6561              if test -n "$old_library"; then
     6562                func_append newdlprefiles " $dir/$old_library"
     6563                # Keep a list of preopened convenience libraries to check
     6564                # that they are being used correctly in the link pass.
     6565                test -z "$libdir" && \
     6566                  func_append dlpreconveniencelibs " $dir/$old_library"
     6567              # Otherwise, use the dlname, so that lt_dlopen finds it.
     6568              elif test -n "$dlname"; then
     6569                func_append newdlprefiles " $dir/$dlname"
     6570              else
     6571                func_append newdlprefiles " $dir/$linklib"
     6572              fi
     6573            ;;
     6574          esac
    54576575        fi # $pass = dlpreopen
    54586576
     
    54726590
    54736591        if test "$linkmode" = prog && test "$pass" != link; then
    5474           newlib_search_path="$newlib_search_path $ladir"
     6592          func_append newlib_search_path " $ladir"
    54756593          deplibs="$lib $deplibs"
    54766594
     
    54856603            case $deplib in
    54866604            -L*) func_stripname '-L' '' "$deplib"
    5487                  newlib_search_path="$newlib_search_path $func_stripname_result"
     6605                 func_resolve_sysroot "$func_stripname_result"
     6606                 func_append newlib_search_path " $func_resolve_sysroot_result"
    54886607                 ;;
    54896608            esac
     
    54966615              newdependency_libs="$deplib $newdependency_libs"
    54976616            fi
    5498             if $opt_duplicate_deps ; then
     6617            if $opt_preserve_dup_deps ; then
    54996618              case "$tmp_libs " in
    5500               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     6619              *" $deplib "*) func_append specialdeplibs " $deplib" ;;
    55016620              esac
    55026621            fi
    5503             tmp_libs="$tmp_libs $deplib"
     6622            func_append tmp_libs " $deplib"
    55046623          done # for deplib
    55056624          continue
     
    55166635              case "$temp_rpath:" in
    55176636              *"$absdir:"*) ;;
    5518               *) temp_rpath="$temp_rpath$absdir:" ;;
     6637              *) func_append temp_rpath "$absdir:" ;;
    55196638              esac
    55206639            fi
     
    55286647              case "$compile_rpath " in
    55296648              *" $absdir "*) ;;
    5530               *) compile_rpath="$compile_rpath $absdir"
     6649              *) func_append compile_rpath " $absdir" ;;
    55316650              esac
    55326651              ;;
     
    55376656              case "$finalize_rpath " in
    55386657              *" $libdir "*) ;;
    5539               *) finalize_rpath="$finalize_rpath $libdir"
     6658              *) func_append finalize_rpath " $libdir" ;;
    55406659              esac
    55416660              ;;
     
    55626681          *cygwin* | *mingw* | *cegcc*)
    55636682              # No point in relinking DLLs because paths are not encoded
    5564               notinst_deplibs="$notinst_deplibs $lib"
     6683              func_append notinst_deplibs " $lib"
    55656684              need_relink=no
    55666685            ;;
    55676686          *)
    55686687            if test "$installed" = no; then
    5569               notinst_deplibs="$notinst_deplibs $lib"
     6688              func_append notinst_deplibs " $lib"
    55706689              need_relink=yes
    55716690            fi
     
    55836702            fi
    55846703          done
    5585           if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
    5586             if test "$linkmode" != prog; then
    5587               $ECHO "*** Warning: Linking the shared library $output against the loadable module"
    5588               $ECHO "*** $linklib is not portable!"
    5589             fi
    5590           fi
    55916704          if test "$linkmode" = lib &&
    55926705             test "$hardcode_into_libs" = yes; then
     
    55996712              case "$compile_rpath " in
    56006713              *" $absdir "*) ;;
    5601               *) compile_rpath="$compile_rpath $absdir"
     6714              *) func_append compile_rpath " $absdir" ;;
    56026715              esac
    56036716              ;;
     
    56086721              case "$finalize_rpath " in
    56096722              *" $libdir "*) ;;
    5610               *) finalize_rpath="$finalize_rpath $libdir"
     6723              *) func_append finalize_rpath " $libdir" ;;
    56116724              esac
    56126725              ;;
     
    56626775          fi # test -n "$old_archive_from_expsyms_cmds"
    56636776
    5664           if test "$linkmode" = prog || test "$mode" != relink; then
     6777          if test "$linkmode" = prog || test "$opt_mode" != relink; then
    56656778            add_shlibpath=
    56666779            add_dir=
     
    56846797                        $ECHO "*** Warning: lib $linklib is a module, not a shared library"
    56856798                        if test -z "$old_library" ; then
    5686                           $ECHO
    5687                           $ECHO "*** And there doesn't seem to be a static archive available"
    5688                           $ECHO "*** The link will probably fail, sorry"
     6799                          echo
     6800                          echo "*** And there doesn't seem to be a static archive available"
     6801                          echo "*** The link will probably fail, sorry"
    56896802                        else
    56906803                          add="$dir/$old_library"
     
    57186831                  case $libdir in
    57196832                    [\\/]*)
    5720                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
     6833                      func_append add_dir " -L$inst_prefix_dir$libdir"
    57216834                      ;;
    57226835                  esac
     
    57406853              case :$compile_shlibpath: in
    57416854              *":$add_shlibpath:"*) ;;
    5742               *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
     6855              *) func_append compile_shlibpath "$add_shlibpath:" ;;
    57436856              esac
    57446857            fi
     
    57546867                case :$finalize_shlibpath: in
    57556868                *":$libdir:"*) ;;
    5756                 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
     6869                *) func_append finalize_shlibpath "$libdir:" ;;
    57576870                esac
    57586871              fi
     
    57606873          fi
    57616874
    5762           if test "$linkmode" = prog || test "$mode" = relink; then
     6875          if test "$linkmode" = prog || test "$opt_mode" = relink; then
    57636876            add_shlibpath=
    57646877            add_dir=
     
    57746887              case :$finalize_shlibpath: in
    57756888              *":$libdir:"*) ;;
    5776               *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
     6889              *) func_append finalize_shlibpath "$libdir:" ;;
    57776890              esac
    57786891              add="-l$name"
     
    57916904                case $libdir in
    57926905                  [\\/]*)
    5793                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
     6906                    func_append add_dir " -L$inst_prefix_dir$libdir"
    57946907                    ;;
    57956908                esac
     
    58266939            # Just print a warning and add the library to dependency_libs so
    58276940            # that the program can be linked against the static library.
    5828             $ECHO
     6941            echo
    58296942            $ECHO "*** Warning: This system can not link to static lib archive $lib."
    5830             $ECHO "*** I have the capability to make that library automatically link in when"
    5831             $ECHO "*** you link to this library.  But I can only do this if you have a"
    5832             $ECHO "*** shared version of the library, which you do not appear to have."
     6943            echo "*** I have the capability to make that library automatically link in when"
     6944            echo "*** you link to this library.  But I can only do this if you have a"
     6945            echo "*** shared version of the library, which you do not appear to have."
    58336946            if test "$module" = yes; then
    5834               $ECHO "*** But as you try to build a module library, libtool will still create "
    5835               $ECHO "*** a static module, that should work as long as the dlopening application"
    5836               $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
     6947              echo "*** But as you try to build a module library, libtool will still create "
     6948              echo "*** a static module, that should work as long as the dlopening application"
     6949              echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
    58376950              if test -z "$global_symbol_pipe"; then
    5838                 $ECHO
    5839                 $ECHO "*** However, this would only work if libtool was able to extract symbol"
    5840                 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
    5841                 $ECHO "*** not find such a program.  So, this module is probably useless."
    5842                 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
     6951                echo
     6952                echo "*** However, this would only work if libtool was able to extract symbol"
     6953                echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
     6954                echo "*** not find such a program.  So, this module is probably useless."
     6955                echo "*** \`nm' from GNU binutils and a full rebuild may help."
    58436956              fi
    58446957              if test "$build_old_libs" = no; then
     
    58686981                   case " $xrpath " in
    58696982                   *" $temp_xrpath "*) ;;
    5870                    *) xrpath="$xrpath $temp_xrpath";;
     6983                   *) func_append xrpath " $temp_xrpath";;
    58716984                   esac;;
    5872               *) temp_deplibs="$temp_deplibs $libdir";;
     6985              *) func_append temp_deplibs " $libdir";;
    58736986              esac
    58746987            done
     
    58766989          fi
    58776990
    5878           newlib_search_path="$newlib_search_path $absdir"
     6991          func_append newlib_search_path " $absdir"
    58796992          # Link against this library
    58806993          test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
     
    58836996          for deplib in $dependency_libs; do
    58846997            newdependency_libs="$deplib $newdependency_libs"
    5885             if $opt_duplicate_deps ; then
     6998            case $deplib in
     6999              -L*) func_stripname '-L' '' "$deplib"
     7000                   func_resolve_sysroot "$func_stripname_result";;
     7001              *) func_resolve_sysroot "$deplib" ;;
     7002            esac
     7003            if $opt_preserve_dup_deps ; then
    58867004              case "$tmp_libs " in
    5887               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     7005              *" $func_resolve_sysroot_result "*)
     7006                func_append specialdeplibs " $func_resolve_sysroot_result" ;;
    58887007              esac
    58897008            fi
    5890             tmp_libs="$tmp_libs $deplib"
     7009            func_append tmp_libs " $func_resolve_sysroot_result"
    58917010          done
    58927011
     
    58987017              -L*) path="$deplib" ;;
    58997018              *.la)
     7019                func_resolve_sysroot "$deplib"
     7020                deplib=$func_resolve_sysroot_result
    59007021                func_dirname "$deplib" "" "."
    5901                 dir="$func_dirname_result"
     7022                dir=$func_dirname_result
    59027023                # We need an absolute path.
    59037024                case $dir in
     
    59267047                          darwin_install_name=`${OTOOL64} -L $depdepl  | awk '{if (NR == 2) {print $1;exit}}'`
    59277048                      fi
    5928                       compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
    5929                       linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
     7049                      func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
     7050                      func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
    59307051                      path=
    59317052                    fi
     
    59607081          finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
    59617082        else
    5962           compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     7083          compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    59637084        fi
    59647085      fi
     
    59777098            case "$lib_search_path " in
    59787099            *" $dir "*) ;;
    5979             *) lib_search_path="$lib_search_path $dir" ;;
     7100            *) func_append lib_search_path " $dir" ;;
    59807101            esac
    59817102          done
     
    60357156              case " $tmp_libs " in
    60367157              *" $deplib "*) ;;
    6037               *) tmp_libs="$tmp_libs $deplib" ;;
     7158              *) func_append tmp_libs " $deplib" ;;
    60387159              esac
    60397160              ;;
    6040             *) tmp_libs="$tmp_libs $deplib" ;;
     7161            *) func_append tmp_libs " $deplib" ;;
    60417162            esac
    60427163          done
     
    60547175        esac
    60557176        if test -n "$i" ; then
    6056           tmp_libs="$tmp_libs $i"
     7177          func_append tmp_libs " $i"
    60577178        fi
    60587179      done
     
    60957216      build_libtool_libs=no
    60967217      oldlibs="$output"
    6097       objs="$objs$old_deplibs"
     7218      func_append objs "$old_deplibs"
    60987219      ;;
    60997220
     
    61287249          func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
    61297250        else
    6130           $ECHO
     7251          echo
    61317252          $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
    61327253          $ECHO "*** objects $objs is not portable!"
    6133           libobjs="$libobjs $objs"
     7254          func_append libobjs " $objs"
    61347255        fi
    61357256      fi
     
    61967317            revision="$number_revision"
    61977318            ;;
    6198           freebsd-aout|freebsd-elf|sunos)
     7319          freebsd-aout|freebsd-elf|qnx|sunos)
    61997320            current="$number_major"
    62007321            revision="$number_minor"
     
    63327453
    63337454          # Make executables depend on our current version.
    6334           verstring="$verstring:${current}.0"
     7455          func_append verstring ":${current}.0"
    63357456          ;;
    63367457
     
    64007521
    64017522      func_generate_dlsyms "$libname" "$libname" "yes"
    6402       libobjs="$libobjs $symfileobj"
     7523      func_append libobjs " $symfileobj"
    64037524      test "X$libobjs" = "X " && libobjs=
    64047525
    6405       if test "$mode" != relink; then
     7526      if test "$opt_mode" != relink; then
    64067527        # Remove our outputs, but don't remove object files since they
    64077528        # may have been created when compiling PIC objects.
     
    64197540                 fi
    64207541               fi
    6421                removelist="$removelist $p"
     7542               func_append removelist " $p"
    64227543               ;;
    64237544            *) ;;
     
    64307551      # Now set the variables for building old libraries.
    64317552      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
    6432         oldlibs="$oldlibs $output_objdir/$libname.$libext"
     7553        func_append oldlibs " $output_objdir/$libname.$libext"
    64337554
    64347555        # Transform .lo files to .o files.
    6435         oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
     7556        oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
    64367557      fi
    64377558
    64387559      # Eliminate all temporary directories.
    64397560      #for path in $notinst_path; do
    6440       # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
    6441       # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
    6442       # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
     7561      # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
     7562      # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
     7563      # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
    64437564      #done
    64447565
     
    64477568        temp_xrpath=
    64487569        for libdir in $xrpath; do
    6449           temp_xrpath="$temp_xrpath -R$libdir"
     7570          func_replace_sysroot "$libdir"
     7571          func_append temp_xrpath " -R$func_replace_sysroot_result"
    64507572          case "$finalize_rpath " in
    64517573          *" $libdir "*) ;;
    6452           *) finalize_rpath="$finalize_rpath $libdir" ;;
     7574          *) func_append finalize_rpath " $libdir" ;;
    64537575          esac
    64547576        done
     
    64647586        case " $dlprefiles $dlfiles " in
    64657587        *" $lib "*) ;;
    6466         *) dlfiles="$dlfiles $lib" ;;
     7588        *) func_append dlfiles " $lib" ;;
    64677589        esac
    64687590      done
     
    64747596        case "$dlprefiles " in
    64757597        *" $lib "*) ;;
    6476         *) dlprefiles="$dlprefiles $lib" ;;
     7598        *) func_append dlprefiles " $lib" ;;
    64777599        esac
    64787600      done
     
    64817603        if test -n "$rpath"; then
    64827604          case $host in
    6483           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
     7605          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
    64847606            # these systems don't actually have a c library (as such)!
    64857607            ;;
    64867608          *-*-rhapsody* | *-*-darwin1.[012])
    64877609            # Rhapsody C library is in the System framework
    6488             deplibs="$deplibs System.ltframework"
     7610            func_append deplibs " System.ltframework"
    64897611            ;;
    64907612          *-*-netbsd*)
     
    65037625            # Add libc to deplibs on all other systems if necessary.
    65047626            if test "$build_libtool_need_lc" = "yes"; then
    6505               deplibs="$deplibs -lc"
     7627              func_append deplibs " -lc"
    65067628            fi
    65077629            ;;
     
    65527674                  case " $predeps $postdeps " in
    65537675                  *" $i "*)
    6554                     newdeplibs="$newdeplibs $i"
     7676                    func_append newdeplibs " $i"
    65557677                    i=""
    65567678                    ;;
     
    65637685                  deplib_match=$1
    65647686                  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
    6565                     newdeplibs="$newdeplibs $i"
     7687                    func_append newdeplibs " $i"
    65667688                  else
    65677689                    droppeddeps=yes
    6568                     $ECHO
     7690                    echo
    65697691                    $ECHO "*** Warning: dynamic linker does not accept needed library $i."
    6570                     $ECHO "*** I have the capability to make that library automatically link in when"
    6571                     $ECHO "*** you link to this library.  But I can only do this if you have a"
    6572                     $ECHO "*** shared version of the library, which I believe you do not have"
    6573                     $ECHO "*** because a test_compile did reveal that the linker did not use it for"
    6574                     $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
     7692                    echo "*** I have the capability to make that library automatically link in when"
     7693                    echo "*** you link to this library.  But I can only do this if you have a"
     7694                    echo "*** shared version of the library, which I believe you do not have"
     7695                    echo "*** because a test_compile did reveal that the linker did not use it for"
     7696                    echo "*** its dynamic dependency list that programs get resolved with at runtime."
    65757697                  fi
    65767698                fi
    65777699                ;;
    65787700              *)
    6579                 newdeplibs="$newdeplibs $i"
     7701                func_append newdeplibs " $i"
    65807702                ;;
    65817703              esac
     
    65957717                    case " $predeps $postdeps " in
    65967718                    *" $i "*)
    6597                       newdeplibs="$newdeplibs $i"
     7719                      func_append newdeplibs " $i"
    65987720                      i=""
    65997721                      ;;
     
    66067728                    deplib_match=$1
    66077729                    if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
    6608                       newdeplibs="$newdeplibs $i"
     7730                      func_append newdeplibs " $i"
    66097731                    else
    66107732                      droppeddeps=yes
    6611                       $ECHO
     7733                      echo
    66127734                      $ECHO "*** Warning: dynamic linker does not accept needed library $i."
    6613                       $ECHO "*** I have the capability to make that library automatically link in when"
    6614                       $ECHO "*** you link to this library.  But I can only do this if you have a"
    6615                       $ECHO "*** shared version of the library, which you do not appear to have"
    6616                       $ECHO "*** because a test_compile did reveal that the linker did not use this one"
    6617                       $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
     7735                      echo "*** I have the capability to make that library automatically link in when"
     7736                      echo "*** you link to this library.  But I can only do this if you have a"
     7737                      echo "*** shared version of the library, which you do not appear to have"
     7738                      echo "*** because a test_compile did reveal that the linker did not use this one"
     7739                      echo "*** as a dynamic dependency that programs can get resolved with at runtime."
    66187740                    fi
    66197741                  fi
    66207742                else
    66217743                  droppeddeps=yes
    6622                   $ECHO
     7744                  echo
    66237745                  $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
    6624                   $ECHO "*** make it link in!  You will probably need to install it or some"
    6625                   $ECHO "*** library that it depends on before this library will be fully"
    6626                   $ECHO "*** functional.  Installing it before continuing would be even better."
     7746                  echo "*** make it link in!  You will probably need to install it or some"
     7747                  echo "*** library that it depends on before this library will be fully"
     7748                  echo "*** functional.  Installing it before continuing would be even better."
    66277749                fi
    66287750                ;;
    66297751              *)
    6630                 newdeplibs="$newdeplibs $i"
     7752                func_append newdeplibs " $i"
    66317753                ;;
    66327754              esac
     
    66457767                case " $predeps $postdeps " in
    66467768                *" $a_deplib "*)
    6647                   newdeplibs="$newdeplibs $a_deplib"
     7769                  func_append newdeplibs " $a_deplib"
    66487770                  a_deplib=""
    66497771                  ;;
     
    66527774              if test -n "$a_deplib" ; then
    66537775                libname=`eval "\\$ECHO \"$libname_spec\""`
     7776                if test -n "$file_magic_glob"; then
     7777                  libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
     7778                else
     7779                  libnameglob=$libname
     7780                fi
     7781                test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
    66547782                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
    6655                   potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
     7783                  if test "$want_nocaseglob" = yes; then
     7784                    shopt -s nocaseglob
     7785                    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
     7786                    $nocaseglob
     7787                  else
     7788                    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
     7789                  fi
    66567790                  for potent_lib in $potential_libs; do
    66577791                      # Follow soft links.
     
    66707804                        case $potliblink in
    66717805                        [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
    6672                         *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
     7806                        *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
    66737807                        esac
    66747808                      done
     
    66767810                         $SED -e 10q |
    66777811                         $EGREP "$file_magic_regex" > /dev/null; then
    6678                         newdeplibs="$newdeplibs $a_deplib"
     7812                        func_append newdeplibs " $a_deplib"
    66797813                        a_deplib=""
    66807814                        break 2
     
    66857819              if test -n "$a_deplib" ; then
    66867820                droppeddeps=yes
    6687                 $ECHO
     7821                echo
    66887822                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
    6689                 $ECHO "*** I have the capability to make that library automatically link in when"
    6690                 $ECHO "*** you link to this library.  But I can only do this if you have a"
    6691                 $ECHO "*** shared version of the library, which you do not appear to have"
    6692                 $ECHO "*** because I did check the linker path looking for a file starting"
     7823                echo "*** I have the capability to make that library automatically link in when"
     7824                echo "*** you link to this library.  But I can only do this if you have a"
     7825                echo "*** shared version of the library, which you do not appear to have"
     7826                echo "*** because I did check the linker path looking for a file starting"
    66937827                if test -z "$potlib" ; then
    66947828                  $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
     
    67017835            *)
    67027836              # Add a -L argument.
    6703               newdeplibs="$newdeplibs $a_deplib"
     7837              func_append newdeplibs " $a_deplib"
    67047838              ;;
    67057839            esac
     
    67177851                case " $predeps $postdeps " in
    67187852                *" $a_deplib "*)
    6719                   newdeplibs="$newdeplibs $a_deplib"
     7853                  func_append newdeplibs " $a_deplib"
    67207854                  a_deplib=""
    67217855                  ;;
     
    67287862                  for potent_lib in $potential_libs; do
    67297863                    potlib="$potent_lib" # see symlink-check above in file_magic test
    6730                     if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
     7864                    if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
    67317865                       $EGREP "$match_pattern_regex" > /dev/null; then
    6732                       newdeplibs="$newdeplibs $a_deplib"
     7866                      func_append newdeplibs " $a_deplib"
    67337867                      a_deplib=""
    67347868                      break 2
     
    67397873              if test -n "$a_deplib" ; then
    67407874                droppeddeps=yes
    6741                 $ECHO
     7875                echo
    67427876                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
    6743                 $ECHO "*** I have the capability to make that library automatically link in when"
    6744                 $ECHO "*** you link to this library.  But I can only do this if you have a"
    6745                 $ECHO "*** shared version of the library, which you do not appear to have"
    6746                 $ECHO "*** because I did check the linker path looking for a file starting"
     7877                echo "*** I have the capability to make that library automatically link in when"
     7878                echo "*** you link to this library.  But I can only do this if you have a"
     7879                echo "*** shared version of the library, which you do not appear to have"
     7880                echo "*** because I did check the linker path looking for a file starting"
    67477881                if test -z "$potlib" ; then
    67487882                  $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
     
    67557889            *)
    67567890              # Add a -L argument.
    6757               newdeplibs="$newdeplibs $a_deplib"
     7891              func_append newdeplibs " $a_deplib"
    67587892              ;;
    67597893            esac
     
    67627896        none | unknown | *)
    67637897          newdeplibs=""
    6764           tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
    6765               -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
     7898          tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
    67667899          if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    67677900            for i in $predeps $postdeps ; do
    67687901              # can't use Xsed below, because $i might contain '/'
    6769               tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
     7902              tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
    67707903            done
    67717904          fi
    6772           if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[      ]//g' |
    6773              $GREP . >/dev/null; then
    6774             $ECHO
     7905          case $tmp_deplibs in
     7906          *[!\  \ ]*)
     7907            echo
    67757908            if test "X$deplibs_check_method" = "Xnone"; then
    6776               $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
     7909              echo "*** Warning: inter-library dependencies are not supported in this platform."
    67777910            else
    6778               $ECHO "*** Warning: inter-library dependencies are not known to be supported."
     7911              echo "*** Warning: inter-library dependencies are not known to be supported."
    67797912            fi
    6780             $ECHO "*** All declared inter-library dependencies are being dropped."
     7913            echo "*** All declared inter-library dependencies are being dropped."
    67817914            droppeddeps=yes
    6782           fi
     7915            ;;
     7916          esac
    67837917          ;;
    67847918        esac
     
    67927926        *-*-rhapsody* | *-*-darwin1.[012])
    67937927          # On Rhapsody replace the C library with the System framework
    6794           newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
     7928          newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
    67957929          ;;
    67967930        esac
     
    67987932        if test "$droppeddeps" = yes; then
    67997933          if test "$module" = yes; then
    6800             $ECHO
    6801             $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
     7934            echo
     7935            echo "*** Warning: libtool could not satisfy all declared inter-library"
    68027936            $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
    6803             $ECHO "*** a static module, that should work as long as the dlopening"
    6804             $ECHO "*** application is linked with the -dlopen flag."
     7937            echo "*** a static module, that should work as long as the dlopening"
     7938            echo "*** application is linked with the -dlopen flag."
    68057939            if test -z "$global_symbol_pipe"; then
    6806               $ECHO
    6807               $ECHO "*** However, this would only work if libtool was able to extract symbol"
    6808               $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
    6809               $ECHO "*** not find such a program.  So, this module is probably useless."
    6810               $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
     7940              echo
     7941              echo "*** However, this would only work if libtool was able to extract symbol"
     7942              echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
     7943              echo "*** not find such a program.  So, this module is probably useless."
     7944              echo "*** \`nm' from GNU binutils and a full rebuild may help."
    68117945            fi
    68127946            if test "$build_old_libs" = no; then
     
    68187952            fi
    68197953          else
    6820             $ECHO "*** The inter-library dependencies that have been dropped here will be"
    6821             $ECHO "*** automatically added whenever a program is linked with this library"
    6822             $ECHO "*** or is declared to -dlopen it."
     7954            echo "*** The inter-library dependencies that have been dropped here will be"
     7955            echo "*** automatically added whenever a program is linked with this library"
     7956            echo "*** or is declared to -dlopen it."
    68237957
    68247958            if test "$allow_undefined" = no; then
    6825               $ECHO
    6826               $ECHO "*** Since this library must not contain undefined symbols,"
    6827               $ECHO "*** because either the platform does not support them or"
    6828               $ECHO "*** it was explicitly requested with -no-undefined,"
    6829               $ECHO "*** libtool will only create a static version of it."
     7959              echo
     7960              echo "*** Since this library must not contain undefined symbols,"
     7961              echo "*** because either the platform does not support them or"
     7962              echo "*** it was explicitly requested with -no-undefined,"
     7963              echo "*** libtool will only create a static version of it."
    68307964              if test "$build_old_libs" = no; then
    68317965                oldlibs="$output_objdir/$libname.$libext"
     
    68447978      case $host in
    68457979        *-*-darwin*)
    6846           newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    6847           new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    6848           deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     7980          newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     7981          new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     7982          deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    68497983          ;;
    68507984      esac
     
    68597993          case " $deplibs " in
    68607994          *" -L$path/$objdir "*)
    6861             new_libs="$new_libs -L$path/$objdir" ;;
     7995            func_append new_libs " -L$path/$objdir" ;;
    68627996          esac
    68637997          ;;
     
    68698003          case " $new_libs " in
    68708004          *" $deplib "*) ;;
    6871           *) new_libs="$new_libs $deplib" ;;
     8005          *) func_append new_libs " $deplib" ;;
    68728006          esac
    68738007          ;;
    6874         *) new_libs="$new_libs $deplib" ;;
     8008        *) func_append new_libs " $deplib" ;;
    68758009        esac
    68768010      done
     
    68898023          dep_rpath=
    68908024          rpath="$finalize_rpath"
    6891           test "$mode" != relink && rpath="$compile_rpath$rpath"
     8025          test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
    68928026          for libdir in $rpath; do
    68938027            if test -n "$hardcode_libdir_flag_spec"; then
    68948028              if test -n "$hardcode_libdir_separator"; then
     8029                func_replace_sysroot "$libdir"
     8030                libdir=$func_replace_sysroot_result
    68958031                if test -z "$hardcode_libdirs"; then
    68968032                  hardcode_libdirs="$libdir"
     
    69018037                    ;;
    69028038                  *)
    6903                     hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8039                    func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    69048040                    ;;
    69058041                  esac
     
    69078043              else
    69088044                eval flag=\"$hardcode_libdir_flag_spec\"
    6909                 dep_rpath="$dep_rpath $flag"
     8045                func_append dep_rpath " $flag"
    69108046              fi
    69118047            elif test -n "$runpath_var"; then
    69128048              case "$perm_rpath " in
    69138049              *" $libdir "*) ;;
    6914               *) perm_rpath="$perm_rpath $libdir" ;;
     8050              *) func_apped perm_rpath " $libdir" ;;
    69158051              esac
    69168052            fi
     
    69308066            rpath=
    69318067            for dir in $perm_rpath; do
    6932               rpath="$rpath$dir:"
     8068              func_append rpath "$dir:"
    69338069            done
    69348070            eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
     
    69388074
    69398075        shlibpath="$finalize_shlibpath"
    6940         test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
     8076        test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
    69418077        if test -n "$shlibpath"; then
    69428078          eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
     
    69648100        for link
    69658101        do
    6966           linknames="$linknames $link"
     8102          func_append linknames " $link"
    69678103        done
    69688104
    69698105        # Use standard objects if they are pic
    6970         test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     8106        test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
    69718107        test "X$libobjs" = "X " && libobjs=
    69728108
     
    69758111          $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
    69768112          export_symbols="$output_objdir/$libname.uexp"
    6977           delfiles="$delfiles $export_symbols"
     8113          func_append delfiles " $export_symbols"
    69788114        fi
    69798115
     
    70068142            cmds=$export_symbols_cmds
    70078143            save_ifs="$IFS"; IFS='~'
    7008             for cmd in $cmds; do
     8144            for cmd1 in $cmds; do
    70098145              IFS="$save_ifs"
    7010               eval cmd=\"$cmd\"
    7011               func_len " $cmd"
    7012               len=$func_len_result
    7013               if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     8146              # Take the normal branch if the nm_file_list_spec branch
     8147              # doesn't work or if tool conversion is not needed.
     8148              case $nm_file_list_spec~$to_tool_file_cmd in
     8149                *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
     8150                  try_normal_branch=yes
     8151                  eval cmd=\"$cmd1\"
     8152                  func_len " $cmd"
     8153                  len=$func_len_result
     8154                  ;;
     8155                *)
     8156                  try_normal_branch=no
     8157                  ;;
     8158              esac
     8159              if test "$try_normal_branch" = yes \
     8160                 && { test "$len" -lt "$max_cmd_len" \
     8161                      || test "$max_cmd_len" -le -1; }
     8162              then
    70148163                func_show_eval "$cmd" 'exit $?'
     8164                skipped_export=false
     8165              elif test -n "$nm_file_list_spec"; then
     8166                func_basename "$output"
     8167                output_la=$func_basename_result
     8168                save_libobjs=$libobjs
     8169                save_output=$output
     8170                output=${output_objdir}/${output_la}.nm
     8171                func_to_tool_file "$output"
     8172                libobjs=$nm_file_list_spec$func_to_tool_file_result
     8173                func_append delfiles " $output"
     8174                func_verbose "creating $NM input file list: $output"
     8175                for obj in $save_libobjs; do
     8176                  func_to_tool_file "$obj"
     8177                  $ECHO "$func_to_tool_file_result"
     8178                done > "$output"
     8179                eval cmd=\"$cmd1\"
     8180                func_show_eval "$cmd" 'exit $?'
     8181                output=$save_output
     8182                libobjs=$save_libobjs
    70158183                skipped_export=false
    70168184              else
     
    70348202          tmp_export_symbols="$export_symbols"
    70358203          test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
    7036           $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
     8204          $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
    70378205        fi
    70388206
     
    70468214          # isn't a blessed tool.
    70478215          $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
    7048           delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
     8216          func_append delfiles " $export_symbols $output_objdir/$libname.filter"
    70498217          export_symbols=$output_objdir/$libname.def
    70508218          $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
     
    70568224          *" $test_deplib "*) ;;
    70578225          *)
    7058             tmp_deplibs="$tmp_deplibs $test_deplib"
     8226            func_append tmp_deplibs " $test_deplib"
    70598227            ;;
    70608228          esac
     
    70768244          else
    70778245            gentop="$output_objdir/${outputname}x"
    7078             generated="$generated $gentop"
     8246            func_append generated " $gentop"
    70798247
    70808248            func_extract_archives $gentop $convenience
    7081             libobjs="$libobjs $func_extract_archives_result"
     8249            func_append libobjs " $func_extract_archives_result"
    70828250            test "X$libobjs" = "X " && libobjs=
    70838251          fi
     
    70868254        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    70878255          eval flag=\"$thread_safe_flag_spec\"
    7088           linker_flags="$linker_flags $flag"
     8256          func_append linker_flags " $flag"
    70898257        fi
    70908258
    70918259        # Make a backup of the uninstalled library when relinking
    7092         if test "$mode" = relink; then
     8260        if test "$opt_mode" = relink; then
    70938261          $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
    70948262        fi
     
    71358303          fi
    71368304          save_output=$output
    7137           output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
     8305          func_basename "$output"
     8306          output_la=$func_basename_result
    71388307
    71398308          # Clear the reloadable object creation command queue and
     
    71488317            output=${output_objdir}/${output_la}.lnkscript
    71498318            func_verbose "creating GNU ld script: $output"
    7150             $ECHO 'INPUT (' > $output
     8319            echo 'INPUT (' > $output
    71518320            for obj in $save_libobjs
    71528321            do
    7153               $ECHO "$obj" >> $output
     8322              func_to_tool_file "$obj"
     8323              $ECHO "$func_to_tool_file_result" >> $output
    71548324            done
    7155             $ECHO ')' >> $output
    7156             delfiles="$delfiles $output"
     8325            echo ')' >> $output
     8326            func_append delfiles " $output"
     8327            func_to_tool_file "$output"
     8328            output=$func_to_tool_file_result
    71578329          elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
    71588330            output=${output_objdir}/${output_la}.lnk
     
    71688340            for obj
    71698341            do
    7170               $ECHO "$obj" >> $output
     8342              func_to_tool_file "$obj"
     8343              $ECHO "$func_to_tool_file_result" >> $output
    71718344            done
    7172             delfiles="$delfiles $output"
    7173             output=$firstobj\"$file_list_spec$output\"
     8345            func_append delfiles " $output"
     8346            func_to_tool_file "$output"
     8347            output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
    71748348          else
    71758349            if test -n "$save_libobjs"; then
     
    71958369                  if test "$k" -eq 1 ; then
    71968370                    # The first file doesn't have a previous command to add.
    7197                     eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
     8371                    reload_objs=$objlist
     8372                    eval concat_cmds=\"$reload_cmds\"
    71988373                  else
    71998374                    # All subsequent reloadable object files will link in
    72008375                    # the last one created.
    7201                     eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
     8376                    reload_objs="$objlist $last_robj"
     8377                    eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
    72028378                  fi
    72038379                  last_robj=$output_objdir/$output_la-${k}.$objext
     
    72058381                  k=$func_arith_result
    72068382                  output=$output_objdir/$output_la-${k}.$objext
    7207                   objlist=$obj
     8383                  objlist=" $obj"
    72088384                  func_len " $last_robj"
    72098385                  func_arith $len0 + $func_len_result
     
    72158391              # files will link in the last one created.
    72168392              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
    7217               eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
     8393              reload_objs="$objlist $last_robj"
     8394              eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
    72188395              if test -n "$last_robj"; then
    72198396                eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
    72208397              fi
    7221               delfiles="$delfiles $output"
     8398              func_append delfiles " $output"
    72228399
    72238400            else
     
    72538430
    72548431                # Restore the uninstalled library and exit
    7255                 if test "$mode" = relink; then
     8432                if test "$opt_mode" = relink; then
    72568433                  ( cd "$output_objdir" && \
    72578434                    $RM "${realname}T" && \
     
    72748451              tmp_export_symbols="$export_symbols"
    72758452              test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
    7276               $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
     8453              $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
    72778454            fi
    72788455
     
    72868463              # isn't a blessed tool.
    72878464              $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
    7288               delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
     8465              func_append delfiles " $export_symbols $output_objdir/$libname.filter"
    72898466              export_symbols=$output_objdir/$libname.def
    72908467              $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
     
    73278504        if test -n "$dlprefiles"; then
    73288505          gentop="$output_objdir/${outputname}x"
    7329           generated="$generated $gentop"
     8506          func_append generated " $gentop"
    73308507
    73318508          func_extract_archives $gentop $dlprefiles
    7332           libobjs="$libobjs $func_extract_archives_result"
     8509          func_append libobjs " $func_extract_archives_result"
    73338510          test "X$libobjs" = "X " && libobjs=
    73348511        fi
     
    73468523
    73478524            # Restore the uninstalled library and exit
    7348             if test "$mode" = relink; then
     8525            if test "$opt_mode" = relink; then
    73498526              ( cd "$output_objdir" && \
    73508527                $RM "${realname}T" && \
     
    73588535
    73598536        # Restore the uninstalled library and exit
    7360         if test "$mode" = relink; then
     8537        if test "$opt_mode" = relink; then
    73618538          $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
    73628539
     
    74398616        if test -n "$whole_archive_flag_spec"; then
    74408617          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
    7441           reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
     8618          reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
    74428619        else
    74438620          gentop="$output_objdir/${obj}x"
    7444           generated="$generated $gentop"
     8621          func_append generated " $gentop"
    74458622
    74468623          func_extract_archives $gentop $convenience
     
    74498626      fi
    74508627
     8628      # If we're not building shared, we need to use non_pic_objs
     8629      test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
     8630
    74518631      # Create the old-style object.
    7452       reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
     8632      reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
    74538633
    74548634      output="$obj"
     
    75108690      *-*-rhapsody* | *-*-darwin1.[012])
    75118691        # On Rhapsody replace the C library is the System framework
    7512         compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
    7513         finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
     8692        compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
     8693        finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
    75148694        ;;
    75158695      esac
     
    75228702          case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
    75238703            10.[0123])
    7524               compile_command="$compile_command ${wl}-bind_at_load"
    7525               finalize_command="$finalize_command ${wl}-bind_at_load"
     8704              func_append compile_command " ${wl}-bind_at_load"
     8705              func_append finalize_command " ${wl}-bind_at_load"
    75268706            ;;
    75278707          esac
    75288708        fi
    75298709        # Time to change all our "foo.ltframework" stuff back to "-framework foo"
    7530         compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    7531         finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     8710        compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8711        finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    75328712        ;;
    75338713      esac
     
    75438723          case " $compile_deplibs " in
    75448724          *" -L$path/$objdir "*)
    7545             new_libs="$new_libs -L$path/$objdir" ;;
     8725            func_append new_libs " -L$path/$objdir" ;;
    75468726          esac
    75478727          ;;
     
    75538733          case " $new_libs " in
    75548734          *" $deplib "*) ;;
    7555           *) new_libs="$new_libs $deplib" ;;
     8735          *) func_append new_libs " $deplib" ;;
    75568736          esac
    75578737          ;;
    7558         *) new_libs="$new_libs $deplib" ;;
     8738        *) func_append new_libs " $deplib" ;;
    75598739        esac
    75608740      done
     
    75628742
    75638743
    7564       compile_command="$compile_command $compile_deplibs"
    7565       finalize_command="$finalize_command $finalize_deplibs"
     8744      func_append compile_command " $compile_deplibs"
     8745      func_append finalize_command " $finalize_deplibs"
    75668746
    75678747      if test -n "$rpath$xrpath"; then
     
    75718751          case "$finalize_rpath " in
    75728752          *" $libdir "*) ;;
    7573           *) finalize_rpath="$finalize_rpath $libdir" ;;
     8753          *) func_append finalize_rpath " $libdir" ;;
    75748754          esac
    75758755        done
     
    75908770                ;;
    75918771              *)
    7592                 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8772                func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    75938773                ;;
    75948774              esac
     
    75968776          else
    75978777            eval flag=\"$hardcode_libdir_flag_spec\"
    7598             rpath="$rpath $flag"
     8778            func_append rpath " $flag"
    75998779          fi
    76008780        elif test -n "$runpath_var"; then
    76018781          case "$perm_rpath " in
    76028782          *" $libdir "*) ;;
    7603           *) perm_rpath="$perm_rpath $libdir" ;;
     8783          *) func_append perm_rpath " $libdir" ;;
    76048784          esac
    76058785        fi
     
    76108790          *":$libdir:"*) ;;
    76118791          ::) dllsearchpath=$libdir;;
    7612           *) dllsearchpath="$dllsearchpath:$libdir";;
     8792          *) func_append dllsearchpath ":$libdir";;
    76138793          esac
    76148794          case :$dllsearchpath: in
    76158795          *":$testbindir:"*) ;;
    76168796          ::) dllsearchpath=$testbindir;;
    7617           *) dllsearchpath="$dllsearchpath:$testbindir";;
     8797          *) func_append dllsearchpath ":$testbindir";;
    76188798          esac
    76198799          ;;
     
    76418821                ;;
    76428822              *)
    7643                 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8823                func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    76448824                ;;
    76458825              esac
     
    76478827          else
    76488828            eval flag=\"$hardcode_libdir_flag_spec\"
    7649             rpath="$rpath $flag"
     8829            func_append rpath " $flag"
    76508830          fi
    76518831        elif test -n "$runpath_var"; then
    76528832          case "$finalize_perm_rpath " in
    76538833          *" $libdir "*) ;;
    7654           *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
     8834          *) func_append finalize_perm_rpath " $libdir" ;;
    76558835          esac
    76568836        fi
     
    76668846      if test -n "$libobjs" && test "$build_old_libs" = yes; then
    76678847        # Transform all the library objects into standard objects.
    7668         compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    7669         finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     8848        compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
     8849        finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
    76708850      fi
    76718851
     
    76798859      wrappers_required=yes
    76808860      case $host in
     8861      *cegcc* | *mingw32ce*)
     8862        # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
     8863        wrappers_required=no
     8864        ;;
    76818865      *cygwin* | *mingw* )
    76828866        if test "$build_libtool_libs" != yes; then
    76838867          wrappers_required=no
    76848868        fi
    7685         ;;
    7686       *cegcc)
    7687         # Disable wrappers for cegcc, we are cross compiling anyway.
    7688         wrappers_required=no
    76898869        ;;
    76908870      *)
     
    76968876      if test "$wrappers_required" = no; then
    76978877        # Replace the output file specification.
    7698         compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
     8878        compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
    76998879        link_command="$compile_command$compile_rpath"
    77008880
     
    77028882        exit_status=0
    77038883        func_show_eval "$link_command" 'exit_status=$?'
     8884
     8885        if test -n "$postlink_cmds"; then
     8886          func_to_tool_file "$output"
     8887          postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     8888          func_execute_cmds "$postlink_cmds" 'exit $?'
     8889        fi
    77048890
    77058891        # Delete the generated files.
     
    77258911          rpath=
    77268912          for dir in $perm_rpath; do
    7727             rpath="$rpath$dir:"
     8913            func_append rpath "$dir:"
    77288914          done
    77298915          compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
     
    77338919          rpath=
    77348920          for dir in $finalize_perm_rpath; do
    7735             rpath="$rpath$dir:"
     8921            func_append rpath "$dir:"
    77368922          done
    77378923          finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
     
    77438929        link_command="$compile_var$compile_command$compile_rpath"
    77448930        # Replace the output file specification.
    7745         link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
     8931        link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
    77468932        # Delete the old output file.
    77478933        $opt_dry_run || $RM $output
    77488934        # Link the executable and exit
    77498935        func_show_eval "$link_command" 'exit $?'
     8936
     8937        if test -n "$postlink_cmds"; then
     8938          func_to_tool_file "$output"
     8939          postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     8940          func_execute_cmds "$postlink_cmds" 'exit $?'
     8941        fi
     8942
    77508943        exit $EXIT_SUCCESS
    77518944      fi
     
    77628955          link_command="$finalize_var$compile_command$finalize_rpath"
    77638956          if test "$fast_install" = yes; then
    7764             relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
     8957            relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
    77658958          else
    77668959            # fast_install is set to needless
     
    77748967
    77758968      # Replace the output file specification.
    7776       link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
     8969      link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
    77778970
    77788971      # Delete the old output files.
     
    77808973
    77818974      func_show_eval "$link_command" 'exit $?'
     8975
     8976      if test -n "$postlink_cmds"; then
     8977        func_to_tool_file "$output_objdir/$outputname"
     8978        postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     8979        func_execute_cmds "$postlink_cmds" 'exit $?'
     8980      fi
    77828981
    77838982      # Now create the wrapper script.
     
    77988997        done
    77998998        relink_command="(cd `pwd`; $relink_command)"
    7800         relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
    7801       fi
    7802 
    7803       # Quote $ECHO for shipping.
    7804       if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
    7805         case $progpath in
    7806         [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
    7807         *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
    7808         esac
    7809         qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
    7810       else
    7811         qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
     8999        relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
    78129000      fi
    78139001
     
    78899077          oldobjs="$old_deplibs $non_pic_objects"
    78909078          if test "$preload" = yes && test -f "$symfileobj"; then
    7891             oldobjs="$oldobjs $symfileobj"
     9079            func_append oldobjs " $symfileobj"
    78929080          fi
    78939081        fi
     
    78979085      if test -n "$addlibs"; then
    78989086        gentop="$output_objdir/${outputname}x"
    7899         generated="$generated $gentop"
     9087        func_append generated " $gentop"
    79009088
    79019089        func_extract_archives $gentop $addlibs
    7902         oldobjs="$oldobjs $func_extract_archives_result"
     9090        func_append oldobjs " $func_extract_archives_result"
    79039091      fi
    79049092
     
    79119099        if test -n "$dlprefiles"; then
    79129100          gentop="$output_objdir/${outputname}x"
    7913           generated="$generated $gentop"
     9101          func_append generated " $gentop"
    79149102
    79159103          func_extract_archives $gentop $dlprefiles
    7916           oldobjs="$oldobjs $func_extract_archives_result"
     9104          func_append oldobjs " $func_extract_archives_result"
    79179105        fi
    79189106
     
    79309118          :
    79319119        else
    7932           $ECHO "copying selected object files to avoid basename conflicts..."
     9120          echo "copying selected object files to avoid basename conflicts..."
    79339121          gentop="$output_objdir/${outputname}x"
    7934           generated="$generated $gentop"
     9122          func_append generated " $gentop"
    79359123          func_mkdir_p "$gentop"
    79369124          save_oldobjs=$oldobjs
     
    79569144              done
    79579145              func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
    7958               oldobjs="$oldobjs $gentop/$newobj"
     9146              func_append oldobjs " $gentop/$newobj"
    79599147              ;;
    7960             *) oldobjs="$oldobjs $obj" ;;
     9148            *) func_append oldobjs " $obj" ;;
    79619149            esac
    79629150          done
     
    79679155        len=$func_len_result
    79689156        if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     9157          cmds=$old_archive_cmds
     9158        elif test -n "$archiver_list_spec"; then
     9159          func_verbose "using command file archive linking..."
     9160          for obj in $oldobjs
     9161          do
     9162            func_to_tool_file "$obj"
     9163            $ECHO "$func_to_tool_file_result"
     9164          done > $output_objdir/$libname.libcmd
     9165          func_to_tool_file "$output_objdir/$libname.libcmd"
     9166          oldobjs=" $archiver_list_spec$func_to_tool_file_result"
    79699167          cmds=$old_archive_cmds
    79709168        else
     
    80419239      # Quote the link command for shipping.
    80429240      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
    8043       relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     9241      relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
    80449242      if test "$hardcode_automatic" = yes ; then
    80459243        relink_command=
     
    80649262                test -z "$libdir" && \
    80659263                  func_fatal_error "\`$deplib' is not a valid libtool archive"
    8066                 newdependency_libs="$newdependency_libs $libdir/$name"
     9264                func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
    80679265                ;;
    8068               *) newdependency_libs="$newdependency_libs $deplib" ;;
     9266              -L*)
     9267                func_stripname -L '' "$deplib"
     9268                func_replace_sysroot "$func_stripname_result"
     9269                func_append newdependency_libs " -L$func_replace_sysroot_result"
     9270                ;;
     9271              -R*)
     9272                func_stripname -R '' "$deplib"
     9273                func_replace_sysroot "$func_stripname_result"
     9274                func_append newdependency_libs " -R$func_replace_sysroot_result"
     9275                ;;
     9276              *) func_append newdependency_libs " $deplib" ;;
    80699277              esac
    80709278            done
     
    80809288                test -z "$libdir" && \
    80819289                  func_fatal_error "\`$lib' is not a valid libtool archive"
    8082                 newdlfiles="$newdlfiles $libdir/$name"
     9290                func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
    80839291                ;;
    8084               *) newdlfiles="$newdlfiles $lib" ;;
     9292              *) func_append newdlfiles " $lib" ;;
    80859293              esac
    80869294            done
     
    80999307                test -z "$libdir" && \
    81009308                  func_fatal_error "\`$lib' is not a valid libtool archive"
    8101                 newdlprefiles="$newdlprefiles $libdir/$name"
     9309                func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
    81029310                ;;
    81039311              esac
     
    81119319                *) abs=`pwd`"/$lib" ;;
    81129320              esac
    8113               newdlfiles="$newdlfiles $abs"
     9321              func_append newdlfiles " $abs"
    81149322            done
    81159323            dlfiles="$newdlfiles"
     
    81209328                *) abs=`pwd`"/$lib" ;;
    81219329              esac
    8122               newdlprefiles="$newdlprefiles $abs"
     9330              func_append newdlprefiles " $abs"
    81239331            done
    81249332            dlprefiles="$newdlprefiles"
     
    81269334          $RM $output
    81279335          # place dlname in correct position for cygwin
     9336          # In fact, it would be nice if we could use this code for all target
     9337          # systems that can't hard-code library paths into their executables
     9338          # and that have no shared library path variable independent of PATH,
     9339          # but it turns out we can't easily determine that from inspecting
     9340          # libtool variables, so we have to hard-code the OSs to which it
     9341          # applies here; at the moment, that means platforms that use the PE
     9342          # object format with DLL files.  See the long comment at the top of
     9343          # tests/bindir.at for full details.
    81289344          tdlname=$dlname
    81299345          case $host,$output,$installed,$module,$dlname in
    8130             *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
     9346            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
     9347              # If a -bindir argument was supplied, place the dll there.
     9348              if test "x$bindir" != x ;
     9349              then
     9350                func_relative_path "$install_libdir" "$bindir"
     9351                tdlname=$func_relative_path_result$dlname
     9352              else
     9353                # Otherwise fall back on heuristic.
     9354                tdlname=../bin/$dlname
     9355              fi
     9356              ;;
    81319357          esac
    81329358          $ECHO > $output "\
     
    81879413}
    81889414
    8189 { test "$mode" = link || test "$mode" = relink; } &&
     9415{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
    81909416    func_mode_link ${1+"$@"}
    81919417
     
    82079433    do
    82089434      case $arg in
    8209       -f) RM="$RM $arg"; rmforce=yes ;;
    8210       -*) RM="$RM $arg" ;;
    8211       *) files="$files $arg" ;;
     9435      -f) func_append RM " $arg"; rmforce=yes ;;
     9436      -*) func_append RM " $arg" ;;
     9437      *) func_append files " $arg" ;;
    82129438      esac
    82139439    done
     
    82189444    rmdirs=
    82199445
    8220     origobjdir="$objdir"
    82219446    for file in $files; do
    82229447      func_dirname "$file" "" "."
    82239448      dir="$func_dirname_result"
    82249449      if test "X$dir" = X.; then
    8225         objdir="$origobjdir"
     9450        odir="$objdir"
    82269451      else
    8227         objdir="$dir/$origobjdir"
     9452        odir="$dir/$objdir"
    82289453      fi
    82299454      func_basename "$file"
    82309455      name="$func_basename_result"
    8231       test "$mode" = uninstall && objdir="$dir"
    8232 
    8233       # Remember objdir for removal later, being careful to avoid duplicates
    8234       if test "$mode" = clean; then
     9456      test "$opt_mode" = uninstall && odir="$dir"
     9457
     9458      # Remember odir for removal later, being careful to avoid duplicates
     9459      if test "$opt_mode" = clean; then
    82359460        case " $rmdirs " in
    8236           *" $objdir "*) ;;
    8237           *) rmdirs="$rmdirs $objdir" ;;
     9461          *" $odir "*) ;;
     9462          *) func_append rmdirs " $odir" ;;
    82389463        esac
    82399464      fi
     
    82619486          # Delete the libtool libraries and symlinks.
    82629487          for n in $library_names; do
    8263             rmfiles="$rmfiles $objdir/$n"
     9488            func_append rmfiles " $odir/$n"
    82649489          done
    8265           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
    8266 
    8267           case "$mode" in
     9490          test -n "$old_library" && func_append rmfiles " $odir/$old_library"
     9491
     9492          case "$opt_mode" in
    82689493          clean)
    8269             case "  $library_names " in
    8270             # "  " in the beginning catches empty $dlname
     9494            case " $library_names " in
    82719495            *" $dlname "*) ;;
    8272             *) rmfiles="$rmfiles $objdir/$dlname" ;;
     9496            *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
    82739497            esac
    8274             test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
     9498            test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
    82759499            ;;
    82769500          uninstall)
     
    83009524          if test -n "$pic_object" &&
    83019525             test "$pic_object" != none; then
    8302             rmfiles="$rmfiles $dir/$pic_object"
     9526            func_append rmfiles " $dir/$pic_object"
    83039527          fi
    83049528
     
    83069530          if test -n "$non_pic_object" &&
    83079531             test "$non_pic_object" != none; then
    8308             rmfiles="$rmfiles $dir/$non_pic_object"
     9532            func_append rmfiles " $dir/$non_pic_object"
    83099533          fi
    83109534        fi
     
    83129536
    83139537      *)
    8314         if test "$mode" = clean ; then
     9538        if test "$opt_mode" = clean ; then
    83159539          noexename=$name
    83169540          case $file in
     
    83229546            # $file with .exe has already been added to rmfiles,
    83239547            # add $file without .exe
    8324             rmfiles="$rmfiles $file"
     9548            func_append rmfiles " $file"
    83259549            ;;
    83269550          esac
     
    83319555              relink_command=
    83329556              func_source $func_ltwrapper_scriptname_result
    8333               rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
     9557              func_append rmfiles " $func_ltwrapper_scriptname_result"
    83349558            else
    83359559              relink_command=
     
    83399563            # note $name still contains .exe if it was in $file originally
    83409564            # as does the version of $file that was added into $rmfiles
    8341             rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
     9565            func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
    83429566            if test "$fast_install" = yes && test -n "$relink_command"; then
    8343               rmfiles="$rmfiles $objdir/lt-$name"
     9567              func_append rmfiles " $odir/lt-$name"
    83449568            fi
    83459569            if test "X$noexename" != "X$name" ; then
    8346               rmfiles="$rmfiles $objdir/lt-${noexename}.c"
     9570              func_append rmfiles " $odir/lt-${noexename}.c"
    83479571            fi
    83489572          fi
     
    83529576      func_show_eval "$RM $rmfiles" 'exit_status=1'
    83539577    done
    8354     objdir="$origobjdir"
    83559578
    83569579    # Try to remove the ${objdir}s in the directories where we deleted files
     
    83649587}
    83659588
    8366 { test "$mode" = uninstall || test "$mode" = clean; } &&
     9589{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
    83679590    func_mode_uninstall ${1+"$@"}
    83689591
    8369 test -z "$mode" && {
     9592test -z "$opt_mode" && {
    83709593  help="$generic_help"
    83719594  func_fatal_help "you must specify a MODE"
     
    83739596
    83749597test -z "$exec_cmd" && \
    8375   func_fatal_help "invalid operation mode \`$mode'"
     9598  func_fatal_help "invalid operation mode \`$opt_mode'"
    83769599
    83779600if test -n "$exec_cmd"; then
  • trunk/FACT++/.macro_dir/libtool.m4

    r10183 r12832  
    22#
    33#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    4 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     4#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     5#                 Inc.
    56#   Written by Gordon Matzigkeit, 1996
    67#
     
    1112m4_define([_LT_COPYING], [dnl
    1213#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    13 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     14#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     15#                 Inc.
    1416#   Written by Gordon Matzigkeit, 1996
    1517#
     
    3840])
    3941
    40 # serial 56 LT_INIT
     42# serial 57 LT_INIT
    4143
    4244
     
    6769AC_DEFUN([LT_INIT],
    6870[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
     71AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    6972AC_BEFORE([$0], [LT_LANG])dnl
    7073AC_BEFORE([$0], [LT_OUTPUT])dnl
     
    8285AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    8386m4_require([_LT_PROG_LTMAIN])dnl
     87
     88_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    8489
    8590dnl Parse OPTIONS
     
    119124  esac
    120125done
    121 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     126cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    122127])
    123128
     
    139144[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    140145AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     146AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
     147AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
     148
    141149_LT_DECL([], [host_alias], [0], [The host system])dnl
    142150_LT_DECL([], [host], [0])dnl
     
    161169m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    162170m4_require([_LT_CHECK_SHELL_FEATURES])dnl
     171m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    163172m4_require([_LT_CMD_RELOAD])dnl
    164173m4_require([_LT_CHECK_MAGIC_METHOD])dnl
     174m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    165175m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    166176m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
     177m4_require([_LT_WITH_SYSROOT])dnl
    167178
    168179_LT_CONFIG_LIBTOOL_INIT([
     
    180191
    181192m4_require([_LT_TAG_COMPILER])dnl
    182 _LT_PROG_ECHO_BACKSLASH
    183193
    184194case $host_os in
     
    194204esac
    195205
    196 # Sed substitution that helps us do robust quoting.  It backslashifies
    197 # metacharacters that are still active within double-quoted strings.
    198 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
    199 
    200 # Same as above, but do not quote variable references.
    201 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
    202 
    203 # Sed substitution to delay expansion of an escaped shell variable in a
    204 # double_quote_subst'ed string.
    205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    206 
    207 # Sed substitution to delay expansion of an escaped single quote.
    208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    209 
    210 # Sed substitution to avoid accidental globbing in evaled expressions
    211 no_glob_subst='s/\*/\\\*/g'
    212 
    213206# Global variables:
    214207ofile=libtool
     
    250243])# _LT_SETUP
    251244
     245
     246# _LT_PREPARE_SED_QUOTE_VARS
     247# --------------------------
     248# Define a few sed substitution that help us do robust quoting.
     249m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
     250[# Backslashify metacharacters that are still active within
     251# double-quoted strings.
     252sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
     253
     254# Same as above, but do not quote variable references.
     255double_quote_subst='s/\([["`\\]]\)/\\\1/g'
     256
     257# Sed substitution to delay expansion of an escaped shell variable in a
     258# double_quote_subst'ed string.
     259delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     260
     261# Sed substitution to delay expansion of an escaped single quote.
     262delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     263
     264# Sed substitution to avoid accidental globbing in evaled expressions
     265no_glob_subst='s/\*/\\\*/g'
     266])
    252267
    253268# _LT_PROG_LTMAIN
     
    409424# must have a single quote delimited value for this to work.
    410425m4_define([_LT_CONFIG_STATUS_DECLARE],
    411 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
     426[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
    412427
    413428
     
    419434# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
    420435#
    421 #    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
     436#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
    422437m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
    423438[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
     
    518533compiler='$compiler_DEFAULT'
    519534
     535# A function that is used when there is no print builtin or printf.
     536func_fallback_echo ()
     537{
     538  eval 'cat <<_LTECHO_EOF
     539\$[]1
     540_LTECHO_EOF'
     541}
     542
    520543# Quote evaled strings.
    521544for var in lt_decl_all_varnames([[ \
    522545]], lt_decl_quote_varnames); do
    523     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     546    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    524547    *[[\\\\\\\`\\"\\\$]]*)
    525       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     548      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
    526549      ;;
    527550    *)
     
    534557for var in lt_decl_all_varnames([[ \
    535558]], lt_decl_dquote_varnames); do
    536     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     559    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    537560    *[[\\\\\\\`\\"\\\$]]*)
    538       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     561      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
    539562      ;;
    540563    *)
     
    544567done
    545568
    546 # Fix-up fallback echo if it was mangled by the above quoting rules.
    547 case \$lt_ECHO in
    548 *'\\\[$]0 --fallback-echo"')dnl "
    549   lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
    550   ;;
    551 esac
    552 
    553569_LT_OUTPUT_LIBTOOL_INIT
    554570])
    555571
     572# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
     573# ------------------------------------
     574# Generate a child script FILE with all initialization necessary to
     575# reuse the environment learned by the parent script, and make the
     576# file executable.  If COMMENT is supplied, it is inserted after the
     577# `#!' sequence but before initialization text begins.  After this
     578# macro, additional text can be appended to FILE to form the body of
     579# the child script.  The macro ends with non-zero status if the
     580# file could not be fully written (such as if the disk is full).
     581m4_ifdef([AS_INIT_GENERATED],
     582[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
     583[m4_defun([_LT_GENERATED_FILE_INIT],
     584[m4_require([AS_PREPARE])]dnl
     585[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
     586[lt_write_fail=0
     587cat >$1 <<_ASEOF || lt_write_fail=1
     588#! $SHELL
     589# Generated by $as_me.
     590$2
     591SHELL=\${CONFIG_SHELL-$SHELL}
     592export SHELL
     593_ASEOF
     594cat >>$1 <<\_ASEOF || lt_write_fail=1
     595AS_SHELL_SANITIZE
     596_AS_PREPARE
     597exec AS_MESSAGE_FD>&1
     598_ASEOF
     599test $lt_write_fail = 0 && chmod +x $1[]dnl
     600m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
    556601
    557602# LT_OUTPUT
     
    563608[: ${CONFIG_LT=./config.lt}
    564609AC_MSG_NOTICE([creating $CONFIG_LT])
    565 cat >"$CONFIG_LT" <<_LTEOF
    566 #! $SHELL
    567 # Generated by $as_me.
    568 # Run this file to recreate a libtool stub with the current configuration.
    569 
     610_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
     611[# Run this file to recreate a libtool stub with the current configuration.])
     612
     613cat >>"$CONFIG_LT" <<\_LTEOF
    570614lt_cl_silent=false
    571 SHELL=\${CONFIG_SHELL-$SHELL}
    572 _LTEOF
    573 
    574 cat >>"$CONFIG_LT" <<\_LTEOF
    575 AS_SHELL_SANITIZE
    576 _AS_PREPARE
    577 
    578 exec AS_MESSAGE_FD>&1
    579615exec AS_MESSAGE_LOG_FD>>config.log
    580616{
     
    602638configured by $[0], generated by m4_PACKAGE_STRING.
    603639
    604 Copyright (C) 2008 Free Software Foundation, Inc.
     640Copyright (C) 2010 Free Software Foundation, Inc.
    605641This config.lt script is free software; the Free Software Foundation
    606642gives unlimited permision to copy, distribute and modify it."
     
    647683# open by configure.  Here we exec the FD to /dev/null, effectively closing
    648684# config.log, so it can be properly (re)opened and appended to by config.lt.
    649 if test "$no_create" != yes; then
    650   lt_cl_success=:
    651   test "$silent" = yes &&
    652     lt_config_lt_args="$lt_config_lt_args --quiet"
    653   exec AS_MESSAGE_LOG_FD>/dev/null
    654   $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
    655   exec AS_MESSAGE_LOG_FD>>config.log
    656   $lt_cl_success || AS_EXIT(1)
    657 fi
     685lt_cl_success=:
     686test "$silent" = yes &&
     687  lt_config_lt_args="$lt_config_lt_args --quiet"
     688exec AS_MESSAGE_LOG_FD>/dev/null
     689$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
     690exec AS_MESSAGE_LOG_FD>>config.log
     691$lt_cl_success || AS_EXIT(1)
    658692])# LT_OUTPUT
    659693
     
    718752  # text mode, it properly converts lines to CR/LF.  This bash problem
    719753  # is reportedly fixed, but why not run on old versions too?
    720   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    721     || (rm -f "$cfgfile"; exit 1)
    722 
    723   _LT_PROG_XSI_SHELLFNS
    724 
    725   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    726     || (rm -f "$cfgfile"; exit 1)
    727 
    728   mv -f "$cfgfile" "$ofile" ||
     754  sed '$q' "$ltmain" >> "$cfgfile" \
     755     || (rm -f "$cfgfile"; exit 1)
     756
     757  _LT_PROG_REPLACE_SHELLFNS
     758
     759   mv -f "$cfgfile" "$ofile" ||
    729760    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    730761  chmod +x "$ofile"
     
    832863AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
    833864AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
     865AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
    834866dnl aclocal-1.4 backwards compatibility:
    835867dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
     
    837869dnl AC_DEFUN([AC_LIBTOOL_FC], [])
    838870dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
     871dnl AC_DEFUN([AC_LIBTOOL_RC], [])
    839872
    840873
     
    941974        LDFLAGS="$save_LDFLAGS"
    942975    ])
     976    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
     977      [lt_cv_ld_force_load=no
     978      cat > conftest.c << _LT_EOF
     979int forced_loaded() { return 2;}
     980_LT_EOF
     981      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
     982      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
     983      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
     984      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
     985      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
     986      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
     987      cat > conftest.c << _LT_EOF
     988int main() { return 0;}
     989_LT_EOF
     990      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
     991      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     992      _lt_result=$?
     993      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
     994        lt_cv_ld_force_load=yes
     995      else
     996        cat conftest.err >&AS_MESSAGE_LOG_FD
     997      fi
     998        rm -f conftest.err libconftest.a conftest conftest.c
     999        rm -rf conftest.dSYM
     1000    ])
    9431001    case $host_os in
    9441002    rhapsody* | darwin1.[[012]])
     
    9681026      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    9691027    fi
    970     if test "$DSYMUTIL" != ":"; then
     1028    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
    9711029      _lt_dsymutil='~$DSYMUTIL $lib || :'
    9721030    else
     
    9881046  _LT_TAGVAR(hardcode_automatic, $1)=yes
    9891047  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    990   _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1048  if test "$lt_cv_ld_force_load" = "yes"; then
     1049    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     1050  else
     1051    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1052  fi
    9911053  _LT_TAGVAR(link_all_deplibs, $1)=yes
    9921054  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
     
    9961058  esac
    9971059  if test "$_lt_dar_can_shared" = "yes"; then
    998     output_verbose_link_cmd=echo
     1060    output_verbose_link_cmd=func_echo_all
    9991061    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    10001062    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    10121074])
    10131075
    1014 # _LT_SYS_MODULE_PATH_AIX
    1015 # -----------------------
     1076# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
     1077# ----------------------------------
    10161078# Links a minimal program and checks the executable
    10171079# for the system default hardcoded library path. In most cases,
     
    10201082# If we don't find anything, use the default library path according
    10211083# to the aix ld manual.
     1084# Store the results from the different compilers for each TAGNAME.
     1085# Allow to override them for all tags through lt_cv_aix_libpath.
    10221086m4_defun([_LT_SYS_MODULE_PATH_AIX],
    10231087[m4_require([_LT_DECL_SED])dnl
    1024 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    1025 lt_aix_libpath_sed='
    1026     /Import File Strings/,/^$/ {
    1027         /^0/ {
    1028             s/^0  *\(.*\)$/\1/
    1029             p
    1030         }
    1031     }'
    1032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1033 # Check for a 64-bit object if we didn't find anything.
    1034 if test -z "$aix_libpath"; then
    1035   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1036 fi],[])
    1037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     1088if test "${lt_cv_aix_libpath+set}" = set; then
     1089  aix_libpath=$lt_cv_aix_libpath
     1090else
     1091  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
     1092  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
     1093  lt_aix_libpath_sed='[
     1094      /Import File Strings/,/^$/ {
     1095          /^0/ {
     1096              s/^0  *\([^ ]*\) *$/\1/
     1097              p
     1098          }
     1099      }]'
     1100  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1101  # Check for a 64-bit object if we didn't find anything.
     1102  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1103    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1104  fi],[])
     1105  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1106    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
     1107  fi
     1108  ])
     1109  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
     1110fi
    10381111])# _LT_SYS_MODULE_PATH_AIX
    10391112
     
    10421115# -------------------
    10431116m4_define([_LT_SHELL_INIT],
    1044 [ifdef([AC_DIVERSION_NOTICE],
    1045              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
    1046          [AC_DIVERT_PUSH(NOTICE)])
    1047 $1
    1048 AC_DIVERT_POP
    1049 ])# _LT_SHELL_INIT
     1117[m4_divert_text([M4SH-INIT], [$1
     1118])])# _LT_SHELL_INIT
     1119
    10501120
    10511121
    10521122# _LT_PROG_ECHO_BACKSLASH
    10531123# -----------------------
    1054 # Add some code to the start of the generated configure script which
    1055 # will find an echo command which doesn't interpret backslashes.
     1124# Find how we can fake an echo command that does not interpret backslash.
     1125# In particular, with Autoconf 2.60 or later we add some code to the start
     1126# of the generated configure script which will find a shell with a builtin
     1127# printf (which we can use as an echo command).
    10561128m4_defun([_LT_PROG_ECHO_BACKSLASH],
    1057 [_LT_SHELL_INIT([
    1058 # Check that we are running under the correct shell.
    1059 SHELL=${CONFIG_SHELL-/bin/sh}
    1060 
    1061 case X$lt_ECHO in
    1062 X*--fallback-echo)
    1063   # Remove one level of quotation (which was required for Make).
    1064   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
    1065   ;;
     1129[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1130ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1131ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1132
     1133AC_MSG_CHECKING([how to print strings])
     1134# Test print first, because it will be a builtin if present.
     1135if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     1136   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     1137  ECHO='print -r --'
     1138elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     1139  ECHO='printf %s\n'
     1140else
     1141  # Use this function as a fallback that always works.
     1142  func_fallback_echo ()
     1143  {
     1144    eval 'cat <<_LTECHO_EOF
     1145$[]1
     1146_LTECHO_EOF'
     1147  }
     1148  ECHO='func_fallback_echo'
     1149fi
     1150
     1151# func_echo_all arg...
     1152# Invoke $ECHO with all args, space-separated.
     1153func_echo_all ()
     1154{
     1155    $ECHO "$*"
     1156}
     1157
     1158case "$ECHO" in
     1159  printf*) AC_MSG_RESULT([printf]) ;;
     1160  print*) AC_MSG_RESULT([print -r]) ;;
     1161  *) AC_MSG_RESULT([cat]) ;;
    10661162esac
    10671163
    1068 ECHO=${lt_ECHO-echo}
    1069 if test "X[$]1" = X--no-reexec; then
    1070   # Discard the --no-reexec flag, and continue.
    1071   shift
    1072 elif test "X[$]1" = X--fallback-echo; then
    1073   # Avoid inline document here, it may be left over
    1074   :
    1075 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
    1076   # Yippee, $ECHO works!
    1077   :
    1078 else
    1079   # Restart under the correct shell.
    1080   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1081 fi
    1082 
    1083 if test "X[$]1" = X--fallback-echo; then
    1084   # used as fallback echo
    1085   shift
    1086   cat <<_LT_EOF
    1087 [$]*
    1088 _LT_EOF
    1089   exit 0
    1090 fi
    1091 
    1092 # The HP-UX ksh and POSIX shell print the target directory to stdout
    1093 # if CDPATH is set.
    1094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    1095 
    1096 if test -z "$lt_ECHO"; then
    1097   if test "X${echo_test_string+set}" != Xset; then
    1098     # find a string as large as possible, as long as the shell can cope with it
    1099     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
    1100       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    1101       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
    1102          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
    1103       then
    1104         break
    1105       fi
    1106     done
    1107   fi
    1108 
    1109   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1110      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1111      test "X$echo_testing_string" = "X$echo_test_string"; then
    1112     :
    1113   else
    1114     # The Solaris, AIX, and Digital Unix default echo programs unquote
    1115     # backslashes.  This makes it impossible to quote backslashes using
    1116     #   echo "$something" | sed 's/\\/\\\\/g'
    1117     #
    1118     # So, first we look for a working echo in the user's PATH.
    1119 
    1120     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    1121     for dir in $PATH /usr/ucb; do
    1122       IFS="$lt_save_ifs"
    1123       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    1124          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    1125          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    1126          test "X$echo_testing_string" = "X$echo_test_string"; then
    1127         ECHO="$dir/echo"
    1128         break
    1129       fi
    1130     done
    1131     IFS="$lt_save_ifs"
    1132 
    1133     if test "X$ECHO" = Xecho; then
    1134       # We didn't find a better echo, so look for alternatives.
    1135       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
    1136          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
    1137          test "X$echo_testing_string" = "X$echo_test_string"; then
    1138         # This shell has a builtin print -r that does the trick.
    1139         ECHO='print -r'
    1140       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
    1141            test "X$CONFIG_SHELL" != X/bin/ksh; then
    1142         # If we have ksh, try running configure again with it.
    1143         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    1144         export ORIGINAL_CONFIG_SHELL
    1145         CONFIG_SHELL=/bin/ksh
    1146         export CONFIG_SHELL
    1147         exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1148       else
    1149         # Try using printf.
    1150         ECHO='printf %s\n'
    1151         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1152            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1153            test "X$echo_testing_string" = "X$echo_test_string"; then
    1154           # Cool, printf works
    1155           :
    1156         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1157              test "X$echo_testing_string" = 'X\t' &&
    1158              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1159              test "X$echo_testing_string" = "X$echo_test_string"; then
    1160           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    1161           export CONFIG_SHELL
    1162           SHELL="$CONFIG_SHELL"
    1163           export SHELL
    1164           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1165         elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1166              test "X$echo_testing_string" = 'X\t' &&
    1167              echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1168              test "X$echo_testing_string" = "X$echo_test_string"; then
    1169           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1170         else
    1171           # maybe with a smaller string...
    1172           prev=:
    1173 
    1174           for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
    1175             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
    1176             then
    1177               break
    1178             fi
    1179             prev="$cmd"
    1180           done
    1181 
    1182           if test "$prev" != 'sed 50q "[$]0"'; then
    1183             echo_test_string=`eval $prev`
    1184             export echo_test_string
    1185             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
    1186           else
    1187             # Oops.  We lost completely, so just stick with echo.
    1188             ECHO=echo
    1189           fi
    1190         fi
    1191       fi
    1192     fi
    1193   fi
    1194 fi
    1195 
    1196 # Copy echo and quote the copy suitably for passing to libtool from
    1197 # the Makefile, instead of quoting the original, which is used later.
    1198 lt_ECHO=$ECHO
    1199 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
    1200    lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
    1201 fi
    1202 
    1203 AC_SUBST(lt_ECHO)
    1204 ])
     1164m4_ifdef([_AS_DETECT_SUGGESTED],
     1165[_AS_DETECT_SUGGESTED([
     1166  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
     1167    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1168    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1169    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1170    PATH=/empty FPATH=/empty; export PATH FPATH
     1171    test "X`printf %s $ECHO`" = "X$ECHO" \
     1172      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
     1173
    12051174_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
    1206 _LT_DECL([], [ECHO], [1],
    1207     [An echo program that does not interpret backslashes])
     1175_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
    12081176])# _LT_PROG_ECHO_BACKSLASH
    12091177
     1178
     1179# _LT_WITH_SYSROOT
     1180# ----------------
     1181AC_DEFUN([_LT_WITH_SYSROOT],
     1182[AC_MSG_CHECKING([for sysroot])
     1183AC_ARG_WITH([sysroot],
     1184[  --with-sysroot[=DIR] Search for dependent libraries within DIR
     1185                        (or the compiler's sysroot if not specified).],
     1186[], [with_sysroot=no])
     1187
     1188dnl lt_sysroot will always be passed unquoted.  We quote it here
     1189dnl in case the user passed a directory name.
     1190lt_sysroot=
     1191case ${with_sysroot} in #(
     1192 yes)
     1193   if test "$GCC" = yes; then
     1194     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     1195   fi
     1196   ;; #(
     1197 /*)
     1198   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     1199   ;; #(
     1200 no|'')
     1201   ;; #(
     1202 *)
     1203   AC_MSG_RESULT([${with_sysroot}])
     1204   AC_MSG_ERROR([The sysroot must be an absolute path.])
     1205   ;;
     1206esac
     1207
     1208 AC_MSG_RESULT([${lt_sysroot:-no}])
     1209_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
     1210[dependent libraries, and in which our libraries should be installed.])])
    12101211
    12111212# _LT_ENABLE_LOCK
     
    12371238*-*-irix6*)
    12381239  # Find out which ABI we are using.
    1239   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     1240  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
    12401241  if AC_TRY_EVAL(ac_compile); then
    12411242    if test "$lt_cv_prog_gnu_ld" = yes; then
     
    13551356
    13561357
     1358# _LT_PROG_AR
     1359# -----------
     1360m4_defun([_LT_PROG_AR],
     1361[AC_CHECK_TOOLS(AR, [ar], false)
     1362: ${AR=ar}
     1363: ${AR_FLAGS=cru}
     1364_LT_DECL([], [AR], [1], [The archiver])
     1365_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
     1366
     1367AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
     1368  [lt_cv_ar_at_file=no
     1369   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
     1370     [echo conftest.$ac_objext > conftest.lst
     1371      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
     1372      AC_TRY_EVAL([lt_ar_try])
     1373      if test "$ac_status" -eq 0; then
     1374        # Ensure the archiver fails upon bogus file names.
     1375        rm -f conftest.$ac_objext libconftest.a
     1376        AC_TRY_EVAL([lt_ar_try])
     1377        if test "$ac_status" -ne 0; then
     1378          lt_cv_ar_at_file=@
     1379        fi
     1380      fi
     1381      rm -f conftest.* libconftest.a
     1382     ])
     1383  ])
     1384
     1385if test "x$lt_cv_ar_at_file" = xno; then
     1386  archiver_list_spec=
     1387else
     1388  archiver_list_spec=$lt_cv_ar_at_file
     1389fi
     1390_LT_DECL([], [archiver_list_spec], [1],
     1391  [How to feed a file listing to the archiver])
     1392])# _LT_PROG_AR
     1393
     1394
    13571395# _LT_CMD_OLD_ARCHIVE
    13581396# -------------------
    13591397m4_defun([_LT_CMD_OLD_ARCHIVE],
    1360 [AC_CHECK_TOOL(AR, ar, false)
    1361 test -z "$AR" && AR=ar
    1362 test -z "$AR_FLAGS" && AR_FLAGS=cru
    1363 _LT_DECL([], [AR], [1], [The archiver])
    1364 _LT_DECL([], [AR_FLAGS], [1])
     1398[_LT_PROG_AR
    13651399
    13661400AC_CHECK_TOOL(STRIP, strip, :)
     
    13891423  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    13901424fi
     1425
     1426case $host_os in
     1427  darwin*)
     1428    lock_old_archive_extraction=yes ;;
     1429  *)
     1430    lock_old_archive_extraction=no ;;
     1431esac
    13911432_LT_DECL([], [old_postinstall_cmds], [2])
    13921433_LT_DECL([], [old_postuninstall_cmds], [2])
    13931434_LT_TAGDECL([], [old_archive_cmds], [2],
    13941435    [Commands used to build an old-style archive])
     1436_LT_DECL([], [lock_old_archive_extraction], [0],
     1437    [Whether to use a lock for old archive extraction])
    13951438])# _LT_CMD_OLD_ARCHIVE
    13961439
     
    14171460   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    14181461   -e 's:$: $lt_compiler_flag:'`
    1419    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1462   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    14201463   (eval "$lt_compile" 2>conftest.err)
    14211464   ac_status=$?
    14221465   cat conftest.err >&AS_MESSAGE_LOG_FD
    1423    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1466   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    14241467   if (exit $ac_status) && test -s "$ac_outfile"; then
    14251468     # The compiler can only warn and ignore the option if not recognized
    14261469     # So say no if there are warnings other than the usual output.
    1427      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     1470     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    14281471     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14291472     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    14651508       # Append any errors to the config.log.
    14661509       cat conftest.err 1>&AS_MESSAGE_LOG_FD
    1467        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     1510       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    14681511       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14691512       if diff conftest.exp conftest.er2 >/dev/null; then
     
    15251568    # Instead, let's just punt: use the minimum linelength reported by
    15261569    # all of the supported platforms: 8192 (on NT/2K/XP).
     1570    lt_cv_sys_max_cmd_len=8192;
     1571    ;;
     1572
     1573  mint*)
     1574    # On MiNT this can take a long time and run out of memory.
    15271575    lt_cv_sys_max_cmd_len=8192;
    15281576    ;;
     
    15921640      # maximum length that is only half of the actual maximum length, but
    15931641      # we can't tell.
    1594       while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
    1595                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
     1642      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
     1643                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
    15961644              test $i != 17 # 1/2 MB should be enough
    15971645      do
     
    16441692  lt_status=$lt_dlunknown
    16451693  cat > conftest.$ac_ext <<_LT_EOF
    1646 [#line __oline__ "configure"
     1694[#line $LINENO "configure"
    16471695#include "confdefs.h"
    16481696
     
    16851733#endif
    16861734
    1687 void fnord() { int i=42;}
     1735/* When -fvisbility=hidden is used, assume the code has been annotated
     1736   correspondingly for the symbols needed.  */
     1737#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     1738int fnord () __attribute__((visibility("default")));
     1739#endif
     1740
     1741int fnord () { return 42; }
    16881742int main ()
    16891743{
     
    16941748    {
    16951749      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    1696       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     1750      else
     1751        {
     1752          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     1753          else puts (dlerror ());
     1754        }
    16971755      /* dlclose (self); */
    16981756    }
     
    18701928   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    18711929   -e 's:$: $lt_compiler_flag:'`
    1872    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1930   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    18731931   (eval "$lt_compile" 2>out/conftest.err)
    18741932   ac_status=$?
    18751933   cat out/conftest.err >&AS_MESSAGE_LOG_FD
    1876    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1934   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    18771935   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    18781936   then
    18791937     # The compiler can only warn and ignore the option if not recognized
    18801938     # So say no if there are warnings
    1881      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     1939     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    18821940     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    18831941     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    20382096m4_require([_LT_DECL_OBJDUMP])dnl
    20392097m4_require([_LT_DECL_SED])dnl
     2098m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    20402099AC_MSG_CHECKING([dynamic linker characteristics])
    20412100m4_if([$1],
     
    20462105    *) lt_awk_arg="/^libraries:/" ;;
    20472106  esac
    2048   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2049   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
     2107  case $host_os in
     2108    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
     2109    *) lt_sed_strip_eq="s,=/,/,g" ;;
     2110  esac
     2111  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     2112  case $lt_search_path_spec in
     2113  *\;*)
    20502114    # if the path contains ";" then we assume it to be the separator
    20512115    # otherwise default to the standard path separator (i.e. ":") - it is
    20522116    # assumed that no part of a normal pathname contains ";" but that should
    20532117    # okay in the real world where ";" in dirpaths is itself problematic.
    2054     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    2055   else
    2056     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2057   fi
     2118    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     2119    ;;
     2120  *)
     2121    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     2122    ;;
     2123  esac
    20582124  # Ok, now we have the path, separated by spaces, we can step through it
    20592125  # and add multilib dir if necessary.
     
    20682134    fi
    20692135  done
    2070   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
     2136  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
    20712137BEGIN {RS=" "; FS="/|\n";} {
    20722138  lt_foo="";
     
    20882154  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
    20892155}'`
    2090   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
     2156  # AWK program above erroneously prepends '/' to C:/dos/paths
     2157  # for these hosts.
     2158  case $host_os in
     2159    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     2160      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
     2161  esac
     2162  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
    20912163else
    20922164  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    21762248    library_names_spec='$libname.ixlibrary $libname.a'
    21772249    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    2178     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     2250    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    21792251    ;;
    21802252  esac
     
    22072279  need_lib_prefix=no
    22082280
    2209   case $GCC,$host_os in
    2210   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
     2281  case $GCC,$cc_basename in
     2282  yes,*)
     2283    # gcc
    22112284    library_names_spec='$libname.dll.a'
    22122285    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     
    22292302      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    22302303      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2231       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     2304m4_if([$1], [],[
     2305      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
    22322306      ;;
    22332307    mingw* | cegcc*)
    22342308      # MinGW DLLs use traditional 'lib' prefix
    22352309      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2236       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2237       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
    2238         # It is most probably a Windows format PATH printed by
    2239         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    2240         # path with ; separators, and with drive letters. We can handle the
    2241         # drive letters (cygwin fileutils understands them), so leave them,
    2242         # especially as we might pass files found there to a mingw objdump,
    2243         # which wouldn't understand a cygwinified path. Ahh.
    2244         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    2245       else
    2246         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2247       fi
    22482310      ;;
    22492311    pw32*)
     
    22522314      ;;
    22532315    esac
     2316    dynamic_linker='Win32 ld.exe'
    22542317    ;;
    22552318
     2319  *,cl*)
     2320    # Native MSVC
     2321    libname_spec='$name'
     2322    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2323    library_names_spec='${libname}.dll.lib'
     2324
     2325    case $build_os in
     2326    mingw*)
     2327      sys_lib_search_path_spec=
     2328      lt_save_ifs=$IFS
     2329      IFS=';'
     2330      for lt_path in $LIB
     2331      do
     2332        IFS=$lt_save_ifs
     2333        # Let DOS variable expansion print the short 8.3 style file name.
     2334        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     2335        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     2336      done
     2337      IFS=$lt_save_ifs
     2338      # Convert to MSYS style.
     2339      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
     2340      ;;
     2341    cygwin*)
     2342      # Convert to unix form, then to dos form, then back to unix form
     2343      # but this time dos style (no spaces!) so that the unix form looks
     2344      # like /cygdrive/c/PROGRA~1:/cygdr...
     2345      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     2346      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     2347      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2348      ;;
     2349    *)
     2350      sys_lib_search_path_spec="$LIB"
     2351      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
     2352        # It is most probably a Windows format PATH.
     2353        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     2354      else
     2355        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2356      fi
     2357      # FIXME: find the short name or the path components, as spaces are
     2358      # common. (e.g. "Program Files" -> "PROGRA~1")
     2359      ;;
     2360    esac
     2361
     2362    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     2363    postinstall_cmds='base_file=`basename \${file}`~
     2364      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     2365      dldir=$destdir/`dirname \$dlpath`~
     2366      test -d \$dldir || mkdir -p \$dldir~
     2367      $install_prog $dir/$dlname \$dldir/$dlname'
     2368    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2369      dlpath=$dir/\$dldll~
     2370       $RM \$dlpath'
     2371    shlibpath_overrides_runpath=yes
     2372    dynamic_linker='Win32 link.exe'
     2373    ;;
     2374
    22562375  *)
     2376    # Assume MSVC wrapper
    22572377    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2378    dynamic_linker='Win32 ld.exe'
    22582379    ;;
    22592380  esac
    2260   dynamic_linker='Win32 ld.exe'
    22612381  # FIXME: first we should search . and the directory the executable is in
    22622382  shlibpath_var=PATH
     
    23422462  soname_spec='${libname}${release}${shared_ext}$major'
    23432463  shlibpath_var=LD_LIBRARY_PATH
     2464  shlibpath_overrides_runpath=no
     2465  hardcode_into_libs=yes
     2466  ;;
     2467
     2468haiku*)
     2469  version_type=linux
     2470  need_lib_prefix=no
     2471  need_version=no
     2472  dynamic_linker="$host_os runtime_loader"
     2473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     2474  soname_spec='${libname}${release}${shared_ext}$major'
     2475  shlibpath_var=LIBRARY_PATH
     2476  shlibpath_overrides_runpath=yes
     2477  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    23442478  hardcode_into_libs=yes
    23452479  ;;
     
    23872521    ;;
    23882522  esac
    2389   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     2523  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    23902524  postinstall_cmds='chmod 555 $lib'
     2525  # or fails outright, so override atomically:
     2526  install_override_mode=555
    23912527  ;;
    23922528
     
    24552591  shlibpath_var=LD_LIBRARY_PATH
    24562592  shlibpath_overrides_runpath=no
     2593
    24572594  # Some binutils ld are patched to set DT_RUNPATH
    2458   save_LDFLAGS=$LDFLAGS
    2459   save_libdir=$libdir
    2460   eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
    2461        LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
    2462   AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
    2463     [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
    2464        [shlibpath_overrides_runpath=yes])])
    2465   LDFLAGS=$save_LDFLAGS
    2466   libdir=$save_libdir
     2595  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
     2596    [lt_cv_shlibpath_overrides_runpath=no
     2597    save_LDFLAGS=$LDFLAGS
     2598    save_libdir=$libdir
     2599    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
     2600         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
     2601    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     2602      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
     2603         [lt_cv_shlibpath_overrides_runpath=yes])])
     2604    LDFLAGS=$save_LDFLAGS
     2605    libdir=$save_libdir
     2606    ])
     2607  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
    24672608
    24682609  # This implies no fast_install, which is unacceptable.
     
    24732614  # Append ld.so.conf contents to the search path
    24742615  if test -f /etc/ld.so.conf; then
    2475     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     2616    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    24762617    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    24772618  fi
     
    27182859_LT_DECL([], [soname_spec], [1],
    27192860    [[The coded name of the library, if different from the real name]])
     2861_LT_DECL([], [install_override_mode], [1],
     2862    [Permission mode override for installation of shared libraries])
    27202863_LT_DECL([], [postinstall_cmds], [2],
    27212864    [Command to use after installation of a shared archive])
     
    28302973m4_require([_LT_DECL_SED])dnl
    28312974m4_require([_LT_DECL_EGREP])dnl
     2975m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
    28322976
    28332977AC_ARG_WITH([gnu-ld],
     
    29513095reload_cmds='$LD$reload_flag -o $output$reload_objs'
    29523096case $host_os in
     3097  cygwin* | mingw* | pw32* | cegcc*)
     3098    if test "$GCC" != yes; then
     3099      reload_cmds=false
     3100    fi
     3101    ;;
    29533102  darwin*)
    29543103    if test "$GCC" = yes; then
     
    29593108    ;;
    29603109esac
    2961 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
    2962 _LT_DECL([], [reload_cmds], [2])dnl
     3110_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
     3111_LT_TAGDECL([], [reload_cmds], [2])dnl
    29633112])# _LT_CMD_RELOAD
    29643113
     
    30123161  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    30133162  # unless we find 'file', for example because we are cross-compiling.
    3014   if ( file / ) >/dev/null 2>&1; then
     3163  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     3164  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    30153165    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    30163166    lt_cv_file_magic_cmd='func_win32_libid'
    30173167  else
    3018     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     3168    # Keep this pattern in sync with the one in func_win32_libid.
     3169    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    30193170    lt_cv_file_magic_cmd='$OBJDUMP -f'
    30203171  fi
    30213172  ;;
    30223173
    3023 cegcc)
     3174cegcc*)
    30243175  # use the weaker test based on 'objdump'. See mingw*.
    30253176  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     
    30513202  ;;
    30523203
     3204haiku*)
     3205  lt_cv_deplibs_check_method=pass_all
     3206  ;;
     3207
    30533208hpux10.20* | hpux11*)
    30543209  lt_cv_file_magic_cmd=/usr/bin/file
     
    30593214    ;;
    30603215  hppa*64*)
    3061     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
     3216    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
    30623217    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    30633218    ;;
    30643219  *)
    3065     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
     3220    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
    30663221    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    30673222    ;;
     
    31633318esac
    31643319])
     3320
     3321file_magic_glob=
     3322want_nocaseglob=no
     3323if test "$build" = "$host"; then
     3324  case $host_os in
     3325  mingw* | pw32*)
     3326    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     3327      want_nocaseglob=yes
     3328    else
     3329      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
     3330    fi
     3331    ;;
     3332  esac
     3333fi
     3334
    31653335file_magic_cmd=$lt_cv_file_magic_cmd
    31663336deplibs_check_method=$lt_cv_deplibs_check_method
     
    31703340    [Method to check whether dependent libraries are shared objects])
    31713341_LT_DECL([], [file_magic_cmd], [1],
    3172     [Command to use when deplibs_check_method == "file_magic"])
     3342    [Command to use when deplibs_check_method = "file_magic"])
     3343_LT_DECL([], [file_magic_glob], [1],
     3344    [How to find potential files when deplibs_check_method = "file_magic"])
     3345_LT_DECL([], [want_nocaseglob], [1],
     3346    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
    31733347])# _LT_CHECK_MAGIC_METHOD
    31743348
     
    32273401else
    32283402  # Didn't find any BSD compatible name lister, look for dumpbin.
    3229   AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
     3403  if test -n "$DUMPBIN"; then :
     3404    # Let the user override the test.
     3405  else
     3406    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
     3407    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     3408    *COFF*)
     3409      DUMPBIN="$DUMPBIN -symbols"
     3410      ;;
     3411    *)
     3412      DUMPBIN=:
     3413      ;;
     3414    esac
     3415  fi
    32303416  AC_SUBST([DUMPBIN])
    32313417  if test "$DUMPBIN" != ":"; then
     
    32403426  [lt_cv_nm_interface="BSD nm"
    32413427  echo "int some_variable = 0;" > conftest.$ac_ext
    3242   (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
     3428  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
    32433429  (eval "$ac_compile" 2>conftest.err)
    32443430  cat conftest.err >&AS_MESSAGE_LOG_FD
    3245   (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
     3431  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
    32463432  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    32473433  cat conftest.err >&AS_MESSAGE_LOG_FD
    3248   (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
     3434  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
    32493435  cat conftest.out >&AS_MESSAGE_LOG_FD
    32503436  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    32603446dnl AC_DEFUN([AM_PROG_NM], [])
    32613447dnl AC_DEFUN([AC_PROG_NM], [])
     3448
     3449# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3450# --------------------------------
     3451# how to determine the name of the shared library
     3452# associated with a specific link library.
     3453#  -- PORTME fill in with the dynamic library characteristics
     3454m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
     3455[m4_require([_LT_DECL_EGREP])
     3456m4_require([_LT_DECL_OBJDUMP])
     3457m4_require([_LT_DECL_DLLTOOL])
     3458AC_CACHE_CHECK([how to associate runtime and link libraries],
     3459lt_cv_sharedlib_from_linklib_cmd,
     3460[lt_cv_sharedlib_from_linklib_cmd='unknown'
     3461
     3462case $host_os in
     3463cygwin* | mingw* | pw32* | cegcc*)
     3464  # two different shell functions defined in ltmain.sh
     3465  # decide which to use based on capabilities of $DLLTOOL
     3466  case `$DLLTOOL --help 2>&1` in
     3467  *--identify-strict*)
     3468    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     3469    ;;
     3470  *)
     3471    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     3472    ;;
     3473  esac
     3474  ;;
     3475*)
     3476  # fallback: assume linklib IS sharedlib
     3477  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     3478  ;;
     3479esac
     3480])
     3481sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     3482test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     3483
     3484_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
     3485    [Command to associate shared and link libraries])
     3486])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3487
     3488
     3489# _LT_PATH_MANIFEST_TOOL
     3490# ----------------------
     3491# locate the manifest tool
     3492m4_defun([_LT_PATH_MANIFEST_TOOL],
     3493[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
     3494test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     3495AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
     3496  [lt_cv_path_mainfest_tool=no
     3497  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
     3498  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     3499  cat conftest.err >&AS_MESSAGE_LOG_FD
     3500  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     3501    lt_cv_path_mainfest_tool=yes
     3502  fi
     3503  rm -f conftest*])
     3504if test "x$lt_cv_path_mainfest_tool" != xyes; then
     3505  MANIFEST_TOOL=:
     3506fi
     3507_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
     3508])# _LT_PATH_MANIFEST_TOOL
    32623509
    32633510
     
    32693516LIBM=
    32703517case $host in
    3271 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
     3518*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
    32723519  # These system don't have libm, or don't need it
    32733520  ;;
     
    32973544
    32983545if test "$GCC" = yes; then
    3299   _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
     3546  case $cc_basename in
     3547  nvcc*)
     3548    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
     3549  *)
     3550    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
     3551  esac
    33003552
    33013553  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
     
    33143566[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    33153567AC_REQUIRE([AC_PROG_CC])dnl
     3568AC_REQUIRE([AC_PROG_AWK])dnl
    33163569AC_REQUIRE([LT_PATH_NM])dnl
    33173570AC_REQUIRE([LT_PATH_LD])dnl
     
    33813634
    33823635# Transform an extracted symbol line into symbol name and symbol address
    3383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
    3384 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
     3636lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
     3637lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
    33853638
    33863639# Handle CRLF in mingw tool chain
     
    34183671    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    34193672  fi
     3673  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
    34203674
    34213675  # Check to see that the pipe works correctly.
     
    34393693    # Now try to grab the symbols.
    34403694    nlist=conftest.nm
    3441     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
     3695    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
    34423696      # Try sorting and uniquifying the output.
    34433697      if sort "$nlist" | uniq > "$nlist"T; then
     
    34513705        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
    34523706          cat <<_LT_EOF > conftest.$ac_ext
     3707/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3708#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3709/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3710   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3711# define LT@&t@_DLSYM_CONST
     3712#elif defined(__osf__)
     3713/* This system does not cope well with relocations in const data.  */
     3714# define LT@&t@_DLSYM_CONST
     3715#else
     3716# define LT@&t@_DLSYM_CONST const
     3717#endif
     3718
    34533719#ifdef __cplusplus
    34543720extern "C" {
     
    34623728
    34633729/* The mapping between symbol names and symbols.  */
    3464 const struct {
     3730LT@&t@_DLSYM_CONST struct {
    34653731  const char *name;
    34663732  void       *address;
     
    34883754          # Now try linking the two files.
    34893755          mv conftest.$ac_objext conftstm.$ac_objext
    3490           lt_save_LIBS="$LIBS"
    3491           lt_save_CFLAGS="$CFLAGS"
     3756          lt_globsym_save_LIBS=$LIBS
     3757          lt_globsym_save_CFLAGS=$CFLAGS
    34923758          LIBS="conftstm.$ac_objext"
    34933759          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
     
    34953761            pipe_works=yes
    34963762          fi
    3497           LIBS="$lt_save_LIBS"
    3498           CFLAGS="$lt_save_CFLAGS"
     3763          LIBS=$lt_globsym_save_LIBS
     3764          CFLAGS=$lt_globsym_save_CFLAGS
    34993765        else
    35003766          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
     
    35293795fi
    35303796
     3797# Response file support.
     3798if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     3799  nm_file_list_spec='@'
     3800elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
     3801  nm_file_list_spec='@'
     3802fi
     3803
    35313804_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
    35323805    [Take the output of nm and produce a listing of raw symbols and C names])
     
    35393812    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
    35403813    [Transform the output of nm in a C name address pair when lib prefix is needed])
     3814_LT_DECL([], [nm_file_list_spec], [1],
     3815    [Specify filename containing input files for $NM])
    35413816]) # _LT_CMD_GLOBAL_SYMBOLS
    35423817
     
    35503825_LT_TAGVAR(lt_prog_compiler_static, $1)=
    35513826
    3552 AC_MSG_CHECKING([for $compiler option to produce PIC])
    35533827m4_if([$1], [CXX], [
    35543828  # C++ specific cases for pic, static, wl, etc.
     
    36003874      # DJGPP does not support shared libraries at all
    36013875      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     3876      ;;
     3877    haiku*)
     3878      # PIC is the default for Haiku.
     3879      # The "-static" flag exists, but is broken.
     3880      _LT_TAGVAR(lt_prog_compiler_static, $1)=
    36023881      ;;
    36033882    interix[[3-9]]*)
     
    36493928          ;;
    36503929        esac
     3930        ;;
     3931      mingw* | cygwin* | os2* | pw32* | cegcc*)
     3932        # This hack is so that the source file can tell whether it is being
     3933        # built for inclusion in a dll (and should export symbols for example).
     3934        m4_if([$1], [GCJ], [],
     3935          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    36513936        ;;
    36523937      dgux*)
     
    37394024            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    37404025            ;;
    3741           xlc* | xlC*)
    3742             # IBM XL 8.0 on PPC
     4026          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
     4027            # IBM XL 8.0, 9.0 on PPC and BlueGene
    37434028            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    37444029            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    38024087      solaris*)
    38034088        case $cc_basename in
    3804           CC*)
     4089          CC* | sunCC*)
    38054090            # Sun C++ 4.2, 5.x and Centerline C++
    38064091            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    39064191      ;;
    39074192
     4193    haiku*)
     4194      # PIC is the default for Haiku.
     4195      # The "-static" flag exists, but is broken.
     4196      _LT_TAGVAR(lt_prog_compiler_static, $1)=
     4197      ;;
     4198
    39084199    hpux*)
    39094200      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     
    39464237    *)
    39474238      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4239      ;;
     4240    esac
     4241
     4242    case $cc_basename in
     4243    nvcc*) # Cuda Compiler Driver 2.2
     4244      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
     4245      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
    39484246      ;;
    39494247    esac
     
    40114309        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
    40124310        ;;
    4013       pgcc* | pgf77* | pgf90* | pgf95*)
     4311      nagfor*)
     4312        # NAG Fortran compiler
     4313        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
     4314        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4315        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4316        ;;
     4317      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    40144318        # Portland Group compilers (*not* the Pentium gcc compiler,
    40154319        # which looks to be a dead project)
     
    40234327        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    40244328        ;;
    4025       xl*)
    4026         # IBM XL C 8.0/Fortran 10.1 on PPC
     4329      xl* | bgxl* | bgf* | mpixl*)
     4330        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
    40274331        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40284332        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    40314335      *)
    40324336        case `$CC -V 2>&1 | sed 5q` in
     4337        *Sun\ F* | *Sun*Fortran*)
     4338          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     4339          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4340          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4341          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
     4342          ;;
    40334343        *Sun\ C*)
    40344344          # Sun C 5.9
     
    40374347          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40384348          ;;
    4039         *Sun\ F*)
    4040           # Sun Fortran 8.3 passes all unrecognized flags to the linker
    4041           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4042           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4043           _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
    4044           ;;
    40454349        esac
    40464350        ;;
     
    40734377      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    40744378      case $cc_basename in
    4075       f77* | f90* | f95*)
     4379      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    40764380        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
    40774381      *)
     
    41304434    ;;
    41314435esac
    4132 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
    4133 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
    4134         [How to pass a linker flag through the compiler])
     4436
     4437AC_CACHE_CHECK([for $compiler option to produce PIC],
     4438  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
     4439  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
     4440_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
    41354441
    41364442#
     
    41514457        [Additional compiler flags for building library objects])
    41524458
     4459_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
     4460        [How to pass a linker flag through the compiler])
    41534461#
    41544462# Check to make sure the static flag actually works.
     
    41714479[AC_REQUIRE([LT_PATH_LD])dnl
    41724480AC_REQUIRE([LT_PATH_NM])dnl
     4481m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    41734482m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    41744483m4_require([_LT_DECL_EGREP])dnl
     
    41794488m4_if([$1], [CXX], [
    41804489  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4490  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    41814491  case $host_os in
    41824492  aix[[4-9]]*)
    41834493    # If we're using GNU nm, then we don't want the "-C" option.
    41844494    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4495    # Also, AIX nm treats weak defined symbols like other global defined
     4496    # symbols, whereas GNU nm marks them as "W".
    41854497    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4186       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     4498      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    41874499    else
    41884500      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     
    41914503  pw32*)
    41924504    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    4193   ;;
     4505    ;;
    41944506  cygwin* | mingw* | cegcc*)
    4195     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
    4196   ;;
    4197   linux* | k*bsd*-gnu)
     4507    case $cc_basename in
     4508    cl*) ;;
     4509    *)
     4510      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
     4511      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
     4512      ;;
     4513    esac
     4514    ;;
     4515  linux* | k*bsd*-gnu | gnu*)
    41984516    _LT_TAGVAR(link_all_deplibs, $1)=no
    4199   ;;
     4517    ;;
    42004518  *)
    42014519    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    4202   ;;
     4520    ;;
    42034521  esac
    4204   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    42054522], [
    42064523  runpath_var=
     
    42624579    with_gnu_ld=no
    42634580    ;;
    4264   linux* | k*bsd*-gnu)
     4581  linux* | k*bsd*-gnu | gnu*)
    42654582    _LT_TAGVAR(link_all_deplibs, $1)=no
    42664583    ;;
     
    42684585
    42694586  _LT_TAGVAR(ld_shlibs, $1)=yes
     4587
     4588  # On some targets, GNU ld is compatible enough with the native linker
     4589  # that we're better off using the native interface for both.
     4590  lt_use_gnu_ld_interface=no
    42704591  if test "$with_gnu_ld" = yes; then
     4592    case $host_os in
     4593      aix*)
     4594        # The AIX port of GNU ld has always aspired to compatibility
     4595        # with the native linker.  However, as the warning in the GNU ld
     4596        # block says, versions before 2.19.5* couldn't really create working
     4597        # shared libraries, regardless of the interface used.
     4598        case `$LD -v 2>&1` in
     4599          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     4600          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
     4601          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
     4602          *)
     4603            lt_use_gnu_ld_interface=yes
     4604            ;;
     4605        esac
     4606        ;;
     4607      *)
     4608        lt_use_gnu_ld_interface=yes
     4609        ;;
     4610    esac
     4611  fi
     4612
     4613  if test "$lt_use_gnu_ld_interface" = yes; then
    42714614    # If archive_cmds runs LD, not CC, wlarc should be empty
    42724615    wlarc='${wl}'
     
    43024645        cat <<_LT_EOF 1>&2
    43034646
    4304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     4647*** Warning: the GNU linker, at least up to release 2.19, is reported
    43054648*** to be unable to reliably create shared libraries on AIX.
    43064649*** Therefore, libtool is disabling shared libraries support.  If you
    4307 *** really care for shared libraries, you may want to modify your PATH
    4308 *** so that a non-GNU linker is found, and then restart.
     4650*** really care for shared libraries, you may want to install binutils
     4651*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     4652*** You will then need to restart the configuration process.
    43094653
    43104654_LT_EOF
     
    43424686      # as there is no search path for DLLs.
    43434687      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     4688      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
    43444689      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    43454690      _LT_TAGVAR(always_export_symbols, $1)=no
    43464691      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    4347       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
     4692      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
     4693      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
    43484694
    43494695      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     
    43634709      ;;
    43644710
     4711    haiku*)
     4712      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4713      _LT_TAGVAR(link_all_deplibs, $1)=yes
     4714      ;;
     4715
    43654716    interix[[3-9]]*)
    43664717      _LT_TAGVAR(hardcode_direct, $1)=no
     
    43884739         && test "$tmp_diet" = no
    43894740      then
    4390         tmp_addflag=
     4741        tmp_addflag=' $pic_flag'
    43914742        tmp_sharedflag='-shared'
    43924743        case $cc_basename,$host_cpu in
    43934744        pgcc*)                          # Portland Group C compiler
    4394           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4745          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    43954746          tmp_addflag=' $pic_flag'
    43964747          ;;
    4397         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    4398           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4748        pgf77* | pgf90* | pgf95* | pgfortran*)
     4749                                        # Portland Group f77 and f90 compilers
     4750          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    43994751          tmp_addflag=' $pic_flag -Mnomain' ;;
    44004752        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    44074759          _LT_TAGVAR(whole_archive_flag_spec, $1)=
    44084760          tmp_sharedflag='--shared' ;;
    4409         xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
     4761        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
    44104762          tmp_sharedflag='-qmkshrobj'
    44114763          tmp_addflag= ;;
     4764        nvcc*)  # Cuda Compiler Driver 2.2
     4765          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
     4766          _LT_TAGVAR(compiler_needs_object, $1)=yes
     4767          ;;
    44124768        esac
    44134769        case `$CC -V 2>&1 | sed 5q` in
    44144770        *Sun\ C*)                       # Sun C 5.9
    4415           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4771          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    44164772          _LT_TAGVAR(compiler_needs_object, $1)=yes
    44174773          tmp_sharedflag='-G' ;;
     
    44294785
    44304786        case $cc_basename in
    4431         xlf*)
     4787        xlf* | bgf* | bgxlf* | mpixlf*)
    44324788          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    44334789          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
    44344790          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
    44354791          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
    4436           _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
     4792          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
    44374793          if test "x$supports_anon_versioning" = xyes; then
    44384794            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    44394795              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    44404796              echo "local: *; };" >> $output_objdir/$libname.ver~
    4441               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     4797              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    44424798          fi
    44434799          ;;
     
    44534809        wlarc=
    44544810      else
    4455         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4456         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4811        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4812        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    44574813      fi
    44584814      ;;
     
    44724828_LT_EOF
    44734829      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4474         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4475         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4830        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4831        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    44764832      else
    44774833        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45194875    *)
    45204876      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4521         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4522         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4877        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4878        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    45234879      else
    45244880        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45604916        # If we're using GNU nm, then we don't want the "-C" option.
    45614917        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4918        # Also, AIX nm treats weak defined symbols like other global
     4919        # defined symbols, whereas GNU nm marks them as "W".
    45624920        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4563           _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     4921          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    45644922        else
    45654923          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     
    46495007        # Determine the default libpath from the value encoded in an
    46505008        # empty executable.
    4651         _LT_SYS_MODULE_PATH_AIX
     5009        _LT_SYS_MODULE_PATH_AIX([$1])
    46525010        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    4653         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     5011        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    46545012      else
    46555013        if test "$host_cpu" = ia64; then
     
    46605018         # Determine the default libpath from the value encoded in an
    46615019         # empty executable.
    4662          _LT_SYS_MODULE_PATH_AIX
     5020         _LT_SYS_MODULE_PATH_AIX([$1])
    46635021         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    46645022          # Warning - without using the other run time loading flags,
     
    46665024          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    46675025          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    4668           # Exported symbols can be pulled into shared objects from archives
    4669           _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5026          if test "$with_gnu_ld" = yes; then
     5027            # We only use this code for GNU lds that support --whole-archive.
     5028            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     5029          else
     5030            # Exported symbols can be pulled into shared objects from archives
     5031            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5032          fi
    46705033          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    46715034          # This is similar to how AIX traditionally builds its shared libraries.
     
    46995062      # hardcode_libdir_flag_spec is actually meaningless, as there is
    47005063      # no search path for DLLs.
    4701       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
    4702       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4703       # Tell ltmain to make .lib files, not .a files.
    4704       libext=lib
    4705       # Tell ltmain to make .dll files, not .so files.
    4706       shrext_cmds=".dll"
    4707       # FIXME: Setting linknames here is a bad hack.
    4708       _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    4709       # The linker will automatically build a .lib file if we build a DLL.
    4710       _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
    4711       # FIXME: Should let the user specify the lib program.
    4712       _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
    4713       _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    4714       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5064      case $cc_basename in
     5065      cl*)
     5066        # Native MSVC
     5067        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5068        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5069        _LT_TAGVAR(always_export_symbols, $1)=yes
     5070        _LT_TAGVAR(file_list_spec, $1)='@'
     5071        # Tell ltmain to make .lib files, not .a files.
     5072        libext=lib
     5073        # Tell ltmain to make .dll files, not .so files.
     5074        shrext_cmds=".dll"
     5075        # FIXME: Setting linknames here is a bad hack.
     5076        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     5077        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     5078            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     5079          else
     5080            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     5081          fi~
     5082          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     5083          linknames='
     5084        # The linker will not automatically build a static lib if we build a DLL.
     5085        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5086        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5087        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
     5088        # Don't use ranlib
     5089        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     5090        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     5091          lt_tool_outputfile="@TOOL_OUTPUT@"~
     5092          case $lt_outputfile in
     5093            *.exe|*.EXE) ;;
     5094            *)
     5095              lt_outputfile="$lt_outputfile.exe"
     5096              lt_tool_outputfile="$lt_tool_outputfile.exe"
     5097              ;;
     5098          esac~
     5099          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     5100            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     5101            $RM "$lt_outputfile.manifest";
     5102          fi'
     5103        ;;
     5104      *)
     5105        # Assume MSVC wrapper
     5106        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5107        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5108        # Tell ltmain to make .lib files, not .a files.
     5109        libext=lib
     5110        # Tell ltmain to make .dll files, not .so files.
     5111        shrext_cmds=".dll"
     5112        # FIXME: Setting linknames here is a bad hack.
     5113        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     5114        # The linker will automatically build a .lib file if we build a DLL.
     5115        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5116        # FIXME: Should let the user specify the lib program.
     5117        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
     5118        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5119        ;;
     5120      esac
    47155121      ;;
    47165122
     
    47505156    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    47515157    freebsd* | dragonfly*)
    4752       _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     5158      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    47535159      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    47545160      _LT_TAGVAR(hardcode_direct, $1)=yes
     
    47585164    hpux9*)
    47595165      if test "$GCC" = yes; then
    4760         _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     5166        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    47615167      else
    47625168        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     
    47735179
    47745180    hpux10*)
    4775       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    4776         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5181      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5182        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    47775183      else
    47785184        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    47925198
    47935199    hpux11*)
    4794       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     5200      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    47955201        case $host_cpu in
    47965202        hppa*64*)
     
    47985204          ;;
    47995205        ia64*)
    4800           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5206          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    48015207          ;;
    48025208        *)
    4803           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5209          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    48045210          ;;
    48055211        esac
     
    48135219          ;;
    48145220        *)
    4815           _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5221        m4_if($1, [], [
     5222          # Older versions of the 11.00 compiler do not understand -b yet
     5223          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     5224          _LT_LINKER_OPTION([if $CC understands -b],
     5225            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
     5226            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
     5227            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
     5228          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
    48165229          ;;
    48175230        esac
     
    48415254    irix5* | irix6* | nonstopux*)
    48425255      if test "$GCC" = yes; then
    4843         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5256        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    48445257        # Try to use the -exported_symbol ld option, if it does not
    48455258        # work, assume that -exports_file does not work either and
    48465259        # implicitly export all symbols.
    4847         save_LDFLAGS="$LDFLAGS"
    4848         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
    4849         AC_LINK_IFELSE(int foo(void) {},
    4850           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
    4851         )
    4852         LDFLAGS="$save_LDFLAGS"
     5260        # This should be the same for all languages, so no per-tag cache variable.
     5261        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
     5262          [lt_cv_irix_exported_symbol],
     5263          [save_LDFLAGS="$LDFLAGS"
     5264           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     5265           AC_LINK_IFELSE(
     5266             [AC_LANG_SOURCE(
     5267                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
     5268                              [C++], [[int foo (void) { return 0; }]],
     5269                              [Fortran 77], [[
     5270      subroutine foo
     5271      end]],
     5272                              [Fortran], [[
     5273      subroutine foo
     5274      end]])])],
     5275              [lt_cv_irix_exported_symbol=yes],
     5276              [lt_cv_irix_exported_symbol=no])
     5277           LDFLAGS="$save_LDFLAGS"])
     5278        if test "$lt_cv_irix_exported_symbol" = yes; then
     5279          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
     5280        fi
    48535281      else
    4854         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
    4855         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
     5282        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     5283        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
    48565284      fi
    48575285      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    49155343      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    49165344      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4917       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     5345      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    49185346      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    49195347      ;;
     
    49225350      if test "$GCC" = yes; then
    49235351        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4924         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5352        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    49255353      else
    49265354        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4927         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     5355        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    49285356      fi
    49295357      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    49355363      if test "$GCC" = yes; then
    49365364        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4937         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5365        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    49385366        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    49395367      else
    49405368        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4941         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     5369        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    49425370        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
    4943         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
     5371        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
    49445372
    49455373        # Both c and cxx compiler support -rpath directly
     
    49545382      if test "$GCC" = yes; then
    49555383        wlarc='${wl}'
    4956         _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5384        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    49575385        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    4958           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5386          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
    49595387      else
    49605388        case `$CC -V 2>&1` in
     
    51325560      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    51335561      # to ld, don't add -lc before -lgcc.
    5134       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    5135       $RM conftest*
    5136       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    5137 
    5138       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
    5139         soname=conftest
    5140         lib=conftest
    5141         libobjs=conftest.$ac_objext
    5142         deplibs=
    5143         wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
    5144         pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
    5145         compiler_flags=-v
    5146         linker_flags=-v
    5147         verstring=
    5148         output_objdir=.
    5149         libname=conftest
    5150         lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
    5151         _LT_TAGVAR(allow_undefined_flag, $1)=
    5152         if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
    5153         then
    5154           _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    5155         else
    5156           _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    5157         fi
    5158         _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
    5159       else
    5160         cat conftest.err 1>&5
    5161       fi
    5162       $RM conftest*
    5163       AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
     5562      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
     5563        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
     5564        [$RM conftest*
     5565        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     5566
     5567        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     5568          soname=conftest
     5569          lib=conftest
     5570          libobjs=conftest.$ac_objext
     5571          deplibs=
     5572          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
     5573          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
     5574          compiler_flags=-v
     5575          linker_flags=-v
     5576          verstring=
     5577          output_objdir=.
     5578          libname=conftest
     5579          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
     5580          _LT_TAGVAR(allow_undefined_flag, $1)=
     5581          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
     5582          then
     5583            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5584          else
     5585            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5586          fi
     5587          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
     5588        else
     5589          cat conftest.err 1>&5
     5590        fi
     5591        $RM conftest*
     5592        ])
     5593      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
    51645594      ;;
    51655595    esac
     
    52265656_LT_TAGDECL([], [link_all_deplibs], [0],
    52275657    [Whether libtool must link a program against all its dependency libraries])
    5228 _LT_TAGDECL([], [fix_srcfile_path], [1],
    5229     [Fix the shell variable $srcfile for the compiler])
    52305658_LT_TAGDECL([], [always_export_symbols], [0],
    52315659    [Set to "yes" if exported symbols are required])
     
    52385666_LT_TAGDECL([], [prelink_cmds], [2],
    52395667    [Commands necessary for linking programs (against libraries) with templates])
     5668_LT_TAGDECL([], [postlink_cmds], [2],
     5669    [Commands necessary for finishing linking programs])
    52405670_LT_TAGDECL([], [file_list_spec], [1],
    52415671    [Specify filename containing input files])
     
    53315761
    53325762
    5333 # _LT_PROG_CXX
    5334 # ------------
    5335 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
    5336 # compiler, we have our own version here.
    5337 m4_defun([_LT_PROG_CXX],
    5338 [
    5339 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
    5340 AC_PROG_CXX
     5763# _LT_LANG_CXX_CONFIG([TAG])
     5764# --------------------------
     5765# Ensure that the configuration variables for a C++ compiler are suitably
     5766# defined.  These variables are subsequently used by _LT_CONFIG to write
     5767# the compiler configuration to `libtool'.
     5768m4_defun([_LT_LANG_CXX_CONFIG],
     5769[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     5770m4_require([_LT_DECL_EGREP])dnl
     5771m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    53415772if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    53425773    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     
    53465777  _lt_caught_CXX_error=yes
    53475778fi
    5348 popdef([AC_MSG_ERROR])
    5349 ])# _LT_PROG_CXX
    5350 
    5351 dnl aclocal-1.4 backwards compatibility:
    5352 dnl AC_DEFUN([_LT_PROG_CXX], [])
    5353 
    5354 
    5355 # _LT_LANG_CXX_CONFIG([TAG])
    5356 # --------------------------
    5357 # Ensure that the configuration variables for a C++ compiler are suitably
    5358 # defined.  These variables are subsequently used by _LT_CONFIG to write
    5359 # the compiler configuration to `libtool'.
    5360 m4_defun([_LT_LANG_CXX_CONFIG],
    5361 [AC_REQUIRE([_LT_PROG_CXX])dnl
    5362 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    5363 m4_require([_LT_DECL_EGREP])dnl
    53645779
    53655780AC_LANG_PUSH(C++)
     
    53835798_LT_TAGVAR(link_all_deplibs, $1)=unknown
    53845799_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     5800_LT_TAGVAR(reload_flag, $1)=$reload_flag
     5801_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    53855802_LT_TAGVAR(no_undefined_flag, $1)=
    53865803_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    54145831  # Allow CC to be a program name with arguments.
    54155832  lt_save_CC=$CC
     5833  lt_save_CFLAGS=$CFLAGS
    54165834  lt_save_LD=$LD
    54175835  lt_save_GCC=$GCC
     
    54315849  test -z "${LDCXX+set}" || LD=$LDCXX
    54325850  CC=${CXX-"c++"}
     5851  CFLAGS=$CXXFLAGS
    54335852  compiler=$CC
    54345853  _LT_TAGVAR(compiler, $1)=$CC
     
    54525871      # archiving commands below assume that GNU ld is being used.
    54535872      if test "$with_gnu_ld" = yes; then
    5454         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5455         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5873        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5874        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    54565875
    54575876        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    54855904      # what "hidden" libraries, object files and flags are used when
    54865905      # linking a shared library.
    5487       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     5906      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    54885907
    54895908    else
     
    55946013          # Determine the default libpath from the value encoded in an empty
    55956014          # executable.
    5596           _LT_SYS_MODULE_PATH_AIX
     6015          _LT_SYS_MODULE_PATH_AIX([$1])
    55976016          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    55986017
    5599           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     6018          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    56006019        else
    56016020          if test "$host_cpu" = ia64; then
     
    56066025            # Determine the default libpath from the value encoded in an
    56076026            # empty executable.
    5608             _LT_SYS_MODULE_PATH_AIX
     6027            _LT_SYS_MODULE_PATH_AIX([$1])
    56096028            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    56106029            # Warning - without using the other run time loading flags,
     
    56126031            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    56136032            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5614             # Exported symbols can be pulled into shared objects from archives
    5615             _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6033            if test "$with_gnu_ld" = yes; then
     6034              # We only use this code for GNU lds that support --whole-archive.
     6035              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     6036            else
     6037              # Exported symbols can be pulled into shared objects from archives
     6038              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6039            fi
    56166040            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    56176041            # This is similar to how AIX traditionally builds its shared
     
    56436067
    56446068      cygwin* | mingw* | pw32* | cegcc*)
    5645         # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    5646         # as there is no search path for DLLs.
    5647         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5648         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    5649         _LT_TAGVAR(always_export_symbols, $1)=no
    5650         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5651 
    5652         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    5653           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    5654           # If the export-symbols file already is a .def file (1st line
    5655           # is EXPORTS), use it as is; otherwise, prepend...
    5656           _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    5657             cp $export_symbols $output_objdir/$soname.def;
    5658           else
    5659             echo EXPORTS > $output_objdir/$soname.def;
    5660             cat $export_symbols >> $output_objdir/$soname.def;
    5661           fi~
    5662           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    5663         else
    5664           _LT_TAGVAR(ld_shlibs, $1)=no
    5665         fi
    5666         ;;
     6069        case $GXX,$cc_basename in
     6070        ,cl* | no,cl*)
     6071          # Native MSVC
     6072          # hardcode_libdir_flag_spec is actually meaningless, as there is
     6073          # no search path for DLLs.
     6074          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     6075          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6076          _LT_TAGVAR(always_export_symbols, $1)=yes
     6077          _LT_TAGVAR(file_list_spec, $1)='@'
     6078          # Tell ltmain to make .lib files, not .a files.
     6079          libext=lib
     6080          # Tell ltmain to make .dll files, not .so files.
     6081          shrext_cmds=".dll"
     6082          # FIXME: Setting linknames here is a bad hack.
     6083          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     6084          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6085              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     6086            else
     6087              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     6088            fi~
     6089            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     6090            linknames='
     6091          # The linker will not automatically build a static lib if we build a DLL.
     6092          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     6093          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6094          # Don't use ranlib
     6095          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     6096          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     6097            lt_tool_outputfile="@TOOL_OUTPUT@"~
     6098            case $lt_outputfile in
     6099              *.exe|*.EXE) ;;
     6100              *)
     6101                lt_outputfile="$lt_outputfile.exe"
     6102                lt_tool_outputfile="$lt_tool_outputfile.exe"
     6103                ;;
     6104            esac~
     6105            func_to_tool_file "$lt_outputfile"~
     6106            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     6107              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     6108              $RM "$lt_outputfile.manifest";
     6109            fi'
     6110          ;;
     6111        *)
     6112          # g++
     6113          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     6114          # as there is no search path for DLLs.
     6115          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     6116          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
     6117          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6118          _LT_TAGVAR(always_export_symbols, $1)=no
     6119          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6120
     6121          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     6122            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     6123            # If the export-symbols file already is a .def file (1st line
     6124            # is EXPORTS), use it as is; otherwise, prepend...
     6125            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6126              cp $export_symbols $output_objdir/$soname.def;
     6127            else
     6128              echo EXPORTS > $output_objdir/$soname.def;
     6129              cat $export_symbols >> $output_objdir/$soname.def;
     6130            fi~
     6131            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     6132          else
     6133            _LT_TAGVAR(ld_shlibs, $1)=no
     6134          fi
     6135          ;;
     6136        esac
     6137        ;;
    56676138      darwin* | rhapsody*)
    56686139        _LT_DARWIN_LINKER_FEATURES($1)
     
    57066177        ;;
    57076178
     6179      haiku*)
     6180        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6181        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6182        ;;
     6183
    57086184      hpux9*)
    57096185        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     
    57306206            # from the output so that they don't get included in the library
    57316207            # dependencies.
    5732             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6208            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    57336209            ;;
    57346210          *)
    57356211            if test "$GXX" = yes; then
    5736               _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     6212              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    57376213            else
    57386214              # FIXME: insert proper C++ library support
     
    57956271            # from the output so that they don't get included in the library
    57966272            # dependencies.
    5797             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6273            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    57986274            ;;
    57996275          *)
     
    58056281                    ;;
    58066282                  ia64*)
    5807                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6283                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    58086284                    ;;
    58096285                  *)
    5810                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6286                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    58116287                    ;;
    58126288                esac
     
    58386314          CC*)
    58396315            # SGI C++
    5840             _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6316            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    58416317
    58426318            # Archives containing C++ object files must be created using
     
    58496325            if test "$GXX" = yes; then
    58506326              if test "$with_gnu_ld" = no; then
    5851                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6327                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    58526328              else
    5853                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
     6329                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
    58546330              fi
    58556331            fi
     
    58806356            # from the output so that they don't get included in the library
    58816357            # dependencies.
    5882             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6358            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    58836359
    58846360            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     
    59176393            # Portland Group C++ compiler
    59186394            case `$CC -V` in
    5919             *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
     6395            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
    59206396              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
    59216397                rm -rf $tpldir~
    59226398                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
    5923                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
     6399                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
    59246400              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
    59256401                rm -rf $tpldir~
    59266402                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
    5927                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
     6403                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
    59286404                $RANLIB $oldlib'
    59296405              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
    59306406                rm -rf $tpldir~
    59316407                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5932                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6408                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59336409              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
    59346410                rm -rf $tpldir~
    59356411                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5936                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     6412                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
    59376413              ;;
    5938             *) # Version 6 will use weak symbols
     6414            *) # Version 6 and above use weak symbols
    59396415              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59406416              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     
    59446420            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    59456421            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5946             _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     6422            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    59476423            ;;
    59486424          cxx*)
     
    59636439            # from the output so that they don't get included in the library
    59646440            # dependencies.
    5965             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6441            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
    59666442            ;;
    5967           xl*)
     6443          xl* | mpixl* | bgxl*)
    59686444            # IBM XL 8.0 on PPC, with GNU ld
    59696445            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    59856461              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
    59866462              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5987               _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     6463              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    59886464              _LT_TAGVAR(compiler_needs_object, $1)=yes
    59896465
     
    59916467              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
    59926468              # would be better.
    5993               output_verbose_link_cmd='echo'
     6469              output_verbose_link_cmd='func_echo_all'
    59946470
    59956471              # Archives containing C++ object files must be created using
     
    60606536            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    60616537          fi
    6062           output_verbose_link_cmd=echo
     6538          output_verbose_link_cmd=func_echo_all
    60636539        else
    60646540          _LT_TAGVAR(ld_shlibs, $1)=no
     
    60956571              osf3*)
    60966572                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    6097                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6573                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    60986574                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    60996575                ;;
    61006576              *)
    61016577                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    6102                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6578                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    61036579                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    61046580                  echo "-hidden">> $lib.exp~
    6105                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
     6581                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
    61066582                  $RM $lib.exp'
    61076583                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     
    61196595            # from the output so that they don't get included in the library
    61206596            # dependencies.
    6121             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6597            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    61226598            ;;
    61236599          *)
     
    61266602              case $host in
    61276603                osf3*)
    6128                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6604                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    61296605                  ;;
    61306606                *)
    6131                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6607                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    61326608                  ;;
    61336609              esac
     
    61396615              # what "hidden" libraries, object files and flags are used when
    61406616              # linking a shared library.
    6141               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6617              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    61426618
    61436619            else
     
    61756651      solaris*)
    61766652        case $cc_basename in
    6177           CC*)
     6653          CC* | sunCC*)
    61786654            # Sun C++ 4.2, 5.x and Centerline C++
    61796655            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
     
    61966672            _LT_TAGVAR(link_all_deplibs, $1)=yes
    61976673
    6198             output_verbose_link_cmd='echo'
     6674            output_verbose_link_cmd='func_echo_all'
    61996675
    62006676            # Archives containing C++ object files must be created using
     
    62166692              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    62176693              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
    6218                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     6694                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    62196695                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    6220                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6696                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    62216697
    62226698                # Commands to make compiler produce verbose output that lists
    62236699                # what "hidden" libraries, object files and flags are used when
    62246700                # linking a shared library.
    6225                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6701                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62266702              else
    62276703                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     
    62346710                # what "hidden" libraries, object files and flags are used when
    62356711                # linking a shared library.
    6236                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6712                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62376713              fi
    62386714
     
    62886764            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    62896765            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6766            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
     6767              '"$_LT_TAGVAR(old_archive_cmds, $1)"
     6768            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
     6769              '"$_LT_TAGVAR(reload_cmds, $1)"
    62906770            ;;
    62916771          *)
     
    63436823
    63446824  CC=$lt_save_CC
     6825  CFLAGS=$lt_save_CFLAGS
    63456826  LDCXX=$LD
    63466827  LD=$lt_save_LD
     
    63576838
    63586839
     6840# _LT_FUNC_STRIPNAME_CNF
     6841# ----------------------
     6842# func_stripname_cnf prefix suffix name
     6843# strip PREFIX and SUFFIX off of NAME.
     6844# PREFIX and SUFFIX must not contain globbing or regex special
     6845# characters, hashes, percent signs, but SUFFIX may contain a leading
     6846# dot (in which case that matches only a dot).
     6847#
     6848# This function is identical to the (non-XSI) version of func_stripname,
     6849# except this one can be used by m4 code that may be executed by configure,
     6850# rather than the libtool script.
     6851m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
     6852AC_REQUIRE([_LT_DECL_SED])
     6853AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
     6854func_stripname_cnf ()
     6855{
     6856  case ${2} in
     6857  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     6858  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     6859  esac
     6860} # func_stripname_cnf
     6861])# _LT_FUNC_STRIPNAME_CNF
     6862
    63596863# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
    63606864# ---------------------------------
     
    63656869m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
    63666870[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     6871AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
    63676872# Dependencies to place before and after the object being linked:
    63686873_LT_TAGVAR(predep_objects, $1)=
     
    64156920_LT_EOF
    64166921])
     6922
     6923_lt_libdeps_save_CFLAGS=$CFLAGS
     6924case "$CC $CFLAGS " in #(
     6925*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     6926*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     6927esac
     6928
    64176929dnl Parse the compiler output and extract the necessary
    64186930dnl objects, libraries and library flags.
     
    64266938
    64276939  for p in `eval "$output_verbose_link_cmd"`; do
    6428     case $p in
     6940    case ${prev}${p} in
    64296941
    64306942    -L* | -R* | -l*)
     
    64356947         prev=$p
    64366948         continue
    6437        else
    6438          prev=
    64396949       fi
    64406950
     6951       # Expand the sysroot to ease extracting the directories later.
     6952       if test -z "$prev"; then
     6953         case $p in
     6954         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     6955         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     6956         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     6957         esac
     6958       fi
     6959       case $p in
     6960       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     6961       esac
    64416962       if test "$pre_test_object_deps_done" = no; then
    6442          case $p in
    6443          -L* | -R*)
     6963         case ${prev} in
     6964         -L | -R)
    64446965           # Internal compiler library paths should come after those
    64456966           # provided the user.  The postdeps already come after the
     
    64616982         fi
    64626983       fi
     6984       prev=
    64636985       ;;
    64646986
     6987    *.lto.$objext) ;; # Ignore GCC LTO objects
    64656988    *.$objext)
    64666989       # This assumes that the test object file only shows up
     
    64987021
    64997022$RM -f confest.$objext
     7023CFLAGS=$_lt_libdeps_save_CFLAGS
    65007024
    65017025# PORTME: override above test on systems where it is broken
     
    65347058solaris*)
    65357059  case $cc_basename in
    6536   CC*)
     7060  CC* | sunCC*)
    65377061    # The more standards-conforming stlport4 library is
    65387062    # incompatible with the Cstd library. Avoid specifying
     
    65787102
    65797103
    6580 # _LT_PROG_F77
    6581 # ------------
    6582 # Since AC_PROG_F77 is broken, in that it returns the empty string
    6583 # if there is no fortran compiler, we have our own version here.
    6584 m4_defun([_LT_PROG_F77],
    6585 [
    6586 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
    6587 AC_PROG_F77
    6588 if test -z "$F77" || test "X$F77" = "Xno"; then
    6589   _lt_disable_F77=yes
    6590 fi
    6591 popdef([AC_MSG_ERROR])
    6592 ])# _LT_PROG_F77
    6593 
    6594 dnl aclocal-1.4 backwards compatibility:
    6595 dnl AC_DEFUN([_LT_PROG_F77], [])
    6596 
    6597 
    65987104# _LT_LANG_F77_CONFIG([TAG])
    65997105# --------------------------
     
    66027108# to write the compiler configuration to `libtool'.
    66037109m4_defun([_LT_LANG_F77_CONFIG],
    6604 [AC_REQUIRE([_LT_PROG_F77])dnl
    6605 AC_LANG_PUSH(Fortran 77)
     7110[AC_LANG_PUSH(Fortran 77)
     7111if test -z "$F77" || test "X$F77" = "Xno"; then
     7112  _lt_disable_F77=yes
     7113fi
    66067114
    66077115_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    66227130_LT_TAGVAR(link_all_deplibs, $1)=unknown
    66237131_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7132_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7133_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    66247134_LT_TAGVAR(no_undefined_flag, $1)=
    66257135_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    66617171  lt_save_CC="$CC"
    66627172  lt_save_GCC=$GCC
     7173  lt_save_CFLAGS=$CFLAGS
    66637174  CC=${F77-"f77"}
     7175  CFLAGS=$FFLAGS
    66647176  compiler=$CC
    66657177  _LT_TAGVAR(compiler, $1)=$CC
     
    67157227  GCC=$lt_save_GCC
    67167228  CC="$lt_save_CC"
     7229  CFLAGS="$lt_save_CFLAGS"
    67177230fi # test "$_lt_disable_F77" != yes
    67187231
    67197232AC_LANG_POP
    67207233])# _LT_LANG_F77_CONFIG
    6721 
    6722 
    6723 # _LT_PROG_FC
    6724 # -----------
    6725 # Since AC_PROG_FC is broken, in that it returns the empty string
    6726 # if there is no fortran compiler, we have our own version here.
    6727 m4_defun([_LT_PROG_FC],
    6728 [
    6729 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
    6730 AC_PROG_FC
    6731 if test -z "$FC" || test "X$FC" = "Xno"; then
    6732   _lt_disable_FC=yes
    6733 fi
    6734 popdef([AC_MSG_ERROR])
    6735 ])# _LT_PROG_FC
    6736 
    6737 dnl aclocal-1.4 backwards compatibility:
    6738 dnl AC_DEFUN([_LT_PROG_FC], [])
    67397234
    67407235
     
    67457240# to write the compiler configuration to `libtool'.
    67467241m4_defun([_LT_LANG_FC_CONFIG],
    6747 [AC_REQUIRE([_LT_PROG_FC])dnl
    6748 AC_LANG_PUSH(Fortran)
     7242[AC_LANG_PUSH(Fortran)
     7243
     7244if test -z "$FC" || test "X$FC" = "Xno"; then
     7245  _lt_disable_FC=yes
     7246fi
    67497247
    67507248_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    67657263_LT_TAGVAR(link_all_deplibs, $1)=unknown
    67667264_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7265_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7266_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    67677267_LT_TAGVAR(no_undefined_flag, $1)=
    67687268_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    68047304  lt_save_CC="$CC"
    68057305  lt_save_GCC=$GCC
     7306  lt_save_CFLAGS=$CFLAGS
    68067307  CC=${FC-"f95"}
     7308  CFLAGS=$FCFLAGS
    68077309  compiler=$CC
    68087310  GCC=$ac_cv_fc_compiler_gnu
     
    68607362
    68617363  GCC=$lt_save_GCC
    6862   CC="$lt_save_CC"
     7364  CC=$lt_save_CC
     7365  CFLAGS=$lt_save_CFLAGS
    68637366fi # test "$_lt_disable_FC" != yes
    68647367
     
    68977400
    68987401# Allow CC to be a program name with arguments.
    6899 lt_save_CC="$CC"
     7402lt_save_CC=$CC
     7403lt_save_CFLAGS=$CFLAGS
    69007404lt_save_GCC=$GCC
    69017405GCC=yes
    69027406CC=${GCJ-"gcj"}
     7407CFLAGS=$GCJFLAGS
    69037408compiler=$CC
    69047409_LT_TAGVAR(compiler, $1)=$CC
     
    69107415
    69117416_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7417_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7418_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    69127419
    69137420## CAVEAT EMPTOR:
     
    69297436
    69307437GCC=$lt_save_GCC
    6931 CC="$lt_save_CC"
     7438CC=$lt_save_CC
     7439CFLAGS=$lt_save_CFLAGS
    69327440])# _LT_LANG_GCJ_CONFIG
    69337441
     
    69647472# Allow CC to be a program name with arguments.
    69657473lt_save_CC="$CC"
     7474lt_save_CFLAGS=$CFLAGS
    69667475lt_save_GCC=$GCC
    69677476GCC=
    69687477CC=${RC-"windres"}
     7478CFLAGS=
    69697479compiler=$CC
    69707480_LT_TAGVAR(compiler, $1)=$CC
     
    69797489GCC=$lt_save_GCC
    69807490AC_LANG_RESTORE
    6981 CC="$lt_save_CC"
     7491CC=$lt_save_CC
     7492CFLAGS=$lt_save_CFLAGS
    69827493])# _LT_LANG_RC_CONFIG
    69837494
     
    70387549])
    70397550
     7551# _LT_DECL_DLLTOOL
     7552# ----------------
     7553# Ensure DLLTOOL variable is set.
     7554m4_defun([_LT_DECL_DLLTOOL],
     7555[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     7556test -z "$DLLTOOL" && DLLTOOL=dlltool
     7557_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
     7558AC_SUBST([DLLTOOL])
     7559])
    70407560
    70417561# _LT_DECL_SED
     
    71317651xsi_shell=no
    71327652( _lt_dummy="a/b/c"
    7133   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
    7134       = c,a/b,, \
     7653  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     7654      = c,a/b,b/c, \
    71357655    && eval 'test $(( 1 + 1 )) -eq 2 \
    71367656    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     
    71717691
    71727692
    7173 # _LT_PROG_XSI_SHELLFNS
    7174 # ---------------------
    7175 # Bourne and XSI compatible variants of some useful shell functions.
    7176 m4_defun([_LT_PROG_XSI_SHELLFNS],
    7177 [case $xsi_shell in
    7178   yes)
    7179     cat << \_LT_EOF >> "$cfgfile"
    7180 
    7181 # func_dirname file append nondir_replacement
    7182 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7183 # otherwise set result to NONDIR_REPLACEMENT.
    7184 func_dirname ()
    7185 {
    7186   case ${1} in
    7187     */*) func_dirname_result="${1%/*}${2}" ;;
    7188     *  ) func_dirname_result="${3}" ;;
    7189   esac
    7190 }
    7191 
    7192 # func_basename file
    7193 func_basename ()
    7194 {
    7195   func_basename_result="${1##*/}"
    7196 }
    7197 
    7198 # func_dirname_and_basename file append nondir_replacement
    7199 # perform func_basename and func_dirname in a single function
    7200 # call:
    7201 #   dirname:  Compute the dirname of FILE.  If nonempty,
    7202 #             add APPEND to the result, otherwise set result
    7203 #             to NONDIR_REPLACEMENT.
    7204 #             value returned in "$func_dirname_result"
    7205 #   basename: Compute filename of FILE.
    7206 #             value retuned in "$func_basename_result"
    7207 # Implementation must be kept synchronized with func_dirname
    7208 # and func_basename. For efficiency, we do not delegate to
    7209 # those functions but instead duplicate the functionality here.
    7210 func_dirname_and_basename ()
    7211 {
    7212   case ${1} in
    7213     */*) func_dirname_result="${1%/*}${2}" ;;
    7214     *  ) func_dirname_result="${3}" ;;
    7215   esac
    7216   func_basename_result="${1##*/}"
    7217 }
    7218 
    7219 # func_stripname prefix suffix name
    7220 # strip PREFIX and SUFFIX off of NAME.
    7221 # PREFIX and SUFFIX must not contain globbing or regex special
    7222 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7223 # dot (in which case that matches only a dot).
    7224 func_stripname ()
    7225 {
    7226   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
    7227   # positional parameters, so assign one to ordinary parameter first.
    7228   func_stripname_result=${3}
    7229   func_stripname_result=${func_stripname_result#"${1}"}
    7230   func_stripname_result=${func_stripname_result%"${2}"}
    7231 }
    7232 
    7233 # func_opt_split
    7234 func_opt_split ()
    7235 {
    7236   func_opt_split_opt=${1%%=*}
    7237   func_opt_split_arg=${1#*=}
    7238 }
    7239 
    7240 # func_lo2o object
    7241 func_lo2o ()
    7242 {
    7243   case ${1} in
    7244     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    7245     *)    func_lo2o_result=${1} ;;
    7246   esac
    7247 }
    7248 
    7249 # func_xform libobj-or-source
    7250 func_xform ()
    7251 {
    7252   func_xform_result=${1%.*}.lo
    7253 }
    7254 
    7255 # func_arith arithmetic-term...
    7256 func_arith ()
    7257 {
    7258   func_arith_result=$(( $[*] ))
    7259 }
    7260 
    7261 # func_len string
    7262 # STRING may not start with a hyphen.
    7263 func_len ()
    7264 {
    7265   func_len_result=${#1}
    7266 }
    7267 
    7268 _LT_EOF
     7693# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
     7694# ------------------------------------------------------
     7695# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
     7696# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
     7697m4_defun([_LT_PROG_FUNCTION_REPLACE],
     7698[dnl {
     7699sed -e '/^$1 ()$/,/^} # $1 /c\
     7700$1 ()\
     7701{\
     7702m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
     7703} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
     7704  && mv -f "$cfgfile.tmp" "$cfgfile" \
     7705    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7706test 0 -eq $? || _lt_function_replace_fail=:
     7707])
     7708
     7709
     7710# _LT_PROG_REPLACE_SHELLFNS
     7711# -------------------------
     7712# Replace existing portable implementations of several shell functions with
     7713# equivalent extended shell implementations where those features are available..
     7714m4_defun([_LT_PROG_REPLACE_SHELLFNS],
     7715[if test x"$xsi_shell" = xyes; then
     7716  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
     7717    case ${1} in
     7718      */*) func_dirname_result="${1%/*}${2}" ;;
     7719      *  ) func_dirname_result="${3}" ;;
     7720    esac])
     7721
     7722  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
     7723    func_basename_result="${1##*/}"])
     7724
     7725  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
     7726    case ${1} in
     7727      */*) func_dirname_result="${1%/*}${2}" ;;
     7728      *  ) func_dirname_result="${3}" ;;
     7729    esac
     7730    func_basename_result="${1##*/}"])
     7731
     7732  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
     7733    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
     7734    # positional parameters, so assign one to ordinary parameter first.
     7735    func_stripname_result=${3}
     7736    func_stripname_result=${func_stripname_result#"${1}"}
     7737    func_stripname_result=${func_stripname_result%"${2}"}])
     7738
     7739  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
     7740    func_split_long_opt_name=${1%%=*}
     7741    func_split_long_opt_arg=${1#*=}])
     7742
     7743  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
     7744    func_split_short_opt_arg=${1#??}
     7745    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
     7746
     7747  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
     7748    case ${1} in
     7749      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
     7750      *)    func_lo2o_result=${1} ;;
     7751    esac])
     7752
     7753  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
     7754
     7755  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
     7756
     7757  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
     7758fi
     7759
     7760if test x"$lt_shell_append" = xyes; then
     7761  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
     7762
     7763  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
     7764    func_quote_for_eval "${2}"
     7765dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
     7766    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
     7767
     7768  # Save a `func_append' function call where possible by direct use of '+='
     7769  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     7770    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7771      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7772  test 0 -eq $? || _lt_function_replace_fail=:
     7773else
     7774  # Save a `func_append' function call even when '+=' is not available
     7775  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     7776    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7777      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7778  test 0 -eq $? || _lt_function_replace_fail=:
     7779fi
     7780
     7781if test x"$_lt_function_replace_fail" = x":"; then
     7782  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
     7783fi
     7784])
     7785
     7786# _LT_PATH_CONVERSION_FUNCTIONS
     7787# -----------------------------
     7788# Determine which file name conversion functions should be used by
     7789# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
     7790# for certain cross-compile configurations and native mingw.
     7791m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
     7792[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     7793AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     7794AC_MSG_CHECKING([how to convert $build file names to $host format])
     7795AC_CACHE_VAL(lt_cv_to_host_file_cmd,
     7796[case $host in
     7797  *-*-mingw* )
     7798    case $build in
     7799      *-*-mingw* ) # actually msys
     7800        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     7801        ;;
     7802      *-*-cygwin* )
     7803        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     7804        ;;
     7805      * ) # otherwise, assume *nix
     7806        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     7807        ;;
     7808    esac
    72697809    ;;
    7270   *) # Bourne compatible functions.
    7271     cat << \_LT_EOF >> "$cfgfile"
    7272 
    7273 # func_dirname file append nondir_replacement
    7274 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7275 # otherwise set result to NONDIR_REPLACEMENT.
    7276 func_dirname ()
    7277 {
    7278   # Extract subdirectory from the argument.
    7279   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    7280   if test "X$func_dirname_result" = "X${1}"; then
    7281     func_dirname_result="${3}"
    7282   else
    7283     func_dirname_result="$func_dirname_result${2}"
    7284   fi
    7285 }
    7286 
    7287 # func_basename file
    7288 func_basename ()
    7289 {
    7290   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    7291 }
    7292 
    7293 dnl func_dirname_and_basename
    7294 dnl A portable version of this function is already defined in general.m4sh
    7295 dnl so there is no need for it here.
    7296 
    7297 # func_stripname prefix suffix name
    7298 # strip PREFIX and SUFFIX off of NAME.
    7299 # PREFIX and SUFFIX must not contain globbing or regex special
    7300 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7301 # dot (in which case that matches only a dot).
    7302 # func_strip_suffix prefix name
    7303 func_stripname ()
    7304 {
    7305   case ${2} in
    7306     .*) func_stripname_result=`$ECHO "X${3}" \
    7307            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    7308     *)  func_stripname_result=`$ECHO "X${3}" \
    7309            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
    7310   esac
    7311 }
    7312 
    7313 # sed scripts:
    7314 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
    7315 my_sed_long_arg='1s/^-[[^=]]*=//'
    7316 
    7317 # func_opt_split
    7318 func_opt_split ()
    7319 {
    7320   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
    7321   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
    7322 }
    7323 
    7324 # func_lo2o object
    7325 func_lo2o ()
    7326 {
    7327   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
    7328 }
    7329 
    7330 # func_xform libobj-or-source
    7331 func_xform ()
    7332 {
    7333   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
    7334 }
    7335 
    7336 # func_arith arithmetic-term...
    7337 func_arith ()
    7338 {
    7339   func_arith_result=`expr "$[@]"`
    7340 }
    7341 
    7342 # func_len string
    7343 # STRING may not start with a hyphen.
    7344 func_len ()
    7345 {
    7346   func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
    7347 }
    7348 
    7349 _LT_EOF
     7810  *-*-cygwin* )
     7811    case $build in
     7812      *-*-mingw* ) # actually msys
     7813        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     7814        ;;
     7815      *-*-cygwin* )
     7816        lt_cv_to_host_file_cmd=func_convert_file_noop
     7817        ;;
     7818      * ) # otherwise, assume *nix
     7819        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     7820        ;;
     7821    esac
     7822    ;;
     7823  * ) # unhandled hosts (and "normal" native builds)
     7824    lt_cv_to_host_file_cmd=func_convert_file_noop
     7825    ;;
    73507826esac
    7351 
    7352 case $lt_shell_append in
    7353   yes)
    7354     cat << \_LT_EOF >> "$cfgfile"
    7355 
    7356 # func_append var value
    7357 # Append VALUE to the end of shell variable VAR.
    7358 func_append ()
    7359 {
    7360   eval "$[1]+=\$[2]"
    7361 }
    7362 _LT_EOF
     7827])
     7828to_host_file_cmd=$lt_cv_to_host_file_cmd
     7829AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
     7830_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
     7831         [0], [convert $build file names to $host format])dnl
     7832
     7833AC_MSG_CHECKING([how to convert $build file names to toolchain format])
     7834AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
     7835[#assume ordinary cross tools, or native build.
     7836lt_cv_to_tool_file_cmd=func_convert_file_noop
     7837case $host in
     7838  *-*-mingw* )
     7839    case $build in
     7840      *-*-mingw* ) # actually msys
     7841        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     7842        ;;
     7843    esac
    73637844    ;;
    7364   *)
    7365     cat << \_LT_EOF >> "$cfgfile"
    7366 
    7367 # func_append var value
    7368 # Append VALUE to the end of shell variable VAR.
    7369 func_append ()
    7370 {
    7371   eval "$[1]=\$$[1]\$[2]"
    7372 }
    7373 
    7374 _LT_EOF
    7375     ;;
    7376   esac
     7845esac
    73777846])
     7847to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     7848AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
     7849_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
     7850         [0], [convert $build files to toolchain format])dnl
     7851])# _LT_PATH_CONVERSION_FUNCTIONS
  • trunk/FACT++/.macro_dir/ltoptions.m4

    r10183 r12832  
    11# Helper functions for option handling.                    -*- Autoconf -*-
    22#
    3 #   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     3#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     4#   Inc.
    45#   Written by Gary V. Vaughan, 2004
    56#
     
    89# modifications, as long as this notice is preserved.
    910
    10 # serial 6 ltoptions.m4
     11# serial 7 ltoptions.m4
    1112
    1213# This is to help aclocal find these macros, as it can't see m4_define.
     
    126127
    127128case $host in
    128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
     129*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
    129130  AC_CHECK_TOOL(AS, as, false)
    130131  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     
    134135
    135136test -z "$AS" && AS=as
    136 _LT_DECL([], [AS],      [0], [Assembler program])dnl
     137_LT_DECL([], [AS],      [1], [Assembler program])dnl
    137138
    138139test -z "$DLLTOOL" && DLLTOOL=dlltool
    139 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
     140_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
    140141
    141142test -z "$OBJDUMP" && OBJDUMP=objdump
    142 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
     143_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
    143144])# win32-dll
    144145
  • trunk/FACT++/.macro_dir/ltversion.m4

    r10183 r12832  
    88# modifications, as long as this notice is preserved.
    99
    10 # Generated from ltversion.in.
     10# @configure_input@
    1111
    12 # serial 3017 ltversion.m4
     12# serial 3293 ltversion.m4
    1313# This file is part of GNU Libtool
    1414
    15 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
    16 m4_define([LT_PACKAGE_REVISION], [1.3017])
     15m4_define([LT_PACKAGE_VERSION], [2.4])
     16m4_define([LT_PACKAGE_REVISION], [1.3293])
    1717
    1818AC_DEFUN([LTVERSION_VERSION],
    19 [macro_version='2.2.6b'
    20 macro_revision='1.3017'
     19[macro_version='2.4'
     20macro_revision='1.3293'
    2121_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
    2222_LT_DECL(, macro_revision, 0)
  • trunk/FACT++/.macro_dir/lt~obsolete.m4

    r10183 r12832  
    11# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
    22#
    3 #   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
     3#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
    44#   Written by Scott James Remnant, 2004.
    55#
     
    88# modifications, as long as this notice is preserved.
    99
    10 # serial 4 lt~obsolete.m4
     10# serial 5 lt~obsolete.m4
    1111
    1212# These exist entirely to fool aclocal when bootstrapping libtool.
     
    7878m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
    7979m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
    80 m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
    8180m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
    8281m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
     
    9190m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
    9291m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
     92m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
     93m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
     94m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
     95m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
     96m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
     97m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
     98m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
  • trunk/FACT++/Makefile.in

    r12768 r12832  
    104104 configure.lineno config.status.lineno
    105105mkinstalldirs = $(install_sh) -d
    106 CONFIG_CLEAN_FILES =
     106CONFIG_CLEAN_FILES = g++ gcc
    107107CONFIG_CLEAN_VPATH_FILES =
    108108am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     
    186186am_biasctrl_OBJECTS = src/biasctrl.$(OBJEXT) src/PixelMap.$(OBJEXT)
    187187biasctrl_OBJECTS = $(am_biasctrl_OBJECTS)
    188 biasctrl_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    189         libTime.la libTools.la libStateMachine.la libConfiguration.la
     188biasctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     189        libStateMachine.la libTools.la libTime.la libConfiguration.la
    190190am_chatclient_OBJECTS = src/chatclient.$(OBJEXT)
    191191chatclient_OBJECTS = $(am_chatclient_OBJECTS)
    192 chatclient_DEPENDENCIES = libTools.la libStateMachine.la libTime.la \
    193         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     192chatclient_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
     193        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    194194am_chatserv_OBJECTS = src/chatserv.$(OBJEXT)
    195195chatserv_OBJECTS = $(am_chatserv_OBJECTS)
    196 chatserv_DEPENDENCIES = libTools.la libStateMachine.la \
    197         libConfiguration.la libTime.la libDim.la libDim++.la \
     196chatserv_DEPENDENCIES = libStateMachine.la libTools.la \
     197        libConfiguration.la libTime.la libDim++.la libDim.la \
    198198        libDimExtension.la
    199199am__datalogger_SOURCES_DIST = src/datalogger.cc src/LocalControl.h \
     
    203203am_datalogger_OBJECTS = src/datalogger.$(OBJEXT) $(am__objects_1)
    204204datalogger_OBJECTS = $(am_datalogger_OBJECTS)
    205 datalogger_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    206         libTime.la libTools.la libStateMachine.la libConfiguration.la
     205datalogger_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     206        libStateMachine.la libTools.la libTime.la libConfiguration.la
    207207am_dclient5_OBJECTS = src/dclient5.$(OBJEXT)
    208208dclient5_OBJECTS = $(am_dclient5_OBJECTS)
    209 dclient5_DEPENDENCIES = libDim.la libDim++.la libTime.la libTools.la \
    210         libStateMachine.la libConfiguration.la
     209dclient5_DEPENDENCIES = libDim++.la libDim.la libStateMachine.la \
     210        libTime.la libTools.la libConfiguration.la
    211211am_did_OBJECTS = dim/src/did/did-did.$(OBJEXT) \
    212212        dim/src/did/did-dui_util.$(OBJEXT)
     
    215215am_dimctrl_OBJECTS = src/dimctrl.$(OBJEXT) src/RemoteControl.$(OBJEXT)
    216216dimctrl_OBJECTS = $(am_dimctrl_OBJECTS)
    217 dimctrl_DEPENDENCIES = libTools.la libStateMachine.la libTime.la \
    218         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     217dimctrl_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
     218        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    219219am_dns_OBJECTS = src/dns.$(OBJEXT)
    220220dns_OBJECTS = $(am_dns_OBJECTS)
     
    223223        src/HeadersFTM.$(OBJEXT)
    224224drivectrl_OBJECTS = $(am_drivectrl_OBJECTS)
    225 drivectrl_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    226         libTime.la libTools.la libStateMachine.la libConfiguration.la
     225drivectrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     226        libStateMachine.la libTools.la libTime.la libConfiguration.la
    227227am_dserver2_OBJECTS = src/dserver2.$(OBJEXT)
    228228dserver2_OBJECTS = $(am_dserver2_OBJECTS)
     
    254254am__DEPENDENCIES_1 =
    255255fact_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
    256         $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libDim.la \
    257         libDim++.la libDimExtension.la libTools.la libTime.la \
    258         libTools.la libStateMachine.la libConfiguration.la
     256        $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libDim++.la \
     257        libDim.la libDimExtension.la libTools.la libStateMachine.la \
     258        libTime.la libTools.la libConfiguration.la
    259259am_fad_OBJECTS = src/fad.$(OBJEXT) src/HeadersFAD.$(OBJEXT)
    260260fad_OBJECTS = $(am_fad_OBJECTS)
    261 fad_DEPENDENCIES = libTime.la libTools.la libTools.la libDim.la \
    262         libDim++.la libConfiguration.la libDimExtension.la
     261fad_DEPENDENCIES = libTime.la libTools.la libTools.la libDim++.la \
     262        libDim.la libConfiguration.la libDimExtension.la
    263263am__fadctrl_SOURCES_DIST = src/fadctrl.cc src/LocalControl.h \
    264264        src/HeadersFAD.cc src/EventBuilder.c src/EventBuilder.h \
     
    274274        $(am__objects_7)
    275275fadctrl_OBJECTS = $(am_fadctrl_OBJECTS)
    276 fadctrl_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    277         libTime.la libTools.la libStateMachine.la libConfiguration.la
     276fadctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     277        libStateMachine.la libTools.la libTime.la libConfiguration.la
    278278am_feedback_OBJECTS = src/feedback.$(OBJEXT) src/PixelMap.$(OBJEXT)
    279279feedback_OBJECTS = $(am_feedback_OBJECTS)
    280 feedback_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    281         libTime.la libTools.la libStateMachine.la libConfiguration.la
     280feedback_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     281        libStateMachine.la libTools.la libTime.la libConfiguration.la
    282282am_fitsdump_OBJECTS = src/fitsdump.$(OBJEXT)
    283283fitsdump_OBJECTS = $(am_fitsdump_OBJECTS)
     
    289289fitsloader_OBJECTS = $(am_fitsloader_OBJECTS)
    290290fitsloader_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
    291         libDim.la libDim++.la libConfiguration.la
     291        libDim++.la libDim.la libConfiguration.la
    292292am_fsc_OBJECTS = src/fsc.$(OBJEXT)
    293293fsc_OBJECTS = $(am_fsc_OBJECTS)
     
    295295am_fscctrl_OBJECTS = src/fscctrl.$(OBJEXT)
    296296fscctrl_OBJECTS = $(am_fscctrl_OBJECTS)
    297 fscctrl_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    298         libTime.la libTools.la libStateMachine.la libConfiguration.la
     297fscctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     298        libStateMachine.la libTools.la libTime.la libConfiguration.la
    299299am_ftm_OBJECTS = src/ftm.$(OBJEXT) src/HeadersFTM.$(OBJEXT)
    300300ftm_OBJECTS = $(am_ftm_OBJECTS)
    301 ftm_DEPENDENCIES = libTime.la libTools.la libDim.la libDim++.la \
     301ftm_DEPENDENCIES = libTime.la libTools.la libDim++.la libDim.la \
    302302        libConfiguration.la libDimExtension.la
    303303am_ftmctrl_OBJECTS = src/ftmctrl.$(OBJEXT) src/HeadersFTM.$(OBJEXT)
    304304ftmctrl_OBJECTS = $(am_ftmctrl_OBJECTS)
    305 ftmctrl_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    306         libTime.la libTools.la libStateMachine.la libConfiguration.la
     305ftmctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     306        libStateMachine.la libTime.la libTools.la libConfiguration.la
    307307am_log_OBJECTS = src/log.$(OBJEXT)
    308308log_OBJECTS = $(am_log_OBJECTS)
    309 log_DEPENDENCIES = libTime.la libDim.la libDim++.la libTools.la \
    310         libStateMachine.la
     309log_DEPENDENCIES = libDim++.la libDim.la libStateMachine.la libTime.la \
     310        libTools.la
    311311am_logtime_OBJECTS = src/logtime.$(OBJEXT)
    312312logtime_OBJECTS = $(am_logtime_OBJECTS)
    313 logtime_DEPENDENCIES = libTools.la libStateMachine.la libTime.la \
    314         libDim.la libDim++.la
     313logtime_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
     314        libDim++.la libDim.la
    315315am_magicweather_OBJECTS = src/magicweather.$(OBJEXT)
    316316magicweather_OBJECTS = $(am_magicweather_OBJECTS)
    317 magicweather_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    318         libTime.la libTools.la libStateMachine.la libConfiguration.la
     317magicweather_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     318        libStateMachine.la libTools.la libTime.la libConfiguration.la
    319319am_mcp_OBJECTS = src/mcp.$(OBJEXT)
    320320mcp_OBJECTS = $(am_mcp_OBJECTS)
    321 mcp_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la libTime.la \
    322         libTools.la libStateMachine.la libConfiguration.la
     321mcp_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     322        libStateMachine.la libTools.la libTime.la libConfiguration.la
    323323am_ratecontrol_OBJECTS = src/ratecontrol.$(OBJEXT) \
    324324        src/PixelMap.$(OBJEXT)
    325325ratecontrol_OBJECTS = $(am_ratecontrol_OBJECTS)
    326 ratecontrol_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    327         libTime.la libTools.la libStateMachine.la libConfiguration.la
     326ratecontrol_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     327        libStateMachine.la libTools.la libTime.la libConfiguration.la
    328328am_ratescan_OBJECTS = src/ratescan.$(OBJEXT) src/PixelMap.$(OBJEXT)
    329329ratescan_OBJECTS = $(am_ratescan_OBJECTS)
    330 ratescan_DEPENDENCIES = libDim.la libDim++.la libDimExtension.la \
    331         libTime.la libTools.la libStateMachine.la libConfiguration.la
     330ratescan_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \
     331        libStateMachine.la libTools.la libTime.la libConfiguration.la
    332332am_readfits_OBJECTS = src/readfits.$(OBJEXT)
    333333readfits_OBJECTS = $(am_readfits_OBJECTS)
    334334readfits_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
    335         libDim.la libDim++.la libConfiguration.la
     335        libDim++.la libDim.la libConfiguration.la
    336336sched_SOURCES = sched.c
    337337sched_OBJECTS = sched.$(OBJEXT)
     
    340340scheduler_OBJECTS = $(am_scheduler_OBJECTS)
    341341scheduler_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
    342         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     342        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    343343am_test_OBJECTS = src/test.$(OBJEXT)
    344344test_OBJECTS = $(am_test_OBJECTS)
    345 test_DEPENDENCIES = libTools.la libStateMachine.la libTime.la \
    346         libDim.la libDim++.la libConfiguration.la
     345test_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \
     346        libDim++.la libDim.la libConfiguration.la
    347347am_time_OBJECTS = src/time.$(OBJEXT)
    348348time_OBJECTS = $(am_time_OBJECTS)
     
    350350am_triggerschedule_OBJECTS = src/triggerschedule.$(OBJEXT)
    351351triggerschedule_OBJECTS = $(am_triggerschedule_OBJECTS)
    352 triggerschedule_DEPENDENCIES = libDim.la libDim++.la \
     352triggerschedule_DEPENDENCIES = libDim++.la libDim.la \
    353353        libDimExtension.la libConfiguration.la
    354354am__viewer_SOURCES_DIST = gui/RawEventsViewer/viewer.h \
     
    372372viewer_OBJECTS = $(am_viewer_OBJECTS)
    373373viewer_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
    374         libDim.la libDim++.la libDimExtension.la libConfiguration.la \
    375         libTools.la libStateMachine.la libTime.la
     374        libDimExtension.la libConfiguration.la libStateMachine.la \
     375        libTools.la libTime.la libDim++.la libDim.la
    376376viewer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
    377377        $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(viewer_CXXFLAGS) \
     
    500500DEFS = @DEFS@
    501501DEPDIR = @DEPDIR@
     502DLLTOOL = @DLLTOOL@
    502503DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
    503504DSYMUTIL = @DSYMUTIL@
     
    550551LT_HAVE_XP = @LT_HAVE_XP@
    551552MAKEINFO = @MAKEINFO@
     553MANIFEST_TOOL = @MANIFEST_TOOL@
    552554MKDIR_P = @MKDIR_P@
    553555MOC4 = @MOC4@
     
    626628abs_top_builddir = @abs_top_builddir@
    627629abs_top_srcdir = @abs_top_srcdir@
     630ac_ct_AR = @ac_ct_AR@
    628631ac_ct_CC = @ac_ct_CC@
    629632ac_ct_CXX = @ac_ct_CXX@
    630633ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
    631 acx_pthread_config = @acx_pthread_config@
    632634am__include = @am__include@
    633635am__leading_dot = @am__leading_dot@
     
    635637am__tar = @am__tar@
    636638am__untar = @am__untar@
     639ax_pthread_config = @ax_pthread_config@
    637640bindir = @bindir@
    638641build = @build@
     
    660663localedir = @localedir@
    661664localstatedir = @localstatedir@
    662 lt_ECHO = @lt_ECHO@
    663665mandir = @mandir@
    664666mkdir_p = @mkdir_p@
     
    691693AM_LDFLAGS = -module -avoid-version
    692694lib_LTLIBRARIES = \
    693         libDim.la libDim++.la libDimExtension.la libTime.la libTools.la \
    694         libConfiguration.la libStateMachine.la
     695        libDim++.la libDim.la libDimExtension.la \
     696        libConfiguration.la libStateMachine.la libTime.la libTools.la
    695697
    696698#       libAstro.la
     
    824826dserver2_LDADD = libTime.la libTools.la
    825827ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
    826 ftm_LDADD = libTime.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
     828ftm_LDADD = libTime.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
    827829fad_SOURCES = src/fad.cc src/HeadersFAD.cc
    828 fad_LDADD = libTime.la libTools.la libTools.la libDim.la libDim++.la libConfiguration.la libDimExtension.la
     830fad_LDADD = libTime.la libTools.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
    829831fsc_SOURCES = src/fsc.cc
    830832fsc_LDADD = libTime.la libTools.la
    831833log_SOURCES = src/log.cc
    832 log_LDADD = libTime.la libDim.la libDim++.la libTools.la libStateMachine.la
     834log_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la
    833835logtime_SOURCES = src/logtime.cc
    834 logtime_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la
     836logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la
    835837chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
    836 chatserv_LDADD = libTools.la libStateMachine.la libConfiguration.la libTime.la \
    837         libDim.la libDim++.la libDimExtension.la
     838chatserv_LDADD = libStateMachine.la libTools.la libConfiguration.la libTime.la \
     839        libDim++.la libDim.la libDimExtension.la
    838840
    839841dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
    840 dclient5_LDADD = libDim.la libDim++.la libTime.la libTools.la libStateMachine.la \
     842dclient5_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \
    841843    libConfiguration.la
    842844
    843845ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
    844 ftmctrl_LDADD = libDim.la libDim++.la libDimExtension.la \
    845         libTime.la libTools.la libStateMachine.la \
     846ftmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
     847        libStateMachine.la libTime.la libTools.la \
    846848        libConfiguration.la
    847849
    848850drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
    849 drivectrl_LDADD = libDim.la libDim++.la libDimExtension.la \
    850         libTime.la libTools.la libStateMachine.la \
     851drivectrl_LDADD = libDim++.la libDim.la libDimExtension.la \
     852        libStateMachine.la libTools.la libTime.la \
    851853        libConfiguration.la
    852854
    853855magicweather_SOURCES = src/magicweather.cc src/LocalControl.h
    854 magicweather_LDADD = libDim.la libDim++.la libDimExtension.la \
    855         libTime.la libTools.la libStateMachine.la \
     856magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \
     857        libStateMachine.la libTools.la libTime.la \
    856858        libConfiguration.la
    857859
     
    861863        src/DataWriteRaw.cc src/DataWriteRaw.h src/DrsCalib.h \
    862864        $(am__append_5)
    863 fadctrl_LDADD = libDim.la libDim++.la  libDimExtension.la \
    864         libTime.la libTools.la libStateMachine.la \
     865fadctrl_LDADD = libDim++.la libDim.la  libDimExtension.la \
     866        libStateMachine.la libTools.la libTime.la \
    865867        libConfiguration.la
    866868
    867869fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
    868 fscctrl_LDADD = libDim.la libDim++.la  libDimExtension.la \
    869         libTime.la libTools.la libStateMachine.la \
     870fscctrl_LDADD = libDim++.la libDim.la  libDimExtension.la \
     871        libStateMachine.la libTools.la libTime.la \
    870872        libConfiguration.la
    871873
    872874biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h src/PixelMap.cc
    873 biasctrl_LDADD = libDim.la libDim++.la  libDimExtension.la \
    874         libTime.la libTools.la libStateMachine.la \
     875biasctrl_LDADD = libDim++.la libDim.la  libDimExtension.la \
     876        libStateMachine.la libTools.la libTime.la \
    875877        libConfiguration.la
    876878
    877879mcp_SOURCES = src/mcp.cc src/LocalControl.h
    878 mcp_LDADD = libDim.la libDim++.la  libDimExtension.la \
    879         libTime.la libTools.la libStateMachine.la \
     880mcp_LDADD = libDim++.la libDim.la  libDimExtension.la \
     881        libStateMachine.la libTools.la libTime.la \
    880882        libConfiguration.la
    881883
    882884feedback_SOURCES = src/feedback.cc src/LocalControl.h src/PixelMap.cc
    883 feedback_LDADD = libDim.la libDim++.la  libDimExtension.la \
    884         libTime.la libTools.la libStateMachine.la \
     885feedback_LDADD = libDim++.la libDim.la  libDimExtension.la \
     886        libStateMachine.la libTools.la libTime.la \
    885887        libConfiguration.la
    886888
    887889ratescan_SOURCES = src/ratescan.cc src/LocalControl.h src/PixelMap.cc
    888 ratescan_LDADD = libDim.la libDim++.la  libDimExtension.la \
    889         libTime.la libTools.la libStateMachine.la \
     890ratescan_LDADD = libDim++.la libDim.la  libDimExtension.la \
     891        libStateMachine.la libTools.la libTime.la \
    890892        libConfiguration.la
    891893
    892894ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc
    893 ratecontrol_LDADD = libDim.la libDim++.la  libDimExtension.la \
    894         libTime.la libTools.la libStateMachine.la \
     895ratecontrol_LDADD = libDim++.la libDim.la  libDimExtension.la \
     896        libStateMachine.la libTools.la libTime.la \
    895897        libConfiguration.la
    896898
     
    898900argv_LDADD = libConfiguration.la
    899901dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h
    900 dimctrl_LDADD = libTools.la libStateMachine.la libTime.la \
    901         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     902dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \
     903        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    902904
    903905chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
    904 chatclient_LDADD = libTools.la libStateMachine.la libTime.la \
    905         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     906chatclient_LDADD = libStateMachine.la libTools.la libTime.la \
     907        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    906908
    907909time_SOURCES = src/time.cc
     
    911913#astro_LDADD = libAstro.la libTime.la
    912914test_SOURCES = src/test.cc
    913 test_LDADD = libTools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la
     915test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
    914916datalogger_SOURCES = src/datalogger.cc src/LocalControl.h \
    915917        $(am__append_6)
    916 datalogger_LDADD = libDim.la libDim++.la libDimExtension.la \
    917         libTime.la libTools.la libStateMachine.la \
     918datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
     919        libStateMachine.la libTools.la libTime.la \
    918920        libConfiguration.la
    919921
    920922scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
    921923scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
    922         libDim.la libDim++.la libDimExtension.la libConfiguration.la
     924        libDim++.la libDim.la libDimExtension.la libConfiguration.la
    923925
    924926fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
    925 fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
     927fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
    926928fitsdump_SOURCES = src/fitsdump.cc
    927929fitsdump_LDADD = libConfiguration.la libTime.la
    928930readfits_SOURCES = src/readfits.cc src/ReadFits.h
    929 readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
     931readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
    930932triggerschedule_SOURCES = src/triggerschedule.cc
    931 triggerschedule_LDADD = libDim.la libDim++.la libDimExtension.la libConfiguration.la
     933triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la
    932934
    933935#fitsgrep_SOURCES = src/fitsgrep.cc
     
    961963BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
    962964fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
    963         libDim.la libDim++.la libDimExtension.la \
    964         libTools.la libTime.la libTools.la libStateMachine.la \
     965        libDim++.la libDim.la libDimExtension.la \
     966        libTools.la libStateMachine.la libTime.la libTools.la \
    965967        libConfiguration.la
    966968
     
    974976viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow
    975977viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
    976         libDim.la libDim++.la libDimExtension.la \
    977         libConfiguration.la libTools.la libStateMachine.la \
    978         libTime.la
     978        libDimExtension.la \
     979        libConfiguration.la libStateMachine.la libTools.la \
     980        libTime.la libDim++.la libDim.la
    979981
    980982viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
  • trunk/FACT++/aclocal.m4

    r12768 r12832  
    1414m4_ifndef([AC_AUTOCONF_VERSION],
    1515  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
    17 [m4_warning([this file was generated for autoconf 2.67.
     16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
     17[m4_warning([this file was generated for autoconf 2.68.
    1818You have another version of autoconf.  It may work, but is not guaranteed to.
    1919If you have problems, you may need to regenerate the build system entirely.
     
    2121
    2222# ===========================================================================
    23 #              http://autoconf-archive.cryp.to/acx_pthread.html
    24 # ===========================================================================
    25 #
    26 # SYNOPSIS
    27 #
    28 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
    29 #
    30 # DESCRIPTION
    31 #
    32 #   This macro figures out how to build C programs using POSIX threads. It
    33 #   sets the PTHREAD_LIBS output variable to the threads library and linker
    34 #   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
    35 #   flags that are needed. (The user can also force certain compiler
    36 #   flags/libs to be tested by setting these environment variables.)
    37 #
    38 #   Also sets PTHREAD_CC to any special C compiler that is needed for
    39 #   multi-threaded programs (defaults to the value of CC otherwise). (This
    40 #   is necessary on AIX to use the special cc_r compiler alias.)
    41 #
    42 #   NOTE: You are assumed to not only compile your program with these flags,
    43 #   but also link it with them as well. e.g. you should link with
    44 #   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
    45 #
    46 #   If you are only building threads programs, you may wish to use these
    47 #   variables in your default LIBS, CFLAGS, and CC:
    48 #
    49 #          LIBS="$PTHREAD_LIBS $LIBS"
    50 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    51 #          CC="$PTHREAD_CC"
    52 #
    53 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
    54 #   has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
    55 #   (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
    56 #
    57 #   ACTION-IF-FOUND is a list of shell commands to run if a threads library
    58 #   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
    59 #   is not found. If ACTION-IF-FOUND is not specified, the default action
    60 #   will define HAVE_PTHREAD.
    61 #
    62 #   Please let the authors know if this macro fails on any platform, or if
    63 #   you have any other suggestions or comments. This macro was based on work
    64 #   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
    65 #   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
    66 #   Alejandro Forero Cuervo to the autoconf macro repository. We are also
    67 #   grateful for the helpful feedback of numerous users.
    68 #
    69 # LICENSE
    70 #
    71 #   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
    72 #
    73 #   This program is free software: you can redistribute it and/or modify it
    74 #   under the terms of the GNU General Public License as published by the
    75 #   Free Software Foundation, either version 3 of the License, or (at your
    76 #   option) any later version.
    77 #
    78 #   This program is distributed in the hope that it will be useful, but
    79 #   WITHOUT ANY WARRANTY; without even the implied warranty of
    80 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    81 #   Public License for more details.
    82 #
    83 #   You should have received a copy of the GNU General Public License along
    84 #   with this program. If not, see <http://www.gnu.org/licenses/>.
    85 #
    86 #   As a special exception, the respective Autoconf Macro's copyright owner
    87 #   gives unlimited permission to copy, distribute and modify the configure
    88 #   scripts that are the output of Autoconf when processing the Macro. You
    89 #   need not follow the terms of the GNU General Public License when using
    90 #   or distributing such scripts, even though portions of the text of the
    91 #   Macro appear in them. The GNU General Public License (GPL) does govern
    92 #   all other use of the material that constitutes the Autoconf Macro.
    93 #
    94 #   This special exception to the GPL applies to versions of the Autoconf
    95 #   Macro released by the Autoconf Archive. When you make and distribute a
    96 #   modified version of the Autoconf Macro, you may extend this special
    97 #   exception to the GPL to apply to your modified version as well.
    98 
    99 AC_DEFUN([ACX_PTHREAD], [
    100 AC_REQUIRE([AC_CANONICAL_HOST])
    101 AC_LANG_SAVE
    102 AC_LANG_C
    103 acx_pthread_ok=no
    104 
    105 # We used to check for pthread.h first, but this fails if pthread.h
    106 # requires special compiler flags (e.g. on True64 or Sequent).
    107 # It gets checked for in the link test anyway.
    108 
    109 # First of all, check if the user has set any of the PTHREAD_LIBS,
    110 # etcetera environment variables, and if threads linking works using
    111 # them:
    112 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
    113         save_CFLAGS="$CFLAGS"
    114         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    115         save_LIBS="$LIBS"
    116         LIBS="$PTHREAD_LIBS $LIBS"
    117         AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
    118         AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
    119         AC_MSG_RESULT($acx_pthread_ok)
    120         if test x"$acx_pthread_ok" = xno; then
    121                 PTHREAD_LIBS=""
    122                 PTHREAD_CFLAGS=""
    123         fi
    124         LIBS="$save_LIBS"
    125         CFLAGS="$save_CFLAGS"
    126 fi
    127 
    128 # We must check for the threads library under a number of different
    129 # names; the ordering is very important because some systems
    130 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
    131 # libraries is broken (non-POSIX).
    132 
    133 # Create a list of thread flags to try.  Items starting with a "-" are
    134 # C compiler flags, and other items are library names, except for "none"
    135 # which indicates that we try without any flags at all, and "pthread-config"
    136 # which is a program returning the flags for the Pth emulation library.
    137 
    138 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
    139 
    140 # The ordering *is* (sometimes) important.  Some notes on the
    141 # individual items follow:
    142 
    143 # pthreads: AIX (must check this before -lpthread)
    144 # none: in case threads are in libc; should be tried before -Kthread and
    145 #       other compiler flags to prevent continual compiler warnings
    146 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
    147 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
    148 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
    149 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
    150 # -pthreads: Solaris/gcc
    151 # -mthreads: Mingw32/gcc, Lynx/gcc
    152 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
    153 #      doesn't hurt to check since this sometimes defines pthreads too;
    154 #      also defines -D_REENTRANT)
    155 #      ... -mt is also the pthreads flag for HP/aCC
    156 # pthread: Linux, etcetera
    157 # --thread-safe: KAI C++
    158 # pthread-config: use pthread-config program (for GNU Pth library)
    159 
    160 case "${host_cpu}-${host_os}" in
    161         *solaris*)
    162 
    163         # On Solaris (at least, for some versions), libc contains stubbed
    164         # (non-functional) versions of the pthreads routines, so link-based
    165         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
    166         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
    167         # a function called by this macro, so we could check for that, but
    168         # who knows whether they'll stub that too in a future libc.)  So,
    169         # we'll just look for -pthreads and -lpthread first:
    170 
    171         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
    172         ;;
    173 esac
    174 
    175 if test x"$acx_pthread_ok" = xno; then
    176 for flag in $acx_pthread_flags; do
    177 
    178         case $flag in
    179                 none)
    180                 AC_MSG_CHECKING([whether pthreads work without any flags])
    181                 ;;
    182 
    183                 -*)
    184                 AC_MSG_CHECKING([whether pthreads work with $flag])
    185                 PTHREAD_CFLAGS="$flag"
    186                 ;;
    187 
    188                 pthread-config)
    189                 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
    190                 if test x"$acx_pthread_config" = xno; then continue; fi
    191                 PTHREAD_CFLAGS="`pthread-config --cflags`"
    192                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
    193                 ;;
    194 
    195                 *)
    196                 AC_MSG_CHECKING([for the pthreads library -l$flag])
    197                 PTHREAD_LIBS="-l$flag"
    198                 ;;
    199         esac
    200 
    201         save_LIBS="$LIBS"
    202         save_CFLAGS="$CFLAGS"
    203         LIBS="$PTHREAD_LIBS $LIBS"
    204         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    205 
    206         # Check for various functions.  We must include pthread.h,
    207         # since some functions may be macros.  (On the Sequent, we
    208         # need a special flag -Kthread to make this header compile.)
    209         # We check for pthread_join because it is in -lpthread on IRIX
    210         # while pthread_create is in libc.  We check for pthread_attr_init
    211         # due to DEC craziness with -lpthreads.  We check for
    212         # pthread_cleanup_push because it is one of the few pthread
    213         # functions on Solaris that doesn't have a non-functional libc stub.
    214         # We try pthread_create on general principles.
    215         AC_TRY_LINK([#include <pthread.h>],
    216                     [pthread_t th; pthread_join(th, 0);
    217                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    218                      pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
    219                     [acx_pthread_ok=yes])
    220 
    221         LIBS="$save_LIBS"
    222         CFLAGS="$save_CFLAGS"
    223 
    224         AC_MSG_RESULT($acx_pthread_ok)
    225         if test "x$acx_pthread_ok" = xyes; then
    226                 break;
    227         fi
    228 
    229         PTHREAD_LIBS=""
    230         PTHREAD_CFLAGS=""
    231 done
    232 fi
    233 
    234 # Various other checks:
    235 if test "x$acx_pthread_ok" = xyes; then
    236         save_LIBS="$LIBS"
    237         LIBS="$PTHREAD_LIBS $LIBS"
    238         save_CFLAGS="$CFLAGS"
    239         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    240 
    241         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
    242         AC_MSG_CHECKING([for joinable pthread attribute])
    243         attr_name=unknown
    244         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
    245             AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
    246                         [attr_name=$attr; break])
    247         done
    248         AC_MSG_RESULT($attr_name)
    249         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
    250             AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
    251                                [Define to necessary symbol if this constant
    252                                 uses a non-standard name on your system.])
    253         fi
    254 
    255         AC_MSG_CHECKING([if more special flags are required for pthreads])
    256         flag=no
    257         case "${host_cpu}-${host_os}" in
    258             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
    259             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
    260         esac
    261         AC_MSG_RESULT(${flag})
    262         if test "x$flag" != xno; then
    263             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
    264         fi
    265 
    266         LIBS="$save_LIBS"
    267         CFLAGS="$save_CFLAGS"
    268 
    269         # More AIX lossage: must compile with xlc_r or cc_r
    270         if test x"$GCC" != xyes; then
    271           AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
    272         else
    273           PTHREAD_CC=$CC
    274         fi
    275 else
    276         PTHREAD_CC="$CC"
    277 fi
    278 
    279 AC_SUBST(PTHREAD_LIBS)
    280 AC_SUBST(PTHREAD_CFLAGS)
    281 AC_SUBST(PTHREAD_CC)
    282 
    283 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
    284 if test x"$acx_pthread_ok" = xyes; then
    285         ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
    286         :
    287 else
    288         acx_pthread_ok=no
    289         $2
    290 fi
    291 AC_LANG_RESTORE
    292 ])dnl ACX_PTHREAD
    293 
    294 # ===========================================================================
    295 #             http://autoconf-archive.cryp.to/ax_boost_asio.html
     23#       http://www.gnu.org/software/autoconf-archive/ax_boost_asio.html
    29624# ===========================================================================
    29725#
     
    32149#   Copying and distribution of this file, with or without modification, are
    32250#   permitted in any medium without royalty provided the copyright notice
    323 #   and this notice are preserved.
     51#   and this notice are preserved. This file is offered as-is, without any
     52#   warranty.
     53
     54#serial 13
    32455
    32556AC_DEFUN([AX_BOOST_ASIO],
     
    33768        else
    33869                    want_boost="yes"
    339                 ax_boost_user_asio_lib="$withval"
     70                ax_boost_user_asio_lib="$withval"
    34071                fi
    34172        ],
     
    35687                                           ax_cv_boost_asio,
    35788        [AC_LANG_PUSH([C++])
    358                  AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ @%:@include <boost/asio.hpp>
     89                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @%:@include <boost/asio.hpp>
    35990                                                                                        ]],
    36091                                  [[
     
    36697                                    io.run_one();
    36798                                                                        return 0;
    368                                    ]]),
     99                                   ]])],
    369100                             ax_cv_boost_asio=yes, ax_cv_boost_asio=no)
    370101         AC_LANG_POP([C++])
     
    379110                                    AC_CHECK_LIB($ax_lib, main, [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_thread="yes" break],
    380111                                 [link_thread="no"])
    381                                 done
     112                                done
    382113            else
    383114               for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
     
    388119
    389120            fi
     121            if test "x$ax_lib" = "x"; then
     122                AC_MSG_ERROR(Could not find a version of the library!)
     123            fi
    390124                        if test "x$link_asio" = "xno"; then
    391125                                AC_MSG_ERROR(Could not link against $ax_lib !)
     
    394128
    395129                CPPFLAGS="$CPPFLAGS_SAVED"
    396         LDFLAGS="$LDFLAGS_SAVED"
     130        LDFLAGS="$LDFLAGS_SAVED"
    397131        fi
    398132])
    399133
    400134# ===========================================================================
    401 #             http://autoconf-archive.cryp.to/ax_boost_base.html
     135#       http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
    402136# ===========================================================================
    403137#
    404138# SYNOPSIS
    405139#
    406 #   AX_BOOST_BASE([MINIMUM-VERSION])
     140#   AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
    407141#
    408142# DESCRIPTION
     
    426160#
    427161#   Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
     162#   Copyright (c) 2009 Peter Adolphs
    428163#
    429164#   Copying and distribution of this file, with or without modification, are
    430165#   permitted in any medium without royalty provided the copyright notice
    431 #   and this notice are preserved.
     166#   and this notice are preserved. This file is offered as-is, without any
     167#   warranty.
     168
     169#serial 20
    432170
    433171AC_DEFUN([AX_BOOST_BASE],
    434172[
    435173AC_ARG_WITH([boost],
    436         AS_HELP_STRING([--with-boost@<:@=DIR@:>@], [use boost (default is yes) - it is possible to specify the root directory for boost (optional)]),
    437         [
     174  [AS_HELP_STRING([--with-boost@<:@=ARG@:>@],
     175    [use Boost library from a standard location (ARG=yes),
     176     from the specified location (ARG=<path>),
     177     or disable it (ARG=no)
     178     @<:@ARG=yes@:>@ ])],
     179    [
    438180    if test "$withval" = "no"; then
    439                 want_boost="no"
     181        want_boost="no"
    440182    elif test "$withval" = "yes"; then
    441183        want_boost="yes"
    442184        ac_boost_path=""
    443185    else
    444             want_boost="yes"
     186        want_boost="yes"
    445187        ac_boost_path="$withval"
    446         fi
     188    fi
    447189    ],
    448190    [want_boost="yes"])
     
    451193AC_ARG_WITH([boost-libdir],
    452194        AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
    453         [Force given directory for boost libraries. Note that this will overwrite library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
     195        [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
    454196        [
    455         if test -d $withval
     197        if test -d "$withval"
    456198        then
    457199                ac_boost_lib_path="$withval"
     
    464206
    465207if test "x$want_boost" = "xyes"; then
    466         boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
    467         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
    468         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
    469         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
    470         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
    471         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
    472                 boost_lib_version_req_sub_minor="0"
    473         fi
    474         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
    475         AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)
    476         succeeded=no
    477 
    478         dnl first we check the system location for boost libraries
    479         dnl this location ist chosen if boost libraries are installed with the --layout=system option
    480         dnl or if you install boost with RPM
    481         if test "$ac_boost_path" != ""; then
    482                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
    483                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
    484         else
    485                 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
    486                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
    487                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
    488                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
    489                                 break;
    490                         fi
    491                 done
    492         fi
     208    boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
     209    boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
     210    boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
     211    boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
     212    boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
     213    if test "x$boost_lib_version_req_sub_minor" = "x" ; then
     214        boost_lib_version_req_sub_minor="0"
     215        fi
     216    WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
     217    AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)
     218    succeeded=no
     219
     220    dnl On 64-bit systems check for system libraries in both lib64 and lib.
     221    dnl The former is specified by FHS, but e.g. Debian does not adhere to
     222    dnl this (as it rises problems for generic multi-arch support).
     223    dnl The last entry in the list is chosen by default when no libraries
     224    dnl are found, e.g. when only header-only libraries are installed!
     225    libsubdirs="lib"
     226    ax_arch=`uname -m`
     227    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
     228        libsubdirs="lib64 lib lib64"
     229    fi
     230
     231    dnl first we check the system location for boost libraries
     232    dnl this location ist chosen if boost libraries are installed with the --layout=system option
     233    dnl or if you install boost with RPM
     234    if test "$ac_boost_path" != ""; then
     235        BOOST_CPPFLAGS="-I$ac_boost_path/include"
     236        for ac_boost_path_tmp in $libsubdirs; do
     237                if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
     238                        BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
     239                        break
     240                fi
     241        done
     242    elif test "$cross_compiling" != yes; then
     243        for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
     244            if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
     245                for libsubdir in $libsubdirs ; do
     246                    if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     247                done
     248                BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
     249                BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
     250                break;
     251            fi
     252        done
     253    fi
    493254
    494255    dnl overwrite ld flags if we have required special directory with
     
    498259    fi
    499260
    500         CPPFLAGS_SAVED="$CPPFLAGS"
    501         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
    502         export CPPFLAGS
    503 
    504         LDFLAGS_SAVED="$LDFLAGS"
    505         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
    506         export LDFLAGS
    507 
    508         AC_LANG_PUSH(C++)
    509         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
    510         @%:@include <boost/version.hpp>
    511         ]], [[
    512         #if BOOST_VERSION >= $WANT_BOOST_VERSION
    513         // Everything is okay
    514         #else
    515         #  error Boost version is too old
    516         #endif
    517         ]])],[
     261    CPPFLAGS_SAVED="$CPPFLAGS"
     262    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
     263    export CPPFLAGS
     264
     265    LDFLAGS_SAVED="$LDFLAGS"
     266    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
     267    export LDFLAGS
     268
     269    AC_REQUIRE([AC_PROG_CXX])
     270    AC_LANG_PUSH(C++)
     271        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
     272    @%:@include <boost/version.hpp>
     273    ]], [[
     274    #if BOOST_VERSION >= $WANT_BOOST_VERSION
     275    // Everything is okay
     276    #else
     277    #  error Boost version is too old
     278    #endif
     279    ]])],[
    518280        AC_MSG_RESULT(yes)
    519         succeeded=yes
    520         found_system=yes
    521         ],[
    522         ])
    523         AC_LANG_POP([C++])
    524 
    525 
    526 
    527         dnl if we found no boost with system layout we search for boost libraries
    528         dnl built and installed without the --layout=system option or for a staged(not installed) version
    529         if test "x$succeeded" != "xyes"; then
    530                 _version=0
    531                 if test "$ac_boost_path" != ""; then
    532                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
    533                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
    534                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
    535                                         V_CHECK=`expr $_version_tmp \> $_version`
    536                                         if test "$V_CHECK" = "1" ; then
    537                                                 _version=$_version_tmp
    538                                         fi
    539                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
    540                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
    541                                 done
    542                         fi
    543                 else
    544                         for ac_boost_path in /usr /usr/local /opt /opt/local ; do
    545                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
    546                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
    547                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
    548                                                 V_CHECK=`expr $_version_tmp \> $_version`
    549                                                 if test "$V_CHECK" = "1" ; then
    550                                                         _version=$_version_tmp
    551                                                         best_path=$ac_boost_path
    552                                                 fi
    553                                         done
    554                                 fi
    555                         done
    556 
    557                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
    558                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
    559             if test "$ac_boost_lib_path" = ""
    560             then
    561                BOOST_LDFLAGS="-L$best_path/lib"
     281    succeeded=yes
     282    found_system=yes
     283        ],[
     284        ])
     285    AC_LANG_POP([C++])
     286
     287
     288
     289    dnl if we found no boost with system layout we search for boost libraries
     290    dnl built and installed without the --layout=system option or for a staged(not installed) version
     291    if test "x$succeeded" != "xyes"; then
     292        _version=0
     293        if test "$ac_boost_path" != ""; then
     294            if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
     295                for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
     296                    _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
     297                    V_CHECK=`expr $_version_tmp \> $_version`
     298                    if test "$V_CHECK" = "1" ; then
     299                        _version=$_version_tmp
     300                    fi
     301                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
     302                    BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
     303                done
    562304            fi
    563 
    564                         if test "x$BOOST_ROOT" != "x"; then
    565                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
    566                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
    567                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
    568                                         stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
    569                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
     305        else
     306            if test "$cross_compiling" != yes; then
     307                for ac_boost_path in /usr /usr/local /opt /opt/local ; do
     308                    if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
     309                        for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
     310                            _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
     311                            V_CHECK=`expr $_version_tmp \> $_version`
     312                            if test "$V_CHECK" = "1" ; then
     313                                _version=$_version_tmp
     314                                best_path=$ac_boost_path
     315                            fi
     316                        done
     317                    fi
     318                done
     319
     320                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
     321                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
     322                if test "$ac_boost_lib_path" = ""; then
     323                    for libsubdir in $libsubdirs ; do
     324                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     325                    done
     326                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
     327                fi
     328            fi
     329
     330            if test "x$BOOST_ROOT" != "x"; then
     331                for libsubdir in $libsubdirs ; do
     332                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     333                done
     334                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
     335                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
     336                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
     337                        stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
     338                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
    570339                    if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
    571                                                 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
    572                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
    573                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
    574                                         fi
    575                                 fi
    576                         fi
    577                 fi
    578 
    579                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
    580                 export CPPFLAGS
    581                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
    582                 export LDFLAGS
    583 
    584                 AC_LANG_PUSH(C++)
    585                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
    586                 @%:@include <boost/version.hpp>
    587                 ]], [[
    588                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
    589                 // Everything is okay
    590                 #else
    591                 #  error Boost version is too old
    592                 #endif
    593                 ]])],[
    594                 AC_MSG_RESULT(yes)
    595                 succeeded=yes
    596                 found_system=yes
    597                 ],[
    598                 ])
    599                 AC_LANG_POP([C++])
    600         fi
    601 
    602         if test "$succeeded" != "yes" ; then
    603                 if test "$_version" = "0" ; then
    604                         AC_MSG_ERROR([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
    605                 else
    606                         AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
    607                 fi
    608         else
    609                 AC_SUBST(BOOST_CPPFLAGS)
    610                 AC_SUBST(BOOST_LDFLAGS)
    611                 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
    612         fi
    613 
    614         CPPFLAGS="$CPPFLAGS_SAVED"
    615         LDFLAGS="$LDFLAGS_SAVED"
     340                        AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
     341                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
     342                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
     343                    fi
     344                fi
     345            fi
     346        fi
     347
     348        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
     349        export CPPFLAGS
     350        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
     351        export LDFLAGS
     352
     353        AC_LANG_PUSH(C++)
     354            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
     355        @%:@include <boost/version.hpp>
     356        ]], [[
     357        #if BOOST_VERSION >= $WANT_BOOST_VERSION
     358        // Everything is okay
     359        #else
     360        #  error Boost version is too old
     361        #endif
     362        ]])],[
     363            AC_MSG_RESULT(yes)
     364        succeeded=yes
     365        found_system=yes
     366            ],[
     367            ])
     368        AC_LANG_POP([C++])
     369    fi
     370
     371    if test "$succeeded" != "yes" ; then
     372        if test "$_version" = "0" ; then
     373            AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
     374        else
     375            AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
     376        fi
     377        # execute ACTION-IF-NOT-FOUND (if present):
     378        ifelse([$3], , :, [$3])
     379    else
     380        AC_SUBST(BOOST_CPPFLAGS)
     381        AC_SUBST(BOOST_LDFLAGS)
     382        AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
     383        # execute ACTION-IF-FOUND (if present):
     384        ifelse([$2], , :, [$2])
     385    fi
     386
     387    CPPFLAGS="$CPPFLAGS_SAVED"
     388    LDFLAGS="$LDFLAGS_SAVED"
    616389fi
    617390
     
    619392
    620393# ===========================================================================
    621 #           http://autoconf-archive.cryp.to/ax_boost_date_time.html
     394#    http://www.gnu.org/software/autoconf-archive/ax_boost_date_time.html
    622395# ===========================================================================
    623396#
     
    647420#   Copying and distribution of this file, with or without modification, are
    648421#   permitted in any medium without royalty provided the copyright notice
    649 #   and this notice are preserved.
     422#   and this notice are preserved. This file is offered as-is, without any
     423#   warranty.
     424
     425#serial 19
    650426
    651427AC_DEFUN([AX_BOOST_DATE_TIME],
     
    663439        else
    664440                    want_boost="yes"
    665                 ax_boost_user_date_time_lib="$withval"
     441                ax_boost_user_date_time_lib="$withval"
    666442                fi
    667443        ],
     
    682458                                           ax_cv_boost_date_time,
    683459        [AC_LANG_PUSH([C++])
    684                  AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]],
     460                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]],
    685461                                   [[using namespace boost::gregorian; date d(2002,Jan,10);
    686462                                     return 0;
    687                                    ]]),
     463                                   ]])],
    688464         ax_cv_boost_date_time=yes, ax_cv_boost_date_time=no)
    689465         AC_LANG_POP([C++])
     
    693469            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    694470            if test "x$ax_boost_user_date_time_lib" = "x"; then
    695                 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
     471                for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
    696472                     ax_lib=${libextension}
    697473                                    AC_CHECK_LIB($ax_lib, exit,
    698474                                 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break],
    699475                                 [link_date_time="no"])
    700                                 done
     476                                done
    701477                if test "x$link_date_time" != "xyes"; then
    702478                for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do
     
    705481                                 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break],
    706482                                 [link_date_time="no"])
    707                                 done
     483                                done
    708484                fi
    709485
     
    716492
    717493            fi
     494            if test "x$ax_lib" = "x"; then
     495                AC_MSG_ERROR(Could not find a version of the library!)
     496            fi
    718497                        if test "x$link_date_time" != "xyes"; then
    719498                                AC_MSG_ERROR(Could not link against $ax_lib !)
     
    722501
    723502                CPPFLAGS="$CPPFLAGS_SAVED"
    724         LDFLAGS="$LDFLAGS_SAVED"
     503        LDFLAGS="$LDFLAGS_SAVED"
    725504        fi
    726505])
    727506
    728507# ===========================================================================
    729 #          http://autoconf-archive.cryp.to/ax_boost_filesystem.html
     508#    http://www.gnu.org/software/autoconf-archive/ax_boost_filesystem.html
    730509# ===========================================================================
    731510#
     
    756535#   Copying and distribution of this file, with or without modification, are
    757536#   permitted in any medium without royalty provided the copyright notice
    758 #   and this notice are preserved.
     537#   and this notice are preserved. This file is offered as-is, without any
     538#   warranty.
     539
     540#serial 22
    759541
    760542AC_DEFUN([AX_BOOST_FILESYSTEM],
     
    772554        else
    773555                    want_boost="yes"
    774                 ax_boost_user_filesystem_lib="$withval"
     556                ax_boost_user_filesystem_lib="$withval"
    775557                fi
    776558        ],
     
    795577                                           ax_cv_boost_filesystem,
    796578        [AC_LANG_PUSH([C++])
    797          AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]],
     579         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]],
    798580                                   [[using namespace boost::filesystem;
    799581                                   path my_path( "foo/bar/data.txt" );
    800                                    return 0;]]),
    801                                                ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no)
     582                                   return 0;]])],
     583                                               ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no)
    802584         AC_LANG_POP([C++])
    803585                ])
     
    806588            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    807589            if test "x$ax_boost_user_filesystem_lib" = "x"; then
    808                 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
     590                for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
    809591                     ax_lib=${libextension}
    810592                                    AC_CHECK_LIB($ax_lib, exit,
    811593                                 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
    812594                                 [link_filesystem="no"])
    813                                 done
    814                 if test "x$link_program_options" != "xyes"; then
     595                                done
     596                if test "x$link_filesystem" != "xyes"; then
    815597                for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
    816598                     ax_lib=${libextension}
     
    818600                                 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
    819601                                 [link_filesystem="no"])
    820                                 done
    821                     fi
     602                                done
     603                    fi
    822604            else
    823605               for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
     
    828610
    829611            fi
     612            if test "x$ax_lib" = "x"; then
     613                AC_MSG_ERROR(Could not find a version of the library!)
     614            fi
    830615                        if test "x$link_filesystem" != "xyes"; then
    831616                                AC_MSG_ERROR(Could not link against $ax_lib !)
     
    834619
    835620                CPPFLAGS="$CPPFLAGS_SAVED"
    836                 LDFLAGS="$LDFLAGS_SAVED"
     621                LDFLAGS="$LDFLAGS_SAVED"
    837622                LIBS="$LIBS_SAVED"
    838623        fi
    839624])
    840625
    841 # ===========================================================================
    842       http://autoconf-archive.cryp.to/ax_boost_program_options.html
    843 # ===========================================================================
     626# ============================================================================
     627http://www.gnu.org/software/autoconf-archive/ax_boost_program_options.html
     628# ============================================================================
    844629#
    845630# SYNOPSIS
     
    867652#   Copying and distribution of this file, with or without modification, are
    868653#   permitted in any medium without royalty provided the copyright notice
    869 #   and this notice are preserved.
     654#   and this notice are preserved. This file is offered as-is, without any
     655#   warranty.
     656
     657#serial 20
    870658
    871659AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
     
    883671        else
    884672                    want_boost="yes"
    885                 ax_boost_user_program_options_lib="$withval"
     673                ax_boost_user_program_options_lib="$withval"
    886674                fi
    887675        ],
     
    901689                                           ax_cv_boost_program_options,
    902690                                           [AC_LANG_PUSH(C++)
    903                                 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>
     691                                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>
    904692                                                          ]],
    905693                                  [[boost::program_options::options_description generic("Generic options");
    906                                    return 0;]]),
     694                                   return 0;]])],
    907695                           ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no)
    908                                         AC_LANG_POP([C++])
     696                                        AC_LANG_POP([C++])
    909697                ])
    910698                if test "$ax_cv_boost_program_options" = yes; then
     
    917705                                 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break],
    918706                                 [link_program_options="no"])
    919                                 done
     707                                done
    920708                if test "x$link_program_options" != "xyes"; then
    921709                for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
     
    924712                                 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break],
    925713                                 [link_program_options="no"])
    926                                 done
     714                                done
    927715                fi
    928716                else
     
    933721                  done
    934722                fi
     723            if test "x$ax_lib" = "x"; then
     724                AC_MSG_ERROR(Could not find a version of the library!)
     725            fi
    935726                                if test "x$link_program_options" != "xyes"; then
    936727                                        AC_MSG_ERROR([Could not link against [$ax_lib] !])
     
    938729                fi
    939730                CPPFLAGS="$CPPFLAGS_SAVED"
    940         LDFLAGS="$LDFLAGS_SAVED"
     731        LDFLAGS="$LDFLAGS_SAVED"
    941732        fi
    942733])
    943734
    944735# ===========================================================================
    945 #             http://autoconf-archive.cryp.to/ax_boost_regex.html
     736#      http://www.gnu.org/software/autoconf-archive/ax_boost_regex.html
    946737# ===========================================================================
    947738#
     
    971762#   Copying and distribution of this file, with or without modification, are
    972763#   permitted in any medium without royalty provided the copyright notice
    973 #   and this notice are preserved.
     764#   and this notice are preserved. This file is offered as-is, without any
     765#   warranty.
     766
     767#serial 20
    974768
    975769AC_DEFUN([AX_BOOST_REGEX],
     
    987781        else
    988782                    want_boost="yes"
    989                 ax_boost_user_regex_lib="$withval"
     783                ax_boost_user_regex_lib="$withval"
    990784                fi
    991785        ],
     
    1006800                                           ax_cv_boost_regex,
    1007801        [AC_LANG_PUSH([C++])
    1008                          AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp>
     802                         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp>
    1009803                                                                                                ]],
    1010                                    [[boost::regex r(); return 0;]]),
     804                                   [[boost::regex r(); return 0;]])],
    1011805                   ax_cv_boost_regex=yes, ax_cv_boost_regex=no)
    1012806         AC_LANG_POP([C++])
     
    1016810            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
    1017811            if test "x$ax_boost_user_regex_lib" = "x"; then
    1018                 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
     812                for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
    1019813                     ax_lib=${libextension}
    1020814                                    AC_CHECK_LIB($ax_lib, exit,
    1021815                                 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],
    1022816                                 [link_regex="no"])
    1023                                 done
     817                                done
    1024818                if test "x$link_regex" != "xyes"; then
    1025819                for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do
     
    1028822                                 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],
    1029823                                 [link_regex="no"])
    1030                                 done
     824                                done
    1031825                fi
    1032826
     
    1038832               done
    1039833            fi
     834            if test "x$ax_lib" = "x"; then
     835                AC_MSG_ERROR(Could not find a version of the Boost::Regex library!)
     836            fi
    1040837                        if test "x$link_regex" != "xyes"; then
    1041838                                AC_MSG_ERROR(Could not link against $ax_lib !)
     
    1044841
    1045842                CPPFLAGS="$CPPFLAGS_SAVED"
    1046         LDFLAGS="$LDFLAGS_SAVED"
     843        LDFLAGS="$LDFLAGS_SAVED"
    1047844        fi
    1048845])
    1049846
    1050847# ===========================================================================
    1051 #            http://autoconf-archive.cryp.to/ax_boost_system.html
     848#      http://www.gnu.org/software/autoconf-archive/ax_boost_system.html
    1052849# ===========================================================================
    1053850#
     
    1078875#   Copying and distribution of this file, with or without modification, are
    1079876#   permitted in any medium without royalty provided the copyright notice
    1080 #   and this notice are preserved.
     877#   and this notice are preserved. This file is offered as-is, without any
     878#   warranty.
     879
     880#serial 14
    1081881
    1082882AC_DEFUN([AX_BOOST_SYSTEM],
     
    1094894        else
    1095895                    want_boost="yes"
    1096                 ax_boost_user_system_lib="$withval"
     896                ax_boost_user_system_lib="$withval"
    1097897                fi
    1098898        ],
     
    1116916                         CXXFLAGS_SAVE=$CXXFLAGS
    1117917
    1118                          AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]],
    1119                                    [[boost::system::system_category]]),
     918                         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]],
     919                                   [[boost::system::system_category]])],
    1120920                   ax_cv_boost_system=yes, ax_cv_boost_system=no)
    1121921                         CXXFLAGS=$CXXFLAGS_SAVE
     
    1130930                        LDFLAGS_SAVE=$LDFLAGS
    1131931            if test "x$ax_boost_user_system_lib" = "x"; then
    1132                 for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
     932                for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
    1133933                     ax_lib=${libextension}
    1134934                                    AC_CHECK_LIB($ax_lib, exit,
    1135935                                 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
    1136936                                 [link_system="no"])
    1137                                 done
     937                                done
    1138938                if test "x$link_system" != "xyes"; then
    1139939                for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
     
    1142942                                 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
    1143943                                 [link_system="no"])
    1144                                 done
     944                                done
    1145945                fi
    1146946
     
    1153953
    1154954            fi
     955            if test "x$ax_lib" = "x"; then
     956                AC_MSG_ERROR(Could not find a version of the library!)
     957            fi
    1155958                        if test "x$link_system" = "xno"; then
    1156959                                AC_MSG_ERROR(Could not link against $ax_lib !)
     
    1159962
    1160963                CPPFLAGS="$CPPFLAGS_SAVED"
    1161         LDFLAGS="$LDFLAGS_SAVED"
     964        LDFLAGS="$LDFLAGS_SAVED"
    1162965        fi
    1163966])
    1164967
    1165968# ===========================================================================
    1166 #            http://autoconf-archive.cryp.to/ax_boost_thread.html
     969#      http://www.gnu.org/software/autoconf-archive/ax_boost_thread.html
    1167970# ===========================================================================
    1168971#
     
    1192995#   Copying and distribution of this file, with or without modification, are
    1193996#   permitted in any medium without royalty provided the copyright notice
    1194 #   and this notice are preserved.
     997#   and this notice are preserved. This file is offered as-is, without any
     998#   warranty.
     999
     1000#serial 23
    11951001
    11961002AC_DEFUN([AX_BOOST_THREAD],
     
    12081014        else
    12091015                    want_boost="yes"
    1210                 ax_boost_user_thread_lib="$withval"
     1016                ax_boost_user_thread_lib="$withval"
    12111017                fi
    12121018        ],
     
    12301036                         CXXFLAGS_SAVE=$CXXFLAGS
    12311037
    1232                          if test "x$build_os" = "xsolaris" ; then
    1233                                  CXXFLAGS="-pthreads $CXXFLAGS"
    1234                          elif test "x$build_os" = "xming32" ; then
     1038                         if test "x$host_os" = "xsolaris" ; then
     1039                                 CXXFLAGS="-pthreads $CXXFLAGS"
     1040                         elif test "x$host_os" = "xmingw32" ; then
    12351041                                 CXXFLAGS="-mthreads $CXXFLAGS"
    12361042                         else
    12371043                                CXXFLAGS="-pthread $CXXFLAGS"
    12381044                         fi
    1239                          AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
     1045                         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
    12401046                                   [[boost::thread_group thrds;
    1241                                    return 0;]]),
     1047                                   return 0;]])],
    12421048                   ax_cv_boost_thread=yes, ax_cv_boost_thread=no)
    12431049                         CXXFLAGS=$CXXFLAGS_SAVE
     
    12451051                ])
    12461052                if test "x$ax_cv_boost_thread" = "xyes"; then
    1247            if test "x$build_os" = "xsolaris" ; then
     1053           if test "x$host_os" = "xsolaris" ; then
    12481054                          BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
    1249                    elif test "x$build_os" = "xming32" ; then
     1055                   elif test "x$host_os" = "xmingw32" ; then
    12501056                          BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
    12511057                   else
     
    12591065
    12601066                        LDFLAGS_SAVE=$LDFLAGS
    1261                         case "x$build_os" in
     1067                        case "x$host_os" in
    12621068                          *bsd* )
    12631069                               LDFLAGS="-pthread $LDFLAGS"
     
    12711077                                 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
    12721078                                 [link_thread="no"])
    1273                                 done
     1079                                done
    12741080                if test "x$link_thread" != "xyes"; then
    12751081                for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
     
    12781084                                 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
    12791085                                 [link_thread="no"])
    1280                                 done
     1086                                done
    12811087                fi
    12821088
     
    12891095
    12901096            fi
     1097            if test "x$ax_lib" = "x"; then
     1098                AC_MSG_ERROR(Could not find a version of the library!)
     1099            fi
    12911100                        if test "x$link_thread" = "xno"; then
    12921101                                AC_MSG_ERROR(Could not link against $ax_lib !)
    12931102                        else
    1294                            case "x$build_os" in
     1103                           case "x$host_os" in
    12951104                              *bsd* )
    1296                                 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
     1105                                BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
    12971106                              break;
    12981107                              ;;
     
    13031112
    13041113                CPPFLAGS="$CPPFLAGS_SAVED"
    1305         LDFLAGS="$LDFLAGS_SAVED"
     1114        LDFLAGS="$LDFLAGS_SAVED"
    13061115        fi
    13071116])
    13081117
    13091118# ===========================================================================
    1310 #            http://autoconf-archive.cryp.to/ax_prog_doxygen.html
     1119#      http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
    13111120# ===========================================================================
    13121121#
     
    14701279#
    14711280#     @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
    1472 #         cd @DX_DOCDIR@/latex; \
    1473 #         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
    1474 #         $(DX_LATEX) refman.tex; \
    1475 #         $(MAKEINDEX_PATH) refman.idx; \
    1476 #         $(DX_LATEX) refman.tex; \
    1477 #         countdown=5; \
    1478 #         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
    1479 #                           refman.log > /dev/null 2>&1 \
    1480 #            && test $$countdown -gt 0; do \
    1481 #             $(DX_LATEX) refman.tex; \
    1482 #             countdown=`expr $$countdown - 1`; \
    1483 #         done; \
    1484 #         $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
     1281#         cd @DX_DOCDIR@/latex; \
     1282#         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
     1283#         $(DX_LATEX) refman.tex; \
     1284#         $(MAKEINDEX_PATH) refman.idx; \
     1285#         $(DX_LATEX) refman.tex; \
     1286#         countdown=5; \
     1287#         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
     1288#                           refman.log > /dev/null 2>&1 \
     1289#            && test $$countdown -gt 0; do \
     1290#             $(DX_LATEX) refman.tex; \
     1291#             countdown=`expr $$countdown - 1`; \
     1292#         done; \
     1293#         $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
    14851294#
    14861295#     endif DX_COND_ps
     
    14991308#
    15001309#     @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
    1501 #         cd @DX_DOCDIR@/latex; \
    1502 #         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
    1503 #         $(DX_PDFLATEX) refman.tex; \
    1504 #         $(DX_MAKEINDEX) refman.idx; \
    1505 #         $(DX_PDFLATEX) refman.tex; \
    1506 #         countdown=5; \
    1507 #         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
    1508 #                           refman.log > /dev/null 2>&1 \
    1509 #            && test $$countdown -gt 0; do \
    1510 #             $(DX_PDFLATEX) refman.tex; \
    1511 #             countdown=`expr $$countdown - 1`; \
    1512 #         done; \
    1513 #         mv refman.pdf ../@PACKAGE@.pdf
     1310#         cd @DX_DOCDIR@/latex; \
     1311#         rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
     1312#         $(DX_PDFLATEX) refman.tex; \
     1313#         $(DX_MAKEINDEX) refman.idx; \
     1314#         $(DX_PDFLATEX) refman.tex; \
     1315#         countdown=5; \
     1316#         while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
     1317#                           refman.log > /dev/null 2>&1 \
     1318#            && test $$countdown -gt 0; do \
     1319#             $(DX_PDFLATEX) refman.tex; \
     1320#             countdown=`expr $$countdown - 1`; \
     1321#         done; \
     1322#         mv refman.pdf ../@PACKAGE@.pdf
    15141323#
    15151324#     endif DX_COND_pdf
     
    15341343#
    15351344#     @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
    1536 #         rm -rf @DX_DOCDIR@
    1537 #         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
     1345#         rm -rf @DX_DOCDIR@
     1346#         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
    15381347#
    15391348#     DX_CLEANFILES = \
     
    15601369#   Copying and distribution of this file, with or without modification, are
    15611370#   permitted in any medium without royalty provided the copyright notice
    1562 #   and this notice are preserved.
     1371#   and this notice are preserved. This file is offered as-is, without any
     1372#   warranty.
     1373
     1374#serial 11
    15631375
    15641376
    15651377DX_ENV=""
    15661378AC_DEFUN([DX_FEATURE_doc],  ON)
    1567 AC_DEFUN([DX_FEATURE_dot],  ON)
     1379AC_DEFUN([DX_FEATURE_dot],  OFF)
    15681380AC_DEFUN([DX_FEATURE_man],  OFF)
    15691381AC_DEFUN([DX_FEATURE_html], ON)
     
    16791491# -----------------------------
    16801492AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc],  [$1])])
     1493AC_DEFUN([DX_DOT_FEATURE],     [AC_DEFUN([DX_FEATURE_dot], [$1])])
    16811494AC_DEFUN([DX_MAN_FEATURE],     [AC_DEFUN([DX_FEATURE_man],  [$1])])
    16821495AC_DEFUN([DX_HTML_FEATURE],    [AC_DEFUN([DX_FEATURE_html], [$1])])
     
    18291642])
    18301643
     1644# ===========================================================================
     1645#        http://www.gnu.org/software/autoconf-archive/ax_pthread.html
     1646# ===========================================================================
     1647#
     1648# SYNOPSIS
     1649#
     1650#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
     1651#
     1652# DESCRIPTION
     1653#
     1654#   This macro figures out how to build C programs using POSIX threads. It
     1655#   sets the PTHREAD_LIBS output variable to the threads library and linker
     1656#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
     1657#   flags that are needed. (The user can also force certain compiler
     1658#   flags/libs to be tested by setting these environment variables.)
     1659#
     1660#   Also sets PTHREAD_CC to any special C compiler that is needed for
     1661#   multi-threaded programs (defaults to the value of CC otherwise). (This
     1662#   is necessary on AIX to use the special cc_r compiler alias.)
     1663#
     1664#   NOTE: You are assumed to not only compile your program with these flags,
     1665#   but also link it with them as well. e.g. you should link with
     1666#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
     1667#
     1668#   If you are only building threads programs, you may wish to use these
     1669#   variables in your default LIBS, CFLAGS, and CC:
     1670#
     1671#     LIBS="$PTHREAD_LIBS $LIBS"
     1672#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     1673#     CC="$PTHREAD_CC"
     1674#
     1675#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
     1676#   has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
     1677#   (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
     1678#
     1679#   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
     1680#   PTHREAD_PRIO_INHERIT symbol is defined when compiling with
     1681#   PTHREAD_CFLAGS.
     1682#
     1683#   ACTION-IF-FOUND is a list of shell commands to run if a threads library
     1684#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
     1685#   is not found. If ACTION-IF-FOUND is not specified, the default action
     1686#   will define HAVE_PTHREAD.
     1687#
     1688#   Please let the authors know if this macro fails on any platform, or if
     1689#   you have any other suggestions or comments. This macro was based on work
     1690#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
     1691#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
     1692#   Alejandro Forero Cuervo to the autoconf macro repository. We are also
     1693#   grateful for the helpful feedback of numerous users.
     1694#
     1695#   Updated for Autoconf 2.68 by Daniel Richard G.
     1696#
     1697# LICENSE
     1698#
     1699#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
     1700#   Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
     1701#
     1702#   This program is free software: you can redistribute it and/or modify it
     1703#   under the terms of the GNU General Public License as published by the
     1704#   Free Software Foundation, either version 3 of the License, or (at your
     1705#   option) any later version.
     1706#
     1707#   This program is distributed in the hope that it will be useful, but
     1708#   WITHOUT ANY WARRANTY; without even the implied warranty of
     1709#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
     1710#   Public License for more details.
     1711#
     1712#   You should have received a copy of the GNU General Public License along
     1713#   with this program. If not, see <http://www.gnu.org/licenses/>.
     1714#
     1715#   As a special exception, the respective Autoconf Macro's copyright owner
     1716#   gives unlimited permission to copy, distribute and modify the configure
     1717#   scripts that are the output of Autoconf when processing the Macro. You
     1718#   need not follow the terms of the GNU General Public License when using
     1719#   or distributing such scripts, even though portions of the text of the
     1720#   Macro appear in them. The GNU General Public License (GPL) does govern
     1721#   all other use of the material that constitutes the Autoconf Macro.
     1722#
     1723#   This special exception to the GPL applies to versions of the Autoconf
     1724#   Macro released by the Autoconf Archive. When you make and distribute a
     1725#   modified version of the Autoconf Macro, you may extend this special
     1726#   exception to the GPL to apply to your modified version as well.
     1727
     1728#serial 14
     1729
     1730AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
     1731AC_DEFUN([AX_PTHREAD], [
     1732AC_REQUIRE([AC_CANONICAL_HOST])
     1733AC_LANG_PUSH([C])
     1734ax_pthread_ok=no
     1735
     1736# We used to check for pthread.h first, but this fails if pthread.h
     1737# requires special compiler flags (e.g. on True64 or Sequent).
     1738# It gets checked for in the link test anyway.
     1739
     1740# First of all, check if the user has set any of the PTHREAD_LIBS,
     1741# etcetera environment variables, and if threads linking works using
     1742# them:
     1743if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
     1744        save_CFLAGS="$CFLAGS"
     1745        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     1746        save_LIBS="$LIBS"
     1747        LIBS="$PTHREAD_LIBS $LIBS"
     1748        AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
     1749        AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes)
     1750        AC_MSG_RESULT($ax_pthread_ok)
     1751        if test x"$ax_pthread_ok" = xno; then
     1752                PTHREAD_LIBS=""
     1753                PTHREAD_CFLAGS=""
     1754        fi
     1755        LIBS="$save_LIBS"
     1756        CFLAGS="$save_CFLAGS"
     1757fi
     1758
     1759# We must check for the threads library under a number of different
     1760# names; the ordering is very important because some systems
     1761# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
     1762# libraries is broken (non-POSIX).
     1763
     1764# Create a list of thread flags to try.  Items starting with a "-" are
     1765# C compiler flags, and other items are library names, except for "none"
     1766# which indicates that we try without any flags at all, and "pthread-config"
     1767# which is a program returning the flags for the Pth emulation library.
     1768
     1769ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
     1770
     1771# The ordering *is* (sometimes) important.  Some notes on the
     1772# individual items follow:
     1773
     1774# pthreads: AIX (must check this before -lpthread)
     1775# none: in case threads are in libc; should be tried before -Kthread and
     1776#       other compiler flags to prevent continual compiler warnings
     1777# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
     1778# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
     1779# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
     1780# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
     1781# -pthreads: Solaris/gcc
     1782# -mthreads: Mingw32/gcc, Lynx/gcc
     1783# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
     1784#      doesn't hurt to check since this sometimes defines pthreads too;
     1785#      also defines -D_REENTRANT)
     1786#      ... -mt is also the pthreads flag for HP/aCC
     1787# pthread: Linux, etcetera
     1788# --thread-safe: KAI C++
     1789# pthread-config: use pthread-config program (for GNU Pth library)
     1790
     1791case "${host_cpu}-${host_os}" in
     1792        *solaris*)
     1793
     1794        # On Solaris (at least, for some versions), libc contains stubbed
     1795        # (non-functional) versions of the pthreads routines, so link-based
     1796        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
     1797        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
     1798        # a function called by this macro, so we could check for that, but
     1799        # who knows whether they'll stub that too in a future libc.)  So,
     1800        # we'll just look for -pthreads and -lpthread first:
     1801
     1802        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
     1803        ;;
     1804
     1805        *-darwin*)
     1806        ax_pthread_flags="-pthread $ax_pthread_flags"
     1807        ;;
     1808esac
     1809
     1810if test x"$ax_pthread_ok" = xno; then
     1811for flag in $ax_pthread_flags; do
     1812
     1813        case $flag in
     1814                none)
     1815                AC_MSG_CHECKING([whether pthreads work without any flags])
     1816                ;;
     1817
     1818                -*)
     1819                AC_MSG_CHECKING([whether pthreads work with $flag])
     1820                PTHREAD_CFLAGS="$flag"
     1821                ;;
     1822
     1823                pthread-config)
     1824                AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
     1825                if test x"$ax_pthread_config" = xno; then continue; fi
     1826                PTHREAD_CFLAGS="`pthread-config --cflags`"
     1827                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
     1828                ;;
     1829
     1830                *)
     1831                AC_MSG_CHECKING([for the pthreads library -l$flag])
     1832                PTHREAD_LIBS="-l$flag"
     1833                ;;
     1834        esac
     1835
     1836        save_LIBS="$LIBS"
     1837        save_CFLAGS="$CFLAGS"
     1838        LIBS="$PTHREAD_LIBS $LIBS"
     1839        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     1840
     1841        # Check for various functions.  We must include pthread.h,
     1842        # since some functions may be macros.  (On the Sequent, we
     1843        # need a special flag -Kthread to make this header compile.)
     1844        # We check for pthread_join because it is in -lpthread on IRIX
     1845        # while pthread_create is in libc.  We check for pthread_attr_init
     1846        # due to DEC craziness with -lpthreads.  We check for
     1847        # pthread_cleanup_push because it is one of the few pthread
     1848        # functions on Solaris that doesn't have a non-functional libc stub.
     1849        # We try pthread_create on general principles.
     1850        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
     1851                        static void routine(void *a) { a = 0; }
     1852                        static void *start_routine(void *a) { return a; }],
     1853                       [pthread_t th; pthread_attr_t attr;
     1854                        pthread_create(&th, 0, start_routine, 0);
     1855                        pthread_join(th, 0);
     1856                        pthread_attr_init(&attr);
     1857                        pthread_cleanup_push(routine, 0);
     1858                        pthread_cleanup_pop(0) /* ; */])],
     1859                [ax_pthread_ok=yes],
     1860                [])
     1861
     1862        LIBS="$save_LIBS"
     1863        CFLAGS="$save_CFLAGS"
     1864
     1865        AC_MSG_RESULT($ax_pthread_ok)
     1866        if test "x$ax_pthread_ok" = xyes; then
     1867                break;
     1868        fi
     1869
     1870        PTHREAD_LIBS=""
     1871        PTHREAD_CFLAGS=""
     1872done
     1873fi
     1874
     1875# Various other checks:
     1876if test "x$ax_pthread_ok" = xyes; then
     1877        save_LIBS="$LIBS"
     1878        LIBS="$PTHREAD_LIBS $LIBS"
     1879        save_CFLAGS="$CFLAGS"
     1880        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     1881
     1882        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
     1883        AC_MSG_CHECKING([for joinable pthread attribute])
     1884        attr_name=unknown
     1885        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
     1886            AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
     1887                           [int attr = $attr; return attr /* ; */])],
     1888                [attr_name=$attr; break],
     1889                [])
     1890        done
     1891        AC_MSG_RESULT($attr_name)
     1892        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
     1893            AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
     1894                               [Define to necessary symbol if this constant
     1895                                uses a non-standard name on your system.])
     1896        fi
     1897
     1898        AC_MSG_CHECKING([if more special flags are required for pthreads])
     1899        flag=no
     1900        case "${host_cpu}-${host_os}" in
     1901            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
     1902            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
     1903        esac
     1904        AC_MSG_RESULT(${flag})
     1905        if test "x$flag" != xno; then
     1906            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
     1907        fi
     1908
     1909        AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
     1910            ax_cv_PTHREAD_PRIO_INHERIT, [
     1911                AC_LINK_IFELSE(
     1912                    AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]]),
     1913                    [ax_cv_PTHREAD_PRIO_INHERIT=yes],
     1914                    [ax_cv_PTHREAD_PRIO_INHERIT=no])
     1915            ])
     1916        AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
     1917            AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.]))
     1918
     1919        LIBS="$save_LIBS"
     1920        CFLAGS="$save_CFLAGS"
     1921
     1922        # More AIX lossage: must compile with xlc_r or cc_r
     1923        if test x"$GCC" != xyes; then
     1924          AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
     1925        else
     1926          PTHREAD_CC=$CC
     1927        fi
     1928else
     1929        PTHREAD_CC="$CC"
     1930fi
     1931
     1932AC_SUBST(PTHREAD_LIBS)
     1933AC_SUBST(PTHREAD_CFLAGS)
     1934AC_SUBST(PTHREAD_CC)
     1935
     1936# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
     1937if test x"$ax_pthread_ok" = xyes; then
     1938        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
     1939        :
     1940else
     1941        ax_pthread_ok=no
     1942        $2
     1943fi
     1944AC_LANG_POP
     1945])dnl AX_PTHREAD
     1946
    18311947# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
    18321948# serial 1 (pkg-config-0.24)
     
    18571973AC_DEFUN([PKG_PROG_PKG_CONFIG],
    18581974[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
    1859 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
     1975m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
     1976m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
    18601977AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
    18611978AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
     
    19032020 elif test -n "$PKG_CONFIG"; then
    19042021    PKG_CHECK_EXISTS([$3],
    1905                      [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
     2022                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
     2023                      test "x$?" != "x0" && pkg_failed=yes ],
    19062024                     [pkg_failed=yes])
    19072025 else
     
    19512069        _PKG_SHORT_ERRORS_SUPPORTED
    19522070        if test $_pkg_short_errors_supported = yes; then
    1953                 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
     2071                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
    19542072        else
    1955                 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
     2073                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
    19562074        fi
    19572075        # Put the nasty error message in config.log where it belongs
     
    19662084installed software in a non-standard prefix.
    19672085
    1968 _PKG_TEXT])dnl
     2086_PKG_TEXT])[]dnl
    19692087        ])
    19702088elif test $pkg_failed = untried; then
     
    19772095_PKG_TEXT
    19782096
    1979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
     2097To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
    19802098        ])
    19812099else
  • trunk/FACT++/configure

    r12769 r12832  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.67 for FACT++ 1.0.
     3# Generated by GNU Autoconf 2.68 for FACT++ 1.0.
    44#
    55# Report bugs to <thomas.bretz@epfl.ch>.
     
    9292
    9393# Find who we are.  Look in the path if we contain no directory separator.
     94as_myself=
    9495case $0 in #((
    9596  *[\\/]* ) as_myself=$0 ;;
     
    174175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    175176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    176 test \$(( 1 + 1 )) = 2 || exit 1"
     177test \$(( 1 + 1 )) = 2 || exit 1
     178
     179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
     180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
     182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
     183    PATH=/empty FPATH=/empty; export PATH FPATH
     184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
     185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    177186  if (eval "$as_required") 2>/dev/null; then :
    178187  as_have_required=yes
     
    217226        # neutralization value for shells without unset; and this also
    218227        # works around shells that cannot unset nonexistent variables.
     228        # Preserve -v and -x to the replacement shell.
    219229        BASH_ENV=/dev/null
    220230        ENV=/dev/null
    221231        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    222232        export CONFIG_SHELL
    223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
     233        case $- in # ((((
     234          *v*x* | *x*v* ) as_opts=-vx ;;
     235          *v* ) as_opts=-v ;;
     236          *x* ) as_opts=-x ;;
     237          * ) as_opts= ;;
     238        esac
     239        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
    224240fi
    225241
     
    529545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    530546
    531 
    532 
    533 # Check that we are running under the correct shell.
    534547SHELL=${CONFIG_SHELL-/bin/sh}
    535 
    536 case X$lt_ECHO in
    537 X*--fallback-echo)
    538   # Remove one level of quotation (which was required for Make).
    539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
    540   ;;
    541 esac
    542 
    543 ECHO=${lt_ECHO-echo}
    544 if test "X$1" = X--no-reexec; then
    545   # Discard the --no-reexec flag, and continue.
    546   shift
    547 elif test "X$1" = X--fallback-echo; then
    548   # Avoid inline document here, it may be left over
    549   :
    550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
    551   # Yippee, $ECHO works!
    552   :
    553 else
    554   # Restart under the correct shell.
    555   exec $SHELL "$0" --no-reexec ${1+"$@"}
    556 fi
    557 
    558 if test "X$1" = X--fallback-echo; then
    559   # used as fallback echo
    560   shift
    561   cat <<_LT_EOF
    562 $*
    563 _LT_EOF
    564   exit 0
    565 fi
    566 
    567 # The HP-UX ksh and POSIX shell print the target directory to stdout
    568 # if CDPATH is set.
    569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    570 
    571 if test -z "$lt_ECHO"; then
    572   if test "X${echo_test_string+set}" != Xset; then
    573     # find a string as large as possible, as long as the shell can cope with it
    574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
    577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
    578       then
    579         break
    580       fi
    581     done
    582   fi
    583 
    584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    586      test "X$echo_testing_string" = "X$echo_test_string"; then
    587     :
    588   else
    589     # The Solaris, AIX, and Digital Unix default echo programs unquote
    590     # backslashes.  This makes it impossible to quote backslashes using
    591     #   echo "$something" | sed 's/\\/\\\\/g'
    592     #
    593     # So, first we look for a working echo in the user's PATH.
    594 
    595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    596     for dir in $PATH /usr/ucb; do
    597       IFS="$lt_save_ifs"
    598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    601          test "X$echo_testing_string" = "X$echo_test_string"; then
    602         ECHO="$dir/echo"
    603         break
    604       fi
    605     done
    606     IFS="$lt_save_ifs"
    607 
    608     if test "X$ECHO" = Xecho; then
    609       # We didn't find a better echo, so look for alternatives.
    610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
    611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
    612          test "X$echo_testing_string" = "X$echo_test_string"; then
    613         # This shell has a builtin print -r that does the trick.
    614         ECHO='print -r'
    615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
    616            test "X$CONFIG_SHELL" != X/bin/ksh; then
    617         # If we have ksh, try running configure again with it.
    618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    619         export ORIGINAL_CONFIG_SHELL
    620         CONFIG_SHELL=/bin/ksh
    621         export CONFIG_SHELL
    622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
    623       else
    624         # Try using printf.
    625         ECHO='printf %s\n'
    626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    628            test "X$echo_testing_string" = "X$echo_test_string"; then
    629           # Cool, printf works
    630           :
    631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    632              test "X$echo_testing_string" = 'X\t' &&
    633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    634              test "X$echo_testing_string" = "X$echo_test_string"; then
    635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    636           export CONFIG_SHELL
    637           SHELL="$CONFIG_SHELL"
    638           export SHELL
    639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
    640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    641              test "X$echo_testing_string" = 'X\t' &&
    642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    643              test "X$echo_testing_string" = "X$echo_test_string"; then
    644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
    645         else
    646           # maybe with a smaller string...
    647           prev=:
    648 
    649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
    650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
    651             then
    652               break
    653             fi
    654             prev="$cmd"
    655           done
    656 
    657           if test "$prev" != 'sed 50q "$0"'; then
    658             echo_test_string=`eval $prev`
    659             export echo_test_string
    660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
    661           else
    662             # Oops.  We lost completely, so just stick with echo.
    663             ECHO=echo
    664           fi
    665         fi
    666       fi
    667     fi
    668   fi
    669 fi
    670 
    671 # Copy echo and quote the copy suitably for passing to libtool from
    672 # the Makefile, instead of quoting the original, which is used later.
    673 lt_ECHO=$ECHO
    674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
    675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
    676 fi
    677 
    678 
    679548
    680549
     
    857726PTHREAD_LIBS
    858727PTHREAD_CC
    859 acx_pthread_config
     728ax_pthread_config
    860729DOXYGEN_PAPER_SIZE
    861730DX_COND_latex_FALSE
     
    923792am__leading_dot
    924793SET_MAKE
    925 AWK
    926794mkdir_p
    927795MKDIR_P
     
    946814NMEDIT
    947815DSYMUTIL
    948 lt_ECHO
     816MANIFEST_TOOL
     817AWK
    949818RANLIB
    950819STRIP
     820ac_ct_AR
    951821AR
     822DLLTOOL
    952823OBJDUMP
    953824LN_S
     
    1028899enable_fast_install
    1029900with_gnu_ld
     901with_sysroot
    1030902enable_libtool_lock
    1031903enable_dependency_tracking
     
    15131385    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    15141386      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    1515     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     1387    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    15161388    ;;
    15171389
     
    17471619  --disable-silent-rules         verbose build output (undo: `make V=0')
    17481620  --disable-doxygen-doc   don't generate any doxygen documentation
    1749   --disable-doxygen-dot   don't generate graphics for doxygen documentation
     1621  --enable-doxygen-dot    generate graphics for doxygen documentation
    17501622  --enable-doxygen-man    generate doxygen manual pages
    17511623  --enable-doxygen-rtf    generate doxygen RTF documentation
     
    17641636                          both]
    17651637  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1638  --with-sysroot=DIR Search for dependent libraries within DIR
     1639                        (or the compiler's sysroot if not specified).
    17661640  --with-readline[=dir]   Compile with readline/locate base dir
    17671641  --with-x                use the X Window System
     
    17921666  --with-mysqlpp-lib=<path> directory path of MySQL++ library
    17931667  --with-mysqlpp-include=<path> directory path of MySQL++ headers
    1794   --with-boost[=DIR]      use boost (default is yes) - it is possible to
    1795                           specify the root directory for boost (optional)
     1668  --with-boost[=ARG]      use Boost library from a standard location
     1669                          (ARG=yes), from the specified location (ARG=<path>),
     1670                          or disable it (ARG=no) [ARG=yes]
    17961671  --with-boost-libdir=LIB_DIR
    17971672                          Force given directory for boost libraries. Note that
    1798                           this will overwrite library path detection, so use
     1673                          this will override library path detection, so use
    17991674                          this parameter only if default library detection
    18001675                          fails and you know exactly where your boost
     
    19441819  cat <<\_ACEOF
    19451820FACT++ configure 1.0
    1946 generated by GNU Autoconf 2.67
     1821generated by GNU Autoconf 2.68
    19471822
    19481823Copyright (C) 2010 Free Software Foundation, Inc.
     
    19901865        ac_retval=1
    19911866fi
    1992   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    19931868  as_fn_set_status $ac_retval
    19941869
     
    20281903        ac_retval=1
    20291904fi
    2030   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    20311906  as_fn_set_status $ac_retval
    20321907
     
    20651940    ac_retval=1
    20661941fi
    2067   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    20681943  as_fn_set_status $ac_retval
    20691944
     
    20781953{
    20791954  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2080   if eval "test \"\${$3+set}\"" = set; then :
     1955  if eval \${$3+:} false; then :
    20811956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    20821957$as_echo_n "checking for $2... " >&6; }
    2083 if eval "test \"\${$3+set}\"" = set; then :
     1958if eval \${$3+:} false; then :
    20841959  $as_echo_n "(cached) " >&6
    20851960fi
     
    21482023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    21492024$as_echo_n "checking for $2... " >&6; }
    2150 if eval "test \"\${$3+set}\"" = set; then :
     2025if eval \${$3+:} false; then :
    21512026  $as_echo_n "(cached) " >&6
    21522027else
     
    21572032$as_echo "$ac_res" >&6; }
    21582033fi
    2159   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    21602035
    21612036} # ac_fn_c_check_header_mongrel
     
    21982073fi
    21992074  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2200   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    22012076  as_fn_set_status $ac_retval
    22022077
     
    22122087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    22132088$as_echo_n "checking for $2... " >&6; }
    2214 if eval "test \"\${$3+set}\"" = set; then :
     2089if eval \${$3+:} false; then :
    22152090  $as_echo_n "(cached) " >&6
    22162091else
     
    22302105               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    22312106$as_echo "$ac_res" >&6; }
    2232   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2107  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    22332108
    22342109} # ac_fn_c_check_header_compile
     
    22752150  # left behind by Apple's compiler.  We do this before executing the actions.
    22762151  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2277   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2152  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    22782153  as_fn_set_status $ac_retval
    22792154
     
    22882163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    22892164$as_echo_n "checking for $2... " >&6; }
    2290 if eval "test \"\${$3+set}\"" = set; then :
     2165if eval \${$3+:} false; then :
    22912166  $as_echo_n "(cached) " >&6
    22922167else
     
    23432218               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    23442219$as_echo "$ac_res" >&6; }
    2345   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    23462221
    23472222} # ac_fn_c_check_func
     
    23792254    ac_retval=1
    23802255fi
    2381   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    23822257  as_fn_set_status $ac_retval
    23832258
     
    24252300  # left behind by Apple's compiler.  We do this before executing the actions.
    24262301  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2427   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2302  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    24282303  as_fn_set_status $ac_retval
    24292304
     
    24382313{
    24392314  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2440   if eval "test \"\${$3+set}\"" = set; then :
     2315  if eval \${$3+:} false; then :
    24412316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    24422317$as_echo_n "checking for $2... " >&6; }
    2443 if eval "test \"\${$3+set}\"" = set; then :
     2318if eval \${$3+:} false; then :
    24442319  $as_echo_n "(cached) " >&6
    24452320fi
     
    25082383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    25092384$as_echo_n "checking for $2... " >&6; }
    2510 if eval "test \"\${$3+set}\"" = set; then :
     2385if eval \${$3+:} false; then :
    25112386  $as_echo_n "(cached) " >&6
    25122387else
     
    25172392$as_echo "$ac_res" >&6; }
    25182393fi
    2519   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2394  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    25202395
    25212396} # ac_fn_cxx_check_header_mongrel
     
    25292404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    25302405$as_echo_n "checking for $2... " >&6; }
    2531 if eval "test \"\${$3+set}\"" = set; then :
     2406if eval \${$3+:} false; then :
    25322407  $as_echo_n "(cached) " >&6
    25332408else
     
    25842459               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    25852460$as_echo "$ac_res" >&6; }
    2586   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     2461  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    25872462
    25882463} # ac_fn_cxx_check_func
     
    25922467
    25932468It was created by FACT++ $as_me 1.0, which was
    2594 generated by GNU Autoconf 2.67.  Invocation command line was
     2469generated by GNU Autoconf 2.68.  Invocation command line was
    25952470
    25962471  $ $0 $@
     
    28502725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    28512726as_fn_error $? "failed to load site script $ac_site_file
    2852 See \`config.log' for more details" "$LINENO" 5 ; }
     2727See \`config.log' for more details" "$LINENO" 5; }
    28532728  fi
    28542729done
     
    30042879ac_compiler_gnu=$ac_cv_c_compiler_gnu
    30052880if test -n "$ac_tool_prefix"; then
    3006   for ac_prog in colorgcc gcc
     2881  for ac_prog in gcc
    30072882  do
    30082883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    30102885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    30112886$as_echo_n "checking for $ac_word... " >&6; }
    3012 if test "${ac_cv_prog_CC+set}" = set; then :
     2887if ${ac_cv_prog_CC+:} false; then :
    30132888  $as_echo_n "(cached) " >&6
    30142889else
     
    30482923if test -z "$CC"; then
    30492924  ac_ct_CC=$CC
    3050   for ac_prog in colorgcc gcc
     2925  for ac_prog in gcc
    30512926do
    30522927  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    30542929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    30552930$as_echo_n "checking for $ac_word... " >&6; }
    3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2931if ${ac_cv_prog_ac_ct_CC+:} false; then :
    30572932  $as_echo_n "(cached) " >&6
    30582933else
     
    31072982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    31082983as_fn_error $? "no acceptable C compiler found in \$PATH
    3109 See \`config.log' for more details" "$LINENO" 5 ; }
     2984See \`config.log' for more details" "$LINENO" 5; }
    31102985
    31112986# Provide some information about the compiler.
     
    32223097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    32233098as_fn_error 77 "C compiler cannot create executables
    3224 See \`config.log' for more details" "$LINENO" 5 ; }
     3099See \`config.log' for more details" "$LINENO" 5; }
    32253100else
    32263101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     
    32653140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    32663141as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    3267 See \`config.log' for more details" "$LINENO" 5 ; }
     3142See \`config.log' for more details" "$LINENO" 5; }
    32683143fi
    32693144rm -f conftest conftest$ac_cv_exeext
     
    33243199as_fn_error $? "cannot run C compiled programs.
    33253200If you meant to cross compile, use \`--host'.
    3326 See \`config.log' for more details" "$LINENO" 5 ; }
     3201See \`config.log' for more details" "$LINENO" 5; }
    33273202    fi
    33283203  fi
     
    33353210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    33363211$as_echo_n "checking for suffix of object files... " >&6; }
    3337 if test "${ac_cv_objext+set}" = set; then :
     3212if ${ac_cv_objext+:} false; then :
    33383213  $as_echo_n "(cached) " >&6
    33393214else
     
    33763251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    33773252as_fn_error $? "cannot compute suffix of object files: cannot compile
    3378 See \`config.log' for more details" "$LINENO" 5 ; }
     3253See \`config.log' for more details" "$LINENO" 5; }
    33793254fi
    33803255rm -f conftest.$ac_cv_objext conftest.$ac_ext
     
    33863261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    33873262$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    3388 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3263if ${ac_cv_c_compiler_gnu+:} false; then :
    33893264  $as_echo_n "(cached) " >&6
    33903265else
     
    34233298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    34243299$as_echo_n "checking whether $CC accepts -g... " >&6; }
    3425 if test "${ac_cv_prog_cc_g+set}" = set; then :
     3300if ${ac_cv_prog_cc_g+:} false; then :
    34263301  $as_echo_n "(cached) " >&6
    34273302else
     
    35013376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    35023377$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    3503 if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3378if ${ac_cv_prog_cc_c89+:} false; then :
    35043379  $as_echo_n "(cached) " >&6
    35053380else
     
    36063481  else
    36073482    if test -n "$ac_tool_prefix"; then
    3608   for ac_prog in colorgcc g++
     3483  for ac_prog in g++
    36093484  do
    36103485    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    36123487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    36133488$as_echo_n "checking for $ac_word... " >&6; }
    3614 if test "${ac_cv_prog_CXX+set}" = set; then :
     3489if ${ac_cv_prog_CXX+:} false; then :
    36153490  $as_echo_n "(cached) " >&6
    36163491else
     
    36503525if test -z "$CXX"; then
    36513526  ac_ct_CXX=$CXX
    3652   for ac_prog in colorgcc g++
     3527  for ac_prog in g++
    36533528do
    36543529  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    36563531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    36573532$as_echo_n "checking for $ac_word... " >&6; }
    3658 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
     3533if ${ac_cv_prog_ac_ct_CXX+:} false; then :
    36593534  $as_echo_n "(cached) " >&6
    36603535else
     
    37343609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    37353610$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    3736 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
     3611if ${ac_cv_cxx_compiler_gnu+:} false; then :
    37373612  $as_echo_n "(cached) " >&6
    37383613else
     
    37713646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    37723647$as_echo_n "checking whether $CXX accepts -g... " >&6; }
    3773 if test "${ac_cv_prog_cxx_g+set}" = set; then :
     3648if ${ac_cv_prog_cxx_g+:} false; then :
    37743649  $as_echo_n "(cached) " >&6
    37753650else
     
    38543729
    38553730
     3731COLORGCC=`which colorgcc`
     3732if test -n "$COLORGCC"; then :
     3733
     3734    ac_config_links="$ac_config_links g++:$COLORGCC gcc:$COLORGCC"
     3735
     3736    PATH=./:$PATH
     3737
     3738fi
     3739
    38563740#AC_PROG_CC_C99
    38573741   case $ac_cv_prog_cc_stdc in #(
     
    38613745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
    38623746$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
    3863 if test "${ac_cv_prog_cc_c99+set}" = set; then :
     3747if ${ac_cv_prog_cc_c99+:} false; then :
    38643748  $as_echo_n "(cached) " >&6
    38653749else
     
    40363920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    40373921$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3922if ${ac_cv_prog_cc_c89+:} false; then :
    40393923  $as_echo_n "(cached) " >&6
    40403924else
     
    41324016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
    41334017$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
    4134   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
     4018  if ${ac_cv_prog_cc_stdc+:} false; then :
    41354019  $as_echo_n "(cached) " >&6
    41364020fi
     
    41664050fi
    41674051if test -z "$CPP"; then
    4168   if test "${ac_cv_prog_CPP+set}" = set; then :
     4052  if ${ac_cv_prog_CPP+:} false; then :
    41694053  $as_echo_n "(cached) " >&6
    41704054else
     
    42824166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    42834167as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    4284 See \`config.log' for more details" "$LINENO" 5 ; }
     4168See \`config.log' for more details" "$LINENO" 5; }
    42854169fi
    42864170
     
    42944178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
    42954179$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    4296 if test "${ac_cv_path_GREP+set}" = set; then :
     4180if ${ac_cv_path_GREP+:} false; then :
    42974181  $as_echo_n "(cached) " >&6
    42984182else
     
    43574241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    43584242$as_echo_n "checking for egrep... " >&6; }
    4359 if test "${ac_cv_path_EGREP+set}" = set; then :
     4243if ${ac_cv_path_EGREP+:} false; then :
    43604244  $as_echo_n "(cached) " >&6
    43614245else
     
    44244308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
    44254309$as_echo_n "checking for ANSI C header files... " >&6; }
    4426 if test "${ac_cv_header_stdc+set}" = set; then :
     4310if ${ac_cv_header_stdc+:} false; then :
    44274311  $as_echo_n "(cached) " >&6
    44284312else
     
    45534437
    45544438  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
    4555 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
     4439if test "x$ac_cv_header_minix_config_h" = xyes; then :
    45564440  MINIX=yes
    45574441else
     
    45754459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
    45764460$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
    4577 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
     4461if ${ac_cv_safe_to_define___extensions__+:} false; then :
    45784462  $as_echo_n "(cached) " >&6
    45794463else
     
    46224506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features without additional flags" >&5
    46234507$as_echo_n "checking if g++ supports C++0x features without additional flags... " >&6; }
    4624 if test "${ax_cv_cxx_compile_cxx0x_native+set}" = set; then :
     4508if ${ax_cv_cxx_compile_cxx0x_native+:} false; then :
    46254509  $as_echo_n "(cached) " >&6
    46264510else
     
    46764560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features with -std=c++0x" >&5
    46774561$as_echo_n "checking if g++ supports C++0x features with -std=c++0x... " >&6; }
    4678 if test "${ax_cv_cxx_compile_cxx0x_cxx+set}" = set; then :
     4562if ${ax_cv_cxx_compile_cxx0x_cxx+:} false; then :
    46794563  $as_echo_n "(cached) " >&6
    46804564else
     
    47334617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features with -std=gnu++0x" >&5
    47344618$as_echo_n "checking if g++ supports C++0x features with -std=gnu++0x... " >&6; }
    4735 if test "${ax_cv_cxx_compile_cxx0x_gxx+set}" = set; then :
     4619if ${ax_cv_cxx_compile_cxx0x_gxx+:} false; then :
    47364620  $as_echo_n "(cached) " >&6
    47374621else
     
    48154699
    48164700
    4817 macro_version='2.2.6b'
    4818 macro_revision='1.3017'
     4701macro_version='2.4'
     4702macro_revision='1.3293'
    48194703
    48204704
     
    48384722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    48394723$as_echo_n "checking build system type... " >&6; }
    4840 if test "${ac_cv_build+set}" = set; then :
     4724if ${ac_cv_build+:} false; then :
    48414725  $as_echo_n "(cached) " >&6
    48424726else
     
    48544738case $ac_cv_build in
    48554739*-*-*) ;;
    4856 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     4740*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    48574741esac
    48584742build=$ac_cv_build
     
    48724756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    48734757$as_echo_n "checking host system type... " >&6; }
    4874 if test "${ac_cv_host+set}" = set; then :
     4758if ${ac_cv_host+:} false; then :
    48754759  $as_echo_n "(cached) " >&6
    48764760else
     
    48874771case $ac_cv_host in
    48884772*-*-*) ;;
    4889 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     4773*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    48904774esac
    48914775host=$ac_cv_host
     
    49034787
    49044788
     4789# Backslashify metacharacters that are still active within
     4790# double-quoted strings.
     4791sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
     4792
     4793# Same as above, but do not quote variable references.
     4794double_quote_subst='s/\(["`\\]\)/\\\1/g'
     4795
     4796# Sed substitution to delay expansion of an escaped shell variable in a
     4797# double_quote_subst'ed string.
     4798delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     4799
     4800# Sed substitution to delay expansion of an escaped single quote.
     4801delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     4802
     4803# Sed substitution to avoid accidental globbing in evaled expressions
     4804no_glob_subst='s/\*/\\\*/g'
     4805
     4806ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     4807ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     4808ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     4809
     4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
     4811$as_echo_n "checking how to print strings... " >&6; }
     4812# Test print first, because it will be a builtin if present.
     4813if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     4814   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     4815  ECHO='print -r --'
     4816elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     4817  ECHO='printf %s\n'
     4818else
     4819  # Use this function as a fallback that always works.
     4820  func_fallback_echo ()
     4821  {
     4822    eval 'cat <<_LTECHO_EOF
     4823$1
     4824_LTECHO_EOF'
     4825  }
     4826  ECHO='func_fallback_echo'
     4827fi
     4828
     4829# func_echo_all arg...
     4830# Invoke $ECHO with all args, space-separated.
     4831func_echo_all ()
     4832{
     4833    $ECHO ""
     4834}
     4835
     4836case "$ECHO" in
     4837  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
     4838$as_echo "printf" >&6; } ;;
     4839  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
     4840$as_echo "print -r" >&6; } ;;
     4841  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
     4842$as_echo "cat" >&6; } ;;
     4843esac
     4844
     4845
     4846
     4847
     4848
     4849
     4850
     4851
     4852
     4853
     4854
     4855
     4856
     4857
    49054858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
    49064859$as_echo_n "checking for a sed that does not truncate output... " >&6; }
    4907 if test "${ac_cv_path_SED+set}" = set; then :
     4860if ${ac_cv_path_SED+:} false; then :
    49084861  $as_echo_n "(cached) " >&6
    49094862else
     
    49874940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
    49884941$as_echo_n "checking for fgrep... " >&6; }
    4989 if test "${ac_cv_path_FGREP+set}" = set; then :
     4942if ${ac_cv_path_FGREP+:} false; then :
    49904943  $as_echo_n "(cached) " >&6
    49914944else
     
    51185071$as_echo_n "checking for non-GNU ld... " >&6; }
    51195072fi
    5120 if test "${lt_cv_path_LD+set}" = set; then :
     5073if ${lt_cv_path_LD+:} false; then :
    51215074  $as_echo_n "(cached) " >&6
    51225075else
     
    51585111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
    51595112$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
    5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
     5113if ${lt_cv_prog_gnu_ld+:} false; then :
    51615114  $as_echo_n "(cached) " >&6
    51625115else
     
    51855138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
    51865139$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
    5187 if test "${lt_cv_path_NM+set}" = set; then :
     5140if ${lt_cv_path_NM+:} false; then :
    51885141  $as_echo_n "(cached) " >&6
    51895142else
     
    52385191else
    52395192  # Didn't find any BSD compatible name lister, look for dumpbin.
    5240   if test -n "$ac_tool_prefix"; then
    5241   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
     5193  if test -n "$DUMPBIN"; then :
     5194    # Let the user override the test.
     5195  else
     5196    if test -n "$ac_tool_prefix"; then
     5197  for ac_prog in dumpbin "link -dump"
    52425198  do
    52435199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    52455201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    52465202$as_echo_n "checking for $ac_word... " >&6; }
    5247 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
     5203if ${ac_cv_prog_DUMPBIN+:} false; then :
    52485204  $as_echo_n "(cached) " >&6
    52495205else
     
    52835239if test -z "$DUMPBIN"; then
    52845240  ac_ct_DUMPBIN=$DUMPBIN
    5285   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
     5241  for ac_prog in dumpbin "link -dump"
    52865242do
    52875243  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    52895245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    52905246$as_echo_n "checking for $ac_word... " >&6; }
    5291 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
     5247if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
    52925248  $as_echo_n "(cached) " >&6
    52935249else
     
    53385294fi
    53395295
     5296    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     5297    *COFF*)
     5298      DUMPBIN="$DUMPBIN -symbols"
     5299      ;;
     5300    *)
     5301      DUMPBIN=:
     5302      ;;
     5303    esac
     5304  fi
    53405305
    53415306  if test "$DUMPBIN" != ":"; then
     
    53525317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
    53535318$as_echo_n "checking the name lister ($NM) interface... " >&6; }
    5354 if test "${lt_cv_nm_interface+set}" = set; then :
     5319if ${lt_cv_nm_interface+:} false; then :
    53555320  $as_echo_n "(cached) " >&6
    53565321else
    53575322  lt_cv_nm_interface="BSD nm"
    53585323  echo "int some_variable = 0;" > conftest.$ac_ext
    5359   (eval echo "\"\$as_me:5359: $ac_compile\"" >&5)
     5324  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
    53605325  (eval "$ac_compile" 2>conftest.err)
    53615326  cat conftest.err >&5
    5362   (eval echo "\"\$as_me:5362: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     5327  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    53635328  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    53645329  cat conftest.err >&5
    5365   (eval echo "\"\$as_me:5365: output\"" >&5)
     5330  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
    53665331  cat conftest.out >&5
    53675332  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    53875352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
    53885353$as_echo_n "checking the maximum length of command line arguments... " >&6; }
    5389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
     5354if ${lt_cv_sys_max_cmd_len+:} false; then :
    53905355  $as_echo_n "(cached) " >&6
    53915356else
     
    54175382    # Instead, let's just punt: use the minimum linelength reported by
    54185383    # all of the supported platforms: 8192 (on NT/2K/XP).
     5384    lt_cv_sys_max_cmd_len=8192;
     5385    ;;
     5386
     5387  mint*)
     5388    # On MiNT this can take a long time and run out of memory.
    54195389    lt_cv_sys_max_cmd_len=8192;
    54205390    ;;
     
    54845454      # maximum length that is only half of the actual maximum length, but
    54855455      # we can't tell.
    5486       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
    5487                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
     5456      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
     5457                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
    54885458              test $i != 17 # 1/2 MB should be enough
    54895459      do
     
    55275497xsi_shell=no
    55285498( _lt_dummy="a/b/c"
    5529   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
    5530       = c,a/b,, \
     5499  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     5500      = c,a/b,b/c, \
    55315501    && eval 'test $(( 1 + 1 )) -eq 2 \
    55325502    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     
    55775547
    55785548
     5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
     5550$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
     5551if ${lt_cv_to_host_file_cmd+:} false; then :
     5552  $as_echo_n "(cached) " >&6
     5553else
     5554  case $host in
     5555  *-*-mingw* )
     5556    case $build in
     5557      *-*-mingw* ) # actually msys
     5558        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     5559        ;;
     5560      *-*-cygwin* )
     5561        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     5562        ;;
     5563      * ) # otherwise, assume *nix
     5564        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     5565        ;;
     5566    esac
     5567    ;;
     5568  *-*-cygwin* )
     5569    case $build in
     5570      *-*-mingw* ) # actually msys
     5571        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     5572        ;;
     5573      *-*-cygwin* )
     5574        lt_cv_to_host_file_cmd=func_convert_file_noop
     5575        ;;
     5576      * ) # otherwise, assume *nix
     5577        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     5578        ;;
     5579    esac
     5580    ;;
     5581  * ) # unhandled hosts (and "normal" native builds)
     5582    lt_cv_to_host_file_cmd=func_convert_file_noop
     5583    ;;
     5584esac
     5585
     5586fi
     5587
     5588to_host_file_cmd=$lt_cv_to_host_file_cmd
     5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
     5590$as_echo "$lt_cv_to_host_file_cmd" >&6; }
     5591
     5592
     5593
     5594
     5595
     5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
     5597$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
     5598if ${lt_cv_to_tool_file_cmd+:} false; then :
     5599  $as_echo_n "(cached) " >&6
     5600else
     5601  #assume ordinary cross tools, or native build.
     5602lt_cv_to_tool_file_cmd=func_convert_file_noop
     5603case $host in
     5604  *-*-mingw* )
     5605    case $build in
     5606      *-*-mingw* ) # actually msys
     5607        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     5608        ;;
     5609    esac
     5610    ;;
     5611esac
     5612
     5613fi
     5614
     5615to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
     5617$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
     5618
     5619
     5620
     5621
     5622
    55795623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
    55805624$as_echo_n "checking for $LD option to reload object files... " >&6; }
    5581 if test "${lt_cv_ld_reload_flag+set}" = set; then :
     5625if ${lt_cv_ld_reload_flag+:} false; then :
    55825626  $as_echo_n "(cached) " >&6
    55835627else
     
    55935637reload_cmds='$LD$reload_flag -o $output$reload_objs'
    55945638case $host_os in
     5639  cygwin* | mingw* | pw32* | cegcc*)
     5640    if test "$GCC" != yes; then
     5641      reload_cmds=false
     5642    fi
     5643    ;;
    55955644  darwin*)
    55965645    if test "$GCC" = yes; then
     
    56155664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    56165665$as_echo_n "checking for $ac_word... " >&6; }
    5617 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
     5666if ${ac_cv_prog_OBJDUMP+:} false; then :
    56185667  $as_echo_n "(cached) " >&6
    56195668else
     
    56555704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    56565705$as_echo_n "checking for $ac_word... " >&6; }
    5657 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
     5706if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
    56585707  $as_echo_n "(cached) " >&6
    56595708else
     
    57145763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
    57155764$as_echo_n "checking how to recognize dependent libraries... " >&6; }
    5716 if test "${lt_cv_deplibs_check_method+set}" = set; then :
     5765if ${lt_cv_deplibs_check_method+:} false; then :
    57175766  $as_echo_n "(cached) " >&6
    57185767else
     
    57565805  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    57575806  # unless we find 'file', for example because we are cross-compiling.
    5758   if ( file / ) >/dev/null 2>&1; then
     5807  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     5808  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    57595809    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    57605810    lt_cv_file_magic_cmd='func_win32_libid'
    57615811  else
    5762     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     5812    # Keep this pattern in sync with the one in func_win32_libid.
     5813    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    57635814    lt_cv_file_magic_cmd='$OBJDUMP -f'
    57645815  fi
    57655816  ;;
    57665817
    5767 cegcc)
     5818cegcc*)
    57685819  # use the weaker test based on 'objdump'. See mingw*.
    57695820  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     
    57955846  ;;
    57965847
     5848haiku*)
     5849  lt_cv_deplibs_check_method=pass_all
     5850  ;;
     5851
    57975852hpux10.20* | hpux11*)
    57985853  lt_cv_file_magic_cmd=/usr/bin/file
     
    58035858    ;;
    58045859  hppa*64*)
    5805     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
     5860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    58065861    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    58075862    ;;
    58085863  *)
    5809     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     5864    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    58105865    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    58115866    ;;
     
    59105965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
    59115966$as_echo "$lt_cv_deplibs_check_method" >&6; }
     5967
     5968file_magic_glob=
     5969want_nocaseglob=no
     5970if test "$build" = "$host"; then
     5971  case $host_os in
     5972  mingw* | pw32*)
     5973    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     5974      want_nocaseglob=yes
     5975    else
     5976      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
     5977    fi
     5978    ;;
     5979  esac
     5980fi
     5981
    59125982file_magic_cmd=$lt_cv_file_magic_cmd
    59135983deplibs_check_method=$lt_cv_deplibs_check_method
     
    59255995
    59265996
     5997
     5998
     5999
     6000
     6001
     6002
     6003
     6004
     6005
     6006
    59276007if test -n "$ac_tool_prefix"; then
    5928   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
    5929 set dummy ${ac_tool_prefix}ar; ac_word=$2
     6008  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
     6009set dummy ${ac_tool_prefix}dlltool; ac_word=$2
    59306010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    59316011$as_echo_n "checking for $ac_word... " >&6; }
    5932 if test "${ac_cv_prog_AR+set}" = set; then :
     6012if ${ac_cv_prog_DLLTOOL+:} false; then :
    59336013  $as_echo_n "(cached) " >&6
    59346014else
    5935   if test -n "$AR"; then
    5936   ac_cv_prog_AR="$AR" # Let the user override the test.
     6015  if test -n "$DLLTOOL"; then
     6016  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
    59376017else
    59386018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    59436023    for ac_exec_ext in '' $ac_executable_extensions; do
    59446024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    5945     ac_cv_prog_AR="${ac_tool_prefix}ar"
     6025    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    59466026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    59476027    break 2
     
    59536033fi
    59546034fi
    5955 AR=$ac_cv_prog_AR
    5956 if test -n "$AR"; then
    5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
    5958 $as_echo "$AR" >&6; }
     6035DLLTOOL=$ac_cv_prog_DLLTOOL
     6036if test -n "$DLLTOOL"; then
     6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
     6038$as_echo "$DLLTOOL" >&6; }
    59596039else
    59606040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     
    59646044
    59656045fi
    5966 if test -z "$ac_cv_prog_AR"; then
    5967   ac_ct_AR=$AR
    5968   # Extract the first word of "ar", so it can be a program name with args.
    5969 set dummy ar; ac_word=$2
     6046if test -z "$ac_cv_prog_DLLTOOL"; then
     6047  ac_ct_DLLTOOL=$DLLTOOL
     6048  # Extract the first word of "dlltool", so it can be a program name with args.
     6049set dummy dlltool; ac_word=$2
    59706050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    59716051$as_echo_n "checking for $ac_word... " >&6; }
    5972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
     6052if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
    59736053  $as_echo_n "(cached) " >&6
    59746054else
    5975   if test -n "$ac_ct_AR"; then
    5976   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     6055  if test -n "$ac_ct_DLLTOOL"; then
     6056  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
    59776057else
    59786058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    59836063    for ac_exec_ext in '' $ac_executable_extensions; do
    59846064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    5985     ac_cv_prog_ac_ct_AR="ar"
     6065    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    59866066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    59876067    break 2
     
    59936073fi
    59946074fi
     6075ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
     6076if test -n "$ac_ct_DLLTOOL"; then
     6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
     6078$as_echo "$ac_ct_DLLTOOL" >&6; }
     6079else
     6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6081$as_echo "no" >&6; }
     6082fi
     6083
     6084  if test "x$ac_ct_DLLTOOL" = x; then
     6085    DLLTOOL="false"
     6086  else
     6087    case $cross_compiling:$ac_tool_warned in
     6088yes:)
     6089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     6090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     6091ac_tool_warned=yes ;;
     6092esac
     6093    DLLTOOL=$ac_ct_DLLTOOL
     6094  fi
     6095else
     6096  DLLTOOL="$ac_cv_prog_DLLTOOL"
     6097fi
     6098
     6099test -z "$DLLTOOL" && DLLTOOL=dlltool
     6100
     6101
     6102
     6103
     6104
     6105
     6106
     6107
     6108
     6109
     6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
     6111$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
     6112if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
     6113  $as_echo_n "(cached) " >&6
     6114else
     6115  lt_cv_sharedlib_from_linklib_cmd='unknown'
     6116
     6117case $host_os in
     6118cygwin* | mingw* | pw32* | cegcc*)
     6119  # two different shell functions defined in ltmain.sh
     6120  # decide which to use based on capabilities of $DLLTOOL
     6121  case `$DLLTOOL --help 2>&1` in
     6122  *--identify-strict*)
     6123    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     6124    ;;
     6125  *)
     6126    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     6127    ;;
     6128  esac
     6129  ;;
     6130*)
     6131  # fallback: assume linklib IS sharedlib
     6132  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     6133  ;;
     6134esac
     6135
     6136fi
     6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
     6138$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
     6139sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     6140test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     6141
     6142
     6143
     6144
     6145
     6146
     6147
     6148if test -n "$ac_tool_prefix"; then
     6149  for ac_prog in ar
     6150  do
     6151    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     6152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     6154$as_echo_n "checking for $ac_word... " >&6; }
     6155if ${ac_cv_prog_AR+:} false; then :
     6156  $as_echo_n "(cached) " >&6
     6157else
     6158  if test -n "$AR"; then
     6159  ac_cv_prog_AR="$AR" # Let the user override the test.
     6160else
     6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6162for as_dir in $PATH
     6163do
     6164  IFS=$as_save_IFS
     6165  test -z "$as_dir" && as_dir=.
     6166    for ac_exec_ext in '' $ac_executable_extensions; do
     6167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6168    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
     6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     6170    break 2
     6171  fi
     6172done
     6173  done
     6174IFS=$as_save_IFS
     6175
     6176fi
     6177fi
     6178AR=$ac_cv_prog_AR
     6179if test -n "$AR"; then
     6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     6181$as_echo "$AR" >&6; }
     6182else
     6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6184$as_echo "no" >&6; }
     6185fi
     6186
     6187
     6188    test -n "$AR" && break
     6189  done
     6190fi
     6191if test -z "$AR"; then
     6192  ac_ct_AR=$AR
     6193  for ac_prog in ar
     6194do
     6195  # Extract the first word of "$ac_prog", so it can be a program name with args.
     6196set dummy $ac_prog; ac_word=$2
     6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     6198$as_echo_n "checking for $ac_word... " >&6; }
     6199if ${ac_cv_prog_ac_ct_AR+:} false; then :
     6200  $as_echo_n "(cached) " >&6
     6201else
     6202  if test -n "$ac_ct_AR"; then
     6203  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     6204else
     6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6206for as_dir in $PATH
     6207do
     6208  IFS=$as_save_IFS
     6209  test -z "$as_dir" && as_dir=.
     6210    for ac_exec_ext in '' $ac_executable_extensions; do
     6211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6212    ac_cv_prog_ac_ct_AR="$ac_prog"
     6213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     6214    break 2
     6215  fi
     6216done
     6217  done
     6218IFS=$as_save_IFS
     6219
     6220fi
     6221fi
    59956222ac_ct_AR=$ac_cv_prog_ac_ct_AR
    59966223if test -n "$ac_ct_AR"; then
     
    60016228$as_echo "no" >&6; }
    60026229fi
     6230
     6231
     6232  test -n "$ac_ct_AR" && break
     6233done
    60036234
    60046235  if test "x$ac_ct_AR" = x; then
     
    60136244    AR=$ac_ct_AR
    60146245  fi
    6015 else
    6016   AR="$ac_cv_prog_AR"
    6017 fi
    6018 
    6019 test -z "$AR" && AR=ar
    6020 test -z "$AR_FLAGS" && AR_FLAGS=cru
    6021 
    6022 
    6023 
    6024 
     6246fi
     6247
     6248: ${AR=ar}
     6249: ${AR_FLAGS=cru}
     6250
     6251
     6252
     6253
     6254
     6255
     6256
     6257
     6258
     6259
     6260
     6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
     6262$as_echo_n "checking for archiver @FILE support... " >&6; }
     6263if ${lt_cv_ar_at_file+:} false; then :
     6264  $as_echo_n "(cached) " >&6
     6265else
     6266  lt_cv_ar_at_file=no
     6267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6268/* end confdefs.h.  */
     6269
     6270int
     6271main ()
     6272{
     6273
     6274  ;
     6275  return 0;
     6276}
     6277_ACEOF
     6278if ac_fn_c_try_compile "$LINENO"; then :
     6279  echo conftest.$ac_objext > conftest.lst
     6280      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
     6281      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
     6282  (eval $lt_ar_try) 2>&5
     6283  ac_status=$?
     6284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     6285  test $ac_status = 0; }
     6286      if test "$ac_status" -eq 0; then
     6287        # Ensure the archiver fails upon bogus file names.
     6288        rm -f conftest.$ac_objext libconftest.a
     6289        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
     6290  (eval $lt_ar_try) 2>&5
     6291  ac_status=$?
     6292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     6293  test $ac_status = 0; }
     6294        if test "$ac_status" -ne 0; then
     6295          lt_cv_ar_at_file=@
     6296        fi
     6297      fi
     6298      rm -f conftest.* libconftest.a
     6299
     6300fi
     6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6302
     6303fi
     6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
     6305$as_echo "$lt_cv_ar_at_file" >&6; }
     6306
     6307if test "x$lt_cv_ar_at_file" = xno; then
     6308  archiver_list_spec=
     6309else
     6310  archiver_list_spec=$lt_cv_ar_at_file
     6311fi
    60256312
    60266313
     
    60356322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    60366323$as_echo_n "checking for $ac_word... " >&6; }
    6037 if test "${ac_cv_prog_STRIP+set}" = set; then :
     6324if ${ac_cv_prog_STRIP+:} false; then :
    60386325  $as_echo_n "(cached) " >&6
    60396326else
     
    60756362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    60766363$as_echo_n "checking for $ac_word... " >&6; }
    6077 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
     6364if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
    60786365  $as_echo_n "(cached) " >&6
    60796366else
     
    61346421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    61356422$as_echo_n "checking for $ac_word... " >&6; }
    6136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
     6423if ${ac_cv_prog_RANLIB+:} false; then :
    61376424  $as_echo_n "(cached) " >&6
    61386425else
     
    61746461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    61756462$as_echo_n "checking for $ac_word... " >&6; }
    6176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
     6463if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    61776464  $as_echo_n "(cached) " >&6
    61786465else
     
    62456532fi
    62466533
    6247 
    6248 
    6249 
    6250 
    6251 
    6252 
    6253 
    6254 
    6255 
    6256 
    6257 
    6258 
    6259 
    6260 
     6534case $host_os in
     6535  darwin*)
     6536    lock_old_archive_extraction=yes ;;
     6537  *)
     6538    lock_old_archive_extraction=no ;;
     6539esac
     6540
     6541
     6542
     6543
     6544
     6545
     6546
     6547
     6548
     6549
     6550
     6551
     6552
     6553
     6554
     6555
     6556
     6557
     6558
     6559
     6560
     6561for ac_prog in gawk mawk nawk awk
     6562do
     6563  # Extract the first word of "$ac_prog", so it can be a program name with args.
     6564set dummy $ac_prog; ac_word=$2
     6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     6566$as_echo_n "checking for $ac_word... " >&6; }
     6567if ${ac_cv_prog_AWK+:} false; then :
     6568  $as_echo_n "(cached) " >&6
     6569else
     6570  if test -n "$AWK"; then
     6571  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     6572else
     6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6574for as_dir in $PATH
     6575do
     6576  IFS=$as_save_IFS
     6577  test -z "$as_dir" && as_dir=.
     6578    for ac_exec_ext in '' $ac_executable_extensions; do
     6579  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6580    ac_cv_prog_AWK="$ac_prog"
     6581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     6582    break 2
     6583  fi
     6584done
     6585  done
     6586IFS=$as_save_IFS
     6587
     6588fi
     6589fi
     6590AWK=$ac_cv_prog_AWK
     6591if test -n "$AWK"; then
     6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     6593$as_echo "$AWK" >&6; }
     6594else
     6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6596$as_echo "no" >&6; }
     6597fi
     6598
     6599
     6600  test -n "$AWK" && break
     6601done
    62616602
    62626603
     
    62916632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
    62926633$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
    6293 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
     6634if ${lt_cv_sys_global_symbol_pipe+:} false; then :
    62946635  $as_echo_n "(cached) " >&6
    62956636else
     
    63526693
    63536694# Transform an extracted symbol line into symbol name and symbol address
    6354 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
    6355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
     6695lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
     6696lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
    63566697
    63576698# Handle CRLF in mingw tool chain
     
    63896730    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    63906731  fi
     6732  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
    63916733
    63926734  # Check to see that the pipe works correctly.
     
    64146756    # Now try to grab the symbols.
    64156757    nlist=conftest.nm
    6416     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
    6417   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
     6758    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
     6759  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
    64186760  ac_status=$?
    64196761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     
    64306772        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
    64316773          cat <<_LT_EOF > conftest.$ac_ext
     6774/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     6775#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     6776/* DATA imports from DLLs on WIN32 con't be const, because runtime
     6777   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     6778# define LT_DLSYM_CONST
     6779#elif defined(__osf__)
     6780/* This system does not cope well with relocations in const data.  */
     6781# define LT_DLSYM_CONST
     6782#else
     6783# define LT_DLSYM_CONST const
     6784#endif
     6785
    64326786#ifdef __cplusplus
    64336787extern "C" {
     
    64416795
    64426796/* The mapping between symbol names and symbols.  */
    6443 const struct {
     6797LT_DLSYM_CONST struct {
    64446798  const char *name;
    64456799  void       *address;
     
    64676821          # Now try linking the two files.
    64686822          mv conftest.$ac_objext conftstm.$ac_objext
    6469           lt_save_LIBS="$LIBS"
    6470           lt_save_CFLAGS="$CFLAGS"
     6823          lt_globsym_save_LIBS=$LIBS
     6824          lt_globsym_save_CFLAGS=$CFLAGS
    64716825          LIBS="conftstm.$ac_objext"
    64726826          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
     
    64786832            pipe_works=yes
    64796833          fi
    6480           LIBS="$lt_save_LIBS"
    6481           CFLAGS="$lt_save_CFLAGS"
     6834          LIBS=$lt_globsym_save_LIBS
     6835          CFLAGS=$lt_globsym_save_CFLAGS
    64826836        else
    64836837          echo "cannot find nm_test_func in $nlist" >&5
     
    65166870fi
    65176871
    6518 
    6519 
    6520 
    6521 
    6522 
    6523 
    6524 
    6525 
    6526 
    6527 
    6528 
    6529 
    6530 
    6531 
    6532 
    6533 
     6872# Response file support.
     6873if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     6874  nm_file_list_spec='@'
     6875elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
     6876  nm_file_list_spec='@'
     6877fi
     6878
     6879
     6880
     6881
     6882
     6883
     6884
     6885
     6886
     6887
     6888
     6889
     6890
     6891
     6892
     6893
     6894
     6895
     6896
     6897
     6898
     6899
     6900
     6901
     6902
     6903
     6904
     6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
     6906$as_echo_n "checking for sysroot... " >&6; }
     6907
     6908# Check whether --with-sysroot was given.
     6909if test "${with_sysroot+set}" = set; then :
     6910  withval=$with_sysroot;
     6911else
     6912  with_sysroot=no
     6913fi
     6914
     6915
     6916lt_sysroot=
     6917case ${with_sysroot} in #(
     6918 yes)
     6919   if test "$GCC" = yes; then
     6920     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     6921   fi
     6922   ;; #(
     6923 /*)
     6924   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     6925   ;; #(
     6926 no|'')
     6927   ;; #(
     6928 *)
     6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
     6930$as_echo "${with_sysroot}" >&6; }
     6931   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
     6932   ;;
     6933esac
     6934
     6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
     6936$as_echo "${lt_sysroot:-no}" >&6; }
    65346937
    65356938
     
    65686971*-*-irix6*)
    65696972  # Find out which ABI we are using.
    6570   echo '#line 6570 "configure"' > conftest.$ac_ext
     6973  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
    65716974  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    65726975  (eval $ac_compile) 2>&5
     
    66627065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
    66637066$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
    6664 if test "${lt_cv_cc_needs_belf+set}" = set; then :
     7067if ${lt_cv_cc_needs_belf+:} false; then :
    66657068  $as_echo_n "(cached) " >&6
    66667069else
     
    67307133need_locks="$enable_libtool_lock"
    67317134
     7135if test -n "$ac_tool_prefix"; then
     7136  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
     7137set dummy ${ac_tool_prefix}mt; ac_word=$2
     7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7139$as_echo_n "checking for $ac_word... " >&6; }
     7140if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
     7141  $as_echo_n "(cached) " >&6
     7142else
     7143  if test -n "$MANIFEST_TOOL"; then
     7144  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
     7145else
     7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7147for as_dir in $PATH
     7148do
     7149  IFS=$as_save_IFS
     7150  test -z "$as_dir" && as_dir=.
     7151    for ac_exec_ext in '' $ac_executable_extensions; do
     7152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7153    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
     7154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7155    break 2
     7156  fi
     7157done
     7158  done
     7159IFS=$as_save_IFS
     7160
     7161fi
     7162fi
     7163MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
     7164if test -n "$MANIFEST_TOOL"; then
     7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
     7166$as_echo "$MANIFEST_TOOL" >&6; }
     7167else
     7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7169$as_echo "no" >&6; }
     7170fi
     7171
     7172
     7173fi
     7174if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
     7175  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
     7176  # Extract the first word of "mt", so it can be a program name with args.
     7177set dummy mt; ac_word=$2
     7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     7179$as_echo_n "checking for $ac_word... " >&6; }
     7180if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
     7181  $as_echo_n "(cached) " >&6
     7182else
     7183  if test -n "$ac_ct_MANIFEST_TOOL"; then
     7184  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
     7185else
     7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7187for as_dir in $PATH
     7188do
     7189  IFS=$as_save_IFS
     7190  test -z "$as_dir" && as_dir=.
     7191    for ac_exec_ext in '' $ac_executable_extensions; do
     7192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7193    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
     7194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     7195    break 2
     7196  fi
     7197done
     7198  done
     7199IFS=$as_save_IFS
     7200
     7201fi
     7202fi
     7203ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
     7204if test -n "$ac_ct_MANIFEST_TOOL"; then
     7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
     7206$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
     7207else
     7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7209$as_echo "no" >&6; }
     7210fi
     7211
     7212  if test "x$ac_ct_MANIFEST_TOOL" = x; then
     7213    MANIFEST_TOOL=":"
     7214  else
     7215    case $cross_compiling:$ac_tool_warned in
     7216yes:)
     7217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     7218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     7219ac_tool_warned=yes ;;
     7220esac
     7221    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
     7222  fi
     7223else
     7224  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
     7225fi
     7226
     7227test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
     7229$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
     7230if ${lt_cv_path_mainfest_tool+:} false; then :
     7231  $as_echo_n "(cached) " >&6
     7232else
     7233  lt_cv_path_mainfest_tool=no
     7234  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
     7235  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     7236  cat conftest.err >&5
     7237  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     7238    lt_cv_path_mainfest_tool=yes
     7239  fi
     7240  rm -f conftest*
     7241fi
     7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
     7243$as_echo "$lt_cv_path_mainfest_tool" >&6; }
     7244if test "x$lt_cv_path_mainfest_tool" != xyes; then
     7245  MANIFEST_TOOL=:
     7246fi
     7247
     7248
     7249
     7250
     7251
    67327252
    67337253  case $host_os in
     
    67387258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    67397259$as_echo_n "checking for $ac_word... " >&6; }
    6740 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
     7260if ${ac_cv_prog_DSYMUTIL+:} false; then :
    67417261  $as_echo_n "(cached) " >&6
    67427262else
     
    67787298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    67797299$as_echo_n "checking for $ac_word... " >&6; }
    6780 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
     7300if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
    67817301  $as_echo_n "(cached) " >&6
    67827302else
     
    68307350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    68317351$as_echo_n "checking for $ac_word... " >&6; }
    6832 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
     7352if ${ac_cv_prog_NMEDIT+:} false; then :
    68337353  $as_echo_n "(cached) " >&6
    68347354else
     
    68707390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    68717391$as_echo_n "checking for $ac_word... " >&6; }
    6872 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
     7392if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
    68737393  $as_echo_n "(cached) " >&6
    68747394else
     
    69227442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    69237443$as_echo_n "checking for $ac_word... " >&6; }
    6924 if test "${ac_cv_prog_LIPO+set}" = set; then :
     7444if ${ac_cv_prog_LIPO+:} false; then :
    69257445  $as_echo_n "(cached) " >&6
    69267446else
     
    69627482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    69637483$as_echo_n "checking for $ac_word... " >&6; }
    6964 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
     7484if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
    69657485  $as_echo_n "(cached) " >&6
    69667486else
     
    70147534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    70157535$as_echo_n "checking for $ac_word... " >&6; }
    7016 if test "${ac_cv_prog_OTOOL+set}" = set; then :
     7536if ${ac_cv_prog_OTOOL+:} false; then :
    70177537  $as_echo_n "(cached) " >&6
    70187538else
     
    70547574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    70557575$as_echo_n "checking for $ac_word... " >&6; }
    7056 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
     7576if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
    70577577  $as_echo_n "(cached) " >&6
    70587578else
     
    71067626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    71077627$as_echo_n "checking for $ac_word... " >&6; }
    7108 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
     7628if ${ac_cv_prog_OTOOL64+:} false; then :
    71097629  $as_echo_n "(cached) " >&6
    71107630else
     
    71467666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    71477667$as_echo_n "checking for $ac_word... " >&6; }
    7148 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
     7668if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
    71497669  $as_echo_n "(cached) " >&6
    71507670else
     
    72217741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
    72227742$as_echo_n "checking for -single_module linker flag... " >&6; }
    7223 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
     7743if ${lt_cv_apple_cc_single_mod+:} false; then :
    72247744  $as_echo_n "(cached) " >&6
    72257745else
     
    72507770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
    72517771$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
    7252 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
     7772if ${lt_cv_ld_exported_symbols_list+:} false; then :
    72537773  $as_echo_n "(cached) " >&6
    72547774else
     
    72807800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
    72817801$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
     7802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
     7803$as_echo_n "checking for -force_load linker flag... " >&6; }
     7804if ${lt_cv_ld_force_load+:} false; then :
     7805  $as_echo_n "(cached) " >&6
     7806else
     7807  lt_cv_ld_force_load=no
     7808      cat > conftest.c << _LT_EOF
     7809int forced_loaded() { return 2;}
     7810_LT_EOF
     7811      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
     7812      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
     7813      echo "$AR cru libconftest.a conftest.o" >&5
     7814      $AR cru libconftest.a conftest.o 2>&5
     7815      echo "$RANLIB libconftest.a" >&5
     7816      $RANLIB libconftest.a 2>&5
     7817      cat > conftest.c << _LT_EOF
     7818int main() { return 0;}
     7819_LT_EOF
     7820      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
     7821      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     7822      _lt_result=$?
     7823      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
     7824        lt_cv_ld_force_load=yes
     7825      else
     7826        cat conftest.err >&5
     7827      fi
     7828        rm -f conftest.err libconftest.a conftest conftest.c
     7829        rm -rf conftest.dSYM
     7830
     7831fi
     7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
     7833$as_echo "$lt_cv_ld_force_load" >&6; }
    72827834    case $host_os in
    72837835    rhapsody* | darwin1.[012])
     
    73077859      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    73087860    fi
    7309     if test "$DSYMUTIL" != ":"; then
     7861    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
    73107862      _lt_dsymutil='~$DSYMUTIL $lib || :'
    73117863    else
     
    73197871  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
    73207872"
    7321 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
     7873if test "x$ac_cv_header_dlfcn_h" = xyes; then :
    73227874  cat >>confdefs.h <<_ACEOF
    73237875#define HAVE_DLFCN_H 1
     
    73307882
    73317883
    7332 ac_ext=cpp
    7333 ac_cpp='$CXXCPP $CPPFLAGS'
    7334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    7335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    7336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    7337 if test -z "$CXX"; then
    7338   if test -n "$CCC"; then
    7339     CXX=$CCC
    7340   else
    7341     if test -n "$ac_tool_prefix"; then
    7342   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    7343   do
    7344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    7345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7347 $as_echo_n "checking for $ac_word... " >&6; }
    7348 if test "${ac_cv_prog_CXX+set}" = set; then :
    7349   $as_echo_n "(cached) " >&6
    7350 else
    7351   if test -n "$CXX"; then
    7352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    7353 else
    7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7355 for as_dir in $PATH
    7356 do
    7357   IFS=$as_save_IFS
    7358   test -z "$as_dir" && as_dir=.
    7359     for ac_exec_ext in '' $ac_executable_extensions; do
    7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    7361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7363     break 2
    7364   fi
    7365 done
    7366   done
    7367 IFS=$as_save_IFS
    7368 
    7369 fi
    7370 fi
    7371 CXX=$ac_cv_prog_CXX
    7372 if test -n "$CXX"; then
    7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
    7374 $as_echo "$CXX" >&6; }
    7375 else
    7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7377 $as_echo "no" >&6; }
    7378 fi
    7379 
    7380 
    7381     test -n "$CXX" && break
    7382   done
    7383 fi
    7384 if test -z "$CXX"; then
    7385   ac_ct_CXX=$CXX
    7386   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    7387 do
    7388   # Extract the first word of "$ac_prog", so it can be a program name with args.
    7389 set dummy $ac_prog; ac_word=$2
    7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7391 $as_echo_n "checking for $ac_word... " >&6; }
    7392 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
    7393   $as_echo_n "(cached) " >&6
    7394 else
    7395   if test -n "$ac_ct_CXX"; then
    7396   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    7397 else
    7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7399 for as_dir in $PATH
    7400 do
    7401   IFS=$as_save_IFS
    7402   test -z "$as_dir" && as_dir=.
    7403     for ac_exec_ext in '' $ac_executable_extensions; do
    7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    7405     ac_cv_prog_ac_ct_CXX="$ac_prog"
    7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7407     break 2
    7408   fi
    7409 done
    7410   done
    7411 IFS=$as_save_IFS
    7412 
    7413 fi
    7414 fi
    7415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    7416 if test -n "$ac_ct_CXX"; then
    7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
    7418 $as_echo "$ac_ct_CXX" >&6; }
    7419 else
    7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7421 $as_echo "no" >&6; }
    7422 fi
    7423 
    7424 
    7425   test -n "$ac_ct_CXX" && break
    7426 done
    7427 
    7428   if test "x$ac_ct_CXX" = x; then
    7429     CXX="g++"
    7430   else
    7431     case $cross_compiling:$ac_tool_warned in
    7432 yes:)
    7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    7435 ac_tool_warned=yes ;;
    7436 esac
    7437     CXX=$ac_ct_CXX
    7438   fi
    7439 fi
    7440 
    7441   fi
    7442 fi
    7443 # Provide some information about the compiler.
    7444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
    7445 set X $ac_compile
    7446 ac_compiler=$2
    7447 for ac_option in --version -v -V -qversion; do
    7448   { { ac_try="$ac_compiler $ac_option >&5"
    7449 case "(($ac_try" in
    7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    7451   *) ac_try_echo=$ac_try;;
    7452 esac
    7453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    7454 $as_echo "$ac_try_echo"; } >&5
    7455   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    7456   ac_status=$?
    7457   if test -s conftest.err; then
    7458     sed '10a\
    7459 ... rest of stderr output deleted ...
    7460          10q' conftest.err >conftest.er1
    7461     cat conftest.er1 >&5
    7462   fi
    7463   rm -f conftest.er1 conftest.err
    7464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    7465   test $ac_status = 0; }
    7466 done
    7467 
    7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
    7469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
    7470 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
    7471   $as_echo_n "(cached) " >&6
    7472 else
    7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7474 /* end confdefs.h.  */
    7475 
    7476 int
    7477 main ()
     7884func_stripname_cnf ()
    74787885{
    7479 #ifndef __GNUC__
    7480        choke me
    7481 #endif
    7482 
    7483   ;
    7484   return 0;
    7485 }
    7486 _ACEOF
    7487 if ac_fn_cxx_try_compile "$LINENO"; then :
    7488   ac_compiler_gnu=yes
    7489 else
    7490   ac_compiler_gnu=no
    7491 fi
    7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    7494 
    7495 fi
    7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
    7497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
    7498 if test $ac_compiler_gnu = yes; then
    7499   GXX=yes
    7500 else
    7501   GXX=
    7502 fi
    7503 ac_test_CXXFLAGS=${CXXFLAGS+set}
    7504 ac_save_CXXFLAGS=$CXXFLAGS
    7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
    7506 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
    7507 if test "${ac_cv_prog_cxx_g+set}" = set; then :
    7508   $as_echo_n "(cached) " >&6
    7509 else
    7510   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
    7511    ac_cxx_werror_flag=yes
    7512    ac_cv_prog_cxx_g=no
    7513    CXXFLAGS="-g"
    7514    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7515 /* end confdefs.h.  */
    7516 
    7517 int
    7518 main ()
    7519 {
    7520 
    7521   ;
    7522   return 0;
    7523 }
    7524 _ACEOF
    7525 if ac_fn_cxx_try_compile "$LINENO"; then :
    7526   ac_cv_prog_cxx_g=yes
    7527 else
    7528   CXXFLAGS=""
    7529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7530 /* end confdefs.h.  */
    7531 
    7532 int
    7533 main ()
    7534 {
    7535 
    7536   ;
    7537   return 0;
    7538 }
    7539 _ACEOF
    7540 if ac_fn_cxx_try_compile "$LINENO"; then :
    7541 
    7542 else
    7543   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    7544          CXXFLAGS="-g"
    7545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7546 /* end confdefs.h.  */
    7547 
    7548 int
    7549 main ()
    7550 {
    7551 
    7552   ;
    7553   return 0;
    7554 }
    7555 _ACEOF
    7556 if ac_fn_cxx_try_compile "$LINENO"; then :
    7557   ac_cv_prog_cxx_g=yes
    7558 fi
    7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7560 fi
    7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7562 fi
    7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7564    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
    7565 fi
    7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
    7567 $as_echo "$ac_cv_prog_cxx_g" >&6; }
    7568 if test "$ac_test_CXXFLAGS" = set; then
    7569   CXXFLAGS=$ac_save_CXXFLAGS
    7570 elif test $ac_cv_prog_cxx_g = yes; then
    7571   if test "$GXX" = yes; then
    7572     CXXFLAGS="-g -O2"
    7573   else
    7574     CXXFLAGS="-g"
    7575   fi
    7576 else
    7577   if test "$GXX" = yes; then
    7578     CXXFLAGS="-O2"
    7579   else
    7580     CXXFLAGS=
    7581   fi
    7582 fi
    7583 ac_ext=c
    7584 ac_cpp='$CPP $CPPFLAGS'
    7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7588 
    7589 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    7590     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    7591     (test "X$CXX" != "Xg++"))) ; then
    7592   ac_ext=cpp
    7593 ac_cpp='$CXXCPP $CPPFLAGS'
    7594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    7595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    7596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
    7598 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    7599 if test -z "$CXXCPP"; then
    7600   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
    7601   $as_echo_n "(cached) " >&6
    7602 else
    7603       # Double quotes because CXXCPP needs to be expanded
    7604     for CXXCPP in "$CXX -E" "/lib/cpp"
    7605     do
    7606       ac_preproc_ok=false
    7607 for ac_cxx_preproc_warn_flag in '' yes
    7608 do
    7609   # Use a header file that comes with gcc, so configuring glibc
    7610   # with a fresh cross-compiler works.
    7611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7612   # <limits.h> exists even on freestanding compilers.
    7613   # On the NeXT, cc -E runs the code through the compiler's parser,
    7614   # not just through cpp. "Syntax error" is here to catch this case.
    7615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7616 /* end confdefs.h.  */
    7617 #ifdef __STDC__
    7618 # include <limits.h>
    7619 #else
    7620 # include <assert.h>
    7621 #endif
    7622                      Syntax error
    7623 _ACEOF
    7624 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7625 
    7626 else
    7627   # Broken: fails on valid input.
    7628 continue
    7629 fi
    7630 rm -f conftest.err conftest.i conftest.$ac_ext
    7631 
    7632   # OK, works on sane cases.  Now check whether nonexistent headers
    7633   # can be detected and how.
    7634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7635 /* end confdefs.h.  */
    7636 #include <ac_nonexistent.h>
    7637 _ACEOF
    7638 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7639   # Broken: success on invalid input.
    7640 continue
    7641 else
    7642   # Passes both tests.
    7643 ac_preproc_ok=:
    7644 break
    7645 fi
    7646 rm -f conftest.err conftest.i conftest.$ac_ext
    7647 
    7648 done
    7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7650 rm -f conftest.i conftest.err conftest.$ac_ext
    7651 if $ac_preproc_ok; then :
    7652   break
    7653 fi
    7654 
    7655     done
    7656     ac_cv_prog_CXXCPP=$CXXCPP
    7657 
    7658 fi
    7659   CXXCPP=$ac_cv_prog_CXXCPP
    7660 else
    7661   ac_cv_prog_CXXCPP=$CXXCPP
    7662 fi
    7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
    7664 $as_echo "$CXXCPP" >&6; }
    7665 ac_preproc_ok=false
    7666 for ac_cxx_preproc_warn_flag in '' yes
    7667 do
    7668   # Use a header file that comes with gcc, so configuring glibc
    7669   # with a fresh cross-compiler works.
    7670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7671   # <limits.h> exists even on freestanding compilers.
    7672   # On the NeXT, cc -E runs the code through the compiler's parser,
    7673   # not just through cpp. "Syntax error" is here to catch this case.
    7674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7675 /* end confdefs.h.  */
    7676 #ifdef __STDC__
    7677 # include <limits.h>
    7678 #else
    7679 # include <assert.h>
    7680 #endif
    7681                      Syntax error
    7682 _ACEOF
    7683 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7684 
    7685 else
    7686   # Broken: fails on valid input.
    7687 continue
    7688 fi
    7689 rm -f conftest.err conftest.i conftest.$ac_ext
    7690 
    7691   # OK, works on sane cases.  Now check whether nonexistent headers
    7692   # can be detected and how.
    7693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7694 /* end confdefs.h.  */
    7695 #include <ac_nonexistent.h>
    7696 _ACEOF
    7697 if ac_fn_cxx_try_cpp "$LINENO"; then :
    7698   # Broken: success on invalid input.
    7699 continue
    7700 else
    7701   # Passes both tests.
    7702 ac_preproc_ok=:
    7703 break
    7704 fi
    7705 rm -f conftest.err conftest.i conftest.$ac_ext
    7706 
    7707 done
    7708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    7709 rm -f conftest.i conftest.err conftest.$ac_ext
    7710 if $ac_preproc_ok; then :
    7711 
    7712 else
    7713   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    7714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    7715 _lt_caught_CXX_error=yes; }
    7716 fi
    7717 
    7718 ac_ext=c
    7719 ac_cpp='$CPP $CPPFLAGS'
    7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    7723 
    7724 else
    7725   _lt_caught_CXX_error=yes
    7726 fi
     7886  case ${2} in
     7887  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     7888  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     7889  esac
     7890} # func_stripname_cnf
     7891
    77277892
    77287893
     
    78808045
    78818046
     8047
    78828048test -z "$LN_S" && LN_S="ln -s"
    78838049
     
    79018067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
    79028068$as_echo_n "checking for objdir... " >&6; }
    7903 if test "${lt_cv_objdir+set}" = set; then :
     8069if ${lt_cv_objdir+:} false; then :
    79048070  $as_echo_n "(cached) " >&6
    79058071else
     
    79258091#define LT_OBJDIR "$lt_cv_objdir/"
    79268092_ACEOF
    7927 
    7928 
    7929 
    7930 
    7931 
    7932 
    7933 
    7934 
    7935 
    7936 
    7937 
    7938 
    7939 
    79408093
    79418094
     
    79548107esac
    79558108
    7956 # Sed substitution that helps us do robust quoting.  It backslashifies
    7957 # metacharacters that are still active within double-quoted strings.
    7958 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
    7959 
    7960 # Same as above, but do not quote variable references.
    7961 double_quote_subst='s/\(["`\\]\)/\\\1/g'
    7962 
    7963 # Sed substitution to delay expansion of an escaped shell variable in a
    7964 # double_quote_subst'ed string.
    7965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    7966 
    7967 # Sed substitution to delay expansion of an escaped single quote.
    7968 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    7969 
    7970 # Sed substitution to avoid accidental globbing in evaled expressions
    7971 no_glob_subst='s/\*/\\\*/g'
    7972 
    79738109# Global variables:
    79748110ofile=libtool
     
    79998135  esac
    80008136done
    8001 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     8137cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    80028138
    80038139
     
    80098145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
    80108146$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
    8011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
     8147if ${lt_cv_path_MAGIC_CMD+:} false; then :
    80128148  $as_echo_n "(cached) " >&6
    80138149else
     
    80758211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
    80768212$as_echo_n "checking for file... " >&6; }
    8077 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
     8213if ${lt_cv_path_MAGIC_CMD+:} false; then :
    80788214  $as_echo_n "(cached) " >&6
    80798215else
     
    82088344
    82098345if test "$GCC" = yes; then
    8210   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
     8346  case $cc_basename in
     8347  nvcc*)
     8348    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
     8349  *)
     8350    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
     8351  esac
    82118352
    82128353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    82138354$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
    8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
     8355if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
    82158356  $as_echo_n "(cached) " >&6
    82168357else
     
    82288369   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82298370   -e 's:$: $lt_compiler_flag:'`
    8230    (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
     8371   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    82318372   (eval "$lt_compile" 2>conftest.err)
    82328373   ac_status=$?
    82338374   cat conftest.err >&5
    8234    echo "$as_me:8234: \$? = $ac_status" >&5
     8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    82358376   if (exit $ac_status) && test -s "$ac_outfile"; then
    82368377     # The compiler can only warn and ignore the option if not recognized
    82378378     # So say no if there are warnings other than the usual output.
    8238      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     8379     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    82398380     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    82408381     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    82658406lt_prog_compiler_static=
    82668407
    8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
    8268 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
    82698408
    82708409  if test "$GCC" = yes; then
     
    83148453      ;;
    83158454
     8455    haiku*)
     8456      # PIC is the default for Haiku.
     8457      # The "-static" flag exists, but is broken.
     8458      lt_prog_compiler_static=
     8459      ;;
     8460
    83168461    hpux*)
    83178462      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     
    83548499    *)
    83558500      lt_prog_compiler_pic='-fPIC'
     8501      ;;
     8502    esac
     8503
     8504    case $cc_basename in
     8505    nvcc*) # Cuda Compiler Driver 2.2
     8506      lt_prog_compiler_wl='-Xlinker '
     8507      lt_prog_compiler_pic='-Xcompiler -fPIC'
    83568508      ;;
    83578509    esac
     
    84188570        lt_prog_compiler_static='--static'
    84198571        ;;
    8420       pgcc* | pgf77* | pgf90* | pgf95*)
     8572      nagfor*)
     8573        # NAG Fortran compiler
     8574        lt_prog_compiler_wl='-Wl,-Wl,,'
     8575        lt_prog_compiler_pic='-PIC'
     8576        lt_prog_compiler_static='-Bstatic'
     8577        ;;
     8578      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    84218579        # Portland Group compilers (*not* the Pentium gcc compiler,
    84228580        # which looks to be a dead project)
     
    84308588        lt_prog_compiler_static='-non_shared'
    84318589        ;;
    8432       xl*)
    8433         # IBM XL C 8.0/Fortran 10.1 on PPC
     8590      xl* | bgxl* | bgf* | mpixl*)
     8591        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
    84348592        lt_prog_compiler_wl='-Wl,'
    84358593        lt_prog_compiler_pic='-qpic'
     
    84388596      *)
    84398597        case `$CC -V 2>&1 | sed 5q` in
     8598        *Sun\ F* | *Sun*Fortran*)
     8599          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     8600          lt_prog_compiler_pic='-KPIC'
     8601          lt_prog_compiler_static='-Bstatic'
     8602          lt_prog_compiler_wl=''
     8603          ;;
    84408604        *Sun\ C*)
    84418605          # Sun C 5.9
     
    84448608          lt_prog_compiler_wl='-Wl,'
    84458609          ;;
    8446         *Sun\ F*)
    8447           # Sun Fortran 8.3 passes all unrecognized flags to the linker
    8448           lt_prog_compiler_pic='-KPIC'
    8449           lt_prog_compiler_static='-Bstatic'
    8450           lt_prog_compiler_wl=''
    8451           ;;
    84528610        esac
    84538611        ;;
     
    84808638      lt_prog_compiler_static='-Bstatic'
    84818639      case $cc_basename in
    8482       f77* | f90* | f95*)
     8640      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    84838641        lt_prog_compiler_wl='-Qoption ld ';;
    84848642      *)
     
    85378695    ;;
    85388696esac
    8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
    8540 $as_echo "$lt_prog_compiler_pic" >&6; }
    8541 
    8542 
    8543 
    8544 
    8545 
     8697
     8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
     8699$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
     8700if ${lt_cv_prog_compiler_pic+:} false; then :
     8701  $as_echo_n "(cached) " >&6
     8702else
     8703  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
     8704fi
     8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
     8706$as_echo "$lt_cv_prog_compiler_pic" >&6; }
     8707lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
    85468708
    85478709#
     
    85518713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
    85528714$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
    8553 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
     8715if ${lt_cv_prog_compiler_pic_works+:} false; then :
    85548716  $as_echo_n "(cached) " >&6
    85558717else
     
    85678729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    85688730   -e 's:$: $lt_compiler_flag:'`
    8569    (eval echo "\"\$as_me:8569: $lt_compile\"" >&5)
     8731   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    85708732   (eval "$lt_compile" 2>conftest.err)
    85718733   ac_status=$?
    85728734   cat conftest.err >&5
    8573    echo "$as_me:8573: \$? = $ac_status" >&5
     8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    85748736   if (exit $ac_status) && test -s "$ac_outfile"; then
    85758737     # The compiler can only warn and ignore the option if not recognized
    85768738     # So say no if there are warnings other than the usual output.
    8577      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     8739     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    85788740     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    85798741     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    86048766
    86058767
     8768
     8769
     8770
     8771
     8772
    86068773#
    86078774# Check to make sure the static flag actually works.
     
    86108777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    86118778$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
    8612 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
     8779if ${lt_cv_prog_compiler_static_works+:} false; then :
    86138780  $as_echo_n "(cached) " >&6
    86148781else
     
    86238790       # Append any errors to the config.log.
    86248791       cat conftest.err 1>&5
    8625        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     8792       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    86268793       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    86278794       if diff conftest.exp conftest.er2 >/dev/null; then
     
    86538820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
    86548821$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
    8655 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
     8822if ${lt_cv_prog_compiler_c_o+:} false; then :
    86568823  $as_echo_n "(cached) " >&6
    86578824else
     
    86728839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    86738840   -e 's:$: $lt_compiler_flag:'`
    8674    (eval echo "\"\$as_me:8674: $lt_compile\"" >&5)
     8841   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    86758842   (eval "$lt_compile" 2>out/conftest.err)
    86768843   ac_status=$?
    86778844   cat out/conftest.err >&5
    8678    echo "$as_me:8678: \$? = $ac_status" >&5
     8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    86798846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    86808847   then
    86818848     # The compiler can only warn and ignore the option if not recognized
    86828849     # So say no if there are warnings
    8683      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     8850     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    86848851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    86858852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    87088875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
    87098876$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
    8710 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
     8877if ${lt_cv_prog_compiler_c_o+:} false; then :
    87118878  $as_echo_n "(cached) " >&6
    87128879else
     
    87278894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    87288895   -e 's:$: $lt_compiler_flag:'`
    8729    (eval echo "\"\$as_me:8729: $lt_compile\"" >&5)
     8896   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    87308897   (eval "$lt_compile" 2>out/conftest.err)
    87318898   ac_status=$?
    87328899   cat out/conftest.err >&5
    8733    echo "$as_me:8733: \$? = $ac_status" >&5
     8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    87348901   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    87358902   then
    87368903     # The compiler can only warn and ignore the option if not recognized
    87378904     # So say no if there are warnings
    8738      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     8905     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    87398906     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    87408907     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    88469013    with_gnu_ld=no
    88479014    ;;
    8848   linux* | k*bsd*-gnu)
     9015  linux* | k*bsd*-gnu | gnu*)
    88499016    link_all_deplibs=no
    88509017    ;;
     
    88529019
    88539020  ld_shlibs=yes
     9021
     9022  # On some targets, GNU ld is compatible enough with the native linker
     9023  # that we're better off using the native interface for both.
     9024  lt_use_gnu_ld_interface=no
    88549025  if test "$with_gnu_ld" = yes; then
     9026    case $host_os in
     9027      aix*)
     9028        # The AIX port of GNU ld has always aspired to compatibility
     9029        # with the native linker.  However, as the warning in the GNU ld
     9030        # block says, versions before 2.19.5* couldn't really create working
     9031        # shared libraries, regardless of the interface used.
     9032        case `$LD -v 2>&1` in
     9033          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     9034          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
     9035          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
     9036          *)
     9037            lt_use_gnu_ld_interface=yes
     9038            ;;
     9039        esac
     9040        ;;
     9041      *)
     9042        lt_use_gnu_ld_interface=yes
     9043        ;;
     9044    esac
     9045  fi
     9046
     9047  if test "$lt_use_gnu_ld_interface" = yes; then
    88559048    # If archive_cmds runs LD, not CC, wlarc should be empty
    88569049    wlarc='${wl}'
     
    88869079        cat <<_LT_EOF 1>&2
    88879080
    8888 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     9081*** Warning: the GNU linker, at least up to release 2.19, is reported
    88899082*** to be unable to reliably create shared libraries on AIX.
    88909083*** Therefore, libtool is disabling shared libraries support.  If you
    8891 *** really care for shared libraries, you may want to modify your PATH
    8892 *** so that a non-GNU linker is found, and then restart.
     9084*** really care for shared libraries, you may want to install binutils
     9085*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     9086*** You will then need to restart the configuration process.
    88939087
    88949088_LT_EOF
     
    89269120      # as there is no search path for DLLs.
    89279121      hardcode_libdir_flag_spec='-L$libdir'
     9122      export_dynamic_flag_spec='${wl}--export-all-symbols'
    89289123      allow_undefined_flag=unsupported
    89299124      always_export_symbols=no
    89309125      enable_shared_with_static_runtimes=yes
    8931       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
     9126      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
     9127      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
    89329128
    89339129      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     
    89479143      ;;
    89489144
     9145    haiku*)
     9146      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     9147      link_all_deplibs=yes
     9148      ;;
     9149
    89499150    interix[3-9]*)
    89509151      hardcode_direct=no
     
    89729173         && test "$tmp_diet" = no
    89739174      then
    8974         tmp_addflag=
     9175        tmp_addflag=' $pic_flag'
    89759176        tmp_sharedflag='-shared'
    89769177        case $cc_basename,$host_cpu in
    89779178        pgcc*)                          # Portland Group C compiler
    8978           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     9179          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    89799180          tmp_addflag=' $pic_flag'
    89809181          ;;
    8981         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    8982           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     9182        pgf77* | pgf90* | pgf95* | pgfortran*)
     9183                                        # Portland Group f77 and f90 compilers
     9184          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    89839185          tmp_addflag=' $pic_flag -Mnomain' ;;
    89849186        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    89919193          whole_archive_flag_spec=
    89929194          tmp_sharedflag='--shared' ;;
    8993         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
     9195        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
    89949196          tmp_sharedflag='-qmkshrobj'
    89959197          tmp_addflag= ;;
     9198        nvcc*)  # Cuda Compiler Driver 2.2
     9199          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
     9200          compiler_needs_object=yes
     9201          ;;
    89969202        esac
    89979203        case `$CC -V 2>&1 | sed 5q` in
    89989204        *Sun\ C*)                       # Sun C 5.9
    8999           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     9205          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    90009206          compiler_needs_object=yes
    90019207          tmp_sharedflag='-G' ;;
     
    90139219
    90149220        case $cc_basename in
    9015         xlf*)
     9221        xlf* | bgf* | bgxlf* | mpixlf*)
    90169222          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    90179223          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
    90189224          hardcode_libdir_flag_spec=
    90199225          hardcode_libdir_flag_spec_ld='-rpath $libdir'
    9020           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
     9226          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
    90219227          if test "x$supports_anon_versioning" = xyes; then
    90229228            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
    90239229              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    90249230              echo "local: *; };" >> $output_objdir/$libname.ver~
    9025               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     9231              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    90269232          fi
    90279233          ;;
     
    90379243        wlarc=
    90389244      else
    9039         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    9040         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     9245        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     9246        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    90419247      fi
    90429248      ;;
     
    90569262_LT_EOF
    90579263      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    9058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    9059         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     9264        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     9265        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    90609266      else
    90619267        ld_shlibs=no
     
    91039309    *)
    91049310      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    9105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    9106         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     9311        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     9312        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    91079313      else
    91089314        ld_shlibs=no
     
    91449350        # If we're using GNU nm, then we don't want the "-C" option.
    91459351        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     9352        # Also, AIX nm treats weak defined symbols like other global
     9353        # defined symbols, whereas GNU nm marks them as "W".
    91469354        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    9147           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     9355          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    91489356        else
    91499357          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     
    92339441        # Determine the default libpath from the value encoded in an
    92349442        # empty executable.
    9235         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9443        if test "${lt_cv_aix_libpath+set}" = set; then
     9444  aix_libpath=$lt_cv_aix_libpath
     9445else
     9446  if ${lt_cv_aix_libpath_+:} false; then :
     9447  $as_echo_n "(cached) " >&6
     9448else
     9449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    92369450/* end confdefs.h.  */
    92379451
     
    92469460if ac_fn_c_try_link "$LINENO"; then :
    92479461
    9248 lt_aix_libpath_sed='
    9249     /Import File Strings/,/^$/ {
    9250         /^0/ {
    9251             s/^0  *\(.*\)$/\1/
    9252             p
    9253         }
    9254     }'
    9255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    9256 # Check for a 64-bit object if we didn't find anything.
    9257 if test -z "$aix_libpath"; then
    9258   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    9259 fi
     9462  lt_aix_libpath_sed='
     9463      /Import File Strings/,/^$/ {
     9464          /^0/ {
     9465              s/^0  *\([^ ]*\) *$/\1/
     9466              p
     9467          }
     9468      }'
     9469  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     9470  # Check for a 64-bit object if we didn't find anything.
     9471  if test -z "$lt_cv_aix_libpath_"; then
     9472    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     9473  fi
    92609474fi
    92619475rm -f core conftest.err conftest.$ac_objext \
    92629476    conftest$ac_exeext conftest.$ac_ext
    9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     9477  if test -z "$lt_cv_aix_libpath_"; then
     9478    lt_cv_aix_libpath_="/usr/lib:/lib"
     9479  fi
     9480
     9481fi
     9482
     9483  aix_libpath=$lt_cv_aix_libpath_
     9484fi
    92649485
    92659486        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    9266         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     9487        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    92679488      else
    92689489        if test "$host_cpu" = ia64; then
     
    92739494         # Determine the default libpath from the value encoded in an
    92749495         # empty executable.
    9275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9496         if test "${lt_cv_aix_libpath+set}" = set; then
     9497  aix_libpath=$lt_cv_aix_libpath
     9498else
     9499  if ${lt_cv_aix_libpath_+:} false; then :
     9500  $as_echo_n "(cached) " >&6
     9501else
     9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    92769503/* end confdefs.h.  */
    92779504
     
    92869513if ac_fn_c_try_link "$LINENO"; then :
    92879514
    9288 lt_aix_libpath_sed='
    9289     /Import File Strings/,/^$/ {
    9290         /^0/ {
    9291             s/^0  *\(.*\)$/\1/
    9292             p
    9293         }
    9294     }'
    9295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    9296 # Check for a 64-bit object if we didn't find anything.
    9297 if test -z "$aix_libpath"; then
    9298   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    9299 fi
     9515  lt_aix_libpath_sed='
     9516      /Import File Strings/,/^$/ {
     9517          /^0/ {
     9518              s/^0  *\([^ ]*\) *$/\1/
     9519              p
     9520          }
     9521      }'
     9522  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     9523  # Check for a 64-bit object if we didn't find anything.
     9524  if test -z "$lt_cv_aix_libpath_"; then
     9525    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     9526  fi
    93009527fi
    93019528rm -f core conftest.err conftest.$ac_objext \
    93029529    conftest$ac_exeext conftest.$ac_ext
    9303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     9530  if test -z "$lt_cv_aix_libpath_"; then
     9531    lt_cv_aix_libpath_="/usr/lib:/lib"
     9532  fi
     9533
     9534fi
     9535
     9536  aix_libpath=$lt_cv_aix_libpath_
     9537fi
    93049538
    93059539         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
     
    93089542          no_undefined_flag=' ${wl}-bernotok'
    93099543          allow_undefined_flag=' ${wl}-berok'
    9310           # Exported symbols can be pulled into shared objects from archives
    9311           whole_archive_flag_spec='$convenience'
     9544          if test "$with_gnu_ld" = yes; then
     9545            # We only use this code for GNU lds that support --whole-archive.
     9546            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     9547          else
     9548            # Exported symbols can be pulled into shared objects from archives
     9549            whole_archive_flag_spec='$convenience'
     9550          fi
    93129551          archive_cmds_need_lc=yes
    93139552          # This is similar to how AIX traditionally builds its shared libraries.
     
    93419580      # hardcode_libdir_flag_spec is actually meaningless, as there is
    93429581      # no search path for DLLs.
    9343       hardcode_libdir_flag_spec=' '
    9344       allow_undefined_flag=unsupported
    9345       # Tell ltmain to make .lib files, not .a files.
    9346       libext=lib
    9347       # Tell ltmain to make .dll files, not .so files.
    9348       shrext_cmds=".dll"
    9349       # FIXME: Setting linknames here is a bad hack.
    9350       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    9351       # The linker will automatically build a .lib file if we build a DLL.
    9352       old_archive_from_new_cmds='true'
    9353       # FIXME: Should let the user specify the lib program.
    9354       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
    9355       fix_srcfile_path='`cygpath -w "$srcfile"`'
    9356       enable_shared_with_static_runtimes=yes
     9582      case $cc_basename in
     9583      cl*)
     9584        # Native MSVC
     9585        hardcode_libdir_flag_spec=' '
     9586        allow_undefined_flag=unsupported
     9587        always_export_symbols=yes
     9588        file_list_spec='@'
     9589        # Tell ltmain to make .lib files, not .a files.
     9590        libext=lib
     9591        # Tell ltmain to make .dll files, not .so files.
     9592        shrext_cmds=".dll"
     9593        # FIXME: Setting linknames here is a bad hack.
     9594        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     9595        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     9596            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     9597          else
     9598            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     9599          fi~
     9600          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     9601          linknames='
     9602        # The linker will not automatically build a static lib if we build a DLL.
     9603        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
     9604        enable_shared_with_static_runtimes=yes
     9605        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
     9606        # Don't use ranlib
     9607        old_postinstall_cmds='chmod 644 $oldlib'
     9608        postlink_cmds='lt_outputfile="@OUTPUT@"~
     9609          lt_tool_outputfile="@TOOL_OUTPUT@"~
     9610          case $lt_outputfile in
     9611            *.exe|*.EXE) ;;
     9612            *)
     9613              lt_outputfile="$lt_outputfile.exe"
     9614              lt_tool_outputfile="$lt_tool_outputfile.exe"
     9615              ;;
     9616          esac~
     9617          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     9618            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     9619            $RM "$lt_outputfile.manifest";
     9620          fi'
     9621        ;;
     9622      *)
     9623        # Assume MSVC wrapper
     9624        hardcode_libdir_flag_spec=' '
     9625        allow_undefined_flag=unsupported
     9626        # Tell ltmain to make .lib files, not .a files.
     9627        libext=lib
     9628        # Tell ltmain to make .dll files, not .so files.
     9629        shrext_cmds=".dll"
     9630        # FIXME: Setting linknames here is a bad hack.
     9631        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     9632        # The linker will automatically build a .lib file if we build a DLL.
     9633        old_archive_from_new_cmds='true'
     9634        # FIXME: Should let the user specify the lib program.
     9635        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
     9636        enable_shared_with_static_runtimes=yes
     9637        ;;
     9638      esac
    93579639      ;;
    93589640
     
    93649646  hardcode_automatic=yes
    93659647  hardcode_shlibpath_var=unsupported
    9366   whole_archive_flag_spec=''
     9648  if test "$lt_cv_ld_force_load" = "yes"; then
     9649    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     9650  else
     9651    whole_archive_flag_spec=''
     9652  fi
    93679653  link_all_deplibs=yes
    93689654  allow_undefined_flag="$_lt_dar_allow_undefined"
     
    93729658  esac
    93739659  if test "$_lt_dar_can_shared" = "yes"; then
    9374     output_verbose_link_cmd=echo
     9660    output_verbose_link_cmd=func_echo_all
    93759661    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    93769662    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    94159701    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    94169702    freebsd* | dragonfly*)
    9417       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     9703      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    94189704      hardcode_libdir_flag_spec='-R$libdir'
    94199705      hardcode_direct=yes
     
    94239709    hpux9*)
    94249710      if test "$GCC" = yes; then
    9425         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     9711        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    94269712      else
    94279713        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     
    94389724
    94399725    hpux10*)
    9440       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    9441         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     9726      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     9727        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    94429728      else
    94439729        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    94579743
    94589744    hpux11*)
    9459       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     9745      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    94609746        case $host_cpu in
    94619747        hppa*64*)
     
    94639749          ;;
    94649750        ia64*)
    9465           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     9751          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    94669752          ;;
    94679753        *)
    9468           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     9754          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    94699755          ;;
    94709756        esac
     
    94789764          ;;
    94799765        *)
    9480           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     9766
     9767          # Older versions of the 11.00 compiler do not understand -b yet
     9768          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     9769          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
     9770$as_echo_n "checking if $CC understands -b... " >&6; }
     9771if ${lt_cv_prog_compiler__b+:} false; then :
     9772  $as_echo_n "(cached) " >&6
     9773else
     9774  lt_cv_prog_compiler__b=no
     9775   save_LDFLAGS="$LDFLAGS"
     9776   LDFLAGS="$LDFLAGS -b"
     9777   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     9778   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     9779     # The linker can only warn and ignore the option if not recognized
     9780     # So say no if there are warnings
     9781     if test -s conftest.err; then
     9782       # Append any errors to the config.log.
     9783       cat conftest.err 1>&5
     9784       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
     9785       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     9786       if diff conftest.exp conftest.er2 >/dev/null; then
     9787         lt_cv_prog_compiler__b=yes
     9788       fi
     9789     else
     9790       lt_cv_prog_compiler__b=yes
     9791     fi
     9792   fi
     9793   $RM -r conftest*
     9794   LDFLAGS="$save_LDFLAGS"
     9795
     9796fi
     9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
     9798$as_echo "$lt_cv_prog_compiler__b" >&6; }
     9799
     9800if test x"$lt_cv_prog_compiler__b" = xyes; then
     9801    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     9802else
     9803    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     9804fi
     9805
    94819806          ;;
    94829807        esac
     
    95069831    irix5* | irix6* | nonstopux*)
    95079832      if test "$GCC" = yes; then
    9508         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     9833        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    95099834        # Try to use the -exported_symbol ld option, if it does not
    95109835        # work, assume that -exports_file does not work either and
    95119836        # implicitly export all symbols.
    9512         save_LDFLAGS="$LDFLAGS"
    9513         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
    9514         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     9837        # This should be the same for all languages, so no per-tag cache variable.
     9838        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
     9839$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
     9840if ${lt_cv_irix_exported_symbol+:} false; then :
     9841  $as_echo_n "(cached) " >&6
     9842else
     9843  save_LDFLAGS="$LDFLAGS"
     9844           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     9845           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    95159846/* end confdefs.h.  */
    9516 int foo(void) {}
     9847int foo (void) { return 0; }
    95179848_ACEOF
    95189849if ac_fn_c_try_link "$LINENO"; then :
    9519   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
    9520 
     9850  lt_cv_irix_exported_symbol=yes
     9851else
     9852  lt_cv_irix_exported_symbol=no
    95219853fi
    95229854rm -f core conftest.err conftest.$ac_objext \
    95239855    conftest$ac_exeext conftest.$ac_ext
    9524         LDFLAGS="$save_LDFLAGS"
     9856           LDFLAGS="$save_LDFLAGS"
     9857fi
     9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
     9859$as_echo "$lt_cv_irix_exported_symbol" >&6; }
     9860        if test "$lt_cv_irix_exported_symbol" = yes; then
     9861          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
     9862        fi
    95259863      else
    9526         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
    9527         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
     9864        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     9865        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
    95289866      fi
    95299867      archive_cmds_need_lc='no'
     
    95879925      hardcode_minus_L=yes
    95889926      allow_undefined_flag=unsupported
    9589       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     9927      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    95909928      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    95919929      ;;
     
    95949932      if test "$GCC" = yes; then
    95959933        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    9596         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     9934        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    95979935      else
    95989936        allow_undefined_flag=' -expect_unresolved \*'
    9599         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     9937        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    96009938      fi
    96019939      archive_cmds_need_lc='no'
     
    96079945      if test "$GCC" = yes; then
    96089946        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    9609         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     9947        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    96109948        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    96119949      else
    96129950        allow_undefined_flag=' -expect_unresolved \*'
    9613         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     9951        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    96149952        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
    9615         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
     9953        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
    96169954
    96179955        # Both c and cxx compiler support -rpath directly
     
    96269964      if test "$GCC" = yes; then
    96279965        wlarc='${wl}'
    9628         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     9966        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    96299967        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    9630           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     9968          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
    96319969      else
    96329970        case `$CC -V 2>&1` in
     
    981610154      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
    981710155$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
    9818       $RM conftest*
    9819       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    9820 
    9821       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     10156if ${lt_cv_archive_cmds_need_lc+:} false; then :
     10157  $as_echo_n "(cached) " >&6
     10158else
     10159  $RM conftest*
     10160        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     10161
     10162        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    982210163  (eval $ac_compile) 2>&5
    982310164  ac_status=$?
    982410165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    982510166  test $ac_status = 0; } 2>conftest.err; then
    9826         soname=conftest
    9827         lib=conftest
    9828         libobjs=conftest.$ac_objext
    9829         deplibs=
    9830         wl=$lt_prog_compiler_wl
    9831         pic_flag=$lt_prog_compiler_pic
    9832         compiler_flags=-v
    9833         linker_flags=-v
    9834         verstring=
    9835         output_objdir=.
    9836         libname=conftest
    9837         lt_save_allow_undefined_flag=$allow_undefined_flag
    9838         allow_undefined_flag=
    9839         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     10167          soname=conftest
     10168          lib=conftest
     10169          libobjs=conftest.$ac_objext
     10170          deplibs=
     10171          wl=$lt_prog_compiler_wl
     10172          pic_flag=$lt_prog_compiler_pic
     10173          compiler_flags=-v
     10174          linker_flags=-v
     10175          verstring=
     10176          output_objdir=.
     10177          libname=conftest
     10178          lt_save_allow_undefined_flag=$allow_undefined_flag
     10179          allow_undefined_flag=
     10180          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
    984010181  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    984110182  ac_status=$?
    984210183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    984310184  test $ac_status = 0; }
    9844         then
    9845           archive_cmds_need_lc=no
    9846         else
    9847           archive_cmds_need_lc=yes
    9848         fi
    9849         allow_undefined_flag=$lt_save_allow_undefined_flag
    9850       else
    9851         cat conftest.err 1>&5
    9852       fi
    9853       $RM conftest*
    9854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
    9855 $as_echo "$archive_cmds_need_lc" >&6; }
     10185          then
     10186            lt_cv_archive_cmds_need_lc=no
     10187          else
     10188            lt_cv_archive_cmds_need_lc=yes
     10189          fi
     10190          allow_undefined_flag=$lt_save_allow_undefined_flag
     10191        else
     10192          cat conftest.err 1>&5
     10193        fi
     10194        $RM conftest*
     10195
     10196fi
     10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
     10198$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
     10199      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
    985610200      ;;
    985710201    esac
     
    1002410368    *) lt_awk_arg="/^libraries:/" ;;
    1002510369  esac
    10026   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    10027   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
     10370  case $host_os in
     10371    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
     10372    *) lt_sed_strip_eq="s,=/,/,g" ;;
     10373  esac
     10374  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     10375  case $lt_search_path_spec in
     10376  *\;*)
    1002810377    # if the path contains ";" then we assume it to be the separator
    1002910378    # otherwise default to the standard path separator (i.e. ":") - it is
    1003010379    # assumed that no part of a normal pathname contains ";" but that should
    1003110380    # okay in the real world where ";" in dirpaths is itself problematic.
    10032     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    10033   else
    10034     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    10035   fi
     10381    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     10382    ;;
     10383  *)
     10384    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     10385    ;;
     10386  esac
    1003610387  # Ok, now we have the path, separated by spaces, we can step through it
    1003710388  # and add multilib dir if necessary.
     
    1004610397    fi
    1004710398  done
    10048   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
     10399  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
    1004910400BEGIN {RS=" "; FS="/|\n";} {
    1005010401  lt_foo="";
     
    1006610417  if (lt_freq[lt_foo] == 1) { print lt_foo; }
    1006710418}'`
    10068   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
     10419  # AWK program above erroneously prepends '/' to C:/dos/paths
     10420  # for these hosts.
     10421  case $host_os in
     10422    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     10423      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
     10424  esac
     10425  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
    1006910426else
    1007010427  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    1015410511    library_names_spec='$libname.ixlibrary $libname.a'
    1015510512    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    10156     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     10513    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    1015710514    ;;
    1015810515  esac
     
    1018510542  need_lib_prefix=no
    1018610543
    10187   case $GCC,$host_os in
    10188   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
     10544  case $GCC,$cc_basename in
     10545  yes,*)
     10546    # gcc
    1018910547    library_names_spec='$libname.dll.a'
    1019010548    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     
    1020710565      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    1020810566      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    10209       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     10567
     10568      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
    1021010569      ;;
    1021110570    mingw* | cegcc*)
    1021210571      # MinGW DLLs use traditional 'lib' prefix
    1021310572      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    10214       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    10215       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
    10216         # It is most probably a Windows format PATH printed by
    10217         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    10218         # path with ; separators, and with drive letters. We can handle the
    10219         # drive letters (cygwin fileutils understands them), so leave them,
    10220         # especially as we might pass files found there to a mingw objdump,
    10221         # which wouldn't understand a cygwinified path. Ahh.
    10222         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    10223       else
    10224         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    10225       fi
    1022610573      ;;
    1022710574    pw32*)
     
    1023010577      ;;
    1023110578    esac
     10579    dynamic_linker='Win32 ld.exe'
    1023210580    ;;
    1023310581
     10582  *,cl*)
     10583    # Native MSVC
     10584    libname_spec='$name'
     10585    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     10586    library_names_spec='${libname}.dll.lib'
     10587
     10588    case $build_os in
     10589    mingw*)
     10590      sys_lib_search_path_spec=
     10591      lt_save_ifs=$IFS
     10592      IFS=';'
     10593      for lt_path in $LIB
     10594      do
     10595        IFS=$lt_save_ifs
     10596        # Let DOS variable expansion print the short 8.3 style file name.
     10597        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     10598        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     10599      done
     10600      IFS=$lt_save_ifs
     10601      # Convert to MSYS style.
     10602      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
     10603      ;;
     10604    cygwin*)
     10605      # Convert to unix form, then to dos form, then back to unix form
     10606      # but this time dos style (no spaces!) so that the unix form looks
     10607      # like /cygdrive/c/PROGRA~1:/cygdr...
     10608      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     10609      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     10610      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     10611      ;;
     10612    *)
     10613      sys_lib_search_path_spec="$LIB"
     10614      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     10615        # It is most probably a Windows format PATH.
     10616        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     10617      else
     10618        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     10619      fi
     10620      # FIXME: find the short name or the path components, as spaces are
     10621      # common. (e.g. "Program Files" -> "PROGRA~1")
     10622      ;;
     10623    esac
     10624
     10625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     10626    postinstall_cmds='base_file=`basename \${file}`~
     10627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     10628      dldir=$destdir/`dirname \$dlpath`~
     10629      test -d \$dldir || mkdir -p \$dldir~
     10630      $install_prog $dir/$dlname \$dldir/$dlname'
     10631    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     10632      dlpath=$dir/\$dldll~
     10633       $RM \$dlpath'
     10634    shlibpath_overrides_runpath=yes
     10635    dynamic_linker='Win32 link.exe'
     10636    ;;
     10637
    1023410638  *)
     10639    # Assume MSVC wrapper
    1023510640    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     10641    dynamic_linker='Win32 ld.exe'
    1023610642    ;;
    1023710643  esac
    10238   dynamic_linker='Win32 ld.exe'
    1023910644  # FIXME: first we should search . and the directory the executable is in
    1024010645  shlibpath_var=PATH
     
    1032010725  soname_spec='${libname}${release}${shared_ext}$major'
    1032110726  shlibpath_var=LD_LIBRARY_PATH
     10727  shlibpath_overrides_runpath=no
     10728  hardcode_into_libs=yes
     10729  ;;
     10730
     10731haiku*)
     10732  version_type=linux
     10733  need_lib_prefix=no
     10734  need_version=no
     10735  dynamic_linker="$host_os runtime_loader"
     10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     10737  soname_spec='${libname}${release}${shared_ext}$major'
     10738  shlibpath_var=LIBRARY_PATH
     10739  shlibpath_overrides_runpath=yes
     10740  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    1032210741  hardcode_into_libs=yes
    1032310742  ;;
     
    1036510784    ;;
    1036610785  esac
    10367   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     10786  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    1036810787  postinstall_cmds='chmod 555 $lib'
     10788  # or fails outright, so override atomically:
     10789  install_override_mode=555
    1036910790  ;;
    1037010791
     
    1043310854  shlibpath_var=LD_LIBRARY_PATH
    1043410855  shlibpath_overrides_runpath=no
     10856
    1043510857  # Some binutils ld are patched to set DT_RUNPATH
    10436   save_LDFLAGS=$LDFLAGS
    10437   save_libdir=$libdir
    10438   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
    10439        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
    10440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     10858  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
     10859  $as_echo_n "(cached) " >&6
     10860else
     10861  lt_cv_shlibpath_overrides_runpath=no
     10862    save_LDFLAGS=$LDFLAGS
     10863    save_libdir=$libdir
     10864    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
     10865         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
     10866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1044110867/* end confdefs.h.  */
    1044210868
     
    1045110877if ac_fn_c_try_link "$LINENO"; then :
    1045210878  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
    10453   shlibpath_overrides_runpath=yes
     10879  lt_cv_shlibpath_overrides_runpath=yes
    1045410880fi
    1045510881fi
    1045610882rm -f core conftest.err conftest.$ac_objext \
    1045710883    conftest$ac_exeext conftest.$ac_ext
    10458   LDFLAGS=$save_LDFLAGS
    10459   libdir=$save_libdir
     10884    LDFLAGS=$save_LDFLAGS
     10885    libdir=$save_libdir
     10886
     10887fi
     10888
     10889  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
    1046010890
    1046110891  # This implies no fast_install, which is unacceptable.
     
    1046610896  # Append ld.so.conf contents to the search path
    1046710897  if test -f /etc/ld.so.conf; then
    10468     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     10898    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    1046910899    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1047010900  fi
     
    1078111211
    1078211212
     11213
     11214
     11215
     11216
     11217
    1078311218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
    1078411219$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
     
    1085311288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    1085411289$as_echo_n "checking for dlopen in -ldl... " >&6; }
    10855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
     11290if ${ac_cv_lib_dl_dlopen+:} false; then :
    1085611291  $as_echo_n "(cached) " >&6
    1085711292else
     
    1088711322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    1088811323$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    10889 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
     11324if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    1089011325  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    1089111326else
     
    1090111336  *)
    1090211337    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
    10903 if test "x$ac_cv_func_shl_load" = x""yes; then :
     11338if test "x$ac_cv_func_shl_load" = xyes; then :
    1090411339  lt_cv_dlopen="shl_load"
    1090511340else
    1090611341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    1090711342$as_echo_n "checking for shl_load in -ldld... " >&6; }
    10908 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
     11343if ${ac_cv_lib_dld_shl_load+:} false; then :
    1090911344  $as_echo_n "(cached) " >&6
    1091011345else
     
    1094011375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    1094111376$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    10942 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
     11377if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    1094311378  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
    1094411379else
    1094511380  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
    10946 if test "x$ac_cv_func_dlopen" = x""yes; then :
     11381if test "x$ac_cv_func_dlopen" = xyes; then :
    1094711382  lt_cv_dlopen="dlopen"
    1094811383else
    1094911384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    1095011385$as_echo_n "checking for dlopen in -ldl... " >&6; }
    10951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
     11386if ${ac_cv_lib_dl_dlopen+:} false; then :
    1095211387  $as_echo_n "(cached) " >&6
    1095311388else
     
    1098311418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    1098411419$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    10985 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
     11420if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    1098611421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    1098711422else
    1098811423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
    1098911424$as_echo_n "checking for dlopen in -lsvld... " >&6; }
    10990 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
     11425if ${ac_cv_lib_svld_dlopen+:} false; then :
    1099111426  $as_echo_n "(cached) " >&6
    1099211427else
     
    1102211457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
    1102311458$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
    11024 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
     11459if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
    1102511460  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    1102611461else
    1102711462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
    1102811463$as_echo_n "checking for dld_link in -ldld... " >&6; }
    11029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
     11464if ${ac_cv_lib_dld_dld_link+:} false; then :
    1103011465  $as_echo_n "(cached) " >&6
    1103111466else
     
    1106111496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
    1106211497$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
    11063 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
     11498if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
    1106411499  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
    1106511500fi
     
    1110211537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
    1110311538$as_echo_n "checking whether a program can dlopen itself... " >&6; }
    11104 if test "${lt_cv_dlopen_self+set}" = set; then :
     11539if ${lt_cv_dlopen_self+:} false; then :
    1110511540  $as_echo_n "(cached) " >&6
    1110611541else
     
    1111111546  lt_status=$lt_dlunknown
    1111211547  cat > conftest.$ac_ext <<_LT_EOF
    11113 #line 11113 "configure"
     11548#line $LINENO "configure"
    1111411549#include "confdefs.h"
    1111511550
     
    1115211587#endif
    1115311588
    11154 void fnord() { int i=42;}
     11589/* When -fvisbility=hidden is used, assume the code has been annotated
     11590   correspondingly for the symbols needed.  */
     11591#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     11592int fnord () __attribute__((visibility("default")));
     11593#endif
     11594
     11595int fnord () { return 42; }
    1115511596int main ()
    1115611597{
     
    1116111602    {
    1116211603      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    11163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     11604      else
     11605        {
     11606          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     11607          else puts (dlerror ());
     11608        }
    1116411609      /* dlclose (self); */
    1116511610    }
     
    1119811643      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
    1119911644$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
    11200 if test "${lt_cv_dlopen_self_static+set}" = set; then :
     11645if ${lt_cv_dlopen_self_static+:} false; then :
    1120111646  $as_echo_n "(cached) " >&6
    1120211647else
     
    1120711652  lt_status=$lt_dlunknown
    1120811653  cat > conftest.$ac_ext <<_LT_EOF
    11209 #line 11209 "configure"
     11654#line $LINENO "configure"
    1121011655#include "confdefs.h"
    1121111656
     
    1124811693#endif
    1124911694
    11250 void fnord() { int i=42;}
     11695/* When -fvisbility=hidden is used, assume the code has been annotated
     11696   correspondingly for the symbols needed.  */
     11697#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     11698int fnord () __attribute__((visibility("default")));
     11699#endif
     11700
     11701int fnord () { return 42; }
    1125111702int main ()
    1125211703{
     
    1125711708    {
    1125811709      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    11259       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     11710      else
     11711        {
     11712          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     11713          else puts (dlerror ());
     11714        }
    1126011715      /* dlclose (self); */
    1126111716    }
     
    1141411869CC="$lt_save_CC"
    1141511870
     11871      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     11872    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     11873    (test "X$CXX" != "Xg++"))) ; then
     11874  ac_ext=cpp
     11875ac_cpp='$CXXCPP $CPPFLAGS'
     11876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     11877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     11878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
     11880$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
     11881if test -z "$CXXCPP"; then
     11882  if ${ac_cv_prog_CXXCPP+:} false; then :
     11883  $as_echo_n "(cached) " >&6
     11884else
     11885      # Double quotes because CXXCPP needs to be expanded
     11886    for CXXCPP in "$CXX -E" "/lib/cpp"
     11887    do
     11888      ac_preproc_ok=false
     11889for ac_cxx_preproc_warn_flag in '' yes
     11890do
     11891  # Use a header file that comes with gcc, so configuring glibc
     11892  # with a fresh cross-compiler works.
     11893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     11894  # <limits.h> exists even on freestanding compilers.
     11895  # On the NeXT, cc -E runs the code through the compiler's parser,
     11896  # not just through cpp. "Syntax error" is here to catch this case.
     11897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11898/* end confdefs.h.  */
     11899#ifdef __STDC__
     11900# include <limits.h>
     11901#else
     11902# include <assert.h>
     11903#endif
     11904                     Syntax error
     11905_ACEOF
     11906if ac_fn_cxx_try_cpp "$LINENO"; then :
     11907
     11908else
     11909  # Broken: fails on valid input.
     11910continue
     11911fi
     11912rm -f conftest.err conftest.i conftest.$ac_ext
     11913
     11914  # OK, works on sane cases.  Now check whether nonexistent headers
     11915  # can be detected and how.
     11916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11917/* end confdefs.h.  */
     11918#include <ac_nonexistent.h>
     11919_ACEOF
     11920if ac_fn_cxx_try_cpp "$LINENO"; then :
     11921  # Broken: success on invalid input.
     11922continue
     11923else
     11924  # Passes both tests.
     11925ac_preproc_ok=:
     11926break
     11927fi
     11928rm -f conftest.err conftest.i conftest.$ac_ext
     11929
     11930done
     11931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     11932rm -f conftest.i conftest.err conftest.$ac_ext
     11933if $ac_preproc_ok; then :
     11934  break
     11935fi
     11936
     11937    done
     11938    ac_cv_prog_CXXCPP=$CXXCPP
     11939
     11940fi
     11941  CXXCPP=$ac_cv_prog_CXXCPP
     11942else
     11943  ac_cv_prog_CXXCPP=$CXXCPP
     11944fi
     11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
     11946$as_echo "$CXXCPP" >&6; }
     11947ac_preproc_ok=false
     11948for ac_cxx_preproc_warn_flag in '' yes
     11949do
     11950  # Use a header file that comes with gcc, so configuring glibc
     11951  # with a fresh cross-compiler works.
     11952  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     11953  # <limits.h> exists even on freestanding compilers.
     11954  # On the NeXT, cc -E runs the code through the compiler's parser,
     11955  # not just through cpp. "Syntax error" is here to catch this case.
     11956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11957/* end confdefs.h.  */
     11958#ifdef __STDC__
     11959# include <limits.h>
     11960#else
     11961# include <assert.h>
     11962#endif
     11963                     Syntax error
     11964_ACEOF
     11965if ac_fn_cxx_try_cpp "$LINENO"; then :
     11966
     11967else
     11968  # Broken: fails on valid input.
     11969continue
     11970fi
     11971rm -f conftest.err conftest.i conftest.$ac_ext
     11972
     11973  # OK, works on sane cases.  Now check whether nonexistent headers
     11974  # can be detected and how.
     11975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11976/* end confdefs.h.  */
     11977#include <ac_nonexistent.h>
     11978_ACEOF
     11979if ac_fn_cxx_try_cpp "$LINENO"; then :
     11980  # Broken: success on invalid input.
     11981continue
     11982else
     11983  # Passes both tests.
     11984ac_preproc_ok=:
     11985break
     11986fi
     11987rm -f conftest.err conftest.i conftest.$ac_ext
     11988
     11989done
     11990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     11991rm -f conftest.i conftest.err conftest.$ac_ext
     11992if $ac_preproc_ok; then :
     11993
     11994else
     11995  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     11996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     11997as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
     11998See \`config.log' for more details" "$LINENO" 5; }
     11999fi
     12000
     12001ac_ext=c
     12002ac_cpp='$CPP $CPPFLAGS'
     12003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     12004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     12005ac_compiler_gnu=$ac_cv_c_compiler_gnu
     12006
     12007else
     12008  _lt_caught_CXX_error=yes
     12009fi
    1141612010
    1141712011ac_ext=cpp
     
    1144012034link_all_deplibs_CXX=unknown
    1144112035old_archive_cmds_CXX=$old_archive_cmds
     12036reload_flag_CXX=$reload_flag
     12037reload_cmds_CXX=$reload_cmds
    1144212038no_undefined_flag_CXX=
    1144312039whole_archive_flag_spec_CXX=
     
    1149512091  # Allow CC to be a program name with arguments.
    1149612092  lt_save_CC=$CC
     12093  lt_save_CFLAGS=$CFLAGS
    1149712094  lt_save_LD=$LD
    1149812095  lt_save_GCC=$GCC
     
    1151212109  test -z "${LDCXX+set}" || LD=$LDCXX
    1151312110  CC=${CXX-"c++"}
     12111  CFLAGS=$CXXFLAGS
    1151412112  compiler=$CC
    1151512113  compiler_CXX=$CC
     
    1152212120  esac
    1152312121done
    11524 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     12122cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    1152512123
    1152612124
     
    1158512183$as_echo_n "checking for non-GNU ld... " >&6; }
    1158612184fi
    11587 if test "${lt_cv_path_LD+set}" = set; then :
     12185if ${lt_cv_path_LD+:} false; then :
    1158812186  $as_echo_n "(cached) " >&6
    1158912187else
     
    1162512223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
    1162612224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
    11627 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
     12225if ${lt_cv_prog_gnu_ld+:} false; then :
    1162812226  $as_echo_n "(cached) " >&6
    1162912227else
     
    1165112249      # archiving commands below assume that GNU ld is being used.
    1165212250      if test "$with_gnu_ld" = yes; then
    11653         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    11654         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     12251        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     12252        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    1165512253
    1165612254        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     
    1168412282      # what "hidden" libraries, object files and flags are used when
    1168512283      # linking a shared library.
    11686       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     12284      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    1168712285
    1168812286    else
     
    1179412392          # Determine the default libpath from the value encoded in an empty
    1179512393          # executable.
    11796           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12394          if test "${lt_cv_aix_libpath+set}" = set; then
     12395  aix_libpath=$lt_cv_aix_libpath
     12396else
     12397  if ${lt_cv_aix_libpath__CXX+:} false; then :
     12398  $as_echo_n "(cached) " >&6
     12399else
     12400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1179712401/* end confdefs.h.  */
    1179812402
     
    1180712411if ac_fn_cxx_try_link "$LINENO"; then :
    1180812412
    11809 lt_aix_libpath_sed='
    11810     /Import File Strings/,/^$/ {
    11811         /^0/ {
    11812             s/^0  *\(.*\)$/\1/
    11813             p
    11814         }
    11815     }'
    11816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    11817 # Check for a 64-bit object if we didn't find anything.
    11818 if test -z "$aix_libpath"; then
    11819   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    11820 fi
     12413  lt_aix_libpath_sed='
     12414      /Import File Strings/,/^$/ {
     12415          /^0/ {
     12416              s/^0  *\([^ ]*\) *$/\1/
     12417              p
     12418          }
     12419      }'
     12420  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     12421  # Check for a 64-bit object if we didn't find anything.
     12422  if test -z "$lt_cv_aix_libpath__CXX"; then
     12423    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     12424  fi
    1182112425fi
    1182212426rm -f core conftest.err conftest.$ac_objext \
    1182312427    conftest$ac_exeext conftest.$ac_ext
    11824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     12428  if test -z "$lt_cv_aix_libpath__CXX"; then
     12429    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
     12430  fi
     12431
     12432fi
     12433
     12434  aix_libpath=$lt_cv_aix_libpath__CXX
     12435fi
    1182512436
    1182612437          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    1182712438
    11828           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     12439          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    1182912440        else
    1183012441          if test "$host_cpu" = ia64; then
     
    1183512446            # Determine the default libpath from the value encoded in an
    1183612447            # empty executable.
    11837             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12448            if test "${lt_cv_aix_libpath+set}" = set; then
     12449  aix_libpath=$lt_cv_aix_libpath
     12450else
     12451  if ${lt_cv_aix_libpath__CXX+:} false; then :
     12452  $as_echo_n "(cached) " >&6
     12453else
     12454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1183812455/* end confdefs.h.  */
    1183912456
     
    1184812465if ac_fn_cxx_try_link "$LINENO"; then :
    1184912466
    11850 lt_aix_libpath_sed='
    11851     /Import File Strings/,/^$/ {
    11852         /^0/ {
    11853             s/^0  *\(.*\)$/\1/
    11854             p
    11855         }
    11856     }'
    11857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    11858 # Check for a 64-bit object if we didn't find anything.
    11859 if test -z "$aix_libpath"; then
    11860   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    11861 fi
     12467  lt_aix_libpath_sed='
     12468      /Import File Strings/,/^$/ {
     12469          /^0/ {
     12470              s/^0  *\([^ ]*\) *$/\1/
     12471              p
     12472          }
     12473      }'
     12474  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     12475  # Check for a 64-bit object if we didn't find anything.
     12476  if test -z "$lt_cv_aix_libpath__CXX"; then
     12477    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     12478  fi
    1186212479fi
    1186312480rm -f core conftest.err conftest.$ac_objext \
    1186412481    conftest$ac_exeext conftest.$ac_ext
    11865 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     12482  if test -z "$lt_cv_aix_libpath__CXX"; then
     12483    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
     12484  fi
     12485
     12486fi
     12487
     12488  aix_libpath=$lt_cv_aix_libpath__CXX
     12489fi
    1186612490
    1186712491            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
     
    1187012494            no_undefined_flag_CXX=' ${wl}-bernotok'
    1187112495            allow_undefined_flag_CXX=' ${wl}-berok'
    11872             # Exported symbols can be pulled into shared objects from archives
    11873             whole_archive_flag_spec_CXX='$convenience'
     12496            if test "$with_gnu_ld" = yes; then
     12497              # We only use this code for GNU lds that support --whole-archive.
     12498              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     12499            else
     12500              # Exported symbols can be pulled into shared objects from archives
     12501              whole_archive_flag_spec_CXX='$convenience'
     12502            fi
    1187412503            archive_cmds_need_lc_CXX=yes
    1187512504            # This is similar to how AIX traditionally builds its shared
     
    1190112530
    1190212531      cygwin* | mingw* | pw32* | cegcc*)
    11903         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    11904         # as there is no search path for DLLs.
    11905         hardcode_libdir_flag_spec_CXX='-L$libdir'
    11906         allow_undefined_flag_CXX=unsupported
    11907         always_export_symbols_CXX=no
    11908         enable_shared_with_static_runtimes_CXX=yes
    11909 
    11910         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    11911           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    11912           # If the export-symbols file already is a .def file (1st line
    11913           # is EXPORTS), use it as is; otherwise, prepend...
    11914           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    11915             cp $export_symbols $output_objdir/$soname.def;
    11916           else
    11917             echo EXPORTS > $output_objdir/$soname.def;
    11918             cat $export_symbols >> $output_objdir/$soname.def;
    11919           fi~
    11920           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    11921         else
    11922           ld_shlibs_CXX=no
    11923         fi
    11924         ;;
     12532        case $GXX,$cc_basename in
     12533        ,cl* | no,cl*)
     12534          # Native MSVC
     12535          # hardcode_libdir_flag_spec is actually meaningless, as there is
     12536          # no search path for DLLs.
     12537          hardcode_libdir_flag_spec_CXX=' '
     12538          allow_undefined_flag_CXX=unsupported
     12539          always_export_symbols_CXX=yes
     12540          file_list_spec_CXX='@'
     12541          # Tell ltmain to make .lib files, not .a files.
     12542          libext=lib
     12543          # Tell ltmain to make .dll files, not .so files.
     12544          shrext_cmds=".dll"
     12545          # FIXME: Setting linknames here is a bad hack.
     12546          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     12547          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     12548              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     12549            else
     12550              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     12551            fi~
     12552            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     12553            linknames='
     12554          # The linker will not automatically build a static lib if we build a DLL.
     12555          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
     12556          enable_shared_with_static_runtimes_CXX=yes
     12557          # Don't use ranlib
     12558          old_postinstall_cmds_CXX='chmod 644 $oldlib'
     12559          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
     12560            lt_tool_outputfile="@TOOL_OUTPUT@"~
     12561            case $lt_outputfile in
     12562              *.exe|*.EXE) ;;
     12563              *)
     12564                lt_outputfile="$lt_outputfile.exe"
     12565                lt_tool_outputfile="$lt_tool_outputfile.exe"
     12566                ;;
     12567            esac~
     12568            func_to_tool_file "$lt_outputfile"~
     12569            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     12570              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     12571              $RM "$lt_outputfile.manifest";
     12572            fi'
     12573          ;;
     12574        *)
     12575          # g++
     12576          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
     12577          # as there is no search path for DLLs.
     12578          hardcode_libdir_flag_spec_CXX='-L$libdir'
     12579          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
     12580          allow_undefined_flag_CXX=unsupported
     12581          always_export_symbols_CXX=no
     12582          enable_shared_with_static_runtimes_CXX=yes
     12583
     12584          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     12585            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     12586            # If the export-symbols file already is a .def file (1st line
     12587            # is EXPORTS), use it as is; otherwise, prepend...
     12588            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     12589              cp $export_symbols $output_objdir/$soname.def;
     12590            else
     12591              echo EXPORTS > $output_objdir/$soname.def;
     12592              cat $export_symbols >> $output_objdir/$soname.def;
     12593            fi~
     12594            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     12595          else
     12596            ld_shlibs_CXX=no
     12597          fi
     12598          ;;
     12599        esac
     12600        ;;
    1192512601      darwin* | rhapsody*)
    1192612602
     
    1193012606  hardcode_automatic_CXX=yes
    1193112607  hardcode_shlibpath_var_CXX=unsupported
    11932   whole_archive_flag_spec_CXX=''
     12608  if test "$lt_cv_ld_force_load" = "yes"; then
     12609    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     12610  else
     12611    whole_archive_flag_spec_CXX=''
     12612  fi
    1193312613  link_all_deplibs_CXX=yes
    1193412614  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
     
    1193812618  esac
    1193912619  if test "$_lt_dar_can_shared" = "yes"; then
    11940     output_verbose_link_cmd=echo
     12620    output_verbose_link_cmd=func_echo_all
    1194112621    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    1194212622    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    1199112671        ;;
    1199212672
     12673      haiku*)
     12674        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     12675        link_all_deplibs_CXX=yes
     12676        ;;
     12677
    1199312678      hpux9*)
    1199412679        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
     
    1201512700            # from the output so that they don't get included in the library
    1201612701            # dependencies.
    12017             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     12702            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    1201812703            ;;
    1201912704          *)
    1202012705            if test "$GXX" = yes; then
    12021               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     12706              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    1202212707            else
    1202312708              # FIXME: insert proper C++ library support
     
    1208012765            # from the output so that they don't get included in the library
    1208112766            # dependencies.
    12082             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     12767            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    1208312768            ;;
    1208412769          *)
     
    1209012775                    ;;
    1209112776                  ia64*)
    12092                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     12777                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    1209312778                    ;;
    1209412779                  *)
    12095                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     12780                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    1209612781                    ;;
    1209712782                esac
     
    1212312808          CC*)
    1212412809            # SGI C++
    12125             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     12810            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    1212612811
    1212712812            # Archives containing C++ object files must be created using
     
    1213412819            if test "$GXX" = yes; then
    1213512820              if test "$with_gnu_ld" = no; then
    12136                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     12821                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    1213712822              else
    12138                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
     12823                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
    1213912824              fi
    1214012825            fi
     
    1216512850            # from the output so that they don't get included in the library
    1216612851            # dependencies.
    12167             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     12852            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    1216812853
    1216912854            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     
    1220212887            # Portland Group C++ compiler
    1220312888            case `$CC -V` in
    12204             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
     12889            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
    1220512890              prelink_cmds_CXX='tpldir=Template.dir~
    1220612891                rm -rf $tpldir~
    1220712892                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
    12208                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
     12893                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
    1220912894              old_archive_cmds_CXX='tpldir=Template.dir~
    1221012895                rm -rf $tpldir~
    1221112896                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
    12212                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
     12897                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
    1221312898                $RANLIB $oldlib'
    1221412899              archive_cmds_CXX='tpldir=Template.dir~
    1221512900                rm -rf $tpldir~
    1221612901                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    12217                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     12902                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    1221812903              archive_expsym_cmds_CXX='tpldir=Template.dir~
    1221912904                rm -rf $tpldir~
    1222012905                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    12221                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     12906                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
    1222212907              ;;
    12223             *) # Version 6 will use weak symbols
     12908            *) # Version 6 and above use weak symbols
    1222412909              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    1222512910              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     
    1222912914            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    1223012915            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    12231             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     12916            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    1223212917            ;;
    1223312918          cxx*)
     
    1224812933            # from the output so that they don't get included in the library
    1224912934            # dependencies.
    12250             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     12935            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
    1225112936            ;;
    12252           xl*)
     12937          xl* | mpixl* | bgxl*)
    1225312938            # IBM XL 8.0 on PPC, with GNU ld
    1225412939            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     
    1227012955              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
    1227112956              hardcode_libdir_flag_spec_CXX='-R$libdir'
    12272               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     12957              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    1227312958              compiler_needs_object_CXX=yes
    1227412959
     
    1227612961              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
    1227712962              # would be better.
    12278               output_verbose_link_cmd='echo'
     12963              output_verbose_link_cmd='func_echo_all'
    1227912964
    1228012965              # Archives containing C++ object files must be created using
     
    1234513030            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    1234613031          fi
    12347           output_verbose_link_cmd=echo
     13032          output_verbose_link_cmd=func_echo_all
    1234813033        else
    1234913034          ld_shlibs_CXX=no
     
    1238013065              osf3*)
    1238113066                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    12382                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     13067                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    1238313068                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    1238413069                ;;
    1238513070              *)
    1238613071                allow_undefined_flag_CXX=' -expect_unresolved \*'
    12387                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     13072                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    1238813073                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    1238913074                  echo "-hidden">> $lib.exp~
    12390                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
     13075                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
    1239113076                  $RM $lib.exp'
    1239213077                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
     
    1240413089            # from the output so that they don't get included in the library
    1240513090            # dependencies.
    12406             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     13091            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    1240713092            ;;
    1240813093          *)
     
    1241113096              case $host in
    1241213097                osf3*)
    12413                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     13098                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    1241413099                  ;;
    1241513100                *)
    12416                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     13101                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    1241713102                  ;;
    1241813103              esac
     
    1242413109              # what "hidden" libraries, object files and flags are used when
    1242513110              # linking a shared library.
    12426               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     13111              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    1242713112
    1242813113            else
     
    1246013145      solaris*)
    1246113146        case $cc_basename in
    12462           CC*)
     13147          CC* | sunCC*)
    1246313148            # Sun C++ 4.2, 5.x and Centerline C++
    1246413149            archive_cmds_need_lc_CXX=yes
     
    1248113166            link_all_deplibs_CXX=yes
    1248213167
    12483             output_verbose_link_cmd='echo'
     13168            output_verbose_link_cmd='func_echo_all'
    1248413169
    1248513170            # Archives containing C++ object files must be created using
     
    1250113186              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
    1250213187              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
    12503                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     13188                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    1250413189                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    12505                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     13190                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    1250613191
    1250713192                # Commands to make compiler produce verbose output that lists
    1250813193                # what "hidden" libraries, object files and flags are used when
    1250913194                # linking a shared library.
    12510                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     13195                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    1251113196              else
    1251213197                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     
    1251913204                # what "hidden" libraries, object files and flags are used when
    1252013205                # linking a shared library.
    12521                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     13206                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    1252213207              fi
    1252313208
     
    1257313258            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    1257413259            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     13260            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
     13261              '"$old_archive_cmds_CXX"
     13262            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
     13263              '"$reload_cmds_CXX"
    1257513264            ;;
    1257613265          *)
     
    1263413323_LT_EOF
    1263513324
     13325
     13326_lt_libdeps_save_CFLAGS=$CFLAGS
     13327case "$CC $CFLAGS " in #(
     13328*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     13329*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     13330esac
     13331
    1263613332if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    1263713333  (eval $ac_compile) 2>&5
     
    1264713343
    1264813344  for p in `eval "$output_verbose_link_cmd"`; do
    12649     case $p in
     13345    case ${prev}${p} in
    1265013346
    1265113347    -L* | -R* | -l*)
     
    1265613352         prev=$p
    1265713353         continue
    12658        else
    12659          prev=
    1266013354       fi
    1266113355
     13356       # Expand the sysroot to ease extracting the directories later.
     13357       if test -z "$prev"; then
     13358         case $p in
     13359         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     13360         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     13361         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     13362         esac
     13363       fi
     13364       case $p in
     13365       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     13366       esac
    1266213367       if test "$pre_test_object_deps_done" = no; then
    12663          case $p in
    12664          -L* | -R*)
     13368         case ${prev} in
     13369         -L | -R)
    1266513370           # Internal compiler library paths should come after those
    1266613371           # provided the user.  The postdeps already come after the
     
    1268213387         fi
    1268313388       fi
     13389       prev=
    1268413390       ;;
    1268513391
     13392    *.lto.$objext) ;; # Ignore GCC LTO objects
    1268613393    *.$objext)
    1268713394       # This assumes that the test object file only shows up
     
    1271913426
    1272013427$RM -f confest.$objext
     13428CFLAGS=$_lt_libdeps_save_CFLAGS
    1272113429
    1272213430# PORTME: override above test on systems where it is broken
     
    1275413462solaris*)
    1275513463  case $cc_basename in
    12756   CC*)
     13464  CC* | sunCC*)
    1275713465    # The more standards-conforming stlport4 library is
    1275813466    # incompatible with the Cstd library. Avoid specifying
     
    1281913527lt_prog_compiler_static_CXX=
    1282013528
    12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
    12822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
    1282313529
    1282413530  # C++ specific cases for pic, static, wl, etc.
     
    1286913575      # DJGPP does not support shared libraries at all
    1287013576      lt_prog_compiler_pic_CXX=
     13577      ;;
     13578    haiku*)
     13579      # PIC is the default for Haiku.
     13580      # The "-static" flag exists, but is broken.
     13581      lt_prog_compiler_static_CXX=
    1287113582      ;;
    1287213583    interix[3-9]*)
     
    1291813629          ;;
    1291913630        esac
     13631        ;;
     13632      mingw* | cygwin* | os2* | pw32* | cegcc*)
     13633        # This hack is so that the source file can tell whether it is being
     13634        # built for inclusion in a dll (and should export symbols for example).
     13635        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
    1292013636        ;;
    1292113637      dgux*)
     
    1300813724            lt_prog_compiler_static_CXX='-non_shared'
    1300913725            ;;
    13010           xlc* | xlC*)
    13011             # IBM XL 8.0 on PPC
     13726          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
     13727            # IBM XL 8.0, 9.0 on PPC and BlueGene
    1301213728            lt_prog_compiler_wl_CXX='-Wl,'
    1301313729            lt_prog_compiler_pic_CXX='-qpic'
     
    1307113787      solaris*)
    1307213788        case $cc_basename in
    13073           CC*)
     13789          CC* | sunCC*)
    1307413790            # Sun C++ 4.2, 5.x and Centerline C++
    1307513791            lt_prog_compiler_pic_CXX='-KPIC'
     
    1313613852    ;;
    1313713853esac
    13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
    13139 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
    13140 
    13141 
     13854
     13855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
     13856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
     13857if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
     13858  $as_echo_n "(cached) " >&6
     13859else
     13860  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
     13861fi
     13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
     13863$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
     13864lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
    1314213865
    1314313866#
     
    1314713870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
    1314813871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
    13149 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
     13872if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
    1315013873  $as_echo_n "(cached) " >&6
    1315113874else
     
    1316313886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1316413887   -e 's:$: $lt_compiler_flag:'`
    13165    (eval echo "\"\$as_me:13165: $lt_compile\"" >&5)
     13888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1316613889   (eval "$lt_compile" 2>conftest.err)
    1316713890   ac_status=$?
    1316813891   cat conftest.err >&5
    13169    echo "$as_me:13169: \$? = $ac_status" >&5
     13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1317013893   if (exit $ac_status) && test -s "$ac_outfile"; then
    1317113894     # The compiler can only warn and ignore the option if not recognized
    1317213895     # So say no if there are warnings other than the usual output.
    13173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     13896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    1317413897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    1317513898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    1319713920
    1319813921
     13922
     13923
    1319913924#
    1320013925# Check to make sure the static flag actually works.
     
    1320313928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    1320413929$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
    13205 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
     13930if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
    1320613931  $as_echo_n "(cached) " >&6
    1320713932else
     
    1321613941       # Append any errors to the config.log.
    1321713942       cat conftest.err 1>&5
    13218        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     13943       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    1321913944       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    1322013945       if diff conftest.exp conftest.er2 >/dev/null; then
     
    1324313968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
    1324413969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
    13245 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
     13970if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
    1324613971  $as_echo_n "(cached) " >&6
    1324713972else
     
    1326213987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1326313988   -e 's:$: $lt_compiler_flag:'`
    13264    (eval echo "\"\$as_me:13264: $lt_compile\"" >&5)
     13989   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1326513990   (eval "$lt_compile" 2>out/conftest.err)
    1326613991   ac_status=$?
    1326713992   cat out/conftest.err >&5
    13268    echo "$as_me:13268: \$? = $ac_status" >&5
     13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1326913994   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1327013995   then
    1327113996     # The compiler can only warn and ignore the option if not recognized
    1327213997     # So say no if there are warnings
    13273      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     13998     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    1327413999     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    1327514000     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    1329514020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
    1329614021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
    13297 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
     14022if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
    1329814023  $as_echo_n "(cached) " >&6
    1329914024else
     
    1331414039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1331514040   -e 's:$: $lt_compiler_flag:'`
    13316    (eval echo "\"\$as_me:13316: $lt_compile\"" >&5)
     14041   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1331714042   (eval "$lt_compile" 2>out/conftest.err)
    1331814043   ac_status=$?
    1331914044   cat out/conftest.err >&5
    13320    echo "$as_me:13320: \$? = $ac_status" >&5
     14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1332114046   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1332214047   then
    1332314048     # The compiler can only warn and ignore the option if not recognized
    1332414049     # So say no if there are warnings
    13325      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     14050     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    1332614051     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    1332714052     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    1337414099
    1337514100  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     14101  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
    1337614102  case $host_os in
    1337714103  aix[4-9]*)
    1337814104    # If we're using GNU nm, then we don't want the "-C" option.
    1337914105    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     14106    # Also, AIX nm treats weak defined symbols like other global defined
     14107    # symbols, whereas GNU nm marks them as "W".
    1338014108    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    13381       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     14109      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    1338214110    else
    1338314111      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     
    1338614114  pw32*)
    1338714115    export_symbols_cmds_CXX="$ltdll_cmds"
    13388   ;;
     14116    ;;
    1338914117  cygwin* | mingw* | cegcc*)
    13390     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
    13391   ;;
    13392   linux* | k*bsd*-gnu)
     14118    case $cc_basename in
     14119    cl*) ;;
     14120    *)
     14121      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
     14122      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
     14123      ;;
     14124    esac
     14125    ;;
     14126  linux* | k*bsd*-gnu | gnu*)
    1339314127    link_all_deplibs_CXX=no
    13394   ;;
     14128    ;;
    1339514129  *)
    1339614130    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    13397   ;;
     14131    ;;
    1339814132  esac
    13399   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
    1340014133
    1340114134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
     
    1342914162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
    1343014163$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
    13431       $RM conftest*
    13432       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    13433 
    13434       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     14164if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
     14165  $as_echo_n "(cached) " >&6
     14166else
     14167  $RM conftest*
     14168        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     14169
     14170        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    1343514171  (eval $ac_compile) 2>&5
    1343614172  ac_status=$?
    1343714173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1343814174  test $ac_status = 0; } 2>conftest.err; then
    13439         soname=conftest
    13440         lib=conftest
    13441         libobjs=conftest.$ac_objext
    13442         deplibs=
    13443         wl=$lt_prog_compiler_wl_CXX
    13444         pic_flag=$lt_prog_compiler_pic_CXX
    13445         compiler_flags=-v
    13446         linker_flags=-v
    13447         verstring=
    13448         output_objdir=.
    13449         libname=conftest
    13450         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
    13451         allow_undefined_flag_CXX=
    13452         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     14175          soname=conftest
     14176          lib=conftest
     14177          libobjs=conftest.$ac_objext
     14178          deplibs=
     14179          wl=$lt_prog_compiler_wl_CXX
     14180          pic_flag=$lt_prog_compiler_pic_CXX
     14181          compiler_flags=-v
     14182          linker_flags=-v
     14183          verstring=
     14184          output_objdir=.
     14185          libname=conftest
     14186          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
     14187          allow_undefined_flag_CXX=
     14188          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
    1345314189  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    1345414190  ac_status=$?
    1345514191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1345614192  test $ac_status = 0; }
    13457         then
    13458           archive_cmds_need_lc_CXX=no
    13459         else
    13460           archive_cmds_need_lc_CXX=yes
    13461         fi
    13462         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
    13463       else
    13464         cat conftest.err 1>&5
    13465       fi
    13466       $RM conftest*
    13467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
    13468 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
     14193          then
     14194            lt_cv_archive_cmds_need_lc_CXX=no
     14195          else
     14196            lt_cv_archive_cmds_need_lc_CXX=yes
     14197          fi
     14198          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
     14199        else
     14200          cat conftest.err 1>&5
     14201        fi
     14202        $RM conftest*
     14203
     14204fi
     14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
     14206$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
     14207      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
    1346914208      ;;
    1347014209    esac
     
    1362314362    library_names_spec='$libname.ixlibrary $libname.a'
    1362414363    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    13625     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     14364    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    1362614365    ;;
    1362714366  esac
     
    1365414393  need_lib_prefix=no
    1365514394
    13656   case $GCC,$host_os in
    13657   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
     14395  case $GCC,$cc_basename in
     14396  yes,*)
     14397    # gcc
    1365814398    library_names_spec='$libname.dll.a'
    1365914399    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     
    1367614416      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    1367714417      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    13678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     14418
    1367914419      ;;
    1368014420    mingw* | cegcc*)
    1368114421      # MinGW DLLs use traditional 'lib' prefix
    1368214422      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    13683       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    13684       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
    13685         # It is most probably a Windows format PATH printed by
    13686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    13687         # path with ; separators, and with drive letters. We can handle the
    13688         # drive letters (cygwin fileutils understands them), so leave them,
    13689         # especially as we might pass files found there to a mingw objdump,
    13690         # which wouldn't understand a cygwinified path. Ahh.
    13691         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    13692       else
    13693         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    13694       fi
    1369514423      ;;
    1369614424    pw32*)
     
    1369914427      ;;
    1370014428    esac
     14429    dynamic_linker='Win32 ld.exe'
    1370114430    ;;
    1370214431
     14432  *,cl*)
     14433    # Native MSVC
     14434    libname_spec='$name'
     14435    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     14436    library_names_spec='${libname}.dll.lib'
     14437
     14438    case $build_os in
     14439    mingw*)
     14440      sys_lib_search_path_spec=
     14441      lt_save_ifs=$IFS
     14442      IFS=';'
     14443      for lt_path in $LIB
     14444      do
     14445        IFS=$lt_save_ifs
     14446        # Let DOS variable expansion print the short 8.3 style file name.
     14447        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     14448        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     14449      done
     14450      IFS=$lt_save_ifs
     14451      # Convert to MSYS style.
     14452      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
     14453      ;;
     14454    cygwin*)
     14455      # Convert to unix form, then to dos form, then back to unix form
     14456      # but this time dos style (no spaces!) so that the unix form looks
     14457      # like /cygdrive/c/PROGRA~1:/cygdr...
     14458      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     14459      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     14460      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     14461      ;;
     14462    *)
     14463      sys_lib_search_path_spec="$LIB"
     14464      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     14465        # It is most probably a Windows format PATH.
     14466        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     14467      else
     14468        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     14469      fi
     14470      # FIXME: find the short name or the path components, as spaces are
     14471      # common. (e.g. "Program Files" -> "PROGRA~1")
     14472      ;;
     14473    esac
     14474
     14475    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     14476    postinstall_cmds='base_file=`basename \${file}`~
     14477      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     14478      dldir=$destdir/`dirname \$dlpath`~
     14479      test -d \$dldir || mkdir -p \$dldir~
     14480      $install_prog $dir/$dlname \$dldir/$dlname'
     14481    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     14482      dlpath=$dir/\$dldll~
     14483       $RM \$dlpath'
     14484    shlibpath_overrides_runpath=yes
     14485    dynamic_linker='Win32 link.exe'
     14486    ;;
     14487
    1370314488  *)
     14489    # Assume MSVC wrapper
    1370414490    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     14491    dynamic_linker='Win32 ld.exe'
    1370514492    ;;
    1370614493  esac
    13707   dynamic_linker='Win32 ld.exe'
    1370814494  # FIXME: first we should search . and the directory the executable is in
    1370914495  shlibpath_var=PATH
     
    1378814574  soname_spec='${libname}${release}${shared_ext}$major'
    1378914575  shlibpath_var=LD_LIBRARY_PATH
     14576  shlibpath_overrides_runpath=no
     14577  hardcode_into_libs=yes
     14578  ;;
     14579
     14580haiku*)
     14581  version_type=linux
     14582  need_lib_prefix=no
     14583  need_version=no
     14584  dynamic_linker="$host_os runtime_loader"
     14585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     14586  soname_spec='${libname}${release}${shared_ext}$major'
     14587  shlibpath_var=LIBRARY_PATH
     14588  shlibpath_overrides_runpath=yes
     14589  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    1379014590  hardcode_into_libs=yes
    1379114591  ;;
     
    1383314633    ;;
    1383414634  esac
    13835   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     14635  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    1383614636  postinstall_cmds='chmod 555 $lib'
     14637  # or fails outright, so override atomically:
     14638  install_override_mode=555
    1383714639  ;;
    1383814640
     
    1390114703  shlibpath_var=LD_LIBRARY_PATH
    1390214704  shlibpath_overrides_runpath=no
     14705
    1390314706  # Some binutils ld are patched to set DT_RUNPATH
    13904   save_LDFLAGS=$LDFLAGS
    13905   save_libdir=$libdir
    13906   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
    13907        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
    13908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14707  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
     14708  $as_echo_n "(cached) " >&6
     14709else
     14710  lt_cv_shlibpath_overrides_runpath=no
     14711    save_LDFLAGS=$LDFLAGS
     14712    save_libdir=$libdir
     14713    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
     14714         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
     14715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1390914716/* end confdefs.h.  */
    1391014717
     
    1391914726if ac_fn_cxx_try_link "$LINENO"; then :
    1392014727  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
    13921   shlibpath_overrides_runpath=yes
     14728  lt_cv_shlibpath_overrides_runpath=yes
    1392214729fi
    1392314730fi
    1392414731rm -f core conftest.err conftest.$ac_objext \
    1392514732    conftest$ac_exeext conftest.$ac_ext
    13926   LDFLAGS=$save_LDFLAGS
    13927   libdir=$save_libdir
     14733    LDFLAGS=$save_LDFLAGS
     14734    libdir=$save_libdir
     14735
     14736fi
     14737
     14738  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
    1392814739
    1392914740  # This implies no fast_install, which is unacceptable.
     
    1393414745  # Append ld.so.conf contents to the search path
    1393514746  if test -f /etc/ld.so.conf; then
    13936     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     14747    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    1393714748    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1393814749  fi
     
    1419815009
    1419915010
     15011
     15012
    1420015013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
    1420115014$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
     
    1424515058
    1424615059  CC=$lt_save_CC
     15060  CFLAGS=$lt_save_CFLAGS
    1424715061  LDCXX=$LD
    1424815062  LD=$lt_save_LD
     
    1431115125$as_echo_n "checking for a BSD-compatible install... " >&6; }
    1431215126if test -z "$INSTALL"; then
    14313 if test "${ac_cv_path_install+set}" = set; then :
     15127if ${ac_cv_path_install+:} false; then :
    1431415128  $as_echo_n "(cached) " >&6
    1431515129else
     
    1439815212case `pwd` in
    1439915213  *[\\\"\#\$\&\'\`$am_lf]*)
    14400     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
     15214    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
    1440115215esac
    1440215216case $srcdir in
    1440315217  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
    14404     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
     15218    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
    1440515219esac
    1440615220
     
    1448815302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1448915303$as_echo_n "checking for $ac_word... " >&6; }
    14490 if test "${ac_cv_prog_STRIP+set}" = set; then :
     15304if ${ac_cv_prog_STRIP+:} false; then :
    1449115305  $as_echo_n "(cached) " >&6
    1449215306else
     
    1452815342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1452915343$as_echo_n "checking for $ac_word... " >&6; }
    14530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
     15344if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
    1453115345  $as_echo_n "(cached) " >&6
    1453215346else
     
    1458115395$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
    1458215396if test -z "$MKDIR_P"; then
    14583   if test "${ac_cv_path_mkdir+set}" = set; then :
     15397  if ${ac_cv_path_mkdir+:} false; then :
    1458415398  $as_echo_n "(cached) " >&6
    1458515399else
     
    1462615440esac
    1462715441
    14628 for ac_prog in gawk mawk nawk awk
    14629 do
    14630   # Extract the first word of "$ac_prog", so it can be a program name with args.
    14631 set dummy $ac_prog; ac_word=$2
    14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    14633 $as_echo_n "checking for $ac_word... " >&6; }
    14634 if test "${ac_cv_prog_AWK+set}" = set; then :
    14635   $as_echo_n "(cached) " >&6
    14636 else
    14637   if test -n "$AWK"; then
    14638   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    14639 else
    14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    14641 for as_dir in $PATH
    14642 do
    14643   IFS=$as_save_IFS
    14644   test -z "$as_dir" && as_dir=.
    14645     for ac_exec_ext in '' $ac_executable_extensions; do
    14646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    14647     ac_cv_prog_AWK="$ac_prog"
    14648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    14649     break 2
    14650   fi
    14651 done
    14652   done
    14653 IFS=$as_save_IFS
    14654 
    14655 fi
    14656 fi
    14657 AWK=$ac_cv_prog_AWK
    14658 if test -n "$AWK"; then
    14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
    14660 $as_echo "$AWK" >&6; }
    14661 else
    14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    14663 $as_echo "no" >&6; }
    14664 fi
    14665 
    14666 
    14667   test -n "$AWK" && break
    14668 done
    14669 
    1467015442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    1467115443$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
    1467215444set x ${MAKE-make}
    1467315445ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    14674 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     15446if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
    1467515447  $as_echo_n "(cached) " >&6
    1467615448else
     
    1483815610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
    1483915611$as_echo_n "checking dependency style of $depcc... " >&6; }
    14840 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
     15612if ${am_cv_CC_dependencies_compiler_type+:} false; then :
    1484115613  $as_echo_n "(cached) " >&6
    1484215614else
     
    1496515737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
    1496615738$as_echo_n "checking dependency style of $depcc... " >&6; }
    14967 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
     15739if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
    1496815740  $as_echo_n "(cached) " >&6
    1496915741else
     
    1511115883set dummy $CC; ac_cc=`$as_echo "$2" |
    1511215884                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
    15113 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
     15885if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
    1511415886  $as_echo_n "(cached) " >&6
    1511515887else
     
    1530916081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1531016082$as_echo_n "checking for $ac_word... " >&6; }
    15311 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
     16083if ${ac_cv_path_DX_DOXYGEN+:} false; then :
    1531216084  $as_echo_n "(cached) " >&6
    1531316085else
     
    1535216124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1535316125$as_echo_n "checking for $ac_word... " >&6; }
    15354 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
     16126if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
    1535516127  $as_echo_n "(cached) " >&6
    1535616128else
     
    1541516187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1541616188$as_echo_n "checking for $ac_word... " >&6; }
    15417 if test "${ac_cv_path_DX_PERL+set}" = set; then :
     16189if ${ac_cv_path_DX_PERL+:} false; then :
    1541816190  $as_echo_n "(cached) " >&6
    1541916191else
     
    1545816230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1545916231$as_echo_n "checking for $ac_word... " >&6; }
    15460 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
     16232if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
    1546116233  $as_echo_n "(cached) " >&6
    1546216234else
     
    1557116343else
    1557216344
    15573 DX_FLAG_dot=1
     16345DX_FLAG_dot=0
    1557416346
    1557516347
     
    1558716359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1558816360$as_echo_n "checking for $ac_word... " >&6; }
    15589 if test "${ac_cv_path_DX_DOT+set}" = set; then :
     16361if ${ac_cv_path_DX_DOT+:} false; then :
    1559016362  $as_echo_n "(cached) " >&6
    1559116363else
     
    1563016402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1563116403$as_echo_n "checking for $ac_word... " >&6; }
    15632 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
     16404if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
    1563316405  $as_echo_n "(cached) " >&6
    1563416406else
     
    1596616738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1596716739$as_echo_n "checking for $ac_word... " >&6; }
    15968 if test "${ac_cv_path_DX_HHC+set}" = set; then :
     16740if ${ac_cv_path_DX_HHC+:} false; then :
    1596916741  $as_echo_n "(cached) " >&6
    1597016742else
     
    1600916781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1601016782$as_echo_n "checking for $ac_word... " >&6; }
    16011 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
     16783if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
    1601216784  $as_echo_n "(cached) " >&6
    1601316785else
     
    1628517057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1628617058$as_echo_n "checking for $ac_word... " >&6; }
    16287 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
     17059if ${ac_cv_path_DX_LATEX+:} false; then :
    1628817060  $as_echo_n "(cached) " >&6
    1628917061else
     
    1632817100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1632917101$as_echo_n "checking for $ac_word... " >&6; }
    16330 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
     17102if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
    1633117103  $as_echo_n "(cached) " >&6
    1633217104else
     
    1639117163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1639217164$as_echo_n "checking for $ac_word... " >&6; }
    16393 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
     17165if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
    1639417166  $as_echo_n "(cached) " >&6
    1639517167else
     
    1643417206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1643517207$as_echo_n "checking for $ac_word... " >&6; }
    16436 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
     17208if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
    1643717209  $as_echo_n "(cached) " >&6
    1643817210else
     
    1649717269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1649817270$as_echo_n "checking for $ac_word... " >&6; }
    16499 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
     17271if ${ac_cv_path_DX_DVIPS+:} false; then :
    1650017272  $as_echo_n "(cached) " >&6
    1650117273else
     
    1654017312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1654117313$as_echo_n "checking for $ac_word... " >&6; }
    16542 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
     17314if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
    1654317315  $as_echo_n "(cached) " >&6
    1654417316else
     
    1660317375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1660417376$as_echo_n "checking for $ac_word... " >&6; }
    16605 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
     17377if ${ac_cv_path_DX_EGREP+:} false; then :
    1660617378  $as_echo_n "(cached) " >&6
    1660717379else
     
    1664617418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1664717419$as_echo_n "checking for $ac_word... " >&6; }
    16648 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
     17420if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
    1664917421  $as_echo_n "(cached) " >&6
    1665017422else
     
    1677417546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1677517547$as_echo_n "checking for $ac_word... " >&6; }
    16776 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
     17548if ${ac_cv_path_DX_PDFLATEX+:} false; then :
    1677717549  $as_echo_n "(cached) " >&6
    1677817550else
     
    1681717589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1681817590$as_echo_n "checking for $ac_word... " >&6; }
    16819 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
     17591if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
    1682017592  $as_echo_n "(cached) " >&6
    1682117593else
     
    1688017652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1688117653$as_echo_n "checking for $ac_word... " >&6; }
    16882 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
     17654if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
    1688317655  $as_echo_n "(cached) " >&6
    1688417656else
     
    1692317695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1692417696$as_echo_n "checking for $ac_word... " >&6; }
    16925 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
     17697if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
    1692617698  $as_echo_n "(cached) " >&6
    1692717699else
     
    1698617758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1698717759$as_echo_n "checking for $ac_word... " >&6; }
    16988 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
     17760if ${ac_cv_path_DX_EGREP+:} false; then :
    1698917761  $as_echo_n "(cached) " >&6
    1699017762else
     
    1702917801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1703017802$as_echo_n "checking for $ac_word... " >&6; }
    17031 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
     17803if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
    1703217804  $as_echo_n "(cached) " >&6
    1703317805else
     
    1718517957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
    1718617958$as_echo_n "checking for cos in -lm... " >&6; }
    17187 if test "${ac_cv_lib_m_cos+set}" = set; then :
     17959if ${ac_cv_lib_m_cos+:} false; then :
    1718817960  $as_echo_n "(cached) " >&6
    1718917961else
     
    1721917991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
    1722017992$as_echo "$ac_cv_lib_m_cos" >&6; }
    17221 if test "x$ac_cv_lib_m_cos" = x""yes; then :
     17993if test "x$ac_cv_lib_m_cos" = xyes; then :
    1722217994  cat >>confdefs.h <<_ACEOF
    1722317995#define HAVE_LIBM 1
     
    1723018002
    1723118003# Needed to compile dim
    17232 
    1723318004
    1723418005
     
    1723918010ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1724018011
    17241 acx_pthread_ok=no
     18012ax_pthread_ok=no
    1724218013
    1724318014# We used to check for pthread.h first, but this fails if pthread.h
     
    1727418045_ACEOF
    1727518046if ac_fn_c_try_link "$LINENO"; then :
    17276   acx_pthread_ok=yes
     18047  ax_pthread_ok=yes
    1727718048fi
    1727818049rm -f core conftest.err conftest.$ac_objext \
    1727918050    conftest$ac_exeext conftest.$ac_ext
    17280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
    17281 $as_echo "$acx_pthread_ok" >&6; }
    17282         if test x"$acx_pthread_ok" = xno; then
     18051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
     18052$as_echo "$ax_pthread_ok" >&6; }
     18053        if test x"$ax_pthread_ok" = xno; then
    1728318054                PTHREAD_LIBS=""
    1728418055                PTHREAD_CFLAGS=""
     
    1729818069# which is a program returning the flags for the Pth emulation library.
    1729918070
    17300 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
     18071ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
    1730118072
    1730218073# The ordering *is* (sometimes) important.  Some notes on the
     
    1733118102        # we'll just look for -pthreads and -lpthread first:
    1733218103
    17333         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
     18104        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
     18105        ;;
     18106
     18107        *-darwin*)
     18108        ax_pthread_flags="-pthread $ax_pthread_flags"
    1733418109        ;;
    1733518110esac
    1733618111
    17337 if test x"$acx_pthread_ok" = xno; then
    17338 for flag in $acx_pthread_flags; do
     18112if test x"$ax_pthread_ok" = xno; then
     18113for flag in $ax_pthread_flags; do
    1733918114
    1734018115        case $flag in
     
    1735018125                ;;
    1735118126
    17352                 pthread-config)
    17353                 # Extract the first word of "pthread-config", so it can be a program name with args.
     18127                pthread-config)
     18128                # Extract the first word of "pthread-config", so it can be a program name with args.
    1735418129set dummy pthread-config; ac_word=$2
    1735518130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1735618131$as_echo_n "checking for $ac_word... " >&6; }
    17357 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
     18132if ${ac_cv_prog_ax_pthread_config+:} false; then :
    1735818133  $as_echo_n "(cached) " >&6
    1735918134else
    17360   if test -n "$acx_pthread_config"; then
    17361   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
     18135  if test -n "$ax_pthread_config"; then
     18136  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
    1736218137else
    1736318138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    1736818143    for ac_exec_ext in '' $ac_executable_extensions; do
    1736918144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    17370     ac_cv_prog_acx_pthread_config="yes"
     18145    ac_cv_prog_ax_pthread_config="yes"
    1737118146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1737218147    break 2
     
    1737618151IFS=$as_save_IFS
    1737718152
    17378   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
    17379 fi
    17380 fi
    17381 acx_pthread_config=$ac_cv_prog_acx_pthread_config
    17382 if test -n "$acx_pthread_config"; then
    17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
    17384 $as_echo "$acx_pthread_config" >&6; }
     18153  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
     18154fi
     18155fi
     18156ax_pthread_config=$ac_cv_prog_ax_pthread_config
     18157if test -n "$ax_pthread_config"; then
     18158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
     18159$as_echo "$ax_pthread_config" >&6; }
    1738518160else
    1738618161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     
    1738918164
    1739018165
    17391                 if test x"$acx_pthread_config" = xno; then continue; fi
    17392                 PTHREAD_CFLAGS="`pthread-config --cflags`"
    17393                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
    17394                 ;;
     18166                if test x"$ax_pthread_config" = xno; then continue; fi
     18167                PTHREAD_CFLAGS="`pthread-config --cflags`"
     18168                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
     18169                ;;
    1739518170
    1739618171                *)
     
    1741818193/* end confdefs.h.  */
    1741918194#include <pthread.h>
     18195                        static void routine(void *a) { a = 0; }
     18196                        static void *start_routine(void *a) { return a; }
    1742018197int
    1742118198main ()
    1742218199{
    17423 pthread_t th; pthread_join(th, 0);
    17424                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    17425                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
     18200pthread_t th; pthread_attr_t attr;
     18201                        pthread_create(&th, 0, start_routine, 0);
     18202                        pthread_join(th, 0);
     18203                        pthread_attr_init(&attr);
     18204                        pthread_cleanup_push(routine, 0);
     18205                        pthread_cleanup_pop(0) /* ; */
    1742618206  ;
    1742718207  return 0;
     
    1742918209_ACEOF
    1743018210if ac_fn_c_try_link "$LINENO"; then :
    17431   acx_pthread_ok=yes
     18211  ax_pthread_ok=yes
    1743218212fi
    1743318213rm -f core conftest.err conftest.$ac_objext \
     
    1743718217        CFLAGS="$save_CFLAGS"
    1743818218
    17439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
    17440 $as_echo "$acx_pthread_ok" >&6; }
    17441         if test "x$acx_pthread_ok" = xyes; then
     18219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
     18220$as_echo "$ax_pthread_ok" >&6; }
     18221        if test "x$ax_pthread_ok" = xyes; then
    1744218222                break;
    1744318223        fi
     
    1744918229
    1745018230# Various other checks:
    17451 if test "x$acx_pthread_ok" = xyes; then
     18231if test "x$ax_pthread_ok" = xyes; then
    1745218232        save_LIBS="$LIBS"
    1745318233        LIBS="$PTHREAD_LIBS $LIBS"
     
    1745618236
    1745718237        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
    17458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
     18238        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
    1745918239$as_echo_n "checking for joinable pthread attribute... " >&6; }
    17460         attr_name=unknown
    17461         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
    17462             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18240        attr_name=unknown
     18241        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
     18242            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1746318243/* end confdefs.h.  */
    1746418244#include <pthread.h>
     
    1746618246main ()
    1746718247{
    17468 int attr=$attr; return attr;
     18248int attr = $attr; return attr /* ; */
    1746918249  ;
    1747018250  return 0;
     
    1747618256rm -f core conftest.err conftest.$ac_objext \
    1747718257    conftest$ac_exeext conftest.$ac_ext
    17478         done
     18258        done
    1747918259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
    1748018260$as_echo "$attr_name" >&6; }
     
    1750018280        fi
    1750118281
     18282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
     18283$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
     18284if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
     18285  $as_echo_n "(cached) " >&6
     18286else
     18287
     18288                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     18289/* end confdefs.h.  */
     18290#include <pthread.h>
     18291int
     18292main ()
     18293{
     18294int i = PTHREAD_PRIO_INHERIT;
     18295  ;
     18296  return 0;
     18297}
     18298_ACEOF
     18299if ac_fn_c_try_link "$LINENO"; then :
     18300  ax_cv_PTHREAD_PRIO_INHERIT=yes
     18301else
     18302  ax_cv_PTHREAD_PRIO_INHERIT=no
     18303fi
     18304rm -f core conftest.err conftest.$ac_objext \
     18305    conftest$ac_exeext conftest.$ac_ext
     18306
     18307fi
     18308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
     18309$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
     18310        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
     18311
     18312$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
     18313
     18314fi
     18315
    1750218316        LIBS="$save_LIBS"
    1750318317        CFLAGS="$save_CFLAGS"
    1750418318
    1750518319        # More AIX lossage: must compile with xlc_r or cc_r
    17506         if test x"$GCC" != xyes; then
     18320        if test x"$GCC" != xyes; then
    1750718321          for ac_prog in xlc_r cc_r
    1750818322do
     
    1751118325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1751218326$as_echo_n "checking for $ac_word... " >&6; }
    17513 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
     18327if ${ac_cv_prog_PTHREAD_CC+:} false; then :
    1751418328  $as_echo_n "(cached) " >&6
    1751518329else
     
    1755018364        else
    1755118365          PTHREAD_CC=$CC
    17552         fi
     18366        fi
    1755318367else
    1755418368        PTHREAD_CC="$CC"
     
    1756018374
    1756118375# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
    17562 if test x"$acx_pthread_ok" = xyes; then
     18376if test x"$ax_pthread_ok" = xyes; then
    1756318377
    1756418378$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
     
    1756618380        :
    1756718381else
    17568         acx_pthread_ok=no
     18382        ax_pthread_ok=no
    1756918383
    1757018384fi
     
    1765818472do :
    1765918473  ac_fn_c_check_header_mongrel "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
    17660 if test "x$ac_cv_header_panel_h" = x""yes; then :
     18474if test "x$ac_cv_header_panel_h" = xyes; then :
    1766118475  cat >>confdefs.h <<_ACEOF
    1766218476#define HAVE_PANEL_H 1
     
    1767318487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
    1767418488$as_echo_n "checking for update_panels in -lpanel... " >&6; }
    17675 if test "${ac_cv_lib_panel_update_panels+set}" = set; then :
     18489if ${ac_cv_lib_panel_update_panels+:} false; then :
    1767618490  $as_echo_n "(cached) " >&6
    1767718491else
     
    1770718521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
    1770818522$as_echo "$ac_cv_lib_panel_update_panels" >&6; }
    17709 if test "x$ac_cv_lib_panel_update_panels" = x""yes; then :
     18523if test "x$ac_cv_lib_panel_update_panels" = xyes; then :
    1771018524  cat >>confdefs.h <<_ACEOF
    1771118525#define HAVE_LIBPANEL 1
     
    1773518549else
    1773618550  case $x_includes,$x_libraries in #(
    17737     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
    17738     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
     18551    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     18552    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
    1773918553  $as_echo_n "(cached) " >&6
    1774018554else
     
    1801318827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
    1801418828$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
    18015 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
     18829if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
    1801618830  $as_echo_n "(cached) " >&6
    1801718831else
     
    1804718861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
    1804818862$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
    18049 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
     18863if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
    1805018864  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
    1805118865fi
     
    1805418868      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
    1805518869$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
    18056 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
     18870if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
    1805718871  $as_echo_n "(cached) " >&6
    1805818872else
     
    1808818902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
    1808918903$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
    18090 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
     18904if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
    1809118905  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
    1809218906fi
     
    1810718921    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    1810818922    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
    18109 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
     18923if test "x$ac_cv_func_gethostbyname" = xyes; then :
    1811018924
    1811118925fi
     
    1811418928      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
    1811518929$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
    18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
     18930if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
    1811718931  $as_echo_n "(cached) " >&6
    1811818932else
     
    1814818962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
    1814918963$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
    18150 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
     18964if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
    1815118965  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
    1815218966fi
     
    1815518969        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
    1815618970$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
    18157 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
     18971if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
    1815818972  $as_echo_n "(cached) " >&6
    1815918973else
     
    1818919003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
    1819019004$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
    18191 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
     19005if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
    1819219006  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
    1819319007fi
     
    1820419018    # if connect needs -lnsl, so does gethostbyname.
    1820519019    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
    18206 if test "x$ac_cv_func_connect" = x""yes; then :
     19020if test "x$ac_cv_func_connect" = xyes; then :
    1820719021
    1820819022fi
     
    1821119025      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
    1821219026$as_echo_n "checking for connect in -lsocket... " >&6; }
    18213 if test "${ac_cv_lib_socket_connect+set}" = set; then :
     19027if ${ac_cv_lib_socket_connect+:} false; then :
    1821419028  $as_echo_n "(cached) " >&6
    1821519029else
     
    1824519059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
    1824619060$as_echo "$ac_cv_lib_socket_connect" >&6; }
    18247 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
     19061if test "x$ac_cv_lib_socket_connect" = xyes; then :
    1824819062  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
    1824919063fi
     
    1825319067    # Guillermo Gomez says -lposix is necessary on A/UX.
    1825419068    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
    18255 if test "x$ac_cv_func_remove" = x""yes; then :
     19069if test "x$ac_cv_func_remove" = xyes; then :
    1825619070
    1825719071fi
     
    1826019074      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
    1826119075$as_echo_n "checking for remove in -lposix... " >&6; }
    18262 if test "${ac_cv_lib_posix_remove+set}" = set; then :
     19076if ${ac_cv_lib_posix_remove+:} false; then :
    1826319077  $as_echo_n "(cached) " >&6
    1826419078else
     
    1829419108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
    1829519109$as_echo "$ac_cv_lib_posix_remove" >&6; }
    18296 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
     19110if test "x$ac_cv_lib_posix_remove" = xyes; then :
    1829719111  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
    1829819112fi
     
    1830219116    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    1830319117    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
    18304 if test "x$ac_cv_func_shmat" = x""yes; then :
     19118if test "x$ac_cv_func_shmat" = xyes; then :
    1830519119
    1830619120fi
     
    1830919123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
    1831019124$as_echo_n "checking for shmat in -lipc... " >&6; }
    18311 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
     19125if ${ac_cv_lib_ipc_shmat+:} false; then :
    1831219126  $as_echo_n "(cached) " >&6
    1831319127else
     
    1834319157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
    1834419158$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
    18345 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
     19159if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
    1834619160  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
    1834719161fi
     
    1836119175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
    1836219176$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
    18363 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
     19177if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
    1836419178  $as_echo_n "(cached) " >&6
    1836519179else
     
    1839519209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
    1839619210$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
    18397 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
     19211if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
    1839819212  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
    1839919213fi
     
    1840619220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5
    1840719221$as_echo_n "checking whether libXp is available... " >&6; }
    18408 if test "${lt_cv_libxp+set}" = set; then :
     19222if ${lt_cv_libxp+:} false; then :
    1840919223  $as_echo_n "(cached) " >&6
    1841019224else
     
    1849919313#
    1850019314if test "$motif_includes" = ""; then
    18501 if test "${ac_cv_motif_includes+set}" = set; then :
     19315if ${ac_cv_motif_includes+:} false; then :
    1850219316  $as_echo_n "(cached) " >&6
    1850319317else
     
    1857319387#
    1857419388if test "$motif_libraries" = ""; then
    18575 if test "${ac_cv_motif_libraries+set}" = set; then :
     19389if ${ac_cv_motif_libraries+:} false; then :
    1857619390  $as_echo_n "(cached) " >&6
    1857719391else
     
    1865819472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5
    1865919473$as_echo_n "checking whether libXp is available... " >&6; }
    18660 if test "${lt_cv_libxp+set}" = set; then :
     19474if ${lt_cv_libxp+:} false; then :
    1866119475  $as_echo_n "(cached) " >&6
    1866219476else
     
    1881819632
    1881919633        ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
    18820 if test "x$ac_cv_header_zlib_h" = x""yes; then :
     19634if test "x$ac_cv_header_zlib_h" = xyes; then :
    1882119635
    1882219636else
     
    1882719641        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
    1882819642$as_echo_n "checking for inflateEnd in -lz... " >&6; }
    18829 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
     19643if ${ac_cv_lib_z_inflateEnd+:} false; then :
    1883019644  $as_echo_n "(cached) " >&6
    1883119645else
     
    1886119675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
    1886219676$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
    18863 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
     19677if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
    1886419678  cat >>confdefs.h <<_ACEOF
    1886519679#define HAVE_LIBZ 1
     
    1893419748
    1893519749        ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
    18936 if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
     19750if test "x$ac_cv_header_GL_gl_h" = xyes; then :
    1893719751
    1893819752else
     
    1894319757        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glLoadIdentity in -lGL" >&5
    1894419758$as_echo_n "checking for glLoadIdentity in -lGL... " >&6; }
    18945 if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then :
     19759if ${ac_cv_lib_GL_glLoadIdentity+:} false; then :
    1894619760  $as_echo_n "(cached) " >&6
    1894719761else
     
    1897719791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glLoadIdentity" >&5
    1897819792$as_echo "$ac_cv_lib_GL_glLoadIdentity" >&6; }
    18979 if test "x$ac_cv_lib_GL_glLoadIdentity" = x""yes; then :
     19793if test "x$ac_cv_lib_GL_glLoadIdentity" = xyes; then :
    1898019794  cat >>confdefs.h <<_ACEOF
    1898119795#define HAVE_LIBGL 1
     
    1904819862
    1904919863        ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
    19050 if test "x$ac_cv_header_GL_glu_h" = x""yes; then :
     19864if test "x$ac_cv_header_GL_glu_h" = xyes; then :
    1905119865
    1905219866else
     
    1905719871        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewTess in -lGLU" >&5
    1905819872$as_echo_n "checking for gluNewTess in -lGLU... " >&6; }
    19059 if test "${ac_cv_lib_GLU_gluNewTess+set}" = set; then :
     19873if ${ac_cv_lib_GLU_gluNewTess+:} false; then :
    1906019874  $as_echo_n "(cached) " >&6
    1906119875else
     
    1909119905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluNewTess" >&5
    1909219906$as_echo "$ac_cv_lib_GLU_gluNewTess" >&6; }
    19093 if test "x$ac_cv_lib_GLU_gluNewTess" = x""yes; then :
     19907if test "x$ac_cv_lib_GLU_gluNewTess" = xyes; then :
    1909419908  cat >>confdefs.h <<_ACEOF
    1909519909#define HAVE_LIBGLU 1
     
    1917519989
    1917619990        ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default"
    19177 if test "x$ac_cv_header_fitsio_h" = x""yes; then :
     19991if test "x$ac_cv_header_fitsio_h" = xyes; then :
    1917819992
    1917919993else
     
    1918419998        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5
    1918519999$as_echo_n "checking for ffpss in -lcfitsio... " >&6; }
    19186 if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then :
     20000if ${ac_cv_lib_cfitsio_ffpss+:} false; then :
    1918720001  $as_echo_n "(cached) " >&6
    1918820002else
     
    1921820032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5
    1921920033$as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; }
    19220 if test "x$ac_cv_lib_cfitsio_ffpss" = x""yes; then :
     20034if test "x$ac_cv_lib_cfitsio_ffpss" = xyes; then :
    1922120035  cat >>confdefs.h <<_ACEOF
    1922220036#define HAVE_LIBCFITSIO 1
     
    1930220116
    1930320117        ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default"
    19304 if test "x$ac_cv_header_CCfits_CCfits" = x""yes; then :
     20118if test "x$ac_cv_header_CCfits_CCfits" = xyes; then :
    1930520119
    1930620120else
     
    1931120125        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5
    1931220126$as_echo_n "checking for main in -lCCfits... " >&6; }
    19313 if test "${ac_cv_lib_CCfits_main+set}" = set; then :
     20127if ${ac_cv_lib_CCfits_main+:} false; then :
    1931420128  $as_echo_n "(cached) " >&6
    1931520129else
     
    1933920153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5
    1934020154$as_echo "$ac_cv_lib_CCfits_main" >&6; }
    19341 if test "x$ac_cv_lib_CCfits_main" = x""yes; then :
     20155if test "x$ac_cv_lib_CCfits_main" = xyes; then :
    1934220156  cat >>confdefs.h <<_ACEOF
    1934320157#define HAVE_LIBCCFITS 1
     
    1940920223        case "$MYSQL_C_INC_DIR" in
    1941020224                /* ) ;;
    19411                 * )  as_fn_error $? "The MySQL include directory ($MYSQL_C_INC_DIR) must be an absolute path." "$LINENO" 5  ;;
     20225                * )  as_fn_error $? "The MySQL include directory ($MYSQL_C_INC_DIR) must be an absolute path." "$LINENO" 5 ;;
    1941220226        esac
    1941320227
     
    1944520259                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL++ library location" >&5
    1944620260$as_echo_n "checking for MySQL++ library location... " >&6; }
    19447 if test "${ac_cv_mysqlpp_lib+set}" = set; then :
     20261if ${ac_cv_mysqlpp_lib+:} false; then :
    1944820262  $as_echo_n "(cached) " >&6
    1944920263else
     
    1946720281                case "$ac_cv_mysqlpp_lib" in
    1946820282                        /* ) ;;
    19469                         * )  as_fn_error $? "The MySQL++ library directory ($ac_cv_mysqlpp_lib) must be an absolute path." "$LINENO" 5  ;;
     20283                        * )  as_fn_error $? "The MySQL++ library directory ($ac_cv_mysqlpp_lib) must be an absolute path." "$LINENO" 5 ;;
    1947020284                esac
    1947120285
     
    1947820292                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL++ include path" >&5
    1947920293$as_echo_n "checking for MySQL++ include path... " >&6; }
    19480 if test "${ac_cv_mysqlpp_inc+set}" = set; then :
     20294if ${ac_cv_mysqlpp_inc+:} false; then :
    1948120295  $as_echo_n "(cached) " >&6
    1948220296else
     
    1949820312                case "$ac_cv_mysqlpp_inc" in
    1949920313                        /* ) ;;
    19500                         * )  as_fn_error $? "The MySQL++ header directory ($ac_cv_mysqlpp_inc) must be an absolute path." "$LINENO" 5  ;;
     20314                        * )  as_fn_error $? "The MySQL++ header directory ($ac_cv_mysqlpp_inc) must be an absolute path." "$LINENO" 5 ;;
    1950120315                esac
    1950220316
     
    1954720361  withval=$with_boost;
    1954820362    if test "$withval" = "no"; then
    19549                 want_boost="no"
     20363        want_boost="no"
    1955020364    elif test "$withval" = "yes"; then
    1955120365        want_boost="yes"
    1955220366        ac_boost_path=""
    1955320367    else
    19554             want_boost="yes"
     20368        want_boost="yes"
    1955520369        ac_boost_path="$withval"
    19556         fi
     20370    fi
    1955720371
    1955820372else
     
    1956620380if test "${with_boost_libdir+set}" = set; then :
    1956720381  withval=$with_boost_libdir;
    19568         if test -d $withval
     20382        if test -d "$withval"
    1956920383        then
    1957020384                ac_boost_lib_path="$withval"
     
    1958020394
    1958120395if test "x$want_boost" = "xyes"; then
    19582         boost_lib_version_req=1.40
    19583         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
    19584         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
    19585         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
    19586         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
    19587         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
    19588                 boost_lib_version_req_sub_minor="0"
    19589         fi
    19590         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
    19591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
     20396    boost_lib_version_req=1.40
     20397    boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
     20398    boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
     20399    boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
     20400    boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
     20401    if test "x$boost_lib_version_req_sub_minor" = "x" ; then
     20402        boost_lib_version_req_sub_minor="0"
     20403        fi
     20404    WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
     20405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
    1959220406$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
    19593         succeeded=no
    19594 
    19595                                 if test "$ac_boost_path" != ""; then
    19596                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
    19597                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
    19598         else
    19599                 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
    19600                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
    19601                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
    19602                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
    19603                                 break;
    19604                         fi
    19605                 done
    19606         fi
     20407    succeeded=no
     20408
     20409                        libsubdirs="lib"
     20410    ax_arch=`uname -m`
     20411    if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
     20412        libsubdirs="lib64 lib lib64"
     20413    fi
     20414
     20415                if test "$ac_boost_path" != ""; then
     20416        BOOST_CPPFLAGS="-I$ac_boost_path/include"
     20417        for ac_boost_path_tmp in $libsubdirs; do
     20418                if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
     20419                        BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
     20420                        break
     20421                fi
     20422        done
     20423    elif test "$cross_compiling" != yes; then
     20424        for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
     20425            if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
     20426                for libsubdir in $libsubdirs ; do
     20427                    if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     20428                done
     20429                BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
     20430                BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
     20431                break;
     20432            fi
     20433        done
     20434    fi
    1960720435
    1960820436            if test "$ac_boost_lib_path" != ""; then
     
    1961020438    fi
    1961120439
    19612         CPPFLAGS_SAVED="$CPPFLAGS"
    19613         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
    19614         export CPPFLAGS
    19615 
    19616         LDFLAGS_SAVED="$LDFLAGS"
    19617         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
    19618         export LDFLAGS
    19619 
    19620         ac_ext=cpp
     20440    CPPFLAGS_SAVED="$CPPFLAGS"
     20441    CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
     20442    export CPPFLAGS
     20443
     20444    LDFLAGS_SAVED="$LDFLAGS"
     20445    LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
     20446    export LDFLAGS
     20447
     20448
     20449    ac_ext=cpp
    1962120450ac_cpp='$CXXCPP $CPPFLAGS'
    1962220451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    1962420453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1962520454
    19626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1962720456/* end confdefs.h.  */
    1962820457
    19629         #include <boost/version.hpp>
     20458    #include <boost/version.hpp>
    1963020459
    1963120460int
     
    1963320462{
    1963420463
    19635         #if BOOST_VERSION >= $WANT_BOOST_VERSION
    19636         // Everything is okay
    19637         #else
    19638         #  error Boost version is too old
    19639         #endif
     20464    #if BOOST_VERSION >= $WANT_BOOST_VERSION
     20465    // Everything is okay
     20466    #else
     20467    #  error Boost version is too old
     20468    #endif
    1964020469
    1964120470  ;
     
    1964720476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    1964820477$as_echo "yes" >&6; }
    19649         succeeded=yes
    19650         found_system=yes
     20478    succeeded=yes
     20479    found_system=yes
    1965120480
    1965220481fi
    1965320482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    19654         ac_ext=cpp
     20483    ac_ext=cpp
    1965520484ac_cpp='$CXXCPP $CPPFLAGS'
    1965620485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    1966120490
    1966220491
    19663                         if test "x$succeeded" != "xyes"; then
    19664                 _version=0
    19665                 if test "$ac_boost_path" != ""; then
    19666                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
    19667                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
    19668                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
    19669                                         V_CHECK=`expr $_version_tmp \> $_version`
    19670                                         if test "$V_CHECK" = "1" ; then
    19671                                                 _version=$_version_tmp
    19672                                         fi
    19673                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
    19674                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
    19675                                 done
    19676                         fi
    19677                 else
    19678                         for ac_boost_path in /usr /usr/local /opt /opt/local ; do
    19679                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
    19680                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
    19681                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
    19682                                                 V_CHECK=`expr $_version_tmp \> $_version`
    19683                                                 if test "$V_CHECK" = "1" ; then
    19684                                                         _version=$_version_tmp
    19685                                                         best_path=$ac_boost_path
    19686                                                 fi
    19687                                         done
    19688                                 fi
    19689                         done
    19690 
    19691                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
    19692                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
    19693             if test "$ac_boost_lib_path" = ""
    19694             then
    19695                BOOST_LDFLAGS="-L$best_path/lib"
     20492            if test "x$succeeded" != "xyes"; then
     20493        _version=0
     20494        if test "$ac_boost_path" != ""; then
     20495            if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
     20496                for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
     20497                    _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
     20498                    V_CHECK=`expr $_version_tmp \> $_version`
     20499                    if test "$V_CHECK" = "1" ; then
     20500                        _version=$_version_tmp
     20501                    fi
     20502                    VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
     20503                    BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
     20504                done
    1969620505            fi
    19697 
    19698                         if test "x$BOOST_ROOT" != "x"; then
    19699                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
    19700                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
    19701                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
    19702                                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
    19703                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
     20506        else
     20507            if test "$cross_compiling" != yes; then
     20508                for ac_boost_path in /usr /usr/local /opt /opt/local ; do
     20509                    if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
     20510                        for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
     20511                            _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
     20512                            V_CHECK=`expr $_version_tmp \> $_version`
     20513                            if test "$V_CHECK" = "1" ; then
     20514                                _version=$_version_tmp
     20515                                best_path=$ac_boost_path
     20516                            fi
     20517                        done
     20518                    fi
     20519                done
     20520
     20521                VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
     20522                BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
     20523                if test "$ac_boost_lib_path" = ""; then
     20524                    for libsubdir in $libsubdirs ; do
     20525                        if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     20526                    done
     20527                    BOOST_LDFLAGS="-L$best_path/$libsubdir"
     20528                fi
     20529            fi
     20530
     20531            if test "x$BOOST_ROOT" != "x"; then
     20532                for libsubdir in $libsubdirs ; do
     20533                    if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
     20534                done
     20535                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
     20536                    version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
     20537                    stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
     20538                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
     20539                    V_CHECK=`expr $stage_version_shorten \>\= $_version`
    1970420540                    if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
    19705                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
     20541                        { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
    1970620542$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
    19707                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
    19708                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
    19709                                         fi
    19710                                 fi
    19711                         fi
    19712                 fi
    19713 
    19714                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
    19715                 export CPPFLAGS
    19716                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
    19717                 export LDFLAGS
    19718 
    19719                 ac_ext=cpp
     20543                        BOOST_CPPFLAGS="-I$BOOST_ROOT"
     20544                        BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
     20545                    fi
     20546                fi
     20547            fi
     20548        fi
     20549
     20550        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
     20551        export CPPFLAGS
     20552        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
     20553        export LDFLAGS
     20554
     20555        ac_ext=cpp
    1972020556ac_cpp='$CXXCPP $CPPFLAGS'
    1972120557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    1972320559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1972420560
    19725                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     20561            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1972620562/* end confdefs.h.  */
    1972720563
    19728                 #include <boost/version.hpp>
     20564        #include <boost/version.hpp>
    1972920565
    1973020566int
     
    1973220568{
    1973320569
    19734                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
    19735                 // Everything is okay
    19736                 #else
    19737                 #  error Boost version is too old
    19738                 #endif
     20570        #if BOOST_VERSION >= $WANT_BOOST_VERSION
     20571        // Everything is okay
     20572        #else
     20573        #  error Boost version is too old
     20574        #endif
    1973920575
    1974020576  ;
     
    1974420580if ac_fn_cxx_try_compile "$LINENO"; then :
    1974520581
    19746                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     20582            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    1974720583$as_echo "yes" >&6; }
    19748                 succeeded=yes
    19749                 found_system=yes
     20584        succeeded=yes
     20585        found_system=yes
    1975020586
    1975120587fi
    1975220588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    19753                 ac_ext=cpp
     20589        ac_ext=cpp
    1975420590ac_cpp='$CXXCPP $CPPFLAGS'
    1975520591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    1975720593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1975820594
    19759         fi
    19760 
    19761         if test "$succeeded" != "yes" ; then
    19762                 if test "$_version" = "0" ; then
    19763                         as_fn_error $? "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
    19764                 else
    19765                         { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
     20595    fi
     20596
     20597    if test "$succeeded" != "yes" ; then
     20598        if test "$_version" = "0" ; then
     20599            { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
     20600$as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
     20601        else
     20602            { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
    1976620603$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
    19767                 fi
    19768         else
     20604        fi
     20605        # execute ACTION-IF-NOT-FOUND (if present):
     20606        as_fn_error $? "The boost C++ libraries (>=1.40) are not properly installed." "$LINENO" 5
     20607
     20608    else
    1976920609
    1977020610
     
    1977220612$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
    1977320613
    19774         fi
    19775 
    19776         CPPFLAGS="$CPPFLAGS_SAVED"
    19777         LDFLAGS="$LDFLAGS_SAVED"
     20614        # execute ACTION-IF-FOUND (if present):
     20615        :
     20616    fi
     20617
     20618    CPPFLAGS="$CPPFLAGS_SAVED"
     20619    LDFLAGS="$LDFLAGS_SAVED"
    1977820620fi
    1977920621
     
    1980320645        else
    1980420646                    want_boost="yes"
    19805                 ax_boost_user_system_lib="$withval"
     20647                ax_boost_user_system_lib="$withval"
    1980620648                fi
    1980720649
     
    1982520667        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
    1982620668$as_echo_n "checking whether the Boost::System library is available... " >&6; }
    19827 if test "${ax_cv_boost_system+set}" = set; then :
     20669if ${ax_cv_boost_system+:} false; then :
    1982820670  $as_echo_n "(cached) " >&6
    1982920671else
     
    1987420716                        LDFLAGS_SAVE=$LDFLAGS
    1987520717            if test "x$ax_boost_user_system_lib" = "x"; then
    19876                 for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
     20718                for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
    1987720719                     ax_lib=${libextension}
    1987820720                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
    1987920721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    1988020722$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    19881 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     20723if eval \${$as_ac_Lib+:} false; then :
    1988220724  $as_echo_n "(cached) " >&6
    1988320725else
     
    1992020762fi
    1992120763
    19922                                 done
     20764                                done
    1992320765                if test "x$link_system" != "xyes"; then
    1992420766                for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
     
    1992720769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    1992820770$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    19929 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     20771if eval \${$as_ac_Lib+:} false; then :
    1993020772  $as_echo_n "(cached) " >&6
    1993120773else
     
    1996820810fi
    1996920811
    19970                                 done
     20812                                done
    1997120813                fi
    1997220814
     
    1997620818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    1997720819$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    19978 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     20820if eval \${$as_ac_Lib+:} false; then :
    1997920821  $as_echo_n "(cached) " >&6
    1998020822else
     
    2002020862
    2002120863            fi
     20864            if test "x$ax_lib" = "x"; then
     20865                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     20866            fi
    2002220867                        if test "x$link_system" = "xno"; then
    2002320868                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2002620871
    2002720872                CPPFLAGS="$CPPFLAGS_SAVED"
    20028         LDFLAGS="$LDFLAGS_SAVED"
     20873        LDFLAGS="$LDFLAGS_SAVED"
    2002920874        fi
    2003020875
     
    2004520890        else
    2004620891                    want_boost="yes"
    20047                 ax_boost_user_asio_lib="$withval"
     20892                ax_boost_user_asio_lib="$withval"
    2004820893                fi
    2004920894
     
    2006620911        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
    2006720912$as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
    20068 if test "${ax_cv_boost_asio+set}" = set; then :
     20913if ${ax_cv_boost_asio+:} false; then :
    2006920914  $as_echo_n "(cached) " >&6
    2007020915else
     
    2012320968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
    2012420969$as_echo_n "checking for main in -l$ax_lib... " >&6; }
    20125 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     20970if eval \${$as_ac_Lib+:} false; then :
    2012620971  $as_echo_n "(cached) " >&6
    2012720972else
     
    2015821003fi
    2015921004
    20160                                 done
     21005                                done
    2016121006            else
    2016221007               for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
     
    2016421009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
    2016521010$as_echo_n "checking for main in -l$ax_lib... " >&6; }
    20166 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21011if eval \${$as_ac_Lib+:} false; then :
    2016721012  $as_echo_n "(cached) " >&6
    2016821013else
     
    2020221047
    2020321048            fi
     21049            if test "x$ax_lib" = "x"; then
     21050                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     21051            fi
    2020421052                        if test "x$link_asio" = "xno"; then
    2020521053                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2020821056
    2020921057                CPPFLAGS="$CPPFLAGS_SAVED"
    20210         LDFLAGS="$LDFLAGS_SAVED"
     21058        LDFLAGS="$LDFLAGS_SAVED"
    2021121059        fi
    2021221060
     
    2022721075        else
    2022821076                    want_boost="yes"
    20229                 ax_boost_user_date_time_lib="$withval"
     21077                ax_boost_user_date_time_lib="$withval"
    2023021078                fi
    2023121079
     
    2024821096        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Date_Time library is available" >&5
    2024921097$as_echo_n "checking whether the Boost::Date_Time library is available... " >&6; }
    20250 if test "${ax_cv_boost_date_time+set}" = set; then :
     21098if ${ax_cv_boost_date_time+:} false; then :
    2025121099  $as_echo_n "(cached) " >&6
    2025221100else
     
    2029221140            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
    2029321141            if test "x$ax_boost_user_date_time_lib" = "x"; then
    20294                 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
     21142                for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
    2029521143                     ax_lib=${libextension}
    2029621144                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
    2029721145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2029821146$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20299 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21147if eval \${$as_ac_Lib+:} false; then :
    2030021148  $as_echo_n "(cached) " >&6
    2030121149else
     
    2033821186fi
    2033921187
    20340                                 done
     21188                                done
    2034121189                if test "x$link_date_time" != "xyes"; then
    2034221190                for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do
     
    2034521193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2034621194$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20347 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21195if eval \${$as_ac_Lib+:} false; then :
    2034821196  $as_echo_n "(cached) " >&6
    2034921197else
     
    2038621234fi
    2038721235
    20388                                 done
     21236                                done
    2038921237                fi
    2039021238
     
    2039421242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
    2039521243$as_echo_n "checking for main in -l$ax_lib... " >&6; }
    20396 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21244if eval \${$as_ac_Lib+:} false; then :
    2039721245  $as_echo_n "(cached) " >&6
    2039821246else
     
    2043221280
    2043321281            fi
     21282            if test "x$ax_lib" = "x"; then
     21283                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     21284            fi
    2043421285                        if test "x$link_date_time" != "xyes"; then
    2043521286                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2043821289
    2043921290                CPPFLAGS="$CPPFLAGS_SAVED"
    20440         LDFLAGS="$LDFLAGS_SAVED"
     21291        LDFLAGS="$LDFLAGS_SAVED"
    2044121292        fi
    2044221293
     
    2045721308        else
    2045821309                    want_boost="yes"
    20459                 ax_boost_user_filesystem_lib="$withval"
     21310                ax_boost_user_filesystem_lib="$withval"
    2046021311                fi
    2046121312
     
    2048221333        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
    2048321334$as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
    20484 if test "${ax_cv_boost_filesystem+set}" = set; then :
     21335if ${ax_cv_boost_filesystem+:} false; then :
    2048521336  $as_echo_n "(cached) " >&6
    2048621337else
     
    2052621377            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
    2052721378            if test "x$ax_boost_user_filesystem_lib" = "x"; then
    20528                 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
     21379                for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
    2052921380                     ax_lib=${libextension}
    2053021381                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
    2053121382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2053221383$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20533 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21384if eval \${$as_ac_Lib+:} false; then :
    2053421385  $as_echo_n "(cached) " >&6
    2053521386else
     
    2057221423fi
    2057321424
    20574                                 done
    20575                 if test "x$link_program_options" != "xyes"; then
     21425                                done
     21426                if test "x$link_filesystem" != "xyes"; then
    2057621427                for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
    2057721428                     ax_lib=${libextension}
     
    2057921430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2058021431$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20581 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21432if eval \${$as_ac_Lib+:} false; then :
    2058221433  $as_echo_n "(cached) " >&6
    2058321434else
     
    2062021471fi
    2062121472
    20622                                 done
    20623                     fi
     21473                                done
     21474                    fi
    2062421475            else
    2062521476               for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
     
    2062721478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2062821479$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20629 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21480if eval \${$as_ac_Lib+:} false; then :
    2063021481  $as_echo_n "(cached) " >&6
    2063121482else
     
    2067121522
    2067221523            fi
     21524            if test "x$ax_lib" = "x"; then
     21525                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     21526            fi
    2067321527                        if test "x$link_filesystem" != "xyes"; then
    2067421528                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2067721531
    2067821532                CPPFLAGS="$CPPFLAGS_SAVED"
    20679                 LDFLAGS="$LDFLAGS_SAVED"
     21533                LDFLAGS="$LDFLAGS_SAVED"
    2068021534                LIBS="$LIBS_SAVED"
    2068121535        fi
     
    2069721551        else
    2069821552                    want_boost="yes"
    20699                 ax_boost_user_program_options_lib="$withval"
     21553                ax_boost_user_program_options_lib="$withval"
    2070021554                fi
    2070121555
     
    2071721571                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
    2071821572$as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
    20719 if test "${ax_cv_boost_program_options+set}" = set; then :
     21573if ${ax_cv_boost_program_options+:} false; then :
    2072021574  $as_echo_n "(cached) " >&6
    2072121575else
     
    2072621580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2072721581
    20728                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     21582                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2072921583/* end confdefs.h.  */
    2073021584#include <boost/program_options.hpp>
     
    2074521599fi
    2074621600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    20747                                         ac_ext=cpp
     21601                                        ac_ext=cpp
    2074821602ac_cpp='$CXXCPP $CPPFLAGS'
    2074921603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2076621620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2076721621$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20768 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21622if eval \${$as_ac_Lib+:} false; then :
    2076921623  $as_echo_n "(cached) " >&6
    2077021624else
     
    2080721661fi
    2080821662
    20809                                 done
     21663                                done
    2081021664                if test "x$link_program_options" != "xyes"; then
    2081121665                for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
     
    2081421668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2081521669$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20816 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21670if eval \${$as_ac_Lib+:} false; then :
    2081721671  $as_echo_n "(cached) " >&6
    2081821672else
     
    2085521709fi
    2085621710
    20857                                 done
     21711                                done
    2085821712                fi
    2085921713                else
     
    2086221716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
    2086321717$as_echo_n "checking for main in -l$ax_lib... " >&6; }
    20864 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21718if eval \${$as_ac_Lib+:} false; then :
    2086521719  $as_echo_n "(cached) " >&6
    2086621720else
     
    2089921753                  done
    2090021754                fi
     21755            if test "x$ax_lib" = "x"; then
     21756                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     21757            fi
    2090121758                                if test "x$link_program_options" != "xyes"; then
    2090221759                                        as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2090421761                fi
    2090521762                CPPFLAGS="$CPPFLAGS_SAVED"
    20906         LDFLAGS="$LDFLAGS_SAVED"
     21763        LDFLAGS="$LDFLAGS_SAVED"
    2090721764        fi
    2090821765
     
    2092321780        else
    2092421781                    want_boost="yes"
    20925                 ax_boost_user_regex_lib="$withval"
     21782                ax_boost_user_regex_lib="$withval"
    2092621783                fi
    2092721784
     
    2094421801        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Regex library is available" >&5
    2094521802$as_echo_n "checking whether the Boost::Regex library is available... " >&6; }
    20946 if test "${ax_cv_boost_regex+set}" = set; then :
     21803if ${ax_cv_boost_regex+:} false; then :
    2094721804  $as_echo_n "(cached) " >&6
    2094821805else
     
    2098721844            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
    2098821845            if test "x$ax_boost_user_regex_lib" = "x"; then
    20989                 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
     21846                for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
    2099021847                     ax_lib=${libextension}
    2099121848                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
    2099221849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2099321850$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    20994 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21851if eval \${$as_ac_Lib+:} false; then :
    2099521852  $as_echo_n "(cached) " >&6
    2099621853else
     
    2103321890fi
    2103421891
    21035                                 done
     21892                                done
    2103621893                if test "x$link_regex" != "xyes"; then
    2103721894                for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do
     
    2104021897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2104121898$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    21042 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21899if eval \${$as_ac_Lib+:} false; then :
    2104321900  $as_echo_n "(cached) " >&6
    2104421901else
     
    2108121938fi
    2108221939
    21083                                 done
     21940                                done
    2108421941                fi
    2108521942
     
    2108921946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
    2109021947$as_echo_n "checking for main in -l$ax_lib... " >&6; }
    21091 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     21948if eval \${$as_ac_Lib+:} false; then :
    2109221949  $as_echo_n "(cached) " >&6
    2109321950else
     
    2112621983               done
    2112721984            fi
     21985            if test "x$ax_lib" = "x"; then
     21986                as_fn_error $? "Could not find a version of the Boost::Regex library!" "$LINENO" 5
     21987            fi
    2112821988                        if test "x$link_regex" != "xyes"; then
    2112921989                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
     
    2113221992
    2113321993                CPPFLAGS="$CPPFLAGS_SAVED"
    21134         LDFLAGS="$LDFLAGS_SAVED"
     21994        LDFLAGS="$LDFLAGS_SAVED"
    2113521995        fi
    2113621996
     
    2115122011        else
    2115222012                    want_boost="yes"
    21153                 ax_boost_user_thread_lib="$withval"
     22013                ax_boost_user_thread_lib="$withval"
    2115422014                fi
    2115522015
     
    2117322033        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
    2117422034$as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
    21175 if test "${ax_cv_boost_thread+set}" = set; then :
     22035if ${ax_cv_boost_thread+:} false; then :
    2117622036  $as_echo_n "(cached) " >&6
    2117722037else
     
    2118422044                         CXXFLAGS_SAVE=$CXXFLAGS
    2118522045
    21186                          if test "x$build_os" = "xsolaris" ; then
    21187                                  CXXFLAGS="-pthreads $CXXFLAGS"
    21188                          elif test "x$build_os" = "xming32" ; then
     22046                         if test "x$host_os" = "xsolaris" ; then
     22047                                 CXXFLAGS="-pthreads $CXXFLAGS"
     22048                         elif test "x$host_os" = "xmingw32" ; then
    2118922049                                 CXXFLAGS="-mthreads $CXXFLAGS"
    2119022050                         else
     
    2122122081$as_echo "$ax_cv_boost_thread" >&6; }
    2122222082                if test "x$ax_cv_boost_thread" = "xyes"; then
    21223            if test "x$build_os" = "xsolaris" ; then
     22083           if test "x$host_os" = "xsolaris" ; then
    2122422084                          BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
    21225                    elif test "x$build_os" = "xming32" ; then
     22085                   elif test "x$host_os" = "xmingw32" ; then
    2122622086                          BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
    2122722087                   else
     
    2123722097
    2123822098                        LDFLAGS_SAVE=$LDFLAGS
    21239                         case "x$build_os" in
     22099                        case "x$host_os" in
    2124022100                          *bsd* )
    2124122101                               LDFLAGS="-pthread $LDFLAGS"
     
    2124922109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2125022110$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    21251 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     22111if eval \${$as_ac_Lib+:} false; then :
    2125222112  $as_echo_n "(cached) " >&6
    2125322113else
     
    2129022150fi
    2129122151
    21292                                 done
     22152                                done
    2129322153                if test "x$link_thread" != "xyes"; then
    2129422154                for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
     
    2129722157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2129822158$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    21299 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     22159if eval \${$as_ac_Lib+:} false; then :
    2130022160  $as_echo_n "(cached) " >&6
    2130122161else
     
    2133822198fi
    2133922199
    21340                                 done
     22200                                done
    2134122201                fi
    2134222202
     
    2134622206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
    2134722207$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
    21348 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
     22208if eval \${$as_ac_Lib+:} false; then :
    2134922209  $as_echo_n "(cached) " >&6
    2135022210else
     
    2139022250
    2139122251            fi
     22252            if test "x$ax_lib" = "x"; then
     22253                as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
     22254            fi
    2139222255                        if test "x$link_thread" = "xno"; then
    2139322256                                as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
    2139422257                        else
    21395                            case "x$build_os" in
     22258                           case "x$host_os" in
    2139622259                              *bsd* )
    21397                                 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
     22260                                BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
    2139822261                              break;
    2139922262                              ;;
     
    2140422267
    2140522268                CPPFLAGS="$CPPFLAGS_SAVED"
    21406         LDFLAGS="$LDFLAGS_SAVED"
     22269        LDFLAGS="$LDFLAGS_SAVED"
    2140722270        fi
    2140822271
     
    2151222375
    2151322376
     22377
    2151422378if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
    2151522379        if test -n "$ac_tool_prefix"; then
     
    2151822382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2151922383$as_echo_n "checking for $ac_word... " >&6; }
    21520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
     22384if ${ac_cv_path_PKG_CONFIG+:} false; then :
    2152122385  $as_echo_n "(cached) " >&6
    2152222386else
     
    2156122425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2156222426$as_echo_n "checking for $ac_word... " >&6; }
    21563 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
     22427if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
    2156422428  $as_echo_n "(cached) " >&6
    2156522429else
     
    2164722511  test $ac_status = 0; }; then
    2164822512  pkg_cv_QT4_CORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
     22513                      test "x$?" != "x0" && pkg_failed=yes
    2164922514else
    2165022515  pkg_failed=yes
     
    2166322528  test $ac_status = 0; }; then
    2166422529  pkg_cv_QT4_CORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
     22530                      test "x$?" != "x0" && pkg_failed=yes
    2166522531else
    2166622532  pkg_failed=yes
     
    2168222548fi
    2168322549        if test $_pkg_short_errors_supported = yes; then
    21684                 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore" 2>&1`
     22550                QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore" 2>&1`
    2168522551        else
    21686                 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore" 2>&1`
     22552                QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore" 2>&1`
    2168722553        fi
    2168822554        # Put the nasty error message in config.log where it belongs
     
    2171822584 elif test -n "$PKG_CONFIG"; then
    2171922585    if test -n "$PKG_CONFIG" && \
    21720     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui\""; } >&5
    21721   ($PKG_CONFIG --exists --print-errors "QtCore QtGui") 2>&5
     22586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtSql\""; } >&5
     22587  ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtSql") 2>&5
    2172222588  ac_status=$?
    2172322589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2172422590  test $ac_status = 0; }; then
    21725   pkg_cv_QT4_FRONTEND_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui" 2>/dev/null`
     22591  pkg_cv_QT4_FRONTEND_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui QtSql" 2>/dev/null`
     22592                      test "x$?" != "x0" && pkg_failed=yes
    2172622593else
    2172722594  pkg_failed=yes
     
    2173422601 elif test -n "$PKG_CONFIG"; then
    2173522602    if test -n "$PKG_CONFIG" && \
    21736     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui\""; } >&5
    21737   ($PKG_CONFIG --exists --print-errors "QtCore QtGui") 2>&5
     22603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtSql\""; } >&5
     22604  ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtSql") 2>&5
    2173822605  ac_status=$?
    2173922606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2174022607  test $ac_status = 0; }; then
    21741   pkg_cv_QT4_FRONTEND_LIBS=`$PKG_CONFIG --libs "QtCore QtGui" 2>/dev/null`
     22608  pkg_cv_QT4_FRONTEND_LIBS=`$PKG_CONFIG --libs "QtCore QtGui QtSql" 2>/dev/null`
     22609                      test "x$?" != "x0" && pkg_failed=yes
    2174222610else
    2174322611  pkg_failed=yes
     
    2175922627fi
    2176022628        if test $_pkg_short_errors_supported = yes; then
    21761                 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore QtGui" 2>&1`
     22629                QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore QtGui QtSql" 2>&1`
    2176222630        else
    21763                 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore QtGui" 2>&1`
     22631                QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore QtGui QtSql" 2>&1`
    2176422632        fi
    2176522633        # Put the nasty error message in config.log where it belongs
     
    2178022648        if test "$pkg_failed" = "no" ; then
    2178122649                QT4_INCLUDES=$QT4_FRONTEND_CFLAGS
    21782                                 QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore QtGui`
     22650                                QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore QtGui QtSql`
    2178322651
    2178422652
    2178522653                QT4_VERSION=`$PKG_CONFIG --modversion QtCore`
    2178622654
    21787                 QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui`
    21788 
    21789                 LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui`"
     22655                QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui QtSql`
     22656
     22657                LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui QtSql`"
    2179022658        fi
    21791         PKG_CONFIG_PATH=$save_PKG_CONFIG_PATH
    2179222659
    2179322660        fi
     
    2180922676else
    2181022677  case $x_includes,$x_libraries in #(
    21811     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
    21812     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
     22678    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     22679    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
    2181322680  $as_echo_n "(cached) " >&6
    2181422681else
     
    2208722954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
    2208822955$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
    22089 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
     22956if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
    2209022957  $as_echo_n "(cached) " >&6
    2209122958else
     
    2212122988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
    2212222989$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
    22123 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
     22990if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
    2212422991  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
    2212522992fi
     
    2212822995      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
    2212922996$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
    22130 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
     22997if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
    2213122998  $as_echo_n "(cached) " >&6
    2213222999else
     
    2216223029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
    2216323030$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
    22164 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
     23031if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
    2216523032  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
    2216623033fi
     
    2218123048    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    2218223049    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
    22183 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
     23050if test "x$ac_cv_func_gethostbyname" = xyes; then :
    2218423051
    2218523052fi
     
    2218823055      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
    2218923056$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
    22190 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
     23057if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
    2219123058  $as_echo_n "(cached) " >&6
    2219223059else
     
    2222223089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
    2222323090$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
    22224 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
     23091if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
    2222523092  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
    2222623093fi
     
    2222923096        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
    2223023097$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
    22231 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
     23098if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
    2223223099  $as_echo_n "(cached) " >&6
    2223323100else
     
    2226323130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
    2226423131$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
    22265 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
     23132if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
    2226623133  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
    2226723134fi
     
    2227823145    # if connect needs -lnsl, so does gethostbyname.
    2227923146    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
    22280 if test "x$ac_cv_func_connect" = x""yes; then :
     23147if test "x$ac_cv_func_connect" = xyes; then :
    2228123148
    2228223149fi
     
    2228523152      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
    2228623153$as_echo_n "checking for connect in -lsocket... " >&6; }
    22287 if test "${ac_cv_lib_socket_connect+set}" = set; then :
     23154if ${ac_cv_lib_socket_connect+:} false; then :
    2228823155  $as_echo_n "(cached) " >&6
    2228923156else
     
    2231923186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
    2232023187$as_echo "$ac_cv_lib_socket_connect" >&6; }
    22321 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
     23188if test "x$ac_cv_lib_socket_connect" = xyes; then :
    2232223189  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
    2232323190fi
     
    2232723194    # Guillermo Gomez says -lposix is necessary on A/UX.
    2232823195    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
    22329 if test "x$ac_cv_func_remove" = x""yes; then :
     23196if test "x$ac_cv_func_remove" = xyes; then :
    2233023197
    2233123198fi
     
    2233423201      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
    2233523202$as_echo_n "checking for remove in -lposix... " >&6; }
    22336 if test "${ac_cv_lib_posix_remove+set}" = set; then :
     23203if ${ac_cv_lib_posix_remove+:} false; then :
    2233723204  $as_echo_n "(cached) " >&6
    2233823205else
     
    2236823235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
    2236923236$as_echo "$ac_cv_lib_posix_remove" >&6; }
    22370 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
     23237if test "x$ac_cv_lib_posix_remove" = xyes; then :
    2237123238  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
    2237223239fi
     
    2237623243    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    2237723244    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
    22378 if test "x$ac_cv_func_shmat" = x""yes; then :
     23245if test "x$ac_cv_func_shmat" = xyes; then :
    2237923246
    2238023247fi
     
    2238323250      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
    2238423251$as_echo_n "checking for shmat in -lipc... " >&6; }
    22385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
     23252if ${ac_cv_lib_ipc_shmat+:} false; then :
    2238623253  $as_echo_n "(cached) " >&6
    2238723254else
     
    2241723284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
    2241823285$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
    22419 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
     23286if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
    2242023287  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
    2242123288fi
     
    2243523302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
    2243623303$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
    22437 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
     23304if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
    2243823305  $as_echo_n "(cached) " >&6
    2243923306else
     
    2246923336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
    2247023337$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
    22471 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
     23338if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
    2247223339  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
    2247323340fi
     
    2248023347            yes) LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
    2248123348                 CPPFLAGS="$CPPFLAGS $X_CFLAGS";;
    22482              no) as_fn_error $? "Cannot find X window libraries and/or headers." "$LINENO" 5 ;;
     23349             no) as_fn_error $? "Cannot find X window libraries and/or headers." "$LINENO" 5;;
    2248323350        disable) ;;
    2248423351        esac
     
    2249023357        if test -n "$qt4_cv_includes"; then
    2249123358                QT4_INCLUDES="-I$qt4_cv_includes"
    22492                 for i in Qt QtCore QtGui; do
     23359                for i in Qt QtCore QtGui QtSql; do
    2249323360                        QT4_INCLUDES="$QT4_INCLUDES -I$qt4_cv_includes/$i"
    2249423361                done
     
    2250823375$as_echo_n "checking for Qt 4 library name... " >&6; }
    2250923376
    22510         if test "${qt4_cv_libname+set}" = set; then :
     23377        if ${qt4_cv_libname+:} false; then :
    2251123378  $as_echo_n "(cached) " >&6
    2251223379else
     
    2255723424                done
    2255823425                qt4_cv_libname=
    22559                 for libname in '-lQtCore -lQtGui' \
    22560                                '-lQtCore4 -lQtGui4' \
    22561                                '-framework QtCore -framework QtGui'
     23426                for libname in '-lQtCore -lQtGui -lQtSql' \
     23427                               '-lQtCore4 -lQtGui4 -lQtSql4' \
     23428                               '-framework QtCore -framework QtGui -framework QtSql'
    2256223429                do
    2256323430
     
    2261923486        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4 version" >&5
    2262023487$as_echo_n "checking Qt 4 version... " >&6; }
    22621 if test "${lyx_cv_qt4version+set}" = set; then :
     23488if ${lyx_cv_qt4version+:} false; then :
    2262223489  $as_echo_n "(cached) " >&6
    2262323490else
     
    2263323500
    2263423501                cat > conftest.$ac_ext <<EOF
    22635 #line 22635 "configure"
     23502#line 23502 "configure"
    2263623503#include "confdefs.h"
    2263723504#include <qglobal.h>
     
    2266023527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2266123528$as_echo_n "checking for $ac_word... " >&6; }
    22662 if test "${ac_cv_path_MOC4+set}" = set; then :
     23529if ${ac_cv_path_MOC4+:} false; then :
    2266323530  $as_echo_n "(cached) " >&6
    2266423531else
     
    2270623573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2270723574$as_echo_n "checking for $ac_word... " >&6; }
    22708 if test "${ac_cv_path_UIC4+set}" = set; then :
     23575if ${ac_cv_path_UIC4+:} false; then :
    2270923576  $as_echo_n "(cached) " >&6
    2271023577else
     
    2275223619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2275323620$as_echo_n "checking for $ac_word... " >&6; }
    22754 if test "${ac_cv_path_RCC4+set}" = set; then :
     23621if ${ac_cv_path_RCC4+:} false; then :
    2275523622  $as_echo_n "(cached) " >&6
    2275623623else
     
    2284123708
    2284223709        ac_fn_cxx_check_header_mongrel "$LINENO" "QtOpenGL/QGLWidget" "ac_cv_header_QtOpenGL_QGLWidget" "$ac_includes_default"
    22843 if test "x$ac_cv_header_QtOpenGL_QGLWidget" = x""yes; then :
     23710if test "x$ac_cv_header_QtOpenGL_QGLWidget" = xyes; then :
    2284423711
    2284523712else
     
    2286323730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QGLWidget qgl in -lQtOpenGL" >&5
    2286423731$as_echo_n "checking for QGLWidget qgl in -lQtOpenGL... " >&6; }
    22865 if test "${ac_cv_lib_QtOpenGL_QGLWidget_qgl+set}" = set; then :
     23732if ${ac_cv_lib_QtOpenGL_QGLWidget_qgl+:} false; then :
    2286623733  $as_echo_n "(cached) " >&6
    2286723734else
     
    2297423841
    2297523842        ac_fn_cxx_check_header_mongrel "$LINENO" "qwt_plot.h" "ac_cv_header_qwt_plot_h" "$ac_includes_default"
    22976 if test "x$ac_cv_header_qwt_plot_h" = x""yes; then :
     23843if test "x$ac_cv_header_qwt_plot_h" = xyes; then :
    2297723844
    2297823845else
     
    2299623863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QwtPlot qwt in -lqwt-qt4" >&5
    2299723864$as_echo_n "checking for QwtPlot qwt in -lqwt-qt4... " >&6; }
    22998 if test "${ac_cv_lib_qwt_qt4_QwtPlot_qwt+set}" = set; then :
     23865if ${ac_cv_lib_qwt_qt4_QwtPlot_qwt+:} false; then :
    2299923866  $as_echo_n "(cached) " >&6
    2300023867else
     
    2310023967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2310123968$as_echo_n "checking for $ac_word... " >&6; }
    23102 if test "${ac_cv_path_ROOTCONF+set}" = set; then :
     23969if ${ac_cv_path_ROOTCONF+:} false; then :
    2310323970  $as_echo_n "(cached) " >&6
    2310423971else
     
    2314124008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2314224009$as_echo_n "checking for $ac_word... " >&6; }
    23143 if test "${ac_cv_path_ROOTEXEC+set}" = set; then :
     24010if ${ac_cv_path_ROOTEXEC+:} false; then :
    2314424011  $as_echo_n "(cached) " >&6
    2314524012else
     
    2318224049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2318324050$as_echo_n "checking for $ac_word... " >&6; }
    23184 if test "${ac_cv_path_ROOTCINT+set}" = set; then :
     24051if ${ac_cv_path_ROOTCINT+:} false; then :
    2318524052  $as_echo_n "(cached) " >&6
    2318624053else
     
    2327724144
    2327824145
    23279 if test "$ROOTEXEC" != no ;
     24146if test "$ROOTEXEC" != no -a -n "$ROOTVERSION"  ;
    2328024147then
    2328124148
     
    2331724184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2331824185$as_echo_n "checking for $ac_word... " >&6; }
    23319 if test "${ac_cv_prog_COLORDIFF+set}" = set; then :
     24186if ${ac_cv_prog_COLORDIFF+:} false; then :
    2332024187  $as_echo_n "(cached) " >&6
    2332124188else
     
    2335524222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2335624223$as_echo_n "checking for $ac_word... " >&6; }
    23357 if test "${ac_cv_prog_GROFF+set}" = set; then :
     24224if ${ac_cv_prog_GROFF+:} false; then :
    2335824225  $as_echo_n "(cached) " >&6
    2335924226else
     
    2339324260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2339424261$as_echo_n "checking for $ac_word... " >&6; }
    23395 if test "${ac_cv_prog_PS2PDF+set}" = set; then :
     24262if ${ac_cv_prog_PS2PDF+:} false; then :
    2339624263  $as_echo_n "(cached) " >&6
    2339724264else
     
    2343124298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2343224299$as_echo_n "checking for $ac_word... " >&6; }
    23433 if test "${ac_cv_prog_HELP2MAN+set}" = set; then :
     24300if ${ac_cv_prog_HELP2MAN+:} false; then :
    2343424301  $as_echo_n "(cached) " >&6
    2343524302else
     
    2375924626if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
    2376024627  if test -w "$cache_file"; then
    23761     test "x$cache_file" != "x/dev/null" &&
     24628    if test "x$cache_file" != "x/dev/null"; then
    2376224629      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
    2376324630$as_echo "$as_me: updating cache $cache_file" >&6;}
    23764     cat confcache >$cache_file
     24631      if test ! -f "$cache_file" || test -h "$cache_file"; then
     24632        cat confcache >"$cache_file"
     24633      else
     24634        case $cache_file in #(
     24635        */* | ?:*)
     24636          mv -f confcache "$cache_file"$$ &&
     24637          mv -f "$cache_file"$$ "$cache_file" ;; #(
     24638        *)
     24639          mv -f confcache "$cache_file" ;;
     24640        esac
     24641      fi
     24642    fi
    2376524643  else
    2376624644    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
     
    2403424912fi
    2403524913
    24036 : ${CONFIG_STATUS=./config.status}
     24914: "${CONFIG_STATUS=./config.status}"
    2403724915ac_write_fail=0
    2403824916ac_clean_files_save=$ac_clean_files
     
    2413525013
    2413625014# Find who we are.  Look in the path if we contain no directory separator.
     25015as_myself=
    2413725016case $0 in #((
    2413825017  *[\\/]* ) as_myself=$0 ;;
     
    2444225321ac_log="
    2444325322This file was extended by FACT++ $as_me 1.0, which was
    24444 generated by GNU Autoconf 2.67.  Invocation command line was
     25323generated by GNU Autoconf 2.68.  Invocation command line was
    2444525324
    2444625325  CONFIG_FILES    = $CONFIG_FILES
     
    2446425343# Files that config.status was made for.
    2446525344config_files="$ac_config_files"
     25345config_links="$ac_config_links"
    2446625346config_commands="$ac_config_commands"
    2446725347
     
    2448925369$config_files
    2449025370
     25371Configuration links:
     25372$config_links
     25373
    2449125374Configuration commands:
    2449225375$config_commands
     
    2450025383ac_cs_version="\\
    2450125384FACT++ config.status 1.0
    24502 configured by $0, generated by GNU Autoconf 2.67,
     25385configured by $0, generated by GNU Autoconf 2.68,
    2450325386  with options \\"\$ac_cs_config\\"
    2450425387
     
    2461625499double_quote_subst='$double_quote_subst'
    2461725500delay_variable_subst='$delay_variable_subst'
    24618 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
    24619 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
    24620 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
    24621 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
    24622 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
    24623 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
    24624 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
    24625 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
    24626 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
    24627 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
    24628 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
    24629 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
    24630 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
    24631 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
    24632 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
    24633 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
    24634 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
    24635 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
    24636 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
    24637 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
    24638 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
    24639 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
    24640 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
    24641 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
    24642 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
    24643 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
    24644 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
    24645 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24646 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
    24647 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
    24648 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
    24649 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
    24650 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
    24651 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
    24652 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
    24653 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24654 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24655 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24656 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
    24657 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
    24658 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
    24659 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
    24660 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
    24661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
    24662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
    24663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
    24664 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
    24665 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
    24666 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
    24667 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
    24668 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
    24669 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
    24670 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
    24671 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
    24672 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
    24673 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
    24674 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
    24675 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
    24676 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
    24677 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
    24678 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
    24679 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
    24680 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24681 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24682 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
    24683 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
    24684 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24685 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24686 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
    24687 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24688 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24689 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24690 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24691 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24692 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24693 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
    24694 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
    24695 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
    24696 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24697 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
    24698 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
    24699 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
    24700 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
    24701 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
    24702 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
    24703 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
    24704 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
    24705 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
    24706 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
    24707 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
    24708 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24709 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
    24710 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
    24711 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24712 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24713 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
    24714 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
    24715 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
    24716 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
    24717 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
    24718 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
    24719 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
    24720 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24721 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24722 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24723 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24724 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24725 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
    24726 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
    24727 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
    24728 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24729 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
    24730 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
    24731 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
    24732 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
    24733 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
    24734 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
    24735 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
    24736 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
    24737 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
    24738 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
    24739 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
    24740 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
    24741 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
    24742 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24743 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24744 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24745 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24746 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24747 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24748 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24749 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24750 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24751 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24752 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24753 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24754 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24755 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24756 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24757 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24758 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24759 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24760 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24761 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24762 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24763 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24764 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24765 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24766 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24767 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24768 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24769 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24770 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24771 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24772 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24773 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24774 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24775 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24776 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24777 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24778 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24779 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24780 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24781 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24782 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24783 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24784 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24785 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24786 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24787 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
    24788 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
     25501macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
     25502macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
     25503enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
     25504enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
     25505pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
     25506enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
     25507SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
     25508ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
     25509host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
     25510host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
     25511host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
     25512build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
     25513build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
     25514build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
     25515SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
     25516Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
     25517GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
     25518EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
     25519FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
     25520LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
     25521NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
     25522LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
     25523max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
     25524ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
     25525exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
     25526lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
     25527lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
     25528lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
     25529lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
     25530lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
     25531reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
     25532reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
     25533OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
     25534deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
     25535file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
     25536file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
     25537want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
     25538DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
     25539sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
     25540AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
     25541AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
     25542archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
     25543STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
     25544RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
     25545old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
     25546old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
     25547old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
     25548lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
     25549CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
     25550CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
     25551compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
     25552GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
     25553lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
     25554lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
     25555lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
     25556lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
     25557nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
     25558lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
     25559objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
     25560MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
     25561lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
     25562lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
     25563lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
     25564lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
     25565lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
     25566need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
     25567MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
     25568DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
     25569NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
     25570LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
     25571OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
     25572OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
     25573libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
     25574shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
     25575extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
     25576archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
     25577enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
     25578export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
     25579whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
     25580compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
     25581old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
     25582old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
     25583archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
     25584archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
     25585module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
     25586module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
     25587with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
     25588allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
     25589no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
     25590hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
     25591hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
     25592hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
     25593hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
     25594hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
     25595hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
     25596hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
     25597hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
     25598inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
     25599link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
     25600always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
     25601export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
     25602exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
     25603include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
     25604prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
     25605postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
     25606file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
     25607variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
     25608need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
     25609need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
     25610version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
     25611runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
     25612shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
     25613shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
     25614libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
     25615library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
     25616soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
     25617install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
     25618postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
     25619postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
     25620finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
     25621finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
     25622hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
     25623sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
     25624sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
     25625hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
     25626enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
     25627enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
     25628enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
     25629old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
     25630striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
     25631compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
     25632predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
     25633postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
     25634predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
     25635postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
     25636compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
     25637LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
     25638reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
     25639reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25640old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25641compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
     25642GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
     25643lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
     25644lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
     25645lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
     25646lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
     25647lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
     25648archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
     25649enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
     25650export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     25651whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     25652compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
     25653old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25654old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25655archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25656archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25657module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25658module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25659with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
     25660allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
     25661no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
     25662hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     25663hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
     25664hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
     25665hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
     25666hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
     25667hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
     25668hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
     25669hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
     25670inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
     25671link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
     25672always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
     25673export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25674exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
     25675include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
     25676prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25677postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     25678file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
     25679hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
     25680compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
     25681predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
     25682postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
     25683predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
     25684postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
     25685compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
    2478925686
    2479025687LTCC='$LTCC'
     
    2479225689compiler='$compiler_DEFAULT'
    2479325690
     25691# A function that is used when there is no print builtin or printf.
     25692func_fallback_echo ()
     25693{
     25694  eval 'cat <<_LTECHO_EOF
     25695\$1
     25696_LTECHO_EOF'
     25697}
     25698
    2479425699# Quote evaled strings.
    24795 for var in SED \
     25700for var in SHELL \
     25701ECHO \
     25702SED \
    2479625703GREP \
    2479725704EGREP \
     
    2480625713deplibs_check_method \
    2480725714file_magic_cmd \
     25715file_magic_glob \
     25716want_nocaseglob \
     25717DLLTOOL \
     25718sharedlib_from_linklib_cmd \
    2480825719AR \
    2480925720AR_FLAGS \
     25721archiver_list_spec \
    2481025722STRIP \
    2481125723RANLIB \
     
    2481725729lt_cv_sys_global_symbol_to_c_name_address \
    2481825730lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
    24819 SHELL \
    24820 ECHO \
     25731nm_file_list_spec \
    2482125732lt_prog_compiler_no_builtin_flag \
     25733lt_prog_compiler_pic \
    2482225734lt_prog_compiler_wl \
    24823 lt_prog_compiler_pic \
    2482425735lt_prog_compiler_static \
    2482525736lt_cv_prog_compiler_c_o \
    2482625737need_locks \
     25738MANIFEST_TOOL \
    2482725739DSYMUTIL \
    2482825740NMEDIT \
     
    2484025752hardcode_libdir_flag_spec_ld \
    2484125753hardcode_libdir_separator \
    24842 fix_srcfile_path \
    2484325754exclude_expsyms \
    2484425755include_expsyms \
     
    2484825759library_names_spec \
    2484925760soname_spec \
     25761install_override_mode \
    2485025762finish_eval \
    2485125763old_striplib \
     
    2485825770compiler_lib_search_path \
    2485925771LD_CXX \
     25772reload_flag_CXX \
    2486025773compiler_CXX \
    2486125774lt_prog_compiler_no_builtin_flag_CXX \
     25775lt_prog_compiler_pic_CXX \
    2486225776lt_prog_compiler_wl_CXX \
    24863 lt_prog_compiler_pic_CXX \
    2486425777lt_prog_compiler_static_CXX \
    2486525778lt_cv_prog_compiler_c_o_CXX \
     
    2487325786hardcode_libdir_flag_spec_ld_CXX \
    2487425787hardcode_libdir_separator_CXX \
    24875 fix_srcfile_path_CXX \
    2487625788exclude_expsyms_CXX \
    2487725789include_expsyms_CXX \
     
    2488325795postdeps_CXX \
    2488425796compiler_lib_search_path_CXX; do
    24885     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     25797    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    2488625798    *[\\\\\\\`\\"\\\$]*)
    24887       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     25799      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
    2488825800      ;;
    2488925801    *)
     
    2490725819export_symbols_cmds \
    2490825820prelink_cmds \
     25821postlink_cmds \
    2490925822postinstall_cmds \
    2491025823postuninstall_cmds \
     
    2491225825sys_lib_search_path_spec \
    2491325826sys_lib_dlsearch_path_spec \
     25827reload_cmds_CXX \
    2491425828old_archive_cmds_CXX \
    2491525829old_archive_from_new_cmds_CXX \
     
    2492025834module_expsym_cmds_CXX \
    2492125835export_symbols_cmds_CXX \
    24922 prelink_cmds_CXX; do
    24923     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     25836prelink_cmds_CXX \
     25837postlink_cmds_CXX; do
     25838    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    2492425839    *[\\\\\\\`\\"\\\$]*)
    24925       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     25840      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
    2492625841      ;;
    2492725842    *)
     
    2493125846done
    2493225847
    24933 # Fix-up fallback echo if it was mangled by the above quoting rules.
    24934 case \$lt_ECHO in
    24935 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
    24936   ;;
    24937 esac
    24938 
    2493925848ac_aux_dir='$ac_aux_dir'
    2494025849xsi_shell='$xsi_shell'
     
    2496925878  case $ac_config_target in
    2497025879    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     25880    "g++") CONFIG_LINKS="$CONFIG_LINKS g++:$COLORGCC" ;;
     25881    "gcc") CONFIG_LINKS="$CONFIG_LINKS gcc:$COLORGCC" ;;
    2497125882    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    2497225883    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2497325884
    24974   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
     25885  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
    2497525886  esac
    2497625887done
     
    2498325894if $ac_need_defaults; then
    2498425895  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     25896  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
    2498525897  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    2498625898fi
     
    2499425906$debug ||
    2499525907{
    24996   tmp=
     25908  tmp= ac_tmp=
    2499725909  trap 'exit_status=$?
    24998   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
     25910  : "${ac_tmp:=$tmp}"
     25911  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
    2499925912' 0
    2500025913  trap 'as_fn_exit 1' 1 2 13 15
     
    2500425917{
    2500525918  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
    25006   test -n "$tmp" && test -d "$tmp"
     25919  test -d "$tmp"
    2500725920}  ||
    2500825921{
     
    2501025923  (umask 077 && mkdir "$tmp")
    2501125924} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     25925ac_tmp=$tmp
    2501225926
    2501325927# Set up the scripts for CONFIG_FILES section.
     
    2503125945fi
    2503225946
    25033 echo 'BEGIN {' >"$tmp/subs1.awk" &&
     25947echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
    2503425948_ACEOF
    2503525949
     
    2505925973
    2506025974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    25061 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
     25975cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
    2506225976_ACEOF
    2506325977sed -n '
     
    2510726021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    2510826022_ACAWK
    25109 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
     26023cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
    2511026024  for (key in S) S_is_set[key] = 1
    2511126025  FS = ""
     
    2513926053else
    2514026054  cat
    25141 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
     26055fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
    2514226056  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    2514326057_ACEOF
     
    2517026084
    2517126085
    25172 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
     26086eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
    2517326087shift
    2517426088for ac_tag
     
    2517926093  case $ac_mode$ac_tag in
    2518026094  :[FHL]*:*);;
    25181   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     26095  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
    2518226096  :[FH]-) ac_tag=-:-;;
    2518326097  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    2519826112    do
    2519926113      case $ac_f in
    25200       -) ac_f="$tmp/stdin";;
     26114      -) ac_f="$ac_tmp/stdin";;
    2520126115      *) # Look for the file first in the build tree, then in the source tree
    2520226116         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     
    2520726121           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    2520826122           esac ||
    25209            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     26123           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
    2521026124      esac
    2521126125      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     
    2523326147
    2523426148    case $ac_tag in
    25235     *:-:* | *:-) cat >"$tmp/stdin" \
    25236       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     26149    *:-:* | *:-) cat >"$ac_tmp/stdin" \
     26150      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    2523726151    esac
    2523826152    ;;
     
    2537026284$ac_datarootdir_hack
    2537126285"
    25372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
    25373   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     26286eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
     26287  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    2537426288
    2537526289test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
    25376   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
    25377   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
     26290  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
     26291  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
     26292      "$ac_tmp/out"`; test -z "$ac_out"; } &&
    2537826293  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    2537926294which seems to be undefined.  Please make sure it is defined" >&5
     
    2538126296which seems to be undefined.  Please make sure it is defined" >&2;}
    2538226297
    25383   rm -f "$tmp/stdin"
     26298  rm -f "$ac_tmp/stdin"
    2538426299  case $ac_file in
    25385   -) cat "$tmp/out" && rm -f "$tmp/out";;
    25386   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
     26300  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
     26301  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
    2538726302  esac \
    2538826303  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    2538926304 ;;
    2539026305
    25391 
     26306  :L)
     26307  #
     26308  # CONFIG_LINK
     26309  #
     26310
     26311  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
     26312    :
     26313  else
     26314    # Prefer the file from the source tree if names are identical.
     26315    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
     26316      ac_source=$srcdir/$ac_source
     26317    fi
     26318
     26319    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
     26320$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
     26321
     26322    if test ! -r "$ac_source"; then
     26323      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
     26324    fi
     26325    rm -f "$ac_file"
     26326
     26327    # Try a relative symlink, then a hard link, then a copy.
     26328    case $ac_source in
     26329    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
     26330        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
     26331    esac
     26332    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
     26333      ln "$ac_source" "$ac_file" 2>/dev/null ||
     26334      cp -p "$ac_source" "$ac_file" ||
     26335      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
     26336  fi
     26337 ;;
    2539226338  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
    2539326339$as_echo "$as_me: executing $ac_file commands" >&6;}
     
    2541826364#
    2541926365#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    25420 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     26366#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     26367#                 Inc.
    2542126368#   Written by Gordon Matzigkeit, 1996
    2542226369#
     
    2546626413fast_install=$enable_fast_install
    2546726414
     26415# Shell to use when invoking shell scripts.
     26416SHELL=$lt_SHELL
     26417
     26418# An echo program that protects backslashes.
     26419ECHO=$lt_ECHO
     26420
    2546826421# The host system.
    2546926422host_alias=$host_alias
     
    2551526468NL2SP=$lt_lt_NL2SP
    2551626469
    25517 # How to create reloadable object files.
    25518 reload_flag=$lt_reload_flag
    25519 reload_cmds=$lt_reload_cmds
     26470# convert \$build file names to \$host format.
     26471to_host_file_cmd=$lt_cv_to_host_file_cmd
     26472
     26473# convert \$build files to toolchain format.
     26474to_tool_file_cmd=$lt_cv_to_tool_file_cmd
    2552026475
    2552126476# An object symbol dumper.
     
    2552526480deplibs_check_method=$lt_deplibs_check_method
    2552626481
    25527 # Command to use when deplibs_check_method == "file_magic".
     26482# Command to use when deplibs_check_method = "file_magic".
    2552826483file_magic_cmd=$lt_file_magic_cmd
     26484
     26485# How to find potential files when deplibs_check_method = "file_magic".
     26486file_magic_glob=$lt_file_magic_glob
     26487
     26488# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
     26489want_nocaseglob=$lt_want_nocaseglob
     26490
     26491# DLL creation program.
     26492DLLTOOL=$lt_DLLTOOL
     26493
     26494# Command to associate shared and link libraries.
     26495sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
    2552926496
    2553026497# The archiver.
    2553126498AR=$lt_AR
     26499
     26500# Flags to create an archive.
    2553226501AR_FLAGS=$lt_AR_FLAGS
     26502
     26503# How to feed a file listing to the archiver.
     26504archiver_list_spec=$lt_archiver_list_spec
    2553326505
    2553426506# A symbol stripping program.
     
    2554026512old_postuninstall_cmds=$lt_old_postuninstall_cmds
    2554126513
     26514# Whether to use a lock for old archive extraction.
     26515lock_old_archive_extraction=$lock_old_archive_extraction
     26516
    2554226517# A C compiler.
    2554326518LTCC=$lt_CC
     
    2555826533global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
    2555926534
     26535# Specify filename containing input files for \$NM.
     26536nm_file_list_spec=$lt_nm_file_list_spec
     26537
     26538# The root where to search for dependent libraries,and in which our libraries should be installed.
     26539lt_sysroot=$lt_sysroot
     26540
    2556026541# The name of the directory that contains temporary libtool files.
    2556126542objdir=$objdir
    2556226543
    25563 # Shell to use when invoking shell scripts.
    25564 SHELL=$lt_SHELL
    25565 
    25566 # An echo program that does not interpret backslashes.
    25567 ECHO=$lt_ECHO
    25568 
    2556926544# Used to examine libraries when file_magic_cmd begins with "file".
    2557026545MAGIC_CMD=$MAGIC_CMD
     
    2557226547# Must we lock files when doing compilation?
    2557326548need_locks=$lt_need_locks
     26549
     26550# Manifest tool.
     26551MANIFEST_TOOL=$lt_MANIFEST_TOOL
    2557426552
    2557526553# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
     
    2562926607soname_spec=$lt_soname_spec
    2563026608
     26609# Permission mode override for installation of shared libraries.
     26610install_override_mode=$lt_install_override_mode
     26611
    2563126612# Command to use after installation of a shared archive.
    2563226613postinstall_cmds=$lt_postinstall_cmds
     
    2566826649LD=$lt_LD
    2566926650
     26651# How to create reloadable object files.
     26652reload_flag=$lt_reload_flag
     26653reload_cmds=$lt_reload_cmds
     26654
    2567026655# Commands used to build an old-style archive.
    2567126656old_archive_cmds=$lt_old_archive_cmds
     
    2568026665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
    2568126666
     26667# Additional compiler flags for building library objects.
     26668pic_flag=$lt_lt_prog_compiler_pic
     26669
    2568226670# How to pass a linker flag through the compiler.
    2568326671wl=$lt_lt_prog_compiler_wl
    25684 
    25685 # Additional compiler flags for building library objects.
    25686 pic_flag=$lt_lt_prog_compiler_pic
    2568726672
    2568826673# Compiler flag to prevent dynamic linking.
     
    2577226757link_all_deplibs=$link_all_deplibs
    2577326758
    25774 # Fix the shell variable \$srcfile for the compiler.
    25775 fix_srcfile_path=$lt_fix_srcfile_path
    25776 
    2577726759# Set to "yes" if exported symbols are required.
    2577826760always_export_symbols=$always_export_symbols
     
    2578926771# Commands necessary for linking programs (against libraries) with templates.
    2579026772prelink_cmds=$lt_prelink_cmds
     26773
     26774# Commands necessary for finishing linking programs.
     26775postlink_cmds=$lt_postlink_cmds
    2579126776
    2579226777# Specify filename containing input files.
     
    2583626821  # text mode, it properly converts lines to CR/LF.  This bash problem
    2583726822  # is reportedly fixed, but why not run on old versions too?
    25838   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    25839     || (rm -f "$cfgfile"; exit 1)
    25840 
    25841   case $xsi_shell in
    25842   yes)
    25843     cat << \_LT_EOF >> "$cfgfile"
    25844 
    25845 # func_dirname file append nondir_replacement
    25846 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    25847 # otherwise set result to NONDIR_REPLACEMENT.
    25848 func_dirname ()
    25849 {
    25850   case ${1} in
    25851     */*) func_dirname_result="${1%/*}${2}" ;;
    25852     *  ) func_dirname_result="${3}" ;;
    25853   esac
    25854 }
    25855 
    25856 # func_basename file
    25857 func_basename ()
    25858 {
    25859   func_basename_result="${1##*/}"
    25860 }
    25861 
    25862 # func_dirname_and_basename file append nondir_replacement
    25863 # perform func_basename and func_dirname in a single function
    25864 # call:
    25865 #   dirname:  Compute the dirname of FILE.  If nonempty,
    25866 #             add APPEND to the result, otherwise set result
    25867 #             to NONDIR_REPLACEMENT.
    25868 #             value returned in "$func_dirname_result"
    25869 #   basename: Compute filename of FILE.
    25870 #             value retuned in "$func_basename_result"
    25871 # Implementation must be kept synchronized with func_dirname
    25872 # and func_basename. For efficiency, we do not delegate to
    25873 # those functions but instead duplicate the functionality here.
    25874 func_dirname_and_basename ()
    25875 {
    25876   case ${1} in
    25877     */*) func_dirname_result="${1%/*}${2}" ;;
    25878     *  ) func_dirname_result="${3}" ;;
    25879   esac
    25880   func_basename_result="${1##*/}"
    25881 }
    25882 
    25883 # func_stripname prefix suffix name
    25884 # strip PREFIX and SUFFIX off of NAME.
    25885 # PREFIX and SUFFIX must not contain globbing or regex special
    25886 # characters, hashes, percent signs, but SUFFIX may contain a leading
    25887 # dot (in which case that matches only a dot).
    25888 func_stripname ()
    25889 {
    25890   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
    25891   # positional parameters, so assign one to ordinary parameter first.
    25892   func_stripname_result=${3}
    25893   func_stripname_result=${func_stripname_result#"${1}"}
    25894   func_stripname_result=${func_stripname_result%"${2}"}
    25895 }
    25896 
    25897 # func_opt_split
    25898 func_opt_split ()
    25899 {
    25900   func_opt_split_opt=${1%%=*}
    25901   func_opt_split_arg=${1#*=}
    25902 }
    25903 
    25904 # func_lo2o object
    25905 func_lo2o ()
    25906 {
    25907   case ${1} in
    25908     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    25909     *)    func_lo2o_result=${1} ;;
    25910   esac
    25911 }
    25912 
    25913 # func_xform libobj-or-source
    25914 func_xform ()
    25915 {
    25916   func_xform_result=${1%.*}.lo
    25917 }
    25918 
    25919 # func_arith arithmetic-term...
    25920 func_arith ()
    25921 {
    25922   func_arith_result=$(( $* ))
    25923 }
    25924 
    25925 # func_len string
    25926 # STRING may not start with a hyphen.
    25927 func_len ()
    25928 {
    25929   func_len_result=${#1}
    25930 }
    25931 
    25932 _LT_EOF
    25933     ;;
    25934   *) # Bourne compatible functions.
    25935     cat << \_LT_EOF >> "$cfgfile"
    25936 
    25937 # func_dirname file append nondir_replacement
    25938 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    25939 # otherwise set result to NONDIR_REPLACEMENT.
    25940 func_dirname ()
    25941 {
    25942   # Extract subdirectory from the argument.
    25943   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    25944   if test "X$func_dirname_result" = "X${1}"; then
    25945     func_dirname_result="${3}"
    25946   else
    25947     func_dirname_result="$func_dirname_result${2}"
    25948   fi
    25949 }
    25950 
    25951 # func_basename file
    25952 func_basename ()
    25953 {
    25954   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    25955 }
    25956 
    25957 
    25958 # func_stripname prefix suffix name
    25959 # strip PREFIX and SUFFIX off of NAME.
    25960 # PREFIX and SUFFIX must not contain globbing or regex special
    25961 # characters, hashes, percent signs, but SUFFIX may contain a leading
    25962 # dot (in which case that matches only a dot).
    25963 # func_strip_suffix prefix name
    25964 func_stripname ()
    25965 {
    25966   case ${2} in
    25967     .*) func_stripname_result=`$ECHO "X${3}" \
    25968            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    25969     *)  func_stripname_result=`$ECHO "X${3}" \
    25970            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
    25971   esac
    25972 }
    25973 
    25974 # sed scripts:
    25975 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
    25976 my_sed_long_arg='1s/^-[^=]*=//'
    25977 
    25978 # func_opt_split
    25979 func_opt_split ()
    25980 {
    25981   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
    25982   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
    25983 }
    25984 
    25985 # func_lo2o object
    25986 func_lo2o ()
    25987 {
    25988   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
    25989 }
    25990 
    25991 # func_xform libobj-or-source
    25992 func_xform ()
    25993 {
    25994   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
    25995 }
    25996 
    25997 # func_arith arithmetic-term...
    25998 func_arith ()
    25999 {
    26000   func_arith_result=`expr "$@"`
    26001 }
    26002 
    26003 # func_len string
    26004 # STRING may not start with a hyphen.
    26005 func_len ()
    26006 {
    26007   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
    26008 }
    26009 
    26010 _LT_EOF
    26011 esac
    26012 
    26013 case $lt_shell_append in
    26014   yes)
    26015     cat << \_LT_EOF >> "$cfgfile"
    26016 
    26017 # func_append var value
    26018 # Append VALUE to the end of shell variable VAR.
    26019 func_append ()
    26020 {
    26021   eval "$1+=\$2"
    26022 }
    26023 _LT_EOF
    26024     ;;
    26025   *)
    26026     cat << \_LT_EOF >> "$cfgfile"
    26027 
    26028 # func_append var value
    26029 # Append VALUE to the end of shell variable VAR.
    26030 func_append ()
    26031 {
    26032   eval "$1=\$$1\$2"
    26033 }
    26034 
    26035 _LT_EOF
    26036     ;;
    26037   esac
    26038 
    26039 
    26040   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    26041     || (rm -f "$cfgfile"; exit 1)
    26042 
    26043   mv -f "$cfgfile" "$ofile" ||
     26823  sed '$q' "$ltmain" >> "$cfgfile" \
     26824     || (rm -f "$cfgfile"; exit 1)
     26825
     26826  if test x"$xsi_shell" = xyes; then
     26827  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
     26828func_dirname ()\
     26829{\
     26830\    case ${1} in\
     26831\      */*) func_dirname_result="${1%/*}${2}" ;;\
     26832\      *  ) func_dirname_result="${3}" ;;\
     26833\    esac\
     26834} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
     26835  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26836    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26837test 0 -eq $? || _lt_function_replace_fail=:
     26838
     26839
     26840  sed -e '/^func_basename ()$/,/^} # func_basename /c\
     26841func_basename ()\
     26842{\
     26843\    func_basename_result="${1##*/}"\
     26844} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
     26845  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26846    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26847test 0 -eq $? || _lt_function_replace_fail=:
     26848
     26849
     26850  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
     26851func_dirname_and_basename ()\
     26852{\
     26853\    case ${1} in\
     26854\      */*) func_dirname_result="${1%/*}${2}" ;;\
     26855\      *  ) func_dirname_result="${3}" ;;\
     26856\    esac\
     26857\    func_basename_result="${1##*/}"\
     26858} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
     26859  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26860    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26861test 0 -eq $? || _lt_function_replace_fail=:
     26862
     26863
     26864  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
     26865func_stripname ()\
     26866{\
     26867\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
     26868\    # positional parameters, so assign one to ordinary parameter first.\
     26869\    func_stripname_result=${3}\
     26870\    func_stripname_result=${func_stripname_result#"${1}"}\
     26871\    func_stripname_result=${func_stripname_result%"${2}"}\
     26872} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
     26873  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26874    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26875test 0 -eq $? || _lt_function_replace_fail=:
     26876
     26877
     26878  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
     26879func_split_long_opt ()\
     26880{\
     26881\    func_split_long_opt_name=${1%%=*}\
     26882\    func_split_long_opt_arg=${1#*=}\
     26883} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
     26884  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26885    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26886test 0 -eq $? || _lt_function_replace_fail=:
     26887
     26888
     26889  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
     26890func_split_short_opt ()\
     26891{\
     26892\    func_split_short_opt_arg=${1#??}\
     26893\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
     26894} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
     26895  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26896    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26897test 0 -eq $? || _lt_function_replace_fail=:
     26898
     26899
     26900  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
     26901func_lo2o ()\
     26902{\
     26903\    case ${1} in\
     26904\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
     26905\      *)    func_lo2o_result=${1} ;;\
     26906\    esac\
     26907} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
     26908  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26909    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26910test 0 -eq $? || _lt_function_replace_fail=:
     26911
     26912
     26913  sed -e '/^func_xform ()$/,/^} # func_xform /c\
     26914func_xform ()\
     26915{\
     26916    func_xform_result=${1%.*}.lo\
     26917} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
     26918  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26919    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26920test 0 -eq $? || _lt_function_replace_fail=:
     26921
     26922
     26923  sed -e '/^func_arith ()$/,/^} # func_arith /c\
     26924func_arith ()\
     26925{\
     26926    func_arith_result=$(( $* ))\
     26927} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
     26928  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26929    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26930test 0 -eq $? || _lt_function_replace_fail=:
     26931
     26932
     26933  sed -e '/^func_len ()$/,/^} # func_len /c\
     26934func_len ()\
     26935{\
     26936    func_len_result=${#1}\
     26937} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
     26938  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26939    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26940test 0 -eq $? || _lt_function_replace_fail=:
     26941
     26942fi
     26943
     26944if test x"$lt_shell_append" = xyes; then
     26945  sed -e '/^func_append ()$/,/^} # func_append /c\
     26946func_append ()\
     26947{\
     26948    eval "${1}+=\\${2}"\
     26949} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
     26950  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26951    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26952test 0 -eq $? || _lt_function_replace_fail=:
     26953
     26954
     26955  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
     26956func_append_quoted ()\
     26957{\
     26958\    func_quote_for_eval "${2}"\
     26959\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
     26960} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
     26961  && mv -f "$cfgfile.tmp" "$cfgfile" \
     26962    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26963test 0 -eq $? || _lt_function_replace_fail=:
     26964
     26965
     26966  # Save a `func_append' function call where possible by direct use of '+='
     26967  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     26968    && mv -f "$cfgfile.tmp" "$cfgfile" \
     26969      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26970  test 0 -eq $? || _lt_function_replace_fail=:
     26971else
     26972  # Save a `func_append' function call even when '+=' is not available
     26973  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     26974    && mv -f "$cfgfile.tmp" "$cfgfile" \
     26975      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     26976  test 0 -eq $? || _lt_function_replace_fail=:
     26977fi
     26978
     26979if test x"$_lt_function_replace_fail" = x":"; then
     26980  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
     26981$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
     26982fi
     26983
     26984
     26985   mv -f "$cfgfile" "$ofile" ||
    2604426986    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    2604526987  chmod +x "$ofile"
     
    2605326995LD=$lt_LD_CXX
    2605426996
     26997# How to create reloadable object files.
     26998reload_flag=$lt_reload_flag_CXX
     26999reload_cmds=$lt_reload_cmds_CXX
     27000
    2605527001# Commands used to build an old-style archive.
    2605627002old_archive_cmds=$lt_old_archive_cmds_CXX
     
    2606527011no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
    2606627012
     27013# Additional compiler flags for building library objects.
     27014pic_flag=$lt_lt_prog_compiler_pic_CXX
     27015
    2606727016# How to pass a linker flag through the compiler.
    2606827017wl=$lt_lt_prog_compiler_wl_CXX
    26069 
    26070 # Additional compiler flags for building library objects.
    26071 pic_flag=$lt_lt_prog_compiler_pic_CXX
    2607227018
    2607327019# Compiler flag to prevent dynamic linking.
     
    2615727103link_all_deplibs=$link_all_deplibs_CXX
    2615827104
    26159 # Fix the shell variable \$srcfile for the compiler.
    26160 fix_srcfile_path=$lt_fix_srcfile_path_CXX
    26161 
    2616227105# Set to "yes" if exported symbols are required.
    2616327106always_export_symbols=$always_export_symbols_CXX
     
    2617427117# Commands necessary for linking programs (against libraries) with templates.
    2617527118prelink_cmds=$lt_prelink_cmds_CXX
     27119
     27120# Commands necessary for finishing linking programs.
     27121postlink_cmds=$lt_postlink_cmds_CXX
    2617627122
    2617727123# Specify filename containing input files.
Note: See TracChangeset for help on using the changeset viewer.