Updated to the latest versions of autotools and config.guess/config.sub
authorSam Lantinga <slouken@libsdl.org>
Thu, 20 Sep 2012 21:13:10 -0700
changeset 64422d3caa191dc4
parent 6441 ada3545fed23
child 6443 21827b6a7cfd
Updated to the latest versions of autotools and config.guess/config.sub
autoconf-2.69
automake-1.12
libtool-2.4.2
acinclude/libtool.m4
acinclude/ltoptions.m4
acinclude/ltsugar.m4
acinclude/ltversion.m4
acinclude/lt~obsolete.m4
aclocal.m4
build-scripts/config.guess
build-scripts/config.sub
build-scripts/ltmain.sh
configure
test/configure
     1.1 --- a/acinclude/libtool.m4	Wed Sep 19 18:08:37 2012 -0700
     1.2 +++ b/acinclude/libtool.m4	Thu Sep 20 21:13:10 2012 -0700
     1.3 @@ -1,9 +1,10 @@
     1.4  ##############################################################################
     1.5 -# Based on libtool-2.2.6a
     1.6 +# Based on libtool-2.4.2
     1.7  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     1.8  #
     1.9  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.10 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.11 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.12 +#                 Foundation, Inc.
    1.13  #   Written by Gordon Matzigkeit, 1996
    1.14  #
    1.15  # This file is free software; the Free Software Foundation gives
    1.16 @@ -12,7 +13,8 @@
    1.17  
    1.18  m4_define([_LT_COPYING], [dnl
    1.19  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.20 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.21 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.22 +#                 Foundation, Inc.
    1.23  #   Written by Gordon Matzigkeit, 1996
    1.24  #
    1.25  #   This file is part of GNU Libtool.
    1.26 @@ -39,7 +41,7 @@
    1.27  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    1.28  ])
    1.29  
    1.30 -# serial 56 LT_INIT
    1.31 +# serial 57 LT_INIT
    1.32  
    1.33  
    1.34  # LT_PREREQ(VERSION)
    1.35 @@ -68,6 +70,7 @@
    1.36  # ------------------
    1.37  AC_DEFUN([LT_INIT],
    1.38  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    1.39 +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    1.40  AC_BEFORE([$0], [LT_LANG])dnl
    1.41  AC_BEFORE([$0], [LT_OUTPUT])dnl
    1.42  AC_BEFORE([$0], [LTDL_INIT])dnl
    1.43 @@ -84,6 +87,8 @@
    1.44  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    1.45  m4_require([_LT_PROG_LTMAIN])dnl
    1.46  
    1.47 +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    1.48 +
    1.49  dnl Parse OPTIONS
    1.50  _LT_SET_OPTIONS([$0], [$1])
    1.51  
    1.52 @@ -120,7 +125,7 @@
    1.53      *) break;;
    1.54    esac
    1.55  done
    1.56 -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    1.57 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    1.58  ])
    1.59  
    1.60  
    1.61 @@ -140,6 +145,11 @@
    1.62  m4_defun([_LT_SETUP],
    1.63  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    1.64  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    1.65 +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
    1.66 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    1.67 +
    1.68 +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
    1.69 +dnl
    1.70  _LT_DECL([], [host_alias], [0], [The host system])dnl
    1.71  _LT_DECL([], [host], [0])dnl
    1.72  _LT_DECL([], [host_os], [0])dnl
    1.73 @@ -162,10 +172,13 @@
    1.74  dnl
    1.75  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    1.76  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    1.77 +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    1.78  m4_require([_LT_CMD_RELOAD])dnl
    1.79  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
    1.80 +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    1.81  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    1.82  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    1.83 +m4_require([_LT_WITH_SYSROOT])dnl
    1.84  
    1.85  _LT_CONFIG_LIBTOOL_INIT([
    1.86  # See if we are running on zsh, and set the options which allow our
    1.87 @@ -181,7 +194,6 @@
    1.88  _LT_CHECK_OBJDIR
    1.89  
    1.90  m4_require([_LT_TAG_COMPILER])dnl
    1.91 -_LT_PROG_ECHO_BACKSLASH
    1.92  
    1.93  case $host_os in
    1.94  aix3*)
    1.95 @@ -195,23 +207,6 @@
    1.96    ;;
    1.97  esac
    1.98  
    1.99 -# Sed substitution that helps us do robust quoting.  It backslashifies
   1.100 -# metacharacters that are still active within double-quoted strings.
   1.101 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.102 -
   1.103 -# Same as above, but do not quote variable references.
   1.104 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.105 -
   1.106 -# Sed substitution to delay expansion of an escaped shell variable in a
   1.107 -# double_quote_subst'ed string.
   1.108 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.109 -
   1.110 -# Sed substitution to delay expansion of an escaped single quote.
   1.111 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.112 -
   1.113 -# Sed substitution to avoid accidental globbing in evaled expressions
   1.114 -no_glob_subst='s/\*/\\\*/g'
   1.115 -
   1.116  # Global variables:
   1.117  ofile=libtool
   1.118  can_build_shared=yes
   1.119 @@ -252,6 +247,28 @@
   1.120  ])# _LT_SETUP
   1.121  
   1.122  
   1.123 +# _LT_PREPARE_SED_QUOTE_VARS
   1.124 +# --------------------------
   1.125 +# Define a few sed substitution that help us do robust quoting.
   1.126 +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
   1.127 +[# Backslashify metacharacters that are still active within
   1.128 +# double-quoted strings.
   1.129 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.130 +
   1.131 +# Same as above, but do not quote variable references.
   1.132 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.133 +
   1.134 +# Sed substitution to delay expansion of an escaped shell variable in a
   1.135 +# double_quote_subst'ed string.
   1.136 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.137 +
   1.138 +# Sed substitution to delay expansion of an escaped single quote.
   1.139 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.140 +
   1.141 +# Sed substitution to avoid accidental globbing in evaled expressions
   1.142 +no_glob_subst='s/\*/\\\*/g'
   1.143 +])
   1.144 +
   1.145  # _LT_PROG_LTMAIN
   1.146  # ---------------
   1.147  # Note that this code is called both from `configure', and `config.status'
   1.148 @@ -410,7 +427,7 @@
   1.149  # declaration there will have the same value as in `configure'.  VARNAME
   1.150  # must have a single quote delimited value for this to work.
   1.151  m4_define([_LT_CONFIG_STATUS_DECLARE],
   1.152 -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
   1.153 +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   1.154  
   1.155  
   1.156  # _LT_CONFIG_STATUS_DECLARATIONS
   1.157 @@ -420,7 +437,7 @@
   1.158  # embedded single quotes properly.  In configure, this macro expands
   1.159  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   1.160  #
   1.161 -#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
   1.162 +#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
   1.163  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   1.164  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   1.165      [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   1.166 @@ -519,12 +536,20 @@
   1.167  LTCFLAGS='$LTCFLAGS'
   1.168  compiler='$compiler_DEFAULT'
   1.169  
   1.170 +# A function that is used when there is no print builtin or printf.
   1.171 +func_fallback_echo ()
   1.172 +{
   1.173 +  eval 'cat <<_LTECHO_EOF
   1.174 +\$[]1
   1.175 +_LTECHO_EOF'
   1.176 +}
   1.177 +
   1.178  # Quote evaled strings.
   1.179  for var in lt_decl_all_varnames([[ \
   1.180  ]], lt_decl_quote_varnames); do
   1.181 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.182 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.183      *[[\\\\\\\`\\"\\\$]]*)
   1.184 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.185 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.186        ;;
   1.187      *)
   1.188        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.189 @@ -535,9 +560,9 @@
   1.190  # Double-quote double-evaled strings.
   1.191  for var in lt_decl_all_varnames([[ \
   1.192  ]], lt_decl_dquote_varnames); do
   1.193 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.194 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.195      *[[\\\\\\\`\\"\\\$]]*)
   1.196 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.197 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.198        ;;
   1.199      *)
   1.200        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.201 @@ -545,16 +570,38 @@
   1.202      esac
   1.203  done
   1.204  
   1.205 -# Fix-up fallback echo if it was mangled by the above quoting rules.
   1.206 -case \$lt_ECHO in
   1.207 -*'\\\[$]0 --fallback-echo"')dnl "
   1.208 -  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
   1.209 -  ;;
   1.210 -esac
   1.211 -
   1.212  _LT_OUTPUT_LIBTOOL_INIT
   1.213  ])
   1.214  
   1.215 +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   1.216 +# ------------------------------------
   1.217 +# Generate a child script FILE with all initialization necessary to
   1.218 +# reuse the environment learned by the parent script, and make the
   1.219 +# file executable.  If COMMENT is supplied, it is inserted after the
   1.220 +# `#!' sequence but before initialization text begins.  After this
   1.221 +# macro, additional text can be appended to FILE to form the body of
   1.222 +# the child script.  The macro ends with non-zero status if the
   1.223 +# file could not be fully written (such as if the disk is full).
   1.224 +m4_ifdef([AS_INIT_GENERATED],
   1.225 +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   1.226 +[m4_defun([_LT_GENERATED_FILE_INIT],
   1.227 +[m4_require([AS_PREPARE])]dnl
   1.228 +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
   1.229 +[lt_write_fail=0
   1.230 +cat >$1 <<_ASEOF || lt_write_fail=1
   1.231 +#! $SHELL
   1.232 +# Generated by $as_me.
   1.233 +$2
   1.234 +SHELL=\${CONFIG_SHELL-$SHELL}
   1.235 +export SHELL
   1.236 +_ASEOF
   1.237 +cat >>$1 <<\_ASEOF || lt_write_fail=1
   1.238 +AS_SHELL_SANITIZE
   1.239 +_AS_PREPARE
   1.240 +exec AS_MESSAGE_FD>&1
   1.241 +_ASEOF
   1.242 +test $lt_write_fail = 0 && chmod +x $1[]dnl
   1.243 +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   1.244  
   1.245  # LT_OUTPUT
   1.246  # ---------
   1.247 @@ -564,20 +611,11 @@
   1.248  AC_DEFUN([LT_OUTPUT],
   1.249  [: ${CONFIG_LT=./config.lt}
   1.250  AC_MSG_NOTICE([creating $CONFIG_LT])
   1.251 -cat >"$CONFIG_LT" <<_LTEOF
   1.252 -#! $SHELL
   1.253 -# Generated by $as_me.
   1.254 -# Run this file to recreate a libtool stub with the current configuration.
   1.255 -
   1.256 +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
   1.257 +[# Run this file to recreate a libtool stub with the current configuration.])
   1.258 +
   1.259 +cat >>"$CONFIG_LT" <<\_LTEOF
   1.260  lt_cl_silent=false
   1.261 -SHELL=\${CONFIG_SHELL-$SHELL}
   1.262 -_LTEOF
   1.263 -
   1.264 -cat >>"$CONFIG_LT" <<\_LTEOF
   1.265 -AS_SHELL_SANITIZE
   1.266 -_AS_PREPARE
   1.267 -
   1.268 -exec AS_MESSAGE_FD>&1
   1.269  exec AS_MESSAGE_LOG_FD>>config.log
   1.270  {
   1.271    echo
   1.272 @@ -603,7 +641,7 @@
   1.273  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   1.274  configured by $[0], generated by m4_PACKAGE_STRING.
   1.275  
   1.276 -Copyright (C) 2008 Free Software Foundation, Inc.
   1.277 +Copyright (C) 2011 Free Software Foundation, Inc.
   1.278  This config.lt script is free software; the Free Software Foundation
   1.279  gives unlimited permision to copy, distribute and modify it."
   1.280  
   1.281 @@ -648,15 +686,13 @@
   1.282  # appending to config.log, which fails on DOS, as config.log is still kept
   1.283  # open by configure.  Here we exec the FD to /dev/null, effectively closing
   1.284  # config.log, so it can be properly (re)opened and appended to by config.lt.
   1.285 -if test "$no_create" != yes; then
   1.286 -  lt_cl_success=:
   1.287 -  test "$silent" = yes &&
   1.288 -    lt_config_lt_args="$lt_config_lt_args --quiet"
   1.289 -  exec AS_MESSAGE_LOG_FD>/dev/null
   1.290 -  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.291 -  exec AS_MESSAGE_LOG_FD>>config.log
   1.292 -  $lt_cl_success || AS_EXIT(1)
   1.293 -fi
   1.294 +lt_cl_success=:
   1.295 +test "$silent" = yes &&
   1.296 +  lt_config_lt_args="$lt_config_lt_args --quiet"
   1.297 +exec AS_MESSAGE_LOG_FD>/dev/null
   1.298 +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.299 +exec AS_MESSAGE_LOG_FD>>config.log
   1.300 +$lt_cl_success || AS_EXIT(1)
   1.301  ])# LT_OUTPUT
   1.302  
   1.303  
   1.304 @@ -719,15 +755,12 @@
   1.305    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   1.306    # text mode, it properly converts lines to CR/LF.  This bash problem
   1.307    # is reportedly fixed, but why not run on old versions too?
   1.308 -  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
   1.309 -    || (rm -f "$cfgfile"; exit 1)
   1.310 -
   1.311 -  _LT_PROG_XSI_SHELLFNS
   1.312 -
   1.313 -  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
   1.314 -    || (rm -f "$cfgfile"; exit 1)
   1.315 -
   1.316 -  mv -f "$cfgfile" "$ofile" ||
   1.317 +  sed '$q' "$ltmain" >> "$cfgfile" \
   1.318 +     || (rm -f "$cfgfile"; exit 1)
   1.319 +
   1.320 +  _LT_PROG_REPLACE_SHELLFNS
   1.321 +
   1.322 +   mv -f "$cfgfile" "$ofile" ||
   1.323      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   1.324    chmod +x "$ofile"
   1.325  ],
   1.326 @@ -772,6 +805,7 @@
   1.327  m4_case([$1],
   1.328    [C],			[_LT_LANG(C)],
   1.329    [C++],		[_LT_LANG(CXX)],
   1.330 +  [Go],			[_LT_LANG(GO)],
   1.331    [Java],		[_LT_LANG(GCJ)],
   1.332    [Fortran 77],		[_LT_LANG(F77)],
   1.333    [Fortran],		[_LT_LANG(FC)],
   1.334 @@ -793,6 +827,31 @@
   1.335  ])# _LT_LANG
   1.336  
   1.337  
   1.338 +m4_ifndef([AC_PROG_GO], [
   1.339 +############################################################
   1.340 +# NOTE: This macro has been submitted for inclusion into   #
   1.341 +#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
   1.342 +#  a released version of Autoconf we should remove this    #
   1.343 +#  macro and use it instead.                               #
   1.344 +############################################################
   1.345 +m4_defun([AC_PROG_GO],
   1.346 +[AC_LANG_PUSH(Go)dnl
   1.347 +AC_ARG_VAR([GOC],     [Go compiler command])dnl
   1.348 +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
   1.349 +_AC_ARG_VAR_LDFLAGS()dnl
   1.350 +AC_CHECK_TOOL(GOC, gccgo)
   1.351 +if test -z "$GOC"; then
   1.352 +  if test -n "$ac_tool_prefix"; then
   1.353 +    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
   1.354 +  fi
   1.355 +fi
   1.356 +if test -z "$GOC"; then
   1.357 +  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
   1.358 +fi
   1.359 +])#m4_defun
   1.360 +])#m4_ifndef
   1.361 +
   1.362 +
   1.363  # _LT_LANG_DEFAULT_CONFIG
   1.364  # -----------------------
   1.365  m4_defun([_LT_LANG_DEFAULT_CONFIG],
   1.366 @@ -823,6 +882,10 @@
   1.367         m4_ifdef([LT_PROG_GCJ],
   1.368  	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   1.369  
   1.370 +AC_PROVIDE_IFELSE([AC_PROG_GO],
   1.371 +  [LT_LANG(GO)],
   1.372 +  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
   1.373 +
   1.374  AC_PROVIDE_IFELSE([LT_PROG_RC],
   1.375    [LT_LANG(RC)],
   1.376    [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   1.377 @@ -833,11 +896,13 @@
   1.378  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   1.379  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   1.380  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   1.381 +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
   1.382  dnl aclocal-1.4 backwards compatibility:
   1.383  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   1.384  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   1.385  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   1.386  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   1.387 +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
   1.388  
   1.389  
   1.390  # _LT_TAG_COMPILER
   1.391 @@ -923,7 +988,13 @@
   1.392  	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1.393  	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   1.394          _lt_result=$?
   1.395 -	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   1.396 +	# If there is a non-empty error log, and "single_module"
   1.397 +	# appears in it, assume the flag caused a linker warning
   1.398 +        if test -s conftest.err && $GREP single_module conftest.err; then
   1.399 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.400 +	# Otherwise, if the output was created with a 0 exit code from
   1.401 +	# the compiler, it worked.
   1.402 +	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   1.403  	  lt_cv_apple_cc_single_mod=yes
   1.404  	else
   1.405  	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.406 @@ -931,6 +1002,7 @@
   1.407  	rm -rf libconftest.dylib*
   1.408  	rm -f conftest.*
   1.409        fi])
   1.410 +
   1.411      AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   1.412        [lt_cv_ld_exported_symbols_list],
   1.413        [lt_cv_ld_exported_symbols_list=no
   1.414 @@ -942,6 +1014,34 @@
   1.415  	[lt_cv_ld_exported_symbols_list=no])
   1.416  	LDFLAGS="$save_LDFLAGS"
   1.417      ])
   1.418 +
   1.419 +    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
   1.420 +      [lt_cv_ld_force_load=no
   1.421 +      cat > conftest.c << _LT_EOF
   1.422 +int forced_loaded() { return 2;}
   1.423 +_LT_EOF
   1.424 +      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
   1.425 +      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
   1.426 +      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
   1.427 +      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
   1.428 +      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
   1.429 +      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
   1.430 +      cat > conftest.c << _LT_EOF
   1.431 +int main() { return 0;}
   1.432 +_LT_EOF
   1.433 +      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
   1.434 +      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   1.435 +      _lt_result=$?
   1.436 +      if test -s conftest.err && $GREP force_load conftest.err; then
   1.437 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.438 +      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
   1.439 +	lt_cv_ld_force_load=yes
   1.440 +      else
   1.441 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.442 +      fi
   1.443 +        rm -f conftest.err libconftest.a conftest conftest.c
   1.444 +        rm -rf conftest.dSYM
   1.445 +    ])
   1.446      case $host_os in
   1.447      rhapsody* | darwin1.[[012]])
   1.448        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   1.449 @@ -969,7 +1069,7 @@
   1.450      else
   1.451        _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   1.452      fi
   1.453 -    if test "$DSYMUTIL" != ":"; then
   1.454 +    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   1.455        _lt_dsymutil='~$DSYMUTIL $lib || :'
   1.456      else
   1.457        _lt_dsymutil=
   1.458 @@ -979,8 +1079,8 @@
   1.459  ])
   1.460  
   1.461  
   1.462 -# _LT_DARWIN_LINKER_FEATURES
   1.463 -# --------------------------
   1.464 +# _LT_DARWIN_LINKER_FEATURES([TAG])
   1.465 +# ---------------------------------
   1.466  # Checks for linker and compiler features on darwin
   1.467  m4_defun([_LT_DARWIN_LINKER_FEATURES],
   1.468  [
   1.469 @@ -989,7 +1089,13 @@
   1.470    _LT_TAGVAR(hardcode_direct, $1)=no
   1.471    _LT_TAGVAR(hardcode_automatic, $1)=yes
   1.472    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.473 -  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.474 +  if test "$lt_cv_ld_force_load" = "yes"; then
   1.475 +    _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.476 +    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
   1.477 +                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   1.478 +  else
   1.479 +    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.480 +  fi
   1.481    _LT_TAGVAR(link_all_deplibs, $1)=yes
   1.482    _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
   1.483    case $cc_basename in
   1.484 @@ -997,7 +1103,7 @@
   1.485       *) _lt_dar_can_shared=$GCC ;;
   1.486    esac
   1.487    if test "$_lt_dar_can_shared" = "yes"; then
   1.488 -    output_verbose_link_cmd=echo
   1.489 +    output_verbose_link_cmd=func_echo_all
   1.490      _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.491      _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   1.492      _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.493 @@ -1013,203 +1119,142 @@
   1.494    fi
   1.495  ])
   1.496  
   1.497 -# _LT_SYS_MODULE_PATH_AIX
   1.498 -# -----------------------
   1.499 +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
   1.500 +# ----------------------------------
   1.501  # Links a minimal program and checks the executable
   1.502  # for the system default hardcoded library path. In most cases,
   1.503  # this is /usr/lib:/lib, but when the MPI compilers are used
   1.504  # the location of the communication and MPI libs are included too.
   1.505  # If we don't find anything, use the default library path according
   1.506  # to the aix ld manual.
   1.507 +# Store the results from the different compilers for each TAGNAME.
   1.508 +# Allow to override them for all tags through lt_cv_aix_libpath.
   1.509  m4_defun([_LT_SYS_MODULE_PATH_AIX],
   1.510  [m4_require([_LT_DECL_SED])dnl
   1.511 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   1.512 -lt_aix_libpath_sed='
   1.513 -    /Import File Strings/,/^$/ {
   1.514 -	/^0/ {
   1.515 -	    s/^0  *\(.*\)$/\1/
   1.516 -	    p
   1.517 -	}
   1.518 -    }'
   1.519 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.520 -# Check for a 64-bit object if we didn't find anything.
   1.521 -if test -z "$aix_libpath"; then
   1.522 -  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.523 -fi],[])
   1.524 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   1.525 +if test "${lt_cv_aix_libpath+set}" = set; then
   1.526 +  aix_libpath=$lt_cv_aix_libpath
   1.527 +else
   1.528 +  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
   1.529 +  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
   1.530 +  lt_aix_libpath_sed='[
   1.531 +      /Import File Strings/,/^$/ {
   1.532 +	  /^0/ {
   1.533 +	      s/^0  *\([^ ]*\) *$/\1/
   1.534 +	      p
   1.535 +	  }
   1.536 +      }]'
   1.537 +  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.538 +  # Check for a 64-bit object if we didn't find anything.
   1.539 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.540 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.541 +  fi],[])
   1.542 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.543 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
   1.544 +  fi
   1.545 +  ])
   1.546 +  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
   1.547 +fi
   1.548  ])# _LT_SYS_MODULE_PATH_AIX
   1.549  
   1.550  
   1.551  # _LT_SHELL_INIT(ARG)
   1.552  # -------------------
   1.553  m4_define([_LT_SHELL_INIT],
   1.554 -[ifdef([AC_DIVERSION_NOTICE],
   1.555 -	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   1.556 -	 [AC_DIVERT_PUSH(NOTICE)])
   1.557 -$1
   1.558 -AC_DIVERT_POP
   1.559 -])# _LT_SHELL_INIT
   1.560 +[m4_divert_text([M4SH-INIT], [$1
   1.561 +])])# _LT_SHELL_INIT
   1.562 +
   1.563  
   1.564  
   1.565  # _LT_PROG_ECHO_BACKSLASH
   1.566  # -----------------------
   1.567 -# Add some code to the start of the generated configure script which
   1.568 -# will find an echo command which doesn't interpret backslashes.
   1.569 +# Find how we can fake an echo command that does not interpret backslash.
   1.570 +# In particular, with Autoconf 2.60 or later we add some code to the start
   1.571 +# of the generated configure script which will find a shell with a builtin
   1.572 +# printf (which we can use as an echo command).
   1.573  m4_defun([_LT_PROG_ECHO_BACKSLASH],
   1.574 -[_LT_SHELL_INIT([
   1.575 -# Check that we are running under the correct shell.
   1.576 -SHELL=${CONFIG_SHELL-/bin/sh}
   1.577 -
   1.578 -case X$lt_ECHO in
   1.579 -X*--fallback-echo)
   1.580 -  # Remove one level of quotation (which was required for Make).
   1.581 -  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   1.582 -  ;;
   1.583 +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.584 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.585 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.586 +
   1.587 +AC_MSG_CHECKING([how to print strings])
   1.588 +# Test print first, because it will be a builtin if present.
   1.589 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   1.590 +   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.591 +  ECHO='print -r --'
   1.592 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.593 +  ECHO='printf %s\n'
   1.594 +else
   1.595 +  # Use this function as a fallback that always works.
   1.596 +  func_fallback_echo ()
   1.597 +  {
   1.598 +    eval 'cat <<_LTECHO_EOF
   1.599 +$[]1
   1.600 +_LTECHO_EOF'
   1.601 +  }
   1.602 +  ECHO='func_fallback_echo'
   1.603 +fi
   1.604 +
   1.605 +# func_echo_all arg...
   1.606 +# Invoke $ECHO with all args, space-separated.
   1.607 +func_echo_all ()
   1.608 +{
   1.609 +    $ECHO "$*" 
   1.610 +}
   1.611 +
   1.612 +case "$ECHO" in
   1.613 +  printf*) AC_MSG_RESULT([printf]) ;;
   1.614 +  print*) AC_MSG_RESULT([print -r]) ;;
   1.615 +  *) AC_MSG_RESULT([cat]) ;;
   1.616  esac
   1.617  
   1.618 -ECHO=${lt_ECHO-echo}
   1.619 -if test "X[$]1" = X--no-reexec; then
   1.620 -  # Discard the --no-reexec flag, and continue.
   1.621 -  shift
   1.622 -elif test "X[$]1" = X--fallback-echo; then
   1.623 -  # Avoid inline document here, it may be left over
   1.624 -  :
   1.625 -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
   1.626 -  # Yippee, $ECHO works!
   1.627 -  :
   1.628 -else
   1.629 -  # Restart under the correct shell.
   1.630 -  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.631 -fi
   1.632 -
   1.633 -if test "X[$]1" = X--fallback-echo; then
   1.634 -  # used as fallback echo
   1.635 -  shift
   1.636 -  cat <<_LT_EOF
   1.637 -[$]*
   1.638 -_LT_EOF
   1.639 -  exit 0
   1.640 -fi
   1.641 -
   1.642 -# The HP-UX ksh and POSIX shell print the target directory to stdout
   1.643 -# if CDPATH is set.
   1.644 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.645 -
   1.646 -if test -z "$lt_ECHO"; then
   1.647 -  if test "X${echo_test_string+set}" != Xset; then
   1.648 -    # find a string as large as possible, as long as the shell can cope with it
   1.649 -    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   1.650 -      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   1.651 -      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
   1.652 -	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
   1.653 -      then
   1.654 -        break
   1.655 -      fi
   1.656 -    done
   1.657 -  fi
   1.658 -
   1.659 -  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.660 -     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.661 -     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.662 -    :
   1.663 -  else
   1.664 -    # The Solaris, AIX, and Digital Unix default echo programs unquote
   1.665 -    # backslashes.  This makes it impossible to quote backslashes using
   1.666 -    #   echo "$something" | sed 's/\\/\\\\/g'
   1.667 -    #
   1.668 -    # So, first we look for a working echo in the user's PATH.
   1.669 -
   1.670 -    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   1.671 -    for dir in $PATH /usr/ucb; do
   1.672 -      IFS="$lt_save_ifs"
   1.673 -      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   1.674 -         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   1.675 -         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   1.676 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.677 -        ECHO="$dir/echo"
   1.678 -        break
   1.679 -      fi
   1.680 -    done
   1.681 -    IFS="$lt_save_ifs"
   1.682 -
   1.683 -    if test "X$ECHO" = Xecho; then
   1.684 -      # We didn't find a better echo, so look for alternatives.
   1.685 -      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
   1.686 -         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
   1.687 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.688 -        # This shell has a builtin print -r that does the trick.
   1.689 -        ECHO='print -r'
   1.690 -      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
   1.691 -	   test "X$CONFIG_SHELL" != X/bin/ksh; then
   1.692 -        # If we have ksh, try running configure again with it.
   1.693 -        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   1.694 -        export ORIGINAL_CONFIG_SHELL
   1.695 -        CONFIG_SHELL=/bin/ksh
   1.696 -        export CONFIG_SHELL
   1.697 -        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.698 -      else
   1.699 -        # Try using printf.
   1.700 -        ECHO='printf %s\n'
   1.701 -        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.702 -	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.703 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
   1.704 -	  # Cool, printf works
   1.705 -	  :
   1.706 -        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.707 -	     test "X$echo_testing_string" = 'X\t' &&
   1.708 -	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.709 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.710 -	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   1.711 -	  export CONFIG_SHELL
   1.712 -	  SHELL="$CONFIG_SHELL"
   1.713 -	  export SHELL
   1.714 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.715 -        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.716 -	     test "X$echo_testing_string" = 'X\t' &&
   1.717 -	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.718 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.719 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.720 -        else
   1.721 -	  # maybe with a smaller string...
   1.722 -	  prev=:
   1.723 -
   1.724 -	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   1.725 -	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
   1.726 -	    then
   1.727 -	      break
   1.728 -	    fi
   1.729 -	    prev="$cmd"
   1.730 -	  done
   1.731 -
   1.732 -	  if test "$prev" != 'sed 50q "[$]0"'; then
   1.733 -	    echo_test_string=`eval $prev`
   1.734 -	    export echo_test_string
   1.735 -	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   1.736 -	  else
   1.737 -	    # Oops.  We lost completely, so just stick with echo.
   1.738 -	    ECHO=echo
   1.739 -	  fi
   1.740 -        fi
   1.741 -      fi
   1.742 -    fi
   1.743 -  fi
   1.744 -fi
   1.745 -
   1.746 -# Copy echo and quote the copy suitably for passing to libtool from
   1.747 -# the Makefile, instead of quoting the original, which is used later.
   1.748 -lt_ECHO=$ECHO
   1.749 -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   1.750 -   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   1.751 -fi
   1.752 -
   1.753 -AC_SUBST(lt_ECHO)
   1.754 -])
   1.755 +m4_ifdef([_AS_DETECT_SUGGESTED],
   1.756 +[_AS_DETECT_SUGGESTED([
   1.757 +  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
   1.758 +    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.759 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.760 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.761 +    PATH=/empty FPATH=/empty; export PATH FPATH
   1.762 +    test "X`printf %s $ECHO`" = "X$ECHO" \
   1.763 +      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
   1.764 +
   1.765  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
   1.766 -_LT_DECL([], [ECHO], [1],
   1.767 -    [An echo program that does not interpret backslashes])
   1.768 +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
   1.769  ])# _LT_PROG_ECHO_BACKSLASH
   1.770  
   1.771  
   1.772 +# _LT_WITH_SYSROOT
   1.773 +# ----------------
   1.774 +AC_DEFUN([_LT_WITH_SYSROOT],
   1.775 +[AC_MSG_CHECKING([for sysroot])
   1.776 +AC_ARG_WITH([sysroot],
   1.777 +[  --with-sysroot[=DIR] Search for dependent libraries within DIR
   1.778 +                        (or the compiler's sysroot if not specified).],
   1.779 +[], [with_sysroot=no])
   1.780 +
   1.781 +dnl lt_sysroot will always be passed unquoted.  We quote it here
   1.782 +dnl in case the user passed a directory name.
   1.783 +lt_sysroot=
   1.784 +case ${with_sysroot} in #(
   1.785 + yes)
   1.786 +   if test "$GCC" = yes; then
   1.787 +     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   1.788 +   fi
   1.789 +   ;; #(
   1.790 + /*)
   1.791 +   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   1.792 +   ;; #(
   1.793 + no|'')
   1.794 +   ;; #(
   1.795 + *)
   1.796 +   AC_MSG_RESULT([${with_sysroot}])
   1.797 +   AC_MSG_ERROR([The sysroot must be an absolute path.])
   1.798 +   ;;
   1.799 +esac
   1.800 +
   1.801 + AC_MSG_RESULT([${lt_sysroot:-no}])
   1.802 +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   1.803 +[dependent libraries, and in which our libraries should be installed.])])
   1.804 +
   1.805  # _LT_ENABLE_LOCK
   1.806  # ---------------
   1.807  m4_defun([_LT_ENABLE_LOCK],
   1.808 @@ -1238,7 +1283,7 @@
   1.809    ;;
   1.810  *-*-irix6*)
   1.811    # Find out which ABI we are using.
   1.812 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   1.813 +  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   1.814    if AC_TRY_EVAL(ac_compile); then
   1.815      if test "$lt_cv_prog_gnu_ld" = yes; then
   1.816        case `/usr/bin/file conftest.$ac_objext` in
   1.817 @@ -1331,14 +1376,27 @@
   1.818      CFLAGS="$SAVE_CFLAGS"
   1.819    fi
   1.820    ;;
   1.821 -sparc*-*solaris*)
   1.822 +*-*solaris*)
   1.823    # Find out which ABI we are using.
   1.824    echo 'int i;' > conftest.$ac_ext
   1.825    if AC_TRY_EVAL(ac_compile); then
   1.826      case `/usr/bin/file conftest.o` in
   1.827      *64-bit*)
   1.828        case $lt_cv_prog_gnu_ld in
   1.829 -      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   1.830 +      yes*)
   1.831 +        case $host in
   1.832 +        i?86-*-solaris*)
   1.833 +          LD="${LD-ld} -m elf_x86_64"
   1.834 +          ;;
   1.835 +        sparc*-*-solaris*)
   1.836 +          LD="${LD-ld} -m elf64_sparc"
   1.837 +          ;;
   1.838 +        esac
   1.839 +        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   1.840 +        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   1.841 +          LD="${LD-ld}_sol2"
   1.842 +        fi
   1.843 +        ;;
   1.844        *)
   1.845  	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   1.846  	  LD="${LD-ld} -64"
   1.847 @@ -1356,14 +1414,47 @@
   1.848  ])# _LT_ENABLE_LOCK
   1.849  
   1.850  
   1.851 +# _LT_PROG_AR
   1.852 +# -----------
   1.853 +m4_defun([_LT_PROG_AR],
   1.854 +[AC_CHECK_TOOLS(AR, [ar], false)
   1.855 +: ${AR=ar}
   1.856 +: ${AR_FLAGS=cru}
   1.857 +_LT_DECL([], [AR], [1], [The archiver])
   1.858 +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
   1.859 +
   1.860 +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   1.861 +  [lt_cv_ar_at_file=no
   1.862 +   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
   1.863 +     [echo conftest.$ac_objext > conftest.lst
   1.864 +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
   1.865 +      AC_TRY_EVAL([lt_ar_try])
   1.866 +      if test "$ac_status" -eq 0; then
   1.867 +	# Ensure the archiver fails upon bogus file names.
   1.868 +	rm -f conftest.$ac_objext libconftest.a
   1.869 +	AC_TRY_EVAL([lt_ar_try])
   1.870 +	if test "$ac_status" -ne 0; then
   1.871 +          lt_cv_ar_at_file=@
   1.872 +        fi
   1.873 +      fi
   1.874 +      rm -f conftest.* libconftest.a
   1.875 +     ])
   1.876 +  ])
   1.877 +
   1.878 +if test "x$lt_cv_ar_at_file" = xno; then
   1.879 +  archiver_list_spec=
   1.880 +else
   1.881 +  archiver_list_spec=$lt_cv_ar_at_file
   1.882 +fi
   1.883 +_LT_DECL([], [archiver_list_spec], [1],
   1.884 +  [How to feed a file listing to the archiver])
   1.885 +])# _LT_PROG_AR
   1.886 +
   1.887 +
   1.888  # _LT_CMD_OLD_ARCHIVE
   1.889  # -------------------
   1.890  m4_defun([_LT_CMD_OLD_ARCHIVE],
   1.891 -[AC_CHECK_TOOL(AR, ar, false)
   1.892 -test -z "$AR" && AR=ar
   1.893 -test -z "$AR_FLAGS" && AR_FLAGS=cru
   1.894 -_LT_DECL([], [AR], [1], [The archiver])
   1.895 -_LT_DECL([], [AR_FLAGS], [1])
   1.896 +[_LT_PROG_AR
   1.897  
   1.898  AC_CHECK_TOOL(STRIP, strip, :)
   1.899  test -z "$STRIP" && STRIP=:
   1.900 @@ -1382,18 +1473,27 @@
   1.901  if test -n "$RANLIB"; then
   1.902    case $host_os in
   1.903    openbsd*)
   1.904 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   1.905 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   1.906      ;;
   1.907    *)
   1.908 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   1.909 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   1.910      ;;
   1.911    esac
   1.912 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   1.913 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   1.914  fi
   1.915 +
   1.916 +case $host_os in
   1.917 +  darwin*)
   1.918 +    lock_old_archive_extraction=yes ;;
   1.919 +  *)
   1.920 +    lock_old_archive_extraction=no ;;
   1.921 +esac
   1.922  _LT_DECL([], [old_postinstall_cmds], [2])
   1.923  _LT_DECL([], [old_postuninstall_cmds], [2])
   1.924  _LT_TAGDECL([], [old_archive_cmds], [2],
   1.925      [Commands used to build an old-style archive])
   1.926 +_LT_DECL([], [lock_old_archive_extraction], [0],
   1.927 +    [Whether to use a lock for old archive extraction])
   1.928  ])# _LT_CMD_OLD_ARCHIVE
   1.929  
   1.930  
   1.931 @@ -1418,15 +1518,15 @@
   1.932     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.933     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.934     -e 's:$: $lt_compiler_flag:'`
   1.935 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.936 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.937     (eval "$lt_compile" 2>conftest.err)
   1.938     ac_status=$?
   1.939     cat conftest.err >&AS_MESSAGE_LOG_FD
   1.940 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.941 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.942     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.943       # The compiler can only warn and ignore the option if not recognized
   1.944       # So say no if there are warnings other than the usual output.
   1.945 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   1.946 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   1.947       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.948       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1.949         $2=yes
   1.950 @@ -1466,7 +1566,7 @@
   1.951       if test -s conftest.err; then
   1.952         # Append any errors to the config.log.
   1.953         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1.954 -       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   1.955 +       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   1.956         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.957         if diff conftest.exp conftest.er2 >/dev/null; then
   1.958           $2=yes
   1.959 @@ -1529,9 +1629,8 @@
   1.960      lt_cv_sys_max_cmd_len=8192;
   1.961      ;;
   1.962  
   1.963 -  beos*)
   1.964 -    # On BeOS, this test takes a really really long time.
   1.965 -    # So we just punt and use a minimum line length of 8192.
   1.966 +  mint*)
   1.967 +    # On MiNT this can take a long time and run out of memory.
   1.968      lt_cv_sys_max_cmd_len=8192;
   1.969      ;;
   1.970  
   1.971 @@ -1560,6 +1659,11 @@
   1.972      lt_cv_sys_max_cmd_len=196608
   1.973      ;;
   1.974  
   1.975 +  os2*)
   1.976 +    # The test takes a long time on OS/2.
   1.977 +    lt_cv_sys_max_cmd_len=8192
   1.978 +    ;;
   1.979 +
   1.980    osf*)
   1.981      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1.982      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1.983 @@ -1599,8 +1703,8 @@
   1.984        # If test is not a shell built-in, we'll probably end up computing a
   1.985        # maximum length that is only half of the actual maximum length, but
   1.986        # we can't tell.
   1.987 -      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
   1.988 -	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
   1.989 +      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
   1.990 +	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   1.991  	      test $i != 17 # 1/2 MB should be enough
   1.992        do
   1.993          i=`expr $i + 1`
   1.994 @@ -1651,7 +1755,7 @@
   1.995    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1.996    lt_status=$lt_dlunknown
   1.997    cat > conftest.$ac_ext <<_LT_EOF
   1.998 -[#line __oline__ "configure"
   1.999 +[#line $LINENO "configure"
  1.1000  #include "confdefs.h"
  1.1001  
  1.1002  #if HAVE_DLFCN_H
  1.1003 @@ -1692,7 +1796,13 @@
  1.1004  #  endif
  1.1005  #endif
  1.1006  
  1.1007 -void fnord() { int i=42;}
  1.1008 +/* When -fvisbility=hidden is used, assume the code has been annotated
  1.1009 +   correspondingly for the symbols needed.  */
  1.1010 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1.1011 +int fnord () __attribute__((visibility("default")));
  1.1012 +#endif
  1.1013 +
  1.1014 +int fnord () { return 42; }
  1.1015  int main ()
  1.1016  {
  1.1017    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1.1018 @@ -1701,7 +1811,11 @@
  1.1019    if (self)
  1.1020      {
  1.1021        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1.1022 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1.1023 +      else
  1.1024 +        {
  1.1025 +	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  1.1026 +          else puts (dlerror ());
  1.1027 +	}
  1.1028        /* dlclose (self); */
  1.1029      }
  1.1030    else
  1.1031 @@ -1877,16 +1991,16 @@
  1.1032     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1.1033     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1.1034     -e 's:$: $lt_compiler_flag:'`
  1.1035 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1036 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1037     (eval "$lt_compile" 2>out/conftest.err)
  1.1038     ac_status=$?
  1.1039     cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1.1040 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1041 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1042     if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1.1043     then
  1.1044       # The compiler can only warn and ignore the option if not recognized
  1.1045       # So say no if there are warnings
  1.1046 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.1047 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1.1048       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1.1049       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1.1050         _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.1051 @@ -2045,6 +2159,7 @@
  1.1052  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1053  m4_require([_LT_DECL_OBJDUMP])dnl
  1.1054  m4_require([_LT_DECL_SED])dnl
  1.1055 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1.1056  AC_MSG_CHECKING([dynamic linker characteristics])
  1.1057  m4_if([$1],
  1.1058  	[], [
  1.1059 @@ -2053,16 +2168,23 @@
  1.1060      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1.1061      *) lt_awk_arg="/^libraries:/" ;;
  1.1062    esac
  1.1063 -  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1064 -  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1.1065 +  case $host_os in
  1.1066 +    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1.1067 +    *) lt_sed_strip_eq="s,=/,/,g" ;;
  1.1068 +  esac
  1.1069 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1.1070 +  case $lt_search_path_spec in
  1.1071 +  *\;*)
  1.1072      # if the path contains ";" then we assume it to be the separator
  1.1073      # otherwise default to the standard path separator (i.e. ":") - it is
  1.1074      # assumed that no part of a normal pathname contains ";" but that should
  1.1075      # okay in the real world where ";" in dirpaths is itself problematic.
  1.1076 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1.1077 -  else
  1.1078 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1079 -  fi
  1.1080 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1.1081 +    ;;
  1.1082 +  *)
  1.1083 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1.1084 +    ;;
  1.1085 +  esac
  1.1086    # Ok, now we have the path, separated by spaces, we can step through it
  1.1087    # and add multilib dir if necessary.
  1.1088    lt_tmp_lt_search_path_spec=
  1.1089 @@ -2075,7 +2197,7 @@
  1.1090  	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1.1091      fi
  1.1092    done
  1.1093 -  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1.1094 +  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1.1095  BEGIN {RS=" "; FS="/|\n";} {
  1.1096    lt_foo="";
  1.1097    lt_count=0;
  1.1098 @@ -2095,7 +2217,13 @@
  1.1099    if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1.1100    if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1.1101  }'`
  1.1102 -  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1.1103 +  # AWK program above erroneously prepends '/' to C:/dos/paths
  1.1104 +  # for these hosts.
  1.1105 +  case $host_os in
  1.1106 +    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1.1107 +      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1.1108 +  esac
  1.1109 +  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1.1110  else
  1.1111    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.1112  fi])
  1.1113 @@ -2121,7 +2249,7 @@
  1.1114  
  1.1115  case $host_os in
  1.1116  aix3*)
  1.1117 -  version_type=linux
  1.1118 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1119    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1.1120    shlibpath_var=LIBPATH
  1.1121  
  1.1122 @@ -2130,7 +2258,7 @@
  1.1123    ;;
  1.1124  
  1.1125  aix[[4-9]]*)
  1.1126 -  version_type=linux
  1.1127 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1128    need_lib_prefix=no
  1.1129    need_version=no
  1.1130    hardcode_into_libs=yes
  1.1131 @@ -2183,7 +2311,7 @@
  1.1132    m68k)
  1.1133      library_names_spec='$libname.ixlibrary $libname.a'
  1.1134      # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.1135 -    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.1136 +    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.1137      ;;
  1.1138    esac
  1.1139    ;;
  1.1140 @@ -2195,7 +2323,7 @@
  1.1141    ;;
  1.1142  
  1.1143  bsdi[[45]]*)
  1.1144 -  version_type=linux
  1.1145 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1146    need_version=no
  1.1147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1148    soname_spec='${libname}${release}${shared_ext}$major'
  1.1149 @@ -2214,8 +2342,9 @@
  1.1150    need_version=no
  1.1151    need_lib_prefix=no
  1.1152  
  1.1153 -  case $GCC,$host_os in
  1.1154 -  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1.1155 +  case $GCC,$cc_basename in
  1.1156 +  yes,*)
  1.1157 +    # gcc
  1.1158      library_names_spec='$libname.dll.a'
  1.1159      # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1160      postinstall_cmds='base_file=`basename \${file}`~
  1.1161 @@ -2235,39 +2364,84 @@
  1.1162      case $host_os in
  1.1163      cygwin*)
  1.1164        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1.1165 -      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1166 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.1167 -      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1.1168 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1169 +m4_if([$1], [],[
  1.1170 +      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  1.1171        ;;
  1.1172      mingw* | cegcc*)
  1.1173        # MinGW DLLs use traditional 'lib' prefix
  1.1174 -      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1175 -      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  1.1176 -      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1177 -      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1178 -        # It is most probably a Windows format PATH printed by
  1.1179 -        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1.1180 -        # path with ; separators, and with drive letters. We can handle the
  1.1181 -        # drive letters (cygwin fileutils understands them), so leave them,
  1.1182 -        # especially as we might pass files found there to a mingw objdump,
  1.1183 -        # which wouldn't understand a cygwinified path. Ahh.
  1.1184 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1185 -      else
  1.1186 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1187 -      fi
  1.1188 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1189        ;;
  1.1190      pw32*)
  1.1191        # pw32 DLLs use 'pw' prefix rather than 'lib'
  1.1192        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1193        ;;
  1.1194      esac
  1.1195 +    dynamic_linker='Win32 ld.exe'
  1.1196      ;;
  1.1197  
  1.1198 +  *,cl*)
  1.1199 +    # Native MSVC
  1.1200 +    libname_spec='$name'
  1.1201 +    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1202 +    library_names_spec='${libname}.dll.lib'
  1.1203 +
  1.1204 +    case $build_os in
  1.1205 +    mingw*)
  1.1206 +      sys_lib_search_path_spec=
  1.1207 +      lt_save_ifs=$IFS
  1.1208 +      IFS=';'
  1.1209 +      for lt_path in $LIB
  1.1210 +      do
  1.1211 +        IFS=$lt_save_ifs
  1.1212 +        # Let DOS variable expansion print the short 8.3 style file name.
  1.1213 +        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  1.1214 +        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  1.1215 +      done
  1.1216 +      IFS=$lt_save_ifs
  1.1217 +      # Convert to MSYS style.
  1.1218 +      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.1219 +      ;;
  1.1220 +    cygwin*)
  1.1221 +      # Convert to unix form, then to dos form, then back to unix form
  1.1222 +      # but this time dos style (no spaces!) so that the unix form looks
  1.1223 +      # like /cygdrive/c/PROGRA~1:/cygdr...
  1.1224 +      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  1.1225 +      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  1.1226 +      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1227 +      ;;
  1.1228 +    *)
  1.1229 +      sys_lib_search_path_spec="$LIB"
  1.1230 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1231 +        # It is most probably a Windows format PATH.
  1.1232 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1233 +      else
  1.1234 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1235 +      fi
  1.1236 +      # FIXME: find the short name or the path components, as spaces are
  1.1237 +      # common. (e.g. "Program Files" -> "PROGRA~1")
  1.1238 +      ;;
  1.1239 +    esac
  1.1240 +
  1.1241 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1242 +    postinstall_cmds='base_file=`basename \${file}`~
  1.1243 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1.1244 +      dldir=$destdir/`dirname \$dlpath`~
  1.1245 +      test -d \$dldir || mkdir -p \$dldir~
  1.1246 +      $install_prog $dir/$dlname \$dldir/$dlname'
  1.1247 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1.1248 +      dlpath=$dir/\$dldll~
  1.1249 +       $RM \$dlpath'
  1.1250 +    shlibpath_overrides_runpath=yes
  1.1251 +    dynamic_linker='Win32 link.exe'
  1.1252 +    ;;
  1.1253 +
  1.1254    *)
  1.1255 +    # Assume MSVC wrapper
  1.1256      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1.1257 +    dynamic_linker='Win32 ld.exe'
  1.1258      ;;
  1.1259    esac
  1.1260 -  dynamic_linker='Win32 ld.exe'
  1.1261    # FIXME: first we should search . and the directory the executable is in
  1.1262    shlibpath_var=PATH
  1.1263    ;;
  1.1264 @@ -2288,7 +2462,7 @@
  1.1265    ;;
  1.1266  
  1.1267  dgux*)
  1.1268 -  version_type=linux
  1.1269 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1270    need_lib_prefix=no
  1.1271    need_version=no
  1.1272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1.1273 @@ -2296,10 +2470,6 @@
  1.1274    shlibpath_var=LD_LIBRARY_PATH
  1.1275    ;;
  1.1276  
  1.1277 -freebsd1*)
  1.1278 -  dynamic_linker=no
  1.1279 -  ;;
  1.1280 -
  1.1281  freebsd* | dragonfly*)
  1.1282    # DragonFly does not have aout.  When/if they implement a new
  1.1283    # versioning mechanism, adjust this.
  1.1284 @@ -2307,7 +2477,7 @@
  1.1285      objformat=`/usr/bin/objformat`
  1.1286    else
  1.1287      case $host_os in
  1.1288 -    freebsd[[123]]*) objformat=aout ;;
  1.1289 +    freebsd[[23]].*) objformat=aout ;;
  1.1290      *) objformat=elf ;;
  1.1291      esac
  1.1292    fi
  1.1293 @@ -2325,7 +2495,7 @@
  1.1294    esac
  1.1295    shlibpath_var=LD_LIBRARY_PATH
  1.1296    case $host_os in
  1.1297 -  freebsd2*)
  1.1298 +  freebsd2.*)
  1.1299      shlibpath_overrides_runpath=yes
  1.1300      ;;
  1.1301    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1.1302 @@ -2345,12 +2515,26 @@
  1.1303    ;;
  1.1304  
  1.1305  gnu*)
  1.1306 -  version_type=linux
  1.1307 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1308    need_lib_prefix=no
  1.1309    need_version=no
  1.1310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1311    soname_spec='${libname}${release}${shared_ext}$major'
  1.1312    shlibpath_var=LD_LIBRARY_PATH
  1.1313 +  shlibpath_overrides_runpath=no
  1.1314 +  hardcode_into_libs=yes
  1.1315 +  ;;
  1.1316 +
  1.1317 +haiku*)
  1.1318 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1319 +  need_lib_prefix=no
  1.1320 +  need_version=no
  1.1321 +  dynamic_linker="$host_os runtime_loader"
  1.1322 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1323 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.1324 +  shlibpath_var=LIBRARY_PATH
  1.1325 +  shlibpath_overrides_runpath=yes
  1.1326 +  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  1.1327    hardcode_into_libs=yes
  1.1328    ;;
  1.1329  
  1.1330 @@ -2396,12 +2580,14 @@
  1.1331      soname_spec='${libname}${release}${shared_ext}$major'
  1.1332      ;;
  1.1333    esac
  1.1334 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1.1335 +  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  1.1336    postinstall_cmds='chmod 555 $lib'
  1.1337 +  # or fails outright, so override atomically:
  1.1338 +  install_override_mode=555
  1.1339    ;;
  1.1340  
  1.1341  interix[[3-9]]*)
  1.1342 -  version_type=linux
  1.1343 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1344    need_lib_prefix=no
  1.1345    need_version=no
  1.1346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.1347 @@ -2417,7 +2603,7 @@
  1.1348      nonstopux*) version_type=nonstopux ;;
  1.1349      *)
  1.1350  	if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1351 -		version_type=linux
  1.1352 +		version_type=linux # correct to gnu/linux during the next big refactor
  1.1353  	else
  1.1354  		version_type=irix
  1.1355  	fi ;;
  1.1356 @@ -2454,9 +2640,9 @@
  1.1357    dynamic_linker=no
  1.1358    ;;
  1.1359  
  1.1360 -# This must be Linux ELF.
  1.1361 -linux* | k*bsd*-gnu)
  1.1362 -  version_type=linux
  1.1363 +# This must be glibc/ELF.
  1.1364 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1365 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1366    need_lib_prefix=no
  1.1367    need_version=no
  1.1368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1369 @@ -2464,16 +2650,21 @@
  1.1370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.1371    shlibpath_var=LD_LIBRARY_PATH
  1.1372    shlibpath_overrides_runpath=no
  1.1373 +
  1.1374    # Some binutils ld are patched to set DT_RUNPATH
  1.1375 -  save_LDFLAGS=$LDFLAGS
  1.1376 -  save_libdir=$libdir
  1.1377 -  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1378 -       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1379 -  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1380 -    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1381 -       [shlibpath_overrides_runpath=yes])])
  1.1382 -  LDFLAGS=$save_LDFLAGS
  1.1383 -  libdir=$save_libdir
  1.1384 +  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  1.1385 +    [lt_cv_shlibpath_overrides_runpath=no
  1.1386 +    save_LDFLAGS=$LDFLAGS
  1.1387 +    save_libdir=$libdir
  1.1388 +    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1389 +	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1390 +    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1391 +      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1392 +	 [lt_cv_shlibpath_overrides_runpath=yes])])
  1.1393 +    LDFLAGS=$save_LDFLAGS
  1.1394 +    libdir=$save_libdir
  1.1395 +    ])
  1.1396 +  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  1.1397  
  1.1398    # This implies no fast_install, which is unacceptable.
  1.1399    # Some rework will be needed to allow for fast_install
  1.1400 @@ -2482,7 +2673,7 @@
  1.1401  
  1.1402    # Append ld.so.conf contents to the search path
  1.1403    if test -f /etc/ld.so.conf; then
  1.1404 -    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.1405 +    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.1406      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1.1407    fi
  1.1408  
  1.1409 @@ -2514,7 +2705,7 @@
  1.1410    ;;
  1.1411  
  1.1412  newsos6)
  1.1413 -  version_type=linux
  1.1414 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1416    shlibpath_var=LD_LIBRARY_PATH
  1.1417    shlibpath_overrides_runpath=yes
  1.1418 @@ -2583,7 +2774,7 @@
  1.1419    ;;
  1.1420  
  1.1421  solaris*)
  1.1422 -  version_type=linux
  1.1423 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1424    need_lib_prefix=no
  1.1425    need_version=no
  1.1426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1427 @@ -2608,7 +2799,7 @@
  1.1428    ;;
  1.1429  
  1.1430  sysv4 | sysv4.3*)
  1.1431 -  version_type=linux
  1.1432 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1434    soname_spec='${libname}${release}${shared_ext}$major'
  1.1435    shlibpath_var=LD_LIBRARY_PATH
  1.1436 @@ -2632,7 +2823,7 @@
  1.1437  
  1.1438  sysv4*MP*)
  1.1439    if test -d /usr/nec ;then
  1.1440 -    version_type=linux
  1.1441 +    version_type=linux # correct to gnu/linux during the next big refactor
  1.1442      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1.1443      soname_spec='$libname${shared_ext}.$major'
  1.1444      shlibpath_var=LD_LIBRARY_PATH
  1.1445 @@ -2663,7 +2854,7 @@
  1.1446  
  1.1447  tpf*)
  1.1448    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1.1449 -  version_type=linux
  1.1450 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1451    need_lib_prefix=no
  1.1452    need_version=no
  1.1453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1454 @@ -2673,7 +2864,7 @@
  1.1455    ;;
  1.1456  
  1.1457  uts4*)
  1.1458 -  version_type=linux
  1.1459 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1461    soname_spec='${libname}${release}${shared_ext}$major'
  1.1462    shlibpath_var=LD_LIBRARY_PATH
  1.1463 @@ -2715,6 +2906,8 @@
  1.1464      The last name is the one that the linker finds with -lNAME]])
  1.1465  _LT_DECL([], [soname_spec], [1],
  1.1466      [[The coded name of the library, if different from the real name]])
  1.1467 +_LT_DECL([], [install_override_mode], [1],
  1.1468 +    [Permission mode override for installation of shared libraries])
  1.1469  _LT_DECL([], [postinstall_cmds], [2],
  1.1470      [Command to use after installation of a shared archive])
  1.1471  _LT_DECL([], [postuninstall_cmds], [2],
  1.1472 @@ -2827,6 +3020,7 @@
  1.1473  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.1474  m4_require([_LT_DECL_SED])dnl
  1.1475  m4_require([_LT_DECL_EGREP])dnl
  1.1476 +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  1.1477  
  1.1478  AC_ARG_WITH([gnu-ld],
  1.1479      [AS_HELP_STRING([--with-gnu-ld],
  1.1480 @@ -2948,6 +3142,11 @@
  1.1481  esac
  1.1482  reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.1483  case $host_os in
  1.1484 +  cygwin* | mingw* | pw32* | cegcc*)
  1.1485 +    if test "$GCC" != yes; then
  1.1486 +      reload_cmds=false
  1.1487 +    fi
  1.1488 +    ;;
  1.1489    darwin*)
  1.1490      if test "$GCC" = yes; then
  1.1491        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1.1492 @@ -2956,8 +3155,8 @@
  1.1493      fi
  1.1494      ;;
  1.1495  esac
  1.1496 -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1497 -_LT_DECL([], [reload_cmds], [2])dnl
  1.1498 +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1499 +_LT_TAGDECL([], [reload_cmds], [2])dnl
  1.1500  ])# _LT_CMD_RELOAD
  1.1501  
  1.1502  
  1.1503 @@ -3002,7 +3201,6 @@
  1.1504  cygwin*)
  1.1505    # func_win32_libid is a shell function defined in ltmain.sh
  1.1506    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1507 -  lt_cv_deplibs_check_method=pass_all
  1.1508    lt_cv_file_magic_cmd='func_win32_libid'
  1.1509    ;;
  1.1510  
  1.1511 @@ -3010,17 +3208,18 @@
  1.1512    # Base MSYS/MinGW do not provide the 'file' command needed by
  1.1513    # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.1514    # unless we find 'file', for example because we are cross-compiling.
  1.1515 -  if ( file / ) >/dev/null 2>&1; then
  1.1516 +  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  1.1517 +  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  1.1518      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1519      lt_cv_file_magic_cmd='func_win32_libid'
  1.1520    else
  1.1521 +    # Keep this pattern in sync with the one in func_win32_libid.
  1.1522      lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  1.1523      lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1524    fi
  1.1525 -  lt_cv_deplibs_check_method=pass_all
  1.1526    ;;
  1.1527  
  1.1528 -cegcc)
  1.1529 +cegcc*)
  1.1530    # use the weaker test based on 'objdump'. See mingw*.
  1.1531    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1.1532    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1533 @@ -3050,6 +3249,10 @@
  1.1534    lt_cv_deplibs_check_method=pass_all
  1.1535    ;;
  1.1536  
  1.1537 +haiku*)
  1.1538 +  lt_cv_deplibs_check_method=pass_all
  1.1539 +  ;;
  1.1540 +
  1.1541  hpux10.20* | hpux11*)
  1.1542    lt_cv_file_magic_cmd=/usr/bin/file
  1.1543    case $host_cpu in
  1.1544 @@ -3058,11 +3261,11 @@
  1.1545      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1.1546      ;;
  1.1547    hppa*64*)
  1.1548 -    [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.1549 +    [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.1550      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1.1551      ;;
  1.1552    *)
  1.1553 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1.1554 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  1.1555      lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1.1556      ;;
  1.1557    esac
  1.1558 @@ -3083,8 +3286,8 @@
  1.1559    lt_cv_deplibs_check_method=pass_all
  1.1560    ;;
  1.1561  
  1.1562 -# This must be Linux ELF.
  1.1563 -linux* | k*bsd*-gnu)
  1.1564 +# This must be glibc/ELF.
  1.1565 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1566    lt_cv_deplibs_check_method=pass_all
  1.1567    ;;
  1.1568  
  1.1569 @@ -3162,6 +3365,21 @@
  1.1570    ;;
  1.1571  esac
  1.1572  ])
  1.1573 +
  1.1574 +file_magic_glob=
  1.1575 +want_nocaseglob=no
  1.1576 +if test "$build" = "$host"; then
  1.1577 +  case $host_os in
  1.1578 +  mingw* | pw32*)
  1.1579 +    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  1.1580 +      want_nocaseglob=yes
  1.1581 +    else
  1.1582 +      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  1.1583 +    fi
  1.1584 +    ;;
  1.1585 +  esac
  1.1586 +fi
  1.1587 +
  1.1588  file_magic_cmd=$lt_cv_file_magic_cmd
  1.1589  deplibs_check_method=$lt_cv_deplibs_check_method
  1.1590  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  1.1591 @@ -3169,7 +3387,11 @@
  1.1592  _LT_DECL([], [deplibs_check_method], [1],
  1.1593      [Method to check whether dependent libraries are shared objects])
  1.1594  _LT_DECL([], [file_magic_cmd], [1],
  1.1595 -    [Command to use when deplibs_check_method == "file_magic"])
  1.1596 +    [Command to use when deplibs_check_method = "file_magic"])
  1.1597 +_LT_DECL([], [file_magic_glob], [1],
  1.1598 +    [How to find potential files when deplibs_check_method = "file_magic"])
  1.1599 +_LT_DECL([], [want_nocaseglob], [1],
  1.1600 +    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  1.1601  ])# _LT_CHECK_MAGIC_METHOD
  1.1602  
  1.1603  
  1.1604 @@ -3226,7 +3448,19 @@
  1.1605    NM="$lt_cv_path_NM"
  1.1606  else
  1.1607    # Didn't find any BSD compatible name lister, look for dumpbin.
  1.1608 -  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  1.1609 +  if test -n "$DUMPBIN"; then :
  1.1610 +    # Let the user override the test.
  1.1611 +  else
  1.1612 +    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  1.1613 +    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  1.1614 +    *COFF*)
  1.1615 +      DUMPBIN="$DUMPBIN -symbols"
  1.1616 +      ;;
  1.1617 +    *)
  1.1618 +      DUMPBIN=:
  1.1619 +      ;;
  1.1620 +    esac
  1.1621 +  fi
  1.1622    AC_SUBST([DUMPBIN])
  1.1623    if test "$DUMPBIN" != ":"; then
  1.1624      NM="$DUMPBIN"
  1.1625 @@ -3239,13 +3473,13 @@
  1.1626  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  1.1627    [lt_cv_nm_interface="BSD nm"
  1.1628    echo "int some_variable = 0;" > conftest.$ac_ext
  1.1629 -  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1630 +  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1631    (eval "$ac_compile" 2>conftest.err)
  1.1632    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1633 -  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1634 +  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1635    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  1.1636    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1637 -  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  1.1638 +  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  1.1639    cat conftest.out >&AS_MESSAGE_LOG_FD
  1.1640    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  1.1641      lt_cv_nm_interface="MS dumpbin"
  1.1642 @@ -3260,6 +3494,67 @@
  1.1643  dnl AC_DEFUN([AM_PROG_NM], [])
  1.1644  dnl AC_DEFUN([AC_PROG_NM], [])
  1.1645  
  1.1646 +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1647 +# --------------------------------
  1.1648 +# how to determine the name of the shared library
  1.1649 +# associated with a specific link library.
  1.1650 +#  -- PORTME fill in with the dynamic library characteristics
  1.1651 +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  1.1652 +[m4_require([_LT_DECL_EGREP])
  1.1653 +m4_require([_LT_DECL_OBJDUMP])
  1.1654 +m4_require([_LT_DECL_DLLTOOL])
  1.1655 +AC_CACHE_CHECK([how to associate runtime and link libraries],
  1.1656 +lt_cv_sharedlib_from_linklib_cmd,
  1.1657 +[lt_cv_sharedlib_from_linklib_cmd='unknown'
  1.1658 +
  1.1659 +case $host_os in
  1.1660 +cygwin* | mingw* | pw32* | cegcc*)
  1.1661 +  # two different shell functions defined in ltmain.sh
  1.1662 +  # decide which to use based on capabilities of $DLLTOOL
  1.1663 +  case `$DLLTOOL --help 2>&1` in
  1.1664 +  *--identify-strict*)
  1.1665 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  1.1666 +    ;;
  1.1667 +  *)
  1.1668 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  1.1669 +    ;;
  1.1670 +  esac
  1.1671 +  ;;
  1.1672 +*)
  1.1673 +  # fallback: assume linklib IS sharedlib
  1.1674 +  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  1.1675 +  ;;
  1.1676 +esac
  1.1677 +])
  1.1678 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  1.1679 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  1.1680 +
  1.1681 +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  1.1682 +    [Command to associate shared and link libraries])
  1.1683 +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1684 +
  1.1685 +
  1.1686 +# _LT_PATH_MANIFEST_TOOL
  1.1687 +# ----------------------
  1.1688 +# locate the manifest tool
  1.1689 +m4_defun([_LT_PATH_MANIFEST_TOOL],
  1.1690 +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  1.1691 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  1.1692 +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  1.1693 +  [lt_cv_path_mainfest_tool=no
  1.1694 +  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  1.1695 +  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  1.1696 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1697 +  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  1.1698 +    lt_cv_path_mainfest_tool=yes
  1.1699 +  fi
  1.1700 +  rm -f conftest*])
  1.1701 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  1.1702 +  MANIFEST_TOOL=:
  1.1703 +fi
  1.1704 +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  1.1705 +])# _LT_PATH_MANIFEST_TOOL
  1.1706 +
  1.1707  
  1.1708  # LT_LIB_M
  1.1709  # --------
  1.1710 @@ -3268,7 +3563,7 @@
  1.1711  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1712  LIBM=
  1.1713  case $host in
  1.1714 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  1.1715 +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  1.1716    # These system don't have libm, or don't need it
  1.1717    ;;
  1.1718  *-ncr-sysv4.3*)
  1.1719 @@ -3296,7 +3591,12 @@
  1.1720  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.1721  
  1.1722  if test "$GCC" = yes; then
  1.1723 -  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.1724 +  case $cc_basename in
  1.1725 +  nvcc*)
  1.1726 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  1.1727 +  *)
  1.1728 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  1.1729 +  esac
  1.1730  
  1.1731    _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.1732      lt_cv_prog_compiler_rtti_exceptions,
  1.1733 @@ -3313,6 +3613,7 @@
  1.1734  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  1.1735  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1736  AC_REQUIRE([AC_PROG_CC])dnl
  1.1737 +AC_REQUIRE([AC_PROG_AWK])dnl
  1.1738  AC_REQUIRE([LT_PATH_NM])dnl
  1.1739  AC_REQUIRE([LT_PATH_LD])dnl
  1.1740  m4_require([_LT_DECL_SED])dnl
  1.1741 @@ -3380,8 +3681,8 @@
  1.1742  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.1743  
  1.1744  # Transform an extracted symbol line into symbol name and symbol address
  1.1745 -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.1746 -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.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  
  1.1750  # Handle CRLF in mingw tool chain
  1.1751  opt_cr=
  1.1752 @@ -3405,6 +3706,7 @@
  1.1753      # which start with @ or ?.
  1.1754      lt_cv_sys_global_symbol_pipe="$AWK ['"\
  1.1755  "     {last_section=section; section=\$ 3};"\
  1.1756 +"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  1.1757  "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1.1758  "     \$ 0!~/External *\|/{next};"\
  1.1759  "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1.1760 @@ -3417,6 +3719,7 @@
  1.1761    else
  1.1762      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.1763    fi
  1.1764 +  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  1.1765  
  1.1766    # Check to see that the pipe works correctly.
  1.1767    pipe_works=no
  1.1768 @@ -3438,7 +3741,7 @@
  1.1769    if AC_TRY_EVAL(ac_compile); then
  1.1770      # Now try to grab the symbols.
  1.1771      nlist=conftest.nm
  1.1772 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1.1773 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  1.1774        # Try sorting and uniquifying the output.
  1.1775        if sort "$nlist" | uniq > "$nlist"T; then
  1.1776  	mv -f "$nlist"T "$nlist"
  1.1777 @@ -3450,6 +3753,18 @@
  1.1778        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1.1779  	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1.1780  	  cat <<_LT_EOF > conftest.$ac_ext
  1.1781 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  1.1782 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  1.1783 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  1.1784 +   relocations are performed -- see ld's documentation on pseudo-relocs.  */
  1.1785 +# define LT@&t@_DLSYM_CONST
  1.1786 +#elif defined(__osf__)
  1.1787 +/* This system does not cope well with relocations in const data.  */
  1.1788 +# define LT@&t@_DLSYM_CONST
  1.1789 +#else
  1.1790 +# define LT@&t@_DLSYM_CONST const
  1.1791 +#endif
  1.1792 +
  1.1793  #ifdef __cplusplus
  1.1794  extern "C" {
  1.1795  #endif
  1.1796 @@ -3461,7 +3776,7 @@
  1.1797  	  cat <<_LT_EOF >> conftest.$ac_ext
  1.1798  
  1.1799  /* The mapping between symbol names and symbols.  */
  1.1800 -const struct {
  1.1801 +LT@&t@_DLSYM_CONST struct {
  1.1802    const char *name;
  1.1803    void       *address;
  1.1804  }
  1.1805 @@ -3487,15 +3802,15 @@
  1.1806  _LT_EOF
  1.1807  	  # Now try linking the two files.
  1.1808  	  mv conftest.$ac_objext conftstm.$ac_objext
  1.1809 -	  lt_save_LIBS="$LIBS"
  1.1810 -	  lt_save_CFLAGS="$CFLAGS"
  1.1811 +	  lt_globsym_save_LIBS=$LIBS
  1.1812 +	  lt_globsym_save_CFLAGS=$CFLAGS
  1.1813  	  LIBS="conftstm.$ac_objext"
  1.1814  	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.1815  	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  1.1816  	    pipe_works=yes
  1.1817  	  fi
  1.1818 -	  LIBS="$lt_save_LIBS"
  1.1819 -	  CFLAGS="$lt_save_CFLAGS"
  1.1820 +	  LIBS=$lt_globsym_save_LIBS
  1.1821 +	  CFLAGS=$lt_globsym_save_CFLAGS
  1.1822  	else
  1.1823  	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  1.1824  	fi
  1.1825 @@ -3528,6 +3843,13 @@
  1.1826    AC_MSG_RESULT(ok)
  1.1827  fi
  1.1828  
  1.1829 +# Response file support.
  1.1830 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1.1831 +  nm_file_list_spec='@'
  1.1832 +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  1.1833 +  nm_file_list_spec='@'
  1.1834 +fi
  1.1835 +
  1.1836  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  1.1837      [Take the output of nm and produce a listing of raw symbols and C names])
  1.1838  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  1.1839 @@ -3538,6 +3860,8 @@
  1.1840  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  1.1841      [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  1.1842      [Transform the output of nm in a C name address pair when lib prefix is needed])
  1.1843 +_LT_DECL([], [nm_file_list_spec], [1],
  1.1844 +    [Specify filename containing input files for $NM])
  1.1845  ]) # _LT_CMD_GLOBAL_SYMBOLS
  1.1846  
  1.1847  
  1.1848 @@ -3549,7 +3873,6 @@
  1.1849  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1850  _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1851  
  1.1852 -AC_MSG_CHECKING([for $compiler option to produce PIC])
  1.1853  m4_if([$1], [CXX], [
  1.1854    # C++ specific cases for pic, static, wl, etc.
  1.1855    if test "$GXX" = yes; then
  1.1856 @@ -3600,6 +3923,11 @@
  1.1857        # DJGPP does not support shared libraries at all
  1.1858        _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1859        ;;
  1.1860 +    haiku*)
  1.1861 +      # PIC is the default for Haiku.
  1.1862 +      # The "-static" flag exists, but is broken.
  1.1863 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1864 +      ;;
  1.1865      interix[[3-9]]*)
  1.1866        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.1867        # Instead, we relocate shared libraries at runtime.
  1.1868 @@ -3649,6 +3977,12 @@
  1.1869  	  ;;
  1.1870  	esac
  1.1871  	;;
  1.1872 +      mingw* | cygwin* | os2* | pw32* | cegcc*)
  1.1873 +	# This hack is so that the source file can tell whether it is being
  1.1874 +	# built for inclusion in a dll (and should export symbols for example).
  1.1875 +	m4_if([$1], [GCJ], [],
  1.1876 +	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.1877 +	;;
  1.1878        dgux*)
  1.1879  	case $cc_basename in
  1.1880  	  ec++*)
  1.1881 @@ -3705,7 +4039,7 @@
  1.1882  	    ;;
  1.1883  	esac
  1.1884  	;;
  1.1885 -      linux* | k*bsd*-gnu)
  1.1886 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1887  	case $cc_basename in
  1.1888  	  KCC*)
  1.1889  	    # KAI C++ Compiler
  1.1890 @@ -3738,8 +4072,8 @@
  1.1891  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1892  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1893  	    ;;
  1.1894 -	  xlc* | xlC*)
  1.1895 -	    # IBM XL 8.0 on PPC
  1.1896 +	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  1.1897 +	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  1.1898  	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1899  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1900  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1901 @@ -3801,7 +4135,7 @@
  1.1902  	;;
  1.1903        solaris*)
  1.1904  	case $cc_basename in
  1.1905 -	  CC*)
  1.1906 +	  CC* | sunCC*)
  1.1907  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.1908  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1909  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1910 @@ -3905,6 +4239,12 @@
  1.1911        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.1912        ;;
  1.1913  
  1.1914 +    haiku*)
  1.1915 +      # PIC is the default for Haiku.
  1.1916 +      # The "-static" flag exists, but is broken.
  1.1917 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1918 +      ;;
  1.1919 +
  1.1920      hpux*)
  1.1921        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.1922        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.1923 @@ -3947,6 +4287,15 @@
  1.1924        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.1925        ;;
  1.1926      esac
  1.1927 +
  1.1928 +    case $cc_basename in
  1.1929 +    nvcc*) # Cuda Compiler Driver 2.2
  1.1930 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  1.1931 +      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.1932 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  1.1933 +      fi
  1.1934 +      ;;
  1.1935 +    esac
  1.1936    else
  1.1937      # PORTME Check for flag to pass linker flags through the system compiler.
  1.1938      case $host_os in
  1.1939 @@ -3989,7 +4338,7 @@
  1.1940        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1941        ;;
  1.1942  
  1.1943 -    linux* | k*bsd*-gnu)
  1.1944 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1945        case $cc_basename in
  1.1946        # old Intel for x86_64 which still supported -KPIC.
  1.1947        ecc*)
  1.1948 @@ -4010,7 +4359,13 @@
  1.1949  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  1.1950  	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  1.1951  	;;
  1.1952 -      pgcc* | pgf77* | pgf90* | pgf95*)
  1.1953 +      nagfor*)
  1.1954 +	# NAG Fortran compiler
  1.1955 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  1.1956 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.1957 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1958 +	;;
  1.1959 +      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  1.1960          # Portland Group compilers (*not* the Pentium gcc compiler,
  1.1961  	# which looks to be a dead project)
  1.1962  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1963 @@ -4022,25 +4377,40 @@
  1.1964          # All Alpha code is PIC.
  1.1965          _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1966          ;;
  1.1967 -      xl*)
  1.1968 -	# IBM XL C 8.0/Fortran 10.1 on PPC
  1.1969 +      xl* | bgxl* | bgf* | mpixl*)
  1.1970 +	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  1.1971  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1972  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1973  	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1974  	;;
  1.1975        *)
  1.1976  	case `$CC -V 2>&1 | sed 5q` in
  1.1977 +	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  1.1978 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1979 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1980 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1981 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.1982 +	  ;;
  1.1983 +	*Sun\ F* | *Sun*Fortran*)
  1.1984 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1985 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1986 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.1987 +	  ;;
  1.1988  	*Sun\ C*)
  1.1989  	  # Sun C 5.9
  1.1990  	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1991  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1992  	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1993  	  ;;
  1.1994 -	*Sun\ F*)
  1.1995 -	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1996 -	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1997 +        *Intel*\ [[CF]]*Compiler*)
  1.1998 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1999 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2000 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2001 +	  ;;
  1.2002 +	*Portland\ Group*)
  1.2003 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2004 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2005  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2006 -	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.2007  	  ;;
  1.2008  	esac
  1.2009  	;;
  1.2010 @@ -4072,7 +4442,7 @@
  1.2011        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2012        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2013        case $cc_basename in
  1.2014 -      f77* | f90* | f95*)
  1.2015 +      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  1.2016  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.2017        *)
  1.2018  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.2019 @@ -4129,9 +4499,11 @@
  1.2020      _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.2021      ;;
  1.2022  esac
  1.2023 -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2024 -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2025 -	[How to pass a linker flag through the compiler])
  1.2026 +
  1.2027 +AC_CACHE_CHECK([for $compiler option to produce PIC],
  1.2028 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  1.2029 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2030 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  1.2031  
  1.2032  #
  1.2033  # Check to make sure the PIC flag actually works.
  1.2034 @@ -4150,6 +4522,8 @@
  1.2035  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  1.2036  	[Additional compiler flags for building library objects])
  1.2037  
  1.2038 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2039 +	[How to pass a linker flag through the compiler])
  1.2040  #
  1.2041  # Check to make sure the static flag actually works.
  1.2042  #
  1.2043 @@ -4170,6 +4544,7 @@
  1.2044  m4_defun([_LT_LINKER_SHLIBS],
  1.2045  [AC_REQUIRE([LT_PATH_LD])dnl
  1.2046  AC_REQUIRE([LT_PATH_NM])dnl
  1.2047 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2048  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2049  m4_require([_LT_DECL_EGREP])dnl
  1.2050  m4_require([_LT_DECL_SED])dnl
  1.2051 @@ -4178,27 +4553,37 @@
  1.2052  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.2053  m4_if([$1], [CXX], [
  1.2054    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2055 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2056    case $host_os in
  1.2057    aix[[4-9]]*)
  1.2058      # If we're using GNU nm, then we don't want the "-C" option.
  1.2059      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2060 +    # Also, AIX nm treats weak defined symbols like other global defined
  1.2061 +    # symbols, whereas GNU nm marks them as "W".
  1.2062      if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2063 -      _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.2064 +      _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.2065      else
  1.2066        _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.2067      fi
  1.2068      ;;
  1.2069    pw32*)
  1.2070      _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.2071 -  ;;
  1.2072 +    ;;
  1.2073    cygwin* | mingw* | cegcc*)
  1.2074 -    _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.2075 -  ;;
  1.2076 +    case $cc_basename in
  1.2077 +    cl*)
  1.2078 +      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2079 +      ;;
  1.2080 +    *)
  1.2081 +      _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.2082 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2083 +      ;;
  1.2084 +    esac
  1.2085 +    ;;
  1.2086    *)
  1.2087      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2088 -  ;;
  1.2089 +    ;;
  1.2090    esac
  1.2091 -  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2092  ], [
  1.2093    runpath_var=
  1.2094    _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2095 @@ -4213,7 +4598,6 @@
  1.2096    _LT_TAGVAR(hardcode_direct, $1)=no
  1.2097    _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2098    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2099 -  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2100    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2101    _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2102    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2103 @@ -4261,7 +4645,33 @@
  1.2104    esac
  1.2105  
  1.2106    _LT_TAGVAR(ld_shlibs, $1)=yes
  1.2107 +
  1.2108 +  # On some targets, GNU ld is compatible enough with the native linker
  1.2109 +  # that we're better off using the native interface for both.
  1.2110 +  lt_use_gnu_ld_interface=no
  1.2111    if test "$with_gnu_ld" = yes; then
  1.2112 +    case $host_os in
  1.2113 +      aix*)
  1.2114 +	# The AIX port of GNU ld has always aspired to compatibility
  1.2115 +	# with the native linker.  However, as the warning in the GNU ld
  1.2116 +	# block says, versions before 2.19.5* couldn't really create working
  1.2117 +	# shared libraries, regardless of the interface used.
  1.2118 +	case `$LD -v 2>&1` in
  1.2119 +	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  1.2120 +	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  1.2121 +	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  1.2122 +	  *)
  1.2123 +	    lt_use_gnu_ld_interface=yes
  1.2124 +	    ;;
  1.2125 +	esac
  1.2126 +	;;
  1.2127 +      *)
  1.2128 +	lt_use_gnu_ld_interface=yes
  1.2129 +	;;
  1.2130 +    esac
  1.2131 +  fi
  1.2132 +
  1.2133 +  if test "$lt_use_gnu_ld_interface" = yes; then
  1.2134      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.2135      wlarc='${wl}'
  1.2136  
  1.2137 @@ -4279,6 +4689,7 @@
  1.2138      fi
  1.2139      supports_anon_versioning=no
  1.2140      case `$LD -v 2>&1` in
  1.2141 +      *GNU\ gold*) supports_anon_versioning=yes ;;
  1.2142        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.2143        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.2144        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.2145 @@ -4294,11 +4705,12 @@
  1.2146  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2147  	cat <<_LT_EOF 1>&2
  1.2148  
  1.2149 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.2150 +*** Warning: the GNU linker, at least up to release 2.19, is reported
  1.2151  *** to be unable to reliably create shared libraries on AIX.
  1.2152  *** Therefore, libtool is disabling shared libraries support.  If you
  1.2153 -*** really care for shared libraries, you may want to modify your PATH
  1.2154 -*** so that a non-GNU linker is found, and then restart.
  1.2155 +*** really care for shared libraries, you may want to install binutils
  1.2156 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  1.2157 +*** You will then need to restart the configuration process.
  1.2158  
  1.2159  _LT_EOF
  1.2160        fi
  1.2161 @@ -4334,10 +4746,12 @@
  1.2162        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2163        # as there is no search path for DLLs.
  1.2164        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2165 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2166        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2167        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2168        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2169 -      _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.2170 +      _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.2171 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2172  
  1.2173        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2174          _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.2175 @@ -4355,6 +4769,11 @@
  1.2176        fi
  1.2177        ;;
  1.2178  
  1.2179 +    haiku*)
  1.2180 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2181 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2182 +      ;;
  1.2183 +
  1.2184      interix[[3-9]]*)
  1.2185        _LT_TAGVAR(hardcode_direct, $1)=no
  1.2186        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2187 @@ -4370,7 +4789,7 @@
  1.2188        _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.2189        ;;
  1.2190  
  1.2191 -    gnu* | linux* | tpf* | k*bsd*-gnu)
  1.2192 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  1.2193        tmp_diet=no
  1.2194        if test "$host_os" = linux-dietlibc; then
  1.2195  	case $cc_basename in
  1.2196 @@ -4380,15 +4799,16 @@
  1.2197        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  1.2198  	 && test "$tmp_diet" = no
  1.2199        then
  1.2200 -	tmp_addflag=
  1.2201 +	tmp_addflag=' $pic_flag'
  1.2202  	tmp_sharedflag='-shared'
  1.2203  	case $cc_basename,$host_cpu in
  1.2204          pgcc*)				# Portland Group C compiler
  1.2205 -	  _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.2206 +	  _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.2207  	  tmp_addflag=' $pic_flag'
  1.2208  	  ;;
  1.2209 -	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.2210 -	  _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.2211 +	pgf77* | pgf90* | pgf95* | pgfortran*)
  1.2212 +					# Portland Group f77 and f90 compilers
  1.2213 +	  _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.2214  	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.2215  	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  1.2216  	  tmp_addflag=' -i_dynamic' ;;
  1.2217 @@ -4399,13 +4819,17 @@
  1.2218  	lf95*)				# Lahey Fortran 8.1
  1.2219  	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2220  	  tmp_sharedflag='--shared' ;;
  1.2221 -	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  1.2222 +	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  1.2223  	  tmp_sharedflag='-qmkshrobj'
  1.2224  	  tmp_addflag= ;;
  1.2225 +	nvcc*)	# Cuda Compiler Driver 2.2
  1.2226 +	  _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.2227 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2228 +	  ;;
  1.2229  	esac
  1.2230  	case `$CC -V 2>&1 | sed 5q` in
  1.2231  	*Sun\ C*)			# Sun C 5.9
  1.2232 -	  _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.2233 +	  _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.2234  	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2235  	  tmp_sharedflag='-G' ;;
  1.2236  	*Sun\ F*)			# Sun Fortran 8.3
  1.2237 @@ -4421,17 +4845,16 @@
  1.2238          fi
  1.2239  
  1.2240  	case $cc_basename in
  1.2241 -	xlf*)
  1.2242 +	xlf* | bgf* | bgxlf* | mpixlf*)
  1.2243  	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1.2244  	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  1.2245 -	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2246 -	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.2247 -	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  1.2248 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2249 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  1.2250  	  if test "x$supports_anon_versioning" = xyes; then
  1.2251  	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.2252  	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.2253  	      echo "local: *; };" >> $output_objdir/$libname.ver~
  1.2254 -	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2255 +	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2256  	  fi
  1.2257  	  ;;
  1.2258  	esac
  1.2259 @@ -4445,8 +4868,8 @@
  1.2260  	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.2261  	wlarc=
  1.2262        else
  1.2263 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2264 -	_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.2265 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2266 +	_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.2267        fi
  1.2268        ;;
  1.2269  
  1.2270 @@ -4464,8 +4887,8 @@
  1.2271  
  1.2272  _LT_EOF
  1.2273        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2274 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2275 -	_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.2276 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2277 +	_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.2278        else
  1.2279  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2280        fi
  1.2281 @@ -4511,8 +4934,8 @@
  1.2282  
  1.2283      *)
  1.2284        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2285 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2286 -	_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.2287 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2288 +	_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.2289        else
  1.2290  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2291        fi
  1.2292 @@ -4552,8 +4975,10 @@
  1.2293        else
  1.2294  	# If we're using GNU nm, then we don't want the "-C" option.
  1.2295  	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2296 +	# Also, AIX nm treats weak defined symbols like other global
  1.2297 +	# defined symbols, whereas GNU nm marks them as "W".
  1.2298  	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2299 -	  _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.2300 +	  _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.2301  	else
  1.2302  	  _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.2303  	fi
  1.2304 @@ -4640,9 +5065,9 @@
  1.2305  	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2306          # Determine the default libpath from the value encoded in an
  1.2307          # empty executable.
  1.2308 -        _LT_SYS_MODULE_PATH_AIX
  1.2309 +        _LT_SYS_MODULE_PATH_AIX([$1])
  1.2310          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2311 -        _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.2312 +        _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.2313        else
  1.2314  	if test "$host_cpu" = ia64; then
  1.2315  	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2316 @@ -4651,14 +5076,19 @@
  1.2317  	else
  1.2318  	 # Determine the default libpath from the value encoded in an
  1.2319  	 # empty executable.
  1.2320 -	 _LT_SYS_MODULE_PATH_AIX
  1.2321 +	 _LT_SYS_MODULE_PATH_AIX([$1])
  1.2322  	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2323  	  # Warning - without using the other run time loading flags,
  1.2324  	  # -berok will link without error, but may produce a broken library.
  1.2325  	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2326  	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2327 -	  # Exported symbols can be pulled into shared objects from archives
  1.2328 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2329 +	  if test "$with_gnu_ld" = yes; then
  1.2330 +	    # We only use this code for GNU lds that support --whole-archive.
  1.2331 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2332 +	  else
  1.2333 +	    # Exported symbols can be pulled into shared objects from archives
  1.2334 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2335 +	  fi
  1.2336  	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2337  	  # This is similar to how AIX traditionally builds its shared libraries.
  1.2338  	  _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.2339 @@ -4690,20 +5120,64 @@
  1.2340        # Microsoft Visual C++.
  1.2341        # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2342        # no search path for DLLs.
  1.2343 -      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2344 -      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2345 -      # Tell ltmain to make .lib files, not .a files.
  1.2346 -      libext=lib
  1.2347 -      # Tell ltmain to make .dll files, not .so files.
  1.2348 -      shrext_cmds=".dll"
  1.2349 -      # FIXME: Setting linknames here is a bad hack.
  1.2350 -      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2351 -      # The linker will automatically build a .lib file if we build a DLL.
  1.2352 -      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2353 -      # FIXME: Should let the user specify the lib program.
  1.2354 -      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2355 -      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.2356 -      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2357 +      case $cc_basename in
  1.2358 +      cl*)
  1.2359 +	# Native MSVC
  1.2360 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2361 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2362 +	_LT_TAGVAR(always_export_symbols, $1)=yes
  1.2363 +	_LT_TAGVAR(file_list_spec, $1)='@'
  1.2364 +	# Tell ltmain to make .lib files, not .a files.
  1.2365 +	libext=lib
  1.2366 +	# Tell ltmain to make .dll files, not .so files.
  1.2367 +	shrext_cmds=".dll"
  1.2368 +	# FIXME: Setting linknames here is a bad hack.
  1.2369 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2370 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2371 +	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2372 +	  else
  1.2373 +	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2374 +	  fi~
  1.2375 +	  $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.2376 +	  linknames='
  1.2377 +	# The linker will not automatically build a static lib if we build a DLL.
  1.2378 +	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2379 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2380 +	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2381 +	_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.2382 +	# Don't use ranlib
  1.2383 +	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2384 +	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2385 +	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2386 +	  case $lt_outputfile in
  1.2387 +	    *.exe|*.EXE) ;;
  1.2388 +	    *)
  1.2389 +	      lt_outputfile="$lt_outputfile.exe"
  1.2390 +	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2391 +	      ;;
  1.2392 +	  esac~
  1.2393 +	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2394 +	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2395 +	    $RM "$lt_outputfile.manifest";
  1.2396 +	  fi'
  1.2397 +	;;
  1.2398 +      *)
  1.2399 +	# Assume MSVC wrapper
  1.2400 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2401 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2402 +	# Tell ltmain to make .lib files, not .a files.
  1.2403 +	libext=lib
  1.2404 +	# Tell ltmain to make .dll files, not .so files.
  1.2405 +	shrext_cmds=".dll"
  1.2406 +	# FIXME: Setting linknames here is a bad hack.
  1.2407 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2408 +	# The linker will automatically build a .lib file if we build a DLL.
  1.2409 +	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2410 +	# FIXME: Should let the user specify the lib program.
  1.2411 +	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2412 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2413 +	;;
  1.2414 +      esac
  1.2415        ;;
  1.2416  
  1.2417      darwin* | rhapsody*)
  1.2418 @@ -4716,10 +5190,6 @@
  1.2419        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2420        ;;
  1.2421  
  1.2422 -    freebsd1*)
  1.2423 -      _LT_TAGVAR(ld_shlibs, $1)=no
  1.2424 -      ;;
  1.2425 -
  1.2426      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.2427      # support.  Future versions do this automatically, but an explicit c++rt0.o
  1.2428      # does not break anything, and helps significantly (at the cost of a little
  1.2429 @@ -4732,7 +5202,7 @@
  1.2430        ;;
  1.2431  
  1.2432      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.2433 -    freebsd2*)
  1.2434 +    freebsd2.*)
  1.2435        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.2436        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2437        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2438 @@ -4741,7 +5211,7 @@
  1.2439  
  1.2440      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.2441      freebsd* | dragonfly*)
  1.2442 -      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.2443 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.2444        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.2445        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2446        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2447 @@ -4749,7 +5219,7 @@
  1.2448  
  1.2449      hpux9*)
  1.2450        if test "$GCC" = yes; then
  1.2451 -	_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.2452 +	_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.2453        else
  1.2454  	_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.2455        fi
  1.2456 @@ -4764,14 +5234,13 @@
  1.2457        ;;
  1.2458  
  1.2459      hpux10*)
  1.2460 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2461 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2462 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2463 +	_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.2464        else
  1.2465  	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.2466        fi
  1.2467        if test "$with_gnu_ld" = no; then
  1.2468  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2469 -	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.2470  	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2471  	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.2472  	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.2473 @@ -4783,16 +5252,16 @@
  1.2474        ;;
  1.2475  
  1.2476      hpux11*)
  1.2477 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2478 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2479  	case $host_cpu in
  1.2480  	hppa*64*)
  1.2481  	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2482  	  ;;
  1.2483  	ia64*)
  1.2484 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2485 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2486  	  ;;
  1.2487  	*)
  1.2488 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2489 +	  _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.2490  	  ;;
  1.2491  	esac
  1.2492        else
  1.2493 @@ -4804,7 +5273,14 @@
  1.2494  	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2495  	  ;;
  1.2496  	*)
  1.2497 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2498 +	m4_if($1, [], [
  1.2499 +	  # Older versions of the 11.00 compiler do not understand -b yet
  1.2500 +	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  1.2501 +	  _LT_LINKER_OPTION([if $CC understands -b],
  1.2502 +	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  1.2503 +	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  1.2504 +	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  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  	  ;;
  1.2507  	esac
  1.2508        fi
  1.2509 @@ -4832,19 +5308,34 @@
  1.2510  
  1.2511      irix5* | irix6* | nonstopux*)
  1.2512        if test "$GCC" = yes; then
  1.2513 -	_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.2514 +	_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.2515  	# Try to use the -exported_symbol ld option, if it does not
  1.2516  	# work, assume that -exports_file does not work either and
  1.2517  	# implicitly export all symbols.
  1.2518 -        save_LDFLAGS="$LDFLAGS"
  1.2519 -        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2520 -        AC_LINK_IFELSE(int foo(void) {},
  1.2521 -          _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.2522 -        )
  1.2523 -        LDFLAGS="$save_LDFLAGS"
  1.2524 +	# This should be the same for all languages, so no per-tag cache variable.
  1.2525 +	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  1.2526 +	  [lt_cv_irix_exported_symbol],
  1.2527 +	  [save_LDFLAGS="$LDFLAGS"
  1.2528 +	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2529 +	   AC_LINK_IFELSE(
  1.2530 +	     [AC_LANG_SOURCE(
  1.2531 +	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  1.2532 +			      [C++], [[int foo (void) { return 0; }]],
  1.2533 +			      [Fortran 77], [[
  1.2534 +      subroutine foo
  1.2535 +      end]],
  1.2536 +			      [Fortran], [[
  1.2537 +      subroutine foo
  1.2538 +      end]])])],
  1.2539 +	      [lt_cv_irix_exported_symbol=yes],
  1.2540 +	      [lt_cv_irix_exported_symbol=no])
  1.2541 +           LDFLAGS="$save_LDFLAGS"])
  1.2542 +	if test "$lt_cv_irix_exported_symbol" = yes; then
  1.2543 +          _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.2544 +	fi
  1.2545        else
  1.2546 -	_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.2547 -	_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.2548 +	_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.2549 +	_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.2550        fi
  1.2551        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2552        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2553 @@ -4906,17 +5397,17 @@
  1.2554        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2555        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2556        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2557 -      _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.2558 +      _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.2559        _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  1.2560        ;;
  1.2561  
  1.2562      osf3*)
  1.2563        if test "$GCC" = yes; then
  1.2564  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2565 -	_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.2566 +	_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.2567        else
  1.2568  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2569 -	_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.2570 +	_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.2571        fi
  1.2572        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2573        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2574 @@ -4926,13 +5417,13 @@
  1.2575      osf4* | osf5*)	# as osf3* with the addition of -msym flag
  1.2576        if test "$GCC" = yes; then
  1.2577  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2578 -	_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.2579 +	_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.2580  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2581        else
  1.2582  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2583 -	_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.2584 +	_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.2585  	_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.2586 -	$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.2587 +	$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.2588  
  1.2589  	# Both c and cxx compiler support -rpath directly
  1.2590  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.2591 @@ -4945,9 +5436,9 @@
  1.2592        _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  1.2593        if test "$GCC" = yes; then
  1.2594  	wlarc='${wl}'
  1.2595 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2596 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2597  	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.2598 -	  $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.2599 +	  $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.2600        else
  1.2601  	case `$CC -V 2>&1` in
  1.2602  	*"Compilers 5.0"*)
  1.2603 @@ -5123,36 +5614,38 @@
  1.2604        # Test whether the compiler implicitly links with -lc since on some
  1.2605        # systems, -lgcc has to come before -lc. If gcc already passes -lc
  1.2606        # to ld, don't add -lc before -lgcc.
  1.2607 -      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.2608 -      $RM conftest*
  1.2609 -      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2610 -
  1.2611 -      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2612 -        soname=conftest
  1.2613 -        lib=conftest
  1.2614 -        libobjs=conftest.$ac_objext
  1.2615 -        deplibs=
  1.2616 -        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2617 -	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2618 -        compiler_flags=-v
  1.2619 -        linker_flags=-v
  1.2620 -        verstring=
  1.2621 -        output_objdir=.
  1.2622 -        libname=conftest
  1.2623 -        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2624 -        _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2625 -        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2626 -        then
  1.2627 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2628 -        else
  1.2629 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2630 -        fi
  1.2631 -        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2632 -      else
  1.2633 -        cat conftest.err 1>&5
  1.2634 -      fi
  1.2635 -      $RM conftest*
  1.2636 -      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  1.2637 +      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  1.2638 +	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  1.2639 +	[$RM conftest*
  1.2640 +	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2641 +
  1.2642 +	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2643 +	  soname=conftest
  1.2644 +	  lib=conftest
  1.2645 +	  libobjs=conftest.$ac_objext
  1.2646 +	  deplibs=
  1.2647 +	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2648 +	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2649 +	  compiler_flags=-v
  1.2650 +	  linker_flags=-v
  1.2651 +	  verstring=
  1.2652 +	  output_objdir=.
  1.2653 +	  libname=conftest
  1.2654 +	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2655 +	  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2656 +	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2657 +	  then
  1.2658 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2659 +	  else
  1.2660 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2661 +	  fi
  1.2662 +	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2663 +	else
  1.2664 +	  cat conftest.err 1>&5
  1.2665 +	fi
  1.2666 +	$RM conftest*
  1.2667 +	])
  1.2668 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  1.2669        ;;
  1.2670      esac
  1.2671    fi
  1.2672 @@ -5189,9 +5682,6 @@
  1.2673  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  1.2674      [Flag to hardcode $libdir into a binary during linking.
  1.2675      This must work even if $libdir does not exist])
  1.2676 -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  1.2677 -    [[If ld is used when linking, flag to hardcode $libdir into a binary
  1.2678 -    during linking.  This must work even if $libdir does not exist]])
  1.2679  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  1.2680      [Whether we need a single "-rpath" flag with a separated argument])
  1.2681  _LT_TAGDECL([], [hardcode_direct], [0],
  1.2682 @@ -5217,8 +5707,6 @@
  1.2683      to runtime path list])
  1.2684  _LT_TAGDECL([], [link_all_deplibs], [0],
  1.2685      [Whether libtool must link a program against all its dependency libraries])
  1.2686 -_LT_TAGDECL([], [fix_srcfile_path], [1],
  1.2687 -    [Fix the shell variable $srcfile for the compiler])
  1.2688  _LT_TAGDECL([], [always_export_symbols], [0],
  1.2689      [Set to "yes" if exported symbols are required])
  1.2690  _LT_TAGDECL([], [export_symbols_cmds], [2],
  1.2691 @@ -5229,6 +5717,8 @@
  1.2692      [Symbols that must always be exported])
  1.2693  _LT_TAGDECL([], [prelink_cmds], [2],
  1.2694      [Commands necessary for linking programs (against libraries) with templates])
  1.2695 +_LT_TAGDECL([], [postlink_cmds], [2],
  1.2696 +    [Commands necessary for finishing linking programs])
  1.2697  _LT_TAGDECL([], [file_list_spec], [1],
  1.2698      [Specify filename containing input files])
  1.2699  dnl FIXME: Not yet implemented
  1.2700 @@ -5322,14 +5812,15 @@
  1.2701  ])# _LT_LANG_C_CONFIG
  1.2702  
  1.2703  
  1.2704 -# _LT_PROG_CXX
  1.2705 -# ------------
  1.2706 -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  1.2707 -# compiler, we have our own version here.
  1.2708 -m4_defun([_LT_PROG_CXX],
  1.2709 -[
  1.2710 -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  1.2711 -AC_PROG_CXX
  1.2712 +# _LT_LANG_CXX_CONFIG([TAG])
  1.2713 +# --------------------------
  1.2714 +# Ensure that the configuration variables for a C++ compiler are suitably
  1.2715 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2716 +# the compiler configuration to `libtool'.
  1.2717 +m4_defun([_LT_LANG_CXX_CONFIG],
  1.2718 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2719 +m4_require([_LT_DECL_EGREP])dnl
  1.2720 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2721  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.2722      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.2723      (test "X$CXX" != "Xg++"))) ; then
  1.2724 @@ -5337,22 +5828,6 @@
  1.2725  else
  1.2726    _lt_caught_CXX_error=yes
  1.2727  fi
  1.2728 -popdef([AC_MSG_ERROR])
  1.2729 -])# _LT_PROG_CXX
  1.2730 -
  1.2731 -dnl aclocal-1.4 backwards compatibility:
  1.2732 -dnl AC_DEFUN([_LT_PROG_CXX], [])
  1.2733 -
  1.2734 -
  1.2735 -# _LT_LANG_CXX_CONFIG([TAG])
  1.2736 -# --------------------------
  1.2737 -# Ensure that the configuration variables for a C++ compiler are suitably
  1.2738 -# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2739 -# the compiler configuration to `libtool'.
  1.2740 -m4_defun([_LT_LANG_CXX_CONFIG],
  1.2741 -[AC_REQUIRE([_LT_PROG_CXX])dnl
  1.2742 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2743 -m4_require([_LT_DECL_EGREP])dnl
  1.2744  
  1.2745  AC_LANG_PUSH(C++)
  1.2746  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2747 @@ -5364,7 +5839,6 @@
  1.2748  _LT_TAGVAR(hardcode_direct, $1)=no
  1.2749  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2750  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2751 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2752  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2753  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2754  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2755 @@ -5374,6 +5848,8 @@
  1.2756  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.2757  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.2758  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.2759 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.2760 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.2761  _LT_TAGVAR(no_undefined_flag, $1)=
  1.2762  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2763  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.2764 @@ -5405,6 +5881,7 @@
  1.2765  
  1.2766    # Allow CC to be a program name with arguments.
  1.2767    lt_save_CC=$CC
  1.2768 +  lt_save_CFLAGS=$CFLAGS
  1.2769    lt_save_LD=$LD
  1.2770    lt_save_GCC=$GCC
  1.2771    GCC=$GXX
  1.2772 @@ -5422,6 +5899,7 @@
  1.2773    fi
  1.2774    test -z "${LDCXX+set}" || LD=$LDCXX
  1.2775    CC=${CXX-"c++"}
  1.2776 +  CFLAGS=$CXXFLAGS
  1.2777    compiler=$CC
  1.2778    _LT_TAGVAR(compiler, $1)=$CC
  1.2779    _LT_CC_BASENAME([$compiler])
  1.2780 @@ -5443,8 +5921,8 @@
  1.2781        # Check if GNU C++ uses GNU ld as the underlying linker, since the
  1.2782        # archiving commands below assume that GNU ld is being used.
  1.2783        if test "$with_gnu_ld" = yes; then
  1.2784 -        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2785 -        _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.2786 +        _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.2787 +        _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.2788  
  1.2789          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2790          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.2791 @@ -5476,7 +5954,7 @@
  1.2792        # Commands to make compiler produce verbose output that lists
  1.2793        # what "hidden" libraries, object files and flags are used when
  1.2794        # linking a shared library.
  1.2795 -      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.2796 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.2797  
  1.2798      else
  1.2799        GXX=no
  1.2800 @@ -5585,10 +6063,10 @@
  1.2801            _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2802            # Determine the default libpath from the value encoded in an empty
  1.2803            # executable.
  1.2804 -          _LT_SYS_MODULE_PATH_AIX
  1.2805 +          _LT_SYS_MODULE_PATH_AIX([$1])
  1.2806            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2807  
  1.2808 -          _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.2809 +          _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.2810          else
  1.2811            if test "$host_cpu" = ia64; then
  1.2812  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2813 @@ -5597,14 +6075,19 @@
  1.2814            else
  1.2815  	    # Determine the default libpath from the value encoded in an
  1.2816  	    # empty executable.
  1.2817 -	    _LT_SYS_MODULE_PATH_AIX
  1.2818 +	    _LT_SYS_MODULE_PATH_AIX([$1])
  1.2819  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2820  	    # Warning - without using the other run time loading flags,
  1.2821  	    # -berok will link without error, but may produce a broken library.
  1.2822  	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2823  	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2824 -	    # Exported symbols can be pulled into shared objects from archives
  1.2825 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2826 +	    if test "$with_gnu_ld" = yes; then
  1.2827 +	      # We only use this code for GNU lds that support --whole-archive.
  1.2828 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2829 +	    else
  1.2830 +	      # Exported symbols can be pulled into shared objects from archives
  1.2831 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2832 +	    fi
  1.2833  	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2834  	    # This is similar to how AIX traditionally builds its shared
  1.2835  	    # libraries.
  1.2836 @@ -5634,28 +6117,75 @@
  1.2837          ;;
  1.2838  
  1.2839        cygwin* | mingw* | pw32* | cegcc*)
  1.2840 -        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2841 -        # as there is no search path for DLLs.
  1.2842 -        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2843 -        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2844 -        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2845 -        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2846 -
  1.2847 -        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2848 -          _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.2849 -          # If the export-symbols file already is a .def file (1st line
  1.2850 -          # is EXPORTS), use it as is; otherwise, prepend...
  1.2851 -          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2852 -	    cp $export_symbols $output_objdir/$soname.def;
  1.2853 -          else
  1.2854 -	    echo EXPORTS > $output_objdir/$soname.def;
  1.2855 -	    cat $export_symbols >> $output_objdir/$soname.def;
  1.2856 -          fi~
  1.2857 -          $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.2858 -        else
  1.2859 -          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2860 -        fi
  1.2861 -        ;;
  1.2862 +	case $GXX,$cc_basename in
  1.2863 +	,cl* | no,cl*)
  1.2864 +	  # Native MSVC
  1.2865 +	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2866 +	  # no search path for DLLs.
  1.2867 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2868 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2869 +	  _LT_TAGVAR(always_export_symbols, $1)=yes
  1.2870 +	  _LT_TAGVAR(file_list_spec, $1)='@'
  1.2871 +	  # Tell ltmain to make .lib files, not .a files.
  1.2872 +	  libext=lib
  1.2873 +	  # Tell ltmain to make .dll files, not .so files.
  1.2874 +	  shrext_cmds=".dll"
  1.2875 +	  # FIXME: Setting linknames here is a bad hack.
  1.2876 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2877 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2878 +	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2879 +	    else
  1.2880 +	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2881 +	    fi~
  1.2882 +	    $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.2883 +	    linknames='
  1.2884 +	  # The linker will not automatically build a static lib if we build a DLL.
  1.2885 +	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2886 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2887 +	  # Don't use ranlib
  1.2888 +	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2889 +	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2890 +	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2891 +	    case $lt_outputfile in
  1.2892 +	      *.exe|*.EXE) ;;
  1.2893 +	      *)
  1.2894 +		lt_outputfile="$lt_outputfile.exe"
  1.2895 +		lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2896 +		;;
  1.2897 +	    esac~
  1.2898 +	    func_to_tool_file "$lt_outputfile"~
  1.2899 +	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2900 +	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2901 +	      $RM "$lt_outputfile.manifest";
  1.2902 +	    fi'
  1.2903 +	  ;;
  1.2904 +	*)
  1.2905 +	  # g++
  1.2906 +	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2907 +	  # as there is no search path for DLLs.
  1.2908 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2909 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2910 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2911 +	  _LT_TAGVAR(always_export_symbols, $1)=no
  1.2912 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2913 +
  1.2914 +	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2915 +	    _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.2916 +	    # If the export-symbols file already is a .def file (1st line
  1.2917 +	    # is EXPORTS), use it as is; otherwise, prepend...
  1.2918 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2919 +	      cp $export_symbols $output_objdir/$soname.def;
  1.2920 +	    else
  1.2921 +	      echo EXPORTS > $output_objdir/$soname.def;
  1.2922 +	      cat $export_symbols >> $output_objdir/$soname.def;
  1.2923 +	    fi~
  1.2924 +	    $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.2925 +	  else
  1.2926 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.2927 +	  fi
  1.2928 +	  ;;
  1.2929 +	esac
  1.2930 +	;;
  1.2931        darwin* | rhapsody*)
  1.2932          _LT_DARWIN_LINKER_FEATURES($1)
  1.2933  	;;
  1.2934 @@ -5678,7 +6208,7 @@
  1.2935          esac
  1.2936          ;;
  1.2937  
  1.2938 -      freebsd[[12]]*)
  1.2939 +      freebsd2.*)
  1.2940          # C++ shared libraries reported to be fairly broken before
  1.2941  	# switch to ELF
  1.2942          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2943 @@ -5697,6 +6227,11 @@
  1.2944        gnu*)
  1.2945          ;;
  1.2946  
  1.2947 +      haiku*)
  1.2948 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2949 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2950 +        ;;
  1.2951 +
  1.2952        hpux9*)
  1.2953          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2954          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2955 @@ -5721,11 +6256,11 @@
  1.2956              # explicitly linking system object files so we need to strip them
  1.2957              # from the output so that they don't get included in the library
  1.2958              # dependencies.
  1.2959 -            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.2960 +            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.2961              ;;
  1.2962            *)
  1.2963              if test "$GXX" = yes; then
  1.2964 -              _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.2965 +              _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.2966              else
  1.2967                # FIXME: insert proper C++ library support
  1.2968                _LT_TAGVAR(ld_shlibs, $1)=no
  1.2969 @@ -5786,7 +6321,7 @@
  1.2970  	    # explicitly linking system object files so we need to strip them
  1.2971  	    # from the output so that they don't get included in the library
  1.2972  	    # dependencies.
  1.2973 -	    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.2974 +	    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.2975  	    ;;
  1.2976            *)
  1.2977  	    if test "$GXX" = yes; then
  1.2978 @@ -5796,10 +6331,10 @@
  1.2979  	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2980  	            ;;
  1.2981  	          ia64*)
  1.2982 -	            _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.2983 +	            _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.2984  	            ;;
  1.2985  	          *)
  1.2986 -	            _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.2987 +	            _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.2988  	            ;;
  1.2989  	        esac
  1.2990  	      fi
  1.2991 @@ -5829,7 +6364,7 @@
  1.2992          case $cc_basename in
  1.2993            CC*)
  1.2994  	    # SGI C++
  1.2995 -	    _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.2996 +	    _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.2997  
  1.2998  	    # Archives containing C++ object files must be created using
  1.2999  	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.3000 @@ -5840,9 +6375,9 @@
  1.3001            *)
  1.3002  	    if test "$GXX" = yes; then
  1.3003  	      if test "$with_gnu_ld" = no; then
  1.3004 -	        _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.3005 +	        _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.3006  	      else
  1.3007 -	        _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.3008 +	        _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.3009  	      fi
  1.3010  	    fi
  1.3011  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3012 @@ -5853,7 +6388,7 @@
  1.3013          _LT_TAGVAR(inherit_rpath, $1)=yes
  1.3014          ;;
  1.3015  
  1.3016 -      linux* | k*bsd*-gnu)
  1.3017 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.3018          case $cc_basename in
  1.3019            KCC*)
  1.3020  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  1.3021 @@ -5871,7 +6406,7 @@
  1.3022  	    # explicitly linking system object files so we need to strip them
  1.3023  	    # from the output so that they don't get included in the library
  1.3024  	    # dependencies.
  1.3025 -	    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.3026 +	    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.3027  
  1.3028  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3029  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3030 @@ -5908,26 +6443,26 @@
  1.3031            pgCC* | pgcpp*)
  1.3032              # Portland Group C++ compiler
  1.3033  	    case `$CC -V` in
  1.3034 -	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  1.3035 +	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  1.3036  	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  1.3037  		rm -rf $tpldir~
  1.3038  		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  1.3039 -		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  1.3040 +		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  1.3041  	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  1.3042  		rm -rf $tpldir~
  1.3043  		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  1.3044 -		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  1.3045 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  1.3046  		$RANLIB $oldlib'
  1.3047  	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  1.3048  		rm -rf $tpldir~
  1.3049  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3050 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3051 +		$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.3052  	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  1.3053  		rm -rf $tpldir~
  1.3054  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3055 -		$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.3056 +		$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.3057  	      ;;
  1.3058 -	    *) # Version 6 will use weak symbols
  1.3059 +	    *) # Version 6 and above use weak symbols
  1.3060  	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3061  	      _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.3062  	      ;;
  1.3063 @@ -5935,7 +6470,7 @@
  1.3064  
  1.3065  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.3066  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3067 -	    _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.3068 +	    _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.3069              ;;
  1.3070  	  cxx*)
  1.3071  	    # Compaq C++
  1.3072 @@ -5954,9 +6489,9 @@
  1.3073  	    # explicitly linking system object files so we need to strip them
  1.3074  	    # from the output so that they don't get included in the library
  1.3075  	    # dependencies.
  1.3076 -	    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.3077 +	    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.3078  	    ;;
  1.3079 -	  xl*)
  1.3080 +	  xl* | mpixl* | bgxl*)
  1.3081  	    # IBM XL 8.0 on PPC, with GNU ld
  1.3082  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3083  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3084 @@ -5976,13 +6511,13 @@
  1.3085  	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.3086  	      _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.3087  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3088 -	      _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.3089 +	      _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.3090  	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.3091  
  1.3092  	      # Not sure whether something based on
  1.3093  	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  1.3094  	      # would be better.
  1.3095 -	      output_verbose_link_cmd='echo'
  1.3096 +	      output_verbose_link_cmd='func_echo_all'
  1.3097  
  1.3098  	      # Archives containing C++ object files must be created using
  1.3099  	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3100 @@ -6051,7 +6586,7 @@
  1.3101  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3102  	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.3103  	  fi
  1.3104 -	  output_verbose_link_cmd=echo
  1.3105 +	  output_verbose_link_cmd=func_echo_all
  1.3106  	else
  1.3107  	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.3108  	fi
  1.3109 @@ -6086,15 +6621,15 @@
  1.3110  	    case $host in
  1.3111  	      osf3*)
  1.3112  	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3113 -	        _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.3114 +	        _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.3115  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3116  		;;
  1.3117  	      *)
  1.3118  	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.3119 -	        _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.3120 +	        _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.3121  	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.3122  	          echo "-hidden">> $lib.exp~
  1.3123 -	          $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.3124 +	          $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.3125  	          $RM $lib.exp'
  1.3126  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.3127  		;;
  1.3128 @@ -6110,17 +6645,17 @@
  1.3129  	    # explicitly linking system object files so we need to strip them
  1.3130  	    # from the output so that they don't get included in the library
  1.3131  	    # dependencies.
  1.3132 -	    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.3133 +	    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.3134  	    ;;
  1.3135  	  *)
  1.3136  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3137  	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3138  	      case $host in
  1.3139  	        osf3*)
  1.3140 -	          _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.3141 +	          _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.3142  		  ;;
  1.3143  	        *)
  1.3144 -	          _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.3145 +	          _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.3146  		  ;;
  1.3147  	      esac
  1.3148  
  1.3149 @@ -6130,7 +6665,7 @@
  1.3150  	      # Commands to make compiler produce verbose output that lists
  1.3151  	      # what "hidden" libraries, object files and flags are used when
  1.3152  	      # linking a shared library.
  1.3153 -	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3154 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3155  
  1.3156  	    else
  1.3157  	      # FIXME: insert proper C++ library support
  1.3158 @@ -6166,7 +6701,7 @@
  1.3159  
  1.3160        solaris*)
  1.3161          case $cc_basename in
  1.3162 -          CC*)
  1.3163 +          CC* | sunCC*)
  1.3164  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.3165              _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.3166  	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.3167 @@ -6187,7 +6722,7 @@
  1.3168  	    esac
  1.3169  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3170  
  1.3171 -	    output_verbose_link_cmd='echo'
  1.3172 +	    output_verbose_link_cmd='func_echo_all'
  1.3173  
  1.3174  	    # Archives containing C++ object files must be created using
  1.3175  	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3176 @@ -6207,14 +6742,14 @@
  1.3177  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3178  	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  1.3179  	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  1.3180 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.3181 +	        _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.3182  	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.3183 -		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3184 +		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3185  
  1.3186  	        # Commands to make compiler produce verbose output that lists
  1.3187  	        # what "hidden" libraries, object files and flags are used when
  1.3188  	        # linking a shared library.
  1.3189 -	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3190 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3191  	      else
  1.3192  	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  1.3193  	        # platform.
  1.3194 @@ -6225,7 +6760,7 @@
  1.3195  	        # Commands to make compiler produce verbose output that lists
  1.3196  	        # what "hidden" libraries, object files and flags are used when
  1.3197  	        # linking a shared library.
  1.3198 -	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3199 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3200  	      fi
  1.3201  
  1.3202  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.3203 @@ -6279,6 +6814,10 @@
  1.3204            CC*)
  1.3205  	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3206  	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3207 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  1.3208 +	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
  1.3209 +	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  1.3210 +	      '"$_LT_TAGVAR(reload_cmds, $1)"
  1.3211  	    ;;
  1.3212  	  *)
  1.3213  	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3214 @@ -6334,6 +6873,7 @@
  1.3215    fi # test -n "$compiler"
  1.3216  
  1.3217    CC=$lt_save_CC
  1.3218 +  CFLAGS=$lt_save_CFLAGS
  1.3219    LDCXX=$LD
  1.3220    LD=$lt_save_LD
  1.3221    GCC=$lt_save_GCC
  1.3222 @@ -6348,6 +6888,29 @@
  1.3223  ])# _LT_LANG_CXX_CONFIG
  1.3224  
  1.3225  
  1.3226 +# _LT_FUNC_STRIPNAME_CNF
  1.3227 +# ----------------------
  1.3228 +# func_stripname_cnf prefix suffix name
  1.3229 +# strip PREFIX and SUFFIX off of NAME.
  1.3230 +# PREFIX and SUFFIX must not contain globbing or regex special
  1.3231 +# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3232 +# dot (in which case that matches only a dot).
  1.3233 +#
  1.3234 +# This function is identical to the (non-XSI) version of func_stripname,
  1.3235 +# except this one can be used by m4 code that may be executed by configure,
  1.3236 +# rather than the libtool script.
  1.3237 +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  1.3238 +AC_REQUIRE([_LT_DECL_SED])
  1.3239 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  1.3240 +func_stripname_cnf ()
  1.3241 +{
  1.3242 +  case ${2} in
  1.3243 +  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  1.3244 +  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  1.3245 +  esac
  1.3246 +} # func_stripname_cnf
  1.3247 +])# _LT_FUNC_STRIPNAME_CNF
  1.3248 +
  1.3249  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  1.3250  # ---------------------------------
  1.3251  # Figure out "hidden" library dependencies from verbose
  1.3252 @@ -6356,6 +6919,7 @@
  1.3253  # objects, libraries and library flags.
  1.3254  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  1.3255  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.3256 +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  1.3257  # Dependencies to place before and after the object being linked:
  1.3258  _LT_TAGVAR(predep_objects, $1)=
  1.3259  _LT_TAGVAR(postdep_objects, $1)=
  1.3260 @@ -6405,7 +6969,20 @@
  1.3261    }
  1.3262  };
  1.3263  _LT_EOF
  1.3264 +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  1.3265 +package foo
  1.3266 +func foo() {
  1.3267 +}
  1.3268 +_LT_EOF
  1.3269  ])
  1.3270 +
  1.3271 +_lt_libdeps_save_CFLAGS=$CFLAGS
  1.3272 +case "$CC $CFLAGS " in #(
  1.3273 +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  1.3274 +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  1.3275 +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  1.3276 +esac
  1.3277 +
  1.3278  dnl Parse the compiler output and extract the necessary
  1.3279  dnl objects, libraries and library flags.
  1.3280  if AC_TRY_EVAL(ac_compile); then
  1.3281 @@ -6417,7 +6994,7 @@
  1.3282    pre_test_object_deps_done=no
  1.3283  
  1.3284    for p in `eval "$output_verbose_link_cmd"`; do
  1.3285 -    case $p in
  1.3286 +    case ${prev}${p} in
  1.3287  
  1.3288      -L* | -R* | -l*)
  1.3289         # Some compilers place space between "-{L,R}" and the path.
  1.3290 @@ -6426,13 +7003,22 @@
  1.3291            test $p = "-R"; then
  1.3292  	 prev=$p
  1.3293  	 continue
  1.3294 -       else
  1.3295 -	 prev=
  1.3296         fi
  1.3297  
  1.3298 +       # Expand the sysroot to ease extracting the directories later.
  1.3299 +       if test -z "$prev"; then
  1.3300 +         case $p in
  1.3301 +         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  1.3302 +         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  1.3303 +         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  1.3304 +         esac
  1.3305 +       fi
  1.3306 +       case $p in
  1.3307 +       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  1.3308 +       esac
  1.3309         if test "$pre_test_object_deps_done" = no; then
  1.3310 -	 case $p in
  1.3311 -	 -L* | -R*)
  1.3312 +	 case ${prev} in
  1.3313 +	 -L | -R)
  1.3314  	   # Internal compiler library paths should come after those
  1.3315  	   # provided the user.  The postdeps already come after the
  1.3316  	   # user supplied libs so there is no need to process them.
  1.3317 @@ -6452,8 +7038,10 @@
  1.3318  	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  1.3319  	 fi
  1.3320         fi
  1.3321 +       prev=
  1.3322         ;;
  1.3323  
  1.3324 +    *.lto.$objext) ;; # Ignore GCC LTO objects
  1.3325      *.$objext)
  1.3326         # This assumes that the test object file only shows up
  1.3327         # once in the compiler output.
  1.3328 @@ -6489,6 +7077,7 @@
  1.3329  fi
  1.3330  
  1.3331  $RM -f confest.$objext
  1.3332 +CFLAGS=$_lt_libdeps_save_CFLAGS
  1.3333  
  1.3334  # PORTME: override above test on systems where it is broken
  1.3335  m4_if([$1], [CXX],
  1.3336 @@ -6525,7 +7114,7 @@
  1.3337  
  1.3338  solaris*)
  1.3339    case $cc_basename in
  1.3340 -  CC*)
  1.3341 +  CC* | sunCC*)
  1.3342      # The more standards-conforming stlport4 library is
  1.3343      # incompatible with the Cstd library. Avoid specifying
  1.3344      # it if it's in CXXFLAGS. Ignore libCrun as
  1.3345 @@ -6569,32 +7158,16 @@
  1.3346  ])# _LT_SYS_HIDDEN_LIBDEPS
  1.3347  
  1.3348  
  1.3349 -# _LT_PROG_F77
  1.3350 -# ------------
  1.3351 -# Since AC_PROG_F77 is broken, in that it returns the empty string
  1.3352 -# if there is no fortran compiler, we have our own version here.
  1.3353 -m4_defun([_LT_PROG_F77],
  1.3354 -[
  1.3355 -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  1.3356 -AC_PROG_F77
  1.3357 -if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3358 -  _lt_disable_F77=yes
  1.3359 -fi
  1.3360 -popdef([AC_MSG_ERROR])
  1.3361 -])# _LT_PROG_F77
  1.3362 -
  1.3363 -dnl aclocal-1.4 backwards compatibility:
  1.3364 -dnl AC_DEFUN([_LT_PROG_F77], [])
  1.3365 -
  1.3366 -
  1.3367  # _LT_LANG_F77_CONFIG([TAG])
  1.3368  # --------------------------
  1.3369  # Ensure that the configuration variables for a Fortran 77 compiler are
  1.3370  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3371  # to write the compiler configuration to `libtool'.
  1.3372  m4_defun([_LT_LANG_F77_CONFIG],
  1.3373 -[AC_REQUIRE([_LT_PROG_F77])dnl
  1.3374 -AC_LANG_PUSH(Fortran 77)
  1.3375 +[AC_LANG_PUSH(Fortran 77)
  1.3376 +if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3377 +  _lt_disable_F77=yes
  1.3378 +fi
  1.3379  
  1.3380  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3381  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3382 @@ -6604,7 +7177,6 @@
  1.3383  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3384  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3385  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3386 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3387  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3388  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3389  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3390 @@ -6613,6 +7185,8 @@
  1.3391  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3392  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3393  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3394 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3395 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3396  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3397  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3398  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3399 @@ -6652,7 +7226,9 @@
  1.3400    # Allow CC to be a program name with arguments.
  1.3401    lt_save_CC="$CC"
  1.3402    lt_save_GCC=$GCC
  1.3403 +  lt_save_CFLAGS=$CFLAGS
  1.3404    CC=${F77-"f77"}
  1.3405 +  CFLAGS=$FFLAGS
  1.3406    compiler=$CC
  1.3407    _LT_TAGVAR(compiler, $1)=$CC
  1.3408    _LT_CC_BASENAME([$compiler])
  1.3409 @@ -6706,38 +7282,24 @@
  1.3410  
  1.3411    GCC=$lt_save_GCC
  1.3412    CC="$lt_save_CC"
  1.3413 +  CFLAGS="$lt_save_CFLAGS"
  1.3414  fi # test "$_lt_disable_F77" != yes
  1.3415  
  1.3416  AC_LANG_POP
  1.3417  ])# _LT_LANG_F77_CONFIG
  1.3418  
  1.3419  
  1.3420 -# _LT_PROG_FC
  1.3421 -# -----------
  1.3422 -# Since AC_PROG_FC is broken, in that it returns the empty string
  1.3423 -# if there is no fortran compiler, we have our own version here.
  1.3424 -m4_defun([_LT_PROG_FC],
  1.3425 -[
  1.3426 -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  1.3427 -AC_PROG_FC
  1.3428 -if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3429 -  _lt_disable_FC=yes
  1.3430 -fi
  1.3431 -popdef([AC_MSG_ERROR])
  1.3432 -])# _LT_PROG_FC
  1.3433 -
  1.3434 -dnl aclocal-1.4 backwards compatibility:
  1.3435 -dnl AC_DEFUN([_LT_PROG_FC], [])
  1.3436 -
  1.3437 -
  1.3438  # _LT_LANG_FC_CONFIG([TAG])
  1.3439  # -------------------------
  1.3440  # Ensure that the configuration variables for a Fortran compiler are
  1.3441  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3442  # to write the compiler configuration to `libtool'.
  1.3443  m4_defun([_LT_LANG_FC_CONFIG],
  1.3444 -[AC_REQUIRE([_LT_PROG_FC])dnl
  1.3445 -AC_LANG_PUSH(Fortran)
  1.3446 +[AC_LANG_PUSH(Fortran)
  1.3447 +
  1.3448 +if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3449 +  _lt_disable_FC=yes
  1.3450 +fi
  1.3451  
  1.3452  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3453  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3454 @@ -6747,7 +7309,6 @@
  1.3455  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3456  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3457  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3458 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3459  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3460  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3461  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3462 @@ -6756,6 +7317,8 @@
  1.3463  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3464  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3465  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3466 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3467 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3468  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3469  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3470  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3471 @@ -6795,7 +7358,9 @@
  1.3472    # Allow CC to be a program name with arguments.
  1.3473    lt_save_CC="$CC"
  1.3474    lt_save_GCC=$GCC
  1.3475 +  lt_save_CFLAGS=$CFLAGS
  1.3476    CC=${FC-"f95"}
  1.3477 +  CFLAGS=$FCFLAGS
  1.3478    compiler=$CC
  1.3479    GCC=$ac_cv_fc_compiler_gnu
  1.3480  
  1.3481 @@ -6851,7 +7416,8 @@
  1.3482    fi # test -n "$compiler"
  1.3483  
  1.3484    GCC=$lt_save_GCC
  1.3485 -  CC="$lt_save_CC"
  1.3486 +  CC=$lt_save_CC
  1.3487 +  CFLAGS=$lt_save_CFLAGS
  1.3488  fi # test "$_lt_disable_FC" != yes
  1.3489  
  1.3490  AC_LANG_POP
  1.3491 @@ -6888,10 +7454,12 @@
  1.3492  _LT_LINKER_BOILERPLATE
  1.3493  
  1.3494  # Allow CC to be a program name with arguments.
  1.3495 -lt_save_CC="$CC"
  1.3496 +lt_save_CC=$CC
  1.3497 +lt_save_CFLAGS=$CFLAGS
  1.3498  lt_save_GCC=$GCC
  1.3499  GCC=yes
  1.3500  CC=${GCJ-"gcj"}
  1.3501 +CFLAGS=$GCJFLAGS
  1.3502  compiler=$CC
  1.3503  _LT_TAGVAR(compiler, $1)=$CC
  1.3504  _LT_TAGVAR(LD, $1)="$LD"
  1.3505 @@ -6901,6 +7469,8 @@
  1.3506  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3507  
  1.3508  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3509 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3510 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3511  
  1.3512  ## CAVEAT EMPTOR:
  1.3513  ## There is no encapsulation within the following macros, do not change
  1.3514 @@ -6920,10 +7490,82 @@
  1.3515  AC_LANG_RESTORE
  1.3516  
  1.3517  GCC=$lt_save_GCC
  1.3518 -CC="$lt_save_CC"
  1.3519 +CC=$lt_save_CC
  1.3520 +CFLAGS=$lt_save_CFLAGS
  1.3521  ])# _LT_LANG_GCJ_CONFIG
  1.3522  
  1.3523  
  1.3524 +# _LT_LANG_GO_CONFIG([TAG])
  1.3525 +# --------------------------
  1.3526 +# Ensure that the configuration variables for the GNU Go compiler
  1.3527 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3528 +# to write the compiler configuration to `libtool'.
  1.3529 +m4_defun([_LT_LANG_GO_CONFIG],
  1.3530 +[AC_REQUIRE([LT_PROG_GO])dnl
  1.3531 +AC_LANG_SAVE
  1.3532 +
  1.3533 +# Source file extension for Go test sources.
  1.3534 +ac_ext=go
  1.3535 +
  1.3536 +# Object file extension for compiled Go test sources.
  1.3537 +objext=o
  1.3538 +_LT_TAGVAR(objext, $1)=$objext
  1.3539 +
  1.3540 +# Code to be used in simple compile tests
  1.3541 +lt_simple_compile_test_code="package main; func main() { }"
  1.3542 +
  1.3543 +# Code to be used in simple link tests
  1.3544 +lt_simple_link_test_code='package main; func main() { }'
  1.3545 +
  1.3546 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.3547 +_LT_TAG_COMPILER
  1.3548 +
  1.3549 +# save warnings/boilerplate of simple test code
  1.3550 +_LT_COMPILER_BOILERPLATE
  1.3551 +_LT_LINKER_BOILERPLATE
  1.3552 +
  1.3553 +# Allow CC to be a program name with arguments.
  1.3554 +lt_save_CC=$CC
  1.3555 +lt_save_CFLAGS=$CFLAGS
  1.3556 +lt_save_GCC=$GCC
  1.3557 +GCC=yes
  1.3558 +CC=${GOC-"gccgo"}
  1.3559 +CFLAGS=$GOFLAGS
  1.3560 +compiler=$CC
  1.3561 +_LT_TAGVAR(compiler, $1)=$CC
  1.3562 +_LT_TAGVAR(LD, $1)="$LD"
  1.3563 +_LT_CC_BASENAME([$compiler])
  1.3564 +
  1.3565 +# Go did not exist at the time GCC didn't implicitly link libc in.
  1.3566 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3567 +
  1.3568 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3569 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3570 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3571 +
  1.3572 +## CAVEAT EMPTOR:
  1.3573 +## There is no encapsulation within the following macros, do not change
  1.3574 +## the running order or otherwise move them around unless you know exactly
  1.3575 +## what you are doing...
  1.3576 +if test -n "$compiler"; then
  1.3577 +  _LT_COMPILER_NO_RTTI($1)
  1.3578 +  _LT_COMPILER_PIC($1)
  1.3579 +  _LT_COMPILER_C_O($1)
  1.3580 +  _LT_COMPILER_FILE_LOCKS($1)
  1.3581 +  _LT_LINKER_SHLIBS($1)
  1.3582 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  1.3583 +
  1.3584 +  _LT_CONFIG($1)
  1.3585 +fi
  1.3586 +
  1.3587 +AC_LANG_RESTORE
  1.3588 +
  1.3589 +GCC=$lt_save_GCC
  1.3590 +CC=$lt_save_CC
  1.3591 +CFLAGS=$lt_save_CFLAGS
  1.3592 +])# _LT_LANG_GO_CONFIG
  1.3593 +
  1.3594 +
  1.3595  # _LT_LANG_RC_CONFIG([TAG])
  1.3596  # -------------------------
  1.3597  # Ensure that the configuration variables for the Windows resource compiler
  1.3598 @@ -6955,9 +7597,11 @@
  1.3599  
  1.3600  # Allow CC to be a program name with arguments.
  1.3601  lt_save_CC="$CC"
  1.3602 +lt_save_CFLAGS=$CFLAGS
  1.3603  lt_save_GCC=$GCC
  1.3604  GCC=
  1.3605  CC=${RC-"windres"}
  1.3606 +CFLAGS=
  1.3607  compiler=$CC
  1.3608  _LT_TAGVAR(compiler, $1)=$CC
  1.3609  _LT_CC_BASENAME([$compiler])
  1.3610 @@ -6970,7 +7614,8 @@
  1.3611  
  1.3612  GCC=$lt_save_GCC
  1.3613  AC_LANG_RESTORE
  1.3614 -CC="$lt_save_CC"
  1.3615 +CC=$lt_save_CC
  1.3616 +CFLAGS=$lt_save_CFLAGS
  1.3617  ])# _LT_LANG_RC_CONFIG
  1.3618  
  1.3619  
  1.3620 @@ -6990,6 +7635,13 @@
  1.3621  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  1.3622  
  1.3623  
  1.3624 +# LT_PROG_GO
  1.3625 +# ----------
  1.3626 +AC_DEFUN([LT_PROG_GO],
  1.3627 +[AC_CHECK_TOOL(GOC, gccgo,)
  1.3628 +])
  1.3629 +
  1.3630 +
  1.3631  # LT_PROG_RC
  1.3632  # ----------
  1.3633  AC_DEFUN([LT_PROG_RC],
  1.3634 @@ -7029,6 +7681,15 @@
  1.3635  AC_SUBST([OBJDUMP])
  1.3636  ])
  1.3637  
  1.3638 +# _LT_DECL_DLLTOOL
  1.3639 +# ----------------
  1.3640 +# Ensure DLLTOOL variable is set.
  1.3641 +m4_defun([_LT_DECL_DLLTOOL],
  1.3642 +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1.3643 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1.3644 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  1.3645 +AC_SUBST([DLLTOOL])
  1.3646 +])
  1.3647  
  1.3648  # _LT_DECL_SED
  1.3649  # ------------
  1.3650 @@ -7122,8 +7783,8 @@
  1.3651  # Try some XSI features
  1.3652  xsi_shell=no
  1.3653  ( _lt_dummy="a/b/c"
  1.3654 -  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  1.3655 -      = c,a/b,, \
  1.3656 +  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  1.3657 +      = c,a/b,b/c, \
  1.3658      && eval 'test $(( 1 + 1 )) -eq 2 \
  1.3659      && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  1.3660    && xsi_shell=yes
  1.3661 @@ -7162,209 +7823,162 @@
  1.3662  ])# _LT_CHECK_SHELL_FEATURES
  1.3663  
  1.3664  
  1.3665 -# _LT_PROG_XSI_SHELLFNS
  1.3666 -# ---------------------
  1.3667 -# Bourne and XSI compatible variants of some useful shell functions.
  1.3668 -m4_defun([_LT_PROG_XSI_SHELLFNS],
  1.3669 -[case $xsi_shell in
  1.3670 -  yes)
  1.3671 -    cat << \_LT_EOF >> "$cfgfile"
  1.3672 -
  1.3673 -# func_dirname file append nondir_replacement
  1.3674 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3675 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3676 -func_dirname ()
  1.3677 -{
  1.3678 -  case ${1} in
  1.3679 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3680 -    *  ) func_dirname_result="${3}" ;;
  1.3681 -  esac
  1.3682 -}
  1.3683 -
  1.3684 -# func_basename file
  1.3685 -func_basename ()
  1.3686 -{
  1.3687 -  func_basename_result="${1##*/}"
  1.3688 -}
  1.3689 -
  1.3690 -# func_dirname_and_basename file append nondir_replacement
  1.3691 -# perform func_basename and func_dirname in a single function
  1.3692 -# call:
  1.3693 -#   dirname:  Compute the dirname of FILE.  If nonempty,
  1.3694 -#             add APPEND to the result, otherwise set result
  1.3695 -#             to NONDIR_REPLACEMENT.
  1.3696 -#             value returned in "$func_dirname_result"
  1.3697 -#   basename: Compute filename of FILE.
  1.3698 -#             value retuned in "$func_basename_result"
  1.3699 -# Implementation must be kept synchronized with func_dirname
  1.3700 -# and func_basename. For efficiency, we do not delegate to
  1.3701 -# those functions but instead duplicate the functionality here.
  1.3702 -func_dirname_and_basename ()
  1.3703 -{
  1.3704 -  case ${1} in
  1.3705 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3706 -    *  ) func_dirname_result="${3}" ;;
  1.3707 -  esac
  1.3708 -  func_basename_result="${1##*/}"
  1.3709 -}
  1.3710 -
  1.3711 -# func_stripname prefix suffix name
  1.3712 -# strip PREFIX and SUFFIX off of NAME.
  1.3713 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3714 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3715 -# dot (in which case that matches only a dot).
  1.3716 -func_stripname ()
  1.3717 -{
  1.3718 -  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3719 -  # positional parameters, so assign one to ordinary parameter first.
  1.3720 -  func_stripname_result=${3}
  1.3721 -  func_stripname_result=${func_stripname_result#"${1}"}
  1.3722 -  func_stripname_result=${func_stripname_result%"${2}"}
  1.3723 -}
  1.3724 -
  1.3725 -# func_opt_split
  1.3726 -func_opt_split ()
  1.3727 -{
  1.3728 -  func_opt_split_opt=${1%%=*}
  1.3729 -  func_opt_split_arg=${1#*=}
  1.3730 -}
  1.3731 -
  1.3732 -# func_lo2o object
  1.3733 -func_lo2o ()
  1.3734 -{
  1.3735 -  case ${1} in
  1.3736 -    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3737 -    *)    func_lo2o_result=${1} ;;
  1.3738 -  esac
  1.3739 -}
  1.3740 -
  1.3741 -# func_xform libobj-or-source
  1.3742 -func_xform ()
  1.3743 -{
  1.3744 -  func_xform_result=${1%.*}.lo
  1.3745 -}
  1.3746 -
  1.3747 -# func_arith arithmetic-term...
  1.3748 -func_arith ()
  1.3749 -{
  1.3750 -  func_arith_result=$(( $[*] ))
  1.3751 -}
  1.3752 -
  1.3753 -# func_len string
  1.3754 -# STRING may not start with a hyphen.
  1.3755 -func_len ()
  1.3756 -{
  1.3757 -  func_len_result=${#1}
  1.3758 -}
  1.3759 -
  1.3760 -_LT_EOF
  1.3761 +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  1.3762 +# ------------------------------------------------------
  1.3763 +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  1.3764 +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  1.3765 +m4_defun([_LT_PROG_FUNCTION_REPLACE],
  1.3766 +[dnl {
  1.3767 +sed -e '/^$1 ()$/,/^} # $1 /c\
  1.3768 +$1 ()\
  1.3769 +{\
  1.3770 +m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
  1.3771 +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  1.3772 +  && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3773 +    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3774 +test 0 -eq $? || _lt_function_replace_fail=:
  1.3775 +])
  1.3776 +
  1.3777 +
  1.3778 +# _LT_PROG_REPLACE_SHELLFNS
  1.3779 +# -------------------------
  1.3780 +# Replace existing portable implementations of several shell functions with
  1.3781 +# equivalent extended shell implementations where those features are available..
  1.3782 +m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  1.3783 +[if test x"$xsi_shell" = xyes; then
  1.3784 +  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  1.3785 +    case ${1} in
  1.3786 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3787 +      *  ) func_dirname_result="${3}" ;;
  1.3788 +    esac])
  1.3789 +
  1.3790 +  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  1.3791 +    func_basename_result="${1##*/}"])
  1.3792 +
  1.3793 +  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  1.3794 +    case ${1} in
  1.3795 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3796 +      *  ) func_dirname_result="${3}" ;;
  1.3797 +    esac
  1.3798 +    func_basename_result="${1##*/}"])
  1.3799 +
  1.3800 +  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  1.3801 +    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3802 +    # positional parameters, so assign one to ordinary parameter first.
  1.3803 +    func_stripname_result=${3}
  1.3804 +    func_stripname_result=${func_stripname_result#"${1}"}
  1.3805 +    func_stripname_result=${func_stripname_result%"${2}"}])
  1.3806 +
  1.3807 +  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  1.3808 +    func_split_long_opt_name=${1%%=*}
  1.3809 +    func_split_long_opt_arg=${1#*=}])
  1.3810 +
  1.3811 +  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  1.3812 +    func_split_short_opt_arg=${1#??}
  1.3813 +    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  1.3814 +
  1.3815 +  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  1.3816 +    case ${1} in
  1.3817 +      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3818 +      *)    func_lo2o_result=${1} ;;
  1.3819 +    esac])
  1.3820 +
  1.3821 +  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
  1.3822 +
  1.3823 +  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
  1.3824 +
  1.3825 +  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
  1.3826 +fi
  1.3827 +
  1.3828 +if test x"$lt_shell_append" = xyes; then
  1.3829 +  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
  1.3830 +
  1.3831 +  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  1.3832 +    func_quote_for_eval "${2}"
  1.3833 +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  1.3834 +    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  1.3835 +
  1.3836 +  # Save a `func_append' function call where possible by direct use of '+='
  1.3837 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  1.3838 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3839 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3840 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.3841 +else
  1.3842 +  # Save a `func_append' function call even when '+=' is not available
  1.3843 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  1.3844 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3845 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3846 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.3847 +fi
  1.3848 +
  1.3849 +if test x"$_lt_function_replace_fail" = x":"; then
  1.3850 +  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  1.3851 +fi
  1.3852 +])
  1.3853 +
  1.3854 +# _LT_PATH_CONVERSION_FUNCTIONS
  1.3855 +# -----------------------------
  1.3856 +# Determine which file name conversion functions should be used by
  1.3857 +# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  1.3858 +# for certain cross-compile configurations and native mingw.
  1.3859 +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  1.3860 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3861 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.3862 +AC_MSG_CHECKING([how to convert $build file names to $host format])
  1.3863 +AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  1.3864 +[case $host in
  1.3865 +  *-*-mingw* )
  1.3866 +    case $build in
  1.3867 +      *-*-mingw* ) # actually msys
  1.3868 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  1.3869 +        ;;
  1.3870 +      *-*-cygwin* )
  1.3871 +        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  1.3872 +        ;;
  1.3873 +      * ) # otherwise, assume *nix
  1.3874 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  1.3875 +        ;;
  1.3876 +    esac
  1.3877      ;;
  1.3878 -  *) # Bourne compatible functions.
  1.3879 -    cat << \_LT_EOF >> "$cfgfile"
  1.3880 -
  1.3881 -# func_dirname file append nondir_replacement
  1.3882 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3883 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3884 -func_dirname ()
  1.3885 -{
  1.3886 -  # Extract subdirectory from the argument.
  1.3887 -  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  1.3888 -  if test "X$func_dirname_result" = "X${1}"; then
  1.3889 -    func_dirname_result="${3}"
  1.3890 -  else
  1.3891 -    func_dirname_result="$func_dirname_result${2}"
  1.3892 -  fi
  1.3893 -}
  1.3894 -
  1.3895 -# func_basename file
  1.3896 -func_basename ()
  1.3897 -{
  1.3898 -  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  1.3899 -}
  1.3900 -
  1.3901 -dnl func_dirname_and_basename
  1.3902 -dnl A portable version of this function is already defined in general.m4sh
  1.3903 -dnl so there is no need for it here.
  1.3904 -
  1.3905 -# func_stripname prefix suffix name
  1.3906 -# strip PREFIX and SUFFIX off of NAME.
  1.3907 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3908 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3909 -# dot (in which case that matches only a dot).
  1.3910 -# func_strip_suffix prefix name
  1.3911 -func_stripname ()
  1.3912 -{
  1.3913 -  case ${2} in
  1.3914 -    .*) func_stripname_result=`$ECHO "X${3}" \
  1.3915 -           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  1.3916 -    *)  func_stripname_result=`$ECHO "X${3}" \
  1.3917 -           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  1.3918 -  esac
  1.3919 -}
  1.3920 -
  1.3921 -# sed scripts:
  1.3922 -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  1.3923 -my_sed_long_arg='1s/^-[[^=]]*=//'
  1.3924 -
  1.3925 -# func_opt_split
  1.3926 -func_opt_split ()
  1.3927 -{
  1.3928 -  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  1.3929 -  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  1.3930 -}
  1.3931 -
  1.3932 -# func_lo2o object
  1.3933 -func_lo2o ()
  1.3934 -{
  1.3935 -  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  1.3936 -}
  1.3937 -
  1.3938 -# func_xform libobj-or-source
  1.3939 -func_xform ()
  1.3940 -{
  1.3941 -  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  1.3942 -}
  1.3943 -
  1.3944 -# func_arith arithmetic-term...
  1.3945 -func_arith ()
  1.3946 -{
  1.3947 -  func_arith_result=`expr "$[@]"`
  1.3948 -}
  1.3949 -
  1.3950 -# func_len string
  1.3951 -# STRING may not start with a hyphen.
  1.3952 -func_len ()
  1.3953 -{
  1.3954 -  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  1.3955 -}
  1.3956 -
  1.3957 -_LT_EOF
  1.3958 +  *-*-cygwin* )
  1.3959 +    case $build in
  1.3960 +      *-*-mingw* ) # actually msys
  1.3961 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  1.3962 +        ;;
  1.3963 +      *-*-cygwin* )
  1.3964 +        lt_cv_to_host_file_cmd=func_convert_file_noop
  1.3965 +        ;;
  1.3966 +      * ) # otherwise, assume *nix
  1.3967 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  1.3968 +        ;;
  1.3969 +    esac
  1.3970 +    ;;
  1.3971 +  * ) # unhandled hosts (and "normal" native builds)
  1.3972 +    lt_cv_to_host_file_cmd=func_convert_file_noop
  1.3973 +    ;;
  1.3974  esac
  1.3975 -
  1.3976 -case $lt_shell_append in
  1.3977 -  yes)
  1.3978 -    cat << \_LT_EOF >> "$cfgfile"
  1.3979 -
  1.3980 -# func_append var value
  1.3981 -# Append VALUE to the end of shell variable VAR.
  1.3982 -func_append ()
  1.3983 -{
  1.3984 -  eval "$[1]+=\$[2]"
  1.3985 -}
  1.3986 -_LT_EOF
  1.3987 +])
  1.3988 +to_host_file_cmd=$lt_cv_to_host_file_cmd
  1.3989 +AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  1.3990 +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  1.3991 +         [0], [convert $build file names to $host format])dnl
  1.3992 +
  1.3993 +AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  1.3994 +AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  1.3995 +[#assume ordinary cross tools, or native build.
  1.3996 +lt_cv_to_tool_file_cmd=func_convert_file_noop
  1.3997 +case $host in
  1.3998 +  *-*-mingw* )
  1.3999 +    case $build in
  1.4000 +      *-*-mingw* ) # actually msys
  1.4001 +        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  1.4002 +        ;;
  1.4003 +    esac
  1.4004      ;;
  1.4005 -  *)
  1.4006 -    cat << \_LT_EOF >> "$cfgfile"
  1.4007 -
  1.4008 -# func_append var value
  1.4009 -# Append VALUE to the end of shell variable VAR.
  1.4010 -func_append ()
  1.4011 -{
  1.4012 -  eval "$[1]=\$$[1]\$[2]"
  1.4013 -}
  1.4014 -
  1.4015 -_LT_EOF
  1.4016 -    ;;
  1.4017 -  esac
  1.4018 +esac
  1.4019  ])
  1.4020 -
  1.4021 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  1.4022 +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  1.4023 +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  1.4024 +         [0], [convert $build files to toolchain format])dnl
  1.4025 +])# _LT_PATH_CONVERSION_FUNCTIONS
     2.1 --- a/acinclude/ltoptions.m4	Wed Sep 19 18:08:37 2012 -0700
     2.2 +++ b/acinclude/ltoptions.m4	Thu Sep 20 21:13:10 2012 -0700
     2.3 @@ -1,14 +1,14 @@
     2.4 -##############################################################################
     2.5  # Helper functions for option handling.                    -*- Autoconf -*-
     2.6  #
     2.7 -#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     2.8 +#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     2.9 +#   Inc.
    2.10  #   Written by Gary V. Vaughan, 2004
    2.11  #
    2.12  # This file is free software; the Free Software Foundation gives
    2.13  # unlimited permission to copy and/or distribute it, with or without
    2.14  # modifications, as long as this notice is preserved.
    2.15  
    2.16 -# serial 6 ltoptions.m4
    2.17 +# serial 7 ltoptions.m4
    2.18  
    2.19  # This is to help aclocal find these macros, as it can't see m4_define.
    2.20  AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
    2.21 @@ -126,7 +126,7 @@
    2.22  [enable_win32_dll=yes
    2.23  
    2.24  case $host in
    2.25 -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
    2.26 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
    2.27    AC_CHECK_TOOL(AS, as, false)
    2.28    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
    2.29    AC_CHECK_TOOL(OBJDUMP, objdump, false)
    2.30 @@ -134,13 +134,13 @@
    2.31  esac
    2.32  
    2.33  test -z "$AS" && AS=as
    2.34 -_LT_DECL([], [AS],      [0], [Assembler program])dnl
    2.35 +_LT_DECL([], [AS],      [1], [Assembler program])dnl
    2.36  
    2.37  test -z "$DLLTOOL" && DLLTOOL=dlltool
    2.38 -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
    2.39 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
    2.40  
    2.41  test -z "$OBJDUMP" && OBJDUMP=objdump
    2.42 -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
    2.43 +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
    2.44  ])# win32-dll
    2.45  
    2.46  AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
    2.47 @@ -326,9 +326,24 @@
    2.48  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
    2.49  m4_define([_LT_WITH_PIC],
    2.50  [AC_ARG_WITH([pic],
    2.51 -    [AS_HELP_STRING([--with-pic],
    2.52 +    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
    2.53  	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
    2.54 -    [pic_mode="$withval"],
    2.55 +    [lt_p=${PACKAGE-default}
    2.56 +    case $withval in
    2.57 +    yes|no) pic_mode=$withval ;;
    2.58 +    *)
    2.59 +      pic_mode=default
    2.60 +      # Look at the argument we got.  We use all the common list separators.
    2.61 +      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2.62 +      for lt_pkg in $withval; do
    2.63 +	IFS="$lt_save_ifs"
    2.64 +	if test "X$lt_pkg" = "X$lt_p"; then
    2.65 +	  pic_mode=yes
    2.66 +	fi
    2.67 +      done
    2.68 +      IFS="$lt_save_ifs"
    2.69 +      ;;
    2.70 +    esac],
    2.71      [pic_mode=default])
    2.72  
    2.73  test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
    2.74 @@ -367,4 +382,3 @@
    2.75  		 [m4_define([_LTDL_TYPE], [installable])])
    2.76  LT_OPTION_DEFINE([LTDL_INIT], [convenience],
    2.77  		 [m4_define([_LTDL_TYPE], [convenience])])
    2.78 -
     3.1 --- a/acinclude/ltsugar.m4	Wed Sep 19 18:08:37 2012 -0700
     3.2 +++ b/acinclude/ltsugar.m4	Thu Sep 20 21:13:10 2012 -0700
     3.3 @@ -1,4 +1,3 @@
     3.4 -##############################################################################
     3.5  # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
     3.6  #
     3.7  # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     3.8 @@ -122,4 +121,3 @@
     3.9             lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
    3.10  		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
    3.11  ])
    3.12 -
     4.1 --- a/acinclude/ltversion.m4	Wed Sep 19 18:08:37 2012 -0700
     4.2 +++ b/acinclude/ltversion.m4	Thu Sep 20 21:13:10 2012 -0700
     4.3 @@ -1,4 +1,3 @@
     4.4 -##############################################################################
     4.5  # ltversion.m4 -- version numbers			-*- Autoconf -*-
     4.6  #
     4.7  #   Copyright (C) 2004 Free Software Foundation, Inc.
     4.8 @@ -8,18 +7,17 @@
     4.9  # unlimited permission to copy and/or distribute it, with or without
    4.10  # modifications, as long as this notice is preserved.
    4.11  
    4.12 -# Generated from ltversion.in.
    4.13 +# @configure_input@
    4.14  
    4.15 -# serial 3012 ltversion.m4
    4.16 +# serial 3337 ltversion.m4
    4.17  # This file is part of GNU Libtool
    4.18  
    4.19 -m4_define([LT_PACKAGE_VERSION], [2.2.6])
    4.20 -m4_define([LT_PACKAGE_REVISION], [1.3012])
    4.21 +m4_define([LT_PACKAGE_VERSION], [2.4.2])
    4.22 +m4_define([LT_PACKAGE_REVISION], [1.3337])
    4.23  
    4.24  AC_DEFUN([LTVERSION_VERSION],
    4.25 -[macro_version='2.2.6'
    4.26 -macro_revision='1.3012'
    4.27 +[macro_version='2.4.2'
    4.28 +macro_revision='1.3337'
    4.29  _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
    4.30  _LT_DECL(, macro_revision, 0)
    4.31  ])
    4.32 -
     5.1 --- a/acinclude/lt~obsolete.m4	Wed Sep 19 18:08:37 2012 -0700
     5.2 +++ b/acinclude/lt~obsolete.m4	Thu Sep 20 21:13:10 2012 -0700
     5.3 @@ -1,14 +1,13 @@
     5.4 -##############################################################################
     5.5  # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
     5.6  #
     5.7 -#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
     5.8 +#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
     5.9  #   Written by Scott James Remnant, 2004.
    5.10  #
    5.11  # This file is free software; the Free Software Foundation gives
    5.12  # unlimited permission to copy and/or distribute it, with or without
    5.13  # modifications, as long as this notice is preserved.
    5.14  
    5.15 -# serial 4 lt~obsolete.m4
    5.16 +# serial 5 lt~obsolete.m4
    5.17  
    5.18  # These exist entirely to fool aclocal when bootstrapping libtool.
    5.19  #
    5.20 @@ -78,7 +77,6 @@
    5.21  m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
    5.22  m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
    5.23  m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
    5.24 -m4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
    5.25  m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
    5.26  m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
    5.27  m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
    5.28 @@ -91,3 +89,10 @@
    5.29  m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
    5.30  m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
    5.31  m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
    5.32 +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
    5.33 +m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
    5.34 +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
    5.35 +m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
    5.36 +m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
    5.37 +m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
    5.38 +m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
     6.1 --- a/aclocal.m4	Wed Sep 19 18:08:37 2012 -0700
     6.2 +++ b/aclocal.m4	Thu Sep 20 21:13:10 2012 -0700
     6.3 @@ -696,11 +696,12 @@
     6.4    rm -f conf.esdtest
     6.5  ])
     6.6  ##############################################################################
     6.7 -# Based on libtool-2.2.6a
     6.8 +# Based on libtool-2.4.2
     6.9  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    6.10  #
    6.11  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    6.12 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    6.13 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    6.14 +#                 Foundation, Inc.
    6.15  #   Written by Gordon Matzigkeit, 1996
    6.16  #
    6.17  # This file is free software; the Free Software Foundation gives
    6.18 @@ -709,7 +710,8 @@
    6.19  
    6.20  m4_define([_LT_COPYING], [dnl
    6.21  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    6.22 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    6.23 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    6.24 +#                 Foundation, Inc.
    6.25  #   Written by Gordon Matzigkeit, 1996
    6.26  #
    6.27  #   This file is part of GNU Libtool.
    6.28 @@ -736,7 +738,7 @@
    6.29  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    6.30  ])
    6.31  
    6.32 -# serial 56 LT_INIT
    6.33 +# serial 57 LT_INIT
    6.34  
    6.35  
    6.36  # LT_PREREQ(VERSION)
    6.37 @@ -765,6 +767,7 @@
    6.38  # ------------------
    6.39  AC_DEFUN([LT_INIT],
    6.40  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    6.41 +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    6.42  AC_BEFORE([$0], [LT_LANG])dnl
    6.43  AC_BEFORE([$0], [LT_OUTPUT])dnl
    6.44  AC_BEFORE([$0], [LTDL_INIT])dnl
    6.45 @@ -781,6 +784,8 @@
    6.46  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    6.47  m4_require([_LT_PROG_LTMAIN])dnl
    6.48  
    6.49 +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    6.50 +
    6.51  dnl Parse OPTIONS
    6.52  _LT_SET_OPTIONS([$0], [$1])
    6.53  
    6.54 @@ -817,7 +822,7 @@
    6.55      *) break;;
    6.56    esac
    6.57  done
    6.58 -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    6.59 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    6.60  ])
    6.61  
    6.62  
    6.63 @@ -837,6 +842,11 @@
    6.64  m4_defun([_LT_SETUP],
    6.65  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    6.66  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    6.67 +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
    6.68 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    6.69 +
    6.70 +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
    6.71 +dnl
    6.72  _LT_DECL([], [host_alias], [0], [The host system])dnl
    6.73  _LT_DECL([], [host], [0])dnl
    6.74  _LT_DECL([], [host_os], [0])dnl
    6.75 @@ -859,10 +869,13 @@
    6.76  dnl
    6.77  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    6.78  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    6.79 +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    6.80  m4_require([_LT_CMD_RELOAD])dnl
    6.81  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
    6.82 +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    6.83  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    6.84  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    6.85 +m4_require([_LT_WITH_SYSROOT])dnl
    6.86  
    6.87  _LT_CONFIG_LIBTOOL_INIT([
    6.88  # See if we are running on zsh, and set the options which allow our
    6.89 @@ -878,7 +891,6 @@
    6.90  _LT_CHECK_OBJDIR
    6.91  
    6.92  m4_require([_LT_TAG_COMPILER])dnl
    6.93 -_LT_PROG_ECHO_BACKSLASH
    6.94  
    6.95  case $host_os in
    6.96  aix3*)
    6.97 @@ -892,23 +904,6 @@
    6.98    ;;
    6.99  esac
   6.100  
   6.101 -# Sed substitution that helps us do robust quoting.  It backslashifies
   6.102 -# metacharacters that are still active within double-quoted strings.
   6.103 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   6.104 -
   6.105 -# Same as above, but do not quote variable references.
   6.106 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   6.107 -
   6.108 -# Sed substitution to delay expansion of an escaped shell variable in a
   6.109 -# double_quote_subst'ed string.
   6.110 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   6.111 -
   6.112 -# Sed substitution to delay expansion of an escaped single quote.
   6.113 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   6.114 -
   6.115 -# Sed substitution to avoid accidental globbing in evaled expressions
   6.116 -no_glob_subst='s/\*/\\\*/g'
   6.117 -
   6.118  # Global variables:
   6.119  ofile=libtool
   6.120  can_build_shared=yes
   6.121 @@ -949,6 +944,28 @@
   6.122  ])# _LT_SETUP
   6.123  
   6.124  
   6.125 +# _LT_PREPARE_SED_QUOTE_VARS
   6.126 +# --------------------------
   6.127 +# Define a few sed substitution that help us do robust quoting.
   6.128 +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
   6.129 +[# Backslashify metacharacters that are still active within
   6.130 +# double-quoted strings.
   6.131 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   6.132 +
   6.133 +# Same as above, but do not quote variable references.
   6.134 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   6.135 +
   6.136 +# Sed substitution to delay expansion of an escaped shell variable in a
   6.137 +# double_quote_subst'ed string.
   6.138 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   6.139 +
   6.140 +# Sed substitution to delay expansion of an escaped single quote.
   6.141 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   6.142 +
   6.143 +# Sed substitution to avoid accidental globbing in evaled expressions
   6.144 +no_glob_subst='s/\*/\\\*/g'
   6.145 +])
   6.146 +
   6.147  # _LT_PROG_LTMAIN
   6.148  # ---------------
   6.149  # Note that this code is called both from `configure', and `config.status'
   6.150 @@ -1107,7 +1124,7 @@
   6.151  # declaration there will have the same value as in `configure'.  VARNAME
   6.152  # must have a single quote delimited value for this to work.
   6.153  m4_define([_LT_CONFIG_STATUS_DECLARE],
   6.154 -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
   6.155 +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   6.156  
   6.157  
   6.158  # _LT_CONFIG_STATUS_DECLARATIONS
   6.159 @@ -1117,7 +1134,7 @@
   6.160  # embedded single quotes properly.  In configure, this macro expands
   6.161  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   6.162  #
   6.163 -#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
   6.164 +#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
   6.165  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   6.166  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   6.167      [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   6.168 @@ -1216,12 +1233,20 @@
   6.169  LTCFLAGS='$LTCFLAGS'
   6.170  compiler='$compiler_DEFAULT'
   6.171  
   6.172 +# A function that is used when there is no print builtin or printf.
   6.173 +func_fallback_echo ()
   6.174 +{
   6.175 +  eval 'cat <<_LTECHO_EOF
   6.176 +\$[]1
   6.177 +_LTECHO_EOF'
   6.178 +}
   6.179 +
   6.180  # Quote evaled strings.
   6.181  for var in lt_decl_all_varnames([[ \
   6.182  ]], lt_decl_quote_varnames); do
   6.183 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   6.184 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   6.185      *[[\\\\\\\`\\"\\\$]]*)
   6.186 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   6.187 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   6.188        ;;
   6.189      *)
   6.190        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   6.191 @@ -1232,9 +1257,9 @@
   6.192  # Double-quote double-evaled strings.
   6.193  for var in lt_decl_all_varnames([[ \
   6.194  ]], lt_decl_dquote_varnames); do
   6.195 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   6.196 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   6.197      *[[\\\\\\\`\\"\\\$]]*)
   6.198 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   6.199 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   6.200        ;;
   6.201      *)
   6.202        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   6.203 @@ -1242,16 +1267,38 @@
   6.204      esac
   6.205  done
   6.206  
   6.207 -# Fix-up fallback echo if it was mangled by the above quoting rules.
   6.208 -case \$lt_ECHO in
   6.209 -*'\\\[$]0 --fallback-echo"')dnl "
   6.210 -  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
   6.211 -  ;;
   6.212 -esac
   6.213 -
   6.214  _LT_OUTPUT_LIBTOOL_INIT
   6.215  ])
   6.216  
   6.217 +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   6.218 +# ------------------------------------
   6.219 +# Generate a child script FILE with all initialization necessary to
   6.220 +# reuse the environment learned by the parent script, and make the
   6.221 +# file executable.  If COMMENT is supplied, it is inserted after the
   6.222 +# `#!' sequence but before initialization text begins.  After this
   6.223 +# macro, additional text can be appended to FILE to form the body of
   6.224 +# the child script.  The macro ends with non-zero status if the
   6.225 +# file could not be fully written (such as if the disk is full).
   6.226 +m4_ifdef([AS_INIT_GENERATED],
   6.227 +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   6.228 +[m4_defun([_LT_GENERATED_FILE_INIT],
   6.229 +[m4_require([AS_PREPARE])]dnl
   6.230 +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
   6.231 +[lt_write_fail=0
   6.232 +cat >$1 <<_ASEOF || lt_write_fail=1
   6.233 +#! $SHELL
   6.234 +# Generated by $as_me.
   6.235 +$2
   6.236 +SHELL=\${CONFIG_SHELL-$SHELL}
   6.237 +export SHELL
   6.238 +_ASEOF
   6.239 +cat >>$1 <<\_ASEOF || lt_write_fail=1
   6.240 +AS_SHELL_SANITIZE
   6.241 +_AS_PREPARE
   6.242 +exec AS_MESSAGE_FD>&1
   6.243 +_ASEOF
   6.244 +test $lt_write_fail = 0 && chmod +x $1[]dnl
   6.245 +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   6.246  
   6.247  # LT_OUTPUT
   6.248  # ---------
   6.249 @@ -1261,20 +1308,11 @@
   6.250  AC_DEFUN([LT_OUTPUT],
   6.251  [: ${CONFIG_LT=./config.lt}
   6.252  AC_MSG_NOTICE([creating $CONFIG_LT])
   6.253 -cat >"$CONFIG_LT" <<_LTEOF
   6.254 -#! $SHELL
   6.255 -# Generated by $as_me.
   6.256 -# Run this file to recreate a libtool stub with the current configuration.
   6.257 -
   6.258 +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
   6.259 +[# Run this file to recreate a libtool stub with the current configuration.])
   6.260 +
   6.261 +cat >>"$CONFIG_LT" <<\_LTEOF
   6.262  lt_cl_silent=false
   6.263 -SHELL=\${CONFIG_SHELL-$SHELL}
   6.264 -_LTEOF
   6.265 -
   6.266 -cat >>"$CONFIG_LT" <<\_LTEOF
   6.267 -AS_SHELL_SANITIZE
   6.268 -_AS_PREPARE
   6.269 -
   6.270 -exec AS_MESSAGE_FD>&1
   6.271  exec AS_MESSAGE_LOG_FD>>config.log
   6.272  {
   6.273    echo
   6.274 @@ -1300,7 +1338,7 @@
   6.275  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   6.276  configured by $[0], generated by m4_PACKAGE_STRING.
   6.277  
   6.278 -Copyright (C) 2008 Free Software Foundation, Inc.
   6.279 +Copyright (C) 2011 Free Software Foundation, Inc.
   6.280  This config.lt script is free software; the Free Software Foundation
   6.281  gives unlimited permision to copy, distribute and modify it."
   6.282  
   6.283 @@ -1345,15 +1383,13 @@
   6.284  # appending to config.log, which fails on DOS, as config.log is still kept
   6.285  # open by configure.  Here we exec the FD to /dev/null, effectively closing
   6.286  # config.log, so it can be properly (re)opened and appended to by config.lt.
   6.287 -if test "$no_create" != yes; then
   6.288 -  lt_cl_success=:
   6.289 -  test "$silent" = yes &&
   6.290 -    lt_config_lt_args="$lt_config_lt_args --quiet"
   6.291 -  exec AS_MESSAGE_LOG_FD>/dev/null
   6.292 -  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   6.293 -  exec AS_MESSAGE_LOG_FD>>config.log
   6.294 -  $lt_cl_success || AS_EXIT(1)
   6.295 -fi
   6.296 +lt_cl_success=:
   6.297 +test "$silent" = yes &&
   6.298 +  lt_config_lt_args="$lt_config_lt_args --quiet"
   6.299 +exec AS_MESSAGE_LOG_FD>/dev/null
   6.300 +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   6.301 +exec AS_MESSAGE_LOG_FD>>config.log
   6.302 +$lt_cl_success || AS_EXIT(1)
   6.303  ])# LT_OUTPUT
   6.304  
   6.305  
   6.306 @@ -1416,15 +1452,12 @@
   6.307    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   6.308    # text mode, it properly converts lines to CR/LF.  This bash problem
   6.309    # is reportedly fixed, but why not run on old versions too?
   6.310 -  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
   6.311 -    || (rm -f "$cfgfile"; exit 1)
   6.312 -
   6.313 -  _LT_PROG_XSI_SHELLFNS
   6.314 -
   6.315 -  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
   6.316 -    || (rm -f "$cfgfile"; exit 1)
   6.317 -
   6.318 -  mv -f "$cfgfile" "$ofile" ||
   6.319 +  sed '$q' "$ltmain" >> "$cfgfile" \
   6.320 +     || (rm -f "$cfgfile"; exit 1)
   6.321 +
   6.322 +  _LT_PROG_REPLACE_SHELLFNS
   6.323 +
   6.324 +   mv -f "$cfgfile" "$ofile" ||
   6.325      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   6.326    chmod +x "$ofile"
   6.327  ],
   6.328 @@ -1469,6 +1502,7 @@
   6.329  m4_case([$1],
   6.330    [C],			[_LT_LANG(C)],
   6.331    [C++],		[_LT_LANG(CXX)],
   6.332 +  [Go],			[_LT_LANG(GO)],
   6.333    [Java],		[_LT_LANG(GCJ)],
   6.334    [Fortran 77],		[_LT_LANG(F77)],
   6.335    [Fortran],		[_LT_LANG(FC)],
   6.336 @@ -1490,6 +1524,31 @@
   6.337  ])# _LT_LANG
   6.338  
   6.339  
   6.340 +m4_ifndef([AC_PROG_GO], [
   6.341 +############################################################
   6.342 +# NOTE: This macro has been submitted for inclusion into   #
   6.343 +#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
   6.344 +#  a released version of Autoconf we should remove this    #
   6.345 +#  macro and use it instead.                               #
   6.346 +############################################################
   6.347 +m4_defun([AC_PROG_GO],
   6.348 +[AC_LANG_PUSH(Go)dnl
   6.349 +AC_ARG_VAR([GOC],     [Go compiler command])dnl
   6.350 +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
   6.351 +_AC_ARG_VAR_LDFLAGS()dnl
   6.352 +AC_CHECK_TOOL(GOC, gccgo)
   6.353 +if test -z "$GOC"; then
   6.354 +  if test -n "$ac_tool_prefix"; then
   6.355 +    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
   6.356 +  fi
   6.357 +fi
   6.358 +if test -z "$GOC"; then
   6.359 +  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
   6.360 +fi
   6.361 +])#m4_defun
   6.362 +])#m4_ifndef
   6.363 +
   6.364 +
   6.365  # _LT_LANG_DEFAULT_CONFIG
   6.366  # -----------------------
   6.367  m4_defun([_LT_LANG_DEFAULT_CONFIG],
   6.368 @@ -1520,6 +1579,10 @@
   6.369         m4_ifdef([LT_PROG_GCJ],
   6.370  	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   6.371  
   6.372 +AC_PROVIDE_IFELSE([AC_PROG_GO],
   6.373 +  [LT_LANG(GO)],
   6.374 +  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
   6.375 +
   6.376  AC_PROVIDE_IFELSE([LT_PROG_RC],
   6.377    [LT_LANG(RC)],
   6.378    [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   6.379 @@ -1530,11 +1593,13 @@
   6.380  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   6.381  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   6.382  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   6.383 +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
   6.384  dnl aclocal-1.4 backwards compatibility:
   6.385  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   6.386  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   6.387  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   6.388  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   6.389 +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
   6.390  
   6.391  
   6.392  # _LT_TAG_COMPILER
   6.393 @@ -1620,7 +1685,13 @@
   6.394  	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   6.395  	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   6.396          _lt_result=$?
   6.397 -	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   6.398 +	# If there is a non-empty error log, and "single_module"
   6.399 +	# appears in it, assume the flag caused a linker warning
   6.400 +        if test -s conftest.err && $GREP single_module conftest.err; then
   6.401 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
   6.402 +	# Otherwise, if the output was created with a 0 exit code from
   6.403 +	# the compiler, it worked.
   6.404 +	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   6.405  	  lt_cv_apple_cc_single_mod=yes
   6.406  	else
   6.407  	  cat conftest.err >&AS_MESSAGE_LOG_FD
   6.408 @@ -1628,6 +1699,7 @@
   6.409  	rm -rf libconftest.dylib*
   6.410  	rm -f conftest.*
   6.411        fi])
   6.412 +
   6.413      AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   6.414        [lt_cv_ld_exported_symbols_list],
   6.415        [lt_cv_ld_exported_symbols_list=no
   6.416 @@ -1639,6 +1711,34 @@
   6.417  	[lt_cv_ld_exported_symbols_list=no])
   6.418  	LDFLAGS="$save_LDFLAGS"
   6.419      ])
   6.420 +
   6.421 +    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
   6.422 +      [lt_cv_ld_force_load=no
   6.423 +      cat > conftest.c << _LT_EOF
   6.424 +int forced_loaded() { return 2;}
   6.425 +_LT_EOF
   6.426 +      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
   6.427 +      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
   6.428 +      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
   6.429 +      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
   6.430 +      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
   6.431 +      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
   6.432 +      cat > conftest.c << _LT_EOF
   6.433 +int main() { return 0;}
   6.434 +_LT_EOF
   6.435 +      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
   6.436 +      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   6.437 +      _lt_result=$?
   6.438 +      if test -s conftest.err && $GREP force_load conftest.err; then
   6.439 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   6.440 +      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
   6.441 +	lt_cv_ld_force_load=yes
   6.442 +      else
   6.443 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   6.444 +      fi
   6.445 +        rm -f conftest.err libconftest.a conftest conftest.c
   6.446 +        rm -rf conftest.dSYM
   6.447 +    ])
   6.448      case $host_os in
   6.449      rhapsody* | darwin1.[[012]])
   6.450        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   6.451 @@ -1666,7 +1766,7 @@
   6.452      else
   6.453        _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   6.454      fi
   6.455 -    if test "$DSYMUTIL" != ":"; then
   6.456 +    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   6.457        _lt_dsymutil='~$DSYMUTIL $lib || :'
   6.458      else
   6.459        _lt_dsymutil=
   6.460 @@ -1676,8 +1776,8 @@
   6.461  ])
   6.462  
   6.463  
   6.464 -# _LT_DARWIN_LINKER_FEATURES
   6.465 -# --------------------------
   6.466 +# _LT_DARWIN_LINKER_FEATURES([TAG])
   6.467 +# ---------------------------------
   6.468  # Checks for linker and compiler features on darwin
   6.469  m4_defun([_LT_DARWIN_LINKER_FEATURES],
   6.470  [
   6.471 @@ -1686,7 +1786,13 @@
   6.472    _LT_TAGVAR(hardcode_direct, $1)=no
   6.473    _LT_TAGVAR(hardcode_automatic, $1)=yes
   6.474    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   6.475 -  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   6.476 +  if test "$lt_cv_ld_force_load" = "yes"; then
   6.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\"`'
   6.478 +    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
   6.479 +                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   6.480 +  else
   6.481 +    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   6.482 +  fi
   6.483    _LT_TAGVAR(link_all_deplibs, $1)=yes
   6.484    _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
   6.485    case $cc_basename in
   6.486 @@ -1694,7 +1800,7 @@
   6.487       *) _lt_dar_can_shared=$GCC ;;
   6.488    esac
   6.489    if test "$_lt_dar_can_shared" = "yes"; then
   6.490 -    output_verbose_link_cmd=echo
   6.491 +    output_verbose_link_cmd=func_echo_all
   6.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}"
   6.493      _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   6.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}"
   6.495 @@ -1710,203 +1816,142 @@
   6.496    fi
   6.497  ])
   6.498  
   6.499 -# _LT_SYS_MODULE_PATH_AIX
   6.500 -# -----------------------
   6.501 +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
   6.502 +# ----------------------------------
   6.503  # Links a minimal program and checks the executable
   6.504  # for the system default hardcoded library path. In most cases,
   6.505  # this is /usr/lib:/lib, but when the MPI compilers are used
   6.506  # the location of the communication and MPI libs are included too.
   6.507  # If we don't find anything, use the default library path according
   6.508  # to the aix ld manual.
   6.509 +# Store the results from the different compilers for each TAGNAME.
   6.510 +# Allow to override them for all tags through lt_cv_aix_libpath.
   6.511  m4_defun([_LT_SYS_MODULE_PATH_AIX],
   6.512  [m4_require([_LT_DECL_SED])dnl
   6.513 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   6.514 -lt_aix_libpath_sed='
   6.515 -    /Import File Strings/,/^$/ {
   6.516 -	/^0/ {
   6.517 -	    s/^0  *\(.*\)$/\1/
   6.518 -	    p
   6.519 -	}
   6.520 -    }'
   6.521 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   6.522 -# Check for a 64-bit object if we didn't find anything.
   6.523 -if test -z "$aix_libpath"; then
   6.524 -  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   6.525 -fi],[])
   6.526 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   6.527 +if test "${lt_cv_aix_libpath+set}" = set; then
   6.528 +  aix_libpath=$lt_cv_aix_libpath
   6.529 +else
   6.530 +  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
   6.531 +  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
   6.532 +  lt_aix_libpath_sed='[
   6.533 +      /Import File Strings/,/^$/ {
   6.534 +	  /^0/ {
   6.535 +	      s/^0  *\([^ ]*\) *$/\1/
   6.536 +	      p
   6.537 +	  }
   6.538 +      }]'
   6.539 +  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   6.540 +  # Check for a 64-bit object if we didn't find anything.
   6.541 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   6.542 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   6.543 +  fi],[])
   6.544 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   6.545 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
   6.546 +  fi
   6.547 +  ])
   6.548 +  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
   6.549 +fi
   6.550  ])# _LT_SYS_MODULE_PATH_AIX
   6.551  
   6.552  
   6.553  # _LT_SHELL_INIT(ARG)
   6.554  # -------------------
   6.555  m4_define([_LT_SHELL_INIT],
   6.556 -[ifdef([AC_DIVERSION_NOTICE],
   6.557 -	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   6.558 -	 [AC_DIVERT_PUSH(NOTICE)])
   6.559 -$1
   6.560 -AC_DIVERT_POP
   6.561 -])# _LT_SHELL_INIT
   6.562 +[m4_divert_text([M4SH-INIT], [$1
   6.563 +])])# _LT_SHELL_INIT
   6.564 +
   6.565  
   6.566  
   6.567  # _LT_PROG_ECHO_BACKSLASH
   6.568  # -----------------------
   6.569 -# Add some code to the start of the generated configure script which
   6.570 -# will find an echo command which doesn't interpret backslashes.
   6.571 +# Find how we can fake an echo command that does not interpret backslash.
   6.572 +# In particular, with Autoconf 2.60 or later we add some code to the start
   6.573 +# of the generated configure script which will find a shell with a builtin
   6.574 +# printf (which we can use as an echo command).
   6.575  m4_defun([_LT_PROG_ECHO_BACKSLASH],
   6.576 -[_LT_SHELL_INIT([
   6.577 -# Check that we are running under the correct shell.
   6.578 -SHELL=${CONFIG_SHELL-/bin/sh}
   6.579 -
   6.580 -case X$lt_ECHO in
   6.581 -X*--fallback-echo)
   6.582 -  # Remove one level of quotation (which was required for Make).
   6.583 -  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   6.584 -  ;;
   6.585 +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   6.586 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   6.587 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   6.588 +
   6.589 +AC_MSG_CHECKING([how to print strings])
   6.590 +# Test print first, because it will be a builtin if present.
   6.591 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   6.592 +   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   6.593 +  ECHO='print -r --'
   6.594 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   6.595 +  ECHO='printf %s\n'
   6.596 +else
   6.597 +  # Use this function as a fallback that always works.
   6.598 +  func_fallback_echo ()
   6.599 +  {
   6.600 +    eval 'cat <<_LTECHO_EOF
   6.601 +$[]1
   6.602 +_LTECHO_EOF'
   6.603 +  }
   6.604 +  ECHO='func_fallback_echo'
   6.605 +fi
   6.606 +
   6.607 +# func_echo_all arg...
   6.608 +# Invoke $ECHO with all args, space-separated.
   6.609 +func_echo_all ()
   6.610 +{
   6.611 +    $ECHO "$*" 
   6.612 +}
   6.613 +
   6.614 +case "$ECHO" in
   6.615 +  printf*) AC_MSG_RESULT([printf]) ;;
   6.616 +  print*) AC_MSG_RESULT([print -r]) ;;
   6.617 +  *) AC_MSG_RESULT([cat]) ;;
   6.618  esac
   6.619  
   6.620 -ECHO=${lt_ECHO-echo}
   6.621 -if test "X[$]1" = X--no-reexec; then
   6.622 -  # Discard the --no-reexec flag, and continue.
   6.623 -  shift
   6.624 -elif test "X[$]1" = X--fallback-echo; then
   6.625 -  # Avoid inline document here, it may be left over
   6.626 -  :
   6.627 -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
   6.628 -  # Yippee, $ECHO works!
   6.629 -  :
   6.630 -else
   6.631 -  # Restart under the correct shell.
   6.632 -  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   6.633 -fi
   6.634 -
   6.635 -if test "X[$]1" = X--fallback-echo; then
   6.636 -  # used as fallback echo
   6.637 -  shift
   6.638 -  cat <<_LT_EOF
   6.639 -[$]*
   6.640 -_LT_EOF
   6.641 -  exit 0
   6.642 -fi
   6.643 -
   6.644 -# The HP-UX ksh and POSIX shell print the target directory to stdout
   6.645 -# if CDPATH is set.
   6.646 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   6.647 -
   6.648 -if test -z "$lt_ECHO"; then
   6.649 -  if test "X${echo_test_string+set}" != Xset; then
   6.650 -    # find a string as large as possible, as long as the shell can cope with it
   6.651 -    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   6.652 -      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   6.653 -      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
   6.654 -	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
   6.655 -      then
   6.656 -        break
   6.657 -      fi
   6.658 -    done
   6.659 -  fi
   6.660 -
   6.661 -  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   6.662 -     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   6.663 -     test "X$echo_testing_string" = "X$echo_test_string"; then
   6.664 -    :
   6.665 -  else
   6.666 -    # The Solaris, AIX, and Digital Unix default echo programs unquote
   6.667 -    # backslashes.  This makes it impossible to quote backslashes using
   6.668 -    #   echo "$something" | sed 's/\\/\\\\/g'
   6.669 -    #
   6.670 -    # So, first we look for a working echo in the user's PATH.
   6.671 -
   6.672 -    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6.673 -    for dir in $PATH /usr/ucb; do
   6.674 -      IFS="$lt_save_ifs"
   6.675 -      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   6.676 -         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   6.677 -         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   6.678 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   6.679 -        ECHO="$dir/echo"
   6.680 -        break
   6.681 -      fi
   6.682 -    done
   6.683 -    IFS="$lt_save_ifs"
   6.684 -
   6.685 -    if test "X$ECHO" = Xecho; then
   6.686 -      # We didn't find a better echo, so look for alternatives.
   6.687 -      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
   6.688 -         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
   6.689 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   6.690 -        # This shell has a builtin print -r that does the trick.
   6.691 -        ECHO='print -r'
   6.692 -      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
   6.693 -	   test "X$CONFIG_SHELL" != X/bin/ksh; then
   6.694 -        # If we have ksh, try running configure again with it.
   6.695 -        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   6.696 -        export ORIGINAL_CONFIG_SHELL
   6.697 -        CONFIG_SHELL=/bin/ksh
   6.698 -        export CONFIG_SHELL
   6.699 -        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   6.700 -      else
   6.701 -        # Try using printf.
   6.702 -        ECHO='printf %s\n'
   6.703 -        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   6.704 -	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   6.705 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
   6.706 -	  # Cool, printf works
   6.707 -	  :
   6.708 -        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   6.709 -	     test "X$echo_testing_string" = 'X\t' &&
   6.710 -	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   6.711 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   6.712 -	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   6.713 -	  export CONFIG_SHELL
   6.714 -	  SHELL="$CONFIG_SHELL"
   6.715 -	  export SHELL
   6.716 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   6.717 -        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   6.718 -	     test "X$echo_testing_string" = 'X\t' &&
   6.719 -	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   6.720 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   6.721 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   6.722 -        else
   6.723 -	  # maybe with a smaller string...
   6.724 -	  prev=:
   6.725 -
   6.726 -	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   6.727 -	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
   6.728 -	    then
   6.729 -	      break
   6.730 -	    fi
   6.731 -	    prev="$cmd"
   6.732 -	  done
   6.733 -
   6.734 -	  if test "$prev" != 'sed 50q "[$]0"'; then
   6.735 -	    echo_test_string=`eval $prev`
   6.736 -	    export echo_test_string
   6.737 -	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   6.738 -	  else
   6.739 -	    # Oops.  We lost completely, so just stick with echo.
   6.740 -	    ECHO=echo
   6.741 -	  fi
   6.742 -        fi
   6.743 -      fi
   6.744 -    fi
   6.745 -  fi
   6.746 -fi
   6.747 -
   6.748 -# Copy echo and quote the copy suitably for passing to libtool from
   6.749 -# the Makefile, instead of quoting the original, which is used later.
   6.750 -lt_ECHO=$ECHO
   6.751 -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   6.752 -   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   6.753 -fi
   6.754 -
   6.755 -AC_SUBST(lt_ECHO)
   6.756 -])
   6.757 +m4_ifdef([_AS_DETECT_SUGGESTED],
   6.758 +[_AS_DETECT_SUGGESTED([
   6.759 +  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
   6.760 +    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   6.761 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   6.762 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   6.763 +    PATH=/empty FPATH=/empty; export PATH FPATH
   6.764 +    test "X`printf %s $ECHO`" = "X$ECHO" \
   6.765 +      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
   6.766 +
   6.767  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
   6.768 -_LT_DECL([], [ECHO], [1],
   6.769 -    [An echo program that does not interpret backslashes])
   6.770 +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
   6.771  ])# _LT_PROG_ECHO_BACKSLASH
   6.772  
   6.773  
   6.774 +# _LT_WITH_SYSROOT
   6.775 +# ----------------
   6.776 +AC_DEFUN([_LT_WITH_SYSROOT],
   6.777 +[AC_MSG_CHECKING([for sysroot])
   6.778 +AC_ARG_WITH([sysroot],
   6.779 +[  --with-sysroot[=DIR] Search for dependent libraries within DIR
   6.780 +                        (or the compiler's sysroot if not specified).],
   6.781 +[], [with_sysroot=no])
   6.782 +
   6.783 +dnl lt_sysroot will always be passed unquoted.  We quote it here
   6.784 +dnl in case the user passed a directory name.
   6.785 +lt_sysroot=
   6.786 +case ${with_sysroot} in #(
   6.787 + yes)
   6.788 +   if test "$GCC" = yes; then
   6.789 +     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6.790 +   fi
   6.791 +   ;; #(
   6.792 + /*)
   6.793 +   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6.794 +   ;; #(
   6.795 + no|'')
   6.796 +   ;; #(
   6.797 + *)
   6.798 +   AC_MSG_RESULT([${with_sysroot}])
   6.799 +   AC_MSG_ERROR([The sysroot must be an absolute path.])
   6.800 +   ;;
   6.801 +esac
   6.802 +
   6.803 + AC_MSG_RESULT([${lt_sysroot:-no}])
   6.804 +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   6.805 +[dependent libraries, and in which our libraries should be installed.])])
   6.806 +
   6.807  # _LT_ENABLE_LOCK
   6.808  # ---------------
   6.809  m4_defun([_LT_ENABLE_LOCK],
   6.810 @@ -1935,7 +1980,7 @@
   6.811    ;;
   6.812  *-*-irix6*)
   6.813    # Find out which ABI we are using.
   6.814 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   6.815 +  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   6.816    if AC_TRY_EVAL(ac_compile); then
   6.817      if test "$lt_cv_prog_gnu_ld" = yes; then
   6.818        case `/usr/bin/file conftest.$ac_objext` in
   6.819 @@ -2028,14 +2073,27 @@
   6.820      CFLAGS="$SAVE_CFLAGS"
   6.821    fi
   6.822    ;;
   6.823 -sparc*-*solaris*)
   6.824 +*-*solaris*)
   6.825    # Find out which ABI we are using.
   6.826    echo 'int i;' > conftest.$ac_ext
   6.827    if AC_TRY_EVAL(ac_compile); then
   6.828      case `/usr/bin/file conftest.o` in
   6.829      *64-bit*)
   6.830        case $lt_cv_prog_gnu_ld in
   6.831 -      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   6.832 +      yes*)
   6.833 +        case $host in
   6.834 +        i?86-*-solaris*)
   6.835 +          LD="${LD-ld} -m elf_x86_64"
   6.836 +          ;;
   6.837 +        sparc*-*-solaris*)
   6.838 +          LD="${LD-ld} -m elf64_sparc"
   6.839 +          ;;
   6.840 +        esac
   6.841 +        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6.842 +        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6.843 +          LD="${LD-ld}_sol2"
   6.844 +        fi
   6.845 +        ;;
   6.846        *)
   6.847  	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6.848  	  LD="${LD-ld} -64"
   6.849 @@ -2053,14 +2111,47 @@
   6.850  ])# _LT_ENABLE_LOCK
   6.851  
   6.852  
   6.853 +# _LT_PROG_AR
   6.854 +# -----------
   6.855 +m4_defun([_LT_PROG_AR],
   6.856 +[AC_CHECK_TOOLS(AR, [ar], false)
   6.857 +: ${AR=ar}
   6.858 +: ${AR_FLAGS=cru}
   6.859 +_LT_DECL([], [AR], [1], [The archiver])
   6.860 +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
   6.861 +
   6.862 +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   6.863 +  [lt_cv_ar_at_file=no
   6.864 +   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
   6.865 +     [echo conftest.$ac_objext > conftest.lst
   6.866 +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
   6.867 +      AC_TRY_EVAL([lt_ar_try])
   6.868 +      if test "$ac_status" -eq 0; then
   6.869 +	# Ensure the archiver fails upon bogus file names.
   6.870 +	rm -f conftest.$ac_objext libconftest.a
   6.871 +	AC_TRY_EVAL([lt_ar_try])
   6.872 +	if test "$ac_status" -ne 0; then
   6.873 +          lt_cv_ar_at_file=@
   6.874 +        fi
   6.875 +      fi
   6.876 +      rm -f conftest.* libconftest.a
   6.877 +     ])
   6.878 +  ])
   6.879 +
   6.880 +if test "x$lt_cv_ar_at_file" = xno; then
   6.881 +  archiver_list_spec=
   6.882 +else
   6.883 +  archiver_list_spec=$lt_cv_ar_at_file
   6.884 +fi
   6.885 +_LT_DECL([], [archiver_list_spec], [1],
   6.886 +  [How to feed a file listing to the archiver])
   6.887 +])# _LT_PROG_AR
   6.888 +
   6.889 +
   6.890  # _LT_CMD_OLD_ARCHIVE
   6.891  # -------------------
   6.892  m4_defun([_LT_CMD_OLD_ARCHIVE],
   6.893 -[AC_CHECK_TOOL(AR, ar, false)
   6.894 -test -z "$AR" && AR=ar
   6.895 -test -z "$AR_FLAGS" && AR_FLAGS=cru
   6.896 -_LT_DECL([], [AR], [1], [The archiver])
   6.897 -_LT_DECL([], [AR_FLAGS], [1])
   6.898 +[_LT_PROG_AR
   6.899  
   6.900  AC_CHECK_TOOL(STRIP, strip, :)
   6.901  test -z "$STRIP" && STRIP=:
   6.902 @@ -2079,18 +2170,27 @@
   6.903  if test -n "$RANLIB"; then
   6.904    case $host_os in
   6.905    openbsd*)
   6.906 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   6.907 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6.908      ;;
   6.909    *)
   6.910 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   6.911 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6.912      ;;
   6.913    esac
   6.914 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   6.915 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6.916  fi
   6.917 +
   6.918 +case $host_os in
   6.919 +  darwin*)
   6.920 +    lock_old_archive_extraction=yes ;;
   6.921 +  *)
   6.922 +    lock_old_archive_extraction=no ;;
   6.923 +esac
   6.924  _LT_DECL([], [old_postinstall_cmds], [2])
   6.925  _LT_DECL([], [old_postuninstall_cmds], [2])
   6.926  _LT_TAGDECL([], [old_archive_cmds], [2],
   6.927      [Commands used to build an old-style archive])
   6.928 +_LT_DECL([], [lock_old_archive_extraction], [0],
   6.929 +    [Whether to use a lock for old archive extraction])
   6.930  ])# _LT_CMD_OLD_ARCHIVE
   6.931  
   6.932  
   6.933 @@ -2115,15 +2215,15 @@
   6.934     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   6.935     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   6.936     -e 's:$: $lt_compiler_flag:'`
   6.937 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   6.938 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   6.939     (eval "$lt_compile" 2>conftest.err)
   6.940     ac_status=$?
   6.941     cat conftest.err >&AS_MESSAGE_LOG_FD
   6.942 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   6.943 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   6.944     if (exit $ac_status) && test -s "$ac_outfile"; then
   6.945       # The compiler can only warn and ignore the option if not recognized
   6.946       # So say no if there are warnings other than the usual output.
   6.947 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   6.948 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   6.949       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   6.950       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   6.951         $2=yes
   6.952 @@ -2163,7 +2263,7 @@
   6.953       if test -s conftest.err; then
   6.954         # Append any errors to the config.log.
   6.955         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   6.956 -       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   6.957 +       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   6.958         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   6.959         if diff conftest.exp conftest.er2 >/dev/null; then
   6.960           $2=yes
   6.961 @@ -2226,9 +2326,8 @@
   6.962      lt_cv_sys_max_cmd_len=8192;
   6.963      ;;
   6.964  
   6.965 -  beos*)
   6.966 -    # On BeOS, this test takes a really really long time.
   6.967 -    # So we just punt and use a minimum line length of 8192.
   6.968 +  mint*)
   6.969 +    # On MiNT this can take a long time and run out of memory.
   6.970      lt_cv_sys_max_cmd_len=8192;
   6.971      ;;
   6.972  
   6.973 @@ -2257,6 +2356,11 @@
   6.974      lt_cv_sys_max_cmd_len=196608
   6.975      ;;
   6.976  
   6.977 +  os2*)
   6.978 +    # The test takes a long time on OS/2.
   6.979 +    lt_cv_sys_max_cmd_len=8192
   6.980 +    ;;
   6.981 +
   6.982    osf*)
   6.983      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   6.984      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   6.985 @@ -2296,8 +2400,8 @@
   6.986        # If test is not a shell built-in, we'll probably end up computing a
   6.987        # maximum length that is only half of the actual maximum length, but
   6.988        # we can't tell.
   6.989 -      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
   6.990 -	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
   6.991 +      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
   6.992 +	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   6.993  	      test $i != 17 # 1/2 MB should be enough
   6.994        do
   6.995          i=`expr $i + 1`
   6.996 @@ -2348,7 +2452,7 @@
   6.997    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   6.998    lt_status=$lt_dlunknown
   6.999    cat > conftest.$ac_ext <<_LT_EOF
  6.1000 -[#line __oline__ "configure"
  6.1001 +[#line $LINENO "configure"
  6.1002  #include "confdefs.h"
  6.1003  
  6.1004  #if HAVE_DLFCN_H
  6.1005 @@ -2389,7 +2493,13 @@
  6.1006  #  endif
  6.1007  #endif
  6.1008  
  6.1009 -void fnord() { int i=42;}
  6.1010 +/* When -fvisbility=hidden is used, assume the code has been annotated
  6.1011 +   correspondingly for the symbols needed.  */
  6.1012 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  6.1013 +int fnord () __attribute__((visibility("default")));
  6.1014 +#endif
  6.1015 +
  6.1016 +int fnord () { return 42; }
  6.1017  int main ()
  6.1018  {
  6.1019    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  6.1020 @@ -2398,7 +2508,11 @@
  6.1021    if (self)
  6.1022      {
  6.1023        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  6.1024 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  6.1025 +      else
  6.1026 +        {
  6.1027 +	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  6.1028 +          else puts (dlerror ());
  6.1029 +	}
  6.1030        /* dlclose (self); */
  6.1031      }
  6.1032    else
  6.1033 @@ -2574,16 +2688,16 @@
  6.1034     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6.1035     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  6.1036     -e 's:$: $lt_compiler_flag:'`
  6.1037 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  6.1038 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  6.1039     (eval "$lt_compile" 2>out/conftest.err)
  6.1040     ac_status=$?
  6.1041     cat out/conftest.err >&AS_MESSAGE_LOG_FD
  6.1042 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  6.1043 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  6.1044     if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6.1045     then
  6.1046       # The compiler can only warn and ignore the option if not recognized
  6.1047       # So say no if there are warnings
  6.1048 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6.1049 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6.1050       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6.1051       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6.1052         _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6.1053 @@ -2742,6 +2856,7 @@
  6.1054  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6.1055  m4_require([_LT_DECL_OBJDUMP])dnl
  6.1056  m4_require([_LT_DECL_SED])dnl
  6.1057 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  6.1058  AC_MSG_CHECKING([dynamic linker characteristics])
  6.1059  m4_if([$1],
  6.1060  	[], [
  6.1061 @@ -2750,16 +2865,23 @@
  6.1062      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  6.1063      *) lt_awk_arg="/^libraries:/" ;;
  6.1064    esac
  6.1065 -  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6.1066 -  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  6.1067 +  case $host_os in
  6.1068 +    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  6.1069 +    *) lt_sed_strip_eq="s,=/,/,g" ;;
  6.1070 +  esac
  6.1071 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  6.1072 +  case $lt_search_path_spec in
  6.1073 +  *\;*)
  6.1074      # if the path contains ";" then we assume it to be the separator
  6.1075      # otherwise default to the standard path separator (i.e. ":") - it is
  6.1076      # assumed that no part of a normal pathname contains ";" but that should
  6.1077      # okay in the real world where ";" in dirpaths is itself problematic.
  6.1078 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  6.1079 -  else
  6.1080 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  6.1081 -  fi
  6.1082 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  6.1083 +    ;;
  6.1084 +  *)
  6.1085 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  6.1086 +    ;;
  6.1087 +  esac
  6.1088    # Ok, now we have the path, separated by spaces, we can step through it
  6.1089    # and add multilib dir if necessary.
  6.1090    lt_tmp_lt_search_path_spec=
  6.1091 @@ -2772,7 +2894,7 @@
  6.1092  	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  6.1093      fi
  6.1094    done
  6.1095 -  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  6.1096 +  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  6.1097  BEGIN {RS=" "; FS="/|\n";} {
  6.1098    lt_foo="";
  6.1099    lt_count=0;
  6.1100 @@ -2792,7 +2914,13 @@
  6.1101    if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  6.1102    if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  6.1103  }'`
  6.1104 -  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  6.1105 +  # AWK program above erroneously prepends '/' to C:/dos/paths
  6.1106 +  # for these hosts.
  6.1107 +  case $host_os in
  6.1108 +    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  6.1109 +      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  6.1110 +  esac
  6.1111 +  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  6.1112  else
  6.1113    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6.1114  fi])
  6.1115 @@ -2818,7 +2946,7 @@
  6.1116  
  6.1117  case $host_os in
  6.1118  aix3*)
  6.1119 -  version_type=linux
  6.1120 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1121    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6.1122    shlibpath_var=LIBPATH
  6.1123  
  6.1124 @@ -2827,7 +2955,7 @@
  6.1125    ;;
  6.1126  
  6.1127  aix[[4-9]]*)
  6.1128 -  version_type=linux
  6.1129 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1130    need_lib_prefix=no
  6.1131    need_version=no
  6.1132    hardcode_into_libs=yes
  6.1133 @@ -2880,7 +3008,7 @@
  6.1134    m68k)
  6.1135      library_names_spec='$libname.ixlibrary $libname.a'
  6.1136      # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6.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'
  6.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'
  6.1139      ;;
  6.1140    esac
  6.1141    ;;
  6.1142 @@ -2892,7 +3020,7 @@
  6.1143    ;;
  6.1144  
  6.1145  bsdi[[45]]*)
  6.1146 -  version_type=linux
  6.1147 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1148    need_version=no
  6.1149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1150    soname_spec='${libname}${release}${shared_ext}$major'
  6.1151 @@ -2911,8 +3039,9 @@
  6.1152    need_version=no
  6.1153    need_lib_prefix=no
  6.1154  
  6.1155 -  case $GCC,$host_os in
  6.1156 -  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  6.1157 +  case $GCC,$cc_basename in
  6.1158 +  yes,*)
  6.1159 +    # gcc
  6.1160      library_names_spec='$libname.dll.a'
  6.1161      # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6.1162      postinstall_cmds='base_file=`basename \${file}`~
  6.1163 @@ -2932,39 +3061,84 @@
  6.1164      case $host_os in
  6.1165      cygwin*)
  6.1166        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6.1167 -      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1168 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  6.1169 -      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6.1170 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1171 +m4_if([$1], [],[
  6.1172 +      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  6.1173        ;;
  6.1174      mingw* | cegcc*)
  6.1175        # MinGW DLLs use traditional 'lib' prefix
  6.1176 -      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1177 -      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  6.1178 -      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6.1179 -      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  6.1180 -        # It is most probably a Windows format PATH printed by
  6.1181 -        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6.1182 -        # path with ; separators, and with drive letters. We can handle the
  6.1183 -        # drive letters (cygwin fileutils understands them), so leave them,
  6.1184 -        # especially as we might pass files found there to a mingw objdump,
  6.1185 -        # which wouldn't understand a cygwinified path. Ahh.
  6.1186 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6.1187 -      else
  6.1188 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  6.1189 -      fi
  6.1190 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1191        ;;
  6.1192      pw32*)
  6.1193        # pw32 DLLs use 'pw' prefix rather than 'lib'
  6.1194        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1195        ;;
  6.1196      esac
  6.1197 +    dynamic_linker='Win32 ld.exe'
  6.1198      ;;
  6.1199  
  6.1200 +  *,cl*)
  6.1201 +    # Native MSVC
  6.1202 +    libname_spec='$name'
  6.1203 +    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  6.1204 +    library_names_spec='${libname}.dll.lib'
  6.1205 +
  6.1206 +    case $build_os in
  6.1207 +    mingw*)
  6.1208 +      sys_lib_search_path_spec=
  6.1209 +      lt_save_ifs=$IFS
  6.1210 +      IFS=';'
  6.1211 +      for lt_path in $LIB
  6.1212 +      do
  6.1213 +        IFS=$lt_save_ifs
  6.1214 +        # Let DOS variable expansion print the short 8.3 style file name.
  6.1215 +        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  6.1216 +        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  6.1217 +      done
  6.1218 +      IFS=$lt_save_ifs
  6.1219 +      # Convert to MSYS style.
  6.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|^ ||'`
  6.1221 +      ;;
  6.1222 +    cygwin*)
  6.1223 +      # Convert to unix form, then to dos form, then back to unix form
  6.1224 +      # but this time dos style (no spaces!) so that the unix form looks
  6.1225 +      # like /cygdrive/c/PROGRA~1:/cygdr...
  6.1226 +      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  6.1227 +      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  6.1228 +      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6.1229 +      ;;
  6.1230 +    *)
  6.1231 +      sys_lib_search_path_spec="$LIB"
  6.1232 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  6.1233 +        # It is most probably a Windows format PATH.
  6.1234 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6.1235 +      else
  6.1236 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6.1237 +      fi
  6.1238 +      # FIXME: find the short name or the path components, as spaces are
  6.1239 +      # common. (e.g. "Program Files" -> "PROGRA~1")
  6.1240 +      ;;
  6.1241 +    esac
  6.1242 +
  6.1243 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6.1244 +    postinstall_cmds='base_file=`basename \${file}`~
  6.1245 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  6.1246 +      dldir=$destdir/`dirname \$dlpath`~
  6.1247 +      test -d \$dldir || mkdir -p \$dldir~
  6.1248 +      $install_prog $dir/$dlname \$dldir/$dlname'
  6.1249 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6.1250 +      dlpath=$dir/\$dldll~
  6.1251 +       $RM \$dlpath'
  6.1252 +    shlibpath_overrides_runpath=yes
  6.1253 +    dynamic_linker='Win32 link.exe'
  6.1254 +    ;;
  6.1255 +
  6.1256    *)
  6.1257 +    # Assume MSVC wrapper
  6.1258      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6.1259 +    dynamic_linker='Win32 ld.exe'
  6.1260      ;;
  6.1261    esac
  6.1262 -  dynamic_linker='Win32 ld.exe'
  6.1263    # FIXME: first we should search . and the directory the executable is in
  6.1264    shlibpath_var=PATH
  6.1265    ;;
  6.1266 @@ -2985,7 +3159,7 @@
  6.1267    ;;
  6.1268  
  6.1269  dgux*)
  6.1270 -  version_type=linux
  6.1271 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1272    need_lib_prefix=no
  6.1273    need_version=no
  6.1274    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6.1275 @@ -2993,10 +3167,6 @@
  6.1276    shlibpath_var=LD_LIBRARY_PATH
  6.1277    ;;
  6.1278  
  6.1279 -freebsd1*)
  6.1280 -  dynamic_linker=no
  6.1281 -  ;;
  6.1282 -
  6.1283  freebsd* | dragonfly*)
  6.1284    # DragonFly does not have aout.  When/if they implement a new
  6.1285    # versioning mechanism, adjust this.
  6.1286 @@ -3004,7 +3174,7 @@
  6.1287      objformat=`/usr/bin/objformat`
  6.1288    else
  6.1289      case $host_os in
  6.1290 -    freebsd[[123]]*) objformat=aout ;;
  6.1291 +    freebsd[[23]].*) objformat=aout ;;
  6.1292      *) objformat=elf ;;
  6.1293      esac
  6.1294    fi
  6.1295 @@ -3022,7 +3192,7 @@
  6.1296    esac
  6.1297    shlibpath_var=LD_LIBRARY_PATH
  6.1298    case $host_os in
  6.1299 -  freebsd2*)
  6.1300 +  freebsd2.*)
  6.1301      shlibpath_overrides_runpath=yes
  6.1302      ;;
  6.1303    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  6.1304 @@ -3042,12 +3212,26 @@
  6.1305    ;;
  6.1306  
  6.1307  gnu*)
  6.1308 -  version_type=linux
  6.1309 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1310    need_lib_prefix=no
  6.1311    need_version=no
  6.1312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6.1313    soname_spec='${libname}${release}${shared_ext}$major'
  6.1314    shlibpath_var=LD_LIBRARY_PATH
  6.1315 +  shlibpath_overrides_runpath=no
  6.1316 +  hardcode_into_libs=yes
  6.1317 +  ;;
  6.1318 +
  6.1319 +haiku*)
  6.1320 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1321 +  need_lib_prefix=no
  6.1322 +  need_version=no
  6.1323 +  dynamic_linker="$host_os runtime_loader"
  6.1324 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6.1325 +  soname_spec='${libname}${release}${shared_ext}$major'
  6.1326 +  shlibpath_var=LIBRARY_PATH
  6.1327 +  shlibpath_overrides_runpath=yes
  6.1328 +  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  6.1329    hardcode_into_libs=yes
  6.1330    ;;
  6.1331  
  6.1332 @@ -3093,12 +3277,14 @@
  6.1333      soname_spec='${libname}${release}${shared_ext}$major'
  6.1334      ;;
  6.1335    esac
  6.1336 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  6.1337 +  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  6.1338    postinstall_cmds='chmod 555 $lib'
  6.1339 +  # or fails outright, so override atomically:
  6.1340 +  install_override_mode=555
  6.1341    ;;
  6.1342  
  6.1343  interix[[3-9]]*)
  6.1344 -  version_type=linux
  6.1345 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1346    need_lib_prefix=no
  6.1347    need_version=no
  6.1348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6.1349 @@ -3114,7 +3300,7 @@
  6.1350      nonstopux*) version_type=nonstopux ;;
  6.1351      *)
  6.1352  	if test "$lt_cv_prog_gnu_ld" = yes; then
  6.1353 -		version_type=linux
  6.1354 +		version_type=linux # correct to gnu/linux during the next big refactor
  6.1355  	else
  6.1356  		version_type=irix
  6.1357  	fi ;;
  6.1358 @@ -3151,9 +3337,9 @@
  6.1359    dynamic_linker=no
  6.1360    ;;
  6.1361  
  6.1362 -# This must be Linux ELF.
  6.1363 -linux* | k*bsd*-gnu)
  6.1364 -  version_type=linux
  6.1365 +# This must be glibc/ELF.
  6.1366 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6.1367 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1368    need_lib_prefix=no
  6.1369    need_version=no
  6.1370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1371 @@ -3161,16 +3347,21 @@
  6.1372    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6.1373    shlibpath_var=LD_LIBRARY_PATH
  6.1374    shlibpath_overrides_runpath=no
  6.1375 +
  6.1376    # Some binutils ld are patched to set DT_RUNPATH
  6.1377 -  save_LDFLAGS=$LDFLAGS
  6.1378 -  save_libdir=$libdir
  6.1379 -  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  6.1380 -       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  6.1381 -  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  6.1382 -    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  6.1383 -       [shlibpath_overrides_runpath=yes])])
  6.1384 -  LDFLAGS=$save_LDFLAGS
  6.1385 -  libdir=$save_libdir
  6.1386 +  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  6.1387 +    [lt_cv_shlibpath_overrides_runpath=no
  6.1388 +    save_LDFLAGS=$LDFLAGS
  6.1389 +    save_libdir=$libdir
  6.1390 +    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  6.1391 +	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  6.1392 +    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  6.1393 +      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  6.1394 +	 [lt_cv_shlibpath_overrides_runpath=yes])])
  6.1395 +    LDFLAGS=$save_LDFLAGS
  6.1396 +    libdir=$save_libdir
  6.1397 +    ])
  6.1398 +  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  6.1399  
  6.1400    # This implies no fast_install, which is unacceptable.
  6.1401    # Some rework will be needed to allow for fast_install
  6.1402 @@ -3179,7 +3370,7 @@
  6.1403  
  6.1404    # Append ld.so.conf contents to the search path
  6.1405    if test -f /etc/ld.so.conf; then
  6.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' ' '`
  6.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' ' '`
  6.1408      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6.1409    fi
  6.1410  
  6.1411 @@ -3211,7 +3402,7 @@
  6.1412    ;;
  6.1413  
  6.1414  newsos6)
  6.1415 -  version_type=linux
  6.1416 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1418    shlibpath_var=LD_LIBRARY_PATH
  6.1419    shlibpath_overrides_runpath=yes
  6.1420 @@ -3280,7 +3471,7 @@
  6.1421    ;;
  6.1422  
  6.1423  solaris*)
  6.1424 -  version_type=linux
  6.1425 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1426    need_lib_prefix=no
  6.1427    need_version=no
  6.1428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1429 @@ -3305,7 +3496,7 @@
  6.1430    ;;
  6.1431  
  6.1432  sysv4 | sysv4.3*)
  6.1433 -  version_type=linux
  6.1434 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1436    soname_spec='${libname}${release}${shared_ext}$major'
  6.1437    shlibpath_var=LD_LIBRARY_PATH
  6.1438 @@ -3329,7 +3520,7 @@
  6.1439  
  6.1440  sysv4*MP*)
  6.1441    if test -d /usr/nec ;then
  6.1442 -    version_type=linux
  6.1443 +    version_type=linux # correct to gnu/linux during the next big refactor
  6.1444      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  6.1445      soname_spec='$libname${shared_ext}.$major'
  6.1446      shlibpath_var=LD_LIBRARY_PATH
  6.1447 @@ -3360,7 +3551,7 @@
  6.1448  
  6.1449  tpf*)
  6.1450    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  6.1451 -  version_type=linux
  6.1452 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1453    need_lib_prefix=no
  6.1454    need_version=no
  6.1455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1456 @@ -3370,7 +3561,7 @@
  6.1457    ;;
  6.1458  
  6.1459  uts4*)
  6.1460 -  version_type=linux
  6.1461 +  version_type=linux # correct to gnu/linux during the next big refactor
  6.1462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6.1463    soname_spec='${libname}${release}${shared_ext}$major'
  6.1464    shlibpath_var=LD_LIBRARY_PATH
  6.1465 @@ -3412,6 +3603,8 @@
  6.1466      The last name is the one that the linker finds with -lNAME]])
  6.1467  _LT_DECL([], [soname_spec], [1],
  6.1468      [[The coded name of the library, if different from the real name]])
  6.1469 +_LT_DECL([], [install_override_mode], [1],
  6.1470 +    [Permission mode override for installation of shared libraries])
  6.1471  _LT_DECL([], [postinstall_cmds], [2],
  6.1472      [Command to use after installation of a shared archive])
  6.1473  _LT_DECL([], [postuninstall_cmds], [2],
  6.1474 @@ -3524,6 +3717,7 @@
  6.1475  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  6.1476  m4_require([_LT_DECL_SED])dnl
  6.1477  m4_require([_LT_DECL_EGREP])dnl
  6.1478 +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  6.1479  
  6.1480  AC_ARG_WITH([gnu-ld],
  6.1481      [AS_HELP_STRING([--with-gnu-ld],
  6.1482 @@ -3645,6 +3839,11 @@
  6.1483  esac
  6.1484  reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6.1485  case $host_os in
  6.1486 +  cygwin* | mingw* | pw32* | cegcc*)
  6.1487 +    if test "$GCC" != yes; then
  6.1488 +      reload_cmds=false
  6.1489 +    fi
  6.1490 +    ;;
  6.1491    darwin*)
  6.1492      if test "$GCC" = yes; then
  6.1493        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6.1494 @@ -3653,8 +3852,8 @@
  6.1495      fi
  6.1496      ;;
  6.1497  esac
  6.1498 -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  6.1499 -_LT_DECL([], [reload_cmds], [2])dnl
  6.1500 +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  6.1501 +_LT_TAGDECL([], [reload_cmds], [2])dnl
  6.1502  ])# _LT_CMD_RELOAD
  6.1503  
  6.1504  
  6.1505 @@ -3699,7 +3898,6 @@
  6.1506  cygwin*)
  6.1507    # func_win32_libid is a shell function defined in ltmain.sh
  6.1508    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6.1509 -  lt_cv_deplibs_check_method=pass_all
  6.1510    lt_cv_file_magic_cmd='func_win32_libid'
  6.1511    ;;
  6.1512  
  6.1513 @@ -3707,17 +3905,18 @@
  6.1514    # Base MSYS/MinGW do not provide the 'file' command needed by
  6.1515    # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6.1516    # unless we find 'file', for example because we are cross-compiling.
  6.1517 -  if ( file / ) >/dev/null 2>&1; then
  6.1518 +  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6.1519 +  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6.1520      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6.1521      lt_cv_file_magic_cmd='func_win32_libid'
  6.1522    else
  6.1523 +    # Keep this pattern in sync with the one in func_win32_libid.
  6.1524      lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6.1525      lt_cv_file_magic_cmd='$OBJDUMP -f'
  6.1526    fi
  6.1527 -  lt_cv_deplibs_check_method=pass_all
  6.1528    ;;
  6.1529  
  6.1530 -cegcc)
  6.1531 +cegcc*)
  6.1532    # use the weaker test based on 'objdump'. See mingw*.
  6.1533    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6.1534    lt_cv_file_magic_cmd='$OBJDUMP -f'
  6.1535 @@ -3747,6 +3946,10 @@
  6.1536    lt_cv_deplibs_check_method=pass_all
  6.1537    ;;
  6.1538  
  6.1539 +haiku*)
  6.1540 +  lt_cv_deplibs_check_method=pass_all
  6.1541 +  ;;
  6.1542 +
  6.1543  hpux10.20* | hpux11*)
  6.1544    lt_cv_file_magic_cmd=/usr/bin/file
  6.1545    case $host_cpu in
  6.1546 @@ -3755,11 +3958,11 @@
  6.1547      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6.1548      ;;
  6.1549    hppa*64*)
  6.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]']
  6.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]']
  6.1552      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6.1553      ;;
  6.1554    *)
  6.1555 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  6.1556 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  6.1557      lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6.1558      ;;
  6.1559    esac
  6.1560 @@ -3780,8 +3983,8 @@
  6.1561    lt_cv_deplibs_check_method=pass_all
  6.1562    ;;
  6.1563  
  6.1564 -# This must be Linux ELF.
  6.1565 -linux* | k*bsd*-gnu)
  6.1566 +# This must be glibc/ELF.
  6.1567 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6.1568    lt_cv_deplibs_check_method=pass_all
  6.1569    ;;
  6.1570  
  6.1571 @@ -3859,6 +4062,21 @@
  6.1572    ;;
  6.1573  esac
  6.1574  ])
  6.1575 +
  6.1576 +file_magic_glob=
  6.1577 +want_nocaseglob=no
  6.1578 +if test "$build" = "$host"; then
  6.1579 +  case $host_os in
  6.1580 +  mingw* | pw32*)
  6.1581 +    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6.1582 +      want_nocaseglob=yes
  6.1583 +    else
  6.1584 +      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  6.1585 +    fi
  6.1586 +    ;;
  6.1587 +  esac
  6.1588 +fi
  6.1589 +
  6.1590  file_magic_cmd=$lt_cv_file_magic_cmd
  6.1591  deplibs_check_method=$lt_cv_deplibs_check_method
  6.1592  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6.1593 @@ -3866,7 +4084,11 @@
  6.1594  _LT_DECL([], [deplibs_check_method], [1],
  6.1595      [Method to check whether dependent libraries are shared objects])
  6.1596  _LT_DECL([], [file_magic_cmd], [1],
  6.1597 -    [Command to use when deplibs_check_method == "file_magic"])
  6.1598 +    [Command to use when deplibs_check_method = "file_magic"])
  6.1599 +_LT_DECL([], [file_magic_glob], [1],
  6.1600 +    [How to find potential files when deplibs_check_method = "file_magic"])
  6.1601 +_LT_DECL([], [want_nocaseglob], [1],
  6.1602 +    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  6.1603  ])# _LT_CHECK_MAGIC_METHOD
  6.1604  
  6.1605  
  6.1606 @@ -3923,7 +4145,19 @@
  6.1607    NM="$lt_cv_path_NM"
  6.1608  else
  6.1609    # Didn't find any BSD compatible name lister, look for dumpbin.
  6.1610 -  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6.1611 +  if test -n "$DUMPBIN"; then :
  6.1612 +    # Let the user override the test.
  6.1613 +  else
  6.1614 +    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  6.1615 +    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6.1616 +    *COFF*)
  6.1617 +      DUMPBIN="$DUMPBIN -symbols"
  6.1618 +      ;;
  6.1619 +    *)
  6.1620 +      DUMPBIN=:
  6.1621 +      ;;
  6.1622 +    esac
  6.1623 +  fi
  6.1624    AC_SUBST([DUMPBIN])
  6.1625    if test "$DUMPBIN" != ":"; then
  6.1626      NM="$DUMPBIN"
  6.1627 @@ -3936,13 +4170,13 @@
  6.1628  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6.1629    [lt_cv_nm_interface="BSD nm"
  6.1630    echo "int some_variable = 0;" > conftest.$ac_ext
  6.1631 -  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6.1632 +  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6.1633    (eval "$ac_compile" 2>conftest.err)
  6.1634    cat conftest.err >&AS_MESSAGE_LOG_FD
  6.1635 -  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6.1636 +  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6.1637    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6.1638    cat conftest.err >&AS_MESSAGE_LOG_FD
  6.1639 -  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6.1640 +  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  6.1641    cat conftest.out >&AS_MESSAGE_LOG_FD
  6.1642    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6.1643      lt_cv_nm_interface="MS dumpbin"
  6.1644 @@ -3957,6 +4191,67 @@
  6.1645  dnl AC_DEFUN([AM_PROG_NM], [])
  6.1646  dnl AC_DEFUN([AC_PROG_NM], [])
  6.1647  
  6.1648 +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  6.1649 +# --------------------------------
  6.1650 +# how to determine the name of the shared library
  6.1651 +# associated with a specific link library.
  6.1652 +#  -- PORTME fill in with the dynamic library characteristics
  6.1653 +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  6.1654 +[m4_require([_LT_DECL_EGREP])
  6.1655 +m4_require([_LT_DECL_OBJDUMP])
  6.1656 +m4_require([_LT_DECL_DLLTOOL])
  6.1657 +AC_CACHE_CHECK([how to associate runtime and link libraries],
  6.1658 +lt_cv_sharedlib_from_linklib_cmd,
  6.1659 +[lt_cv_sharedlib_from_linklib_cmd='unknown'
  6.1660 +
  6.1661 +case $host_os in
  6.1662 +cygwin* | mingw* | pw32* | cegcc*)
  6.1663 +  # two different shell functions defined in ltmain.sh
  6.1664 +  # decide which to use based on capabilities of $DLLTOOL
  6.1665 +  case `$DLLTOOL --help 2>&1` in
  6.1666 +  *--identify-strict*)
  6.1667 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6.1668 +    ;;
  6.1669 +  *)
  6.1670 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6.1671 +    ;;
  6.1672 +  esac
  6.1673 +  ;;
  6.1674 +*)
  6.1675 +  # fallback: assume linklib IS sharedlib
  6.1676 +  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6.1677 +  ;;
  6.1678 +esac
  6.1679 +])
  6.1680 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6.1681 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6.1682 +
  6.1683 +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  6.1684 +    [Command to associate shared and link libraries])
  6.1685 +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  6.1686 +
  6.1687 +
  6.1688 +# _LT_PATH_MANIFEST_TOOL
  6.1689 +# ----------------------
  6.1690 +# locate the manifest tool
  6.1691 +m4_defun([_LT_PATH_MANIFEST_TOOL],
  6.1692 +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  6.1693 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6.1694 +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  6.1695 +  [lt_cv_path_mainfest_tool=no
  6.1696 +  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  6.1697 +  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6.1698 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  6.1699 +  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6.1700 +    lt_cv_path_mainfest_tool=yes
  6.1701 +  fi
  6.1702 +  rm -f conftest*])
  6.1703 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6.1704 +  MANIFEST_TOOL=:
  6.1705 +fi
  6.1706 +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  6.1707 +])# _LT_PATH_MANIFEST_TOOL
  6.1708 +
  6.1709  
  6.1710  # LT_LIB_M
  6.1711  # --------
  6.1712 @@ -3965,7 +4260,7 @@
  6.1713  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6.1714  LIBM=
  6.1715  case $host in
  6.1716 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6.1717 +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  6.1718    # These system don't have libm, or don't need it
  6.1719    ;;
  6.1720  *-ncr-sysv4.3*)
  6.1721 @@ -3993,7 +4288,12 @@
  6.1722  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6.1723  
  6.1724  if test "$GCC" = yes; then
  6.1725 -  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6.1726 +  case $cc_basename in
  6.1727 +  nvcc*)
  6.1728 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  6.1729 +  *)
  6.1730 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  6.1731 +  esac
  6.1732  
  6.1733    _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6.1734      lt_cv_prog_compiler_rtti_exceptions,
  6.1735 @@ -4010,6 +4310,7 @@
  6.1736  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6.1737  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6.1738  AC_REQUIRE([AC_PROG_CC])dnl
  6.1739 +AC_REQUIRE([AC_PROG_AWK])dnl
  6.1740  AC_REQUIRE([LT_PATH_NM])dnl
  6.1741  AC_REQUIRE([LT_PATH_LD])dnl
  6.1742  m4_require([_LT_DECL_SED])dnl
  6.1743 @@ -4077,8 +4378,8 @@
  6.1744  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6.1745  
  6.1746  # Transform an extracted symbol line into symbol name and symbol address
  6.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'"
  6.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'"
  6.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'"
  6.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'"
  6.1751  
  6.1752  # Handle CRLF in mingw tool chain
  6.1753  opt_cr=
  6.1754 @@ -4102,6 +4403,7 @@
  6.1755      # which start with @ or ?.
  6.1756      lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6.1757  "     {last_section=section; section=\$ 3};"\
  6.1758 +"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6.1759  "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6.1760  "     \$ 0!~/External *\|/{next};"\
  6.1761  "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6.1762 @@ -4114,6 +4416,7 @@
  6.1763    else
  6.1764      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6.1765    fi
  6.1766 +  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6.1767  
  6.1768    # Check to see that the pipe works correctly.
  6.1769    pipe_works=no
  6.1770 @@ -4135,7 +4438,7 @@
  6.1771    if AC_TRY_EVAL(ac_compile); then
  6.1772      # Now try to grab the symbols.
  6.1773      nlist=conftest.nm
  6.1774 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6.1775 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  6.1776        # Try sorting and uniquifying the output.
  6.1777        if sort "$nlist" | uniq > "$nlist"T; then
  6.1778  	mv -f "$nlist"T "$nlist"
  6.1779 @@ -4147,6 +4450,18 @@
  6.1780        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6.1781  	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6.1782  	  cat <<_LT_EOF > conftest.$ac_ext
  6.1783 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  6.1784 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6.1785 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  6.1786 +   relocations are performed -- see ld's documentation on pseudo-relocs.  */
  6.1787 +# define LT@&t@_DLSYM_CONST
  6.1788 +#elif defined(__osf__)
  6.1789 +/* This system does not cope well with relocations in const data.  */
  6.1790 +# define LT@&t@_DLSYM_CONST
  6.1791 +#else
  6.1792 +# define LT@&t@_DLSYM_CONST const
  6.1793 +#endif
  6.1794 +
  6.1795  #ifdef __cplusplus
  6.1796  extern "C" {
  6.1797  #endif
  6.1798 @@ -4158,7 +4473,7 @@
  6.1799  	  cat <<_LT_EOF >> conftest.$ac_ext
  6.1800  
  6.1801  /* The mapping between symbol names and symbols.  */
  6.1802 -const struct {
  6.1803 +LT@&t@_DLSYM_CONST struct {
  6.1804    const char *name;
  6.1805    void       *address;
  6.1806  }
  6.1807 @@ -4184,15 +4499,15 @@
  6.1808  _LT_EOF
  6.1809  	  # Now try linking the two files.
  6.1810  	  mv conftest.$ac_objext conftstm.$ac_objext
  6.1811 -	  lt_save_LIBS="$LIBS"
  6.1812 -	  lt_save_CFLAGS="$CFLAGS"
  6.1813 +	  lt_globsym_save_LIBS=$LIBS
  6.1814 +	  lt_globsym_save_CFLAGS=$CFLAGS
  6.1815  	  LIBS="conftstm.$ac_objext"
  6.1816  	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6.1817  	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6.1818  	    pipe_works=yes
  6.1819  	  fi
  6.1820 -	  LIBS="$lt_save_LIBS"
  6.1821 -	  CFLAGS="$lt_save_CFLAGS"
  6.1822 +	  LIBS=$lt_globsym_save_LIBS
  6.1823 +	  CFLAGS=$lt_globsym_save_CFLAGS
  6.1824  	else
  6.1825  	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6.1826  	fi
  6.1827 @@ -4225,6 +4540,13 @@
  6.1828    AC_MSG_RESULT(ok)
  6.1829  fi
  6.1830  
  6.1831 +# Response file support.
  6.1832 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6.1833 +  nm_file_list_spec='@'
  6.1834 +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  6.1835 +  nm_file_list_spec='@'
  6.1836 +fi
  6.1837 +
  6.1838  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6.1839      [Take the output of nm and produce a listing of raw symbols and C names])
  6.1840  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6.1841 @@ -4235,6 +4557,8 @@
  6.1842  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6.1843      [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6.1844      [Transform the output of nm in a C name address pair when lib prefix is needed])
  6.1845 +_LT_DECL([], [nm_file_list_spec], [1],
  6.1846 +    [Specify filename containing input files for $NM])
  6.1847  ]) # _LT_CMD_GLOBAL_SYMBOLS
  6.1848  
  6.1849  
  6.1850 @@ -4246,7 +4570,6 @@
  6.1851  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6.1852  _LT_TAGVAR(lt_prog_compiler_static, $1)=
  6.1853  
  6.1854 -AC_MSG_CHECKING([for $compiler option to produce PIC])
  6.1855  m4_if([$1], [CXX], [
  6.1856    # C++ specific cases for pic, static, wl, etc.
  6.1857    if test "$GXX" = yes; then
  6.1858 @@ -4297,6 +4620,11 @@
  6.1859        # DJGPP does not support shared libraries at all
  6.1860        _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6.1861        ;;
  6.1862 +    haiku*)
  6.1863 +      # PIC is the default for Haiku.
  6.1864 +      # The "-static" flag exists, but is broken.
  6.1865 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  6.1866 +      ;;
  6.1867      interix[[3-9]]*)
  6.1868        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6.1869        # Instead, we relocate shared libraries at runtime.
  6.1870 @@ -4346,6 +4674,12 @@
  6.1871  	  ;;
  6.1872  	esac
  6.1873  	;;
  6.1874 +      mingw* | cygwin* | os2* | pw32* | cegcc*)
  6.1875 +	# This hack is so that the source file can tell whether it is being
  6.1876 +	# built for inclusion in a dll (and should export symbols for example).
  6.1877 +	m4_if([$1], [GCJ], [],
  6.1878 +	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6.1879 +	;;
  6.1880        dgux*)
  6.1881  	case $cc_basename in
  6.1882  	  ec++*)
  6.1883 @@ -4402,7 +4736,7 @@
  6.1884  	    ;;
  6.1885  	esac
  6.1886  	;;
  6.1887 -      linux* | k*bsd*-gnu)
  6.1888 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6.1889  	case $cc_basename in
  6.1890  	  KCC*)
  6.1891  	    # KAI C++ Compiler
  6.1892 @@ -4435,8 +4769,8 @@
  6.1893  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6.1894  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6.1895  	    ;;
  6.1896 -	  xlc* | xlC*)
  6.1897 -	    # IBM XL 8.0 on PPC
  6.1898 +	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  6.1899 +	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  6.1900  	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.1901  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6.1902  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6.1903 @@ -4498,7 +4832,7 @@
  6.1904  	;;
  6.1905        solaris*)
  6.1906  	case $cc_basename in
  6.1907 -	  CC*)
  6.1908 +	  CC* | sunCC*)
  6.1909  	    # Sun C++ 4.2, 5.x and Centerline C++
  6.1910  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.1911  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.1912 @@ -4602,6 +4936,12 @@
  6.1913        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6.1914        ;;
  6.1915  
  6.1916 +    haiku*)
  6.1917 +      # PIC is the default for Haiku.
  6.1918 +      # The "-static" flag exists, but is broken.
  6.1919 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  6.1920 +      ;;
  6.1921 +
  6.1922      hpux*)
  6.1923        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6.1924        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  6.1925 @@ -4644,6 +4984,15 @@
  6.1926        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6.1927        ;;
  6.1928      esac
  6.1929 +
  6.1930 +    case $cc_basename in
  6.1931 +    nvcc*) # Cuda Compiler Driver 2.2
  6.1932 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  6.1933 +      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6.1934 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  6.1935 +      fi
  6.1936 +      ;;
  6.1937 +    esac
  6.1938    else
  6.1939      # PORTME Check for flag to pass linker flags through the system compiler.
  6.1940      case $host_os in
  6.1941 @@ -4686,7 +5035,7 @@
  6.1942        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6.1943        ;;
  6.1944  
  6.1945 -    linux* | k*bsd*-gnu)
  6.1946 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6.1947        case $cc_basename in
  6.1948        # old Intel for x86_64 which still supported -KPIC.
  6.1949        ecc*)
  6.1950 @@ -4707,7 +5056,13 @@
  6.1951  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  6.1952  	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  6.1953  	;;
  6.1954 -      pgcc* | pgf77* | pgf90* | pgf95*)
  6.1955 +      nagfor*)
  6.1956 +	# NAG Fortran compiler
  6.1957 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  6.1958 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6.1959 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.1960 +	;;
  6.1961 +      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6.1962          # Portland Group compilers (*not* the Pentium gcc compiler,
  6.1963  	# which looks to be a dead project)
  6.1964  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.1965 @@ -4719,25 +5074,40 @@
  6.1966          # All Alpha code is PIC.
  6.1967          _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6.1968          ;;
  6.1969 -      xl*)
  6.1970 -	# IBM XL C 8.0/Fortran 10.1 on PPC
  6.1971 +      xl* | bgxl* | bgf* | mpixl*)
  6.1972 +	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6.1973  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.1974  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6.1975  	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6.1976  	;;
  6.1977        *)
  6.1978  	case `$CC -V 2>&1 | sed 5q` in
  6.1979 +	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  6.1980 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6.1981 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.1982 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.1983 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  6.1984 +	  ;;
  6.1985 +	*Sun\ F* | *Sun*Fortran*)
  6.1986 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.1987 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.1988 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6.1989 +	  ;;
  6.1990  	*Sun\ C*)
  6.1991  	  # Sun C 5.9
  6.1992  	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.1993  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.1994  	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.1995  	  ;;
  6.1996 -	*Sun\ F*)
  6.1997 -	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6.1998 -	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.1999 +        *Intel*\ [[CF]]*Compiler*)
  6.2000 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.2001 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6.2002 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6.2003 +	  ;;
  6.2004 +	*Portland\ Group*)
  6.2005 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6.2006 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6.2007  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.2008 -	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  6.2009  	  ;;
  6.2010  	esac
  6.2011  	;;
  6.2012 @@ -4769,7 +5139,7 @@
  6.2013        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6.2014        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6.2015        case $cc_basename in
  6.2016 -      f77* | f90* | f95*)
  6.2017 +      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6.2018  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6.2019        *)
  6.2020  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6.2021 @@ -4826,9 +5196,11 @@
  6.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],[])])"
  6.2023      ;;
  6.2024  esac
  6.2025 -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  6.2026 -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  6.2027 -	[How to pass a linker flag through the compiler])
  6.2028 +
  6.2029 +AC_CACHE_CHECK([for $compiler option to produce PIC],
  6.2030 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  6.2031 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  6.2032 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  6.2033  
  6.2034  #
  6.2035  # Check to make sure the PIC flag actually works.
  6.2036 @@ -4847,6 +5219,8 @@
  6.2037  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  6.2038  	[Additional compiler flags for building library objects])
  6.2039  
  6.2040 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  6.2041 +	[How to pass a linker flag through the compiler])
  6.2042  #
  6.2043  # Check to make sure the static flag actually works.
  6.2044  #
  6.2045 @@ -4867,6 +5241,7 @@
  6.2046  m4_defun([_LT_LINKER_SHLIBS],
  6.2047  [AC_REQUIRE([LT_PATH_LD])dnl
  6.2048  AC_REQUIRE([LT_PATH_NM])dnl
  6.2049 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  6.2050  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6.2051  m4_require([_LT_DECL_EGREP])dnl
  6.2052  m4_require([_LT_DECL_SED])dnl
  6.2053 @@ -4875,27 +5250,37 @@
  6.2054  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6.2055  m4_if([$1], [CXX], [
  6.2056    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6.2057 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6.2058    case $host_os in
  6.2059    aix[[4-9]]*)
  6.2060      # If we're using GNU nm, then we don't want the "-C" option.
  6.2061      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6.2062 +    # Also, AIX nm treats weak defined symbols like other global defined
  6.2063 +    # symbols, whereas GNU nm marks them as "W".
  6.2064      if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6.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'
  6.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'
  6.2067      else
  6.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'
  6.2069      fi
  6.2070      ;;
  6.2071    pw32*)
  6.2072      _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  6.2073 -  ;;
  6.2074 +    ;;
  6.2075    cygwin* | mingw* | cegcc*)
  6.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'
  6.2077 -  ;;
  6.2078 +    case $cc_basename in
  6.2079 +    cl*)
  6.2080 +      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  6.2081 +      ;;
  6.2082 +    *)
  6.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'
  6.2084 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  6.2085 +      ;;
  6.2086 +    esac
  6.2087 +    ;;
  6.2088    *)
  6.2089      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6.2090 -  ;;
  6.2091 +    ;;
  6.2092    esac
  6.2093 -  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6.2094  ], [
  6.2095    runpath_var=
  6.2096    _LT_TAGVAR(allow_undefined_flag, $1)=
  6.2097 @@ -4910,7 +5295,6 @@
  6.2098    _LT_TAGVAR(hardcode_direct, $1)=no
  6.2099    _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6.2100    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6.2101 -  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6.2102    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6.2103    _LT_TAGVAR(hardcode_minus_L, $1)=no
  6.2104    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6.2105 @@ -4958,7 +5342,33 @@
  6.2106    esac
  6.2107  
  6.2108    _LT_TAGVAR(ld_shlibs, $1)=yes
  6.2109 +
  6.2110 +  # On some targets, GNU ld is compatible enough with the native linker
  6.2111 +  # that we're better off using the native interface for both.
  6.2112 +  lt_use_gnu_ld_interface=no
  6.2113    if test "$with_gnu_ld" = yes; then
  6.2114 +    case $host_os in
  6.2115 +      aix*)
  6.2116 +	# The AIX port of GNU ld has always aspired to compatibility
  6.2117 +	# with the native linker.  However, as the warning in the GNU ld
  6.2118 +	# block says, versions before 2.19.5* couldn't really create working
  6.2119 +	# shared libraries, regardless of the interface used.
  6.2120 +	case `$LD -v 2>&1` in
  6.2121 +	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  6.2122 +	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  6.2123 +	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  6.2124 +	  *)
  6.2125 +	    lt_use_gnu_ld_interface=yes
  6.2126 +	    ;;
  6.2127 +	esac
  6.2128 +	;;
  6.2129 +      *)
  6.2130 +	lt_use_gnu_ld_interface=yes
  6.2131 +	;;
  6.2132 +    esac
  6.2133 +  fi
  6.2134 +
  6.2135 +  if test "$lt_use_gnu_ld_interface" = yes; then
  6.2136      # If archive_cmds runs LD, not CC, wlarc should be empty
  6.2137      wlarc='${wl}'
  6.2138  
  6.2139 @@ -4976,6 +5386,7 @@
  6.2140      fi
  6.2141      supports_anon_versioning=no
  6.2142      case `$LD -v 2>&1` in
  6.2143 +      *GNU\ gold*) supports_anon_versioning=yes ;;
  6.2144        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  6.2145        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6.2146        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6.2147 @@ -4991,11 +5402,12 @@
  6.2148  	_LT_TAGVAR(ld_shlibs, $1)=no
  6.2149  	cat <<_LT_EOF 1>&2
  6.2150  
  6.2151 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6.2152 +*** Warning: the GNU linker, at least up to release 2.19, is reported
  6.2153  *** to be unable to reliably create shared libraries on AIX.
  6.2154  *** Therefore, libtool is disabling shared libraries support.  If you
  6.2155 -*** really care for shared libraries, you may want to modify your PATH
  6.2156 -*** so that a non-GNU linker is found, and then restart.
  6.2157 +*** really care for shared libraries, you may want to install binutils
  6.2158 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  6.2159 +*** You will then need to restart the configuration process.
  6.2160  
  6.2161  _LT_EOF
  6.2162        fi
  6.2163 @@ -5031,10 +5443,12 @@
  6.2164        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6.2165        # as there is no search path for DLLs.
  6.2166        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6.2167 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6.2168        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2169        _LT_TAGVAR(always_export_symbols, $1)=no
  6.2170        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.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'
  6.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'
  6.2173 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  6.2174  
  6.2175        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6.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'
  6.2177 @@ -5052,6 +5466,11 @@
  6.2178        fi
  6.2179        ;;
  6.2180  
  6.2181 +    haiku*)
  6.2182 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.2183 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  6.2184 +      ;;
  6.2185 +
  6.2186      interix[[3-9]]*)
  6.2187        _LT_TAGVAR(hardcode_direct, $1)=no
  6.2188        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6.2189 @@ -5067,7 +5486,7 @@
  6.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'
  6.2191        ;;
  6.2192  
  6.2193 -    gnu* | linux* | tpf* | k*bsd*-gnu)
  6.2194 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  6.2195        tmp_diet=no
  6.2196        if test "$host_os" = linux-dietlibc; then
  6.2197  	case $cc_basename in
  6.2198 @@ -5077,15 +5496,16 @@
  6.2199        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6.2200  	 && test "$tmp_diet" = no
  6.2201        then
  6.2202 -	tmp_addflag=
  6.2203 +	tmp_addflag=' $pic_flag'
  6.2204  	tmp_sharedflag='-shared'
  6.2205  	case $cc_basename,$host_cpu in
  6.2206          pgcc*)				# Portland Group C compiler
  6.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'
  6.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'
  6.2209  	  tmp_addflag=' $pic_flag'
  6.2210  	  ;;
  6.2211 -	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  6.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'
  6.2213 +	pgf77* | pgf90* | pgf95* | pgfortran*)
  6.2214 +					# Portland Group f77 and f90 compilers
  6.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'
  6.2216  	  tmp_addflag=' $pic_flag -Mnomain' ;;
  6.2217  	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  6.2218  	  tmp_addflag=' -i_dynamic' ;;
  6.2219 @@ -5096,13 +5516,17 @@
  6.2220  	lf95*)				# Lahey Fortran 8.1
  6.2221  	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6.2222  	  tmp_sharedflag='--shared' ;;
  6.2223 -	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  6.2224 +	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6.2225  	  tmp_sharedflag='-qmkshrobj'
  6.2226  	  tmp_addflag= ;;
  6.2227 +	nvcc*)	# Cuda Compiler Driver 2.2
  6.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'
  6.2229 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  6.2230 +	  ;;
  6.2231  	esac
  6.2232  	case `$CC -V 2>&1 | sed 5q` in
  6.2233  	*Sun\ C*)			# Sun C 5.9
  6.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'
  6.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'
  6.2236  	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  6.2237  	  tmp_sharedflag='-G' ;;
  6.2238  	*Sun\ F*)			# Sun Fortran 8.3
  6.2239 @@ -5118,17 +5542,16 @@
  6.2240          fi
  6.2241  
  6.2242  	case $cc_basename in
  6.2243 -	xlf*)
  6.2244 +	xlf* | bgf* | bgxlf* | mpixlf*)
  6.2245  	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6.2246  	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  6.2247 -	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6.2248 -	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6.2249 -	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6.2250 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.2251 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  6.2252  	  if test "x$supports_anon_versioning" = xyes; then
  6.2253  	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6.2254  	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6.2255  	      echo "local: *; };" >> $output_objdir/$libname.ver~
  6.2256 -	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6.2257 +	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6.2258  	  fi
  6.2259  	  ;;
  6.2260  	esac
  6.2261 @@ -5142,8 +5565,8 @@
  6.2262  	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6.2263  	wlarc=
  6.2264        else
  6.2265 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2267 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2269        fi
  6.2270        ;;
  6.2271  
  6.2272 @@ -5161,8 +5584,8 @@
  6.2273  
  6.2274  _LT_EOF
  6.2275        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6.2276 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2278 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2280        else
  6.2281  	_LT_TAGVAR(ld_shlibs, $1)=no
  6.2282        fi
  6.2283 @@ -5208,8 +5631,8 @@
  6.2284  
  6.2285      *)
  6.2286        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6.2287 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2289 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.2291        else
  6.2292  	_LT_TAGVAR(ld_shlibs, $1)=no
  6.2293        fi
  6.2294 @@ -5249,8 +5672,10 @@
  6.2295        else
  6.2296  	# If we're using GNU nm, then we don't want the "-C" option.
  6.2297  	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  6.2298 +	# Also, AIX nm treats weak defined symbols like other global
  6.2299 +	# defined symbols, whereas GNU nm marks them as "W".
  6.2300  	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6.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'
  6.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'
  6.2303  	else
  6.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'
  6.2305  	fi
  6.2306 @@ -5337,9 +5762,9 @@
  6.2307  	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6.2308          # Determine the default libpath from the value encoded in an
  6.2309          # empty executable.
  6.2310 -        _LT_SYS_MODULE_PATH_AIX
  6.2311 +        _LT_SYS_MODULE_PATH_AIX([$1])
  6.2312          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6.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"
  6.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"
  6.2315        else
  6.2316  	if test "$host_cpu" = ia64; then
  6.2317  	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6.2318 @@ -5348,14 +5773,19 @@
  6.2319  	else
  6.2320  	 # Determine the default libpath from the value encoded in an
  6.2321  	 # empty executable.
  6.2322 -	 _LT_SYS_MODULE_PATH_AIX
  6.2323 +	 _LT_SYS_MODULE_PATH_AIX([$1])
  6.2324  	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6.2325  	  # Warning - without using the other run time loading flags,
  6.2326  	  # -berok will link without error, but may produce a broken library.
  6.2327  	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6.2328  	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6.2329 -	  # Exported symbols can be pulled into shared objects from archives
  6.2330 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6.2331 +	  if test "$with_gnu_ld" = yes; then
  6.2332 +	    # We only use this code for GNU lds that support --whole-archive.
  6.2333 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6.2334 +	  else
  6.2335 +	    # Exported symbols can be pulled into shared objects from archives
  6.2336 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6.2337 +	  fi
  6.2338  	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6.2339  	  # This is similar to how AIX traditionally builds its shared libraries.
  6.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'
  6.2341 @@ -5387,20 +5817,64 @@
  6.2342        # Microsoft Visual C++.
  6.2343        # hardcode_libdir_flag_spec is actually meaningless, as there is
  6.2344        # no search path for DLLs.
  6.2345 -      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6.2346 -      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2347 -      # Tell ltmain to make .lib files, not .a files.
  6.2348 -      libext=lib
  6.2349 -      # Tell ltmain to make .dll files, not .so files.
  6.2350 -      shrext_cmds=".dll"
  6.2351 -      # FIXME: Setting linknames here is a bad hack.
  6.2352 -      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6.2353 -      # The linker will automatically build a .lib file if we build a DLL.
  6.2354 -      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6.2355 -      # FIXME: Should let the user specify the lib program.
  6.2356 -      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6.2357 -      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6.2358 -      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2359 +      case $cc_basename in
  6.2360 +      cl*)
  6.2361 +	# Native MSVC
  6.2362 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6.2363 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2364 +	_LT_TAGVAR(always_export_symbols, $1)=yes
  6.2365 +	_LT_TAGVAR(file_list_spec, $1)='@'
  6.2366 +	# Tell ltmain to make .lib files, not .a files.
  6.2367 +	libext=lib
  6.2368 +	# Tell ltmain to make .dll files, not .so files.
  6.2369 +	shrext_cmds=".dll"
  6.2370 +	# FIXME: Setting linknames here is a bad hack.
  6.2371 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6.2372 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6.2373 +	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6.2374 +	  else
  6.2375 +	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6.2376 +	  fi~
  6.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"~
  6.2378 +	  linknames='
  6.2379 +	# The linker will not automatically build a static lib if we build a DLL.
  6.2380 +	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6.2381 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2382 +	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  6.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'
  6.2384 +	# Don't use ranlib
  6.2385 +	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6.2386 +	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6.2387 +	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  6.2388 +	  case $lt_outputfile in
  6.2389 +	    *.exe|*.EXE) ;;
  6.2390 +	    *)
  6.2391 +	      lt_outputfile="$lt_outputfile.exe"
  6.2392 +	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  6.2393 +	      ;;
  6.2394 +	  esac~
  6.2395 +	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6.2396 +	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6.2397 +	    $RM "$lt_outputfile.manifest";
  6.2398 +	  fi'
  6.2399 +	;;
  6.2400 +      *)
  6.2401 +	# Assume MSVC wrapper
  6.2402 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6.2403 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2404 +	# Tell ltmain to make .lib files, not .a files.
  6.2405 +	libext=lib
  6.2406 +	# Tell ltmain to make .dll files, not .so files.
  6.2407 +	shrext_cmds=".dll"
  6.2408 +	# FIXME: Setting linknames here is a bad hack.
  6.2409 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  6.2410 +	# The linker will automatically build a .lib file if we build a DLL.
  6.2411 +	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6.2412 +	# FIXME: Should let the user specify the lib program.
  6.2413 +	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6.2414 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2415 +	;;
  6.2416 +      esac
  6.2417        ;;
  6.2418  
  6.2419      darwin* | rhapsody*)
  6.2420 @@ -5413,10 +5887,6 @@
  6.2421        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6.2422        ;;
  6.2423  
  6.2424 -    freebsd1*)
  6.2425 -      _LT_TAGVAR(ld_shlibs, $1)=no
  6.2426 -      ;;
  6.2427 -
  6.2428      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6.2429      # support.  Future versions do this automatically, but an explicit c++rt0.o
  6.2430      # does not break anything, and helps significantly (at the cost of a little
  6.2431 @@ -5429,7 +5899,7 @@
  6.2432        ;;
  6.2433  
  6.2434      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6.2435 -    freebsd2*)
  6.2436 +    freebsd2.*)
  6.2437        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6.2438        _LT_TAGVAR(hardcode_direct, $1)=yes
  6.2439        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6.2440 @@ -5438,7 +5908,7 @@
  6.2441  
  6.2442      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6.2443      freebsd* | dragonfly*)
  6.2444 -      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6.2445 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6.2446        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6.2447        _LT_TAGVAR(hardcode_direct, $1)=yes
  6.2448        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6.2449 @@ -5446,7 +5916,7 @@
  6.2450  
  6.2451      hpux9*)
  6.2452        if test "$GCC" = yes; then
  6.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'
  6.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'
  6.2455        else
  6.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'
  6.2457        fi
  6.2458 @@ -5461,14 +5931,13 @@
  6.2459        ;;
  6.2460  
  6.2461      hpux10*)
  6.2462 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6.2463 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6.2464 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  6.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'
  6.2466        else
  6.2467  	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6.2468        fi
  6.2469        if test "$with_gnu_ld" = no; then
  6.2470  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6.2471 -	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6.2472  	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6.2473  	_LT_TAGVAR(hardcode_direct, $1)=yes
  6.2474  	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6.2475 @@ -5480,16 +5949,16 @@
  6.2476        ;;
  6.2477  
  6.2478      hpux11*)
  6.2479 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6.2480 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  6.2481  	case $host_cpu in
  6.2482  	hppa*64*)
  6.2483  	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.2484  	  ;;
  6.2485  	ia64*)
  6.2486 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6.2487 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6.2488  	  ;;
  6.2489  	*)
  6.2490 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6.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'
  6.2492  	  ;;
  6.2493  	esac
  6.2494        else
  6.2495 @@ -5501,7 +5970,14 @@
  6.2496  	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6.2497  	  ;;
  6.2498  	*)
  6.2499 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6.2500 +	m4_if($1, [], [
  6.2501 +	  # Older versions of the 11.00 compiler do not understand -b yet
  6.2502 +	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  6.2503 +	  _LT_LINKER_OPTION([if $CC understands -b],
  6.2504 +	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  6.2505 +	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  6.2506 +	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  6.2507 +	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  6.2508  	  ;;
  6.2509  	esac
  6.2510        fi
  6.2511 @@ -5529,19 +6005,34 @@
  6.2512  
  6.2513      irix5* | irix6* | nonstopux*)
  6.2514        if test "$GCC" = yes; then
  6.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'
  6.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'
  6.2517  	# Try to use the -exported_symbol ld option, if it does not
  6.2518  	# work, assume that -exports_file does not work either and
  6.2519  	# implicitly export all symbols.
  6.2520 -        save_LDFLAGS="$LDFLAGS"
  6.2521 -        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6.2522 -        AC_LINK_IFELSE(int foo(void) {},
  6.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'
  6.2524 -        )
  6.2525 -        LDFLAGS="$save_LDFLAGS"
  6.2526 +	# This should be the same for all languages, so no per-tag cache variable.
  6.2527 +	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  6.2528 +	  [lt_cv_irix_exported_symbol],
  6.2529 +	  [save_LDFLAGS="$LDFLAGS"
  6.2530 +	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6.2531 +	   AC_LINK_IFELSE(
  6.2532 +	     [AC_LANG_SOURCE(
  6.2533 +	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  6.2534 +			      [C++], [[int foo (void) { return 0; }]],
  6.2535 +			      [Fortran 77], [[
  6.2536 +      subroutine foo
  6.2537 +      end]],
  6.2538 +			      [Fortran], [[
  6.2539 +      subroutine foo
  6.2540 +      end]])])],
  6.2541 +	      [lt_cv_irix_exported_symbol=yes],
  6.2542 +	      [lt_cv_irix_exported_symbol=no])
  6.2543 +           LDFLAGS="$save_LDFLAGS"])
  6.2544 +	if test "$lt_cv_irix_exported_symbol" = yes; then
  6.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'
  6.2546 +	fi
  6.2547        else
  6.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'
  6.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'
  6.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'
  6.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'
  6.2552        fi
  6.2553        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6.2554        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.2555 @@ -5603,17 +6094,17 @@
  6.2556        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6.2557        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6.2558        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.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'
  6.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'
  6.2561        _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6.2562        ;;
  6.2563  
  6.2564      osf3*)
  6.2565        if test "$GCC" = yes; then
  6.2566  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6.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'
  6.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'
  6.2569        else
  6.2570  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6.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'
  6.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'
  6.2573        fi
  6.2574        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6.2575        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.2576 @@ -5623,13 +6114,13 @@
  6.2577      osf4* | osf5*)	# as osf3* with the addition of -msym flag
  6.2578        if test "$GCC" = yes; then
  6.2579  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6.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'
  6.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'
  6.2582  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.2583        else
  6.2584  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6.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'
  6.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'
  6.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~
  6.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'
  6.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'
  6.2590  
  6.2591  	# Both c and cxx compiler support -rpath directly
  6.2592  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6.2593 @@ -5642,9 +6133,9 @@
  6.2594        _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6.2595        if test "$GCC" = yes; then
  6.2596  	wlarc='${wl}'
  6.2597 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.2598 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.2599  	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6.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'
  6.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'
  6.2602        else
  6.2603  	case `$CC -V 2>&1` in
  6.2604  	*"Compilers 5.0"*)
  6.2605 @@ -5820,36 +6311,38 @@
  6.2606        # Test whether the compiler implicitly links with -lc since on some
  6.2607        # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6.2608        # to ld, don't add -lc before -lgcc.
  6.2609 -      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6.2610 -      $RM conftest*
  6.2611 -      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6.2612 -
  6.2613 -      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6.2614 -        soname=conftest
  6.2615 -        lib=conftest
  6.2616 -        libobjs=conftest.$ac_objext
  6.2617 -        deplibs=
  6.2618 -        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6.2619 -	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6.2620 -        compiler_flags=-v
  6.2621 -        linker_flags=-v
  6.2622 -        verstring=
  6.2623 -        output_objdir=.
  6.2624 -        libname=conftest
  6.2625 -        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6.2626 -        _LT_TAGVAR(allow_undefined_flag, $1)=
  6.2627 -        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6.2628 -        then
  6.2629 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.2630 -        else
  6.2631 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6.2632 -        fi
  6.2633 -        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6.2634 -      else
  6.2635 -        cat conftest.err 1>&5
  6.2636 -      fi
  6.2637 -      $RM conftest*
  6.2638 -      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6.2639 +      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  6.2640 +	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  6.2641 +	[$RM conftest*
  6.2642 +	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6.2643 +
  6.2644 +	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6.2645 +	  soname=conftest
  6.2646 +	  lib=conftest
  6.2647 +	  libobjs=conftest.$ac_objext
  6.2648 +	  deplibs=
  6.2649 +	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6.2650 +	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6.2651 +	  compiler_flags=-v
  6.2652 +	  linker_flags=-v
  6.2653 +	  verstring=
  6.2654 +	  output_objdir=.
  6.2655 +	  libname=conftest
  6.2656 +	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6.2657 +	  _LT_TAGVAR(allow_undefined_flag, $1)=
  6.2658 +	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6.2659 +	  then
  6.2660 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.2661 +	  else
  6.2662 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6.2663 +	  fi
  6.2664 +	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6.2665 +	else
  6.2666 +	  cat conftest.err 1>&5
  6.2667 +	fi
  6.2668 +	$RM conftest*
  6.2669 +	])
  6.2670 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  6.2671        ;;
  6.2672      esac
  6.2673    fi
  6.2674 @@ -5886,9 +6379,6 @@
  6.2675  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6.2676      [Flag to hardcode $libdir into a binary during linking.
  6.2677      This must work even if $libdir does not exist])
  6.2678 -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6.2679 -    [[If ld is used when linking, flag to hardcode $libdir into a binary
  6.2680 -    during linking.  This must work even if $libdir does not exist]])
  6.2681  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6.2682      [Whether we need a single "-rpath" flag with a separated argument])
  6.2683  _LT_TAGDECL([], [hardcode_direct], [0],
  6.2684 @@ -5914,8 +6404,6 @@
  6.2685      to runtime path list])
  6.2686  _LT_TAGDECL([], [link_all_deplibs], [0],
  6.2687      [Whether libtool must link a program against all its dependency libraries])
  6.2688 -_LT_TAGDECL([], [fix_srcfile_path], [1],
  6.2689 -    [Fix the shell variable $srcfile for the compiler])
  6.2690  _LT_TAGDECL([], [always_export_symbols], [0],
  6.2691      [Set to "yes" if exported symbols are required])
  6.2692  _LT_TAGDECL([], [export_symbols_cmds], [2],
  6.2693 @@ -5926,6 +6414,8 @@
  6.2694      [Symbols that must always be exported])
  6.2695  _LT_TAGDECL([], [prelink_cmds], [2],
  6.2696      [Commands necessary for linking programs (against libraries) with templates])
  6.2697 +_LT_TAGDECL([], [postlink_cmds], [2],
  6.2698 +    [Commands necessary for finishing linking programs])
  6.2699  _LT_TAGDECL([], [file_list_spec], [1],
  6.2700      [Specify filename containing input files])
  6.2701  dnl FIXME: Not yet implemented
  6.2702 @@ -6019,14 +6509,15 @@
  6.2703  ])# _LT_LANG_C_CONFIG
  6.2704  
  6.2705  
  6.2706 -# _LT_PROG_CXX
  6.2707 -# ------------
  6.2708 -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  6.2709 -# compiler, we have our own version here.
  6.2710 -m4_defun([_LT_PROG_CXX],
  6.2711 -[
  6.2712 -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  6.2713 -AC_PROG_CXX
  6.2714 +# _LT_LANG_CXX_CONFIG([TAG])
  6.2715 +# --------------------------
  6.2716 +# Ensure that the configuration variables for a C++ compiler are suitably
  6.2717 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  6.2718 +# the compiler configuration to `libtool'.
  6.2719 +m4_defun([_LT_LANG_CXX_CONFIG],
  6.2720 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6.2721 +m4_require([_LT_DECL_EGREP])dnl
  6.2722 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  6.2723  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6.2724      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6.2725      (test "X$CXX" != "Xg++"))) ; then
  6.2726 @@ -6034,22 +6525,6 @@
  6.2727  else
  6.2728    _lt_caught_CXX_error=yes
  6.2729  fi
  6.2730 -popdef([AC_MSG_ERROR])
  6.2731 -])# _LT_PROG_CXX
  6.2732 -
  6.2733 -dnl aclocal-1.4 backwards compatibility:
  6.2734 -dnl AC_DEFUN([_LT_PROG_CXX], [])
  6.2735 -
  6.2736 -
  6.2737 -# _LT_LANG_CXX_CONFIG([TAG])
  6.2738 -# --------------------------
  6.2739 -# Ensure that the configuration variables for a C++ compiler are suitably
  6.2740 -# defined.  These variables are subsequently used by _LT_CONFIG to write
  6.2741 -# the compiler configuration to `libtool'.
  6.2742 -m4_defun([_LT_LANG_CXX_CONFIG],
  6.2743 -[AC_REQUIRE([_LT_PROG_CXX])dnl
  6.2744 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6.2745 -m4_require([_LT_DECL_EGREP])dnl
  6.2746  
  6.2747  AC_LANG_PUSH(C++)
  6.2748  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.2749 @@ -6061,7 +6536,6 @@
  6.2750  _LT_TAGVAR(hardcode_direct, $1)=no
  6.2751  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6.2752  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6.2753 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6.2754  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6.2755  _LT_TAGVAR(hardcode_minus_L, $1)=no
  6.2756  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6.2757 @@ -6071,6 +6545,8 @@
  6.2758  _LT_TAGVAR(module_expsym_cmds, $1)=
  6.2759  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6.2760  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6.2761 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  6.2762 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6.2763  _LT_TAGVAR(no_undefined_flag, $1)=
  6.2764  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6.2765  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6.2766 @@ -6102,6 +6578,7 @@
  6.2767  
  6.2768    # Allow CC to be a program name with arguments.
  6.2769    lt_save_CC=$CC
  6.2770 +  lt_save_CFLAGS=$CFLAGS
  6.2771    lt_save_LD=$LD
  6.2772    lt_save_GCC=$GCC
  6.2773    GCC=$GXX
  6.2774 @@ -6119,6 +6596,7 @@
  6.2775    fi
  6.2776    test -z "${LDCXX+set}" || LD=$LDCXX
  6.2777    CC=${CXX-"c++"}
  6.2778 +  CFLAGS=$CXXFLAGS
  6.2779    compiler=$CC
  6.2780    _LT_TAGVAR(compiler, $1)=$CC
  6.2781    _LT_CC_BASENAME([$compiler])
  6.2782 @@ -6140,8 +6618,8 @@
  6.2783        # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6.2784        # archiving commands below assume that GNU ld is being used.
  6.2785        if test "$with_gnu_ld" = yes; then
  6.2786 -        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.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'
  6.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'
  6.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'
  6.2790  
  6.2791          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.2792          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6.2793 @@ -6173,7 +6651,7 @@
  6.2794        # Commands to make compiler produce verbose output that lists
  6.2795        # what "hidden" libraries, object files and flags are used when
  6.2796        # linking a shared library.
  6.2797 -      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6.2798 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6.2799  
  6.2800      else
  6.2801        GXX=no
  6.2802 @@ -6282,10 +6760,10 @@
  6.2803            _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6.2804            # Determine the default libpath from the value encoded in an empty
  6.2805            # executable.
  6.2806 -          _LT_SYS_MODULE_PATH_AIX
  6.2807 +          _LT_SYS_MODULE_PATH_AIX([$1])
  6.2808            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6.2809  
  6.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"
  6.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"
  6.2812          else
  6.2813            if test "$host_cpu" = ia64; then
  6.2814  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6.2815 @@ -6294,14 +6772,19 @@
  6.2816            else
  6.2817  	    # Determine the default libpath from the value encoded in an
  6.2818  	    # empty executable.
  6.2819 -	    _LT_SYS_MODULE_PATH_AIX
  6.2820 +	    _LT_SYS_MODULE_PATH_AIX([$1])
  6.2821  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6.2822  	    # Warning - without using the other run time loading flags,
  6.2823  	    # -berok will link without error, but may produce a broken library.
  6.2824  	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6.2825  	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6.2826 -	    # Exported symbols can be pulled into shared objects from archives
  6.2827 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6.2828 +	    if test "$with_gnu_ld" = yes; then
  6.2829 +	      # We only use this code for GNU lds that support --whole-archive.
  6.2830 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6.2831 +	    else
  6.2832 +	      # Exported symbols can be pulled into shared objects from archives
  6.2833 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6.2834 +	    fi
  6.2835  	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6.2836  	    # This is similar to how AIX traditionally builds its shared
  6.2837  	    # libraries.
  6.2838 @@ -6331,28 +6814,75 @@
  6.2839          ;;
  6.2840  
  6.2841        cygwin* | mingw* | pw32* | cegcc*)
  6.2842 -        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6.2843 -        # as there is no search path for DLLs.
  6.2844 -        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6.2845 -        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2846 -        _LT_TAGVAR(always_export_symbols, $1)=no
  6.2847 -        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2848 -
  6.2849 -        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6.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'
  6.2851 -          # If the export-symbols file already is a .def file (1st line
  6.2852 -          # is EXPORTS), use it as is; otherwise, prepend...
  6.2853 -          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6.2854 -	    cp $export_symbols $output_objdir/$soname.def;
  6.2855 -          else
  6.2856 -	    echo EXPORTS > $output_objdir/$soname.def;
  6.2857 -	    cat $export_symbols >> $output_objdir/$soname.def;
  6.2858 -          fi~
  6.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'
  6.2860 -        else
  6.2861 -          _LT_TAGVAR(ld_shlibs, $1)=no
  6.2862 -        fi
  6.2863 -        ;;
  6.2864 +	case $GXX,$cc_basename in
  6.2865 +	,cl* | no,cl*)
  6.2866 +	  # Native MSVC
  6.2867 +	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  6.2868 +	  # no search path for DLLs.
  6.2869 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6.2870 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2871 +	  _LT_TAGVAR(always_export_symbols, $1)=yes
  6.2872 +	  _LT_TAGVAR(file_list_spec, $1)='@'
  6.2873 +	  # Tell ltmain to make .lib files, not .a files.
  6.2874 +	  libext=lib
  6.2875 +	  # Tell ltmain to make .dll files, not .so files.
  6.2876 +	  shrext_cmds=".dll"
  6.2877 +	  # FIXME: Setting linknames here is a bad hack.
  6.2878 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6.2879 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6.2880 +	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6.2881 +	    else
  6.2882 +	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6.2883 +	    fi~
  6.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"~
  6.2885 +	    linknames='
  6.2886 +	  # The linker will not automatically build a static lib if we build a DLL.
  6.2887 +	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6.2888 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2889 +	  # Don't use ranlib
  6.2890 +	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6.2891 +	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6.2892 +	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  6.2893 +	    case $lt_outputfile in
  6.2894 +	      *.exe|*.EXE) ;;
  6.2895 +	      *)
  6.2896 +		lt_outputfile="$lt_outputfile.exe"
  6.2897 +		lt_tool_outputfile="$lt_tool_outputfile.exe"
  6.2898 +		;;
  6.2899 +	    esac~
  6.2900 +	    func_to_tool_file "$lt_outputfile"~
  6.2901 +	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6.2902 +	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6.2903 +	      $RM "$lt_outputfile.manifest";
  6.2904 +	    fi'
  6.2905 +	  ;;
  6.2906 +	*)
  6.2907 +	  # g++
  6.2908 +	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6.2909 +	  # as there is no search path for DLLs.
  6.2910 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6.2911 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6.2912 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6.2913 +	  _LT_TAGVAR(always_export_symbols, $1)=no
  6.2914 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6.2915 +
  6.2916 +	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6.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'
  6.2918 +	    # If the export-symbols file already is a .def file (1st line
  6.2919 +	    # is EXPORTS), use it as is; otherwise, prepend...
  6.2920 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6.2921 +	      cp $export_symbols $output_objdir/$soname.def;
  6.2922 +	    else
  6.2923 +	      echo EXPORTS > $output_objdir/$soname.def;
  6.2924 +	      cat $export_symbols >> $output_objdir/$soname.def;
  6.2925 +	    fi~
  6.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'
  6.2927 +	  else
  6.2928 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  6.2929 +	  fi
  6.2930 +	  ;;
  6.2931 +	esac
  6.2932 +	;;
  6.2933        darwin* | rhapsody*)
  6.2934          _LT_DARWIN_LINKER_FEATURES($1)
  6.2935  	;;
  6.2936 @@ -6375,7 +6905,7 @@
  6.2937          esac
  6.2938          ;;
  6.2939  
  6.2940 -      freebsd[[12]]*)
  6.2941 +      freebsd2.*)
  6.2942          # C++ shared libraries reported to be fairly broken before
  6.2943  	# switch to ELF
  6.2944          _LT_TAGVAR(ld_shlibs, $1)=no
  6.2945 @@ -6394,6 +6924,11 @@
  6.2946        gnu*)
  6.2947          ;;
  6.2948  
  6.2949 +      haiku*)
  6.2950 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6.2951 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
  6.2952 +        ;;
  6.2953 +
  6.2954        hpux9*)
  6.2955          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6.2956          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6.2957 @@ -6418,11 +6953,11 @@
  6.2958              # explicitly linking system object files so we need to strip them
  6.2959              # from the output so that they don't get included in the library
  6.2960              # dependencies.
  6.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'
  6.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"'
  6.2963              ;;
  6.2964            *)
  6.2965              if test "$GXX" = yes; then
  6.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'
  6.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'
  6.2968              else
  6.2969                # FIXME: insert proper C++ library support
  6.2970                _LT_TAGVAR(ld_shlibs, $1)=no
  6.2971 @@ -6483,7 +7018,7 @@
  6.2972  	    # explicitly linking system object files so we need to strip them
  6.2973  	    # from the output so that they don't get included in the library
  6.2974  	    # dependencies.
  6.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'
  6.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"'
  6.2977  	    ;;
  6.2978            *)
  6.2979  	    if test "$GXX" = yes; then
  6.2980 @@ -6493,10 +7028,10 @@
  6.2981  	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6.2982  	            ;;
  6.2983  	          ia64*)
  6.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'
  6.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'
  6.2986  	            ;;
  6.2987  	          *)
  6.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'
  6.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'
  6.2990  	            ;;
  6.2991  	        esac
  6.2992  	      fi
  6.2993 @@ -6526,7 +7061,7 @@
  6.2994          case $cc_basename in
  6.2995            CC*)
  6.2996  	    # SGI C++
  6.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'
  6.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'
  6.2999  
  6.3000  	    # Archives containing C++ object files must be created using
  6.3001  	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  6.3002 @@ -6537,9 +7072,9 @@
  6.3003            *)
  6.3004  	    if test "$GXX" = yes; then
  6.3005  	      if test "$with_gnu_ld" = no; then
  6.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'
  6.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'
  6.3008  	      else
  6.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'
  6.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'
  6.3011  	      fi
  6.3012  	    fi
  6.3013  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6.3014 @@ -6550,7 +7085,7 @@
  6.3015          _LT_TAGVAR(inherit_rpath, $1)=yes
  6.3016          ;;
  6.3017  
  6.3018 -      linux* | k*bsd*-gnu)
  6.3019 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6.3020          case $cc_basename in
  6.3021            KCC*)
  6.3022  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  6.3023 @@ -6568,7 +7103,7 @@
  6.3024  	    # explicitly linking system object files so we need to strip them
  6.3025  	    # from the output so that they don't get included in the library
  6.3026  	    # dependencies.
  6.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'
  6.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"'
  6.3029  
  6.3030  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6.3031  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6.3032 @@ -6605,26 +7140,26 @@
  6.3033            pgCC* | pgcpp*)
  6.3034              # Portland Group C++ compiler
  6.3035  	    case `$CC -V` in
  6.3036 -	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  6.3037 +	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6.3038  	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6.3039  		rm -rf $tpldir~
  6.3040  		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6.3041 -		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  6.3042 +		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6.3043  	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6.3044  		rm -rf $tpldir~
  6.3045  		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6.3046 -		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  6.3047 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6.3048  		$RANLIB $oldlib'
  6.3049  	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6.3050  		rm -rf $tpldir~
  6.3051  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6.3052 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6.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'
  6.3054  	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6.3055  		rm -rf $tpldir~
  6.3056  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6.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'
  6.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'
  6.3059  	      ;;
  6.3060 -	    *) # Version 6 will use weak symbols
  6.3061 +	    *) # Version 6 and above use weak symbols
  6.3062  	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6.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'
  6.3064  	      ;;
  6.3065 @@ -6632,7 +7167,7 @@
  6.3066  
  6.3067  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6.3068  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6.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'
  6.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'
  6.3071              ;;
  6.3072  	  cxx*)
  6.3073  	    # Compaq C++
  6.3074 @@ -6651,9 +7186,9 @@
  6.3075  	    # explicitly linking system object files so we need to strip them
  6.3076  	    # from the output so that they don't get included in the library
  6.3077  	    # dependencies.
  6.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'
  6.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'
  6.3080  	    ;;
  6.3081 -	  xl*)
  6.3082 +	  xl* | mpixl* | bgxl*)
  6.3083  	    # IBM XL 8.0 on PPC, with GNU ld
  6.3084  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.3085  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6.3086 @@ -6673,13 +7208,13 @@
  6.3087  	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6.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'
  6.3089  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6.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'
  6.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'
  6.3092  	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  6.3093  
  6.3094  	      # Not sure whether something based on
  6.3095  	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6.3096  	      # would be better.
  6.3097 -	      output_verbose_link_cmd='echo'
  6.3098 +	      output_verbose_link_cmd='func_echo_all'
  6.3099  
  6.3100  	      # Archives containing C++ object files must be created using
  6.3101  	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  6.3102 @@ -6748,7 +7283,7 @@
  6.3103  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6.3104  	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6.3105  	  fi
  6.3106 -	  output_verbose_link_cmd=echo
  6.3107 +	  output_verbose_link_cmd=func_echo_all
  6.3108  	else
  6.3109  	  _LT_TAGVAR(ld_shlibs, $1)=no
  6.3110  	fi
  6.3111 @@ -6783,15 +7318,15 @@
  6.3112  	    case $host in
  6.3113  	      osf3*)
  6.3114  	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6.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'
  6.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'
  6.3117  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6.3118  		;;
  6.3119  	      *)
  6.3120  	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6.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'
  6.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'
  6.3123  	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6.3124  	          echo "-hidden">> $lib.exp~
  6.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~
  6.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~
  6.3127  	          $RM $lib.exp'
  6.3128  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6.3129  		;;
  6.3130 @@ -6807,17 +7342,17 @@
  6.3131  	    # explicitly linking system object files so we need to strip them
  6.3132  	    # from the output so that they don't get included in the library
  6.3133  	    # dependencies.
  6.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'
  6.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"'
  6.3136  	    ;;
  6.3137  	  *)
  6.3138  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6.3139  	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6.3140  	      case $host in
  6.3141  	        osf3*)
  6.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'
  6.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'
  6.3144  		  ;;
  6.3145  	        *)
  6.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'
  6.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'
  6.3148  		  ;;
  6.3149  	      esac
  6.3150  
  6.3151 @@ -6827,7 +7362,7 @@
  6.3152  	      # Commands to make compiler produce verbose output that lists
  6.3153  	      # what "hidden" libraries, object files and flags are used when
  6.3154  	      # linking a shared library.
  6.3155 -	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6.3156 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6.3157  
  6.3158  	    else
  6.3159  	      # FIXME: insert proper C++ library support
  6.3160 @@ -6863,7 +7398,7 @@
  6.3161  
  6.3162        solaris*)
  6.3163          case $cc_basename in
  6.3164 -          CC*)
  6.3165 +          CC* | sunCC*)
  6.3166  	    # Sun C++ 4.2, 5.x and Centerline C++
  6.3167              _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6.3168  	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6.3169 @@ -6884,7 +7419,7 @@
  6.3170  	    esac
  6.3171  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6.3172  
  6.3173 -	    output_verbose_link_cmd='echo'
  6.3174 +	    output_verbose_link_cmd='func_echo_all'
  6.3175  
  6.3176  	    # Archives containing C++ object files must be created using
  6.3177  	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  6.3178 @@ -6904,14 +7439,14 @@
  6.3179  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6.3180  	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6.3181  	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6.3182 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6.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'
  6.3184  	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6.3185 -		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6.3186 +		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6.3187  
  6.3188  	        # Commands to make compiler produce verbose output that lists
  6.3189  	        # what "hidden" libraries, object files and flags are used when
  6.3190  	        # linking a shared library.
  6.3191 -	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6.3192 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6.3193  	      else
  6.3194  	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6.3195  	        # platform.
  6.3196 @@ -6922,7 +7457,7 @@
  6.3197  	        # Commands to make compiler produce verbose output that lists
  6.3198  	        # what "hidden" libraries, object files and flags are used when
  6.3199  	        # linking a shared library.
  6.3200 -	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6.3201 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6.3202  	      fi
  6.3203  
  6.3204  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6.3205 @@ -6976,6 +7511,10 @@
  6.3206            CC*)
  6.3207  	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.3208  	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.3209 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6.3210 +	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6.3211 +	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6.3212 +	      '"$_LT_TAGVAR(reload_cmds, $1)"
  6.3213  	    ;;
  6.3214  	  *)
  6.3215  	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6.3216 @@ -7031,6 +7570,7 @@
  6.3217    fi # test -n "$compiler"
  6.3218  
  6.3219    CC=$lt_save_CC
  6.3220 +  CFLAGS=$lt_save_CFLAGS
  6.3221    LDCXX=$LD
  6.3222    LD=$lt_save_LD
  6.3223    GCC=$lt_save_GCC
  6.3224 @@ -7045,6 +7585,29 @@
  6.3225  ])# _LT_LANG_CXX_CONFIG
  6.3226  
  6.3227  
  6.3228 +# _LT_FUNC_STRIPNAME_CNF
  6.3229 +# ----------------------
  6.3230 +# func_stripname_cnf prefix suffix name
  6.3231 +# strip PREFIX and SUFFIX off of NAME.
  6.3232 +# PREFIX and SUFFIX must not contain globbing or regex special
  6.3233 +# characters, hashes, percent signs, but SUFFIX may contain a leading
  6.3234 +# dot (in which case that matches only a dot).
  6.3235 +#
  6.3236 +# This function is identical to the (non-XSI) version of func_stripname,
  6.3237 +# except this one can be used by m4 code that may be executed by configure,
  6.3238 +# rather than the libtool script.
  6.3239 +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6.3240 +AC_REQUIRE([_LT_DECL_SED])
  6.3241 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6.3242 +func_stripname_cnf ()
  6.3243 +{
  6.3244 +  case ${2} in
  6.3245 +  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6.3246 +  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6.3247 +  esac
  6.3248 +} # func_stripname_cnf
  6.3249 +])# _LT_FUNC_STRIPNAME_CNF
  6.3250 +
  6.3251  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6.3252  # ---------------------------------
  6.3253  # Figure out "hidden" library dependencies from verbose
  6.3254 @@ -7053,6 +7616,7 @@
  6.3255  # objects, libraries and library flags.
  6.3256  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6.3257  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6.3258 +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6.3259  # Dependencies to place before and after the object being linked:
  6.3260  _LT_TAGVAR(predep_objects, $1)=
  6.3261  _LT_TAGVAR(postdep_objects, $1)=
  6.3262 @@ -7102,7 +7666,20 @@
  6.3263    }
  6.3264  };
  6.3265  _LT_EOF
  6.3266 +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6.3267 +package foo
  6.3268 +func foo() {
  6.3269 +}
  6.3270 +_LT_EOF
  6.3271  ])
  6.3272 +
  6.3273 +_lt_libdeps_save_CFLAGS=$CFLAGS
  6.3274 +case "$CC $CFLAGS " in #(
  6.3275 +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6.3276 +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6.3277 +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6.3278 +esac
  6.3279 +
  6.3280  dnl Parse the compiler output and extract the necessary
  6.3281  dnl objects, libraries and library flags.
  6.3282  if AC_TRY_EVAL(ac_compile); then
  6.3283 @@ -7114,7 +7691,7 @@
  6.3284    pre_test_object_deps_done=no
  6.3285  
  6.3286    for p in `eval "$output_verbose_link_cmd"`; do
  6.3287 -    case $p in
  6.3288 +    case ${prev}${p} in
  6.3289  
  6.3290      -L* | -R* | -l*)
  6.3291         # Some compilers place space between "-{L,R}" and the path.
  6.3292 @@ -7123,13 +7700,22 @@
  6.3293            test $p = "-R"; then
  6.3294  	 prev=$p
  6.3295  	 continue
  6.3296 -       else
  6.3297 -	 prev=
  6.3298         fi
  6.3299  
  6.3300 +       # Expand the sysroot to ease extracting the directories later.
  6.3301 +       if test -z "$prev"; then
  6.3302 +         case $p in
  6.3303 +         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6.3304 +         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6.3305 +         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6.3306 +         esac
  6.3307 +       fi
  6.3308 +       case $p in
  6.3309 +       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6.3310 +       esac
  6.3311         if test "$pre_test_object_deps_done" = no; then
  6.3312 -	 case $p in
  6.3313 -	 -L* | -R*)
  6.3314 +	 case ${prev} in
  6.3315 +	 -L | -R)
  6.3316  	   # Internal compiler library paths should come after those
  6.3317  	   # provided the user.  The postdeps already come after the
  6.3318  	   # user supplied libs so there is no need to process them.
  6.3319 @@ -7149,8 +7735,10 @@
  6.3320  	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6.3321  	 fi
  6.3322         fi
  6.3323 +       prev=
  6.3324         ;;
  6.3325  
  6.3326 +    *.lto.$objext) ;; # Ignore GCC LTO objects
  6.3327      *.$objext)
  6.3328         # This assumes that the test object file only shows up
  6.3329         # once in the compiler output.
  6.3330 @@ -7186,6 +7774,7 @@
  6.3331  fi
  6.3332  
  6.3333  $RM -f confest.$objext
  6.3334 +CFLAGS=$_lt_libdeps_save_CFLAGS
  6.3335  
  6.3336  # PORTME: override above test on systems where it is broken
  6.3337  m4_if([$1], [CXX],
  6.3338 @@ -7222,7 +7811,7 @@
  6.3339  
  6.3340  solaris*)
  6.3341    case $cc_basename in
  6.3342 -  CC*)
  6.3343 +  CC* | sunCC*)
  6.3344      # The more standards-conforming stlport4 library is
  6.3345      # incompatible with the Cstd library. Avoid specifying
  6.3346      # it if it's in CXXFLAGS. Ignore libCrun as
  6.3347 @@ -7266,32 +7855,16 @@
  6.3348  ])# _LT_SYS_HIDDEN_LIBDEPS
  6.3349  
  6.3350  
  6.3351 -# _LT_PROG_F77
  6.3352 -# ------------
  6.3353 -# Since AC_PROG_F77 is broken, in that it returns the empty string
  6.3354 -# if there is no fortran compiler, we have our own version here.
  6.3355 -m4_defun([_LT_PROG_F77],
  6.3356 -[
  6.3357 -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  6.3358 -AC_PROG_F77
  6.3359 -if test -z "$F77" || test "X$F77" = "Xno"; then
  6.3360 -  _lt_disable_F77=yes
  6.3361 -fi
  6.3362 -popdef([AC_MSG_ERROR])
  6.3363 -])# _LT_PROG_F77
  6.3364 -
  6.3365 -dnl aclocal-1.4 backwards compatibility:
  6.3366 -dnl AC_DEFUN([_LT_PROG_F77], [])
  6.3367 -
  6.3368 -
  6.3369  # _LT_LANG_F77_CONFIG([TAG])
  6.3370  # --------------------------
  6.3371  # Ensure that the configuration variables for a Fortran 77 compiler are
  6.3372  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  6.3373  # to write the compiler configuration to `libtool'.
  6.3374  m4_defun([_LT_LANG_F77_CONFIG],
  6.3375 -[AC_REQUIRE([_LT_PROG_F77])dnl
  6.3376 -AC_LANG_PUSH(Fortran 77)
  6.3377 +[AC_LANG_PUSH(Fortran 77)
  6.3378 +if test -z "$F77" || test "X$F77" = "Xno"; then
  6.3379 +  _lt_disable_F77=yes
  6.3380 +fi
  6.3381  
  6.3382  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.3383  _LT_TAGVAR(allow_undefined_flag, $1)=
  6.3384 @@ -7301,7 +7874,6 @@
  6.3385  _LT_TAGVAR(hardcode_direct, $1)=no
  6.3386  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6.3387  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6.3388 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6.3389  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6.3390  _LT_TAGVAR(hardcode_minus_L, $1)=no
  6.3391  _LT_TAGVAR(hardcode_automatic, $1)=no
  6.3392 @@ -7310,6 +7882,8 @@
  6.3393  _LT_TAGVAR(module_expsym_cmds, $1)=
  6.3394  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6.3395  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6.3396 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  6.3397 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6.3398  _LT_TAGVAR(no_undefined_flag, $1)=
  6.3399  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6.3400  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6.3401 @@ -7349,7 +7923,9 @@
  6.3402    # Allow CC to be a program name with arguments.
  6.3403    lt_save_CC="$CC"
  6.3404    lt_save_GCC=$GCC
  6.3405 +  lt_save_CFLAGS=$CFLAGS
  6.3406    CC=${F77-"f77"}
  6.3407 +  CFLAGS=$FFLAGS
  6.3408    compiler=$CC
  6.3409    _LT_TAGVAR(compiler, $1)=$CC
  6.3410    _LT_CC_BASENAME([$compiler])
  6.3411 @@ -7403,38 +7979,24 @@
  6.3412  
  6.3413    GCC=$lt_save_GCC
  6.3414    CC="$lt_save_CC"
  6.3415 +  CFLAGS="$lt_save_CFLAGS"
  6.3416  fi # test "$_lt_disable_F77" != yes
  6.3417  
  6.3418  AC_LANG_POP
  6.3419  ])# _LT_LANG_F77_CONFIG
  6.3420  
  6.3421  
  6.3422 -# _LT_PROG_FC
  6.3423 -# -----------
  6.3424 -# Since AC_PROG_FC is broken, in that it returns the empty string
  6.3425 -# if there is no fortran compiler, we have our own version here.
  6.3426 -m4_defun([_LT_PROG_FC],
  6.3427 -[
  6.3428 -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  6.3429 -AC_PROG_FC
  6.3430 -if test -z "$FC" || test "X$FC" = "Xno"; then
  6.3431 -  _lt_disable_FC=yes
  6.3432 -fi
  6.3433 -popdef([AC_MSG_ERROR])
  6.3434 -])# _LT_PROG_FC
  6.3435 -
  6.3436 -dnl aclocal-1.4 backwards compatibility:
  6.3437 -dnl AC_DEFUN([_LT_PROG_FC], [])
  6.3438 -
  6.3439 -
  6.3440  # _LT_LANG_FC_CONFIG([TAG])
  6.3441  # -------------------------
  6.3442  # Ensure that the configuration variables for a Fortran compiler are
  6.3443  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  6.3444  # to write the compiler configuration to `libtool'.
  6.3445  m4_defun([_LT_LANG_FC_CONFIG],
  6.3446 -[AC_REQUIRE([_LT_PROG_FC])dnl
  6.3447 -AC_LANG_PUSH(Fortran)
  6.3448 +[AC_LANG_PUSH(Fortran)
  6.3449 +
  6.3450 +if test -z "$FC" || test "X$FC" = "Xno"; then
  6.3451 +  _lt_disable_FC=yes
  6.3452 +fi
  6.3453  
  6.3454  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.3455  _LT_TAGVAR(allow_undefined_flag, $1)=
  6.3456 @@ -7444,7 +8006,6 @@
  6.3457  _LT_TAGVAR(hardcode_direct, $1)=no
  6.3458  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6.3459  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6.3460 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6.3461  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6.3462  _LT_TAGVAR(hardcode_minus_L, $1)=no
  6.3463  _LT_TAGVAR(hardcode_automatic, $1)=no
  6.3464 @@ -7453,6 +8014,8 @@
  6.3465  _LT_TAGVAR(module_expsym_cmds, $1)=
  6.3466  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6.3467  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6.3468 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  6.3469 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6.3470  _LT_TAGVAR(no_undefined_flag, $1)=
  6.3471  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6.3472  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6.3473 @@ -7492,7 +8055,9 @@
  6.3474    # Allow CC to be a program name with arguments.
  6.3475    lt_save_CC="$CC"
  6.3476    lt_save_GCC=$GCC
  6.3477 +  lt_save_CFLAGS=$CFLAGS
  6.3478    CC=${FC-"f95"}
  6.3479 +  CFLAGS=$FCFLAGS
  6.3480    compiler=$CC
  6.3481    GCC=$ac_cv_fc_compiler_gnu
  6.3482  
  6.3483 @@ -7548,7 +8113,8 @@
  6.3484    fi # test -n "$compiler"
  6.3485  
  6.3486    GCC=$lt_save_GCC
  6.3487 -  CC="$lt_save_CC"
  6.3488 +  CC=$lt_save_CC
  6.3489 +  CFLAGS=$lt_save_CFLAGS
  6.3490  fi # test "$_lt_disable_FC" != yes
  6.3491  
  6.3492  AC_LANG_POP
  6.3493 @@ -7585,10 +8151,12 @@
  6.3494  _LT_LINKER_BOILERPLATE
  6.3495  
  6.3496  # Allow CC to be a program name with arguments.
  6.3497 -lt_save_CC="$CC"
  6.3498 +lt_save_CC=$CC
  6.3499 +lt_save_CFLAGS=$CFLAGS
  6.3500  lt_save_GCC=$GCC
  6.3501  GCC=yes
  6.3502  CC=${GCJ-"gcj"}
  6.3503 +CFLAGS=$GCJFLAGS
  6.3504  compiler=$CC
  6.3505  _LT_TAGVAR(compiler, $1)=$CC
  6.3506  _LT_TAGVAR(LD, $1)="$LD"
  6.3507 @@ -7598,6 +8166,8 @@
  6.3508  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.3509  
  6.3510  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6.3511 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  6.3512 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6.3513  
  6.3514  ## CAVEAT EMPTOR:
  6.3515  ## There is no encapsulation within the following macros, do not change
  6.3516 @@ -7617,10 +8187,82 @@
  6.3517  AC_LANG_RESTORE
  6.3518  
  6.3519  GCC=$lt_save_GCC
  6.3520 -CC="$lt_save_CC"
  6.3521 +CC=$lt_save_CC
  6.3522 +CFLAGS=$lt_save_CFLAGS
  6.3523  ])# _LT_LANG_GCJ_CONFIG
  6.3524  
  6.3525  
  6.3526 +# _LT_LANG_GO_CONFIG([TAG])
  6.3527 +# --------------------------
  6.3528 +# Ensure that the configuration variables for the GNU Go compiler
  6.3529 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  6.3530 +# to write the compiler configuration to `libtool'.
  6.3531 +m4_defun([_LT_LANG_GO_CONFIG],
  6.3532 +[AC_REQUIRE([LT_PROG_GO])dnl
  6.3533 +AC_LANG_SAVE
  6.3534 +
  6.3535 +# Source file extension for Go test sources.
  6.3536 +ac_ext=go
  6.3537 +
  6.3538 +# Object file extension for compiled Go test sources.
  6.3539 +objext=o
  6.3540 +_LT_TAGVAR(objext, $1)=$objext
  6.3541 +
  6.3542 +# Code to be used in simple compile tests
  6.3543 +lt_simple_compile_test_code="package main; func main() { }"
  6.3544 +
  6.3545 +# Code to be used in simple link tests
  6.3546 +lt_simple_link_test_code='package main; func main() { }'
  6.3547 +
  6.3548 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6.3549 +_LT_TAG_COMPILER
  6.3550 +
  6.3551 +# save warnings/boilerplate of simple test code
  6.3552 +_LT_COMPILER_BOILERPLATE
  6.3553 +_LT_LINKER_BOILERPLATE
  6.3554 +
  6.3555 +# Allow CC to be a program name with arguments.
  6.3556 +lt_save_CC=$CC
  6.3557 +lt_save_CFLAGS=$CFLAGS
  6.3558 +lt_save_GCC=$GCC
  6.3559 +GCC=yes
  6.3560 +CC=${GOC-"gccgo"}
  6.3561 +CFLAGS=$GOFLAGS
  6.3562 +compiler=$CC
  6.3563 +_LT_TAGVAR(compiler, $1)=$CC
  6.3564 +_LT_TAGVAR(LD, $1)="$LD"
  6.3565 +_LT_CC_BASENAME([$compiler])
  6.3566 +
  6.3567 +# Go did not exist at the time GCC didn't implicitly link libc in.
  6.3568 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6.3569 +
  6.3570 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6.3571 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  6.3572 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6.3573 +
  6.3574 +## CAVEAT EMPTOR:
  6.3575 +## There is no encapsulation within the following macros, do not change
  6.3576 +## the running order or otherwise move them around unless you know exactly
  6.3577 +## what you are doing...
  6.3578 +if test -n "$compiler"; then
  6.3579 +  _LT_COMPILER_NO_RTTI($1)
  6.3580 +  _LT_COMPILER_PIC($1)
  6.3581 +  _LT_COMPILER_C_O($1)
  6.3582 +  _LT_COMPILER_FILE_LOCKS($1)
  6.3583 +  _LT_LINKER_SHLIBS($1)
  6.3584 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  6.3585 +
  6.3586 +  _LT_CONFIG($1)
  6.3587 +fi
  6.3588 +
  6.3589 +AC_LANG_RESTORE
  6.3590 +
  6.3591 +GCC=$lt_save_GCC
  6.3592 +CC=$lt_save_CC
  6.3593 +CFLAGS=$lt_save_CFLAGS
  6.3594 +])# _LT_LANG_GO_CONFIG
  6.3595 +
  6.3596 +
  6.3597  # _LT_LANG_RC_CONFIG([TAG])
  6.3598  # -------------------------
  6.3599  # Ensure that the configuration variables for the Windows resource compiler
  6.3600 @@ -7652,9 +8294,11 @@
  6.3601  
  6.3602  # Allow CC to be a program name with arguments.
  6.3603  lt_save_CC="$CC"
  6.3604 +lt_save_CFLAGS=$CFLAGS
  6.3605  lt_save_GCC=$GCC
  6.3606  GCC=
  6.3607  CC=${RC-"windres"}
  6.3608 +CFLAGS=
  6.3609  compiler=$CC
  6.3610  _LT_TAGVAR(compiler, $1)=$CC
  6.3611  _LT_CC_BASENAME([$compiler])
  6.3612 @@ -7667,7 +8311,8 @@
  6.3613  
  6.3614  GCC=$lt_save_GCC
  6.3615  AC_LANG_RESTORE
  6.3616 -CC="$lt_save_CC"
  6.3617 +CC=$lt_save_CC
  6.3618 +CFLAGS=$lt_save_CFLAGS
  6.3619  ])# _LT_LANG_RC_CONFIG
  6.3620  
  6.3621  
  6.3622 @@ -7687,6 +8332,13 @@
  6.3623  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6.3624  
  6.3625  
  6.3626 +# LT_PROG_GO
  6.3627 +# ----------
  6.3628 +AC_DEFUN([LT_PROG_GO],
  6.3629 +[AC_CHECK_TOOL(GOC, gccgo,)
  6.3630 +])
  6.3631 +
  6.3632 +
  6.3633  # LT_PROG_RC
  6.3634  # ----------
  6.3635  AC_DEFUN([LT_PROG_RC],
  6.3636 @@ -7726,6 +8378,15 @@
  6.3637  AC_SUBST([OBJDUMP])
  6.3638  ])
  6.3639  
  6.3640 +# _LT_DECL_DLLTOOL
  6.3641 +# ----------------
  6.3642 +# Ensure DLLTOOL variable is set.
  6.3643 +m4_defun([_LT_DECL_DLLTOOL],
  6.3644 +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6.3645 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  6.3646 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6.3647 +AC_SUBST([DLLTOOL])
  6.3648 +])
  6.3649  
  6.3650  # _LT_DECL_SED
  6.3651  # ------------
  6.3652 @@ -7819,8 +8480,8 @@
  6.3653  # Try some XSI features
  6.3654  xsi_shell=no
  6.3655  ( _lt_dummy="a/b/c"
  6.3656 -  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6.3657 -      = c,a/b,, \
  6.3658 +  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6.3659 +      = c,a/b,b/c, \
  6.3660      && eval 'test $(( 1 + 1 )) -eq 2 \
  6.3661      && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6.3662    && xsi_shell=yes
  6.3663 @@ -7859,1029 +8520,176 @@
  6.3664  ])# _LT_CHECK_SHELL_FEATURES
  6.3665  
  6.3666  
  6.3667 -# _LT_PROG_XSI_SHELLFNS
  6.3668 -# ---------------------
  6.3669 -# Bourne and XSI compatible variants of some useful shell functions.
  6.3670 -m4_defun([_LT_PROG_XSI_SHELLFNS],
  6.3671 -[case $xsi_shell in
  6.3672 -  yes)
  6.3673 -    cat << \_LT_EOF >> "$cfgfile"
  6.3674 -
  6.3675 -# func_dirname file append nondir_replacement
  6.3676 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  6.3677 -# otherwise set result to NONDIR_REPLACEMENT.
  6.3678 -func_dirname ()
  6.3679 -{
  6.3680 -  case ${1} in
  6.3681 -    */*) func_dirname_result="${1%/*}${2}" ;;
  6.3682 -    *  ) func_dirname_result="${3}" ;;
  6.3683 -  esac
  6.3684 -}
  6.3685 -
  6.3686 -# func_basename file
  6.3687 -func_basename ()
  6.3688 -{
  6.3689 -  func_basename_result="${1##*/}"
  6.3690 -}
  6.3691 -
  6.3692 -# func_dirname_and_basename file append nondir_replacement
  6.3693 -# perform func_basename and func_dirname in a single function
  6.3694 -# call:
  6.3695 -#   dirname:  Compute the dirname of FILE.  If nonempty,
  6.3696 -#             add APPEND to the result, otherwise set result
  6.3697 -#             to NONDIR_REPLACEMENT.
  6.3698 -#             value returned in "$func_dirname_result"
  6.3699 -#   basename: Compute filename of FILE.
  6.3700 -#             value retuned in "$func_basename_result"
  6.3701 -# Implementation must be kept synchronized with func_dirname
  6.3702 -# and func_basename. For efficiency, we do not delegate to
  6.3703 -# those functions but instead duplicate the functionality here.
  6.3704 -func_dirname_and_basename ()
  6.3705 -{
  6.3706 -  case ${1} in
  6.3707 -    */*) func_dirname_result="${1%/*}${2}" ;;
  6.3708 -    *  ) func_dirname_result="${3}" ;;
  6.3709 -  esac
  6.3710 -  func_basename_result="${1##*/}"
  6.3711 -}
  6.3712 -
  6.3713 -# func_stripname prefix suffix name