aclocal.m4
changeset 6442 2d3caa191dc4
parent 5310 a9945ce48999
child 6454 f67fcade4e1c
     1.1 --- a/aclocal.m4	Wed Sep 19 18:08:37 2012 -0700
     1.2 +++ b/aclocal.m4	Thu Sep 20 21:13:10 2012 -0700
     1.3 @@ -696,11 +696,12 @@
     1.4    rm -f conf.esdtest
     1.5  ])
     1.6  ##############################################################################
     1.7 -# Based on libtool-2.2.6a
     1.8 +# Based on libtool-2.4.2
     1.9  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1.10  #
    1.11  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.12 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.13 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.14 +#                 Foundation, Inc.
    1.15  #   Written by Gordon Matzigkeit, 1996
    1.16  #
    1.17  # This file is free software; the Free Software Foundation gives
    1.18 @@ -709,7 +710,8 @@
    1.19  
    1.20  m4_define([_LT_COPYING], [dnl
    1.21  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.22 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.23 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.24 +#                 Foundation, Inc.
    1.25  #   Written by Gordon Matzigkeit, 1996
    1.26  #
    1.27  #   This file is part of GNU Libtool.
    1.28 @@ -736,7 +738,7 @@
    1.29  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    1.30  ])
    1.31  
    1.32 -# serial 56 LT_INIT
    1.33 +# serial 57 LT_INIT
    1.34  
    1.35  
    1.36  # LT_PREREQ(VERSION)
    1.37 @@ -765,6 +767,7 @@
    1.38  # ------------------
    1.39  AC_DEFUN([LT_INIT],
    1.40  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    1.41 +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    1.42  AC_BEFORE([$0], [LT_LANG])dnl
    1.43  AC_BEFORE([$0], [LT_OUTPUT])dnl
    1.44  AC_BEFORE([$0], [LTDL_INIT])dnl
    1.45 @@ -781,6 +784,8 @@
    1.46  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    1.47  m4_require([_LT_PROG_LTMAIN])dnl
    1.48  
    1.49 +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    1.50 +
    1.51  dnl Parse OPTIONS
    1.52  _LT_SET_OPTIONS([$0], [$1])
    1.53  
    1.54 @@ -817,7 +822,7 @@
    1.55      *) break;;
    1.56    esac
    1.57  done
    1.58 -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    1.59 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    1.60  ])
    1.61  
    1.62  
    1.63 @@ -837,6 +842,11 @@
    1.64  m4_defun([_LT_SETUP],
    1.65  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    1.66  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    1.67 +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
    1.68 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    1.69 +
    1.70 +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
    1.71 +dnl
    1.72  _LT_DECL([], [host_alias], [0], [The host system])dnl
    1.73  _LT_DECL([], [host], [0])dnl
    1.74  _LT_DECL([], [host_os], [0])dnl
    1.75 @@ -859,10 +869,13 @@
    1.76  dnl
    1.77  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    1.78  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    1.79 +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    1.80  m4_require([_LT_CMD_RELOAD])dnl
    1.81  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
    1.82 +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    1.83  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    1.84  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    1.85 +m4_require([_LT_WITH_SYSROOT])dnl
    1.86  
    1.87  _LT_CONFIG_LIBTOOL_INIT([
    1.88  # See if we are running on zsh, and set the options which allow our
    1.89 @@ -878,7 +891,6 @@
    1.90  _LT_CHECK_OBJDIR
    1.91  
    1.92  m4_require([_LT_TAG_COMPILER])dnl
    1.93 -_LT_PROG_ECHO_BACKSLASH
    1.94  
    1.95  case $host_os in
    1.96  aix3*)
    1.97 @@ -892,23 +904,6 @@
    1.98    ;;
    1.99  esac
   1.100  
   1.101 -# Sed substitution that helps us do robust quoting.  It backslashifies
   1.102 -# metacharacters that are still active within double-quoted strings.
   1.103 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.104 -
   1.105 -# Same as above, but do not quote variable references.
   1.106 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.107 -
   1.108 -# Sed substitution to delay expansion of an escaped shell variable in a
   1.109 -# double_quote_subst'ed string.
   1.110 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.111 -
   1.112 -# Sed substitution to delay expansion of an escaped single quote.
   1.113 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.114 -
   1.115 -# Sed substitution to avoid accidental globbing in evaled expressions
   1.116 -no_glob_subst='s/\*/\\\*/g'
   1.117 -
   1.118  # Global variables:
   1.119  ofile=libtool
   1.120  can_build_shared=yes
   1.121 @@ -949,6 +944,28 @@
   1.122  ])# _LT_SETUP
   1.123  
   1.124  
   1.125 +# _LT_PREPARE_SED_QUOTE_VARS
   1.126 +# --------------------------
   1.127 +# Define a few sed substitution that help us do robust quoting.
   1.128 +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
   1.129 +[# Backslashify metacharacters that are still active within
   1.130 +# double-quoted strings.
   1.131 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.132 +
   1.133 +# Same as above, but do not quote variable references.
   1.134 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.135 +
   1.136 +# Sed substitution to delay expansion of an escaped shell variable in a
   1.137 +# double_quote_subst'ed string.
   1.138 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.139 +
   1.140 +# Sed substitution to delay expansion of an escaped single quote.
   1.141 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.142 +
   1.143 +# Sed substitution to avoid accidental globbing in evaled expressions
   1.144 +no_glob_subst='s/\*/\\\*/g'
   1.145 +])
   1.146 +
   1.147  # _LT_PROG_LTMAIN
   1.148  # ---------------
   1.149  # Note that this code is called both from `configure', and `config.status'
   1.150 @@ -1107,7 +1124,7 @@
   1.151  # declaration there will have the same value as in `configure'.  VARNAME
   1.152  # must have a single quote delimited value for this to work.
   1.153  m4_define([_LT_CONFIG_STATUS_DECLARE],
   1.154 -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
   1.155 +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   1.156  
   1.157  
   1.158  # _LT_CONFIG_STATUS_DECLARATIONS
   1.159 @@ -1117,7 +1134,7 @@
   1.160  # embedded single quotes properly.  In configure, this macro expands
   1.161  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   1.162  #
   1.163 -#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
   1.164 +#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
   1.165  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   1.166  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   1.167      [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   1.168 @@ -1216,12 +1233,20 @@
   1.169  LTCFLAGS='$LTCFLAGS'
   1.170  compiler='$compiler_DEFAULT'
   1.171  
   1.172 +# A function that is used when there is no print builtin or printf.
   1.173 +func_fallback_echo ()
   1.174 +{
   1.175 +  eval 'cat <<_LTECHO_EOF
   1.176 +\$[]1
   1.177 +_LTECHO_EOF'
   1.178 +}
   1.179 +
   1.180  # Quote evaled strings.
   1.181  for var in lt_decl_all_varnames([[ \
   1.182  ]], lt_decl_quote_varnames); do
   1.183 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.184 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.185      *[[\\\\\\\`\\"\\\$]]*)
   1.186 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.187 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.188        ;;
   1.189      *)
   1.190        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.191 @@ -1232,9 +1257,9 @@
   1.192  # Double-quote double-evaled strings.
   1.193  for var in lt_decl_all_varnames([[ \
   1.194  ]], lt_decl_dquote_varnames); do
   1.195 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.196 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.197      *[[\\\\\\\`\\"\\\$]]*)
   1.198 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.199 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.200        ;;
   1.201      *)
   1.202        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.203 @@ -1242,16 +1267,38 @@
   1.204      esac
   1.205  done
   1.206  
   1.207 -# Fix-up fallback echo if it was mangled by the above quoting rules.
   1.208 -case \$lt_ECHO in
   1.209 -*'\\\[$]0 --fallback-echo"')dnl "
   1.210 -  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
   1.211 -  ;;
   1.212 -esac
   1.213 -
   1.214  _LT_OUTPUT_LIBTOOL_INIT
   1.215  ])
   1.216  
   1.217 +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   1.218 +# ------------------------------------
   1.219 +# Generate a child script FILE with all initialization necessary to
   1.220 +# reuse the environment learned by the parent script, and make the
   1.221 +# file executable.  If COMMENT is supplied, it is inserted after the
   1.222 +# `#!' sequence but before initialization text begins.  After this
   1.223 +# macro, additional text can be appended to FILE to form the body of
   1.224 +# the child script.  The macro ends with non-zero status if the
   1.225 +# file could not be fully written (such as if the disk is full).
   1.226 +m4_ifdef([AS_INIT_GENERATED],
   1.227 +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   1.228 +[m4_defun([_LT_GENERATED_FILE_INIT],
   1.229 +[m4_require([AS_PREPARE])]dnl
   1.230 +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
   1.231 +[lt_write_fail=0
   1.232 +cat >$1 <<_ASEOF || lt_write_fail=1
   1.233 +#! $SHELL
   1.234 +# Generated by $as_me.
   1.235 +$2
   1.236 +SHELL=\${CONFIG_SHELL-$SHELL}
   1.237 +export SHELL
   1.238 +_ASEOF
   1.239 +cat >>$1 <<\_ASEOF || lt_write_fail=1
   1.240 +AS_SHELL_SANITIZE
   1.241 +_AS_PREPARE
   1.242 +exec AS_MESSAGE_FD>&1
   1.243 +_ASEOF
   1.244 +test $lt_write_fail = 0 && chmod +x $1[]dnl
   1.245 +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   1.246  
   1.247  # LT_OUTPUT
   1.248  # ---------
   1.249 @@ -1261,20 +1308,11 @@
   1.250  AC_DEFUN([LT_OUTPUT],
   1.251  [: ${CONFIG_LT=./config.lt}
   1.252  AC_MSG_NOTICE([creating $CONFIG_LT])
   1.253 -cat >"$CONFIG_LT" <<_LTEOF
   1.254 -#! $SHELL
   1.255 -# Generated by $as_me.
   1.256 -# Run this file to recreate a libtool stub with the current configuration.
   1.257 -
   1.258 +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
   1.259 +[# Run this file to recreate a libtool stub with the current configuration.])
   1.260 +
   1.261 +cat >>"$CONFIG_LT" <<\_LTEOF
   1.262  lt_cl_silent=false
   1.263 -SHELL=\${CONFIG_SHELL-$SHELL}
   1.264 -_LTEOF
   1.265 -
   1.266 -cat >>"$CONFIG_LT" <<\_LTEOF
   1.267 -AS_SHELL_SANITIZE
   1.268 -_AS_PREPARE
   1.269 -
   1.270 -exec AS_MESSAGE_FD>&1
   1.271  exec AS_MESSAGE_LOG_FD>>config.log
   1.272  {
   1.273    echo
   1.274 @@ -1300,7 +1338,7 @@
   1.275  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   1.276  configured by $[0], generated by m4_PACKAGE_STRING.
   1.277  
   1.278 -Copyright (C) 2008 Free Software Foundation, Inc.
   1.279 +Copyright (C) 2011 Free Software Foundation, Inc.
   1.280  This config.lt script is free software; the Free Software Foundation
   1.281  gives unlimited permision to copy, distribute and modify it."
   1.282  
   1.283 @@ -1345,15 +1383,13 @@
   1.284  # appending to config.log, which fails on DOS, as config.log is still kept
   1.285  # open by configure.  Here we exec the FD to /dev/null, effectively closing
   1.286  # config.log, so it can be properly (re)opened and appended to by config.lt.
   1.287 -if test "$no_create" != yes; then
   1.288 -  lt_cl_success=:
   1.289 -  test "$silent" = yes &&
   1.290 -    lt_config_lt_args="$lt_config_lt_args --quiet"
   1.291 -  exec AS_MESSAGE_LOG_FD>/dev/null
   1.292 -  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.293 -  exec AS_MESSAGE_LOG_FD>>config.log
   1.294 -  $lt_cl_success || AS_EXIT(1)
   1.295 -fi
   1.296 +lt_cl_success=:
   1.297 +test "$silent" = yes &&
   1.298 +  lt_config_lt_args="$lt_config_lt_args --quiet"
   1.299 +exec AS_MESSAGE_LOG_FD>/dev/null
   1.300 +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.301 +exec AS_MESSAGE_LOG_FD>>config.log
   1.302 +$lt_cl_success || AS_EXIT(1)
   1.303  ])# LT_OUTPUT
   1.304  
   1.305  
   1.306 @@ -1416,15 +1452,12 @@
   1.307    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   1.308    # text mode, it properly converts lines to CR/LF.  This bash problem
   1.309    # is reportedly fixed, but why not run on old versions too?
   1.310 -  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
   1.311 -    || (rm -f "$cfgfile"; exit 1)
   1.312 -
   1.313 -  _LT_PROG_XSI_SHELLFNS
   1.314 -
   1.315 -  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
   1.316 -    || (rm -f "$cfgfile"; exit 1)
   1.317 -
   1.318 -  mv -f "$cfgfile" "$ofile" ||
   1.319 +  sed '$q' "$ltmain" >> "$cfgfile" \
   1.320 +     || (rm -f "$cfgfile"; exit 1)
   1.321 +
   1.322 +  _LT_PROG_REPLACE_SHELLFNS
   1.323 +
   1.324 +   mv -f "$cfgfile" "$ofile" ||
   1.325      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   1.326    chmod +x "$ofile"
   1.327  ],
   1.328 @@ -1469,6 +1502,7 @@
   1.329  m4_case([$1],
   1.330    [C],			[_LT_LANG(C)],
   1.331    [C++],		[_LT_LANG(CXX)],
   1.332 +  [Go],			[_LT_LANG(GO)],
   1.333    [Java],		[_LT_LANG(GCJ)],
   1.334    [Fortran 77],		[_LT_LANG(F77)],
   1.335    [Fortran],		[_LT_LANG(FC)],
   1.336 @@ -1490,6 +1524,31 @@
   1.337  ])# _LT_LANG
   1.338  
   1.339  
   1.340 +m4_ifndef([AC_PROG_GO], [
   1.341 +############################################################
   1.342 +# NOTE: This macro has been submitted for inclusion into   #
   1.343 +#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
   1.344 +#  a released version of Autoconf we should remove this    #
   1.345 +#  macro and use it instead.                               #
   1.346 +############################################################
   1.347 +m4_defun([AC_PROG_GO],
   1.348 +[AC_LANG_PUSH(Go)dnl
   1.349 +AC_ARG_VAR([GOC],     [Go compiler command])dnl
   1.350 +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
   1.351 +_AC_ARG_VAR_LDFLAGS()dnl
   1.352 +AC_CHECK_TOOL(GOC, gccgo)
   1.353 +if test -z "$GOC"; then
   1.354 +  if test -n "$ac_tool_prefix"; then
   1.355 +    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
   1.356 +  fi
   1.357 +fi
   1.358 +if test -z "$GOC"; then
   1.359 +  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
   1.360 +fi
   1.361 +])#m4_defun
   1.362 +])#m4_ifndef
   1.363 +
   1.364 +
   1.365  # _LT_LANG_DEFAULT_CONFIG
   1.366  # -----------------------
   1.367  m4_defun([_LT_LANG_DEFAULT_CONFIG],
   1.368 @@ -1520,6 +1579,10 @@
   1.369         m4_ifdef([LT_PROG_GCJ],
   1.370  	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   1.371  
   1.372 +AC_PROVIDE_IFELSE([AC_PROG_GO],
   1.373 +  [LT_LANG(GO)],
   1.374 +  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
   1.375 +
   1.376  AC_PROVIDE_IFELSE([LT_PROG_RC],
   1.377    [LT_LANG(RC)],
   1.378    [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   1.379 @@ -1530,11 +1593,13 @@
   1.380  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   1.381  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   1.382  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   1.383 +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
   1.384  dnl aclocal-1.4 backwards compatibility:
   1.385  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   1.386  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   1.387  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   1.388  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   1.389 +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
   1.390  
   1.391  
   1.392  # _LT_TAG_COMPILER
   1.393 @@ -1620,7 +1685,13 @@
   1.394  	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1.395  	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   1.396          _lt_result=$?
   1.397 -	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   1.398 +	# If there is a non-empty error log, and "single_module"
   1.399 +	# appears in it, assume the flag caused a linker warning
   1.400 +        if test -s conftest.err && $GREP single_module conftest.err; then
   1.401 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.402 +	# Otherwise, if the output was created with a 0 exit code from
   1.403 +	# the compiler, it worked.
   1.404 +	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   1.405  	  lt_cv_apple_cc_single_mod=yes
   1.406  	else
   1.407  	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.408 @@ -1628,6 +1699,7 @@
   1.409  	rm -rf libconftest.dylib*
   1.410  	rm -f conftest.*
   1.411        fi])
   1.412 +
   1.413      AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   1.414        [lt_cv_ld_exported_symbols_list],
   1.415        [lt_cv_ld_exported_symbols_list=no
   1.416 @@ -1639,6 +1711,34 @@
   1.417  	[lt_cv_ld_exported_symbols_list=no])
   1.418  	LDFLAGS="$save_LDFLAGS"
   1.419      ])
   1.420 +
   1.421 +    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
   1.422 +      [lt_cv_ld_force_load=no
   1.423 +      cat > conftest.c << _LT_EOF
   1.424 +int forced_loaded() { return 2;}
   1.425 +_LT_EOF
   1.426 +      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
   1.427 +      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
   1.428 +      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
   1.429 +      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
   1.430 +      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
   1.431 +      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
   1.432 +      cat > conftest.c << _LT_EOF
   1.433 +int main() { return 0;}
   1.434 +_LT_EOF
   1.435 +      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
   1.436 +      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   1.437 +      _lt_result=$?
   1.438 +      if test -s conftest.err && $GREP force_load conftest.err; then
   1.439 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.440 +      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
   1.441 +	lt_cv_ld_force_load=yes
   1.442 +      else
   1.443 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.444 +      fi
   1.445 +        rm -f conftest.err libconftest.a conftest conftest.c
   1.446 +        rm -rf conftest.dSYM
   1.447 +    ])
   1.448      case $host_os in
   1.449      rhapsody* | darwin1.[[012]])
   1.450        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   1.451 @@ -1666,7 +1766,7 @@
   1.452      else
   1.453        _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   1.454      fi
   1.455 -    if test "$DSYMUTIL" != ":"; then
   1.456 +    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   1.457        _lt_dsymutil='~$DSYMUTIL $lib || :'
   1.458      else
   1.459        _lt_dsymutil=
   1.460 @@ -1676,8 +1776,8 @@
   1.461  ])
   1.462  
   1.463  
   1.464 -# _LT_DARWIN_LINKER_FEATURES
   1.465 -# --------------------------
   1.466 +# _LT_DARWIN_LINKER_FEATURES([TAG])
   1.467 +# ---------------------------------
   1.468  # Checks for linker and compiler features on darwin
   1.469  m4_defun([_LT_DARWIN_LINKER_FEATURES],
   1.470  [
   1.471 @@ -1686,7 +1786,13 @@
   1.472    _LT_TAGVAR(hardcode_direct, $1)=no
   1.473    _LT_TAGVAR(hardcode_automatic, $1)=yes
   1.474    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.475 -  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.476 +  if test "$lt_cv_ld_force_load" = "yes"; then
   1.477 +    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   1.478 +    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
   1.479 +                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   1.480 +  else
   1.481 +    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.482 +  fi
   1.483    _LT_TAGVAR(link_all_deplibs, $1)=yes
   1.484    _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
   1.485    case $cc_basename in
   1.486 @@ -1694,7 +1800,7 @@
   1.487       *) _lt_dar_can_shared=$GCC ;;
   1.488    esac
   1.489    if test "$_lt_dar_can_shared" = "yes"; then
   1.490 -    output_verbose_link_cmd=echo
   1.491 +    output_verbose_link_cmd=func_echo_all
   1.492      _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   1.493      _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   1.494      _LT_TAGVAR(archive_expsym_cmds, $1)="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}"
   1.495 @@ -1710,203 +1816,142 @@
   1.496    fi
   1.497  ])
   1.498  
   1.499 -# _LT_SYS_MODULE_PATH_AIX
   1.500 -# -----------------------
   1.501 +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
   1.502 +# ----------------------------------
   1.503  # Links a minimal program and checks the executable
   1.504  # for the system default hardcoded library path. In most cases,
   1.505  # this is /usr/lib:/lib, but when the MPI compilers are used
   1.506  # the location of the communication and MPI libs are included too.
   1.507  # If we don't find anything, use the default library path according
   1.508  # to the aix ld manual.
   1.509 +# Store the results from the different compilers for each TAGNAME.
   1.510 +# Allow to override them for all tags through lt_cv_aix_libpath.
   1.511  m4_defun([_LT_SYS_MODULE_PATH_AIX],
   1.512  [m4_require([_LT_DECL_SED])dnl
   1.513 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   1.514 -lt_aix_libpath_sed='
   1.515 -    /Import File Strings/,/^$/ {
   1.516 -	/^0/ {
   1.517 -	    s/^0  *\(.*\)$/\1/
   1.518 -	    p
   1.519 -	}
   1.520 -    }'
   1.521 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.522 -# Check for a 64-bit object if we didn't find anything.
   1.523 -if test -z "$aix_libpath"; then
   1.524 -  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.525 -fi],[])
   1.526 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   1.527 +if test "${lt_cv_aix_libpath+set}" = set; then
   1.528 +  aix_libpath=$lt_cv_aix_libpath
   1.529 +else
   1.530 +  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
   1.531 +  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
   1.532 +  lt_aix_libpath_sed='[
   1.533 +      /Import File Strings/,/^$/ {
   1.534 +	  /^0/ {
   1.535 +	      s/^0  *\([^ ]*\) *$/\1/
   1.536 +	      p
   1.537 +	  }
   1.538 +      }]'
   1.539 +  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.540 +  # Check for a 64-bit object if we didn't find anything.
   1.541 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.542 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.543 +  fi],[])
   1.544 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.545 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
   1.546 +  fi
   1.547 +  ])
   1.548 +  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
   1.549 +fi
   1.550  ])# _LT_SYS_MODULE_PATH_AIX
   1.551  
   1.552  
   1.553  # _LT_SHELL_INIT(ARG)
   1.554  # -------------------
   1.555  m4_define([_LT_SHELL_INIT],
   1.556 -[ifdef([AC_DIVERSION_NOTICE],
   1.557 -	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   1.558 -	 [AC_DIVERT_PUSH(NOTICE)])
   1.559 -$1
   1.560 -AC_DIVERT_POP
   1.561 -])# _LT_SHELL_INIT
   1.562 +[m4_divert_text([M4SH-INIT], [$1
   1.563 +])])# _LT_SHELL_INIT
   1.564 +
   1.565  
   1.566  
   1.567  # _LT_PROG_ECHO_BACKSLASH
   1.568  # -----------------------
   1.569 -# Add some code to the start of the generated configure script which
   1.570 -# will find an echo command which doesn't interpret backslashes.
   1.571 +# Find how we can fake an echo command that does not interpret backslash.
   1.572 +# In particular, with Autoconf 2.60 or later we add some code to the start
   1.573 +# of the generated configure script which will find a shell with a builtin
   1.574 +# printf (which we can use as an echo command).
   1.575  m4_defun([_LT_PROG_ECHO_BACKSLASH],
   1.576 -[_LT_SHELL_INIT([
   1.577 -# Check that we are running under the correct shell.
   1.578 -SHELL=${CONFIG_SHELL-/bin/sh}
   1.579 -
   1.580 -case X$lt_ECHO in
   1.581 -X*--fallback-echo)
   1.582 -  # Remove one level of quotation (which was required for Make).
   1.583 -  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   1.584 -  ;;
   1.585 +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.586 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.587 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.588 +
   1.589 +AC_MSG_CHECKING([how to print strings])
   1.590 +# Test print first, because it will be a builtin if present.
   1.591 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   1.592 +   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.593 +  ECHO='print -r --'
   1.594 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.595 +  ECHO='printf %s\n'
   1.596 +else
   1.597 +  # Use this function as a fallback that always works.
   1.598 +  func_fallback_echo ()
   1.599 +  {
   1.600 +    eval 'cat <<_LTECHO_EOF
   1.601 +$[]1
   1.602 +_LTECHO_EOF'
   1.603 +  }
   1.604 +  ECHO='func_fallback_echo'
   1.605 +fi
   1.606 +
   1.607 +# func_echo_all arg...
   1.608 +# Invoke $ECHO with all args, space-separated.
   1.609 +func_echo_all ()
   1.610 +{
   1.611 +    $ECHO "$*" 
   1.612 +}
   1.613 +
   1.614 +case "$ECHO" in
   1.615 +  printf*) AC_MSG_RESULT([printf]) ;;
   1.616 +  print*) AC_MSG_RESULT([print -r]) ;;
   1.617 +  *) AC_MSG_RESULT([cat]) ;;
   1.618  esac
   1.619  
   1.620 -ECHO=${lt_ECHO-echo}
   1.621 -if test "X[$]1" = X--no-reexec; then
   1.622 -  # Discard the --no-reexec flag, and continue.
   1.623 -  shift
   1.624 -elif test "X[$]1" = X--fallback-echo; then
   1.625 -  # Avoid inline document here, it may be left over
   1.626 -  :
   1.627 -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
   1.628 -  # Yippee, $ECHO works!
   1.629 -  :
   1.630 -else
   1.631 -  # Restart under the correct shell.
   1.632 -  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.633 -fi
   1.634 -
   1.635 -if test "X[$]1" = X--fallback-echo; then
   1.636 -  # used as fallback echo
   1.637 -  shift
   1.638 -  cat <<_LT_EOF
   1.639 -[$]*
   1.640 -_LT_EOF
   1.641 -  exit 0
   1.642 -fi
   1.643 -
   1.644 -# The HP-UX ksh and POSIX shell print the target directory to stdout
   1.645 -# if CDPATH is set.
   1.646 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.647 -
   1.648 -if test -z "$lt_ECHO"; then
   1.649 -  if test "X${echo_test_string+set}" != Xset; then
   1.650 -    # find a string as large as possible, as long as the shell can cope with it
   1.651 -    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   1.652 -      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   1.653 -      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
   1.654 -	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
   1.655 -      then
   1.656 -        break
   1.657 -      fi
   1.658 -    done
   1.659 -  fi
   1.660 -
   1.661 -  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.662 -     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.663 -     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.664 -    :
   1.665 -  else
   1.666 -    # The Solaris, AIX, and Digital Unix default echo programs unquote
   1.667 -    # backslashes.  This makes it impossible to quote backslashes using
   1.668 -    #   echo "$something" | sed 's/\\/\\\\/g'
   1.669 -    #
   1.670 -    # So, first we look for a working echo in the user's PATH.
   1.671 -
   1.672 -    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   1.673 -    for dir in $PATH /usr/ucb; do
   1.674 -      IFS="$lt_save_ifs"
   1.675 -      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   1.676 -         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   1.677 -         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   1.678 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.679 -        ECHO="$dir/echo"
   1.680 -        break
   1.681 -      fi
   1.682 -    done
   1.683 -    IFS="$lt_save_ifs"
   1.684 -
   1.685 -    if test "X$ECHO" = Xecho; then
   1.686 -      # We didn't find a better echo, so look for alternatives.
   1.687 -      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
   1.688 -         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
   1.689 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.690 -        # This shell has a builtin print -r that does the trick.
   1.691 -        ECHO='print -r'
   1.692 -      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
   1.693 -	   test "X$CONFIG_SHELL" != X/bin/ksh; then
   1.694 -        # If we have ksh, try running configure again with it.
   1.695 -        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   1.696 -        export ORIGINAL_CONFIG_SHELL
   1.697 -        CONFIG_SHELL=/bin/ksh
   1.698 -        export CONFIG_SHELL
   1.699 -        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.700 -      else
   1.701 -        # Try using printf.
   1.702 -        ECHO='printf %s\n'
   1.703 -        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.704 -	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.705 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
   1.706 -	  # Cool, printf works
   1.707 -	  :
   1.708 -        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.709 -	     test "X$echo_testing_string" = 'X\t' &&
   1.710 -	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.711 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.712 -	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   1.713 -	  export CONFIG_SHELL
   1.714 -	  SHELL="$CONFIG_SHELL"
   1.715 -	  export SHELL
   1.716 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.717 -        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.718 -	     test "X$echo_testing_string" = 'X\t' &&
   1.719 -	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.720 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.721 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.722 -        else
   1.723 -	  # maybe with a smaller string...
   1.724 -	  prev=:
   1.725 -
   1.726 -	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   1.727 -	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
   1.728 -	    then
   1.729 -	      break
   1.730 -	    fi
   1.731 -	    prev="$cmd"
   1.732 -	  done
   1.733 -
   1.734 -	  if test "$prev" != 'sed 50q "[$]0"'; then
   1.735 -	    echo_test_string=`eval $prev`
   1.736 -	    export echo_test_string
   1.737 -	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   1.738 -	  else
   1.739 -	    # Oops.  We lost completely, so just stick with echo.
   1.740 -	    ECHO=echo
   1.741 -	  fi
   1.742 -        fi
   1.743 -      fi
   1.744 -    fi
   1.745 -  fi
   1.746 -fi
   1.747 -
   1.748 -# Copy echo and quote the copy suitably for passing to libtool from
   1.749 -# the Makefile, instead of quoting the original, which is used later.
   1.750 -lt_ECHO=$ECHO
   1.751 -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   1.752 -   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   1.753 -fi
   1.754 -
   1.755 -AC_SUBST(lt_ECHO)
   1.756 -])
   1.757 +m4_ifdef([_AS_DETECT_SUGGESTED],
   1.758 +[_AS_DETECT_SUGGESTED([
   1.759 +  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
   1.760 +    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.761 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.762 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.763 +    PATH=/empty FPATH=/empty; export PATH FPATH
   1.764 +    test "X`printf %s $ECHO`" = "X$ECHO" \
   1.765 +      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
   1.766 +
   1.767  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
   1.768 -_LT_DECL([], [ECHO], [1],
   1.769 -    [An echo program that does not interpret backslashes])
   1.770 +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
   1.771  ])# _LT_PROG_ECHO_BACKSLASH
   1.772  
   1.773  
   1.774 +# _LT_WITH_SYSROOT
   1.775 +# ----------------
   1.776 +AC_DEFUN([_LT_WITH_SYSROOT],
   1.777 +[AC_MSG_CHECKING([for sysroot])
   1.778 +AC_ARG_WITH([sysroot],
   1.779 +[  --with-sysroot[=DIR] Search for dependent libraries within DIR
   1.780 +                        (or the compiler's sysroot if not specified).],
   1.781 +[], [with_sysroot=no])
   1.782 +
   1.783 +dnl lt_sysroot will always be passed unquoted.  We quote it here
   1.784 +dnl in case the user passed a directory name.
   1.785 +lt_sysroot=
   1.786 +case ${with_sysroot} in #(
   1.787 + yes)
   1.788 +   if test "$GCC" = yes; then
   1.789 +     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   1.790 +   fi
   1.791 +   ;; #(
   1.792 + /*)
   1.793 +   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   1.794 +   ;; #(
   1.795 + no|'')
   1.796 +   ;; #(
   1.797 + *)
   1.798 +   AC_MSG_RESULT([${with_sysroot}])
   1.799 +   AC_MSG_ERROR([The sysroot must be an absolute path.])
   1.800 +   ;;
   1.801 +esac
   1.802 +
   1.803 + AC_MSG_RESULT([${lt_sysroot:-no}])
   1.804 +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   1.805 +[dependent libraries, and in which our libraries should be installed.])])
   1.806 +
   1.807  # _LT_ENABLE_LOCK
   1.808  # ---------------
   1.809  m4_defun([_LT_ENABLE_LOCK],
   1.810 @@ -1935,7 +1980,7 @@
   1.811    ;;
   1.812  *-*-irix6*)
   1.813    # Find out which ABI we are using.
   1.814 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   1.815 +  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   1.816    if AC_TRY_EVAL(ac_compile); then
   1.817      if test "$lt_cv_prog_gnu_ld" = yes; then
   1.818        case `/usr/bin/file conftest.$ac_objext` in
   1.819 @@ -2028,14 +2073,27 @@
   1.820      CFLAGS="$SAVE_CFLAGS"
   1.821    fi
   1.822    ;;
   1.823 -sparc*-*solaris*)
   1.824 +*-*solaris*)
   1.825    # Find out which ABI we are using.
   1.826    echo 'int i;' > conftest.$ac_ext
   1.827    if AC_TRY_EVAL(ac_compile); then
   1.828      case `/usr/bin/file conftest.o` in
   1.829      *64-bit*)
   1.830        case $lt_cv_prog_gnu_ld in
   1.831 -      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   1.832 +      yes*)
   1.833 +        case $host in
   1.834 +        i?86-*-solaris*)
   1.835 +          LD="${LD-ld} -m elf_x86_64"
   1.836 +          ;;
   1.837 +        sparc*-*-solaris*)
   1.838 +          LD="${LD-ld} -m elf64_sparc"
   1.839 +          ;;
   1.840 +        esac
   1.841 +        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   1.842 +        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   1.843 +          LD="${LD-ld}_sol2"
   1.844 +        fi
   1.845 +        ;;
   1.846        *)
   1.847  	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   1.848  	  LD="${LD-ld} -64"
   1.849 @@ -2053,14 +2111,47 @@
   1.850  ])# _LT_ENABLE_LOCK
   1.851  
   1.852  
   1.853 +# _LT_PROG_AR
   1.854 +# -----------
   1.855 +m4_defun([_LT_PROG_AR],
   1.856 +[AC_CHECK_TOOLS(AR, [ar], false)
   1.857 +: ${AR=ar}
   1.858 +: ${AR_FLAGS=cru}
   1.859 +_LT_DECL([], [AR], [1], [The archiver])
   1.860 +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
   1.861 +
   1.862 +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   1.863 +  [lt_cv_ar_at_file=no
   1.864 +   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
   1.865 +     [echo conftest.$ac_objext > conftest.lst
   1.866 +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
   1.867 +      AC_TRY_EVAL([lt_ar_try])
   1.868 +      if test "$ac_status" -eq 0; then
   1.869 +	# Ensure the archiver fails upon bogus file names.
   1.870 +	rm -f conftest.$ac_objext libconftest.a
   1.871 +	AC_TRY_EVAL([lt_ar_try])
   1.872 +	if test "$ac_status" -ne 0; then
   1.873 +          lt_cv_ar_at_file=@
   1.874 +        fi
   1.875 +      fi
   1.876 +      rm -f conftest.* libconftest.a
   1.877 +     ])
   1.878 +  ])
   1.879 +
   1.880 +if test "x$lt_cv_ar_at_file" = xno; then
   1.881 +  archiver_list_spec=
   1.882 +else
   1.883 +  archiver_list_spec=$lt_cv_ar_at_file
   1.884 +fi
   1.885 +_LT_DECL([], [archiver_list_spec], [1],
   1.886 +  [How to feed a file listing to the archiver])
   1.887 +])# _LT_PROG_AR
   1.888 +
   1.889 +
   1.890  # _LT_CMD_OLD_ARCHIVE
   1.891  # -------------------
   1.892  m4_defun([_LT_CMD_OLD_ARCHIVE],
   1.893 -[AC_CHECK_TOOL(AR, ar, false)
   1.894 -test -z "$AR" && AR=ar
   1.895 -test -z "$AR_FLAGS" && AR_FLAGS=cru
   1.896 -_LT_DECL([], [AR], [1], [The archiver])
   1.897 -_LT_DECL([], [AR_FLAGS], [1])
   1.898 +[_LT_PROG_AR
   1.899  
   1.900  AC_CHECK_TOOL(STRIP, strip, :)
   1.901  test -z "$STRIP" && STRIP=:
   1.902 @@ -2079,18 +2170,27 @@
   1.903  if test -n "$RANLIB"; then
   1.904    case $host_os in
   1.905    openbsd*)
   1.906 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   1.907 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   1.908      ;;
   1.909    *)
   1.910 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   1.911 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   1.912      ;;
   1.913    esac
   1.914 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   1.915 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   1.916  fi
   1.917 +
   1.918 +case $host_os in
   1.919 +  darwin*)
   1.920 +    lock_old_archive_extraction=yes ;;
   1.921 +  *)
   1.922 +    lock_old_archive_extraction=no ;;
   1.923 +esac
   1.924  _LT_DECL([], [old_postinstall_cmds], [2])
   1.925  _LT_DECL([], [old_postuninstall_cmds], [2])
   1.926  _LT_TAGDECL([], [old_archive_cmds], [2],
   1.927      [Commands used to build an old-style archive])
   1.928 +_LT_DECL([], [lock_old_archive_extraction], [0],
   1.929 +    [Whether to use a lock for old archive extraction])
   1.930  ])# _LT_CMD_OLD_ARCHIVE
   1.931  
   1.932  
   1.933 @@ -2115,15 +2215,15 @@
   1.934     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.935     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.936     -e 's:$: $lt_compiler_flag:'`
   1.937 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.938 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.939     (eval "$lt_compile" 2>conftest.err)
   1.940     ac_status=$?
   1.941     cat conftest.err >&AS_MESSAGE_LOG_FD
   1.942 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.943 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.944     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.945       # The compiler can only warn and ignore the option if not recognized
   1.946       # So say no if there are warnings other than the usual output.
   1.947 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   1.948 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   1.949       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.950       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1.951         $2=yes
   1.952 @@ -2163,7 +2263,7 @@
   1.953       if test -s conftest.err; then
   1.954         # Append any errors to the config.log.
   1.955         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1.956 -       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   1.957 +       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   1.958         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.959         if diff conftest.exp conftest.er2 >/dev/null; then
   1.960           $2=yes
   1.961 @@ -2226,9 +2326,8 @@
   1.962      lt_cv_sys_max_cmd_len=8192;
   1.963      ;;
   1.964  
   1.965 -  beos*)
   1.966 -    # On BeOS, this test takes a really really long time.
   1.967 -    # So we just punt and use a minimum line length of 8192.
   1.968 +  mint*)
   1.969 +    # On MiNT this can take a long time and run out of memory.
   1.970      lt_cv_sys_max_cmd_len=8192;
   1.971      ;;
   1.972  
   1.973 @@ -2257,6 +2356,11 @@
   1.974      lt_cv_sys_max_cmd_len=196608
   1.975      ;;
   1.976  
   1.977 +  os2*)
   1.978 +    # The test takes a long time on OS/2.
   1.979 +    lt_cv_sys_max_cmd_len=8192
   1.980 +    ;;
   1.981 +
   1.982    osf*)
   1.983      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1.984      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1.985 @@ -2296,8 +2400,8 @@
   1.986        # If test is not a shell built-in, we'll probably end up computing a
   1.987        # maximum length that is only half of the actual maximum length, but
   1.988        # we can't tell.
   1.989 -      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
   1.990 -	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
   1.991 +      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
   1.992 +	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   1.993  	      test $i != 17 # 1/2 MB should be enough
   1.994        do
   1.995          i=`expr $i + 1`
   1.996 @@ -2348,7 +2452,7 @@
   1.997    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1.998    lt_status=$lt_dlunknown
   1.999    cat > conftest.$ac_ext <<_LT_EOF
  1.1000 -[#line __oline__ "configure"
  1.1001 +[#line $LINENO "configure"
  1.1002  #include "confdefs.h"
  1.1003  
  1.1004  #if HAVE_DLFCN_H
  1.1005 @@ -2389,7 +2493,13 @@
  1.1006  #  endif
  1.1007  #endif
  1.1008  
  1.1009 -void fnord() { int i=42;}
  1.1010 +/* When -fvisbility=hidden is used, assume the code has been annotated
  1.1011 +   correspondingly for the symbols needed.  */
  1.1012 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1.1013 +int fnord () __attribute__((visibility("default")));
  1.1014 +#endif
  1.1015 +
  1.1016 +int fnord () { return 42; }
  1.1017  int main ()
  1.1018  {
  1.1019    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1.1020 @@ -2398,7 +2508,11 @@
  1.1021    if (self)
  1.1022      {
  1.1023        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1.1024 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1.1025 +      else
  1.1026 +        {
  1.1027 +	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  1.1028 +          else puts (dlerror ());
  1.1029 +	}
  1.1030        /* dlclose (self); */
  1.1031      }
  1.1032    else
  1.1033 @@ -2574,16 +2688,16 @@
  1.1034     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1.1035     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1.1036     -e 's:$: $lt_compiler_flag:'`
  1.1037 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1038 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1039     (eval "$lt_compile" 2>out/conftest.err)
  1.1040     ac_status=$?
  1.1041     cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1.1042 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1043 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1044     if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1.1045     then
  1.1046       # The compiler can only warn and ignore the option if not recognized
  1.1047       # So say no if there are warnings
  1.1048 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.1049 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1.1050       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1.1051       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1.1052         _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.1053 @@ -2742,6 +2856,7 @@
  1.1054  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1055  m4_require([_LT_DECL_OBJDUMP])dnl
  1.1056  m4_require([_LT_DECL_SED])dnl
  1.1057 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1.1058  AC_MSG_CHECKING([dynamic linker characteristics])
  1.1059  m4_if([$1],
  1.1060  	[], [
  1.1061 @@ -2750,16 +2865,23 @@
  1.1062      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1.1063      *) lt_awk_arg="/^libraries:/" ;;
  1.1064    esac
  1.1065 -  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1066 -  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1.1067 +  case $host_os in
  1.1068 +    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1.1069 +    *) lt_sed_strip_eq="s,=/,/,g" ;;
  1.1070 +  esac
  1.1071 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1.1072 +  case $lt_search_path_spec in
  1.1073 +  *\;*)
  1.1074      # if the path contains ";" then we assume it to be the separator
  1.1075      # otherwise default to the standard path separator (i.e. ":") - it is
  1.1076      # assumed that no part of a normal pathname contains ";" but that should
  1.1077      # okay in the real world where ";" in dirpaths is itself problematic.
  1.1078 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1.1079 -  else
  1.1080 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1081 -  fi
  1.1082 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1.1083 +    ;;
  1.1084 +  *)
  1.1085 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1.1086 +    ;;
  1.1087 +  esac
  1.1088    # Ok, now we have the path, separated by spaces, we can step through it
  1.1089    # and add multilib dir if necessary.
  1.1090    lt_tmp_lt_search_path_spec=
  1.1091 @@ -2772,7 +2894,7 @@
  1.1092  	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1.1093      fi
  1.1094    done
  1.1095 -  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1.1096 +  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1.1097  BEGIN {RS=" "; FS="/|\n";} {
  1.1098    lt_foo="";
  1.1099    lt_count=0;
  1.1100 @@ -2792,7 +2914,13 @@
  1.1101    if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1.1102    if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1.1103  }'`
  1.1104 -  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1.1105 +  # AWK program above erroneously prepends '/' to C:/dos/paths
  1.1106 +  # for these hosts.
  1.1107 +  case $host_os in
  1.1108 +    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1.1109 +      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1.1110 +  esac
  1.1111 +  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1.1112  else
  1.1113    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.1114  fi])
  1.1115 @@ -2818,7 +2946,7 @@
  1.1116  
  1.1117  case $host_os in
  1.1118  aix3*)
  1.1119 -  version_type=linux
  1.1120 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1121    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1.1122    shlibpath_var=LIBPATH
  1.1123  
  1.1124 @@ -2827,7 +2955,7 @@
  1.1125    ;;
  1.1126  
  1.1127  aix[[4-9]]*)
  1.1128 -  version_type=linux
  1.1129 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1130    need_lib_prefix=no
  1.1131    need_version=no
  1.1132    hardcode_into_libs=yes
  1.1133 @@ -2880,7 +3008,7 @@
  1.1134    m68k)
  1.1135      library_names_spec='$libname.ixlibrary $libname.a'
  1.1136      # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.1137 -    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1.1138 +    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'
  1.1139      ;;
  1.1140    esac
  1.1141    ;;
  1.1142 @@ -2892,7 +3020,7 @@
  1.1143    ;;
  1.1144  
  1.1145  bsdi[[45]]*)
  1.1146 -  version_type=linux
  1.1147 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1148    need_version=no
  1.1149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1150    soname_spec='${libname}${release}${shared_ext}$major'
  1.1151 @@ -2911,8 +3039,9 @@
  1.1152    need_version=no
  1.1153    need_lib_prefix=no
  1.1154  
  1.1155 -  case $GCC,$host_os in
  1.1156 -  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1.1157 +  case $GCC,$cc_basename in
  1.1158 +  yes,*)
  1.1159 +    # gcc
  1.1160      library_names_spec='$libname.dll.a'
  1.1161      # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1162      postinstall_cmds='base_file=`basename \${file}`~
  1.1163 @@ -2932,39 +3061,84 @@
  1.1164      case $host_os in
  1.1165      cygwin*)
  1.1166        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1.1167 -      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1168 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.1169 -      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1.1170 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1171 +m4_if([$1], [],[
  1.1172 +      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  1.1173        ;;
  1.1174      mingw* | cegcc*)
  1.1175        # MinGW DLLs use traditional 'lib' prefix
  1.1176 -      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1177 -      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  1.1178 -      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1179 -      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1180 -        # It is most probably a Windows format PATH printed by
  1.1181 -        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1.1182 -        # path with ; separators, and with drive letters. We can handle the
  1.1183 -        # drive letters (cygwin fileutils understands them), so leave them,
  1.1184 -        # especially as we might pass files found there to a mingw objdump,
  1.1185 -        # which wouldn't understand a cygwinified path. Ahh.
  1.1186 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1187 -      else
  1.1188 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1189 -      fi
  1.1190 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1191        ;;
  1.1192      pw32*)
  1.1193        # pw32 DLLs use 'pw' prefix rather than 'lib'
  1.1194        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1195        ;;
  1.1196      esac
  1.1197 +    dynamic_linker='Win32 ld.exe'
  1.1198      ;;
  1.1199  
  1.1200 +  *,cl*)
  1.1201 +    # Native MSVC
  1.1202 +    libname_spec='$name'
  1.1203 +    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1204 +    library_names_spec='${libname}.dll.lib'
  1.1205 +
  1.1206 +    case $build_os in
  1.1207 +    mingw*)
  1.1208 +      sys_lib_search_path_spec=
  1.1209 +      lt_save_ifs=$IFS
  1.1210 +      IFS=';'
  1.1211 +      for lt_path in $LIB
  1.1212 +      do
  1.1213 +        IFS=$lt_save_ifs
  1.1214 +        # Let DOS variable expansion print the short 8.3 style file name.
  1.1215 +        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  1.1216 +        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  1.1217 +      done
  1.1218 +      IFS=$lt_save_ifs
  1.1219 +      # Convert to MSYS style.
  1.1220 +      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  1.1221 +      ;;
  1.1222 +    cygwin*)
  1.1223 +      # Convert to unix form, then to dos form, then back to unix form
  1.1224 +      # but this time dos style (no spaces!) so that the unix form looks
  1.1225 +      # like /cygdrive/c/PROGRA~1:/cygdr...
  1.1226 +      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  1.1227 +      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  1.1228 +      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1229 +      ;;
  1.1230 +    *)
  1.1231 +      sys_lib_search_path_spec="$LIB"
  1.1232 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1233 +        # It is most probably a Windows format PATH.
  1.1234 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1235 +      else
  1.1236 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1237 +      fi
  1.1238 +      # FIXME: find the short name or the path components, as spaces are
  1.1239 +      # common. (e.g. "Program Files" -> "PROGRA~1")
  1.1240 +      ;;
  1.1241 +    esac
  1.1242 +
  1.1243 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1244 +    postinstall_cmds='base_file=`basename \${file}`~
  1.1245 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1.1246 +      dldir=$destdir/`dirname \$dlpath`~
  1.1247 +      test -d \$dldir || mkdir -p \$dldir~
  1.1248 +      $install_prog $dir/$dlname \$dldir/$dlname'
  1.1249 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1.1250 +      dlpath=$dir/\$dldll~
  1.1251 +       $RM \$dlpath'
  1.1252 +    shlibpath_overrides_runpath=yes
  1.1253 +    dynamic_linker='Win32 link.exe'
  1.1254 +    ;;
  1.1255 +
  1.1256    *)
  1.1257 +    # Assume MSVC wrapper
  1.1258      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1.1259 +    dynamic_linker='Win32 ld.exe'
  1.1260      ;;
  1.1261    esac
  1.1262 -  dynamic_linker='Win32 ld.exe'
  1.1263    # FIXME: first we should search . and the directory the executable is in
  1.1264    shlibpath_var=PATH
  1.1265    ;;
  1.1266 @@ -2985,7 +3159,7 @@
  1.1267    ;;
  1.1268  
  1.1269  dgux*)
  1.1270 -  version_type=linux
  1.1271 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1272    need_lib_prefix=no
  1.1273    need_version=no
  1.1274    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1.1275 @@ -2993,10 +3167,6 @@
  1.1276    shlibpath_var=LD_LIBRARY_PATH
  1.1277    ;;
  1.1278  
  1.1279 -freebsd1*)
  1.1280 -  dynamic_linker=no
  1.1281 -  ;;
  1.1282 -
  1.1283  freebsd* | dragonfly*)
  1.1284    # DragonFly does not have aout.  When/if they implement a new
  1.1285    # versioning mechanism, adjust this.
  1.1286 @@ -3004,7 +3174,7 @@
  1.1287      objformat=`/usr/bin/objformat`
  1.1288    else
  1.1289      case $host_os in
  1.1290 -    freebsd[[123]]*) objformat=aout ;;
  1.1291 +    freebsd[[23]].*) objformat=aout ;;
  1.1292      *) objformat=elf ;;
  1.1293      esac
  1.1294    fi
  1.1295 @@ -3022,7 +3192,7 @@
  1.1296    esac
  1.1297    shlibpath_var=LD_LIBRARY_PATH
  1.1298    case $host_os in
  1.1299 -  freebsd2*)
  1.1300 +  freebsd2.*)
  1.1301      shlibpath_overrides_runpath=yes
  1.1302      ;;
  1.1303    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1.1304 @@ -3042,12 +3212,26 @@
  1.1305    ;;
  1.1306  
  1.1307  gnu*)
  1.1308 -  version_type=linux
  1.1309 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1310    need_lib_prefix=no
  1.1311    need_version=no
  1.1312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1313    soname_spec='${libname}${release}${shared_ext}$major'
  1.1314    shlibpath_var=LD_LIBRARY_PATH
  1.1315 +  shlibpath_overrides_runpath=no
  1.1316 +  hardcode_into_libs=yes
  1.1317 +  ;;
  1.1318 +
  1.1319 +haiku*)
  1.1320 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1321 +  need_lib_prefix=no
  1.1322 +  need_version=no
  1.1323 +  dynamic_linker="$host_os runtime_loader"
  1.1324 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1325 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.1326 +  shlibpath_var=LIBRARY_PATH
  1.1327 +  shlibpath_overrides_runpath=yes
  1.1328 +  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  1.1329    hardcode_into_libs=yes
  1.1330    ;;
  1.1331  
  1.1332 @@ -3093,12 +3277,14 @@
  1.1333      soname_spec='${libname}${release}${shared_ext}$major'
  1.1334      ;;
  1.1335    esac
  1.1336 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1.1337 +  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  1.1338    postinstall_cmds='chmod 555 $lib'
  1.1339 +  # or fails outright, so override atomically:
  1.1340 +  install_override_mode=555
  1.1341    ;;
  1.1342  
  1.1343  interix[[3-9]]*)
  1.1344 -  version_type=linux
  1.1345 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1346    need_lib_prefix=no
  1.1347    need_version=no
  1.1348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.1349 @@ -3114,7 +3300,7 @@
  1.1350      nonstopux*) version_type=nonstopux ;;
  1.1351      *)
  1.1352  	if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1353 -		version_type=linux
  1.1354 +		version_type=linux # correct to gnu/linux during the next big refactor
  1.1355  	else
  1.1356  		version_type=irix
  1.1357  	fi ;;
  1.1358 @@ -3151,9 +3337,9 @@
  1.1359    dynamic_linker=no
  1.1360    ;;
  1.1361  
  1.1362 -# This must be Linux ELF.
  1.1363 -linux* | k*bsd*-gnu)
  1.1364 -  version_type=linux
  1.1365 +# This must be glibc/ELF.
  1.1366 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1367 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1368    need_lib_prefix=no
  1.1369    need_version=no
  1.1370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1371 @@ -3161,16 +3347,21 @@
  1.1372    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.1373    shlibpath_var=LD_LIBRARY_PATH
  1.1374    shlibpath_overrides_runpath=no
  1.1375 +
  1.1376    # Some binutils ld are patched to set DT_RUNPATH
  1.1377 -  save_LDFLAGS=$LDFLAGS
  1.1378 -  save_libdir=$libdir
  1.1379 -  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1380 -       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1381 -  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1382 -    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1383 -       [shlibpath_overrides_runpath=yes])])
  1.1384 -  LDFLAGS=$save_LDFLAGS
  1.1385 -  libdir=$save_libdir
  1.1386 +  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  1.1387 +    [lt_cv_shlibpath_overrides_runpath=no
  1.1388 +    save_LDFLAGS=$LDFLAGS
  1.1389 +    save_libdir=$libdir
  1.1390 +    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1391 +	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1392 +    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1393 +      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1394 +	 [lt_cv_shlibpath_overrides_runpath=yes])])
  1.1395 +    LDFLAGS=$save_LDFLAGS
  1.1396 +    libdir=$save_libdir
  1.1397 +    ])
  1.1398 +  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  1.1399  
  1.1400    # This implies no fast_install, which is unacceptable.
  1.1401    # Some rework will be needed to allow for fast_install
  1.1402 @@ -3179,7 +3370,7 @@
  1.1403  
  1.1404    # Append ld.so.conf contents to the search path
  1.1405    if test -f /etc/ld.so.conf; then
  1.1406 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1.1407 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  1.1408      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1.1409    fi
  1.1410  
  1.1411 @@ -3211,7 +3402,7 @@
  1.1412    ;;
  1.1413  
  1.1414  newsos6)
  1.1415 -  version_type=linux
  1.1416 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1418    shlibpath_var=LD_LIBRARY_PATH
  1.1419    shlibpath_overrides_runpath=yes
  1.1420 @@ -3280,7 +3471,7 @@
  1.1421    ;;
  1.1422  
  1.1423  solaris*)
  1.1424 -  version_type=linux
  1.1425 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1426    need_lib_prefix=no
  1.1427    need_version=no
  1.1428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1429 @@ -3305,7 +3496,7 @@
  1.1430    ;;
  1.1431  
  1.1432  sysv4 | sysv4.3*)
  1.1433 -  version_type=linux
  1.1434 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1436    soname_spec='${libname}${release}${shared_ext}$major'
  1.1437    shlibpath_var=LD_LIBRARY_PATH
  1.1438 @@ -3329,7 +3520,7 @@
  1.1439  
  1.1440  sysv4*MP*)
  1.1441    if test -d /usr/nec ;then
  1.1442 -    version_type=linux
  1.1443 +    version_type=linux # correct to gnu/linux during the next big refactor
  1.1444      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1.1445      soname_spec='$libname${shared_ext}.$major'
  1.1446      shlibpath_var=LD_LIBRARY_PATH
  1.1447 @@ -3360,7 +3551,7 @@
  1.1448  
  1.1449  tpf*)
  1.1450    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1.1451 -  version_type=linux
  1.1452 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1453    need_lib_prefix=no
  1.1454    need_version=no
  1.1455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1456 @@ -3370,7 +3561,7 @@
  1.1457    ;;
  1.1458  
  1.1459  uts4*)
  1.1460 -  version_type=linux
  1.1461 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1463    soname_spec='${libname}${release}${shared_ext}$major'
  1.1464    shlibpath_var=LD_LIBRARY_PATH
  1.1465 @@ -3412,6 +3603,8 @@
  1.1466      The last name is the one that the linker finds with -lNAME]])
  1.1467  _LT_DECL([], [soname_spec], [1],
  1.1468      [[The coded name of the library, if different from the real name]])
  1.1469 +_LT_DECL([], [install_override_mode], [1],
  1.1470 +    [Permission mode override for installation of shared libraries])
  1.1471  _LT_DECL([], [postinstall_cmds], [2],
  1.1472      [Command to use after installation of a shared archive])
  1.1473  _LT_DECL([], [postuninstall_cmds], [2],
  1.1474 @@ -3524,6 +3717,7 @@
  1.1475  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.1476  m4_require([_LT_DECL_SED])dnl
  1.1477  m4_require([_LT_DECL_EGREP])dnl
  1.1478 +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  1.1479  
  1.1480  AC_ARG_WITH([gnu-ld],
  1.1481      [AS_HELP_STRING([--with-gnu-ld],
  1.1482 @@ -3645,6 +3839,11 @@
  1.1483  esac
  1.1484  reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.1485  case $host_os in
  1.1486 +  cygwin* | mingw* | pw32* | cegcc*)
  1.1487 +    if test "$GCC" != yes; then
  1.1488 +      reload_cmds=false
  1.1489 +    fi
  1.1490 +    ;;
  1.1491    darwin*)
  1.1492      if test "$GCC" = yes; then
  1.1493        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1.1494 @@ -3653,8 +3852,8 @@
  1.1495      fi
  1.1496      ;;
  1.1497  esac
  1.1498 -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1499 -_LT_DECL([], [reload_cmds], [2])dnl
  1.1500 +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1501 +_LT_TAGDECL([], [reload_cmds], [2])dnl
  1.1502  ])# _LT_CMD_RELOAD
  1.1503  
  1.1504  
  1.1505 @@ -3699,7 +3898,6 @@
  1.1506  cygwin*)
  1.1507    # func_win32_libid is a shell function defined in ltmain.sh
  1.1508    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1509 -  lt_cv_deplibs_check_method=pass_all
  1.1510    lt_cv_file_magic_cmd='func_win32_libid'
  1.1511    ;;
  1.1512  
  1.1513 @@ -3707,17 +3905,18 @@
  1.1514    # Base MSYS/MinGW do not provide the 'file' command needed by
  1.1515    # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.1516    # unless we find 'file', for example because we are cross-compiling.
  1.1517 -  if ( file / ) >/dev/null 2>&1; then
  1.1518 +  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  1.1519 +  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  1.1520      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1521      lt_cv_file_magic_cmd='func_win32_libid'
  1.1522    else
  1.1523 +    # Keep this pattern in sync with the one in func_win32_libid.
  1.1524      lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  1.1525      lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1526    fi
  1.1527 -  lt_cv_deplibs_check_method=pass_all
  1.1528    ;;
  1.1529  
  1.1530 -cegcc)
  1.1531 +cegcc*)
  1.1532    # use the weaker test based on 'objdump'. See mingw*.
  1.1533    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1.1534    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1535 @@ -3747,6 +3946,10 @@
  1.1536    lt_cv_deplibs_check_method=pass_all
  1.1537    ;;
  1.1538  
  1.1539 +haiku*)
  1.1540 +  lt_cv_deplibs_check_method=pass_all
  1.1541 +  ;;
  1.1542 +
  1.1543  hpux10.20* | hpux11*)
  1.1544    lt_cv_file_magic_cmd=/usr/bin/file
  1.1545    case $host_cpu in
  1.1546 @@ -3755,11 +3958,11 @@
  1.1547      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1.1548      ;;
  1.1549    hppa*64*)
  1.1550 -    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  1.1551 +    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  1.1552      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1.1553      ;;
  1.1554    *)
  1.1555 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1.1556 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  1.1557      lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1.1558      ;;
  1.1559    esac
  1.1560 @@ -3780,8 +3983,8 @@
  1.1561    lt_cv_deplibs_check_method=pass_all
  1.1562    ;;
  1.1563  
  1.1564 -# This must be Linux ELF.
  1.1565 -linux* | k*bsd*-gnu)
  1.1566 +# This must be glibc/ELF.
  1.1567 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1568    lt_cv_deplibs_check_method=pass_all
  1.1569    ;;
  1.1570  
  1.1571 @@ -3859,6 +4062,21 @@
  1.1572    ;;
  1.1573  esac
  1.1574  ])
  1.1575 +
  1.1576 +file_magic_glob=
  1.1577 +want_nocaseglob=no
  1.1578 +if test "$build" = "$host"; then
  1.1579 +  case $host_os in
  1.1580 +  mingw* | pw32*)
  1.1581 +    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  1.1582 +      want_nocaseglob=yes
  1.1583 +    else
  1.1584 +      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  1.1585 +    fi
  1.1586 +    ;;
  1.1587 +  esac
  1.1588 +fi
  1.1589 +
  1.1590  file_magic_cmd=$lt_cv_file_magic_cmd
  1.1591  deplibs_check_method=$lt_cv_deplibs_check_method
  1.1592  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  1.1593 @@ -3866,7 +4084,11 @@
  1.1594  _LT_DECL([], [deplibs_check_method], [1],
  1.1595      [Method to check whether dependent libraries are shared objects])
  1.1596  _LT_DECL([], [file_magic_cmd], [1],
  1.1597 -    [Command to use when deplibs_check_method == "file_magic"])
  1.1598 +    [Command to use when deplibs_check_method = "file_magic"])
  1.1599 +_LT_DECL([], [file_magic_glob], [1],
  1.1600 +    [How to find potential files when deplibs_check_method = "file_magic"])
  1.1601 +_LT_DECL([], [want_nocaseglob], [1],
  1.1602 +    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  1.1603  ])# _LT_CHECK_MAGIC_METHOD
  1.1604  
  1.1605  
  1.1606 @@ -3923,7 +4145,19 @@
  1.1607    NM="$lt_cv_path_NM"
  1.1608  else
  1.1609    # Didn't find any BSD compatible name lister, look for dumpbin.
  1.1610 -  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  1.1611 +  if test -n "$DUMPBIN"; then :
  1.1612 +    # Let the user override the test.
  1.1613 +  else
  1.1614 +    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  1.1615 +    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  1.1616 +    *COFF*)
  1.1617 +      DUMPBIN="$DUMPBIN -symbols"
  1.1618 +      ;;
  1.1619 +    *)
  1.1620 +      DUMPBIN=:
  1.1621 +      ;;
  1.1622 +    esac
  1.1623 +  fi
  1.1624    AC_SUBST([DUMPBIN])
  1.1625    if test "$DUMPBIN" != ":"; then
  1.1626      NM="$DUMPBIN"
  1.1627 @@ -3936,13 +4170,13 @@
  1.1628  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  1.1629    [lt_cv_nm_interface="BSD nm"
  1.1630    echo "int some_variable = 0;" > conftest.$ac_ext
  1.1631 -  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1632 +  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1633    (eval "$ac_compile" 2>conftest.err)
  1.1634    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1635 -  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1636 +  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1637    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  1.1638    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1639 -  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  1.1640 +  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  1.1641    cat conftest.out >&AS_MESSAGE_LOG_FD
  1.1642    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  1.1643      lt_cv_nm_interface="MS dumpbin"
  1.1644 @@ -3957,6 +4191,67 @@
  1.1645  dnl AC_DEFUN([AM_PROG_NM], [])
  1.1646  dnl AC_DEFUN([AC_PROG_NM], [])
  1.1647  
  1.1648 +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1649 +# --------------------------------
  1.1650 +# how to determine the name of the shared library
  1.1651 +# associated with a specific link library.
  1.1652 +#  -- PORTME fill in with the dynamic library characteristics
  1.1653 +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  1.1654 +[m4_require([_LT_DECL_EGREP])
  1.1655 +m4_require([_LT_DECL_OBJDUMP])
  1.1656 +m4_require([_LT_DECL_DLLTOOL])
  1.1657 +AC_CACHE_CHECK([how to associate runtime and link libraries],
  1.1658 +lt_cv_sharedlib_from_linklib_cmd,
  1.1659 +[lt_cv_sharedlib_from_linklib_cmd='unknown'
  1.1660 +
  1.1661 +case $host_os in
  1.1662 +cygwin* | mingw* | pw32* | cegcc*)
  1.1663 +  # two different shell functions defined in ltmain.sh
  1.1664 +  # decide which to use based on capabilities of $DLLTOOL
  1.1665 +  case `$DLLTOOL --help 2>&1` in
  1.1666 +  *--identify-strict*)
  1.1667 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  1.1668 +    ;;
  1.1669 +  *)
  1.1670 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  1.1671 +    ;;
  1.1672 +  esac
  1.1673 +  ;;
  1.1674 +*)
  1.1675 +  # fallback: assume linklib IS sharedlib
  1.1676 +  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  1.1677 +  ;;
  1.1678 +esac
  1.1679 +])
  1.1680 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  1.1681 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  1.1682 +
  1.1683 +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  1.1684 +    [Command to associate shared and link libraries])
  1.1685 +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1686 +
  1.1687 +
  1.1688 +# _LT_PATH_MANIFEST_TOOL
  1.1689 +# ----------------------
  1.1690 +# locate the manifest tool
  1.1691 +m4_defun([_LT_PATH_MANIFEST_TOOL],
  1.1692 +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  1.1693 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  1.1694 +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  1.1695 +  [lt_cv_path_mainfest_tool=no
  1.1696 +  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  1.1697 +  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  1.1698 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1699 +  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  1.1700 +    lt_cv_path_mainfest_tool=yes
  1.1701 +  fi
  1.1702 +  rm -f conftest*])
  1.1703 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  1.1704 +  MANIFEST_TOOL=:
  1.1705 +fi
  1.1706 +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  1.1707 +])# _LT_PATH_MANIFEST_TOOL
  1.1708 +
  1.1709  
  1.1710  # LT_LIB_M
  1.1711  # --------
  1.1712 @@ -3965,7 +4260,7 @@
  1.1713  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1714  LIBM=
  1.1715  case $host in
  1.1716 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  1.1717 +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  1.1718    # These system don't have libm, or don't need it
  1.1719    ;;
  1.1720  *-ncr-sysv4.3*)
  1.1721 @@ -3993,7 +4288,12 @@
  1.1722  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.1723  
  1.1724  if test "$GCC" = yes; then
  1.1725 -  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.1726 +  case $cc_basename in
  1.1727 +  nvcc*)
  1.1728 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  1.1729 +  *)
  1.1730 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  1.1731 +  esac
  1.1732  
  1.1733    _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.1734      lt_cv_prog_compiler_rtti_exceptions,
  1.1735 @@ -4010,6 +4310,7 @@
  1.1736  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  1.1737  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1738  AC_REQUIRE([AC_PROG_CC])dnl
  1.1739 +AC_REQUIRE([AC_PROG_AWK])dnl
  1.1740  AC_REQUIRE([LT_PATH_NM])dnl
  1.1741  AC_REQUIRE([LT_PATH_LD])dnl
  1.1742  m4_require([_LT_DECL_SED])dnl
  1.1743 @@ -4077,8 +4378,8 @@
  1.1744  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.1745  
  1.1746  # Transform an extracted symbol line into symbol name and symbol address
  1.1747 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  1.1748 -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'"
  1.1749 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  1.1750 +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'"
  1.1751  
  1.1752  # Handle CRLF in mingw tool chain
  1.1753  opt_cr=
  1.1754 @@ -4102,6 +4403,7 @@
  1.1755      # which start with @ or ?.
  1.1756      lt_cv_sys_global_symbol_pipe="$AWK ['"\
  1.1757  "     {last_section=section; section=\$ 3};"\
  1.1758 +"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  1.1759  "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1.1760  "     \$ 0!~/External *\|/{next};"\
  1.1761  "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1.1762 @@ -4114,6 +4416,7 @@
  1.1763    else
  1.1764      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.1765    fi
  1.1766 +  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  1.1767  
  1.1768    # Check to see that the pipe works correctly.
  1.1769    pipe_works=no
  1.1770 @@ -4135,7 +4438,7 @@
  1.1771    if AC_TRY_EVAL(ac_compile); then
  1.1772      # Now try to grab the symbols.
  1.1773      nlist=conftest.nm
  1.1774 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1.1775 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  1.1776        # Try sorting and uniquifying the output.
  1.1777        if sort "$nlist" | uniq > "$nlist"T; then
  1.1778  	mv -f "$nlist"T "$nlist"
  1.1779 @@ -4147,6 +4450,18 @@
  1.1780        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1.1781  	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1.1782  	  cat <<_LT_EOF > conftest.$ac_ext
  1.1783 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  1.1784 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  1.1785 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  1.1786 +   relocations are performed -- see ld's documentation on pseudo-relocs.  */
  1.1787 +# define LT@&t@_DLSYM_CONST
  1.1788 +#elif defined(__osf__)
  1.1789 +/* This system does not cope well with relocations in const data.  */
  1.1790 +# define LT@&t@_DLSYM_CONST
  1.1791 +#else
  1.1792 +# define LT@&t@_DLSYM_CONST const
  1.1793 +#endif
  1.1794 +
  1.1795  #ifdef __cplusplus
  1.1796  extern "C" {
  1.1797  #endif
  1.1798 @@ -4158,7 +4473,7 @@
  1.1799  	  cat <<_LT_EOF >> conftest.$ac_ext
  1.1800  
  1.1801  /* The mapping between symbol names and symbols.  */
  1.1802 -const struct {
  1.1803 +LT@&t@_DLSYM_CONST struct {
  1.1804    const char *name;
  1.1805    void       *address;
  1.1806  }
  1.1807 @@ -4184,15 +4499,15 @@
  1.1808  _LT_EOF
  1.1809  	  # Now try linking the two files.
  1.1810  	  mv conftest.$ac_objext conftstm.$ac_objext
  1.1811 -	  lt_save_LIBS="$LIBS"
  1.1812 -	  lt_save_CFLAGS="$CFLAGS"
  1.1813 +	  lt_globsym_save_LIBS=$LIBS
  1.1814 +	  lt_globsym_save_CFLAGS=$CFLAGS
  1.1815  	  LIBS="conftstm.$ac_objext"
  1.1816  	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.1817  	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  1.1818  	    pipe_works=yes
  1.1819  	  fi
  1.1820 -	  LIBS="$lt_save_LIBS"
  1.1821 -	  CFLAGS="$lt_save_CFLAGS"
  1.1822 +	  LIBS=$lt_globsym_save_LIBS
  1.1823 +	  CFLAGS=$lt_globsym_save_CFLAGS
  1.1824  	else
  1.1825  	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  1.1826  	fi
  1.1827 @@ -4225,6 +4540,13 @@
  1.1828    AC_MSG_RESULT(ok)
  1.1829  fi
  1.1830  
  1.1831 +# Response file support.
  1.1832 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1.1833 +  nm_file_list_spec='@'
  1.1834 +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  1.1835 +  nm_file_list_spec='@'
  1.1836 +fi
  1.1837 +
  1.1838  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  1.1839      [Take the output of nm and produce a listing of raw symbols and C names])
  1.1840  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  1.1841 @@ -4235,6 +4557,8 @@
  1.1842  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  1.1843      [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  1.1844      [Transform the output of nm in a C name address pair when lib prefix is needed])
  1.1845 +_LT_DECL([], [nm_file_list_spec], [1],
  1.1846 +    [Specify filename containing input files for $NM])
  1.1847  ]) # _LT_CMD_GLOBAL_SYMBOLS
  1.1848  
  1.1849  
  1.1850 @@ -4246,7 +4570,6 @@
  1.1851  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1852  _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1853  
  1.1854 -AC_MSG_CHECKING([for $compiler option to produce PIC])
  1.1855  m4_if([$1], [CXX], [
  1.1856    # C++ specific cases for pic, static, wl, etc.
  1.1857    if test "$GXX" = yes; then
  1.1858 @@ -4297,6 +4620,11 @@
  1.1859        # DJGPP does not support shared libraries at all
  1.1860        _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1861        ;;
  1.1862 +    haiku*)
  1.1863 +      # PIC is the default for Haiku.
  1.1864 +      # The "-static" flag exists, but is broken.
  1.1865 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1866 +      ;;
  1.1867      interix[[3-9]]*)
  1.1868        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.1869        # Instead, we relocate shared libraries at runtime.
  1.1870 @@ -4346,6 +4674,12 @@
  1.1871  	  ;;
  1.1872  	esac
  1.1873  	;;
  1.1874 +      mingw* | cygwin* | os2* | pw32* | cegcc*)
  1.1875 +	# This hack is so that the source file can tell whether it is being
  1.1876 +	# built for inclusion in a dll (and should export symbols for example).
  1.1877 +	m4_if([$1], [GCJ], [],
  1.1878 +	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.1879 +	;;
  1.1880        dgux*)
  1.1881  	case $cc_basename in
  1.1882  	  ec++*)
  1.1883 @@ -4402,7 +4736,7 @@
  1.1884  	    ;;
  1.1885  	esac
  1.1886  	;;
  1.1887 -      linux* | k*bsd*-gnu)
  1.1888 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1889  	case $cc_basename in
  1.1890  	  KCC*)
  1.1891  	    # KAI C++ Compiler
  1.1892 @@ -4435,8 +4769,8 @@
  1.1893  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1894  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1895  	    ;;
  1.1896 -	  xlc* | xlC*)
  1.1897 -	    # IBM XL 8.0 on PPC
  1.1898 +	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  1.1899 +	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  1.1900  	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1901  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1902  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1903 @@ -4498,7 +4832,7 @@
  1.1904  	;;
  1.1905        solaris*)
  1.1906  	case $cc_basename in
  1.1907 -	  CC*)
  1.1908 +	  CC* | sunCC*)
  1.1909  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.1910  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1911  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1912 @@ -4602,6 +4936,12 @@
  1.1913        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.1914        ;;
  1.1915  
  1.1916 +    haiku*)
  1.1917 +      # PIC is the default for Haiku.
  1.1918 +      # The "-static" flag exists, but is broken.
  1.1919 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1920 +      ;;
  1.1921 +
  1.1922      hpux*)
  1.1923        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.1924        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.1925 @@ -4644,6 +4984,15 @@
  1.1926        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.1927        ;;
  1.1928      esac
  1.1929 +
  1.1930 +    case $cc_basename in
  1.1931 +    nvcc*) # Cuda Compiler Driver 2.2
  1.1932 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  1.1933 +      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.1934 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  1.1935 +      fi
  1.1936 +      ;;
  1.1937 +    esac
  1.1938    else
  1.1939      # PORTME Check for flag to pass linker flags through the system compiler.
  1.1940      case $host_os in
  1.1941 @@ -4686,7 +5035,7 @@
  1.1942        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1943        ;;
  1.1944  
  1.1945 -    linux* | k*bsd*-gnu)
  1.1946 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1947        case $cc_basename in
  1.1948        # old Intel for x86_64 which still supported -KPIC.
  1.1949        ecc*)
  1.1950 @@ -4707,7 +5056,13 @@
  1.1951  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  1.1952  	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  1.1953  	;;
  1.1954 -      pgcc* | pgf77* | pgf90* | pgf95*)
  1.1955 +      nagfor*)
  1.1956 +	# NAG Fortran compiler
  1.1957 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  1.1958 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.1959 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1960 +	;;
  1.1961 +      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  1.1962          # Portland Group compilers (*not* the Pentium gcc compiler,
  1.1963  	# which looks to be a dead project)
  1.1964  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1965 @@ -4719,25 +5074,40 @@
  1.1966          # All Alpha code is PIC.
  1.1967          _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1968          ;;
  1.1969 -      xl*)
  1.1970 -	# IBM XL C 8.0/Fortran 10.1 on PPC
  1.1971 +      xl* | bgxl* | bgf* | mpixl*)
  1.1972 +	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  1.1973  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1974  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1975  	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1976  	;;
  1.1977        *)
  1.1978  	case `$CC -V 2>&1 | sed 5q` in
  1.1979 +	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  1.1980 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1981 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1982 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1983 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.1984 +	  ;;
  1.1985 +	*Sun\ F* | *Sun*Fortran*)
  1.1986 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1987 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1988 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.1989 +	  ;;
  1.1990  	*Sun\ C*)
  1.1991  	  # Sun C 5.9
  1.1992  	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1993  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1994  	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1995  	  ;;
  1.1996 -	*Sun\ F*)
  1.1997 -	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1998 -	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1999 +        *Intel*\ [[CF]]*Compiler*)
  1.2000 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2001 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2002 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2003 +	  ;;
  1.2004 +	*Portland\ Group*)
  1.2005 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2006 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2007  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2008 -	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.2009  	  ;;
  1.2010  	esac
  1.2011  	;;
  1.2012 @@ -4769,7 +5139,7 @@
  1.2013        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2014        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2015        case $cc_basename in
  1.2016 -      f77* | f90* | f95*)
  1.2017 +      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  1.2018  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.2019        *)
  1.2020  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.2021 @@ -4826,9 +5196,11 @@
  1.2022      _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  1.2023      ;;
  1.2024  esac
  1.2025 -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2026 -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2027 -	[How to pass a linker flag through the compiler])
  1.2028 +
  1.2029 +AC_CACHE_CHECK([for $compiler option to produce PIC],
  1.2030 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  1.2031 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2032 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  1.2033  
  1.2034  #
  1.2035  # Check to make sure the PIC flag actually works.
  1.2036 @@ -4847,6 +5219,8 @@
  1.2037  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  1.2038  	[Additional compiler flags for building library objects])
  1.2039  
  1.2040 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2041 +	[How to pass a linker flag through the compiler])
  1.2042  #
  1.2043  # Check to make sure the static flag actually works.
  1.2044  #
  1.2045 @@ -4867,6 +5241,7 @@
  1.2046  m4_defun([_LT_LINKER_SHLIBS],
  1.2047  [AC_REQUIRE([LT_PATH_LD])dnl
  1.2048  AC_REQUIRE([LT_PATH_NM])dnl
  1.2049 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2050  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2051  m4_require([_LT_DECL_EGREP])dnl
  1.2052  m4_require([_LT_DECL_SED])dnl
  1.2053 @@ -4875,27 +5250,37 @@
  1.2054  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.2055  m4_if([$1], [CXX], [
  1.2056    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2057 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2058    case $host_os in
  1.2059    aix[[4-9]]*)
  1.2060      # If we're using GNU nm, then we don't want the "-C" option.
  1.2061      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2062 +    # Also, AIX nm treats weak defined symbols like other global defined
  1.2063 +    # symbols, whereas GNU nm marks them as "W".
  1.2064      if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2065 -      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2066 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2067      else
  1.2068        _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2069      fi
  1.2070      ;;
  1.2071    pw32*)
  1.2072      _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.2073 -  ;;
  1.2074 +    ;;
  1.2075    cygwin* | mingw* | cegcc*)
  1.2076 -    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2077 -  ;;
  1.2078 +    case $cc_basename in
  1.2079 +    cl*)
  1.2080 +      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2081 +      ;;
  1.2082 +    *)
  1.2083 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2084 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2085 +      ;;
  1.2086 +    esac
  1.2087 +    ;;
  1.2088    *)
  1.2089      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2090 -  ;;
  1.2091 +    ;;
  1.2092    esac
  1.2093 -  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2094  ], [
  1.2095    runpath_var=
  1.2096    _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2097 @@ -4910,7 +5295,6 @@
  1.2098    _LT_TAGVAR(hardcode_direct, $1)=no
  1.2099    _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2100    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2101 -  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2102    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2103    _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2104    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2105 @@ -4958,7 +5342,33 @@
  1.2106    esac
  1.2107  
  1.2108    _LT_TAGVAR(ld_shlibs, $1)=yes
  1.2109 +
  1.2110 +  # On some targets, GNU ld is compatible enough with the native linker
  1.2111 +  # that we're better off using the native interface for both.
  1.2112 +  lt_use_gnu_ld_interface=no
  1.2113    if test "$with_gnu_ld" = yes; then
  1.2114 +    case $host_os in
  1.2115 +      aix*)
  1.2116 +	# The AIX port of GNU ld has always aspired to compatibility
  1.2117 +	# with the native linker.  However, as the warning in the GNU ld
  1.2118 +	# block says, versions before 2.19.5* couldn't really create working
  1.2119 +	# shared libraries, regardless of the interface used.
  1.2120 +	case `$LD -v 2>&1` in
  1.2121 +	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  1.2122 +	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  1.2123 +	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  1.2124 +	  *)
  1.2125 +	    lt_use_gnu_ld_interface=yes
  1.2126 +	    ;;
  1.2127 +	esac
  1.2128 +	;;
  1.2129 +      *)
  1.2130 +	lt_use_gnu_ld_interface=yes
  1.2131 +	;;
  1.2132 +    esac
  1.2133 +  fi
  1.2134 +
  1.2135 +  if test "$lt_use_gnu_ld_interface" = yes; then
  1.2136      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.2137      wlarc='${wl}'
  1.2138  
  1.2139 @@ -4976,6 +5386,7 @@
  1.2140      fi
  1.2141      supports_anon_versioning=no
  1.2142      case `$LD -v 2>&1` in
  1.2143 +      *GNU\ gold*) supports_anon_versioning=yes ;;
  1.2144        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.2145        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.2146        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.2147 @@ -4991,11 +5402,12 @@
  1.2148  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2149  	cat <<_LT_EOF 1>&2
  1.2150  
  1.2151 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.2152 +*** Warning: the GNU linker, at least up to release 2.19, is reported
  1.2153  *** to be unable to reliably create shared libraries on AIX.
  1.2154  *** Therefore, libtool is disabling shared libraries support.  If you
  1.2155 -*** really care for shared libraries, you may want to modify your PATH
  1.2156 -*** so that a non-GNU linker is found, and then restart.
  1.2157 +*** really care for shared libraries, you may want to install binutils
  1.2158 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  1.2159 +*** You will then need to restart the configuration process.
  1.2160  
  1.2161  _LT_EOF
  1.2162        fi
  1.2163 @@ -5031,10 +5443,12 @@
  1.2164        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2165        # as there is no search path for DLLs.
  1.2166        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2167 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2168        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2169        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2170        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2171 -      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  1.2172 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2173 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2174  
  1.2175        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2176          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2177 @@ -5052,6 +5466,11 @@
  1.2178        fi
  1.2179        ;;
  1.2180  
  1.2181 +    haiku*)
  1.2182 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2183 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2184 +      ;;
  1.2185 +
  1.2186      interix[[3-9]]*)
  1.2187        _LT_TAGVAR(hardcode_direct, $1)=no
  1.2188        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2189 @@ -5067,7 +5486,7 @@
  1.2190        _LT_TAGVAR(archive_expsym_cmds, $1)='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'
  1.2191        ;;
  1.2192  
  1.2193 -    gnu* | linux* | tpf* | k*bsd*-gnu)
  1.2194 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  1.2195        tmp_diet=no
  1.2196        if test "$host_os" = linux-dietlibc; then
  1.2197  	case $cc_basename in
  1.2198 @@ -5077,15 +5496,16 @@
  1.2199        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  1.2200  	 && test "$tmp_diet" = no
  1.2201        then
  1.2202 -	tmp_addflag=
  1.2203 +	tmp_addflag=' $pic_flag'
  1.2204  	tmp_sharedflag='-shared'
  1.2205  	case $cc_basename,$host_cpu in
  1.2206          pgcc*)				# Portland Group C compiler
  1.2207 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2208 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2209  	  tmp_addflag=' $pic_flag'
  1.2210  	  ;;
  1.2211 -	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.2212 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2213 +	pgf77* | pgf90* | pgf95* | pgfortran*)
  1.2214 +					# Portland Group f77 and f90 compilers
  1.2215 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2216  	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.2217  	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  1.2218  	  tmp_addflag=' -i_dynamic' ;;
  1.2219 @@ -5096,13 +5516,17 @@
  1.2220  	lf95*)				# Lahey Fortran 8.1
  1.2221  	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2222  	  tmp_sharedflag='--shared' ;;
  1.2223 -	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  1.2224 +	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  1.2225  	  tmp_sharedflag='-qmkshrobj'
  1.2226  	  tmp_addflag= ;;
  1.2227 +	nvcc*)	# Cuda Compiler Driver 2.2
  1.2228 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2229 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2230 +	  ;;
  1.2231  	esac
  1.2232  	case `$CC -V 2>&1 | sed 5q` in
  1.2233  	*Sun\ C*)			# Sun C 5.9
  1.2234 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2235 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2236  	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2237  	  tmp_sharedflag='-G' ;;
  1.2238  	*Sun\ F*)			# Sun Fortran 8.3
  1.2239 @@ -5118,17 +5542,16 @@
  1.2240          fi
  1.2241  
  1.2242  	case $cc_basename in
  1.2243 -	xlf*)
  1.2244 +	xlf* | bgf* | bgxlf* | mpixlf*)
  1.2245  	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1.2246  	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  1.2247 -	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2248 -	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.2249 -	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  1.2250 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2251 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  1.2252  	  if test "x$supports_anon_versioning" = xyes; then
  1.2253  	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.2254  	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.2255  	      echo "local: *; };" >> $output_objdir/$libname.ver~
  1.2256 -	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2257 +	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2258  	  fi
  1.2259  	  ;;
  1.2260  	esac
  1.2261 @@ -5142,8 +5565,8 @@
  1.2262  	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.2263  	wlarc=
  1.2264        else
  1.2265 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2266 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2267 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2268 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2269        fi
  1.2270        ;;
  1.2271  
  1.2272 @@ -5161,8 +5584,8 @@
  1.2273  
  1.2274  _LT_EOF
  1.2275        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2276 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2277 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2278 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2279 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2280        else
  1.2281  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2282        fi
  1.2283 @@ -5208,8 +5631,8 @@
  1.2284  
  1.2285      *)
  1.2286        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2287 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2288 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2289 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2290 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2291        else
  1.2292  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2293        fi
  1.2294 @@ -5249,8 +5672,10 @@
  1.2295        else
  1.2296  	# If we're using GNU nm, then we don't want the "-C" option.
  1.2297  	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2298 +	# Also, AIX nm treats weak defined symbols like other global
  1.2299 +	# defined symbols, whereas GNU nm marks them as "W".
  1.2300  	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2301 -	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2302 +	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2303  	else
  1.2304  	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2305  	fi
  1.2306 @@ -5337,9 +5762,9 @@
  1.2307  	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2308          # Determine the default libpath from the value encoded in an
  1.2309          # empty executable.
  1.2310 -        _LT_SYS_MODULE_PATH_AIX
  1.2311 +        _LT_SYS_MODULE_PATH_AIX([$1])
  1.2312          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2313 -        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2314 +        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2315        else
  1.2316  	if test "$host_cpu" = ia64; then
  1.2317  	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2318 @@ -5348,14 +5773,19 @@
  1.2319  	else
  1.2320  	 # Determine the default libpath from the value encoded in an
  1.2321  	 # empty executable.
  1.2322 -	 _LT_SYS_MODULE_PATH_AIX
  1.2323 +	 _LT_SYS_MODULE_PATH_AIX([$1])
  1.2324  	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2325  	  # Warning - without using the other run time loading flags,
  1.2326  	  # -berok will link without error, but may produce a broken library.
  1.2327  	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2328  	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2329 -	  # Exported symbols can be pulled into shared objects from archives
  1.2330 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2331 +	  if test "$with_gnu_ld" = yes; then
  1.2332 +	    # We only use this code for GNU lds that support --whole-archive.
  1.2333 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2334 +	  else
  1.2335 +	    # Exported symbols can be pulled into shared objects from archives
  1.2336 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2337 +	  fi
  1.2338  	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2339  	  # This is similar to how AIX traditionally builds its shared libraries.
  1.2340  	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$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'
  1.2341 @@ -5387,20 +5817,64 @@
  1.2342        # Microsoft Visual C++.
  1.2343        # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2344        # no search path for DLLs.
  1.2345 -      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2346 -      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2347 -      # Tell ltmain to make .lib files, not .a files.
  1.2348 -      libext=lib
  1.2349 -      # Tell ltmain to make .dll files, not .so files.
  1.2350 -      shrext_cmds=".dll"
  1.2351 -      # FIXME: Setting linknames here is a bad hack.
  1.2352 -      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2353 -      # The linker will automatically build a .lib file if we build a DLL.
  1.2354 -      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2355 -      # FIXME: Should let the user specify the lib program.
  1.2356 -      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2357 -      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.2358 -      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2359 +      case $cc_basename in
  1.2360 +      cl*)
  1.2361 +	# Native MSVC
  1.2362 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2363 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2364 +	_LT_TAGVAR(always_export_symbols, $1)=yes
  1.2365 +	_LT_TAGVAR(file_list_spec, $1)='@'
  1.2366 +	# Tell ltmain to make .lib files, not .a files.
  1.2367 +	libext=lib
  1.2368 +	# Tell ltmain to make .dll files, not .so files.
  1.2369 +	shrext_cmds=".dll"
  1.2370 +	# FIXME: Setting linknames here is a bad hack.
  1.2371 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2372 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2373 +	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2374 +	  else
  1.2375 +	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2376 +	  fi~
  1.2377 +	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  1.2378 +	  linknames='
  1.2379 +	# The linker will not automatically build a static lib if we build a DLL.
  1.2380 +	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2381 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2382 +	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2383 +	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  1.2384 +	# Don't use ranlib
  1.2385 +	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2386 +	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2387 +	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2388 +	  case $lt_outputfile in
  1.2389 +	    *.exe|*.EXE) ;;
  1.2390 +	    *)
  1.2391 +	      lt_outputfile="$lt_outputfile.exe"
  1.2392 +	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2393 +	      ;;
  1.2394 +	  esac~
  1.2395 +	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2396 +	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2397 +	    $RM "$lt_outputfile.manifest";
  1.2398 +	  fi'
  1.2399 +	;;
  1.2400 +      *)
  1.2401 +	# Assume MSVC wrapper
  1.2402 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2403 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2404 +	# Tell ltmain to make .lib files, not .a files.
  1.2405 +	libext=lib
  1.2406 +	# Tell ltmain to make .dll files, not .so files.
  1.2407 +	shrext_cmds=".dll"
  1.2408 +	# FIXME: Setting linknames here is a bad hack.
  1.2409 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2410 +	# The linker will automatically build a .lib file if we build a DLL.
  1.2411 +	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2412 +	# FIXME: Should let the user specify the lib program.
  1.2413 +	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2414 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2415 +	;;
  1.2416 +      esac
  1.2417        ;;
  1.2418  
  1.2419      darwin* | rhapsody*)
  1.2420 @@ -5413,10 +5887,6 @@
  1.2421        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2422        ;;
  1.2423  
  1.2424 -    freebsd1*)
  1.2425 -      _LT_TAGVAR(ld_shlibs, $1)=no
  1.2426 -      ;;
  1.2427 -
  1.2428      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.2429      # support.  Future versions do this automatically, but an explicit c++rt0.o
  1.2430      # does not break anything, and helps significantly (at the cost of a little
  1.2431 @@ -5429,7 +5899,7 @@
  1.2432        ;;
  1.2433  
  1.2434      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.2435 -    freebsd2*)
  1.2436 +    freebsd2.*)
  1.2437        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.2438        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2439        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2440 @@ -5438,7 +5908,7 @@
  1.2441  
  1.2442      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.2443      freebsd* | dragonfly*)
  1.2444 -      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.2445 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.2446        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.2447        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2448        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2449 @@ -5446,7 +5916,7 @@
  1.2450  
  1.2451      hpux9*)
  1.2452        if test "$GCC" = yes; then
  1.2453 -	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2454 +	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2455        else
  1.2456  	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2457        fi
  1.2458 @@ -5461,14 +5931,13 @@
  1.2459        ;;
  1.2460  
  1.2461      hpux10*)
  1.2462 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2463 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2464 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2465 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2466        else
  1.2467  	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.2468        fi
  1.2469        if test "$with_gnu_ld" = no; then
  1.2470  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2471 -	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.2472  	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2473  	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.2474  	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.2475 @@ -5480,16 +5949,16 @@
  1.2476        ;;
  1.2477  
  1.2478      hpux11*)
  1.2479 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2480 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2481  	case $host_cpu in
  1.2482  	hppa*64*)
  1.2483  	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2484  	  ;;
  1.2485  	ia64*)
  1.2486 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2487 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2488  	  ;;
  1.2489  	*)
  1.2490 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2491 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2492  	  ;;
  1.2493  	esac
  1.2494        else
  1.2495 @@ -5501,7 +5970,14 @@
  1.2496  	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2497  	  ;;
  1.2498  	*)
  1.2499 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2500 +	m4_if($1, [], [
  1.2501 +	  # Older versions of the 11.00 compiler do not understand -b yet
  1.2502 +	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  1.2503 +	  _LT_LINKER_OPTION([if $CC understands -b],
  1.2504 +	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  1.2505 +	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  1.2506 +	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  1.2507 +	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  1.2508  	  ;;
  1.2509  	esac
  1.2510        fi
  1.2511 @@ -5529,19 +6005,34 @@
  1.2512  
  1.2513      irix5* | irix6* | nonstopux*)
  1.2514        if test "$GCC" = yes; then
  1.2515 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2516 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2517  	# Try to use the -exported_symbol ld option, if it does not
  1.2518  	# work, assume that -exports_file does not work either and
  1.2519  	# implicitly export all symbols.
  1.2520 -        save_LDFLAGS="$LDFLAGS"
  1.2521 -        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2522 -        AC_LINK_IFELSE(int foo(void) {},
  1.2523 -          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  1.2524 -        )
  1.2525 -        LDFLAGS="$save_LDFLAGS"
  1.2526 +	# This should be the same for all languages, so no per-tag cache variable.
  1.2527 +	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  1.2528 +	  [lt_cv_irix_exported_symbol],
  1.2529 +	  [save_LDFLAGS="$LDFLAGS"
  1.2530 +	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2531 +	   AC_LINK_IFELSE(
  1.2532 +	     [AC_LANG_SOURCE(
  1.2533 +	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  1.2534 +			      [C++], [[int foo (void) { return 0; }]],
  1.2535 +			      [Fortran 77], [[
  1.2536 +      subroutine foo
  1.2537 +      end]],
  1.2538 +			      [Fortran], [[
  1.2539 +      subroutine foo
  1.2540 +      end]])])],
  1.2541 +	      [lt_cv_irix_exported_symbol=yes],
  1.2542 +	      [lt_cv_irix_exported_symbol=no])
  1.2543 +           LDFLAGS="$save_LDFLAGS"])
  1.2544 +	if test "$lt_cv_irix_exported_symbol" = yes; then
  1.2545 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  1.2546 +	fi
  1.2547        else
  1.2548 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2549 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  1.2550 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2551 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  1.2552        fi
  1.2553        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2554        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2555 @@ -5603,17 +6094,17 @@
  1.2556        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2557        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2558        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2559 -      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  1.2560 +      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  1.2561        _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  1.2562        ;;
  1.2563  
  1.2564      osf3*)
  1.2565        if test "$GCC" = yes; then
  1.2566  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2567 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2568 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2569        else
  1.2570  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2571 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2572 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2573        fi
  1.2574        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2575        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2576 @@ -5623,13 +6114,13 @@
  1.2577      osf4* | osf5*)	# as osf3* with the addition of -msym flag
  1.2578        if test "$GCC" = yes; then
  1.2579  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2580 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2581 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2582  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2583        else
  1.2584  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2585 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2586 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2587  	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  1.2588 -	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  1.2589 +	$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'
  1.2590  
  1.2591  	# Both c and cxx compiler support -rpath directly
  1.2592  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.2593 @@ -5642,9 +6133,9 @@
  1.2594        _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  1.2595        if test "$GCC" = yes; then
  1.2596  	wlarc='${wl}'
  1.2597 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2598 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2599  	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.2600 -	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  1.2601 +	  $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'
  1.2602        else
  1.2603  	case `$CC -V 2>&1` in
  1.2604  	*"Compilers 5.0"*)
  1.2605 @@ -5820,36 +6311,38 @@
  1.2606        # Test whether the compiler implicitly links with -lc since on some
  1.2607        # systems, -lgcc has to come before -lc. If gcc already passes -lc
  1.2608        # to ld, don't add -lc before -lgcc.
  1.2609 -      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.2610 -      $RM conftest*
  1.2611 -      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2612 -
  1.2613 -      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2614 -        soname=conftest
  1.2615 -        lib=conftest
  1.2616 -        libobjs=conftest.$ac_objext
  1.2617 -        deplibs=
  1.2618 -        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2619 -	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2620 -        compiler_flags=-v
  1.2621 -        linker_flags=-v
  1.2622 -        verstring=
  1.2623 -        output_objdir=.
  1.2624 -        libname=conftest
  1.2625 -        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2626 -        _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2627 -        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2628 -        then
  1.2629 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2630 -        else
  1.2631 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2632 -        fi
  1.2633 -        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2634 -      else
  1.2635 -        cat conftest.err 1>&5
  1.2636 -      fi
  1.2637 -      $RM conftest*
  1.2638 -      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  1.2639 +      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  1.2640 +	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  1.2641 +	[$RM conftest*
  1.2642 +	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2643 +
  1.2644 +	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2645 +	  soname=conftest
  1.2646 +	  lib=conftest
  1.2647 +	  libobjs=conftest.$ac_objext
  1.2648 +	  deplibs=
  1.2649 +	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2650 +	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2651 +	  compiler_flags=-v
  1.2652 +	  linker_flags=-v
  1.2653 +	  verstring=
  1.2654 +	  output_objdir=.
  1.2655 +	  libname=conftest
  1.2656 +	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2657 +	  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2658 +	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2659 +	  then
  1.2660 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2661 +	  else
  1.2662 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2663 +	  fi
  1.2664 +	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2665 +	else
  1.2666 +	  cat conftest.err 1>&5
  1.2667 +	fi
  1.2668 +	$RM conftest*
  1.2669 +	])
  1.2670 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  1.2671        ;;
  1.2672      esac
  1.2673    fi
  1.2674 @@ -5886,9 +6379,6 @@
  1.2675  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  1.2676      [Flag to hardcode $libdir into a binary during linking.
  1.2677      This must work even if $libdir does not exist])
  1.2678 -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  1.2679 -    [[If ld is used when linking, flag to hardcode $libdir into a binary
  1.2680 -    during linking.  This must work even if $libdir does not exist]])
  1.2681  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  1.2682      [Whether we need a single "-rpath" flag with a separated argument])
  1.2683  _LT_TAGDECL([], [hardcode_direct], [0],
  1.2684 @@ -5914,8 +6404,6 @@
  1.2685      to runtime path list])
  1.2686  _LT_TAGDECL([], [link_all_deplibs], [0],
  1.2687      [Whether libtool must link a program against all its dependency libraries])
  1.2688 -_LT_TAGDECL([], [fix_srcfile_path], [1],
  1.2689 -    [Fix the shell variable $srcfile for the compiler])
  1.2690  _LT_TAGDECL([], [always_export_symbols], [0],
  1.2691      [Set to "yes" if exported symbols are required])
  1.2692  _LT_TAGDECL([], [export_symbols_cmds], [2],
  1.2693 @@ -5926,6 +6414,8 @@
  1.2694      [Symbols that must always be exported])
  1.2695  _LT_TAGDECL([], [prelink_cmds], [2],
  1.2696      [Commands necessary for linking programs (against libraries) with templates])
  1.2697 +_LT_TAGDECL([], [postlink_cmds], [2],
  1.2698 +    [Commands necessary for finishing linking programs])
  1.2699  _LT_TAGDECL([], [file_list_spec], [1],
  1.2700      [Specify filename containing input files])
  1.2701  dnl FIXME: Not yet implemented
  1.2702 @@ -6019,14 +6509,15 @@
  1.2703  ])# _LT_LANG_C_CONFIG
  1.2704  
  1.2705  
  1.2706 -# _LT_PROG_CXX
  1.2707 -# ------------
  1.2708 -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  1.2709 -# compiler, we have our own version here.
  1.2710 -m4_defun([_LT_PROG_CXX],
  1.2711 -[
  1.2712 -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  1.2713 -AC_PROG_CXX
  1.2714 +# _LT_LANG_CXX_CONFIG([TAG])
  1.2715 +# --------------------------
  1.2716 +# Ensure that the configuration variables for a C++ compiler are suitably
  1.2717 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2718 +# the compiler configuration to `libtool'.
  1.2719 +m4_defun([_LT_LANG_CXX_CONFIG],
  1.2720 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2721 +m4_require([_LT_DECL_EGREP])dnl
  1.2722 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2723  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.2724      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.2725      (test "X$CXX" != "Xg++"))) ; then
  1.2726 @@ -6034,22 +6525,6 @@
  1.2727  else
  1.2728    _lt_caught_CXX_error=yes
  1.2729  fi
  1.2730 -popdef([AC_MSG_ERROR])
  1.2731 -])# _LT_PROG_CXX
  1.2732 -
  1.2733 -dnl aclocal-1.4 backwards compatibility:
  1.2734 -dnl AC_DEFUN([_LT_PROG_CXX], [])
  1.2735 -
  1.2736 -
  1.2737 -# _LT_LANG_CXX_CONFIG([TAG])
  1.2738 -# --------------------------
  1.2739 -# Ensure that the configuration variables for a C++ compiler are suitably
  1.2740 -# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2741 -# the compiler configuration to `libtool'.
  1.2742 -m4_defun([_LT_LANG_CXX_CONFIG],
  1.2743 -[AC_REQUIRE([_LT_PROG_CXX])dnl
  1.2744 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2745 -m4_require([_LT_DECL_EGREP])dnl
  1.2746  
  1.2747  AC_LANG_PUSH(C++)
  1.2748  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2749 @@ -6061,7 +6536,6 @@
  1.2750  _LT_TAGVAR(hardcode_direct, $1)=no
  1.2751  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2752  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2753 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2754  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2755  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2756  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2757 @@ -6071,6 +6545,8 @@
  1.2758  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.2759  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.2760  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.2761 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.2762 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.2763  _LT_TAGVAR(no_undefined_flag, $1)=
  1.2764  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2765  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.2766 @@ -6102,6 +6578,7 @@
  1.2767  
  1.2768    # Allow CC to be a program name with arguments.
  1.2769    lt_save_CC=$CC
  1.2770 +  lt_save_CFLAGS=$CFLAGS
  1.2771    lt_save_LD=$LD
  1.2772    lt_save_GCC=$GCC
  1.2773    GCC=$GXX
  1.2774 @@ -6119,6 +6596,7 @@
  1.2775    fi
  1.2776    test -z "${LDCXX+set}" || LD=$LDCXX
  1.2777    CC=${CXX-"c++"}
  1.2778 +  CFLAGS=$CXXFLAGS
  1.2779    compiler=$CC
  1.2780    _LT_TAGVAR(compiler, $1)=$CC
  1.2781    _LT_CC_BASENAME([$compiler])
  1.2782 @@ -6140,8 +6618,8 @@
  1.2783        # Check if GNU C++ uses GNU ld as the underlying linker, since the
  1.2784        # archiving commands below assume that GNU ld is being used.
  1.2785        if test "$with_gnu_ld" = yes; then
  1.2786 -        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2787 -        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2788 +        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2789 +        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2790  
  1.2791          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2792          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.2793 @@ -6173,7 +6651,7 @@
  1.2794        # Commands to make compiler produce verbose output that lists
  1.2795        # what "hidden" libraries, object files and flags are used when
  1.2796        # linking a shared library.
  1.2797 -      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.2798 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.2799  
  1.2800      else
  1.2801        GXX=no
  1.2802 @@ -6282,10 +6760,10 @@
  1.2803            _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2804            # Determine the default libpath from the value encoded in an empty
  1.2805            # executable.
  1.2806 -          _LT_SYS_MODULE_PATH_AIX
  1.2807 +          _LT_SYS_MODULE_PATH_AIX([$1])
  1.2808            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2809  
  1.2810 -          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2811 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2812          else
  1.2813            if test "$host_cpu" = ia64; then
  1.2814  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2815 @@ -6294,14 +6772,19 @@
  1.2816            else
  1.2817  	    # Determine the default libpath from the value encoded in an
  1.2818  	    # empty executable.
  1.2819 -	    _LT_SYS_MODULE_PATH_AIX
  1.2820 +	    _LT_SYS_MODULE_PATH_AIX([$1])
  1.2821  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2822  	    # Warning - without using the other run time loading flags,
  1.2823  	    # -berok will link without error, but may produce a broken library.
  1.2824  	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2825  	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2826 -	    # Exported symbols can be pulled into shared objects from archives
  1.2827 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2828 +	    if test "$with_gnu_ld" = yes; then
  1.2829 +	      # We only use this code for GNU lds that support --whole-archive.
  1.2830 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2831 +	    else
  1.2832 +	      # Exported symbols can be pulled into shared objects from archives
  1.2833 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2834 +	    fi
  1.2835  	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2836  	    # This is similar to how AIX traditionally builds its shared
  1.2837  	    # libraries.
  1.2838 @@ -6331,28 +6814,75 @@
  1.2839          ;;
  1.2840  
  1.2841        cygwin* | mingw* | pw32* | cegcc*)
  1.2842 -        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2843 -        # as there is no search path for DLLs.
  1.2844 -        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2845 -        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2846 -        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2847 -        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2848 -
  1.2849 -        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2850 -          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2851 -          # If the export-symbols file already is a .def file (1st line
  1.2852 -          # is EXPORTS), use it as is; otherwise, prepend...
  1.2853 -          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2854 -	    cp $export_symbols $output_objdir/$soname.def;
  1.2855 -          else
  1.2856 -	    echo EXPORTS > $output_objdir/$soname.def;
  1.2857 -	    cat $export_symbols >> $output_objdir/$soname.def;
  1.2858 -          fi~
  1.2859 -          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2860 -        else
  1.2861 -          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2862 -        fi
  1.2863 -        ;;
  1.2864 +	case $GXX,$cc_basename in
  1.2865 +	,cl* | no,cl*)
  1.2866 +	  # Native MSVC
  1.2867 +	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2868 +	  # no search path for DLLs.
  1.2869 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2870 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2871 +	  _LT_TAGVAR(always_export_symbols, $1)=yes
  1.2872 +	  _LT_TAGVAR(file_list_spec, $1)='@'
  1.2873 +	  # Tell ltmain to make .lib files, not .a files.
  1.2874 +	  libext=lib
  1.2875 +	  # Tell ltmain to make .dll files, not .so files.
  1.2876 +	  shrext_cmds=".dll"
  1.2877 +	  # FIXME: Setting linknames here is a bad hack.
  1.2878 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2879 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2880 +	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2881 +	    else
  1.2882 +	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2883 +	    fi~
  1.2884 +	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  1.2885 +	    linknames='
  1.2886 +	  # The linker will not automatically build a static lib if we build a DLL.
  1.2887 +	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2888 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2889 +	  # Don't use ranlib
  1.2890 +	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2891 +	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2892 +	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2893 +	    case $lt_outputfile in
  1.2894 +	      *.exe|*.EXE) ;;
  1.2895 +	      *)
  1.2896 +		lt_outputfile="$lt_outputfile.exe"
  1.2897 +		lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2898 +		;;
  1.2899 +	    esac~
  1.2900 +	    func_to_tool_file "$lt_outputfile"~
  1.2901 +	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2902 +	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2903 +	      $RM "$lt_outputfile.manifest";
  1.2904 +	    fi'
  1.2905 +	  ;;
  1.2906 +	*)
  1.2907 +	  # g++
  1.2908 +	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2909 +	  # as there is no search path for DLLs.
  1.2910 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2911 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2912 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2913 +	  _LT_TAGVAR(always_export_symbols, $1)=no
  1.2914 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2915 +
  1.2916 +	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2917 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2918 +	    # If the export-symbols file already is a .def file (1st line
  1.2919 +	    # is EXPORTS), use it as is; otherwise, prepend...
  1.2920 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2921 +	      cp $export_symbols $output_objdir/$soname.def;
  1.2922 +	    else
  1.2923 +	      echo EXPORTS > $output_objdir/$soname.def;
  1.2924 +	      cat $export_symbols >> $output_objdir/$soname.def;
  1.2925 +	    fi~
  1.2926 +	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2927 +	  else
  1.2928 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.2929 +	  fi
  1.2930 +	  ;;
  1.2931 +	esac
  1.2932 +	;;
  1.2933        darwin* | rhapsody*)
  1.2934          _LT_DARWIN_LINKER_FEATURES($1)
  1.2935  	;;
  1.2936 @@ -6375,7 +6905,7 @@
  1.2937          esac
  1.2938          ;;
  1.2939  
  1.2940 -      freebsd[[12]]*)
  1.2941 +      freebsd2.*)
  1.2942          # C++ shared libraries reported to be fairly broken before
  1.2943  	# switch to ELF
  1.2944          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2945 @@ -6394,6 +6924,11 @@
  1.2946        gnu*)
  1.2947          ;;
  1.2948  
  1.2949 +      haiku*)
  1.2950 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2951 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2952 +        ;;
  1.2953 +
  1.2954        hpux9*)
  1.2955          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2956          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2957 @@ -6418,11 +6953,11 @@
  1.2958              # explicitly linking system object files so we need to strip them
  1.2959              # from the output so that they don't get included in the library
  1.2960              # dependencies.
  1.2961 -            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.2962 +            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.2963              ;;
  1.2964            *)
  1.2965              if test "$GXX" = yes; then
  1.2966 -              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2967 +              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2968              else
  1.2969                # FIXME: insert proper C++ library support
  1.2970                _LT_TAGVAR(ld_shlibs, $1)=no
  1.2971 @@ -6483,7 +7018,7 @@
  1.2972  	    # explicitly linking system object files so we need to strip them
  1.2973  	    # from the output so that they don't get included in the library
  1.2974  	    # dependencies.
  1.2975 -	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.2976 +	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.2977  	    ;;
  1.2978            *)
  1.2979  	    if test "$GXX" = yes; then
  1.2980 @@ -6493,10 +7028,10 @@
  1.2981  	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2982  	            ;;
  1.2983  	          ia64*)
  1.2984 -	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2985 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2986  	            ;;
  1.2987  	          *)
  1.2988 -	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2989 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2990  	            ;;
  1.2991  	        esac
  1.2992  	      fi
  1.2993 @@ -6526,7 +7061,7 @@
  1.2994          case $cc_basename in
  1.2995            CC*)
  1.2996  	    # SGI C++
  1.2997 -	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2998 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2999  
  1.3000  	    # Archives containing C++ object files must be created using
  1.3001  	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.3002 @@ -6537,9 +7072,9 @@
  1.3003            *)
  1.3004  	    if test "$GXX" = yes; then
  1.3005  	      if test "$with_gnu_ld" = no; then
  1.3006 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3007 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3008  	      else
  1.3009 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  1.3010 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  1.3011  	      fi
  1.3012  	    fi
  1.3013  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3014 @@ -6550,7 +7085,7 @@
  1.3015          _LT_TAGVAR(inherit_rpath, $1)=yes
  1.3016          ;;
  1.3017  
  1.3018 -      linux* | k*bsd*-gnu)
  1.3019 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.3020          case $cc_basename in
  1.3021            KCC*)
  1.3022  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  1.3023 @@ -6568,7 +7103,7 @@
  1.3024  	    # explicitly linking system object files so we need to strip them
  1.3025  	    # from the output so that they don't get included in the library
  1.3026  	    # dependencies.
  1.3027 -	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3028 +	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.3029  
  1.3030  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3031  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3032 @@ -6605,26 +7140,26 @@
  1.3033            pgCC* | pgcpp*)
  1.3034              # Portland Group C++ compiler
  1.3035  	    case `$CC -V` in
  1.3036 -	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  1.3037 +	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  1.3038  	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  1.3039  		rm -rf $tpldir~
  1.3040  		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  1.3041 -		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  1.3042 +		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  1.3043  	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  1.3044  		rm -rf $tpldir~
  1.3045  		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  1.3046 -		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  1.3047 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  1.3048  		$RANLIB $oldlib'
  1.3049  	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  1.3050  		rm -rf $tpldir~
  1.3051  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3052 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3053 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3054  	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  1.3055  		rm -rf $tpldir~
  1.3056  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3057 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3058 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3059  	      ;;
  1.3060 -	    *) # Version 6 will use weak symbols
  1.3061 +	    *) # Version 6 and above use weak symbols
  1.3062  	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3063  	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3064  	      ;;
  1.3065 @@ -6632,7 +7167,7 @@
  1.3066  
  1.3067  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.3068  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3069 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3070 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3071              ;;
  1.3072  	  cxx*)
  1.3073  	    # Compaq C++
  1.3074 @@ -6651,9 +7186,9 @@
  1.3075  	    # explicitly linking system object files so we need to strip them
  1.3076  	    # from the output so that they don't get included in the library
  1.3077  	    # dependencies.
  1.3078 -	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3079 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  1.3080  	    ;;
  1.3081 -	  xl*)
  1.3082 +	  xl* | mpixl* | bgxl*)
  1.3083  	    # IBM XL 8.0 on PPC, with GNU ld
  1.3084  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3085  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3086 @@ -6673,13 +7208,13 @@
  1.3087  	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.3088  	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  1.3089  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3090 -	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3091 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3092  	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.3093  
  1.3094  	      # Not sure whether something based on
  1.3095  	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  1.3096  	      # would be better.
  1.3097 -	      output_verbose_link_cmd='echo'
  1.3098 +	      output_verbose_link_cmd='func_echo_all'
  1.3099  
  1.3100  	      # Archives containing C++ object files must be created using
  1.3101  	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3102 @@ -6748,7 +7283,7 @@
  1.3103  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3104  	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.3105  	  fi
  1.3106 -	  output_verbose_link_cmd=echo
  1.3107 +	  output_verbose_link_cmd=func_echo_all
  1.3108  	else
  1.3109  	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.3110  	fi
  1.3111 @@ -6783,15 +7318,15 @@
  1.3112  	    case $host in
  1.3113  	      osf3*)
  1.3114  	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3115 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3116 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3117  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3118  		;;
  1.3119  	      *)
  1.3120  	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.3121 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3122 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3123  	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.3124  	          echo "-hidden">> $lib.exp~
  1.3125 -	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  1.3126 +	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  1.3127  	          $RM $lib.exp'
  1.3128  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.3129  		;;
  1.3130 @@ -6807,17 +7342,17 @@
  1.3131  	    # explicitly linking system object files so we need to strip them
  1.3132  	    # from the output so that they don't get included in the library
  1.3133  	    # dependencies.
  1.3134 -	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3135 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.3136  	    ;;
  1.3137  	  *)
  1.3138  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3139  	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3140  	      case $host in
  1.3141  	        osf3*)
  1.3142 -	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3143 +	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3144  		  ;;
  1.3145  	        *)
  1.3146 -	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3147 +	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3148  		  ;;
  1.3149  	      esac
  1.3150  
  1.3151 @@ -6827,7 +7362,7 @@
  1.3152  	      # Commands to make compiler produce verbose output that lists
  1.3153  	      # what "hidden" libraries, object files and flags are used when
  1.3154  	      # linking a shared library.
  1.3155 -	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3156 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3157  
  1.3158  	    else
  1.3159  	      # FIXME: insert proper C++ library support
  1.3160 @@ -6863,7 +7398,7 @@
  1.3161  
  1.3162        solaris*)
  1.3163          case $cc_basename in
  1.3164 -          CC*)
  1.3165 +          CC* | sunCC*)
  1.3166  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.3167              _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.3168  	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.3169 @@ -6884,7 +7419,7 @@
  1.3170  	    esac
  1.3171  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3172  
  1.3173 -	    output_verbose_link_cmd='echo'
  1.3174 +	    output_verbose_link_cmd='func_echo_all'
  1.3175  
  1.3176  	    # Archives containing C++ object files must be created using
  1.3177  	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3178 @@ -6904,14 +7439,14 @@
  1.3179  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3180  	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  1.3181  	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  1.3182 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.3183 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.3184  	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.3185 -		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3186 +		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3187  
  1.3188  	        # Commands to make compiler produce verbose output that lists
  1.3189  	        # what "hidden" libraries, object files and flags are used when
  1.3190  	        # linking a shared library.
  1.3191 -	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3192 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3193  	      else
  1.3194  	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  1.3195  	        # platform.
  1.3196 @@ -6922,7 +7457,7 @@
  1.3197  	        # Commands to make compiler produce verbose output that lists
  1.3198  	        # what "hidden" libraries, object files and flags are used when
  1.3199  	        # linking a shared library.
  1.3200 -	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3201 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3202  	      fi
  1.3203  
  1.3204  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.3205 @@ -6976,6 +7511,10 @@
  1.3206            CC*)
  1.3207  	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3208  	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3209 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  1.3210 +	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
  1.3211 +	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  1.3212 +	      '"$_LT_TAGVAR(reload_cmds, $1)"
  1.3213  	    ;;
  1.3214  	  *)
  1.3215  	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3216 @@ -7031,6 +7570,7 @@
  1.3217    fi # test -n "$compiler"
  1.3218  
  1.3219    CC=$lt_save_CC
  1.3220 +  CFLAGS=$lt_save_CFLAGS
  1.3221    LDCXX=$LD
  1.3222    LD=$lt_save_LD
  1.3223    GCC=$lt_save_GCC
  1.3224 @@ -7045,6 +7585,29 @@
  1.3225  ])# _LT_LANG_CXX_CONFIG
  1.3226  
  1.3227  
  1.3228 +# _LT_FUNC_STRIPNAME_CNF
  1.3229 +# ----------------------
  1.3230 +# func_stripname_cnf prefix suffix name
  1.3231 +# strip PREFIX and SUFFIX off of NAME.
  1.3232 +# PREFIX and SUFFIX must not contain globbing or regex special
  1.3233 +# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3234 +# dot (in which case that matches only a dot).
  1.3235 +#
  1.3236 +# This function is identical to the (non-XSI) version of func_stripname,
  1.3237 +# except this one can be used by m4 code that may be executed by configure,
  1.3238 +# rather than the libtool script.
  1.3239 +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  1.3240 +AC_REQUIRE([_LT_DECL_SED])
  1.3241 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  1.3242 +func_stripname_cnf ()
  1.3243 +{
  1.3244 +  case ${2} in
  1.3245 +  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  1.3246 +  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  1.3247 +  esac
  1.3248 +} # func_stripname_cnf
  1.3249 +])# _LT_FUNC_STRIPNAME_CNF
  1.3250 +
  1.3251  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  1.3252  # ---------------------------------
  1.3253  # Figure out "hidden" library dependencies from verbose
  1.3254 @@ -7053,6 +7616,7 @@
  1.3255  # objects, libraries and library flags.
  1.3256  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  1.3257  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.3258 +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  1.3259  # Dependencies to place before and after the object being linked:
  1.3260  _LT_TAGVAR(predep_objects, $1)=
  1.3261  _LT_TAGVAR(postdep_objects, $1)=
  1.3262 @@ -7102,7 +7666,20 @@
  1.3263    }
  1.3264  };
  1.3265  _LT_EOF
  1.3266 +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  1.3267 +package foo
  1.3268 +func foo() {
  1.3269 +}
  1.3270 +_LT_EOF
  1.3271  ])
  1.3272 +
  1.3273 +_lt_libdeps_save_CFLAGS=$CFLAGS
  1.3274 +case "$CC $CFLAGS " in #(
  1.3275 +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  1.3276 +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  1.3277 +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  1.3278 +esac
  1.3279 +
  1.3280  dnl Parse the compiler output and extract the necessary
  1.3281  dnl objects, libraries and library flags.
  1.3282  if AC_TRY_EVAL(ac_compile); then
  1.3283 @@ -7114,7 +7691,7 @@
  1.3284    pre_test_object_deps_done=no
  1.3285  
  1.3286    for p in `eval "$output_verbose_link_cmd"`; do
  1.3287 -    case $p in
  1.3288 +    case ${prev}${p} in
  1.3289  
  1.3290      -L* | -R* | -l*)
  1.3291         # Some compilers place space between "-{L,R}" and the path.
  1.3292 @@ -7123,13 +7700,22 @@
  1.3293            test $p = "-R"; then
  1.3294  	 prev=$p
  1.3295  	 continue
  1.3296 -       else
  1.3297 -	 prev=
  1.3298         fi
  1.3299  
  1.3300 +       # Expand the sysroot to ease extracting the directories later.
  1.3301 +       if test -z "$prev"; then
  1.3302 +         case $p in
  1.3303 +         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  1.3304 +         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  1.3305 +         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  1.3306 +         esac
  1.3307 +       fi
  1.3308 +       case $p in
  1.3309 +       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  1.3310 +       esac
  1.3311         if test "$pre_test_object_deps_done" = no; then
  1.3312 -	 case $p in
  1.3313 -	 -L* | -R*)
  1.3314 +	 case ${prev} in
  1.3315 +	 -L | -R)
  1.3316  	   # Internal compiler library paths should come after those
  1.3317  	   # provided the user.  The postdeps already come after the
  1.3318  	   # user supplied libs so there is no need to process them.
  1.3319 @@ -7149,8 +7735,10 @@
  1.3320  	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  1.3321  	 fi
  1.3322         fi
  1.3323 +       prev=
  1.3324         ;;
  1.3325  
  1.3326 +    *.lto.$objext) ;; # Ignore GCC LTO objects
  1.3327      *.$objext)
  1.3328         # This assumes that the test object file only shows up
  1.3329         # once in the compiler output.
  1.3330 @@ -7186,6 +7774,7 @@
  1.3331  fi
  1.3332  
  1.3333  $RM -f confest.$objext
  1.3334 +CFLAGS=$_lt_libdeps_save_CFLAGS
  1.3335  
  1.3336  # PORTME: override above test on systems where it is broken
  1.3337  m4_if([$1], [CXX],
  1.3338 @@ -7222,7 +7811,7 @@
  1.3339  
  1.3340  solaris*)
  1.3341    case $cc_basename in
  1.3342 -  CC*)
  1.3343 +  CC* | sunCC*)
  1.3344      # The more standards-conforming stlport4 library is
  1.3345      # incompatible with the Cstd library. Avoid specifying
  1.3346      # it if it's in CXXFLAGS. Ignore libCrun as
  1.3347 @@ -7266,32 +7855,16 @@
  1.3348  ])# _LT_SYS_HIDDEN_LIBDEPS
  1.3349  
  1.3350  
  1.3351 -# _LT_PROG_F77
  1.3352 -# ------------
  1.3353 -# Since AC_PROG_F77 is broken, in that it returns the empty string
  1.3354 -# if there is no fortran compiler, we have our own version here.
  1.3355 -m4_defun([_LT_PROG_F77],
  1.3356 -[
  1.3357 -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  1.3358 -AC_PROG_F77
  1.3359 -if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3360 -  _lt_disable_F77=yes
  1.3361 -fi
  1.3362 -popdef([AC_MSG_ERROR])
  1.3363 -])# _LT_PROG_F77
  1.3364 -
  1.3365 -dnl aclocal-1.4 backwards compatibility:
  1.3366 -dnl AC_DEFUN([_LT_PROG_F77], [])
  1.3367 -
  1.3368 -
  1.3369  # _LT_LANG_F77_CONFIG([TAG])
  1.3370  # --------------------------
  1.3371  # Ensure that the configuration variables for a Fortran 77 compiler are
  1.3372  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3373  # to write the compiler configuration to `libtool'.
  1.3374  m4_defun([_LT_LANG_F77_CONFIG],
  1.3375 -[AC_REQUIRE([_LT_PROG_F77])dnl
  1.3376 -AC_LANG_PUSH(Fortran 77)
  1.3377 +[AC_LANG_PUSH(Fortran 77)
  1.3378 +if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3379 +  _lt_disable_F77=yes
  1.3380 +fi
  1.3381  
  1.3382  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3383  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3384 @@ -7301,7 +7874,6 @@
  1.3385  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3386  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3387  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3388 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3389  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3390  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3391  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3392 @@ -7310,6 +7882,8 @@
  1.3393  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3394  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3395  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3396 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3397 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3398  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3399  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3400  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3401 @@ -7349,7 +7923,9 @@
  1.3402    # Allow CC to be a program name with arguments.
  1.3403    lt_save_CC="$CC"
  1.3404    lt_save_GCC=$GCC
  1.3405 +  lt_save_CFLAGS=$CFLAGS
  1.3406    CC=${F77-"f77"}
  1.3407 +  CFLAGS=$FFLAGS
  1.3408    compiler=$CC
  1.3409    _LT_TAGVAR(compiler, $1)=$CC
  1.3410    _LT_CC_BASENAME([$compiler])
  1.3411 @@ -7403,38 +7979,24 @@
  1.3412  
  1.3413    GCC=$lt_save_GCC
  1.3414    CC="$lt_save_CC"
  1.3415 +  CFLAGS="$lt_save_CFLAGS"
  1.3416  fi # test "$_lt_disable_F77" != yes
  1.3417  
  1.3418  AC_LANG_POP
  1.3419  ])# _LT_LANG_F77_CONFIG
  1.3420  
  1.3421  
  1.3422 -# _LT_PROG_FC
  1.3423 -# -----------
  1.3424 -# Since AC_PROG_FC is broken, in that it returns the empty string
  1.3425 -# if there is no fortran compiler, we have our own version here.
  1.3426 -m4_defun([_LT_PROG_FC],
  1.3427 -[
  1.3428 -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  1.3429 -AC_PROG_FC
  1.3430 -if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3431 -  _lt_disable_FC=yes
  1.3432 -fi
  1.3433 -popdef([AC_MSG_ERROR])
  1.3434 -])# _LT_PROG_FC
  1.3435 -
  1.3436 -dnl aclocal-1.4 backwards compatibility:
  1.3437 -dnl AC_DEFUN([_LT_PROG_FC], [])
  1.3438 -
  1.3439 -
  1.3440  # _LT_LANG_FC_CONFIG([TAG])
  1.3441  # -------------------------
  1.3442  # Ensure that the configuration variables for a Fortran compiler are
  1.3443  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3444  # to write the compiler configuration to `libtool'.
  1.3445  m4_defun([_LT_LANG_FC_CONFIG],
  1.3446 -[AC_REQUIRE([_LT_PROG_FC])dnl
  1.3447 -AC_LANG_PUSH(Fortran)
  1.3448 +[AC_LANG_PUSH(Fortran)
  1.3449 +
  1.3450 +if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3451 +  _lt_disable_FC=yes
  1.3452 +fi
  1.3453  
  1.3454  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3455  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3456 @@ -7444,7 +8006,6 @@
  1.3457  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3458  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3459  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3460 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3461  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3462  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3463  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3464 @@ -7453,6 +8014,8 @@
  1.3465  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3466  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3467  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3468 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3469 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3470  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3471  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3472  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3473 @@ -7492,7 +8055,9 @@
  1.3474    # Allow CC to be a program name with arguments.
  1.3475    lt_save_CC="$CC"
  1.3476    lt_save_GCC=$GCC
  1.3477 +  lt_save_CFLAGS=$CFLAGS
  1.3478    CC=${FC-"f95"}
  1.3479 +  CFLAGS=$FCFLAGS
  1.3480    compiler=$CC
  1.3481    GCC=$ac_cv_fc_compiler_gnu
  1.3482  
  1.3483 @@ -7548,7 +8113,8 @@
  1.3484    fi # test -n "$compiler"
  1.3485  
  1.3486    GCC=$lt_save_GCC
  1.3487 -  CC="$lt_save_CC"
  1.3488 +  CC=$lt_save_CC
  1.3489 +  CFLAGS=$lt_save_CFLAGS
  1.3490  fi # test "$_lt_disable_FC" != yes
  1.3491  
  1.3492  AC_LANG_POP
  1.3493 @@ -7585,10 +8151,12 @@
  1.3494  _LT_LINKER_BOILERPLATE
  1.3495  
  1.3496  # Allow CC to be a program name with arguments.
  1.3497 -lt_save_CC="$CC"
  1.3498 +lt_save_CC=$CC
  1.3499 +lt_save_CFLAGS=$CFLAGS
  1.3500  lt_save_GCC=$GCC
  1.3501  GCC=yes
  1.3502  CC=${GCJ-"gcj"}
  1.3503 +CFLAGS=$GCJFLAGS
  1.3504  compiler=$CC
  1.3505  _LT_TAGVAR(compiler, $1)=$CC
  1.3506  _LT_TAGVAR(LD, $1)="$LD"
  1.3507 @@ -7598,6 +8166,8 @@
  1.3508  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3509  
  1.3510  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3511 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3512 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3513  
  1.3514  ## CAVEAT EMPTOR:
  1.3515  ## There is no encapsulation within the following macros, do not change
  1.3516 @@ -7617,10 +8187,82 @@
  1.3517  AC_LANG_RESTORE
  1.3518  
  1.3519  GCC=$lt_save_GCC
  1.3520 -CC="$lt_save_CC"
  1.3521 +CC=$lt_save_CC
  1.3522 +CFLAGS=$lt_save_CFLAGS
  1.3523  ])# _LT_LANG_GCJ_CONFIG
  1.3524  
  1.3525  
  1.3526 +# _LT_LANG_GO_CONFIG([TAG])
  1.3527 +# --------------------------
  1.3528 +# Ensure that the configuration variables for the GNU Go compiler
  1.3529 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3530 +# to write the compiler configuration to `libtool'.
  1.3531 +m4_defun([_LT_LANG_GO_CONFIG],
  1.3532 +[AC_REQUIRE([LT_PROG_GO])dnl
  1.3533 +AC_LANG_SAVE
  1.3534 +
  1.3535 +# Source file extension for Go test sources.
  1.3536 +ac_ext=go
  1.3537 +
  1.3538 +# Object file extension for compiled Go test sources.
  1.3539 +objext=o
  1.3540 +_LT_TAGVAR(objext, $1)=$objext
  1.3541 +
  1.3542 +# Code to be used in simple compile tests
  1.3543 +lt_simple_compile_test_code="package main; func main() { }"
  1.3544 +
  1.3545 +# Code to be used in simple link tests
  1.3546 +lt_simple_link_test_code='package main; func main() { }'
  1.3547 +
  1.3548 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.3549 +_LT_TAG_COMPILER
  1.3550 +
  1.3551 +# save warnings/boilerplate of simple test code
  1.3552 +_LT_COMPILER_BOILERPLATE
  1.3553 +_LT_LINKER_BOILERPLATE
  1.3554 +
  1.3555 +# Allow CC to be a program name with arguments.
  1.3556 +lt_save_CC=$CC
  1.3557 +lt_save_CFLAGS=$CFLAGS
  1.3558 +lt_save_GCC=$GCC
  1.3559 +GCC=yes
  1.3560 +CC=${GOC-"gccgo"}
  1.3561 +CFLAGS=$GOFLAGS
  1.3562 +compiler=$CC
  1.3563 +_LT_TAGVAR(compiler, $1)=$CC
  1.3564 +_LT_TAGVAR(LD, $1)="$LD"
  1.3565 +_LT_CC_BASENAME([$compiler])
  1.3566 +
  1.3567 +# Go did not exist at the time GCC didn't implicitly link libc in.
  1.3568 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3569 +
  1.3570 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3571 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3572 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3573 +
  1.3574 +## CAVEAT EMPTOR:
  1.3575 +## There is no encapsulation within the following macros, do not change
  1.3576 +## the running order or otherwise move them around unless you know exactly
  1.3577 +## what you are doing...
  1.3578 +if test -n "$compiler"; then
  1.3579 +  _LT_COMPILER_NO_RTTI($1)
  1.3580 +  _LT_COMPILER_PIC($1)
  1.3581 +  _LT_COMPILER_C_O($1)
  1.3582 +  _LT_COMPILER_FILE_LOCKS($1)
  1.3583 +  _LT_LINKER_SHLIBS($1)
  1.3584 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  1.3585 +
  1.3586 +  _LT_CONFIG($1)
  1.3587 +fi
  1.3588 +
  1.3589 +AC_LANG_RESTORE
  1.3590 +
  1.3591 +GCC=$lt_save_GCC
  1.3592 +CC=$lt_save_CC
  1.3593 +CFLAGS=$lt_save_CFLAGS
  1.3594 +])# _LT_LANG_GO_CONFIG
  1.3595 +
  1.3596 +
  1.3597  # _LT_LANG_RC_CONFIG([TAG])
  1.3598  # -------------------------
  1.3599  # Ensure that the configuration variables for the Windows resource compiler
  1.3600 @@ -7652,9 +8294,11 @@
  1.3601  
  1.3602  # Allow CC to be a program name with arguments.
  1.3603  lt_save_CC="$CC"
  1.3604 +lt_save_CFLAGS=$CFLAGS
  1.3605  lt_save_GCC=$GCC
  1.3606  GCC=
  1.3607  CC=${RC-"windres"}
  1.3608 +CFLAGS=
  1.3609  compiler=$CC
  1.3610  _LT_TAGVAR(compiler, $1)=$CC
  1.3611  _LT_CC_BASENAME([$compiler])
  1.3612 @@ -7667,7 +8311,8 @@
  1.3613  
  1.3614  GCC=$lt_save_GCC
  1.3615  AC_LANG_RESTORE
  1.3616 -CC="$lt_save_CC"
  1.3617 +CC=$lt_save_CC
  1.3618 +CFLAGS=$lt_save_CFLAGS
  1.3619  ])# _LT_LANG_RC_CONFIG
  1.3620  
  1.3621  
  1.3622 @@ -7687,6 +8332,13 @@
  1.3623  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  1.3624  
  1.3625  
  1.3626 +# LT_PROG_GO
  1.3627 +# ----------
  1.3628 +AC_DEFUN([LT_PROG_GO],
  1.3629 +[AC_CHECK_TOOL(GOC, gccgo,)
  1.3630 +])
  1.3631 +
  1.3632 +
  1.3633  # LT_PROG_RC
  1.3634  # ----------
  1.3635  AC_DEFUN([LT_PROG_RC],
  1.3636 @@ -7726,6 +8378,15 @@
  1.3637  AC_SUBST([OBJDUMP])
  1.3638  ])
  1.3639  
  1.3640 +# _LT_DECL_DLLTOOL
  1.3641 +# ----------------
  1.3642 +# Ensure DLLTOOL variable is set.
  1.3643 +m4_defun([_LT_DECL_DLLTOOL],
  1.3644 +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1.3645 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1.3646 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  1.3647 +AC_SUBST([DLLTOOL])
  1.3648 +])
  1.3649  
  1.3650  # _LT_DECL_SED
  1.3651  # ------------
  1.3652 @@ -7819,8 +8480,8 @@
  1.3653  # Try some XSI features
  1.3654  xsi_shell=no
  1.3655  ( _lt_dummy="a/b/c"
  1.3656 -  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  1.3657 -      = c,a/b,, \
  1.3658 +  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  1.3659 +      = c,a/b,b/c, \
  1.3660      && eval 'test $(( 1 + 1 )) -eq 2 \
  1.3661      && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  1.3662    && xsi_shell=yes
  1.3663 @@ -7859,1029 +8520,176 @@
  1.3664  ])# _LT_CHECK_SHELL_FEATURES
  1.3665  
  1.3666  
  1.3667 -# _LT_PROG_XSI_SHELLFNS
  1.3668 -# ---------------------
  1.3669 -# Bourne and XSI compatible variants of some useful shell functions.
  1.3670 -m4_defun([_LT_PROG_XSI_SHELLFNS],
  1.3671 -[case $xsi_shell in
  1.3672 -  yes)
  1.3673 -    cat << \_LT_EOF >> "$cfgfile"
  1.3674 -
  1.3675 -# func_dirname file append nondir_replacement
  1.3676 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3677 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3678 -func_dirname ()
  1.3679 -{
  1.3680 -  case ${1} in
  1.3681 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3682 -    *  ) func_dirname_result="${3}" ;;
  1.3683 -  esac
  1.3684 -}
  1.3685 -
  1.3686 -# func_basename file
  1.3687 -func_basename ()
  1.3688 -{
  1.3689 -  func_basename_result="${1##*/}"
  1.3690 -}
  1.3691 -
  1.3692 -# func_dirname_and_basename file append nondir_replacement
  1.3693 -# perform func_basename and func_dirname in a single function
  1.3694 -# call:
  1.3695 -#   dirname:  Compute the dirname of FILE.  If nonempty,
  1.3696 -#             add APPEND to the result, otherwise set result
  1.3697 -#             to NONDIR_REPLACEMENT.
  1.3698 -#             value returned in "$func_dirname_result"
  1.3699 -#   basename: Compute filename of FILE.
  1.3700 -#             value retuned in "$func_basename_result"
  1.3701 -# Implementation must be kept synchronized with func_dirname
  1.3702 -# and func_basename. For efficiency, we do not delegate to
  1.3703 -# those functions but instead duplicate the functionality here.
  1.3704 -func_dirname_and_basename ()
  1.3705 -{
  1.3706 -  case ${1} in
  1.3707 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3708 -    *  ) func_dirname_result="${3}" ;;
  1.3709 -  esac
  1.3710 -  func_basename_result="${1##*/}"
  1.3711 -}
  1.3712 -
  1.3713 -# func_stripname prefix suffix name
  1.3714 -# strip PREFIX and SUFFIX off of NAME.
  1.3715 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3716 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3717 -# dot (in which case that matches only a dot).
  1.3718 -func_stripname ()
  1.3719 -{
  1.3720 -  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3721 -  # positional parameters, so assign one to ordinary parameter first.
  1.3722 -  func_stripname_result=${3}
  1.3723 -  func_stripname_result=${func_stripname_result#"${1}"}
  1.3724 -  func_stripname_result=${func_stripname_result%"${2}"}
  1.3725 -}
  1.3726 -
  1.3727 -# func_opt_split
  1.3728 -func_opt_split ()
  1.3729 -{
  1.3730 -  func_opt_split_opt=${1%%=*}
  1.3731 -  func_opt_split_arg=${1#*=}
  1.3732 -}
  1.3733 -
  1.3734 -# func_lo2o object
  1.3735 -func_lo2o ()
  1.3736 -{
  1.3737 -  case ${1} in
  1.3738 -    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3739 -    *)    func_lo2o_result=${1} ;;
  1.3740 -  esac
  1.3741 -}
  1.3742 -
  1.3743 -# func_xform libobj-or-source
  1.3744 -func_xform ()
  1.3745 -{
  1.3746 -  func_xform_result=${1%.*}.lo
  1.3747 -}
  1.3748 -
  1.3749 -# func_arith arithmetic-term...
  1.3750 -func_arith ()
  1.3751 -{
  1.3752 -  func_arith_result=$(( $[*] ))
  1.3753 -}
  1.3754 -
  1.3755 -# func_len string
  1.3756 -# STRING may not start with a hyphen.
  1.3757 -func_len ()
  1.3758 -{
  1.3759 -  func_len_result=${#1}
  1.3760 -}
  1.3761 -
  1.3762 -_LT_EOF
  1.3763 -    ;;
  1.3764 -  *) # Bourne compatible functions.
  1.3765 -    cat << \_LT_EOF >> "$cfgfile"
  1.3766 -
  1.3767 -# func_dirname file append nondir_replacement
  1.3768 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3769 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3770 -func_dirname ()
  1.3771 -{
  1.3772 -  # Extract subdirectory from the argument.
  1.3773 -  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  1.3774 -  if test "X$func_dirname_result" = "X${1}"; then
  1.3775 -    func_dirname_result="${3}"
  1.3776 -  else
  1.3777 -    func_dirname_result="$func_dirname_result${2}"
  1.3778 -  fi
  1.3779 -}
  1.3780 -
  1.3781 -# func_basename file
  1.3782 -func_basename ()
  1.3783 -{
  1.3784 -  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  1.3785 -}
  1.3786 -
  1.3787 -dnl func_dirname_and_basename
  1.3788 -dnl A portable version of this function is already defined in general.m4sh
  1.3789 -dnl so there is no need for it here.
  1.3790 -
  1.3791 -# func_stripname prefix suffix name
  1.3792 -# strip PREFIX and SUFFIX off of NAME.
  1.3793 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3794 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3795 -# dot (in which case that matches only a dot).
  1.3796 -# func_strip_suffix prefix name
  1.3797 -func_stripname ()
  1.3798 -{
  1.3799 -  case ${2} in
  1.3800 -    .*) func_stripname_result=`$ECHO "X${3}" \
  1.3801 -           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  1.3802 -    *)  func_stripname_result=`$ECHO "X${3}" \
  1.3803 -           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  1.3804 -  esac
  1.3805 -}
  1.3806 -
  1.3807 -# sed scripts:
  1.3808 -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  1.3809 -my_sed_long_arg='1s/^-[[^=]]*=//'
  1.3810 -
  1.3811 -# func_opt_split
  1.3812 -func_opt_split ()
  1.3813 -{
  1.3814 -  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  1.3815 -  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  1.3816 -}
  1.3817 -
  1.3818 -# func_lo2o object
  1.3819 -func_lo2o ()
  1.3820 -{
  1.3821 -  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  1.3822 -}
  1.3823 -
  1.3824 -# func_xform libobj-or-source
  1.3825 -func_xform ()
  1.3826 -{
  1.3827 -  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  1.3828 -}
  1.3829 -
  1.3830 -# func_arith arithmetic-term...
  1.3831 -func_arith ()
  1.3832 -{
  1.3833 -  func_arith_result=`expr "$[@]"`
  1.3834 -}
  1.3835 -
  1.3836 -# func_len string
  1.3837 -# STRING may not start with a hyphen.
  1.3838 -func_len ()
  1.3839 -{
  1.3840 -  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  1.3841 -}
  1.3842 -
  1.3843 -_LT_EOF
  1.3844 -esac
  1.3845 -
  1.3846 -case $lt_shell_append in
  1.3847 -  yes)
  1.3848 -    cat << \_LT_EOF >> "$cfgfile"
  1.3849 -
  1.3850 -# func_append var value
  1.3851 -# Append VALUE to the end of shell variable VAR.
  1.3852 -func_append ()
  1.3853 -{
  1.3854 -  eval "$[1]+=\$[2]"
  1.3855 -}
  1.3856 -_LT_EOF
  1.3857 -    ;;
  1.3858 -  *)
  1.3859 -    cat << \_LT_EOF >> "$cfgfile"
  1.3860 -
  1.3861 -# func_append var value
  1.3862 -# Append VALUE to the end of shell variable VAR.
  1.3863 -func_append ()
  1.3864 -{
  1.3865 -  eval "$[1]=\$$[1]\$[2]"
  1.3866 -}
  1.3867 -
  1.3868 -_LT_EOF
  1.3869 -    ;;
  1.3870 -  esac
  1.3871 +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  1.3872 +# ------------------------------------------------------
  1.3873 +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  1.3874 +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  1.3875 +m4_defun([_LT_PROG_FUNCTION_REPLACE],
  1.3876 +[dnl {
  1.3877 +sed -e '/^$1 ()$/,/^} # $1 /c\
  1.3878 +$1 ()\
  1.3879 +{\
  1.3880 +m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
  1.3881 +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  1.3882 +  && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3883 +    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3884 +test 0 -eq $? || _lt_function_replace_fail=:
  1.3885  ])
  1.3886  
  1.3887 -##############################################################################
  1.3888 -# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
  1.3889 -#
  1.3890 -#   Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc.
  1.3891 -#   Written by Thomas Tanner, 1999
  1.3892 -#
  1.3893 -# This file is free software; the Free Software Foundation gives
  1.3894 -# unlimited permission to copy and/or distribute it, with or without
  1.3895 -# modifications, as long as this notice is preserved.
  1.3896 -
  1.3897 -# serial 17 LTDL_INIT
  1.3898 -
  1.3899 -# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
  1.3900 -# ------------------------------------------
  1.3901 -# DIRECTORY contains the libltdl sources.  It is okay to call this
  1.3902 -# function multiple times, as long as the same DIRECTORY is always given.
  1.3903 -AC_DEFUN([LT_CONFIG_LTDL_DIR],
  1.3904 -[AC_BEFORE([$0], [LTDL_INIT])
  1.3905 -_$0($*)
  1.3906 -])# LT_CONFIG_LTDL_DIR
  1.3907 -
  1.3908 -# We break this out into a separate macro, so that we can call it safely
  1.3909 -# internally without being caught accidentally by the sed scan in libtoolize.
  1.3910 -m4_defun([_LT_CONFIG_LTDL_DIR],
  1.3911 -[dnl remove trailing slashes
  1.3912 -m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
  1.3913 -m4_case(_LTDL_DIR,
  1.3914 -	[], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
  1.3915 -	     m4_if(_ARG_DIR, [.],
  1.3916 -	             [],
  1.3917 -		 [m4_define([_LTDL_DIR], _ARG_DIR)
  1.3918 -	          _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
  1.3919 -    [m4_if(_ARG_DIR, _LTDL_DIR,
  1.3920 -	    [],
  1.3921 -	[m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
  1.3922 -m4_popdef([_ARG_DIR])
  1.3923 -])# _LT_CONFIG_LTDL_DIR
  1.3924 -
  1.3925 -# Initialise:
  1.3926 -m4_define([_LTDL_DIR], [])
  1.3927 -
  1.3928 -
  1.3929 -# _LT_BUILD_PREFIX
  1.3930 -# ----------------
  1.3931 -# If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
  1.3932 -# to `${top_builddir}/'.
  1.3933 -m4_define([_LT_BUILD_PREFIX],
  1.3934 -[m4_ifdef([AC_AUTOCONF_VERSION],
  1.3935 -   [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
  1.3936 -	  [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
  1.3937 -			  [${top_build_prefix}],
  1.3938 -			  [${top_builddir}/])],
  1.3939 -	  [${top_build_prefix}])],
  1.3940 -   [${top_builddir}/])[]dnl
  1.3941 +
  1.3942 +# _LT_PROG_REPLACE_SHELLFNS
  1.3943 +# -------------------------
  1.3944 +# Replace existing portable implementations of several shell functions with
  1.3945 +# equivalent extended shell implementations where those features are available..
  1.3946 +m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  1.3947 +[if test x"$xsi_shell" = xyes; then
  1.3948 +  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  1.3949 +    case ${1} in
  1.3950 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3951 +      *  ) func_dirname_result="${3}" ;;
  1.3952 +    esac])
  1.3953 +
  1.3954 +  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  1.3955 +    func_basename_result="${1##*/}"])
  1.3956 +
  1.3957 +  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  1.3958 +    case ${1} in
  1.3959 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3960 +      *  ) func_dirname_result="${3}" ;;
  1.3961 +    esac
  1.3962 +    func_basename_result="${1##*/}"])
  1.3963 +
  1.3964 +  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  1.3965 +    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3966 +    # positional parameters, so assign one to ordinary parameter first.
  1.3967 +    func_stripname_result=${3}
  1.3968 +    func_stripname_result=${func_stripname_result#"${1}"}
  1.3969 +    func_stripname_result=${func_stripname_result%"${2}"}])
  1.3970 +
  1.3971 +  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  1.3972 +    func_split_long_opt_name=${1%%=*}
  1.3973 +    func_split_long_opt_arg=${1#*=}])
  1.3974 +
  1.3975 +  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  1.3976 +    func_split_short_opt_arg=${1#??}
  1.3977 +    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  1.3978 +
  1.3979 +  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  1.3980 +    case ${1} in
  1.3981 +      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3982 +      *)    func_lo2o_result=${1} ;;
  1.3983 +    esac])
  1.3984 +
  1.3985 +  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
  1.3986 +
  1.3987 +  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
  1.3988 +
  1.3989 +  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
  1.3990 +fi
  1.3991 +
  1.3992 +if test x"$lt_shell_append" = xyes; then
  1.3993 +  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
  1.3994 +
  1.3995 +  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  1.3996 +    func_quote_for_eval "${2}"
  1.3997 +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  1.3998 +    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  1.3999 +
  1.4000 +  # Save a `func_append' function call where possible by direct use of '+='
  1.4001 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  1.4002 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.4003 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.4004 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.4005 +else
  1.4006 +  # Save a `func_append' function call even when '+=' is not available
  1.4007 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  1.4008 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.4009 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.4010 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.4011 +fi
  1.4012 +
  1.4013 +if test x"$_lt_function_replace_fail" = x":"; then
  1.4014 +  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  1.4015 +fi
  1.4016  ])
  1.4017  
  1.4018 -
  1.4019 -# LTDL_CONVENIENCE
  1.4020 -# ----------------
  1.4021 -# sets LIBLTDL to the link flags for the libltdl convenience library and
  1.4022 -# LTDLINCL to the include flags for the libltdl header and adds
  1.4023 -# --enable-ltdl-convenience to the configure arguments.  Note that
  1.4024 -# AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
  1.4025 -# '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
  1.4026 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  1.4027 -# quotes!).  If your package is not flat and you're not using automake,
  1.4028 -# define top_build_prefix, top_builddir, and top_srcdir appropriately
  1.4029 -# in your Makefiles.
  1.4030 -AC_DEFUN([LTDL_CONVENIENCE],
  1.4031 -[AC_BEFORE([$0], [LTDL_INIT])dnl
  1.4032 -dnl Although the argument is deprecated and no longer documented,
  1.4033 -dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
  1.4034 -dnl here make sure it is the same as any other declaration of libltdl's
  1.4035 -dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
  1.4036 -dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
  1.4037 -m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
  1.4038 -_$0()
  1.4039 -])# LTDL_CONVENIENCE
  1.4040 -
  1.4041 -# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
  1.4042 -# now we have LT_CONFIG_LTDL_DIR:
  1.4043 -AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
  1.4044 -[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
  1.4045 -_LTDL_CONVENIENCE])
  1.4046 -
  1.4047 -dnl aclocal-1.4 backwards compatibility:
  1.4048 -dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
  1.4049 -
  1.4050 -
  1.4051 -# _LTDL_CONVENIENCE
  1.4052 -# -----------------
  1.4053 -# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
  1.4054 -m4_defun([_LTDL_CONVENIENCE],
  1.4055 -[case $enable_ltdl_convenience in
  1.4056 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  1.4057 -  "") enable_ltdl_convenience=yes
  1.4058 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  1.4059 -esac
  1.4060 -LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
  1.4061 -LTDLDEPS=$LIBLTDL
  1.4062 -LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
  1.4063 -
  1.4064 -AC_SUBST([LIBLTDL])
  1.4065 -AC_SUBST([LTDLDEPS])
  1.4066 -AC_SUBST([LTDLINCL])
  1.4067 -
  1.4068 -# For backwards non-gettext consistent compatibility...
  1.4069 -INCLTDL="$LTDLINCL"
  1.4070 -AC_SUBST([INCLTDL])
  1.4071 -])# _LTDL_CONVENIENCE
  1.4072 -
  1.4073 -
  1.4074 -# LTDL_INSTALLABLE
  1.4075 -# ----------------
  1.4076 -# sets LIBLTDL to the link flags for the libltdl installable library
  1.4077 -# and LTDLINCL to the include flags for the libltdl header and adds
  1.4078 -# --enable-ltdl-install to the configure arguments.  Note that
  1.4079 -# AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
  1.4080 -# is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
  1.4081 -# available, otherwise with '${top_builddir}/', and LTDLINCL will be
  1.4082 -# prefixed with '${top_srcdir}/' (note the single quotes!).  If your
  1.4083 -# package is not flat and you're not using automake, define top_build_prefix,
  1.4084 -# top_builddir, and top_srcdir appropriately in your Makefiles.
  1.4085 -# In the future, this macro may have to be called after LT_INIT.
  1.4086 -AC_DEFUN([LTDL_INSTALLABLE],
  1.4087 -[AC_BEFORE([$0], [LTDL_INIT])dnl
  1.4088 -dnl Although the argument is deprecated and no longer documented,
  1.4089 -dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
  1.4090 -dnl here make sure it is the same as any other declaration of libltdl's
  1.4091 -dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
  1.4092 -dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
  1.4093 -m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
  1.4094 -_$0()
  1.4095 -])# LTDL_INSTALLABLE
  1.4096 -
  1.4097 -# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
  1.4098 -# now we have LT_CONFIG_LTDL_DIR:
  1.4099 -AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
  1.4100 -[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
  1.4101 -_LTDL_INSTALLABLE])
  1.4102 -
  1.4103 -dnl aclocal-1.4 backwards compatibility:
  1.4104 -dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
  1.4105 -
  1.4106 -
  1.4107 -# _LTDL_INSTALLABLE
  1.4108 -# -----------------
  1.4109 -# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
  1.4110 -m4_defun([_LTDL_INSTALLABLE],
  1.4111 -[if test -f $prefix/lib/libltdl.la; then
  1.4112 -  lt_save_LDFLAGS="$LDFLAGS"
  1.4113 -  LDFLAGS="-L$prefix/lib $LDFLAGS"
  1.4114 -  AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
  1.4115 -  LDFLAGS="$lt_save_LDFLAGS"
  1.4116 -  if test x"${lt_lib_ltdl-no}" = xyes; then
  1.4117 -    if test x"$enable_ltdl_install" != xyes; then
  1.4118 -      # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
  1.4119 -      AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
  1.4120 -      enable_ltdl_install=no
  1.4121 -    fi
  1.4122 -  elif test x"$enable_ltdl_install" = xno; then
  1.4123 -    AC_MSG_WARN([libltdl not installed, but installation disabled])
  1.4124 -  fi
  1.4125 -fi
  1.4126 -
  1.4127 -# If configure.ac declared an installable ltdl, and the user didn't override
  1.4128 -# with --disable-ltdl-install, we will install the shipped libltdl.
  1.4129 -case $enable_ltdl_install in
  1.4130 -  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  1.4131 -      LIBLTDL="-lltdl"
  1.4132 -      LTDLDEPS=
  1.4133 -      LTDLINCL=
  1.4134 -      ;;
  1.4135 -  *)  enable_ltdl_install=yes
  1.4136 -      ac_configure_args="$ac_configure_args --enable-ltdl-install"
  1.4137 -      LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
  1.4138 -      LTDLDEPS=$LIBLTDL
  1.4139 -      LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
  1.4140 -      ;;
  1.4141 -esac
  1.4142 -
  1.4143 -AC_SUBST([LIBLTDL])
  1.4144 -AC_SUBST([LTDLDEPS])
  1.4145 -AC_SUBST([LTDLINCL])
  1.4146 -
  1.4147 -# For backwards non-gettext consistent compatibility...
  1.4148 -INCLTDL="$LTDLINCL"
  1.4149 -AC_SUBST([INCLTDL])
  1.4150 -])# LTDL_INSTALLABLE
  1.4151 -
  1.4152 -
  1.4153 -# _LTDL_MODE_DISPATCH
  1.4154 -# -------------------
  1.4155 -m4_define([_LTDL_MODE_DISPATCH],
  1.4156 -[dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
  1.4157 -m4_if(_LTDL_DIR, [],
  1.4158 -	[],
  1.4159 -    dnl if _LTDL_MODE was not set already, the default value is `subproject':
  1.4160 -    [m4_case(m4_default(_LTDL_MODE, [subproject]),
  1.4161 -	  [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
  1.4162 -			  _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
  1.4163 -	  [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
  1.4164 -	  [recursive], [],
  1.4165 -	[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
  1.4166 -dnl Be careful not to expand twice:
  1.4167 -m4_define([$0], [])
  1.4168 -])# _LTDL_MODE_DISPATCH
  1.4169 -
  1.4170 -
  1.4171 -# _LT_LIBOBJ(MODULE_NAME)
  1.4172 -# -----------------------
  1.4173 -# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
  1.4174 -# of into LIBOBJS.
  1.4175 -AC_DEFUN([_LT_LIBOBJ], [
  1.4176 -  m4_pattern_allow([^_LT_LIBOBJS$])
  1.4177 -  _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
  1.4178 -])# _LT_LIBOBJS
  1.4179 -
  1.4180 -
  1.4181 -# LTDL_INIT([OPTIONS])
  1.4182 -# --------------------
  1.4183 -# Clients of libltdl can use this macro to allow the installer to
  1.4184 -# choose between a shipped copy of the ltdl sources or a preinstalled
  1.4185 -# version of the library.  If the shipped ltdl sources are not in a
  1.4186 -# subdirectory named libltdl, the directory name must be given by
  1.4187 -# LT_CONFIG_LTDL_DIR.
  1.4188 -AC_DEFUN([LTDL_INIT],
  1.4189 -[dnl Parse OPTIONS
  1.4190 -_LT_SET_OPTIONS([$0], [$1])
  1.4191 -
  1.4192 -dnl We need to keep our own list of libobjs separate from our parent project,
  1.4193 -dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
  1.4194 -dnl we look for our own LIBOBJs.
  1.4195 -m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
  1.4196 -m4_pushdef([AC_LIBSOURCES])
  1.4197 -
  1.4198 -dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
  1.4199 -m4_if(_LTDL_MODE, [],
  1.4200 -        [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
  1.4201 -        m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
  1.4202 -                [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
  1.4203 -
  1.4204 -AC_ARG_WITH([included_ltdl],
  1.4205 -    [AS_HELP_STRING([--with-included-ltdl],
  1.4206 -                    [use the GNU ltdl sources included here])])
  1.4207 -
  1.4208 -if test "x$with_included_ltdl" != xyes; then
  1.4209 -  # We are not being forced to use the included libltdl sources, so
  1.4210 -  # decide whether there is a useful installed version we can use.
  1.4211 -  AC_CHECK_HEADER([ltdl.h],
  1.4212 -      [AC_CHECK_DECL([lt_dlinterface_register],
  1.4213 -	   [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
  1.4214 -	       [with_included_ltdl=no],
  1.4215 -	       [with_included_ltdl=yes])],
  1.4216 -	   [with_included_ltdl=yes],
  1.4217 -	   [AC_INCLUDES_DEFAULT
  1.4218 -	    #include <ltdl.h>])],
  1.4219 -      [with_included_ltdl=yes],
  1.4220 -      [AC_INCLUDES_DEFAULT]
  1.4221 -  )
  1.4222 -fi
  1.4223 -
  1.4224 -dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
  1.4225 -dnl was called yet, then for old times' sake, we assume libltdl is in an
  1.4226 -dnl eponymous directory:
  1.4227 -AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
  1.4228 -
  1.4229 -AC_ARG_WITH([ltdl_include],
  1.4230 -    [AS_HELP_STRING([--with-ltdl-include=DIR],
  1.4231 -                    [use the ltdl headers installed in DIR])])
  1.4232 -
  1.4233 -if test -n "$with_ltdl_include"; then
  1.4234 -  if test -f "$with_ltdl_include/ltdl.h"; then :
  1.4235 -  else
  1.4236 -    AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
  1.4237 -  fi
  1.4238 -else
  1.4239 -  with_ltdl_include=no
  1.4240 -fi
  1.4241 -
  1.4242 -AC_ARG_WITH([ltdl_lib],
  1.4243 -    [AS_HELP_STRING([--with-ltdl-lib=DIR],
  1.4244 -                    [use the libltdl.la installed in DIR])])
  1.4245 -
  1.4246 -if test -n "$with_ltdl_lib"; then
  1.4247 -  if test -f "$with_ltdl_lib/libltdl.la"; then :
  1.4248 -  else
  1.4249 -    AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
  1.4250 -  fi
  1.4251 -else
  1.4252 -  with_ltdl_lib=no
  1.4253 -fi
  1.4254 -
  1.4255 -case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
  1.4256 -  ,yes,no,no,)
  1.4257 -	m4_case(m4_default(_LTDL_TYPE, [convenience]),
  1.4258 -	    [convenience], [_LTDL_CONVENIENCE],
  1.4259 -	    [installable], [_LTDL_INSTALLABLE],
  1.4260 -	  [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
  1.4261 -	;;
  1.4262 -  ,no,no,no,)
  1.4263 -	# If the included ltdl is not to be used, then use the
  1.4264 -	# preinstalled libltdl we found.
  1.4265 -	AC_DEFINE([HAVE_LTDL], [1],
  1.4266 -	  [Define this if a modern libltdl is already installed])
  1.4267 -	LIBLTDL=-lltdl
  1.4268 -	LTDLDEPS=
  1.4269 -	LTDLINCL=
  1.4270 -	;;
  1.4271 -  ,no*,no,*)
  1.4272 -	AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
  1.4273 -	;;
  1.4274 -  *)	with_included_ltdl=no
  1.4275 -	LIBLTDL="-L$with_ltdl_lib -lltdl"
  1.4276 -	LTDLDEPS=
  1.4277 -	LTDLINCL="-I$with_ltdl_include"
  1.4278 -	;;
  1.4279 -esac
  1.4280 -INCLTDL="$LTDLINCL"
  1.4281 -
  1.4282 -# Report our decision...
  1.4283 -AC_MSG_CHECKING([where to find libltdl headers])
  1.4284 -AC_MSG_RESULT([$LTDLINCL])
  1.4285 -AC_MSG_CHECKING([where to find libltdl library])
  1.4286 -AC_MSG_RESULT([$LIBLTDL])
  1.4287 -
  1.4288 -_LTDL_SETUP
  1.4289 -
  1.4290 -dnl restore autoconf definition.
  1.4291 -m4_popdef([AC_LIBOBJ])
  1.4292 -m4_popdef([AC_LIBSOURCES])
  1.4293 -
  1.4294 -AC_CONFIG_COMMANDS_PRE([
  1.4295 -    _ltdl_libobjs=
  1.4296 -    _ltdl_ltlibobjs=
  1.4297 -    if test -n "$_LT_LIBOBJS"; then
  1.4298 -      # Remove the extension.
  1.4299 -      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
  1.4300 -      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
  1.4301 -        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
  1.4302 -        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
  1.4303 -      done
  1.4304 -    fi
  1.4305 -    AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
  1.4306 -    AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
  1.4307 -])
  1.4308 -
  1.4309 -# Only expand once:
  1.4310 -m4_define([LTDL_INIT])
  1.4311 -])# LTDL_INIT
  1.4312 -
  1.4313 -# Old names:
  1.4314 -AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
  1.4315 -AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
  1.4316 -AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
  1.4317 -dnl aclocal-1.4 backwards compatibility:
  1.4318 -dnl AC_DEFUN([AC_LIB_LTDL], [])
  1.4319 -dnl AC_DEFUN([AC_WITH_LTDL], [])
  1.4320 -dnl AC_DEFUN([LT_WITH_LTDL], [])
  1.4321 -
  1.4322 -
  1.4323 -# _LTDL_SETUP
  1.4324 -# -----------
  1.4325 -# Perform all the checks necessary for compilation of the ltdl objects
  1.4326 -#  -- including compiler checks and header checks.  This is a public
  1.4327 -# interface  mainly for the benefit of libltdl's own configure.ac, most
  1.4328 -# other users should call LTDL_INIT instead.
  1.4329 -AC_DEFUN([_LTDL_SETUP],
  1.4330 -[AC_REQUIRE([AC_PROG_CC])dnl
  1.4331 -AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
  1.4332 -AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
  1.4333 -AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
  1.4334 -AC_REQUIRE([LT_LIB_DLLOAD])dnl
  1.4335 -AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
  1.4336 -AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
  1.4337 -AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
  1.4338 -AC_REQUIRE([gl_FUNC_ARGZ])dnl
  1.4339 -
  1.4340 -m4_require([_LT_CHECK_OBJDIR])dnl
  1.4341 -m4_require([_LT_HEADER_DLFCN])dnl
  1.4342 -m4_require([_LT_CHECK_DLPREOPEN])dnl
  1.4343 -m4_require([_LT_DECL_SED])dnl
  1.4344 -
  1.4345 -dnl Don't require this, or it will be expanded earlier than the code
  1.4346 -dnl that sets the variables it relies on:
  1.4347 -_LT_ENABLE_INSTALL
  1.4348 -
  1.4349 -dnl _LTDL_MODE specific code must be called at least once:
  1.4350 -_LTDL_MODE_DISPATCH
  1.4351 -
  1.4352 -# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
  1.4353 -# the user used.  This is so that ltdl.h can pick up the parent projects
  1.4354 -# config.h file, The first file in AC_CONFIG_HEADERS must contain the
  1.4355 -# definitions required by ltdl.c.
  1.4356 -# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
  1.4357 -AC_CONFIG_COMMANDS_PRE([dnl
  1.4358 -m4_pattern_allow([^LT_CONFIG_H$])dnl
  1.4359 -m4_ifset([AH_HEADER],
  1.4360 -    [LT_CONFIG_H=AH_HEADER],
  1.4361 -    [m4_ifset([AC_LIST_HEADERS],
  1.4362 -	    [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      ]]*,,;s,[[ :]].*$,,'`],
  1.4363 -	[])])])
  1.4364 -AC_SUBST([LT_CONFIG_H])
  1.4365 -
  1.4366 -AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
  1.4367 -	[], [], [AC_INCLUDES_DEFAULT])
  1.4368 -
  1.4369 -AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
  1.4370 -AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
  1.4371 -
  1.4372 -AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
  1.4373 -
  1.4374 -name=ltdl
  1.4375 -LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
  1.4376 -AC_SUBST([LTDLOPEN])
  1.4377 -])# _LTDL_SETUP
  1.4378 -
  1.4379 -
  1.4380 -# _LT_ENABLE_INSTALL
  1.4381 -# ------------------
  1.4382 -m4_define([_LT_ENABLE_INSTALL],
  1.4383 -[AC_ARG_ENABLE([ltdl-install],
  1.4384 -    [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
  1.4385 -
  1.4386 -case ,${enable_ltdl_install},${enable_ltdl_convenience} in
  1.4387 -  *yes*) ;;
  1.4388 -  *) enable_ltdl_convenience=yes ;;
  1.4389 -esac
  1.4390 -
  1.4391 -m4_ifdef([AM_CONDITIONAL],
  1.4392 -[AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
  1.4393 - AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
  1.4394 -])# _LT_ENABLE_INSTALL
  1.4395 -
  1.4396 -
  1.4397 -# LT_SYS_DLOPEN_DEPLIBS
  1.4398 -# ---------------------
  1.4399 -AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
  1.4400 +# _LT_PATH_CONVERSION_FUNCTIONS
  1.4401 +# -----------------------------
  1.4402 +# Determine which file name conversion functions should be used by
  1.4403 +# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  1.4404 +# for certain cross-compile configurations and native mingw.
  1.4405 +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  1.4406  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.4407 -AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
  1.4408 -  [lt_cv_sys_dlopen_deplibs],
  1.4409 -  [# PORTME does your system automatically load deplibs for dlopen?
  1.4410 -  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  1.4411 -  # For now, we just catch OSes we know something about -- in the
  1.4412 -  # future, we'll try test this programmatically.
  1.4413 -  lt_cv_sys_dlopen_deplibs=unknown
  1.4414 -  case $host_os in
  1.4415 -  aix3*|aix4.1.*|aix4.2.*)
  1.4416 -    # Unknown whether this is true for these versions of AIX, but
  1.4417 -    # we want this `case' here to explicitly catch those versions.
  1.4418 -    lt_cv_sys_dlopen_deplibs=unknown
  1.4419 -    ;;
  1.4420 -  aix[[4-9]]*)
  1.4421 -    lt_cv_sys_dlopen_deplibs=yes
  1.4422 -    ;;
  1.4423 -  amigaos*)
  1.4424 -    case $host_cpu in
  1.4425 -    powerpc)
  1.4426 -      lt_cv_sys_dlopen_deplibs=no
  1.4427 -      ;;
  1.4428 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.4429 +AC_MSG_CHECKING([how to convert $build file names to $host format])
  1.4430 +AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  1.4431 +[case $host in
  1.4432 +  *-*-mingw* )
  1.4433 +    case $build in
  1.4434 +      *-*-mingw* ) # actually msys
  1.4435 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  1.4436 +        ;;
  1.4437 +      *-*-cygwin* )
  1.4438 +        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  1.4439 +        ;;
  1.4440 +      * ) # otherwise, assume *nix
  1.4441 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  1.4442 +        ;;
  1.4443      esac
  1.4444      ;;
  1.4445 -  darwin*)
  1.4446 -    # Assuming the user has installed a libdl from somewhere, this is true
  1.4447 -    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  1.4448 -    lt_cv_sys_dlopen_deplibs=yes
  1.4449 +  *-*-cygwin* )
  1.4450 +    case $build in
  1.4451 +      *-*-mingw* ) # actually msys
  1.4452 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  1.4453 +        ;;
  1.4454 +      *-*-cygwin* )
  1.4455 +        lt_cv_to_host_file_cmd=func_convert_file_noop
  1.4456 +        ;;
  1.4457 +      * ) # otherwise, assume *nix
  1.4458 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  1.4459 +        ;;
  1.4460 +    esac
  1.4461      ;;
  1.4462 -  freebsd* | dragonfly*)
  1.4463 -    lt_cv_sys_dlopen_deplibs=yes
  1.4464 +  * ) # unhandled hosts (and "normal" native builds)
  1.4465 +    lt_cv_to_host_file_cmd=func_convert_file_noop
  1.4466      ;;
  1.4467 -  gnu* | linux* | k*bsd*-gnu)
  1.4468 -    # GNU and its variants, using gnu ld.so (Glibc)
  1.4469 -    lt_cv_sys_dlopen_deplibs=yes
  1.4470 +esac
  1.4471 +])
  1.4472 +to_host_file_cmd=$lt_cv_to_host_file_cmd
  1.4473 +AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  1.4474 +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  1.4475 +         [0], [convert $build file names to $host format])dnl
  1.4476 +
  1.4477 +AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  1.4478 +AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  1.4479 +[#assume ordinary cross tools, or native build.
  1.4480 +lt_cv_to_tool_file_cmd=func_convert_file_noop
  1.4481 +case $host in
  1.4482 +  *-*-mingw* )
  1.4483 +    case $build in
  1.4484 +      *-*-mingw* ) # actually msys
  1.4485 +        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  1.4486 +        ;;
  1.4487 +    esac
  1.4488      ;;
  1.4489 -  hpux10*|hpux11*)
  1.4490 -    lt_cv_sys_dlopen_deplibs=yes
  1.4491 -    ;;
  1.4492 -  interix*)
  1.4493 -    lt_cv_sys_dlopen_deplibs=yes
  1.4494 -    ;;
  1.4495 -  irix[[12345]]*|irix6.[[01]]*)
  1.4496 -    # Catch all versions of IRIX before 6.2, and indicate that we don't
  1.4497 -    # know how it worked for any of those versions.
  1.4498 -    lt_cv_sys_dlopen_deplibs=unknown
  1.4499 -    ;;
  1.4500 -  irix*)
  1.4501 -    # The case above catches anything before 6.2, and it's known that
  1.4502 -    # at 6.2 and later dlopen does load deplibs.
  1.4503 -    lt_cv_sys_dlopen_deplibs=yes
  1.4504 -    ;;
  1.4505 -  netbsd*)
  1.4506 -    lt_cv_sys_dlopen_deplibs=yes
  1.4507 -    ;;
  1.4508 -  openbsd*)
  1.4509 -    lt_cv_sys_dlopen_deplibs=yes
  1.4510 -    ;;
  1.4511 -  osf[[1234]]*)
  1.4512 -    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  1.4513 -    # it did *not* use an RPATH in a shared library to find objects the
  1.4514 -    # library depends on, so we explicitly say `no'.
  1.4515 -    lt_cv_sys_dlopen_deplibs=no
  1.4516 -    ;;
  1.4517 -  osf5.0|osf5.0a|osf5.1)
  1.4518 -    # dlopen *does* load deplibs and with the right loader patch applied
  1.4519 -    # it even uses RPATH in a shared library to search for shared objects
  1.4520 -    # that the library depends on, but there's no easy way to know if that
  1.4521 -    # patch is installed.  Since this is the case, all we can really
  1.4522 -    # say is unknown -- it depends on the patch being installed.  If
  1.4523 -    # it is, this changes to `yes'.  Without it, it would be `no'.
  1.4524 -    lt_cv_sys_dlopen_deplibs=unknown
  1.4525 -    ;;
  1.4526 -  osf*)
  1.4527 -    # the two cases above should catch all versions of osf <= 5.1.  Read
  1.4528 -    # the comments above for what we know about them.
  1.4529 -    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  1.4530 -    # is used to find them so we can finally say `yes'.
  1.4531 -    lt_cv_sys_dlopen_deplibs=yes
  1.4532 -    ;;
  1.4533 -  qnx*)
  1.4534 -    lt_cv_sys_dlopen_deplibs=yes
  1.4535 -    ;;
  1.4536 -  solaris*)
  1.4537 -    lt_cv_sys_dlopen_deplibs=yes
  1.4538 -    ;;
  1.4539 -  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.4540 -    libltdl_cv_sys_dlopen_deplibs=yes
  1.4541 -    ;;
  1.4542 -  esac
  1.4543 -  ])
  1.4544 -if test "$lt_cv_sys_dlopen_deplibs" != yes; then
  1.4545 - AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
  1.4546 -    [Define if the OS needs help to load dependent libraries for dlopen().])
  1.4547 -fi
  1.4548 -])# LT_SYS_DLOPEN_DEPLIBS
  1.4549 -
  1.4550 -# Old name:
  1.4551 -AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
  1.4552 -dnl aclocal-1.4 backwards compatibility:
  1.4553 -dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
  1.4554 -
  1.4555 -
  1.4556 -# LT_SYS_MODULE_EXT
  1.4557 -# -----------------
  1.4558 -AC_DEFUN([LT_SYS_MODULE_EXT],
  1.4559 -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
  1.4560 -AC_CACHE_CHECK([which extension is used for runtime loadable modules],
  1.4561 -  [libltdl_cv_shlibext],
  1.4562 -[
  1.4563 -module=yes
  1.4564 -eval libltdl_cv_shlibext=$shrext_cmds
  1.4565 -  ])
  1.4566 -if test -n "$libltdl_cv_shlibext"; then
  1.4567 -  m4_pattern_allow([LT_MODULE_EXT])dnl
  1.4568 -  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
  1.4569 -    [Define to the extension used for runtime loadable modules, say, ".so".])
  1.4570 -fi
  1.4571 -])# LT_SYS_MODULE_EXT
  1.4572 -
  1.4573 -# Old name:
  1.4574 -AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
  1.4575 -dnl aclocal-1.4 backwards compatibility:
  1.4576 -dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
  1.4577 -
  1.4578 -
  1.4579 -# LT_SYS_MODULE_PATH
  1.4580 -# ------------------
  1.4581 -AC_DEFUN([LT_SYS_MODULE_PATH],
  1.4582 -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
  1.4583 -AC_CACHE_CHECK([which variable specifies run-time module search path],
  1.4584 -  [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
  1.4585 -if test -n "$lt_cv_module_path_var"; then
  1.4586 -  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
  1.4587 -  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
  1.4588 -    [Define to the name of the environment variable that determines the run-time module search path.])
  1.4589 -fi
  1.4590 -])# LT_SYS_MODULE_PATH
  1.4591 -
  1.4592 -# Old name:
  1.4593 -AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
  1.4594 -dnl aclocal-1.4 backwards compatibility:
  1.4595 -dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
  1.4596 -
  1.4597 -
  1.4598 -# LT_SYS_DLSEARCH_PATH
  1.4599 -# --------------------
  1.4600 -AC_DEFUN([LT_SYS_DLSEARCH_PATH],
  1.4601 -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
  1.4602 -AC_CACHE_CHECK([for the default library search path],
  1.4603 -  [lt_cv_sys_dlsearch_path],
  1.4604 -  [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
  1.4605 -if test -n "$lt_cv_sys_dlsearch_path"; then
  1.4606 -  sys_dlsearch_path=
  1.4607 -  for dir in $lt_cv_sys_dlsearch_path; do
  1.4608 -    if test -z "$sys_dlsearch_path"; then
  1.4609 -      sys_dlsearch_path="$dir"
  1.4610 -    else
  1.4611 -      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
  1.4612 -    fi
  1.4613 -  done
  1.4614 -  m4_pattern_allow([LT_DLSEARCH_PATH])dnl
  1.4615 -  AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
  1.4616 -    [Define to the system default library search path.])
  1.4617 -fi
  1.4618 -])# LT_SYS_DLSEARCH_PATH
  1.4619 -
  1.4620 -# Old name:
  1.4621 -AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
  1.4622 -dnl aclocal-1.4 backwards compatibility:
  1.4623 -dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
  1.4624 -
  1.4625 -
  1.4626 -# _LT_CHECK_DLPREOPEN
  1.4627 -# -------------------
  1.4628 -m4_defun([_LT_CHECK_DLPREOPEN],
  1.4629 -[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  1.4630 -AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
  1.4631 -  [libltdl_cv_preloaded_symbols],
  1.4632 -  [if test -n "$lt_cv_sys_global_symbol_pipe"; then
  1.4633 -    libltdl_cv_preloaded_symbols=yes
  1.4634 -  else
  1.4635 -    libltdl_cv_preloaded_symbols=no
  1.4636 -  fi
  1.4637 -  ])
  1.4638 -if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  1.4639 -  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
  1.4640 -    [Define if libtool can extract symbol lists from object files.])
  1.4641 -fi
  1.4642 -])# _LT_CHECK_DLPREOPEN
  1.4643 -
  1.4644 -
  1.4645 -# LT_LIB_DLLOAD
  1.4646 -# -------------
  1.4647 -AC_DEFUN([LT_LIB_DLLOAD],
  1.4648 -[m4_pattern_allow([^LT_DLLOADERS$])
  1.4649 -LT_DLLOADERS=
  1.4650 -AC_SUBST([LT_DLLOADERS])
  1.4651 -
  1.4652 -AC_LANG_PUSH([C])
  1.4653 -
  1.4654 -LIBADD_DLOPEN=
  1.4655 -AC_SEARCH_LIBS([dlopen], [dl],
  1.4656 -	[AC_DEFINE([HAVE_LIBDL], [1],
  1.4657 -		   [Define if you have the libdl library or equivalent.])
  1.4658 -	if test "$ac_cv_search_dlopen" != "none required" ; then
  1.4659 -	  LIBADD_DLOPEN="-ldl"
  1.4660 -	fi
  1.4661 -	libltdl_cv_lib_dl_dlopen="yes"
  1.4662 -	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
  1.4663 -    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
  1.4664 -#  include <dlfcn.h>
  1.4665 -#endif
  1.4666 -    ]], [[dlopen(0, 0);]])],
  1.4667 -	    [AC_DEFINE([HAVE_LIBDL], [1],
  1.4668 -		       [Define if you have the libdl library or equivalent.])
  1.4669 -	    libltdl_cv_func_dlopen="yes"
  1.4670 -	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
  1.4671 -	[AC_CHECK_LIB([svld], [dlopen],
  1.4672 -		[AC_DEFINE([HAVE_LIBDL], [1],
  1.4673 -			 [Define if you have the libdl library or equivalent.])
  1.4674 -	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
  1.4675 -		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
  1.4676 -if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  1.4677 -then
  1.4678 -  lt_save_LIBS="$LIBS"
  1.4679 -  LIBS="$LIBS $LIBADD_DLOPEN"
  1.4680 -  AC_CHECK_FUNCS([dlerror])
  1.4681 -  LIBS="$lt_save_LIBS"
  1.4682 -fi
  1.4683 -AC_SUBST([LIBADD_DLOPEN])
  1.4684 -
  1.4685 -LIBADD_SHL_LOAD=
  1.4686 -AC_CHECK_FUNC([shl_load],
  1.4687 -	[AC_DEFINE([HAVE_SHL_LOAD], [1],
  1.4688 -		   [Define if you have the shl_load function.])
  1.4689 -	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
  1.4690 -    [AC_CHECK_LIB([dld], [shl_load],
  1.4691 -	    [AC_DEFINE([HAVE_SHL_LOAD], [1],
  1.4692 -		       [Define if you have the shl_load function.])
  1.4693 -	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  1.4694 -	    LIBADD_SHL_LOAD="-ldld"])])
  1.4695 -AC_SUBST([LIBADD_SHL_LOAD])
  1.4696 -
  1.4697 -case $host_os in
  1.4698 -darwin[[1567]].*)
  1.4699 -# We only want this for pre-Mac OS X 10.4.
  1.4700 -  AC_CHECK_FUNC([_dyld_func_lookup],
  1.4701 -	[AC_DEFINE([HAVE_DYLD], [1],
  1.4702 -		   [Define if you have the _dyld_func_lookup function.])
  1.4703 -	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
  1.4704 -  ;;
  1.4705 -beos*)
  1.4706 -  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  1.4707 -  ;;
  1.4708 -cygwin* | mingw* | os2* | pw32*)
  1.4709 -  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
  1.4710 -  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  1.4711 -  ;;
  1.4712  esac
  1.4713 -
  1.4714 -AC_CHECK_LIB([dld], [dld_link],
  1.4715 -	[AC_DEFINE([HAVE_DLD], [1],
  1.4716 -		   [Define if you have the GNU dld library.])
  1.4717 -		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
  1.4718 -AC_SUBST([LIBADD_DLD_LINK])
  1.4719 -
  1.4720 -m4_pattern_allow([^LT_DLPREOPEN$])
  1.4721 -LT_DLPREOPEN=
  1.4722 -if test -n "$LT_DLLOADERS"
  1.4723 -then
  1.4724 -  for lt_loader in $LT_DLLOADERS; do
  1.4725 -    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  1.4726 -  done
  1.4727 -  AC_DEFINE([HAVE_LIBDLLOADER], [1],
  1.4728 -            [Define if libdlloader will be built on this platform])
  1.4729 -fi
  1.4730 -AC_SUBST([LT_DLPREOPEN])
  1.4731 -
  1.4732 -dnl This isn't used anymore, but set it for backwards compatibility
  1.4733 -LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  1.4734 -AC_SUBST([LIBADD_DL])
  1.4735 -
  1.4736 -AC_LANG_POP
  1.4737 -])# LT_LIB_DLLOAD
  1.4738 -
  1.4739 -# Old name:
  1.4740 -AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
  1.4741 -dnl aclocal-1.4 backwards compatibility:
  1.4742 -dnl AC_DEFUN([AC_LTDL_DLLIB], [])
  1.4743 -
  1.4744 -
  1.4745 -# LT_SYS_SYMBOL_USCORE
  1.4746 -# --------------------
  1.4747 -# does the compiler prefix global symbols with an underscore?
  1.4748 -AC_DEFUN([LT_SYS_SYMBOL_USCORE],
  1.4749 -[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  1.4750 -AC_CACHE_CHECK([for _ prefix in compiled symbols],
  1.4751 -  [lt_cv_sys_symbol_underscore],
  1.4752 -  [lt_cv_sys_symbol_underscore=no
  1.4753 -  cat > conftest.$ac_ext <<_LT_EOF
  1.4754 -void nm_test_func(){}
  1.4755 -int main(){nm_test_func;return 0;}
  1.4756 -_LT_EOF
  1.4757 -  if AC_TRY_EVAL(ac_compile); then
  1.4758 -    # Now try to grab the symbols.
  1.4759 -    ac_nlist=conftest.nm
  1.4760 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
  1.4761 -      # See whether the symbols have a leading underscore.
  1.4762 -      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  1.4763 -        lt_cv_sys_symbol_underscore=yes
  1.4764 -      else
  1.4765 -        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  1.4766 -	  :
  1.4767 -        else
  1.4768 -	  echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
  1.4769 -        fi
  1.4770 -      fi
  1.4771 -    else
  1.4772 -      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  1.4773 -    fi
  1.4774 -  else
  1.4775 -    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
  1.4776 -    cat conftest.c >&AS_MESSAGE_LOG_FD
  1.4777 -  fi
  1.4778 -  rm -rf conftest*
  1.4779 -  ])
  1.4780 -  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  1.4781 -  AC_SUBST([sys_symbol_underscore])
  1.4782 -])# LT_SYS_SYMBOL_USCORE
  1.4783 -
  1.4784 -# Old name:
  1.4785 -AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
  1.4786 -dnl aclocal-1.4 backwards compatibility:
  1.4787 -dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
  1.4788 -
  1.4789 -
  1.4790 -# LT_FUNC_DLSYM_USCORE
  1.4791 -# --------------------
  1.4792 -AC_DEFUN([LT_FUNC_DLSYM_USCORE],
  1.4793 -[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
  1.4794 -if test x"$lt_cv_sys_symbol_underscore" = xyes; then
  1.4795 -  if test x"$libltdl_cv_func_dlopen" = xyes ||
  1.4796 -     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  1.4797 -	AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
  1.4798 -	  [libltdl_cv_need_uscore],
  1.4799 -	  [libltdl_cv_need_uscore=unknown
  1.4800 -          save_LIBS="$LIBS"
  1.4801 -          LIBS="$LIBS $LIBADD_DLOPEN"
  1.4802 -	  _LT_TRY_DLOPEN_SELF(
  1.4803 -	    [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
  1.4804 -	    [],				 [libltdl_cv_need_uscore=cross])
  1.4805 -	  LIBS="$save_LIBS"
  1.4806 -	])
  1.4807 -  fi
  1.4808 -fi
  1.4809 -
  1.4810 -if test x"$libltdl_cv_need_uscore" = xyes; then
  1.4811 -  AC_DEFINE([NEED_USCORE], [1],
  1.4812 -    [Define if dlsym() requires a leading underscore in symbol names.])
  1.4813 -fi
  1.4814 -])# LT_FUNC_DLSYM_USCORE
  1.4815 -
  1.4816 -# Old name:
  1.4817 -AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
  1.4818 -dnl aclocal-1.4 backwards compatibility:
  1.4819 -dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
  1.4820 -
  1.4821 -##############################################################################
  1.4822 +])
  1.4823 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  1.4824 +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  1.4825 +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  1.4826 +         [0], [convert $build files to toolchain format])dnl
  1.4827 +])# _LT_PATH_CONVERSION_FUNCTIONS
  1.4828  # Helper functions for option handling.                    -*- Autoconf -*-
  1.4829  #
  1.4830 -#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  1.4831 +#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  1.4832 +#   Inc.
  1.4833  #   Written by Gary V. Vaughan, 2004
  1.4834  #
  1.4835  # This file is free software; the Free Software Foundation gives
  1.4836  # unlimited permission to copy and/or distribute it, with or without
  1.4837  # modifications, as long as this notice is preserved.
  1.4838  
  1.4839 -# serial 6 ltoptions.m4
  1.4840 +# serial 7 ltoptions.m4
  1.4841  
  1.4842  # This is to help aclocal find these macros, as it can't see m4_define.
  1.4843  AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  1.4844 @@ -8999,7 +8807,7 @@
  1.4845  [enable_win32_dll=yes
  1.4846  
  1.4847  case $host in
  1.4848 -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  1.4849 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  1.4850    AC_CHECK_TOOL(AS, as, false)
  1.4851    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1.4852    AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1.4853 @@ -9007,13 +8815,13 @@
  1.4854  esac
  1.4855  
  1.4856  test -z "$AS" && AS=as
  1.4857 -_LT_DECL([], [AS],      [0], [Assembler program])dnl
  1.4858 +_LT_DECL([], [AS],      [1], [Assembler program])dnl
  1.4859  
  1.4860  test -z "$DLLTOOL" && DLLTOOL=dlltool
  1.4861 -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  1.4862 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  1.4863  
  1.4864  test -z "$OBJDUMP" && OBJDUMP=objdump
  1.4865 -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  1.4866 +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  1.4867  ])# win32-dll
  1.4868  
  1.4869  AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1.4870 @@ -9199,9 +9007,24 @@
  1.4871  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
  1.4872  m4_define([_LT_WITH_PIC],
  1.4873  [AC_ARG_WITH([pic],
  1.4874 -    [AS_HELP_STRING([--with-pic],
  1.4875 +    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  1.4876  	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1.4877 -    [pic_mode="$withval"],
  1.4878 +    [lt_p=${PACKAGE-default}
  1.4879 +    case $withval in
  1.4880 +    yes|no) pic_mode=$withval ;;
  1.4881 +    *)
  1.4882 +      pic_mode=default
  1.4883 +      # Look at the argument we got.  We use all the common list separators.
  1.4884 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1.4885 +      for lt_pkg in $withval; do
  1.4886 +	IFS="$lt_save_ifs"
  1.4887 +	if test "X$lt_pkg" = "X$lt_p"; then
  1.4888 +	  pic_mode=yes
  1.4889 +	fi
  1.4890 +      done
  1.4891 +      IFS="$lt_save_ifs"
  1.4892 +      ;;
  1.4893 +    esac],
  1.4894      [pic_mode=default])
  1.4895  
  1.4896  test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  1.4897 @@ -9240,8 +9063,6 @@
  1.4898  		 [m4_define([_LTDL_TYPE], [installable])])
  1.4899  LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  1.4900  		 [m4_define([_LTDL_TYPE], [convenience])])
  1.4901 -
  1.4902 -##############################################################################
  1.4903  # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
  1.4904  #
  1.4905  # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  1.4906 @@ -9365,8 +9186,6 @@
  1.4907             lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  1.4908  		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  1.4909  ])
  1.4910 -
  1.4911 -##############################################################################
  1.4912  # ltversion.m4 -- version numbers			-*- Autoconf -*-
  1.4913  #
  1.4914  #   Copyright (C) 2004 Free Software Foundation, Inc.
  1.4915 @@ -9376,32 +9195,30 @@
  1.4916  # unlimited permission to copy and/or distribute it, with or without
  1.4917  # modifications, as long as this notice is preserved.
  1.4918  
  1.4919 -# Generated from ltversion.in.
  1.4920 -
  1.4921 -# serial 3012 ltversion.m4
  1.4922 +# @configure_input@
  1.4923 +
  1.4924 +# serial 3337 ltversion.m4
  1.4925  # This file is part of GNU Libtool
  1.4926  
  1.4927 -m4_define([LT_PACKAGE_VERSION], [2.2.6])
  1.4928 -m4_define([LT_PACKAGE_REVISION], [1.3012])
  1.4929 +m4_define([LT_PACKAGE_VERSION], [2.4.2])
  1.4930 +m4_define([LT_PACKAGE_REVISION], [1.3337])
  1.4931  
  1.4932  AC_DEFUN([LTVERSION_VERSION],
  1.4933 -[macro_version='2.2.6'
  1.4934 -macro_revision='1.3012'
  1.4935 +[macro_version='2.4.2'
  1.4936 +macro_revision='1.3337'
  1.4937  _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  1.4938  _LT_DECL(, macro_revision, 0)
  1.4939  ])
  1.4940 -
  1.4941 -##############################################################################
  1.4942  # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
  1.4943  #
  1.4944 -#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  1.4945 +#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  1.4946  #   Written by Scott James Remnant, 2004.
  1.4947  #
  1.4948  # This file is free software; the Free Software Foundation gives
  1.4949  # unlimited permission to copy and/or distribute it, with or without
  1.4950  # modifications, as long as this notice is preserved.
  1.4951  
  1.4952 -# serial 4 lt~obsolete.m4
  1.4953 +# serial 5 lt~obsolete.m4
  1.4954  
  1.4955  # These exist entirely to fool aclocal when bootstrapping libtool.
  1.4956  #
  1.4957 @@ -9471,7 +9288,6 @@
  1.4958  m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
  1.4959  m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
  1.4960  m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
  1.4961 -m4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
  1.4962  m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  1.4963  m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  1.4964  m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  1.4965 @@ -9484,3 +9300,10 @@
  1.4966  m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  1.4967  m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
  1.4968  m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  1.4969 +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  1.4970 +m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  1.4971 +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  1.4972 +m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  1.4973 +m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
  1.4974 +m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
  1.4975 +m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])