Changes in / [20:30]

Show
Ignore:
Location:
/trunk/pdns
Files:
7 added
5 removed
8 modified

Legend:

Unmodified
Added
Removed
  • /trunk/pdns/HACKING

    r14 r27  
     1To compile from cvs, do: 
     2 
    13$ export CVSROOT=:pserver:anon@outpost.ds9a.nl:/var/cvsroot 
    24$ cvs login 
     
    68... 
    79 
     10And then: 
     11 
     12$ ./bootstrap 
     13 
     14you may need to do that twice. You also need libtool-1.4, 1.3 won't work. 
     15 
    816Send any patches you may have to the mailinglist: 
    917                        pdns-dev@mailman.powerdns.com 
     18Preferred form is: 
     19 
     20$ cvs -z3 diff -uBb 
    1021 
    1122Thanks! 
  • /trunk/pdns/pdns/ueberbackend.cc

    r2 r29  
    1717    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1818*/ 
    19 // $Id: ueberbackend.cc,v 1.1 2002/11/27 15:18:33 ahu Exp $  
     19// $Id: ueberbackend.cc,v 1.2 2002/11/29 22:02:33 ahu Exp $  
    2020/* (C) Copyright 2002 PowerDNS.COM BV */ 
    2121#include "utility.hh" 
     
    155155      rr.content=DNSPacket::serializeSOAData(sd); 
    156156      rr.ttl=sd.ttl; 
    157       cout<<"Set rr.ttl to "<<sd.ttl<<endl; 
    158157      rr.domain_id=sd.domain_id; 
    159158      addOneCache(d_question,rr); 
  • /trunk/pdns/pdns/configure

    r2 r21  
    1 #! /bin/sh 
    2  
    3 # Guess values for system-dependent variables and create Makefiles. 
    4 # Generated automatically using autoconf version 2.13  
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 
    6 # 
    7 # This configure script is free software; the Free Software Foundation 
    8 # gives unlimited permission to copy, distribute and modify it. 
    9  
    10 # Defaults: 
    11 ac_help= 
    12 ac_default_prefix=/usr/local 
    13 # Any additions from configure.in: 
    14 ac_help="$ac_help 
    15   --disable-dependency-tracking Speeds up one-time builds 
    16   --enable-dependency-tracking  Do not reject slow dependency extractors" 
    17 ac_default_prefix=/opt/pdns 
    18 ac_help="$ac_help 
    19   --enable-shared[=PKGS]  build shared libraries [default=yes]" 
    20 ac_help="$ac_help 
    21   --enable-static[=PKGS]  build static libraries [default=yes]" 
    22 ac_help="$ac_help 
    23   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]" 
    24 ac_help="$ac_help 
    25   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]" 
    26  
    27 # Find the correct PATH separator.  Usually this is `:', but 
    28 # DJGPP uses `;' like DOS. 
    29 if test "X${PATH_SEPARATOR+set}" != Xset; then 
    30   UNAME=${UNAME-`uname 2>/dev/null`} 
    31   case X$UNAME in 
    32     *-DOS) lt_cv_sys_path_separator=';' ;; 
    33     *)     lt_cv_sys_path_separator=':' ;; 
    34   esac 
    35   PATH_SEPARATOR=$lt_cv_sys_path_separator 
    36 fi 
    37  
    38  
    39 # Check that we are running under the correct shell. 
    40 SHELL=${CONFIG_SHELL-/bin/sh} 
    41  
    42 case X$ECHO in 
    43 X*--fallback-echo) 
    44   # Remove one level of quotation (which was required for Make). 
    45   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 
    46   ;; 
    47 esac 
    48  
    49 echo=${ECHO-echo} 
    50 if test "X$1" = X--no-reexec; then 
    51   # Discard the --no-reexec flag, and continue. 
    52   shift 
    53 elif test "X$1" = X--fallback-echo; then 
    54   # Avoid inline document here, it may be left over 
    55   : 
    56 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 
    57   # Yippee, $echo works! 
    58   : 
    59 else 
    60   # Restart under the correct shell. 
    61   exec $SHELL "$0" --no-reexec ${1+"$@"} 
    62 fi 
    63  
    64 if test "X$1" = X--fallback-echo; then 
    65   # used as fallback echo 
    66   shift 
    67   cat <<EOF 
    68  
    69 EOF 
    70   exit 0 
    71 fi 
    72  
    73 # The HP-UX ksh and POSIX shell print the target directory to stdout 
    74 # if CDPATH is set. 
    75 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 
    76  
    77 if test -z "$ECHO"; then 
    78 if test "X${echo_test_string+set}" != Xset; then 
    79 # find a string as large as possible, as long as the shell can cope with it 
    80   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 
    81     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 
    82     if (echo_test_string="`eval $cmd`") 2>/dev/null && 
    83        echo_test_string="`eval $cmd`" && 
    84        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 
    85     then 
    86       break 
    87     fi 
    88   done 
    89 fi 
    90  
    91 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 
    92    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 
    93    test "X$echo_testing_string" = "X$echo_test_string"; then 
    94   : 
    95 else 
    96   # The Solaris, AIX, and Digital Unix default echo programs unquote 
    97   # backslashes.  This makes it impossible to quote backslashes using 
    98   #   echo "$something" | sed 's/\\/\\\\/g' 
    99   # 
    100   # So, first we look for a working echo in the user's PATH. 
    101  
    102   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 
    103   for dir in $PATH /usr/ucb; do 
    104     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 
    105        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 
    106        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 
    107        test "X$echo_testing_string" = "X$echo_test_string"; then 
    108       echo="$dir/echo" 
    109       break 
    110     fi 
    111   done 
    112   IFS="$save_ifs" 
    113  
    114   if test "X$echo" = Xecho; then 
    115     # We didn't find a better echo, so look for alternatives. 
    116     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 
    117        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 
    118        test "X$echo_testing_string" = "X$echo_test_string"; then 
    119       # This shell has a builtin print -r that does the trick. 
    120       echo='print -r' 
    121     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 
    122          test "X$CONFIG_SHELL" != X/bin/ksh; then 
    123       # If we have ksh, try running configure again with it. 
    124       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 
    125       export ORIGINAL_CONFIG_SHELL 
    126       CONFIG_SHELL=/bin/ksh 
    127       export CONFIG_SHELL 
    128       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 
    129     else 
    130       # Try using printf. 
    131       echo='printf %s\n' 
    132       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 
    133          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 
    134          test "X$echo_testing_string" = "X$echo_test_string"; then 
    135         # Cool, printf works 
    136         : 
    137       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 
    138            test "X$echo_testing_string" = 'X\t' && 
    139            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 
    140            test "X$echo_testing_string" = "X$echo_test_string"; then 
    141         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 
    142         export CONFIG_SHELL 
    143         SHELL="$CONFIG_SHELL" 
    144         export SHELL 
    145         echo="$CONFIG_SHELL $0 --fallback-echo" 
    146       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 
    147            test "X$echo_testing_string" = 'X\t' && 
    148            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 
    149            test "X$echo_testing_string" = "X$echo_test_string"; then 
    150         echo="$CONFIG_SHELL $0 --fallback-echo" 
    151       else 
    152         # maybe with a smaller string... 
    153         prev=: 
    154  
    155         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 
    156           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 
    157           then 
    158             break 
    159           fi 
    160           prev="$cmd" 
    161         done 
    162  
    163         if test "$prev" != 'sed 50q "$0"'; then 
    164           echo_test_string=`eval $prev` 
    165           export echo_test_string 
    166           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 
    167         else 
    168           # Oops.  We lost completely, so just stick with echo. 
    169           echo=echo 
    170         fi 
    171       fi 
    172     fi 
    173   fi 
    174 fi 
    175 fi 
    176  
    177 # Copy echo and quote the copy suitably for passing to libtool from 
    178 # the Makefile, instead of quoting the original, which is used later. 
    179 ECHO=$echo 
    180 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 
    181    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 
    182 fi 
    183  
    184  
    185 ac_help="$ac_help 
    186   --disable-libtool-lock  avoid locking (might break parallel builds)" 
    187 ac_help="$ac_help 
    188   --with-pic              try to use only PIC/non-PIC objects [default=use both]" 
    189 ac_help="$ac_help 
    190   --with-stl-includes=PATH Specify location of STL headers" 
    191 ac_help="$ac_help 
    192   --with-stl-libs=PATH    Specify location of STL libs" 
    193 ac_help="$ac_help 
    194   --enable-verbose-logging      Do verbose logging" 
    195 ac_help="$ac_help 
    196   --enable-static-binaries      Build static binaries" 
    197  
    198 # Initialize some variables set by options. 
    199 # The variables have the same names as the options, with 
    200 # dashes changed to underlines. 
    201 build=NONE 
    202 cache_file=./config.cache 
    203 exec_prefix=NONE 
    204 host=NONE 
    205 no_create= 
    206 nonopt=NONE 
    207 no_recursion= 
    208 prefix=NONE 
    209 program_prefix=NONE 
    210 program_suffix=NONE 
    211 program_transform_name=s,x,x, 
    212 silent= 
    213 site= 
    214 srcdir= 
    215 target=NONE 
    216 verbose= 
    217 x_includes=NONE 
    218 x_libraries=NONE 
    219 bindir='${exec_prefix}/bin' 
    220 sbindir='${exec_prefix}/sbin' 
    221 libexecdir='${exec_prefix}/libexec' 
    222 datadir='${prefix}/share' 
    223 sysconfdir='${prefix}/etc' 
    224 sharedstatedir='${prefix}/com' 
    225 localstatedir='${prefix}/var' 
    226 libdir='${exec_prefix}/lib' 
    227 includedir='${prefix}/include' 
    228 oldincludedir='/usr/include' 
    229 infodir='${prefix}/info' 
    230 mandir='${prefix}/man' 
    231  
    232 # Initialize some other variables. 
    233 subdirs= 
    234 MFLAGS= MAKEFLAGS= 
    235 SHELL=${CONFIG_SHELL-/bin/sh} 
    236 # Maximum number of lines to put in a shell here document. 
    237 ac_max_here_lines=12 
    238  
    239 ac_prev= 
    240 for ac_option 
    241 do 
    242  
    243   # If the previous option needs an argument, assign it. 
    244   if test -n "$ac_prev"; then 
    245     eval "$ac_prev=\$ac_option" 
    246     ac_prev= 
    247     continue 
    248   fi 
    249  
    250   case "$ac_option" in 
    251   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 
    252   *) ac_optarg= ;; 
    253   esac 
    254  
    255   # Accept the important Cygnus configure options, so we can diagnose typos. 
    256  
    257   case "$ac_option" in 
    258  
    259   -bindir | --bindir | --bindi | --bind | --bin | --bi) 
    260     ac_prev=bindir ;; 
    261   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 
    262     bindir="$ac_optarg" ;; 
    263  
    264   -build | --build | --buil | --bui | --bu) 
    265     ac_prev=build ;; 
    266   -build=* | --build=* | --buil=* | --bui=* | --bu=*) 
    267     build="$ac_optarg" ;; 
    268  
    269   -cache-file | --cache-file | --cache-fil | --cache-fi \ 
    270   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 
    271     ac_prev=cache_file ;; 
    272   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 
    273   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 
    274     cache_file="$ac_optarg" ;; 
    275  
    276   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 
    277     ac_prev=datadir ;; 
    278   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 
    279   | --da=*) 
    280     datadir="$ac_optarg" ;; 
    281  
    282   -disable-* | --disable-*) 
    283     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 
    284     # Reject names that are not valid shell variable names. 
    285     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 
    286       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 
    287     fi 
    288     ac_feature=`echo $ac_feature| sed 's/-/_/g'` 
    289     eval "enable_${ac_feature}=no" ;; 
    290  
    291   -enable-* | --enable-*) 
    292     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 
    293     # Reject names that are not valid shell variable names. 
    294     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 
    295       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 
    296     fi 
    297     ac_feature=`echo $ac_feature| sed 's/-/_/g'` 
    298     case "$ac_option" in 
    299       *=*) ;; 
    300       *) ac_optarg=yes ;; 
    301     esac 
    302     eval "enable_${ac_feature}='$ac_optarg'" ;; 
    303  
    304   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 
    305   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 
    306   | --exec | --exe | --ex) 
    307     ac_prev=exec_prefix ;; 
    308   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 
    309   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 
    310   | --exec=* | --exe=* | --ex=*) 
    311     exec_prefix="$ac_optarg" ;; 
    312  
    313   -gas | --gas | --ga | --g) 
    314     # Obsolete; use --with-gas. 
    315     with_gas=yes ;; 
    316  
    317   -help | --help | --hel | --he) 
    318     # Omit some internal or obsolete options to make the list less imposing. 
    319     # This message is too long to be a string in the A/UX 3.1 sh. 
    320     cat << EOF 
    321 Usage: configure [options] [host] 
    322 Options: [defaults in brackets after descriptions] 
    323 Configuration: 
    324   --cache-file=FILE       cache test results in FILE 
    325   --help                  print this message 
    326   --no-create             do not create output files 
    327   --quiet, --silent       do not print \`checking...' messages 
    328   --version               print the version of autoconf that created configure 
    329 Directory and file names: 
    330   --prefix=PREFIX         install architecture-independent files in PREFIX 
    331                           [$ac_default_prefix] 
    332   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX 
    333                           [same as prefix] 
    334   --bindir=DIR            user executables in DIR [EPREFIX/bin] 
    335   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] 
    336   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] 
    337   --datadir=DIR           read-only architecture-independent data in DIR 
    338                           [PREFIX/share] 
    339   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] 
    340   --sharedstatedir=DIR    modifiable architecture-independent data in DIR 
    341                           [PREFIX/com] 
    342   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] 
    343   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] 
    344   --includedir=DIR        C header files in DIR [PREFIX/include] 
    345   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] 
    346   --infodir=DIR           info documentation in DIR [PREFIX/info] 
    347   --mandir=DIR            man documentation in DIR [PREFIX/man] 
    348   --srcdir=DIR            find the sources in DIR [configure dir or ..] 
    349   --program-prefix=PREFIX prepend PREFIX to installed program names 
    350   --program-suffix=SUFFIX append SUFFIX to installed program names 
    351   --program-transform-name=PROGRAM 
    352                           run sed PROGRAM on installed program names 
    353 EOF 
    354     cat << EOF 
    355 Host type: 
    356   --build=BUILD           configure for building on BUILD [BUILD=HOST] 
    357   --host=HOST             configure for HOST [guessed] 
    358   --target=TARGET         configure for TARGET [TARGET=HOST] 
    359 Features and packages: 
    360   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) 
    361   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
    362   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] 
    363   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) 
    364   --x-includes=DIR        X include files are in DIR 
    365   --x-libraries=DIR       X library files are in DIR 
    366 EOF 
    367     if test -n "$ac_help"; then 
    368       echo "--enable and --with options recognized:$ac_help" 
    369     fi 
    370     exit 0 ;; 
    371  
    372   -host | --host | --hos | --ho) 
    373     ac_prev=host ;; 
    374   -host=* | --host=* | --hos=* | --ho=*) 
    375     host="$ac_optarg" ;; 
    376  
    377   -includedir | --includedir | --includedi | --included | --include \ 
    378   | --includ | --inclu | --incl | --inc) 
    379     ac_prev=includedir ;; 
    380   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 
    381   | --includ=* | --inclu=* | --incl=* | --inc=*) 
    382     includedir="$ac_optarg" ;; 
    383  
    384   -infodir | --infodir | --infodi | --infod | --info | --inf) 
    385     ac_prev=infodir ;; 
    386   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 
    387     infodir="$ac_optarg" ;; 
    388  
    389   -libdir | --libdir | --libdi | --libd) 
    390     ac_prev=libdir ;; 
    391   -libdir=* | --libdir=* | --libdi=* | --libd=*) 
    392     libdir="$ac_optarg" ;; 
    393  
    394   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 
    395   | --libexe | --libex | --libe) 
    396     ac_prev=libexecdir ;; 
    397   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 
    398   | --libexe=* | --libex=* | --libe=*) 
    399     libexecdir="$ac_optarg" ;; 
    400  
    401   -localstatedir | --localstatedir | --localstatedi | --localstated \ 
    402   | --localstate | --localstat | --localsta | --localst \ 
    403   | --locals | --local | --loca | --loc | --lo) 
    404     ac_prev=localstatedir ;; 
    405   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 
    406   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 
    407   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 
    408     localstatedir="$ac_optarg" ;; 
    409  
    410   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 
    411     ac_prev=mandir ;; 
    412   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 
    413     mandir="$ac_optarg" ;; 
    414  
    415   -nfp | --nfp | --nf) 
    416     # Obsolete; use --without-fp. 
    417     with_fp=no ;; 
    418  
    419   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 
    420   | --no-cr | --no-c) 
    421     no_create=yes ;; 
    422  
    423   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 
    424   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 
    425     no_recursion=yes ;; 
    426  
    427   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 
    428   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 
    429   | --oldin | --oldi | --old | --ol | --o) 
    430     ac_prev=oldincludedir ;; 
    431   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 
    432   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 
    433   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 
    434     oldincludedir="$ac_optarg" ;; 
    435  
    436   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 
    437     ac_prev=prefix ;; 
    438   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 
    439     prefix="$ac_optarg" ;; 
    440  
    441   -program-prefix | --program-prefix | --program-prefi | --program-pref \ 
    442   | --program-pre | --program-pr | --program-p) 
    443     ac_prev=program_prefix ;; 
    444   -program-prefix=* | --program-prefix=* | --program-prefi=* \ 
    445   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 
    446     program_prefix="$ac_optarg" ;; 
    447  
    448   -program-suffix | --program-suffix | --program-suffi | --program-suff \ 
    449   | --program-suf | --program-su | --program-s) 
    450     ac_prev=program_suffix ;; 
    451   -program-suffix=* | --program-suffix=* | --program-suffi=* \ 
    452   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 
    453     program_suffix="$ac_optarg" ;; 
    454  
    455   -program-transform-name | --program-transform-name \ 
    456   | --program-transform-nam | --program-transform-na \ 
    457   | --program-transform-n | --program-transform- \ 
    458   | --program-transform | --program-transfor \ 
    459   | --program-transfo | --program-transf \ 
    460   | --program-trans | --program-tran \ 
    461   | --progr-tra | --program-tr | --program-t) 
    462     ac_prev=program_transform_name ;; 
    463   -program-transform-name=* | --program-transform-name=* \ 
    464   | --program-transform-nam=* | --program-transform-na=* \ 
    465   | --program-transform-n=* | --program-transform-=* \ 
    466   | --program-transform=* | --program-transfor=* \ 
    467   | --program-transfo=* | --program-transf=* \ 
    468   | --program-trans=* | --program-tran=* \ 
    469   | --progr-tra=* | --program-tr=* | --program-t=*) 
    470     program_transform_name="$ac_optarg" ;; 
    471  
    472   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 
    473   | -silent | --silent | --silen | --sile | --sil) 
    474     silent=yes ;; 
    475  
    476   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 
    477     ac_prev=sbindir ;; 
    478   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 
    479   | --sbi=* | --sb=*) 
    480     sbindir="$ac_optarg" ;; 
    481  
    482   -sharedstatedir | --sharedstatedir | --sharedstatedi \ 
    483   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 
    484   | --sharedst | --shareds | --shared | --share | --shar \ 
    485   | --sha | --sh) 
    486     ac_prev=sharedstatedir ;; 
    487   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 
    488   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 
    489   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 
    490   | --sha=* | --sh=*) 
    491     sharedstatedir="$ac_optarg" ;; 
    492  
    493   -site | --site | --sit) 
    494     ac_prev=site ;; 
    495   -site=* | --site=* | --sit=*) 
    496     site="$ac_optarg" ;; 
    497  
    498   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 
    499     ac_prev=srcdir ;; 
    500   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 
    501     srcdir="$ac_optarg" ;; 
    502  
    503   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 
    504   | --syscon | --sysco | --sysc | --sys | --sy) 
    505     ac_prev=sysconfdir ;; 
    506   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 
    507   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 
    508     sysconfdir="$ac_optarg" ;; 
    509  
    510   -target | --target | --targe | --targ | --tar | --ta | --t) 
    511     ac_prev=target ;; 
    512   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 
    513     target="$ac_optarg" ;; 
    514  
    515   -v | -verbose | --verbose | --verbos | --verbo | --verb) 
    516     verbose=yes ;; 
    517  
    518   -version | --version | --versio | --versi | --vers) 
    519     echo "configure generated by autoconf version 2.13" 
    520     exit 0 ;; 
    521  
    522   -with-* | --with-*) 
    523     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 
    524     # Reject names that are not valid shell variable names. 
    525     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 
    526       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 
    527     fi 
    528     ac_package=`echo $ac_package| sed 's/-/_/g'` 
    529     case "$ac_option" in 
    530       *=*) ;; 
    531       *) ac_optarg=yes ;; 
    532     esac 
    533     eval "with_${ac_package}='$ac_optarg'" ;; 
    534  
    535   -without-* | --without-*) 
    536     ac_package=`echo $ac_option|sed -e 's/-*without-//'` 
    537     # Reject names that are not valid shell variable names. 
    538     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 
    539       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 
    540     fi 
    541     ac_package=`echo $ac_package| sed 's/-/_/g'` 
    542     eval "with_${ac_package}=no" ;; 
    543  
    544   --x) 
    545     # Obsolete; use --with-x. 
    546     with_x=yes ;; 
    547  
    548   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 
    549   | --x-incl | --x-inc | --x-in | --x-i) 
    550     ac_prev=x_includes ;; 
    551   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 
    552   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 
    553     x_includes="$ac_optarg" ;; 
    554  
    555   -x-libraries | --x-libraries | --x-librarie | --x-librari \ 
    556   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 
    557     ac_prev=x_libraries ;; 
    558   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 
    559   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 
    560     x_libraries="$ac_optarg" ;; 
    561  
    562   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 
    563     ;; 
    564  
    565   *) 
    566     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 
    567       echo "configure: warning: $ac_option: invalid host type" 1>&2 
    568     fi 
    569     if test "x$nonopt" != xNONE; then 
    570       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 
    571     fi 
    572     nonopt="$ac_option" 
    573     ;; 
    574  
    575   esac 
    576 done 
    577  
    578 if test -n "$ac_prev"; then 
    579   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 
    580 fi 
    581  
    582 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 
    583  
    584 # File descriptor usage: 
    585 # 0 standard input 
    586 # 1 file creation 
    587 # 2 errors and warnings 
    588 # 3 some systems may open it to /dev/tty 
    589 # 4 used on the Kubota Titan 
    590 # 6 checking for... messages and results 
    591 # 5 compiler messages saved in config.log 
    592 if test "$silent" = yes; then 
    593   exec 6>/dev/null 
    594 else 
    595   exec 6>&1 
    596 fi 
    597 exec 5>./config.log 
    598  
    599 echo "\ 
    600 This file contains any messages produced by compilers while 
    601 running configure, to aid debugging if configure makes a mistake. 
    602 " 1>&5 
    603  
    604 # Strip out --no-create and --no-recursion so they do not pile up. 
    605 # Also quote any args containing shell metacharacters. 
    606 ac_configure_args= 
    607 for ac_arg 
    608 do 
    609   case "$ac_arg" in 
    610   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 
    611   | --no-cr | --no-c) ;; 
    612   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 
    613   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 
    614   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 
    615   ac_configure_args="$ac_configure_args '$ac_arg'" ;; 
    616   *) ac_configure_args="$ac_configure_args $ac_arg" ;; 
    617   esac 
    618 done 
    619  
    620 # NLS nuisances. 
    621 # Only set these to C if already set.  These must not be set unconditionally 
    622 # because not all systems understand e.g. LANG=C (notably SCO). 
    623 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 
    624 # Non-C LC_CTYPE values break the ctype check. 
    625 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi 
    626 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 
    627 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 
    628 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi 
    629  
    630 # confdefs.h avoids OS command line length limits that DEFS can exceed. 
    631 rm -rf conftest* confdefs.h 
    632 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 
    633 echo > confdefs.h 
    634  
    635 # A filename unique to this package, relative to the directory that 
    636 # configure is in, which we can look for to find out if srcdir is correct. 
    637 ac_unique_file=receiver.cc 
    638  
    639 # Find the source files, if location was not specified. 
    640 if test -z "$srcdir"; then 
    641   ac_srcdir_defaulted=yes 
    642   # Try the directory containing this script, then its parent. 
    643   ac_prog=$0 
    644   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 
    645   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 
    646   srcdir=$ac_confdir 
    647   if test ! -r $srcdir/$ac_unique_file; then 
    648     srcdir=.. 
    649   fi 
    650 else 
    651   ac_srcdir_defaulted=no 
    652 fi 
    653 if test ! -r $srcdir/$ac_unique_file; then 
    654   if test "$ac_srcdir_defaulted" = yes; then 
    655     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 
    656   else 
    657     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 
    658   fi 
    659 fi 
    660 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 
    661  
    662 # Prefer explicitly selected file to automatically selected ones. 
    663 if test -z "$CONFIG_SITE"; then 
    664   if test "x$prefix" != xNONE; then 
    665     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 
    666   else 
    667     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 
    668   fi 
    669 fi 
    670 for ac_site_file in $CONFIG_SITE; do 
    671   if test -r "$ac_site_file"; then 
    672     echo "loading site script $ac_site_file" 
    673     . "$ac_site_file" 
    674   fi 
    675 done 
    676  
    677 if test -r "$cache_file"; then 
    678   echo "loading cache $cache_file" 
    679   . $cache_file 
    680 else 
    681   echo "creating cache $cache_file" 
    682   > $cache_file 
    683 fi 
    684  
    685 ac_ext=c 
    686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    687 ac_cpp='$CPP $CPPFLAGS' 
    688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    690 cross_compiling=$ac_cv_prog_cc_cross 
    691  
    692 ac_exeext= 
    693 ac_objext=o 
    694 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 
    695   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 
    696   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 
    697     ac_n= ac_c=' 
    698 ' ac_t='        ' 
    699   else 
    700     ac_n=-n ac_c= ac_t= 
    701   fi 
    702 else 
    703   ac_n= ac_c='\c' ac_t= 
    704 fi 
    705  
    706  
    707 ac_aux_dir= 
    708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 
    709   if test -f $ac_dir/install-sh; then 
    710     ac_aux_dir=$ac_dir 
    711     ac_install_sh="$ac_aux_dir/install-sh -c" 
    712     break 
    713   elif test -f $ac_dir/install.sh; then 
    714     ac_aux_dir=$ac_dir 
    715     ac_install_sh="$ac_aux_dir/install.sh -c" 
    716     break 
    717   fi 
    718 done 
    719 if test -z "$ac_aux_dir"; then 
    720   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 
    721 fi 
    722 ac_config_guess=$ac_aux_dir/config.guess 
    723 ac_config_sub=$ac_aux_dir/config.sub 
    724 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 
    725  
    726  
    727 # Do some error checking and defaulting for the host and target type. 
    728 # The inputs are: 
    729 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT 
    730 # 
    731 # The rules are: 
    732 # 1. You are not allowed to specify --host, --target, and nonopt at the 
    733 #    same time. 
    734 # 2. Host defaults to nonopt. 
    735 # 3. If nonopt is not specified, then host defaults to the current host, 
    736 #    as determined by config.guess. 
    737 # 4. Target and build default to nonopt. 
    738 # 5. If nonopt is not specified, then target and build default to host. 
    739  
    740 # The aliases save the names the user supplied, while $host etc. 
    741 # will get canonicalized. 
    742 case $host---$target---$nonopt in 
    743 NONE---*---* | *---NONE---* | *---*---NONE) ;; 
    744 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 
    745 esac 
    746  
    747  
    748 # Make sure we can run config.sub. 
    749 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 
    750 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 
    751 fi 
    752  
    753 echo $ac_n "checking host system type""... $ac_c" 1>&6 
    754 echo "configure:755: checking host system type" >&5 
    755  
    756 host_alias=$host 
    757 case "$host_alias" in 
    758 NONE) 
    759   case $nonopt in 
    760   NONE) 
    761     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 
    762     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 
    763     fi ;; 
    764   *) host_alias=$nonopt ;; 
    765   esac ;; 
    766 esac 
    767  
    768 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 
    769 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    770 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    771 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    772 echo "$ac_t""$host" 1>&6 
    773  
    774 echo $ac_n "checking target system type""... $ac_c" 1>&6 
    775 echo "configure:776: checking target system type" >&5 
    776  
    777 target_alias=$target 
    778 case "$target_alias" in 
    779 NONE) 
    780   case $nonopt in 
    781   NONE) target_alias=$host_alias ;; 
    782   *) target_alias=$nonopt ;; 
    783   esac ;; 
    784 esac 
    785  
    786 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 
    787 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    788 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    789 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    790 echo "$ac_t""$target" 1>&6 
    791  
    792 echo $ac_n "checking build system type""... $ac_c" 1>&6 
    793 echo "configure:794: checking build system type" >&5 
    794  
    795 build_alias=$build 
    796 case "$build_alias" in 
    797 NONE) 
    798   case $nonopt in 
    799   NONE) build_alias=$host_alias ;; 
    800   *) build_alias=$nonopt ;; 
    801   esac ;; 
    802 esac 
    803  
    804 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 
    805 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    806 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    807 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    808 echo "$ac_t""$build" 1>&6 
    809  
    810 test "$host_alias" != "$target_alias" && 
    811   test "$program_prefix$program_suffix$program_transform_name" = \ 
    812     NONENONEs,x,x, && 
    813   program_prefix=${target_alias}- 
    814  
    815  
    816 # expand $ac_aux_dir to an absolute path 
    817 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 
    818  
    819 # Find a good install program.  We prefer a C program (faster), 
    820 # so one script is as good as another.  But avoid the broken or 
    821 # incompatible versions: 
    822 # SysV /etc/install, /usr/sbin/install 
    823 # SunOS /usr/etc/install 
    824 # IRIX /sbin/install 
    825 # AIX /bin/install 
    826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 
    827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 
    828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 
    829 # ./install, which can be erroneously created by make from ./install.sh. 
    830 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 
    831 echo "configure:832: checking for a BSD compatible install" >&5 
    832 if test -z "$INSTALL"; then 
    833 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 
    834   echo $ac_n "(cached) $ac_c" 1>&6 
    835 else 
    836     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":" 
    837   for ac_dir in $PATH; do 
    838     # Account for people who put trailing slashes in PATH elements. 
    839     case "$ac_dir/" in 
    840     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 
    841     *) 
    842       # OSF1 and SCO ODT 3.0 have their own names for install. 
    843       # Don't use installbsd from OSF since it installs stuff as root 
    844       # by default. 
    845       for ac_prog in ginstall scoinst install; do 
    846         if test -f $ac_dir/$ac_prog; then 
    847           if test $ac_prog = install && 
    848             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 
    849             # AIX install.  It has an incompatible calling convention. 
    850             : 
    851           else 
    852             ac_cv_path_install="$ac_dir/$ac_prog -c" 
    853             break 2 
    854           fi 
    855         fi 
    856       done 
    857       ;; 
    858     esac 
    859   done 
    860   IFS="$ac_save_IFS" 
    861  
    862 fi 
    863   if test "${ac_cv_path_install+set}" = set; then 
    864     INSTALL="$ac_cv_path_install" 
    865   else 
    866     # As a last resort, use the slow shell script.  We don't cache a 
    867     # path for INSTALL within a source directory, because that will 
    868     # break other packages using the cache if that directory is 
    869     # removed, or if the path is relative. 
    870     INSTALL="$ac_install_sh" 
    871   fi 
    872 fi 
    873 echo "$ac_t""$INSTALL" 1>&6 
    874  
    875 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 
    876 # It thinks the first close brace ends the variable substitution. 
    877 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 
    878  
    879 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 
    880  
    881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 
    882  
    883 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 
    884 echo "configure:885: checking whether build environment is sane" >&5 
    885 # Just in case 
    886 sleep 1 
    887 echo timestamp > conftest.file 
    888 # Do `set' in a subshell so we don't clobber the current shell's 
    889 # arguments.  Must try -L first in case configure is actually a 
    890 # symlink; some systems play weird games with the mod time of symlinks 
    891 # (eg FreeBSD returns the mod time of the symlink's containing 
    892 # directory). 
    893 if ( 
    894    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 
    895    if test "$*" = "X"; then 
    896       # -L didn't work. 
    897       set X `ls -t $srcdir/configure conftest.file` 
    898    fi 
    899    rm -f conftest.file 
    900    if test "$*" != "X $srcdir/configure conftest.file" \ 
    901       && test "$*" != "X conftest.file $srcdir/configure"; then 
    902  
    903       # If neither matched, then we have a broken ls.  This can happen 
    904       # if, for instance, CONFIG_SHELL is bash and it inherits a 
    905       # broken ls alias from the environment.  This has actually 
    906       # happened.  Such a system could not be considered "sane". 
    907       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken 
    908 alias in your environment" 1>&2; exit 1; } 
    909    fi 
    910  
    911    test "$2" = conftest.file 
    912    ) 
    913 then 
    914    # Ok. 
    915    : 
    916 else 
    917    { echo "configure: error: newly created file is older than distributed files! 
    918 Check your system clock" 1>&2; exit 1; } 
    919 fi 
    920 echo "$ac_t""yes" 1>&6 
    921 if test "$program_transform_name" = s,x,x,; then 
    922   program_transform_name= 
    923 else 
    924   # Double any \ or $.  echo might interpret backslashes. 
    925   cat <<\EOF_SED > conftestsed 
    926 s,\\,\\\\,g; s,\$,$$,g 
    927 EOF_SED 
    928   program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 
    929   rm -f conftestsed 
    930 fi 
    931 test "$program_prefix" != NONE && 
    932   program_transform_name="s,^,${program_prefix},; $program_transform_name" 
    933 # Use a double $ so make ignores it. 
    934 test "$program_suffix" != NONE && 
    935   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 
    936  
    937 # sed with no file args requires a program. 
    938 test "$program_transform_name" = "" && program_transform_name="s,x,x," 
    939  
    940 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 
    941 # Use eval to expand $SHELL 
    942 if eval "$MISSING --run true"; then 
    943   am_missing_run="$MISSING --run " 
    944 else 
    945   am_missing_run= 
    946   am_backtick='`' 
    947   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2 
    948 fi 
    949  
    950 for ac_prog in mawk gawk nawk awk 
    951 do 
    952 # Extract the first word of "$ac_prog", so it can be a program name with args. 
    953 set dummy $ac_prog; ac_word=$2 
    954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    955 echo "configure:956: checking for $ac_word" >&5 
    956 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 
    957   echo $ac_n "(cached) $ac_c" 1>&6 
    958 else 
    959   if test -n "$AWK"; then 
    960   ac_cv_prog_AWK="$AWK" # Let the user override the test. 
    961 else 
    962   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    963   ac_dummy="$PATH" 
    964   for ac_dir in $ac_dummy; do 
    965     test -z "$ac_dir" && ac_dir=. 
    966     if test -f $ac_dir/$ac_word; then 
    967       ac_cv_prog_AWK="$ac_prog" 
    968       break 
    969     fi 
    970   done 
    971   IFS="$ac_save_ifs" 
    972 fi 
    973 fi 
    974 AWK="$ac_cv_prog_AWK" 
    975 if test -n "$AWK"; then 
    976   echo "$ac_t""$AWK" 1>&6 
    977 else 
    978   echo "$ac_t""no" 1>&6 
    979 fi 
    980  
    981 test -n "$AWK" && break 
    982 done 
    983  
    984 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 
    985 echo "configure:986: checking whether ${MAKE-make} sets \${MAKE}" >&5 
    986 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 
    987 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 
    988   echo $ac_n "(cached) $ac_c" 1>&6 
    989 else 
    990   cat > conftestmake <<\EOF 
    991 all: 
    992         @echo 'ac_maketemp="${MAKE}"' 
    993 EOF 
    994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 
    995 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 
    996 if test -n "$ac_maketemp"; then 
    997   eval ac_cv_prog_make_${ac_make}_set=yes 
    998 else 
    999   eval ac_cv_prog_make_${ac_make}_set=no 
    1000 fi 
    1001 rm -f conftestmake 
    1002 fi 
    1003 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 
    1004   echo "$ac_t""yes" 1>&6 
    1005   SET_MAKE= 
    1006 else 
    1007   echo "$ac_t""no" 1>&6 
    1008   SET_MAKE="MAKE=${MAKE-make}" 
    1009 fi 
    1010  
    1011 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 
    1012 if test "${enable_dependency_tracking+set}" = set; then 
    1013   enableval="$enable_dependency_tracking" 
    1014   : 
    1015 fi 
    1016  
    1017 if test "x$enable_dependency_tracking" != xno; then 
    1018   am_depcomp="$ac_aux_dir/depcomp" 
    1019   AMDEPBACKSLASH='\' 
    1020 fi 
    1021  
    1022  
    1023 if test "x$enable_dependency_tracking" != xno; then 
    1024   AMDEP_TRUE= 
    1025   AMDEP_FALSE='#' 
    1026 else 
    1027   AMDEP_TRUE='#' 
    1028   AMDEP_FALSE= 
    1029 fi 
    1030  
    1031  
    1032  
    1033  
    1034 rm -f .deps 2>/dev/null 
    1035 mkdir .deps 2>/dev/null 
    1036 if test -d .deps; then 
    1037   DEPDIR=.deps 
    1038 else 
    1039   # MS-DOS does not allow filenames that begin with a dot. 
    1040   DEPDIR=_deps 
    1041 fi 
    1042 rmdir .deps 2>/dev/null 
    1043  
    1044  
    1045 # test to see if srcdir already configured 
    1046 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 
    1047    test -f $srcdir/config.status; then 
    1048   { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; } 
    1049 fi 
    1050  
    1051 # Define the identity of the package. 
    1052 PACKAGE=pdns 
    1053 VERSION=2.9 
    1054 cat >> confdefs.h <<EOF 
    1055 #define PACKAGE "$PACKAGE" 
    1056 EOF 
    1057  
    1058 cat >> confdefs.h <<EOF 
    1059 #define VERSION "$VERSION" 
    1060 EOF 
    1061  
    1062  
    1063 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow 
    1064 # the ones we care about. 
    1065  
    1066 # Autoconf 2.50 always computes EXEEXT.  However we need to be 
    1067 # compatible with 2.13, for now.  So we always define EXEEXT, but we 
    1068 # don't compute it. 
    1069  
    1070 # Similar for OBJEXT -- only we only use OBJEXT if the user actually 
    1071 # requests that it be used.  This is a bit dumb. 
    1072 : ${OBJEXT=o} 
    1073  
    1074  
    1075 # Some tools Automake needs. 
    1076  
    1077 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 
    1078  
    1079  
    1080 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 
    1081  
    1082  
    1083 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 
    1084  
    1085  
    1086 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 
    1087  
    1088  
    1089 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 
    1090  
    1091  
    1092 AMTAR=${AMTAR-"${am_missing_run}tar"} 
    1093  
    1094 install_sh=${install_sh-"$am_aux_dir/install-sh"} 
    1095  
    1096 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 
    1097  
    1098 # We need awk for the "check" target.  The system "awk" is bad on 
    1099 # some platforms. 
    1100  
    1101  
    1102    
    1103  
    1104 CXXFLAGS="-Wall -pthread -O2" 
    1105  
    1106  
    1107 # Extract the first word of "gcc", so it can be a program name with args. 
    1108 set dummy gcc; ac_word=$2 
    1109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1110 echo "configure:1111: checking for $ac_word" >&5 
    1111 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    1112   echo $ac_n "(cached) $ac_c" 1>&6 
    1113 else 
    1114   if test -n "$CC"; then 
    1115   ac_cv_prog_CC="$CC" # Let the user override the test. 
    1116 else 
    1117   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1118   ac_dummy="$PATH" 
    1119   for ac_dir in $ac_dummy; do 
    1120     test -z "$ac_dir" && ac_dir=. 
    1121     if test -f $ac_dir/$ac_word; then 
    1122       ac_cv_prog_CC="gcc" 
    1123       break 
    1124     fi 
    1125   done 
    1126   IFS="$ac_save_ifs" 
    1127 fi 
    1128 fi 
    1129 CC="$ac_cv_prog_CC" 
    1130 if test -n "$CC"; then 
    1131   echo "$ac_t""$CC" 1>&6 
    1132 else 
    1133   echo "$ac_t""no" 1>&6 
    1134 fi 
    1135  
    1136 if test -z "$CC"; then 
    1137   # Extract the first word of "cc", so it can be a program name with args. 
    1138 set dummy cc; ac_word=$2 
    1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1140 echo "configure:1141: checking for $ac_word" >&5 
    1141 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    1142   echo $ac_n "(cached) $ac_c" 1>&6 
    1143 else 
    1144   if test -n "$CC"; then 
    1145   ac_cv_prog_CC="$CC" # Let the user override the test. 
    1146 else 
    1147   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1148   ac_prog_rejected=no 
    1149   ac_dummy="$PATH" 
    1150   for ac_dir in $ac_dummy; do 
    1151     test -z "$ac_dir" && ac_dir=. 
    1152     if test -f $ac_dir/$ac_word; then 
    1153       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 
    1154         ac_prog_rejected=yes 
    1155         continue 
    1156       fi 
    1157       ac_cv_prog_CC="cc" 
    1158       break 
    1159     fi 
    1160   done 
    1161   IFS="$ac_save_ifs" 
    1162 if test $ac_prog_rejected = yes; then 
    1163   # We found a bogon in the path, so make sure we never use it. 
    1164   set dummy $ac_cv_prog_CC 
    1165   shift 
    1166   if test $# -gt 0; then 
    1167     # We chose a different compiler from the bogus one. 
    1168     # However, it has the same basename, so the bogon will be chosen 
    1169     # first if we set CC to just the basename; use the full file name. 
    1170     shift 
    1171     set dummy "$ac_dir/$ac_word" "$@" 
    1172     shift 
    1173     ac_cv_prog_CC="$@" 
    1174   fi 
    1175 fi 
    1176 fi 
    1177 fi 
    1178 CC="$ac_cv_prog_CC" 
    1179 if test -n "$CC"; then 
    1180   echo "$ac_t""$CC" 1>&6 
    1181 else 
    1182   echo "$ac_t""no" 1>&6 
    1183 fi 
    1184  
    1185   if test -z "$CC"; then 
    1186     case "`uname -s`" in 
    1187     *win32* | *WIN32*) 
    1188       # Extract the first word of "cl", so it can be a program name with args. 
    1189 set dummy cl; ac_word=$2 
    1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1191 echo "configure:1192: checking for $ac_word" >&5 
    1192 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    1193   echo $ac_n "(cached) $ac_c" 1>&6 
    1194 else 
    1195   if test -n "$CC"; then 
    1196   ac_cv_prog_CC="$CC" # Let the user override the test. 
    1197 else 
    1198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1199   ac_dummy="$PATH" 
    1200   for ac_dir in $ac_dummy; do 
    1201     test -z "$ac_dir" && ac_dir=. 
    1202     if test -f $ac_dir/$ac_word; then 
    1203       ac_cv_prog_CC="cl" 
    1204       break 
    1205     fi 
    1206   done 
    1207   IFS="$ac_save_ifs" 
    1208 fi 
    1209 fi 
    1210 CC="$ac_cv_prog_CC" 
    1211 if test -n "$CC"; then 
    1212   echo "$ac_t""$CC" 1>&6 
    1213 else 
    1214   echo "$ac_t""no" 1>&6 
    1215 fi 
    1216  ;; 
    1217     esac 
    1218   fi 
    1219   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 
    1220 fi 
    1221  
    1222 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    1223 echo "configure:1224: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
    1224  
    1225 ac_ext=c 
    1226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    1227 ac_cpp='$CPP $CPPFLAGS' 
    1228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    1229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    1230 cross_compiling=$ac_cv_prog_cc_cross 
    1231  
    1232 cat > conftest.$ac_ext << EOF 
    1233  
    1234 #line 1235 "configure" 
    1235 #include "confdefs.h" 
    1236  
    1237 main(){return(0);} 
    1238 EOF 
    1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    1240   ac_cv_prog_cc_works=yes 
    1241   # If we can't run a trivial program, we are probably using a cross compiler. 
    1242   if (./conftest; exit) 2>/dev/null; then 
    1243     ac_cv_prog_cc_cross=no 
    1244   else 
    1245     ac_cv_prog_cc_cross=yes 
    1246   fi 
    1247 else 
    1248   echo "configure: failed program was:" >&5 
    1249   cat conftest.$ac_ext >&5 
    1250   ac_cv_prog_cc_works=no 
    1251 fi 
    1252 rm -fr conftest* 
    1253 ac_ext=c 
    1254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    1255 ac_cpp='$CPP $CPPFLAGS' 
    1256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    1257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    1258 cross_compiling=$ac_cv_prog_cc_cross 
    1259  
    1260 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 
    1261 if test $ac_cv_prog_cc_works = no; then 
    1262   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 
    1263 fi 
    1264 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    1265 echo "configure:1266: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
    1266 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
    1267 cross_compiling=$ac_cv_prog_cc_cross 
    1268  
    1269 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
    1270 echo "configure:1271: checking whether we are using GNU C" >&5 
    1271 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
    1272   echo $ac_n "(cached) $ac_c" 1>&6 
    1273 else 
    1274   cat > conftest.c <<EOF 
    1275 #ifdef __GNUC__ 
    1276   yes; 
    1277 #endif 
    1278 EOF 
    1279 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
    1280   ac_cv_prog_gcc=yes 
    1281 else 
    1282   ac_cv_prog_gcc=no 
    1283 fi 
    1284 fi 
    1285  
    1286 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 
    1287  
    1288 if test $ac_cv_prog_gcc = yes; then 
    1289   GCC=yes 
    1290 else 
    1291   GCC= 
    1292 fi 
    1293  
    1294 ac_test_CFLAGS="${CFLAGS+set}" 
    1295 ac_save_CFLAGS="$CFLAGS" 
    1296 CFLAGS= 
    1297 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
    1298 echo "configure:1299: checking whether ${CC-cc} accepts -g" >&5 
    1299 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
    1300   echo $ac_n "(cached) $ac_c" 1>&6 
    1301 else 
    1302   echo 'void f(){}' > conftest.c 
    1303 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 
    1304   ac_cv_prog_cc_g=yes 
    1305 else 
    1306   ac_cv_prog_cc_g=no 
    1307 fi 
    1308 rm -f conftest* 
    1309  
    1310 fi 
    1311  
    1312 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 
    1313 if test "$ac_test_CFLAGS" = set; then 
    1314   CFLAGS="$ac_save_CFLAGS" 
    1315 elif test $ac_cv_prog_cc_g = yes; then 
    1316   if test "$GCC" = yes; then 
    1317     CFLAGS="-g -O2" 
    1318   else 
    1319     CFLAGS="-g" 
    1320   fi 
    1321 else 
    1322   if test "$GCC" = yes; then 
    1323     CFLAGS="-O2" 
    1324   else 
    1325     CFLAGS= 
    1326   fi 
    1327 fi 
    1328  
    1329  
    1330 am_make=${MAKE-make} 
    1331 cat > confinc << 'END' 
    1332 doit: 
    1333         @echo done 
    1334 END 
    1335 # If we don't find an include directive, just comment out the code. 
    1336 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6 
    1337 echo "configure:1338: checking for style of include used by $am_make" >&5 
    1338 am__include='#' 
    1339 am__quote= 
    1340 _am_result=none 
    1341 # First try GNU make style include. 
    1342 echo "include confinc" > confmf 
    1343 # We grep out `Entering directory' and `Leaving directory' 
    1344 # messages which can occur if `w' ends up in MAKEFLAGS. 
    1345 # In particular we don't look at `^make:' because GNU make might 
    1346 # be invoked under some other name (usually "gmake"), in which 
    1347 # case it prints its new name instead of `make'. 
    1348 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 
    1349    am__include=include 
    1350    am__quote= 
    1351    _am_result=GNU 
    1352 fi 
    1353 # Now try BSD make style include. 
    1354 if test "$am__include" = "#"; then 
    1355    echo '.include "confinc"' > confmf 
    1356    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 
    1357       am__include=.include 
    1358       am__quote='"' 
    1359       _am_result=BSD 
    1360    fi 
    1361 fi 
    1362  
    1363  
    1364 echo "$ac_t""$_am_result" 1>&6 
    1365 rm -f confinc confmf 
    1366  
    1367  
    1368 depcc="$CC"   am_compiler_list= 
    1369  
    1370 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 
    1371 echo "configure:1372: checking dependency style of $depcc" >&5 
    1372 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then 
    1373   echo $ac_n "(cached) $ac_c" 1>&6 
    1374 else 
    1375   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 
    1376   # We make a subdir and do the tests there.  Otherwise we can end up 
    1377   # making bogus files that we don't know about and never remove.  For 
    1378   # instance it was reported that on HP-UX the gcc test will end up 
    1379   # making a dummy file named `D' -- because `-MD' means `put the output 
    1380   # in D'. 
    1381   mkdir conftest.dir 
    1382   # Copy depcomp to subdir because otherwise we won't find it if we're 
    1383   # using a relative directory. 
    1384   cp "$am_depcomp" conftest.dir 
    1385   cd conftest.dir 
    1386  
    1387   am_cv_CC_dependencies_compiler_type=none 
    1388   if test "$am_compiler_list" = ""; then 
    1389      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 
    1390   fi 
    1391   for depmode in $am_compiler_list; do 
    1392     # We need to recreate these files for each test, as the compiler may 
    1393     # overwrite some of them when testing with obscure command lines. 
    1394     # This happens at least with the AIX C compiler. 
    1395     echo '#include "conftest.h"' > conftest.c 
    1396     echo 'int i;' > conftest.h 
    1397     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 
    1398  
    1399     case $depmode in 
    1400     nosideeffect) 
    1401       # after this tag, mechanisms are not by side-effect, so they'll 
    1402       # only be used when explicitly requested 
    1403       if test "x$enable_dependency_tracking" = xyes; then 
    1404         continue 
    1405       else 
    1406         break 
    1407       fi 
    1408       ;; 
    1409     none) break ;; 
    1410     esac 
    1411     # We check with `-c' and `-o' for the sake of the "dashmstdout" 
    1412     # mode.  It turns out that the SunPro C++ compiler does not properly 
    1413     # handle `-M -o', and we need to detect this. 
    1414     if depmode=$depmode \ 
    1415        source=conftest.c object=conftest.o \ 
    1416        depfile=conftest.Po tmpdepfile=conftest.TPo \ 
    1417        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 
    1418        grep conftest.h conftest.Po > /dev/null 2>&1 && 
    1419        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 
    1420       am_cv_CC_dependencies_compiler_type=$depmode 
    1421       break 
    1422     fi 
    1423   done 
    1424  
    1425   cd .. 
    1426   rm -rf conftest.dir 
    1427 else 
    1428   am_cv_CC_dependencies_compiler_type=none 
    1429 fi 
    1430  
    1431 fi 
    1432  
    1433 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 
    1434 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 
    1435  
    1436  
    1437 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 
    1438 do 
    1439 # Extract the first word of "$ac_prog", so it can be a program name with args. 
    1440 set dummy $ac_prog; ac_word=$2 
    1441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1442 echo "configure:1443: checking for $ac_word" >&5 
    1443 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 
    1444   echo $ac_n "(cached) $ac_c" 1>&6 
    1445 else 
    1446   if test -n "$CXX"; then 
    1447   ac_cv_prog_CXX="$CXX" # Let the user override the test. 
    1448 else 
    1449   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1450   ac_dummy="$PATH" 
    1451   for ac_dir in $ac_dummy; do 
    1452     test -z "$ac_dir" && ac_dir=. 
    1453     if test -f $ac_dir/$ac_word; then 
    1454       ac_cv_prog_CXX="$ac_prog" 
    1455       break 
    1456     fi 
    1457   done 
    1458   IFS="$ac_save_ifs" 
    1459 fi 
    1460 fi 
    1461 CXX="$ac_cv_prog_CXX" 
    1462 if test -n "$CXX"; then 
    1463   echo "$ac_t""$CXX" 1>&6 
    1464 else 
    1465   echo "$ac_t""no" 1>&6 
    1466 fi 
    1467  
    1468 test -n "$CXX" && break 
    1469 done 
    1470 test -n "$CXX" || CXX="gcc" 
    1471  
    1472  
    1473 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    1474 echo "configure:1475: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 
    1475  
    1476 ac_ext=C 
    1477 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    1478 ac_cpp='$CXXCPP $CPPFLAGS' 
    1479 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    1480 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    1481 cross_compiling=$ac_cv_prog_cxx_cross 
    1482  
    1483 cat > conftest.$ac_ext << EOF 
    1484  
    1485 #line 1486 "configure" 
    1486 #include "confdefs.h" 
    1487  
    1488 int main(){return(0);} 
    1489 EOF 
    1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    1491   ac_cv_prog_cxx_works=yes 
    1492   # If we can't run a trivial program, we are probably using a cross compiler. 
    1493   if (./conftest; exit) 2>/dev/null; then 
    1494     ac_cv_prog_cxx_cross=no 
    1495   else 
    1496     ac_cv_prog_cxx_cross=yes 
    1497   fi 
    1498 else 
    1499   echo "configure: failed program was:" >&5 
    1500   cat conftest.$ac_ext >&5 
    1501   ac_cv_prog_cxx_works=no 
    1502 fi 
    1503 rm -fr conftest* 
    1504 ac_ext=c 
    1505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    1506 ac_cpp='$CPP $CPPFLAGS' 
    1507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    1508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    1509 cross_compiling=$ac_cv_prog_cc_cross 
    1510  
    1511 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 
    1512 if test $ac_cv_prog_cxx_works = no; then 
    1513   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 
    1514 fi 
    1515 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    1516 echo "configure:1517: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 
    1517 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 
    1518 cross_compiling=$ac_cv_prog_cxx_cross 
    1519  
    1520 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 
    1521 echo "configure:1522: checking whether we are using GNU C++" >&5 
    1522 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 
    1523   echo $ac_n "(cached) $ac_c" 1>&6 
    1524 else 
    1525   cat > conftest.C <<EOF 
    1526 #ifdef __GNUC__ 
    1527   yes; 
    1528 #endif 
    1529 EOF 
    1530 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
    1531   ac_cv_prog_gxx=yes 
    1532 else 
    1533   ac_cv_prog_gxx=no 
    1534 fi 
    1535 fi 
    1536  
    1537 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 
    1538  
    1539 if test $ac_cv_prog_gxx = yes; then 
    1540   GXX=yes 
    1541 else 
    1542   GXX= 
    1543 fi 
    1544  
    1545 ac_test_CXXFLAGS="${CXXFLAGS+set}" 
    1546 ac_save_CXXFLAGS="$CXXFLAGS" 
    1547 CXXFLAGS= 
    1548 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 
    1549 echo "configure:1550: checking whether ${CXX-g++} accepts -g" >&5 
    1550 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 
    1551   echo $ac_n "(cached) $ac_c" 1>&6 
    1552 else 
    1553   echo 'void f(){}' > conftest.cc 
    1554 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 
    1555   ac_cv_prog_cxx_g=yes 
    1556 else 
    1557   ac_cv_prog_cxx_g=no 
    1558 fi 
    1559 rm -f conftest* 
    1560  
    1561 fi 
    1562  
    1563 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 
    1564 if test "$ac_test_CXXFLAGS" = set; then 
    1565   CXXFLAGS="$ac_save_CXXFLAGS" 
    1566 elif test $ac_cv_prog_cxx_g = yes; then 
    1567   if test "$GXX" = yes; then 
    1568     CXXFLAGS="-g -O2" 
    1569   else 
    1570     CXXFLAGS="-g" 
    1571   fi 
    1572 else 
    1573   if test "$GXX" = yes; then 
    1574     CXXFLAGS="-O2" 
    1575   else 
    1576     CXXFLAGS= 
    1577   fi 
    1578 fi 
    1579  
    1580 depcc="$CXX"  am_compiler_list= 
    1581  
    1582 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 
    1583 echo "configure:1584: checking dependency style of $depcc" >&5 
    1584 if eval "test \"`echo '$''{'am_cv_CXX_dependencies_compiler_type'+set}'`\" = set"; then 
    1585   echo $ac_n "(cached) $ac_c" 1>&6 
    1586 else 
    1587   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 
    1588   # We make a subdir and do the tests there.  Otherwise we can end up 
    1589   # making bogus files that we don't know about and never remove.  For 
    1590   # instance it was reported that on HP-UX the gcc test will end up 
    1591   # making a dummy file named `D' -- because `-MD' means `put the output 
    1592   # in D'. 
    1593   mkdir conftest.dir 
    1594   # Copy depcomp to subdir because otherwise we won't find it if we're 
    1595   # using a relative directory. 
    1596   cp "$am_depcomp" conftest.dir 
    1597   cd conftest.dir 
    1598  
    1599   am_cv_CXX_dependencies_compiler_type=none 
    1600   if test "$am_compiler_list" = ""; then 
    1601      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 
    1602   fi 
    1603   for depmode in $am_compiler_list; do 
    1604     # We need to recreate these files for each test, as the compiler may 
    1605     # overwrite some of them when testing with obscure command lines. 
    1606     # This happens at least with the AIX C compiler. 
    1607     echo '#include "conftest.h"' > conftest.c 
    1608     echo 'int i;' > conftest.h 
    1609     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 
    1610  
    1611     case $depmode in 
    1612     nosideeffect) 
    1613       # after this tag, mechanisms are not by side-effect, so they'll 
    1614       # only be used when explicitly requested 
    1615       if test "x$enable_dependency_tracking" = xyes; then 
    1616         continue 
    1617       else 
    1618         break 
    1619       fi 
    1620       ;; 
    1621     none) break ;; 
    1622     esac 
    1623     # We check with `-c' and `-o' for the sake of the "dashmstdout" 
    1624     # mode.  It turns out that the SunPro C++ compiler does not properly 
    1625     # handle `-M -o', and we need to detect this. 
    1626     if depmode=$depmode \ 
    1627        source=conftest.c object=conftest.o \ 
    1628        depfile=conftest.Po tmpdepfile=conftest.TPo \ 
    1629        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 
    1630        grep conftest.h conftest.Po > /dev/null 2>&1 && 
    1631        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 
    1632       am_cv_CXX_dependencies_compiler_type=$depmode 
    1633       break 
    1634     fi 
    1635   done 
    1636  
    1637   cd .. 
    1638   rm -rf conftest.dir 
    1639 else 
    1640   am_cv_CXX_dependencies_compiler_type=none 
    1641 fi 
    1642  
    1643 fi 
    1644  
    1645 echo "$ac_t""$am_cv_CXX_dependencies_compiler_type" 1>&6 
    1646 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" 
    1647  
    1648  
    1649 for ac_prog in 'bison -y' byacc 
    1650 do 
    1651 # Extract the first word of "$ac_prog", so it can be a program name with args. 
    1652 set dummy $ac_prog; ac_word=$2 
    1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1654 echo "configure:1655: checking for $ac_word" >&5 
    1655 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 
    1656   echo $ac_n "(cached) $ac_c" 1>&6 
    1657 else 
    1658   if test -n "$YACC"; then 
    1659   ac_cv_prog_YACC="$YACC" # Let the user override the test. 
    1660 else 
    1661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1662   ac_dummy="$PATH" 
    1663   for ac_dir in $ac_dummy; do 
    1664     test -z "$ac_dir" && ac_dir=. 
    1665     if test -f $ac_dir/$ac_word; then 
    1666       ac_cv_prog_YACC="$ac_prog" 
    1667       break 
    1668     fi 
    1669   done 
    1670   IFS="$ac_save_ifs" 
    1671 fi 
    1672 fi 
    1673 YACC="$ac_cv_prog_YACC" 
    1674 if test -n "$YACC"; then 
    1675   echo "$ac_t""$YACC" 1>&6 
    1676 else 
    1677   echo "$ac_t""no" 1>&6 
    1678 fi 
    1679  
    1680 test -n "$YACC" && break 
    1681 done 
    1682 test -n "$YACC" || YACC="yacc" 
    1683  
    1684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
    1685 echo "configure:1686: checking how to run the C preprocessor" >&5 
    1686 # On Suns, sometimes $CPP names a directory. 
    1687 if test -n "$CPP" && test -d "$CPP"; then 
    1688   CPP= 
    1689 fi 
    1690 if test -z "$CPP"; then 
    1691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 
    1692   echo $ac_n "(cached) $ac_c" 1>&6 
    1693 else 
    1694     # This must be in double quotes, not single quotes, because CPP may get 
    1695   # substituted into the Makefile and "${CC-cc}" will confuse make. 
    1696   CPP="${CC-cc} -E" 
    1697   # On the NeXT, cc -E runs the code through the compiler's parser, 
    1698   # not just through cpp. 
    1699   cat > conftest.$ac_ext <<EOF 
    1700 #line 1701 "configure" 
    1701 #include "confdefs.h" 
    1702 #include <assert.h> 
    1703 Syntax Error 
    1704 EOF 
    1705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1706 { (eval echo configure:1707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    1707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    1708 if test -z "$ac_err"; then 
    1709   : 
    1710 else 
    1711   echo "$ac_err" >&5 
    1712   echo "configure: failed program was:" >&5 
    1713   cat conftest.$ac_ext >&5 
    1714   rm -rf conftest* 
    1715   CPP="${CC-cc} -E -traditional-cpp" 
    1716   cat > conftest.$ac_ext <<EOF 
    1717 #line 1718 "configure" 
    1718 #include "confdefs.h" 
    1719 #include <assert.h> 
    1720 Syntax Error 
    1721 EOF 
    1722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1723 { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    1724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    1725 if test -z "$ac_err"; then 
    1726   : 
    1727 else 
    1728   echo "$ac_err" >&5 
    1729   echo "configure: failed program was:" >&5 
    1730   cat conftest.$ac_ext >&5 
    1731   rm -rf conftest* 
    1732   CPP="${CC-cc} -nologo -E" 
    1733   cat > conftest.$ac_ext <<EOF 
    1734 #line 1735 "configure" 
    1735 #include "confdefs.h" 
    1736 #include <assert.h> 
    1737 Syntax Error 
    1738 EOF 
    1739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1740 { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    1741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    1742 if test -z "$ac_err"; then 
    1743   : 
    1744 else 
    1745   echo "$ac_err" >&5 
    1746   echo "configure: failed program was:" >&5 
    1747   cat conftest.$ac_ext >&5 
    1748   rm -rf conftest* 
    1749   CPP=/lib/cpp 
    1750 fi 
    1751 rm -f conftest* 
    1752 fi 
    1753 rm -f conftest* 
    1754 fi 
    1755 rm -f conftest* 
    1756   ac_cv_prog_CPP="$CPP" 
    1757 fi 
    1758   CPP="$ac_cv_prog_CPP" 
    1759 else 
    1760   ac_cv_prog_CPP="$CPP" 
    1761 fi 
    1762 echo "$ac_t""$CPP" 1>&6 
    1763  
    1764  
    1765 for ac_prog in flex lex 
    1766 do 
    1767 # Extract the first word of "$ac_prog", so it can be a program name with args. 
    1768 set dummy $ac_prog; ac_word=$2 
    1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1770 echo "configure:1771: checking for $ac_word" >&5 
    1771 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 
    1772   echo $ac_n "(cached) $ac_c" 1>&6 
    1773 else 
    1774   if test -n "$LEX"; then 
    1775   ac_cv_prog_LEX="$LEX" # Let the user override the test. 
    1776 else 
    1777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1778   ac_dummy="$PATH" 
    1779   for ac_dir in $ac_dummy; do 
    1780     test -z "$ac_dir" && ac_dir=. 
    1781     if test -f $ac_dir/$ac_word; then 
    1782       ac_cv_prog_LEX="$ac_prog" 
    1783       break 
    1784     fi 
    1785   done 
    1786   IFS="$ac_save_ifs" 
    1787 fi 
    1788 fi 
    1789 LEX="$ac_cv_prog_LEX" 
    1790 if test -n "$LEX"; then 
    1791   echo "$ac_t""$LEX" 1>&6 
    1792 else 
    1793   echo "$ac_t""no" 1>&6 
    1794 fi 
    1795  
    1796 test -n "$LEX" && break 
    1797 done 
    1798 test -n "$LEX" || LEX="${am_missing_run}flex" 
    1799  
    1800 # Extract the first word of "flex", so it can be a program name with args. 
    1801 set dummy flex; ac_word=$2 
    1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    1803 echo "configure:1804: checking for $ac_word" >&5 
    1804 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 
    1805   echo $ac_n "(cached) $ac_c" 1>&6 
    1806 else 
    1807   if test -n "$LEX"; then 
    1808   ac_cv_prog_LEX="$LEX" # Let the user override the test. 
    1809 else 
    1810   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    1811   ac_dummy="$PATH" 
    1812   for ac_dir in $ac_dummy; do 
    1813     test -z "$ac_dir" && ac_dir=. 
    1814     if test -f $ac_dir/$ac_word; then 
    1815       ac_cv_prog_LEX="flex" 
    1816       break 
    1817     fi 
    1818   done 
    1819   IFS="$ac_save_ifs" 
    1820   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 
    1821 fi 
    1822 fi 
    1823 LEX="$ac_cv_prog_LEX" 
    1824 if test -n "$LEX"; then 
    1825   echo "$ac_t""$LEX" 1>&6 
    1826 else 
    1827   echo "$ac_t""no" 1>&6 
    1828 fi 
    1829  
    1830 if test -z "$LEXLIB" 
    1831 then 
    1832   case "$LEX" in 
    1833   flex*) ac_lib=fl ;; 
    1834   *) ac_lib=l ;; 
    1835   esac 
    1836   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 
    1837 echo "configure:1838: checking for yywrap in -l$ac_lib" >&5 
    1838 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 
    1839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    1840   echo $ac_n "(cached) $ac_c" 1>&6 
    1841 else 
    1842   ac_save_LIBS="$LIBS" 
    1843 LIBS="-l$ac_lib  $LIBS" 
    1844 cat > conftest.$ac_ext <<EOF 
    1845 #line 1846 "configure" 
    1846 #include "confdefs.h" 
    1847 /* Override any gcc2 internal prototype to avoid an error.  */ 
    1848 /* We use char because int might match the return type of a gcc2 
    1849     builtin and then its argument prototype would still apply.  */ 
    1850 char yywrap(); 
    1851  
    1852 int main() { 
    1853 yywrap() 
    1854 ; return 0; } 
    1855 EOF 
    1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    1857   rm -rf conftest* 
    1858   eval "ac_cv_lib_$ac_lib_var=yes" 
    1859 else 
    1860   echo "configure: failed program was:" >&5 
    1861   cat conftest.$ac_ext >&5 
    1862   rm -rf conftest* 
    1863   eval "ac_cv_lib_$ac_lib_var=no" 
    1864 fi 
    1865 rm -f conftest* 
    1866 LIBS="$ac_save_LIBS" 
    1867  
    1868 fi 
    1869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    1870   echo "$ac_t""yes" 1>&6 
    1871   LEXLIB="-l$ac_lib" 
    1872 else 
    1873   echo "$ac_t""no" 1>&6 
    1874 fi 
    1875  
    1876 fi 
    1877  
    1878 echo $ac_n "checking lex output file root""... $ac_c" 1>&6 
    1879 echo "configure:1880: checking lex output file root" >&5 
    1880 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then 
    1881   echo $ac_n "(cached) $ac_c" 1>&6 
    1882 else 
    1883   # The minimal lex program is just a single line: %%.  But some broken lexes 
    1884 # (Solaris, I think it was) want two %% lines, so accommodate them. 
    1885 echo '%% 
    1886 %%' | $LEX 
    1887 if test -f lex.yy.c; then 
    1888   ac_cv_prog_lex_root=lex.yy 
    1889 elif test -f lexyy.c; then 
    1890   ac_cv_prog_lex_root=lexyy 
    1891 else 
    1892   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } 
    1893 fi 
    1894 fi 
    1895  
    1896 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 
    1897 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 
    1898  
    1899 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 
    1900 echo "configure:1901: checking whether yytext is a pointer" >&5 
    1901 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then 
    1902   echo $ac_n "(cached) $ac_c" 1>&6 
    1903 else 
    1904   # POSIX says lex can declare yytext either as a pointer or an array; the 
    1905 # default is implementation-dependent. Figure out which it is, since 
    1906 # not all implementations provide the %pointer and %array declarations. 
    1907 ac_cv_prog_lex_yytext_pointer=no 
    1908 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 
    1909 ac_save_LIBS="$LIBS" 
    1910 LIBS="$LIBS $LEXLIB" 
    1911 cat > conftest.$ac_ext <<EOF 
    1912 #line 1913 "configure" 
    1913 #include "confdefs.h" 
    1914 `cat $LEX_OUTPUT_ROOT.c` 
    1915 int main() { 
    1916  
    1917 ; return 0; } 
    1918 EOF 
    1919 if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    1920   rm -rf conftest* 
    1921   ac_cv_prog_lex_yytext_pointer=yes 
    1922 else 
    1923   echo "configure: failed program was:" >&5 
    1924   cat conftest.$ac_ext >&5 
    1925 fi 
    1926 rm -f conftest* 
    1927 LIBS="$ac_save_LIBS" 
    1928 rm -f "${LEX_OUTPUT_ROOT}.c" 
    1929  
    1930 fi 
    1931  
    1932 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 
    1933 if test $ac_cv_prog_lex_yytext_pointer = yes; then 
    1934   cat >> confdefs.h <<\EOF 
    1935 #define YYTEXT_POINTER 1 
    1936 EOF 
    1937  
    1938 fi 
    1939  
    1940 # Find a good install program.  We prefer a C program (faster), 
    1941 # so one script is as good as another.  But avoid the broken or 
    1942 # incompatible versions: 
    1943 # SysV /etc/install, /usr/sbin/install 
    1944 # SunOS /usr/etc/install 
    1945 # IRIX /sbin/install 
    1946 # AIX /bin/install 
    1947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 
    1948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 
    1949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 
    1950 # ./install, which can be erroneously created by make from ./install.sh. 
    1951 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 
    1952 echo "configure:1953: checking for a BSD compatible install" >&5 
    1953 if test -z "$INSTALL"; then 
    1954 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 
    1955   echo $ac_n "(cached) $ac_c" 1>&6 
    1956 else 
    1957     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":" 
    1958   for ac_dir in $PATH; do 
    1959     # Account for people who put trailing slashes in PATH elements. 
    1960     case "$ac_dir/" in 
    1961     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 
    1962     *) 
    1963       # OSF1 and SCO ODT 3.0 have their own names for install. 
    1964       # Don't use installbsd from OSF since it installs stuff as root 
    1965       # by default. 
    1966       for ac_prog in ginstall scoinst install; do 
    1967         if test -f $ac_dir/$ac_prog; then 
    1968           if test $ac_prog = install && 
    1969             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 
    1970             # AIX install.  It has an incompatible calling convention. 
    1971             : 
    1972           else 
    1973             ac_cv_path_install="$ac_dir/$ac_prog -c" 
    1974             break 2 
    1975           fi 
    1976         fi 
    1977       done 
    1978       ;; 
    1979     esac 
    1980   done 
    1981   IFS="$ac_save_IFS" 
    1982  
    1983 fi 
    1984   if test "${ac_cv_path_install+set}" = set; then 
    1985     INSTALL="$ac_cv_path_install" 
    1986   else 
    1987     # As a last resort, use the slow shell script.  We don't cache a 
    1988     # path for INSTALL within a source directory, because that will 
    1989     # break other packages using the cache if that directory is 
    1990     # removed, or if the path is relative. 
    1991     INSTALL="$ac_install_sh" 
    1992   fi 
    1993 fi 
    1994 echo "$ac_t""$INSTALL" 1>&6 
    1995  
    1996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 
    1997 # It thinks the first close brace ends the variable substitution. 
    1998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 
    1999  
    2000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 
    2001  
    2002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 
    2003  
    2004 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 
    2005 echo "configure:2006: checking whether ${MAKE-make} sets \${MAKE}" >&5 
    2006 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 
    2007 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 
    2008   echo $ac_n "(cached) $ac_c" 1>&6 
    2009 else 
    2010   cat > conftestmake <<\EOF 
    2011 all: 
    2012         @echo 'ac_maketemp="${MAKE}"' 
    2013 EOF 
    2014 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 
    2015 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 
    2016 if test -n "$ac_maketemp"; then 
    2017   eval ac_cv_prog_make_${ac_make}_set=yes 
    2018 else 
    2019   eval ac_cv_prog_make_${ac_make}_set=no 
    2020 fi 
    2021 rm -f conftestmake 
    2022 fi 
    2023 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 
    2024   echo "$ac_t""yes" 1>&6 
    2025   SET_MAKE= 
    2026 else 
    2027   echo "$ac_t""no" 1>&6 
    2028   SET_MAKE="MAKE=${MAKE-make}" 
    2029 fi 
    2030  
    2031 # Find the correct PATH separator.  Usually this is `:', but 
    2032 # DJGPP uses `;' like DOS. 
    2033 if test "X${PATH_SEPARATOR+set}" != Xset; then 
    2034   UNAME=${UNAME-`uname 2>/dev/null`} 
    2035   case X$UNAME in 
    2036     *-DOS) lt_cv_sys_path_separator=';' ;; 
    2037     *)     lt_cv_sys_path_separator=':' ;; 
    2038   esac 
    2039   PATH_SEPARATOR=$lt_cv_sys_path_separator 
    2040 fi 
    2041  
    2042 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 
    2043 echo "configure:2044: checking for Cygwin environment" >&5 
    2044 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 
    2045   echo $ac_n "(cached) $ac_c" 1>&6 
    2046 else 
    2047   cat > conftest.$ac_ext <<EOF 
    2048 #line 2049 "configure" 
    2049 #include "confdefs.h" 
    2050  
    2051 int main() { 
    2052  
    2053 #ifndef __CYGWIN__ 
    2054 #define __CYGWIN__ __CYGWIN32__ 
    2055 #endif 
    2056 return __CYGWIN__; 
    2057 ; return 0; } 
    2058 EOF 
    2059 if { (eval echo configure:2060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    2060   rm -rf conftest* 
    2061   ac_cv_cygwin=yes 
    2062 else 
    2063   echo "configure: failed program was:" >&5 
    2064   cat conftest.$ac_ext >&5 
    2065   rm -rf conftest* 
    2066   ac_cv_cygwin=no 
    2067 fi 
    2068 rm -f conftest* 
    2069 rm -f conftest* 
    2070 fi 
    2071  
    2072 echo "$ac_t""$ac_cv_cygwin" 1>&6 
    2073 CYGWIN= 
    2074 test "$ac_cv_cygwin" = yes && CYGWIN=yes 
    2075 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 
    2076 echo "configure:2077: checking for mingw32 environment" >&5 
    2077 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 
    2078   echo $ac_n "(cached) $ac_c" 1>&6 
    2079 else 
    2080   cat > conftest.$ac_ext <<EOF 
    2081 #line 2082 "configure" 
    2082 #include "confdefs.h" 
    2083  
    2084 int main() { 
    2085 return __MINGW32__; 
    2086 ; return 0; } 
    2087 EOF 
    2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    2089   rm -rf conftest* 
    2090   ac_cv_mingw32=yes 
    2091 else 
    2092   echo "configure: failed program was:" >&5 
    2093   cat conftest.$ac_ext >&5 
    2094   rm -rf conftest* 
    2095   ac_cv_mingw32=no 
    2096 fi 
    2097 rm -f conftest* 
    2098 rm -f conftest* 
    2099 fi 
    2100  
    2101 echo "$ac_t""$ac_cv_mingw32" 1>&6 
    2102 MINGW32= 
    2103 test "$ac_cv_mingw32" = yes && MINGW32=yes 
    2104 # Check whether --enable-shared or --disable-shared was given. 
    2105 if test "${enable_shared+set}" = set; then 
    2106   enableval="$enable_shared" 
    2107   p=${PACKAGE-default} 
    2108 case $enableval in 
    2109 yes) enable_shared=yes ;; 
    2110 no) enable_shared=no ;; 
    2111 *) 
    2112   enable_shared=no 
    2113   # Look at the argument we got.  We use all the common list separators. 
    2114   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 
    2115   for pkg in $enableval; do 
    2116     if test "X$pkg" = "X$p"; then 
    2117       enable_shared=yes 
    2118     fi 
    2119   done 
    2120   IFS="$ac_save_ifs" 
    2121   ;; 
    2122 esac 
    2123 else 
    2124   enable_shared=yes 
    2125 fi 
    2126  
    2127 # Check whether --enable-static or --disable-static was given. 
    2128 if test "${enable_static+set}" = set; then 
    2129   enableval="$enable_static" 
    2130   p=${PACKAGE-default} 
    2131 case $enableval in 
    2132 yes) enable_static=yes ;; 
    2133 no) enable_static=no ;; 
    2134 *) 
    2135   enable_static=no 
    2136   # Look at the argument we got.  We use all the common list separators. 
    2137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 
    2138   for pkg in $enableval; do 
    2139     if test "X$pkg" = "X$p"; then 
    2140       enable_static=yes 
    2141     fi 
    2142   done 
    2143   IFS="$ac_save_ifs" 
    2144   ;; 
    2145 esac 
    2146 else 
    2147   enable_static=yes 
    2148 fi 
    2149  
    2150 # Check whether --enable-fast-install or --disable-fast-install was given. 
    2151 if test "${enable_fast_install+set}" = set; then 
    2152   enableval="$enable_fast_install" 
    2153   p=${PACKAGE-default} 
    2154 case $enableval in 
    2155 yes) enable_fast_install=yes ;; 
    2156 no) enable_fast_install=no ;; 
    2157 *) 
    2158   enable_fast_install=no 
    2159   # Look at the argument we got.  We use all the common list separators. 
    2160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 
    2161   for pkg in $enableval; do 
    2162     if test "X$pkg" = "X$p"; then 
    2163       enable_fast_install=yes 
    2164     fi 
    2165   done 
    2166   IFS="$ac_save_ifs" 
    2167   ;; 
    2168 esac 
    2169 else 
    2170   enable_fast_install=yes 
    2171 fi 
    2172  
    2173 # Check whether --with-gnu-ld or --without-gnu-ld was given. 
    2174 if test "${with_gnu_ld+set}" = set; then 
    2175   withval="$with_gnu_ld" 
    2176   test "$withval" = no || with_gnu_ld=yes 
    2177 else 
    2178   with_gnu_ld=no 
    2179 fi 
    2180  
    2181 ac_prog=ld 
    2182 if test "$GCC" = yes; then 
    2183   # Check if gcc -print-prog-name=ld gives a path. 
    2184   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 
    2185 echo "configure:2186: checking for ld used by GCC" >&5 
    2186   case $host in 
    2187   *-*-mingw*) 
    2188     # gcc leaves a trailing carriage return which upsets mingw 
    2189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
    2190   *) 
    2191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
    2192   esac 
    2193   case $ac_prog in 
    2194     # Accept absolute paths. 
    2195     [\\/]* | [A-Za-z]:[\\/]*) 
    2196       re_direlt='/[^/][^/]*/\.\./' 
    2197       # Canonicalize the path of ld 
    2198       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
    2199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
    2200         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
    2201       done 
    2202       test -z "$LD" && LD="$ac_prog" 
    2203       ;; 
    2204   "") 
    2205     # If it fails, then pretend we aren't using GCC. 
    2206     ac_prog=ld 
    2207     ;; 
    2208   *) 
    2209     # If it is relative, then search for the first ld in PATH. 
    2210     with_gnu_ld=unknown 
    2211     ;; 
    2212   esac 
    2213 elif test "$with_gnu_ld" = yes; then 
    2214   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 
    2215 echo "configure:2216: checking for GNU ld" >&5 
    2216 else 
    2217   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 
    2218 echo "configure:2219: checking for non-GNU ld" >&5 
    2219 fi 
    2220 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 
    2221   echo $ac_n "(cached) $ac_c" 1>&6 
    2222 else 
    2223   if test -z "$LD"; then 
    2224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 
    2225   for ac_dir in $PATH; do 
    2226     test -z "$ac_dir" && ac_dir=. 
    2227     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
    2228       lt_cv_path_LD="$ac_dir/$ac_prog" 
    2229       # Check to see if the program is GNU ld.  I'd rather use --version, 
    2230       # but apparently some GNU ld's only accept -v. 
    2231       # Break only if it was the GNU/non-GNU ld that we prefer. 
    2232       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 
    2233         test "$with_gnu_ld" != no && break 
    2234       else 
    2235         test "$with_gnu_ld" != yes && break 
    2236       fi 
    2237     fi 
    2238   done 
    2239   IFS="$ac_save_ifs" 
    2240 else 
    2241   lt_cv_path_LD="$LD" # Let the user override the test with a path. 
    2242 fi 
    2243 fi 
    2244  
    2245 LD="$lt_cv_path_LD" 
    2246 if test -n "$LD"; then 
    2247   echo "$ac_t""$LD" 1>&6 
    2248 else 
    2249   echo "$ac_t""no" 1>&6 
    2250 fi 
    2251 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 
    2252 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 
    2253 echo "configure:2254: checking if the linker ($LD) is GNU ld" >&5 
    2254 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 
    2255   echo $ac_n "(cached) $ac_c" 1>&6 
    2256 else 
    2257   # I'd rather use --version here, but apparently some GNU ld's only accept -v. 
    2258 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 
    2259   lt_cv_prog_gnu_ld=yes 
    2260 else 
    2261   lt_cv_prog_gnu_ld=no 
    2262 fi 
    2263 fi 
    2264  
    2265 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 
    2266 with_gnu_ld=$lt_cv_prog_gnu_ld 
    2267  
    2268  
    2269 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 
    2270 echo "configure:2271: checking for $LD option to reload object files" >&5 
    2271 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 
    2272   echo $ac_n "(cached) $ac_c" 1>&6 
    2273 else 
    2274   lt_cv_ld_reload_flag='-r' 
    2275 fi 
    2276  
    2277 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 
    2278 reload_flag=$lt_cv_ld_reload_flag 
    2279 test -n "$reload_flag" && reload_flag=" $reload_flag" 
    2280  
    2281 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 
    2282 echo "configure:2283: checking for BSD-compatible nm" >&5 
    2283 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 
    2284   echo $ac_n "(cached) $ac_c" 1>&6 
    2285 else 
    2286   if test -n "$NM"; then 
    2287   # Let the user override the test. 
    2288   lt_cv_path_NM="$NM" 
    2289 else 
    2290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 
    2291   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 
    2292     test -z "$ac_dir" && ac_dir=. 
    2293     tmp_nm=$ac_dir/${ac_tool_prefix}nm 
    2294     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 
    2295       # Check to see if the nm accepts a BSD-compat flag. 
    2296       # Adding the `sed 1q' prevents false positives on HP-UX, which says: 
    2297       #   nm: unknown option "B" ignored 
    2298       # Tru64's nm complains that /dev/null is an invalid object file 
    2299       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 
    2300         lt_cv_path_NM="$tmp_nm -B" 
    2301         break 
    2302       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 
    2303         lt_cv_path_NM="$tmp_nm -p" 
    2304         break 
    2305       else 
    2306         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 
    2307         continue # so that we can try to find one that supports BSD flags 
    2308       fi 
    2309     fi 
    2310   done 
    2311   IFS="$ac_save_ifs" 
    2312   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 
    2313 fi 
    2314 fi 
    2315  
    2316 NM="$lt_cv_path_NM" 
    2317 echo "$ac_t""$NM" 1>&6 
    2318  
    2319 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 
    2320 echo "configure:2321: checking whether ln -s works" >&5 
    2321 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 
    2322   echo $ac_n "(cached) $ac_c" 1>&6 
    2323 else 
    2324   rm -f conftestdata 
    2325 if ln -s X conftestdata 2>/dev/null 
    2326 then 
    2327   rm -f conftestdata 
    2328   ac_cv_prog_LN_S="ln -s" 
    2329 else 
    2330   ac_cv_prog_LN_S=ln 
    2331 fi 
    2332 fi 
    2333 LN_S="$ac_cv_prog_LN_S" 
    2334 if test "$ac_cv_prog_LN_S" = "ln -s"; then 
    2335   echo "$ac_t""yes" 1>&6 
    2336 else 
    2337   echo "$ac_t""no" 1>&6 
    2338 fi 
    2339  
    2340 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 
    2341 echo "configure:2342: checking how to recognise dependant libraries" >&5 
    2342 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 
    2343   echo $ac_n "(cached) $ac_c" 1>&6 
    2344 else 
    2345   lt_cv_file_magic_cmd='$MAGIC_CMD' 
    2346 lt_cv_file_magic_test_file= 
    2347 lt_cv_deplibs_check_method='unknown' 
    2348 # Need to set the preceding variable on all platforms that support 
    2349 # interlibrary dependencies. 
    2350 # 'none' -- dependencies not supported. 
    2351 # `unknown' -- same as none, but documents that we really don't know. 
    2352 # 'pass_all' -- all dependencies passed with no checks. 
    2353 # 'test_compile' -- check by making test program. 
    2354 # 'file_magic [[regex]]' -- check by looking for files in library path 
    2355 # which responds to the $file_magic_cmd with a given egrep regex. 
    2356 # If you have `file' or equivalent on your system and you're not sure 
    2357 # whether `pass_all' will *always* work, you probably want this one. 
    2358  
    2359 case $host_os in 
    2360 aix4* | aix5*) 
    2361   lt_cv_deplibs_check_method=pass_all 
    2362   ;; 
    2363  
    2364 beos*) 
    2365   lt_cv_deplibs_check_method=pass_all 
    2366   ;; 
    2367  
    2368 bsdi4*) 
    2369   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 
    2370   lt_cv_file_magic_cmd='/usr/bin/file -L' 
    2371   lt_cv_file_magic_test_file=/shlib/libc.so 
    2372   ;; 
    2373  
    2374 cygwin* | mingw* | pw32*) 
    2375   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 
    2376   lt_cv_file_magic_cmd='$OBJDUMP -f' 
    2377   ;; 
    2378  
    2379 darwin* | rhapsody*) 
    2380   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 
    2381   lt_cv_file_magic_cmd='/usr/bin/file -L' 
    2382   case "$host_os" in 
    2383   rhapsody* | darwin1.[012]) 
    2384     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 
    2385     ;; 
    2386   *) # Darwin 1.3 on 
    2387     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 
    2388     ;; 
    2389   esac 
    2390   ;; 
    2391  
    2392 freebsd*) 
    2393   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 
    2394     case $host_cpu in 
    2395     i*86 ) 
    2396       # Not sure whether the presence of OpenBSD here was a mistake. 
    2397       # Let's accept both of them until this is cleared up. 
    2398       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 
    2399       lt_cv_file_magic_cmd=/usr/bin/file 
    2400       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 
    2401       ;; 
    2402     esac 
    2403   else 
    2404     lt_cv_deplibs_check_method=pass_all 
    2405   fi 
    2406   ;; 
    2407  
    2408 gnu*) 
    2409   lt_cv_deplibs_check_method=pass_all 
    2410   ;; 
    2411  
    2412 hpux10.20*|hpux11*) 
    2413   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 
    2414   lt_cv_file_magic_cmd=/usr/bin/file 
    2415   lt_cv_file_magic_test_file=/usr/lib/libc.sl 
    2416   ;; 
    2417  
    2418 irix5* | irix6* | nonstopux*) 
    2419   case $host_os in 
    2420   irix5* | nonstopux*) 
    2421     # this will be overridden with pass_all, but let us keep it just in case 
    2422     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 
    2423     ;; 
    2424   *) 
    2425     case $LD in 
    2426     *-32|*"-32 ") libmagic=32-bit;; 
    2427     *-n32|*"-n32 ") libmagic=N32;; 
    2428     *-64|*"-64 ") libmagic=64-bit;; 
    2429     *) libmagic=never-match;; 
    2430     esac 
    2431     # this will be overridden with pass_all, but let us keep it just in case 
    2432     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 
    2433     ;; 
    2434   esac 
    2435   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 
    2436   lt_cv_deplibs_check_method=pass_all 
    2437   ;; 
    2438  
    2439 # This must be Linux ELF. 
    2440 linux-gnu*) 
    2441   lt_cv_deplibs_check_method=pass_all 
    2442   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 
    2443   ;; 
    2444  
    2445 netbsd*) 
    2446   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 
    2447     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 
    2448   else 
    2449     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 
    2450   fi 
    2451   ;; 
    2452  
    2453 newos6*) 
    2454   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 
    2455   lt_cv_file_magic_cmd=/usr/bin/file 
    2456   lt_cv_file_magic_test_file=/usr/lib/libnls.so 
    2457   ;; 
    2458  
    2459 openbsd*) 
    2460   lt_cv_file_magic_cmd=/usr/bin/file 
    2461   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 
    2462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
    2463     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 
    2464   else 
    2465     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 
    2466   fi 
    2467   ;; 
    2468  
    2469 osf3* | osf4* | osf5*) 
    2470   # this will be overridden with pass_all, but let us keep it just in case 
    2471   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 
    2472   lt_cv_file_magic_test_file=/shlib/libc.so 
    2473   lt_cv_deplibs_check_method=pass_all 
    2474   ;; 
    2475  
    2476 sco3.2v5*) 
    2477   lt_cv_deplibs_check_method=pass_all 
    2478   ;; 
    2479  
    2480 solaris*) 
    2481   lt_cv_deplibs_check_method=pass_all 
    2482   lt_cv_file_magic_test_file=/lib/libc.so 
    2483   ;; 
    2484  
    2485 sysv5uw[78]* | sysv4*uw2*) 
    2486   lt_cv_deplibs_check_method=pass_all 
    2487   ;; 
    2488  
    2489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 
    2490   case $host_vendor in 
    2491   motorola) 
    2492     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 
    2493     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 
    2494     ;; 
    2495   ncr) 
    2496     lt_cv_deplibs_check_method=pass_all 
    2497     ;; 
    2498   sequent) 
    2499     lt_cv_file_magic_cmd='/bin/file' 
    2500     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 
    2501     ;; 
    2502   sni) 
    2503     lt_cv_file_magic_cmd='/bin/file' 
    2504     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 
    2505     lt_cv_file_magic_test_file=/lib/libc.so 
    2506     ;; 
    2507   esac 
    2508   ;; 
    2509 esac 
    2510  
    2511 fi 
    2512  
    2513 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 
    2514 file_magic_cmd=$lt_cv_file_magic_cmd 
    2515 deplibs_check_method=$lt_cv_deplibs_check_method 
    2516  
    2517 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 
    2518 echo "configure:2519: checking for object suffix" >&5 
    2519 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 
    2520   echo $ac_n "(cached) $ac_c" 1>&6 
    2521 else 
    2522   rm -f conftest* 
    2523 echo 'int i = 1;' > conftest.$ac_ext 
    2524 if { (eval echo configure:2525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    2525   for ac_file in conftest.*; do 
    2526     case $ac_file in 
    2527     *.c) ;; 
    2528     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 
    2529     esac 
    2530   done 
    2531 else 
    2532   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 
    2533 fi 
    2534 rm -f conftest* 
    2535 fi 
    2536  
    2537 echo "$ac_t""$ac_cv_objext" 1>&6 
    2538 OBJEXT=$ac_cv_objext 
    2539 ac_objext=$ac_cv_objext 
    2540  
    2541  
    2542  
    2543 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 
    2544 echo "configure:2545: checking for executable suffix" >&5 
    2545 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 
    2546   echo $ac_n "(cached) $ac_c" 1>&6 
    2547 else 
    2548   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 
    2549   ac_cv_exeext=.exe 
    2550 else 
    2551   rm -f conftest* 
    2552   echo 'int main () { return 0; }' > conftest.$ac_ext 
    2553   ac_cv_exeext= 
    2554   if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 
    2555     for file in conftest.*; do 
    2556       case $file in 
    2557       *.$ac_ext | *.c | *.o | *.obj) ;; 
    2558       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 
    2559       esac 
    2560     done 
    2561   else 
    2562     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 
    2563   fi 
    2564   rm -f conftest* 
    2565   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 
    2566 fi 
    2567 fi 
    2568  
    2569 EXEEXT="" 
    2570 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 
    2571 echo "$ac_t""${ac_cv_exeext}" 1>&6 
    2572 ac_exeext=$EXEEXT 
    2573  
    2574 if test $host != $build; then 
    2575   ac_tool_prefix=${host_alias}- 
    2576 else 
    2577   ac_tool_prefix= 
    2578 fi 
    2579  
    2580  
    2581  
    2582  
    2583 # Check for command to grab the raw symbol name followed by C symbol from nm. 
    2584 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 
    2585 echo "configure:2586: checking command to parse $NM output" >&5 
    2586 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 
    2587   echo $ac_n "(cached) $ac_c" 1>&6 
    2588 else 
    2589    
    2590 # These are sane defaults that work on at least a few old systems. 
    2591 # [They come from Ultrix.  What could be older than Ultrix?!! ;)] 
    2592  
    2593 # Character class describing NM global symbol codes. 
    2594 symcode='[BCDEGRST]' 
    2595  
    2596 # Regexp to match symbols that can be accessed directly from C. 
    2597 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 
    2598  
    2599 # Transform the above into a raw symbol and a C symbol. 
    2600 symxfrm='\1 \2\3 \3' 
    2601  
    2602 # Transform an extracted symbol line into a proper C declaration 
    2603 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 
    2604  
    2605 # Transform an extracted symbol line into symbol name and symbol address 
    2606 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" 
    2607  
    2608 # Define system-specific variables. 
    2609 case $host_os in 
    2610 aix*) 
    2611   symcode='[BCDT]' 
    2612   ;; 
    2613 cygwin* | mingw* | pw32*) 
    2614   symcode='[ABCDGISTW]' 
    2615   ;; 
    2616 hpux*) # Its linker distinguishes data from code symbols 
    2617   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 
    2618   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" 
    2619   ;; 
    2620 irix* | nonstopux*) 
    2621   symcode='[BCDEGRST]' 
    2622   ;; 
    2623 solaris* | sysv5*) 
    2624   symcode='[BDT]' 
    2625   ;; 
    2626 sysv4) 
    2627   symcode='[DFNSTU]' 
    2628   ;; 
    2629 esac 
    2630  
    2631 # Handle CRLF in mingw tool chain 
    2632 opt_cr= 
    2633 case $host_os in 
    2634 mingw*) 
    2635   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 
    2636   ;; 
    2637 esac 
    2638  
    2639 # If we're using GNU nm, then use its standard symbol codes. 
    2640 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 
    2641   symcode='[ABCDGISTW]' 
    2642 fi 
    2643  
    2644 # Try without a prefix undercore, then with it. 
    2645 for ac_symprfx in "" "_"; do 
    2646  
    2647   # Write the raw and C identifiers. 
    2648 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 
    2649  
    2650   # Check to see that the pipe works correctly. 
    2651   pipe_works=no 
    2652   rm -f conftest* 
    2653   cat > conftest.$ac_ext <<EOF 
    2654 #ifdef __cplusplus 
    2655 extern "C" { 
    2656 #endif 
    2657 char nm_test_var; 
    2658 void nm_test_func(){} 
    2659 #ifdef __cplusplus 
    2660 } 
    2661 #endif 
    2662 int main(){nm_test_var='a';nm_test_func();return(0);} 
    2663 EOF 
    2664  
    2665   if { (eval echo configure:2666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    2666     # Now try to grab the symbols. 
    2667     nlist=conftest.nm 
    2668     if { (eval echo configure:2669: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 
    2669       # Try sorting and uniquifying the output. 
    2670       if sort "$nlist" | uniq > "$nlist"T; then 
    2671         mv -f "$nlist"T "$nlist" 
    2672       else 
    2673         rm -f "$nlist"T 
    2674       fi 
    2675  
    2676       # Make sure that we snagged all the symbols we need. 
    2677       if egrep ' nm_test_var$' "$nlist" >/dev/null; then 
    2678         if egrep ' nm_test_func$' "$nlist" >/dev/null; then 
    2679           cat <<EOF > conftest.$ac_ext 
    2680 #ifdef __cplusplus 
    2681 extern "C" { 
    2682 #endif 
    2683  
    2684 EOF 
    2685           # Now generate the symbol file. 
    2686           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 
    2687  
    2688           cat <<EOF >> conftest.$ac_ext 
    2689 #if defined (__STDC__) && __STDC__ 
    2690 # define lt_ptr void * 
    2691 #else 
    2692 # define lt_ptr char * 
    2693 # define const 
    2694 #endif 
    2695  
    2696 /* The mapping between symbol names and symbols. */ 
    2697 const struct { 
    2698   const char *name; 
    2699   lt_ptr address; 
    2700 } 
    2701 lt_preloaded_symbols[] = 
    2702 { 
    2703 EOF 
    2704           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 
    2705           cat <<\EOF >> conftest.$ac_ext 
    2706   {0, (lt_ptr) 0} 
    2707 }; 
    2708  
    2709 #ifdef __cplusplus 
    2710 } 
    2711 #endif 
    2712 EOF 
    2713           # Now try linking the two files. 
    2714           mv conftest.$ac_objext conftstm.$ac_objext 
    2715           save_LIBS="$LIBS" 
    2716           save_CFLAGS="$CFLAGS" 
    2717           LIBS="conftstm.$ac_objext" 
    2718           CFLAGS="$CFLAGS$no_builtin_flag" 
    2719           if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 
    2720             pipe_works=yes 
    2721           fi 
    2722           LIBS="$save_LIBS" 
    2723           CFLAGS="$save_CFLAGS" 
    2724         else 
    2725           echo "cannot find nm_test_func in $nlist" >&5 
    2726         fi 
    2727       else 
    2728         echo "cannot find nm_test_var in $nlist" >&5 
    2729       fi 
    2730     else 
    2731       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 
    2732     fi 
    2733   else 
    2734     echo "$progname: failed program was:" >&5 
    2735     cat conftest.$ac_ext >&5 
    2736   fi 
    2737   rm -f conftest* conftst* 
    2738  
    2739   # Do not use the global_symbol_pipe unless it works. 
    2740   if test "$pipe_works" = yes; then 
    2741     break 
    2742   else 
    2743     lt_cv_sys_global_symbol_pipe= 
    2744   fi 
    2745 done 
    2746  
    2747 fi 
    2748  
    2749 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 
    2750 if test -z "$lt_cv_sys_global_symbol_pipe"; then 
    2751   global_symbol_to_cdecl= 
    2752   global_symbol_to_c_name_address= 
    2753 else 
    2754   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 
    2755   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 
    2756 fi 
    2757 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 
    2758 then 
    2759   echo "$ac_t""failed" 1>&6 
    2760 else 
    2761   echo "$ac_t""ok" 1>&6 
    2762 fi 
    2763  
    2764 for ac_hdr in dlfcn.h 
    2765 do 
    2766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    2767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    2768 echo "configure:2769: checking for $ac_hdr" >&5 
    2769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    2770   echo $ac_n "(cached) $ac_c" 1>&6 
    2771 else 
    2772   cat > conftest.$ac_ext <<EOF 
    2773 #line 2774 "configure" 
    2774 #include "confdefs.h" 
    2775 #include <$ac_hdr> 
    2776 EOF 
    2777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    2778 { (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    2779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    2780 if test -z "$ac_err"; then 
    2781   rm -rf conftest* 
    2782   eval "ac_cv_header_$ac_safe=yes" 
    2783 else 
    2784   echo "$ac_err" >&5 
    2785   echo "configure: failed program was:" >&5 
    2786   cat conftest.$ac_ext >&5 
    2787   rm -rf conftest* 
    2788   eval "ac_cv_header_$ac_safe=no" 
    2789 fi 
    2790 rm -f conftest* 
    2791 fi 
    2792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 
    2793   echo "$ac_t""yes" 1>&6 
    2794     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 
    2795   cat >> confdefs.h <<EOF 
    2796 #define $ac_tr_hdr 1 
    2797 EOF 
    2798   
    2799 else 
    2800   echo "$ac_t""no" 1>&6 
    2801 fi 
    2802 done 
    2803  
    2804  
    2805  
    2806  
    2807  
    2808 # Only perform the check for file, if the check method requires it 
    2809 case $deplibs_check_method in 
    2810 file_magic*) 
    2811   if test "$file_magic_cmd" = '$MAGIC_CMD'; then 
    2812     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 
    2813 echo "configure:2814: checking for ${ac_tool_prefix}file" >&5 
    2814 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 
    2815   echo $ac_n "(cached) $ac_c" 1>&6 
    2816 else 
    2817   case $MAGIC_CMD in 
    2818   /*) 
    2819   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 
    2820   ;; 
    2821   ?:/*) 
    2822   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 
    2823   ;; 
    2824   *) 
    2825   ac_save_MAGIC_CMD="$MAGIC_CMD" 
    2826   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    2827   ac_dummy="/usr/bin:$PATH" 
    2828   for ac_dir in $ac_dummy; do 
    2829     test -z "$ac_dir" && ac_dir=. 
    2830     if test -f $ac_dir/${ac_tool_prefix}file; then 
    2831       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 
    2832       if test -n "$file_magic_test_file"; then 
    2833         case $deplibs_check_method in 
    2834         "file_magic "*) 
    2835           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 
    2836           MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 
    2837           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 
    2838             egrep "$file_magic_regex" > /dev/null; then 
    2839             : 
    2840           else 
    2841             cat <<EOF 1>&2 
    2842  
    2843 *** Warning: the command libtool uses to detect shared libraries, 
    2844 *** $file_magic_cmd, produces output that libtool cannot recognize. 
    2845 *** The result is that libtool may fail to recognize shared libraries 
    2846 *** as such.  This will affect the creation of libtool libraries that 
    2847 *** depend on shared libraries, but programs linked with such libtool 
    2848 *** libraries will work regardless of this problem.  Nevertheless, you 
    2849 *** may want to report the problem to your system manager and/or to 
    2850 *** bug-libtool@gnu.org 
    2851  
    2852 EOF 
    2853           fi ;; 
    2854         esac 
    2855       fi 
    2856       break 
    2857     fi 
    2858   done 
    2859   IFS="$ac_save_ifs" 
    2860   MAGIC_CMD="$ac_save_MAGIC_CMD" 
    2861   ;; 
    2862 esac 
    2863 fi 
    2864  
    2865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 
    2866 if test -n "$MAGIC_CMD"; then 
    2867   echo "$ac_t""$MAGIC_CMD" 1>&6 
    2868 else 
    2869   echo "$ac_t""no" 1>&6 
    2870 fi 
    2871  
    2872 if test -z "$lt_cv_path_MAGIC_CMD"; then 
    2873   if test -n "$ac_tool_prefix"; then 
    2874     echo $ac_n "checking for file""... $ac_c" 1>&6 
    2875 echo "configure:2876: checking for file" >&5 
    2876 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 
    2877   echo $ac_n "(cached) $ac_c" 1>&6 
    2878 else 
    2879   case $MAGIC_CMD in 
    2880   /*) 
    2881   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 
    2882   ;; 
    2883   ?:/*) 
    2884   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 
    2885   ;; 
    2886   *) 
    2887   ac_save_MAGIC_CMD="$MAGIC_CMD" 
    2888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    2889   ac_dummy="/usr/bin:$PATH" 
    2890   for ac_dir in $ac_dummy; do 
    2891     test -z "$ac_dir" && ac_dir=. 
    2892     if test -f $ac_dir/file; then 
    2893       lt_cv_path_MAGIC_CMD="$ac_dir/file" 
    2894       if test -n "$file_magic_test_file"; then 
    2895         case $deplibs_check_method in 
    2896         "file_magic "*) 
    2897           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 
    2898           MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 
    2899           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 
    2900             egrep "$file_magic_regex" > /dev/null; then 
    2901             : 
    2902           else 
    2903             cat <<EOF 1>&2 
    2904  
    2905 *** Warning: the command libtool uses to detect shared libraries, 
    2906 *** $file_magic_cmd, produces output that libtool cannot recognize. 
    2907 *** The result is that libtool may fail to recognize shared libraries 
    2908 *** as such.  This will affect the creation of libtool libraries that 
    2909 *** depend on shared libraries, but programs linked with such libtool 
    2910 *** libraries will work regardless of this problem.  Nevertheless, you 
    2911 *** may want to report the problem to your system manager and/or to 
    2912 *** bug-libtool@gnu.org 
    2913  
    2914 EOF 
    2915           fi ;; 
    2916         esac 
    2917       fi 
    2918       break 
    2919     fi 
    2920   done 
    2921   IFS="$ac_save_ifs" 
    2922   MAGIC_CMD="$ac_save_MAGIC_CMD" 
    2923   ;; 
    2924 esac 
    2925 fi 
    2926  
    2927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 
    2928 if test -n "$MAGIC_CMD"; then 
    2929   echo "$ac_t""$MAGIC_CMD" 1>&6 
    2930 else 
    2931   echo "$ac_t""no" 1>&6 
    2932 fi 
    2933  
    2934   else 
    2935     MAGIC_CMD=: 
    2936   fi 
    2937 fi 
    2938  
    2939   fi 
    2940   ;; 
    2941 esac 
    2942  
    2943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 
    2944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 
    2945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    2946 echo "configure:2947: checking for $ac_word" >&5 
    2947 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 
    2948   echo $ac_n "(cached) $ac_c" 1>&6 
    2949 else 
    2950   if test -n "$RANLIB"; then 
    2951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 
    2952 else 
    2953   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    2954   ac_dummy="$PATH" 
    2955   for ac_dir in $ac_dummy; do 
    2956     test -z "$ac_dir" && ac_dir=. 
    2957     if test -f $ac_dir/$ac_word; then 
    2958       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 
    2959       break 
    2960     fi 
    2961   done 
    2962   IFS="$ac_save_ifs" 
    2963 fi 
    2964 fi 
    2965 RANLIB="$ac_cv_prog_RANLIB" 
    2966 if test -n "$RANLIB"; then 
    2967   echo "$ac_t""$RANLIB" 1>&6 
    2968 else 
    2969   echo "$ac_t""no" 1>&6 
    2970 fi 
    2971  
    2972  
    2973 if test -z "$ac_cv_prog_RANLIB"; then 
    2974 if test -n "$ac_tool_prefix"; then 
    2975   # Extract the first word of "ranlib", so it can be a program name with args. 
    2976 set dummy ranlib; ac_word=$2 
    2977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    2978 echo "configure:2979: checking for $ac_word" >&5 
    2979 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 
    2980   echo $ac_n "(cached) $ac_c" 1>&6 
    2981 else 
    2982   if test -n "$RANLIB"; then 
    2983   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 
    2984 else 
    2985   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    2986   ac_dummy="$PATH" 
    2987   for ac_dir in $ac_dummy; do 
    2988     test -z "$ac_dir" && ac_dir=. 
    2989     if test -f $ac_dir/$ac_word; then 
    2990       ac_cv_prog_RANLIB="ranlib" 
    2991       break 
    2992     fi 
    2993   done 
    2994   IFS="$ac_save_ifs" 
    2995   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 
    2996 fi 
    2997 fi 
    2998 RANLIB="$ac_cv_prog_RANLIB" 
    2999 if test -n "$RANLIB"; then 
    3000   echo "$ac_t""$RANLIB" 1>&6 
    3001 else 
    3002   echo "$ac_t""no" 1>&6 
    3003 fi 
    3004  
    3005 else 
    3006   RANLIB=":" 
    3007 fi 
    3008 fi 
    3009  
    3010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 
    3011 set dummy ${ac_tool_prefix}strip; ac_word=$2 
    3012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    3013 echo "configure:3014: checking for $ac_word" >&5 
    3014 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 
    3015   echo $ac_n "(cached) $ac_c" 1>&6 
    3016 else 
    3017   if test -n "$STRIP"; then 
    3018   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 
    3019 else 
    3020   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    3021   ac_dummy="$PATH" 
    3022   for ac_dir in $ac_dummy; do 
    3023     test -z "$ac_dir" && ac_dir=. 
    3024     if test -f $ac_dir/$ac_word; then 
    3025       ac_cv_prog_STRIP="${ac_tool_prefix}strip" 
    3026       break 
    3027     fi 
    3028   done 
    3029   IFS="$ac_save_ifs" 
    3030 fi 
    3031 fi 
    3032 STRIP="$ac_cv_prog_STRIP" 
    3033 if test -n "$STRIP"; then 
    3034   echo "$ac_t""$STRIP" 1>&6 
    3035 else 
    3036   echo "$ac_t""no" 1>&6 
    3037 fi 
    3038  
    3039  
    3040 if test -z "$ac_cv_prog_STRIP"; then 
    3041 if test -n "$ac_tool_prefix"; then 
    3042   # Extract the first word of "strip", so it can be a program name with args. 
    3043 set dummy strip; ac_word=$2 
    3044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    3045 echo "configure:3046: checking for $ac_word" >&5 
    3046 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 
    3047   echo $ac_n "(cached) $ac_c" 1>&6 
    3048 else 
    3049   if test -n "$STRIP"; then 
    3050   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 
    3051 else 
    3052   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    3053   ac_dummy="$PATH" 
    3054   for ac_dir in $ac_dummy; do 
    3055     test -z "$ac_dir" && ac_dir=. 
    3056     if test -f $ac_dir/$ac_word; then 
    3057       ac_cv_prog_STRIP="strip" 
    3058       break 
    3059     fi 
    3060   done 
    3061   IFS="$ac_save_ifs" 
    3062   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 
    3063 fi 
    3064 fi 
    3065 STRIP="$ac_cv_prog_STRIP" 
    3066 if test -n "$STRIP"; then 
    3067   echo "$ac_t""$STRIP" 1>&6 
    3068 else 
    3069   echo "$ac_t""no" 1>&6 
    3070 fi 
    3071  
    3072 else 
    3073   STRIP=":" 
    3074 fi 
    3075 fi 
    3076  
    3077  
    3078 enable_dlopen=no 
    3079 enable_win32_dll=no 
    3080  
    3081 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 
    3082 if test "${enable_libtool_lock+set}" = set; then 
    3083   enableval="$enable_libtool_lock" 
    3084   : 
    3085 fi 
    3086  
    3087 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 
    3088  
    3089 # Some flags need to be propagated to the compiler or linker for good 
    3090 # libtool support. 
    3091 case $host in 
    3092 *-*-irix6*) 
    3093   # Find out which ABI we are using. 
    3094   echo '#line 3095 "configure"' > conftest.$ac_ext 
    3095   if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    3096     case `/usr/bin/file conftest.$ac_objext` in 
    3097     *32-bit*) 
    3098       LD="${LD-ld} -32" 
    3099       ;; 
    3100     *N32*) 
    3101       LD="${LD-ld} -n32" 
    3102       ;; 
    3103     *64-bit*) 
    3104       LD="${LD-ld} -64" 
    3105       ;; 
    3106     esac 
    3107   fi 
    3108   rm -rf conftest* 
    3109   ;; 
    3110  
    3111 *-*-sco3.2v5*) 
    3112   # On SCO OpenServer 5, we need -belf to get full-featured binaries. 
    3113   SAVE_CFLAGS="$CFLAGS" 
    3114   CFLAGS="$CFLAGS -belf" 
    3115   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 
    3116 echo "configure:3117: checking whether the C compiler needs -belf" >&5 
    3117 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 
    3118   echo $ac_n "(cached) $ac_c" 1>&6 
    3119 else 
    3120    
    3121      ac_ext=c 
    3122 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    3123 ac_cpp='$CPP $CPPFLAGS' 
    3124 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    3125 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    3126 cross_compiling=$ac_cv_prog_cc_cross 
    3127  
    3128      cat > conftest.$ac_ext <<EOF 
    3129 #line 3130 "configure" 
    3130 #include "confdefs.h" 
    3131  
    3132 int main() { 
    3133  
    3134 ; return 0; } 
    3135 EOF 
    3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    3137   rm -rf conftest* 
    3138   lt_cv_cc_needs_belf=yes 
    3139 else 
    3140   echo "configure: failed program was:" >&5 
    3141   cat conftest.$ac_ext >&5 
    3142   rm -rf conftest* 
    3143   lt_cv_cc_needs_belf=no 
    3144 fi 
    3145 rm -f conftest* 
    3146      ac_ext=c 
    3147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    3148 ac_cpp='$CPP $CPPFLAGS' 
    3149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    3150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    3151 cross_compiling=$ac_cv_prog_cc_cross 
    3152  
    3153 fi 
    3154  
    3155 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 
    3156   if test x"$lt_cv_cc_needs_belf" != x"yes"; then 
    3157     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 
    3158     CFLAGS="$SAVE_CFLAGS" 
    3159   fi 
    3160   ;; 
    3161  
    3162  
    3163 esac 
    3164  
    3165 # Sed substitution that helps us do robust quoting.  It backslashifies 
    3166 # metacharacters that are still active within double-quoted strings. 
    3167 Xsed='sed -e s/^X//' 
    3168 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 
    3169  
    3170 # Same as above, but do not quote variable references. 
    3171 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 
    3172  
    3173 # Sed substitution to delay expansion of an escaped shell variable in a 
    3174 # double_quote_subst'ed string. 
    3175 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 
    3176  
    3177 # Constants: 
    3178 rm="rm -f" 
    3179  
    3180 # Global variables: 
    3181 default_ofile=libtool 
    3182 can_build_shared=yes 
    3183  
    3184 # All known linkers require a `.a' archive for static linking (except M$VC, 
    3185 # which needs '.lib'). 
    3186 libext=a 
    3187 ltmain="$ac_aux_dir/ltmain.sh" 
    3188 ofile="$default_ofile" 
    3189 with_gnu_ld="$lt_cv_prog_gnu_ld" 
    3190 need_locks="$enable_libtool_lock" 
    3191  
    3192 old_CC="$CC" 
    3193 old_CFLAGS="$CFLAGS" 
    3194  
    3195 # Set sane defaults for various variables 
    3196 test -z "$AR" && AR=ar 
    3197 test -z "$AR_FLAGS" && AR_FLAGS=cru 
    3198 test -z "$AS" && AS=as 
    3199 test -z "$CC" && CC=cc 
    3200 test -z "$DLLTOOL" && DLLTOOL=dlltool 
    3201 test -z "$LD" && LD=ld 
    3202 test -z "$LN_S" && LN_S="ln -s" 
    3203 test -z "$MAGIC_CMD" && MAGIC_CMD=file 
    3204 test -z "$NM" && NM=nm 
    3205 test -z "$OBJDUMP" && OBJDUMP=objdump 
    3206 test -z "$RANLIB" && RANLIB=: 
    3207 test -z "$STRIP" && STRIP=: 
    3208 test -z "$ac_objext" && ac_objext=o 
    3209  
    3210 if test x"$host" != x"$build"; then 
    3211   ac_tool_prefix=${host_alias}- 
    3212 else 
    3213   ac_tool_prefix= 
    3214 fi 
    3215  
    3216 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. 
    3217 case $host_os in 
    3218 linux-gnu*) ;; 
    3219 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 
    3220 esac 
    3221  
    3222 case $host_os in 
    3223 aix3*) 
    3224   # AIX sometimes has problems with the GCC collect2 program.  For some 
    3225   # reason, if we set the COLLECT_NAMES environment variable, the problems 
    3226   # vanish in a puff of smoke. 
    3227   if test "X${COLLECT_NAMES+set}" != Xset; then 
    3228     COLLECT_NAMES= 
    3229     export COLLECT_NAMES 
    3230   fi 
    3231   ;; 
    3232 esac 
    3233  
    3234 # Determine commands to create old-style static archives. 
    3235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 
    3236 old_postinstall_cmds='chmod 644 $oldlib' 
    3237 old_postuninstall_cmds= 
    3238  
    3239 if test -n "$RANLIB"; then 
    3240   case $host_os in 
    3241   openbsd*) 
    3242     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 
    3243     ;; 
    3244   *) 
    3245     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 
    3246     ;; 
    3247   esac 
    3248   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 
    3249 fi 
    3250  
    3251 # Allow CC to be a program name with arguments. 
    3252 set dummy $CC 
    3253 compiler="$2" 
    3254  
    3255 echo $ac_n "checking for objdir""... $ac_c" 1>&6 
    3256 echo "configure:3257: checking for objdir" >&5 
    3257 rm -f .libs 2>/dev/null 
    3258 mkdir .libs 2>/dev/null 
    3259 if test -d .libs; then 
    3260   objdir=.libs 
    3261 else 
    3262   # MS-DOS does not allow filenames that begin with a dot. 
    3263   objdir=_libs 
    3264 fi 
    3265 rmdir .libs 2>/dev/null 
    3266 echo "$ac_t""$objdir" 1>&6 
    3267  
    3268  
    3269 # Check whether --with-pic or --without-pic was given. 
    3270 if test "${with_pic+set}" = set; then 
    3271   withval="$with_pic" 
    3272   pic_mode="$withval" 
    3273 else 
    3274   pic_mode=default 
    3275 fi 
    3276  
    3277 test -z "$pic_mode" && pic_mode=default 
    3278  
    3279 # We assume here that the value for lt_cv_prog_cc_pic will not be cached 
    3280 # in isolation, and that seeing it set (from the cache) indicates that 
    3281 # the associated values are set (in the cache) correctly too. 
    3282 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 
    3283 echo "configure:3284: checking for $compiler option to produce PIC" >&5 
    3284 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 
    3285   echo $ac_n "(cached) $ac_c" 1>&6 
    3286 else 
    3287    lt_cv_prog_cc_pic= 
    3288   lt_cv_prog_cc_shlib= 
    3289   lt_cv_prog_cc_wl= 
    3290   lt_cv_prog_cc_static= 
    3291   lt_cv_prog_cc_no_builtin= 
    3292   lt_cv_prog_cc_can_build_shared=$can_build_shared 
    3293  
    3294   if test "$GCC" = yes; then 
    3295     lt_cv_prog_cc_wl='-Wl,' 
    3296     lt_cv_prog_cc_static='-static' 
    3297  
    3298     case $host_os in 
    3299     aix*) 
    3300       # Below there is a dirty hack to force normal static linking with -ldl 
    3301       # The problem is because libdl dynamically linked with both libc and 
    3302       # libC (AIX C++ library), which obviously doesn't included in libraries 
    3303       # list by gcc. This cause undefined symbols with -static flags. 
    3304       # This hack allows C programs to be linked with "-static -ldl", but 
    3305       # not sure about C++ programs. 
    3306       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 
    3307       ;; 
    3308     amigaos*) 
    3309       # FIXME: we need at least 68020 code to build shared libraries, but 
    3310       # adding the `-m68020' flag to GCC prevents building anything better, 
    3311       # like `-m68040'. 
    3312       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 
    3313       ;; 
    3314     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 
    3315       # PIC is the default for these OSes. 
    3316       ;; 
    3317     darwin* | rhapsody*) 
    3318       # PIC is the default on this platform 
    3319       # Common symbols not allowed in MH_DYLIB files 
    3320       lt_cv_prog_cc_pic='-fno-common' 
    3321       ;; 
    3322     cygwin* | mingw* | pw32* | os2*) 
    3323       # This hack is so that the source file can tell whether it is being 
    3324       # built for inclusion in a dll (and should export symbols for example). 
    3325       lt_cv_prog_cc_pic='-DDLL_EXPORT' 
    3326       ;; 
    3327     sysv4*MP*) 
    3328       if test -d /usr/nec; then 
    3329          lt_cv_prog_cc_pic=-Kconform_pic 
    3330       fi 
    3331       ;; 
    3332     *) 
    3333       lt_cv_prog_cc_pic='-fPIC' 
    3334       ;; 
    3335     esac 
    3336   else 
    3337     # PORTME Check for PIC flags for the system compiler. 
    3338     case $host_os in 
    3339     aix3* | aix4* | aix5*) 
    3340       lt_cv_prog_cc_wl='-Wl,' 
    3341       # All AIX code is PIC. 
    3342       if test "$host_cpu" = ia64; then 
    3343         # AIX 5 now supports IA64 processor 
    3344         lt_cv_prog_cc_static='-Bstatic' 
    3345       else 
    3346         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 
    3347       fi 
    3348       ;; 
    3349  
    3350     hpux9* | hpux10* | hpux11*) 
    3351       # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 
    3352       lt_cv_prog_cc_wl='-Wl,' 
    3353       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 
    3354       lt_cv_prog_cc_pic='+Z' 
    3355       ;; 
    3356  
    3357     irix5* | irix6* | nonstopux*) 
    3358       lt_cv_prog_cc_wl='-Wl,' 
    3359       lt_cv_prog_cc_static='-non_shared' 
    3360       # PIC (with -KPIC) is the default. 
    3361       ;; 
    3362  
    3363     cygwin* | mingw* | pw32* | os2*) 
    3364       # This hack is so that the source file can tell whether it is being 
    3365       # built for inclusion in a dll (and should export symbols for example). 
    3366       lt_cv_prog_cc_pic='-DDLL_EXPORT' 
    3367       ;; 
    3368  
    3369     newsos6) 
    3370       lt_cv_prog_cc_pic='-KPIC' 
    3371       lt_cv_prog_cc_static='-Bstatic' 
    3372       ;; 
    3373  
    3374     osf3* | osf4* | osf5*) 
    3375       # All OSF/1 code is PIC. 
    3376       lt_cv_prog_cc_wl='-Wl,' 
    3377       lt_cv_prog_cc_static='-non_shared' 
    3378       ;; 
    3379  
    3380     sco3.2v5*) 
    3381       lt_cv_prog_cc_pic='-Kpic' 
    3382       lt_cv_prog_cc_static='-dn' 
    3383       lt_cv_prog_cc_shlib='-belf' 
    3384       ;; 
    3385  
    3386     solaris*) 
    3387       lt_cv_prog_cc_pic='-KPIC' 
    3388       lt_cv_prog_cc_static='-Bstatic' 
    3389       lt_cv_prog_cc_wl='-Wl,' 
    3390       ;; 
    3391  
    3392     sunos4*) 
    3393       lt_cv_prog_cc_pic='-PIC' 
    3394       lt_cv_prog_cc_static='-Bstatic' 
    3395       lt_cv_prog_cc_wl='-Qoption ld ' 
    3396       ;; 
    3397  
    3398     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 
    3399       lt_cv_prog_cc_pic='-KPIC' 
    3400       lt_cv_prog_cc_static='-Bstatic' 
    3401       if test "x$host_vendor" = xsni; then 
    3402         lt_cv_prog_cc_wl='-LD' 
    3403       else 
    3404         lt_cv_prog_cc_wl='-Wl,' 
    3405       fi 
    3406       ;; 
    3407  
    3408     uts4*) 
    3409       lt_cv_prog_cc_pic='-pic' 
    3410       lt_cv_prog_cc_static='-Bstatic' 
    3411       ;; 
    3412  
    3413     sysv4*MP*) 
    3414       if test -d /usr/nec ;then 
    3415         lt_cv_prog_cc_pic='-Kconform_pic' 
    3416         lt_cv_prog_cc_static='-Bstatic' 
    3417       fi 
    3418       ;; 
    3419  
    3420     *) 
    3421       lt_cv_prog_cc_can_build_shared=no 
    3422       ;; 
    3423     esac 
    3424   fi 
    3425  
    3426 fi 
    3427  
    3428 if test -z "$lt_cv_prog_cc_pic"; then 
    3429   echo "$ac_t""none" 1>&6 
    3430 else 
    3431   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 
    3432  
    3433   # Check to make sure the pic_flag actually works. 
    3434   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 
    3435 echo "configure:3436: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 
    3436   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 
    3437   echo $ac_n "(cached) $ac_c" 1>&6 
    3438 else 
    3439       save_CFLAGS="$CFLAGS" 
    3440     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 
    3441     cat > conftest.$ac_ext <<EOF 
    3442 #line 3443 "configure" 
    3443 #include "confdefs.h" 
    3444  
    3445 int main() { 
    3446  
    3447 ; return 0; } 
    3448 EOF 
    3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    3450   rm -rf conftest* 
    3451         case $host_os in 
    3452       hpux9* | hpux10* | hpux11*) 
    3453         # On HP-UX, both CC and GCC only warn that PIC is supported... then 
    3454         # they create non-PIC objects.  So, if there were any warnings, we 
    3455         # assume that PIC is not supported. 
    3456         if test -s conftest.err; then 
    3457           lt_cv_prog_cc_pic_works=no 
    3458         else 
    3459           lt_cv_prog_cc_pic_works=yes 
    3460         fi 
    3461         ;; 
    3462       *) 
    3463         lt_cv_prog_cc_pic_works=yes 
    3464         ;; 
    3465       esac 
    3466      
    3467 else 
    3468   echo "configure: failed program was:" >&5 
    3469   cat conftest.$ac_ext >&5 
    3470   rm -rf conftest* 
    3471         lt_cv_prog_cc_pic_works=no 
    3472      
    3473 fi 
    3474 rm -f conftest* 
    3475     CFLAGS="$save_CFLAGS" 
    3476    
    3477 fi 
    3478  
    3479  
    3480   if test "X$lt_cv_prog_cc_pic_works" = Xno; then 
    3481     lt_cv_prog_cc_pic= 
    3482     lt_cv_prog_cc_can_build_shared=no 
    3483   else 
    3484     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 
    3485   fi 
    3486  
    3487   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 
    3488 fi 
    3489  
    3490 # Check for any special shared library compilation flags. 
    3491 if test -n "$lt_cv_prog_cc_shlib"; then 
    3492   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 
    3493   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then : 
    3494   else 
    3495    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 
    3496     lt_cv_prog_cc_can_build_shared=no 
    3497   fi 
    3498 fi 
    3499  
    3500 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 
    3501 echo "configure:3502: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 
    3502 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 
    3503   echo $ac_n "(cached) $ac_c" 1>&6 
    3504 else 
    3505     lt_cv_prog_cc_static_works=no 
    3506   save_LDFLAGS="$LDFLAGS" 
    3507   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 
    3508   cat > conftest.$ac_ext <<EOF 
    3509 #line 3510 "configure" 
    3510 #include "confdefs.h" 
    3511  
    3512 int main() { 
    3513  
    3514 ; return 0; } 
    3515 EOF 
    3516 if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    3517   rm -rf conftest* 
    3518   lt_cv_prog_cc_static_works=yes 
    3519 else 
    3520   echo "configure: failed program was:" >&5 
    3521   cat conftest.$ac_ext >&5 
    3522 fi 
    3523 rm -f conftest* 
    3524   LDFLAGS="$save_LDFLAGS" 
    3525  
    3526 fi 
    3527  
    3528  
    3529 # Belt *and* braces to stop my trousers falling down: 
    3530 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 
    3531 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 
    3532  
    3533 pic_flag="$lt_cv_prog_cc_pic" 
    3534 special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 
    3535 wl="$lt_cv_prog_cc_wl" 
    3536 link_static_flag="$lt_cv_prog_cc_static" 
    3537 no_builtin_flag="$lt_cv_prog_cc_no_builtin" 
    3538 can_build_shared="$lt_cv_prog_cc_can_build_shared" 
    3539  
    3540  
    3541 # Check to see if options -o and -c are simultaneously supported by compiler 
    3542 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 
    3543 echo "configure:3544: checking if $compiler supports -c -o file.$ac_objext" >&5 
    3544 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then 
    3545   echo $ac_n "(cached) $ac_c" 1>&6 
    3546 else 
    3547    
    3548 $rm -r conftest 2>/dev/null 
    3549 mkdir conftest 
    3550 cd conftest 
    3551 echo "int some_variable = 0;" > conftest.$ac_ext 
    3552 mkdir out 
    3553 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 
    3554 # that will create temporary files in the current directory regardless of 
    3555 # the output directory.  Thus, making CWD read-only will cause this test 
    3556 # to fail, enabling locking or at least warning the user not to do parallel 
    3557 # builds. 
    3558 chmod -w . 
    3559 save_CFLAGS="$CFLAGS" 
    3560 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 
    3561 compiler_c_o=no 
    3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 
    3563   # The compiler can only warn and ignore the option if not recognized 
    3564   # So say no if there are warnings 
    3565   if test -s out/conftest.err; then 
    3566     lt_cv_compiler_c_o=no 
    3567   else 
    3568     lt_cv_compiler_c_o=yes 
    3569   fi 
    3570 else 
    3571   # Append any errors to the config.log. 
    3572   cat out/conftest.err 1>&5 
    3573   lt_cv_compiler_c_o=no 
    3574 fi 
    3575 CFLAGS="$save_CFLAGS" 
    3576 chmod u+w . 
    3577 $rm conftest* out/* 
    3578 rmdir out 
    3579 cd .. 
    3580 rmdir conftest 
    3581 $rm -r conftest 2>/dev/null 
    3582  
    3583 fi 
    3584  
    3585 compiler_c_o=$lt_cv_compiler_c_o 
    3586 echo "$ac_t""$compiler_c_o" 1>&6 
    3587  
    3588 if test x"$compiler_c_o" = x"yes"; then 
    3589   # Check to see if we can write to a .lo 
    3590   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 
    3591 echo "configure:3592: checking if $compiler supports -c -o file.lo" >&5 
    3592   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then 
    3593   echo $ac_n "(cached) $ac_c" 1>&6 
    3594 else 
    3595    
    3596   lt_cv_compiler_o_lo=no 
    3597   save_CFLAGS="$CFLAGS" 
    3598   CFLAGS="$CFLAGS -c -o conftest.lo" 
    3599   save_objext="$ac_objext" 
    3600   ac_objext=lo 
    3601   cat > conftest.$ac_ext <<EOF 
    3602 #line 3603 "configure" 
    3603 #include "confdefs.h" 
    3604  
    3605 int main() { 
    3606 int some_variable = 0; 
    3607 ; return 0; } 
    3608 EOF 
    3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    3610   rm -rf conftest* 
    3611       # The compiler can only warn and ignore the option if not recognized 
    3612     # So say no if there are warnings 
    3613     if test -s conftest.err; then 
    3614       lt_cv_compiler_o_lo=no 
    3615     else 
    3616       lt_cv_compiler_o_lo=yes 
    3617     fi 
    3618    
    3619 else 
    3620   echo "configure: failed program was:" >&5 
    3621   cat conftest.$ac_ext >&5 
    3622 fi 
    3623 rm -f conftest* 
    3624   ac_objext="$save_objext" 
    3625   CFLAGS="$save_CFLAGS" 
    3626    
    3627 fi 
    3628  
    3629   compiler_o_lo=$lt_cv_compiler_o_lo 
    3630   echo "$ac_t""$compiler_o_lo" 1>&6 
    3631 else 
    3632   compiler_o_lo=no 
    3633 fi 
    3634  
    3635 # Check to see if we can do hard links to lock some files if needed 
    3636 hard_links="nottested" 
    3637 if test "$compiler_c_o" = no && test "$need_locks" != no; then 
    3638   # do not overwrite the value of need_locks provided by the user 
    3639   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 
    3640 echo "configure:3641: checking if we can lock with hard links" >&5 
    3641   hard_links=yes 
    3642   $rm conftest* 
    3643   ln conftest.a conftest.b 2>/dev/null && hard_links=no 
    3644   touch conftest.a 
    3645   ln conftest.a conftest.b 2>&5 || hard_links=no 
    3646   ln conftest.a conftest.b 2>/dev/null && hard_links=no 
    3647   echo "$ac_t""$hard_links" 1>&6 
    3648   if test "$hard_links" = no; then 
    3649     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 
    3650     need_locks=warn 
    3651   fi 
    3652 else 
    3653   need_locks=no 
    3654 fi 
    3655  
    3656 if test "$GCC" = yes; then 
    3657   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 
    3658   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 
    3659 echo "configure:3660: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 
    3660   echo "int some_variable = 0;" > conftest.$ac_ext 
    3661   save_CFLAGS="$CFLAGS" 
    3662   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 
    3663   compiler_rtti_exceptions=no 
    3664   cat > conftest.$ac_ext <<EOF 
    3665 #line 3666 "configure" 
    3666 #include "confdefs.h" 
    3667  
    3668 int main() { 
    3669 int some_variable = 0; 
    3670 ; return 0; } 
    3671 EOF 
    3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    3673   rm -rf conftest* 
    3674       # The compiler can only warn and ignore the option if not recognized 
    3675     # So say no if there are warnings 
    3676     if test -s conftest.err; then 
    3677       compiler_rtti_exceptions=no 
    3678     else 
    3679       compiler_rtti_exceptions=yes 
    3680     fi 
    3681    
    3682 else 
    3683   echo "configure: failed program was:" >&5 
    3684   cat conftest.$ac_ext >&5 
    3685 fi 
    3686 rm -f conftest* 
    3687   CFLAGS="$save_CFLAGS" 
    3688   echo "$ac_t""$compiler_rtti_exceptions" 1>&6 
    3689  
    3690   if test "$compiler_rtti_exceptions" = "yes"; then 
    3691     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 
    3692   else 
    3693     no_builtin_flag=' -fno-builtin' 
    3694   fi 
    3695 fi 
    3696  
    3697 # See if the linker supports building shared libraries. 
    3698 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 
    3699 echo "configure:3700: checking whether the linker ($LD) supports shared libraries" >&5 
    3700  
    3701 allow_undefined_flag= 
    3702 no_undefined_flag= 
    3703 need_lib_prefix=unknown 
    3704 need_version=unknown 
    3705 # when you set need_version to no, make sure it does not cause -set_version 
    3706 # flags to be left without arguments 
    3707 archive_cmds= 
    3708 archive_expsym_cmds= 
    3709 old_archive_from_new_cmds= 
    3710 old_archive_from_expsyms_cmds= 
    3711 export_dynamic_flag_spec= 
    3712 whole_archive_flag_spec= 
    3713 thread_safe_flag_spec= 
    3714 hardcode_into_libs=no 
    3715 hardcode_libdir_flag_spec= 
    3716 hardcode_libdir_separator= 
    3717 hardcode_direct=no 
    3718 hardcode_minus_L=no 
    3719 hardcode_shlibpath_var=unsupported 
    3720 runpath_var= 
    3721 link_all_deplibs=unknown 
    3722 always_export_symbols=no 
    3723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 
    3724 # include_expsyms should be a list of space-separated symbols to be *always* 
    3725 # included in the symbol list 
    3726 include_expsyms= 
    3727 # exclude_expsyms can be an egrep regular expression of symbols to exclude 
    3728 # it will be wrapped by ` (' and `)$', so one must not match beginning or 
    3729 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 
    3730 # as well as any symbol that contains `d'. 
    3731 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 
    3732 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 
    3733 # platforms (ab)use it in PIC code, but their linkers get confused if 
    3734 # the symbol is explicitly referenced.  Since portable code cannot 
    3735 # rely on this symbol name, it's probably fine to never include it in 
    3736 # preloaded symbol tables. 
    3737 extract_expsyms_cmds= 
    3738  
    3739 case $host_os in 
    3740 cygwin* | mingw* | pw32*) 
    3741   # FIXME: the MSVC++ port hasn't been tested in a loooong time 
    3742   # When not using gcc, we currently assume that we are using 
    3743   # Microsoft Visual C++. 
    3744   if test "$GCC" != yes; then 
    3745     with_gnu_ld=no 
    3746   fi 
    3747   ;; 
    3748 openbsd*) 
    3749   with_gnu_ld=no 
    3750   ;; 
    3751 esac 
    3752  
    3753 ld_shlibs=yes 
    3754 if test "$with_gnu_ld" = yes; then 
    3755   # If archive_cmds runs LD, not CC, wlarc should be empty 
    3756   wlarc='${wl}' 
    3757  
    3758   # See if GNU ld supports shared libraries. 
    3759   case $host_os in 
    3760   aix3* | aix4* | aix5*) 
    3761     # On AIX, the GNU linker is very broken 
    3762     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 
    3763     ld_shlibs=no 
    3764     cat <<EOF 1>&2 
    3765  
    3766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 
    3767 *** to be unable to reliably create shared libraries on AIX. 
    3768 *** Therefore, libtool is disabling shared libraries support.  If you 
    3769 *** really care for shared libraries, you may want to modify your PATH 
    3770 *** so that a non-GNU linker is found, and then restart. 
    3771  
    3772 EOF 
    3773     ;; 
    3774  
    3775   amigaos*) 
    3776     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 
    3777     hardcode_libdir_flag_spec='-L$libdir' 
    3778     hardcode_minus_L=yes 
    3779  
    3780     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 
    3781     # that the semantics of dynamic libraries on AmigaOS, at least up 
    3782     # to version 4, is to share data among multiple programs linked 
    3783     # with the same dynamic library.  Since this doesn't match the 
    3784     # behavior of shared libraries on other platforms, we can use 
    3785     # them. 
    3786     ld_shlibs=no 
    3787     ;; 
    3788  
    3789   beos*) 
    3790     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
    3791       allow_undefined_flag=unsupported 
    3792       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 
    3793       # support --undefined.  This deserves some investigation.  FIXME 
    3794       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 
    3795     else 
    3796       ld_shlibs=no 
    3797     fi 
    3798     ;; 
    3799  
    3800   cygwin* | mingw* | pw32*) 
    3801     # hardcode_libdir_flag_spec is actually meaningless, as there is 
    3802     # no search path for DLLs. 
    3803     hardcode_libdir_flag_spec='-L$libdir' 
    3804     allow_undefined_flag=unsupported 
    3805     always_export_symbols=yes 
    3806  
    3807     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 
    3808       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 
    3809       test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 
    3810       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 
    3811       else $CC -o impgen impgen.c ; fi)~ 
    3812       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 
    3813  
    3814     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 
    3815  
    3816     # cygwin and mingw dlls have different entry points and sets of symbols 
    3817     # to exclude. 
    3818     # FIXME: what about values for MSVC? 
    3819     dll_entry=__cygwin_dll_entry@12 
    3820     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 
    3821     case $host_os in 
    3822     mingw*) 
    3823       # mingw values 
    3824       dll_entry=_DllMainCRTStartup@12 
    3825       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 
    3826       ;; 
    3827     esac 
    3828  
    3829     # mingw and cygwin differ, and it's simplest to just exclude the union 
    3830     # of the two symbol sets. 
    3831     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 
    3832  
    3833     # recent cygwin and mingw systems supply a stub DllMain which the user 
    3834     # can override, but on older systems we have to supply one (in ltdll.c) 
    3835     if test "x$lt_cv_need_dllmain" = "xyes"; then 
    3836       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 
    3837       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 
    3838         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 
    3839     else 
    3840       ltdll_obj= 
    3841       ltdll_cmds= 
    3842     fi 
    3843  
    3844     # Extract the symbol export list from an `--export-all' def file, 
    3845     # then regenerate the def file from the symbol export list, so that 
    3846     # the compiled dll only exports the symbol export list. 
    3847     # Be careful not to strip the DATA tag left be newer dlltools. 
    3848     export_symbols_cmds="$ltdll_cmds"' 
    3849       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 
    3850       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 
    3851  
    3852     # If the export-symbols file already is a .def file (1st line 
    3853     # is EXPORTS), use it as is. 
    3854     # If DATA tags from a recent dlltool are present, honour them! 
    3855     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 
    3856         cp $export_symbols $output_objdir/$soname-def; 
    3857       else 
    3858         echo EXPORTS > $output_objdir/$soname-def; 
    3859         _lt_hint=1; 
    3860         cat $export_symbols | while read symbol; do 
    3861          set dummy \$symbol; 
    3862          case \$# in 
    3863            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 
    3864            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 
    3865          esac; 
    3866          _lt_hint=`expr 1 + \$_lt_hint`; 
    3867         done; 
    3868       fi~ 
    3869       '"$ltdll_cmds"' 
    3870       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 
    3871       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 
    3872       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 
    3873       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 
    3874       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 
    3875     ;; 
    3876  
    3877   netbsd*) 
    3878     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    3879       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 
    3880       wlarc= 
    3881     else 
    3882       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 
    3883       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 
    3884     fi 
    3885     ;; 
    3886  
    3887   solaris* | sysv5*) 
    3888     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 
    3889       ld_shlibs=no 
    3890       cat <<EOF 1>&2 
    3891  
    3892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 
    3893 *** create shared libraries on Solaris systems.  Therefore, libtool 
    3894 *** is disabling shared libraries support.  We urge you to upgrade GNU 
    3895 *** binutils to release 2.9.1 or newer.  Another option is to modify 
    3896 *** your PATH or compiler configuration so that the native linker is 
    3897 *** used, and then restart. 
    3898  
    3899 EOF 
    3900     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
    3901       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 
    3902       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 
    3903     else 
    3904       ld_shlibs=no 
    3905     fi 
    3906     ;; 
    3907  
    3908   sunos4*) 
    3909     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 
    3910     wlarc= 
    3911     hardcode_direct=yes 
    3912     hardcode_shlibpath_var=no 
    3913     ;; 
    3914  
    3915   *) 
    3916     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 
    3917       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 
    3918       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 
    3919     else 
    3920       ld_shlibs=no 
    3921     fi 
    3922     ;; 
    3923   esac 
    3924  
    3925   if test "$ld_shlibs" = yes; then 
    3926     runpath_var=LD_RUN_PATH 
    3927     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 
    3928     export_dynamic_flag_spec='${wl}--export-dynamic' 
    3929     case $host_os in 
    3930     cygwin* | mingw* | pw32*) 
    3931       # dlltool doesn't understand --whole-archive et. al. 
    3932       whole_archive_flag_spec= 
    3933       ;; 
    3934     *) 
    3935       # ancient GNU ld didn't support --whole-archive et. al. 
    3936       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 
    3937         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 
    3938       else 
    3939         whole_archive_flag_spec= 
    3940       fi 
    3941       ;; 
    3942     esac 
    3943   fi 
    3944 else 
    3945   # PORTME fill in a description of your system's linker (not GNU ld) 
    3946   case $host_os in 
    3947   aix3*) 
    3948     allow_undefined_flag=unsupported 
    3949     always_export_symbols=yes 
    3950     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 
    3951     # Note: this linker hardcodes the directories in LIBPATH if there 
    3952     # are no directories specified by -L. 
    3953     hardcode_minus_L=yes 
    3954     if test "$GCC" = yes && test -z "$link_static_flag"; then 
    3955       # Neither direct hardcoding nor static linking is supported with a 
    3956       # broken collect2. 
    3957       hardcode_direct=unsupported 
    3958     fi 
    3959     ;; 
    3960  
    3961   aix4* | aix5*) 
    3962     if test "$host_cpu" = ia64; then 
    3963       # On IA64, the linker does run time linking by default, so we don't 
    3964       # have to do anything special. 
    3965       aix_use_runtimelinking=no 
    3966       exp_sym_flag='-Bexport' 
    3967       no_entry_flag="" 
    3968     else 
    3969       aix_use_runtimelinking=no 
    3970  
    3971       # Test if we are trying to use run time linking or normal 
    3972       # AIX style linking. If -brtl is somewhere in LDFLAGS, we 
    3973       # need to do runtime linking. 
    3974       case $host_os in aix4.[23]|aix4.[23].*|aix5*) 
    3975         for ld_flag in $LDFLAGS; do 
    3976           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 
    3977             aix_use_runtimelinking=yes 
    3978             break 
    3979           fi 
    3980         done 
    3981       esac 
    3982  
    3983       exp_sym_flag='-bexport' 
    3984       no_entry_flag='-bnoentry' 
    3985     fi 
    3986  
    3987     # When large executables or shared objects are built, AIX ld can 
    3988     # have problems creating the table of contents.  If linking a library 
    3989     # or program results in "error TOC overflow" add -mminimal-toc to 
    3990     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not 
    3991     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 
    3992  
    3993     hardcode_direct=yes 
    3994     archive_cmds='' 
    3995     hardcode_libdir_separator=':' 
    3996     if test "$GCC" = yes; then 
    3997       case $host_os in aix4.[012]|aix4.[012].*) 
    3998         collect2name=`${CC} -print-prog-name=collect2` 
    3999         if test -f "$collect2name" && \ 
    4000           strings "$collect2name" | grep resolve_lib_name >/dev/null 
    4001         then 
    4002           # We have reworked collect2 
    4003           hardcode_direct=yes 
    4004         else 
    4005           # We have old collect2 
    4006           hardcode_direct=unsupported 
    4007           # It fails to find uninstalled libraries when the uninstalled 
    4008           # path is not listed in the libpath.  Setting hardcode_minus_L 
    4009           # to unsupported forces relinking 
    4010           hardcode_minus_L=yes 
    4011           hardcode_libdir_flag_spec='-L$libdir' 
    4012           hardcode_libdir_separator= 
    4013         fi 
    4014       esac 
    4015  
    4016       shared_flag='-shared' 
    4017     else 
    4018       # not using gcc 
    4019       if test "$host_cpu" = ia64; then 
    4020         shared_flag='${wl}-G' 
    4021       else 
    4022         if test "$aix_use_runtimelinking" = yes; then 
    4023           shared_flag='${wl}-G' 
    4024         else 
    4025           shared_flag='${wl}-bM:SRE' 
    4026         fi 
    4027       fi 
    4028     fi 
    4029  
    4030     # It seems that -bexpall can do strange things, so it is better to 
    4031     # generate a list of symbols to export. 
    4032     always_export_symbols=yes 
    4033     if test "$aix_use_runtimelinking" = yes; then 
    4034       # Warning - without using the other runtime loading flags (-brtl), 
    4035       # -berok will link without error, but may produce a broken library. 
    4036       allow_undefined_flag='-berok' 
    4037       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 
    4038       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 
    4039     else 
    4040       if test "$host_cpu" = ia64; then 
    4041         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 
    4042         allow_undefined_flag="-z nodefs" 
    4043         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 
    4044       else 
    4045         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 
    4046         # Warning - without using the other run time loading flags, 
    4047         # -berok will link without error, but may produce a broken library. 
    4048         allow_undefined_flag='${wl}-berok' 
    4049         # This is a bit strange, but is similar to how AIX traditionally builds 
    4050         # it's shared libraries. 
    4051         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 
    4052       fi 
    4053     fi 
    4054     ;; 
    4055  
    4056   amigaos*) 
    4057     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 
    4058     hardcode_libdir_flag_spec='-L$libdir' 
    4059     hardcode_minus_L=yes 
    4060     # see comment about different semantics on the GNU ld section 
    4061     ld_shlibs=no 
    4062     ;; 
    4063  
    4064   cygwin* | mingw* | pw32*) 
    4065     # When not using gcc, we currently assume that we are using 
    4066     # Microsoft Visual C++. 
    4067     # hardcode_libdir_flag_spec is actually meaningless, as there is 
    4068     # no search path for DLLs. 
    4069     hardcode_libdir_flag_spec=' ' 
    4070     allow_undefined_flag=unsupported 
    4071     # Tell ltmain to make .lib files, not .a files. 
    4072     libext=lib 
    4073     # FIXME: Setting linknames here is a bad hack. 
    4074     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 
    4075     # The linker will automatically build a .lib file if we build a DLL. 
    4076     old_archive_from_new_cmds='true' 
    4077     # FIXME: Should let the user specify the lib program. 
    4078     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 
    4079     fix_srcfile_path='`cygpath -w "$srcfile"`' 
    4080     ;; 
    4081  
    4082   darwin* | rhapsody*) 
    4083     case "$host_os" in 
    4084     rhapsody* | darwin1.[012]) 
    4085       allow_undefined_flag='-undefined suppress' 
    4086       ;; 
    4087     *) # Darwin 1.3 on 
    4088       allow_undefined_flag='-flat_namespace -undefined suppress' 
    4089       ;; 
    4090     esac 
    4091     # FIXME: Relying on posixy $() will cause problems for 
    4092     #        cross-compilation, but unfortunately the echo tests do not 
    4093     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles 
    4094     #        `"' quotes if we put them in here... so don't! 
    4095     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 
    4096     # We need to add '_' to the symbols in $export_symbols first 
    4097     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 
    4098     hardcode_direct=yes 
    4099     hardcode_shlibpath_var=no 
    4100     whole_archive_flag_spec='-all_load $convenience' 
    4101     ;; 
    4102  
    4103   freebsd1*) 
    4104     ld_shlibs=no 
    4105     ;; 
    4106  
    4107   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 
    4108   # support.  Future versions do this automatically, but an explicit c++rt0.o 
    4109   # does not break anything, and helps significantly (at the cost of a little 
    4110   # extra space). 
    4111   freebsd2.2*) 
    4112     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 
    4113     hardcode_libdir_flag_spec='-R$libdir' 
    4114     hardcode_direct=yes 
    4115     hardcode_shlibpath_var=no 
    4116     ;; 
    4117  
    4118   # Unfortunately, older versions of FreeBSD 2 do not have this feature. 
    4119   freebsd2*) 
    4120     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 
    4121     hardcode_direct=yes 
    4122     hardcode_minus_L=yes 
    4123     hardcode_shlibpath_var=no 
    4124     ;; 
    4125  
    4126   # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 
    4127   freebsd*) 
    4128     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 
    4129     hardcode_libdir_flag_spec='-R$libdir' 
    4130     hardcode_direct=yes 
    4131     hardcode_shlibpath_var=no 
    4132     ;; 
    4133  
    4134   hpux9* | hpux10* | hpux11*) 
    4135     case $host_os in 
    4136     hpux9*) 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' ;; 
    4137     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 
    4138     esac 
    4139     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 
    4140     hardcode_libdir_separator=: 
    4141     hardcode_direct=yes 
    4142     hardcode_minus_L=yes # Not in the search PATH, but as the default 
    4143                          # location of the library. 
    4144     export_dynamic_flag_spec='${wl}-E' 
    4145     ;; 
    4146  
    4147   irix5* | irix6* | nonstopux*) 
    4148     if test "$GCC" = yes; then 
    4149       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 
    4150     else 
    4151       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 
    4152     fi 
    4153     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
    4154     hardcode_libdir_separator=: 
    4155     link_all_deplibs=yes 
    4156     ;; 
    4157  
    4158   netbsd*) 
    4159     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    4160       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out 
    4161     else 
    4162       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF 
    4163     fi 
    4164     hardcode_libdir_flag_spec='-R$libdir' 
    4165     hardcode_direct=yes 
    4166     hardcode_shlibpath_var=no 
    4167     ;; 
    4168  
    4169   newsos6) 
    4170     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4171     hardcode_direct=yes 
    4172     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
    4173     hardcode_libdir_separator=: 
    4174     hardcode_shlibpath_var=no 
    4175     ;; 
    4176  
    4177   openbsd*) 
    4178     hardcode_direct=yes 
    4179     hardcode_shlibpath_var=no 
    4180     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
    4181       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 
    4182       hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 
    4183       export_dynamic_flag_spec='${wl}-E' 
    4184     else 
    4185       case "$host_os" in 
    4186       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 
    4187         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 
    4188         hardcode_libdir_flag_spec='-R$libdir' 
    4189         ;; 
    4190       *) 
    4191         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 
    4192         hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 
    4193         ;; 
    4194       esac 
    4195     fi 
    4196     ;; 
    4197  
    4198   os2*) 
    4199     hardcode_libdir_flag_spec='-L$libdir' 
    4200     hardcode_minus_L=yes 
    4201     allow_undefined_flag=unsupported 
    4202     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' 
    4203     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 
    4204     ;; 
    4205  
    4206   osf3*) 
    4207     if test "$GCC" = yes; then 
    4208       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 
    4209       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 
    4210     else 
    4211       allow_undefined_flag=' -expect_unresolved \*' 
    4212       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 
    4213     fi 
    4214     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
    4215     hardcode_libdir_separator=: 
    4216     ;; 
    4217  
    4218   osf4* | osf5*)        # as osf3* with the addition of -msym flag 
    4219     if test "$GCC" = yes; then 
    4220       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 
    4221       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 
    4222       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 
    4223     else 
    4224       allow_undefined_flag=' -expect_unresolved \*' 
    4225       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 
    4226       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 
    4227       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 
    4228  
    4229       #Both c and cxx compiler support -rpath directly 
    4230       hardcode_libdir_flag_spec='-rpath $libdir' 
    4231     fi 
    4232     hardcode_libdir_separator=: 
    4233     ;; 
    4234  
    4235   sco3.2v5*) 
    4236     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4237     hardcode_shlibpath_var=no 
    4238     runpath_var=LD_RUN_PATH 
    4239     hardcode_runpath_var=yes 
    4240     export_dynamic_flag_spec='${wl}-Bexport' 
    4241     ;; 
    4242  
    4243   solaris*) 
    4244     # gcc --version < 3.0 without binutils cannot create self contained 
    4245     # shared libraries reliably, requiring libgcc.a to resolve some of 
    4246     # the object symbols generated in some cases.  Libraries that use 
    4247     # assert need libgcc.a to resolve __eprintf, for example.  Linking 
    4248     # a copy of libgcc.a into every shared library to guarantee resolving 
    4249     # such symbols causes other problems:  According to Tim Van Holder 
    4250     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 
    4251     # (to the application) exception stack for one thing. 
    4252     no_undefined_flag=' -z defs' 
    4253     if test "$GCC" = yes; then 
    4254       case `$CC --version 2>/dev/null` in 
    4255       [12].*) 
    4256         cat <<EOF 1>&2 
    4257  
    4258 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably 
    4259 *** create self contained shared libraries on Solaris systems, without 
    4260 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling 
    4261 *** -no-undefined support, which will at least allow you to build shared 
    4262 *** libraries.  However, you may find that when you link such libraries 
    4263 *** into an application without using GCC, you have to manually add 
    4264 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to 
    4265 *** upgrade to a newer version of GCC.  Another option is to rebuild your 
    4266 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 
    4267  
    4268 EOF 
    4269         no_undefined_flag= 
    4270         ;; 
    4271       esac 
    4272     fi 
    4273     # $CC -shared without GNU ld will not create a library from C++ 
    4274     # object files and a static libstdc++, better avoid it by now 
    4275     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4276     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 
    4277                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 
    4278     hardcode_libdir_flag_spec='-R$libdir' 
    4279     hardcode_shlibpath_var=no 
    4280     case $host_os in 
    4281     solaris2.[0-5] | solaris2.[0-5].*) ;; 
    4282     *) # Supported since Solaris 2.6 (maybe 2.5.1?) 
    4283       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 
    4284     esac 
    4285     link_all_deplibs=yes 
    4286     ;; 
    4287  
    4288   sunos4*) 
    4289     if test "x$host_vendor" = xsequent; then 
    4290       # Use $CC to link under sequent, because it throws in some extra .o 
    4291       # files that make .init and .fini sections work. 
    4292       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 
    4293     else 
    4294       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 
    4295     fi 
    4296     hardcode_libdir_flag_spec='-L$libdir' 
    4297     hardcode_direct=yes 
    4298     hardcode_minus_L=yes 
    4299     hardcode_shlibpath_var=no 
    4300     ;; 
    4301  
    4302   sysv4) 
    4303     if test "x$host_vendor" = xsno; then 
    4304       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4305       hardcode_direct=yes # is this really true??? 
    4306     else 
    4307       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4308       hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
    4309     fi 
    4310     runpath_var='LD_RUN_PATH' 
    4311     hardcode_shlibpath_var=no 
    4312     ;; 
    4313  
    4314   sysv4.3*) 
    4315     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4316     hardcode_shlibpath_var=no 
    4317     export_dynamic_flag_spec='-Bexport' 
    4318     ;; 
    4319  
    4320   sysv5*) 
    4321     no_undefined_flag=' -z text' 
    4322     # $CC -shared without GNU ld will not create a library from C++ 
    4323     # object files and a static libstdc++, better avoid it by now 
    4324     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4325     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 
    4326                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 
    4327     hardcode_libdir_flag_spec= 
    4328     hardcode_shlibpath_var=no 
    4329     runpath_var='LD_RUN_PATH' 
    4330     ;; 
    4331  
    4332   uts4*) 
    4333     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4334     hardcode_libdir_flag_spec='-L$libdir' 
    4335     hardcode_shlibpath_var=no 
    4336     ;; 
    4337  
    4338   dgux*) 
    4339     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4340     hardcode_libdir_flag_spec='-L$libdir' 
    4341     hardcode_shlibpath_var=no 
    4342     ;; 
    4343  
    4344   sysv4*MP*) 
    4345     if test -d /usr/nec; then 
    4346       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 
    4347       hardcode_shlibpath_var=no 
    4348       runpath_var=LD_RUN_PATH 
    4349       hardcode_runpath_var=yes 
    4350       ld_shlibs=yes 
    4351     fi 
    4352     ;; 
    4353  
    4354   sysv4.2uw2*) 
    4355     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 
    4356     hardcode_direct=yes 
    4357     hardcode_minus_L=no 
    4358     hardcode_shlibpath_var=no 
    4359     hardcode_runpath_var=yes 
    4360     runpath_var=LD_RUN_PATH 
    4361     ;; 
    4362  
    4363   sysv5uw7* | unixware7*) 
    4364     no_undefined_flag='${wl}-z ${wl}text' 
    4365     if test "$GCC" = yes; then 
    4366       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 
    4367     else 
    4368       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 
    4369     fi 
    4370     runpath_var='LD_RUN_PATH' 
    4371     hardcode_shlibpath_var=no 
    4372     ;; 
    4373  
    4374   *) 
    4375     ld_shlibs=no 
    4376     ;; 
    4377   esac 
    4378 fi 
    4379 echo "$ac_t""$ld_shlibs" 1>&6 
    4380 test "$ld_shlibs" = no && can_build_shared=no 
    4381  
    4382 # Check hardcoding attributes. 
    4383 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 
    4384 echo "configure:4385: checking how to hardcode library paths into programs" >&5 
    4385 hardcode_action= 
    4386 if test -n "$hardcode_libdir_flag_spec" || \ 
    4387    test -n "$runpath_var"; then 
    4388  
    4389   # We can hardcode non-existant directories. 
    4390   if test "$hardcode_direct" != no && 
    4391      # If the only mechanism to avoid hardcoding is shlibpath_var, we 
    4392      # have to relink, otherwise we might link with an installed library 
    4393      # when we should be linking with a yet-to-be-installed one 
    4394      ## test "$hardcode_shlibpath_var" != no && 
    4395      test "$hardcode_minus_L" != no; then 
    4396     # Linking always hardcodes the temporary library directory. 
    4397     hardcode_action=relink 
    4398   else 
    4399     # We can link without hardcoding, and we can hardcode nonexisting dirs. 
    4400     hardcode_action=immediate 
    4401   fi 
    4402 else 
    4403   # We cannot hardcode anything, or else we can only hardcode existing 
    4404   # directories. 
    4405   hardcode_action=unsupported 
    4406 fi 
    4407 echo "$ac_t""$hardcode_action" 1>&6 
    4408  
    4409 striplib= 
    4410 old_striplib= 
    4411 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 
    4412 echo "configure:4413: checking whether stripping libraries is possible" >&5 
    4413 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 
    4414   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 
    4415   test -z "$striplib" && striplib="$STRIP --strip-unneeded" 
    4416   echo "$ac_t""yes" 1>&6 
    4417 else 
    4418   echo "$ac_t""no" 1>&6 
    4419 fi 
    4420  
    4421 reload_cmds='$LD$reload_flag -o $output$reload_objs' 
    4422 test -z "$deplibs_check_method" && deplibs_check_method=unknown 
    4423  
    4424 # PORTME Fill in your ld.so characteristics 
    4425 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 
    4426 echo "configure:4427: checking dynamic linker characteristics" >&5 
    4427 library_names_spec= 
    4428 libname_spec='lib$name' 
    4429 soname_spec= 
    4430 postinstall_cmds= 
    4431 postuninstall_cmds= 
    4432 finish_cmds= 
    4433 finish_eval= 
    4434 shlibpath_var= 
    4435 shlibpath_overrides_runpath=unknown 
    4436 version_type=none 
    4437 dynamic_linker="$host_os ld.so" 
    4438 sys_lib_dlsearch_path_spec="/lib /usr/lib" 
    4439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 
    4440  
    4441 case $host_os in 
    4442 aix3*) 
    4443   version_type=linux 
    4444   library_names_spec='${libname}${release}.so$versuffix $libname.a' 
    4445   shlibpath_var=LIBPATH 
    4446  
    4447   # AIX has no versioning support, so we append a major version to the name. 
    4448   soname_spec='${libname}${release}.so$major' 
    4449   ;; 
    4450  
    4451 aix4* | aix5*) 
    4452   version_type=linux 
    4453   if test "$host_cpu" = ia64; then 
    4454     # AIX 5 supports IA64 
    4455     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 
    4456     shlibpath_var=LD_LIBRARY_PATH 
    4457   else 
    4458     # With GCC up to 2.95.x, collect2 would create an import file 
    4459     # for dependence libraries.  The import file would start with 
    4460     # the line `#! .'.  This would cause the generated library to 
    4461     # depend on `.', always an invalid library.  This was fixed in 
    4462     # development snapshots of GCC prior to 3.0. 
    4463     case $host_os in 
    4464       aix4 | aix4.[01] | aix4.[01].*) 
    4465         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 
    4466              echo ' yes ' 
    4467              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 
    4468           : 
    4469         else 
    4470           can_build_shared=no 
    4471         fi 
    4472         ;; 
    4473     esac 
    4474     # AIX (on Power*) has no versioning support, so currently we can 
    4475     # not hardcode correct soname into executable. Probably we can 
    4476     # add versioning support to collect2, so additional links can 
    4477     # be useful in future. 
    4478     if test "$aix_use_runtimelinking" = yes; then 
    4479       # If using run time linking (on AIX 4.2 or later) use lib<name>.so 
    4480       # instead of lib<name>.a to let people know that these are not 
    4481       # typical AIX shared libraries. 
    4482       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4483     else 
    4484       # We preserve .a as extension for shared libraries through AIX4.2 
    4485       # and later when we are not doing run time linking. 
    4486       library_names_spec='${libname}${release}.a $libname.a' 
    4487       soname_spec='${libname}${release}.so$major' 
    4488     fi 
    4489     shlibpath_var=LIBPATH 
    4490   fi 
    4491   ;; 
    4492  
    4493 amigaos*) 
    4494   library_names_spec='$libname.ixlibrary $libname.a' 
    4495   # Create ${libname}_ixlibrary.a entries in /sys/libs. 
    4496   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' 
    4497   ;; 
    4498  
    4499 beos*) 
    4500   library_names_spec='${libname}.so' 
    4501   dynamic_linker="$host_os ld.so" 
    4502   shlibpath_var=LIBRARY_PATH 
    4503   ;; 
    4504  
    4505 bsdi4*) 
    4506   version_type=linux 
    4507   need_version=no 
    4508   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4509   soname_spec='${libname}${release}.so$major' 
    4510   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 
    4511   shlibpath_var=LD_LIBRARY_PATH 
    4512   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 
    4513   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 
    4514   export_dynamic_flag_spec=-rdynamic 
    4515   # the default ld.so.conf also contains /usr/contrib/lib and 
    4516   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 
    4517   # libtool to hard-code these into programs 
    4518   ;; 
    4519  
    4520 cygwin* | mingw* | pw32*) 
    4521   version_type=windows 
    4522   need_version=no 
    4523   need_lib_prefix=no 
    4524   case $GCC,$host_os in 
    4525   yes,cygwin*) 
    4526     library_names_spec='$libname.dll.a' 
    4527     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 
    4528     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 
    4529       dldir=$destdir/`dirname \$dlpath`~ 
    4530       test -d \$dldir || mkdir -p \$dldir~ 
    4531       $install_prog .libs/$dlname \$dldir/$dlname' 
    4532     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 
    4533       dlpath=$dir/\$dldll~ 
    4534        $rm \$dlpath' 
    4535     ;; 
    4536   yes,mingw*) 
    4537     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 
    4538     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 
    4539     ;; 
    4540   yes,pw32*) 
    4541     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 
    4542     ;; 
    4543   *) 
    4544     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 
    4545     ;; 
    4546   esac 
    4547   dynamic_linker='Win32 ld.exe' 
    4548   # FIXME: first we should search . and the directory the executable is in 
    4549   shlibpath_var=PATH 
    4550   ;; 
    4551  
    4552 darwin* | rhapsody*) 
    4553   dynamic_linker="$host_os dyld" 
    4554   version_type=darwin 
    4555   need_lib_prefix=no 
    4556   need_version=no 
    4557   # FIXME: Relying on posixy $() will cause problems for 
    4558   #        cross-compilation, but unfortunately the echo tests do not 
    4559   #        yet detect zsh echo's removal of \ escapes. 
    4560   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 
    4561   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 
    4562   shlibpath_overrides_runpath=yes 
    4563   shlibpath_var=DYLD_LIBRARY_PATH 
    4564   ;; 
    4565  
    4566 freebsd1*) 
    4567   dynamic_linker=no 
    4568   ;; 
    4569  
    4570 freebsd*) 
    4571   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 
    4572   version_type=freebsd-$objformat 
    4573   case $version_type in 
    4574     freebsd-elf*) 
    4575       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 
    4576       need_version=no 
    4577       need_lib_prefix=no 
    4578       ;; 
    4579     freebsd-*) 
    4580       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 
    4581       need_version=yes 
    4582       ;; 
    4583   esac 
    4584   shlibpath_var=LD_LIBRARY_PATH 
    4585   case $host_os in 
    4586   freebsd2*) 
    4587     shlibpath_overrides_runpath=yes 
    4588     ;; 
    4589   *) 
    4590     shlibpath_overrides_runpath=no 
    4591     hardcode_into_libs=yes 
    4592     ;; 
    4593   esac 
    4594   ;; 
    4595  
    4596 gnu*) 
    4597   version_type=linux 
    4598   need_lib_prefix=no 
    4599   need_version=no 
    4600   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 
    4601   soname_spec='${libname}${release}.so$major' 
    4602   shlibpath_var=LD_LIBRARY_PATH 
    4603   hardcode_into_libs=yes 
    4604   ;; 
    4605  
    4606 hpux9* | hpux10* | hpux11*) 
    4607   # Give a soname corresponding to the major version so that dld.sl refuses to 
    4608   # link against other versions. 
    4609   dynamic_linker="$host_os dld.sl" 
    4610   version_type=sunos 
    4611   need_lib_prefix=no 
    4612   need_version=no 
    4613   shlibpath_var=SHLIB_PATH 
    4614   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 
    4615   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 
    4616   soname_spec='${libname}${release}.sl$major' 
    4617   # HP-UX runs *really* slowly unless shared libraries are mode 555. 
    4618   postinstall_cmds='chmod 555 $lib' 
    4619   ;; 
    4620  
    4621 irix5* | irix6* | nonstopux*) 
    4622   case $host_os in 
    4623     nonstopux*) version_type=nonstopux ;; 
    4624     *)          version_type=irix ;; 
    4625   esac 
    4626   need_lib_prefix=no 
    4627   need_version=no 
    4628   soname_spec='${libname}${release}.so$major' 
    4629   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 
    4630   case $host_os in 
    4631   irix5* | nonstopux*) 
    4632     libsuff= shlibsuff= 
    4633     ;; 
    4634   *) 
    4635     case $LD in # libtool.m4 will add one of these switches to LD 
    4636     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 
    4637     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 
    4638     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 
    4639     *) libsuff= shlibsuff= libmagic=never-match;; 
    4640     esac 
    4641     ;; 
    4642   esac 
    4643   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 
    4644   shlibpath_overrides_runpath=no 
    4645   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 
    4646   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 
    4647   ;; 
    4648  
    4649 # No shared lib support for Linux oldld, aout, or coff. 
    4650 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 
    4651   dynamic_linker=no 
    4652   ;; 
    4653  
    4654 # This must be Linux ELF. 
    4655 linux-gnu*) 
    4656   version_type=linux 
    4657   need_lib_prefix=no 
    4658   need_version=no 
    4659   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4660   soname_spec='${libname}${release}.so$major' 
    4661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 
    4662   shlibpath_var=LD_LIBRARY_PATH 
    4663   shlibpath_overrides_runpath=no 
    4664   # This implies no fast_install, which is unacceptable. 
    4665   # Some rework will be needed to allow for fast_install 
    4666   # before this can be enabled. 
    4667   hardcode_into_libs=yes 
    4668  
    4669   # We used to test for /lib/ld.so.1 and disable shared libraries on 
    4670   # powerpc, because MkLinux only supported shared libraries with the 
    4671   # GNU dynamic linker.  Since this was broken with cross compilers, 
    4672   # most powerpc-linux boxes support dynamic linking these days and 
    4673   # people can always --disable-shared, the test was removed, and we 
    4674   # assume the GNU/Linux dynamic linker is in use. 
    4675   dynamic_linker='GNU/Linux ld.so' 
    4676   ;; 
    4677  
    4678 netbsd*) 
    4679   version_type=sunos 
    4680   need_lib_prefix=no 
    4681   need_version=no 
    4682   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    4683     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 
    4684     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 
    4685     dynamic_linker='NetBSD (a.out) ld.so' 
    4686   else 
    4687     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 
    4688     soname_spec='${libname}${release}.so$major' 
    4689     dynamic_linker='NetBSD ld.elf_so' 
    4690   fi 
    4691   shlibpath_var=LD_LIBRARY_PATH 
    4692   shlibpath_overrides_runpath=yes 
    4693   hardcode_into_libs=yes 
    4694   ;; 
    4695  
    4696 newsos6) 
    4697   version_type=linux 
    4698   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4699   shlibpath_var=LD_LIBRARY_PATH 
    4700   shlibpath_overrides_runpath=yes 
    4701   ;; 
    4702  
    4703 openbsd*) 
    4704   version_type=sunos 
    4705   need_lib_prefix=no 
    4706   need_version=no 
    4707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
    4708     case "$host_os" in 
    4709     openbsd2.[89] | openbsd2.[89].*) 
    4710       shlibpath_overrides_runpath=no 
    4711       ;; 
    4712     *) 
    4713       shlibpath_overrides_runpath=yes 
    4714       ;; 
    4715     esac 
    4716   else 
    4717     shlibpath_overrides_runpath=yes 
    4718   fi 
    4719   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 
    4720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 
    4721   shlibpath_var=LD_LIBRARY_PATH 
    4722   ;; 
    4723  
    4724 os2*) 
    4725   libname_spec='$name' 
    4726   need_lib_prefix=no 
    4727   library_names_spec='$libname.dll $libname.a' 
    4728   dynamic_linker='OS/2 ld.exe' 
    4729   shlibpath_var=LIBPATH 
    4730   ;; 
    4731  
    4732 osf3* | osf4* | osf5*) 
    4733   version_type=osf 
    4734   need_version=no 
    4735   need_lib_prefix=no 
    4736   soname_spec='${libname}${release}.so' 
    4737   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 
    4738   shlibpath_var=LD_LIBRARY_PATH 
    4739   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 
    4740   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 
    4741   ;; 
    4742  
    4743 sco3.2v5*) 
    4744   version_type=osf 
    4745   soname_spec='${libname}${release}.so$major' 
    4746   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4747   shlibpath_var=LD_LIBRARY_PATH 
    4748   ;; 
    4749  
    4750 solaris*) 
    4751   version_type=linux 
    4752   need_lib_prefix=no 
    4753   need_version=no 
    4754   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4755   soname_spec='${libname}${release}.so$major' 
    4756   shlibpath_var=LD_LIBRARY_PATH 
    4757   shlibpath_overrides_runpath=yes 
    4758   hardcode_into_libs=yes 
    4759   # ldd complains unless libraries are executable 
    4760   postinstall_cmds='chmod +x $lib' 
    4761   ;; 
    4762  
    4763 sunos4*) 
    4764   version_type=sunos 
    4765   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 
    4766   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 
    4767   shlibpath_var=LD_LIBRARY_PATH 
    4768   shlibpath_overrides_runpath=yes 
    4769   if test "$with_gnu_ld" = yes; then 
    4770     need_lib_prefix=no 
    4771   fi 
    4772   need_version=yes 
    4773   ;; 
    4774  
    4775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 
    4776   version_type=linux 
    4777   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4778   soname_spec='${libname}${release}.so$major' 
    4779   shlibpath_var=LD_LIBRARY_PATH 
    4780   case $host_vendor in 
    4781     sni) 
    4782       shlibpath_overrides_runpath=no 
    4783       ;; 
    4784     motorola) 
    4785       need_lib_prefix=no 
    4786       need_version=no 
    4787       shlibpath_overrides_runpath=no 
    4788       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 
    4789       ;; 
    4790   esac 
    4791   ;; 
    4792  
    4793 uts4*) 
    4794   version_type=linux 
    4795   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4796   soname_spec='${libname}${release}.so$major' 
    4797   shlibpath_var=LD_LIBRARY_PATH 
    4798   ;; 
    4799  
    4800 dgux*) 
    4801   version_type=linux 
    4802   need_lib_prefix=no 
    4803   need_version=no 
    4804   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 
    4805   soname_spec='${libname}${release}.so$major' 
    4806   shlibpath_var=LD_LIBRARY_PATH 
    4807   ;; 
    4808  
    4809 sysv4*MP*) 
    4810   if test -d /usr/nec ;then 
    4811     version_type=linux 
    4812     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 
    4813     soname_spec='$libname.so.$major' 
    4814     shlibpath_var=LD_LIBRARY_PATH 
    4815   fi 
    4816   ;; 
    4817  
    4818 *) 
    4819   dynamic_linker=no 
    4820   ;; 
    4821 esac 
    4822 echo "$ac_t""$dynamic_linker" 1>&6 
    4823 test "$dynamic_linker" = no && can_build_shared=no 
    4824  
    4825 # Report the final consequences. 
    4826 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 
    4827 echo "configure:4828: checking if libtool supports shared libraries" >&5 
    4828 echo "$ac_t""$can_build_shared" 1>&6 
    4829  
    4830 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 
    4831 echo "configure:4832: checking whether to build shared libraries" >&5 
    4832 test "$can_build_shared" = "no" && enable_shared=no 
    4833  
    4834 # On AIX, shared libraries and static libraries use the same namespace, and 
    4835 # are all built from PIC. 
    4836 case "$host_os" in 
    4837 aix3*) 
    4838   test "$enable_shared" = yes && enable_static=no 
    4839   if test -n "$RANLIB"; then 
    4840     archive_cmds="$archive_cmds~\$RANLIB \$lib" 
    4841     postinstall_cmds='$RANLIB $lib' 
    4842   fi 
    4843   ;; 
    4844  
    4845 aix4*) 
    4846   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 
    4847     test "$enable_shared" = yes && enable_static=no 
    4848   fi 
    4849   ;; 
    4850 esac 
    4851 echo "$ac_t""$enable_shared" 1>&6 
    4852  
    4853 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6 
    4854 echo "configure:4855: checking whether to build static libraries" >&5 
    4855 # Make sure either enable_shared or enable_static is yes. 
    4856 test "$enable_shared" = yes || enable_static=yes 
    4857 echo "$ac_t""$enable_static" 1>&6 
    4858  
    4859 if test "$hardcode_action" = relink; then 
    4860   # Fast installation is not supported 
    4861   enable_fast_install=no 
    4862 elif test "$shlibpath_overrides_runpath" = yes || 
    4863      test "$enable_shared" = no; then 
    4864   # Fast installation is not necessary 
    4865   enable_fast_install=needless 
    4866 fi 
    4867  
    4868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 
    4869 if test "$GCC" = yes; then 
    4870   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 
    4871 fi 
    4872  
    4873 if test "x$enable_dlopen" != xyes; then 
    4874   enable_dlopen=unknown 
    4875   enable_dlopen_self=unknown 
    4876   enable_dlopen_self_static=unknown 
    4877 else 
    4878   lt_cv_dlopen=no 
    4879   lt_cv_dlopen_libs= 
    4880  
    4881   case $host_os in 
    4882   beos*) 
    4883     lt_cv_dlopen="load_add_on" 
    4884     lt_cv_dlopen_libs= 
    4885     lt_cv_dlopen_self=yes 
    4886     ;; 
    4887  
    4888   cygwin* | mingw* | pw32*) 
    4889     lt_cv_dlopen="LoadLibrary" 
    4890     lt_cv_dlopen_libs= 
    4891    ;; 
    4892  
    4893   *) 
    4894     echo $ac_n "checking for shl_load""... $ac_c" 1>&6 
    4895 echo "configure:4896: checking for shl_load" >&5 
    4896 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 
    4897   echo $ac_n "(cached) $ac_c" 1>&6 
    4898 else 
    4899   cat > conftest.$ac_ext <<EOF 
    4900 #line 4901 "configure" 
    4901 #include "confdefs.h" 
    4902 /* System header to define __stub macros and hopefully few prototypes, 
    4903     which can conflict with char shl_load(); below.  */ 
    4904 #include <assert.h> 
    4905 /* Override any gcc2 internal prototype to avoid an error.  */ 
    4906 /* We use char because int might match the return type of a gcc2 
    4907     builtin and then its argument prototype would still apply.  */ 
    4908 char shl_load(); 
    4909  
    4910 int main() { 
    4911  
    4912 /* The GNU C library defines this for functions which it implements 
    4913     to always fail with ENOSYS.  Some functions are actually named 
    4914     something starting with __ and the normal name is an alias.  */ 
    4915 #if defined (__stub_shl_load) || defined (__stub___shl_load) 
    4916 choke me 
    4917 #else 
    4918 shl_load(); 
    4919 #endif 
    4920  
    4921 ; return 0; } 
    4922 EOF 
    4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    4924   rm -rf conftest* 
    4925   eval "ac_cv_func_shl_load=yes" 
    4926 else 
    4927   echo "configure: failed program was:" >&5 
    4928   cat conftest.$ac_ext >&5 
    4929   rm -rf conftest* 
    4930   eval "ac_cv_func_shl_load=no" 
    4931 fi 
    4932 rm -f conftest* 
    4933 fi 
    4934  
    4935 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 
    4936   echo "$ac_t""yes" 1>&6 
    4937   lt_cv_dlopen="shl_load" 
    4938 else 
    4939   echo "$ac_t""no" 1>&6 
    4940 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 
    4941 echo "configure:4942: checking for shl_load in -ldld" >&5 
    4942 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 
    4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    4944   echo $ac_n "(cached) $ac_c" 1>&6 
    4945 else 
    4946   ac_save_LIBS="$LIBS" 
    4947 LIBS="-ldld  $LIBS" 
    4948 cat > conftest.$ac_ext <<EOF 
    4949 #line 4950 "configure" 
    4950 #include "confdefs.h" 
    4951 /* Override any gcc2 internal prototype to avoid an error.  */ 
    4952 /* We use char because int might match the return type of a gcc2 
    4953     builtin and then its argument prototype would still apply.  */ 
    4954 char shl_load(); 
    4955  
    4956 int main() { 
    4957 shl_load() 
    4958 ; return 0; } 
    4959 EOF 
    4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    4961   rm -rf conftest* 
    4962   eval "ac_cv_lib_$ac_lib_var=yes" 
    4963 else 
    4964   echo "configure: failed program was:" >&5 
    4965   cat conftest.$ac_ext >&5 
    4966   rm -rf conftest* 
    4967   eval "ac_cv_lib_$ac_lib_var=no" 
    4968 fi 
    4969 rm -f conftest* 
    4970 LIBS="$ac_save_LIBS" 
    4971  
    4972 fi 
    4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    4974   echo "$ac_t""yes" 1>&6 
    4975   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 
    4976 else 
    4977   echo "$ac_t""no" 1>&6 
    4978 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 
    4979 echo "configure:4980: checking for dlopen" >&5 
    4980 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 
    4981   echo $ac_n "(cached) $ac_c" 1>&6 
    4982 else 
    4983   cat > conftest.$ac_ext <<EOF 
    4984 #line 4985 "configure" 
    4985 #include "confdefs.h" 
    4986 /* System header to define __stub macros and hopefully few prototypes, 
    4987     which can conflict with char dlopen(); below.  */ 
    4988 #include <assert.h> 
    4989 /* Override any gcc2 internal prototype to avoid an error.  */ 
    4990 /* We use char because int might match the return type of a gcc2 
    4991     builtin and then its argument prototype would still apply.  */ 
    4992 char dlopen(); 
    4993  
    4994 int main() { 
    4995  
    4996 /* The GNU C library defines this for functions which it implements 
    4997     to always fail with ENOSYS.  Some functions are actually named 
    4998     something starting with __ and the normal name is an alias.  */ 
    4999 #if defined (__stub_dlopen) || defined (__stub___dlopen) 
    5000 choke me 
    5001 #else 
    5002 dlopen(); 
    5003 #endif 
    5004  
    5005 ; return 0; } 
    5006 EOF 
    5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    5008   rm -rf conftest* 
    5009   eval "ac_cv_func_dlopen=yes" 
    5010 else 
    5011   echo "configure: failed program was:" >&5 
    5012   cat conftest.$ac_ext >&5 
    5013   rm -rf conftest* 
    5014   eval "ac_cv_func_dlopen=no" 
    5015 fi 
    5016 rm -f conftest* 
    5017 fi 
    5018  
    5019 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 
    5020   echo "$ac_t""yes" 1>&6 
    5021   lt_cv_dlopen="dlopen" 
    5022 else 
    5023   echo "$ac_t""no" 1>&6 
    5024 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 
    5025 echo "configure:5026: checking for dlopen in -ldl" >&5 
    5026 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 
    5027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    5028   echo $ac_n "(cached) $ac_c" 1>&6 
    5029 else 
    5030   ac_save_LIBS="$LIBS" 
    5031 LIBS="-ldl  $LIBS" 
    5032 cat > conftest.$ac_ext <<EOF 
    5033 #line 5034 "configure" 
    5034 #include "confdefs.h" 
    5035 /* Override any gcc2 internal prototype to avoid an error.  */ 
    5036 /* We use char because int might match the return type of a gcc2 
    5037     builtin and then its argument prototype would still apply.  */ 
    5038 char dlopen(); 
    5039  
    5040 int main() { 
    5041 dlopen() 
    5042 ; return 0; } 
    5043 EOF 
    5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    5045   rm -rf conftest* 
    5046   eval "ac_cv_lib_$ac_lib_var=yes" 
    5047 else 
    5048   echo "configure: failed program was:" >&5 
    5049   cat conftest.$ac_ext >&5 
    5050   rm -rf conftest* 
    5051   eval "ac_cv_lib_$ac_lib_var=no" 
    5052 fi 
    5053 rm -f conftest* 
    5054 LIBS="$ac_save_LIBS" 
    5055  
    5056 fi 
    5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    5058   echo "$ac_t""yes" 1>&6 
    5059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 
    5060 else 
    5061   echo "$ac_t""no" 1>&6 
    5062 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 
    5063 echo "configure:5064: checking for dlopen in -lsvld" >&5 
    5064 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` 
    5065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    5066   echo $ac_n "(cached) $ac_c" 1>&6 
    5067 else 
    5068   ac_save_LIBS="$LIBS" 
    5069 LIBS="-lsvld  $LIBS" 
    5070 cat > conftest.$ac_ext <<EOF 
    5071 #line 5072 "configure" 
    5072 #include "confdefs.h" 
    5073 /* Override any gcc2 internal prototype to avoid an error.  */ 
    5074 /* We use char because int might match the return type of a gcc2 
    5075     builtin and then its argument prototype would still apply.  */ 
    5076 char dlopen(); 
    5077  
    5078 int main() { 
    5079 dlopen() 
    5080 ; return 0; } 
    5081 EOF 
    5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    5083   rm -rf conftest* 
    5084   eval "ac_cv_lib_$ac_lib_var=yes" 
    5085 else 
    5086   echo "configure: failed program was:" >&5 
    5087   cat conftest.$ac_ext >&5 
    5088   rm -rf conftest* 
    5089   eval "ac_cv_lib_$ac_lib_var=no" 
    5090 fi 
    5091 rm -f conftest* 
    5092 LIBS="$ac_save_LIBS" 
    5093  
    5094 fi 
    5095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    5096   echo "$ac_t""yes" 1>&6 
    5097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 
    5098 else 
    5099   echo "$ac_t""no" 1>&6 
    5100 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 
    5101 echo "configure:5102: checking for dld_link in -ldld" >&5 
    5102 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` 
    5103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    5104   echo $ac_n "(cached) $ac_c" 1>&6 
    5105 else 
    5106   ac_save_LIBS="$LIBS" 
    5107 LIBS="-ldld  $LIBS" 
    5108 cat > conftest.$ac_ext <<EOF 
    5109 #line 5110 "configure" 
    5110 #include "confdefs.h" 
    5111 /* Override any gcc2 internal prototype to avoid an error.  */ 
    5112 /* We use char because int might match the return type of a gcc2 
    5113     builtin and then its argument prototype would still apply.  */ 
    5114 char dld_link(); 
    5115  
    5116 int main() { 
    5117 dld_link() 
    5118 ; return 0; } 
    5119 EOF 
    5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    5121   rm -rf conftest* 
    5122   eval "ac_cv_lib_$ac_lib_var=yes" 
    5123 else 
    5124   echo "configure: failed program was:" >&5 
    5125   cat conftest.$ac_ext >&5 
    5126   rm -rf conftest* 
    5127   eval "ac_cv_lib_$ac_lib_var=no" 
    5128 fi 
    5129 rm -f conftest* 
    5130 LIBS="$ac_save_LIBS" 
    5131  
    5132 fi 
    5133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    5134   echo "$ac_t""yes" 1>&6 
    5135   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 
    5136 else 
    5137   echo "$ac_t""no" 1>&6 
    5138 fi 
    5139  
    5140                
    5141 fi 
    5142  
    5143              
    5144 fi 
    5145  
    5146            
    5147 fi 
    5148  
    5149          
    5150 fi 
    5151  
    5152        
    5153 fi 
    5154  
    5155     ;; 
    5156   esac 
    5157  
    5158   if test "x$lt_cv_dlopen" != xno; then 
    5159     enable_dlopen=yes 
    5160   else 
    5161     enable_dlopen=no 
    5162   fi 
    5163  
    5164   case $lt_cv_dlopen in 
    5165   dlopen) 
    5166     save_CPPFLAGS="$CPPFLAGS" 
    5167         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 
    5168  
    5169     save_LDFLAGS="$LDFLAGS" 
    5170     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 
    5171  
    5172     save_LIBS="$LIBS" 
    5173     LIBS="$lt_cv_dlopen_libs $LIBS" 
    5174  
    5175     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 
    5176 echo "configure:5177: checking whether a program can dlopen itself" >&5 
    5177 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 
    5178   echo $ac_n "(cached) $ac_c" 1>&6 
    5179 else 
    5180           if test "$cross_compiling" = yes; then : 
    5181   lt_cv_dlopen_self=cross 
    5182 else 
    5183     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 
    5184   lt_status=$lt_dlunknown 
    5185   cat > conftest.$ac_ext <<EOF 
    5186 #line 5187 "configure" 
    5187 #include "confdefs.h" 
    5188  
    5189 #if HAVE_DLFCN_H 
    5190 #include <dlfcn.h> 
    5191 #endif 
    5192  
    5193 #include <stdio.h> 
    5194  
    5195 #ifdef RTLD_GLOBAL 
    5196 #  define LT_DLGLOBAL           RTLD_GLOBAL 
    5197 #else 
    5198 #  ifdef DL_GLOBAL 
    5199 #    define LT_DLGLOBAL         DL_GLOBAL 
    5200 #  else 
    5201 #    define LT_DLGLOBAL         0 
    5202 #  endif 
    5203 #endif 
    5204  
    5205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 
    5206    find out it does not work in some platform. */ 
    5207 #ifndef LT_DLLAZY_OR_NOW 
    5208 #  ifdef RTLD_LAZY 
    5209 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY 
    5210 #  else 
    5211 #    ifdef DL_LAZY 
    5212 #      define LT_DLLAZY_OR_NOW          DL_LAZY 
    5213 #    else 
    5214 #      ifdef RTLD_NOW 
    5215 #        define LT_DLLAZY_OR_NOW        RTLD_NOW 
    5216 #      else 
    5217 #        ifdef DL_NOW 
    5218 #          define LT_DLLAZY_OR_NOW      DL_NOW 
    5219 #        else 
    5220 #          define LT_DLLAZY_OR_NOW      0 
    5221 #        endif 
    5222 #      endif 
    5223 #    endif 
    5224 #  endif 
    5225 #endif 
    5226  
    5227 #ifdef __cplusplus 
    5228 extern "C" void exit (int); 
    5229 #endif 
    5230  
    5231 void fnord() { int i=42;} 
    5232 int main () 
    5233 { 
    5234   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 
    5235   int status = $lt_dlunknown; 
    5236  
    5237   if (self) 
    5238     { 
    5239       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; 
    5240       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 
    5241       /* dlclose (self); */ 
    5242     } 
    5243  
    5244     exit (status); 
    5245 } 
    5246 EOF 
    5247   if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 
    5248     (./conftest; exit; ) 2>/dev/null 
    5249     lt_status=$? 
    5250     case x$lt_status in 
    5251       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 
    5252       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 
    5253       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 
    5254     esac 
    5255   else : 
    5256     # compilation failed 
    5257     lt_cv_dlopen_self=no 
    5258   fi 
    5259 fi 
    5260 rm -fr conftest* 
    5261  
    5262      
    5263 fi 
    5264  
    5265 echo "$ac_t""$lt_cv_dlopen_self" 1>&6 
    5266  
    5267     if test "x$lt_cv_dlopen_self" = xyes; then 
    5268       LDFLAGS="$LDFLAGS $link_static_flag" 
    5269       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 
    5270 echo "configure:5271: checking whether a statically linked program can dlopen itself" >&5 
    5271 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 
    5272   echo $ac_n "(cached) $ac_c" 1>&6 
    5273 else 
    5274           if test "$cross_compiling" = yes; then : 
    5275   lt_cv_dlopen_self_static=cross 
    5276 else 
    5277     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 
    5278   lt_status=$lt_dlunknown 
    5279   cat > conftest.$ac_ext <<EOF 
    5280 #line 5281 "configure" 
    5281 #include "confdefs.h" 
    5282  
    5283 #if HAVE_DLFCN_H 
    5284 #include <dlfcn.h> 
    5285 #endif 
    5286  
    5287 #include <stdio.h> 
    5288  
    5289 #ifdef RTLD_GLOBAL 
    5290 #  define LT_DLGLOBAL           RTLD_GLOBAL 
    5291 #else 
    5292 #  ifdef DL_GLOBAL 
    5293 #    define LT_DLGLOBAL         DL_GLOBAL 
    5294 #  else 
    5295 #    define LT_DLGLOBAL         0 
    5296 #  endif 
    5297 #endif 
    5298  
    5299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 
    5300    find out it does not work in some platform. */ 
    5301 #ifndef LT_DLLAZY_OR_NOW 
    5302 #  ifdef RTLD_LAZY 
    5303 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY 
    5304 #  else 
    5305 #    ifdef DL_LAZY 
    5306 #      define LT_DLLAZY_OR_NOW          DL_LAZY 
    5307 #    else 
    5308 #      ifdef RTLD_NOW 
    5309 #        define LT_DLLAZY_OR_NOW        RTLD_NOW 
    5310 #      else 
    5311 #        ifdef DL_NOW 
    5312 #          define LT_DLLAZY_OR_NOW      DL_NOW 
    5313 #        else 
    5314 #          define LT_DLLAZY_OR_NOW      0 
    5315 #        endif 
    5316 #      endif 
    5317 #    endif 
    5318 #  endif 
    5319 #endif 
    5320  
    5321 #ifdef __cplusplus 
    5322 extern "C" void exit (int); 
    5323 #endif 
    5324  
    5325 void fnord() { int i=42;} 
    5326 int main () 
    5327 { 
    5328   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 
    5329   int status = $lt_dlunknown; 
    5330  
    5331   if (self) 
    5332     { 
    5333       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; 
    5334       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 
    5335       /* dlclose (self); */ 
    5336     } 
    5337  
    5338     exit (status); 
    5339 } 
    5340 EOF 
    5341   if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 
    5342     (./conftest; exit; ) 2>/dev/null 
    5343     lt_status=$? 
    5344     case x$lt_status in 
    5345       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 
    5346       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 
    5347       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 
    5348     esac 
    5349   else : 
    5350     # compilation failed 
    5351     lt_cv_dlopen_self_static=no 
    5352   fi 
    5353 fi 
    5354 rm -fr conftest* 
    5355  
    5356        
    5357 fi 
    5358  
    5359 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 
    5360     fi 
    5361  
    5362     CPPFLAGS="$save_CPPFLAGS" 
    5363     LDFLAGS="$save_LDFLAGS" 
    5364     LIBS="$save_LIBS" 
    5365     ;; 
    5366   esac 
    5367  
    5368   case $lt_cv_dlopen_self in 
    5369   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 
    5370   *) enable_dlopen_self=unknown ;; 
    5371   esac 
    5372  
    5373   case $lt_cv_dlopen_self_static in 
    5374   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 
    5375   *) enable_dlopen_self_static=unknown ;; 
    5376   esac 
    5377 fi 
    5378  
    5379  
    5380 if test "$enable_shared" = yes && test "$GCC" = yes; then 
    5381   case $archive_cmds in 
    5382   *'~'*) 
    5383     # FIXME: we may have to deal with multi-command sequences. 
    5384     ;; 
    5385   '$CC '*) 
    5386     # Test whether the compiler implicitly links with -lc since on some 
    5387     # systems, -lgcc has to come before -lc. If gcc already passes -lc 
    5388     # to ld, don't add -lc before -lgcc. 
    5389     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 
    5390 echo "configure:5391: checking whether -lc should be explicitly linked in" >&5 
    5391     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 
    5392   echo $ac_n "(cached) $ac_c" 1>&6 
    5393 else 
    5394   $rm conftest* 
    5395     echo 'static int dummy;' > conftest.$ac_ext 
    5396  
    5397     if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    5398       soname=conftest 
    5399       lib=conftest 
    5400       libobjs=conftest.$ac_objext 
    5401       deplibs= 
    5402       wl=$lt_cv_prog_cc_wl 
    5403       compiler_flags=-v 
    5404       linker_flags=-v 
    5405       verstring= 
    5406       output_objdir=. 
    5407       libname=conftest 
    5408       save_allow_undefined_flag=$allow_undefined_flag 
    5409       allow_undefined_flag= 
    5410       if { (eval echo configure:5411: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 
    5411       then 
    5412         lt_cv_archive_cmds_need_lc=no 
    5413       else 
    5414         lt_cv_archive_cmds_need_lc=yes 
    5415       fi 
    5416       allow_undefined_flag=$save_allow_undefined_flag 
    5417     else 
    5418       cat conftest.err 1>&5 
    5419     fi 
    5420 fi 
    5421  
    5422     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 
    5423     ;; 
    5424   esac 
    5425 fi 
    5426 need_lc=${lt_cv_archive_cmds_need_lc-yes} 
    5427  
    5428 # The second clause should only fire when bootstrapping the 
    5429 # libtool distribution, otherwise you forgot to ship ltmain.sh 
    5430 # with your package, and you will get complaints that there are 
    5431 # no rules to generate ltmain.sh. 
    5432 if test -f "$ltmain"; then 
    5433   : 
    5434 else 
    5435   # If there is no Makefile yet, we rely on a make rule to execute 
    5436   # `config.status --recheck' to rerun these tests and create the 
    5437   # libtool script then. 
    5438   test -f Makefile && make "$ltmain" 
    5439 fi 
    5440  
    5441 if test -f "$ltmain"; then 
    5442   trap "$rm \"${ofile}T\"; exit 1" 1 2 15 
    5443   $rm -f "${ofile}T" 
    5444  
    5445   echo creating $ofile 
    5446  
    5447   # Now quote all the things that may contain metacharacters while being 
    5448   # careful not to overquote the AC_SUBSTed values.  We take copies of the 
    5449   # variables and quote the copies for generation of the libtool script. 
    5450   for var in echo old_CC old_CFLAGS \ 
    5451     AR AR_FLAGS CC LD LN_S NM SHELL \ 
    5452     reload_flag reload_cmds wl \ 
    5453     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 
    5454     thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 
    5455     library_names_spec soname_spec \ 
    5456     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 
    5457     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 
    5458     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 
    5459     old_striplib striplib file_magic_cmd export_symbols_cmds \ 
    5460     deplibs_check_method allow_undefined_flag no_undefined_flag \ 
    5461     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 
    5462     global_symbol_to_c_name_address \ 
    5463     hardcode_libdir_flag_spec hardcode_libdir_separator  \ 
    5464     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 
    5465     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 
    5466  
    5467     case $var in 
    5468     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 
    5469     old_postinstall_cmds | old_postuninstall_cmds | \ 
    5470     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 
    5471     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 
    5472     postinstall_cmds | postuninstall_cmds | \ 
    5473     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 
    5474       # Double-quote double-evaled strings. 
    5475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 
    5476       ;; 
    5477     *) 
    5478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 
    5479       ;; 
    5480     esac 
    5481   done 
    5482  
    5483   cat <<__EOF__ > "${ofile}T" 
    5484 #! $SHELL 
    5485  
    5486 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 
    5487 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 
    5488 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 
    5489 # 
    5490 # Copyright (C) 1996-2000 Free Software Foundation, Inc. 
    5491 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 
    5492 # 
    5493 # This program is free software; you can redistribute it and/or modify 
    5494 # it under the terms of the GNU General Public License as published by 
    5495 # the Free Software Foundation; either version 2 of the License, or 
    5496 # (at your option) any later version. 
    5497 # 
    5498 # This program is distributed in the hope that it will be useful, but 
    5499 # WITHOUT ANY WARRANTY; without even the implied warranty of 
    5500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
    5501 # General Public License for more details. 
    5502 # 
    5503 # You should have received a copy of the GNU General Public License 
    5504 # along with this program; if not, write to the Free Software 
    5505 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    5506 # 
    5507 # As a special exception to the GNU General Public License, if you 
    5508 # distribute this file as part of a program that contains a 
    5509 # configuration script generated by Autoconf, you may include it under 
    5510 # the same distribution terms that you use for the rest of that program. 
    5511  
    5512 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 
    5513 Xsed="sed -e s/^X//" 
    5514  
    5515 # The HP-UX ksh and POSIX shell print the target directory to stdout 
    5516 # if CDPATH is set. 
    5517 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 
    5518  
    5519 # ### BEGIN LIBTOOL CONFIG 
    5520  
    5521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 
    5522  
    5523 # Shell to use when invoking shell scripts. 
    5524 SHELL=$lt_SHELL 
    5525  
    5526 # Whether or not to build shared libraries. 
    5527 build_libtool_libs=$enable_shared 
    5528  
    5529 # Whether or not to build static libraries. 
    5530 build_old_libs=$enable_static 
    5531  
    5532 # Whether or not to add -lc for building shared libraries. 
    5533 build_libtool_need_lc=$need_lc 
    5534  
    5535 # Whether or not to optimize for fast installation. 
    5536 fast_install=$enable_fast_install 
    5537  
    5538 # The host system. 
    5539 host_alias=$host_alias 
    5540 host=$host 
    5541  
    5542 # An echo program that does not interpret backslashes. 
    5543 echo=$lt_echo 
    5544  
    5545 # The archiver. 
    5546 AR=$lt_AR 
    5547 AR_FLAGS=$lt_AR_FLAGS 
    5548  
    5549 # The default C compiler. 
    5550 CC=$lt_CC 
    5551  
    5552 # Is the compiler the GNU C compiler? 
    5553 with_gcc=$GCC 
    5554  
    5555 # The linker used to build libraries. 
    5556 LD=$lt_LD 
    5557  
    5558 # Whether we need hard or soft links. 
    5559 LN_S=$lt_LN_S 
    5560  
    5561 # A BSD-compatible nm program. 
    5562 NM=$lt_NM 
    5563  
    5564 # A symbol stripping program 
    5565 STRIP=$STRIP 
    5566  
    5567 # Used to examine libraries when file_magic_cmd begins "file" 
    5568 MAGIC_CMD=$MAGIC_CMD 
    5569  
    5570 # Used on cygwin: DLL creation program. 
    5571 DLLTOOL="$DLLTOOL" 
    5572  
    5573 # Used on cygwin: object dumper. 
    5574 OBJDUMP="$OBJDUMP" 
    5575  
    5576 # Used on cygwin: assembler. 
    5577 AS="$AS" 
    5578  
    5579 # The name of the directory that contains temporary libtool files. 
    5580 objdir=$objdir 
    5581  
    5582 # How to create reloadable object files. 
    5583 reload_flag=$lt_reload_flag 
    5584 reload_cmds=$lt_reload_cmds 
    5585  
    5586 # How to pass a linker flag through the compiler. 
    5587 wl=$lt_wl 
    5588  
    5589 # Object file suffix (normally "o"). 
    5590 objext="$ac_objext" 
    5591  
    5592 # Old archive suffix (normally "a"). 
    5593 libext="$libext" 
    5594  
    5595 # Executable file suffix (normally ""). 
    5596 exeext="$exeext" 
    5597  
    5598 # Additional compiler flags for building library objects. 
    5599 pic_flag=$lt_pic_flag 
    5600 pic_mode=$pic_mode 
    5601  
    5602 # Does compiler simultaneously support -c and -o options? 
    5603 compiler_c_o=$lt_compiler_c_o 
    5604  
    5605 # Can we write directly to a .lo ? 
    5606 compiler_o_lo=$lt_compiler_o_lo 
    5607  
    5608 # Must we lock files when doing compilation ? 
    5609 need_locks=$lt_need_locks 
    5610  
    5611 # Do we need the lib prefix for modules? 
    5612 need_lib_prefix=$need_lib_prefix 
    5613  
    5614 # Do we need a version for libraries? 
    5615 need_version=$need_version 
    5616  
    5617 # Whether dlopen is supported. 
    5618 dlopen_support=$enable_dlopen 
    5619  
    5620 # Whether dlopen of programs is supported. 
    5621 dlopen_self=$enable_dlopen_self 
    5622  
    5623 # Whether dlopen of statically linked programs is supported. 
    5624 dlopen_self_static=$enable_dlopen_self_static 
    5625  
    5626 # Compiler flag to prevent dynamic linking. 
    5627 link_static_flag=$lt_link_static_flag 
    5628  
    5629 # Compiler flag to turn off builtin functions. 
    5630 no_builtin_flag=$lt_no_builtin_flag 
    5631  
    5632 # Compiler flag to allow reflexive dlopens. 
    5633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 
    5634  
    5635 # Compiler flag to generate shared objects directly from archives. 
    5636 whole_archive_flag_spec=$lt_whole_archive_flag_spec 
    5637  
    5638 # Compiler flag to generate thread-safe objects. 
    5639 thread_safe_flag_spec=$lt_thread_safe_flag_spec 
    5640  
    5641 # Library versioning type. 
    5642 version_type=$version_type 
    5643  
    5644 # Format of library name prefix. 
    5645 libname_spec=$lt_libname_spec 
    5646  
    5647 # List of archive names.  First name is the real one, the rest are links. 
    5648 # The last name is the one that the linker finds with -lNAME. 
    5649 library_names_spec=$lt_library_names_spec 
    5650  
    5651 # The coded name of the library, if different from the real name. 
    5652 soname_spec=$lt_soname_spec 
    5653  
    5654 # Commands used to build and install an old-style archive. 
    5655 RANLIB=$lt_RANLIB 
    5656 old_archive_cmds=$lt_old_archive_cmds 
    5657 old_postinstall_cmds=$lt_old_postinstall_cmds 
    5658 old_postuninstall_cmds=$lt_old_postuninstall_cmds 
    5659  
    5660 # Create an old-style archive from a shared archive. 
    5661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 
    5662  
    5663 # Create a temporary old-style archive to link instead of a shared archive. 
    5664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 
    5665  
    5666 # Commands used to build and install a shared archive. 
    5667 archive_cmds=$lt_archive_cmds 
    5668 archive_expsym_cmds=$lt_archive_expsym_cmds 
    5669 postinstall_cmds=$lt_postinstall_cmds 
    5670 postuninstall_cmds=$lt_postuninstall_cmds 
    5671  
    5672 # Commands to strip libraries. 
    5673 old_striplib=$lt_old_striplib 
    5674 striplib=$lt_striplib 
    5675  
    5676 # Method to check whether dependent libraries are shared objects. 
    5677 deplibs_check_method=$lt_deplibs_check_method 
    5678  
    5679 # Command to use when deplibs_check_method == file_magic. 
    5680 file_magic_cmd=$lt_file_magic_cmd 
    5681  
    5682 # Flag that allows shared libraries with undefined symbols to be built. 
    5683 allow_undefined_flag=$lt_allow_undefined_flag 
    5684  
    5685 # Flag that forces no undefined symbols. 
    5686 no_undefined_flag=$lt_no_undefined_flag 
    5687  
    5688 # Commands used to finish a libtool library installation in a directory. 
    5689 finish_cmds=$lt_finish_cmds 
    5690  
    5691 # Same as above, but a single script fragment to be evaled but not shown. 
    5692 finish_eval=$lt_finish_eval 
    5693  
    5694 # Take the output of nm and produce a listing of raw symbols and C names. 
    5695 global_symbol_pipe=$lt_global_symbol_pipe 
    5696  
    5697 # Transform the output of nm in a proper C declaration 
    5698 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 
    5699  
    5700 # Transform the output of nm in a C name address pair 
    5701 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 
    5702  
    5703 # This is the shared library runtime path variable. 
    5704 runpath_var=$runpath_var 
    5705  
    5706 # This is the shared library path variable. 
    5707 shlibpath_var=$shlibpath_var 
    5708  
    5709 # Is shlibpath searched before the hard-coded library search path? 
    5710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 
    5711  
    5712 # How to hardcode a shared library path into an executable. 
    5713 hardcode_action=$hardcode_action 
    5714  
    5715 # Whether we should hardcode library paths into libraries. 
    5716 hardcode_into_libs=$hardcode_into_libs 
    5717  
    5718 # Flag to hardcode \$libdir into a binary during linking. 
    5719 # This must work even if \$libdir does not exist. 
    5720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 
    5721  
    5722 # Whether we need a single -rpath flag with a separated argument. 
    5723 hardcode_libdir_separator=$lt_hardcode_libdir_separator 
    5724  
    5725 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 
    5726 # resulting binary. 
    5727 hardcode_direct=$hardcode_direct 
    5728  
    5729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 
    5730 # resulting binary. 
    5731 hardcode_minus_L=$hardcode_minus_L 
    5732  
    5733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 
    5734 # the resulting binary. 
    5735 hardcode_shlibpath_var=$hardcode_shlibpath_var 
    5736  
    5737 # Variables whose values should be saved in libtool wrapper scripts and 
    5738 # restored at relink time. 
    5739 variables_saved_for_relink="$variables_saved_for_relink" 
    5740  
    5741 # Whether libtool must link a program against all its dependency libraries. 
    5742 link_all_deplibs=$link_all_deplibs 
    5743  
    5744 # Compile-time system search path for libraries 
    5745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 
    5746  
    5747 # Run-time system search path for libraries 
    5748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 
    5749  
    5750 # Fix the shell variable \$srcfile for the compiler. 
    5751 fix_srcfile_path="$fix_srcfile_path" 
    5752  
    5753 # Set to yes if exported symbols are required. 
    5754 always_export_symbols=$always_export_symbols 
    5755  
    5756 # The commands to list exported symbols. 
    5757 export_symbols_cmds=$lt_export_symbols_cmds 
    5758  
    5759 # The commands to extract the exported symbol list from a shared archive. 
    5760 extract_expsyms_cmds=$lt_extract_expsyms_cmds 
    5761  
    5762 # Symbols that should not be listed in the preloaded symbols. 
    5763 exclude_expsyms=$lt_exclude_expsyms 
    5764  
    5765 # Symbols that must always be exported. 
    5766 include_expsyms=$lt_include_expsyms 
    5767  
    5768 # ### END LIBTOOL CONFIG 
    5769  
    5770 __EOF__ 
    5771  
    5772   case $host_os in 
    5773   aix3*) 
    5774     cat <<\EOF >> "${ofile}T" 
    5775  
    5776 # AIX sometimes has problems with the GCC collect2 program.  For some 
    5777 # reason, if we set the COLLECT_NAMES environment variable, the problems 
    5778 # vanish in a puff of smoke. 
    5779 if test "X${COLLECT_NAMES+set}" != Xset; then 
    5780   COLLECT_NAMES= 
    5781   export COLLECT_NAMES 
    5782 fi 
    5783 EOF 
    5784     ;; 
    5785   esac 
    5786  
    5787   case $host_os in 
    5788   cygwin* | mingw* | pw32* | os2*) 
    5789     cat <<'EOF' >> "${ofile}T" 
    5790       # This is a source program that is used to create dlls on Windows 
    5791       # Don't remove nor modify the starting and closing comments 
    5792 # /* ltdll.c starts here */ 
    5793 # #define WIN32_LEAN_AND_MEAN 
    5794 # #include <windows.h> 
    5795 # #undef WIN32_LEAN_AND_MEAN 
    5796 # #include <stdio.h> 
    5797 # 
    5798 # #ifndef __CYGWIN__ 
    5799 # #  ifdef __CYGWIN32__ 
    5800 # #    define __CYGWIN__ __CYGWIN32__ 
    5801 # #  endif 
    5802 # #endif 
    5803 # 
    5804 # #ifdef __cplusplus 
    5805 # extern "C" { 
    5806 # #endif 
    5807 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 
    5808 # #ifdef __cplusplus 
    5809 # } 
    5810 # #endif 
    5811 # 
    5812 # #ifdef __CYGWIN__ 
    5813 # #include <cygwin/cygwin_dll.h> 
    5814 # DECLARE_CYGWIN_DLL( DllMain ); 
    5815 # #endif 
    5816 # HINSTANCE __hDllInstance_base; 
    5817 # 
    5818 # BOOL APIENTRY 
    5819 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 
    5820 # { 
    5821 #   __hDllInstance_base = hInst; 
    5822 #   return TRUE; 
    5823 # } 
    5824 # /* ltdll.c ends here */ 
    5825         # This is a source program that is used to create import libraries 
    5826         # on Windows for dlls which lack them. Don't remove nor modify the 
    5827         # starting and closing comments 
    5828 # /* impgen.c starts here */ 
    5829 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc. 
    5830 # 
    5831 #  This file is part of GNU libtool. 
    5832 # 
    5833 #  This program is free software; you can redistribute it and/or modify 
    5834 #  it under the terms of the GNU General Public License as published by 
    5835 #  the Free Software Foundation; either version 2 of the License, or 
    5836 #  (at your option) any later version. 
    5837 # 
    5838 #  This program is distributed in the hope that it will be useful, 
    5839 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
    5840 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    5841 #  GNU General Public License for more details. 
    5842 # 
    5843 #  You should have received a copy of the GNU General Public License 
    5844 #  along with this program; if not, write to the Free Software 
    5845 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    5846 #  */ 
    5847 # 
    5848 # #include <stdio.h>            /* for printf() */ 
    5849 # #include <unistd.h>           /* for open(), lseek(), read() */ 
    5850 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */ 
    5851 # #include <string.h>           /* for strdup() */ 
    5852 # 
    5853 # /* O_BINARY isn't required (or even defined sometimes) under Unix */ 
    5854 # #ifndef O_BINARY 
    5855 # #define O_BINARY 0 
    5856 # #endif 
    5857 # 
    5858 # static unsigned int 
    5859 # pe_get16 (fd, offset) 
    5860 #      int fd; 
    5861 #      int offset; 
    5862 # { 
    5863 #   unsigned char b[2]; 
    5864 #   lseek (fd, offset, SEEK_SET); 
    5865 #   read (fd, b, 2); 
    5866 #   return b[0] + (b[1]<<8); 
    5867 # } 
    5868 # 
    5869 # static unsigned int 
    5870 # pe_get32 (fd, offset) 
    5871 #     int fd; 
    5872 #     int offset; 
    5873 # { 
    5874 #   unsigned char b[4]; 
    5875 #   lseek (fd, offset, SEEK_SET); 
    5876 #   read (fd, b, 4); 
    5877 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 
    5878 # } 
    5879 # 
    5880 # static unsigned int 
    5881 # pe_as32 (ptr) 
    5882 #      void *ptr; 
    5883 # { 
    5884 #   unsigned char *b = ptr; 
    5885 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 
    5886 # } 
    5887 # 
    5888 # int 
    5889 # main (argc, argv) 
    5890 #     int argc; 
    5891 #     char *argv[]; 
    5892 # { 
    5893 #     int dll; 
    5894 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 
    5895 #     unsigned long export_rva, export_size, nsections, secptr, expptr; 
    5896 #     unsigned long name_rvas, nexp; 
    5897 #     unsigned char *expdata, *erva; 
    5898 #     char *filename, *dll_name; 
    5899 # 
    5900 #     filename = argv[1]; 
    5901 # 
    5902 #     dll = open(filename, O_RDONLY|O_BINARY); 
    5903 #     if (dll < 1) 
    5904 #       return 1; 
    5905 # 
    5906 #     dll_name = filename; 
    5907 # 
    5908 #     for (i=0; filename[i]; i++) 
    5909 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':') 
    5910 #           dll_name = filename + i +1; 
    5911 # 
    5912 #     pe_header_offset = pe_get32 (dll, 0x3c); 
    5913 #     opthdr_ofs = pe_header_offset + 4 + 20; 
    5914 #     num_entries = pe_get32 (dll, opthdr_ofs + 92); 
    5915 # 
    5916 #     if (num_entries < 1) /* no exports */ 
    5917 #       return 1; 
    5918 # 
    5919 #     export_rva = pe_get32 (dll, opthdr_ofs + 96); 
    5920 #     export_size = pe_get32 (dll, opthdr_ofs + 100); 
    5921 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2); 
    5922 #     secptr = (pe_header_offset + 4 + 20 + 
    5923 #             pe_get16 (dll, pe_header_offset + 4 + 16)); 
    5924 # 
    5925 #     expptr = 0; 
    5926 #     for (i = 0; i < nsections; i++) 
    5927 #     { 
    5928 #       char sname[8]; 
    5929 #       unsigned long secptr1 = secptr + 40 * i; 
    5930 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 
    5931 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16); 
    5932 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20); 
    5933 #       lseek(dll, secptr1, SEEK_SET); 
    5934 #       read(dll, sname, 8); 
    5935 #       if (vaddr <= export_rva && vaddr+vsize > export_rva) 
    5936 #       { 
    5937 #           expptr = fptr + (export_rva - vaddr); 
    5938 #           if (export_rva + export_size > vaddr + vsize) 
    5939 #               export_size = vsize - (export_rva - vaddr); 
    5940 #           break; 
    5941 #       } 
    5942 #     } 
    5943 # 
    5944 #     expdata = (unsigned char*)malloc(export_size); 
    5945 #     lseek (dll, expptr, SEEK_SET); 
    5946 #     read (dll, expdata, export_size); 
    5947 #     erva = expdata - export_rva; 
    5948 # 
    5949 #     nexp = pe_as32 (expdata+24); 
    5950 #     name_rvas = pe_as32 (expdata+32); 
    5951 # 
    5952 #     printf ("EXPORTS\n"); 
    5953 #     for (i = 0; i<nexp; i++) 
    5954 #     { 
    5955 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 
    5956 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 
    5957 #     } 
    5958 # 
    5959 #     return 0; 
    5960 # } 
    5961 # /* impgen.c ends here */ 
    5962  
    5963 EOF 
    5964     ;; 
    5965   esac 
    5966  
    5967   # We use sed instead of cat because bash on DJGPP gets confused if 
    5968   # if finds mixed CR/LF and LF-only lines.  Since sed operates in 
    5969   # text mode, it properly converts lines to CR/LF.  This bash problem 
    5970   # is reportedly fixed, but why not run on old versions too? 
    5971   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 
    5972  
    5973   mv -f "${ofile}T" "$ofile" || \ 
    5974     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 
    5975   chmod +x "$ofile" 
    5976 fi 
    5977  
    5978  
    5979  
    5980  
    5981  
    5982 # This can be used to rebuild libtool when needed 
    5983 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 
    5984  
    5985 # Always use our own libtool. 
    5986 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 
    5987  
    5988 # Prevent multiple expansion 
    5989  
    5990   
    5991 ac_ext=C 
    5992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    5993 ac_cpp='$CXXCPP $CPPFLAGS' 
    5994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    5995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    5996 cross_compiling=$ac_cv_prog_cxx_cross 
    5997  
    5998  
    5999  
    6000 #dnl Replace `main' with a function in -ldl: 
    6001 #AC_CHECK_LIB(dl, main) 
    6002 #dnl Replace `main' with a function in -lpthread: 
    6003 #AC_CHECK_LIB(pthread, main) 
    6004  
    6005 #CPPFLAGS="$CPPFLAGS -I/usr/include/postgresql" 
    6006 #LDFLAGS="$LDFLAGS -L/usr/local/lib" 
    6007  
    6008 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6 
    6009 echo "configure:6010: checking for getopt_long in -lgnugetopt" >&5 
    6010 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'` 
    6011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    6012   echo $ac_n "(cached) $ac_c" 1>&6 
    6013 else 
    6014   ac_save_LIBS="$LIBS" 
    6015 LIBS="-lgnugetopt  $LIBS" 
    6016 cat > conftest.$ac_ext <<EOF 
    6017 #line 6018 "configure" 
    6018 #include "confdefs.h" 
    6019 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6020 #ifdef __cplusplus 
    6021 extern "C" 
    6022 #endif 
    6023 /* We use char because int might match the return type of a gcc2 
    6024     builtin and then its argument prototype would still apply.  */ 
    6025 char getopt_long(); 
    6026  
    6027 int main() { 
    6028 getopt_long() 
    6029 ; return 0; } 
    6030 EOF 
    6031 if { (eval echo configure:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6032   rm -rf conftest* 
    6033   eval "ac_cv_lib_$ac_lib_var=yes" 
    6034 else 
    6035   echo "configure: failed program was:" >&5 
    6036   cat conftest.$ac_ext >&5 
    6037   rm -rf conftest* 
    6038   eval "ac_cv_lib_$ac_lib_var=no" 
    6039 fi 
    6040 rm -f conftest* 
    6041 LIBS="$ac_save_LIBS" 
    6042  
    6043 fi 
    6044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    6045   echo "$ac_t""yes" 1>&6 
    6046   LIBS="$LIBS -lgnugetopt" 
    6047 else 
    6048   echo "$ac_t""no" 1>&6 
    6049 fi 
    6050  
    6051  
    6052 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 
    6053 echo "configure:6054: checking how to run the C++ preprocessor" >&5 
    6054 if test -z "$CXXCPP"; then 
    6055 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 
    6056   echo $ac_n "(cached) $ac_c" 1>&6 
    6057 else 
    6058   ac_ext=C 
    6059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    6060 ac_cpp='$CXXCPP $CPPFLAGS' 
    6061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    6062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    6063 cross_compiling=$ac_cv_prog_cxx_cross 
    6064   CXXCPP="${CXX-g++} -E" 
    6065   cat > conftest.$ac_ext <<EOF 
    6066 #line 6067 "configure" 
    6067 #include "confdefs.h" 
    6068 #include <stdlib.h> 
    6069 EOF 
    6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    6073 if test -z "$ac_err"; then 
    6074   : 
    6075 else 
    6076   echo "$ac_err" >&5 
    6077   echo "configure: failed program was:" >&5 
    6078   cat conftest.$ac_ext >&5 
    6079   rm -rf conftest* 
    6080   CXXCPP=/lib/cpp 
    6081 fi 
    6082 rm -f conftest* 
    6083   ac_cv_prog_CXXCPP="$CXXCPP" 
    6084 ac_ext=C 
    6085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
    6086 ac_cpp='$CXXCPP $CPPFLAGS' 
    6087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
    6088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
    6089 cross_compiling=$ac_cv_prog_cxx_cross 
    6090 fi 
    6091 fi 
    6092 CXXCPP="$ac_cv_prog_CXXCPP" 
    6093 echo "$ac_t""$CXXCPP" 1>&6 
    6094  
    6095 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 
    6096 echo "configure:6097: checking for ANSI C header files" >&5 
    6097 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 
    6098   echo $ac_n "(cached) $ac_c" 1>&6 
    6099 else 
    6100   cat > conftest.$ac_ext <<EOF 
    6101 #line 6102 "configure" 
    6102 #include "confdefs.h" 
    6103 #include <stdlib.h> 
    6104 #include <stdarg.h> 
    6105 #include <string.h> 
    6106 #include <float.h> 
    6107 EOF 
    6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    6111 if test -z "$ac_err"; then 
    6112   rm -rf conftest* 
    6113   ac_cv_header_stdc=yes 
    6114 else 
    6115   echo "$ac_err" >&5 
    6116   echo "configure: failed program was:" >&5 
    6117   cat conftest.$ac_ext >&5 
    6118   rm -rf conftest* 
    6119   ac_cv_header_stdc=no 
    6120 fi 
    6121 rm -f conftest* 
    6122  
    6123 if test $ac_cv_header_stdc = yes; then 
    6124   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 
    6125 cat > conftest.$ac_ext <<EOF 
    6126 #line 6127 "configure" 
    6127 #include "confdefs.h" 
    6128 #include <string.h> 
    6129 EOF 
    6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
    6131   egrep "memchr" >/dev/null 2>&1; then 
    6132   : 
    6133 else 
    6134   rm -rf conftest* 
    6135   ac_cv_header_stdc=no 
    6136 fi 
    6137 rm -f conftest* 
    6138  
    6139 fi 
    6140  
    6141 if test $ac_cv_header_stdc = yes; then 
    6142   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 
    6143 cat > conftest.$ac_ext <<EOF 
    6144 #line 6145 "configure" 
    6145 #include "confdefs.h" 
    6146 #include <stdlib.h> 
    6147 EOF 
    6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
    6149   egrep "free" >/dev/null 2>&1; then 
    6150   : 
    6151 else 
    6152   rm -rf conftest* 
    6153   ac_cv_header_stdc=no 
    6154 fi 
    6155 rm -f conftest* 
    6156  
    6157 fi 
    6158  
    6159 if test $ac_cv_header_stdc = yes; then 
    6160   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 
    6161 if test "$cross_compiling" = yes; then 
    6162   : 
    6163 else 
    6164   cat > conftest.$ac_ext <<EOF 
    6165 #line 6166 "configure" 
    6166 #include "confdefs.h" 
    6167 #ifdef __cplusplus 
    6168 extern "C" void exit(int); 
    6169 #endif 
    6170 #include <ctype.h> 
    6171 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 
    6172 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 
    6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 
    6174 int main () { int i; for (i = 0; i < 256; i++) 
    6175 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 
    6176 exit (0); } 
    6177  
    6178 EOF 
    6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    6180 then 
    6181   : 
    6182 else 
    6183   echo "configure: failed program was:" >&5 
    6184   cat conftest.$ac_ext >&5 
    6185   rm -fr conftest* 
    6186   ac_cv_header_stdc=no 
    6187 fi 
    6188 rm -fr conftest* 
    6189 fi 
    6190  
    6191 fi 
    6192 fi 
    6193  
    6194 echo "$ac_t""$ac_cv_header_stdc" 1>&6 
    6195 if test $ac_cv_header_stdc = yes; then 
    6196   cat >> confdefs.h <<\EOF 
    6197 #define STDC_HEADERS 1 
    6198 EOF 
    6199  
    6200 fi 
    6201  
    6202 for ac_hdr in fcntl.h getopt.h limits.h strings.h sys/time.h syslog.h unistd.h 
    6203 do 
    6204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    6205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6206 echo "configure:6207: checking for $ac_hdr" >&5 
    6207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    6208   echo $ac_n "(cached) $ac_c" 1>&6 
    6209 else 
    6210   cat > conftest.$ac_ext <<EOF 
    6211 #line 6212 "configure" 
    6212 #include "confdefs.h" 
    6213 #include <$ac_hdr> 
    6214 EOF 
    6215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6216 { (eval echo configure:6217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    6217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    6218 if test -z "$ac_err"; then 
    6219   rm -rf conftest* 
    6220   eval "ac_cv_header_$ac_safe=yes" 
    6221 else 
    6222   echo "$ac_err" >&5 
    6223   echo "configure: failed program was:" >&5 
    6224   cat conftest.$ac_ext >&5 
    6225   rm -rf conftest* 
    6226   eval "ac_cv_header_$ac_safe=no" 
    6227 fi 
    6228 rm -f conftest* 
    6229 fi 
    6230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 
    6231   echo "$ac_t""yes" 1>&6 
    6232     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 
    6233   cat >> confdefs.h <<EOF 
    6234 #define $ac_tr_hdr 1 
    6235 EOF 
    6236   
    6237 else 
    6238   echo "$ac_t""no" 1>&6 
    6239 fi 
    6240 done 
    6241  
    6242  
    6243 echo $ac_n "checking for size_t""... $ac_c" 1>&6 
    6244 echo "configure:6245: checking for size_t" >&5 
    6245 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 
    6246   echo $ac_n "(cached) $ac_c" 1>&6 
    6247 else 
    6248   cat > conftest.$ac_ext <<EOF 
    6249 #line 6250 "configure" 
    6250 #include "confdefs.h" 
    6251 #include <sys/types.h> 
    6252 #if STDC_HEADERS 
    6253 #include <stdlib.h> 
    6254 #include <stddef.h> 
    6255 #endif 
    6256 EOF 
    6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
    6258   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 
    6259   rm -rf conftest* 
    6260   ac_cv_type_size_t=yes 
    6261 else 
    6262   rm -rf conftest* 
    6263   ac_cv_type_size_t=no 
    6264 fi 
    6265 rm -f conftest* 
    6266  
    6267 fi 
    6268 echo "$ac_t""$ac_cv_type_size_t" 1>&6 
    6269 if test $ac_cv_type_size_t = no; then 
    6270   cat >> confdefs.h <<\EOF 
    6271 #define size_t unsigned 
    6272 EOF 
    6273  
    6274 fi 
    6275  
    6276 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 
    6277 echo "configure:6278: checking whether time.h and sys/time.h may both be included" >&5 
    6278 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 
    6279   echo $ac_n "(cached) $ac_c" 1>&6 
    6280 else 
    6281   cat > conftest.$ac_ext <<EOF 
    6282 #line 6283 "configure" 
    6283 #include "confdefs.h" 
    6284 #include <sys/types.h> 
    6285 #include <sys/time.h> 
    6286 #include <time.h> 
    6287 int main() { 
    6288 struct tm *tp; 
    6289 ; return 0; } 
    6290 EOF 
    6291 if { (eval echo configure:6292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    6292   rm -rf conftest* 
    6293   ac_cv_header_time=yes 
    6294 else 
    6295   echo "configure: failed program was:" >&5 
    6296   cat conftest.$ac_ext >&5 
    6297   rm -rf conftest* 
    6298   ac_cv_header_time=no 
    6299 fi 
    6300 rm -f conftest* 
    6301 fi 
    6302  
    6303 echo "$ac_t""$ac_cv_header_time" 1>&6 
    6304 if test $ac_cv_header_time = yes; then 
    6305   cat >> confdefs.h <<\EOF 
    6306 #define TIME_WITH_SYS_TIME 1 
    6307 EOF 
    6308  
    6309 fi 
    6310  
    6311 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 
    6312 echo "configure:6313: checking whether struct tm is in sys/time.h or time.h" >&5 
    6313 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 
    6314   echo $ac_n "(cached) $ac_c" 1>&6 
    6315 else 
    6316   cat > conftest.$ac_ext <<EOF 
    6317 #line 6318 "configure" 
    6318 #include "confdefs.h" 
    6319 #include <sys/types.h> 
    6320 #include <time.h> 
    6321 int main() { 
    6322 struct tm *tp; tp->tm_sec; 
    6323 ; return 0; } 
    6324 EOF 
    6325 if { (eval echo configure:6326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    6326   rm -rf conftest* 
    6327   ac_cv_struct_tm=time.h 
    6328 else 
    6329   echo "configure: failed program was:" >&5 
    6330   cat conftest.$ac_ext >&5 
    6331   rm -rf conftest* 
    6332   ac_cv_struct_tm=sys/time.h 
    6333 fi 
    6334 rm -f conftest* 
    6335 fi 
    6336  
    6337 echo "$ac_t""$ac_cv_struct_tm" 1>&6 
    6338 if test $ac_cv_struct_tm = sys/time.h; then 
    6339   cat >> confdefs.h <<\EOF 
    6340 #define TM_IN_SYS_TIME 1 
    6341 EOF 
    6342  
    6343 fi 
    6344  
    6345  
    6346 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 
    6347 echo "configure:6348: checking whether setvbuf arguments are reversed" >&5 
    6348 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then 
    6349   echo $ac_n "(cached) $ac_c" 1>&6 
    6350 else 
    6351   if test "$cross_compiling" = yes; then 
    6352     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 
    6353 else 
    6354   cat > conftest.$ac_ext <<EOF 
    6355 #line 6356 "configure" 
    6356 #include "confdefs.h" 
    6357 #ifdef __cplusplus 
    6358 extern "C" void exit(int); 
    6359 #endif 
    6360 #include <stdio.h> 
    6361 /* If setvbuf has the reversed format, exit 0. */ 
    6362 main () { 
    6363   /* This call has the arguments reversed. 
    6364      A reversed system may check and see that the address of main 
    6365      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */ 
    6366   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 
    6367     exit(1); 
    6368   putc('\r', stdout); 
    6369   exit(0);                      /* Non-reversed systems segv here.  */ 
    6370 } 
    6371 EOF 
    6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    6373 then 
    6374   ac_cv_func_setvbuf_reversed=yes 
    6375 else 
    6376   echo "configure: failed program was:" >&5 
    6377   cat conftest.$ac_ext >&5 
    6378   rm -fr conftest* 
    6379   ac_cv_func_setvbuf_reversed=no 
    6380 fi 
    6381 rm -fr conftest* 
    6382 fi 
    6383  
    6384 rm -f core core.* *.core 
    6385 fi 
    6386  
    6387 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 
    6388 if test $ac_cv_func_setvbuf_reversed = yes; then 
    6389   cat >> confdefs.h <<\EOF 
    6390 #define SETVBUF_REVERSED 1 
    6391 EOF 
    6392  
    6393 fi 
    6394  
    6395 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 
    6396 echo "configure:6397: checking return type of signal handlers" >&5 
    6397 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 
    6398   echo $ac_n "(cached) $ac_c" 1>&6 
    6399 else 
    6400   cat > conftest.$ac_ext <<EOF 
    6401 #line 6402 "configure" 
    6402 #include "confdefs.h" 
    6403 #include <sys/types.h> 
    6404 #include <signal.h> 
    6405 #ifdef signal 
    6406 #undef signal 
    6407 #endif 
    6408 #ifdef __cplusplus 
    6409 extern "C" void (*signal (int, void (*)(int)))(int); 
    6410 #else 
    6411 void (*signal ()) (); 
    6412 #endif 
    6413  
    6414 int main() { 
    6415 int i; 
    6416 ; return 0; } 
    6417 EOF 
    6418 if { (eval echo configure:6419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    6419   rm -rf conftest* 
    6420   ac_cv_type_signal=void 
    6421 else 
    6422   echo "configure: failed program was:" >&5 
    6423   cat conftest.$ac_ext >&5 
    6424   rm -rf conftest* 
    6425   ac_cv_type_signal=int 
    6426 fi 
    6427 rm -f conftest* 
    6428 fi 
    6429  
    6430 echo "$ac_t""$ac_cv_type_signal" 1>&6 
    6431 cat >> confdefs.h <<EOF 
    6432 #define RETSIGTYPE $ac_cv_type_signal 
    6433 EOF 
    6434  
    6435  
    6436 echo $ac_n "checking for strftime""... $ac_c" 1>&6 
    6437 echo "configure:6438: checking for strftime" >&5 
    6438 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 
    6439   echo $ac_n "(cached) $ac_c" 1>&6 
    6440 else 
    6441   cat > conftest.$ac_ext <<EOF 
    6442 #line 6443 "configure" 
    6443 #include "confdefs.h" 
    6444 /* System header to define __stub macros and hopefully few prototypes, 
    6445     which can conflict with char strftime(); below.  */ 
    6446 #include <assert.h> 
    6447 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6448 #ifdef __cplusplus 
    6449 extern "C" 
    6450 #endif 
    6451 /* We use char because int might match the return type of a gcc2 
    6452     builtin and then its argument prototype would still apply.  */ 
    6453 char strftime(); 
    6454  
    6455 int main() { 
    6456  
    6457 /* The GNU C library defines this for functions which it implements 
    6458     to always fail with ENOSYS.  Some functions are actually named 
    6459     something starting with __ and the normal name is an alias.  */ 
    6460 #if defined (__stub_strftime) || defined (__stub___strftime) 
    6461 choke me 
    6462 #else 
    6463 strftime(); 
    6464 #endif 
    6465  
    6466 ; return 0; } 
    6467 EOF 
    6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6469   rm -rf conftest* 
    6470   eval "ac_cv_func_strftime=yes" 
    6471 else 
    6472   echo "configure: failed program was:" >&5 
    6473   cat conftest.$ac_ext >&5 
    6474   rm -rf conftest* 
    6475   eval "ac_cv_func_strftime=no" 
    6476 fi 
    6477 rm -f conftest* 
    6478 fi 
    6479  
    6480 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then 
    6481   echo "$ac_t""yes" 1>&6 
    6482   cat >> confdefs.h <<\EOF 
    6483 #define HAVE_STRFTIME 1 
    6484 EOF 
    6485  
    6486 else 
    6487   echo "$ac_t""no" 1>&6 
    6488 # strftime is in -lintl on SCO UNIX. 
    6489 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 
    6490 echo "configure:6491: checking for strftime in -lintl" >&5 
    6491 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 
    6492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    6493   echo $ac_n "(cached) $ac_c" 1>&6 
    6494 else 
    6495   ac_save_LIBS="$LIBS" 
    6496 LIBS="-lintl  $LIBS" 
    6497 cat > conftest.$ac_ext <<EOF 
    6498 #line 6499 "configure" 
    6499 #include "confdefs.h" 
    6500 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6501 #ifdef __cplusplus 
    6502 extern "C" 
    6503 #endif 
    6504 /* We use char because int might match the return type of a gcc2 
    6505     builtin and then its argument prototype would still apply.  */ 
    6506 char strftime(); 
    6507  
    6508 int main() { 
    6509 strftime() 
    6510 ; return 0; } 
    6511 EOF 
    6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6513   rm -rf conftest* 
    6514   eval "ac_cv_lib_$ac_lib_var=yes" 
    6515 else 
    6516   echo "configure: failed program was:" >&5 
    6517   cat conftest.$ac_ext >&5 
    6518   rm -rf conftest* 
    6519   eval "ac_cv_lib_$ac_lib_var=no" 
    6520 fi 
    6521 rm -f conftest* 
    6522 LIBS="$ac_save_LIBS" 
    6523  
    6524 fi 
    6525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    6526   echo "$ac_t""yes" 1>&6 
    6527   cat >> confdefs.h <<\EOF 
    6528 #define HAVE_STRFTIME 1 
    6529 EOF 
    6530  
    6531 LIBS="-lintl $LIBS" 
    6532 else 
    6533   echo "$ac_t""no" 1>&6 
    6534 fi 
    6535  
    6536 fi 
    6537  
    6538 for ac_func in gethostname gettimeofday mkdir mktime select socket strerror 
    6539 do 
    6540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    6541 echo "configure:6542: checking for $ac_func" >&5 
    6542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    6543   echo $ac_n "(cached) $ac_c" 1>&6 
    6544 else 
    6545   cat > conftest.$ac_ext <<EOF 
    6546 #line 6547 "configure" 
    6547 #include "confdefs.h" 
    6548 /* System header to define __stub macros and hopefully few prototypes, 
    6549     which can conflict with char $ac_func(); below.  */ 
    6550 #include <assert.h> 
    6551 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6552 #ifdef __cplusplus 
    6553 extern "C" 
    6554 #endif 
    6555 /* We use char because int might match the return type of a gcc2 
    6556     builtin and then its argument prototype would still apply.  */ 
    6557 char $ac_func(); 
    6558  
    6559 int main() { 
    6560  
    6561 /* The GNU C library defines this for functions which it implements 
    6562     to always fail with ENOSYS.  Some functions are actually named 
    6563     something starting with __ and the normal name is an alias.  */ 
    6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 
    6565 choke me 
    6566 #else 
    6567 $ac_func(); 
    6568 #endif 
    6569  
    6570 ; return 0; } 
    6571 EOF 
    6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6573   rm -rf conftest* 
    6574   eval "ac_cv_func_$ac_func=yes" 
    6575 else 
    6576   echo "configure: failed program was:" >&5 
    6577   cat conftest.$ac_ext >&5 
    6578   rm -rf conftest* 
    6579   eval "ac_cv_func_$ac_func=no" 
    6580 fi 
    6581 rm -f conftest* 
    6582 fi 
    6583  
    6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 
    6585   echo "$ac_t""yes" 1>&6 
    6586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 
    6587   cat >> confdefs.h <<EOF 
    6588 #define $ac_tr_func 1 
    6589 EOF 
    6590   
    6591 else 
    6592   echo "$ac_t""no" 1>&6 
    6593 fi 
    6594 done 
    6595  
    6596  
    6597  
    6598  
    6599 # # 
    6600 # # Check if we have libresolv. XXX If we do not have libresolv then we 
    6601 # # cannot build the 'resolver'. Is it possible to remove that target 
    6602 # # conditionally? 
    6603 # # 
    6604 #  
    6605 # AC_CHECK_LIB(resolv, res_mkquery, RESOLV_LIBS="-l resolv") 
    6606 # AC_MSG_CHECKING("for resolver library") 
    6607 # if test -f /usr/lib/libresolv.so -o -f /lib/libresolv.o 
    6608 # then 
    6609 #   AC_MSG_RESULT("yes") 
    6610 #   LIBS="$LIBS -lresolv" 
    6611 # else 
    6612 #   AC_MSG_RESULT("no") 
    6613 # fi 
    6614  
    6615 # 
    6616 # Check for libresolv 
    6617 # 
    6618  
    6619 my_save_LIBS="$LIBS" 
    6620 LIBS="" 
    6621 echo $ac_n "checking for res_mkquery in -lresolv""... $ac_c" 1>&6 
    6622 echo "configure:6623: checking for res_mkquery in -lresolv" >&5 
    6623 ac_lib_var=`echo resolv'_'res_mkquery | sed 'y%./+-%__p_%'` 
    6624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    6625   echo $ac_n "(cached) $ac_c" 1>&6 
    6626 else 
    6627   ac_save_LIBS="$LIBS" 
    6628 LIBS="-lresolv  $LIBS" 
    6629 cat > conftest.$ac_ext <<EOF 
    6630 #line 6631 "configure" 
    6631 #include "confdefs.h" 
    6632 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6633 #ifdef __cplusplus 
    6634 extern "C" 
    6635 #endif 
    6636 /* We use char because int might match the return type of a gcc2 
    6637     builtin and then its argument prototype would still apply.  */ 
    6638 char res_mkquery(); 
    6639  
    6640 int main() { 
    6641 res_mkquery() 
    6642 ; return 0; } 
    6643 EOF 
    6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6645   rm -rf conftest* 
    6646   eval "ac_cv_lib_$ac_lib_var=yes" 
    6647 else 
    6648   echo "configure: failed program was:" >&5 
    6649   cat conftest.$ac_ext >&5 
    6650   rm -rf conftest* 
    6651   eval "ac_cv_lib_$ac_lib_var=no" 
    6652 fi 
    6653 rm -f conftest* 
    6654 LIBS="$ac_save_LIBS" 
    6655  
    6656 fi 
    6657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    6658   echo "$ac_t""yes" 1>&6 
    6659     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 
    6660     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 
    6661   cat >> confdefs.h <<EOF 
    6662 #define $ac_tr_lib 1 
    6663 EOF 
    6664  
    6665   LIBS="-lresolv $LIBS" 
    6666  
    6667 else 
    6668   echo "$ac_t""no" 1>&6 
    6669 fi 
    6670  
    6671 LIBRESOLV=$LIBS 
    6672 LIBS="$my_save_LIBS" 
    6673  
    6674  
    6675 # 
    6676 # Check for libdl 
    6677 # 
    6678  
    6679 my_save_LIBS="$LIBS" 
    6680 LIBS="" 
    6681 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 
    6682 echo "configure:6683: checking for dlopen in -ldl" >&5 
    6683 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 
    6684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
    6685   echo $ac_n "(cached) $ac_c" 1>&6 
    6686 else 
    6687   ac_save_LIBS="$LIBS" 
    6688 LIBS="-ldl  $LIBS" 
    6689 cat > conftest.$ac_ext <<EOF 
    6690 #line 6691 "configure" 
    6691 #include "confdefs.h" 
    6692 /* Override any gcc2 internal prototype to avoid an error.  */ 
    6693 #ifdef __cplusplus 
    6694 extern "C" 
    6695 #endif 
    6696 /* We use char because int might match the return type of a gcc2 
    6697     builtin and then its argument prototype would still apply.  */ 
    6698 char dlopen(); 
    6699  
    6700 int main() { 
    6701 dlopen() 
    6702 ; return 0; } 
    6703 EOF 
    6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6705   rm -rf conftest* 
    6706   eval "ac_cv_lib_$ac_lib_var=yes" 
    6707 else 
    6708   echo "configure: failed program was:" >&5 
    6709   cat conftest.$ac_ext >&5 
    6710   rm -rf conftest* 
    6711   eval "ac_cv_lib_$ac_lib_var=no" 
    6712 fi 
    6713 rm -f conftest* 
    6714 LIBS="$ac_save_LIBS" 
    6715  
    6716 fi 
    6717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
    6718   echo "$ac_t""yes" 1>&6 
    6719     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 
    6720     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 
    6721   cat >> confdefs.h <<EOF 
    6722 #define $ac_tr_lib 1 
    6723 EOF 
    6724  
    6725   LIBS="-ldl $LIBS" 
    6726  
    6727 else 
    6728   echo "$ac_t""no" 1>&6 
    6729 fi 
    6730  
    6731 LIBDL=$LIBS 
    6732 LIBS="$my_save_LIBS" 
    6733  
    6734  
    6735  
    6736 # 
    6737 # The following code checks for the right pthreads library and linker 
    6738 # flags. It was taken from MySQL, so we should have the same platform 
    6739 # support as they have. 
    6740 # 
    6741 # XXX Dit is nog niet correct. Als dit matched dan moet de rest van de 
    6742 # XXX thread checks niet. Fixen als we solaris hebben. 
    6743 # 
    6744  
    6745 #AC_MSG_CHECKING("for Solaris threads") 
    6746 #if test -f /usr/lib/libpthread.so -a -f /usr/lib/libthread.so 
    6747 #then 
    6748 #  with_named_thread="-lpthread -lthread" 
    6749 #  AC_MSG_RESULT("yes") 
    6750 #else 
    6751 #  AC_MSG_RESULT("no") 
    6752 #fi 
    6753  
    6754 # pthread_create is in standard libraries (As in BSDI 3.0) 
    6755 echo $ac_n "checking "for pthread_create in -libc"""... $ac_c" 1>&6 
    6756 echo "configure:6757: checking "for pthread_create in -libc"" >&5; 
    6757 cat > conftest.$ac_ext <<EOF 
    6758 #line 6759 "configure" 
    6759 #include "confdefs.h" 
    6760 #include <pthread.h> 
    6761 int main() { 
    6762  (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);  
    6763 ; return 0; } 
    6764 EOF 
    6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6766   rm -rf conftest* 
    6767   with_posix_threads=yes 
    6768 else 
    6769   echo "configure: failed program was:" >&5 
    6770   cat conftest.$ac_ext >&5 
    6771   rm -rf conftest* 
    6772   with_posix_threads=no 
    6773 fi 
    6774 rm -f conftest* 
    6775 echo "$ac_t"""$with_posix_threads"" 1>&6 
    6776 if test "$with_posix_threads" = "no" 
    6777 then 
    6778   echo $ac_n "checking "for pthread_create in -lpthread"""... $ac_c" 1>&6 
    6779 echo "configure:6780: checking "for pthread_create in -lpthread"" >&5; 
    6780   ac_save_LIBS="$LIBS" 
    6781   LIBS="$LIBS -lpthread" 
    6782   cat > conftest.$ac_ext <<EOF 
    6783 #line 6784 "configure" 
    6784 #include "confdefs.h" 
    6785 #include <pthread.h> 
    6786 int main() { 
    6787  (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);  
    6788 ; return 0; } 
    6789 EOF 
    6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6791   rm -rf conftest* 
    6792   with_posix_threads=yes 
    6793 else 
    6794   echo "configure: failed program was:" >&5 
    6795   cat conftest.$ac_ext >&5 
    6796   rm -rf conftest* 
    6797   with_posix_threads=no 
    6798 fi 
    6799 rm -f conftest* 
    6800   echo "$ac_t"""$with_posix_threads"" 1>&6 
    6801   if test "$with_posix_threads" = "no" 
    6802   then 
    6803     LIBS=" $ac_save_LIBS -lpthreads" 
    6804     echo $ac_n "checking "for pthread_create in -lpthreads"""... $ac_c" 1>&6 
    6805 echo "configure:6806: checking "for pthread_create in -lpthreads"" >&5; 
    6806     cat > conftest.$ac_ext <<EOF 
    6807 #line 6808 "configure" 
    6808 #include "confdefs.h" 
    6809 #include <pthread.h> 
    6810 int main() { 
    6811  pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);  
    6812 ; return 0; } 
    6813 EOF 
    6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6815   rm -rf conftest* 
    6816   with_posix_threads=yes 
    6817 else 
    6818   echo "configure: failed program was:" >&5 
    6819   cat conftest.$ac_ext >&5 
    6820   rm -rf conftest* 
    6821   with_posix_threads=no 
    6822 fi 
    6823 rm -f conftest* 
    6824     echo "$ac_t"""$with_posix_threads"" 1>&6 
    6825     if test "$with_posix_threads" = "no" 
    6826     then 
    6827           # This is for FreeBSD 
    6828           LIBS="$ac_save_LIBS -pthread" 
    6829           echo $ac_n "checking "for pthread_create in -pthread"""... $ac_c" 1>&6 
    6830 echo "configure:6831: checking "for pthread_create in -pthread"" >&5; 
    6831           cat > conftest.$ac_ext <<EOF 
    6832 #line 6833 "configure" 
    6833 #include "confdefs.h" 
    6834 #include <pthread.h> 
    6835 int main() { 
    6836  pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);  
    6837 ; return 0; } 
    6838 EOF 
    6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    6840   rm -rf conftest* 
    6841   with_posix_threads=yes 
    6842 else 
    6843   echo "configure: failed program was:" >&5 
    6844   cat conftest.$ac_ext >&5 
    6845   rm -rf conftest* 
    6846   with_posix_threads=no 
    6847 fi 
    6848 rm -f conftest* 
    6849       echo "$ac_t"""$with_posix_threads"" 1>&6 
    6850       if test "$with_posix_threads" = "no" 
    6851           then 
    6852             with_mit_threads="yes" 
    6853             LIBS="$ac_save_LIBS" 
    6854           fi 
    6855         fi 
    6856   fi 
    6857 fi 
    6858  
    6859 case "$host_os" in 
    6860 solaris2*) cat >> confdefs.h <<\EOF 
    6861 #define NEED_POSIX_TYPEDEF 1 
    6862 EOF 
    6863  
    6864         ;; 
    6865 *) 
    6866         ;; 
    6867 esac 
    6868  
    6869 ac_safe=`echo "sstream" | sed 'y%./+-%__p_%'` 
    6870 echo $ac_n "checking for sstream""... $ac_c" 1>&6 
    6871 echo "configure:6872: checking for sstream" >&5 
    6872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    6873   echo $ac_n "(cached) $ac_c" 1>&6 
    6874 else 
    6875   cat > conftest.$ac_ext <<EOF 
    6876 #line 6877 "configure" 
    6877 #include "confdefs.h" 
    6878 #include <sstream> 
    6879 EOF 
    6880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6881 { (eval echo configure:6882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    6882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    6883 if test -z "$ac_err"; then 
    6884   rm -rf conftest* 
    6885   eval "ac_cv_header_$ac_safe=yes" 
    6886 else 
    6887   echo "$ac_err" >&5 
    6888   echo "configure: failed program was:" >&5 
    6889   cat conftest.$ac_ext >&5 
    6890   rm -rf conftest* 
    6891   eval "ac_cv_header_$ac_safe=no" 
    6892 fi 
    6893 rm -f conftest* 
    6894 fi 
    6895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 
    6896   echo "$ac_t""yes" 1>&6 
    6897   dontneedstl=1 
    6898 else 
    6899   echo "$ac_t""no" 1>&6 
    6900 fi 
    6901  
    6902  
    6903 if test "$dontneedstl" != "1"  
    6904 then 
    6905  
    6906 # Check whether --with-stl-includes or --without-stl-includes was given. 
    6907 if test "${with_stl_includes+set}" = set; then 
    6908   withval="$with_stl_includes" 
    6909    if test x"$withval" = x"no"; then 
    6910     search_stl=0 
    6911   else 
    6912     #if test x"$withval" != x"yes"; then 
    6913     if test -d "$withval"; then 
    6914       STL_INCLUDES="-I$withval" 
    6915       search_stl=0 
    6916       has_stl=1 
    6917     fi 
    6918   fi 
    6919  
    6920 fi 
    6921  
    6922  
    6923  
    6924 # Check whether --with-stl-libs or --without-stl-libs was given. 
    6925 if test "${with_stl_libs+set}" = set; then 
    6926   withval="$with_stl_libs" 
    6927    if test x"$withval" = x"no"; then 
    6928     search_stl=0 
    6929   else 
    6930     #if test x"$withval" != x"yes"; then 
    6931     if test -d "$withval"; then 
    6932       STL_LIBS="$LIBS -L$withval -lstlport_gcc" 
    6933       search_stl=0 
    6934       has_stl=1 
    6935     fi 
    6936   fi 
    6937  
    6938 fi 
    6939  
    6940  
    6941  
    6942  
    6943  
    6944  
    6945 if test x"$search_stl" != x"0"; then 
    6946    echo $ac_n "checking "location of sstream"""... $ac_c" 1>&6 
    6947 echo "configure:6948: checking "location of sstream"" >&5 
    6948    if test x"$search_stl" != x"0"; then 
    6949     if test -f "/usr/include/sstream"; then 
    6950       echo "$ac_t"""found in /usr/include"" 1>&6 
    6951       STL_LIBS="-lstlport_gcc" 
    6952       STL_INCLUDES="" 
    6953       search_stl=0 
    6954       has_stl=1 
    6955     fi 
    6956   fi 
    6957  
    6958    if test x"$search_stl" != x"0"; then 
    6959     if test -f "/usr/include/stlport/sstream"; then 
    6960       echo "$ac_t"""found in /usr/include/stlport"" 1>&6 
    6961       STL_LIBS="-lstlport_gcc" 
    6962       STL_INCLUDES="-I/usr/include/stlport" 
    6963       search_stl=0 
    6964       has_stl=1 
    6965     fi