ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
(Generate patch)

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 4361 by michael, Sat Aug 2 20:51:40 2014 UTC vs.
Revision 5278 by michael, Thu Jan 1 20:44:50 2015 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 4360 2014-08-02 20:40:29Z michael .
2 > # From configure.ac Id: configure.ac 4981 2014-12-05 14:31:27Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# Line 656 | Line 656 | CONVENIENCE_LTDL_FALSE
656   CONVENIENCE_LTDL_TRUE
657   INSTALL_LTDL_FALSE
658   INSTALL_LTDL_TRUE
659 < ARGZ_H
659 > LT_ARGZ_H
660   sys_symbol_underscore
661   LIBADD_DL
662   LT_DLPREOPEN
# Line 798 | Line 798 | enable_static
798   enable_shared
799   with_pic
800   enable_fast_install
801 + with_aix_soname
802   with_gnu_ld
803   with_sysroot
804   enable_libtool_lock
# Line 805 | Line 806 | with_included_ltdl
806   with_ltdl_include
807   with_ltdl_lib
808   enable_ltdl_install
808 enable_libgeoip
809 enable_openssl
810 enable_assert
809   enable_kqueue
810   enable_epoll
811   enable_devpoll
812   enable_poll
813 + enable_assert
814   enable_debugging
815   enable_warnings
816 + enable_openssl
817 + enable_libgeoip
818   '
819        ac_precious_vars='build_alias
820   host_alias
# Line 1459 | Line 1460 | Optional Features:
1460                            optimize for fast installation [default=yes]
1461    --disable-libtool-lock  avoid locking (might break parallel builds)
1462    --enable-ltdl-install   install libltdl
1462  --disable-libgeoip      Disable GeoIP support
1463  --enable-openssl=DIR       Enable OpenSSL support (DIR optional).
1464  --disable-openssl            Disable OpenSSL support.
1465  --enable-assert         Enable assert() statements
1463    --enable-kqueue         Force kqueue usage.
1464    --enable-epoll          Force epoll usage.
1465    --enable-devpoll        Force devpoll usage.
1466    --enable-poll           Force poll usage.
1467 +  --enable-assert         Enable assert() statements
1468    --enable-debugging      Enable debugging.
1469    --enable-warnings       Enable compiler warnings.
1470 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1471 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1472 +  --disable-libgeoip      Disable GeoIP support
1473  
1474   Optional Packages:
1475    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477    --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                            both]
1479 +  --with-aix-soname=aix|svr4|both
1480 +                          shared library versioning (aka "SONAME") variant to
1481 +                          provide on AIX, [default=aix].
1482    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483 <  --with-sysroot=DIR Search for dependent libraries within DIR
1484 <                        (or the compiler's sysroot if not specified).
1483 >  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1484 >                          compiler's sysroot if not specified).
1485    --with-included-ltdl    use the GNU ltdl sources included here
1486    --with-ltdl-include=DIR use the ltdl headers installed in DIR
1487    --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
# Line 4471 | Line 4475 | esac
4475  
4476  
4477  
4478 < macro_version='2.4.2'
4479 < macro_revision='1.3337'
4478 > macro_version='2.4.4'
4479 > macro_revision='2.4.4'
4480  
4481  
4482  
# Line 4486 | Line 4490 | macro_revision='1.3337'
4490  
4491  
4492  
4493 < ltmain="$ac_aux_dir/ltmain.sh"
4493 > ltmain=$ac_aux_dir/ltmain.sh
4494  
4495   # Make sure we can run config.sub.
4496   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
# Line 4606 | Line 4610 | func_echo_all ()
4610      $ECHO ""
4611   }
4612  
4613 < case "$ECHO" in
4613 > case $ECHO in
4614    printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4615   $as_echo "printf" >&6; } ;;
4616    print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
# Line 4929 | Line 4933 | test -z "$GREP" && GREP=grep
4933  
4934   # Check whether --with-gnu-ld was given.
4935   if test "${with_gnu_ld+set}" = set; then :
4936 <  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4936 >  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4937   else
4938    with_gnu_ld=no
4939   fi
4940  
4941   ac_prog=ld
4942 < if test "$GCC" = yes; then
4942 > if test yes = "$GCC"; then
4943    # Check if gcc -print-prog-name=ld gives a path.
4944    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4945   $as_echo_n "checking for ld used by $CC... " >&6; }
4946    case $host in
4947    *-*-mingw*)
4948 <    # gcc leaves a trailing carriage return which upsets mingw
4948 >    # gcc leaves a trailing carriage return, which upsets mingw
4949      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4950    *)
4951      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
# Line 4955 | Line 4959 | $as_echo_n "checking for ld used by $CC.
4959        while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4960          ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4961        done
4962 <      test -z "$LD" && LD="$ac_prog"
4962 >      test -z "$LD" && LD=$ac_prog
4963        ;;
4964    "")
4965      # If it fails, then pretend we aren't using GCC.
# Line 4966 | Line 4970 | $as_echo_n "checking for ld used by $CC.
4970      with_gnu_ld=unknown
4971      ;;
4972    esac
4973 < elif test "$with_gnu_ld" = yes; then
4973 > elif test yes = "$with_gnu_ld"; then
4974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4975   $as_echo_n "checking for GNU ld... " >&6; }
4976   else
# Line 4977 | Line 4981 | if ${lt_cv_path_LD+:} false; then :
4981    $as_echo_n "(cached) " >&6
4982   else
4983    if test -z "$LD"; then
4984 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4984 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4985    for ac_dir in $PATH; do
4986 <    IFS="$lt_save_ifs"
4986 >    IFS=$lt_save_ifs
4987      test -z "$ac_dir" && ac_dir=.
4988      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4989 <      lt_cv_path_LD="$ac_dir/$ac_prog"
4989 >      lt_cv_path_LD=$ac_dir/$ac_prog
4990        # Check to see if the program is GNU ld.  I'd rather use --version,
4991        # but apparently some variants of GNU ld only accept -v.
4992        # Break only if it was the GNU/non-GNU ld that we prefer.
4993        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4994        *GNU* | *'with BFD'*)
4995 <        test "$with_gnu_ld" != no && break
4995 >        test no != "$with_gnu_ld" && break
4996          ;;
4997        *)
4998 <        test "$with_gnu_ld" != yes && break
4998 >        test yes != "$with_gnu_ld" && break
4999          ;;
5000        esac
5001      fi
5002    done
5003 <  IFS="$lt_save_ifs"
5003 >  IFS=$lt_save_ifs
5004   else
5005 <  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5005 >  lt_cv_path_LD=$LD # Let the user override the test with a path.
5006   fi
5007   fi
5008  
5009 < LD="$lt_cv_path_LD"
5009 > LD=$lt_cv_path_LD
5010   if test -n "$LD"; then
5011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5012   $as_echo "$LD" >&6; }
# Line 5045 | Line 5049 | if ${lt_cv_path_NM+:} false; then :
5049   else
5050    if test -n "$NM"; then
5051    # Let the user override the test.
5052 <  lt_cv_path_NM="$NM"
5052 >  lt_cv_path_NM=$NM
5053   else
5054 <  lt_nm_to_check="${ac_tool_prefix}nm"
5054 >  lt_nm_to_check=${ac_tool_prefix}nm
5055    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5056      lt_nm_to_check="$lt_nm_to_check nm"
5057    fi
5058    for lt_tmp_nm in $lt_nm_to_check; do
5059 <    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 >    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5060      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5061 <      IFS="$lt_save_ifs"
5061 >      IFS=$lt_save_ifs
5062        test -z "$ac_dir" && ac_dir=.
5063 <      tmp_nm="$ac_dir/$lt_tmp_nm"
5064 <      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5063 >      tmp_nm=$ac_dir/$lt_tmp_nm
5064 >      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5065          # Check to see if the nm accepts a BSD-compat flag.
5066 <        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5066 >        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5067          #   nm: unknown option "B" ignored
5068          # Tru64's nm complains that /dev/null is an invalid object file
5069 <        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5070 <        */dev/null* | *'Invalid file or object type'*)
5069 >        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5070 >        case $build_os in
5071 >        mingw*) lt_bad_file=conftest.nm/nofile ;;
5072 >        *) lt_bad_file=/dev/null ;;
5073 >        esac
5074 >        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5075 >        *$lt_bad_file* | *'Invalid file or object type'*)
5076            lt_cv_path_NM="$tmp_nm -B"
5077 <          break
5077 >          break 2
5078            ;;
5079          *)
5080            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5081            */dev/null*)
5082              lt_cv_path_NM="$tmp_nm -p"
5083 <            break
5083 >            break 2
5084              ;;
5085            *)
5086              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
# Line 5082 | Line 5091 | else
5091          esac
5092        fi
5093      done
5094 <    IFS="$lt_save_ifs"
5094 >    IFS=$lt_save_ifs
5095    done
5096    : ${lt_cv_path_NM=no}
5097   fi
5098   fi
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5100   $as_echo "$lt_cv_path_NM" >&6; }
5101 < if test "$lt_cv_path_NM" != "no"; then
5102 <  NM="$lt_cv_path_NM"
5101 > if test no != "$lt_cv_path_NM"; then
5102 >  NM=$lt_cv_path_NM
5103   else
5104    # Didn't find any BSD compatible name lister, look for dumpbin.
5105    if test -n "$DUMPBIN"; then :
# Line 5196 | Line 5205 | esac
5205    fi
5206   fi
5207  
5208 <    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208 >    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5209      *COFF*)
5210 <      DUMPBIN="$DUMPBIN -symbols"
5210 >      DUMPBIN="$DUMPBIN -symbols -headers"
5211        ;;
5212      *)
5213        DUMPBIN=:
# Line 5206 | Line 5215 | fi
5215      esac
5216    fi
5217  
5218 <  if test "$DUMPBIN" != ":"; then
5219 <    NM="$DUMPBIN"
5218 >  if test : != "$DUMPBIN"; then
5219 >    NM=$DUMPBIN
5220    fi
5221   fi
5222   test -z "$NM" && NM=nm
# Line 5258 | Line 5267 | if ${lt_cv_sys_max_cmd_len+:} false; the
5267    $as_echo_n "(cached) " >&6
5268   else
5269      i=0
5270 <  teststring="ABCD"
5270 >  teststring=ABCD
5271  
5272    case $build_os in
5273    msdosdjgpp*)
# Line 5298 | Line 5307 | else
5307      lt_cv_sys_max_cmd_len=8192;
5308      ;;
5309  
5310 <  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310 >  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5311      # This has been around since 386BSD, at least.  Likely further.
5312      if test -x /sbin/sysctl; then
5313        lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
# Line 5348 | Line 5357 | else
5357      ;;
5358    *)
5359      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5360 <    if test -n "$lt_cv_sys_max_cmd_len"; then
5360 >    if test -n "$lt_cv_sys_max_cmd_len" && \
5361 >       test undefined != "$lt_cv_sys_max_cmd_len"; then
5362        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5363        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5364      else
5365        # Make teststring a little bigger before we do anything with it.
5366        # a 1K string should be a reasonable start.
5367 <      for i in 1 2 3 4 5 6 7 8 ; do
5367 >      for i in 1 2 3 4 5 6 7 8; do
5368          teststring=$teststring$teststring
5369        done
5370        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5371        # If test is not a shell built-in, we'll probably end up computing a
5372        # maximum length that is only half of the actual maximum length, but
5373        # we can't tell.
5374 <      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5374 >      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5375                   = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5376 <              test $i != 17 # 1/2 MB should be enough
5376 >              test 17 != "$i" # 1/2 MB should be enough
5377        do
5378          i=`expr $i + 1`
5379          teststring=$teststring$teststring
# Line 5381 | Line 5391 | else
5391  
5392   fi
5393  
5394 < if test -n $lt_cv_sys_max_cmd_len ; then
5394 > if test -n "$lt_cv_sys_max_cmd_len"; then
5395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5396   $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5397   else
# Line 5399 | Line 5409 | max_cmd_len=$lt_cv_sys_max_cmd_len
5409   : ${MV="mv -f"}
5410   : ${RM="rm -f"}
5411  
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404 # Try some XSI features
5405 xsi_shell=no
5406 ( _lt_dummy="a/b/c"
5407  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5408      = c,a/b,b/c, \
5409    && eval 'test $(( 1 + 1 )) -eq 2 \
5410    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411  && xsi_shell=yes
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5413 $as_echo "$xsi_shell" >&6; }
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418 lt_shell_append=no
5419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420    >/dev/null 2>&1 \
5421  && lt_shell_append=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5423 $as_echo "$lt_shell_append" >&6; }
5424
5425
5412   if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5413    lt_unset=unset
5414   else
# Line 5545 | Line 5531 | esac
5531   reload_cmds='$LD$reload_flag -o $output$reload_objs'
5532   case $host_os in
5533    cygwin* | mingw* | pw32* | cegcc*)
5534 <    if test "$GCC" != yes; then
5534 >    if test yes != "$GCC"; then
5535        reload_cmds=false
5536      fi
5537      ;;
5538    darwin*)
5539 <    if test "$GCC" = yes; then
5540 <      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5539 >    if test yes = "$GCC"; then
5540 >      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5541      else
5542        reload_cmds='$LD$reload_flag -o $output$reload_objs'
5543      fi
# Line 5679 | Line 5665 | lt_cv_deplibs_check_method='unknown'
5665   # Need to set the preceding variable on all platforms that support
5666   # interlibrary dependencies.
5667   # 'none' -- dependencies not supported.
5668 < # `unknown' -- same as none, but documents that we really don't know.
5668 > # 'unknown' -- same as none, but documents that we really don't know.
5669   # 'pass_all' -- all dependencies passed with no checks.
5670   # 'test_compile' -- check by making test program.
5671   # 'file_magic [[regex]]' -- check by looking for files in library path
5672 < # which responds to the $file_magic_cmd with a given extended regex.
5673 < # If you have `file' or equivalent on your system and you're not sure
5674 < # whether `pass_all' will *always* work, you probably want this one.
5672 > # that responds to the $file_magic_cmd with a given extended regex.
5673 > # If you have 'file' or equivalent on your system and you're not sure
5674 > # whether 'pass_all' will *always* work, you probably want this one.
5675  
5676   case $host_os in
5677   aix[4-9]*)
# Line 5712 | Line 5698 | mingw* | pw32*)
5698    # Base MSYS/MinGW do not provide the 'file' command needed by
5699    # func_win32_libid shell function, so use a weaker test based on 'objdump',
5700    # unless we find 'file', for example because we are cross-compiling.
5701 <  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5716 <  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5701 >  if ( file / ) >/dev/null 2>&1; then
5702      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5703      lt_cv_file_magic_cmd='func_win32_libid'
5704    else
# Line 5749 | Line 5734 | freebsd* | dragonfly*)
5734    fi
5735    ;;
5736  
5752 gnu*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755
5737   haiku*)
5738    lt_cv_deplibs_check_method=pass_all
5739    ;;
# Line 5791 | Line 5772 | irix5* | irix6* | nonstopux*)
5772    ;;
5773  
5774   # This must be glibc/ELF.
5775 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
5775 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5776    lt_cv_deplibs_check_method=pass_all
5777    ;;
5778  
# Line 5813 | Line 5794 | newos6*)
5794    lt_cv_deplibs_check_method=pass_all
5795    ;;
5796  
5797 < openbsd*)
5798 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5797 > openbsd* | bitrig*)
5798 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5799      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5800    else
5801      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
# Line 5867 | Line 5848 | sysv4 | sysv4.3*)
5848   tpf*)
5849    lt_cv_deplibs_check_method=pass_all
5850    ;;
5851 + os2*)
5852 +  lt_cv_deplibs_check_method=pass_all
5853 +  ;;
5854   esac
5855  
5856   fi
# Line 6024 | Line 6008 | else
6008  
6009   case $host_os in
6010   cygwin* | mingw* | pw32* | cegcc*)
6011 <  # two different shell functions defined in ltmain.sh
6012 <  # decide which to use based on capabilities of $DLLTOOL
6011 >  # two different shell functions defined in ltmain.sh;
6012 >  # decide which one to use based on capabilities of $DLLTOOL
6013    case `$DLLTOOL --help 2>&1` in
6014    *--identify-strict*)
6015      lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
# Line 6037 | Line 6021 | cygwin* | mingw* | pw32* | cegcc*)
6021    ;;
6022   *)
6023    # fallback: assume linklib IS sharedlib
6024 <  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6024 >  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6025    ;;
6026   esac
6027  
# Line 6191 | Line 6175 | if ac_fn_c_try_compile "$LINENO"; then :
6175    ac_status=$?
6176    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177    test $ac_status = 0; }
6178 <      if test "$ac_status" -eq 0; then
6178 >      if test 0 -eq "$ac_status"; then
6179          # Ensure the archiver fails upon bogus file names.
6180          rm -f conftest.$ac_objext libconftest.a
6181          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
# Line 6199 | Line 6183 | if ac_fn_c_try_compile "$LINENO"; then :
6183    ac_status=$?
6184    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185    test $ac_status = 0; }
6186 <        if test "$ac_status" -ne 0; then
6186 >        if test 0 -ne "$ac_status"; then
6187            lt_cv_ar_at_file=@
6188          fi
6189        fi
# Line 6212 | Line 6196 | fi
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6197   $as_echo "$lt_cv_ar_at_file" >&6; }
6198  
6199 < if test "x$lt_cv_ar_at_file" = xno; then
6199 > if test no = "$lt_cv_ar_at_file"; then
6200    archiver_list_spec=
6201   else
6202    archiver_list_spec=$lt_cv_ar_at_file
# Line 6429 | Line 6413 | old_postuninstall_cmds=
6413  
6414   if test -n "$RANLIB"; then
6415    case $host_os in
6416 <  openbsd*)
6416 >  bitrig* | openbsd*)
6417      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6418      ;;
6419    *)
# Line 6519 | Line 6503 | cygwin* | mingw* | pw32* | cegcc*)
6503    symcode='[ABCDGISTW]'
6504    ;;
6505   hpux*)
6506 <  if test "$host_cpu" = ia64; then
6506 >  if test ia64 = "$host_cpu"; then
6507      symcode='[ABCDEGRST]'
6508    fi
6509    ;;
# Line 6552 | Line 6536 | case `$NM -V 2>&1` in
6536    symcode='[ABCDGIRSTW]' ;;
6537   esac
6538  
6539 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6540 +  # Gets list of data symbols to import.
6541 +  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6542 +  # Adjust the below global symbol transforms to fixup imported variables.
6543 +  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6544 +  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6545 +  lt_c_name_lib_hook="\
6546 +  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6547 +  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6548 + else
6549 +  # Disable hooks by default.
6550 +  lt_cv_sys_global_symbol_to_import=
6551 +  lt_cdecl_hook=
6552 +  lt_c_name_hook=
6553 +  lt_c_name_lib_hook=
6554 + fi
6555 +
6556   # Transform an extracted symbol line into a proper C declaration.
6557   # Some systems (esp. on ia64) link data and code symbols differently,
6558   # so use this general approach.
6559 < lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6559 > lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6560 > $lt_cdecl_hook\
6561 > " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6562 > " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6563  
6564   # Transform an extracted symbol line into symbol name and symbol address
6565 < lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6566 < lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6565 > lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6566 > $lt_c_name_hook\
6567 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6568 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6569 >
6570 > # Transform an extracted symbol line into symbol name with lib prefix and
6571 > # symbol address.
6572 > lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6573 > $lt_c_name_lib_hook\
6574 > " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6575 > " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6576 > " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6577  
6578   # Handle CRLF in mingw tool chain
6579   opt_cr=
# Line 6577 | Line 6591 | for ac_symprfx in "" "_"; do
6591  
6592    # Write the raw and C identifiers.
6593    if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6594 <    # Fake it for dumpbin and say T for any non-static function
6595 <    # and D for any global variable.
6594 >    # Fake it for dumpbin and say T for any non-static function,
6595 >    # D for any global variable and I for any imported variable.
6596      # Also find C++ and __fastcall symbols from MSVC++,
6597      # which start with @ or ?.
6598      lt_cv_sys_global_symbol_pipe="$AWK '"\
6599   "     {last_section=section; section=\$ 3};"\
6600   "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6601   "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6602 + "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6603 + "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6604 + "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6605   "     \$ 0!~/External *\|/{next};"\
6606   "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6607   "     {if(hide[section]) next};"\
6608 < "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6609 < "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6610 < "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6611 < "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6608 > "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6609 > "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6610 > "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6611 > "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6612   "     ' prfx=^$ac_symprfx"
6613    else
6614      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
# Line 6639 | Line 6656 | _LT_EOF
6656          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6657            cat <<_LT_EOF > conftest.$ac_ext
6658   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6659 < #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6660 < /* DATA imports from DLLs on WIN32 con't be const, because runtime
6659 > #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6660 > /* DATA imports from DLLs on WIN32 can't be const, because runtime
6661     relocations are performed -- see ld's documentation on pseudo-relocs.  */
6662   # define LT_DLSYM_CONST
6663 < #elif defined(__osf__)
6663 > #elif defined __osf__
6664   /* This system does not cope well with relocations in const data.  */
6665   # define LT_DLSYM_CONST
6666   #else
# Line 6669 | Line 6686 | lt__PROGRAM__LTX_preloaded_symbols[] =
6686   {
6687    { "@PROGRAM@", (void *) 0 },
6688   _LT_EOF
6689 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6689 >          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6690            cat <<\_LT_EOF >> conftest.$ac_ext
6691    {0, (void *) 0}
6692   };
# Line 6689 | Line 6706 | _LT_EOF
6706            mv conftest.$ac_objext conftstm.$ac_objext
6707            lt_globsym_save_LIBS=$LIBS
6708            lt_globsym_save_CFLAGS=$CFLAGS
6709 <          LIBS="conftstm.$ac_objext"
6709 >          LIBS=conftstm.$ac_objext
6710            CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6711            if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6712    (eval $ac_link) 2>&5
6713    ac_status=$?
6714    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 <  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6715 >  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6716              pipe_works=yes
6717            fi
6718            LIBS=$lt_globsym_save_LIBS
# Line 6716 | Line 6733 | _LT_EOF
6733    rm -rf conftest* conftst*
6734  
6735    # Do not use the global_symbol_pipe unless it works.
6736 <  if test "$pipe_works" = yes; then
6736 >  if test yes = "$pipe_works"; then
6737      break
6738    else
6739      lt_cv_sys_global_symbol_pipe=
# Line 6769 | Line 6786 | fi
6786  
6787  
6788  
6789 +
6790 +
6791 +
6792 +
6793 +
6794 +
6795 +
6796 +
6797 +
6798 +
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6800   $as_echo_n "checking for sysroot... " >&6; }
6801  
# Line 6781 | Line 6808 | fi
6808  
6809  
6810   lt_sysroot=
6811 < case ${with_sysroot} in #(
6811 > case $with_sysroot in #(
6812   yes)
6813 <   if test "$GCC" = yes; then
6813 >   if test yes = "$GCC"; then
6814       lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6815     fi
6816     ;; #(
# Line 6793 | Line 6820 | case ${with_sysroot} in #(
6820   no|'')
6821     ;; #(
6822   *)
6823 <   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6824 < $as_echo "${with_sysroot}" >&6; }
6823 >   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6824 > $as_echo "$with_sysroot" >&6; }
6825     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6826     ;;
6827   esac
# Line 6806 | Line 6833 | $as_echo "${lt_sysroot:-no}" >&6; }
6833  
6834  
6835  
6836 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6837 + $as_echo_n "checking for a working dd... " >&6; }
6838 + if ${ac_cv_path_lt_DD+:} false; then :
6839 +  $as_echo_n "(cached) " >&6
6840 + else
6841 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6842 + cat conftest.i conftest.i >conftest2.i
6843 + : ${lt_DD:=$DD}
6844 + if test -z "$lt_DD"; then
6845 +  ac_path_lt_DD_found=false
6846 +  # Loop through the user's path and test for each of PROGNAME-LIST
6847 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 + for as_dir in $PATH
6849 + do
6850 +  IFS=$as_save_IFS
6851 +  test -z "$as_dir" && as_dir=.
6852 +    for ac_prog in dd; do
6853 +    for ac_exec_ext in '' $ac_executable_extensions; do
6854 +      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6855 +      as_fn_executable_p "$ac_path_lt_DD" || continue
6856 + if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6857 +  cmp -s conftest.i conftest.out \
6858 +  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6859 + fi
6860 +      $ac_path_lt_DD_found && break 3
6861 +    done
6862 +  done
6863 +  done
6864 + IFS=$as_save_IFS
6865 +  if test -z "$ac_cv_path_lt_DD"; then
6866 +    :
6867 +  fi
6868 + else
6869 +  ac_cv_path_lt_DD=$lt_DD
6870 + fi
6871 +
6872 + rm -f conftest.i conftest2.i conftest.out
6873 + fi
6874 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6875 + $as_echo "$ac_cv_path_lt_DD" >&6; }
6876 +
6877 +
6878 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6879 + $as_echo_n "checking how to truncate binary pipes... " >&6; }
6880 + if ${lt_cv_truncate_bin+:} false; then :
6881 +  $as_echo_n "(cached) " >&6
6882 + else
6883 +  printf 0123456789abcdef0123456789abcdef >conftest.i
6884 + cat conftest.i conftest.i >conftest2.i
6885 + lt_cv_truncate_bin=
6886 + if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6887 +  cmp -s conftest.i conftest.out \
6888 +  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6889 + fi
6890 + rm -f conftest.i conftest2.i conftest.out
6891 + test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6892 + fi
6893 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6894 + $as_echo "$lt_cv_truncate_bin" >&6; }
6895 +
6896 +
6897 +
6898 +
6899 +
6900 +
6901   # Check whether --enable-libtool-lock was given.
6902   if test "${enable_libtool_lock+set}" = set; then :
6903    enableval=$enable_libtool_lock;
6904   fi
6905  
6906 < test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6906 > test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6907  
6908   # Some flags need to be propagated to the compiler or linker for good
6909   # libtool support.
6910   case $host in
6911   ia64-*-hpux*)
6912 <  # Find out which ABI we are using.
6912 >  # Find out what ABI is being produced by ac_compile, and set mode
6913 >  # options accordingly.
6914    echo 'int i;' > conftest.$ac_ext
6915    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6916    (eval $ac_compile) 2>&5
# Line 6826 | Line 6919 | ia64-*-hpux*)
6919    test $ac_status = 0; }; then
6920      case `/usr/bin/file conftest.$ac_objext` in
6921        *ELF-32*)
6922 <        HPUX_IA64_MODE="32"
6922 >        HPUX_IA64_MODE=32
6923          ;;
6924        *ELF-64*)
6925 <        HPUX_IA64_MODE="64"
6925 >        HPUX_IA64_MODE=64
6926          ;;
6927      esac
6928    fi
6929    rm -rf conftest*
6930    ;;
6931   *-*-irix6*)
6932 <  # Find out which ABI we are using.
6932 >  # Find out what ABI is being produced by ac_compile, and set linker
6933 >  # options accordingly.
6934    echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6935    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936    (eval $ac_compile) 2>&5
6937    ac_status=$?
6938    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939    test $ac_status = 0; }; then
6940 <    if test "$lt_cv_prog_gnu_ld" = yes; then
6940 >    if test yes = "$lt_cv_prog_gnu_ld"; then
6941        case `/usr/bin/file conftest.$ac_objext` in
6942          *32-bit*)
6943            LD="${LD-ld} -melf32bsmip"
# Line 6872 | Line 6966 | ia64-*-hpux*)
6966    rm -rf conftest*
6967    ;;
6968  
6969 < x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6969 > mips64*-*linux*)
6970 >  # Find out what ABI is being produced by ac_compile, and set linker
6971 >  # options accordingly.
6972 >  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6973 >  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974 >  (eval $ac_compile) 2>&5
6975 >  ac_status=$?
6976 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 >  test $ac_status = 0; }; then
6978 >    emul=elf
6979 >    case `/usr/bin/file conftest.$ac_objext` in
6980 >      *32-bit*)
6981 >        emul="${emul}32"
6982 >        ;;
6983 >      *64-bit*)
6984 >        emul="${emul}64"
6985 >        ;;
6986 >    esac
6987 >    case `/usr/bin/file conftest.$ac_objext` in
6988 >      *MSB*)
6989 >        emul="${emul}btsmip"
6990 >        ;;
6991 >      *LSB*)
6992 >        emul="${emul}ltsmip"
6993 >        ;;
6994 >    esac
6995 >    case `/usr/bin/file conftest.$ac_objext` in
6996 >      *N32*)
6997 >        emul="${emul}n32"
6998 >        ;;
6999 >    esac
7000 >    LD="${LD-ld} -m $emul"
7001 >  fi
7002 >  rm -rf conftest*
7003 >  ;;
7004 >
7005 > x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7006   s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7007 <  # Find out which ABI we are using.
7007 >  # Find out what ABI is being produced by ac_compile, and set linker
7008 >  # options accordingly.  Note that the listed cases only cover the
7009 >  # situations where additional linker options are needed (such as when
7010 >  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7011 >  # vice versa); the common cases where no linker options are needed do
7012 >  # not appear in the list.
7013    echo 'int i;' > conftest.$ac_ext
7014    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7015    (eval $ac_compile) 2>&5
# Line 6888 | Line 7023 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7023              LD="${LD-ld} -m elf_i386_fbsd"
7024              ;;
7025            x86_64-*linux*)
7026 <            LD="${LD-ld} -m elf_i386"
7026 >            case `/usr/bin/file conftest.o` in
7027 >              *x86-64*)
7028 >                LD="${LD-ld} -m elf32_x86_64"
7029 >                ;;
7030 >              *)
7031 >                LD="${LD-ld} -m elf_i386"
7032 >                ;;
7033 >            esac
7034 >            ;;
7035 >          powerpc64le-*linux*)
7036 >            LD="${LD-ld} -m elf32lppclinux"
7037              ;;
7038 <          ppc64-*linux*|powerpc64-*linux*)
7038 >          powerpc64-*linux*)
7039              LD="${LD-ld} -m elf32ppclinux"
7040              ;;
7041            s390x-*linux*)
# Line 6909 | Line 7054 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7054            x86_64-*linux*)
7055              LD="${LD-ld} -m elf_x86_64"
7056              ;;
7057 <          ppc*-*linux*|powerpc*-*linux*)
7057 >          powerpcle-*linux*)
7058 >            LD="${LD-ld} -m elf64lppc"
7059 >            ;;
7060 >          powerpc-*linux*)
7061              LD="${LD-ld} -m elf64ppc"
7062              ;;
7063            s390*-*linux*|s390*-*tpf*)
# Line 6927 | Line 7075 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*
7075  
7076   *-*-sco3.2v5*)
7077    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7078 <  SAVE_CFLAGS="$CFLAGS"
7078 >  SAVE_CFLAGS=$CFLAGS
7079    CFLAGS="$CFLAGS -belf"
7080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7081   $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
# Line 6967 | Line 7115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115   fi
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7117   $as_echo "$lt_cv_cc_needs_belf" >&6; }
7118 <  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7118 >  if test yes != "$lt_cv_cc_needs_belf"; then
7119      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7120 <    CFLAGS="$SAVE_CFLAGS"
7120 >    CFLAGS=$SAVE_CFLAGS
7121    fi
7122    ;;
7123   *-*solaris*)
7124 <  # Find out which ABI we are using.
7124 >  # Find out what ABI is being produced by ac_compile, and set linker
7125 >  # options accordingly.
7126    echo 'int i;' > conftest.$ac_ext
7127    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7128    (eval $ac_compile) 2>&5
# Line 6985 | Line 7134 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7134        case $lt_cv_prog_gnu_ld in
7135        yes*)
7136          case $host in
7137 <        i?86-*-solaris*)
7137 >        i?86-*-solaris*|x86_64-*-solaris*)
7138            LD="${LD-ld} -m elf_x86_64"
7139            ;;
7140          sparc*-*-solaris*)
# Line 6994 | Line 7143 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7143          esac
7144          # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7145          if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7146 <          LD="${LD-ld}_sol2"
7146 >          LD=${LD-ld}_sol2
7147          fi
7148          ;;
7149        *)
# Line 7010 | Line 7159 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
7159    ;;
7160   esac
7161  
7162 < need_locks="$enable_libtool_lock"
7162 > need_locks=$enable_libtool_lock
7163  
7164   if test -n "$ac_tool_prefix"; then
7165    # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
# Line 7121 | Line 7270 | else
7270   fi
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7272   $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7273 < if test "x$lt_cv_path_mainfest_tool" != xyes; then
7273 > if test yes != "$lt_cv_path_mainfest_tool"; then
7274    MANIFEST_TOOL=:
7275   fi
7276  
# Line 7624 | Line 7773 | if ${lt_cv_apple_cc_single_mod+:} false;
7773    $as_echo_n "(cached) " >&6
7774   else
7775    lt_cv_apple_cc_single_mod=no
7776 <      if test -z "${LT_MULTI_MODULE}"; then
7776 >      if test -z "$LT_MULTI_MODULE"; then
7777          # By default we will add the -single_module flag. You can override
7778          # by either setting the environment variable LT_MULTI_MODULE
7779          # non-empty at configure time, or by adding -multi_module to the
# Line 7642 | Line 7791 | else
7791            cat conftest.err >&5
7792          # Otherwise, if the output was created with a 0 exit code from
7793          # the compiler, it worked.
7794 <        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7794 >        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7795            lt_cv_apple_cc_single_mod=yes
7796          else
7797            cat conftest.err >&5
# Line 7681 | Line 7830 | else
7830   fi
7831   rm -f core conftest.err conftest.$ac_objext \
7832      conftest$ac_exeext conftest.$ac_ext
7833 <        LDFLAGS="$save_LDFLAGS"
7833 >        LDFLAGS=$save_LDFLAGS
7834  
7835   fi
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
# Line 7710 | Line 7859 | _LT_EOF
7859        _lt_result=$?
7860        if test -s conftest.err && $GREP force_load conftest.err; then
7861          cat conftest.err >&5
7862 <      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7862 >      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7863          lt_cv_ld_force_load=yes
7864        else
7865          cat conftest.err >&5
# Line 7723 | Line 7872 | fi
7872   $as_echo "$lt_cv_ld_force_load" >&6; }
7873      case $host_os in
7874      rhapsody* | darwin1.[012])
7875 <      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7875 >      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7876      darwin1.*)
7877 <      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7877 >      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7878      darwin*) # darwin 5.x on
7879        # if running on 10.5 or later, the deployment target defaults
7880        # to the OS version, if on x86, and 10.4, the deployment
7881        # target defaults to 10.4. Don't you love it?
7882        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7883          10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7884 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7885 <        10.[012]*)
7886 <          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7884 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7885 >        10.[012][,.]*)
7886 >          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7887          10.*)
7888 <          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7888 >          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7889        esac
7890      ;;
7891    esac
7892 <    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7892 >    if test yes = "$lt_cv_apple_cc_single_mod"; then
7893        _lt_dar_single_mod='$single_module'
7894      fi
7895 <    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7896 <      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7895 >    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7896 >      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7897      else
7898 <      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7898 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7899      fi
7900 <    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7900 >    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7901        _lt_dsymutil='~$DSYMUTIL $lib || :'
7902      else
7903        _lt_dsymutil=
# Line 8051 | Line 8200 | if test "${enable_static+set}" = set; th
8200      *)
8201       enable_static=no
8202        # Look at the argument we got.  We use all the common list separators.
8203 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8204        for pkg in $enableval; do
8205 <        IFS="$lt_save_ifs"
8205 >        IFS=$lt_save_ifs
8206          if test "X$pkg" = "X$p"; then
8207            enable_static=yes
8208          fi
8209        done
8210 <      IFS="$lt_save_ifs"
8210 >      IFS=$lt_save_ifs
8211        ;;
8212      esac
8213   else
# Line 8087 | Line 8236 | if test "${enable_shared+set}" = set; th
8236      *)
8237        enable_shared=no
8238        # Look at the argument we got.  We use all the common list separators.
8239 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8239 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8240        for pkg in $enableval; do
8241 <        IFS="$lt_save_ifs"
8241 >        IFS=$lt_save_ifs
8242          if test "X$pkg" = "X$p"; then
8243            enable_shared=yes
8244          fi
8245        done
8246 <      IFS="$lt_save_ifs"
8246 >      IFS=$lt_save_ifs
8247        ;;
8248      esac
8249   else
# Line 8119 | Line 8268 | if test "${with_pic+set}" = set; then :
8268      *)
8269        pic_mode=default
8270        # Look at the argument we got.  We use all the common list separators.
8271 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8271 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8272        for lt_pkg in $withval; do
8273 <        IFS="$lt_save_ifs"
8273 >        IFS=$lt_save_ifs
8274          if test "X$lt_pkg" = "X$lt_p"; then
8275            pic_mode=yes
8276          fi
8277        done
8278 <      IFS="$lt_save_ifs"
8278 >      IFS=$lt_save_ifs
8279        ;;
8280      esac
8281   else
# Line 8134 | Line 8283 | else
8283   fi
8284  
8285  
8137 test -z "$pic_mode" && pic_mode=default
8138
8286  
8287  
8288  
# Line 8151 | Line 8298 | if test "${enable_fast_install+set}" = s
8298      *)
8299        enable_fast_install=no
8300        # Look at the argument we got.  We use all the common list separators.
8301 <      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301 >      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8302        for pkg in $enableval; do
8303 <        IFS="$lt_save_ifs"
8303 >        IFS=$lt_save_ifs
8304          if test "X$pkg" = "X$p"; then
8305            enable_fast_install=yes
8306          fi
8307        done
8308 <      IFS="$lt_save_ifs"
8308 >      IFS=$lt_save_ifs
8309        ;;
8310      esac
8311   else
# Line 8172 | Line 8319 | fi
8319  
8320  
8321  
8322 +  shared_archive_member_spec=
8323 + case $host,$enable_shared in
8324 + power*-*-aix[5-9]*,yes)
8325 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8326 + $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8327 +
8328 + # Check whether --with-aix-soname was given.
8329 + if test "${with_aix_soname+set}" = set; then :
8330 +  withval=$with_aix_soname; case $withval in
8331 +    aix|svr4|both)
8332 +      ;;
8333 +    *)
8334 +      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8335 +      ;;
8336 +    esac
8337 +    lt_cv_with_aix_soname=$with_aix_soname
8338 + else
8339 +  if ${lt_cv_with_aix_soname+:} false; then :
8340 +  $as_echo_n "(cached) " >&6
8341 + else
8342 +  lt_cv_with_aix_soname=aix
8343 + fi
8344 +
8345 +    with_aix_soname=$lt_cv_with_aix_soname
8346 + fi
8347 +
8348 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8349 + $as_echo "$with_aix_soname" >&6; }
8350 +  if test aix != "$with_aix_soname"; then
8351 +    # For the AIX way of multilib, we name the shared archive member
8352 +    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8353 +    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8354 +    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8355 +    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8356 +    if test 64 = "${OBJECT_MODE-32}"; then
8357 +      shared_archive_member_spec=shr_64
8358 +    else
8359 +      shared_archive_member_spec=shr
8360 +    fi
8361 +  fi
8362 +  ;;
8363 + *)
8364 +  with_aix_soname=aix
8365 +  ;;
8366 + esac
8367 +
8368 +
8369 +
8370 +
8371 +
8372 +
8373 +
8374  
8375  
8376  
8377   # This can be used to rebuild libtool when needed
8378 < LIBTOOL_DEPS="$ltmain"
8378 > LIBTOOL_DEPS=$ltmain
8379  
8380   # Always use our own libtool.
8381   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 8225 | Line 8424 | test -z "$LN_S" && LN_S="ln -s"
8424  
8425  
8426  
8427 < if test -n "${ZSH_VERSION+set}" ; then
8427 > if test -n "${ZSH_VERSION+set}"; then
8428     setopt NO_GLOB_SUBST
8429   fi
8430  
# Line 8264 | Line 8463 | aix3*)
8463    # AIX sometimes has problems with the GCC collect2 program.  For some
8464    # reason, if we set the COLLECT_NAMES environment variable, the problems
8465    # vanish in a puff of smoke.
8466 <  if test "X${COLLECT_NAMES+set}" != Xset; then
8466 >  if test set != "${COLLECT_NAMES+set}"; then
8467      COLLECT_NAMES=
8468      export COLLECT_NAMES
8469    fi
# Line 8275 | Line 8474 | esac
8474   ofile=libtool
8475   can_build_shared=yes
8476  
8477 < # All known linkers require a `.a' archive for static linking (except MSVC,
8477 > # All known linkers require a '.a' archive for static linking (except MSVC,
8478   # which needs '.lib').
8479   libext=a
8480  
8481 < with_gnu_ld="$lt_cv_prog_gnu_ld"
8481 > with_gnu_ld=$lt_cv_prog_gnu_ld
8482  
8483 < old_CC="$CC"
8484 < old_CFLAGS="$CFLAGS"
8483 > old_CC=$CC
8484 > old_CFLAGS=$CFLAGS
8485  
8486   # Set sane defaults for various variables
8487   test -z "$CC" && CC=cc
# Line 8314 | Line 8513 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8513   else
8514    case $MAGIC_CMD in
8515   [\\/*] |  ?:[\\/]*)
8516 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8516 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8517    ;;
8518   *)
8519 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8520 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8519 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8520 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8521    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522    for ac_dir in $ac_dummy; do
8523 <    IFS="$lt_save_ifs"
8523 >    IFS=$lt_save_ifs
8524      test -z "$ac_dir" && ac_dir=.
8525 <    if test -f $ac_dir/${ac_tool_prefix}file; then
8526 <      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8525 >    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8526 >      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8527        if test -n "$file_magic_test_file"; then
8528          case $deplibs_check_method in
8529          "file_magic "*)
8530            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8531 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8532            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533              $EGREP "$file_magic_regex" > /dev/null; then
8534              :
# Line 8352 | Line 8551 | _LT_EOF
8551        break
8552      fi
8553    done
8554 <  IFS="$lt_save_ifs"
8555 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8554 >  IFS=$lt_save_ifs
8555 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8556    ;;
8557   esac
8558   fi
8559  
8560 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8560 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8561   if test -n "$MAGIC_CMD"; then
8562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563   $as_echo "$MAGIC_CMD" >&6; }
# Line 8380 | Line 8579 | if ${lt_cv_path_MAGIC_CMD+:} false; then
8579   else
8580    case $MAGIC_CMD in
8581   [\\/*] |  ?:[\\/]*)
8582 <  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8582 >  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8583    ;;
8584   *)
8585 <  lt_save_MAGIC_CMD="$MAGIC_CMD"
8586 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8585 >  lt_save_MAGIC_CMD=$MAGIC_CMD
8586 >  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8587    ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8588    for ac_dir in $ac_dummy; do
8589 <    IFS="$lt_save_ifs"
8589 >    IFS=$lt_save_ifs
8590      test -z "$ac_dir" && ac_dir=.
8591 <    if test -f $ac_dir/file; then
8592 <      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8591 >    if test -f "$ac_dir/file"; then
8592 >      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8593        if test -n "$file_magic_test_file"; then
8594          case $deplibs_check_method in
8595          "file_magic "*)
8596            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8597 <          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597 >          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8598            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8599              $EGREP "$file_magic_regex" > /dev/null; then
8600              :
# Line 8418 | Line 8617 | _LT_EOF
8617        break
8618      fi
8619    done
8620 <  IFS="$lt_save_ifs"
8621 <  MAGIC_CMD="$lt_save_MAGIC_CMD"
8620 >  IFS=$lt_save_ifs
8621 >  MAGIC_CMD=$lt_save_MAGIC_CMD
8622    ;;
8623   esac
8624   fi
8625  
8626 < MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626 > MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8627   if test -n "$MAGIC_CMD"; then
8628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8629   $as_echo "$MAGIC_CMD" >&6; }
# Line 8445 | Line 8644 | esac
8644  
8645   # Use C for the default configuration in the libtool script
8646  
8647 < lt_save_CC="$CC"
8647 > lt_save_CC=$CC
8648   ac_ext=c
8649   ac_cpp='$CPP $CPPFLAGS'
8650   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8507 | Line 8706 | if test -n "$compiler"; then
8706  
8707   lt_prog_compiler_no_builtin_flag=
8708  
8709 < if test "$GCC" = yes; then
8709 > if test yes = "$GCC"; then
8710    case $cc_basename in
8711    nvcc*)
8712      lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
# Line 8523 | Line 8722 | else
8722    lt_cv_prog_compiler_rtti_exceptions=no
8723     ac_outfile=conftest.$ac_objext
8724     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725 <   lt_compiler_flag="-fno-rtti -fno-exceptions"
8725 >   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8726     # Insert the option either (1) after the last *FLAGS variable, or
8727     # (2) before a word containing "conftest.", or (3) at the end.
8728     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8553 | Line 8752 | fi
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8753   $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8754  
8755 < if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8755 > if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8756      lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8757   else
8758      :
# Line 8571 | Line 8770 | lt_prog_compiler_pic=
8770   lt_prog_compiler_static=
8771  
8772  
8773 <  if test "$GCC" = yes; then
8773 >  if test yes = "$GCC"; then
8774      lt_prog_compiler_wl='-Wl,'
8775      lt_prog_compiler_static='-static'
8776  
8777      case $host_os in
8778        aix*)
8779        # All AIX code is PIC.
8780 <      if test "$host_cpu" = ia64; then
8780 >      if test ia64 = "$host_cpu"; then
8781          # AIX 5 now supports IA64 processor
8782          lt_prog_compiler_static='-Bstatic'
8783        fi
8784 +      lt_prog_compiler_pic='-fPIC'
8785        ;;
8786  
8787      amigaos*)
# Line 8592 | Line 8792 | lt_prog_compiler_static=
8792          ;;
8793        m68k)
8794              # FIXME: we need at least 68020 code to build shared libraries, but
8795 <            # adding the `-m68020' flag to GCC prevents building anything better,
8796 <            # like `-m68040'.
8795 >            # adding the '-m68020' flag to GCC prevents building anything better,
8796 >            # like '-m68040'.
8797              lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8798          ;;
8799        esac
# Line 8609 | Line 8809 | lt_prog_compiler_static=
8809        # Although the cygwin gcc ignores -fPIC, still need this for old-style
8810        # (--disable-auto-import) libraries
8811        lt_prog_compiler_pic='-DDLL_EXPORT'
8812 +      case $host_os in
8813 +      os2*)
8814 +        lt_prog_compiler_static='$wl-static'
8815 +        ;;
8816 +      esac
8817        ;;
8818  
8819      darwin* | rhapsody*)
# Line 8679 | Line 8884 | lt_prog_compiler_static=
8884      case $host_os in
8885      aix*)
8886        lt_prog_compiler_wl='-Wl,'
8887 <      if test "$host_cpu" = ia64; then
8887 >      if test ia64 = "$host_cpu"; then
8888          # AIX 5 now supports IA64 processor
8889          lt_prog_compiler_static='-Bstatic'
8890        else
# Line 8687 | Line 8892 | lt_prog_compiler_static=
8892        fi
8893        ;;
8894  
8895 +    darwin* | rhapsody*)
8896 +      # PIC is the default on this platform
8897 +      # Common symbols not allowed in MH_DYLIB files
8898 +      lt_prog_compiler_pic='-fno-common'
8899 +      case $cc_basename in
8900 +      nagfor*)
8901 +        # NAG Fortran compiler
8902 +        lt_prog_compiler_wl='-Wl,-Wl,,'
8903 +        lt_prog_compiler_pic='-PIC'
8904 +        lt_prog_compiler_static='-Bstatic'
8905 +        ;;
8906 +      esac
8907 +      ;;
8908 +
8909      mingw* | cygwin* | pw32* | os2* | cegcc*)
8910        # This hack is so that the source file can tell whether it is being
8911        # built for inclusion in a dll (and should export symbols for example).
8912        lt_prog_compiler_pic='-DDLL_EXPORT'
8913 +      case $host_os in
8914 +      os2*)
8915 +        lt_prog_compiler_static='$wl-static'
8916 +        ;;
8917 +      esac
8918        ;;
8919  
8920      hpux9* | hpux10* | hpux11*)
# Line 8706 | Line 8930 | lt_prog_compiler_static=
8930          ;;
8931        esac
8932        # Is there a better lt_prog_compiler_static that works with the bundled CC?
8933 <      lt_prog_compiler_static='${wl}-a ${wl}archive'
8933 >      lt_prog_compiler_static='$wl-a ${wl}archive'
8934        ;;
8935  
8936      irix5* | irix6* | nonstopux*)
# Line 8715 | Line 8939 | lt_prog_compiler_static=
8939        lt_prog_compiler_static='-non_shared'
8940        ;;
8941  
8942 <    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8942 >    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8943        case $cc_basename in
8944 <      # old Intel for x86_64 which still supported -KPIC.
8944 >      # old Intel for x86_64, which still supported -KPIC.
8945        ecc*)
8946          lt_prog_compiler_wl='-Wl,'
8947          lt_prog_compiler_pic='-KPIC'
# Line 8742 | Line 8966 | lt_prog_compiler_static=
8966          lt_prog_compiler_pic='-PIC'
8967          lt_prog_compiler_static='-Bstatic'
8968          ;;
8969 +      tcc*)
8970 +        # Fabrice Bellard et al's Tiny C Compiler
8971 +        lt_prog_compiler_wl='-Wl,'
8972 +        lt_prog_compiler_pic='-fPIC'
8973 +        lt_prog_compiler_static='-static'
8974 +        ;;
8975        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8976          # Portland Group compilers (*not* the Pentium gcc compiler,
8977          # which looks to be a dead project)
# Line 8839 | Line 9069 | lt_prog_compiler_static=
9069        ;;
9070  
9071      sysv4*MP*)
9072 <      if test -d /usr/nec ;then
9072 >      if test -d /usr/nec; then
9073          lt_prog_compiler_pic='-Kconform_pic'
9074          lt_prog_compiler_static='-Bstatic'
9075        fi
# Line 8868 | Line 9098 | lt_prog_compiler_static=
9098    fi
9099  
9100   case $host_os in
9101 <  # For platforms which do not support PIC, -DPIC is meaningless:
9101 >  # For platforms that do not support PIC, -DPIC is meaningless:
9102    *djgpp*)
9103      lt_prog_compiler_pic=
9104      ;;
# Line 8900 | Line 9130 | else
9130    lt_cv_prog_compiler_pic_works=no
9131     ac_outfile=conftest.$ac_objext
9132     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 <   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9133 >   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9134     # Insert the option either (1) after the last *FLAGS variable, or
9135     # (2) before a word containing "conftest.", or (3) at the end.
9136     # Note that $ac_compile itself does not contain backslashes and begins
# Line 8930 | Line 9160 | fi
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9161   $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9162  
9163 < if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9163 > if test yes = "$lt_cv_prog_compiler_pic_works"; then
9164      case $lt_prog_compiler_pic in
9165       "" | " "*) ;;
9166       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 8962 | Line 9192 | if ${lt_cv_prog_compiler_static_works+:}
9192    $as_echo_n "(cached) " >&6
9193   else
9194    lt_cv_prog_compiler_static_works=no
9195 <   save_LDFLAGS="$LDFLAGS"
9195 >   save_LDFLAGS=$LDFLAGS
9196     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9197     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9198     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 8981 | Line 9211 | else
9211       fi
9212     fi
9213     $RM -r conftest*
9214 <   LDFLAGS="$save_LDFLAGS"
9214 >   LDFLAGS=$save_LDFLAGS
9215  
9216   fi
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9218   $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9219  
9220 < if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9220 > if test yes = "$lt_cv_prog_compiler_static_works"; then
9221      :
9222   else
9223      lt_prog_compiler_static=
# Line 9107 | Line 9337 | $as_echo "$lt_cv_prog_compiler_c_o" >&6;
9337  
9338  
9339  
9340 < hard_links="nottested"
9341 < if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9340 > hard_links=nottested
9341 > if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9342    # do not overwrite the value of need_locks provided by the user
9343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9344   $as_echo_n "checking if we can lock with hard links... " >&6; }
# Line 9120 | Line 9350 | $as_echo_n "checking if we can lock with
9350    ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9352   $as_echo "$hard_links" >&6; }
9353 <  if test "$hard_links" = no; then
9354 <    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9355 < $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9353 >  if test no = "$hard_links"; then
9354 >    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9355 > $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9356      need_locks=warn
9357    fi
9358   else
# Line 9165 | Line 9395 | $as_echo_n "checking whether the $compil
9395    # included in the symbol list
9396    include_expsyms=
9397    # exclude_expsyms can be an extended regexp of symbols to exclude
9398 <  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9399 <  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9400 <  # as well as any symbol that contains `d'.
9398 >  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9399 >  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9400 >  # as well as any symbol that contains 'd'.
9401    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9402    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9403    # platforms (ab)use it in PIC code, but their linkers get confused if
# Line 9182 | Line 9412 | $as_echo_n "checking whether the $compil
9412      # FIXME: the MSVC++ port hasn't been tested in a loooong time
9413      # When not using gcc, we currently assume that we are using
9414      # Microsoft Visual C++.
9415 <    if test "$GCC" != yes; then
9415 >    if test yes != "$GCC"; then
9416        with_gnu_ld=no
9417      fi
9418      ;;
# Line 9190 | Line 9420 | $as_echo_n "checking whether the $compil
9420      # we just hope/assume this is gcc and not c89 (= MSVC++)
9421      with_gnu_ld=yes
9422      ;;
9423 <  openbsd*)
9423 >  openbsd* | bitrig*)
9424      with_gnu_ld=no
9425      ;;
9426    esac
# Line 9200 | Line 9430 | $as_echo_n "checking whether the $compil
9430    # On some targets, GNU ld is compatible enough with the native linker
9431    # that we're better off using the native interface for both.
9432    lt_use_gnu_ld_interface=no
9433 <  if test "$with_gnu_ld" = yes; then
9433 >  if test yes = "$with_gnu_ld"; then
9434      case $host_os in
9435        aix*)
9436          # The AIX port of GNU ld has always aspired to compatibility
# Line 9222 | Line 9452 | $as_echo_n "checking whether the $compil
9452      esac
9453    fi
9454  
9455 <  if test "$lt_use_gnu_ld_interface" = yes; then
9455 >  if test yes = "$lt_use_gnu_ld_interface"; then
9456      # If archive_cmds runs LD, not CC, wlarc should be empty
9457 <    wlarc='${wl}'
9457 >    wlarc='$wl'
9458  
9459      # Set some defaults for GNU ld with shared library support. These
9460      # are reset later if shared libraries are not supported. Putting them
9461      # here allows them to be overridden if necessary.
9462      runpath_var=LD_RUN_PATH
9463 <    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464 <    export_dynamic_flag_spec='${wl}--export-dynamic'
9463 >    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9464 >    export_dynamic_flag_spec='$wl--export-dynamic'
9465      # ancient GNU ld didn't support --whole-archive et. al.
9466      if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9467 <      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9467 >      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9468      else
9469        whole_archive_flag_spec=
9470      fi
9471      supports_anon_versioning=no
9472 <    case `$LD -v 2>&1` in
9472 >    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9473        *GNU\ gold*) supports_anon_versioning=yes ;;
9474        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9475        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
# Line 9252 | Line 9482 | $as_echo_n "checking whether the $compil
9482      case $host_os in
9483      aix[3-9]*)
9484        # On AIX/PPC, the GNU linker is very broken
9485 <      if test "$host_cpu" != ia64; then
9485 >      if test ia64 != "$host_cpu"; then
9486          ld_shlibs=no
9487          cat <<_LT_EOF 1>&2
9488  
# Line 9271 | Line 9501 | _LT_EOF
9501        case $host_cpu in
9502        powerpc)
9503              # see comment about AmigaOS4 .so support
9504 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505              archive_expsym_cmds=''
9506          ;;
9507        m68k)
# Line 9287 | Line 9517 | _LT_EOF
9517          allow_undefined_flag=unsupported
9518          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9519          # support --undefined.  This deserves some investigation.  FIXME
9520 <        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 >        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9521        else
9522          ld_shlibs=no
9523        fi
# Line 9297 | Line 9527 | _LT_EOF
9527        # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9528        # as there is no search path for DLLs.
9529        hardcode_libdir_flag_spec='-L$libdir'
9530 <      export_dynamic_flag_spec='${wl}--export-all-symbols'
9530 >      export_dynamic_flag_spec='$wl--export-all-symbols'
9531        allow_undefined_flag=unsupported
9532        always_export_symbols=no
9533        enable_shared_with_static_runtimes=yes
# Line 9305 | Line 9535 | _LT_EOF
9535        exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9536  
9537        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9538 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9539 <        # If the export-symbols file already is a .def file (1st line
9540 <        # is EXPORTS), use it as is; otherwise, prepend...
9541 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9542 <          cp $export_symbols $output_objdir/$soname.def;
9543 <        else
9544 <          echo EXPORTS > $output_objdir/$soname.def;
9545 <          cat $export_symbols >> $output_objdir/$soname.def;
9546 <        fi~
9547 <        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9538 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9539 >        # If the export-symbols file already is a .def file, use it as
9540 >        # is; otherwise, prepend EXPORTS...
9541 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9542 >          cp $export_symbols $output_objdir/$soname.def;
9543 >        else
9544 >          echo EXPORTS > $output_objdir/$soname.def;
9545 >          cat $export_symbols >> $output_objdir/$soname.def;
9546 >        fi~
9547 >        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9548        else
9549          ld_shlibs=no
9550        fi
9551        ;;
9552  
9553      haiku*)
9554 <      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 >      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555        link_all_deplibs=yes
9556        ;;
9557  
9558 +    os2*)
9559 +      hardcode_libdir_flag_spec='-L$libdir'
9560 +      hardcode_minus_L=yes
9561 +      allow_undefined_flag=unsupported
9562 +      shrext_cmds=.dll
9563 +      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9564 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9565 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9566 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9567 +        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9568 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9569 +        emximp -o $lib $output_objdir/$libname.def'
9570 +      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9571 +        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9572 +        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9573 +        $ECHO EXPORTS >> $output_objdir/$libname.def~
9574 +        prefix_cmds="$SED"~
9575 +        if test EXPORTS = "`$SED 1q $export_symbols`"; then
9576 +          prefix_cmds="$prefix_cmds -e 1d";
9577 +        fi~
9578 +        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9579 +        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9580 +        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9581 +        emximp -o $lib $output_objdir/$libname.def'
9582 +      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9583 +      enable_shared_with_static_runtimes=yes
9584 +      ;;
9585 +
9586      interix[3-9]*)
9587        hardcode_direct=no
9588        hardcode_shlibpath_var=no
9589 <      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590 <      export_dynamic_flag_spec='${wl}-E'
9589 >      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9590 >      export_dynamic_flag_spec='$wl-E'
9591        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9592        # Instead, shared libraries are loaded at an image base (0x10000000 by
9593        # default) and relocated if they conflict, which is a slow very memory
9594        # consuming and fragmenting process.  To avoid this, we pick a random,
9595        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9596        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9597 <      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9598 <      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9597 >      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9598 >      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9599        ;;
9600  
9601      gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9602        tmp_diet=no
9603 <      if test "$host_os" = linux-dietlibc; then
9603 >      if test linux-dietlibc = "$host_os"; then
9604          case $cc_basename in
9605            diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9606          esac
9607        fi
9608        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9609 <         && test "$tmp_diet" = no
9609 >         && test no = "$tmp_diet"
9610        then
9611          tmp_addflag=' $pic_flag'
9612          tmp_sharedflag='-shared'
9613          case $cc_basename,$host_cpu in
9614          pgcc*)                          # Portland Group C compiler
9615 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9615 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9616            tmp_addflag=' $pic_flag'
9617            ;;
9618          pgf77* | pgf90* | pgf95* | pgfortran*)
9619                                          # Portland Group f77 and f90 compilers
9620 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9620 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9621            tmp_addflag=' $pic_flag -Mnomain' ;;
9622          ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9623            tmp_addflag=' -i_dynamic' ;;
# Line 9370 | Line 9628 | _LT_EOF
9628          lf95*)                          # Lahey Fortran 8.1
9629            whole_archive_flag_spec=
9630            tmp_sharedflag='--shared' ;;
9631 +        nagfor*)                        # NAGFOR 5.3
9632 +          tmp_sharedflag='-Wl,-shared' ;;
9633          xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9634            tmp_sharedflag='-qmkshrobj'
9635            tmp_addflag= ;;
9636          nvcc*)  # Cuda Compiler Driver 2.2
9637 <          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9637 >          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9638            compiler_needs_object=yes
9639            ;;
9640          esac
9641          case `$CC -V 2>&1 | sed 5q` in
9642          *Sun\ C*)                       # Sun C 5.9
9643 <          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9643 >          whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9644            compiler_needs_object=yes
9645            tmp_sharedflag='-G' ;;
9646          *Sun\ F*)                       # Sun Fortran 8.3
9647            tmp_sharedflag='-G' ;;
9648          esac
9649 <        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 >        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9650  
9651 <        if test "x$supports_anon_versioning" = xyes; then
9651 >        if test yes = "$supports_anon_versioning"; then
9652            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9653 <            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9654 <            echo "local: *; };" >> $output_objdir/$libname.ver~
9655 <            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9653 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9654 >            echo "local: *; };" >> $output_objdir/$libname.ver~
9655 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9656          fi
9657  
9658          case $cc_basename in
9659 +        tcc*)
9660 +          export_dynamic_flag_spec='-rdynamic'
9661 +          ;;
9662          xlf* | bgf* | bgxlf* | mpixlf*)
9663            # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9664            whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9665 <          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 >          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9666            archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9667 <          if test "x$supports_anon_versioning" = xyes; then
9667 >          if test yes = "$supports_anon_versioning"; then
9668              archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9669 <              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9670 <              echo "local: *; };" >> $output_objdir/$libname.ver~
9671 <              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9669 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9670 >              echo "local: *; };" >> $output_objdir/$libname.ver~
9671 >              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9672            fi
9673            ;;
9674          esac
# Line 9419 | Line 9682 | _LT_EOF
9682          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9683          wlarc=
9684        else
9685 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9685 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9686 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9687        fi
9688        ;;
9689  
# Line 9438 | Line 9701 | _LT_EOF
9701  
9702   _LT_EOF
9703        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9704 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9704 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9705 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9706        else
9707          ld_shlibs=no
9708        fi
# Line 9451 | Line 9714 | _LT_EOF
9714          ld_shlibs=no
9715          cat <<_LT_EOF 1>&2
9716  
9717 < *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9717 > *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9718   *** reliably create shared libraries on SCO systems.  Therefore, libtool
9719   *** is disabling shared libraries support.  We urge you to upgrade GNU
9720   *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
# Line 9466 | Line 9729 | _LT_EOF
9729            # DT_RUNPATH tag from executables and libraries.  But doing so
9730            # requires that you compile everything twice, which is a pain.
9731            if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9732 <            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9733 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734 <            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732 >            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9733 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9734 >            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9735            else
9736              ld_shlibs=no
9737            fi
# Line 9485 | Line 9748 | _LT_EOF
9748  
9749      *)
9750        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9751 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752 <        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9752 >        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9753        else
9754          ld_shlibs=no
9755        fi
9756        ;;
9757      esac
9758  
9759 <    if test "$ld_shlibs" = no; then
9759 >    if test no = "$ld_shlibs"; then
9760        runpath_var=
9761        hardcode_libdir_flag_spec=
9762        export_dynamic_flag_spec=
# Line 9509 | Line 9772 | _LT_EOF
9772        # Note: this linker hardcodes the directories in LIBPATH if there
9773        # are no directories specified by -L.
9774        hardcode_minus_L=yes
9775 <      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9775 >      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9776          # Neither direct hardcoding nor static linking is supported with a
9777          # broken collect2.
9778          hardcode_direct=unsupported
# Line 9517 | Line 9780 | _LT_EOF
9780        ;;
9781  
9782      aix[4-9]*)
9783 <      if test "$host_cpu" = ia64; then
9783 >      if test ia64 = "$host_cpu"; then
9784          # On IA64, the linker does run time linking by default, so we don't
9785          # have to do anything special.
9786          aix_use_runtimelinking=no
9787          exp_sym_flag='-Bexport'
9788 <        no_entry_flag=""
9788 >        no_entry_flag=
9789        else
9790          # If we're using GNU nm, then we don't want the "-C" option.
9791 <        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9792 <        # Also, AIX nm treats weak defined symbols like other global
9793 <        # defined symbols, whereas GNU nm marks them as "W".
9791 >        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9792 >        # Without the "-l" option, or with the "-B" option, AIX nm treats
9793 >        # weak defined symbols like other global defined symbols, whereas
9794 >        # GNU nm marks them as "W".
9795 >        # While the 'weak' keyword is ignored in the Export File, we need
9796 >        # it in the Import File for the 'aix-soname' feature, so we have
9797 >        # to replace the "-B" option with "-P" for AIX nm.
9798          if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9799 <          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9799 >          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9800          else
9801 <          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9801 >          export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9802          fi
9803          aix_use_runtimelinking=no
9804  
9805          # Test if we are trying to use run time linking or normal
9806          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9807 <        # need to do runtime linking.
9807 >        # have runtime linking enabled, and use it for executables.
9808 >        # For shared libraries, we enable/disable runtime linking
9809 >        # depending on the kind of the shared library created -
9810 >        # when "with_aix_soname,aix_use_runtimelinking" is:
9811 >        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9812 >        # "aix,yes"  lib.so          shared, rtl:yes, for executables
9813 >        #            lib.a           static archive
9814 >        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9815 >        #            lib.a(lib.so.V) shared, rtl:no,  for executables
9816 >        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9817 >        #            lib.a(lib.so.V) shared, rtl:no
9818 >        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9819 >        #            lib.a           static archive
9820          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9821            for ld_flag in $LDFLAGS; do
9822 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9822 >          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9823              aix_use_runtimelinking=yes
9824              break
9825            fi
9826            done
9827 +          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9828 +            # With aix-soname=svr4, we create the lib.so.V shared archives only,
9829 +            # so we don't have lib.a shared libs to link our executables.
9830 +            # We have to force runtime linking in this case.
9831 +            aix_use_runtimelinking=yes
9832 +            LDFLAGS="$LDFLAGS -Wl,-brtl"
9833 +          fi
9834            ;;
9835          esac
9836  
# Line 9563 | Line 9849 | _LT_EOF
9849        hardcode_direct_absolute=yes
9850        hardcode_libdir_separator=':'
9851        link_all_deplibs=yes
9852 <      file_list_spec='${wl}-f,'
9852 >      file_list_spec='$wl-f,'
9853 >      case $with_aix_soname,$aix_use_runtimelinking in
9854 >      aix,*) ;; # traditional, no import file
9855 >      svr4,* | *,yes) # use import file
9856 >        # The Import File defines what to hardcode.
9857 >        hardcode_direct=no
9858 >        hardcode_direct_absolute=no
9859 >        ;;
9860 >      esac
9861  
9862 <      if test "$GCC" = yes; then
9862 >      if test yes = "$GCC"; then
9863          case $host_os in aix4.[012]|aix4.[012].*)
9864          # We only want to do this on AIX 4.2 and lower, the check
9865          # below for broken collect2 doesn't work under 4.3+
9866 <          collect2name=`${CC} -print-prog-name=collect2`
9866 >          collect2name=`$CC -print-prog-name=collect2`
9867            if test -f "$collect2name" &&
9868             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9869            then
# Line 9588 | Line 9882 | _LT_EOF
9882            ;;
9883          esac
9884          shared_flag='-shared'
9885 <        if test "$aix_use_runtimelinking" = yes; then
9886 <          shared_flag="$shared_flag "'${wl}-G'
9885 >        if test yes = "$aix_use_runtimelinking"; then
9886 >          shared_flag="$shared_flag "'$wl-G'
9887          fi
9888 +        # Need to ensure runtime linking is disabled for the traditional
9889 +        # shared library, or the linker may eventually find shared libraries
9890 +        # /with/ Import File - we do not want to mix them.
9891 +        shared_flag_aix='-shared'
9892 +        shared_flag_svr4='-shared $wl-G'
9893        else
9894          # not using gcc
9895 <        if test "$host_cpu" = ia64; then
9895 >        if test ia64 = "$host_cpu"; then
9896          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9897          # chokes on -Wl,-G. The following line is correct:
9898            shared_flag='-G'
9899          else
9900 <          if test "$aix_use_runtimelinking" = yes; then
9901 <            shared_flag='${wl}-G'
9900 >          if test yes = "$aix_use_runtimelinking"; then
9901 >            shared_flag='$wl-G'
9902            else
9903 <            shared_flag='${wl}-bM:SRE'
9903 >            shared_flag='$wl-bM:SRE'
9904            fi
9905 +          shared_flag_aix='$wl-bM:SRE'
9906 +          shared_flag_svr4='$wl-G'
9907          fi
9908        fi
9909  
9910 <      export_dynamic_flag_spec='${wl}-bexpall'
9910 >      export_dynamic_flag_spec='$wl-bexpall'
9911        # It seems that -bexpall does not export symbols beginning with
9912        # underscore (_), so it is better to generate a list of symbols to export.
9913        always_export_symbols=yes
9914 <      if test "$aix_use_runtimelinking" = yes; then
9914 >      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9915          # Warning - without using the other runtime loading flags (-brtl),
9916          # -berok will link without error, but may produce a broken library.
9917          allow_undefined_flag='-berok'
9918          # Determine the default libpath from the value encoded in an
9919          # empty executable.
9920 <        if test "${lt_cv_aix_libpath+set}" = set; then
9920 >        if test set = "${lt_cv_aix_libpath+set}"; then
9921    aix_libpath=$lt_cv_aix_libpath
9922   else
9923    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9651 | Line 9952 | fi
9952   rm -f core conftest.err conftest.$ac_objext \
9953      conftest$ac_exeext conftest.$ac_ext
9954    if test -z "$lt_cv_aix_libpath_"; then
9955 <    lt_cv_aix_libpath_="/usr/lib:/lib"
9955 >    lt_cv_aix_libpath_=/usr/lib:/lib
9956    fi
9957  
9958   fi
# Line 9659 | Line 9960 | fi
9960    aix_libpath=$lt_cv_aix_libpath_
9961   fi
9962  
9963 <        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9964 <        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9963 >        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9964 >        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9965        else
9966 <        if test "$host_cpu" = ia64; then
9967 <          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9966 >        if test ia64 = "$host_cpu"; then
9967 >          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9968            allow_undefined_flag="-z nodefs"
9969 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9969 >          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9970          else
9971           # Determine the default libpath from the value encoded in an
9972           # empty executable.
9973 <         if test "${lt_cv_aix_libpath+set}" = set; then
9973 >         if test set = "${lt_cv_aix_libpath+set}"; then
9974    aix_libpath=$lt_cv_aix_libpath
9975   else
9976    if ${lt_cv_aix_libpath_+:} false; then :
# Line 9704 | Line 10005 | fi
10005   rm -f core conftest.err conftest.$ac_objext \
10006      conftest$ac_exeext conftest.$ac_ext
10007    if test -z "$lt_cv_aix_libpath_"; then
10008 <    lt_cv_aix_libpath_="/usr/lib:/lib"
10008 >    lt_cv_aix_libpath_=/usr/lib:/lib
10009    fi
10010  
10011   fi
# Line 9712 | Line 10013 | fi
10013    aix_libpath=$lt_cv_aix_libpath_
10014   fi
10015  
10016 <         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10016 >         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10017            # Warning - without using the other run time loading flags,
10018            # -berok will link without error, but may produce a broken library.
10019 <          no_undefined_flag=' ${wl}-bernotok'
10020 <          allow_undefined_flag=' ${wl}-berok'
10021 <          if test "$with_gnu_ld" = yes; then
10019 >          no_undefined_flag=' $wl-bernotok'
10020 >          allow_undefined_flag=' $wl-berok'
10021 >          if test yes = "$with_gnu_ld"; then
10022              # We only use this code for GNU lds that support --whole-archive.
10023 <            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10023 >            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10024            else
10025              # Exported symbols can be pulled into shared objects from archives
10026              whole_archive_flag_spec='$convenience'
10027            fi
10028            archive_cmds_need_lc=yes
10029 <          # This is similar to how AIX traditionally builds its shared libraries.
10030 <          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10029 >          archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10030 >          # -brtl affects multiple linker settings, -berok does not and is overridden later
10031 >          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10032 >          if test svr4 != "$with_aix_soname"; then
10033 >            # This is similar to how AIX traditionally builds its shared libraries.
10034 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10035 >          fi
10036 >          if test aix != "$with_aix_soname"; then
10037 >            archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10038 >          else
10039 >            # used by -dlpreopen to get the symbols
10040 >            archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10041 >          fi
10042 >          archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10043          fi
10044        fi
10045        ;;
# Line 9735 | Line 10048 | fi
10048        case $host_cpu in
10049        powerpc)
10050              # see comment about AmigaOS4 .so support
10051 <            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051 >            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10052              archive_expsym_cmds=''
10053          ;;
10054        m68k)
# Line 9765 | Line 10078 | fi
10078          # Tell ltmain to make .lib files, not .a files.
10079          libext=lib
10080          # Tell ltmain to make .dll files, not .so files.
10081 <        shrext_cmds=".dll"
10081 >        shrext_cmds=.dll
10082          # FIXME: Setting linknames here is a bad hack.
10083 <        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10084 <        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10085 <            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10086 <          else
10087 <            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10088 <          fi~
10089 <          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10090 <          linknames='
10083 >        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10084 >        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10085 >            cp "$export_symbols" "$output_objdir/$soname.def";
10086 >            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10087 >          else
10088 >            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10089 >          fi~
10090 >          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10091 >          linknames='
10092          # The linker will not automatically build a static lib if we build a DLL.
10093          # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10094          enable_shared_with_static_runtimes=yes
# Line 9783 | Line 10097 | fi
10097          # Don't use ranlib
10098          old_postinstall_cmds='chmod 644 $oldlib'
10099          postlink_cmds='lt_outputfile="@OUTPUT@"~
10100 <          lt_tool_outputfile="@TOOL_OUTPUT@"~
10101 <          case $lt_outputfile in
10102 <            *.exe|*.EXE) ;;
10103 <            *)
10104 <              lt_outputfile="$lt_outputfile.exe"
10105 <              lt_tool_outputfile="$lt_tool_outputfile.exe"
10106 <              ;;
10107 <          esac~
10108 <          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10109 <            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10110 <            $RM "$lt_outputfile.manifest";
10111 <          fi'
10100 >          lt_tool_outputfile="@TOOL_OUTPUT@"~
10101 >          case $lt_outputfile in
10102 >            *.exe|*.EXE) ;;
10103 >            *)
10104 >              lt_outputfile=$lt_outputfile.exe
10105 >              lt_tool_outputfile=$lt_tool_outputfile.exe
10106 >              ;;
10107 >          esac~
10108 >          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10109 >            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10110 >            $RM "$lt_outputfile.manifest";
10111 >          fi'
10112          ;;
10113        *)
10114          # Assume MSVC wrapper
# Line 9803 | Line 10117 | fi
10117          # Tell ltmain to make .lib files, not .a files.
10118          libext=lib
10119          # Tell ltmain to make .dll files, not .so files.
10120 <        shrext_cmds=".dll"
10120 >        shrext_cmds=.dll
10121          # FIXME: Setting linknames here is a bad hack.
10122          archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10123          # The linker will automatically build a .lib file if we build a DLL.
# Line 9822 | Line 10136 | fi
10136    hardcode_direct=no
10137    hardcode_automatic=yes
10138    hardcode_shlibpath_var=unsupported
10139 <  if test "$lt_cv_ld_force_load" = "yes"; then
10140 <    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10139 >  if test yes = "$lt_cv_ld_force_load"; then
10140 >    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10141  
10142    else
10143      whole_archive_flag_spec=''
10144    fi
10145    link_all_deplibs=yes
10146 <  allow_undefined_flag="$_lt_dar_allow_undefined"
10146 >  allow_undefined_flag=$_lt_dar_allow_undefined
10147    case $cc_basename in
10148 <     ifort*) _lt_dar_can_shared=yes ;;
10148 >     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10149       *) _lt_dar_can_shared=$GCC ;;
10150    esac
10151 <  if test "$_lt_dar_can_shared" = "yes"; then
10151 >  if test yes = "$_lt_dar_can_shared"; then
10152      output_verbose_link_cmd=func_echo_all
10153 <    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10154 <    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10155 <    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10156 <    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10153 >    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10154 >    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10155 >    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10156 >    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10157  
10158    else
10159    ld_shlibs=no
# Line 9881 | Line 10195 | fi
10195        ;;
10196  
10197      hpux9*)
10198 <      if test "$GCC" = yes; then
10199 <        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10198 >      if test yes = "$GCC"; then
10199 >        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10200        else
10201 <        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'
10201 >        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10202        fi
10203 <      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10203 >      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10204        hardcode_libdir_separator=:
10205        hardcode_direct=yes
10206  
10207        # hardcode_minus_L: Not really in the search PATH,
10208        # but as the default location of the library.
10209        hardcode_minus_L=yes
10210 <      export_dynamic_flag_spec='${wl}-E'
10210 >      export_dynamic_flag_spec='$wl-E'
10211        ;;
10212  
10213      hpux10*)
10214 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10215 <        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10214 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10215 >        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10216        else
10217          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10218        fi
10219 <      if test "$with_gnu_ld" = no; then
10220 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219 >      if test no = "$with_gnu_ld"; then
10220 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10221          hardcode_libdir_separator=:
10222          hardcode_direct=yes
10223          hardcode_direct_absolute=yes
10224 <        export_dynamic_flag_spec='${wl}-E'
10224 >        export_dynamic_flag_spec='$wl-E'
10225          # hardcode_minus_L: Not really in the search PATH,
10226          # but as the default location of the library.
10227          hardcode_minus_L=yes
# Line 9915 | Line 10229 | fi
10229        ;;
10230  
10231      hpux11*)
10232 <      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10232 >      if test yes,no = "$GCC,$with_gnu_ld"; then
10233          case $host_cpu in
10234          hppa*64*)
10235 <          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 >          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10236            ;;
10237          ia64*)
10238 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10238 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10239            ;;
10240          *)
10241 <          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241 >          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10242            ;;
10243          esac
10244        else
10245          case $host_cpu in
10246          hppa*64*)
10247 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 >          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10248            ;;
10249          ia64*)
10250 <          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250 >          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10251            ;;
10252          *)
10253  
# Line 9945 | Line 10259 | if ${lt_cv_prog_compiler__b+:} false; th
10259    $as_echo_n "(cached) " >&6
10260   else
10261    lt_cv_prog_compiler__b=no
10262 <   save_LDFLAGS="$LDFLAGS"
10262 >   save_LDFLAGS=$LDFLAGS
10263     LDFLAGS="$LDFLAGS -b"
10264     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10265     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# Line 9964 | Line 10278 | else
10278       fi
10279     fi
10280     $RM -r conftest*
10281 <   LDFLAGS="$save_LDFLAGS"
10281 >   LDFLAGS=$save_LDFLAGS
10282  
10283   fi
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10285   $as_echo "$lt_cv_prog_compiler__b" >&6; }
10286  
10287 < if test x"$lt_cv_prog_compiler__b" = xyes; then
10288 <    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287 > if test yes = "$lt_cv_prog_compiler__b"; then
10288 >    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10289   else
10290      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10291   fi
# Line 9979 | Line 10293 | fi
10293            ;;
10294          esac
10295        fi
10296 <      if test "$with_gnu_ld" = no; then
10297 <        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10296 >      if test no = "$with_gnu_ld"; then
10297 >        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10298          hardcode_libdir_separator=:
10299  
10300          case $host_cpu in
# Line 9991 | Line 10305 | fi
10305          *)
10306            hardcode_direct=yes
10307            hardcode_direct_absolute=yes
10308 <          export_dynamic_flag_spec='${wl}-E'
10308 >          export_dynamic_flag_spec='$wl-E'
10309  
10310            # hardcode_minus_L: Not really in the search PATH,
10311            # but as the default location of the library.
# Line 10002 | Line 10316 | fi
10316        ;;
10317  
10318      irix5* | irix6* | nonstopux*)
10319 <      if test "$GCC" = yes; then
10320 <        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10319 >      if test yes = "$GCC"; then
10320 >        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10321          # Try to use the -exported_symbol ld option, if it does not
10322          # work, assume that -exports_file does not work either and
10323          # implicitly export all symbols.
# Line 10013 | Line 10327 | $as_echo_n "checking whether the $host_o
10327   if ${lt_cv_irix_exported_symbol+:} false; then :
10328    $as_echo_n "(cached) " >&6
10329   else
10330 <  save_LDFLAGS="$LDFLAGS"
10331 <           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10330 >  save_LDFLAGS=$LDFLAGS
10331 >           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10332             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333   /* end confdefs.h.  */
10334   int foo (void) { return 0; }
# Line 10026 | Line 10340 | else
10340   fi
10341   rm -f core conftest.err conftest.$ac_objext \
10342      conftest$ac_exeext conftest.$ac_ext
10343 <           LDFLAGS="$save_LDFLAGS"
10343 >           LDFLAGS=$save_LDFLAGS
10344   fi
10345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10346   $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10347 <        if test "$lt_cv_irix_exported_symbol" = yes; then
10348 <          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10347 >        if test yes = "$lt_cv_irix_exported_symbol"; then
10348 >          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10349          fi
10350        else
10351 <        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10352 <        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10351 >        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10352 >        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10353        fi
10354        archive_cmds_need_lc='no'
10355 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10355 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10356        hardcode_libdir_separator=:
10357        inherit_rpath=yes
10358        link_all_deplibs=yes
10359        ;;
10360  
10361 +    linux*)
10362 +      case $cc_basename in
10363 +      tcc*)
10364 +        # Fabrice Bellard et al's Tiny C Compiler
10365 +        ld_shlibs=yes
10366 +        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367 +        ;;
10368 +      esac
10369 +      ;;
10370 +
10371      netbsd*)
10372        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10373          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 10058 | Line 10382 | $as_echo "$lt_cv_irix_exported_symbol" >
10382      newsos6)
10383        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384        hardcode_direct=yes
10385 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10385 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10386        hardcode_libdir_separator=:
10387        hardcode_shlibpath_var=no
10388        ;;
# Line 10066 | Line 10390 | $as_echo "$lt_cv_irix_exported_symbol" >
10390      *nto* | *qnx*)
10391        ;;
10392  
10393 <    openbsd*)
10393 >    openbsd* | bitrig*)
10394        if test -f /usr/libexec/ld.so; then
10395          hardcode_direct=yes
10396          hardcode_shlibpath_var=no
10397          hardcode_direct_absolute=yes
10398 <        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10399            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10400 <          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10401 <          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10402 <          export_dynamic_flag_spec='${wl}-E'
10400 >          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10401 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10402 >          export_dynamic_flag_spec='$wl-E'
10403          else
10404 <          case $host_os in
10405 <           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10082 <             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083 <             hardcode_libdir_flag_spec='-R$libdir'
10084 <             ;;
10085 <           *)
10086 <             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 <             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 <             ;;
10089 <          esac
10404 >          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10405 >          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10406          fi
10407        else
10408          ld_shlibs=no
# Line 10097 | Line 10413 | $as_echo "$lt_cv_irix_exported_symbol" >
10413        hardcode_libdir_flag_spec='-L$libdir'
10414        hardcode_minus_L=yes
10415        allow_undefined_flag=unsupported
10416 <      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'
10417 <      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10416 >      shrext_cmds=.dll
10417 >      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10418 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10419 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10420 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10421 >        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10422 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10423 >        emximp -o $lib $output_objdir/$libname.def'
10424 >      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10425 >        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10426 >        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10427 >        $ECHO EXPORTS >> $output_objdir/$libname.def~
10428 >        prefix_cmds="$SED"~
10429 >        if test EXPORTS = "`$SED 1q $export_symbols`"; then
10430 >          prefix_cmds="$prefix_cmds -e 1d";
10431 >        fi~
10432 >        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10433 >        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10434 >        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10435 >        emximp -o $lib $output_objdir/$libname.def'
10436 >      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10437 >      enable_shared_with_static_runtimes=yes
10438        ;;
10439  
10440      osf3*)
10441 <      if test "$GCC" = yes; then
10442 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10443 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10441 >      if test yes = "$GCC"; then
10442 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10443 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10444        else
10445          allow_undefined_flag=' -expect_unresolved \*'
10446 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10446 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10447        fi
10448        archive_cmds_need_lc='no'
10449 <      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10449 >      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10450        hardcode_libdir_separator=:
10451        ;;
10452  
10453      osf4* | osf5*)      # as osf3* with the addition of -msym flag
10454 <      if test "$GCC" = yes; then
10455 <        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10456 <        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10457 <        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10454 >      if test yes = "$GCC"; then
10455 >        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10456 >        archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10457 >        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10458        else
10459          allow_undefined_flag=' -expect_unresolved \*'
10460 <        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10460 >        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10461          archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10462 <        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10462 >          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10463  
10464          # Both c and cxx compiler support -rpath directly
10465          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 10134 | Line 10470 | $as_echo "$lt_cv_irix_exported_symbol" >
10470  
10471      solaris*)
10472        no_undefined_flag=' -z defs'
10473 <      if test "$GCC" = yes; then
10474 <        wlarc='${wl}'
10475 <        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473 >      if test yes = "$GCC"; then
10474 >        wlarc='$wl'
10475 >        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10476          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477 <          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10477 >          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10478        else
10479          case `$CC -V 2>&1` in
10480          *"Compilers 5.0"*)
10481            wlarc=''
10482 <          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482 >          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10484 <          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10484 >            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10485            ;;
10486          *)
10487 <          wlarc='${wl}'
10488 <          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10487 >          wlarc='$wl'
10488 >          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10489            archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10490 <          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10490 >            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10491            ;;
10492          esac
10493        fi
# Line 10161 | Line 10497 | $as_echo "$lt_cv_irix_exported_symbol" >
10497        solaris2.[0-5] | solaris2.[0-5].*) ;;
10498        *)
10499          # The compiler driver will combine and reorder linker options,
10500 <        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10500 >        # but understands '-z linker_flag'.  GCC discards it without '$wl',
10501          # but is careful enough not to reorder.
10502          # Supported since Solaris 2.6 (maybe 2.5.1?)
10503 <        if test "$GCC" = yes; then
10504 <          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10503 >        if test yes = "$GCC"; then
10504 >          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10505          else
10506            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10507          fi
# Line 10175 | Line 10511 | $as_echo "$lt_cv_irix_exported_symbol" >
10511        ;;
10512  
10513      sunos4*)
10514 <      if test "x$host_vendor" = xsequent; then
10514 >      if test sequent = "$host_vendor"; then
10515          # Use $CC to link under sequent, because it throws in some extra .o
10516          # files that make .init and .fini sections work.
10517 <        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10517 >        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10518        else
10519          archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10520        fi
# Line 10227 | Line 10563 | $as_echo "$lt_cv_irix_exported_symbol" >
10563        ;;
10564  
10565      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10566 <      no_undefined_flag='${wl}-z,text'
10566 >      no_undefined_flag='$wl-z,text'
10567        archive_cmds_need_lc=no
10568        hardcode_shlibpath_var=no
10569        runpath_var='LD_RUN_PATH'
10570  
10571 <      if test "$GCC" = yes; then
10572 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571 >      if test yes = "$GCC"; then
10572 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10574        else
10575 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10575 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10577        fi
10578        ;;
10579  
10580      sysv5* | sco3.2v5* | sco5v6*)
10581 <      # Note: We can NOT use -z defs as we might desire, because we do not
10581 >      # Note: We CANNOT use -z defs as we might desire, because we do not
10582        # link with -lc, and that would cause any symbols used from libc to
10583        # always be unresolved, which means just about no library would
10584        # ever link correctly.  If we're not using GNU ld we use -z text
10585        # though, which does catch some bad symbols but isn't as heavy-handed
10586        # as -z defs.
10587 <      no_undefined_flag='${wl}-z,text'
10588 <      allow_undefined_flag='${wl}-z,nodefs'
10587 >      no_undefined_flag='$wl-z,text'
10588 >      allow_undefined_flag='$wl-z,nodefs'
10589        archive_cmds_need_lc=no
10590        hardcode_shlibpath_var=no
10591 <      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10591 >      hardcode_libdir_flag_spec='$wl-R,$libdir'
10592        hardcode_libdir_separator=':'
10593        link_all_deplibs=yes
10594 <      export_dynamic_flag_spec='${wl}-Bexport'
10594 >      export_dynamic_flag_spec='$wl-Bexport'
10595        runpath_var='LD_RUN_PATH'
10596  
10597 <      if test "$GCC" = yes; then
10598 <        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10599 <        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 >      if test yes = "$GCC"; then
10598 >        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10599 >        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600        else
10601 <        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10602 <        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 >        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10602 >        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603        fi
10604        ;;
10605  
# Line 10278 | Line 10614 | $as_echo "$lt_cv_irix_exported_symbol" >
10614        ;;
10615      esac
10616  
10617 <    if test x$host_vendor = xsni; then
10617 >    if test sni = "$host_vendor"; then
10618        case $host in
10619        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10620 <        export_dynamic_flag_spec='${wl}-Blargedynsym'
10620 >        export_dynamic_flag_spec='$wl-Blargedynsym'
10621          ;;
10622        esac
10623      fi
# Line 10289 | Line 10625 | $as_echo "$lt_cv_irix_exported_symbol" >
10625  
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10627   $as_echo "$ld_shlibs" >&6; }
10628 < test "$ld_shlibs" = no && can_build_shared=no
10628 > test no = "$ld_shlibs" && can_build_shared=no
10629  
10630   with_gnu_ld=$with_gnu_ld
10631  
# Line 10315 | Line 10651 | x|xyes)
10651    # Assume -lc should be added
10652    archive_cmds_need_lc=yes
10653  
10654 <  if test "$enable_shared" = yes && test "$GCC" = yes; then
10654 >  if test yes,yes = "$GCC,$enable_shared"; then
10655      case $archive_cmds in
10656      *'~'*)
10657        # FIXME: we may have to deal with multi-command sequences.
# Line 10530 | Line 10866 | esac
10866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10867   $as_echo_n "checking dynamic linker characteristics... " >&6; }
10868  
10869 < if test "$GCC" = yes; then
10869 > if test yes = "$GCC"; then
10870    case $host_os in
10871 <    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10872 <    *) lt_awk_arg="/^libraries:/" ;;
10871 >    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10872 >    *) lt_awk_arg='/^libraries:/' ;;
10873    esac
10874    case $host_os in
10875 <    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10876 <    *) lt_sed_strip_eq="s,=/,/,g" ;;
10875 >    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10876 >    *) lt_sed_strip_eq='s|=/|/|g' ;;
10877    esac
10878    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10879    case $lt_search_path_spec in
# Line 10553 | Line 10889 | if test "$GCC" = yes; then
10889      ;;
10890    esac
10891    # Ok, now we have the path, separated by spaces, we can step through it
10892 <  # and add multilib dir if necessary.
10892 >  # and add multilib dir if necessary...
10893    lt_tmp_lt_search_path_spec=
10894 <  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10894 >  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10895 >  # ...but if some path component already ends with the multilib dir we assume
10896 >  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10897 >  case "$lt_multi_os_dir; $lt_search_path_spec " in
10898 >  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10899 >    lt_multi_os_dir=
10900 >    ;;
10901 >  esac
10902    for lt_sys_path in $lt_search_path_spec; do
10903 <    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10904 <      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10905 <    else
10903 >    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10904 >      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10905 >    elif test -n "$lt_multi_os_dir"; then
10906        test -d "$lt_sys_path" && \
10907          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10908      fi
10909    done
10910    lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10911 < BEGIN {RS=" "; FS="/|\n";} {
10912 <  lt_foo="";
10913 <  lt_count=0;
10911 > BEGIN {RS = " "; FS = "/|\n";} {
10912 >  lt_foo = "";
10913 >  lt_count = 0;
10914    for (lt_i = NF; lt_i > 0; lt_i--) {
10915      if ($lt_i != "" && $lt_i != ".") {
10916        if ($lt_i == "..") {
10917          lt_count++;
10918        } else {
10919          if (lt_count == 0) {
10920 <          lt_foo="/" $lt_i lt_foo;
10920 >          lt_foo = "/" $lt_i lt_foo;
10921          } else {
10922            lt_count--;
10923          }
# Line 10588 | Line 10931 | BEGIN {RS=" "; FS="/|\n";} {
10931    # for these hosts.
10932    case $host_os in
10933      mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10934 <      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10934 >      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10935    esac
10936    sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10937   else
# Line 10597 | Line 10940 | fi
10940   library_names_spec=
10941   libname_spec='lib$name'
10942   soname_spec=
10943 < shrext_cmds=".so"
10943 > shrext_cmds=.so
10944   postinstall_cmds=
10945   postuninstall_cmds=
10946   finish_cmds=
# Line 10617 | Line 10960 | need_version=unknown
10960   case $host_os in
10961   aix3*)
10962    version_type=linux # correct to gnu/linux during the next big refactor
10963 <  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10963 >  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10964    shlibpath_var=LIBPATH
10965  
10966    # AIX 3 has no versioning support, so we append a major version to the name.
10967 <  soname_spec='${libname}${release}${shared_ext}$major'
10967 >  soname_spec='$libname$release$shared_ext$major'
10968    ;;
10969  
10970   aix[4-9]*)
# Line 10629 | Line 10972 | aix[4-9]*)
10972    need_lib_prefix=no
10973    need_version=no
10974    hardcode_into_libs=yes
10975 <  if test "$host_cpu" = ia64; then
10975 >  if test ia64 = "$host_cpu"; then
10976      # AIX 5 supports IA64
10977 <    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10977 >    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10978      shlibpath_var=LD_LIBRARY_PATH
10979    else
10980      # With GCC up to 2.95.x, collect2 would create an import file
10981      # for dependence libraries.  The import file would start with
10982 <    # the line `#! .'.  This would cause the generated library to
10983 <    # depend on `.', always an invalid library.  This was fixed in
10982 >    # the line '#! .'.  This would cause the generated library to
10983 >    # depend on '.', always an invalid library.  This was fixed in
10984      # development snapshots of GCC prior to 3.0.
10985      case $host_os in
10986        aix4 | aix4.[01] | aix4.[01].*)
10987        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10988             echo ' yes '
10989 <           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10989 >           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10990          :
10991        else
10992          can_build_shared=no
10993        fi
10994        ;;
10995      esac
10996 <    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10996 >    # Using Import Files as archive members, it is possible to support
10997 >    # filename-based versioning of shared library archives on AIX. While
10998 >    # this would work for both with and without runtime linking, it will
10999 >    # prevent static linking of such archives. So we do filename-based
11000 >    # shared library versioning with .so extension only, which is used
11001 >    # when both runtime linking and shared linking is enabled.
11002 >    # Unfortunately, runtime linking may impact performance, so we do
11003 >    # not want this to be the default eventually. Also, we use the
11004 >    # versioned .so libs for executables only if there is the -brtl
11005 >    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11006 >    # To allow for filename-based versioning support, we need to create
11007 >    # libNAME.so.V as an archive file, containing:
11008 >    # *) an Import File, referring to the versioned filename of the
11009 >    #    archive as well as the shared archive member, telling the
11010 >    #    bitwidth (32 or 64) of that shared object, and providing the
11011 >    #    list of exported symbols of that shared object, eventually
11012 >    #    decorated with the 'weak' keyword
11013 >    # *) the shared object with the F_LOADONLY flag set, to really avoid
11014 >    #    it being seen by the linker.
11015 >    # At run time we better use the real file rather than another symlink,
11016 >    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11017 >
11018 >    case $with_aix_soname,$aix_use_runtimelinking in
11019 >    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11020      # soname into executable. Probably we can add versioning support to
11021      # collect2, so additional links can be useful in future.
11022 <    if test "$aix_use_runtimelinking" = yes; then
11022 >    aix,yes) # traditional libtool
11023 >      dynamic_linker='AIX unversionable lib.so'
11024        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11025        # instead of lib<name>.a to let people know that these are not
11026        # typical AIX shared libraries.
11027 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 <    else
11027 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028 >      ;;
11029 >    aix,no) # traditional AIX only
11030 >      dynamic_linker='AIX lib.a(lib.so.V)'
11031        # We preserve .a as extension for shared libraries through AIX4.2
11032        # and later when we are not doing run time linking.
11033 <      library_names_spec='${libname}${release}.a $libname.a'
11034 <      soname_spec='${libname}${release}${shared_ext}$major'
11035 <    fi
11033 >      library_names_spec='$libname$release.a $libname.a'
11034 >      soname_spec='$libname$release$shared_ext$major'
11035 >      ;;
11036 >    svr4,*) # full svr4 only
11037 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11038 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11039 >      # We do not specify a path in Import Files, so LIBPATH fires.
11040 >      shlibpath_overrides_runpath=yes
11041 >      ;;
11042 >    *,yes) # both, prefer svr4
11043 >      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11044 >      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11045 >      # unpreferred sharedlib libNAME.a needs extra handling
11046 >      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11047 >      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11048 >      # We do not specify a path in Import Files, so LIBPATH fires.
11049 >      shlibpath_overrides_runpath=yes
11050 >      ;;
11051 >    *,no) # both, prefer aix
11052 >      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11053 >      library_names_spec='$libname$release.a $libname.a'
11054 >      soname_spec='$libname$release$shared_ext$major'
11055 >      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11056 >      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11057 >      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11058 >      ;;
11059 >    esac
11060      shlibpath_var=LIBPATH
11061    fi
11062    ;;
# Line 10673 | Line 11066 | amigaos*)
11066    powerpc)
11067      # Since July 2007 AmigaOS4 officially supports .so libraries.
11068      # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11069 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070      ;;
11071    m68k)
11072      library_names_spec='$libname.ixlibrary $libname.a'
11073      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11074 <    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11074 >    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11075      ;;
11076    esac
11077    ;;
11078  
11079   beos*)
11080 <  library_names_spec='${libname}${shared_ext}'
11080 >  library_names_spec='$libname$shared_ext'
11081    dynamic_linker="$host_os ld.so"
11082    shlibpath_var=LIBRARY_PATH
11083    ;;
# Line 10692 | Line 11085 | beos*)
11085   bsdi[45]*)
11086    version_type=linux # correct to gnu/linux during the next big refactor
11087    need_version=no
11088 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 <  soname_spec='${libname}${release}${shared_ext}$major'
11088 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 >  soname_spec='$libname$release$shared_ext$major'
11090    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11091    shlibpath_var=LD_LIBRARY_PATH
11092    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
# Line 10705 | Line 11098 | bsdi[45]*)
11098  
11099   cygwin* | mingw* | pw32* | cegcc*)
11100    version_type=windows
11101 <  shrext_cmds=".dll"
11101 >  shrext_cmds=.dll
11102    need_version=no
11103    need_lib_prefix=no
11104  
# Line 10714 | Line 11107 | cygwin* | mingw* | pw32* | cegcc*)
11107      # gcc
11108      library_names_spec='$libname.dll.a'
11109      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11110 <    postinstall_cmds='base_file=`basename \${file}`~
11111 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11110 >    postinstall_cmds='base_file=`basename \$file`~
11111 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11112        dldir=$destdir/`dirname \$dlpath`~
11113        test -d \$dldir || mkdir -p \$dldir~
11114        $install_prog $dir/$dlname \$dldir/$dlname~
# Line 10731 | Line 11124 | cygwin* | mingw* | pw32* | cegcc*)
11124      case $host_os in
11125      cygwin*)
11126        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11127 <      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11127 >      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11128  
11129        sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11130        ;;
11131      mingw* | cegcc*)
11132        # MinGW DLLs use traditional 'lib' prefix
11133 <      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133 >      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11134        ;;
11135      pw32*)
11136        # pw32 DLLs use 'pw' prefix rather than 'lib'
11137 <      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11137 >      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11138        ;;
11139      esac
11140      dynamic_linker='Win32 ld.exe'
# Line 10750 | Line 11143 | cygwin* | mingw* | pw32* | cegcc*)
11143    *,cl*)
11144      # Native MSVC
11145      libname_spec='$name'
11146 <    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11147 <    library_names_spec='${libname}.dll.lib'
11146 >    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11147 >    library_names_spec='$libname.dll.lib'
11148  
11149      case $build_os in
11150      mingw*)
# Line 10778 | Line 11171 | cygwin* | mingw* | pw32* | cegcc*)
11171        sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11172        ;;
11173      *)
11174 <      sys_lib_search_path_spec="$LIB"
11174 >      sys_lib_search_path_spec=$LIB
11175        if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11176          # It is most probably a Windows format PATH.
11177          sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
# Line 10791 | Line 11184 | cygwin* | mingw* | pw32* | cegcc*)
11184      esac
11185  
11186      # DLL is installed to $(libdir)/../bin by postinstall_cmds
11187 <    postinstall_cmds='base_file=`basename \${file}`~
11188 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11187 >    postinstall_cmds='base_file=`basename \$file`~
11188 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11189        dldir=$destdir/`dirname \$dlpath`~
11190        test -d \$dldir || mkdir -p \$dldir~
11191        $install_prog $dir/$dlname \$dldir/$dlname'
# Line 10805 | Line 11198 | cygwin* | mingw* | pw32* | cegcc*)
11198  
11199    *)
11200      # Assume MSVC wrapper
11201 <    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11201 >    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11202      dynamic_linker='Win32 ld.exe'
11203      ;;
11204    esac
# Line 10818 | Line 11211 | darwin* | rhapsody*)
11211    version_type=darwin
11212    need_lib_prefix=no
11213    need_version=no
11214 <  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11215 <  soname_spec='${libname}${release}${major}$shared_ext'
11214 >  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11215 >  soname_spec='$libname$release$major$shared_ext'
11216    shlibpath_overrides_runpath=yes
11217    shlibpath_var=DYLD_LIBRARY_PATH
11218    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
# Line 10832 | Line 11225 | dgux*)
11225    version_type=linux # correct to gnu/linux during the next big refactor
11226    need_lib_prefix=no
11227    need_version=no
11228 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11229 <  soname_spec='${libname}${release}${shared_ext}$major'
11228 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229 >  soname_spec='$libname$release$shared_ext$major'
11230    shlibpath_var=LD_LIBRARY_PATH
11231    ;;
11232  
# Line 10851 | Line 11244 | freebsd* | dragonfly*)
11244    version_type=freebsd-$objformat
11245    case $version_type in
11246      freebsd-elf*)
11247 <      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11247 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248        need_version=no
11249        need_lib_prefix=no
11250        ;;
11251      freebsd-*)
11252 <      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11252 >      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11253        need_version=yes
11254        ;;
11255    esac
# Line 10881 | Line 11274 | freebsd* | dragonfly*)
11274    esac
11275    ;;
11276  
10884 gnu*)
10885  version_type=linux # correct to gnu/linux during the next big refactor
10886  need_lib_prefix=no
10887  need_version=no
10888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10889  soname_spec='${libname}${release}${shared_ext}$major'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  shlibpath_overrides_runpath=no
10892  hardcode_into_libs=yes
10893  ;;
10894
11277   haiku*)
11278    version_type=linux # correct to gnu/linux during the next big refactor
11279    need_lib_prefix=no
11280    need_version=no
11281    dynamic_linker="$host_os runtime_loader"
11282 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11283 <  soname_spec='${libname}${release}${shared_ext}$major'
11282 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283 >  soname_spec='$libname$release$shared_ext$major'
11284    shlibpath_var=LIBRARY_PATH
11285 <  shlibpath_overrides_runpath=yes
11285 >  shlibpath_overrides_runpath=no
11286    sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11287    hardcode_into_libs=yes
11288    ;;
# Line 10918 | Line 11300 | hpux9* | hpux10* | hpux11*)
11300      dynamic_linker="$host_os dld.so"
11301      shlibpath_var=LD_LIBRARY_PATH
11302      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 <    soname_spec='${libname}${release}${shared_ext}$major'
11305 <    if test "X$HPUX_IA64_MODE" = X32; then
11303 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 >    soname_spec='$libname$release$shared_ext$major'
11305 >    if test 32 = "$HPUX_IA64_MODE"; then
11306        sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11307      else
11308        sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
# Line 10933 | Line 11315 | hpux9* | hpux10* | hpux11*)
11315      dynamic_linker="$host_os dld.sl"
11316      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11317      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 <    soname_spec='${libname}${release}${shared_ext}$major'
11318 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319 >    soname_spec='$libname$release$shared_ext$major'
11320      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11321      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322      ;;
# Line 10943 | Line 11325 | hpux9* | hpux10* | hpux11*)
11325      dynamic_linker="$host_os dld.sl"
11326      shlibpath_var=SHLIB_PATH
11327      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11328 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 <    soname_spec='${libname}${release}${shared_ext}$major'
11328 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329 >    soname_spec='$libname$release$shared_ext$major'
11330      ;;
11331    esac
11332    # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
# Line 10957 | Line 11339 | interix[3-9]*)
11339    version_type=linux # correct to gnu/linux during the next big refactor
11340    need_lib_prefix=no
11341    need_version=no
11342 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11343 <  soname_spec='${libname}${release}${shared_ext}$major'
11342 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11343 >  soname_spec='$libname$release$shared_ext$major'
11344    dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11345    shlibpath_var=LD_LIBRARY_PATH
11346    shlibpath_overrides_runpath=no
# Line 10969 | Line 11351 | irix5* | irix6* | nonstopux*)
11351    case $host_os in
11352      nonstopux*) version_type=nonstopux ;;
11353      *)
11354 <        if test "$lt_cv_prog_gnu_ld" = yes; then
11354 >        if test yes = "$lt_cv_prog_gnu_ld"; then
11355                  version_type=linux # correct to gnu/linux during the next big refactor
11356          else
11357                  version_type=irix
# Line 10977 | Line 11359 | irix5* | irix6* | nonstopux*)
11359    esac
11360    need_lib_prefix=no
11361    need_version=no
11362 <  soname_spec='${libname}${release}${shared_ext}$major'
11363 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11362 >  soname_spec='$libname$release$shared_ext$major'
11363 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11364    case $host_os in
11365    irix5* | nonstopux*)
11366      libsuff= shlibsuff=
# Line 10997 | Line 11379 | irix5* | irix6* | nonstopux*)
11379    esac
11380    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11381    shlibpath_overrides_runpath=no
11382 <  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11383 <  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11382 >  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11383 >  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11384    hardcode_into_libs=yes
11385    ;;
11386  
# Line 11007 | Line 11389 | linux*oldld* | linux*aout* | linux*coff*
11389    dynamic_linker=no
11390    ;;
11391  
11392 + linux*android*)
11393 +  version_type=none # Android doesn't support versioned libraries.
11394 +  need_lib_prefix=no
11395 +  need_version=no
11396 +  library_names_spec='$libname$release$shared_ext'
11397 +  soname_spec='$libname$release$shared_ext'
11398 +  finish_cmds=
11399 +  shlibpath_var=LD_LIBRARY_PATH
11400 +  shlibpath_overrides_runpath=yes
11401 +
11402 +  # This implies no fast_install, which is unacceptable.
11403 +  # Some rework will be needed to allow for fast_install
11404 +  # before this can be enabled.
11405 +  hardcode_into_libs=yes
11406 +
11407 +  dynamic_linker='Android linker'
11408 +  # Don't embed -rpath directories since the linker doesn't support them.
11409 +  hardcode_libdir_flag_spec='-L$libdir'
11410 +  ;;
11411 +
11412   # This must be glibc/ELF.
11413 < linux* | k*bsd*-gnu | kopensolaris*-gnu)
11413 > linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11414    version_type=linux # correct to gnu/linux during the next big refactor
11415    need_lib_prefix=no
11416    need_version=no
11417 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 <  soname_spec='${libname}${release}${shared_ext}$major'
11417 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 >  soname_spec='$libname$release$shared_ext$major'
11419    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11420    shlibpath_var=LD_LIBRARY_PATH
11421    shlibpath_overrides_runpath=no
# Line 11077 | Line 11479 | netbsd*)
11479    need_lib_prefix=no
11480    need_version=no
11481    if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11482 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11482 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11483      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484      dynamic_linker='NetBSD (a.out) ld.so'
11485    else
11486 <    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11487 <    soname_spec='${libname}${release}${shared_ext}$major'
11486 >    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11487 >    soname_spec='$libname$release$shared_ext$major'
11488      dynamic_linker='NetBSD ld.elf_so'
11489    fi
11490    shlibpath_var=LD_LIBRARY_PATH
# Line 11092 | Line 11494 | netbsd*)
11494  
11495   newsos6)
11496    version_type=linux # correct to gnu/linux during the next big refactor
11497 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11498    shlibpath_var=LD_LIBRARY_PATH
11499    shlibpath_overrides_runpath=yes
11500    ;;
# Line 11101 | Line 11503 | newsos6)
11503    version_type=qnx
11504    need_lib_prefix=no
11505    need_version=no
11506 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 <  soname_spec='${libname}${release}${shared_ext}$major'
11506 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 >  soname_spec='$libname$release$shared_ext$major'
11508    shlibpath_var=LD_LIBRARY_PATH
11509    shlibpath_overrides_runpath=no
11510    hardcode_into_libs=yes
11511    dynamic_linker='ldqnx.so'
11512    ;;
11513  
11514 < openbsd*)
11514 > openbsd* | bitrig*)
11515    version_type=sunos
11516 <  sys_lib_dlsearch_path_spec="/usr/lib"
11516 >  sys_lib_dlsearch_path_spec=/usr/lib
11517    need_lib_prefix=no
11518 <  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11519 <  case $host_os in
11118 <    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11119 <    *)                          need_version=no  ;;
11120 <  esac
11121 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 <  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 <  shlibpath_var=LD_LIBRARY_PATH
11124 <  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125 <    case $host_os in
11126 <      openbsd2.[89] | openbsd2.[89].*)
11127 <        shlibpath_overrides_runpath=no
11128 <        ;;
11129 <      *)
11130 <        shlibpath_overrides_runpath=yes
11131 <        ;;
11132 <      esac
11518 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11519 >    need_version=no
11520    else
11521 <    shlibpath_overrides_runpath=yes
11521 >    need_version=yes
11522    fi
11523 +  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11524 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11525 +  shlibpath_var=LD_LIBRARY_PATH
11526 +  shlibpath_overrides_runpath=yes
11527    ;;
11528  
11529   os2*)
11530    libname_spec='$name'
11531 <  shrext_cmds=".dll"
11531 >  version_type=windows
11532 >  shrext_cmds=.dll
11533 >  need_version=no
11534    need_lib_prefix=no
11535 <  library_names_spec='$libname${shared_ext} $libname.a'
11535 >  # OS/2 can only load a DLL with a base name of 8 characters or less.
11536 >  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11537 >    v=$($ECHO $release$versuffix | tr -d .-);
11538 >    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11539 >    $ECHO $n$v`$shared_ext'
11540 >  library_names_spec='${libname}_dll.$libext'
11541    dynamic_linker='OS/2 ld.exe'
11542 <  shlibpath_var=LIBPATH
11542 >  shlibpath_var=BEGINLIBPATH
11543 >  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11544 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545 >  postinstall_cmds='base_file=`basename \$file`~
11546 >    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11547 >    dldir=$destdir/`dirname \$dlpath`~
11548 >    test -d \$dldir || mkdir -p \$dldir~
11549 >    $install_prog $dir/$dlname \$dldir/$dlname~
11550 >    chmod a+x \$dldir/$dlname~
11551 >    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11552 >      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11553 >    fi'
11554 >  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11555 >    dlpath=$dir/\$dldll~
11556 >    $RM \$dlpath'
11557    ;;
11558  
11559   osf3* | osf4* | osf5*)
11560    version_type=osf
11561    need_lib_prefix=no
11562    need_version=no
11563 <  soname_spec='${libname}${release}${shared_ext}$major'
11564 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 >  soname_spec='$libname$release$shared_ext$major'
11564 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565    shlibpath_var=LD_LIBRARY_PATH
11566    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11567 <  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11567 >  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568    ;;
11569  
11570   rdos*)
# Line 11163 | Line 11575 | solaris*)
11575    version_type=linux # correct to gnu/linux during the next big refactor
11576    need_lib_prefix=no
11577    need_version=no
11578 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 <  soname_spec='${libname}${release}${shared_ext}$major'
11578 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579 >  soname_spec='$libname$release$shared_ext$major'
11580    shlibpath_var=LD_LIBRARY_PATH
11581    shlibpath_overrides_runpath=yes
11582    hardcode_into_libs=yes
# Line 11174 | Line 11586 | solaris*)
11586  
11587   sunos4*)
11588    version_type=sunos
11589 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11590    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11591    shlibpath_var=LD_LIBRARY_PATH
11592    shlibpath_overrides_runpath=yes
11593 <  if test "$with_gnu_ld" = yes; then
11593 >  if test yes = "$with_gnu_ld"; then
11594      need_lib_prefix=no
11595    fi
11596    need_version=yes
# Line 11186 | Line 11598 | sunos4*)
11598  
11599   sysv4 | sysv4.3*)
11600    version_type=linux # correct to gnu/linux during the next big refactor
11601 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 <  soname_spec='${libname}${release}${shared_ext}$major'
11601 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602 >  soname_spec='$libname$release$shared_ext$major'
11603    shlibpath_var=LD_LIBRARY_PATH
11604    case $host_vendor in
11605      sni)
# Line 11208 | Line 11620 | sysv4 | sysv4.3*)
11620    ;;
11621  
11622   sysv4*MP*)
11623 <  if test -d /usr/nec ;then
11623 >  if test -d /usr/nec; then
11624      version_type=linux # correct to gnu/linux during the next big refactor
11625 <    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11626 <    soname_spec='$libname${shared_ext}.$major'
11625 >    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11626 >    soname_spec='$libname$shared_ext.$major'
11627      shlibpath_var=LD_LIBRARY_PATH
11628    fi
11629    ;;
11630  
11631   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11632 <  version_type=freebsd-elf
11632 >  version_type=sco
11633    need_lib_prefix=no
11634    need_version=no
11635 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11636 <  soname_spec='${libname}${release}${shared_ext}$major'
11635 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11636 >  soname_spec='$libname$release$shared_ext$major'
11637    shlibpath_var=LD_LIBRARY_PATH
11638    shlibpath_overrides_runpath=yes
11639    hardcode_into_libs=yes
11640 <  if test "$with_gnu_ld" = yes; then
11640 >  if test yes = "$with_gnu_ld"; then
11641      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11642    else
11643      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
# Line 11243 | Line 11655 | tpf*)
11655    version_type=linux # correct to gnu/linux during the next big refactor
11656    need_lib_prefix=no
11657    need_version=no
11658 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659    shlibpath_var=LD_LIBRARY_PATH
11660    shlibpath_overrides_runpath=no
11661    hardcode_into_libs=yes
# Line 11251 | Line 11663 | tpf*)
11663  
11664   uts4*)
11665    version_type=linux # correct to gnu/linux during the next big refactor
11666 <  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 <  soname_spec='${libname}${release}${shared_ext}$major'
11666 >  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667 >  soname_spec='$libname$release$shared_ext$major'
11668    shlibpath_var=LD_LIBRARY_PATH
11669    ;;
11670  
# Line 11262 | Line 11674 | uts4*)
11674   esac
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11676   $as_echo "$dynamic_linker" >&6; }
11677 < test "$dynamic_linker" = no && can_build_shared=no
11677 > test no = "$dynamic_linker" && can_build_shared=no
11678  
11679   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11680 < if test "$GCC" = yes; then
11680 > if test yes = "$GCC"; then
11681    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11682   fi
11683  
11684 < if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11685 <  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11684 > if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11685 >  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11686   fi
11687 < if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11688 <  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11687 > if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11688 >  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11689   fi
11690  
11691  
# Line 11372 | Line 11784 | $as_echo_n "checking how to hardcode lib
11784   hardcode_action=
11785   if test -n "$hardcode_libdir_flag_spec" ||
11786     test -n "$runpath_var" ||
11787 <   test "X$hardcode_automatic" = "Xyes" ; then
11787 >   test yes = "$hardcode_automatic"; then
11788  
11789    # We can hardcode non-existent directories.
11790 <  if test "$hardcode_direct" != no &&
11790 >  if test no != "$hardcode_direct" &&
11791       # If the only mechanism to avoid hardcoding is shlibpath_var, we
11792       # have to relink, otherwise we might link with an installed library
11793       # when we should be linking with a yet-to-be-installed one
11794 <     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11795 <     test "$hardcode_minus_L" != no; then
11794 >     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11795 >     test no != "$hardcode_minus_L"; then
11796      # Linking always hardcodes the temporary library directory.
11797      hardcode_action=relink
11798    else
# Line 11395 | Line 11807 | fi
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11808   $as_echo "$hardcode_action" >&6; }
11809  
11810 < if test "$hardcode_action" = relink ||
11811 <   test "$inherit_rpath" = yes; then
11810 > if test relink = "$hardcode_action" ||
11811 >   test yes = "$inherit_rpath"; then
11812    # Fast installation is not supported
11813    enable_fast_install=no
11814 < elif test "$shlibpath_overrides_runpath" = yes ||
11815 <     test "$enable_shared" = no; then
11814 > elif test yes = "$shlibpath_overrides_runpath" ||
11815 >     test no = "$enable_shared"; then
11816    # Fast installation is not necessary
11817    enable_fast_install=needless
11818   fi
# Line 11410 | Line 11822 | fi
11822  
11823  
11824  
11825 <  if test "x$enable_dlopen" != xyes; then
11825 >  if test yes != "$enable_dlopen"; then
11826    enable_dlopen=unknown
11827    enable_dlopen_self=unknown
11828    enable_dlopen_self_static=unknown
# Line 11420 | Line 11832 | else
11832  
11833    case $host_os in
11834    beos*)
11835 <    lt_cv_dlopen="load_add_on"
11835 >    lt_cv_dlopen=load_add_on
11836      lt_cv_dlopen_libs=
11837      lt_cv_dlopen_self=yes
11838      ;;
11839  
11840    mingw* | pw32* | cegcc*)
11841 <    lt_cv_dlopen="LoadLibrary"
11841 >    lt_cv_dlopen=LoadLibrary
11842      lt_cv_dlopen_libs=
11843      ;;
11844  
11845    cygwin*)
11846 <    lt_cv_dlopen="dlopen"
11846 >    lt_cv_dlopen=dlopen
11847      lt_cv_dlopen_libs=
11848      ;;
11849  
11850    darwin*)
11851 <  # if libdl is installed we need to link against it
11851 >    # if libdl is installed we need to link against it
11852      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11853   $as_echo_n "checking for dlopen in -ldl... " >&6; }
11854   if ${ac_cv_lib_dl_dlopen+:} false; then :
# Line 11474 | Line 11886 | fi
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11887   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11888   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11889 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11889 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11890   else
11891  
11892 <    lt_cv_dlopen="dyld"
11892 >    lt_cv_dlopen=dyld
11893      lt_cv_dlopen_libs=
11894      lt_cv_dlopen_self=yes
11895  
# Line 11485 | Line 11897 | fi
11897  
11898      ;;
11899  
11900 +  tpf*)
11901 +    # Don't try to run any link tests for TPF.  We know it's impossible
11902 +    # because TPF is a cross-compiler, and we know how we open DSOs.
11903 +    lt_cv_dlopen=dlopen
11904 +    lt_cv_dlopen_libs=
11905 +    lt_cv_dlopen_self=no
11906 +    ;;
11907 +
11908    *)
11909      ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11910   if test "x$ac_cv_func_shl_load" = xyes; then :
11911 <  lt_cv_dlopen="shl_load"
11911 >  lt_cv_dlopen=shl_load
11912   else
11913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11914   $as_echo_n "checking for shl_load in -ldld... " >&6; }
# Line 11527 | Line 11947 | fi
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11948   $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949   if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11950 <  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11950 >  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11951   else
11952    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11953   if test "x$ac_cv_func_dlopen" = xyes; then :
11954 <  lt_cv_dlopen="dlopen"
11954 >  lt_cv_dlopen=dlopen
11955   else
11956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11957   $as_echo_n "checking for dlopen in -ldl... " >&6; }
# Line 11570 | Line 11990 | fi
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11991   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11992   if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11993 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11993 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11994   else
11995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11996   $as_echo_n "checking for dlopen in -lsvld... " >&6; }
# Line 11609 | Line 12029 | fi
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12030   $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12031   if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12032 <  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032 >  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12033   else
12034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12035   $as_echo_n "checking for dld_link in -ldld... " >&6; }
# Line 11648 | Line 12068 | fi
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12069   $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12070   if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12071 <  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12071 >  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12072   fi
12073  
12074  
# Line 11669 | Line 12089 | fi
12089      ;;
12090    esac
12091  
12092 <  if test "x$lt_cv_dlopen" != xno; then
11673 <    enable_dlopen=yes
11674 <  else
12092 >  if test no = "$lt_cv_dlopen"; then
12093      enable_dlopen=no
12094 +  else
12095 +    enable_dlopen=yes
12096    fi
12097  
12098    case $lt_cv_dlopen in
12099    dlopen)
12100 <    save_CPPFLAGS="$CPPFLAGS"
12101 <    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12100 >    save_CPPFLAGS=$CPPFLAGS
12101 >    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12102  
12103 <    save_LDFLAGS="$LDFLAGS"
12103 >    save_LDFLAGS=$LDFLAGS
12104      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12105  
12106 <    save_LIBS="$LIBS"
12106 >    save_LIBS=$LIBS
12107      LIBS="$lt_cv_dlopen_libs $LIBS"
12108  
12109      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
# Line 11691 | Line 12111 | $as_echo_n "checking whether a program c
12111   if ${lt_cv_dlopen_self+:} false; then :
12112    $as_echo_n "(cached) " >&6
12113   else
12114 <          if test "$cross_compiling" = yes; then :
12114 >          if test yes = "$cross_compiling"; then :
12115    lt_cv_dlopen_self=cross
12116   else
12117    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11738 | Line 12158 | else
12158   #  endif
12159   #endif
12160  
12161 < /* When -fvisbility=hidden is used, assume the code has been annotated
12161 > /* When -fvisibility=hidden is used, assume the code has been annotated
12162     correspondingly for the symbols needed.  */
12163 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12163 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12164   int fnord () __attribute__((visibility("default")));
12165   #endif
12166  
# Line 11770 | Line 12190 | _LT_EOF
12190    (eval $ac_link) 2>&5
12191    ac_status=$?
12192    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12193 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12194      (./conftest; exit; ) >&5 2>/dev/null
12195      lt_status=$?
12196      case x$lt_status in
# Line 11790 | Line 12210 | fi
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12211   $as_echo "$lt_cv_dlopen_self" >&6; }
12212  
12213 <    if test "x$lt_cv_dlopen_self" = xyes; then
12213 >    if test yes = "$lt_cv_dlopen_self"; then
12214        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12215        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12216   $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12217   if ${lt_cv_dlopen_self_static+:} false; then :
12218    $as_echo_n "(cached) " >&6
12219   else
12220 <          if test "$cross_compiling" = yes; then :
12220 >          if test yes = "$cross_compiling"; then :
12221    lt_cv_dlopen_self_static=cross
12222   else
12223    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
# Line 11844 | Line 12264 | else
12264   #  endif
12265   #endif
12266  
12267 < /* When -fvisbility=hidden is used, assume the code has been annotated
12267 > /* When -fvisibility=hidden is used, assume the code has been annotated
12268     correspondingly for the symbols needed.  */
12269 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269 > #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12270   int fnord () __attribute__((visibility("default")));
12271   #endif
12272  
# Line 11876 | Line 12296 | _LT_EOF
12296    (eval $ac_link) 2>&5
12297    ac_status=$?
12298    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12300      (./conftest; exit; ) >&5 2>/dev/null
12301      lt_status=$?
12302      case x$lt_status in
# Line 11897 | Line 12317 | fi
12317   $as_echo "$lt_cv_dlopen_self_static" >&6; }
12318      fi
12319  
12320 <    CPPFLAGS="$save_CPPFLAGS"
12321 <    LDFLAGS="$save_LDFLAGS"
12322 <    LIBS="$save_LIBS"
12320 >    CPPFLAGS=$save_CPPFLAGS
12321 >    LDFLAGS=$save_LDFLAGS
12322 >    LIBS=$save_LIBS
12323      ;;
12324    esac
12325  
# Line 11943 | Line 12363 | else
12363   # FIXME - insert some real tests, host_os isn't really good enough
12364    case $host_os in
12365    darwin*)
12366 <    if test -n "$STRIP" ; then
12366 >    if test -n "$STRIP"; then
12367        striplib="$STRIP -x"
12368        old_striplib="$STRIP -S"
12369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
# Line 11971 | Line 12391 | fi
12391  
12392  
12393  
12394 <  # Report which library types will actually be built
12394 >  # Report what library types will actually be built
12395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12396   $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
# Line 11979 | Line 12399 | $as_echo "$can_build_shared" >&6; }
12399  
12400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12401   $as_echo_n "checking whether to build shared libraries... " >&6; }
12402 <  test "$can_build_shared" = "no" && enable_shared=no
12402 >  test no = "$can_build_shared" && enable_shared=no
12403  
12404    # On AIX, shared libraries and static libraries use the same namespace, and
12405    # are all built from PIC.
12406    case $host_os in
12407    aix3*)
12408 <    test "$enable_shared" = yes && enable_static=no
12408 >    test yes = "$enable_shared" && enable_static=no
12409      if test -n "$RANLIB"; then
12410        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12411        postinstall_cmds='$RANLIB $lib'
# Line 11993 | Line 12413 | $as_echo_n "checking whether to build sh
12413      ;;
12414  
12415    aix[4-9]*)
12416 <    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12417 <      test "$enable_shared" = yes && enable_static=no
12416 >    if test ia64 != "$host_cpu"; then
12417 >      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12418 >      yes,aix,yes) ;;                   # shared object as lib.so file only
12419 >      yes,svr4,*) ;;                    # shared object as lib.so archive member only
12420 >      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12421 >      esac
12422      fi
12423      ;;
12424    esac
# Line 12004 | Line 12428 | $as_echo "$enable_shared" >&6; }
12428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12429   $as_echo_n "checking whether to build static libraries... " >&6; }
12430    # Make sure either enable_shared or enable_static is yes.
12431 <  test "$enable_shared" = yes || enable_static=yes
12431 >  test yes = "$enable_shared" || enable_static=yes
12432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12433   $as_echo "$enable_static" >&6; }
12434  
# Line 12018 | Line 12442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12442   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12443   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12444  
12445 < CC="$lt_save_CC"
12445 > CC=$lt_save_CC
12446  
12447  
12448  
# Line 12042 | Line 12466 | CC="$lt_save_CC"
12466   # Only expand once:
12467  
12468  
12469 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12470 < $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12469 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12470 > $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12471   if ${libltdl_cv_shlibext+:} false; then :
12472    $as_echo_n "(cached) " >&6
12473   else
# Line 12070 | Line 12494 | cat >>confdefs.h <<_ACEOF
12494   _ACEOF
12495  
12496   fi
12497 + if test -n "$shared_archive_member_spec"; then
12498 +
12499 + cat >>confdefs.h <<_ACEOF
12500 + #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12501 + _ACEOF
12502  
12503 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12504 < $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12503 > fi
12504 >
12505 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12506 > $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12507   if ${lt_cv_module_path_var+:} false; then :
12508    $as_echo_n "(cached) " >&6
12509   else
12510 <  lt_cv_module_path_var="$shlibpath_var"
12510 >  lt_cv_module_path_var=$shlibpath_var
12511   fi
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12513   $as_echo "$lt_cv_module_path_var" >&6; }
# Line 12093 | Line 12524 | $as_echo_n "checking for the default lib
12524   if ${lt_cv_sys_dlsearch_path+:} false; then :
12525    $as_echo_n "(cached) " >&6
12526   else
12527 <  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12527 >  lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12528   fi
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12530   $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
# Line 12101 | Line 12532 | if test -n "$lt_cv_sys_dlsearch_path"; t
12532    sys_dlsearch_path=
12533    for dir in $lt_cv_sys_dlsearch_path; do
12534      if test -z "$sys_dlsearch_path"; then
12535 <      sys_dlsearch_path="$dir"
12535 >      sys_dlsearch_path=$dir
12536      else
12537 <      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12537 >      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12538      fi
12539    done
12540  
# Line 12123 | Line 12554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS con
12554   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12555   ac_compiler_gnu=$ac_cv_c_compiler_gnu
12556  
12557 + lt_dlload_save_LIBS=$LIBS
12558  
12559   LIBADD_DLOPEN=
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
# Line 12181 | Line 12613 | if test "$ac_res" != no; then :
12613  
12614   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12615  
12616 <        if test "$ac_cv_search_dlopen" != "none required" ; then
12617 <          LIBADD_DLOPEN="-ldl"
12616 >        if test "$ac_cv_search_dlopen" != "none required"; then
12617 >          LIBADD_DLOPEN=-ldl
12618          fi
12619 <        libltdl_cv_lib_dl_dlopen="yes"
12619 >        libltdl_cv_lib_dl_dlopen=yes
12620          LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12621   else
12622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 12205 | Line 12637 | if ac_fn_c_try_link "$LINENO"; then :
12637  
12638   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12639  
12640 <            libltdl_cv_func_dlopen="yes"
12640 >            libltdl_cv_func_dlopen=yes
12641              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12642   else
12643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
# Line 12248 | Line 12680 | if test "x$ac_cv_lib_svld_dlopen" = xyes
12680  
12681   $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12682  
12683 <                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12683 >                LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12684                  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12685   fi
12686  
# Line 12257 | Line 12689 | rm -f core conftest.err conftest.$ac_obj
12689      conftest$ac_exeext conftest.$ac_ext
12690   fi
12691  
12692 < if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12692 > if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12693   then
12694 <  lt_save_LIBS="$LIBS"
12694 >  lt_save_LIBS=$LIBS
12695    LIBS="$LIBS $LIBADD_DLOPEN"
12696    for ac_func in dlerror
12697   do :
# Line 12272 | Line 12704 | _ACEOF
12704   fi
12705   done
12706  
12707 <  LIBS="$lt_save_LIBS"
12707 >  LIBS=$lt_save_LIBS
12708   fi
12709  
12710  
# Line 12325 | Line 12757 | if test "x$ac_cv_lib_dld_shl_load" = xye
12757   $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12758  
12759              LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12760 <            LIBADD_SHL_LOAD="-ldld"
12760 >            LIBADD_SHL_LOAD=-ldld
12761   fi
12762  
12763   fi
# Line 12347 | Line 12779 | fi
12779   beos*)
12780    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12781    ;;
12782 < cygwin* | mingw* | os2* | pw32*)
12782 > cygwin* | mingw* | pw32*)
12783    ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12784   "
12785   if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
# Line 12425 | Line 12857 | fi
12857   LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12858  
12859  
12860 + LIBS=$lt_dlload_save_LIBS
12861   ac_ext=c
12862   ac_cpp='$CPP $CPPFLAGS'
12863   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12479 | Line 12912 | $as_echo "$lt_cv_sys_symbol_underscore"
12912    sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12913  
12914  
12915 < if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12916 <  if test x"$libltdl_cv_func_dlopen" = xyes ||
12917 <     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12485 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12915 > if test yes = "$lt_cv_sys_symbol_underscore"; then
12916 >  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12917 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12918   $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12919   if ${libltdl_cv_need_uscore+:} false; then :
12920    $as_echo_n "(cached) " >&6
12921   else
12922    libltdl_cv_need_uscore=unknown
12923 <          save_LIBS="$LIBS"
12924 <          LIBS="$LIBS $LIBADD_DLOPEN"
12925 <          if test "$cross_compiling" = yes; then :
12926 <  libltdl_cv_need_uscore=cross
12495 < else
12496 <  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12497 <  lt_status=$lt_dlunknown
12498 <  cat > conftest.$ac_ext <<_LT_EOF
12923 >      dlsym_uscore_save_LIBS=$LIBS
12924 >      LIBS="$LIBS $LIBADD_DLOPEN"
12925 >      libname=conftmod # stay within 8.3 filename limits!
12926 >      cat >$libname.$ac_ext <<_LT_EOF
12927   #line $LINENO "configure"
12928   #include "confdefs.h"
12929 + /* When -fvisibility=hidden is used, assume the code has been annotated
12930 +   correspondingly for the symbols needed.  */
12931 + #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12932 + int fnord () __attribute__((visibility("default")));
12933 + #endif
12934 + int fnord () { return 42; }
12935 + _LT_EOF
12936  
12937 +      # ltfn_module_cmds module_cmds
12938 +      # Execute tilde-delimited MODULE_CMDS with environment primed for
12939 +      # $module_cmds or $archive_cmds type content.
12940 +      ltfn_module_cmds ()
12941 +      {( # subshell avoids polluting parent global environment
12942 +          module_cmds_save_ifs=$IFS; IFS='~'
12943 +          for cmd in $1; do
12944 +            IFS=$module_cmds_save_ifs
12945 +            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
12946 +            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
12947 +            major=; versuffix=; verstring=; deplibs=
12948 +            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
12949 +            eval $cmd
12950 +          done
12951 +          IFS=$module_cmds_save_ifs
12952 +      )}
12953 +
12954 +      # Compile a loadable module using libtool macro expansion results.
12955 +      $CC $pic_flag -c $libname.$ac_ext
12956 +      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
12957 +
12958 +      # Try to fetch fnord with dlsym().
12959 +      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
12960 +      cat >conftest.$ac_ext <<_LT_EOF
12961 + #line $LINENO "configure"
12962 + #include "confdefs.h"
12963   #if HAVE_DLFCN_H
12964   #include <dlfcn.h>
12965   #endif
12505
12966   #include <stdio.h>
12967 <
12508 < #ifdef RTLD_GLOBAL
12509 < #  define LT_DLGLOBAL           RTLD_GLOBAL
12510 < #else
12967 > #ifndef RTLD_GLOBAL
12968   #  ifdef DL_GLOBAL
12969 < #    define LT_DLGLOBAL         DL_GLOBAL
12969 > #    define RTLD_GLOBAL DL_GLOBAL
12970   #  else
12971 < #    define LT_DLGLOBAL         0
12971 > #    define RTLD_GLOBAL 0
12972   #  endif
12973   #endif
12974 <
12975 < /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12976 <   find out it does not work in some platform. */
12520 < #ifndef LT_DLLAZY_OR_NOW
12521 < #  ifdef RTLD_LAZY
12522 < #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12974 > #ifndef RTLD_NOW
12975 > #  ifdef DL_NOW
12976 > #    define RTLD_NOW DL_NOW
12977   #  else
12978 < #    ifdef DL_LAZY
12525 < #      define LT_DLLAZY_OR_NOW          DL_LAZY
12526 < #    else
12527 < #      ifdef RTLD_NOW
12528 < #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12529 < #      else
12530 < #        ifdef DL_NOW
12531 < #          define LT_DLLAZY_OR_NOW      DL_NOW
12532 < #        else
12533 < #          define LT_DLLAZY_OR_NOW      0
12534 < #        endif
12535 < #      endif
12536 < #    endif
12978 > #    define RTLD_NOW 0
12979   #  endif
12980   #endif
12981 <
12982 < /* When -fvisbility=hidden is used, assume the code has been annotated
12983 <   correspondingly for the symbols needed.  */
12984 < #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12985 < int fnord () __attribute__((visibility("default")));
12986 < #endif
12987 <
12988 < int fnord () { return 42; }
12989 < int main ()
12548 < {
12549 <  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12550 <  int status = $lt_dlunknown;
12551 <
12552 <  if (self)
12553 <    {
12554 <      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12981 > int main () {
12982 >  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
12983 >  int status = $libltdl_dlunknown;
12984 >  if (handle) {
12985 >    if (dlsym (handle, "fnord"))
12986 >      status = $libltdl_dlnouscore;
12987 >    else {
12988 >      if (dlsym (handle, "_fnord"))
12989 >        status = $libltdl_dluscore;
12990        else
12991 <        {
12557 <          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12558 <          else puts (dlerror ());
12559 <        }
12560 <      /* dlclose (self); */
12991 >        puts (dlerror ());
12992      }
12993 <  else
12993 >    dlclose (handle);
12994 >  } else
12995      puts (dlerror ());
12564
12996    return status;
12997   }
12998   _LT_EOF
12999 <  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12999 >      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13000    (eval $ac_link) 2>&5
13001    ac_status=$?
13002    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003 <  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13004 <    (./conftest; exit; ) >&5 2>/dev/null
13005 <    lt_status=$?
13006 <    case x$lt_status in
13007 <      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
13008 <      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
13009 <      x$lt_dlunknown|x*)  ;;
13010 <    esac
13011 <  else :
13012 <    # compilation failed
13013 <
12583 <  fi
12584 < fi
12585 < rm -fr conftest*
12586 <
12587 <          LIBS="$save_LIBS"
13003 >  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13004 >        (./conftest; exit; ) >&5 2>/dev/null
13005 >        libltdl_status=$?
13006 >        case x$libltdl_status in
13007 >          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
13008 >          x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
13009 >          x*) libltdl_cv_need_uscore=unknown ;;
13010 >        esac
13011 >      fi
13012 >      rm -rf conftest* $libname*
13013 >      LIBS=$dlsym_uscore_save_LIBS
13014  
13015   fi
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
# Line 12592 | Line 13018 | $as_echo "$libltdl_cv_need_uscore" >&6;
13018    fi
13019   fi
13020  
13021 < if test x"$libltdl_cv_need_uscore" = xyes; then
13021 > if test yes = "$libltdl_cv_need_uscore"; then
13022  
13023   $as_echo "#define NEED_USCORE 1" >>confdefs.h
13024  
# Line 12611 | Line 13037 | else
13037    case $host_os in
13038    aix3*|aix4.1.*|aix4.2.*)
13039      # Unknown whether this is true for these versions of AIX, but
13040 <    # we want this `case' here to explicitly catch those versions.
13040 >    # we want this 'case' here to explicitly catch those versions.
13041      lt_cv_sys_dlopen_deplibs=unknown
13042      ;;
13043    aix[4-9]*)
# Line 12624 | Line 13050 | else
13050        ;;
13051      esac
13052      ;;
13053 +  bitrig*)
13054 +    lt_cv_sys_dlopen_deplibs=yes
13055 +    ;;
13056    darwin*)
13057      # Assuming the user has installed a libdl from somewhere, this is true
13058      # If you are looking for one http://www.opendarwin.org/projects/dlcompat
# Line 12661 | Line 13090 | else
13090    osf[1234]*)
13091      # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13092      # it did *not* use an RPATH in a shared library to find objects the
13093 <    # library depends on, so we explicitly say `no'.
13093 >    # library depends on, so we explicitly say 'no'.
13094      lt_cv_sys_dlopen_deplibs=no
13095      ;;
13096    osf5.0|osf5.0a|osf5.1)
# Line 12670 | Line 13099 | else
13099      # that the library depends on, but there's no easy way to know if that
13100      # patch is installed.  Since this is the case, all we can really
13101      # say is unknown -- it depends on the patch being installed.  If
13102 <    # it is, this changes to `yes'.  Without it, it would be `no'.
13102 >    # it is, this changes to 'yes'.  Without it, it would be 'no'.
13103      lt_cv_sys_dlopen_deplibs=unknown
13104      ;;
13105    osf*)
13106      # the two cases above should catch all versions of osf <= 5.1.  Read
13107      # the comments above for what we know about them.
13108      # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13109 <    # is used to find them so we can finally say `yes'.
13109 >    # is used to find them so we can finally say 'yes'.
13110      lt_cv_sys_dlopen_deplibs=yes
13111      ;;
13112    qnx*)
# Line 12694 | Line 13123 | else
13123   fi
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13125   $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13126 < if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13126 > if test yes != "$lt_cv_sys_dlopen_deplibs"; then
13127  
13128   $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13129  
13130   fi
13131  
12703 :
13132  
13133   for ac_header in argz.h
13134   do :
# Line 12737 | Line 13165 | $as_echo "#define __error_t_defined 1" >
13165   fi
13166  
13167  
13168 < ARGZ_H=
13168 > LT_ARGZ_H=
13169   for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13170          argz_next argz_stringify
13171   do :
# Line 12749 | Line 13177 | if eval test \"x\$"$as_ac_var"\" = x"yes
13177   _ACEOF
13178  
13179   else
13180 <  ARGZ_H=argz.h;
13180 >  LT_ARGZ_H=lt__argz.h;
13181  
13182 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13182 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13183  
13184   fi
13185   done
13186  
13187  
13188 < if test -z "$ARGZ_H"; then :
13188 > if test -z "$LT_ARGZ_H"; then :
13189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13190   $as_echo_n "checking if argz actually works... " >&6; }
13191   if ${lt_cv_sys_argz_works+:} false; then :
# Line 12766 | Line 13194 | else
13194    case $host_os in #(
13195           *cygwin*)
13196             lt_cv_sys_argz_works=no
13197 <           if test "$cross_compiling" != no; then
13197 >           if test no != "$cross_compiling"; then
13198               lt_cv_sys_argz_works="guessing no"
13199             else
13200               lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
# Line 12777 | Line 13205 | else
13205               lt_os_major=${2-0}
13206               lt_os_minor=${3-0}
13207               lt_os_micro=${4-0}
13208 <             if test "$lt_os_major" -gt 1 \
13209 <                || { test "$lt_os_major" -eq 1 \
13210 <                  && { test "$lt_os_minor" -gt 5 \
13211 <                    || { test "$lt_os_minor" -eq 5 \
13212 <                      && test "$lt_os_micro" -gt 24; }; }; }; then
13208 >             if test 1 -lt "$lt_os_major" \
13209 >                || { test 1 -eq "$lt_os_major" \
13210 >                  && { test 5 -lt "$lt_os_minor" \
13211 >                    || { test 5 -eq "$lt_os_minor" \
13212 >                      && test 24 -lt "$lt_os_micro"; }; }; }; then
13213                 lt_cv_sys_argz_works=yes
13214               fi
13215             fi
# Line 12791 | Line 13219 | else
13219   fi
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13221   $as_echo "$lt_cv_sys_argz_works" >&6; }
13222 <     if test "$lt_cv_sys_argz_works" = yes; then :
13222 >     if test yes = "$lt_cv_sys_argz_works"; then :
13223  
13224   $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13225  
13226   else
13227 <  ARGZ_H=argz.h
13227 >  LT_ARGZ_H=lt__argz.h
13228  
13229  
13230 <  _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13230 >  _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13231  
13232   fi
13233   fi
# Line 12820 | Line 13248 | else
13248   fi
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13250   $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13251 < if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13251 > if test yes = "$libltdl_cv_preloaded_symbols"; then
13252  
13253   $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13254  
# Line 12844 | Line 13272 | if test "${with_included_ltdl+set}" = se
13272   fi
13273  
13274  
13275 < if test "x$with_included_ltdl" != xyes; then
13275 > if test yes != "$with_included_ltdl"; then
13276    # We are not being forced to use the included libltdl sources, so
13277    # decide whether there is a useful installed version we can use.
13278    ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
# Line 12920 | Line 13348 | fi
13348   if test -n "$with_ltdl_include"; then
13349    if test -f "$with_ltdl_include/ltdl.h"; then :
13350    else
13351 <    as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13351 >    as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13352    fi
13353   else
13354    with_ltdl_include=no
# Line 12936 | Line 13364 | fi
13364   if test -n "$with_ltdl_lib"; then
13365    if test -f "$with_ltdl_lib/libltdl.la"; then :
13366    else
13367 <    as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13367 >    as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13368    fi
13369   else
13370    with_ltdl_lib=no
# Line 12949 | Line 13377 | case ,$with_included_ltdl,$with_ltdl_inc
13377    "") enable_ltdl_convenience=yes
13378        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13379   esac
13380 < LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13380 > LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13381   LTDLDEPS=$LIBLTDL
13382 < LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13382 > LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13383  
13384  
13385  
13386  
13387  
13388   # For backwards non-gettext consistent compatibility...
13389 < INCLTDL="$LTDLINCL"
13389 > INCLTDL=$LTDLINCL
13390  
13391  
13392          ;;
# Line 12973 | Line 13401 | $as_echo "#define HAVE_LTDL 1" >>confdef
13401          LTDLINCL=
13402          ;;
13403    ,no*,no,*)
13404 <        as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13404 >        as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13405          ;;
13406    *)    with_included_ltdl=no
13407          LIBLTDL="-L$with_ltdl_lib -lltdl"
13408          LTDLDEPS=
13409 <        LTDLINCL="-I$with_ltdl_include"
13409 >        LTDLINCL=-I$with_ltdl_include
13410          ;;
13411   esac
13412 < INCLTDL="$LTDLINCL"
13412 > INCLTDL=$LTDLINCL
13413  
13414   # Report our decision...
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
# Line 13001 | Line 13429 | if test "${enable_ltdl_install+set}" = s
13429   fi
13430  
13431  
13432 < case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13432 > case ,$enable_ltdl_install,$enable_ltdl_convenience in
13433    *yes*) ;;
13434    *) enable_ltdl_convenience=yes ;;
13435   esac
13436  
13437 < if test x"${enable_ltdl_install-no}" != xno; then
13437 > if test no != "${enable_ltdl_install-no}"; then
13438    INSTALL_LTDL_TRUE=
13439    INSTALL_LTDL_FALSE='#'
13440   else
# Line 13014 | Line 13442 | else
13442    INSTALL_LTDL_FALSE=
13443   fi
13444  
13445 <  if test x"${enable_ltdl_convenience-no}" != xno; then
13445 >  if test no != "${enable_ltdl_convenience-no}"; then
13446    CONVENIENCE_LTDL_TRUE=
13447    CONVENIENCE_LTDL_FALSE='#'
13448   else
# Line 13439 | Line 13867 | else
13867    as_fn_error $? "socket library not found" "$LINENO" 5
13868   fi
13869  
13442  ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13443 "
13444 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13445
13446 $as_echo "#define IPV6 1" >>confdefs.h
13447
13448 fi
13449
13450  ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13451   #include <sys/socket.h>
13452   #include <netdb.h>
13453
13454 "
13455 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define HAVE_STRUCT_SOCKADDR_IN 1
13459 _ACEOF
13460
13461
13462 fi
13463 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13464   #include <sys/socket.h>
13465   #include <netdb.h>
13466
13467 "
13468 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13469
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13472 _ACEOF
13473
13474
13475 fi
13476 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13477   #include <sys/socket.h>
13478   #include <netdb.h>
13479
13480 "
13481 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_STRUCT_ADDRINFO 1
13485 _ACEOF
13486
13487
13488 fi
13489
13870  
13871  
13872   # Checks for typedefs, structures, and compiler characteristics.
# Line 13832 | Line 14212 | if test "$ac_res" != no; then :
14212   fi
14213  
14214  
13835 # Check whether --enable-libgeoip was given.
13836 if test "${enable_libgeoip+set}" = set; then :
13837  enableval=$enable_libgeoip;
13838 else
13839  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13842 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13843 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13844  $as_echo_n "(cached) " >&6
13845 else
13846  ac_func_search_save_LIBS=$LIBS
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h.  */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851   Use char because int might match the return type of a GCC
13852   builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char GeoIP_id_by_ipnum_v6_gl ();
13857 int
13858 main ()
13859 {
13860 return GeoIP_id_by_ipnum_v6_gl ();
13861  ;
13862  return 0;
13863 }
13864 _ACEOF
13865 for ac_lib in '' GeoIP; do
13866  if test -z "$ac_lib"; then
13867    ac_res="none required"
13868  else
13869    ac_res=-l$ac_lib
13870    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13871  fi
13872  if ac_fn_c_try_link "$LINENO"; then :
13873  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext \
13876    conftest$ac_exeext
13877  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13878  break
13879 fi
13880 done
13881 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13882
13883 else
13884  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13885 fi
13886 rm conftest.$ac_ext
13887 LIBS=$ac_func_search_save_LIBS
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13890 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13891 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13892 if test "$ac_res" != no; then :
13893  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13894
13895 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13896
13897 fi
13898
13899 fi
13900
13901
13902 fi
13903
13904
13905
13906 # Check whether --enable-openssl was given.
13907 if test "${enable_openssl+set}" = set; then :
13908  enableval=$enable_openssl;  cf_enable_openssl=$enableval
13909 else
13910   cf_enable_openssl="auto"
13911 fi
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13914 $as_echo_n "checking for OpenSSL... " >&6; }
13915 if test "$cf_enable_openssl" != "no"; then
13916  cf_openssl_basedir=""
13917  if test "$cf_enable_openssl" != "auto" &&
13918     test "$cf_enable_openssl" != "yes"; then
13919          cf_openssl_basedir="${cf_enable_openssl}"
13920  else
13921        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13922                /opt /opt/openssl /usr/local/openssl; do
13923      if test -f "${dirs}/include/openssl/opensslv.h"; then
13924        cf_openssl_basedir="${dirs}"
13925        break
13926      fi
13927    done
13928    unset dirs
13929  fi
13930
13931    if test ! -z "$cf_openssl_basedir"; then
13932    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13933      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13934      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13935    else
13936                  cf_openssl_basedir=""
13937    fi
13938  else
13939                            if test -f "/usr/include/openssl/opensslv.h"; then
13940      cf_openssl_basedir="/usr"
13941    fi
13942  fi
13943
13944      if test ! -z "$cf_openssl_basedir"; then
13945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13946 $as_echo "$cf_openssl_basedir" >&6; }
13947    cf_enable_openssl="yes"
13948  else
13949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13950 $as_echo "not found. Please check your path." >&6; }
13951    cf_enable_openssl="no"
13952  fi
13953  unset cf_openssl_basedir
13954 else
13955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13956 $as_echo "disabled" >&6; }
13957 fi
13958
13959 if test "$cf_enable_openssl" != "no"; then :
13960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8o or above" >&5
13961 $as_echo_n "checking for OpenSSL 0.9.8o or above... " >&6; }
13962  if test "$cross_compiling" = yes; then :
13963  cf_openssl_version_ok=no
13964 else
13965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967
13968
13969    #include <openssl/opensslv.h>
13970    #include <stdlib.h>
13971 int
13972 main ()
13973 {
13974 exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
13975  ;
13976  return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_run "$LINENO"; then :
13980  cf_openssl_version_ok=yes
13981 else
13982  cf_openssl_version_ok=no
13983 fi
13984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13985  conftest.$ac_objext conftest.beam conftest.$ac_ext
13986 fi
13987
13988
13989  if test "$cf_openssl_version_ok" = "yes"; then :
13990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13991 $as_echo "found" >&6; }
13992
13993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13994 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13995 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997 else
13998  ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-lcrypto  $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h.  */
14002
14003 /* Override any GCC internal prototype to avoid an error.
14004   Use char because int might match the return type of a GCC
14005   builtin and then its argument prototype would still apply.  */
14006 #ifdef __cplusplus
14007 extern "C"
14008 #endif
14009 char RSA_free ();
14010 int
14011 main ()
14012 {
14013 return RSA_free ();
14014  ;
14015  return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019  ac_cv_lib_crypto_RSA_free=yes
14020 else
14021  ac_cv_lib_crypto_RSA_free=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext \
14024    conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14028 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14029 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14030  cat >>confdefs.h <<_ACEOF
14031 #define HAVE_LIBCRYPTO 1
14032 _ACEOF
14033
14034  LIBS="-lcrypto $LIBS"
14035
14036 fi
14037
14038    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14040 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14041 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14042  $as_echo_n "(cached) " >&6
14043 else
14044  ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-lssl  $LIBS"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h.  */
14048
14049 /* Override any GCC internal prototype to avoid an error.
14050   Use char because int might match the return type of a GCC
14051   builtin and then its argument prototype would still apply.  */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 char SSL_connect ();
14056 int
14057 main ()
14058 {
14059 return SSL_connect ();
14060  ;
14061  return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065  ac_cv_lib_ssl_SSL_connect=yes
14066 else
14067  ac_cv_lib_ssl_SSL_connect=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext \
14070    conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14074 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14075 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14076  cat >>confdefs.h <<_ACEOF
14077 #define HAVE_LIBSSL 1
14078 _ACEOF
14079
14080  LIBS="-lssl $LIBS"
14081
14082 fi
14083
14084 fi
14085
14086 else
14087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14088 $as_echo "no - OpenSSL support disabled" >&6; }
14089    cf_enable_openssl="no"
14090 fi
14091 fi
14092
14093 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14094  ENABLE_SSL_TRUE=
14095  ENABLE_SSL_FALSE='#'
14096 else
14097  ENABLE_SSL_TRUE='#'
14098  ENABLE_SSL_FALSE=
14099 fi
14100
14101
14102
14103 # Check whether --enable-assert was given.
14104 if test "${enable_assert+set}" = set; then :
14105  enableval=$enable_assert; assert=$enableval
14106 else
14107  assert=no
14108 fi
14109
14110
14111 if test "$assert" = "no"; then :
14112
14113 $as_echo "#define NDEBUG 1" >>confdefs.h
14114
14115 fi
14116
14215  
14216   $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14217  
# Line 14130 | Line 14228 | $as_echo "#define MP_CHUNK_SIZE_BAN 1024
14228   $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14229  
14230  
14231 < $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14231 > $as_echo "#define MP_CHUNK_SIZE_CONNECTION 512*1024" >>confdefs.h
14232  
14233  
14234   $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
# Line 14418 | Line 14516 | _ACEOF
14516  
14517  
14518  
14519 +  # Check whether --enable-assert was given.
14520 + if test "${enable_assert+set}" = set; then :
14521 +  enableval=$enable_assert; assert=$enableval
14522 + else
14523 +  assert=no
14524 + fi
14525 +
14526 +
14527 +  if test "$assert" = "no"; then :
14528 +
14529 + $as_echo "#define NDEBUG 1" >>confdefs.h
14530 +
14531 + fi
14532 +
14533 +
14534    # Check whether --enable-debugging was given.
14535   if test "${enable_debugging+set}" = set; then :
14536    enableval=$enable_debugging; debugging="$enableval"
# Line 14508 | Line 14621 | done
14621  
14622  
14623  
14624 < for flag in -Wextra; do
14624 > for flag in -Wbad-function-cast; do
14625    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14627   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14573 | Line 14686 | done
14686  
14687  
14688  
14689 < for flag in -Wno-unused; do
14689 > for flag in -Wcast-align; do
14690    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14692   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14703 | Line 14816 | done
14816  
14817  
14818  
14819 < for flag in -Wcast-align; do
14819 > for flag in -Wclobbered; do
14820    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14822   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14768 | Line 14881 | done
14881  
14882  
14883  
14884 < for flag in -Wbad-function-cast; do
14884 > for flag in -Wempty-body; do
14885 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14886 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14887 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14888 > if eval \${$as_CACHEVAR+:} false; then :
14889 >  $as_echo_n "(cached) " >&6
14890 > else
14891 >
14892 >  ax_check_save_flags=$CFLAGS
14893 >  CFLAGS="$CFLAGS  $flag"
14894 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 > /* end confdefs.h.  */
14896 >
14897 > int
14898 > main ()
14899 > {
14900 >
14901 >  ;
14902 >  return 0;
14903 > }
14904 > _ACEOF
14905 > if ac_fn_c_try_compile "$LINENO"; then :
14906 >  eval "$as_CACHEVAR=yes"
14907 > else
14908 >  eval "$as_CACHEVAR=no"
14909 > fi
14910 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 >  CFLAGS=$ax_check_save_flags
14912 > fi
14913 > eval ac_res=\$$as_CACHEVAR
14914 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14915 > $as_echo "$ac_res" >&6; }
14916 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14917 >  if ${CFLAGS+:} false; then :
14918 >  case " $CFLAGS " in
14919 >    *" $flag "*)
14920 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14921 >  (: CFLAGS already contains $flag) 2>&5
14922 >  ac_status=$?
14923 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14924 >  test $ac_status = 0; }
14925 >      ;;
14926 >    *)
14927 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14928 >  (: CFLAGS="$CFLAGS $flag") 2>&5
14929 >  ac_status=$?
14930 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14931 >  test $ac_status = 0; }
14932 >      CFLAGS="$CFLAGS $flag"
14933 >      ;;
14934 >   esac
14935 > else
14936 >  CFLAGS="$flag"
14937 > fi
14938 >
14939 > else
14940 >  :
14941 > fi
14942 >
14943 > done
14944 >
14945 >
14946 >
14947 >
14948 >
14949 > for flag in -Wignored-qualifiers; do
14950    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14952   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14963 | Line 15141 | done
15141  
15142  
15143  
15144 + for flag in -Wmissing-field-initializers; do
15145 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15146 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15147 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15148 + if eval \${$as_CACHEVAR+:} false; then :
15149 +  $as_echo_n "(cached) " >&6
15150 + else
15151 +
15152 +  ax_check_save_flags=$CFLAGS
15153 +  CFLAGS="$CFLAGS  $flag"
15154 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 + /* end confdefs.h.  */
15156 +
15157 + int
15158 + main ()
15159 + {
15160 +
15161 +  ;
15162 +  return 0;
15163 + }
15164 + _ACEOF
15165 + if ac_fn_c_try_compile "$LINENO"; then :
15166 +  eval "$as_CACHEVAR=yes"
15167 + else
15168 +  eval "$as_CACHEVAR=no"
15169 + fi
15170 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 +  CFLAGS=$ax_check_save_flags
15172 + fi
15173 + eval ac_res=\$$as_CACHEVAR
15174 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15175 + $as_echo "$ac_res" >&6; }
15176 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15177 +  if ${CFLAGS+:} false; then :
15178 +  case " $CFLAGS " in
15179 +    *" $flag "*)
15180 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15181 +  (: CFLAGS already contains $flag) 2>&5
15182 +  ac_status=$?
15183 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15184 +  test $ac_status = 0; }
15185 +      ;;
15186 +    *)
15187 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15188 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15189 +  ac_status=$?
15190 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 +  test $ac_status = 0; }
15192 +      CFLAGS="$CFLAGS $flag"
15193 +      ;;
15194 +   esac
15195 + else
15196 +  CFLAGS="$flag"
15197 + fi
15198 +
15199 + else
15200 +  :
15201 + fi
15202 +
15203 + done
15204 +
15205 +
15206 +
15207 +
15208 +
15209   for flag in -Wmissing-include-dirs; do
15210    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15028 | Line 15271 | done
15271  
15272  
15273  
15274 + for flag in -Wmissing-parameter-type; do
15275 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15276 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15277 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15278 + if eval \${$as_CACHEVAR+:} false; then :
15279 +  $as_echo_n "(cached) " >&6
15280 + else
15281 +
15282 +  ax_check_save_flags=$CFLAGS
15283 +  CFLAGS="$CFLAGS  $flag"
15284 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 + /* end confdefs.h.  */
15286 +
15287 + int
15288 + main ()
15289 + {
15290 +
15291 +  ;
15292 +  return 0;
15293 + }
15294 + _ACEOF
15295 + if ac_fn_c_try_compile "$LINENO"; then :
15296 +  eval "$as_CACHEVAR=yes"
15297 + else
15298 +  eval "$as_CACHEVAR=no"
15299 + fi
15300 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 +  CFLAGS=$ax_check_save_flags
15302 + fi
15303 + eval ac_res=\$$as_CACHEVAR
15304 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15305 + $as_echo "$ac_res" >&6; }
15306 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15307 +  if ${CFLAGS+:} false; then :
15308 +  case " $CFLAGS " in
15309 +    *" $flag "*)
15310 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15311 +  (: CFLAGS already contains $flag) 2>&5
15312 +  ac_status=$?
15313 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15314 +  test $ac_status = 0; }
15315 +      ;;
15316 +    *)
15317 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15318 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15319 +  ac_status=$?
15320 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15321 +  test $ac_status = 0; }
15322 +      CFLAGS="$CFLAGS $flag"
15323 +      ;;
15324 +   esac
15325 + else
15326 +  CFLAGS="$flag"
15327 + fi
15328 +
15329 + else
15330 +  :
15331 + fi
15332 +
15333 + done
15334 +
15335 +
15336 +
15337 +
15338 +
15339   for flag in -Wmissing-prototypes; do
15340    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15158 | Line 15466 | done
15466  
15467  
15468  
15469 + for flag in -Wold-style-declaration; do
15470 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15471 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15472 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15473 + if eval \${$as_CACHEVAR+:} false; then :
15474 +  $as_echo_n "(cached) " >&6
15475 + else
15476 +
15477 +  ax_check_save_flags=$CFLAGS
15478 +  CFLAGS="$CFLAGS  $flag"
15479 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 + /* end confdefs.h.  */
15481 +
15482 + int
15483 + main ()
15484 + {
15485 +
15486 +  ;
15487 +  return 0;
15488 + }
15489 + _ACEOF
15490 + if ac_fn_c_try_compile "$LINENO"; then :
15491 +  eval "$as_CACHEVAR=yes"
15492 + else
15493 +  eval "$as_CACHEVAR=no"
15494 + fi
15495 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 +  CFLAGS=$ax_check_save_flags
15497 + fi
15498 + eval ac_res=\$$as_CACHEVAR
15499 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15500 + $as_echo "$ac_res" >&6; }
15501 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15502 +  if ${CFLAGS+:} false; then :
15503 +  case " $CFLAGS " in
15504 +    *" $flag "*)
15505 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15506 +  (: CFLAGS already contains $flag) 2>&5
15507 +  ac_status=$?
15508 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15509 +  test $ac_status = 0; }
15510 +      ;;
15511 +    *)
15512 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15513 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15514 +  ac_status=$?
15515 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 +  test $ac_status = 0; }
15517 +      CFLAGS="$CFLAGS $flag"
15518 +      ;;
15519 +   esac
15520 + else
15521 +  CFLAGS="$flag"
15522 + fi
15523 +
15524 + else
15525 +  :
15526 + fi
15527 +
15528 + done
15529 +
15530 +
15531 +
15532 +
15533 +
15534 + for flag in -Woverride-init; do
15535 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15536 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15537 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15538 + if eval \${$as_CACHEVAR+:} false; then :
15539 +  $as_echo_n "(cached) " >&6
15540 + else
15541 +
15542 +  ax_check_save_flags=$CFLAGS
15543 +  CFLAGS="$CFLAGS  $flag"
15544 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 + /* end confdefs.h.  */
15546 +
15547 + int
15548 + main ()
15549 + {
15550 +
15551 +  ;
15552 +  return 0;
15553 + }
15554 + _ACEOF
15555 + if ac_fn_c_try_compile "$LINENO"; then :
15556 +  eval "$as_CACHEVAR=yes"
15557 + else
15558 +  eval "$as_CACHEVAR=no"
15559 + fi
15560 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 +  CFLAGS=$ax_check_save_flags
15562 + fi
15563 + eval ac_res=\$$as_CACHEVAR
15564 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15565 + $as_echo "$ac_res" >&6; }
15566 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15567 +  if ${CFLAGS+:} false; then :
15568 +  case " $CFLAGS " in
15569 +    *" $flag "*)
15570 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15571 +  (: CFLAGS already contains $flag) 2>&5
15572 +  ac_status=$?
15573 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574 +  test $ac_status = 0; }
15575 +      ;;
15576 +    *)
15577 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15578 +  (: CFLAGS="$CFLAGS $flag") 2>&5
15579 +  ac_status=$?
15580 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15581 +  test $ac_status = 0; }
15582 +      CFLAGS="$CFLAGS $flag"
15583 +      ;;
15584 +   esac
15585 + else
15586 +  CFLAGS="$flag"
15587 + fi
15588 +
15589 + else
15590 +  :
15591 + fi
15592 +
15593 + done
15594 +
15595 +
15596 +
15597 +
15598 +
15599   for flag in -Wpointer-arith; do
15600    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 15353 | Line 15791 | done
15791  
15792  
15793  
15794 < for flag in -Wwrite-strings; do
15794 > for flag in -Wsign-compare; do
15795 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15796 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15797 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15798 > if eval \${$as_CACHEVAR+:} false; then :
15799 >  $as_echo_n "(cached) " >&6
15800 > else
15801 >
15802 >  ax_check_save_flags=$CFLAGS
15803 >  CFLAGS="$CFLAGS  $flag"
15804 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 > /* end confdefs.h.  */
15806 >
15807 > int
15808 > main ()
15809 > {
15810 >
15811 >  ;
15812 >  return 0;
15813 > }
15814 > _ACEOF
15815 > if ac_fn_c_try_compile "$LINENO"; then :
15816 >  eval "$as_CACHEVAR=yes"
15817 > else
15818 >  eval "$as_CACHEVAR=no"
15819 > fi
15820 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 >  CFLAGS=$ax_check_save_flags
15822 > fi
15823 > eval ac_res=\$$as_CACHEVAR
15824 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15825 > $as_echo "$ac_res" >&6; }
15826 > if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15827 >  if ${CFLAGS+:} false; then :
15828 >  case " $CFLAGS " in
15829 >    *" $flag "*)
15830 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15831 >  (: CFLAGS already contains $flag) 2>&5
15832 >  ac_status=$?
15833 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15834 >  test $ac_status = 0; }
15835 >      ;;
15836 >    *)
15837 >      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15838 >  (: CFLAGS="$CFLAGS $flag") 2>&5
15839 >  ac_status=$?
15840 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 >  test $ac_status = 0; }
15842 >      CFLAGS="$CFLAGS $flag"
15843 >      ;;
15844 >   esac
15845 > else
15846 >  CFLAGS="$flag"
15847 > fi
15848 >
15849 > else
15850 >  :
15851 > fi
15852 >
15853 > done
15854 >
15855 >
15856 >
15857 >
15858 >
15859 > for flag in -Wtype-limits; do
15860    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15862   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 15479 | Line 15982 | fi
15982  
15983   done
15984  
15985 +
15986 +
15987 +
15988 +
15989 + for flag in -Wuninitialized; do
15990 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15991 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15992 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15993 + if eval \${$as_CACHEVAR+:} false; then :
15994 +  $as_echo_n "(cached) " >&6
15995 + else
15996 +
15997 +  ax_check_save_flags=$CFLAGS
15998 +  CFLAGS="$CFLAGS  $flag"
15999 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 + /* end confdefs.h.  */
16001 +
16002 + int
16003 + main ()
16004 + {
16005 +
16006 +  ;
16007 +  return 0;
16008 + }
16009 + _ACEOF
16010 + if ac_fn_c_try_compile "$LINENO"; then :
16011 +  eval "$as_CACHEVAR=yes"
16012 + else
16013 +  eval "$as_CACHEVAR=no"
16014 + fi
16015 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 +  CFLAGS=$ax_check_save_flags
16017 + fi
16018 + eval ac_res=\$$as_CACHEVAR
16019 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16020 + $as_echo "$ac_res" >&6; }
16021 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16022 +  if ${CFLAGS+:} false; then :
16023 +  case " $CFLAGS " in
16024 +    *" $flag "*)
16025 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16026 +  (: CFLAGS already contains $flag) 2>&5
16027 +  ac_status=$?
16028 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16029 +  test $ac_status = 0; }
16030 +      ;;
16031 +    *)
16032 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16033 +  (: CFLAGS="$CFLAGS $flag") 2>&5
16034 +  ac_status=$?
16035 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16036 +  test $ac_status = 0; }
16037 +      CFLAGS="$CFLAGS $flag"
16038 +      ;;
16039 +   esac
16040 + else
16041 +  CFLAGS="$flag"
16042 + fi
16043 +
16044 + else
16045 +  :
16046 + fi
16047 +
16048 + done
16049 +
16050 +
16051 +
16052 +
16053 +
16054 + for flag in -Wwrite-strings; do
16055 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16056 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16057 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16058 + if eval \${$as_CACHEVAR+:} false; then :
16059 +  $as_echo_n "(cached) " >&6
16060 + else
16061 +
16062 +  ax_check_save_flags=$CFLAGS
16063 +  CFLAGS="$CFLAGS  $flag"
16064 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 + /* end confdefs.h.  */
16066 +
16067 + int
16068 + main ()
16069 + {
16070 +
16071 +  ;
16072 +  return 0;
16073 + }
16074 + _ACEOF
16075 + if ac_fn_c_try_compile "$LINENO"; then :
16076 +  eval "$as_CACHEVAR=yes"
16077 + else
16078 +  eval "$as_CACHEVAR=no"
16079 + fi
16080 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 +  CFLAGS=$ax_check_save_flags
16082 + fi
16083 + eval ac_res=\$$as_CACHEVAR
16084 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16085 + $as_echo "$ac_res" >&6; }
16086 + if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
16087 +  if ${CFLAGS+:} false; then :
16088 +  case " $CFLAGS " in
16089 +    *" $flag "*)
16090 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16091 +  (: CFLAGS already contains $flag) 2>&5
16092 +  ac_status=$?
16093 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094 +  test $ac_status = 0; }
16095 +      ;;
16096 +    *)
16097 +      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
16098 +  (: CFLAGS="$CFLAGS $flag") 2>&5
16099 +  ac_status=$?
16100 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16101 +  test $ac_status = 0; }
16102 +      CFLAGS="$CFLAGS $flag"
16103 +      ;;
16104 +   esac
16105 + else
16106 +  CFLAGS="$flag"
16107 + fi
16108 +
16109 + else
16110 +  :
16111 + fi
16112 +
16113 + done
16114 +
16115 +  fi
16116 +
16117 +
16118 + # Check whether --enable-openssl was given.
16119 + if test "${enable_openssl+set}" = set; then :
16120 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
16121 + else
16122 +   cf_enable_openssl="auto"
16123 + fi
16124 +
16125 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
16126 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
16127 + if test "$cf_enable_openssl" != "no"; then
16128 +  cf_openssl_basedir=""
16129 +  if test "$cf_enable_openssl" != "auto" &&
16130 +     test "$cf_enable_openssl" != "yes"; then
16131 +          cf_openssl_basedir="${cf_enable_openssl}"
16132 +  else
16133 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
16134 +                /opt /opt/openssl /usr/local/openssl; do
16135 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
16136 +        cf_openssl_basedir="${dirs}"
16137 +        break
16138 +      fi
16139 +    done
16140 +    unset dirs
16141 +  fi
16142 +
16143 +    if test ! -z "$cf_openssl_basedir"; then
16144 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
16145 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
16146 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
16147 +    else
16148 +                  cf_openssl_basedir=""
16149 +    fi
16150 +  else
16151 +                            if test -f "/usr/include/openssl/opensslv.h"; then
16152 +      cf_openssl_basedir="/usr"
16153 +    fi
16154 +  fi
16155 +
16156 +      if test ! -z "$cf_openssl_basedir"; then
16157 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
16158 + $as_echo "$cf_openssl_basedir" >&6; }
16159 +    cf_enable_openssl="yes"
16160 +  else
16161 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
16162 + $as_echo "not found. Please check your path." >&6; }
16163 +    cf_enable_openssl="no"
16164 +  fi
16165 +  unset cf_openssl_basedir
16166 + else
16167 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16168 + $as_echo "disabled" >&6; }
16169 + fi
16170 +
16171 + if test "$cf_enable_openssl" != "no"; then :
16172 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
16173 + $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
16174 +  if test "$cross_compiling" = yes; then :
16175 +  cf_openssl_version_ok=no
16176 + else
16177 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 + /* end confdefs.h.  */
16179 +
16180 +
16181 +    #include <openssl/opensslv.h>
16182 +    #include <stdlib.h>
16183 + int
16184 + main ()
16185 + {
16186 + exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
16187 +  ;
16188 +  return 0;
16189 + }
16190 + _ACEOF
16191 + if ac_fn_c_try_run "$LINENO"; then :
16192 +  cf_openssl_version_ok=yes
16193 + else
16194 +  cf_openssl_version_ok=no
16195 + fi
16196 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16197 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
16198 + fi
16199 +
16200 +
16201 +  if test "$cf_openssl_version_ok" = "yes"; then :
16202 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16203 + $as_echo "found" >&6; }
16204 +
16205 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
16206 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
16207 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
16208 +  $as_echo_n "(cached) " >&6
16209 + else
16210 +  ac_check_lib_save_LIBS=$LIBS
16211 + LIBS="-lcrypto  $LIBS"
16212 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 + /* end confdefs.h.  */
16214 +
16215 + /* Override any GCC internal prototype to avoid an error.
16216 +   Use char because int might match the return type of a GCC
16217 +   builtin and then its argument prototype would still apply.  */
16218 + #ifdef __cplusplus
16219 + extern "C"
16220 + #endif
16221 + char RSA_free ();
16222 + int
16223 + main ()
16224 + {
16225 + return RSA_free ();
16226 +  ;
16227 +  return 0;
16228 + }
16229 + _ACEOF
16230 + if ac_fn_c_try_link "$LINENO"; then :
16231 +  ac_cv_lib_crypto_RSA_free=yes
16232 + else
16233 +  ac_cv_lib_crypto_RSA_free=no
16234 + fi
16235 + rm -f core conftest.err conftest.$ac_objext \
16236 +    conftest$ac_exeext conftest.$ac_ext
16237 + LIBS=$ac_check_lib_save_LIBS
16238 + fi
16239 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
16240 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
16241 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
16242 +  cat >>confdefs.h <<_ACEOF
16243 + #define HAVE_LIBCRYPTO 1
16244 + _ACEOF
16245 +
16246 +  LIBS="-lcrypto $LIBS"
16247 +
16248 + fi
16249 +
16250 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
16251 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
16252 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
16253 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
16254 +  $as_echo_n "(cached) " >&6
16255 + else
16256 +  ac_check_lib_save_LIBS=$LIBS
16257 + LIBS="-lssl  $LIBS"
16258 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 + /* end confdefs.h.  */
16260 +
16261 + /* Override any GCC internal prototype to avoid an error.
16262 +   Use char because int might match the return type of a GCC
16263 +   builtin and then its argument prototype would still apply.  */
16264 + #ifdef __cplusplus
16265 + extern "C"
16266 + #endif
16267 + char SSL_connect ();
16268 + int
16269 + main ()
16270 + {
16271 + return SSL_connect ();
16272 +  ;
16273 +  return 0;
16274 + }
16275 + _ACEOF
16276 + if ac_fn_c_try_link "$LINENO"; then :
16277 +  ac_cv_lib_ssl_SSL_connect=yes
16278 + else
16279 +  ac_cv_lib_ssl_SSL_connect=no
16280 + fi
16281 + rm -f core conftest.err conftest.$ac_objext \
16282 +    conftest$ac_exeext conftest.$ac_ext
16283 + LIBS=$ac_check_lib_save_LIBS
16284 + fi
16285 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
16286 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
16287 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
16288 +  cat >>confdefs.h <<_ACEOF
16289 + #define HAVE_LIBSSL 1
16290 + _ACEOF
16291 +
16292 +  LIBS="-lssl $LIBS"
16293 +
16294 + fi
16295 +
16296 + fi
16297 +
16298 + else
16299 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
16300 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
16301 +    cf_enable_openssl="no"
16302 + fi
16303 + fi
16304 +
16305 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
16306 +  ENABLE_SSL_TRUE=
16307 +  ENABLE_SSL_FALSE='#'
16308 + else
16309 +  ENABLE_SSL_TRUE='#'
16310 +  ENABLE_SSL_FALSE=
16311 + fi
16312 +
16313 +
16314 +
16315 +  # Check whether --enable-libgeoip was given.
16316 + if test "${enable_libgeoip+set}" = set; then :
16317 +  enableval=$enable_libgeoip;
16318 + else
16319 +  ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
16320 + if test "x$ac_cv_header_GeoIP_h" = xyes; then :
16321 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
16322 + $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
16323 + if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16324 +  $as_echo_n "(cached) " >&6
16325 + else
16326 +  ac_func_search_save_LIBS=$LIBS
16327 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 + /* end confdefs.h.  */
16329 +
16330 + /* Override any GCC internal prototype to avoid an error.
16331 +   Use char because int might match the return type of a GCC
16332 +   builtin and then its argument prototype would still apply.  */
16333 + #ifdef __cplusplus
16334 + extern "C"
16335 + #endif
16336 + char GeoIP_id_by_ipnum_v6_gl ();
16337 + int
16338 + main ()
16339 + {
16340 + return GeoIP_id_by_ipnum_v6_gl ();
16341 +  ;
16342 +  return 0;
16343 + }
16344 + _ACEOF
16345 + for ac_lib in '' GeoIP; do
16346 +  if test -z "$ac_lib"; then
16347 +    ac_res="none required"
16348 +  else
16349 +    ac_res=-l$ac_lib
16350 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16351    fi
16352 +  if ac_fn_c_try_link "$LINENO"; then :
16353 +  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
16354 + fi
16355 + rm -f core conftest.err conftest.$ac_objext \
16356 +    conftest$ac_exeext
16357 +  if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16358 +  break
16359 + fi
16360 + done
16361 + if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
16362 +
16363 + else
16364 +  ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
16365 + fi
16366 + rm conftest.$ac_ext
16367 + LIBS=$ac_func_search_save_LIBS
16368 + fi
16369 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
16370 + $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
16371 + ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
16372 + if test "$ac_res" != no; then :
16373 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16374 +
16375 + $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
16376 +
16377 + fi
16378 +
16379 + fi
16380 +
16381 +
16382 + fi
16383 +
16384  
16385  
16386  
# Line 15568 | Line 16469 | _ACEOF
16469    test "$exec_prefix_NONE" && exec_prefix=NONE
16470  
16471  
16472 < ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
16472 > ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile modules/extra/Makefile doc/Makefile help/Makefile tools/Makefile"
16473  
16474  
16475   cat >confcache <<\_ACEOF
# Line 16336 | Line 17237 | enable_static='`$ECHO "$enable_static" |
17237   enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17238   pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17239   enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17240 + shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17241   SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17242   ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17243   PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
# Line 16385 | Line 17287 | compiler='`$ECHO "$compiler" | $SED "$de
17287   GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17288   lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17289   lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17290 + lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17291   lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17292   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17293 + lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17294   nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17295   lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17296 + lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17297   objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17298   MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17299   lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
# Line 16504 | Line 17409 | CFLAGS \
17409   compiler \
17410   lt_cv_sys_global_symbol_pipe \
17411   lt_cv_sys_global_symbol_to_cdecl \
17412 + lt_cv_sys_global_symbol_to_import \
17413   lt_cv_sys_global_symbol_to_c_name_address \
17414   lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17415 + lt_cv_nm_interface \
17416   nm_file_list_spec \
17417 + lt_cv_truncate_bin \
17418   lt_prog_compiler_no_builtin_flag \
17419   lt_prog_compiler_pic \
17420   lt_prog_compiler_wl \
# Line 16541 | Line 17449 | old_striplib \
17449   striplib; do
17450      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17451      *[\\\\\\\`\\"\\\$]*)
17452 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17452 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17453        ;;
17454      *)
17455        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16571 | Line 17479 | sys_lib_search_path_spec \
17479   sys_lib_dlsearch_path_spec; do
17480      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17481      *[\\\\\\\`\\"\\\$]*)
17482 <      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17482 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17483        ;;
17484      *)
17485        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
# Line 16580 | Line 17488 | sys_lib_dlsearch_path_spec; do
17488   done
17489  
17490   ac_aux_dir='$ac_aux_dir'
16583 xsi_shell='$xsi_shell'
16584 lt_shell_append='$lt_shell_append'
17491  
17492 < # See if we are running on zsh, and set the options which allow our
17492 > # See if we are running on zsh, and set the options that allow our
17493   # commands through without removal of \ escapes INIT.
17494 < if test -n "\${ZSH_VERSION+set}" ; then
17494 > if test -n "\${ZSH_VERSION+set}"; then
17495     setopt NO_GLOB_SUBST
17496   fi
17497  
17498  
17499      PACKAGE='$PACKAGE'
17500      VERSION='$VERSION'
16595    TIMESTAMP='$TIMESTAMP'
17501      RM='$RM'
17502      ofile='$ofile'
17503  
# Line 16615 | Line 17520 | do
17520      "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
17521      "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17522      "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
17523 +    "modules/extra/Makefile") CONFIG_FILES="$CONFIG_FILES modules/extra/Makefile" ;;
17524      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17525      "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
17526      "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
# Line 17308 | Line 18214 | $as_echo X"$file" |
18214   ;;
18215      "libtool":C)
18216  
18217 <    # See if we are running on zsh, and set the options which allow our
18217 >    # See if we are running on zsh, and set the options that allow our
18218      # commands through without removal of \ escapes.
18219 <    if test -n "${ZSH_VERSION+set}" ; then
18219 >    if test -n "${ZSH_VERSION+set}"; then
18220        setopt NO_GLOB_SUBST
18221      fi
18222  
18223 <    cfgfile="${ofile}T"
18223 >    cfgfile=${ofile}T
18224      trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18225      $RM "$cfgfile"
18226  
18227      cat <<_LT_EOF >> "$cfgfile"
18228   #! $SHELL
18229 <
17324 < # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17325 < # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18229 > # Generated automatically by $as_me ($PACKAGE) $VERSION
18230   # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18231   # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18232 +
18233 + # Provide generalized library-building support services.
18234 + # Written by Gordon Matzigkeit, 1996
18235 +
18236 + # Copyright (C) 2014 Free Software Foundation, Inc.
18237 + # This is free software; see the source for copying conditions.  There is NO
18238 + # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18239 +
18240 + # GNU Libtool is free software; you can redistribute it and/or modify
18241 + # it under the terms of the GNU General Public License as published by
18242 + # the Free Software Foundation; either version 2 of of the License, or
18243 + # (at your option) any later version.
18244   #
18245 < #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18246 < #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18247 < #                 Foundation, Inc.
18248 < #   Written by Gordon Matzigkeit, 1996
17333 < #
17334 < #   This file is part of GNU Libtool.
17335 < #
17336 < # GNU Libtool is free software; you can redistribute it and/or
17337 < # modify it under the terms of the GNU General Public License as
17338 < # published by the Free Software Foundation; either version 2 of
17339 < # the License, or (at your option) any later version.
17340 < #
17341 < # As a special exception to the GNU General Public License,
17342 < # if you distribute this file as part of a program or library that
17343 < # is built using GNU Libtool, you may include this file under the
17344 < # same distribution terms that you use for the rest of that program.
18245 > # As a special exception to the GNU General Public License, if you
18246 > # distribute this file as part of a program or library that is built
18247 > # using GNU Libtool, you may include this file under the  same
18248 > # distribution terms that you use for the rest of that program.
18249   #
18250 < # GNU Libtool is distributed in the hope that it will be useful,
18251 < # but WITHOUT ANY WARRANTY; without even the implied warranty of
18250 > # GNU Libtool is distributed in the hope that it will be useful, but
18251 > # WITHOUT ANY WARRANTY; without even the implied warranty of
18252   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18253   # GNU General Public License for more details.
18254   #
18255   # You should have received a copy of the GNU General Public License
18256 < # along with GNU Libtool; see the file COPYING.  If not, a copy
17353 < # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17354 < # obtained by writing to the Free Software Foundation, Inc.,
17355 < # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18256 > # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18257  
18258  
18259   # The names of the tagged configurations supported by this script.
18260 < available_tags=""
18260 > available_tags=''
18261  
18262   # ### BEGIN LIBTOOL CONFIG
18263  
# Line 17376 | Line 18277 | pic_mode=$pic_mode
18277   # Whether or not to optimize for fast installation.
18278   fast_install=$enable_fast_install
18279  
18280 + # Shared archive member basename,for filename based shared library versioning on AIX.
18281 + shared_archive_member_spec=$shared_archive_member_spec
18282 +
18283   # Shell to use when invoking shell scripts.
18284   SHELL=$lt_SHELL
18285  
# Line 17493 | Line 18397 | global_symbol_pipe=$lt_lt_cv_sys_global_
18397   # Transform the output of nm in a proper C declaration.
18398   global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18399  
18400 + # Transform the output of nm into a list of symbols to manually relocate.
18401 + global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18402 +
18403   # Transform the output of nm in a C name address pair.
18404   global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18405  
18406   # Transform the output of nm in a C name address pair when lib prefix is needed.
18407   global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18408  
18409 + # The name lister interface.
18410 + nm_interface=$lt_lt_cv_nm_interface
18411 +
18412   # Specify filename containing input files for \$NM.
18413   nm_file_list_spec=$lt_nm_file_list_spec
18414  
18415 < # The root where to search for dependent libraries,and in which our libraries should be installed.
18415 > # The root where to search for dependent libraries,and where our libraries should be installed.
18416   lt_sysroot=$lt_sysroot
18417  
18418 + # Command to truncate a binary pipe.
18419 + lt_truncate_bin=$lt_lt_cv_truncate_bin
18420 +
18421   # The name of the directory that contains temporary libtool files.
18422   objdir=$objdir
18423  
# Line 17689 | Line 18602 | hardcode_libdir_flag_spec=$lt_hardcode_l
18602   # Whether we need a single "-rpath" flag with a separated argument.
18603   hardcode_libdir_separator=$lt_hardcode_libdir_separator
18604  
18605 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18605 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18606   # DIR into the resulting binary.
18607   hardcode_direct=$hardcode_direct
18608  
18609 < # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18609 > # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18610   # DIR into the resulting binary and the resulting library dependency is
18611 < # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18611 > # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18612   # library is relocated.
18613   hardcode_direct_absolute=$hardcode_direct_absolute
18614  
# Line 17753 | Line 18666 | _LT_EOF
18666   # AIX sometimes has problems with the GCC collect2 program.  For some
18667   # reason, if we set the COLLECT_NAMES environment variable, the problems
18668   # vanish in a puff of smoke.
18669 < if test "X${COLLECT_NAMES+set}" != Xset; then
18669 > if test set != "${COLLECT_NAMES+set}"; then
18670    COLLECT_NAMES=
18671    export COLLECT_NAMES
18672   fi
# Line 17762 | Line 18675 | _LT_EOF
18675    esac
18676  
18677  
18678 < ltmain="$ac_aux_dir/ltmain.sh"
18678 > ltmain=$ac_aux_dir/ltmain.sh
18679  
18680  
18681    # We use sed instead of cat because bash on DJGPP gets confused if
# Line 17772 | Line 18685 | ltmain="$ac_aux_dir/ltmain.sh"
18685    sed '$q' "$ltmain" >> "$cfgfile" \
18686       || (rm -f "$cfgfile"; exit 1)
18687  
17775  if test x"$xsi_shell" = xyes; then
17776  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17777 func_dirname ()\
17778 {\
17779 \    case ${1} in\
17780 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17781 \      *  ) func_dirname_result="${3}" ;;\
17782 \    esac\
17783 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17784  && mv -f "$cfgfile.tmp" "$cfgfile" \
17785    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17786 test 0 -eq $? || _lt_function_replace_fail=:
17787
17788
17789  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17790 func_basename ()\
17791 {\
17792 \    func_basename_result="${1##*/}"\
17793 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17794  && mv -f "$cfgfile.tmp" "$cfgfile" \
17795    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17796 test 0 -eq $? || _lt_function_replace_fail=:
17797
17798
17799  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17800 func_dirname_and_basename ()\
17801 {\
17802 \    case ${1} in\
17803 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17804 \      *  ) func_dirname_result="${3}" ;;\
17805 \    esac\
17806 \    func_basename_result="${1##*/}"\
17807 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17808  && mv -f "$cfgfile.tmp" "$cfgfile" \
17809    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17810 test 0 -eq $? || _lt_function_replace_fail=:
17811
17812
17813  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17814 func_stripname ()\
17815 {\
17816 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17817 \    # positional parameters, so assign one to ordinary parameter first.\
17818 \    func_stripname_result=${3}\
17819 \    func_stripname_result=${func_stripname_result#"${1}"}\
17820 \    func_stripname_result=${func_stripname_result%"${2}"}\
17821 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17822  && mv -f "$cfgfile.tmp" "$cfgfile" \
17823    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17824 test 0 -eq $? || _lt_function_replace_fail=:
17825
17826
17827  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17828 func_split_long_opt ()\
17829 {\
17830 \    func_split_long_opt_name=${1%%=*}\
17831 \    func_split_long_opt_arg=${1#*=}\
17832 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17833  && mv -f "$cfgfile.tmp" "$cfgfile" \
17834    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835 test 0 -eq $? || _lt_function_replace_fail=:
17836
17837
17838  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17839 func_split_short_opt ()\
17840 {\
17841 \    func_split_short_opt_arg=${1#??}\
17842 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17843 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17844  && mv -f "$cfgfile.tmp" "$cfgfile" \
17845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17846 test 0 -eq $? || _lt_function_replace_fail=:
17847
17848
17849  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17850 func_lo2o ()\
17851 {\
17852 \    case ${1} in\
17853 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17854 \      *)    func_lo2o_result=${1} ;;\
17855 \    esac\
17856 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17857  && mv -f "$cfgfile.tmp" "$cfgfile" \
17858    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859 test 0 -eq $? || _lt_function_replace_fail=:
17860
17861
17862  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17863 func_xform ()\
17864 {\
17865    func_xform_result=${1%.*}.lo\
17866 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17867  && mv -f "$cfgfile.tmp" "$cfgfile" \
17868    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17869 test 0 -eq $? || _lt_function_replace_fail=:
17870
17871
17872  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17873 func_arith ()\
17874 {\
17875    func_arith_result=$(( $* ))\
17876 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17877  && mv -f "$cfgfile.tmp" "$cfgfile" \
17878    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17879 test 0 -eq $? || _lt_function_replace_fail=:
17880
17881
17882  sed -e '/^func_len ()$/,/^} # func_len /c\
17883 func_len ()\
17884 {\
17885    func_len_result=${#1}\
17886 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17887  && mv -f "$cfgfile.tmp" "$cfgfile" \
17888    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17889 test 0 -eq $? || _lt_function_replace_fail=:
17890
17891 fi
17892
17893 if test x"$lt_shell_append" = xyes; then
17894  sed -e '/^func_append ()$/,/^} # func_append /c\
17895 func_append ()\
17896 {\
17897    eval "${1}+=\\${2}"\
17898 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17899  && mv -f "$cfgfile.tmp" "$cfgfile" \
17900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901 test 0 -eq $? || _lt_function_replace_fail=:
17902
17903
17904  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17905 func_append_quoted ()\
17906 {\
17907 \    func_quote_for_eval "${2}"\
17908 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17909 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17910  && mv -f "$cfgfile.tmp" "$cfgfile" \
17911    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912 test 0 -eq $? || _lt_function_replace_fail=:
17913
17914
17915  # Save a `func_append' function call where possible by direct use of '+='
17916  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17917    && mv -f "$cfgfile.tmp" "$cfgfile" \
17918      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17919  test 0 -eq $? || _lt_function_replace_fail=:
17920 else
17921  # Save a `func_append' function call even when '+=' is not available
17922  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17923    && mv -f "$cfgfile.tmp" "$cfgfile" \
17924      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17925  test 0 -eq $? || _lt_function_replace_fail=:
17926 fi
17927
17928 if test x"$_lt_function_replace_fail" = x":"; then
17929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17930 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17931 fi
17932
17933
18688     mv -f "$cfgfile" "$ofile" ||
18689      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18690    chmod +x "$ofile"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)