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