acinclude/libtool.m4
author Sam Lantinga
Wed, 03 Oct 2012 19:39:12 -0700
changeset 6553 2f03111a2105
parent 6447 33f87072db4d
child 6593 f20b511e05a6
permissions -rw-r--r--
This hack doesn't work very well. I'd rather just show the problem so it can be fixed.
     1 ##############################################################################
     2 # Based on libtool-2.4.2
     3 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     4 #
     5 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     6 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     7 #                 Foundation, Inc.
     8 #   Written by Gordon Matzigkeit, 1996
     9 #
    10 # This file is free software; the Free Software Foundation gives
    11 # unlimited permission to copy and/or distribute it, with or without
    12 # modifications, as long as this notice is preserved.
    13 
    14 m4_define([_LT_COPYING], [dnl
    15 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    16 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    17 #                 Foundation, Inc.
    18 #   Written by Gordon Matzigkeit, 1996
    19 #
    20 #   This file is part of GNU Libtool.
    21 #
    22 # GNU Libtool is free software; you can redistribute it and/or
    23 # modify it under the terms of the GNU General Public License as
    24 # published by the Free Software Foundation; either version 2 of
    25 # the License, or (at your option) any later version.
    26 #
    27 # As a special exception to the GNU General Public License,
    28 # if you distribute this file as part of a program or library that
    29 # is built using GNU Libtool, you may include this file under the
    30 # same distribution terms that you use for the rest of that program.
    31 #
    32 # GNU Libtool is distributed in the hope that it will be useful,
    33 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    35 # GNU General Public License for more details.
    36 #
    37 # You should have received a copy of the GNU General Public License
    38 # along with GNU Libtool; see the file COPYING.  If not, a copy
    39 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
    40 # obtained by writing to the Free Software Foundation, Inc.,
    41 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    42 ])
    43 
    44 # serial 57 LT_INIT
    45 
    46 
    47 # LT_PREREQ(VERSION)
    48 # ------------------
    49 # Complain and exit if this libtool version is less that VERSION.
    50 m4_defun([LT_PREREQ],
    51 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
    52        [m4_default([$3],
    53 		   [m4_fatal([Libtool version $1 or higher is required],
    54 		             63)])],
    55        [$2])])
    56 
    57 
    58 # _LT_CHECK_BUILDDIR
    59 # ------------------
    60 # Complain if the absolute build directory name contains unusual characters
    61 m4_defun([_LT_CHECK_BUILDDIR],
    62 [case `pwd` in
    63   *\ * | *\	*)
    64     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
    65 esac
    66 ])
    67 
    68 
    69 # LT_INIT([OPTIONS])
    70 # ------------------
    71 AC_DEFUN([LT_INIT],
    72 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    73 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    74 AC_BEFORE([$0], [LT_LANG])dnl
    75 AC_BEFORE([$0], [LT_OUTPUT])dnl
    76 AC_BEFORE([$0], [LTDL_INIT])dnl
    77 m4_require([_LT_CHECK_BUILDDIR])dnl
    78 
    79 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
    80 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
    81 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
    82 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
    83 dnl unless we require an AC_DEFUNed macro:
    84 AC_REQUIRE([LTOPTIONS_VERSION])dnl
    85 AC_REQUIRE([LTSUGAR_VERSION])dnl
    86 AC_REQUIRE([LTVERSION_VERSION])dnl
    87 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    88 m4_require([_LT_PROG_LTMAIN])dnl
    89 
    90 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    91 
    92 dnl Parse OPTIONS
    93 _LT_SET_OPTIONS([$0], [$1])
    94 
    95 # This can be used to rebuild libtool when needed
    96 LIBTOOL_DEPS="$ltmain"
    97 
    98 # Always use our own libtool.
    99 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   100 AC_SUBST(LIBTOOL)dnl
   101 
   102 _LT_SETUP
   103 
   104 # Only expand once:
   105 m4_define([LT_INIT])
   106 ])# LT_INIT
   107 
   108 # Old names:
   109 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
   110 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
   111 dnl aclocal-1.4 backwards compatibility:
   112 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
   113 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
   114 
   115 
   116 # _LT_CC_BASENAME(CC)
   117 # -------------------
   118 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   119 m4_defun([_LT_CC_BASENAME],
   120 [for cc_temp in $1""; do
   121   case $cc_temp in
   122     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   123     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   124     \-*) ;;
   125     *) break;;
   126   esac
   127 done
   128 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   129 ])
   130 
   131 
   132 # _LT_FILEUTILS_DEFAULTS
   133 # ----------------------
   134 # It is okay to use these file commands and assume they have been set
   135 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
   136 m4_defun([_LT_FILEUTILS_DEFAULTS],
   137 [: ${CP="cp -f"}
   138 : ${MV="mv -f"}
   139 : ${RM="rm -f"}
   140 ])# _LT_FILEUTILS_DEFAULTS
   141 
   142 
   143 # _LT_SETUP
   144 # ---------
   145 m4_defun([_LT_SETUP],
   146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   147 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   148 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
   149 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
   150 
   151 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
   152 dnl
   153 _LT_DECL([], [host_alias], [0], [The host system])dnl
   154 _LT_DECL([], [host], [0])dnl
   155 _LT_DECL([], [host_os], [0])dnl
   156 dnl
   157 _LT_DECL([], [build_alias], [0], [The build system])dnl
   158 _LT_DECL([], [build], [0])dnl
   159 _LT_DECL([], [build_os], [0])dnl
   160 dnl
   161 AC_REQUIRE([AC_PROG_CC])dnl
   162 AC_REQUIRE([LT_PATH_LD])dnl
   163 AC_REQUIRE([LT_PATH_NM])dnl
   164 dnl
   165 AC_REQUIRE([AC_PROG_LN_S])dnl
   166 test -z "$LN_S" && LN_S="ln -s"
   167 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
   168 dnl
   169 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
   170 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
   171 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
   172 dnl
   173 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   174 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
   175 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
   176 m4_require([_LT_CMD_RELOAD])dnl
   177 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   178 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
   179 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
   180 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   181 m4_require([_LT_WITH_SYSROOT])dnl
   182 
   183 _LT_CONFIG_LIBTOOL_INIT([
   184 # See if we are running on zsh, and set the options which allow our
   185 # commands through without removal of \ escapes INIT.
   186 if test -n "\${ZSH_VERSION+set}" ; then
   187    setopt NO_GLOB_SUBST
   188 fi
   189 ])
   190 if test -n "${ZSH_VERSION+set}" ; then
   191    setopt NO_GLOB_SUBST
   192 fi
   193 
   194 _LT_CHECK_OBJDIR
   195 
   196 m4_require([_LT_TAG_COMPILER])dnl
   197 
   198 case $host_os in
   199 aix3*)
   200   # AIX sometimes has problems with the GCC collect2 program.  For some
   201   # reason, if we set the COLLECT_NAMES environment variable, the problems
   202   # vanish in a puff of smoke.
   203   if test "X${COLLECT_NAMES+set}" != Xset; then
   204     COLLECT_NAMES=
   205     export COLLECT_NAMES
   206   fi
   207   ;;
   208 esac
   209 
   210 # Global variables:
   211 ofile=libtool
   212 can_build_shared=yes
   213 
   214 # All known linkers require a `.a' archive for static linking (except MSVC,
   215 # which needs '.lib').
   216 libext=a
   217 
   218 with_gnu_ld="$lt_cv_prog_gnu_ld"
   219 
   220 old_CC="$CC"
   221 old_CFLAGS="$CFLAGS"
   222 
   223 # Set sane defaults for various variables
   224 test -z "$CC" && CC=cc
   225 test -z "$LTCC" && LTCC=$CC
   226 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   227 test -z "$LD" && LD=ld
   228 test -z "$ac_objext" && ac_objext=o
   229 
   230 _LT_CC_BASENAME([$compiler])
   231 
   232 # Only perform the check for file, if the check method requires it
   233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   234 case $deplibs_check_method in
   235 file_magic*)
   236   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   237     _LT_PATH_MAGIC
   238   fi
   239   ;;
   240 esac
   241 
   242 # Use C for the default configuration in the libtool script
   243 LT_SUPPORTED_TAG([CC])
   244 _LT_LANG_C_CONFIG
   245 _LT_LANG_DEFAULT_CONFIG
   246 _LT_CONFIG_COMMANDS
   247 ])# _LT_SETUP
   248 
   249 
   250 # _LT_PREPARE_SED_QUOTE_VARS
   251 # --------------------------
   252 # Define a few sed substitution that help us do robust quoting.
   253 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
   254 [# Backslashify metacharacters that are still active within
   255 # double-quoted strings.
   256 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   257 
   258 # Same as above, but do not quote variable references.
   259 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   260 
   261 # Sed substitution to delay expansion of an escaped shell variable in a
   262 # double_quote_subst'ed string.
   263 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   264 
   265 # Sed substitution to delay expansion of an escaped single quote.
   266 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   267 
   268 # Sed substitution to avoid accidental globbing in evaled expressions
   269 no_glob_subst='s/\*/\\\*/g'
   270 ])
   271 
   272 # _LT_PROG_LTMAIN
   273 # ---------------
   274 # Note that this code is called both from `configure', and `config.status'
   275 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
   276 # `config.status' has no value for ac_aux_dir unless we are using Automake,
   277 # so we pass a copy along to make sure it has a sensible value anyway.
   278 m4_defun([_LT_PROG_LTMAIN],
   279 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
   280 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
   281 ltmain="$ac_aux_dir/ltmain.sh"
   282 ])# _LT_PROG_LTMAIN
   283 
   284 
   285 ## ------------------------------------- ##
   286 ## Accumulate code for creating libtool. ##
   287 ## ------------------------------------- ##
   288 
   289 # So that we can recreate a full libtool script including additional
   290 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
   291 # in macros and then make a single call at the end using the `libtool'
   292 # label.
   293 
   294 
   295 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
   296 # ----------------------------------------
   297 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   298 m4_define([_LT_CONFIG_LIBTOOL_INIT],
   299 [m4_ifval([$1],
   300           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
   301                      [$1
   302 ])])])
   303 
   304 # Initialize.
   305 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
   306 
   307 
   308 # _LT_CONFIG_LIBTOOL([COMMANDS])
   309 # ------------------------------
   310 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   311 m4_define([_LT_CONFIG_LIBTOOL],
   312 [m4_ifval([$1],
   313           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
   314                      [$1
   315 ])])])
   316 
   317 # Initialize.
   318 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
   319 
   320 
   321 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
   322 # -----------------------------------------------------
   323 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
   324 [_LT_CONFIG_LIBTOOL([$1])
   325 _LT_CONFIG_LIBTOOL_INIT([$2])
   326 ])
   327 
   328 
   329 # _LT_FORMAT_COMMENT([COMMENT])
   330 # -----------------------------
   331 # Add leading comment marks to the start of each line, and a trailing
   332 # full-stop to the whole comment if one is not present already.
   333 m4_define([_LT_FORMAT_COMMENT],
   334 [m4_ifval([$1], [
   335 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
   336               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
   337 )])
   338 
   339 
   340 
   341 ## ------------------------ ##
   342 ## FIXME: Eliminate VARNAME ##
   343 ## ------------------------ ##
   344 
   345 
   346 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
   347 # -------------------------------------------------------------------
   348 # CONFIGNAME is the name given to the value in the libtool script.
   349 # VARNAME is the (base) name used in the configure script.
   350 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
   351 # VARNAME.  Any other value will be used directly.
   352 m4_define([_LT_DECL],
   353 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
   354     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
   355 	[m4_ifval([$1], [$1], [$2])])
   356     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
   357     m4_ifval([$4],
   358 	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
   359     lt_dict_add_subkey([lt_decl_dict], [$2],
   360 	[tagged?], [m4_ifval([$5], [yes], [no])])])
   361 ])
   362 
   363 
   364 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
   365 # --------------------------------------------------------
   366 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
   367 
   368 
   369 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
   370 # ------------------------------------------------
   371 m4_define([lt_decl_tag_varnames],
   372 [_lt_decl_filter([tagged?], [yes], $@)])
   373 
   374 
   375 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
   376 # ---------------------------------------------------------
   377 m4_define([_lt_decl_filter],
   378 [m4_case([$#],
   379   [0], [m4_fatal([$0: too few arguments: $#])],
   380   [1], [m4_fatal([$0: too few arguments: $#: $1])],
   381   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
   382   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
   383   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
   384 ])
   385 
   386 
   387 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
   388 # --------------------------------------------------
   389 m4_define([lt_decl_quote_varnames],
   390 [_lt_decl_filter([value], [1], $@)])
   391 
   392 
   393 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
   394 # ---------------------------------------------------
   395 m4_define([lt_decl_dquote_varnames],
   396 [_lt_decl_filter([value], [2], $@)])
   397 
   398 
   399 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
   400 # ---------------------------------------------------
   401 m4_define([lt_decl_varnames_tagged],
   402 [m4_assert([$# <= 2])dnl
   403 _$0(m4_quote(m4_default([$1], [[, ]])),
   404     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
   405     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
   406 m4_define([_lt_decl_varnames_tagged],
   407 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
   408 
   409 
   410 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
   411 # ------------------------------------------------
   412 m4_define([lt_decl_all_varnames],
   413 [_$0(m4_quote(m4_default([$1], [[, ]])),
   414      m4_if([$2], [],
   415 	   m4_quote(lt_decl_varnames),
   416 	m4_quote(m4_shift($@))))[]dnl
   417 ])
   418 m4_define([_lt_decl_all_varnames],
   419 [lt_join($@, lt_decl_varnames_tagged([$1],
   420 			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
   421 ])
   422 
   423 
   424 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
   425 # ------------------------------------
   426 # Quote a variable value, and forward it to `config.status' so that its
   427 # declaration there will have the same value as in `configure'.  VARNAME
   428 # must have a single quote delimited value for this to work.
   429 m4_define([_LT_CONFIG_STATUS_DECLARE],
   430 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   431 
   432 
   433 # _LT_CONFIG_STATUS_DECLARATIONS
   434 # ------------------------------
   435 # We delimit libtool config variables with single quotes, so when
   436 # we write them to config.status, we have to be sure to quote all
   437 # embedded single quotes properly.  In configure, this macro expands
   438 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   439 #
   440 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
   441 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   442 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   443     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   444 
   445 
   446 # _LT_LIBTOOL_TAGS
   447 # ----------------
   448 # Output comment and list of tags supported by the script
   449 m4_defun([_LT_LIBTOOL_TAGS],
   450 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
   451 available_tags="_LT_TAGS"dnl
   452 ])
   453 
   454 
   455 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
   456 # -----------------------------------
   457 # Extract the dictionary values for VARNAME (optionally with TAG) and
   458 # expand to a commented shell variable setting:
   459 #
   460 #    # Some comment about what VAR is for.
   461 #    visible_name=$lt_internal_name
   462 m4_define([_LT_LIBTOOL_DECLARE],
   463 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
   464 					   [description])))[]dnl
   465 m4_pushdef([_libtool_name],
   466     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
   467 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
   468     [0], [_libtool_name=[$]$1],
   469     [1], [_libtool_name=$lt_[]$1],
   470     [2], [_libtool_name=$lt_[]$1],
   471     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
   472 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
   473 ])
   474 
   475 
   476 # _LT_LIBTOOL_CONFIG_VARS
   477 # -----------------------
   478 # Produce commented declarations of non-tagged libtool config variables
   479 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
   480 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
   481 # section) are produced by _LT_LIBTOOL_TAG_VARS.
   482 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
   483 [m4_foreach([_lt_var],
   484     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
   485     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
   486 
   487 
   488 # _LT_LIBTOOL_TAG_VARS(TAG)
   489 # -------------------------
   490 m4_define([_LT_LIBTOOL_TAG_VARS],
   491 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
   492     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
   493 
   494 
   495 # _LT_TAGVAR(VARNAME, [TAGNAME])
   496 # ------------------------------
   497 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
   498 
   499 
   500 # _LT_CONFIG_COMMANDS
   501 # -------------------
   502 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
   503 # variables for single and double quote escaping we saved from calls
   504 # to _LT_DECL, we can put quote escaped variables declarations
   505 # into `config.status', and then the shell code to quote escape them in
   506 # for loops in `config.status'.  Finally, any additional code accumulated
   507 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
   508 m4_defun([_LT_CONFIG_COMMANDS],
   509 [AC_PROVIDE_IFELSE([LT_OUTPUT],
   510 	dnl If the libtool generation code has been placed in $CONFIG_LT,
   511 	dnl instead of duplicating it all over again into config.status,
   512 	dnl then we will have config.status run $CONFIG_LT later, so it
   513 	dnl needs to know what name is stored there:
   514         [AC_CONFIG_COMMANDS([libtool],
   515             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
   516     dnl If the libtool generation code is destined for config.status,
   517     dnl expand the accumulated commands and init code now:
   518     [AC_CONFIG_COMMANDS([libtool],
   519         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
   520 ])#_LT_CONFIG_COMMANDS
   521 
   522 
   523 # Initialize.
   524 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
   525 [
   526 
   527 # The HP-UX ksh and POSIX shell print the target directory to stdout
   528 # if CDPATH is set.
   529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   530 
   531 sed_quote_subst='$sed_quote_subst'
   532 double_quote_subst='$double_quote_subst'
   533 delay_variable_subst='$delay_variable_subst'
   534 _LT_CONFIG_STATUS_DECLARATIONS
   535 LTCC='$LTCC'
   536 LTCFLAGS='$LTCFLAGS'
   537 compiler='$compiler_DEFAULT'
   538 
   539 # A function that is used when there is no print builtin or printf.
   540 func_fallback_echo ()
   541 {
   542   eval 'cat <<_LTECHO_EOF
   543 \$[]1
   544 _LTECHO_EOF'
   545 }
   546 
   547 # Quote evaled strings.
   548 for var in lt_decl_all_varnames([[ \
   549 ]], lt_decl_quote_varnames); do
   550     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   551     *[[\\\\\\\`\\"\\\$]]*)
   552       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   553       ;;
   554     *)
   555       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   556       ;;
   557     esac
   558 done
   559 
   560 # Double-quote double-evaled strings.
   561 for var in lt_decl_all_varnames([[ \
   562 ]], lt_decl_dquote_varnames); do
   563     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   564     *[[\\\\\\\`\\"\\\$]]*)
   565       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   566       ;;
   567     *)
   568       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   569       ;;
   570     esac
   571 done
   572 
   573 _LT_OUTPUT_LIBTOOL_INIT
   574 ])
   575 
   576 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   577 # ------------------------------------
   578 # Generate a child script FILE with all initialization necessary to
   579 # reuse the environment learned by the parent script, and make the
   580 # file executable.  If COMMENT is supplied, it is inserted after the
   581 # `#!' sequence but before initialization text begins.  After this
   582 # macro, additional text can be appended to FILE to form the body of
   583 # the child script.  The macro ends with non-zero status if the
   584 # file could not be fully written (such as if the disk is full).
   585 m4_ifdef([AS_INIT_GENERATED],
   586 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   587 [m4_defun([_LT_GENERATED_FILE_INIT],
   588 [m4_require([AS_PREPARE])]dnl
   589 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
   590 [lt_write_fail=0
   591 cat >$1 <<_ASEOF || lt_write_fail=1
   592 #! $SHELL
   593 # Generated by $as_me.
   594 $2
   595 SHELL=\${CONFIG_SHELL-$SHELL}
   596 export SHELL
   597 _ASEOF
   598 cat >>$1 <<\_ASEOF || lt_write_fail=1
   599 AS_SHELL_SANITIZE
   600 _AS_PREPARE
   601 exec AS_MESSAGE_FD>&1
   602 _ASEOF
   603 test $lt_write_fail = 0 && chmod +x $1[]dnl
   604 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   605 
   606 # LT_OUTPUT
   607 # ---------
   608 # This macro allows early generation of the libtool script (before
   609 # AC_OUTPUT is called), incase it is used in configure for compilation
   610 # tests.
   611 AC_DEFUN([LT_OUTPUT],
   612 [: ${CONFIG_LT=./config.lt}
   613 AC_MSG_NOTICE([creating $CONFIG_LT])
   614 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
   615 [# Run this file to recreate a libtool stub with the current configuration.])
   616 
   617 cat >>"$CONFIG_LT" <<\_LTEOF
   618 lt_cl_silent=false
   619 exec AS_MESSAGE_LOG_FD>>config.log
   620 {
   621   echo
   622   AS_BOX([Running $as_me.])
   623 } >&AS_MESSAGE_LOG_FD
   624 
   625 lt_cl_help="\
   626 \`$as_me' creates a local libtool stub from the current configuration,
   627 for use in further configure time tests before the real libtool is
   628 generated.
   629 
   630 Usage: $[0] [[OPTIONS]]
   631 
   632   -h, --help      print this help, then exit
   633   -V, --version   print version number, then exit
   634   -q, --quiet     do not print progress messages
   635   -d, --debug     don't remove temporary files
   636 
   637 Report bugs to <bug-libtool@gnu.org>."
   638 
   639 lt_cl_version="\
   640 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
   641 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   642 configured by $[0], generated by m4_PACKAGE_STRING.
   643 
   644 Copyright (C) 2011 Free Software Foundation, Inc.
   645 This config.lt script is free software; the Free Software Foundation
   646 gives unlimited permision to copy, distribute and modify it."
   647 
   648 while test $[#] != 0
   649 do
   650   case $[1] in
   651     --version | --v* | -V )
   652       echo "$lt_cl_version"; exit 0 ;;
   653     --help | --h* | -h )
   654       echo "$lt_cl_help"; exit 0 ;;
   655     --debug | --d* | -d )
   656       debug=: ;;
   657     --quiet | --q* | --silent | --s* | -q )
   658       lt_cl_silent=: ;;
   659 
   660     -*) AC_MSG_ERROR([unrecognized option: $[1]
   661 Try \`$[0] --help' for more information.]) ;;
   662 
   663     *) AC_MSG_ERROR([unrecognized argument: $[1]
   664 Try \`$[0] --help' for more information.]) ;;
   665   esac
   666   shift
   667 done
   668 
   669 if $lt_cl_silent; then
   670   exec AS_MESSAGE_FD>/dev/null
   671 fi
   672 _LTEOF
   673 
   674 cat >>"$CONFIG_LT" <<_LTEOF
   675 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
   676 _LTEOF
   677 
   678 cat >>"$CONFIG_LT" <<\_LTEOF
   679 AC_MSG_NOTICE([creating $ofile])
   680 _LT_OUTPUT_LIBTOOL_COMMANDS
   681 AS_EXIT(0)
   682 _LTEOF
   683 chmod +x "$CONFIG_LT"
   684 
   685 # configure is writing to config.log, but config.lt does its own redirection,
   686 # appending to config.log, which fails on DOS, as config.log is still kept
   687 # open by configure.  Here we exec the FD to /dev/null, effectively closing
   688 # config.log, so it can be properly (re)opened and appended to by config.lt.
   689 lt_cl_success=:
   690 test "$silent" = yes &&
   691   lt_config_lt_args="$lt_config_lt_args --quiet"
   692 exec AS_MESSAGE_LOG_FD>/dev/null
   693 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   694 exec AS_MESSAGE_LOG_FD>>config.log
   695 $lt_cl_success || AS_EXIT(1)
   696 ])# LT_OUTPUT
   697 
   698 
   699 # _LT_CONFIG(TAG)
   700 # ---------------
   701 # If TAG is the built-in tag, create an initial libtool script with a
   702 # default configuration from the untagged config vars.  Otherwise add code
   703 # to config.status for appending the configuration named by TAG from the
   704 # matching tagged config vars.
   705 m4_defun([_LT_CONFIG],
   706 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   707 _LT_CONFIG_SAVE_COMMANDS([
   708   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
   709   m4_if(_LT_TAG, [C], [
   710     # See if we are running on zsh, and set the options which allow our
   711     # commands through without removal of \ escapes.
   712     if test -n "${ZSH_VERSION+set}" ; then
   713       setopt NO_GLOB_SUBST
   714     fi
   715 
   716     cfgfile="${ofile}T"
   717     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   718     $RM "$cfgfile"
   719 
   720     cat <<_LT_EOF >> "$cfgfile"
   721 #! $SHELL
   722 
   723 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   724 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
   725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   726 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   727 #
   728 _LT_COPYING
   729 _LT_LIBTOOL_TAGS
   730 
   731 # ### BEGIN LIBTOOL CONFIG
   732 _LT_LIBTOOL_CONFIG_VARS
   733 _LT_LIBTOOL_TAG_VARS
   734 # ### END LIBTOOL CONFIG
   735 
   736 _LT_EOF
   737 
   738   case $host_os in
   739   aix3*)
   740     cat <<\_LT_EOF >> "$cfgfile"
   741 # AIX sometimes has problems with the GCC collect2 program.  For some
   742 # reason, if we set the COLLECT_NAMES environment variable, the problems
   743 # vanish in a puff of smoke.
   744 if test "X${COLLECT_NAMES+set}" != Xset; then
   745   COLLECT_NAMES=
   746   export COLLECT_NAMES
   747 fi
   748 _LT_EOF
   749     ;;
   750   esac
   751 
   752   _LT_PROG_LTMAIN
   753 
   754   # We use sed instead of cat because bash on DJGPP gets confused if
   755   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   756   # text mode, it properly converts lines to CR/LF.  This bash problem
   757   # is reportedly fixed, but why not run on old versions too?
   758   sed '$q' "$ltmain" >> "$cfgfile" \
   759      || (rm -f "$cfgfile"; exit 1)
   760 
   761   _LT_PROG_REPLACE_SHELLFNS
   762 
   763    mv -f "$cfgfile" "$ofile" ||
   764     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   765   chmod +x "$ofile"
   766 ],
   767 [cat <<_LT_EOF >> "$ofile"
   768 
   769 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
   770 dnl in a comment (ie after a #).
   771 # ### BEGIN LIBTOOL TAG CONFIG: $1
   772 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
   773 # ### END LIBTOOL TAG CONFIG: $1
   774 _LT_EOF
   775 ])dnl /m4_if
   776 ],
   777 [m4_if([$1], [], [
   778     PACKAGE='$PACKAGE'
   779     VERSION='$VERSION'
   780     TIMESTAMP='$TIMESTAMP'
   781     RM='$RM'
   782     ofile='$ofile'], [])
   783 ])dnl /_LT_CONFIG_SAVE_COMMANDS
   784 ])# _LT_CONFIG
   785 
   786 
   787 # LT_SUPPORTED_TAG(TAG)
   788 # ---------------------
   789 # Trace this macro to discover what tags are supported by the libtool
   790 # --tag option, using:
   791 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
   792 AC_DEFUN([LT_SUPPORTED_TAG], [])
   793 
   794 
   795 # C support is built-in for now
   796 m4_define([_LT_LANG_C_enabled], [])
   797 m4_define([_LT_TAGS], [])
   798 
   799 
   800 # LT_LANG(LANG)
   801 # -------------
   802 # Enable libtool support for the given language if not already enabled.
   803 AC_DEFUN([LT_LANG],
   804 [AC_BEFORE([$0], [LT_OUTPUT])dnl
   805 m4_case([$1],
   806   [C],			[_LT_LANG(C)],
   807   [C++],		[_LT_LANG(CXX)],
   808   [Go],			[_LT_LANG(GO)],
   809   [Java],		[_LT_LANG(GCJ)],
   810   [Fortran 77],		[_LT_LANG(F77)],
   811   [Fortran],		[_LT_LANG(FC)],
   812   [Windows Resource],	[_LT_LANG(RC)],
   813   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
   814     [_LT_LANG($1)],
   815     [m4_fatal([$0: unsupported language: "$1"])])])dnl
   816 ])# LT_LANG
   817 
   818 
   819 # _LT_LANG(LANGNAME)
   820 # ------------------
   821 m4_defun([_LT_LANG],
   822 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
   823   [LT_SUPPORTED_TAG([$1])dnl
   824   m4_append([_LT_TAGS], [$1 ])dnl
   825   m4_define([_LT_LANG_]$1[_enabled], [])dnl
   826   _LT_LANG_$1_CONFIG($1)])dnl
   827 ])# _LT_LANG
   828 
   829 
   830 m4_ifndef([AC_PROG_GO], [
   831 ############################################################
   832 # NOTE: This macro has been submitted for inclusion into   #
   833 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
   834 #  a released version of Autoconf we should remove this    #
   835 #  macro and use it instead.                               #
   836 ############################################################
   837 m4_defun([AC_PROG_GO],
   838 [AC_LANG_PUSH(Go)dnl
   839 AC_ARG_VAR([GOC],     [Go compiler command])dnl
   840 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
   841 _AC_ARG_VAR_LDFLAGS()dnl
   842 AC_CHECK_TOOL(GOC, gccgo)
   843 if test -z "$GOC"; then
   844   if test -n "$ac_tool_prefix"; then
   845     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
   846   fi
   847 fi
   848 if test -z "$GOC"; then
   849   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
   850 fi
   851 ])#m4_defun
   852 ])#m4_ifndef
   853 
   854 
   855 # _LT_LANG_DEFAULT_CONFIG
   856 # -----------------------
   857 m4_defun([_LT_LANG_DEFAULT_CONFIG],
   858 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
   859   [LT_LANG(CXX)],
   860   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
   861 
   862 AC_PROVIDE_IFELSE([AC_PROG_F77],
   863   [LT_LANG(F77)],
   864   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
   865 
   866 AC_PROVIDE_IFELSE([AC_PROG_FC],
   867   [LT_LANG(FC)],
   868   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
   869 
   870 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
   871 dnl pulling things in needlessly.
   872 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
   873   [LT_LANG(GCJ)],
   874   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
   875     [LT_LANG(GCJ)],
   876     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
   877       [LT_LANG(GCJ)],
   878       [m4_ifdef([AC_PROG_GCJ],
   879 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
   880        m4_ifdef([A][M_PROG_GCJ],
   881 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
   882        m4_ifdef([LT_PROG_GCJ],
   883 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   884 
   885 AC_PROVIDE_IFELSE([AC_PROG_GO],
   886   [LT_LANG(GO)],
   887   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
   888 
   889 AC_PROVIDE_IFELSE([LT_PROG_RC],
   890   [LT_LANG(RC)],
   891   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   892 ])# _LT_LANG_DEFAULT_CONFIG
   893 
   894 # Obsolete macros:
   895 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
   896 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   897 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   898 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   899 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
   900 dnl aclocal-1.4 backwards compatibility:
   901 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   902 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   903 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   904 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   905 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
   906 
   907 
   908 # _LT_TAG_COMPILER
   909 # ----------------
   910 m4_defun([_LT_TAG_COMPILER],
   911 [AC_REQUIRE([AC_PROG_CC])dnl
   912 
   913 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
   914 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
   915 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
   916 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
   917 
   918 # If no C compiler was specified, use CC.
   919 LTCC=${LTCC-"$CC"}
   920 
   921 # If no C compiler flags were specified, use CFLAGS.
   922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   923 
   924 # Allow CC to be a program name with arguments.
   925 compiler=$CC
   926 ])# _LT_TAG_COMPILER
   927 
   928 
   929 # _LT_COMPILER_BOILERPLATE
   930 # ------------------------
   931 # Check for compiler boilerplate output or warnings with
   932 # the simple compiler test code.
   933 m4_defun([_LT_COMPILER_BOILERPLATE],
   934 [m4_require([_LT_DECL_SED])dnl
   935 ac_outfile=conftest.$ac_objext
   936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   938 _lt_compiler_boilerplate=`cat conftest.err`
   939 $RM conftest*
   940 ])# _LT_COMPILER_BOILERPLATE
   941 
   942 
   943 # _LT_LINKER_BOILERPLATE
   944 # ----------------------
   945 # Check for linker boilerplate output or warnings with
   946 # the simple link test code.
   947 m4_defun([_LT_LINKER_BOILERPLATE],
   948 [m4_require([_LT_DECL_SED])dnl
   949 ac_outfile=conftest.$ac_objext
   950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   952 _lt_linker_boilerplate=`cat conftest.err`
   953 $RM -r conftest*
   954 ])# _LT_LINKER_BOILERPLATE
   955 
   956 # _LT_REQUIRED_DARWIN_CHECKS
   957 # -------------------------
   958 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
   959   case $host_os in
   960     rhapsody* | darwin*)
   961     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
   962     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
   963     AC_CHECK_TOOL([LIPO], [lipo], [:])
   964     AC_CHECK_TOOL([OTOOL], [otool], [:])
   965     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
   966     _LT_DECL([], [DSYMUTIL], [1],
   967       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
   968     _LT_DECL([], [NMEDIT], [1],
   969       [Tool to change global to local symbols on Mac OS X])
   970     _LT_DECL([], [LIPO], [1],
   971       [Tool to manipulate fat objects and archives on Mac OS X])
   972     _LT_DECL([], [OTOOL], [1],
   973       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
   974     _LT_DECL([], [OTOOL64], [1],
   975       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
   976 
   977     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   978       [lt_cv_apple_cc_single_mod=no
   979       if test -z "${LT_MULTI_MODULE}"; then
   980 	# By default we will add the -single_module flag. You can override
   981 	# by either setting the environment variable LT_MULTI_MODULE
   982 	# non-empty at configure time, or by adding -multi_module to the
   983 	# link flags.
   984 	rm -rf libconftest.dylib*
   985 	echo "int foo(void){return 1;}" > conftest.c
   986 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   987 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
   988 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   989 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   990         _lt_result=$?
   991 	# If there is a non-empty error log, and "single_module"
   992 	# appears in it, assume the flag caused a linker warning
   993         if test -s conftest.err && $GREP single_module conftest.err; then
   994 	  cat conftest.err >&AS_MESSAGE_LOG_FD
   995 	# Otherwise, if the output was created with a 0 exit code from
   996 	# the compiler, it worked.
   997 	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   998 	  lt_cv_apple_cc_single_mod=yes
   999 	else
  1000 	  cat conftest.err >&AS_MESSAGE_LOG_FD
  1001 	fi
  1002 	rm -rf libconftest.dylib*
  1003 	rm -f conftest.*
  1004       fi])
  1005 
  1006     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1007       [lt_cv_ld_exported_symbols_list],
  1008       [lt_cv_ld_exported_symbols_list=no
  1009       save_LDFLAGS=$LDFLAGS
  1010       echo "_main" > conftest.sym
  1011       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1012       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1013 	[lt_cv_ld_exported_symbols_list=yes],
  1014 	[lt_cv_ld_exported_symbols_list=no])
  1015 	LDFLAGS="$save_LDFLAGS"
  1016     ])
  1017 
  1018     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1019       [lt_cv_ld_force_load=no
  1020       cat > conftest.c << _LT_EOF
  1021 int forced_loaded() { return 2;}
  1022 _LT_EOF
  1023       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  1024       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  1025       echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  1026       $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  1027       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  1028       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  1029       cat > conftest.c << _LT_EOF
  1030 int main() { return 0;}
  1031 _LT_EOF
  1032       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1033       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1034       _lt_result=$?
  1035       if test -s conftest.err && $GREP force_load conftest.err; then
  1036 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1037       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  1038 	lt_cv_ld_force_load=yes
  1039       else
  1040 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1041       fi
  1042         rm -f conftest.err libconftest.a conftest conftest.c
  1043         rm -rf conftest.dSYM
  1044     ])
  1045     case $host_os in
  1046     rhapsody* | darwin1.[[012]])
  1047       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1048     darwin1.*)
  1049       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1050     darwin*) # darwin 5.x on
  1051       # if running on 10.5 or later, the deployment target defaults
  1052       # to the OS version, if on x86, and 10.4, the deployment
  1053       # target defaults to 10.4. Don't you love it?
  1054       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1055 	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1056 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1057 	10.[[012]]*)
  1058 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1059 	10.*)
  1060 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1061       esac
  1062     ;;
  1063   esac
  1064     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1065       _lt_dar_single_mod='$single_module'
  1066     fi
  1067     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1068       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1069     else
  1070       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1071     fi
  1072     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  1073       _lt_dsymutil='~$DSYMUTIL $lib || :'
  1074     else
  1075       _lt_dsymutil=
  1076     fi
  1077     ;;
  1078   esac
  1079 ])
  1080 
  1081 
  1082 # _LT_DARWIN_LINKER_FEATURES([TAG])
  1083 # ---------------------------------
  1084 # Checks for linker and compiler features on darwin
  1085 m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1086 [
  1087   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1088   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1089   _LT_TAGVAR(hardcode_direct, $1)=no
  1090   _LT_TAGVAR(hardcode_automatic, $1)=yes
  1091   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1092   if test "$lt_cv_ld_force_load" = "yes"; then
  1093     _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\"`'
  1094     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  1095                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  1096   else
  1097     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1098   fi
  1099   _LT_TAGVAR(link_all_deplibs, $1)=yes
  1100   _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1101   case $cc_basename in
  1102      ifort*) _lt_dar_can_shared=yes ;;
  1103      *) _lt_dar_can_shared=$GCC ;;
  1104   esac
  1105   if test "$_lt_dar_can_shared" = "yes"; then
  1106     output_verbose_link_cmd=func_echo_all
  1107     _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}"
  1108     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1109     _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}"
  1110     _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1111     m4_if([$1], [CXX],
  1112 [   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1113       _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1114       _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1115     fi
  1116 ],[])
  1117   else
  1118   _LT_TAGVAR(ld_shlibs, $1)=no
  1119   fi
  1120 ])
  1121 
  1122 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  1123 # ----------------------------------
  1124 # Links a minimal program and checks the executable
  1125 # for the system default hardcoded library path. In most cases,
  1126 # this is /usr/lib:/lib, but when the MPI compilers are used
  1127 # the location of the communication and MPI libs are included too.
  1128 # If we don't find anything, use the default library path according
  1129 # to the aix ld manual.
  1130 # Store the results from the different compilers for each TAGNAME.
  1131 # Allow to override them for all tags through lt_cv_aix_libpath.
  1132 m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1133 [m4_require([_LT_DECL_SED])dnl
  1134 if test "${lt_cv_aix_libpath+set}" = set; then
  1135   aix_libpath=$lt_cv_aix_libpath
  1136 else
  1137   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1138   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1139   lt_aix_libpath_sed='[
  1140       /Import File Strings/,/^$/ {
  1141 	  /^0/ {
  1142 	      s/^0  *\([^ ]*\) *$/\1/
  1143 	      p
  1144 	  }
  1145       }]'
  1146   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1147   # Check for a 64-bit object if we didn't find anything.
  1148   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1149     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1150   fi],[])
  1151   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1152     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1153   fi
  1154   ])
  1155   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1156 fi
  1157 ])# _LT_SYS_MODULE_PATH_AIX
  1158 
  1159 
  1160 # _LT_SHELL_INIT(ARG)
  1161 # -------------------
  1162 m4_define([_LT_SHELL_INIT],
  1163 [m4_divert_text([M4SH-INIT], [$1
  1164 ])])# _LT_SHELL_INIT
  1165 
  1166 
  1167 
  1168 # _LT_PROG_ECHO_BACKSLASH
  1169 # -----------------------
  1170 # Find how we can fake an echo command that does not interpret backslash.
  1171 # In particular, with Autoconf 2.60 or later we add some code to the start
  1172 # of the generated configure script which will find a shell with a builtin
  1173 # printf (which we can use as an echo command).
  1174 m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1175 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1177 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1178 
  1179 AC_MSG_CHECKING([how to print strings])
  1180 # Test print first, because it will be a builtin if present.
  1181 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1182    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1183   ECHO='print -r --'
  1184 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1185   ECHO='printf %s\n'
  1186 else
  1187   # Use this function as a fallback that always works.
  1188   func_fallback_echo ()
  1189   {
  1190     eval 'cat <<_LTECHO_EOF
  1191 $[]1
  1192 _LTECHO_EOF'
  1193   }
  1194   ECHO='func_fallback_echo'
  1195 fi
  1196 
  1197 # func_echo_all arg...
  1198 # Invoke $ECHO with all args, space-separated.
  1199 func_echo_all ()
  1200 {
  1201     $ECHO "$*" 
  1202 }
  1203 
  1204 case "$ECHO" in
  1205   printf*) AC_MSG_RESULT([printf]) ;;
  1206   print*) AC_MSG_RESULT([print -r]) ;;
  1207   *) AC_MSG_RESULT([cat]) ;;
  1208 esac
  1209 
  1210 m4_ifdef([_AS_DETECT_SUGGESTED],
  1211 [_AS_DETECT_SUGGESTED([
  1212   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1213     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1214     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1215     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1216     PATH=/empty FPATH=/empty; export PATH FPATH
  1217     test "X`printf %s $ECHO`" = "X$ECHO" \
  1218       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1219 
  1220 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1221 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1222 ])# _LT_PROG_ECHO_BACKSLASH
  1223 
  1224 
  1225 # _LT_WITH_SYSROOT
  1226 # ----------------
  1227 AC_DEFUN([_LT_WITH_SYSROOT],
  1228 [AC_MSG_CHECKING([for sysroot])
  1229 AC_ARG_WITH([sysroot],
  1230 [  --with-sysroot[=DIR] Search for dependent libraries within DIR
  1231                         (or the compiler's sysroot if not specified).],
  1232 [], [with_sysroot=no])
  1233 
  1234 dnl lt_sysroot will always be passed unquoted.  We quote it here
  1235 dnl in case the user passed a directory name.
  1236 lt_sysroot=
  1237 case ${with_sysroot} in #(
  1238  yes)
  1239    if test "$GCC" = yes; then
  1240      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1241    fi
  1242    ;; #(
  1243  /*)
  1244    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1245    ;; #(
  1246  no|'')
  1247    ;; #(
  1248  *)
  1249    AC_MSG_RESULT([${with_sysroot}])
  1250    AC_MSG_ERROR([The sysroot must be an absolute path.])
  1251    ;;
  1252 esac
  1253 
  1254  AC_MSG_RESULT([${lt_sysroot:-no}])
  1255 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1256 [dependent libraries, and in which our libraries should be installed.])])
  1257 
  1258 # _LT_ENABLE_LOCK
  1259 # ---------------
  1260 m4_defun([_LT_ENABLE_LOCK],
  1261 [AC_ARG_ENABLE([libtool-lock],
  1262   [AS_HELP_STRING([--disable-libtool-lock],
  1263     [avoid locking (might break parallel builds)])])
  1264 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1265 
  1266 # Some flags need to be propagated to the compiler or linker for good
  1267 # libtool support.
  1268 case $host in
  1269 ia64-*-hpux*)
  1270   # Find out which ABI we are using.
  1271   echo 'int i;' > conftest.$ac_ext
  1272   if AC_TRY_EVAL(ac_compile); then
  1273     case `/usr/bin/file conftest.$ac_objext` in
  1274       *ELF-32*)
  1275 	HPUX_IA64_MODE="32"
  1276 	;;
  1277       *ELF-64*)
  1278 	HPUX_IA64_MODE="64"
  1279 	;;
  1280     esac
  1281   fi
  1282   rm -rf conftest*
  1283   ;;
  1284 *-*-irix6*)
  1285   # Find out which ABI we are using.
  1286   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1287   if AC_TRY_EVAL(ac_compile); then
  1288     if test "$lt_cv_prog_gnu_ld" = yes; then
  1289       case `/usr/bin/file conftest.$ac_objext` in
  1290 	*32-bit*)
  1291 	  LD="${LD-ld} -melf32bsmip"
  1292 	  ;;
  1293 	*N32*)
  1294 	  LD="${LD-ld} -melf32bmipn32"
  1295 	  ;;
  1296 	*64-bit*)
  1297 	  LD="${LD-ld} -melf64bmip"
  1298 	;;
  1299       esac
  1300     else
  1301       case `/usr/bin/file conftest.$ac_objext` in
  1302 	*32-bit*)
  1303 	  LD="${LD-ld} -32"
  1304 	  ;;
  1305 	*N32*)
  1306 	  LD="${LD-ld} -n32"
  1307 	  ;;
  1308 	*64-bit*)
  1309 	  LD="${LD-ld} -64"
  1310 	  ;;
  1311       esac
  1312     fi
  1313   fi
  1314   rm -rf conftest*
  1315   ;;
  1316 
  1317 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1318 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1319   # Find out which ABI we are using.
  1320   echo 'int i;' > conftest.$ac_ext
  1321   if AC_TRY_EVAL(ac_compile); then
  1322     case `/usr/bin/file conftest.o` in
  1323       *32-bit*)
  1324 	case $host in
  1325 	  x86_64-*kfreebsd*-gnu)
  1326 	    LD="${LD-ld} -m elf_i386_fbsd"
  1327 	    ;;
  1328 	  x86_64-*linux*)
  1329 	    LD="${LD-ld} -m elf_i386"
  1330 	    ;;
  1331 	  ppc64-*linux*|powerpc64-*linux*)
  1332 	    LD="${LD-ld} -m elf32ppclinux"
  1333 	    ;;
  1334 	  s390x-*linux*)
  1335 	    LD="${LD-ld} -m elf_s390"
  1336 	    ;;
  1337 	  sparc64-*linux*)
  1338 	    LD="${LD-ld} -m elf32_sparc"
  1339 	    ;;
  1340 	esac
  1341 	;;
  1342       *64-bit*)
  1343 	case $host in
  1344 	  x86_64-*kfreebsd*-gnu)
  1345 	    LD="${LD-ld} -m elf_x86_64_fbsd"
  1346 	    ;;
  1347 	  x86_64-*linux*)
  1348 	    LD="${LD-ld} -m elf_x86_64"
  1349 	    ;;
  1350 	  ppc*-*linux*|powerpc*-*linux*)
  1351 	    LD="${LD-ld} -m elf64ppc"
  1352 	    ;;
  1353 	  s390*-*linux*|s390*-*tpf*)
  1354 	    LD="${LD-ld} -m elf64_s390"
  1355 	    ;;
  1356 	  sparc*-*linux*)
  1357 	    LD="${LD-ld} -m elf64_sparc"
  1358 	    ;;
  1359 	esac
  1360 	;;
  1361     esac
  1362   fi
  1363   rm -rf conftest*
  1364   ;;
  1365 
  1366 *-*-sco3.2v5*)
  1367   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1368   SAVE_CFLAGS="$CFLAGS"
  1369   CFLAGS="$CFLAGS -belf"
  1370   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1371     [AC_LANG_PUSH(C)
  1372      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1373      AC_LANG_POP])
  1374   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1375     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1376     CFLAGS="$SAVE_CFLAGS"
  1377   fi
  1378   ;;
  1379 *-*solaris*)
  1380   # Find out which ABI we are using.
  1381   echo 'int i;' > conftest.$ac_ext
  1382   if AC_TRY_EVAL(ac_compile); then
  1383     case `/usr/bin/file conftest.o` in
  1384     *64-bit*)
  1385       case $lt_cv_prog_gnu_ld in
  1386       yes*)
  1387         case $host in
  1388         i?86-*-solaris*)
  1389           LD="${LD-ld} -m elf_x86_64"
  1390           ;;
  1391         sparc*-*-solaris*)
  1392           LD="${LD-ld} -m elf64_sparc"
  1393           ;;
  1394         esac
  1395         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  1396         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1397           LD="${LD-ld}_sol2"
  1398         fi
  1399         ;;
  1400       *)
  1401 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1402 	  LD="${LD-ld} -64"
  1403 	fi
  1404 	;;
  1405       esac
  1406       ;;
  1407     esac
  1408   fi
  1409   rm -rf conftest*
  1410   ;;
  1411 esac
  1412 
  1413 need_locks="$enable_libtool_lock"
  1414 ])# _LT_ENABLE_LOCK
  1415 
  1416 
  1417 # _LT_PROG_AR
  1418 # -----------
  1419 m4_defun([_LT_PROG_AR],
  1420 [AC_CHECK_TOOLS(AR, [ar], false)
  1421 : ${AR=ar}
  1422 : ${AR_FLAGS=cru}
  1423 _LT_DECL([], [AR], [1], [The archiver])
  1424 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1425 
  1426 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1427   [lt_cv_ar_at_file=no
  1428    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1429      [echo conftest.$ac_objext > conftest.lst
  1430       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1431       AC_TRY_EVAL([lt_ar_try])
  1432       if test "$ac_status" -eq 0; then
  1433 	# Ensure the archiver fails upon bogus file names.
  1434 	rm -f conftest.$ac_objext libconftest.a
  1435 	AC_TRY_EVAL([lt_ar_try])
  1436 	if test "$ac_status" -ne 0; then
  1437           lt_cv_ar_at_file=@
  1438         fi
  1439       fi
  1440       rm -f conftest.* libconftest.a
  1441      ])
  1442   ])
  1443 
  1444 if test "x$lt_cv_ar_at_file" = xno; then
  1445   archiver_list_spec=
  1446 else
  1447   archiver_list_spec=$lt_cv_ar_at_file
  1448 fi
  1449 _LT_DECL([], [archiver_list_spec], [1],
  1450   [How to feed a file listing to the archiver])
  1451 ])# _LT_PROG_AR
  1452 
  1453 
  1454 # _LT_CMD_OLD_ARCHIVE
  1455 # -------------------
  1456 m4_defun([_LT_CMD_OLD_ARCHIVE],
  1457 [_LT_PROG_AR
  1458 
  1459 AC_CHECK_TOOL(STRIP, strip, :)
  1460 test -z "$STRIP" && STRIP=:
  1461 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1462 
  1463 AC_CHECK_TOOL(RANLIB, ranlib, :)
  1464 test -z "$RANLIB" && RANLIB=:
  1465 _LT_DECL([], [RANLIB], [1],
  1466     [Commands used to install an old-style archive])
  1467 
  1468 # Determine commands to create old-style static archives.
  1469 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1470 old_postinstall_cmds='chmod 644 $oldlib'
  1471 old_postuninstall_cmds=
  1472 
  1473 if test -n "$RANLIB"; then
  1474   case $host_os in
  1475   openbsd*)
  1476     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1477     ;;
  1478   *)
  1479     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1480     ;;
  1481   esac
  1482   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1483 fi
  1484 
  1485 case $host_os in
  1486   darwin*)
  1487     lock_old_archive_extraction=yes ;;
  1488   *)
  1489     lock_old_archive_extraction=no ;;
  1490 esac
  1491 _LT_DECL([], [old_postinstall_cmds], [2])
  1492 _LT_DECL([], [old_postuninstall_cmds], [2])
  1493 _LT_TAGDECL([], [old_archive_cmds], [2],
  1494     [Commands used to build an old-style archive])
  1495 _LT_DECL([], [lock_old_archive_extraction], [0],
  1496     [Whether to use a lock for old archive extraction])
  1497 ])# _LT_CMD_OLD_ARCHIVE
  1498 
  1499 
  1500 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1501 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1502 # ----------------------------------------------------------------
  1503 # Check whether the given compiler option works
  1504 AC_DEFUN([_LT_COMPILER_OPTION],
  1505 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1506 m4_require([_LT_DECL_SED])dnl
  1507 AC_CACHE_CHECK([$1], [$2],
  1508   [$2=no
  1509    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1511    lt_compiler_flag="$3"
  1512    # Insert the option either (1) after the last *FLAGS variable, or
  1513    # (2) before a word containing "conftest.", or (3) at the end.
  1514    # Note that $ac_compile itself does not contain backslashes and begins
  1515    # with a dollar sign (not a hyphen), so the echo should work correctly.
  1516    # The option is referenced via a variable to avoid confusing sed.
  1517    lt_compile=`echo "$ac_compile" | $SED \
  1518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1519    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1520    -e 's:$: $lt_compiler_flag:'`
  1521    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1522    (eval "$lt_compile" 2>conftest.err)
  1523    ac_status=$?
  1524    cat conftest.err >&AS_MESSAGE_LOG_FD
  1525    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1526    if (exit $ac_status) && test -s "$ac_outfile"; then
  1527      # The compiler can only warn and ignore the option if not recognized
  1528      # So say no if there are warnings other than the usual output.
  1529      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1530      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1531      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1532        $2=yes
  1533      fi
  1534    fi
  1535    $RM conftest*
  1536 ])
  1537 
  1538 if test x"[$]$2" = xyes; then
  1539     m4_if([$5], , :, [$5])
  1540 else
  1541     m4_if([$6], , :, [$6])
  1542 fi
  1543 ])# _LT_COMPILER_OPTION
  1544 
  1545 # Old name:
  1546 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1547 dnl aclocal-1.4 backwards compatibility:
  1548 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1549 
  1550 
  1551 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1552 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
  1553 # ----------------------------------------------------
  1554 # Check whether the given linker option works
  1555 AC_DEFUN([_LT_LINKER_OPTION],
  1556 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1557 m4_require([_LT_DECL_SED])dnl
  1558 AC_CACHE_CHECK([$1], [$2],
  1559   [$2=no
  1560    save_LDFLAGS="$LDFLAGS"
  1561    LDFLAGS="$LDFLAGS $3"
  1562    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1563    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1564      # The linker can only warn and ignore the option if not recognized
  1565      # So say no if there are warnings
  1566      if test -s conftest.err; then
  1567        # Append any errors to the config.log.
  1568        cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1569        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1570        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1571        if diff conftest.exp conftest.er2 >/dev/null; then
  1572          $2=yes
  1573        fi
  1574      else
  1575        $2=yes
  1576      fi
  1577    fi
  1578    $RM -r conftest*
  1579    LDFLAGS="$save_LDFLAGS"
  1580 ])
  1581 
  1582 if test x"[$]$2" = xyes; then
  1583     m4_if([$4], , :, [$4])
  1584 else
  1585     m4_if([$5], , :, [$5])
  1586 fi
  1587 ])# _LT_LINKER_OPTION
  1588 
  1589 # Old name:
  1590 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1591 dnl aclocal-1.4 backwards compatibility:
  1592 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1593 
  1594 
  1595 # LT_CMD_MAX_LEN
  1596 #---------------
  1597 AC_DEFUN([LT_CMD_MAX_LEN],
  1598 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1599 # find the maximum length of command line arguments
  1600 AC_MSG_CHECKING([the maximum length of command line arguments])
  1601 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1602   i=0
  1603   teststring="ABCD"
  1604 
  1605   case $build_os in
  1606   msdosdjgpp*)
  1607     # On DJGPP, this test can blow up pretty badly due to problems in libc
  1608     # (any single argument exceeding 2000 bytes causes a buffer overrun
  1609     # during glob expansion).  Even if it were fixed, the result of this
  1610     # check would be larger than it should be.
  1611     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  1612     ;;
  1613 
  1614   gnu*)
  1615     # Under GNU Hurd, this test is not required because there is
  1616     # no limit to the length of command line arguments.
  1617     # Libtool will interpret -1 as no limit whatsoever
  1618     lt_cv_sys_max_cmd_len=-1;
  1619     ;;
  1620 
  1621   cygwin* | mingw* | cegcc*)
  1622     # On Win9x/ME, this test blows up -- it succeeds, but takes
  1623     # about 5 minutes as the teststring grows exponentially.
  1624     # Worse, since 9x/ME are not pre-emptively multitasking,
  1625     # you end up with a "frozen" computer, even though with patience
  1626     # the test eventually succeeds (with a max line length of 256k).
  1627     # Instead, let's just punt: use the minimum linelength reported by
  1628     # all of the supported platforms: 8192 (on NT/2K/XP).
  1629     lt_cv_sys_max_cmd_len=8192;
  1630     ;;
  1631 
  1632   mint*)
  1633     # On MiNT this can take a long time and run out of memory.
  1634     lt_cv_sys_max_cmd_len=8192;
  1635     ;;
  1636 
  1637   amigaos*)
  1638     # On AmigaOS with pdksh, this test takes hours, literally.
  1639     # So we just punt and use a minimum line length of 8192.
  1640     lt_cv_sys_max_cmd_len=8192;
  1641     ;;
  1642 
  1643   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1644     # This has been around since 386BSD, at least.  Likely further.
  1645     if test -x /sbin/sysctl; then
  1646       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1647     elif test -x /usr/sbin/sysctl; then
  1648       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1649     else
  1650       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
  1651     fi
  1652     # And add a safety zone
  1653     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1654     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1655     ;;
  1656 
  1657   interix*)
  1658     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1659     lt_cv_sys_max_cmd_len=196608
  1660     ;;
  1661 
  1662   os2*)
  1663     # The test takes a long time on OS/2.
  1664     lt_cv_sys_max_cmd_len=8192
  1665     ;;
  1666 
  1667   osf*)
  1668     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1669     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1670     # nice to cause kernel panics so lets avoid the loop below.
  1671     # First set a reasonable default.
  1672     lt_cv_sys_max_cmd_len=16384
  1673     #
  1674     if test -x /sbin/sysconfig; then
  1675       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1676         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1677       esac
  1678     fi
  1679     ;;
  1680   sco3.2v5*)
  1681     lt_cv_sys_max_cmd_len=102400
  1682     ;;
  1683   sysv5* | sco5v6* | sysv4.2uw2*)
  1684     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1685     if test -n "$kargmax"; then
  1686       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
  1687     else
  1688       lt_cv_sys_max_cmd_len=32768
  1689     fi
  1690     ;;
  1691   *)
  1692     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1693     if test -n "$lt_cv_sys_max_cmd_len"; then
  1694       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1695       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1696     else
  1697       # Make teststring a little bigger before we do anything with it.
  1698       # a 1K string should be a reasonable start.
  1699       for i in 1 2 3 4 5 6 7 8 ; do
  1700         teststring=$teststring$teststring
  1701       done
  1702       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1703       # If test is not a shell built-in, we'll probably end up computing a
  1704       # maximum length that is only half of the actual maximum length, but
  1705       # we can't tell.
  1706       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1707 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1708 	      test $i != 17 # 1/2 MB should be enough
  1709       do
  1710         i=`expr $i + 1`
  1711         teststring=$teststring$teststring
  1712       done
  1713       # Only check the string length outside the loop.
  1714       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1715       teststring=
  1716       # Add a significant safety factor because C++ compilers can tack on
  1717       # massive amounts of additional arguments before passing them to the
  1718       # linker.  It appears as though 1/2 is a usable value.
  1719       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1720     fi
  1721     ;;
  1722   esac
  1723 ])
  1724 if test -n $lt_cv_sys_max_cmd_len ; then
  1725   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1726 else
  1727   AC_MSG_RESULT(none)
  1728 fi
  1729 max_cmd_len=$lt_cv_sys_max_cmd_len
  1730 _LT_DECL([], [max_cmd_len], [0],
  1731     [What is the maximum length of a command?])
  1732 ])# LT_CMD_MAX_LEN
  1733 
  1734 # Old name:
  1735 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1736 dnl aclocal-1.4 backwards compatibility:
  1737 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1738 
  1739 
  1740 # _LT_HEADER_DLFCN
  1741 # ----------------
  1742 m4_defun([_LT_HEADER_DLFCN],
  1743 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1744 ])# _LT_HEADER_DLFCN
  1745 
  1746 
  1747 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1748 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1749 # ----------------------------------------------------------------
  1750 m4_defun([_LT_TRY_DLOPEN_SELF],
  1751 [m4_require([_LT_HEADER_DLFCN])dnl
  1752 if test "$cross_compiling" = yes; then :
  1753   [$4]
  1754 else
  1755   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1756   lt_status=$lt_dlunknown
  1757   cat > conftest.$ac_ext <<_LT_EOF
  1758 [#line $LINENO "configure"
  1759 #include "confdefs.h"
  1760 
  1761 #if HAVE_DLFCN_H
  1762 #include <dlfcn.h>
  1763 #endif
  1764 
  1765 #include <stdio.h>
  1766 
  1767 #ifdef RTLD_GLOBAL
  1768 #  define LT_DLGLOBAL		RTLD_GLOBAL
  1769 #else
  1770 #  ifdef DL_GLOBAL
  1771 #    define LT_DLGLOBAL		DL_GLOBAL
  1772 #  else
  1773 #    define LT_DLGLOBAL		0
  1774 #  endif
  1775 #endif
  1776 
  1777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1778    find out it does not work in some platform. */
  1779 #ifndef LT_DLLAZY_OR_NOW
  1780 #  ifdef RTLD_LAZY
  1781 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
  1782 #  else
  1783 #    ifdef DL_LAZY
  1784 #      define LT_DLLAZY_OR_NOW		DL_LAZY
  1785 #    else
  1786 #      ifdef RTLD_NOW
  1787 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
  1788 #      else
  1789 #        ifdef DL_NOW
  1790 #          define LT_DLLAZY_OR_NOW	DL_NOW
  1791 #        else
  1792 #          define LT_DLLAZY_OR_NOW	0
  1793 #        endif
  1794 #      endif
  1795 #    endif
  1796 #  endif
  1797 #endif
  1798 
  1799 /* When -fvisbility=hidden is used, assume the code has been annotated
  1800    correspondingly for the symbols needed.  */
  1801 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1802 int fnord () __attribute__((visibility("default")));
  1803 #endif
  1804 
  1805 int fnord () { return 42; }
  1806 int main ()
  1807 {
  1808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1809   int status = $lt_dlunknown;
  1810 
  1811   if (self)
  1812     {
  1813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1814       else
  1815         {
  1816 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  1817           else puts (dlerror ());
  1818 	}
  1819       /* dlclose (self); */
  1820     }
  1821   else
  1822     puts (dlerror ());
  1823 
  1824   return status;
  1825 }]
  1826 _LT_EOF
  1827   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1828     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1829     lt_status=$?
  1830     case x$lt_status in
  1831       x$lt_dlno_uscore) $1 ;;
  1832       x$lt_dlneed_uscore) $2 ;;
  1833       x$lt_dlunknown|x*) $3 ;;
  1834     esac
  1835   else :
  1836     # compilation failed
  1837     $3
  1838   fi
  1839 fi
  1840 rm -fr conftest*
  1841 ])# _LT_TRY_DLOPEN_SELF
  1842 
  1843 
  1844 # LT_SYS_DLOPEN_SELF
  1845 # ------------------
  1846 AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1847 [m4_require([_LT_HEADER_DLFCN])dnl
  1848 if test "x$enable_dlopen" != xyes; then
  1849   enable_dlopen=unknown
  1850   enable_dlopen_self=unknown
  1851   enable_dlopen_self_static=unknown
  1852 else
  1853   lt_cv_dlopen=no
  1854   lt_cv_dlopen_libs=
  1855 
  1856   case $host_os in
  1857   beos*)
  1858     lt_cv_dlopen="load_add_on"
  1859     lt_cv_dlopen_libs=
  1860     lt_cv_dlopen_self=yes
  1861     ;;
  1862 
  1863   mingw* | pw32* | cegcc*)
  1864     lt_cv_dlopen="LoadLibrary"
  1865     lt_cv_dlopen_libs=
  1866     ;;
  1867 
  1868   cygwin*)
  1869     lt_cv_dlopen="dlopen"
  1870     lt_cv_dlopen_libs=
  1871     ;;
  1872 
  1873   darwin*)
  1874   # if libdl is installed we need to link against it
  1875     AC_CHECK_LIB([dl], [dlopen],
  1876 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1877     lt_cv_dlopen="dyld"
  1878     lt_cv_dlopen_libs=
  1879     lt_cv_dlopen_self=yes
  1880     ])
  1881     ;;
  1882 
  1883   *)
  1884     AC_CHECK_FUNC([shl_load],
  1885 	  [lt_cv_dlopen="shl_load"],
  1886       [AC_CHECK_LIB([dld], [shl_load],
  1887 	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1888 	[AC_CHECK_FUNC([dlopen],
  1889 	      [lt_cv_dlopen="dlopen"],
  1890 	  [AC_CHECK_LIB([dl], [dlopen],
  1891 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1892 	    [AC_CHECK_LIB([svld], [dlopen],
  1893 		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1894 	      [AC_CHECK_LIB([dld], [dld_link],
  1895 		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1896 	      ])
  1897 	    ])
  1898 	  ])
  1899 	])
  1900       ])
  1901     ;;
  1902   esac
  1903 
  1904   if test "x$lt_cv_dlopen" != xno; then
  1905     enable_dlopen=yes
  1906   else
  1907     enable_dlopen=no
  1908   fi
  1909 
  1910   case $lt_cv_dlopen in
  1911   dlopen)
  1912     save_CPPFLAGS="$CPPFLAGS"
  1913     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1914 
  1915     save_LDFLAGS="$LDFLAGS"
  1916     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1917 
  1918     save_LIBS="$LIBS"
  1919     LIBS="$lt_cv_dlopen_libs $LIBS"
  1920 
  1921     AC_CACHE_CHECK([whether a program can dlopen itself],
  1922 	  lt_cv_dlopen_self, [dnl
  1923 	  _LT_TRY_DLOPEN_SELF(
  1924 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1925 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1926     ])
  1927 
  1928     if test "x$lt_cv_dlopen_self" = xyes; then
  1929       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1930       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1931 	  lt_cv_dlopen_self_static, [dnl
  1932 	  _LT_TRY_DLOPEN_SELF(
  1933 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1934 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  1935       ])
  1936     fi
  1937 
  1938     CPPFLAGS="$save_CPPFLAGS"
  1939     LDFLAGS="$save_LDFLAGS"
  1940     LIBS="$save_LIBS"
  1941     ;;
  1942   esac
  1943 
  1944   case $lt_cv_dlopen_self in
  1945   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1946   *) enable_dlopen_self=unknown ;;
  1947   esac
  1948 
  1949   case $lt_cv_dlopen_self_static in
  1950   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1951   *) enable_dlopen_self_static=unknown ;;
  1952   esac
  1953 fi
  1954 _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1955 	 [Whether dlopen is supported])
  1956 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1957 	 [Whether dlopen of programs is supported])
  1958 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1959 	 [Whether dlopen of statically linked programs is supported])
  1960 ])# LT_SYS_DLOPEN_SELF
  1961 
  1962 # Old name:
  1963 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1964 dnl aclocal-1.4 backwards compatibility:
  1965 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1966 
  1967 
  1968 # _LT_COMPILER_C_O([TAGNAME])
  1969 # ---------------------------
  1970 # Check to see if options -c and -o are simultaneously supported by compiler.
  1971 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1972 m4_defun([_LT_COMPILER_C_O],
  1973 [m4_require([_LT_DECL_SED])dnl
  1974 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1975 m4_require([_LT_TAG_COMPILER])dnl
  1976 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1977   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1978   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1979    $RM -r conftest 2>/dev/null
  1980    mkdir conftest
  1981    cd conftest
  1982    mkdir out
  1983    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1984 
  1985    lt_compiler_flag="-o out/conftest2.$ac_objext"
  1986    # Insert the option either (1) after the last *FLAGS variable, or
  1987    # (2) before a word containing "conftest.", or (3) at the end.
  1988    # Note that $ac_compile itself does not contain backslashes and begins
  1989    # with a dollar sign (not a hyphen), so the echo should work correctly.
  1990    lt_compile=`echo "$ac_compile" | $SED \
  1991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1992    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1993    -e 's:$: $lt_compiler_flag:'`
  1994    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1995    (eval "$lt_compile" 2>out/conftest.err)
  1996    ac_status=$?
  1997    cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1998    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1999    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  2000    then
  2001      # The compiler can only warn and ignore the option if not recognized
  2002      # So say no if there are warnings
  2003      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  2004      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2005      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2006        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2007      fi
  2008    fi
  2009    chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2010    $RM conftest*
  2011    # SGI C++ compiler will create directory out/ii_files/ for
  2012    # template instantiation
  2013    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2014    $RM out/* && rmdir out
  2015    cd ..
  2016    $RM -r conftest
  2017    $RM conftest*
  2018 ])
  2019 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2020 	[Does compiler simultaneously support -c and -o options?])
  2021 ])# _LT_COMPILER_C_O
  2022 
  2023 
  2024 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2025 # ----------------------------------
  2026 # Check to see if we can do hard links to lock some files if needed
  2027 m4_defun([_LT_COMPILER_FILE_LOCKS],
  2028 [m4_require([_LT_ENABLE_LOCK])dnl
  2029 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2030 _LT_COMPILER_C_O([$1])
  2031 
  2032 hard_links="nottested"
  2033 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2034   # do not overwrite the value of need_locks provided by the user
  2035   AC_MSG_CHECKING([if we can lock with hard links])
  2036   hard_links=yes
  2037   $RM conftest*
  2038   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2039   touch conftest.a
  2040   ln conftest.a conftest.b 2>&5 || hard_links=no
  2041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2042   AC_MSG_RESULT([$hard_links])
  2043   if test "$hard_links" = no; then
  2044     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2045     need_locks=warn
  2046   fi
  2047 else
  2048   need_locks=no
  2049 fi
  2050 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2051 ])# _LT_COMPILER_FILE_LOCKS
  2052 
  2053 
  2054 # _LT_CHECK_OBJDIR
  2055 # ----------------
  2056 m4_defun([_LT_CHECK_OBJDIR],
  2057 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2058 [rm -f .libs 2>/dev/null
  2059 mkdir .libs 2>/dev/null
  2060 if test -d .libs; then
  2061   lt_cv_objdir=.libs
  2062 else
  2063   # MS-DOS does not allow filenames that begin with a dot.
  2064   lt_cv_objdir=_libs
  2065 fi
  2066 rmdir .libs 2>/dev/null])
  2067 objdir=$lt_cv_objdir
  2068 _LT_DECL([], [objdir], [0],
  2069          [The name of the directory that contains temporary libtool files])dnl
  2070 m4_pattern_allow([LT_OBJDIR])dnl
  2071 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2072   [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2073 ])# _LT_CHECK_OBJDIR
  2074 
  2075 
  2076 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2077 # --------------------------------------
  2078 # Check hardcoding attributes.
  2079 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2080 [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2081 _LT_TAGVAR(hardcode_action, $1)=
  2082 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2083    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2084    test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2085 
  2086   # We can hardcode non-existent directories.
  2087   if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2089      # have to relink, otherwise we might link with an installed library
  2090      # when we should be linking with a yet-to-be-installed one
  2091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2092      test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2093     # Linking always hardcodes the temporary library directory.
  2094     _LT_TAGVAR(hardcode_action, $1)=relink
  2095   else
  2096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2097     _LT_TAGVAR(hardcode_action, $1)=immediate
  2098   fi
  2099 else
  2100   # We cannot hardcode anything, or else we can only hardcode existing
  2101   # directories.
  2102   _LT_TAGVAR(hardcode_action, $1)=unsupported
  2103 fi
  2104 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2105 
  2106 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2107    test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2108   # Fast installation is not supported
  2109   enable_fast_install=no
  2110 elif test "$shlibpath_overrides_runpath" = yes ||
  2111      test "$enable_shared" = no; then
  2112   # Fast installation is not necessary
  2113   enable_fast_install=needless
  2114 fi
  2115 _LT_TAGDECL([], [hardcode_action], [0],
  2116     [How to hardcode a shared library path into an executable])
  2117 ])# _LT_LINKER_HARDCODE_LIBPATH
  2118 
  2119 
  2120 # _LT_CMD_STRIPLIB
  2121 # ----------------
  2122 m4_defun([_LT_CMD_STRIPLIB],
  2123 [m4_require([_LT_DECL_EGREP])
  2124 striplib=
  2125 old_striplib=
  2126 AC_MSG_CHECKING([whether stripping libraries is possible])
  2127 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2128   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2129   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2130   AC_MSG_RESULT([yes])
  2131 else
  2132 # FIXME - insert some real tests, host_os isn't really good enough
  2133   case $host_os in
  2134   darwin*)
  2135     if test -n "$STRIP" ; then
  2136       striplib="$STRIP -x"
  2137       old_striplib="$STRIP -S"
  2138       AC_MSG_RESULT([yes])
  2139     else
  2140       AC_MSG_RESULT([no])
  2141     fi
  2142     ;;
  2143   *)
  2144     AC_MSG_RESULT([no])
  2145     ;;
  2146   esac
  2147 fi
  2148 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2149 _LT_DECL([], [striplib], [1])
  2150 ])# _LT_CMD_STRIPLIB
  2151 
  2152 
  2153 # _LT_SYS_DYNAMIC_LINKER([TAG])
  2154 # -----------------------------
  2155 # PORTME Fill in your ld.so characteristics
  2156 m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2157 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2158 m4_require([_LT_DECL_EGREP])dnl
  2159 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2160 m4_require([_LT_DECL_OBJDUMP])dnl
  2161 m4_require([_LT_DECL_SED])dnl
  2162 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2163 AC_MSG_CHECKING([dynamic linker characteristics])
  2164 m4_if([$1],
  2165 	[], [
  2166 if test "$GCC" = yes; then
  2167   case $host_os in
  2168     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2169     *) lt_awk_arg="/^libraries:/" ;;
  2170   esac
  2171   case $host_os in
  2172     mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  2173     *) lt_sed_strip_eq="s,=/,/,g" ;;
  2174   esac
  2175   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2176   case $lt_search_path_spec in
  2177   *\;*)
  2178     # if the path contains ";" then we assume it to be the separator
  2179     # otherwise default to the standard path separator (i.e. ":") - it is
  2180     # assumed that no part of a normal pathname contains ";" but that should
  2181     # okay in the real world where ";" in dirpaths is itself problematic.
  2182     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2183     ;;
  2184   *)
  2185     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2186     ;;
  2187   esac
  2188   # Ok, now we have the path, separated by spaces, we can step through it
  2189   # and add multilib dir if necessary.
  2190   lt_tmp_lt_search_path_spec=
  2191   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2192   for lt_sys_path in $lt_search_path_spec; do
  2193     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2194       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2195     else
  2196       test -d "$lt_sys_path" && \
  2197 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2198     fi
  2199   done
  2200   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2201 BEGIN {RS=" "; FS="/|\n";} {
  2202   lt_foo="";
  2203   lt_count=0;
  2204   for (lt_i = NF; lt_i > 0; lt_i--) {
  2205     if ($lt_i != "" && $lt_i != ".") {
  2206       if ($lt_i == "..") {
  2207         lt_count++;
  2208       } else {
  2209         if (lt_count == 0) {
  2210           lt_foo="/" $lt_i lt_foo;
  2211         } else {
  2212           lt_count--;
  2213         }
  2214       }
  2215     }
  2216   }
  2217   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2218   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2219 }'`
  2220   # AWK program above erroneously prepends '/' to C:/dos/paths
  2221   # for these hosts.
  2222   case $host_os in
  2223     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2224       $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  2225   esac
  2226   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2227 else
  2228   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2229 fi])
  2230 library_names_spec=
  2231 libname_spec='lib$name'
  2232 soname_spec=
  2233 shrext_cmds=".so"
  2234 postinstall_cmds=
  2235 postuninstall_cmds=
  2236 finish_cmds=
  2237 finish_eval=
  2238 shlibpath_var=
  2239 shlibpath_overrides_runpath=unknown
  2240 version_type=none
  2241 dynamic_linker="$host_os ld.so"
  2242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2243 need_lib_prefix=unknown
  2244 hardcode_into_libs=no
  2245 
  2246 # when you set need_version to no, make sure it does not cause -set_version
  2247 # flags to be left without arguments
  2248 need_version=unknown
  2249 
  2250 case $host_os in
  2251 aix3*)
  2252   version_type=linux # correct to gnu/linux during the next big refactor
  2253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2254   shlibpath_var=LIBPATH
  2255 
  2256   # AIX 3 has no versioning support, so we append a major version to the name.
  2257   soname_spec='${libname}${release}${shared_ext}$major'
  2258   ;;
  2259 
  2260 aix[[4-9]]*)
  2261   version_type=linux # correct to gnu/linux during the next big refactor
  2262   need_lib_prefix=no
  2263   need_version=no
  2264   hardcode_into_libs=yes
  2265   if test "$host_cpu" = ia64; then
  2266     # AIX 5 supports IA64
  2267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2268     shlibpath_var=LD_LIBRARY_PATH
  2269   else
  2270     # With GCC up to 2.95.x, collect2 would create an import file
  2271     # for dependence libraries.  The import file would start with
  2272     # the line `#! .'.  This would cause the generated library to
  2273     # depend on `.', always an invalid library.  This was fixed in
  2274     # development snapshots of GCC prior to 3.0.
  2275     case $host_os in
  2276       aix4 | aix4.[[01]] | aix4.[[01]].*)
  2277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2278 	   echo ' yes '
  2279 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2280 	:
  2281       else
  2282 	can_build_shared=no
  2283       fi
  2284       ;;
  2285     esac
  2286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2287     # soname into executable. Probably we can add versioning support to
  2288     # collect2, so additional links can be useful in future.
  2289     if test "$aix_use_runtimelinking" = yes; then
  2290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2291       # instead of lib<name>.a to let people know that these are not
  2292       # typical AIX shared libraries.
  2293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2294     else
  2295       # We preserve .a as extension for shared libraries through AIX4.2
  2296       # and later when we are not doing run time linking.
  2297       library_names_spec='${libname}${release}.a $libname.a'
  2298       soname_spec='${libname}${release}${shared_ext}$major'
  2299     fi
  2300     shlibpath_var=LIBPATH
  2301   fi
  2302   ;;
  2303 
  2304 amigaos*)
  2305   case $host_cpu in
  2306   powerpc)
  2307     # Since July 2007 AmigaOS4 officially supports .so libraries.
  2308     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2310     ;;
  2311   m68k)
  2312     library_names_spec='$libname.ixlibrary $libname.a'
  2313     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2314     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'
  2315     ;;
  2316   esac
  2317   ;;
  2318 
  2319 beos*)
  2320   library_names_spec='${libname}${shared_ext}'
  2321   dynamic_linker="$host_os ld.so"
  2322   shlibpath_var=LIBRARY_PATH
  2323   ;;
  2324 
  2325 bsdi[[45]]*)
  2326   version_type=linux # correct to gnu/linux during the next big refactor
  2327   need_version=no
  2328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2329   soname_spec='${libname}${release}${shared_ext}$major'
  2330   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2331   shlibpath_var=LD_LIBRARY_PATH
  2332   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2333   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2334   # the default ld.so.conf also contains /usr/contrib/lib and
  2335   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2336   # libtool to hard-code these into programs
  2337   ;;
  2338 
  2339 cygwin* | mingw* | pw32* | cegcc*)
  2340   version_type=windows
  2341   shrext_cmds=".dll"
  2342   need_version=no
  2343   need_lib_prefix=no
  2344 
  2345   case $GCC,$cc_basename in
  2346   yes,*)
  2347     # gcc
  2348     library_names_spec='$libname.dll.a'
  2349     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2350     postinstall_cmds='base_file=`basename \${file}`~
  2351       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2352       dldir=$destdir/`dirname \$dlpath`~
  2353       test -d \$dldir || mkdir -p \$dldir~
  2354       $install_prog $dir/$dlname \$dldir/$dlname~
  2355       chmod a+x \$dldir/$dlname~
  2356       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2357         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2358       fi'
  2359     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2360       dlpath=$dir/\$dldll~
  2361        $RM \$dlpath'
  2362     shlibpath_overrides_runpath=yes
  2363 
  2364     case $host_os in
  2365     cygwin*)
  2366       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2367       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2368 m4_if([$1], [],[
  2369       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2370       ;;
  2371     mingw* | cegcc*)
  2372       # MinGW DLLs use traditional 'lib' prefix
  2373       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2374       ;;
  2375     pw32*)
  2376       # pw32 DLLs use 'pw' prefix rather than 'lib'
  2377       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2378       ;;
  2379     esac
  2380     dynamic_linker='Win32 ld.exe'
  2381     ;;
  2382 
  2383   *,cl*)
  2384     # Native MSVC
  2385     libname_spec='$name'
  2386     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2387     library_names_spec='${libname}.dll.lib'
  2388 
  2389     case $build_os in
  2390     mingw*)
  2391       sys_lib_search_path_spec=
  2392       lt_save_ifs=$IFS
  2393       IFS=';'
  2394       for lt_path in $LIB
  2395       do
  2396         IFS=$lt_save_ifs
  2397         # Let DOS variable expansion print the short 8.3 style file name.
  2398         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2399         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2400       done
  2401       IFS=$lt_save_ifs
  2402       # Convert to MSYS style.
  2403       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2404       ;;
  2405     cygwin*)
  2406       # Convert to unix form, then to dos form, then back to unix form
  2407       # but this time dos style (no spaces!) so that the unix form looks
  2408       # like /cygdrive/c/PROGRA~1:/cygdr...
  2409       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2410       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2411       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2412       ;;
  2413     *)
  2414       sys_lib_search_path_spec="$LIB"
  2415       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2416         # It is most probably a Windows format PATH.
  2417         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2418       else
  2419         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2420       fi
  2421       # FIXME: find the short name or the path components, as spaces are
  2422       # common. (e.g. "Program Files" -> "PROGRA~1")
  2423       ;;
  2424     esac
  2425 
  2426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2427     postinstall_cmds='base_file=`basename \${file}`~
  2428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2429       dldir=$destdir/`dirname \$dlpath`~
  2430       test -d \$dldir || mkdir -p \$dldir~
  2431       $install_prog $dir/$dlname \$dldir/$dlname'
  2432     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2433       dlpath=$dir/\$dldll~
  2434        $RM \$dlpath'
  2435     shlibpath_overrides_runpath=yes
  2436     dynamic_linker='Win32 link.exe'
  2437     ;;
  2438 
  2439   *)
  2440     # Assume MSVC wrapper
  2441     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2442     dynamic_linker='Win32 ld.exe'
  2443     ;;
  2444   esac
  2445   # FIXME: first we should search . and the directory the executable is in
  2446   shlibpath_var=PATH
  2447   ;;
  2448 
  2449 darwin* | rhapsody*)
  2450   dynamic_linker="$host_os dyld"
  2451   version_type=darwin
  2452   need_lib_prefix=no
  2453   need_version=no
  2454   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2455   soname_spec='${libname}${release}${major}$shared_ext'
  2456   shlibpath_overrides_runpath=yes
  2457   shlibpath_var=DYLD_LIBRARY_PATH
  2458   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2459 m4_if([$1], [],[
  2460   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2461   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2462   ;;
  2463 
  2464 dgux*)
  2465   version_type=linux # correct to gnu/linux during the next big refactor
  2466   need_lib_prefix=no
  2467   need_version=no
  2468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2469   soname_spec='${libname}${release}${shared_ext}$major'
  2470   shlibpath_var=LD_LIBRARY_PATH
  2471   ;;
  2472 
  2473 freebsd* | dragonfly*)
  2474   # DragonFly does not have aout.  When/if they implement a new
  2475   # versioning mechanism, adjust this.
  2476   if test -x /usr/bin/objformat; then
  2477     objformat=`/usr/bin/objformat`
  2478   else
  2479     case $host_os in
  2480     freebsd[[23]].*) objformat=aout ;;
  2481     *) objformat=elf ;;
  2482     esac
  2483   fi
  2484   version_type=freebsd-$objformat
  2485   case $version_type in
  2486     freebsd-elf*)
  2487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2488       need_version=no
  2489       need_lib_prefix=no
  2490       ;;
  2491     freebsd-*)
  2492       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2493       need_version=yes
  2494       ;;
  2495   esac
  2496   shlibpath_var=LD_LIBRARY_PATH
  2497   case $host_os in
  2498   freebsd2.*)
  2499     shlibpath_overrides_runpath=yes
  2500     ;;
  2501   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2502     shlibpath_overrides_runpath=yes
  2503     hardcode_into_libs=yes
  2504     ;;
  2505   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2506   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2507     shlibpath_overrides_runpath=no
  2508     hardcode_into_libs=yes
  2509     ;;
  2510   *) # from 4.6 on, and DragonFly
  2511     shlibpath_overrides_runpath=yes
  2512     hardcode_into_libs=yes
  2513     ;;
  2514   esac
  2515   ;;
  2516 
  2517 gnu*)
  2518   version_type=linux # correct to gnu/linux during the next big refactor
  2519   need_lib_prefix=no
  2520   need_version=no
  2521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2522   soname_spec='${libname}${release}${shared_ext}$major'
  2523   shlibpath_var=LD_LIBRARY_PATH
  2524   shlibpath_overrides_runpath=no
  2525   hardcode_into_libs=yes
  2526   ;;
  2527 
  2528 haiku*)
  2529   version_type=linux # correct to gnu/linux during the next big refactor
  2530   need_lib_prefix=no
  2531   need_version=no
  2532   dynamic_linker="$host_os runtime_loader"
  2533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2534   soname_spec='${libname}${release}${shared_ext}$major'
  2535   shlibpath_var=LIBRARY_PATH
  2536   shlibpath_overrides_runpath=yes
  2537   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2538   hardcode_into_libs=yes
  2539   ;;
  2540 
  2541 hpux9* | hpux10* | hpux11*)
  2542   # Give a soname corresponding to the major version so that dld.sl refuses to
  2543   # link against other versions.
  2544   version_type=sunos
  2545   need_lib_prefix=no
  2546   need_version=no
  2547   case $host_cpu in
  2548   ia64*)
  2549     shrext_cmds='.so'
  2550     hardcode_into_libs=yes
  2551     dynamic_linker="$host_os dld.so"
  2552     shlibpath_var=LD_LIBRARY_PATH
  2553     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2555     soname_spec='${libname}${release}${shared_ext}$major'
  2556     if test "X$HPUX_IA64_MODE" = X32; then
  2557       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2558     else
  2559       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2560     fi
  2561     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2562     ;;
  2563   hppa*64*)
  2564     shrext_cmds='.sl'
  2565     hardcode_into_libs=yes
  2566     dynamic_linker="$host_os dld.sl"
  2567     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2568     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2570     soname_spec='${libname}${release}${shared_ext}$major'
  2571     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2573     ;;
  2574   *)
  2575     shrext_cmds='.sl'
  2576     dynamic_linker="$host_os dld.sl"
  2577     shlibpath_var=SHLIB_PATH
  2578     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2580     soname_spec='${libname}${release}${shared_ext}$major'
  2581     ;;
  2582   esac
  2583   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2584   postinstall_cmds='chmod 555 $lib'
  2585   # or fails outright, so override atomically:
  2586   install_override_mode=555
  2587   ;;
  2588 
  2589 interix[[3-9]]*)
  2590   version_type=linux # correct to gnu/linux during the next big refactor
  2591   need_lib_prefix=no
  2592   need_version=no
  2593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2594   soname_spec='${libname}${release}${shared_ext}$major'
  2595   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2596   shlibpath_var=LD_LIBRARY_PATH
  2597   shlibpath_overrides_runpath=no
  2598   hardcode_into_libs=yes
  2599   ;;
  2600 
  2601 irix5* | irix6* | nonstopux*)
  2602   case $host_os in
  2603     nonstopux*) version_type=nonstopux ;;
  2604     *)
  2605 	if test "$lt_cv_prog_gnu_ld" = yes; then
  2606 		version_type=linux # correct to gnu/linux during the next big refactor
  2607 	else
  2608 		version_type=irix
  2609 	fi ;;
  2610   esac
  2611   need_lib_prefix=no
  2612   need_version=no
  2613   soname_spec='${libname}${release}${shared_ext}$major'
  2614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2615   case $host_os in
  2616   irix5* | nonstopux*)
  2617     libsuff= shlibsuff=
  2618     ;;
  2619   *)
  2620     case $LD in # libtool.m4 will add one of these switches to LD
  2621     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2622       libsuff= shlibsuff= libmagic=32-bit;;
  2623     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2624       libsuff=32 shlibsuff=N32 libmagic=N32;;
  2625     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2626       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2627     *) libsuff= shlibsuff= libmagic=never-match;;
  2628     esac
  2629     ;;
  2630   esac
  2631   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2632   shlibpath_overrides_runpath=no
  2633   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2634   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2635   hardcode_into_libs=yes
  2636   ;;
  2637 
  2638 # No shared lib support for Linux oldld, aout, or coff.
  2639 linux*oldld* | linux*aout* | linux*coff*)
  2640   dynamic_linker=no
  2641   ;;
  2642 
  2643 # This must be glibc/ELF.
  2644 linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2645   version_type=linux # correct to gnu/linux during the next big refactor
  2646   need_lib_prefix=no
  2647   need_version=no
  2648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2649   soname_spec='${libname}${release}${shared_ext}$major'
  2650   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2651   shlibpath_var=LD_LIBRARY_PATH
  2652   shlibpath_overrides_runpath=no
  2653 
  2654   # Some binutils ld are patched to set DT_RUNPATH
  2655   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2656     [lt_cv_shlibpath_overrides_runpath=no
  2657     save_LDFLAGS=$LDFLAGS
  2658     save_libdir=$libdir
  2659     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2660 	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2661     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2662       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2663 	 [lt_cv_shlibpath_overrides_runpath=yes])])
  2664     LDFLAGS=$save_LDFLAGS
  2665     libdir=$save_libdir
  2666     ])
  2667   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2668 
  2669   # This implies no fast_install, which is unacceptable.
  2670   # Some rework will be needed to allow for fast_install
  2671   # before this can be enabled.
  2672   hardcode_into_libs=yes
  2673 
  2674   # Append ld.so.conf contents to the search path
  2675   if test -f /etc/ld.so.conf; then
  2676     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' ' '`
  2677     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2678   fi
  2679 
  2680   # We used to test for /lib/ld.so.1 and disable shared libraries on
  2681   # powerpc, because MkLinux only supported shared libraries with the
  2682   # GNU dynamic linker.  Since this was broken with cross compilers,
  2683   # most powerpc-linux boxes support dynamic linking these days and
  2684   # people can always --disable-shared, the test was removed, and we
  2685   # assume the GNU/Linux dynamic linker is in use.
  2686   dynamic_linker='GNU/Linux ld.so'
  2687   ;;
  2688 
  2689 netbsd*)
  2690   version_type=sunos
  2691   need_lib_prefix=no
  2692   need_version=no
  2693   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2695     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2696     dynamic_linker='NetBSD (a.out) ld.so'
  2697   else
  2698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2699     soname_spec='${libname}${release}${shared_ext}$major'
  2700     dynamic_linker='NetBSD ld.elf_so'
  2701   fi
  2702   shlibpath_var=LD_LIBRARY_PATH
  2703   shlibpath_overrides_runpath=yes
  2704   hardcode_into_libs=yes
  2705   ;;
  2706 
  2707 newsos6)
  2708   version_type=linux # correct to gnu/linux during the next big refactor
  2709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2710   shlibpath_var=LD_LIBRARY_PATH
  2711   shlibpath_overrides_runpath=yes
  2712   ;;
  2713 
  2714 *nto* | *qnx*)
  2715   version_type=qnx
  2716   need_lib_prefix=no
  2717   need_version=no
  2718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2719   soname_spec='${libname}${release}${shared_ext}$major'
  2720   shlibpath_var=LD_LIBRARY_PATH
  2721   shlibpath_overrides_runpath=no
  2722   hardcode_into_libs=yes
  2723   dynamic_linker='ldqnx.so'
  2724   ;;
  2725 
  2726 openbsd*)
  2727   version_type=sunos
  2728   sys_lib_dlsearch_path_spec="/usr/lib"
  2729   need_lib_prefix=no
  2730   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2731   case $host_os in
  2732     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  2733     *)				need_version=no  ;;
  2734   esac
  2735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2737   shlibpath_var=LD_LIBRARY_PATH
  2738   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2739     case $host_os in
  2740       openbsd2.[[89]] | openbsd2.[[89]].*)
  2741 	shlibpath_overrides_runpath=no
  2742 	;;
  2743       *)
  2744 	shlibpath_overrides_runpath=yes
  2745 	;;
  2746       esac
  2747   else
  2748     shlibpath_overrides_runpath=yes
  2749   fi
  2750   ;;
  2751 
  2752 os2*)
  2753   libname_spec='$name'
  2754   shrext_cmds=".dll"
  2755   need_lib_prefix=no
  2756   library_names_spec='$libname${shared_ext} $libname.a'
  2757   dynamic_linker='OS/2 ld.exe'
  2758   shlibpath_var=LIBPATH
  2759   ;;
  2760 
  2761 osf3* | osf4* | osf5*)
  2762   version_type=osf
  2763   need_lib_prefix=no
  2764   need_version=no
  2765   soname_spec='${libname}${release}${shared_ext}$major'
  2766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2767   shlibpath_var=LD_LIBRARY_PATH
  2768   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2769   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2770   ;;
  2771 
  2772 rdos*)
  2773   dynamic_linker=no
  2774   ;;
  2775 
  2776 solaris*)
  2777   version_type=linux # correct to gnu/linux during the next big refactor
  2778   need_lib_prefix=no
  2779   need_version=no
  2780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2781   soname_spec='${libname}${release}${shared_ext}$major'
  2782   shlibpath_var=LD_LIBRARY_PATH
  2783   shlibpath_overrides_runpath=yes
  2784   hardcode_into_libs=yes
  2785   # ldd complains unless libraries are executable
  2786   postinstall_cmds='chmod +x $lib'
  2787   ;;
  2788 
  2789 sunos4*)
  2790   version_type=sunos
  2791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2792   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2793   shlibpath_var=LD_LIBRARY_PATH
  2794   shlibpath_overrides_runpath=yes
  2795   if test "$with_gnu_ld" = yes; then
  2796     need_lib_prefix=no
  2797   fi
  2798   need_version=yes
  2799   ;;
  2800 
  2801 sysv4 | sysv4.3*)
  2802   version_type=linux # correct to gnu/linux during the next big refactor
  2803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2804   soname_spec='${libname}${release}${shared_ext}$major'
  2805   shlibpath_var=LD_LIBRARY_PATH
  2806   case $host_vendor in
  2807     sni)
  2808       shlibpath_overrides_runpath=no
  2809       need_lib_prefix=no
  2810       runpath_var=LD_RUN_PATH
  2811       ;;
  2812     siemens)
  2813       need_lib_prefix=no
  2814       ;;
  2815     motorola)
  2816       need_lib_prefix=no
  2817       need_version=no
  2818       shlibpath_overrides_runpath=no
  2819       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2820       ;;
  2821   esac
  2822   ;;
  2823 
  2824 sysv4*MP*)
  2825   if test -d /usr/nec ;then
  2826     version_type=linux # correct to gnu/linux during the next big refactor
  2827     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2828     soname_spec='$libname${shared_ext}.$major'
  2829     shlibpath_var=LD_LIBRARY_PATH
  2830   fi
  2831   ;;
  2832 
  2833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2834   version_type=freebsd-elf
  2835   need_lib_prefix=no
  2836   need_version=no
  2837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2838   soname_spec='${libname}${release}${shared_ext}$major'
  2839   shlibpath_var=LD_LIBRARY_PATH
  2840   shlibpath_overrides_runpath=yes
  2841   hardcode_into_libs=yes
  2842   if test "$with_gnu_ld" = yes; then
  2843     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2844   else
  2845     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2846     case $host_os in
  2847       sco3.2v5*)
  2848         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2849 	;;
  2850     esac
  2851   fi
  2852   sys_lib_dlsearch_path_spec='/usr/lib'
  2853   ;;
  2854 
  2855 tpf*)
  2856   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  2857   version_type=linux # correct to gnu/linux during the next big refactor
  2858   need_lib_prefix=no
  2859   need_version=no
  2860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2861   shlibpath_var=LD_LIBRARY_PATH
  2862   shlibpath_overrides_runpath=no
  2863   hardcode_into_libs=yes
  2864   ;;
  2865 
  2866 uts4*)
  2867   version_type=linux # correct to gnu/linux during the next big refactor
  2868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2869   soname_spec='${libname}${release}${shared_ext}$major'
  2870   shlibpath_var=LD_LIBRARY_PATH
  2871   ;;
  2872 
  2873 *)
  2874   dynamic_linker=no
  2875   ;;
  2876 esac
  2877 AC_MSG_RESULT([$dynamic_linker])
  2878 test "$dynamic_linker" = no && can_build_shared=no
  2879 
  2880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2881 if test "$GCC" = yes; then
  2882   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2883 fi
  2884 
  2885 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2886   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2887 fi
  2888 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2889   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2890 fi
  2891 
  2892 _LT_DECL([], [variables_saved_for_relink], [1],
  2893     [Variables whose values should be saved in libtool wrapper scripts and
  2894     restored at link time])
  2895 _LT_DECL([], [need_lib_prefix], [0],
  2896     [Do we need the "lib" prefix for modules?])
  2897 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2898 _LT_DECL([], [version_type], [0], [Library versioning type])
  2899 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
  2900 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2901 _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2902     [Is shlibpath searched before the hard-coded library search path?])
  2903 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2904 _LT_DECL([], [library_names_spec], [1],
  2905     [[List of archive names.  First name is the real one, the rest are links.
  2906     The last name is the one that the linker finds with -lNAME]])
  2907 _LT_DECL([], [soname_spec], [1],
  2908     [[The coded name of the library, if different from the real name]])
  2909 _LT_DECL([], [install_override_mode], [1],
  2910     [Permission mode override for installation of shared libraries])
  2911 _LT_DECL([], [postinstall_cmds], [2],
  2912     [Command to use after installation of a shared archive])
  2913 _LT_DECL([], [postuninstall_cmds], [2],
  2914     [Command to use after uninstallation of a shared archive])
  2915 _LT_DECL([], [finish_cmds], [2],
  2916     [Commands used to finish a libtool library installation in a directory])
  2917 _LT_DECL([], [finish_eval], [1],
  2918     [[As "finish_cmds", except a single script fragment to be evaled but
  2919     not shown]])
  2920 _LT_DECL([], [hardcode_into_libs], [0],
  2921     [Whether we should hardcode library paths into libraries])
  2922 _LT_DECL([], [sys_lib_search_path_spec], [2],
  2923     [Compile-time system search path for libraries])
  2924 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2925     [Run-time system search path for libraries])
  2926 ])# _LT_SYS_DYNAMIC_LINKER
  2927 
  2928 
  2929 # _LT_PATH_TOOL_PREFIX(TOOL)
  2930 # --------------------------
  2931 # find a file program which can recognize shared library
  2932 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2933 [m4_require([_LT_DECL_EGREP])dnl
  2934 AC_MSG_CHECKING([for $1])
  2935 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2936 [case $MAGIC_CMD in
  2937 [[\\/*] |  ?:[\\/]*])
  2938   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2939   ;;
  2940 *)
  2941   lt_save_MAGIC_CMD="$MAGIC_CMD"
  2942   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2943 dnl $ac_dummy forces splitting on constant user-supplied paths.
  2944 dnl POSIX.2 word splitting is done only on the output of word expansions,
  2945 dnl not every word.  This closes a longstanding sh security hole.
  2946   ac_dummy="m4_if([$2], , $PATH, [$2])"
  2947   for ac_dir in $ac_dummy; do
  2948     IFS="$lt_save_ifs"
  2949     test -z "$ac_dir" && ac_dir=.
  2950     if test -f $ac_dir/$1; then
  2951       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2952       if test -n "$file_magic_test_file"; then
  2953 	case $deplibs_check_method in
  2954 	"file_magic "*)
  2955 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2956 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2957 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2958 	    $EGREP "$file_magic_regex" > /dev/null; then
  2959 	    :
  2960 	  else
  2961 	    cat <<_LT_EOF 1>&2
  2962 
  2963 *** Warning: the command libtool uses to detect shared libraries,
  2964 *** $file_magic_cmd, produces output that libtool cannot recognize.
  2965 *** The result is that libtool may fail to recognize shared libraries
  2966 *** as such.  This will affect the creation of libtool libraries that
  2967 *** depend on shared libraries, but programs linked with such libtool
  2968 *** libraries will work regardless of this problem.  Nevertheless, you
  2969 *** may want to report the problem to your system manager and/or to
  2970 *** bug-libtool@gnu.org
  2971 
  2972 _LT_EOF
  2973 	  fi ;;
  2974 	esac
  2975       fi
  2976       break
  2977     fi
  2978   done
  2979   IFS="$lt_save_ifs"
  2980   MAGIC_CMD="$lt_save_MAGIC_CMD"
  2981   ;;
  2982 esac])
  2983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2984 if test -n "$MAGIC_CMD"; then
  2985   AC_MSG_RESULT($MAGIC_CMD)
  2986 else
  2987   AC_MSG_RESULT(no)
  2988 fi
  2989 _LT_DECL([], [MAGIC_CMD], [0],
  2990 	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2991 ])# _LT_PATH_TOOL_PREFIX
  2992 
  2993 # Old name:
  2994 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2995 dnl aclocal-1.4 backwards compatibility:
  2996 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2997 
  2998 
  2999 # _LT_PATH_MAGIC
  3000 # --------------
  3001 # find a file program which can recognize a shared library
  3002 m4_defun([_LT_PATH_MAGIC],
  3003 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3004 if test -z "$lt_cv_path_MAGIC_CMD"; then
  3005   if test -n "$ac_tool_prefix"; then
  3006     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3007   else
  3008     MAGIC_CMD=:
  3009   fi
  3010 fi
  3011 ])# _LT_PATH_MAGIC
  3012 
  3013 
  3014 # LT_PATH_LD
  3015 # ----------
  3016 # find the pathname to the GNU or non-GNU linker
  3017 AC_DEFUN([LT_PATH_LD],
  3018 [AC_REQUIRE([AC_PROG_CC])dnl
  3019 AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3020 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3021 m4_require([_LT_DECL_SED])dnl
  3022 m4_require([_LT_DECL_EGREP])dnl
  3023 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3024 
  3025 AC_ARG_WITH([gnu-ld],
  3026     [AS_HELP_STRING([--with-gnu-ld],
  3027 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3028     [test "$withval" = no || with_gnu_ld=yes],
  3029     [with_gnu_ld=no])dnl
  3030 
  3031 ac_prog=ld
  3032 if test "$GCC" = yes; then
  3033   # Check if gcc -print-prog-name=ld gives a path.
  3034   AC_MSG_CHECKING([for ld used by $CC])
  3035   case $host in
  3036   *-*-mingw*)
  3037     # gcc leaves a trailing carriage return which upsets mingw
  3038     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3039   *)
  3040     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3041   esac
  3042   case $ac_prog in
  3043     # Accept absolute paths.
  3044     [[\\/]]* | ?:[[\\/]]*)
  3045       re_direlt='/[[^/]][[^/]]*/\.\./'
  3046       # Canonicalize the pathname of ld
  3047       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3048       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3049 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3050       done
  3051       test -z "$LD" && LD="$ac_prog"
  3052       ;;
  3053   "")
  3054     # If it fails, then pretend we aren't using GCC.
  3055     ac_prog=ld
  3056     ;;
  3057   *)
  3058     # If it is relative, then search for the first ld in PATH.
  3059     with_gnu_ld=unknown
  3060     ;;
  3061   esac
  3062 elif test "$with_gnu_ld" = yes; then
  3063   AC_MSG_CHECKING([for GNU ld])
  3064 else
  3065   AC_MSG_CHECKING([for non-GNU ld])
  3066 fi
  3067 AC_CACHE_VAL(lt_cv_path_LD,
  3068 [if test -z "$LD"; then
  3069   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3070   for ac_dir in $PATH; do
  3071     IFS="$lt_save_ifs"
  3072     test -z "$ac_dir" && ac_dir=.
  3073     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3074       lt_cv_path_LD="$ac_dir/$ac_prog"
  3075       # Check to see if the program is GNU ld.  I'd rather use --version,
  3076       # but apparently some variants of GNU ld only accept -v.
  3077       # Break only if it was the GNU/non-GNU ld that we prefer.
  3078       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3079       *GNU* | *'with BFD'*)
  3080 	test "$with_gnu_ld" != no && break
  3081 	;;
  3082       *)
  3083 	test "$with_gnu_ld" != yes && break
  3084 	;;
  3085       esac
  3086     fi
  3087   done
  3088   IFS="$lt_save_ifs"
  3089 else
  3090   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3091 fi])
  3092 LD="$lt_cv_path_LD"
  3093 if test -n "$LD"; then
  3094   AC_MSG_RESULT($LD)
  3095 else
  3096   AC_MSG_RESULT(no)
  3097 fi
  3098 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3099 _LT_PATH_LD_GNU
  3100 AC_SUBST([LD])
  3101 
  3102 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3103 ])# LT_PATH_LD
  3104 
  3105 # Old names:
  3106 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3107 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3108 dnl aclocal-1.4 backwards compatibility:
  3109 dnl AC_DEFUN([AM_PROG_LD], [])
  3110 dnl AC_DEFUN([AC_PROG_LD], [])
  3111 
  3112 
  3113 # _LT_PATH_LD_GNU
  3114 #- --------------
  3115 m4_defun([_LT_PATH_LD_GNU],
  3116 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3117 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3118 case `$LD -v 2>&1 </dev/null` in
  3119 *GNU* | *'with BFD'*)
  3120   lt_cv_prog_gnu_ld=yes
  3121   ;;
  3122 *)
  3123   lt_cv_prog_gnu_ld=no
  3124   ;;
  3125 esac])
  3126 with_gnu_ld=$lt_cv_prog_gnu_ld
  3127 ])# _LT_PATH_LD_GNU
  3128 
  3129 
  3130 # _LT_CMD_RELOAD
  3131 # --------------
  3132 # find reload flag for linker
  3133 #   -- PORTME Some linkers may need a different reload flag.
  3134 m4_defun([_LT_CMD_RELOAD],
  3135 [AC_CACHE_CHECK([for $LD option to reload object files],
  3136   lt_cv_ld_reload_flag,
  3137   [lt_cv_ld_reload_flag='-r'])
  3138 reload_flag=$lt_cv_ld_reload_flag
  3139 case $reload_flag in
  3140 "" | " "*) ;;
  3141 *) reload_flag=" $reload_flag" ;;
  3142 esac
  3143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3144 case $host_os in
  3145   cygwin* | mingw* | pw32* | cegcc*)
  3146     if test "$GCC" != yes; then
  3147       reload_cmds=false
  3148     fi
  3149     ;;
  3150   darwin*)
  3151     if test "$GCC" = yes; then
  3152       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3153     else
  3154       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3155     fi
  3156     ;;
  3157 esac
  3158 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3159 _LT_TAGDECL([], [reload_cmds], [2])dnl
  3160 ])# _LT_CMD_RELOAD
  3161 
  3162 
  3163 # _LT_CHECK_MAGIC_METHOD
  3164 # ----------------------
  3165 # how to check for library dependencies
  3166 #  -- PORTME fill in with the dynamic library characteristics
  3167 m4_defun([_LT_CHECK_MAGIC_METHOD],
  3168 [m4_require([_LT_DECL_EGREP])
  3169 m4_require([_LT_DECL_OBJDUMP])
  3170 AC_CACHE_CHECK([how to recognize dependent libraries],
  3171 lt_cv_deplibs_check_method,
  3172 [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3173 lt_cv_file_magic_test_file=
  3174 lt_cv_deplibs_check_method='unknown'
  3175 # Need to set the preceding variable on all platforms that support
  3176 # interlibrary dependencies.
  3177 # 'none' -- dependencies not supported.
  3178 # `unknown' -- same as none, but documents that we really don't know.
  3179 # 'pass_all' -- all dependencies passed with no checks.
  3180 # 'test_compile' -- check by making test program.
  3181 # 'file_magic [[regex]]' -- check by looking for files in library path
  3182 # which responds to the $file_magic_cmd with a given extended regex.
  3183 # If you have `file' or equivalent on your system and you're not sure
  3184 # whether `pass_all' will *always* work, you probably want this one.
  3185 
  3186 case $host_os in
  3187 aix[[4-9]]*)
  3188   lt_cv_deplibs_check_method=pass_all
  3189   ;;
  3190 
  3191 beos*)
  3192   lt_cv_deplibs_check_method=pass_all
  3193   ;;
  3194 
  3195 bsdi[[45]]*)
  3196   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3197   lt_cv_file_magic_cmd='/usr/bin/file -L'
  3198   lt_cv_file_magic_test_file=/shlib/libc.so
  3199   ;;
  3200 
  3201 cygwin*)
  3202   # func_win32_libid is a shell function defined in ltmain.sh
  3203   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3204   lt_cv_file_magic_cmd='func_win32_libid'
  3205   lt_cv_deplibs_check_method=pass_all
  3206   ;;
  3207 
  3208 mingw* | pw32*)
  3209   # Base MSYS/MinGW do not provide the 'file' command needed by
  3210   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3211   # unless we find 'file', for example because we are cross-compiling.
  3212   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  3213   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  3214     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3215     lt_cv_file_magic_cmd='func_win32_libid'
  3216   else
  3217     # Keep this pattern in sync with the one in func_win32_libid.
  3218     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3219     lt_cv_file_magic_cmd='$OBJDUMP -f'
  3220   fi
  3221   lt_cv_deplibs_check_method=pass_all
  3222   ;;
  3223 
  3224 cegcc*)
  3225   # use the weaker test based on 'objdump'. See mingw*.
  3226   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3227   lt_cv_file_magic_cmd='$OBJDUMP -f'
  3228   ;;
  3229 
  3230 darwin* | rhapsody*)
  3231   lt_cv_deplibs_check_method=pass_all
  3232   ;;
  3233 
  3234 freebsd* | dragonfly*)
  3235   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3236     case $host_cpu in
  3237     i*86 )
  3238       # Not sure whether the presence of OpenBSD here was a mistake.
  3239       # Let's accept both of them until this is cleared up.
  3240       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3241       lt_cv_file_magic_cmd=/usr/bin/file
  3242       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3243       ;;
  3244     esac
  3245   else
  3246     lt_cv_deplibs_check_method=pass_all
  3247   fi
  3248   ;;
  3249 
  3250 gnu*)
  3251   lt_cv_deplibs_check_method=pass_all
  3252   ;;
  3253 
  3254 haiku*)
  3255   lt_cv_deplibs_check_method=pass_all
  3256   ;;
  3257 
  3258 hpux10.20* | hpux11*)
  3259   lt_cv_file_magic_cmd=/usr/bin/file
  3260   case $host_cpu in
  3261   ia64*)
  3262     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3263     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3264     ;;
  3265   hppa*64*)
  3266     [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]']
  3267     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3268     ;;
  3269   *)
  3270     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3271     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3272     ;;
  3273   esac
  3274   ;;
  3275 
  3276 interix[[3-9]]*)
  3277   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3278   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3279   ;;
  3280 
  3281 irix5* | irix6* | nonstopux*)
  3282   case $LD in
  3283   *-32|*"-32 ") libmagic=32-bit;;
  3284   *-n32|*"-n32 ") libmagic=N32;;
  3285   *-64|*"-64 ") libmagic=64-bit;;
  3286   *) libmagic=never-match;;
  3287   esac
  3288   lt_cv_deplibs_check_method=pass_all
  3289   ;;
  3290 
  3291 # This must be glibc/ELF.
  3292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3293   lt_cv_deplibs_check_method=pass_all
  3294   ;;
  3295 
  3296 netbsd*)
  3297   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3298     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3299   else
  3300     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3301   fi
  3302   ;;
  3303 
  3304 newos6*)
  3305   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3306   lt_cv_file_magic_cmd=/usr/bin/file
  3307   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3308   ;;
  3309 
  3310 *nto* | *qnx*)
  3311   lt_cv_deplibs_check_method=pass_all
  3312   ;;
  3313 
  3314 openbsd*)
  3315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3316     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3317   else
  3318     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3319   fi
  3320   ;;
  3321 
  3322 osf3* | osf4* | osf5*)
  3323   lt_cv_deplibs_check_method=pass_all
  3324   ;;
  3325 
  3326 rdos*)
  3327   lt_cv_deplibs_check_method=pass_all
  3328   ;;
  3329 
  3330 solaris*)
  3331   lt_cv_deplibs_check_method=pass_all
  3332   ;;
  3333 
  3334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3335   lt_cv_deplibs_check_method=pass_all
  3336   ;;
  3337 
  3338 sysv4 | sysv4.3*)
  3339   case $host_vendor in
  3340   motorola)
  3341     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  3342     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3343     ;;
  3344   ncr)
  3345     lt_cv_deplibs_check_method=pass_all
  3346     ;;
  3347   sequent)
  3348     lt_cv_file_magic_cmd='/bin/file'
  3349     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3350     ;;
  3351   sni)
  3352     lt_cv_file_magic_cmd='/bin/file'
  3353     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3354     lt_cv_file_magic_test_file=/lib/libc.so
  3355     ;;
  3356   siemens)
  3357     lt_cv_deplibs_check_method=pass_all
  3358     ;;
  3359   pc)
  3360     lt_cv_deplibs_check_method=pass_all
  3361     ;;
  3362   esac
  3363   ;;
  3364 
  3365 tpf*)
  3366   lt_cv_deplibs_check_method=pass_all
  3367   ;;
  3368 esac
  3369 ])
  3370 
  3371 file_magic_glob=
  3372 want_nocaseglob=no
  3373 if test "$build" = "$host"; then
  3374   case $host_os in
  3375   mingw* | pw32*)
  3376     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3377       want_nocaseglob=yes
  3378     else
  3379       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3380     fi
  3381     ;;
  3382   esac
  3383 fi
  3384 
  3385 file_magic_cmd=$lt_cv_file_magic_cmd
  3386 deplibs_check_method=$lt_cv_deplibs_check_method
  3387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3388 
  3389 _LT_DECL([], [deplibs_check_method], [1],
  3390     [Method to check whether dependent libraries are shared objects])
  3391 _LT_DECL([], [file_magic_cmd], [1],
  3392     [Command to use when deplibs_check_method = "file_magic"])
  3393 _LT_DECL([], [file_magic_glob], [1],
  3394     [How to find potential files when deplibs_check_method = "file_magic"])
  3395 _LT_DECL([], [want_nocaseglob], [1],
  3396     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3397 ])# _LT_CHECK_MAGIC_METHOD
  3398 
  3399 
  3400 # LT_PATH_NM
  3401 # ----------
  3402 # find the pathname to a BSD- or MS-compatible name lister
  3403 AC_DEFUN([LT_PATH_NM],
  3404 [AC_REQUIRE([AC_PROG_CC])dnl
  3405 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3406 [if test -n "$NM"; then
  3407   # Let the user override the test.
  3408   lt_cv_path_NM="$NM"
  3409 else
  3410   lt_nm_to_check="${ac_tool_prefix}nm"
  3411   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3412     lt_nm_to_check="$lt_nm_to_check nm"
  3413   fi
  3414   for lt_tmp_nm in $lt_nm_to_check; do
  3415     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3416     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3417       IFS="$lt_save_ifs"
  3418       test -z "$ac_dir" && ac_dir=.
  3419       tmp_nm="$ac_dir/$lt_tmp_nm"
  3420       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3421 	# Check to see if the nm accepts a BSD-compat flag.
  3422 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3423 	#   nm: unknown option "B" ignored
  3424 	# Tru64's nm complains that /dev/null is an invalid object file
  3425 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3426 	*/dev/null* | *'Invalid file or object type'*)
  3427 	  lt_cv_path_NM="$tmp_nm -B"
  3428 	  break
  3429 	  ;;
  3430 	*)
  3431 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3432 	  */dev/null*)
  3433 	    lt_cv_path_NM="$tmp_nm -p"
  3434 	    break
  3435 	    ;;
  3436 	  *)
  3437 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3438 	    continue # so that we can try to find one that supports BSD flags
  3439 	    ;;
  3440 	  esac
  3441 	  ;;
  3442 	esac
  3443       fi
  3444     done
  3445     IFS="$lt_save_ifs"
  3446   done
  3447   : ${lt_cv_path_NM=no}
  3448 fi])
  3449 if test "$lt_cv_path_NM" != "no"; then
  3450   NM="$lt_cv_path_NM"
  3451 else
  3452   # Didn't find any BSD compatible name lister, look for dumpbin.
  3453   if test -n "$DUMPBIN"; then :
  3454     # Let the user override the test.
  3455   else
  3456     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3457     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3458     *COFF*)
  3459       DUMPBIN="$DUMPBIN -symbols"
  3460       ;;
  3461     *)
  3462       DUMPBIN=:
  3463       ;;
  3464     esac
  3465   fi
  3466   AC_SUBST([DUMPBIN])
  3467   if test "$DUMPBIN" != ":"; then
  3468     NM="$DUMPBIN"
  3469   fi
  3470 fi
  3471 test -z "$NM" && NM=nm
  3472 AC_SUBST([NM])
  3473 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3474 
  3475 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3476   [lt_cv_nm_interface="BSD nm"
  3477   echo "int some_variable = 0;" > conftest.$ac_ext
  3478   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3479   (eval "$ac_compile" 2>conftest.err)
  3480   cat conftest.err >&AS_MESSAGE_LOG_FD
  3481   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3482   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3483   cat conftest.err >&AS_MESSAGE_LOG_FD
  3484   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3485   cat conftest.out >&AS_MESSAGE_LOG_FD
  3486   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3487     lt_cv_nm_interface="MS dumpbin"
  3488   fi
  3489   rm -f conftest*])
  3490 ])# LT_PATH_NM
  3491 
  3492 # Old names:
  3493 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3494 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3495 dnl aclocal-1.4 backwards compatibility:
  3496 dnl AC_DEFUN([AM_PROG_NM], [])
  3497 dnl AC_DEFUN([AC_PROG_NM], [])
  3498 
  3499 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3500 # --------------------------------
  3501 # how to determine the name of the shared library
  3502 # associated with a specific link library.
  3503 #  -- PORTME fill in with the dynamic library characteristics
  3504 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3505 [m4_require([_LT_DECL_EGREP])
  3506 m4_require([_LT_DECL_OBJDUMP])
  3507 m4_require([_LT_DECL_DLLTOOL])
  3508 AC_CACHE_CHECK([how to associate runtime and link libraries],
  3509 lt_cv_sharedlib_from_linklib_cmd,
  3510 [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3511 
  3512 case $host_os in
  3513 cygwin* | mingw* | pw32* | cegcc*)
  3514   # two different shell functions defined in ltmain.sh
  3515   # decide which to use based on capabilities of $DLLTOOL
  3516   case `$DLLTOOL --help 2>&1` in
  3517   *--identify-strict*)
  3518     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3519     ;;
  3520   *)
  3521     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3522     ;;
  3523   esac
  3524   ;;
  3525 *)
  3526   # fallback: assume linklib IS sharedlib
  3527   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3528   ;;
  3529 esac
  3530 ])
  3531 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3532 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3533 
  3534 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3535     [Command to associate shared and link libraries])
  3536 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3537 
  3538 
  3539 # _LT_PATH_MANIFEST_TOOL
  3540 # ----------------------
  3541 # locate the manifest tool
  3542 m4_defun([_LT_PATH_MANIFEST_TOOL],
  3543 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3544 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3545 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3546   [lt_cv_path_mainfest_tool=no
  3547   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3548   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3549   cat conftest.err >&AS_MESSAGE_LOG_FD
  3550   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3551     lt_cv_path_mainfest_tool=yes
  3552   fi
  3553   rm -f conftest*])
  3554 if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3555   MANIFEST_TOOL=:
  3556 fi
  3557 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3558 ])# _LT_PATH_MANIFEST_TOOL
  3559 
  3560 
  3561 # LT_LIB_M
  3562 # --------
  3563 # check for math library
  3564 AC_DEFUN([LT_LIB_M],
  3565 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3566 LIBM=
  3567 case $host in
  3568 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3569   # These system don't have libm, or don't need it
  3570   ;;
  3571 *-ncr-sysv4.3*)
  3572   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3573   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3574   ;;
  3575 *)
  3576   AC_CHECK_LIB(m, cos, LIBM="-lm")
  3577   ;;
  3578 esac
  3579 AC_SUBST([LIBM])
  3580 ])# LT_LIB_M
  3581 
  3582 # Old name:
  3583 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3584 dnl aclocal-1.4 backwards compatibility:
  3585 dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3586 
  3587 
  3588 # _LT_COMPILER_NO_RTTI([TAGNAME])
  3589 # -------------------------------
  3590 m4_defun([_LT_COMPILER_NO_RTTI],
  3591 [m4_require([_LT_TAG_COMPILER])dnl
  3592 
  3593 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3594 
  3595 if test "$GCC" = yes; then
  3596   case $cc_basename in
  3597   nvcc*)
  3598     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3599   *)
  3600     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3601   esac
  3602 
  3603   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3604     lt_cv_prog_compiler_rtti_exceptions,
  3605     [-fno-rtti -fno-exceptions], [],
  3606     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3607 fi
  3608 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3609 	[Compiler flag to turn off builtin functions])
  3610 ])# _LT_COMPILER_NO_RTTI
  3611 
  3612 
  3613 # _LT_CMD_GLOBAL_SYMBOLS
  3614 # ----------------------
  3615 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3616 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3617 AC_REQUIRE([AC_PROG_CC])dnl
  3618 AC_REQUIRE([AC_PROG_AWK])dnl
  3619 AC_REQUIRE([LT_PATH_NM])dnl
  3620 AC_REQUIRE([LT_PATH_LD])dnl
  3621 m4_require([_LT_DECL_SED])dnl
  3622 m4_require([_LT_DECL_EGREP])dnl
  3623 m4_require([_LT_TAG_COMPILER])dnl
  3624 
  3625 # Check for command to grab the raw symbol name followed by C symbol from nm.
  3626 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3627 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3628 [
  3629 # These are sane defaults that work on at least a few old systems.
  3630 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  3631 
  3632 # Character class describing NM global symbol codes.
  3633 symcode='[[BCDEGRST]]'
  3634 
  3635 # Regexp to match symbols that can be accessed directly from C.
  3636 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3637 
  3638 # Define system-specific variables.
  3639 case $host_os in
  3640 aix*)
  3641   symcode='[[BCDT]]'
  3642   ;;
  3643 cygwin* | mingw* | pw32* | cegcc*)
  3644   symcode='[[ABCDGISTW]]'
  3645   ;;
  3646 hpux*)
  3647   if test "$host_cpu" = ia64; then
  3648     symcode='[[ABCDEGRST]]'
  3649   fi
  3650   ;;
  3651 irix* | nonstopux*)
  3652   symcode='[[BCDEGRST]]'
  3653   ;;
  3654 osf*)
  3655   symcode='[[BCDEGQRST]]'
  3656   ;;
  3657 solaris*)
  3658   symcode='[[BDRT]]'
  3659   ;;
  3660 sco3.2v5*)
  3661   symcode='[[DT]]'
  3662   ;;
  3663 sysv4.2uw2*)
  3664   symcode='[[DT]]'
  3665   ;;
  3666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3667   symcode='[[ABDT]]'
  3668   ;;
  3669 sysv4)
  3670   symcode='[[DFNSTU]]'
  3671   ;;
  3672 esac
  3673 
  3674 # If we're using GNU nm, then use its standard symbol codes.
  3675 case `$NM -V 2>&1` in
  3676 *GNU* | *'with BFD'*)
  3677   symcode='[[ABCDGIRSTW]]' ;;
  3678 esac
  3679 
  3680 # Transform an extracted symbol line into a proper C declaration.
  3681 # Some systems (esp. on ia64) link data and code symbols differently,
  3682 # so use this general approach.
  3683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3684 
  3685 # Transform an extracted symbol line into symbol name and symbol address
  3686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  3687 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'"
  3688 
  3689 # Handle CRLF in mingw tool chain
  3690 opt_cr=
  3691 case $build_os in
  3692 mingw*)
  3693   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3694   ;;
  3695 esac
  3696 
  3697 # Try without a prefix underscore, then with it.
  3698 for ac_symprfx in "" "_"; do
  3699 
  3700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3701   symxfrm="\\1 $ac_symprfx\\2 \\2"
  3702 
  3703   # Write the raw and C identifiers.
  3704   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3705     # Fake it for dumpbin and say T for any non-static function
  3706     # and D for any global variable.
  3707     # Also find C++ and __fastcall symbols from MSVC++,
  3708     # which start with @ or ?.
  3709     lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3710 "     {last_section=section; section=\$ 3};"\
  3711 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3712 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3713 "     \$ 0!~/External *\|/{next};"\
  3714 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3715 "     {if(hide[section]) next};"\
  3716 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3717 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3718 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3719 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3720 "     ' prfx=^$ac_symprfx]"
  3721   else
  3722     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3723   fi
  3724   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3725 
  3726   # Check to see that the pipe works correctly.
  3727   pipe_works=no
  3728 
  3729   rm -f conftest*
  3730   cat > conftest.$ac_ext <<_LT_EOF
  3731 #ifdef __cplusplus
  3732 extern "C" {
  3733 #endif
  3734 char nm_test_var;
  3735 void nm_test_func(void);
  3736 void nm_test_func(void){}
  3737 #ifdef __cplusplus
  3738 }
  3739 #endif
  3740 int main(){nm_test_var='a';nm_test_func();return(0);}
  3741 _LT_EOF
  3742 
  3743   if AC_TRY_EVAL(ac_compile); then
  3744     # Now try to grab the symbols.
  3745     nlist=conftest.nm
  3746     if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3747       # Try sorting and uniquifying the output.
  3748       if sort "$nlist" | uniq > "$nlist"T; then
  3749 	mv -f "$nlist"T "$nlist"
  3750       else
  3751 	rm -f "$nlist"T
  3752       fi
  3753 
  3754       # Make sure that we snagged all the symbols we need.
  3755       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3756 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3757 	  cat <<_LT_EOF > conftest.$ac_ext
  3758 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  3759 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3760 /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3761    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  3762 # define LT@&t@_DLSYM_CONST
  3763 #elif defined(__osf__)
  3764 /* This system does not cope well with relocations in const data.  */
  3765 # define LT@&t@_DLSYM_CONST
  3766 #else
  3767 # define LT@&t@_DLSYM_CONST const
  3768 #endif
  3769 
  3770 #ifdef __cplusplus
  3771 extern "C" {
  3772 #endif
  3773 
  3774 _LT_EOF
  3775 	  # Now generate the symbol file.
  3776 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3777 
  3778 	  cat <<_LT_EOF >> conftest.$ac_ext
  3779 
  3780 /* The mapping between symbol names and symbols.  */
  3781 LT@&t@_DLSYM_CONST struct {
  3782   const char *name;
  3783   void       *address;
  3784 }
  3785 lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3786 {
  3787   { "@PROGRAM@", (void *) 0 },
  3788 _LT_EOF
  3789 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3790 	  cat <<\_LT_EOF >> conftest.$ac_ext
  3791   {0, (void *) 0}
  3792 };
  3793 
  3794 /* This works around a problem in FreeBSD linker */
  3795 #ifdef FREEBSD_WORKAROUND
  3796 static const void *lt_preloaded_setup() {
  3797   return lt__PROGRAM__LTX_preloaded_symbols;
  3798 }
  3799 #endif
  3800 
  3801 #ifdef __cplusplus
  3802 }
  3803 #endif
  3804 _LT_EOF
  3805 	  # Now try linking the two files.
  3806 	  mv conftest.$ac_objext conftstm.$ac_objext
  3807 	  lt_globsym_save_LIBS=$LIBS
  3808 	  lt_globsym_save_CFLAGS=$CFLAGS
  3809 	  LIBS="conftstm.$ac_objext"
  3810 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3811 	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3812 	    pipe_works=yes
  3813 	  fi
  3814 	  LIBS=$lt_globsym_save_LIBS
  3815 	  CFLAGS=$lt_globsym_save_CFLAGS
  3816 	else
  3817 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3818 	fi
  3819       else
  3820 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3821       fi
  3822     else
  3823       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3824     fi
  3825   else
  3826     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3827     cat conftest.$ac_ext >&5
  3828   fi
  3829   rm -rf conftest* conftst*
  3830 
  3831   # Do not use the global_symbol_pipe unless it works.
  3832   if test "$pipe_works" = yes; then
  3833     break
  3834   else
  3835     lt_cv_sys_global_symbol_pipe=
  3836   fi
  3837 done
  3838 ])
  3839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3840   lt_cv_sys_global_symbol_to_cdecl=
  3841 fi
  3842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3843   AC_MSG_RESULT(failed)
  3844 else
  3845   AC_MSG_RESULT(ok)
  3846 fi
  3847 
  3848 # Response file support.
  3849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3850   nm_file_list_spec='@'
  3851 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3852   nm_file_list_spec='@'
  3853 fi
  3854 
  3855 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3856     [Take the output of nm and produce a listing of raw symbols and C names])
  3857 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3858     [Transform the output of nm in a proper C declaration])
  3859 _LT_DECL([global_symbol_to_c_name_address],
  3860     [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3861     [Transform the output of nm in a C name address pair])
  3862 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3863     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3864     [Transform the output of nm in a C name address pair when lib prefix is needed])
  3865 _LT_DECL([], [nm_file_list_spec], [1],
  3866     [Specify filename containing input files for $NM])
  3867 ]) # _LT_CMD_GLOBAL_SYMBOLS
  3868 
  3869 
  3870 # _LT_COMPILER_PIC([TAGNAME])
  3871 # ---------------------------
  3872 m4_defun([_LT_COMPILER_PIC],
  3873 [m4_require([_LT_TAG_COMPILER])dnl
  3874 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3875 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3876 _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3877 
  3878 m4_if([$1], [CXX], [
  3879   # C++ specific cases for pic, static, wl, etc.
  3880   if test "$GXX" = yes; then
  3881     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3882     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3883 
  3884     case $host_os in
  3885     aix*)
  3886       # All AIX code is PIC.
  3887       if test "$host_cpu" = ia64; then
  3888 	# AIX 5 now supports IA64 processor
  3889 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3890       fi
  3891       ;;
  3892 
  3893     amigaos*)
  3894       case $host_cpu in
  3895       powerpc)
  3896             # see comment about AmigaOS4 .so support
  3897             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3898         ;;
  3899       m68k)
  3900             # FIXME: we need at least 68020 code to build shared libraries, but
  3901             # adding the `-m68020' flag to GCC prevents building anything better,
  3902             # like `-m68040'.
  3903             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3904         ;;
  3905       esac
  3906       ;;
  3907 
  3908     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3909       # PIC is the default for these OSes.
  3910       ;;
  3911     mingw* | cygwin* | os2* | pw32* | cegcc*)
  3912       # This hack is so that the source file can tell whether it is being
  3913       # built for inclusion in a dll (and should export symbols for example).
  3914       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3915       # (--disable-auto-import) libraries
  3916       m4_if([$1], [GCJ], [],
  3917 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3918       ;;
  3919     darwin* | rhapsody*)
  3920       # PIC is the default on this platform
  3921       # Common symbols not allowed in MH_DYLIB files
  3922       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3923       ;;
  3924     *djgpp*)
  3925       # DJGPP does not support shared libraries at all
  3926       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3927       ;;
  3928     haiku*)
  3929       # PIC is the default for Haiku.
  3930       # The "-static" flag exists, but is broken.
  3931       _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3932       ;;
  3933     interix[[3-9]]*)
  3934       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3935       # Instead, we relocate shared libraries at runtime.
  3936       ;;
  3937     sysv4*MP*)
  3938       if test -d /usr/nec; then
  3939 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3940       fi
  3941       ;;
  3942     hpux*)
  3943       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3944       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  3945       # sets the default TLS model and affects inlining.
  3946       case $host_cpu in
  3947       hppa*64*)
  3948 	;;
  3949       *)
  3950 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3951 	;;
  3952       esac
  3953       ;;
  3954     *qnx* | *nto*)
  3955       # QNX uses GNU C++, but need to define -shared option too, otherwise
  3956       # it will coredump.
  3957       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3958       ;;
  3959     *)
  3960       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3961       ;;
  3962     esac
  3963   else
  3964     case $host_os in
  3965       aix[[4-9]]*)
  3966 	# All AIX code is PIC.
  3967 	if test "$host_cpu" = ia64; then
  3968 	  # AIX 5 now supports IA64 processor
  3969 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3970 	else
  3971 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3972 	fi
  3973 	;;
  3974       chorus*)
  3975 	case $cc_basename in
  3976 	cxch68*)
  3977 	  # Green Hills C++ Compiler
  3978 	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  3979 	  ;;
  3980 	esac
  3981 	;;
  3982       mingw* | cygwin* | os2* | pw32* | cegcc*)
  3983 	# This hack is so that the source file can tell whether it is being
  3984 	# built for inclusion in a dll (and should export symbols for example).
  3985 	m4_if([$1], [GCJ], [],
  3986 	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3987 	;;
  3988       dgux*)
  3989 	case $cc_basename in
  3990 	  ec++*)
  3991 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3992 	    ;;
  3993 	  ghcx*)
  3994 	    # Green Hills C++ Compiler
  3995 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3996 	    ;;
  3997 	  *)
  3998 	    ;;
  3999 	esac
  4000 	;;
  4001       freebsd* | dragonfly*)
  4002 	# FreeBSD uses GNU C++
  4003 	;;
  4004       hpux9* | hpux10* | hpux11*)
  4005 	case $cc_basename in
  4006 	  CC*)
  4007 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4008 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4009 	    if test "$host_cpu" != ia64; then
  4010 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4011 	    fi
  4012 	    ;;
  4013 	  aCC*)
  4014 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4015 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4016 	    case $host_cpu in
  4017 	    hppa*64*|ia64*)
  4018 	      # +Z the default
  4019 	      ;;
  4020 	    *)
  4021 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4022 	      ;;
  4023 	    esac
  4024 	    ;;
  4025 	  *)
  4026 	    ;;
  4027 	esac
  4028 	;;
  4029       interix*)
  4030 	# This is c89, which is MS Visual C++ (no shared libs)
  4031 	# Anyone wants to do a port?
  4032 	;;
  4033       irix5* | irix6* | nonstopux*)
  4034 	case $cc_basename in
  4035 	  CC*)
  4036 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4037 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4038 	    # CC pic flag -KPIC is the default.
  4039 	    ;;
  4040 	  *)
  4041 	    ;;
  4042 	esac
  4043 	;;
  4044       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4045 	case $cc_basename in
  4046 	  KCC*)
  4047 	    # KAI C++ Compiler
  4048 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4049 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4050 	    ;;
  4051 	  ecpc* )
  4052 	    # old Intel C++ for x86_64 which still supported -KPIC.
  4053 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4054 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4055 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4056 	    ;;
  4057 	  icpc* )
  4058 	    # Intel C++, used to be incompatible with GCC.
  4059 	    # ICC 10 doesn't accept -KPIC any more.
  4060 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4061 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4062 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4063 	    ;;
  4064 	  pgCC* | pgcpp*)
  4065 	    # Portland Group C++ compiler
  4066 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4067 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4068 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4069 	    ;;
  4070 	  cxx*)
  4071 	    # Compaq C++
  4072 	    # Make sure the PIC flag is empty.  It appears that all Alpha
  4073 	    # Linux and Compaq Tru64 Unix objects are PIC.
  4074 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4075 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4076 	    ;;
  4077 	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  4078 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  4079 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4080 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4081 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4082 	    ;;
  4083 	  *)
  4084 	    case `$CC -V 2>&1 | sed 5q` in
  4085 	    *Sun\ C*)
  4086 	      # Sun C++ 5.9
  4087 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4088 	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4089 	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4090 	      ;;
  4091 	    esac
  4092 	    ;;
  4093 	esac
  4094 	;;
  4095       lynxos*)
  4096 	;;
  4097       m88k*)
  4098 	;;
  4099       mvs*)
  4100 	case $cc_basename in
  4101 	  cxx*)
  4102 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4103 	    ;;
  4104 	  *)
  4105 	    ;;
  4106 	esac
  4107 	;;
  4108       netbsd*)
  4109 	;;
  4110       *qnx* | *nto*)
  4111         # QNX uses GNU C++, but need to define -shared option too, otherwise
  4112         # it will coredump.
  4113         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4114         ;;
  4115       osf3* | osf4* | osf5*)
  4116 	case $cc_basename in
  4117 	  KCC*)
  4118 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4119 	    ;;
  4120 	  RCC*)
  4121 	    # Rational C++ 2.4.1
  4122 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4123 	    ;;
  4124 	  cxx*)
  4125 	    # Digital/Compaq C++
  4126 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4127 	    # Make sure the PIC flag is empty.  It appears that all Alpha
  4128 	    # Linux and Compaq Tru64 Unix objects are PIC.
  4129 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4130 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4131 	    ;;
  4132 	  *)
  4133 	    ;;
  4134 	esac
  4135 	;;
  4136       psos*)
  4137 	;;
  4138       solaris*)
  4139 	case $cc_basename in
  4140 	  CC* | sunCC*)
  4141 	    # Sun C++ 4.2, 5.x and Centerline C++
  4142 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4143 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4144 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4145 	    ;;
  4146 	  gcx*)
  4147 	    # Green Hills C++ Compiler
  4148 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4149 	    ;;
  4150 	  *)
  4151 	    ;;
  4152 	esac
  4153 	;;
  4154       sunos4*)
  4155 	case $cc_basename in
  4156 	  CC*)
  4157 	    # Sun C++ 4.x
  4158 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4159 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4160 	    ;;
  4161 	  lcc*)
  4162 	    # Lucid
  4163 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4164 	    ;;
  4165 	  *)
  4166 	    ;;
  4167 	esac
  4168 	;;
  4169       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4170 	case $cc_basename in
  4171 	  CC*)
  4172 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4173 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4174 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4175 	    ;;
  4176 	esac
  4177 	;;
  4178       tandem*)
  4179 	case $cc_basename in
  4180 	  NCC*)
  4181 	    # NonStop-UX NCC 3.20
  4182 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4183 	    ;;
  4184 	  *)
  4185 	    ;;
  4186 	esac
  4187 	;;
  4188       vxworks*)
  4189 	;;
  4190       *)
  4191 	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4192 	;;
  4193     esac
  4194   fi
  4195 ],
  4196 [
  4197   if test "$GCC" = yes; then
  4198     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4199     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4200 
  4201     case $host_os in
  4202       aix*)
  4203       # All AIX code is PIC.
  4204       if test "$host_cpu" = ia64; then
  4205 	# AIX 5 now supports IA64 processor
  4206 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4207       fi
  4208       ;;
  4209 
  4210     amigaos*)
  4211       case $host_cpu in
  4212       powerpc)
  4213             # see comment about AmigaOS4 .so support
  4214             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4215         ;;
  4216       m68k)
  4217             # FIXME: we need at least 68020 code to build shared libraries, but
  4218             # adding the `-m68020' flag to GCC prevents building anything better,
  4219             # like `-m68040'.
  4220             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4221         ;;
  4222       esac
  4223       ;;
  4224 
  4225     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4226       # PIC is the default for these OSes.
  4227       ;;
  4228 
  4229     mingw* | cygwin* | pw32* | os2* | cegcc*)
  4230       # This hack is so that the source file can tell whether it is being
  4231       # built for inclusion in a dll (and should export symbols for example).
  4232       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4233       # (--disable-auto-import) libraries
  4234       m4_if([$1], [GCJ], [],
  4235 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4236       ;;
  4237 
  4238     darwin* | rhapsody*)
  4239       # PIC is the default on this platform
  4240       # Common symbols not allowed in MH_DYLIB files
  4241       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4242       ;;
  4243 
  4244     haiku*)
  4245       # PIC is the default for Haiku.
  4246       # The "-static" flag exists, but is broken.
  4247       _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4248       ;;
  4249 
  4250     hpux*)
  4251       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4252       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  4253       # sets the default TLS model and affects inlining.
  4254       case $host_cpu in
  4255       hppa*64*)
  4256 	# +Z the default
  4257 	;;
  4258       *)
  4259 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4260 	;;
  4261       esac
  4262       ;;
  4263 
  4264     interix[[3-9]]*)
  4265       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4266       # Instead, we relocate shared libraries at runtime.
  4267       ;;
  4268 
  4269     msdosdjgpp*)
  4270       # Just because we use GCC doesn't mean we suddenly get shared libraries
  4271       # on systems that don't support them.
  4272       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4273       enable_shared=no
  4274       ;;
  4275 
  4276     *nto* | *qnx*)
  4277       # QNX uses GNU C++, but need to define -shared option too, otherwise
  4278       # it will coredump.
  4279       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4280       ;;
  4281 
  4282     sysv4*MP*)
  4283       if test -d /usr/nec; then
  4284 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4285       fi
  4286       ;;
  4287 
  4288     *)
  4289       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4290       ;;
  4291     esac
  4292 
  4293     case $cc_basename in
  4294     nvcc*) # Cuda Compiler Driver 2.2
  4295       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4296       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4297         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4298       fi
  4299       ;;
  4300     esac
  4301   else
  4302     # PORTME Check for flag to pass linker flags through the system compiler.
  4303     case $host_os in
  4304     aix*)
  4305       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4306       if test "$host_cpu" = ia64; then
  4307 	# AIX 5 now supports IA64 processor
  4308 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4309       else
  4310 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4311       fi
  4312       ;;
  4313 
  4314     mingw* | cygwin* | pw32* | os2* | cegcc*)
  4315       # This hack is so that the source file can tell whether it is being
  4316       # built for inclusion in a dll (and should export symbols for example).
  4317       m4_if([$1], [GCJ], [],
  4318 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4319       ;;
  4320 
  4321     hpux9* | hpux10* | hpux11*)
  4322       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4323       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4324       # not for PA HP-UX.
  4325       case $host_cpu in
  4326       hppa*64*|ia64*)
  4327 	# +Z the default
  4328 	;;
  4329       *)
  4330 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4331 	;;
  4332       esac
  4333       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4334       _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4335       ;;
  4336 
  4337     irix5* | irix6* | nonstopux*)
  4338       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4339       # PIC (with -KPIC) is the default.
  4340       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4341       ;;
  4342 
  4343     linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4344       case $cc_basename in
  4345       # old Intel for x86_64 which still supported -KPIC.
  4346       ecc*)
  4347 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4348 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4349 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4350         ;;
  4351       # icc used to be incompatible with GCC.
  4352       # ICC 10 doesn't accept -KPIC any more.
  4353       icc* | ifort*)
  4354 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4355 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4356 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4357         ;;
  4358       # Lahey Fortran 8.1.
  4359       lf95*)
  4360 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4361 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4362 	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4363 	;;
  4364       nagfor*)
  4365 	# NAG Fortran compiler
  4366 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4367 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4368 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4369 	;;
  4370       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4371         # Portland Group compilers (*not* the Pentium gcc compiler,
  4372 	# which looks to be a dead project)
  4373 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4374 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4375 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4376         ;;
  4377       ccc*)
  4378         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4379         # All Alpha code is PIC.
  4380         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4381         ;;
  4382       xl* | bgxl* | bgf* | mpixl*)
  4383 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4384 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4385 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4386 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4387 	;;
  4388       *)
  4389 	case `$CC -V 2>&1 | sed 5q` in
  4390 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4391 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4392 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4393 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4394 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4395 	  ;;
  4396 	*Sun\ F* | *Sun*Fortran*)
  4397 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4398 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4399 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4400 	  ;;
  4401 	*Sun\ C*)
  4402 	  # Sun C 5.9
  4403 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4404 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4405 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4406 	  ;;
  4407         *Intel*\ [[CF]]*Compiler*)
  4408 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4409 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4410 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4411 	  ;;
  4412 	*Portland\ Group*)
  4413 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4414 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4415 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4416 	  ;;
  4417 	esac
  4418 	;;
  4419       esac
  4420       ;;
  4421 
  4422     newsos6)
  4423       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4424       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4425       ;;
  4426 
  4427     *nto* | *qnx*)
  4428       # QNX uses GNU C++, but need to define -shared option too, otherwise
  4429       # it will coredump.
  4430       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4431       ;;
  4432 
  4433     osf3* | osf4* | osf5*)
  4434       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4435       # All OSF/1 code is PIC.
  4436       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4437       ;;
  4438 
  4439     rdos*)
  4440       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4441       ;;
  4442 
  4443     solaris*)
  4444       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4445       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4446       case $cc_basename in
  4447       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4448 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4449       *)
  4450 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4451       esac
  4452       ;;
  4453 
  4454     sunos4*)
  4455       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4456       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4457       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4458       ;;
  4459 
  4460     sysv4 | sysv4.2uw2* | sysv4.3*)
  4461       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4462       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4463       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4464       ;;
  4465 
  4466     sysv4*MP*)
  4467       if test -d /usr/nec ;then
  4468 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4469 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4470       fi
  4471       ;;
  4472 
  4473     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4474       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4475       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4476       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4477       ;;
  4478 
  4479     unicos*)
  4480       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4481       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4482       ;;
  4483 
  4484     uts4*)
  4485       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4486       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4487       ;;
  4488 
  4489     *)
  4490       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4491       ;;
  4492     esac
  4493   fi
  4494 ])
  4495 case $host_os in
  4496   # For platforms which do not support PIC, -DPIC is meaningless:
  4497   *djgpp*)
  4498     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4499     ;;
  4500   *)
  4501     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4502     ;;
  4503 esac
  4504 
  4505 AC_CACHE_CHECK([for $compiler option to produce PIC],
  4506   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4507   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4509 
  4510 #
  4511 # Check to make sure the PIC flag actually works.
  4512 #
  4513 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4514   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4515     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4516     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4517     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4518      "" | " "*) ;;
  4519      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4520      esac],
  4521     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4522      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4523 fi
  4524 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4525 	[Additional compiler flags for building library objects])
  4526 
  4527 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4528 	[How to pass a linker flag through the compiler])
  4529 #
  4530 # Check to make sure the static flag actually works.
  4531 #
  4532 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4533 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4534   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4535   $lt_tmp_static_flag,
  4536   [],
  4537   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4538 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4539 	[Compiler flag to prevent dynamic linking])
  4540 ])# _LT_COMPILER_PIC
  4541 
  4542 
  4543 # _LT_LINKER_SHLIBS([TAGNAME])
  4544 # ----------------------------
  4545 # See if the linker supports building shared libraries.
  4546 m4_defun([_LT_LINKER_SHLIBS],
  4547 [AC_REQUIRE([LT_PATH_LD])dnl
  4548 AC_REQUIRE([LT_PATH_NM])dnl
  4549 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4550 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4551 m4_require([_LT_DECL_EGREP])dnl
  4552 m4_require([_LT_DECL_SED])dnl
  4553 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4554 m4_require([_LT_TAG_COMPILER])dnl
  4555 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4556 m4_if([$1], [CXX], [
  4557   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4558   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4559   case $host_os in
  4560   aix[[4-9]]*)
  4561     # If we're using GNU nm, then we don't want the "-C" option.
  4562     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4563     # Also, AIX nm treats weak defined symbols like other global defined
  4564     # symbols, whereas GNU nm marks them as "W".
  4565     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4566       _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'
  4567     else
  4568       _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'
  4569     fi
  4570     ;;
  4571   pw32*)
  4572     _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4573     ;;
  4574   cygwin* | mingw* | cegcc*)
  4575     case $cc_basename in
  4576     cl*)
  4577       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4578       ;;
  4579     *)
  4580       _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'
  4581       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4582       ;;
  4583     esac
  4584     ;;
  4585   *)
  4586     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4587     ;;
  4588   esac
  4589 ], [
  4590   runpath_var=
  4591   _LT_TAGVAR(allow_undefined_flag, $1)=
  4592   _LT_TAGVAR(always_export_symbols, $1)=no
  4593   _LT_TAGVAR(archive_cmds, $1)=
  4594   _LT_TAGVAR(archive_expsym_cmds, $1)=
  4595   _LT_TAGVAR(compiler_needs_object, $1)=no
  4596   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4597   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4598   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4599   _LT_TAGVAR(hardcode_automatic, $1)=no
  4600   _LT_TAGVAR(hardcode_direct, $1)=no
  4601   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4602   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4603   _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4604   _LT_TAGVAR(hardcode_minus_L, $1)=no
  4605   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4606   _LT_TAGVAR(inherit_rpath, $1)=no
  4607   _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4608   _LT_TAGVAR(module_cmds, $1)=
  4609   _LT_TAGVAR(module_expsym_cmds, $1)=
  4610   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4611   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4612   _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4613   _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4614   # include_expsyms should be a list of space-separated symbols to be *always*
  4615   # included in the symbol list
  4616   _LT_TAGVAR(include_expsyms, $1)=
  4617   # exclude_expsyms can be an extended regexp of symbols to exclude
  4618   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4619   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4620   # as well as any symbol that contains `d'.
  4621   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4622   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4623   # platforms (ab)use it in PIC code, but their linkers get confused if
  4624   # the symbol is explicitly referenced.  Since portable code cannot
  4625   # rely on this symbol name, it's probably fine to never include it in
  4626   # preloaded symbol tables.
  4627   # Exclude shared library initialization/finalization symbols.
  4628 dnl Note also adjust exclude_expsyms for C++ above.
  4629   extract_expsyms_cmds=
  4630 
  4631   case $host_os in
  4632   cygwin* | mingw* | pw32* | cegcc*)
  4633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4634     # When not using gcc, we currently assume that we are using
  4635     # Microsoft Visual C++.
  4636     if test "$GCC" != yes; then
  4637       with_gnu_ld=no
  4638     fi
  4639     ;;
  4640   interix*)
  4641     # we just hope/assume this is gcc and not c89 (= MSVC++)
  4642     with_gnu_ld=yes
  4643     ;;
  4644   openbsd*)
  4645     with_gnu_ld=no
  4646     ;;
  4647   esac
  4648 
  4649   _LT_TAGVAR(ld_shlibs, $1)=yes
  4650 
  4651   # On some targets, GNU ld is compatible enough with the native linker
  4652   # that we're better off using the native interface for both.
  4653   lt_use_gnu_ld_interface=no
  4654   if test "$with_gnu_ld" = yes; then
  4655     case $host_os in
  4656       aix*)
  4657 	# The AIX port of GNU ld has always aspired to compatibility
  4658 	# with the native linker.  However, as the warning in the GNU ld
  4659 	# block says, versions before 2.19.5* couldn't really create working
  4660 	# shared libraries, regardless of the interface used.
  4661 	case `$LD -v 2>&1` in
  4662 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4663 	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4664 	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4665 	  *)
  4666 	    lt_use_gnu_ld_interface=yes
  4667 	    ;;
  4668 	esac
  4669 	;;
  4670       *)
  4671 	lt_use_gnu_ld_interface=yes
  4672 	;;
  4673     esac
  4674   fi
  4675 
  4676   if test "$lt_use_gnu_ld_interface" = yes; then
  4677     # If archive_cmds runs LD, not CC, wlarc should be empty
  4678     wlarc='${wl}'
  4679 
  4680     # Set some defaults for GNU ld with shared library support. These
  4681     # are reset later if shared libraries are not supported. Putting them
  4682     # here allows them to be overridden if necessary.
  4683     runpath_var=LD_RUN_PATH
  4684     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4685     _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4686     # ancient GNU ld didn't support --whole-archive et. al.
  4687     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4688       _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4689     else
  4690       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4691     fi
  4692     supports_anon_versioning=no
  4693     case `$LD -v 2>&1` in
  4694       *GNU\ gold*) supports_anon_versioning=yes ;;
  4695       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4696       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4697       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4698       *\ 2.11.*) ;; # other 2.11 versions
  4699       *) supports_anon_versioning=yes ;;
  4700     esac
  4701 
  4702     # See if GNU ld supports shared libraries.
  4703     case $host_os in
  4704     aix[[3-9]]*)
  4705       # On AIX/PPC, the GNU linker is very broken
  4706       if test "$host_cpu" != ia64; then
  4707 	_LT_TAGVAR(ld_shlibs, $1)=no
  4708 	cat <<_LT_EOF 1>&2
  4709 
  4710 *** Warning: the GNU linker, at least up to release 2.19, is reported
  4711 *** to be unable to reliably create shared libraries on AIX.
  4712 *** Therefore, libtool is disabling shared libraries support.  If you
  4713 *** really care for shared libraries, you may want to install binutils
  4714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4715 *** You will then need to restart the configuration process.
  4716 
  4717 _LT_EOF
  4718       fi
  4719       ;;
  4720 
  4721     amigaos*)
  4722       case $host_cpu in
  4723       powerpc)
  4724             # see comment about AmigaOS4 .so support
  4725             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4726             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4727         ;;
  4728       m68k)
  4729             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4730             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4731             _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4732         ;;
  4733       esac
  4734       ;;
  4735 
  4736     beos*)
  4737       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4738 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4739 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4740 	# support --undefined.  This deserves some investigation.  FIXME
  4741 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4742       else
  4743 	_LT_TAGVAR(ld_shlibs, $1)=no
  4744       fi
  4745       ;;
  4746 
  4747     cygwin* | mingw* | pw32* | cegcc*)
  4748       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4749       # as there is no search path for DLLs.
  4750       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4751       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4752       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4753       _LT_TAGVAR(always_export_symbols, $1)=no
  4754       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4755       _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'
  4756       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4757 
  4758       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4759         _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'
  4760 	# If the export-symbols file already is a .def file (1st line
  4761 	# is EXPORTS), use it as is; otherwise, prepend...
  4762 	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4763 	  cp $export_symbols $output_objdir/$soname.def;
  4764 	else
  4765 	  echo EXPORTS > $output_objdir/$soname.def;
  4766 	  cat $export_symbols >> $output_objdir/$soname.def;
  4767 	fi~
  4768 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4769       else
  4770 	_LT_TAGVAR(ld_shlibs, $1)=no
  4771       fi
  4772       ;;
  4773 
  4774     haiku*)
  4775       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4776       _LT_TAGVAR(link_all_deplibs, $1)=yes
  4777       ;;
  4778 
  4779     interix[[3-9]]*)
  4780       _LT_TAGVAR(hardcode_direct, $1)=no
  4781       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4782       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4783       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4784       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4785       # Instead, shared libraries are loaded at an image base (0x10000000 by
  4786       # default) and relocated if they conflict, which is a slow very memory
  4787       # consuming and fragmenting process.  To avoid this, we pick a random,
  4788       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4789       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  4790       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4791       _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'
  4792       ;;
  4793 
  4794     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4795       tmp_diet=no
  4796       if test "$host_os" = linux-dietlibc; then
  4797 	case $cc_basename in
  4798 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
  4799 	esac
  4800       fi
  4801       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4802 	 && test "$tmp_diet" = no
  4803       then
  4804 	tmp_addflag=' $pic_flag'
  4805 	tmp_sharedflag='-shared'
  4806 	case $cc_basename,$host_cpu in
  4807         pgcc*)				# Portland Group C compiler
  4808 	  _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'
  4809 	  tmp_addflag=' $pic_flag'
  4810 	  ;;
  4811 	pgf77* | pgf90* | pgf95* | pgfortran*)
  4812 					# Portland Group f77 and f90 compilers
  4813 	  _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'
  4814 	  tmp_addflag=' $pic_flag -Mnomain' ;;
  4815 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  4816 	  tmp_addflag=' -i_dynamic' ;;
  4817 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  4818 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  4819 	ifc* | ifort*)			# Intel Fortran compiler
  4820 	  tmp_addflag=' -nofor_main' ;;
  4821 	lf95*)				# Lahey Fortran 8.1
  4822 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4823 	  tmp_sharedflag='--shared' ;;
  4824 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4825 	  tmp_sharedflag='-qmkshrobj'
  4826 	  tmp_addflag= ;;
  4827 	nvcc*)	# Cuda Compiler Driver 2.2
  4828 	  _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'
  4829 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  4830 	  ;;
  4831 	esac
  4832 	case `$CC -V 2>&1 | sed 5q` in
  4833 	*Sun\ C*)			# Sun C 5.9
  4834 	  _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'
  4835 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  4836 	  tmp_sharedflag='-G' ;;
  4837 	*Sun\ F*)			# Sun Fortran 8.3
  4838 	  tmp_sharedflag='-G' ;;
  4839 	esac
  4840 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4841 
  4842         if test "x$supports_anon_versioning" = xyes; then
  4843           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4844 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4845 	    echo "local: *; };" >> $output_objdir/$libname.ver~
  4846 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4847         fi
  4848 
  4849 	case $cc_basename in
  4850 	xlf* | bgf* | bgxlf* | mpixlf*)
  4851 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4852 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4853 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4854 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4855 	  if test "x$supports_anon_versioning" = xyes; then
  4856 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4857 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4858 	      echo "local: *; };" >> $output_objdir/$libname.ver~
  4859 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4860 	  fi
  4861 	  ;;
  4862 	esac
  4863       else
  4864         _LT_TAGVAR(ld_shlibs, $1)=no
  4865       fi
  4866       ;;
  4867 
  4868     netbsd*)
  4869       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4870 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4871 	wlarc=
  4872       else
  4873 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4874 	_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'
  4875       fi
  4876       ;;
  4877 
  4878     solaris*)
  4879       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4880 	_LT_TAGVAR(ld_shlibs, $1)=no
  4881 	cat <<_LT_EOF 1>&2
  4882 
  4883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4884 *** create shared libraries on Solaris systems.  Therefore, libtool
  4885 *** is disabling shared libraries support.  We urge you to upgrade GNU
  4886 *** binutils to release 2.9.1 or newer.  Another option is to modify
  4887 *** your PATH or compiler configuration so that the native linker is
  4888 *** used, and then restart.
  4889 
  4890 _LT_EOF
  4891       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4892 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4893 	_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'
  4894       else
  4895 	_LT_TAGVAR(ld_shlibs, $1)=no
  4896       fi
  4897       ;;
  4898 
  4899     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4900       case `$LD -v 2>&1` in
  4901         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4902 	_LT_TAGVAR(ld_shlibs, $1)=no
  4903 	cat <<_LT_EOF 1>&2
  4904 
  4905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4906 *** reliably create shared libraries on SCO systems.  Therefore, libtool
  4907 *** is disabling shared libraries support.  We urge you to upgrade GNU
  4908 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  4909 *** your PATH or compiler configuration so that the native linker is
  4910 *** used, and then restart.
  4911 
  4912 _LT_EOF
  4913 	;;
  4914 	*)
  4915 	  # For security reasons, it is highly recommended that you always
  4916 	  # use absolute paths for naming shared libraries, and exclude the
  4917 	  # DT_RUNPATH tag from executables and libraries.  But doing so
  4918 	  # requires that you compile everything twice, which is a pain.
  4919 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4920 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4921 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4922 	    _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'
  4923 	  else
  4924 	    _LT_TAGVAR(ld_shlibs, $1)=no
  4925 	  fi
  4926 	;;
  4927       esac
  4928       ;;
  4929 
  4930     sunos4*)
  4931       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4932       wlarc=
  4933       _LT_TAGVAR(hardcode_direct, $1)=yes
  4934       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4935       ;;
  4936 
  4937     *)
  4938       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4939 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4940 	_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'
  4941       else
  4942 	_LT_TAGVAR(ld_shlibs, $1)=no
  4943       fi
  4944       ;;
  4945     esac
  4946 
  4947     if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4948       runpath_var=
  4949       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4950       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4951       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4952     fi
  4953   else
  4954     # PORTME fill in a description of your system's linker (not GNU ld)
  4955     case $host_os in
  4956     aix3*)
  4957       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4958       _LT_TAGVAR(always_export_symbols, $1)=yes
  4959       _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4960       # Note: this linker hardcodes the directories in LIBPATH if there
  4961       # are no directories specified by -L.
  4962       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4963       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4964 	# Neither direct hardcoding nor static linking is supported with a
  4965 	# broken collect2.
  4966 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
  4967       fi
  4968       ;;
  4969 
  4970     aix[[4-9]]*)
  4971       if test "$host_cpu" = ia64; then
  4972 	# On IA64, the linker does run time linking by default, so we don't
  4973 	# have to do anything special.
  4974 	aix_use_runtimelinking=no
  4975 	exp_sym_flag='-Bexport'
  4976 	no_entry_flag=""
  4977       else
  4978 	# If we're using GNU nm, then we don't want the "-C" option.
  4979 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  4980 	# Also, AIX nm treats weak defined symbols like other global
  4981 	# defined symbols, whereas GNU nm marks them as "W".
  4982 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4983 	  _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'
  4984 	else
  4985 	  _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'
  4986 	fi
  4987 	aix_use_runtimelinking=no
  4988 
  4989 	# Test if we are trying to use run time linking or normal
  4990 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4991 	# need to do runtime linking.
  4992 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4993 	  for ld_flag in $LDFLAGS; do
  4994 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4995 	    aix_use_runtimelinking=yes
  4996 	    break
  4997 	  fi
  4998 	  done
  4999 	  ;;
  5000 	esac
  5001 
  5002 	exp_sym_flag='-bexport'
  5003 	no_entry_flag='-bnoentry'
  5004       fi
  5005 
  5006       # When large executables or shared objects are built, AIX ld can
  5007       # have problems creating the table of contents.  If linking a library
  5008       # or program results in "error TOC overflow" add -mminimal-toc to
  5009       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  5010       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5011 
  5012       _LT_TAGVAR(archive_cmds, $1)=''
  5013       _LT_TAGVAR(hardcode_direct, $1)=yes
  5014       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5015       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5016       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5017       _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5018 
  5019       if test "$GCC" = yes; then
  5020 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5021 	# We only want to do this on AIX 4.2 and lower, the check
  5022 	# below for broken collect2 doesn't work under 4.3+
  5023 	  collect2name=`${CC} -print-prog-name=collect2`
  5024 	  if test -f "$collect2name" &&
  5025 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5026 	  then
  5027 	  # We have reworked collect2
  5028 	  :
  5029 	  else
  5030 	  # We have old collect2
  5031 	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5032 	  # It fails to find uninstalled libraries when the uninstalled
  5033 	  # path is not listed in the libpath.  Setting hardcode_minus_L
  5034 	  # to unsupported forces relinking
  5035 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5036 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5037 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5038 	  fi
  5039 	  ;;
  5040 	esac
  5041 	shared_flag='-shared'
  5042 	if test "$aix_use_runtimelinking" = yes; then
  5043 	  shared_flag="$shared_flag "'${wl}-G'
  5044 	fi
  5045       else
  5046 	# not using gcc
  5047 	if test "$host_cpu" = ia64; then
  5048 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5049 	# chokes on -Wl,-G. The following line is correct:
  5050 	  shared_flag='-G'
  5051 	else
  5052 	  if test "$aix_use_runtimelinking" = yes; then
  5053 	    shared_flag='${wl}-G'
  5054 	  else
  5055 	    shared_flag='${wl}-bM:SRE'
  5056 	  fi
  5057 	fi
  5058       fi
  5059 
  5060       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5061       # It seems that -bexpall does not export symbols beginning with
  5062       # underscore (_), so it is better to generate a list of symbols to export.
  5063       _LT_TAGVAR(always_export_symbols, $1)=yes
  5064       if test "$aix_use_runtimelinking" = yes; then
  5065 	# Warning - without using the other runtime loading flags (-brtl),
  5066 	# -berok will link without error, but may produce a broken library.
  5067 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5068         # Determine the default libpath from the value encoded in an
  5069         # empty executable.
  5070         _LT_SYS_MODULE_PATH_AIX([$1])
  5071         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5072         _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"
  5073       else
  5074 	if test "$host_cpu" = ia64; then
  5075 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5076 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5077 	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5078 	else
  5079 	 # Determine the default libpath from the value encoded in an
  5080 	 # empty executable.
  5081 	 _LT_SYS_MODULE_PATH_AIX([$1])
  5082 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5083 	  # Warning - without using the other run time loading flags,
  5084 	  # -berok will link without error, but may produce a broken library.
  5085 	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5086 	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5087 	  if test "$with_gnu_ld" = yes; then
  5088 	    # We only use this code for GNU lds that support --whole-archive.
  5089 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5090 	  else
  5091 	    # Exported symbols can be pulled into shared objects from archives
  5092 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5093 	  fi
  5094 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5095 	  # This is similar to how AIX traditionally builds its shared libraries.
  5096 	  _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'
  5097 	fi
  5098       fi
  5099       ;;
  5100 
  5101     amigaos*)
  5102       case $host_cpu in
  5103       powerpc)
  5104             # see comment about AmigaOS4 .so support
  5105             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5106             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5107         ;;
  5108       m68k)
  5109             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5110             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5111             _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5112         ;;
  5113       esac
  5114       ;;
  5115 
  5116     bsdi[[45]]*)
  5117       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5118       ;;
  5119 
  5120     cygwin* | mingw* | pw32* | cegcc*)
  5121       # When not using gcc, we currently assume that we are using
  5122       # Microsoft Visual C++.
  5123       # hardcode_libdir_flag_spec is actually meaningless, as there is
  5124       # no search path for DLLs.
  5125       case $cc_basename in
  5126       cl*)
  5127 	# Native MSVC
  5128 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5129 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5130 	_LT_TAGVAR(always_export_symbols, $1)=yes
  5131 	_LT_TAGVAR(file_list_spec, $1)='@'
  5132 	# Tell ltmain to make .lib files, not .a files.
  5133 	libext=lib
  5134 	# Tell ltmain to make .dll files, not .so files.
  5135 	shrext_cmds=".dll"
  5136 	# FIXME: Setting linknames here is a bad hack.
  5137 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5138 	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5139 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5140 	  else
  5141 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5142 	  fi~
  5143 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5144 	  linknames='
  5145 	# The linker will not automatically build a static lib if we build a DLL.
  5146 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5147 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5148 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5149 	_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'
  5150 	# Don't use ranlib
  5151 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5152 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5153 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  5154 	  case $lt_outputfile in
  5155 	    *.exe|*.EXE) ;;
  5156 	    *)
  5157 	      lt_outputfile="$lt_outputfile.exe"
  5158 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  5159 	      ;;
  5160 	  esac~
  5161 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5162 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5163 	    $RM "$lt_outputfile.manifest";
  5164 	  fi'
  5165 	;;
  5166       *)
  5167 	# Assume MSVC wrapper
  5168 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5169 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5170 	# Tell ltmain to make .lib files, not .a files.
  5171 	libext=lib
  5172 	# Tell ltmain to make .dll files, not .so files.
  5173 	shrext_cmds=".dll"
  5174 	# FIXME: Setting linknames here is a bad hack.
  5175 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5176 	# The linker will automatically build a .lib file if we build a DLL.
  5177 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5178 	# FIXME: Should let the user specify the lib program.
  5179 	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5180 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5181 	;;
  5182       esac
  5183       ;;
  5184 
  5185     darwin* | rhapsody*)
  5186       _LT_DARWIN_LINKER_FEATURES($1)
  5187       ;;
  5188 
  5189     dgux*)
  5190       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5191       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5192       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5193       ;;
  5194 
  5195     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5196     # support.  Future versions do this automatically, but an explicit c++rt0.o
  5197     # does not break anything, and helps significantly (at the cost of a little
  5198     # extra space).
  5199     freebsd2.2*)
  5200       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5201       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5202       _LT_TAGVAR(hardcode_direct, $1)=yes
  5203       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5204       ;;
  5205 
  5206     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5207     freebsd2.*)
  5208       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5209       _LT_TAGVAR(hardcode_direct, $1)=yes
  5210       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5211       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5212       ;;
  5213 
  5214     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5215     freebsd* | dragonfly*)
  5216       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5217       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5218       _LT_TAGVAR(hardcode_direct, $1)=yes
  5219       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5220       ;;
  5221 
  5222     hpux9*)
  5223       if test "$GCC" = yes; then
  5224 	_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'
  5225       else
  5226 	_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'
  5227       fi
  5228       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5229       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5230       _LT_TAGVAR(hardcode_direct, $1)=yes
  5231 
  5232       # hardcode_minus_L: Not really in the search PATH,
  5233       # but as the default location of the library.
  5234       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5235       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5236       ;;
  5237 
  5238     hpux10*)
  5239       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5240 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5241       else
  5242 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5243       fi
  5244       if test "$with_gnu_ld" = no; then
  5245 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5246 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5247 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5248 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5249 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5250 	# hardcode_minus_L: Not really in the search PATH,
  5251 	# but as the default location of the library.
  5252 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
  5253       fi
  5254       ;;
  5255 
  5256     hpux11*)
  5257       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5258 	case $host_cpu in
  5259 	hppa*64*)
  5260 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5261 	  ;;
  5262 	ia64*)
  5263 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5264 	  ;;
  5265 	*)
  5266 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5267 	  ;;
  5268 	esac
  5269       else
  5270 	case $host_cpu in
  5271 	hppa*64*)
  5272 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5273 	  ;;
  5274 	ia64*)
  5275 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5276 	  ;;
  5277 	*)
  5278 	m4_if($1, [], [
  5279 	  # Older versions of the 11.00 compiler do not understand -b yet
  5280 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5281 	  _LT_LINKER_OPTION([if $CC understands -b],
  5282 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5283 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5284 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5285 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5286 	  ;;
  5287 	esac
  5288       fi
  5289       if test "$with_gnu_ld" = no; then
  5290 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5291 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5292 
  5293 	case $host_cpu in
  5294 	hppa*64*|ia64*)
  5295 	  _LT_TAGVAR(hardcode_direct, $1)=no
  5296 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5297 	  ;;
  5298 	*)
  5299 	  _LT_TAGVAR(hardcode_direct, $1)=yes
  5300 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5301 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5302 
  5303 	  # hardcode_minus_L: Not really in the search PATH,
  5304 	  # but as the default location of the library.
  5305 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5306 	  ;;
  5307 	esac
  5308       fi
  5309       ;;
  5310 
  5311     irix5* | irix6* | nonstopux*)
  5312       if test "$GCC" = yes; then
  5313 	_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'
  5314 	# Try to use the -exported_symbol ld option, if it does not
  5315 	# work, assume that -exports_file does not work either and
  5316 	# implicitly export all symbols.
  5317 	# This should be the same for all languages, so no per-tag cache variable.
  5318 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5319 	  [lt_cv_irix_exported_symbol],
  5320 	  [save_LDFLAGS="$LDFLAGS"
  5321 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5322 	   AC_LINK_IFELSE(
  5323 	     [AC_LANG_SOURCE(
  5324 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5325 			      [C++], [[int foo (void) { return 0; }]],
  5326 			      [Fortran 77], [[
  5327       subroutine foo
  5328       end]],
  5329 			      [Fortran], [[
  5330       subroutine foo
  5331       end]])])],
  5332 	      [lt_cv_irix_exported_symbol=yes],
  5333 	      [lt_cv_irix_exported_symbol=no])
  5334            LDFLAGS="$save_LDFLAGS"])
  5335 	if test "$lt_cv_irix_exported_symbol" = yes; then
  5336           _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'
  5337 	fi
  5338       else
  5339 	_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'
  5340 	_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'
  5341       fi
  5342       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5343       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5344       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5345       _LT_TAGVAR(inherit_rpath, $1)=yes
  5346       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5347       ;;
  5348 
  5349     netbsd*)
  5350       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5351 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  5352       else
  5353 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  5354       fi
  5355       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5356       _LT_TAGVAR(hardcode_direct, $1)=yes
  5357       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5358       ;;
  5359 
  5360     newsos6)
  5361       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5362       _LT_TAGVAR(hardcode_direct, $1)=yes
  5363       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5364       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5365       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5366       ;;
  5367 
  5368     *nto* | *qnx*)
  5369       ;;
  5370 
  5371     openbsd*)
  5372       if test -f /usr/libexec/ld.so; then
  5373 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5374 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5375 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5376 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5377 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5378 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5379 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5380 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5381 	else
  5382 	  case $host_os in
  5383 	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5384 	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5385 	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5386 	     ;;
  5387 	   *)
  5388 	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5389 	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5390 	     ;;
  5391 	  esac
  5392 	fi
  5393       else
  5394 	_LT_TAGVAR(ld_shlibs, $1)=no
  5395       fi
  5396       ;;
  5397 
  5398     os2*)
  5399       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5400       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5401       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5402       _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'
  5403       _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5404       ;;
  5405 
  5406     osf3*)
  5407       if test "$GCC" = yes; then
  5408 	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5409 	_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'
  5410       else
  5411 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5412 	_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'
  5413       fi
  5414       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5415       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5416       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5417       ;;
  5418 
  5419     osf4* | osf5*)	# as osf3* with the addition of -msym flag
  5420       if test "$GCC" = yes; then
  5421 	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5422 	_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'
  5423 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5424       else
  5425 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5426 	_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'
  5427 	_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~
  5428 	$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'
  5429 
  5430 	# Both c and cxx compiler support -rpath directly
  5431 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5432       fi
  5433       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5434       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5435       ;;
  5436 
  5437     solaris*)
  5438       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5439       if test "$GCC" = yes; then
  5440 	wlarc='${wl}'
  5441 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5442 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5443 	  $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'
  5444       else
  5445 	case `$CC -V 2>&1` in
  5446 	*"Compilers 5.0"*)
  5447 	  wlarc=''
  5448 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5449 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5450 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5451 	  ;;
  5452 	*)
  5453 	  wlarc='${wl}'
  5454 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5455 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5456 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5457 	  ;;
  5458 	esac
  5459       fi
  5460       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5461       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5462       case $host_os in
  5463       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5464       *)
  5465 	# The compiler driver will combine and reorder linker options,
  5466 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  5467 	# but is careful enough not to reorder.
  5468 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  5469 	if test "$GCC" = yes; then
  5470 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5471 	else
  5472 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5473 	fi
  5474 	;;
  5475       esac
  5476       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5477       ;;
  5478 
  5479     sunos4*)
  5480       if test "x$host_vendor" = xsequent; then
  5481 	# Use $CC to link under sequent, because it throws in some extra .o
  5482 	# files that make .init and .fini sections work.
  5483 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5484       else
  5485 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5486       fi
  5487       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5488       _LT_TAGVAR(hardcode_direct, $1)=yes
  5489       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5490       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5491       ;;
  5492 
  5493     sysv4)
  5494       case $host_vendor in
  5495 	sni)
  5496 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5497 	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5498 	;;
  5499 	siemens)
  5500 	  ## LD is ld it makes a PLAMLIB
  5501 	  ## CC just makes a GrossModule.
  5502 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5503 	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5504 	  _LT_TAGVAR(hardcode_direct, $1)=no
  5505         ;;
  5506 	motorola)
  5507 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5508 	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5509 	;;
  5510       esac
  5511       runpath_var='LD_RUN_PATH'
  5512       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5513       ;;
  5514 
  5515     sysv4.3*)
  5516       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5517       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5518       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5519       ;;
  5520 
  5521     sysv4*MP*)
  5522       if test -d /usr/nec; then
  5523 	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5524 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5525 	runpath_var=LD_RUN_PATH
  5526 	hardcode_runpath_var=yes
  5527 	_LT_TAGVAR(ld_shlibs, $1)=yes
  5528       fi
  5529       ;;
  5530 
  5531     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5532       _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5533       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5534       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5535       runpath_var='LD_RUN_PATH'
  5536 
  5537       if test "$GCC" = yes; then
  5538 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5539 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5540       else
  5541 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5542 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5543       fi
  5544       ;;
  5545 
  5546     sysv5* | sco3.2v5* | sco5v6*)
  5547       # Note: We can NOT use -z defs as we might desire, because we do not
  5548       # link with -lc, and that would cause any symbols used from libc to
  5549       # always be unresolved, which means just about no library would
  5550       # ever link correctly.  If we're not using GNU ld we use -z text
  5551       # though, which does catch some bad symbols but isn't as heavy-handed
  5552       # as -z defs.
  5553       _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5554       _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5555       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5556       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5557       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5558       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5559       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5560       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5561       runpath_var='LD_RUN_PATH'
  5562 
  5563       if test "$GCC" = yes; then
  5564 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5565 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5566       else
  5567 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5568 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5569       fi
  5570       ;;
  5571 
  5572     uts4*)
  5573       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5574       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5575       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5576       ;;
  5577 
  5578     *)
  5579       _LT_TAGVAR(ld_shlibs, $1)=no
  5580       ;;
  5581     esac
  5582 
  5583     if test x$host_vendor = xsni; then
  5584       case $host in
  5585       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5586 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5587 	;;
  5588       esac
  5589     fi
  5590   fi
  5591 ])
  5592 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5593 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5594 
  5595 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5596 
  5597 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5598 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5599 _LT_DECL([], [extract_expsyms_cmds], [2],
  5600     [The commands to extract the exported symbol list from a shared archive])
  5601 
  5602 #
  5603 # Do we need to explicitly link libc?
  5604 #
  5605 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5606 x|xyes)
  5607   # Assume -lc should be added
  5608   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5609 
  5610   if test "$enable_shared" = yes && test "$GCC" = yes; then
  5611     case $_LT_TAGVAR(archive_cmds, $1) in
  5612     *'~'*)
  5613       # FIXME: we may have to deal with multi-command sequences.
  5614       ;;
  5615     '$CC '*)
  5616       # Test whether the compiler implicitly links with -lc since on some
  5617       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5618       # to ld, don't add -lc before -lgcc.
  5619       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5620 	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5621 	[$RM conftest*
  5622 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5623 
  5624 	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5625 	  soname=conftest
  5626 	  lib=conftest
  5627 	  libobjs=conftest.$ac_objext
  5628 	  deplibs=
  5629 	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5630 	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5631 	  compiler_flags=-v
  5632 	  linker_flags=-v
  5633 	  verstring=
  5634 	  output_objdir=.
  5635 	  libname=conftest
  5636 	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5637 	  _LT_TAGVAR(allow_undefined_flag, $1)=
  5638 	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5639 	  then
  5640 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5641 	  else
  5642 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5643 	  fi
  5644 	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5645 	else
  5646 	  cat conftest.err 1>&5
  5647 	fi
  5648 	$RM conftest*
  5649 	])
  5650       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5651       ;;
  5652     esac
  5653   fi
  5654   ;;
  5655 esac
  5656 
  5657 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5658     [Whether or not to add -lc for building shared libraries])
  5659 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5660     [enable_shared_with_static_runtimes], [0],
  5661     [Whether or not to disallow shared libs when runtime libs are static])
  5662 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5663     [Compiler flag to allow reflexive dlopens])
  5664 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5665     [Compiler flag to generate shared objects directly from archives])
  5666 _LT_TAGDECL([], [compiler_needs_object], [1],
  5667     [Whether the compiler copes with passing no objects directly])
  5668 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5669     [Create an old-style archive from a shared archive])
  5670 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5671     [Create a temporary old-style archive to link instead of a shared archive])
  5672 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5673 _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5674 _LT_TAGDECL([], [module_cmds], [2],
  5675     [Commands used to build a loadable module if different from building
  5676     a shared archive.])
  5677 _LT_TAGDECL([], [module_expsym_cmds], [2])
  5678 _LT_TAGDECL([], [with_gnu_ld], [1],
  5679     [Whether we are building with GNU ld or not])
  5680 _LT_TAGDECL([], [allow_undefined_flag], [1],
  5681     [Flag that allows shared libraries with undefined symbols to be built])
  5682 _LT_TAGDECL([], [no_undefined_flag], [1],
  5683     [Flag that enforces no undefined symbols])
  5684 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5685     [Flag to hardcode $libdir into a binary during linking.
  5686     This must work even if $libdir does not exist])
  5687 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5688     [Whether we need a single "-rpath" flag with a separated argument])
  5689 _LT_TAGDECL([], [hardcode_direct], [0],
  5690     [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5691     DIR into the resulting binary])
  5692 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5693     [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5694     DIR into the resulting binary and the resulting library dependency is
  5695     "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5696     library is relocated])
  5697 _LT_TAGDECL([], [hardcode_minus_L], [0],
  5698     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5699     into the resulting binary])
  5700 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5701     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5702     into the resulting binary])
  5703 _LT_TAGDECL([], [hardcode_automatic], [0],
  5704     [Set to "yes" if building a shared library automatically hardcodes DIR
  5705     into the library and all subsequent libraries and executables linked
  5706     against it])
  5707 _LT_TAGDECL([], [inherit_rpath], [0],
  5708     [Set to yes if linker adds runtime paths of dependent libraries
  5709     to runtime path list])
  5710 _LT_TAGDECL([], [link_all_deplibs], [0],
  5711     [Whether libtool must link a program against all its dependency libraries])
  5712 _LT_TAGDECL([], [always_export_symbols], [0],
  5713     [Set to "yes" if exported symbols are required])
  5714 _LT_TAGDECL([], [export_symbols_cmds], [2],
  5715     [The commands to list exported symbols])
  5716 _LT_TAGDECL([], [exclude_expsyms], [1],
  5717     [Symbols that should not be listed in the preloaded symbols])
  5718 _LT_TAGDECL([], [include_expsyms], [1],
  5719     [Symbols that must always be exported])
  5720 _LT_TAGDECL([], [prelink_cmds], [2],
  5721     [Commands necessary for linking programs (against libraries) with templates])
  5722 _LT_TAGDECL([], [postlink_cmds], [2],
  5723     [Commands necessary for finishing linking programs])
  5724 _LT_TAGDECL([], [file_list_spec], [1],
  5725     [Specify filename containing input files])
  5726 dnl FIXME: Not yet implemented
  5727 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5728 dnl    [Compiler flag to generate thread safe objects])
  5729 ])# _LT_LINKER_SHLIBS
  5730 
  5731 
  5732 # _LT_LANG_C_CONFIG([TAG])
  5733 # ------------------------
  5734 # Ensure that the configuration variables for a C compiler are suitably
  5735 # defined.  These variables are subsequently used by _LT_CONFIG to write
  5736 # the compiler configuration to `libtool'.
  5737 m4_defun([_LT_LANG_C_CONFIG],
  5738 [m4_require([_LT_DECL_EGREP])dnl
  5739 lt_save_CC="$CC"
  5740 AC_LANG_PUSH(C)
  5741 
  5742 # Source file extension for C test sources.
  5743 ac_ext=c
  5744 
  5745 # Object file extension for compiled C test sources.
  5746 objext=o
  5747 _LT_TAGVAR(objext, $1)=$objext
  5748 
  5749 # Code to be used in simple compile tests
  5750 lt_simple_compile_test_code="int some_variable = 0;"
  5751 
  5752 # Code to be used in simple link tests
  5753 lt_simple_link_test_code='int main(){return(0);}'
  5754 
  5755 _LT_TAG_COMPILER
  5756 # Save the default compiler, since it gets overwritten when the other
  5757 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5758 compiler_DEFAULT=$CC
  5759 
  5760 # save warnings/boilerplate of simple test code
  5761 _LT_COMPILER_BOILERPLATE
  5762 _LT_LINKER_BOILERPLATE
  5763 
  5764 ## CAVEAT EMPTOR:
  5765 ## There is no encapsulation within the following macros, do not change
  5766 ## the running order or otherwise move them around unless you know exactly
  5767 ## what you are doing...
  5768 if test -n "$compiler"; then
  5769   _LT_COMPILER_NO_RTTI($1)
  5770   _LT_COMPILER_PIC($1)
  5771   _LT_COMPILER_C_O($1)
  5772   _LT_COMPILER_FILE_LOCKS($1)
  5773   _LT_LINKER_SHLIBS($1)
  5774   _LT_SYS_DYNAMIC_LINKER($1)
  5775   _LT_LINKER_HARDCODE_LIBPATH($1)
  5776   LT_SYS_DLOPEN_SELF
  5777   _LT_CMD_STRIPLIB
  5778 
  5779   # Report which library types will actually be built
  5780   AC_MSG_CHECKING([if libtool supports shared libraries])
  5781   AC_MSG_RESULT([$can_build_shared])
  5782 
  5783   AC_MSG_CHECKING([whether to build shared libraries])
  5784   test "$can_build_shared" = "no" && enable_shared=no
  5785 
  5786   # On AIX, shared libraries and static libraries use the same namespace, and
  5787   # are all built from PIC.
  5788   case $host_os in
  5789   aix3*)
  5790     test "$enable_shared" = yes && enable_static=no
  5791     if test -n "$RANLIB"; then
  5792       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5793       postinstall_cmds='$RANLIB $lib'
  5794     fi
  5795     ;;
  5796 
  5797   aix[[4-9]]*)
  5798     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5799       test "$enable_shared" = yes && enable_static=no
  5800     fi
  5801     ;;
  5802   esac
  5803   AC_MSG_RESULT([$enable_shared])
  5804 
  5805   AC_MSG_CHECKING([whether to build static libraries])
  5806   # Make sure either enable_shared or enable_static is yes.
  5807   test "$enable_shared" = yes || enable_static=yes
  5808   AC_MSG_RESULT([$enable_static])
  5809 
  5810   _LT_CONFIG($1)
  5811 fi
  5812 AC_LANG_POP
  5813 CC="$lt_save_CC"
  5814 ])# _LT_LANG_C_CONFIG
  5815 
  5816 
  5817 # _LT_LANG_CXX_CONFIG([TAG])
  5818 # --------------------------
  5819 # Ensure that the configuration variables for a C++ compiler are suitably
  5820 # defined.  These variables are subsequently used by _LT_CONFIG to write
  5821 # the compiler configuration to `libtool'.
  5822 m4_defun([_LT_LANG_CXX_CONFIG],
  5823 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5824 m4_require([_LT_DECL_EGREP])dnl
  5825 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5826 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5827     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5828     (test "X$CXX" != "Xg++"))) ; then
  5829   AC_PROG_CXXCPP
  5830 else
  5831   _lt_caught_CXX_error=yes
  5832 fi
  5833 
  5834 AC_LANG_PUSH(C++)
  5835 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5836 _LT_TAGVAR(allow_undefined_flag, $1)=
  5837 _LT_TAGVAR(always_export_symbols, $1)=no
  5838 _LT_TAGVAR(archive_expsym_cmds, $1)=
  5839 _LT_TAGVAR(compiler_needs_object, $1)=no
  5840 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5841 _LT_TAGVAR(hardcode_direct, $1)=no
  5842 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5844 _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5845 _LT_TAGVAR(hardcode_minus_L, $1)=no
  5846 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5847 _LT_TAGVAR(hardcode_automatic, $1)=no
  5848 _LT_TAGVAR(inherit_rpath, $1)=no
  5849 _LT_TAGVAR(module_cmds, $1)=
  5850 _LT_TAGVAR(module_expsym_cmds, $1)=
  5851 _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5852 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5853 _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5854 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5855 _LT_TAGVAR(no_undefined_flag, $1)=
  5856 _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5857 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5858 
  5859 # Source file extension for C++ test sources.
  5860 ac_ext=cpp
  5861 
  5862 # Object file extension for compiled C++ test sources.
  5863 objext=o
  5864 _LT_TAGVAR(objext, $1)=$objext
  5865 
  5866 # No sense in running all these tests if we already determined that
  5867 # the CXX compiler isn't working.  Some variables (like enable_shared)
  5868 # are currently assumed to apply to all compilers on this platform,
  5869 # and will be corrupted by setting them based on a non-working compiler.
  5870 if test "$_lt_caught_CXX_error" != yes; then
  5871   # Code to be used in simple compile tests
  5872   lt_simple_compile_test_code="int some_variable = 0;"
  5873 
  5874   # Code to be used in simple link tests
  5875   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5876 
  5877   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5878   _LT_TAG_COMPILER
  5879 
  5880   # save warnings/boilerplate of simple test code
  5881   _LT_COMPILER_BOILERPLATE
  5882   _LT_LINKER_BOILERPLATE
  5883 
  5884   # Allow CC to be a program name with arguments.
  5885   lt_save_CC=$CC
  5886   lt_save_CFLAGS=$CFLAGS
  5887   lt_save_LD=$LD
  5888   lt_save_GCC=$GCC
  5889   GCC=$GXX
  5890   lt_save_with_gnu_ld=$with_gnu_ld
  5891   lt_save_path_LD=$lt_cv_path_LD
  5892   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5893     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5894   else
  5895     $as_unset lt_cv_prog_gnu_ld
  5896   fi
  5897   if test -n "${lt_cv_path_LDCXX+set}"; then
  5898     lt_cv_path_LD=$lt_cv_path_LDCXX
  5899   else
  5900     $as_unset lt_cv_path_LD
  5901   fi
  5902   test -z "${LDCXX+set}" || LD=$LDCXX
  5903   CC=${CXX-"c++"}
  5904   CFLAGS=$CXXFLAGS
  5905   compiler=$CC
  5906   _LT_TAGVAR(compiler, $1)=$CC
  5907   _LT_CC_BASENAME([$compiler])
  5908 
  5909   if test -n "$compiler"; then
  5910     # We don't want -fno-exception when compiling C++ code, so set the
  5911     # no_builtin_flag separately
  5912     if test "$GXX" = yes; then
  5913       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5914     else
  5915       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5916     fi
  5917 
  5918     if test "$GXX" = yes; then
  5919       # Set up default GNU C++ configuration
  5920 
  5921       LT_PATH_LD
  5922 
  5923       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5924       # archiving commands below assume that GNU ld is being used.
  5925       if test "$with_gnu_ld" = yes; then
  5926         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5927         _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'
  5928 
  5929         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5930         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5931 
  5932         # If archive_cmds runs LD, not CC, wlarc should be empty
  5933         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5934         #     investigate it a little bit more. (MM)
  5935         wlarc='${wl}'
  5936 
  5937         # ancient GNU ld didn't support --whole-archive et. al.
  5938         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5939 	  $GREP 'no-whole-archive' > /dev/null; then
  5940           _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5941         else
  5942           _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5943         fi
  5944       else
  5945         with_gnu_ld=no
  5946         wlarc=
  5947 
  5948         # A generic and very simple default shared library creation
  5949         # command for GNU C++ for the case where it uses the native
  5950         # linker, instead of GNU ld.  If possible, this setting should
  5951         # overridden to take advantage of the native linker features on
  5952         # the platform it is being used on.
  5953         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5954       fi
  5955 
  5956       # Commands to make compiler produce verbose output that lists
  5957       # what "hidden" libraries, object files and flags are used when
  5958       # linking a shared library.
  5959       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5960 
  5961     else
  5962       GXX=no
  5963       with_gnu_ld=no
  5964       wlarc=
  5965     fi
  5966 
  5967     # PORTME: fill in a description of your system's C++ link characteristics
  5968     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5969     _LT_TAGVAR(ld_shlibs, $1)=yes
  5970     case $host_os in
  5971       aix3*)
  5972         # FIXME: insert proper C++ library support
  5973         _LT_TAGVAR(ld_shlibs, $1)=no
  5974         ;;
  5975       aix[[4-9]]*)
  5976         if test "$host_cpu" = ia64; then
  5977           # On IA64, the linker does run time linking by default, so we don't
  5978           # have to do anything special.
  5979           aix_use_runtimelinking=no
  5980           exp_sym_flag='-Bexport'
  5981           no_entry_flag=""
  5982         else
  5983           aix_use_runtimelinking=no
  5984 
  5985           # Test if we are trying to use run time linking or normal
  5986           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5987           # need to do runtime linking.
  5988           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5989 	    for ld_flag in $LDFLAGS; do
  5990 	      case $ld_flag in
  5991 	      *-brtl*)
  5992 	        aix_use_runtimelinking=yes
  5993 	        break
  5994 	        ;;
  5995 	      esac
  5996 	    done
  5997 	    ;;
  5998           esac
  5999 
  6000           exp_sym_flag='-bexport'
  6001           no_entry_flag='-bnoentry'
  6002         fi
  6003 
  6004         # When large executables or shared objects are built, AIX ld can
  6005         # have problems creating the table of contents.  If linking a library
  6006         # or program results in "error TOC overflow" add -mminimal-toc to
  6007         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  6008         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6009 
  6010         _LT_TAGVAR(archive_cmds, $1)=''
  6011         _LT_TAGVAR(hardcode_direct, $1)=yes
  6012         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6013         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6014         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6015         _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6016 
  6017         if test "$GXX" = yes; then
  6018           case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6019           # We only want to do this on AIX 4.2 and lower, the check
  6020           # below for broken collect2 doesn't work under 4.3+
  6021 	  collect2name=`${CC} -print-prog-name=collect2`
  6022 	  if test -f "$collect2name" &&
  6023 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6024 	  then
  6025 	    # We have reworked collect2
  6026 	    :
  6027 	  else
  6028 	    # We have old collect2
  6029 	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6030 	    # It fails to find uninstalled libraries when the uninstalled
  6031 	    # path is not listed in the libpath.  Setting hardcode_minus_L
  6032 	    # to unsupported forces relinking
  6033 	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6034 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6035 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6036 	  fi
  6037           esac
  6038           shared_flag='-shared'
  6039 	  if test "$aix_use_runtimelinking" = yes; then
  6040 	    shared_flag="$shared_flag "'${wl}-G'
  6041 	  fi
  6042         else
  6043           # not using gcc
  6044           if test "$host_cpu" = ia64; then
  6045 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6046 	  # chokes on -Wl,-G. The following line is correct:
  6047 	  shared_flag='-G'
  6048           else
  6049 	    if test "$aix_use_runtimelinking" = yes; then
  6050 	      shared_flag='${wl}-G'
  6051 	    else
  6052 	      shared_flag='${wl}-bM:SRE'
  6053 	    fi
  6054           fi
  6055         fi
  6056 
  6057         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6058         # It seems that -bexpall does not export symbols beginning with
  6059         # underscore (_), so it is better to generate a list of symbols to
  6060 	# export.
  6061         _LT_TAGVAR(always_export_symbols, $1)=yes
  6062         if test "$aix_use_runtimelinking" = yes; then
  6063           # Warning - without using the other runtime loading flags (-brtl),
  6064           # -berok will link without error, but may produce a broken library.
  6065           _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6066           # Determine the default libpath from the value encoded in an empty
  6067           # executable.
  6068           _LT_SYS_MODULE_PATH_AIX([$1])
  6069           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6070 
  6071           _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"
  6072         else
  6073           if test "$host_cpu" = ia64; then
  6074 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6075 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6076 	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6077           else
  6078 	    # Determine the default libpath from the value encoded in an
  6079 	    # empty executable.
  6080 	    _LT_SYS_MODULE_PATH_AIX([$1])
  6081 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6082 	    # Warning - without using the other run time loading flags,
  6083 	    # -berok will link without error, but may produce a broken library.
  6084 	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6085 	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6086 	    if test "$with_gnu_ld" = yes; then
  6087 	      # We only use this code for GNU lds that support --whole-archive.
  6088 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6089 	    else
  6090 	      # Exported symbols can be pulled into shared objects from archives
  6091 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6092 	    fi
  6093 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6094 	    # This is similar to how AIX traditionally builds its shared
  6095 	    # libraries.
  6096 	    _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'
  6097           fi
  6098         fi
  6099         ;;
  6100 
  6101       beos*)
  6102 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6103 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6104 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6105 	  # support --undefined.  This deserves some investigation.  FIXME
  6106 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6107 	else
  6108 	  _LT_TAGVAR(ld_shlibs, $1)=no
  6109 	fi
  6110 	;;
  6111 
  6112       chorus*)
  6113         case $cc_basename in
  6114           *)
  6115 	  # FIXME: insert proper C++ library support
  6116 	  _LT_TAGVAR(ld_shlibs, $1)=no
  6117 	  ;;
  6118         esac
  6119         ;;
  6120 
  6121       cygwin* | mingw* | pw32* | cegcc*)
  6122 	case $GXX,$cc_basename in
  6123 	,cl* | no,cl*)
  6124 	  # Native MSVC
  6125 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  6126 	  # no search path for DLLs.
  6127 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6128 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6129 	  _LT_TAGVAR(always_export_symbols, $1)=yes
  6130 	  _LT_TAGVAR(file_list_spec, $1)='@'
  6131 	  # Tell ltmain to make .lib files, not .a files.
  6132 	  libext=lib
  6133 	  # Tell ltmain to make .dll files, not .so files.
  6134 	  shrext_cmds=".dll"
  6135 	  # FIXME: Setting linknames here is a bad hack.
  6136 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6137 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6138 	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6139 	    else
  6140 	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6141 	    fi~
  6142 	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6143 	    linknames='
  6144 	  # The linker will not automatically build a static lib if we build a DLL.
  6145 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6146 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6147 	  # Don't use ranlib
  6148 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6149 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6150 	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  6151 	    case $lt_outputfile in
  6152 	      *.exe|*.EXE) ;;
  6153 	      *)
  6154 		lt_outputfile="$lt_outputfile.exe"
  6155 		lt_tool_outputfile="$lt_tool_outputfile.exe"
  6156 		;;
  6157 	    esac~
  6158 	    func_to_tool_file "$lt_outputfile"~
  6159 	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6160 	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6161 	      $RM "$lt_outputfile.manifest";
  6162 	    fi'
  6163 	  ;;
  6164 	*)
  6165 	  # g++
  6166 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6167 	  # as there is no search path for DLLs.
  6168 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6169 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6170 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6171 	  _LT_TAGVAR(always_export_symbols, $1)=no
  6172 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6173 
  6174 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6175 	    _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'
  6176 	    # If the export-symbols file already is a .def file (1st line
  6177 	    # is EXPORTS), use it as is; otherwise, prepend...
  6178 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6179 	      cp $export_symbols $output_objdir/$soname.def;
  6180 	    else
  6181 	      echo EXPORTS > $output_objdir/$soname.def;
  6182 	      cat $export_symbols >> $output_objdir/$soname.def;
  6183 	    fi~
  6184 	    $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'
  6185 	  else
  6186 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6187 	  fi
  6188 	  ;;
  6189 	esac
  6190 	;;
  6191       darwin* | rhapsody*)
  6192         _LT_DARWIN_LINKER_FEATURES($1)
  6193 	;;
  6194 
  6195       dgux*)
  6196         case $cc_basename in
  6197           ec++*)
  6198 	    # FIXME: insert proper C++ library support
  6199 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6200 	    ;;
  6201           ghcx*)
  6202 	    # Green Hills C++ Compiler
  6203 	    # FIXME: insert proper C++ library support
  6204 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6205 	    ;;
  6206           *)
  6207 	    # FIXME: insert proper C++ library support
  6208 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6209 	    ;;
  6210         esac
  6211         ;;
  6212 
  6213       freebsd2.*)
  6214         # C++ shared libraries reported to be fairly broken before
  6215 	# switch to ELF
  6216         _LT_TAGVAR(ld_shlibs, $1)=no
  6217         ;;
  6218 
  6219       freebsd-elf*)
  6220         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6221         ;;
  6222 
  6223       freebsd* | dragonfly*)
  6224         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6225         # conventions
  6226         _LT_TAGVAR(ld_shlibs, $1)=yes
  6227         ;;
  6228 
  6229       gnu*)
  6230         ;;
  6231 
  6232       haiku*)
  6233         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6234         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6235         ;;
  6236 
  6237       hpux9*)
  6238         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6239         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6240         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6241         _LT_TAGVAR(hardcode_direct, $1)=yes
  6242         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6243 				             # but as the default
  6244 				             # location of the library.
  6245 
  6246         case $cc_basename in
  6247           CC*)
  6248             # FIXME: insert proper C++ library support
  6249             _LT_TAGVAR(ld_shlibs, $1)=no
  6250             ;;
  6251           aCC*)
  6252             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${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'
  6253             # Commands to make compiler produce verbose output that lists
  6254             # what "hidden" libraries, object files and flags are used when
  6255             # linking a shared library.
  6256             #
  6257             # There doesn't appear to be a way to prevent this compiler from
  6258             # explicitly linking system object files so we need to strip them
  6259             # from the output so that they don't get included in the library
  6260             # dependencies.
  6261             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"'
  6262             ;;
  6263           *)
  6264             if test "$GXX" = yes; then
  6265               _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'
  6266             else
  6267               # FIXME: insert proper C++ library support
  6268               _LT_TAGVAR(ld_shlibs, $1)=no
  6269             fi
  6270             ;;
  6271         esac
  6272         ;;
  6273 
  6274       hpux10*|hpux11*)
  6275         if test $with_gnu_ld = no; then
  6276 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6277 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6278 
  6279           case $host_cpu in
  6280             hppa*64*|ia64*)
  6281               ;;
  6282             *)
  6283 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6284               ;;
  6285           esac
  6286         fi
  6287         case $host_cpu in
  6288           hppa*64*|ia64*)
  6289             _LT_TAGVAR(hardcode_direct, $1)=no
  6290             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6291             ;;
  6292           *)
  6293             _LT_TAGVAR(hardcode_direct, $1)=yes
  6294             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6295             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6296 					         # but as the default
  6297 					         # location of the library.
  6298             ;;
  6299         esac
  6300 
  6301         case $cc_basename in
  6302           CC*)
  6303 	    # FIXME: insert proper C++ library support
  6304 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6305 	    ;;
  6306           aCC*)
  6307 	    case $host_cpu in
  6308 	      hppa*64*)
  6309 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6310 	        ;;
  6311 	      ia64*)
  6312 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6313 	        ;;
  6314 	      *)
  6315 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6316 	        ;;
  6317 	    esac
  6318 	    # Commands to make compiler produce verbose output that lists
  6319 	    # what "hidden" libraries, object files and flags are used when
  6320 	    # linking a shared library.
  6321 	    #
  6322 	    # There doesn't appear to be a way to prevent this compiler from
  6323 	    # explicitly linking system object files so we need to strip them
  6324 	    # from the output so that they don't get included in the library
  6325 	    # dependencies.
  6326 	    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"'
  6327 	    ;;
  6328           *)
  6329 	    if test "$GXX" = yes; then
  6330 	      if test $with_gnu_ld = no; then
  6331 	        case $host_cpu in
  6332 	          hppa*64*)
  6333 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6334 	            ;;
  6335 	          ia64*)
  6336 	            _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'
  6337 	            ;;
  6338 	          *)
  6339 	            _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'
  6340 	            ;;
  6341 	        esac
  6342 	      fi
  6343 	    else
  6344 	      # FIXME: insert proper C++ library support
  6345 	      _LT_TAGVAR(ld_shlibs, $1)=no
  6346 	    fi
  6347 	    ;;
  6348         esac
  6349         ;;
  6350 
  6351       interix[[3-9]]*)
  6352 	_LT_TAGVAR(hardcode_direct, $1)=no
  6353 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6354 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6355 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6356 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6357 	# Instead, shared libraries are loaded at an image base (0x10000000 by
  6358 	# default) and relocated if they conflict, which is a slow very memory
  6359 	# consuming and fragmenting process.  To avoid this, we pick a random,
  6360 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6361 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  6362 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6363 	_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'
  6364 	;;
  6365       irix5* | irix6*)
  6366         case $cc_basename in
  6367           CC*)
  6368 	    # SGI C++
  6369 	    _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'
  6370 
  6371 	    # Archives containing C++ object files must be created using
  6372 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  6373 	    # necessary to make sure instantiated templates are included
  6374 	    # in the archive.
  6375 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6376 	    ;;
  6377           *)
  6378 	    if test "$GXX" = yes; then
  6379 	      if test "$with_gnu_ld" = no; then
  6380 	        _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'
  6381 	      else
  6382 	        _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'
  6383 	      fi
  6384 	    fi
  6385 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6386 	    ;;
  6387         esac
  6388         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6389         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6390         _LT_TAGVAR(inherit_rpath, $1)=yes
  6391         ;;
  6392 
  6393       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6394         case $cc_basename in
  6395           KCC*)
  6396 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  6397 
  6398 	    # KCC will only create a shared library if the output file
  6399 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6400 	    # to its proper name (with version) after linking.
  6401 	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6402 	    _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  6403 	    # Commands to make compiler produce verbose output that lists
  6404 	    # what "hidden" libraries, object files and flags are used when
  6405 	    # linking a shared library.
  6406 	    #
  6407 	    # There doesn't appear to be a way to prevent this compiler from
  6408 	    # explicitly linking system object files so we need to strip them
  6409 	    # from the output so that they don't get included in the library
  6410 	    # dependencies.
  6411 	    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"'
  6412 
  6413 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6414 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6415 
  6416 	    # Archives containing C++ object files must be created using
  6417 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6418 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6419 	    ;;
  6420 	  icpc* | ecpc* )
  6421 	    # Intel C++
  6422 	    with_gnu_ld=yes
  6423 	    # version 8.0 and above of icpc choke on multiply defined symbols
  6424 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
  6425 	    # earlier do not add the objects themselves.
  6426 	    case `$CC -V 2>&1` in
  6427 	      *"Version 7."*)
  6428 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6429 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6430 		;;
  6431 	      *)  # Version 8.0 or newer
  6432 	        tmp_idyn=
  6433 	        case $host_cpu in
  6434 		  ia64*) tmp_idyn=' -i_dynamic';;
  6435 		esac
  6436 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6437 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $lib