"Fossies" - the Fresh Open Source Software Archive

Member "courier-1.2.2/libs/maildir/aclocal.m4" (19 Feb 2023, 375253 Bytes) of package /linux/misc/courier-1.2.2.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 1.1.10_vs_1.1.11.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
    4 
    5 # This file is free software; the Free Software Foundation
    6 # gives unlimited permission to copy and/or distribute it,
    7 # with or without modifications, as long as this notice is preserved.
    8 
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   12 # PARTICULAR PURPOSE.
   13 
   14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
   15 m4_ifndef([AC_AUTOCONF_VERSION],
   16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
   18 [m4_warning([this file was generated for autoconf 2.71.
   19 You have another version of autoconf.  It may work, but is not guaranteed to.
   20 If you have problems, you may need to regenerate the build system entirely.
   21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
   22 
   23 dnl Sets the COURIER_UNICODE_CXXFLAGS variable to any additional compiler
   24 dnl flags needed to build the courier-unicode package and packages that
   25 dnl use the courier-unicode package.
   26 
   27 AC_DEFUN([AX_COURIER_UNICODE_CXXFLAGS],[
   28 
   29 AC_REQUIRE([AC_PROG_CXX])
   30 
   31 save_FLAGS="$CXXFLAGS"
   32 
   33 AC_LANG_PUSH([C++])
   34 
   35 
   36 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
   37 #include <string>
   38 
   39 void func(std::u32string, char32_t);
   40 
   41 ]], [[
   42      std::u32string s;
   43      char32_t c=0;
   44 
   45      func(s, c);
   46      ]])],
   47      [
   48      ],
   49      [
   50 
   51 COURIER_UNICODE_CXXFLAGS="-std=c++11"
   52 CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
   53 
   54 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
   55 #include <string>
   56 
   57 void func(std::u32string, char32_t);
   58 
   59 ]], [[
   60      std::u32string s;
   61      char32_t c=0;
   62 
   63      func(s, c);
   64      ]])],
   65      [
   66      ],
   67      [
   68 
   69 COURIER_UNICODE_CXXFLAGS="-std=c++0x"
   70 CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
   71 
   72 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
   73 #include <string>
   74 
   75 void func(std::u32string, char32_t);
   76 
   77 ]], [[
   78      std::u32string s;
   79      char32_t c=0;
   80 
   81      func(s, c);
   82      ]])],
   83      [
   84      ],
   85      [
   86 AC_MSG_ERROR([*** A compiler with C++11 Unicode support was not found])
   87 ])
   88 ])
   89 ])
   90 CXXFLAGS="$save_FLAGS"
   91 
   92 AC_LANG_POP([C++])
   93 ])
   94 
   95 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   96 #
   97 #   Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
   98 #   Foundation, Inc.
   99 #   Written by Gordon Matzigkeit, 1996
  100 #
  101 # This file is free software; the Free Software Foundation gives
  102 # unlimited permission to copy and/or distribute it, with or without
  103 # modifications, as long as this notice is preserved.
  104 
  105 m4_define([_LT_COPYING], [dnl
  106 # Copyright (C) 2014 Free Software Foundation, Inc.
  107 # This is free software; see the source for copying conditions.  There is NO
  108 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  109 
  110 # GNU Libtool is free software; you can redistribute it and/or modify
  111 # it under the terms of the GNU General Public License as published by
  112 # the Free Software Foundation; either version 2 of of the License, or
  113 # (at your option) any later version.
  114 #
  115 # As a special exception to the GNU General Public License, if you
  116 # distribute this file as part of a program or library that is built
  117 # using GNU Libtool, you may include this file under the  same
  118 # distribution terms that you use for the rest of that program.
  119 #
  120 # GNU Libtool is distributed in the hope that it will be useful, but
  121 # WITHOUT ANY WARRANTY; without even the implied warranty of
  122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  123 # GNU General Public License for more details.
  124 #
  125 # You should have received a copy of the GNU General Public License
  126 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  127 ])
  128 
  129 # serial 59 LT_INIT
  130 
  131 
  132 # LT_PREREQ(VERSION)
  133 # ------------------
  134 # Complain and exit if this libtool version is less that VERSION.
  135 m4_defun([LT_PREREQ],
  136 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  137        [m4_default([$3],
  138 		   [m4_fatal([Libtool version $1 or higher is required],
  139 		             63)])],
  140        [$2])])
  141 
  142 
  143 # _LT_CHECK_BUILDDIR
  144 # ------------------
  145 # Complain if the absolute build directory name contains unusual characters
  146 m4_defun([_LT_CHECK_BUILDDIR],
  147 [case `pwd` in
  148   *\ * | *\	*)
  149     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  150 esac
  151 ])
  152 
  153 
  154 # LT_INIT([OPTIONS])
  155 # ------------------
  156 AC_DEFUN([LT_INIT],
  157 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
  158 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  159 AC_BEFORE([$0], [LT_LANG])dnl
  160 AC_BEFORE([$0], [LT_OUTPUT])dnl
  161 AC_BEFORE([$0], [LTDL_INIT])dnl
  162 m4_require([_LT_CHECK_BUILDDIR])dnl
  163 
  164 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  165 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  166 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  167 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  168 dnl unless we require an AC_DEFUNed macro:
  169 AC_REQUIRE([LTOPTIONS_VERSION])dnl
  170 AC_REQUIRE([LTSUGAR_VERSION])dnl
  171 AC_REQUIRE([LTVERSION_VERSION])dnl
  172 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  173 m4_require([_LT_PROG_LTMAIN])dnl
  174 
  175 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  176 
  177 dnl Parse OPTIONS
  178 _LT_SET_OPTIONS([$0], [$1])
  179 
  180 # This can be used to rebuild libtool when needed
  181 LIBTOOL_DEPS=$ltmain
  182 
  183 # Always use our own libtool.
  184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  185 AC_SUBST(LIBTOOL)dnl
  186 
  187 _LT_SETUP
  188 
  189 # Only expand once:
  190 m4_define([LT_INIT])
  191 ])# LT_INIT
  192 
  193 # Old names:
  194 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  195 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  196 dnl aclocal-1.4 backwards compatibility:
  197 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  198 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  199 
  200 
  201 # _LT_PREPARE_CC_BASENAME
  202 # -----------------------
  203 m4_defun([_LT_PREPARE_CC_BASENAME], [
  204 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  205 func_cc_basename ()
  206 {
  207     for cc_temp in @S|@*""; do
  208       case $cc_temp in
  209         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  210         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  211         \-*) ;;
  212         *) break;;
  213       esac
  214     done
  215     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  216 }
  217 ])# _LT_PREPARE_CC_BASENAME
  218 
  219 
  220 # _LT_CC_BASENAME(CC)
  221 # -------------------
  222 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  223 # but that macro is also expanded into generated libtool script, which
  224 # arranges for $SED and $ECHO to be set by different means.
  225 m4_defun([_LT_CC_BASENAME],
  226 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  227 AC_REQUIRE([_LT_DECL_SED])dnl
  228 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  229 func_cc_basename $1
  230 cc_basename=$func_cc_basename_result
  231 ])
  232 
  233 
  234 # _LT_FILEUTILS_DEFAULTS
  235 # ----------------------
  236 # It is okay to use these file commands and assume they have been set
  237 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  238 m4_defun([_LT_FILEUTILS_DEFAULTS],
  239 [: ${CP="cp -f"}
  240 : ${MV="mv -f"}
  241 : ${RM="rm -f"}
  242 ])# _LT_FILEUTILS_DEFAULTS
  243 
  244 
  245 # _LT_SETUP
  246 # ---------
  247 m4_defun([_LT_SETUP],
  248 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  249 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  250 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  251 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  252 
  253 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  254 dnl
  255 _LT_DECL([], [host_alias], [0], [The host system])dnl
  256 _LT_DECL([], [host], [0])dnl
  257 _LT_DECL([], [host_os], [0])dnl
  258 dnl
  259 _LT_DECL([], [build_alias], [0], [The build system])dnl
  260 _LT_DECL([], [build], [0])dnl
  261 _LT_DECL([], [build_os], [0])dnl
  262 dnl
  263 AC_REQUIRE([AC_PROG_CC])dnl
  264 AC_REQUIRE([LT_PATH_LD])dnl
  265 AC_REQUIRE([LT_PATH_NM])dnl
  266 dnl
  267 AC_REQUIRE([AC_PROG_LN_S])dnl
  268 test -z "$LN_S" && LN_S="ln -s"
  269 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  270 dnl
  271 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  272 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  273 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  274 dnl
  275 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  276 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  277 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  278 m4_require([_LT_CMD_RELOAD])dnl
  279 m4_require([_LT_DECL_FILECMD])dnl
  280 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  281 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  282 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  283 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  284 m4_require([_LT_WITH_SYSROOT])dnl
  285 m4_require([_LT_CMD_TRUNCATE])dnl
  286 
  287 _LT_CONFIG_LIBTOOL_INIT([
  288 # See if we are running on zsh, and set the options that allow our
  289 # commands through without removal of \ escapes INIT.
  290 if test -n "\${ZSH_VERSION+set}"; then
  291    setopt NO_GLOB_SUBST
  292 fi
  293 ])
  294 if test -n "${ZSH_VERSION+set}"; then
  295    setopt NO_GLOB_SUBST
  296 fi
  297 
  298 _LT_CHECK_OBJDIR
  299 
  300 m4_require([_LT_TAG_COMPILER])dnl
  301 
  302 case $host_os in
  303 aix3*)
  304   # AIX sometimes has problems with the GCC collect2 program.  For some
  305   # reason, if we set the COLLECT_NAMES environment variable, the problems
  306   # vanish in a puff of smoke.
  307   if test set != "${COLLECT_NAMES+set}"; then
  308     COLLECT_NAMES=
  309     export COLLECT_NAMES
  310   fi
  311   ;;
  312 esac
  313 
  314 # Global variables:
  315 ofile=libtool
  316 can_build_shared=yes
  317 
  318 # All known linkers require a '.a' archive for static linking (except MSVC and
  319 # ICC, which need '.lib').
  320 libext=a
  321 
  322 with_gnu_ld=$lt_cv_prog_gnu_ld
  323 
  324 old_CC=$CC
  325 old_CFLAGS=$CFLAGS
  326 
  327 # Set sane defaults for various variables
  328 test -z "$CC" && CC=cc
  329 test -z "$LTCC" && LTCC=$CC
  330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  331 test -z "$LD" && LD=ld
  332 test -z "$ac_objext" && ac_objext=o
  333 
  334 _LT_CC_BASENAME([$compiler])
  335 
  336 # Only perform the check for file, if the check method requires it
  337 test -z "$MAGIC_CMD" && MAGIC_CMD=file
  338 case $deplibs_check_method in
  339 file_magic*)
  340   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  341     _LT_PATH_MAGIC
  342   fi
  343   ;;
  344 esac
  345 
  346 # Use C for the default configuration in the libtool script
  347 LT_SUPPORTED_TAG([CC])
  348 _LT_LANG_C_CONFIG
  349 _LT_LANG_DEFAULT_CONFIG
  350 _LT_CONFIG_COMMANDS
  351 ])# _LT_SETUP
  352 
  353 
  354 # _LT_PREPARE_SED_QUOTE_VARS
  355 # --------------------------
  356 # Define a few sed substitution that help us do robust quoting.
  357 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  358 [# Backslashify metacharacters that are still active within
  359 # double-quoted strings.
  360 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  361 
  362 # Same as above, but do not quote variable references.
  363 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  364 
  365 # Sed substitution to delay expansion of an escaped shell variable in a
  366 # double_quote_subst'ed string.
  367 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  368 
  369 # Sed substitution to delay expansion of an escaped single quote.
  370 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  371 
  372 # Sed substitution to avoid accidental globbing in evaled expressions
  373 no_glob_subst='s/\*/\\\*/g'
  374 ])
  375 
  376 # _LT_PROG_LTMAIN
  377 # ---------------
  378 # Note that this code is called both from 'configure', and 'config.status'
  379 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
  380 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  381 # so we pass a copy along to make sure it has a sensible value anyway.
  382 m4_defun([_LT_PROG_LTMAIN],
  383 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  384 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  385 ltmain=$ac_aux_dir/ltmain.sh
  386 ])# _LT_PROG_LTMAIN
  387 
  388 
  389 
  390 # So that we can recreate a full libtool script including additional
  391 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  392 # in macros and then make a single call at the end using the 'libtool'
  393 # label.
  394 
  395 
  396 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  397 # ----------------------------------------
  398 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  399 m4_define([_LT_CONFIG_LIBTOOL_INIT],
  400 [m4_ifval([$1],
  401           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  402                      [$1
  403 ])])])
  404 
  405 # Initialize.
  406 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  407 
  408 
  409 # _LT_CONFIG_LIBTOOL([COMMANDS])
  410 # ------------------------------
  411 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  412 m4_define([_LT_CONFIG_LIBTOOL],
  413 [m4_ifval([$1],
  414           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  415                      [$1
  416 ])])])
  417 
  418 # Initialize.
  419 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  420 
  421 
  422 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  423 # -----------------------------------------------------
  424 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  425 [_LT_CONFIG_LIBTOOL([$1])
  426 _LT_CONFIG_LIBTOOL_INIT([$2])
  427 ])
  428 
  429 
  430 # _LT_FORMAT_COMMENT([COMMENT])
  431 # -----------------------------
  432 # Add leading comment marks to the start of each line, and a trailing
  433 # full-stop to the whole comment if one is not present already.
  434 m4_define([_LT_FORMAT_COMMENT],
  435 [m4_ifval([$1], [
  436 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  437               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  438 )])
  439 
  440 
  441 
  442 
  443 
  444 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  445 # -------------------------------------------------------------------
  446 # CONFIGNAME is the name given to the value in the libtool script.
  447 # VARNAME is the (base) name used in the configure script.
  448 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  449 # VARNAME.  Any other value will be used directly.
  450 m4_define([_LT_DECL],
  451 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  452     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  453 	[m4_ifval([$1], [$1], [$2])])
  454     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  455     m4_ifval([$4],
  456 	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  457     lt_dict_add_subkey([lt_decl_dict], [$2],
  458 	[tagged?], [m4_ifval([$5], [yes], [no])])])
  459 ])
  460 
  461 
  462 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  463 # --------------------------------------------------------
  464 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  465 
  466 
  467 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  468 # ------------------------------------------------
  469 m4_define([lt_decl_tag_varnames],
  470 [_lt_decl_filter([tagged?], [yes], $@)])
  471 
  472 
  473 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  474 # ---------------------------------------------------------
  475 m4_define([_lt_decl_filter],
  476 [m4_case([$#],
  477   [0], [m4_fatal([$0: too few arguments: $#])],
  478   [1], [m4_fatal([$0: too few arguments: $#: $1])],
  479   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  480   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  481   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  482 ])
  483 
  484 
  485 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  486 # --------------------------------------------------
  487 m4_define([lt_decl_quote_varnames],
  488 [_lt_decl_filter([value], [1], $@)])
  489 
  490 
  491 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  492 # ---------------------------------------------------
  493 m4_define([lt_decl_dquote_varnames],
  494 [_lt_decl_filter([value], [2], $@)])
  495 
  496 
  497 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  498 # ---------------------------------------------------
  499 m4_define([lt_decl_varnames_tagged],
  500 [m4_assert([$# <= 2])dnl
  501 _$0(m4_quote(m4_default([$1], [[, ]])),
  502     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  503     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  504 m4_define([_lt_decl_varnames_tagged],
  505 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  506 
  507 
  508 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  509 # ------------------------------------------------
  510 m4_define([lt_decl_all_varnames],
  511 [_$0(m4_quote(m4_default([$1], [[, ]])),
  512      m4_if([$2], [],
  513 	   m4_quote(lt_decl_varnames),
  514 	m4_quote(m4_shift($@))))[]dnl
  515 ])
  516 m4_define([_lt_decl_all_varnames],
  517 [lt_join($@, lt_decl_varnames_tagged([$1],
  518 			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  519 ])
  520 
  521 
  522 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  523 # ------------------------------------
  524 # Quote a variable value, and forward it to 'config.status' so that its
  525 # declaration there will have the same value as in 'configure'.  VARNAME
  526 # must have a single quote delimited value for this to work.
  527 m4_define([_LT_CONFIG_STATUS_DECLARE],
  528 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  529 
  530 
  531 # _LT_CONFIG_STATUS_DECLARATIONS
  532 # ------------------------------
  533 # We delimit libtool config variables with single quotes, so when
  534 # we write them to config.status, we have to be sure to quote all
  535 # embedded single quotes properly.  In configure, this macro expands
  536 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  537 #
  538 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  539 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  540 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  541     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  542 
  543 
  544 # _LT_LIBTOOL_TAGS
  545 # ----------------
  546 # Output comment and list of tags supported by the script
  547 m4_defun([_LT_LIBTOOL_TAGS],
  548 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  549 available_tags='_LT_TAGS'dnl
  550 ])
  551 
  552 
  553 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  554 # -----------------------------------
  555 # Extract the dictionary values for VARNAME (optionally with TAG) and
  556 # expand to a commented shell variable setting:
  557 #
  558 #    # Some comment about what VAR is for.
  559 #    visible_name=$lt_internal_name
  560 m4_define([_LT_LIBTOOL_DECLARE],
  561 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  562 					   [description])))[]dnl
  563 m4_pushdef([_libtool_name],
  564     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  565 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  566     [0], [_libtool_name=[$]$1],
  567     [1], [_libtool_name=$lt_[]$1],
  568     [2], [_libtool_name=$lt_[]$1],
  569     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  570 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  571 ])
  572 
  573 
  574 # _LT_LIBTOOL_CONFIG_VARS
  575 # -----------------------
  576 # Produce commented declarations of non-tagged libtool config variables
  577 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  578 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
  579 # section) are produced by _LT_LIBTOOL_TAG_VARS.
  580 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  581 [m4_foreach([_lt_var],
  582     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  583     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  584 
  585 
  586 # _LT_LIBTOOL_TAG_VARS(TAG)
  587 # -------------------------
  588 m4_define([_LT_LIBTOOL_TAG_VARS],
  589 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  590     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  591 
  592 
  593 # _LT_TAGVAR(VARNAME, [TAGNAME])
  594 # ------------------------------
  595 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  596 
  597 
  598 # _LT_CONFIG_COMMANDS
  599 # -------------------
  600 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
  601 # variables for single and double quote escaping we saved from calls
  602 # to _LT_DECL, we can put quote escaped variables declarations
  603 # into 'config.status', and then the shell code to quote escape them in
  604 # for loops in 'config.status'.  Finally, any additional code accumulated
  605 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  606 m4_defun([_LT_CONFIG_COMMANDS],
  607 [AC_PROVIDE_IFELSE([LT_OUTPUT],
  608 	dnl If the libtool generation code has been placed in $CONFIG_LT,
  609 	dnl instead of duplicating it all over again into config.status,
  610 	dnl then we will have config.status run $CONFIG_LT later, so it
  611 	dnl needs to know what name is stored there:
  612         [AC_CONFIG_COMMANDS([libtool],
  613             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  614     dnl If the libtool generation code is destined for config.status,
  615     dnl expand the accumulated commands and init code now:
  616     [AC_CONFIG_COMMANDS([libtool],
  617         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  618 ])#_LT_CONFIG_COMMANDS
  619 
  620 
  621 # Initialize.
  622 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  623 [
  624 
  625 # The HP-UX ksh and POSIX shell print the target directory to stdout
  626 # if CDPATH is set.
  627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  628 
  629 sed_quote_subst='$sed_quote_subst'
  630 double_quote_subst='$double_quote_subst'
  631 delay_variable_subst='$delay_variable_subst'
  632 _LT_CONFIG_STATUS_DECLARATIONS
  633 LTCC='$LTCC'
  634 LTCFLAGS='$LTCFLAGS'
  635 compiler='$compiler_DEFAULT'
  636 
  637 # A function that is used when there is no print builtin or printf.
  638 func_fallback_echo ()
  639 {
  640   eval 'cat <<_LTECHO_EOF
  641 \$[]1
  642 _LTECHO_EOF'
  643 }
  644 
  645 # Quote evaled strings.
  646 for var in lt_decl_all_varnames([[ \
  647 ]], lt_decl_quote_varnames); do
  648     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  649     *[[\\\\\\\`\\"\\\$]]*)
  650       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  651       ;;
  652     *)
  653       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  654       ;;
  655     esac
  656 done
  657 
  658 # Double-quote double-evaled strings.
  659 for var in lt_decl_all_varnames([[ \
  660 ]], lt_decl_dquote_varnames); do
  661     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  662     *[[\\\\\\\`\\"\\\$]]*)
  663       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  664       ;;
  665     *)
  666       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  667       ;;
  668     esac
  669 done
  670 
  671 _LT_OUTPUT_LIBTOOL_INIT
  672 ])
  673 
  674 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  675 # ------------------------------------
  676 # Generate a child script FILE with all initialization necessary to
  677 # reuse the environment learned by the parent script, and make the
  678 # file executable.  If COMMENT is supplied, it is inserted after the
  679 # '#!' sequence but before initialization text begins.  After this
  680 # macro, additional text can be appended to FILE to form the body of
  681 # the child script.  The macro ends with non-zero status if the
  682 # file could not be fully written (such as if the disk is full).
  683 m4_ifdef([AS_INIT_GENERATED],
  684 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  685 [m4_defun([_LT_GENERATED_FILE_INIT],
  686 [m4_require([AS_PREPARE])]dnl
  687 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  688 [lt_write_fail=0
  689 cat >$1 <<_ASEOF || lt_write_fail=1
  690 #! $SHELL
  691 # Generated by $as_me.
  692 $2
  693 SHELL=\${CONFIG_SHELL-$SHELL}
  694 export SHELL
  695 _ASEOF
  696 cat >>$1 <<\_ASEOF || lt_write_fail=1
  697 AS_SHELL_SANITIZE
  698 _AS_PREPARE
  699 exec AS_MESSAGE_FD>&1
  700 _ASEOF
  701 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  702 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  703 
  704 # LT_OUTPUT
  705 # ---------
  706 # This macro allows early generation of the libtool script (before
  707 # AC_OUTPUT is called), incase it is used in configure for compilation
  708 # tests.
  709 AC_DEFUN([LT_OUTPUT],
  710 [: ${CONFIG_LT=./config.lt}
  711 AC_MSG_NOTICE([creating $CONFIG_LT])
  712 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  713 [# Run this file to recreate a libtool stub with the current configuration.])
  714 
  715 cat >>"$CONFIG_LT" <<\_LTEOF
  716 lt_cl_silent=false
  717 exec AS_MESSAGE_LOG_FD>>config.log
  718 {
  719   echo
  720   AS_BOX([Running $as_me.])
  721 } >&AS_MESSAGE_LOG_FD
  722 
  723 lt_cl_help="\
  724 '$as_me' creates a local libtool stub from the current configuration,
  725 for use in further configure time tests before the real libtool is
  726 generated.
  727 
  728 Usage: $[0] [[OPTIONS]]
  729 
  730   -h, --help      print this help, then exit
  731   -V, --version   print version number, then exit
  732   -q, --quiet     do not print progress messages
  733   -d, --debug     don't remove temporary files
  734 
  735 Report bugs to <bug-libtool@gnu.org>."
  736 
  737 lt_cl_version="\
  738 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  739 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  740 configured by $[0], generated by m4_PACKAGE_STRING.
  741 
  742 Copyright (C) 2011 Free Software Foundation, Inc.
  743 This config.lt script is free software; the Free Software Foundation
  744 gives unlimited permision to copy, distribute and modify it."
  745 
  746 while test 0 != $[#]
  747 do
  748   case $[1] in
  749     --version | --v* | -V )
  750       echo "$lt_cl_version"; exit 0 ;;
  751     --help | --h* | -h )
  752       echo "$lt_cl_help"; exit 0 ;;
  753     --debug | --d* | -d )
  754       debug=: ;;
  755     --quiet | --q* | --silent | --s* | -q )
  756       lt_cl_silent=: ;;
  757 
  758     -*) AC_MSG_ERROR([unrecognized option: $[1]
  759 Try '$[0] --help' for more information.]) ;;
  760 
  761     *) AC_MSG_ERROR([unrecognized argument: $[1]
  762 Try '$[0] --help' for more information.]) ;;
  763   esac
  764   shift
  765 done
  766 
  767 if $lt_cl_silent; then
  768   exec AS_MESSAGE_FD>/dev/null
  769 fi
  770 _LTEOF
  771 
  772 cat >>"$CONFIG_LT" <<_LTEOF
  773 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  774 _LTEOF
  775 
  776 cat >>"$CONFIG_LT" <<\_LTEOF
  777 AC_MSG_NOTICE([creating $ofile])
  778 _LT_OUTPUT_LIBTOOL_COMMANDS
  779 AS_EXIT(0)
  780 _LTEOF
  781 chmod +x "$CONFIG_LT"
  782 
  783 # configure is writing to config.log, but config.lt does its own redirection,
  784 # appending to config.log, which fails on DOS, as config.log is still kept
  785 # open by configure.  Here we exec the FD to /dev/null, effectively closing
  786 # config.log, so it can be properly (re)opened and appended to by config.lt.
  787 lt_cl_success=:
  788 test yes = "$silent" &&
  789   lt_config_lt_args="$lt_config_lt_args --quiet"
  790 exec AS_MESSAGE_LOG_FD>/dev/null
  791 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  792 exec AS_MESSAGE_LOG_FD>>config.log
  793 $lt_cl_success || AS_EXIT(1)
  794 ])# LT_OUTPUT
  795 
  796 
  797 # _LT_CONFIG(TAG)
  798 # ---------------
  799 # If TAG is the built-in tag, create an initial libtool script with a
  800 # default configuration from the untagged config vars.  Otherwise add code
  801 # to config.status for appending the configuration named by TAG from the
  802 # matching tagged config vars.
  803 m4_defun([_LT_CONFIG],
  804 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  805 _LT_CONFIG_SAVE_COMMANDS([
  806   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  807   m4_if(_LT_TAG, [C], [
  808     # See if we are running on zsh, and set the options that allow our
  809     # commands through without removal of \ escapes.
  810     if test -n "${ZSH_VERSION+set}"; then
  811       setopt NO_GLOB_SUBST
  812     fi
  813 
  814     cfgfile=${ofile}T
  815     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  816     $RM "$cfgfile"
  817 
  818     cat <<_LT_EOF >> "$cfgfile"
  819 #! $SHELL
  820 # Generated automatically by $as_me ($PACKAGE) $VERSION
  821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  823 
  824 # Provide generalized library-building support services.
  825 # Written by Gordon Matzigkeit, 1996
  826 
  827 _LT_COPYING
  828 _LT_LIBTOOL_TAGS
  829 
  830 # Configured defaults for sys_lib_dlsearch_path munging.
  831 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  832 
  833 # ### BEGIN LIBTOOL CONFIG
  834 _LT_LIBTOOL_CONFIG_VARS
  835 _LT_LIBTOOL_TAG_VARS
  836 # ### END LIBTOOL CONFIG
  837 
  838 _LT_EOF
  839 
  840     cat <<'_LT_EOF' >> "$cfgfile"
  841 
  842 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  843 
  844 _LT_PREPARE_MUNGE_PATH_LIST
  845 _LT_PREPARE_CC_BASENAME
  846 
  847 # ### END FUNCTIONS SHARED WITH CONFIGURE
  848 
  849 _LT_EOF
  850 
  851   case $host_os in
  852   aix3*)
  853     cat <<\_LT_EOF >> "$cfgfile"
  854 # AIX sometimes has problems with the GCC collect2 program.  For some
  855 # reason, if we set the COLLECT_NAMES environment variable, the problems
  856 # vanish in a puff of smoke.
  857 if test set != "${COLLECT_NAMES+set}"; then
  858   COLLECT_NAMES=
  859   export COLLECT_NAMES
  860 fi
  861 _LT_EOF
  862     ;;
  863   esac
  864 
  865   _LT_PROG_LTMAIN
  866 
  867   # We use sed instead of cat because bash on DJGPP gets confused if
  868   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  869   # text mode, it properly converts lines to CR/LF.  This bash problem
  870   # is reportedly fixed, but why not run on old versions too?
  871   $SED '$q' "$ltmain" >> "$cfgfile" \
  872      || (rm -f "$cfgfile"; exit 1)
  873 
  874    mv -f "$cfgfile" "$ofile" ||
  875     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  876   chmod +x "$ofile"
  877 ],
  878 [cat <<_LT_EOF >> "$ofile"
  879 
  880 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  881 dnl in a comment (ie after a #).
  882 # ### BEGIN LIBTOOL TAG CONFIG: $1
  883 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  884 # ### END LIBTOOL TAG CONFIG: $1
  885 _LT_EOF
  886 ])dnl /m4_if
  887 ],
  888 [m4_if([$1], [], [
  889     PACKAGE='$PACKAGE'
  890     VERSION='$VERSION'
  891     RM='$RM'
  892     ofile='$ofile'], [])
  893 ])dnl /_LT_CONFIG_SAVE_COMMANDS
  894 ])# _LT_CONFIG
  895 
  896 
  897 # LT_SUPPORTED_TAG(TAG)
  898 # ---------------------
  899 # Trace this macro to discover what tags are supported by the libtool
  900 # --tag option, using:
  901 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
  902 AC_DEFUN([LT_SUPPORTED_TAG], [])
  903 
  904 
  905 # C support is built-in for now
  906 m4_define([_LT_LANG_C_enabled], [])
  907 m4_define([_LT_TAGS], [])
  908 
  909 
  910 # LT_LANG(LANG)
  911 # -------------
  912 # Enable libtool support for the given language if not already enabled.
  913 AC_DEFUN([LT_LANG],
  914 [AC_BEFORE([$0], [LT_OUTPUT])dnl
  915 m4_case([$1],
  916   [C],			[_LT_LANG(C)],
  917   [C++],		[_LT_LANG(CXX)],
  918   [Go],			[_LT_LANG(GO)],
  919   [Java],		[_LT_LANG(GCJ)],
  920   [Fortran 77],		[_LT_LANG(F77)],
  921   [Fortran],		[_LT_LANG(FC)],
  922   [Windows Resource],	[_LT_LANG(RC)],
  923   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  924     [_LT_LANG($1)],
  925     [m4_fatal([$0: unsupported language: "$1"])])])dnl
  926 ])# LT_LANG
  927 
  928 
  929 # _LT_LANG(LANGNAME)
  930 # ------------------
  931 m4_defun([_LT_LANG],
  932 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  933   [LT_SUPPORTED_TAG([$1])dnl
  934   m4_append([_LT_TAGS], [$1 ])dnl
  935   m4_define([_LT_LANG_]$1[_enabled], [])dnl
  936   _LT_LANG_$1_CONFIG($1)])dnl
  937 ])# _LT_LANG
  938 
  939 
  940 m4_ifndef([AC_PROG_GO], [
  941 # NOTE: This macro has been submitted for inclusion into   #
  942 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
  943 #  a released version of Autoconf we should remove this    #
  944 #  macro and use it instead.                               #
  945 m4_defun([AC_PROG_GO],
  946 [AC_LANG_PUSH(Go)dnl
  947 AC_ARG_VAR([GOC],     [Go compiler command])dnl
  948 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  949 _AC_ARG_VAR_LDFLAGS()dnl
  950 AC_CHECK_TOOL(GOC, gccgo)
  951 if test -z "$GOC"; then
  952   if test -n "$ac_tool_prefix"; then
  953     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  954   fi
  955 fi
  956 if test -z "$GOC"; then
  957   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  958 fi
  959 ])#m4_defun
  960 ])#m4_ifndef
  961 
  962 
  963 # _LT_LANG_DEFAULT_CONFIG
  964 # -----------------------
  965 m4_defun([_LT_LANG_DEFAULT_CONFIG],
  966 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  967   [LT_LANG(CXX)],
  968   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  969 
  970 AC_PROVIDE_IFELSE([AC_PROG_F77],
  971   [LT_LANG(F77)],
  972   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  973 
  974 AC_PROVIDE_IFELSE([AC_PROG_FC],
  975   [LT_LANG(FC)],
  976   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  977 
  978 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  979 dnl pulling things in needlessly.
  980 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  981   [LT_LANG(GCJ)],
  982   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  983     [LT_LANG(GCJ)],
  984     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  985       [LT_LANG(GCJ)],
  986       [m4_ifdef([AC_PROG_GCJ],
  987 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  988        m4_ifdef([A][M_PROG_GCJ],
  989 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  990        m4_ifdef([LT_PROG_GCJ],
  991 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  992 
  993 AC_PROVIDE_IFELSE([AC_PROG_GO],
  994   [LT_LANG(GO)],
  995   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  996 
  997 AC_PROVIDE_IFELSE([LT_PROG_RC],
  998   [LT_LANG(RC)],
  999   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 1000 ])# _LT_LANG_DEFAULT_CONFIG
 1001 
 1002 # Obsolete macros:
 1003 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 1004 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 1005 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 1006 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 1007 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
 1008 dnl aclocal-1.4 backwards compatibility:
 1009 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 1010 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 1011 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 1012 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 1013 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
 1014 
 1015 
 1016 # _LT_TAG_COMPILER
 1017 # ----------------
 1018 m4_defun([_LT_TAG_COMPILER],
 1019 [AC_REQUIRE([AC_PROG_CC])dnl
 1020 
 1021 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 1022 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 1023 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 1024 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 1025 
 1026 # If no C compiler was specified, use CC.
 1027 LTCC=${LTCC-"$CC"}
 1028 
 1029 # If no C compiler flags were specified, use CFLAGS.
 1030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 1031 
 1032 # Allow CC to be a program name with arguments.
 1033 compiler=$CC
 1034 ])# _LT_TAG_COMPILER
 1035 
 1036 
 1037 # _LT_COMPILER_BOILERPLATE
 1038 # ------------------------
 1039 # Check for compiler boilerplate output or warnings with
 1040 # the simple compiler test code.
 1041 m4_defun([_LT_COMPILER_BOILERPLATE],
 1042 [m4_require([_LT_DECL_SED])dnl
 1043 ac_outfile=conftest.$ac_objext
 1044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 1045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 1046 _lt_compiler_boilerplate=`cat conftest.err`
 1047 $RM conftest*
 1048 ])# _LT_COMPILER_BOILERPLATE
 1049 
 1050 
 1051 # _LT_LINKER_BOILERPLATE
 1052 # ----------------------
 1053 # Check for linker boilerplate output or warnings with
 1054 # the simple link test code.
 1055 m4_defun([_LT_LINKER_BOILERPLATE],
 1056 [m4_require([_LT_DECL_SED])dnl
 1057 ac_outfile=conftest.$ac_objext
 1058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
 1059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 1060 _lt_linker_boilerplate=`cat conftest.err`
 1061 $RM -r conftest*
 1062 ])# _LT_LINKER_BOILERPLATE
 1063 
 1064 # _LT_REQUIRED_DARWIN_CHECKS
 1065 # -------------------------
 1066 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 1067   case $host_os in
 1068     rhapsody* | darwin*)
 1069     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 1070     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 1071     AC_CHECK_TOOL([LIPO], [lipo], [:])
 1072     AC_CHECK_TOOL([OTOOL], [otool], [:])
 1073     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 1074     _LT_DECL([], [DSYMUTIL], [1],
 1075       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 1076     _LT_DECL([], [NMEDIT], [1],
 1077       [Tool to change global to local symbols on Mac OS X])
 1078     _LT_DECL([], [LIPO], [1],
 1079       [Tool to manipulate fat objects and archives on Mac OS X])
 1080     _LT_DECL([], [OTOOL], [1],
 1081       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 1082     _LT_DECL([], [OTOOL64], [1],
 1083       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 1084 
 1085     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 1086       [lt_cv_apple_cc_single_mod=no
 1087       if test -z "$LT_MULTI_MODULE"; then
 1088 	# By default we will add the -single_module flag. You can override
 1089 	# by either setting the environment variable LT_MULTI_MODULE
 1090 	# non-empty at configure time, or by adding -multi_module to the
 1091 	# link flags.
 1092 	rm -rf libconftest.dylib*
 1093 	echo "int foo(void){return 1;}" > conftest.c
 1094 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1095 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 1096 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1097 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 1098         _lt_result=$?
 1099 	# If there is a non-empty error log, and "single_module"
 1100 	# appears in it, assume the flag caused a linker warning
 1101         if test -s conftest.err && $GREP single_module conftest.err; then
 1102 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1103 	# Otherwise, if the output was created with a 0 exit code from
 1104 	# the compiler, it worked.
 1105 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 1106 	  lt_cv_apple_cc_single_mod=yes
 1107 	else
 1108 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1109 	fi
 1110 	rm -rf libconftest.dylib*
 1111 	rm -f conftest.*
 1112       fi])
 1113 
 1114     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 1115       [lt_cv_ld_exported_symbols_list],
 1116       [lt_cv_ld_exported_symbols_list=no
 1117       save_LDFLAGS=$LDFLAGS
 1118       echo "_main" > conftest.sym
 1119       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 1120       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 1121 	[lt_cv_ld_exported_symbols_list=yes],
 1122 	[lt_cv_ld_exported_symbols_list=no])
 1123 	LDFLAGS=$save_LDFLAGS
 1124     ])
 1125 
 1126     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 1127       [lt_cv_ld_force_load=no
 1128       cat > conftest.c << _LT_EOF
 1129 int forced_loaded() { return 2;}
 1130 _LT_EOF
 1131       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 1132       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 1133       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 1134       $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 1135       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 1136       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 1137       cat > conftest.c << _LT_EOF
 1138 int main() { return 0;}
 1139 _LT_EOF
 1140       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 1141       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 1142       _lt_result=$?
 1143       if test -s conftest.err && $GREP force_load conftest.err; then
 1144 	cat conftest.err >&AS_MESSAGE_LOG_FD
 1145       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 1146 	lt_cv_ld_force_load=yes
 1147       else
 1148 	cat conftest.err >&AS_MESSAGE_LOG_FD
 1149       fi
 1150         rm -f conftest.err libconftest.a conftest conftest.c
 1151         rm -rf conftest.dSYM
 1152     ])
 1153     case $host_os in
 1154     rhapsody* | darwin1.[[012]])
 1155       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 1156     darwin1.*)
 1157       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 1158     darwin*)
 1159       case $MACOSX_DEPLOYMENT_TARGET,$host in
 1160         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
 1161           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 1162         *)
 1163           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 1164       esac
 1165     ;;
 1166   esac
 1167     if test yes = "$lt_cv_apple_cc_single_mod"; then
 1168       _lt_dar_single_mod='$single_module'
 1169     fi
 1170     if test yes = "$lt_cv_ld_exported_symbols_list"; then
 1171       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 1172     else
 1173       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 1174     fi
 1175     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 1176       _lt_dsymutil='~$DSYMUTIL $lib || :'
 1177     else
 1178       _lt_dsymutil=
 1179     fi
 1180     ;;
 1181   esac
 1182 ])
 1183 
 1184 
 1185 # _LT_DARWIN_LINKER_FEATURES([TAG])
 1186 # ---------------------------------
 1187 # Checks for linker and compiler features on darwin
 1188 m4_defun([_LT_DARWIN_LINKER_FEATURES],
 1189 [
 1190   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 1191   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 1192   _LT_TAGVAR(hardcode_direct, $1)=no
 1193   _LT_TAGVAR(hardcode_automatic, $1)=yes
 1194   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 1195   if test yes = "$lt_cv_ld_force_load"; then
 1196     _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\"`'
 1197     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 1198                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 1199   else
 1200     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 1201   fi
 1202   _LT_TAGVAR(link_all_deplibs, $1)=yes
 1203   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
 1204   case $cc_basename in
 1205      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 1206      *) _lt_dar_can_shared=$GCC ;;
 1207   esac
 1208   if test yes = "$_lt_dar_can_shared"; then
 1209     output_verbose_link_cmd=func_echo_all
 1210     _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"
 1211     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 1212     _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"
 1213     _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"
 1214     m4_if([$1], [CXX],
 1215 [   if test yes != "$lt_cv_apple_cc_single_mod"; then
 1216       _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"
 1217       _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"
 1218     fi
 1219 ],[])
 1220   else
 1221   _LT_TAGVAR(ld_shlibs, $1)=no
 1222   fi
 1223 ])
 1224 
 1225 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 1226 # ----------------------------------
 1227 # Links a minimal program and checks the executable
 1228 # for the system default hardcoded library path. In most cases,
 1229 # this is /usr/lib:/lib, but when the MPI compilers are used
 1230 # the location of the communication and MPI libs are included too.
 1231 # If we don't find anything, use the default library path according
 1232 # to the aix ld manual.
 1233 # Store the results from the different compilers for each TAGNAME.
 1234 # Allow to override them for all tags through lt_cv_aix_libpath.
 1235 m4_defun([_LT_SYS_MODULE_PATH_AIX],
 1236 [m4_require([_LT_DECL_SED])dnl
 1237 if test set = "${lt_cv_aix_libpath+set}"; then
 1238   aix_libpath=$lt_cv_aix_libpath
 1239 else
 1240   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 1241   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 1242   lt_aix_libpath_sed='[
 1243       /Import File Strings/,/^$/ {
 1244 	  /^0/ {
 1245 	      s/^0  *\([^ ]*\) *$/\1/
 1246 	      p
 1247 	  }
 1248       }]'
 1249   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1250   # Check for a 64-bit object if we didn't find anything.
 1251   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1252     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1253   fi],[])
 1254   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1255     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
 1256   fi
 1257   ])
 1258   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 1259 fi
 1260 ])# _LT_SYS_MODULE_PATH_AIX
 1261 
 1262 
 1263 # _LT_SHELL_INIT(ARG)
 1264 # -------------------
 1265 m4_define([_LT_SHELL_INIT],
 1266 [m4_divert_text([M4SH-INIT], [$1
 1267 ])])# _LT_SHELL_INIT
 1268 
 1269 
 1270 
 1271 # _LT_PROG_ECHO_BACKSLASH
 1272 # -----------------------
 1273 # Find how we can fake an echo command that does not interpret backslash.
 1274 # In particular, with Autoconf 2.60 or later we add some code to the start
 1275 # of the generated configure script that will find a shell with a builtin
 1276 # printf (that we can use as an echo command).
 1277 m4_defun([_LT_PROG_ECHO_BACKSLASH],
 1278 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1279 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1281 
 1282 AC_MSG_CHECKING([how to print strings])
 1283 # Test print first, because it will be a builtin if present.
 1284 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 1285    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 1286   ECHO='print -r --'
 1287 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 1288   ECHO='printf %s\n'
 1289 else
 1290   # Use this function as a fallback that always works.
 1291   func_fallback_echo ()
 1292   {
 1293     eval 'cat <<_LTECHO_EOF
 1294 $[]1
 1295 _LTECHO_EOF'
 1296   }
 1297   ECHO='func_fallback_echo'
 1298 fi
 1299 
 1300 # func_echo_all arg...
 1301 # Invoke $ECHO with all args, space-separated.
 1302 func_echo_all ()
 1303 {
 1304     $ECHO "$*"
 1305 }
 1306 
 1307 case $ECHO in
 1308   printf*) AC_MSG_RESULT([printf]) ;;
 1309   print*) AC_MSG_RESULT([print -r]) ;;
 1310   *) AC_MSG_RESULT([cat]) ;;
 1311 esac
 1312 
 1313 m4_ifdef([_AS_DETECT_SUGGESTED],
 1314 [_AS_DETECT_SUGGESTED([
 1315   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 1316     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1317     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1318     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1319     PATH=/empty FPATH=/empty; export PATH FPATH
 1320     test "X`printf %s $ECHO`" = "X$ECHO" \
 1321       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 1322 
 1323 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 1324 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 1325 ])# _LT_PROG_ECHO_BACKSLASH
 1326 
 1327 
 1328 # _LT_WITH_SYSROOT
 1329 # ----------------
 1330 AC_DEFUN([_LT_WITH_SYSROOT],
 1331 [m4_require([_LT_DECL_SED])dnl
 1332 AC_MSG_CHECKING([for sysroot])
 1333 AC_ARG_WITH([sysroot],
 1334 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
 1335   [Search for dependent libraries within DIR (or the compiler's sysroot
 1336    if not specified).])],
 1337 [], [with_sysroot=no])
 1338 
 1339 dnl lt_sysroot will always be passed unquoted.  We quote it here
 1340 dnl in case the user passed a directory name.
 1341 lt_sysroot=
 1342 case $with_sysroot in #(
 1343  yes)
 1344    if test yes = "$GCC"; then
 1345      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 1346    fi
 1347    ;; #(
 1348  /*)
 1349    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
 1350    ;; #(
 1351  no|'')
 1352    ;; #(
 1353  *)
 1354    AC_MSG_RESULT([$with_sysroot])
 1355    AC_MSG_ERROR([The sysroot must be an absolute path.])
 1356    ;;
 1357 esac
 1358 
 1359  AC_MSG_RESULT([${lt_sysroot:-no}])
 1360 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 1361 [dependent libraries, and where our libraries should be installed.])])
 1362 
 1363 # _LT_ENABLE_LOCK
 1364 # ---------------
 1365 m4_defun([_LT_ENABLE_LOCK],
 1366 [AC_ARG_ENABLE([libtool-lock],
 1367   [AS_HELP_STRING([--disable-libtool-lock],
 1368     [avoid locking (might break parallel builds)])])
 1369 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 1370 
 1371 # Some flags need to be propagated to the compiler or linker for good
 1372 # libtool support.
 1373 case $host in
 1374 ia64-*-hpux*)
 1375   # Find out what ABI is being produced by ac_compile, and set mode
 1376   # options accordingly.
 1377   echo 'int i;' > conftest.$ac_ext
 1378   if AC_TRY_EVAL(ac_compile); then
 1379     case `$FILECMD conftest.$ac_objext` in
 1380       *ELF-32*)
 1381 	HPUX_IA64_MODE=32
 1382 	;;
 1383       *ELF-64*)
 1384 	HPUX_IA64_MODE=64
 1385 	;;
 1386     esac
 1387   fi
 1388   rm -rf conftest*
 1389   ;;
 1390 *-*-irix6*)
 1391   # Find out what ABI is being produced by ac_compile, and set linker
 1392   # options accordingly.
 1393   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 1394   if AC_TRY_EVAL(ac_compile); then
 1395     if test yes = "$lt_cv_prog_gnu_ld"; then
 1396       case `$FILECMD conftest.$ac_objext` in
 1397 	*32-bit*)
 1398 	  LD="${LD-ld} -melf32bsmip"
 1399 	  ;;
 1400 	*N32*)
 1401 	  LD="${LD-ld} -melf32bmipn32"
 1402 	  ;;
 1403 	*64-bit*)
 1404 	  LD="${LD-ld} -melf64bmip"
 1405 	;;
 1406       esac
 1407     else
 1408       case `$FILECMD conftest.$ac_objext` in
 1409 	*32-bit*)
 1410 	  LD="${LD-ld} -32"
 1411 	  ;;
 1412 	*N32*)
 1413 	  LD="${LD-ld} -n32"
 1414 	  ;;
 1415 	*64-bit*)
 1416 	  LD="${LD-ld} -64"
 1417 	  ;;
 1418       esac
 1419     fi
 1420   fi
 1421   rm -rf conftest*
 1422   ;;
 1423 
 1424 mips64*-*linux*)
 1425   # Find out what ABI is being produced by ac_compile, and set linker
 1426   # options accordingly.
 1427   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 1428   if AC_TRY_EVAL(ac_compile); then
 1429     emul=elf
 1430     case `$FILECMD conftest.$ac_objext` in
 1431       *32-bit*)
 1432 	emul="${emul}32"
 1433 	;;
 1434       *64-bit*)
 1435 	emul="${emul}64"
 1436 	;;
 1437     esac
 1438     case `$FILECMD conftest.$ac_objext` in
 1439       *MSB*)
 1440 	emul="${emul}btsmip"
 1441 	;;
 1442       *LSB*)
 1443 	emul="${emul}ltsmip"
 1444 	;;
 1445     esac
 1446     case `$FILECMD conftest.$ac_objext` in
 1447       *N32*)
 1448 	emul="${emul}n32"
 1449 	;;
 1450     esac
 1451     LD="${LD-ld} -m $emul"
 1452   fi
 1453   rm -rf conftest*
 1454   ;;
 1455 
 1456 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 1457 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 1458   # Find out what ABI is being produced by ac_compile, and set linker
 1459   # options accordingly.  Note that the listed cases only cover the
 1460   # situations where additional linker options are needed (such as when
 1461   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 1462   # vice versa); the common cases where no linker options are needed do
 1463   # not appear in the list.
 1464   echo 'int i;' > conftest.$ac_ext
 1465   if AC_TRY_EVAL(ac_compile); then
 1466     case `$FILECMD conftest.o` in
 1467       *32-bit*)
 1468 	case $host in
 1469 	  x86_64-*kfreebsd*-gnu)
 1470 	    LD="${LD-ld} -m elf_i386_fbsd"
 1471 	    ;;
 1472 	  x86_64-*linux*)
 1473 	    case `$FILECMD conftest.o` in
 1474 	      *x86-64*)
 1475 		LD="${LD-ld} -m elf32_x86_64"
 1476 		;;
 1477 	      *)
 1478 		LD="${LD-ld} -m elf_i386"
 1479 		;;
 1480 	    esac
 1481 	    ;;
 1482 	  powerpc64le-*linux*)
 1483 	    LD="${LD-ld} -m elf32lppclinux"
 1484 	    ;;
 1485 	  powerpc64-*linux*)
 1486 	    LD="${LD-ld} -m elf32ppclinux"
 1487 	    ;;
 1488 	  s390x-*linux*)
 1489 	    LD="${LD-ld} -m elf_s390"
 1490 	    ;;
 1491 	  sparc64-*linux*)
 1492 	    LD="${LD-ld} -m elf32_sparc"
 1493 	    ;;
 1494 	esac
 1495 	;;
 1496       *64-bit*)
 1497 	case $host in
 1498 	  x86_64-*kfreebsd*-gnu)
 1499 	    LD="${LD-ld} -m elf_x86_64_fbsd"
 1500 	    ;;
 1501 	  x86_64-*linux*)
 1502 	    LD="${LD-ld} -m elf_x86_64"
 1503 	    ;;
 1504 	  powerpcle-*linux*)
 1505 	    LD="${LD-ld} -m elf64lppc"
 1506 	    ;;
 1507 	  powerpc-*linux*)
 1508 	    LD="${LD-ld} -m elf64ppc"
 1509 	    ;;
 1510 	  s390*-*linux*|s390*-*tpf*)
 1511 	    LD="${LD-ld} -m elf64_s390"
 1512 	    ;;
 1513 	  sparc*-*linux*)
 1514 	    LD="${LD-ld} -m elf64_sparc"
 1515 	    ;;
 1516 	esac
 1517 	;;
 1518     esac
 1519   fi
 1520   rm -rf conftest*
 1521   ;;
 1522 
 1523 *-*-sco3.2v5*)
 1524   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 1525   SAVE_CFLAGS=$CFLAGS
 1526   CFLAGS="$CFLAGS -belf"
 1527   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 1528     [AC_LANG_PUSH(C)
 1529      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 1530      AC_LANG_POP])
 1531   if test yes != "$lt_cv_cc_needs_belf"; then
 1532     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 1533     CFLAGS=$SAVE_CFLAGS
 1534   fi
 1535   ;;
 1536 *-*solaris*)
 1537   # Find out what ABI is being produced by ac_compile, and set linker
 1538   # options accordingly.
 1539   echo 'int i;' > conftest.$ac_ext
 1540   if AC_TRY_EVAL(ac_compile); then
 1541     case `$FILECMD conftest.o` in
 1542     *64-bit*)
 1543       case $lt_cv_prog_gnu_ld in
 1544       yes*)
 1545         case $host in
 1546         i?86-*-solaris*|x86_64-*-solaris*)
 1547           LD="${LD-ld} -m elf_x86_64"
 1548           ;;
 1549         sparc*-*-solaris*)
 1550           LD="${LD-ld} -m elf64_sparc"
 1551           ;;
 1552         esac
 1553         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 1554         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 1555           LD=${LD-ld}_sol2
 1556         fi
 1557         ;;
 1558       *)
 1559 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 1560 	  LD="${LD-ld} -64"
 1561 	fi
 1562 	;;
 1563       esac
 1564       ;;
 1565     esac
 1566   fi
 1567   rm -rf conftest*
 1568   ;;
 1569 esac
 1570 
 1571 need_locks=$enable_libtool_lock
 1572 ])# _LT_ENABLE_LOCK
 1573 
 1574 
 1575 # _LT_PROG_AR
 1576 # -----------
 1577 m4_defun([_LT_PROG_AR],
 1578 [AC_CHECK_TOOLS(AR, [ar], false)
 1579 : ${AR=ar}
 1580 _LT_DECL([], [AR], [1], [The archiver])
 1581 
 1582 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
 1583 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
 1584 # higher priority because thats what people were doing historically (setting
 1585 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
 1586 # variable obsoleted/removed.
 1587 
 1588 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
 1589 lt_ar_flags=$AR_FLAGS
 1590 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
 1591 
 1592 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
 1593 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
 1594 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
 1595          [Flags to create an archive])
 1596 
 1597 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 1598   [lt_cv_ar_at_file=no
 1599    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 1600      [echo conftest.$ac_objext > conftest.lst
 1601       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 1602       AC_TRY_EVAL([lt_ar_try])
 1603       if test 0 -eq "$ac_status"; then
 1604 	# Ensure the archiver fails upon bogus file names.
 1605 	rm -f conftest.$ac_objext libconftest.a
 1606 	AC_TRY_EVAL([lt_ar_try])
 1607 	if test 0 -ne "$ac_status"; then
 1608           lt_cv_ar_at_file=@
 1609         fi
 1610       fi
 1611       rm -f conftest.* libconftest.a
 1612      ])
 1613   ])
 1614 
 1615 if test no = "$lt_cv_ar_at_file"; then
 1616   archiver_list_spec=
 1617 else
 1618   archiver_list_spec=$lt_cv_ar_at_file
 1619 fi
 1620 _LT_DECL([], [archiver_list_spec], [1],
 1621   [How to feed a file listing to the archiver])
 1622 ])# _LT_PROG_AR
 1623 
 1624 
 1625 # _LT_CMD_OLD_ARCHIVE
 1626 # -------------------
 1627 m4_defun([_LT_CMD_OLD_ARCHIVE],
 1628 [_LT_PROG_AR
 1629 
 1630 AC_CHECK_TOOL(STRIP, strip, :)
 1631 test -z "$STRIP" && STRIP=:
 1632 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
 1633 
 1634 AC_CHECK_TOOL(RANLIB, ranlib, :)
 1635 test -z "$RANLIB" && RANLIB=:
 1636 _LT_DECL([], [RANLIB], [1],
 1637     [Commands used to install an old-style archive])
 1638 
 1639 # Determine commands to create old-style static archives.
 1640 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 1641 old_postinstall_cmds='chmod 644 $oldlib'
 1642 old_postuninstall_cmds=
 1643 
 1644 if test -n "$RANLIB"; then
 1645   case $host_os in
 1646   bitrig* | openbsd*)
 1647     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 1648     ;;
 1649   *)
 1650     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 1651     ;;
 1652   esac
 1653   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 1654 fi
 1655 
 1656 case $host_os in
 1657   darwin*)
 1658     lock_old_archive_extraction=yes ;;
 1659   *)
 1660     lock_old_archive_extraction=no ;;
 1661 esac
 1662 _LT_DECL([], [old_postinstall_cmds], [2])
 1663 _LT_DECL([], [old_postuninstall_cmds], [2])
 1664 _LT_TAGDECL([], [old_archive_cmds], [2],
 1665     [Commands used to build an old-style archive])
 1666 _LT_DECL([], [lock_old_archive_extraction], [0],
 1667     [Whether to use a lock for old archive extraction])
 1668 ])# _LT_CMD_OLD_ARCHIVE
 1669 
 1670 
 1671 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1672 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 1673 # ----------------------------------------------------------------
 1674 # Check whether the given compiler option works
 1675 AC_DEFUN([_LT_COMPILER_OPTION],
 1676 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1677 m4_require([_LT_DECL_SED])dnl
 1678 AC_CACHE_CHECK([$1], [$2],
 1679   [$2=no
 1680    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 1681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 1682    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
 1683    # Insert the option either (1) after the last *FLAGS variable, or
 1684    # (2) before a word containing "conftest.", or (3) at the end.
 1685    # Note that $ac_compile itself does not contain backslashes and begins
 1686    # with a dollar sign (not a hyphen), so the echo should work correctly.
 1687    # The option is referenced via a variable to avoid confusing sed.
 1688    lt_compile=`echo "$ac_compile" | $SED \
 1689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 1690    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 1691    -e 's:$: $lt_compiler_flag:'`
 1692    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 1693    (eval "$lt_compile" 2>conftest.err)
 1694    ac_status=$?
 1695    cat conftest.err >&AS_MESSAGE_LOG_FD
 1696    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1697    if (exit $ac_status) && test -s "$ac_outfile"; then
 1698      # The compiler can only warn and ignore the option if not recognized
 1699      # So say no if there are warnings other than the usual output.
 1700      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 1701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 1703        $2=yes
 1704      fi
 1705    fi
 1706    $RM conftest*
 1707 ])
 1708 
 1709 if test yes = "[$]$2"; then
 1710     m4_if([$5], , :, [$5])
 1711 else
 1712     m4_if([$6], , :, [$6])
 1713 fi
 1714 ])# _LT_COMPILER_OPTION
 1715 
 1716 # Old name:
 1717 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 1718 dnl aclocal-1.4 backwards compatibility:
 1719 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 1720 
 1721 
 1722 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1723 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
 1724 # ----------------------------------------------------
 1725 # Check whether the given linker option works
 1726 AC_DEFUN([_LT_LINKER_OPTION],
 1727 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1728 m4_require([_LT_DECL_SED])dnl
 1729 AC_CACHE_CHECK([$1], [$2],
 1730   [$2=no
 1731    save_LDFLAGS=$LDFLAGS
 1732    LDFLAGS="$LDFLAGS $3"
 1733    echo "$lt_simple_link_test_code" > conftest.$ac_ext
 1734    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 1735      # The linker can only warn and ignore the option if not recognized
 1736      # So say no if there are warnings
 1737      if test -s conftest.err; then
 1738        # Append any errors to the config.log.
 1739        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 1740        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 1741        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1742        if diff conftest.exp conftest.er2 >/dev/null; then
 1743          $2=yes
 1744        fi
 1745      else
 1746        $2=yes
 1747      fi
 1748    fi
 1749    $RM -r conftest*
 1750    LDFLAGS=$save_LDFLAGS
 1751 ])
 1752 
 1753 if test yes = "[$]$2"; then
 1754     m4_if([$4], , :, [$4])
 1755 else
 1756     m4_if([$5], , :, [$5])
 1757 fi
 1758 ])# _LT_LINKER_OPTION
 1759 
 1760 # Old name:
 1761 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 1762 dnl aclocal-1.4 backwards compatibility:
 1763 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 1764 
 1765 
 1766 # LT_CMD_MAX_LEN
 1767 #---------------
 1768 AC_DEFUN([LT_CMD_MAX_LEN],
 1769 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 1770 # find the maximum length of command line arguments
 1771 AC_MSG_CHECKING([the maximum length of command line arguments])
 1772 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 1773   i=0
 1774   teststring=ABCD
 1775 
 1776   case $build_os in
 1777   msdosdjgpp*)
 1778     # On DJGPP, this test can blow up pretty badly due to problems in libc
 1779     # (any single argument exceeding 2000 bytes causes a buffer overrun
 1780     # during glob expansion).  Even if it were fixed, the result of this
 1781     # check would be larger than it should be.
 1782     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 1783     ;;
 1784 
 1785   gnu*)
 1786     # Under GNU Hurd, this test is not required because there is
 1787     # no limit to the length of command line arguments.
 1788     # Libtool will interpret -1 as no limit whatsoever
 1789     lt_cv_sys_max_cmd_len=-1;
 1790     ;;
 1791 
 1792   cygwin* | mingw* | cegcc*)
 1793     # On Win9x/ME, this test blows up -- it succeeds, but takes
 1794     # about 5 minutes as the teststring grows exponentially.
 1795     # Worse, since 9x/ME are not pre-emptively multitasking,
 1796     # you end up with a "frozen" computer, even though with patience
 1797     # the test eventually succeeds (with a max line length of 256k).
 1798     # Instead, let's just punt: use the minimum linelength reported by
 1799     # all of the supported platforms: 8192 (on NT/2K/XP).
 1800     lt_cv_sys_max_cmd_len=8192;
 1801     ;;
 1802 
 1803   mint*)
 1804     # On MiNT this can take a long time and run out of memory.
 1805     lt_cv_sys_max_cmd_len=8192;
 1806     ;;
 1807 
 1808   amigaos*)
 1809     # On AmigaOS with pdksh, this test takes hours, literally.
 1810     # So we just punt and use a minimum line length of 8192.
 1811     lt_cv_sys_max_cmd_len=8192;
 1812     ;;
 1813 
 1814   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
 1815     # This has been around since 386BSD, at least.  Likely further.
 1816     if test -x /sbin/sysctl; then
 1817       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 1818     elif test -x /usr/sbin/sysctl; then
 1819       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 1820     else
 1821       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 1822     fi
 1823     # And add a safety zone
 1824     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1825     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1826     ;;
 1827 
 1828   interix*)
 1829     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 1830     lt_cv_sys_max_cmd_len=196608
 1831     ;;
 1832 
 1833   os2*)
 1834     # The test takes a long time on OS/2.
 1835     lt_cv_sys_max_cmd_len=8192
 1836     ;;
 1837 
 1838   osf*)
 1839     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 1840     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 1841     # nice to cause kernel panics so lets avoid the loop below.
 1842     # First set a reasonable default.
 1843     lt_cv_sys_max_cmd_len=16384
 1844     #
 1845     if test -x /sbin/sysconfig; then
 1846       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 1847         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 1848       esac
 1849     fi
 1850     ;;
 1851   sco3.2v5*)
 1852     lt_cv_sys_max_cmd_len=102400
 1853     ;;
 1854   sysv5* | sco5v6* | sysv4.2uw2*)
 1855     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 1856     if test -n "$kargmax"; then
 1857       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[	 ]]//'`
 1858     else
 1859       lt_cv_sys_max_cmd_len=32768
 1860     fi
 1861     ;;
 1862   *)
 1863     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 1864     if test -n "$lt_cv_sys_max_cmd_len" && \
 1865        test undefined != "$lt_cv_sys_max_cmd_len"; then
 1866       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1867       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1868     else
 1869       # Make teststring a little bigger before we do anything with it.
 1870       # a 1K string should be a reasonable start.
 1871       for i in 1 2 3 4 5 6 7 8; do
 1872         teststring=$teststring$teststring
 1873       done
 1874       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 1875       # If test is not a shell built-in, we'll probably end up computing a
 1876       # maximum length that is only half of the actual maximum length, but
 1877       # we can't tell.
 1878       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 1879 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 1880 	      test 17 != "$i" # 1/2 MB should be enough
 1881       do
 1882         i=`expr $i + 1`
 1883         teststring=$teststring$teststring
 1884       done
 1885       # Only check the string length outside the loop.
 1886       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 1887       teststring=
 1888       # Add a significant safety factor because C++ compilers can tack on
 1889       # massive amounts of additional arguments before passing them to the
 1890       # linker.  It appears as though 1/2 is a usable value.
 1891       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 1892     fi
 1893     ;;
 1894   esac
 1895 ])
 1896 if test -n "$lt_cv_sys_max_cmd_len"; then
 1897   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 1898 else
 1899   AC_MSG_RESULT(none)
 1900 fi
 1901 max_cmd_len=$lt_cv_sys_max_cmd_len
 1902 _LT_DECL([], [max_cmd_len], [0],
 1903     [What is the maximum length of a command?])
 1904 ])# LT_CMD_MAX_LEN
 1905 
 1906 # Old name:
 1907 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 1908 dnl aclocal-1.4 backwards compatibility:
 1909 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 1910 
 1911 
 1912 # _LT_HEADER_DLFCN
 1913 # ----------------
 1914 m4_defun([_LT_HEADER_DLFCN],
 1915 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 1916 ])# _LT_HEADER_DLFCN
 1917 
 1918 
 1919 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 1920 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 1921 # ----------------------------------------------------------------
 1922 m4_defun([_LT_TRY_DLOPEN_SELF],
 1923 [m4_require([_LT_HEADER_DLFCN])dnl
 1924 if test yes = "$cross_compiling"; then :
 1925   [$4]
 1926 else
 1927   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 1928   lt_status=$lt_dlunknown
 1929   cat > conftest.$ac_ext <<_LT_EOF
 1930 [#line $LINENO "configure"
 1931 #include "confdefs.h"
 1932 
 1933 #if HAVE_DLFCN_H
 1934 #include <dlfcn.h>
 1935 #endif
 1936 
 1937 #include <stdio.h>
 1938 
 1939 #ifdef RTLD_GLOBAL
 1940 #  define LT_DLGLOBAL		RTLD_GLOBAL
 1941 #else
 1942 #  ifdef DL_GLOBAL
 1943 #    define LT_DLGLOBAL		DL_GLOBAL
 1944 #  else
 1945 #    define LT_DLGLOBAL		0
 1946 #  endif
 1947 #endif
 1948 
 1949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 1950    find out it does not work in some platform. */
 1951 #ifndef LT_DLLAZY_OR_NOW
 1952 #  ifdef RTLD_LAZY
 1953 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 1954 #  else
 1955 #    ifdef DL_LAZY
 1956 #      define LT_DLLAZY_OR_NOW		DL_LAZY
 1957 #    else
 1958 #      ifdef RTLD_NOW
 1959 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 1960 #      else
 1961 #        ifdef DL_NOW
 1962 #          define LT_DLLAZY_OR_NOW	DL_NOW
 1963 #        else
 1964 #          define LT_DLLAZY_OR_NOW	0
 1965 #        endif
 1966 #      endif
 1967 #    endif
 1968 #  endif
 1969 #endif
 1970 
 1971 /* When -fvisibility=hidden is used, assume the code has been annotated
 1972    correspondingly for the symbols needed.  */
 1973 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 1974 int fnord () __attribute__((visibility("default")));
 1975 #endif
 1976 
 1977 int fnord () { return 42; }
 1978 int main ()
 1979 {
 1980   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 1981   int status = $lt_dlunknown;
 1982 
 1983   if (self)
 1984     {
 1985       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 1986       else
 1987         {
 1988 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 1989           else puts (dlerror ());
 1990 	}
 1991       /* dlclose (self); */
 1992     }
 1993   else
 1994     puts (dlerror ());
 1995 
 1996   return status;
 1997 }]
 1998 _LT_EOF
 1999   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
 2000     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 2001     lt_status=$?
 2002     case x$lt_status in
 2003       x$lt_dlno_uscore) $1 ;;
 2004       x$lt_dlneed_uscore) $2 ;;
 2005       x$lt_dlunknown|x*) $3 ;;
 2006     esac
 2007   else :
 2008     # compilation failed
 2009     $3
 2010   fi
 2011 fi
 2012 rm -fr conftest*
 2013 ])# _LT_TRY_DLOPEN_SELF
 2014 
 2015 
 2016 # LT_SYS_DLOPEN_SELF
 2017 # ------------------
 2018 AC_DEFUN([LT_SYS_DLOPEN_SELF],
 2019 [m4_require([_LT_HEADER_DLFCN])dnl
 2020 if test yes != "$enable_dlopen"; then
 2021   enable_dlopen=unknown
 2022   enable_dlopen_self=unknown
 2023   enable_dlopen_self_static=unknown
 2024 else
 2025   lt_cv_dlopen=no
 2026   lt_cv_dlopen_libs=
 2027 
 2028   case $host_os in
 2029   beos*)
 2030     lt_cv_dlopen=load_add_on
 2031     lt_cv_dlopen_libs=
 2032     lt_cv_dlopen_self=yes
 2033     ;;
 2034 
 2035   mingw* | pw32* | cegcc*)
 2036     lt_cv_dlopen=LoadLibrary
 2037     lt_cv_dlopen_libs=
 2038     ;;
 2039 
 2040   cygwin*)
 2041     lt_cv_dlopen=dlopen
 2042     lt_cv_dlopen_libs=
 2043     ;;
 2044 
 2045   darwin*)
 2046     # if libdl is installed we need to link against it
 2047     AC_CHECK_LIB([dl], [dlopen],
 2048 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
 2049     lt_cv_dlopen=dyld
 2050     lt_cv_dlopen_libs=
 2051     lt_cv_dlopen_self=yes
 2052     ])
 2053     ;;
 2054 
 2055   tpf*)
 2056     # Don't try to run any link tests for TPF.  We know it's impossible
 2057     # because TPF is a cross-compiler, and we know how we open DSOs.
 2058     lt_cv_dlopen=dlopen
 2059     lt_cv_dlopen_libs=
 2060     lt_cv_dlopen_self=no
 2061     ;;
 2062 
 2063   *)
 2064     AC_CHECK_FUNC([shl_load],
 2065 	  [lt_cv_dlopen=shl_load],
 2066       [AC_CHECK_LIB([dld], [shl_load],
 2067 	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
 2068 	[AC_CHECK_FUNC([dlopen],
 2069 	      [lt_cv_dlopen=dlopen],
 2070 	  [AC_CHECK_LIB([dl], [dlopen],
 2071 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
 2072 	    [AC_CHECK_LIB([svld], [dlopen],
 2073 		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
 2074 	      [AC_CHECK_LIB([dld], [dld_link],
 2075 		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
 2076 	      ])
 2077 	    ])
 2078 	  ])
 2079 	])
 2080       ])
 2081     ;;
 2082   esac
 2083 
 2084   if test no = "$lt_cv_dlopen"; then
 2085     enable_dlopen=no
 2086   else
 2087     enable_dlopen=yes
 2088   fi
 2089 
 2090   case $lt_cv_dlopen in
 2091   dlopen)
 2092     save_CPPFLAGS=$CPPFLAGS
 2093     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 2094 
 2095     save_LDFLAGS=$LDFLAGS
 2096     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 2097 
 2098     save_LIBS=$LIBS
 2099     LIBS="$lt_cv_dlopen_libs $LIBS"
 2100 
 2101     AC_CACHE_CHECK([whether a program can dlopen itself],
 2102 	  lt_cv_dlopen_self, [dnl
 2103 	  _LT_TRY_DLOPEN_SELF(
 2104 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 2105 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 2106     ])
 2107 
 2108     if test yes = "$lt_cv_dlopen_self"; then
 2109       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 2110       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 2111 	  lt_cv_dlopen_self_static, [dnl
 2112 	  _LT_TRY_DLOPEN_SELF(
 2113 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 2114 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 2115       ])
 2116     fi
 2117 
 2118     CPPFLAGS=$save_CPPFLAGS
 2119     LDFLAGS=$save_LDFLAGS
 2120     LIBS=$save_LIBS
 2121     ;;
 2122   esac
 2123 
 2124   case $lt_cv_dlopen_self in
 2125   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 2126   *) enable_dlopen_self=unknown ;;
 2127   esac
 2128 
 2129   case $lt_cv_dlopen_self_static in
 2130   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 2131   *) enable_dlopen_self_static=unknown ;;
 2132   esac
 2133 fi
 2134 _LT_DECL([dlopen_support], [enable_dlopen], [0],
 2135 	 [Whether dlopen is supported])
 2136 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 2137 	 [Whether dlopen of programs is supported])
 2138 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 2139 	 [Whether dlopen of statically linked programs is supported])
 2140 ])# LT_SYS_DLOPEN_SELF
 2141 
 2142 # Old name:
 2143 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 2144 dnl aclocal-1.4 backwards compatibility:
 2145 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 2146 
 2147 
 2148 # _LT_COMPILER_C_O([TAGNAME])
 2149 # ---------------------------
 2150 # Check to see if options -c and -o are simultaneously supported by compiler.
 2151 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
 2152 m4_defun([_LT_COMPILER_C_O],
 2153 [m4_require([_LT_DECL_SED])dnl
 2154 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2155 m4_require([_LT_TAG_COMPILER])dnl
 2156 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 2157   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 2158   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 2159    $RM -r conftest 2>/dev/null
 2160    mkdir conftest
 2161    cd conftest
 2162    mkdir out
 2163    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 2164 
 2165    lt_compiler_flag="-o out/conftest2.$ac_objext"
 2166    # Insert the option either (1) after the last *FLAGS variable, or
 2167    # (2) before a word containing "conftest.", or (3) at the end.
 2168    # Note that $ac_compile itself does not contain backslashes and begins
 2169    # with a dollar sign (not a hyphen), so the echo should work correctly.
 2170    lt_compile=`echo "$ac_compile" | $SED \
 2171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 2172    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 2173    -e 's:$: $lt_compiler_flag:'`
 2174    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 2175    (eval "$lt_compile" 2>out/conftest.err)
 2176    ac_status=$?
 2177    cat out/conftest.err >&AS_MESSAGE_LOG_FD
 2178    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 2179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 2180    then
 2181      # The compiler can only warn and ignore the option if not recognized
 2182      # So say no if there are warnings
 2183      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 2184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 2185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 2186        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 2187      fi
 2188    fi
 2189    chmod u+w . 2>&AS_MESSAGE_LOG_FD
 2190    $RM conftest*
 2191    # SGI C++ compiler will create directory out/ii_files/ for
 2192    # template instantiation
 2193    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 2194    $RM out/* && rmdir out
 2195    cd ..
 2196    $RM -r conftest
 2197    $RM conftest*
 2198 ])
 2199 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 2200 	[Does compiler simultaneously support -c and -o options?])
 2201 ])# _LT_COMPILER_C_O
 2202 
 2203 
 2204 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
 2205 # ----------------------------------
 2206 # Check to see if we can do hard links to lock some files if needed
 2207 m4_defun([_LT_COMPILER_FILE_LOCKS],
 2208 [m4_require([_LT_ENABLE_LOCK])dnl
 2209 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2210 _LT_COMPILER_C_O([$1])
 2211 
 2212 hard_links=nottested
 2213 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
 2214   # do not overwrite the value of need_locks provided by the user
 2215   AC_MSG_CHECKING([if we can lock with hard links])
 2216   hard_links=yes
 2217   $RM conftest*
 2218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2219   touch conftest.a
 2220   ln conftest.a conftest.b 2>&5 || hard_links=no
 2221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2222   AC_MSG_RESULT([$hard_links])
 2223   if test no = "$hard_links"; then
 2224     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
 2225     need_locks=warn
 2226   fi
 2227 else
 2228   need_locks=no
 2229 fi
 2230 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 2231 ])# _LT_COMPILER_FILE_LOCKS
 2232 
 2233 
 2234 # _LT_CHECK_OBJDIR
 2235 # ----------------
 2236 m4_defun([_LT_CHECK_OBJDIR],
 2237 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 2238 [rm -f .libs 2>/dev/null
 2239 mkdir .libs 2>/dev/null
 2240 if test -d .libs; then
 2241   lt_cv_objdir=.libs
 2242 else
 2243   # MS-DOS does not allow filenames that begin with a dot.
 2244   lt_cv_objdir=_libs
 2245 fi
 2246 rmdir .libs 2>/dev/null])
 2247 objdir=$lt_cv_objdir
 2248 _LT_DECL([], [objdir], [0],
 2249          [The name of the directory that contains temporary libtool files])dnl
 2250 m4_pattern_allow([LT_OBJDIR])dnl
 2251 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
 2252   [Define to the sub-directory where libtool stores uninstalled libraries.])
 2253 ])# _LT_CHECK_OBJDIR
 2254 
 2255 
 2256 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 2257 # --------------------------------------
 2258 # Check hardcoding attributes.
 2259 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 2260 [AC_MSG_CHECKING([how to hardcode library paths into programs])
 2261 _LT_TAGVAR(hardcode_action, $1)=
 2262 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 2263    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 2264    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
 2265 
 2266   # We can hardcode non-existent directories.
 2267   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
 2268      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 2269      # have to relink, otherwise we might link with an installed library
 2270      # when we should be linking with a yet-to-be-installed one
 2271      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
 2272      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
 2273     # Linking always hardcodes the temporary library directory.
 2274     _LT_TAGVAR(hardcode_action, $1)=relink
 2275   else
 2276     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 2277     _LT_TAGVAR(hardcode_action, $1)=immediate
 2278   fi
 2279 else
 2280   # We cannot hardcode anything, or else we can only hardcode existing
 2281   # directories.
 2282   _LT_TAGVAR(hardcode_action, $1)=unsupported
 2283 fi
 2284 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 2285 
 2286 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
 2287    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
 2288   # Fast installation is not supported
 2289   enable_fast_install=no
 2290 elif test yes = "$shlibpath_overrides_runpath" ||
 2291      test no = "$enable_shared"; then
 2292   # Fast installation is not necessary
 2293   enable_fast_install=needless
 2294 fi
 2295 _LT_TAGDECL([], [hardcode_action], [0],
 2296     [How to hardcode a shared library path into an executable])
 2297 ])# _LT_LINKER_HARDCODE_LIBPATH
 2298 
 2299 
 2300 # _LT_CMD_STRIPLIB
 2301 # ----------------
 2302 m4_defun([_LT_CMD_STRIPLIB],
 2303 [m4_require([_LT_DECL_EGREP])
 2304 striplib=
 2305 old_striplib=
 2306 AC_MSG_CHECKING([whether stripping libraries is possible])
 2307 if test -z "$STRIP"; then
 2308   AC_MSG_RESULT([no])
 2309 else
 2310   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 2311     old_striplib="$STRIP --strip-debug"
 2312     striplib="$STRIP --strip-unneeded"
 2313     AC_MSG_RESULT([yes])
 2314   else
 2315     case $host_os in
 2316     darwin*)
 2317       # FIXME - insert some real tests, host_os isn't really good enough
 2318       striplib="$STRIP -x"
 2319       old_striplib="$STRIP -S"
 2320       AC_MSG_RESULT([yes])
 2321       ;;
 2322     freebsd*)
 2323       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
 2324         old_striplib="$STRIP --strip-debug"
 2325         striplib="$STRIP --strip-unneeded"
 2326         AC_MSG_RESULT([yes])
 2327       else
 2328         AC_MSG_RESULT([no])
 2329       fi
 2330       ;;
 2331     *)
 2332       AC_MSG_RESULT([no])
 2333       ;;
 2334     esac
 2335   fi
 2336 fi
 2337 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 2338 _LT_DECL([], [striplib], [1])
 2339 ])# _LT_CMD_STRIPLIB
 2340 
 2341 
 2342 # _LT_PREPARE_MUNGE_PATH_LIST
 2343 # ---------------------------
 2344 # Make sure func_munge_path_list() is defined correctly.
 2345 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
 2346 [[# func_munge_path_list VARIABLE PATH
 2347 # -----------------------------------
 2348 # VARIABLE is name of variable containing _space_ separated list of
 2349 # directories to be munged by the contents of PATH, which is string
 2350 # having a format:
 2351 # "DIR[:DIR]:"
 2352 #       string "DIR[ DIR]" will be prepended to VARIABLE
 2353 # ":DIR[:DIR]"
 2354 #       string "DIR[ DIR]" will be appended to VARIABLE
 2355 # "DIRP[:DIRP]::[DIRA:]DIRA"
 2356 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 2357 #       "DIRA[ DIRA]" will be appended to VARIABLE
 2358 # "DIR[:DIR]"
 2359 #       VARIABLE will be replaced by "DIR[ DIR]"
 2360 func_munge_path_list ()
 2361 {
 2362     case x@S|@2 in
 2363     x)
 2364         ;;
 2365     *:)
 2366         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
 2367         ;;
 2368     x:*)
 2369         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2370         ;;
 2371     *::*)
 2372         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 2373         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
 2374         ;;
 2375     *)
 2376         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2377         ;;
 2378     esac
 2379 }
 2380 ]])# _LT_PREPARE_PATH_LIST
 2381 
 2382 
 2383 # _LT_SYS_DYNAMIC_LINKER([TAG])
 2384 # -----------------------------
 2385 # PORTME Fill in your ld.so characteristics
 2386 m4_defun([_LT_SYS_DYNAMIC_LINKER],
 2387 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 2388 m4_require([_LT_DECL_EGREP])dnl
 2389 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2390 m4_require([_LT_DECL_OBJDUMP])dnl
 2391 m4_require([_LT_DECL_SED])dnl
 2392 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 2393 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
 2394 AC_MSG_CHECKING([dynamic linker characteristics])
 2395 m4_if([$1],
 2396 	[], [
 2397 if test yes = "$GCC"; then
 2398   case $host_os in
 2399     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 2400     *) lt_awk_arg='/^libraries:/' ;;
 2401   esac
 2402   case $host_os in
 2403     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
 2404     *) lt_sed_strip_eq='s|=/|/|g' ;;
 2405   esac
 2406   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 2407   case $lt_search_path_spec in
 2408   *\;*)
 2409     # if the path contains ";" then we assume it to be the separator
 2410     # otherwise default to the standard path separator (i.e. ":") - it is
 2411     # assumed that no part of a normal pathname contains ";" but that should
 2412     # okay in the real world where ";" in dirpaths is itself problematic.
 2413     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 2414     ;;
 2415   *)
 2416     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 2417     ;;
 2418   esac
 2419   # Ok, now we have the path, separated by spaces, we can step through it
 2420   # and add multilib dir if necessary...
 2421   lt_tmp_lt_search_path_spec=
 2422   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 2423   # ...but if some path component already ends with the multilib dir we assume
 2424   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 2425   case "$lt_multi_os_dir; $lt_search_path_spec " in
 2426   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 2427     lt_multi_os_dir=
 2428     ;;
 2429   esac
 2430   for lt_sys_path in $lt_search_path_spec; do
 2431     if test -d "$lt_sys_path$lt_multi_os_dir"; then
 2432       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 2433     elif test -n "$lt_multi_os_dir"; then
 2434       test -d "$lt_sys_path" && \
 2435 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 2436     fi
 2437   done
 2438   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 2439 BEGIN {RS = " "; FS = "/|\n";} {
 2440   lt_foo = "";
 2441   lt_count = 0;
 2442   for (lt_i = NF; lt_i > 0; lt_i--) {
 2443     if ($lt_i != "" && $lt_i != ".") {
 2444       if ($lt_i == "..") {
 2445         lt_count++;
 2446       } else {
 2447         if (lt_count == 0) {
 2448           lt_foo = "/" $lt_i lt_foo;
 2449         } else {
 2450           lt_count--;
 2451         }
 2452       }
 2453     }
 2454   }
 2455   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 2456   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 2457 }'`
 2458   # AWK program above erroneously prepends '/' to C:/dos/paths
 2459   # for these hosts.
 2460   case $host_os in
 2461     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 2462       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
 2463   esac
 2464   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 2465 else
 2466   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 2467 fi])
 2468 library_names_spec=
 2469 libname_spec='lib$name'
 2470 soname_spec=
 2471 shrext_cmds=.so
 2472 postinstall_cmds=
 2473 postuninstall_cmds=
 2474 finish_cmds=
 2475 finish_eval=
 2476 shlibpath_var=
 2477 shlibpath_overrides_runpath=unknown
 2478 version_type=none
 2479 dynamic_linker="$host_os ld.so"
 2480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 2481 need_lib_prefix=unknown
 2482 hardcode_into_libs=no
 2483 
 2484 # when you set need_version to no, make sure it does not cause -set_version
 2485 # flags to be left without arguments
 2486 need_version=unknown
 2487 
 2488 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
 2489 [User-defined run-time library search path.])
 2490 
 2491 case $host_os in
 2492 aix3*)
 2493   version_type=linux # correct to gnu/linux during the next big refactor
 2494   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 2495   shlibpath_var=LIBPATH
 2496 
 2497   # AIX 3 has no versioning support, so we append a major version to the name.
 2498   soname_spec='$libname$release$shared_ext$major'
 2499   ;;
 2500 
 2501 aix[[4-9]]*)
 2502   version_type=linux # correct to gnu/linux during the next big refactor
 2503   need_lib_prefix=no
 2504   need_version=no
 2505   hardcode_into_libs=yes
 2506   if test ia64 = "$host_cpu"; then
 2507     # AIX 5 supports IA64
 2508     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 2509     shlibpath_var=LD_LIBRARY_PATH
 2510   else
 2511     # With GCC up to 2.95.x, collect2 would create an import file
 2512     # for dependence libraries.  The import file would start with
 2513     # the line '#! .'.  This would cause the generated library to
 2514     # depend on '.', always an invalid library.  This was fixed in
 2515     # development snapshots of GCC prior to 3.0.
 2516     case $host_os in
 2517       aix4 | aix4.[[01]] | aix4.[[01]].*)
 2518       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 2519 	   echo ' yes '
 2520 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 2521 	:
 2522       else
 2523 	can_build_shared=no
 2524       fi
 2525       ;;
 2526     esac
 2527     # Using Import Files as archive members, it is possible to support
 2528     # filename-based versioning of shared library archives on AIX. While
 2529     # this would work for both with and without runtime linking, it will
 2530     # prevent static linking of such archives. So we do filename-based
 2531     # shared library versioning with .so extension only, which is used
 2532     # when both runtime linking and shared linking is enabled.
 2533     # Unfortunately, runtime linking may impact performance, so we do
 2534     # not want this to be the default eventually. Also, we use the
 2535     # versioned .so libs for executables only if there is the -brtl
 2536     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 2537     # To allow for filename-based versioning support, we need to create
 2538     # libNAME.so.V as an archive file, containing:
 2539     # *) an Import File, referring to the versioned filename of the
 2540     #    archive as well as the shared archive member, telling the
 2541     #    bitwidth (32 or 64) of that shared object, and providing the
 2542     #    list of exported symbols of that shared object, eventually
 2543     #    decorated with the 'weak' keyword
 2544     # *) the shared object with the F_LOADONLY flag set, to really avoid
 2545     #    it being seen by the linker.
 2546     # At run time we better use the real file rather than another symlink,
 2547     # but for link time we create the symlink libNAME.so -> libNAME.so.V
 2548 
 2549     case $with_aix_soname,$aix_use_runtimelinking in
 2550     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 2551     # soname into executable. Probably we can add versioning support to
 2552     # collect2, so additional links can be useful in future.
 2553     aix,yes) # traditional libtool
 2554       dynamic_linker='AIX unversionable lib.so'
 2555       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 2556       # instead of lib<name>.a to let people know that these are not
 2557       # typical AIX shared libraries.
 2558       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2559       ;;
 2560     aix,no) # traditional AIX only
 2561       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
 2562       # We preserve .a as extension for shared libraries through AIX4.2
 2563       # and later when we are not doing run time linking.
 2564       library_names_spec='$libname$release.a $libname.a'
 2565       soname_spec='$libname$release$shared_ext$major'
 2566       ;;
 2567     svr4,*) # full svr4 only
 2568       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
 2569       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2570       # We do not specify a path in Import Files, so LIBPATH fires.
 2571       shlibpath_overrides_runpath=yes
 2572       ;;
 2573     *,yes) # both, prefer svr4
 2574       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
 2575       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2576       # unpreferred sharedlib libNAME.a needs extra handling
 2577       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 2578       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 2579       # We do not specify a path in Import Files, so LIBPATH fires.
 2580       shlibpath_overrides_runpath=yes
 2581       ;;
 2582     *,no) # both, prefer aix
 2583       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
 2584       library_names_spec='$libname$release.a $libname.a'
 2585       soname_spec='$libname$release$shared_ext$major'
 2586       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 2587       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 2588       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 2589       ;;
 2590     esac
 2591     shlibpath_var=LIBPATH
 2592   fi
 2593   ;;
 2594 
 2595 amigaos*)
 2596   case $host_cpu in
 2597   powerpc)
 2598     # Since July 2007 AmigaOS4 officially supports .so libraries.
 2599     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 2600     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2601     ;;
 2602   m68k)
 2603     library_names_spec='$libname.ixlibrary $libname.a'
 2604     # Create ${libname}_ixlibrary.a entries in /sys/libs.
 2605     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 2606     ;;
 2607   esac
 2608   ;;
 2609 
 2610 beos*)
 2611   library_names_spec='$libname$shared_ext'
 2612   dynamic_linker="$host_os ld.so"
 2613   shlibpath_var=LIBRARY_PATH
 2614   ;;
 2615 
 2616 bsdi[[45]]*)
 2617   version_type=linux # correct to gnu/linux during the next big refactor
 2618   need_version=no
 2619   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2620   soname_spec='$libname$release$shared_ext$major'
 2621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 2622   shlibpath_var=LD_LIBRARY_PATH
 2623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 2624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 2625   # the default ld.so.conf also contains /usr/contrib/lib and
 2626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 2627   # libtool to hard-code these into programs
 2628   ;;
 2629 
 2630 cygwin* | mingw* | pw32* | cegcc*)
 2631   version_type=windows
 2632   shrext_cmds=.dll
 2633   need_version=no
 2634   need_lib_prefix=no
 2635 
 2636   case $GCC,$cc_basename in
 2637   yes,*)
 2638     # gcc
 2639     library_names_spec='$libname.dll.a'
 2640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2641     postinstall_cmds='base_file=`basename \$file`~
 2642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2643       dldir=$destdir/`dirname \$dlpath`~
 2644       test -d \$dldir || mkdir -p \$dldir~
 2645       $install_prog $dir/$dlname \$dldir/$dlname~
 2646       chmod a+x \$dldir/$dlname~
 2647       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 2648         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 2649       fi'
 2650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2651       dlpath=$dir/\$dldll~
 2652        $RM \$dlpath'
 2653     shlibpath_overrides_runpath=yes
 2654 
 2655     case $host_os in
 2656     cygwin*)
 2657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 2658       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2659 m4_if([$1], [],[
 2660       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 2661       ;;
 2662     mingw* | cegcc*)
 2663       # MinGW DLLs use traditional 'lib' prefix
 2664       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2665       ;;
 2666     pw32*)
 2667       # pw32 DLLs use 'pw' prefix rather than 'lib'
 2668       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2669       ;;
 2670     esac
 2671     dynamic_linker='Win32 ld.exe'
 2672     ;;
 2673 
 2674   *,cl* | *,icl*)
 2675     # Native MSVC or ICC
 2676     libname_spec='$name'
 2677     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2678     library_names_spec='$libname.dll.lib'
 2679 
 2680     case $build_os in
 2681     mingw*)
 2682       sys_lib_search_path_spec=
 2683       lt_save_ifs=$IFS
 2684       IFS=';'
 2685       for lt_path in $LIB
 2686       do
 2687         IFS=$lt_save_ifs
 2688         # Let DOS variable expansion print the short 8.3 style file name.
 2689         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 2690         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 2691       done
 2692       IFS=$lt_save_ifs
 2693       # Convert to MSYS style.
 2694       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 2695       ;;
 2696     cygwin*)
 2697       # Convert to unix form, then to dos form, then back to unix form
 2698       # but this time dos style (no spaces!) so that the unix form looks
 2699       # like /cygdrive/c/PROGRA~1:/cygdr...
 2700       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 2701       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 2702       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2703       ;;
 2704     *)
 2705       sys_lib_search_path_spec=$LIB
 2706       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 2707         # It is most probably a Windows format PATH.
 2708         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 2709       else
 2710         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2711       fi
 2712       # FIXME: find the short name or the path components, as spaces are
 2713       # common. (e.g. "Program Files" -> "PROGRA~1")
 2714       ;;
 2715     esac
 2716 
 2717     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2718     postinstall_cmds='base_file=`basename \$file`~
 2719       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2720       dldir=$destdir/`dirname \$dlpath`~
 2721       test -d \$dldir || mkdir -p \$dldir~
 2722       $install_prog $dir/$dlname \$dldir/$dlname'
 2723     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2724       dlpath=$dir/\$dldll~
 2725        $RM \$dlpath'
 2726     shlibpath_overrides_runpath=yes
 2727     dynamic_linker='Win32 link.exe'
 2728     ;;
 2729 
 2730   *)
 2731     # Assume MSVC and ICC wrapper
 2732     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
 2733     dynamic_linker='Win32 ld.exe'
 2734     ;;
 2735   esac
 2736   # FIXME: first we should search . and the directory the executable is in
 2737   shlibpath_var=PATH
 2738   ;;
 2739 
 2740 darwin* | rhapsody*)
 2741   dynamic_linker="$host_os dyld"
 2742   version_type=darwin
 2743   need_lib_prefix=no
 2744   need_version=no
 2745   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 2746   soname_spec='$libname$release$major$shared_ext'
 2747   shlibpath_overrides_runpath=yes
 2748   shlibpath_var=DYLD_LIBRARY_PATH
 2749   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 2750 m4_if([$1], [],[
 2751   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 2752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 2753   ;;
 2754 
 2755 dgux*)
 2756   version_type=linux # correct to gnu/linux during the next big refactor
 2757   need_lib_prefix=no
 2758   need_version=no
 2759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2760   soname_spec='$libname$release$shared_ext$major'
 2761   shlibpath_var=LD_LIBRARY_PATH
 2762   ;;
 2763 
 2764 freebsd* | dragonfly* | midnightbsd*)
 2765   # DragonFly does not have aout.  When/if they implement a new
 2766   # versioning mechanism, adjust this.
 2767   if test -x /usr/bin/objformat; then
 2768     objformat=`/usr/bin/objformat`
 2769   else
 2770     case $host_os in
 2771     freebsd[[23]].*) objformat=aout ;;
 2772     *) objformat=elf ;;
 2773     esac
 2774   fi
 2775   version_type=freebsd-$objformat
 2776   case $version_type in
 2777     freebsd-elf*)
 2778       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2779       soname_spec='$libname$release$shared_ext$major'
 2780       need_version=no
 2781       need_lib_prefix=no
 2782       ;;
 2783     freebsd-*)
 2784       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2785       need_version=yes
 2786       ;;
 2787   esac
 2788   shlibpath_var=LD_LIBRARY_PATH
 2789   case $host_os in
 2790   freebsd2.*)
 2791     shlibpath_overrides_runpath=yes
 2792     ;;
 2793   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 2794     shlibpath_overrides_runpath=yes
 2795     hardcode_into_libs=yes
 2796     ;;
 2797   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 2798   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 2799     shlibpath_overrides_runpath=no
 2800     hardcode_into_libs=yes
 2801     ;;
 2802   *) # from 4.6 on, and DragonFly
 2803     shlibpath_overrides_runpath=yes
 2804     hardcode_into_libs=yes
 2805     ;;
 2806   esac
 2807   ;;
 2808 
 2809 haiku*)
 2810   version_type=linux # correct to gnu/linux during the next big refactor
 2811   need_lib_prefix=no
 2812   need_version=no
 2813   dynamic_linker="$host_os runtime_loader"
 2814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2815   soname_spec='$libname$release$shared_ext$major'
 2816   shlibpath_var=LIBRARY_PATH
 2817   shlibpath_overrides_runpath=no
 2818   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 2819   hardcode_into_libs=yes
 2820   ;;
 2821 
 2822 hpux9* | hpux10* | hpux11*)
 2823   # Give a soname corresponding to the major version so that dld.sl refuses to
 2824   # link against other versions.
 2825   version_type=sunos
 2826   need_lib_prefix=no
 2827   need_version=no
 2828   case $host_cpu in
 2829   ia64*)
 2830     shrext_cmds='.so'
 2831     hardcode_into_libs=yes
 2832     dynamic_linker="$host_os dld.so"
 2833     shlibpath_var=LD_LIBRARY_PATH
 2834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2835     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2836     soname_spec='$libname$release$shared_ext$major'
 2837     if test 32 = "$HPUX_IA64_MODE"; then
 2838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 2839       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 2840     else
 2841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 2842       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 2843     fi
 2844     ;;
 2845   hppa*64*)
 2846     shrext_cmds='.sl'
 2847     hardcode_into_libs=yes
 2848     dynamic_linker="$host_os dld.sl"
 2849     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 2850     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2851     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2852     soname_spec='$libname$release$shared_ext$major'
 2853     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 2854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2855     ;;
 2856   *)
 2857     shrext_cmds='.sl'
 2858     dynamic_linker="$host_os dld.sl"
 2859     shlibpath_var=SHLIB_PATH
 2860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 2861     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2862     soname_spec='$libname$release$shared_ext$major'
 2863     ;;
 2864   esac
 2865   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 2866   postinstall_cmds='chmod 555 $lib'
 2867   # or fails outright, so override atomically:
 2868   install_override_mode=555
 2869   ;;
 2870 
 2871 interix[[3-9]]*)
 2872   version_type=linux # correct to gnu/linux during the next big refactor
 2873   need_lib_prefix=no
 2874   need_version=no
 2875   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2876   soname_spec='$libname$release$shared_ext$major'
 2877   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 2878   shlibpath_var=LD_LIBRARY_PATH
 2879   shlibpath_overrides_runpath=no
 2880   hardcode_into_libs=yes
 2881   ;;
 2882 
 2883 irix5* | irix6* | nonstopux*)
 2884   case $host_os in
 2885     nonstopux*) version_type=nonstopux ;;
 2886     *)
 2887 	if test yes = "$lt_cv_prog_gnu_ld"; then
 2888 		version_type=linux # correct to gnu/linux during the next big refactor
 2889 	else
 2890 		version_type=irix
 2891 	fi ;;
 2892   esac
 2893   need_lib_prefix=no
 2894   need_version=no
 2895   soname_spec='$libname$release$shared_ext$major'
 2896   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 2897   case $host_os in
 2898   irix5* | nonstopux*)
 2899     libsuff= shlibsuff=
 2900     ;;
 2901   *)
 2902     case $LD in # libtool.m4 will add one of these switches to LD
 2903     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 2904       libsuff= shlibsuff= libmagic=32-bit;;
 2905     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 2906       libsuff=32 shlibsuff=N32 libmagic=N32;;
 2907     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 2908       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 2909     *) libsuff= shlibsuff= libmagic=never-match;;
 2910     esac
 2911     ;;
 2912   esac
 2913   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 2914   shlibpath_overrides_runpath=no
 2915   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 2916   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 2917   hardcode_into_libs=yes
 2918   ;;
 2919 
 2920 # No shared lib support for Linux oldld, aout, or coff.
 2921 linux*oldld* | linux*aout* | linux*coff*)
 2922   dynamic_linker=no
 2923   ;;
 2924 
 2925 linux*android*)
 2926   version_type=none # Android doesn't support versioned libraries.
 2927   need_lib_prefix=no
 2928   need_version=no
 2929   library_names_spec='$libname$release$shared_ext'
 2930   soname_spec='$libname$release$shared_ext'
 2931   finish_cmds=
 2932   shlibpath_var=LD_LIBRARY_PATH
 2933   shlibpath_overrides_runpath=yes
 2934 
 2935   # This implies no fast_install, which is unacceptable.
 2936   # Some rework will be needed to allow for fast_install
 2937   # before this can be enabled.
 2938   hardcode_into_libs=yes
 2939 
 2940   dynamic_linker='Android linker'
 2941   # Don't embed -rpath directories since the linker doesn't support them.
 2942   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 2943   ;;
 2944 
 2945 # This must be glibc/ELF.
 2946 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 2947   version_type=linux # correct to gnu/linux during the next big refactor
 2948   need_lib_prefix=no
 2949   need_version=no
 2950   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2951   soname_spec='$libname$release$shared_ext$major'
 2952   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 2953   shlibpath_var=LD_LIBRARY_PATH
 2954   shlibpath_overrides_runpath=no
 2955 
 2956   # Some binutils ld are patched to set DT_RUNPATH
 2957   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 2958     [lt_cv_shlibpath_overrides_runpath=no
 2959     save_LDFLAGS=$LDFLAGS
 2960     save_libdir=$libdir
 2961     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 2962 	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 2963     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 2964       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 2965 	 [lt_cv_shlibpath_overrides_runpath=yes])])
 2966     LDFLAGS=$save_LDFLAGS
 2967     libdir=$save_libdir
 2968     ])
 2969   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 2970 
 2971   # This implies no fast_install, which is unacceptable.
 2972   # Some rework will be needed to allow for fast_install
 2973   # before this can be enabled.
 2974   hardcode_into_libs=yes
 2975 
 2976   # Add ABI-specific directories to the system library path.
 2977   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 2978 
 2979   # Ideally, we could use ldconfig to report *all* directores which are
 2980   # searched for libraries, however this is still not possible.  Aside from not
 2981   # being certain /sbin/ldconfig is available, command
 2982   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 2983   # even though it is searched at run-time.  Try to do the best guess by
 2984   # appending ld.so.conf contents (and includes) to the search path.
 2985   if test -f /etc/ld.so.conf; then
 2986     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' ' '`
 2987     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 2988   fi
 2989 
 2990   # We used to test for /lib/ld.so.1 and disable shared libraries on
 2991   # powerpc, because MkLinux only supported shared libraries with the
 2992   # GNU dynamic linker.  Since this was broken with cross compilers,
 2993   # most powerpc-linux boxes support dynamic linking these days and
 2994   # people can always --disable-shared, the test was removed, and we
 2995   # assume the GNU/Linux dynamic linker is in use.
 2996   dynamic_linker='GNU/Linux ld.so'
 2997   ;;
 2998 
 2999 netbsd*)
 3000   version_type=sunos
 3001   need_lib_prefix=no
 3002   need_version=no
 3003   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 3004     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 3005     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 3006     dynamic_linker='NetBSD (a.out) ld.so'
 3007   else
 3008     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3009     soname_spec='$libname$release$shared_ext$major'
 3010     dynamic_linker='NetBSD ld.elf_so'
 3011   fi
 3012   shlibpath_var=LD_LIBRARY_PATH
 3013   shlibpath_overrides_runpath=yes
 3014   hardcode_into_libs=yes
 3015   ;;
 3016 
 3017 newsos6)
 3018   version_type=linux # correct to gnu/linux during the next big refactor
 3019   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3020   shlibpath_var=LD_LIBRARY_PATH
 3021   shlibpath_overrides_runpath=yes
 3022   ;;
 3023 
 3024 *nto* | *qnx*)
 3025   version_type=qnx
 3026   need_lib_prefix=no
 3027   need_version=no
 3028   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3029   soname_spec='$libname$release$shared_ext$major'
 3030   shlibpath_var=LD_LIBRARY_PATH
 3031   shlibpath_overrides_runpath=no
 3032   hardcode_into_libs=yes
 3033   dynamic_linker='ldqnx.so'
 3034   ;;
 3035 
 3036 openbsd* | bitrig*)
 3037   version_type=sunos
 3038   sys_lib_dlsearch_path_spec=/usr/lib
 3039   need_lib_prefix=no
 3040   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 3041     need_version=no
 3042   else
 3043     need_version=yes
 3044   fi
 3045   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 3046   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 3047   shlibpath_var=LD_LIBRARY_PATH
 3048   shlibpath_overrides_runpath=yes
 3049   ;;
 3050 
 3051 os2*)
 3052   libname_spec='$name'
 3053   version_type=windows
 3054   shrext_cmds=.dll
 3055   need_version=no
 3056   need_lib_prefix=no
 3057   # OS/2 can only load a DLL with a base name of 8 characters or less.
 3058   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 3059     v=$($ECHO $release$versuffix | tr -d .-);
 3060     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 3061     $ECHO $n$v`$shared_ext'
 3062   library_names_spec='${libname}_dll.$libext'
 3063   dynamic_linker='OS/2 ld.exe'
 3064   shlibpath_var=BEGINLIBPATH
 3065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 3066   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 3067   postinstall_cmds='base_file=`basename \$file`~
 3068     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 3069     dldir=$destdir/`dirname \$dlpath`~
 3070     test -d \$dldir || mkdir -p \$dldir~
 3071     $install_prog $dir/$dlname \$dldir/$dlname~
 3072     chmod a+x \$dldir/$dlname~
 3073     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 3074       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 3075     fi'
 3076   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 3077     dlpath=$dir/\$dldll~
 3078     $RM \$dlpath'
 3079   ;;
 3080 
 3081 osf3* | osf4* | osf5*)
 3082   version_type=osf
 3083   need_lib_prefix=no
 3084   need_version=no
 3085   soname_spec='$libname$release$shared_ext$major'
 3086   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3087   shlibpath_var=LD_LIBRARY_PATH
 3088   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 3089   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 3090   ;;
 3091 
 3092 rdos*)
 3093   dynamic_linker=no
 3094   ;;
 3095 
 3096 solaris*)
 3097   version_type=linux # correct to gnu/linux during the next big refactor
 3098   need_lib_prefix=no
 3099   need_version=no
 3100   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3101   soname_spec='$libname$release$shared_ext$major'
 3102   shlibpath_var=LD_LIBRARY_PATH
 3103   shlibpath_overrides_runpath=yes
 3104   hardcode_into_libs=yes
 3105   # ldd complains unless libraries are executable
 3106   postinstall_cmds='chmod +x $lib'
 3107   ;;
 3108 
 3109 sunos4*)
 3110   version_type=sunos
 3111   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 3112   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 3113   shlibpath_var=LD_LIBRARY_PATH
 3114   shlibpath_overrides_runpath=yes
 3115   if test yes = "$with_gnu_ld"; then
 3116     need_lib_prefix=no
 3117   fi
 3118   need_version=yes
 3119   ;;
 3120 
 3121 sysv4 | sysv4.3*)
 3122   version_type=linux # correct to gnu/linux during the next big refactor
 3123   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3124   soname_spec='$libname$release$shared_ext$major'
 3125   shlibpath_var=LD_LIBRARY_PATH
 3126   case $host_vendor in
 3127     sni)
 3128       shlibpath_overrides_runpath=no
 3129       need_lib_prefix=no
 3130       runpath_var=LD_RUN_PATH
 3131       ;;
 3132     siemens)
 3133       need_lib_prefix=no
 3134       ;;
 3135     motorola)
 3136       need_lib_prefix=no
 3137       need_version=no
 3138       shlibpath_overrides_runpath=no
 3139       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 3140       ;;
 3141   esac
 3142   ;;
 3143 
 3144 sysv4*MP*)
 3145   if test -d /usr/nec; then
 3146     version_type=linux # correct to gnu/linux during the next big refactor
 3147     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 3148     soname_spec='$libname$shared_ext.$major'
 3149     shlibpath_var=LD_LIBRARY_PATH
 3150   fi
 3151   ;;
 3152 
 3153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3154   version_type=sco
 3155   need_lib_prefix=no
 3156   need_version=no
 3157   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 3158   soname_spec='$libname$release$shared_ext$major'
 3159   shlibpath_var=LD_LIBRARY_PATH
 3160   shlibpath_overrides_runpath=yes
 3161   hardcode_into_libs=yes
 3162   if test yes = "$with_gnu_ld"; then
 3163     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 3164   else
 3165     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 3166     case $host_os in
 3167       sco3.2v5*)
 3168         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 3169 	;;
 3170     esac
 3171   fi
 3172   sys_lib_dlsearch_path_spec='/usr/lib'
 3173   ;;
 3174 
 3175 tpf*)
 3176   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 3177   version_type=linux # correct to gnu/linux during the next big refactor
 3178   need_lib_prefix=no
 3179   need_version=no
 3180   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3181   shlibpath_var=LD_LIBRARY_PATH
 3182   shlibpath_overrides_runpath=no
 3183   hardcode_into_libs=yes
 3184   ;;
 3185 
 3186 uts4*)
 3187   version_type=linux # correct to gnu/linux during the next big refactor
 3188   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3189   soname_spec='$libname$release$shared_ext$major'
 3190   shlibpath_var=LD_LIBRARY_PATH
 3191   ;;
 3192 
 3193 *)
 3194   dynamic_linker=no
 3195   ;;
 3196 esac
 3197 AC_MSG_RESULT([$dynamic_linker])
 3198 test no = "$dynamic_linker" && can_build_shared=no
 3199 
 3200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 3201 if test yes = "$GCC"; then
 3202   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 3203 fi
 3204 
 3205 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 3206   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 3207 fi
 3208 
 3209 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 3210   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 3211 fi
 3212 
 3213 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 3214 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 3215 
 3216 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 3217 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 3218 
 3219 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 3220 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 3221 
 3222 _LT_DECL([], [variables_saved_for_relink], [1],
 3223     [Variables whose values should be saved in libtool wrapper scripts and
 3224     restored at link time])
 3225 _LT_DECL([], [need_lib_prefix], [0],
 3226     [Do we need the "lib" prefix for modules?])
 3227 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 3228 _LT_DECL([], [version_type], [0], [Library versioning type])
 3229 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 3230 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 3231 _LT_DECL([], [shlibpath_overrides_runpath], [0],
 3232     [Is shlibpath searched before the hard-coded library search path?])
 3233 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 3234 _LT_DECL([], [library_names_spec], [1],
 3235     [[List of archive names.  First name is the real one, the rest are links.
 3236     The last name is the one that the linker finds with -lNAME]])
 3237 _LT_DECL([], [soname_spec], [1],
 3238     [[The coded name of the library, if different from the real name]])
 3239 _LT_DECL([], [install_override_mode], [1],
 3240     [Permission mode override for installation of shared libraries])
 3241 _LT_DECL([], [postinstall_cmds], [2],
 3242     [Command to use after installation of a shared archive])
 3243 _LT_DECL([], [postuninstall_cmds], [2],
 3244     [Command to use after uninstallation of a shared archive])
 3245 _LT_DECL([], [finish_cmds], [2],
 3246     [Commands used to finish a libtool library installation in a directory])
 3247 _LT_DECL([], [finish_eval], [1],
 3248     [[As "finish_cmds", except a single script fragment to be evaled but
 3249     not shown]])
 3250 _LT_DECL([], [hardcode_into_libs], [0],
 3251     [Whether we should hardcode library paths into libraries])
 3252 _LT_DECL([], [sys_lib_search_path_spec], [2],
 3253     [Compile-time system search path for libraries])
 3254 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
 3255     [Detected run-time system search path for libraries])
 3256 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
 3257     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
 3258 ])# _LT_SYS_DYNAMIC_LINKER
 3259 
 3260 
 3261 # _LT_PATH_TOOL_PREFIX(TOOL)
 3262 # --------------------------
 3263 # find a file program that can recognize shared library
 3264 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 3265 [m4_require([_LT_DECL_EGREP])dnl
 3266 AC_MSG_CHECKING([for $1])
 3267 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 3268 [case $MAGIC_CMD in
 3269 [[\\/*] |  ?:[\\/]*])
 3270   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 3271   ;;
 3272 *)
 3273   lt_save_MAGIC_CMD=$MAGIC_CMD
 3274   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3275 dnl $ac_dummy forces splitting on constant user-supplied paths.
 3276 dnl POSIX.2 word splitting is done only on the output of word expansions,
 3277 dnl not every word.  This closes a longstanding sh security hole.
 3278   ac_dummy="m4_if([$2], , $PATH, [$2])"
 3279   for ac_dir in $ac_dummy; do
 3280     IFS=$lt_save_ifs
 3281     test -z "$ac_dir" && ac_dir=.
 3282     if test -f "$ac_dir/$1"; then
 3283       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
 3284       if test -n "$file_magic_test_file"; then
 3285 	case $deplibs_check_method in
 3286 	"file_magic "*)
 3287 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 3288 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3289 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 3290 	    $EGREP "$file_magic_regex" > /dev/null; then
 3291 	    :
 3292 	  else
 3293 	    cat <<_LT_EOF 1>&2
 3294 
 3295 *** Warning: the command libtool uses to detect shared libraries,
 3296 *** $file_magic_cmd, produces output that libtool cannot recognize.
 3297 *** The result is that libtool may fail to recognize shared libraries
 3298 *** as such.  This will affect the creation of libtool libraries that
 3299 *** depend on shared libraries, but programs linked with such libtool
 3300 *** libraries will work regardless of this problem.  Nevertheless, you
 3301 *** may want to report the problem to your system manager and/or to
 3302 *** bug-libtool@gnu.org
 3303 
 3304 _LT_EOF
 3305 	  fi ;;
 3306 	esac
 3307       fi
 3308       break
 3309     fi
 3310   done
 3311   IFS=$lt_save_ifs
 3312   MAGIC_CMD=$lt_save_MAGIC_CMD
 3313   ;;
 3314 esac])
 3315 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3316 if test -n "$MAGIC_CMD"; then
 3317   AC_MSG_RESULT($MAGIC_CMD)
 3318 else
 3319   AC_MSG_RESULT(no)
 3320 fi
 3321 _LT_DECL([], [MAGIC_CMD], [0],
 3322 	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 3323 ])# _LT_PATH_TOOL_PREFIX
 3324 
 3325 # Old name:
 3326 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 3327 dnl aclocal-1.4 backwards compatibility:
 3328 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 3329 
 3330 
 3331 # _LT_PATH_MAGIC
 3332 # --------------
 3333 # find a file program that can recognize a shared library
 3334 m4_defun([_LT_PATH_MAGIC],
 3335 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 3336 if test -z "$lt_cv_path_MAGIC_CMD"; then
 3337   if test -n "$ac_tool_prefix"; then
 3338     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 3339   else
 3340     MAGIC_CMD=:
 3341   fi
 3342 fi
 3343 ])# _LT_PATH_MAGIC
 3344 
 3345 
 3346 # LT_PATH_LD
 3347 # ----------
 3348 # find the pathname to the GNU or non-GNU linker
 3349 AC_DEFUN([LT_PATH_LD],
 3350 [AC_REQUIRE([AC_PROG_CC])dnl
 3351 AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3352 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 3353 m4_require([_LT_DECL_SED])dnl
 3354 m4_require([_LT_DECL_EGREP])dnl
 3355 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 3356 
 3357 AC_ARG_WITH([gnu-ld],
 3358     [AS_HELP_STRING([--with-gnu-ld],
 3359 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
 3360     [test no = "$withval" || with_gnu_ld=yes],
 3361     [with_gnu_ld=no])dnl
 3362 
 3363 ac_prog=ld
 3364 if test yes = "$GCC"; then
 3365   # Check if gcc -print-prog-name=ld gives a path.
 3366   AC_MSG_CHECKING([for ld used by $CC])
 3367   case $host in
 3368   *-*-mingw*)
 3369     # gcc leaves a trailing carriage return, which upsets mingw
 3370     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 3371   *)
 3372     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 3373   esac
 3374   case $ac_prog in
 3375     # Accept absolute paths.
 3376     [[\\/]]* | ?:[[\\/]]*)
 3377       re_direlt='/[[^/]][[^/]]*/\.\./'
 3378       # Canonicalize the pathname of ld
 3379       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 3380       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 3381 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 3382       done
 3383       test -z "$LD" && LD=$ac_prog
 3384       ;;
 3385   "")
 3386     # If it fails, then pretend we aren't using GCC.
 3387     ac_prog=ld
 3388     ;;
 3389   *)
 3390     # If it is relative, then search for the first ld in PATH.
 3391     with_gnu_ld=unknown
 3392     ;;
 3393   esac
 3394 elif test yes = "$with_gnu_ld"; then
 3395   AC_MSG_CHECKING([for GNU ld])
 3396 else
 3397   AC_MSG_CHECKING([for non-GNU ld])
 3398 fi
 3399 AC_CACHE_VAL(lt_cv_path_LD,
 3400 [if test -z "$LD"; then
 3401   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3402   for ac_dir in $PATH; do
 3403     IFS=$lt_save_ifs
 3404     test -z "$ac_dir" && ac_dir=.
 3405     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 3406       lt_cv_path_LD=$ac_dir/$ac_prog
 3407       # Check to see if the program is GNU ld.  I'd rather use --version,
 3408       # but apparently some variants of GNU ld only accept -v.
 3409       # Break only if it was the GNU/non-GNU ld that we prefer.
 3410       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 3411       *GNU* | *'with BFD'*)
 3412 	test no != "$with_gnu_ld" && break
 3413 	;;
 3414       *)
 3415 	test yes != "$with_gnu_ld" && break
 3416 	;;
 3417       esac
 3418     fi
 3419   done
 3420   IFS=$lt_save_ifs
 3421 else
 3422   lt_cv_path_LD=$LD # Let the user override the test with a path.
 3423 fi])
 3424 LD=$lt_cv_path_LD
 3425 if test -n "$LD"; then
 3426   AC_MSG_RESULT($LD)
 3427 else
 3428   AC_MSG_RESULT(no)
 3429 fi
 3430 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 3431 _LT_PATH_LD_GNU
 3432 AC_SUBST([LD])
 3433 
 3434 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 3435 ])# LT_PATH_LD
 3436 
 3437 # Old names:
 3438 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 3439 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 3440 dnl aclocal-1.4 backwards compatibility:
 3441 dnl AC_DEFUN([AM_PROG_LD], [])
 3442 dnl AC_DEFUN([AC_PROG_LD], [])
 3443 
 3444 
 3445 # _LT_PATH_LD_GNU
 3446 #- --------------
 3447 m4_defun([_LT_PATH_LD_GNU],
 3448 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 3449 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
 3450 case `$LD -v 2>&1 </dev/null` in
 3451 *GNU* | *'with BFD'*)
 3452   lt_cv_prog_gnu_ld=yes
 3453   ;;
 3454 *)
 3455   lt_cv_prog_gnu_ld=no
 3456   ;;
 3457 esac])
 3458 with_gnu_ld=$lt_cv_prog_gnu_ld
 3459 ])# _LT_PATH_LD_GNU
 3460 
 3461 
 3462 # _LT_CMD_RELOAD
 3463 # --------------
 3464 # find reload flag for linker
 3465 #   -- PORTME Some linkers may need a different reload flag.
 3466 m4_defun([_LT_CMD_RELOAD],
 3467 [AC_CACHE_CHECK([for $LD option to reload object files],
 3468   lt_cv_ld_reload_flag,
 3469   [lt_cv_ld_reload_flag='-r'])
 3470 reload_flag=$lt_cv_ld_reload_flag
 3471 case $reload_flag in
 3472 "" | " "*) ;;
 3473 *) reload_flag=" $reload_flag" ;;
 3474 esac
 3475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3476 case $host_os in
 3477   cygwin* | mingw* | pw32* | cegcc*)
 3478     if test yes != "$GCC"; then
 3479       reload_cmds=false
 3480     fi
 3481     ;;
 3482   darwin*)
 3483     if test yes = "$GCC"; then
 3484       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 3485     else
 3486       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3487     fi
 3488     ;;
 3489 esac
 3490 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 3491 _LT_TAGDECL([], [reload_cmds], [2])dnl
 3492 ])# _LT_CMD_RELOAD
 3493 
 3494 
 3495 # _LT_PATH_DD
 3496 # -----------
 3497 # find a working dd
 3498 m4_defun([_LT_PATH_DD],
 3499 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
 3500 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3501 cat conftest.i conftest.i >conftest2.i
 3502 : ${lt_DD:=$DD}
 3503 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
 3504 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3505   cmp -s conftest.i conftest.out \
 3506   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 3507 fi])
 3508 rm -f conftest.i conftest2.i conftest.out])
 3509 ])# _LT_PATH_DD
 3510 
 3511 
 3512 # _LT_CMD_TRUNCATE
 3513 # ----------------
 3514 # find command to truncate a binary pipe
 3515 m4_defun([_LT_CMD_TRUNCATE],
 3516 [m4_require([_LT_PATH_DD])
 3517 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
 3518 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3519 cat conftest.i conftest.i >conftest2.i
 3520 lt_cv_truncate_bin=
 3521 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3522   cmp -s conftest.i conftest.out \
 3523   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 3524 fi
 3525 rm -f conftest.i conftest2.i conftest.out
 3526 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
 3527 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
 3528   [Command to truncate a binary pipe])
 3529 ])# _LT_CMD_TRUNCATE
 3530 
 3531 
 3532 # _LT_CHECK_MAGIC_METHOD
 3533 # ----------------------
 3534 # how to check for library dependencies
 3535 #  -- PORTME fill in with the dynamic library characteristics
 3536 m4_defun([_LT_CHECK_MAGIC_METHOD],
 3537 [m4_require([_LT_DECL_EGREP])
 3538 m4_require([_LT_DECL_OBJDUMP])
 3539 AC_CACHE_CHECK([how to recognize dependent libraries],
 3540 lt_cv_deplibs_check_method,
 3541 [lt_cv_file_magic_cmd='$MAGIC_CMD'
 3542 lt_cv_file_magic_test_file=
 3543 lt_cv_deplibs_check_method='unknown'
 3544 # Need to set the preceding variable on all platforms that support
 3545 # interlibrary dependencies.
 3546 # 'none' -- dependencies not supported.
 3547 # 'unknown' -- same as none, but documents that we really don't know.
 3548 # 'pass_all' -- all dependencies passed with no checks.
 3549 # 'test_compile' -- check by making test program.
 3550 # 'file_magic [[regex]]' -- check by looking for files in library path
 3551 # that responds to the $file_magic_cmd with a given extended regex.
 3552 # If you have 'file' or equivalent on your system and you're not sure
 3553 # whether 'pass_all' will *always* work, you probably want this one.
 3554 
 3555 case $host_os in
 3556 aix[[4-9]]*)
 3557   lt_cv_deplibs_check_method=pass_all
 3558   ;;
 3559 
 3560 beos*)
 3561   lt_cv_deplibs_check_method=pass_all
 3562   ;;
 3563 
 3564 bsdi[[45]]*)
 3565   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 3566   lt_cv_file_magic_cmd='$FILECMD -L'
 3567   lt_cv_file_magic_test_file=/shlib/libc.so
 3568   ;;
 3569 
 3570 cygwin*)
 3571   # func_win32_libid is a shell function defined in ltmain.sh
 3572   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3573   lt_cv_file_magic_cmd='func_win32_libid'
 3574   ;;
 3575 
 3576 mingw* | pw32*)
 3577   # Base MSYS/MinGW do not provide the 'file' command needed by
 3578   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 3579   # unless we find 'file', for example because we are cross-compiling.
 3580   if ( file / ) >/dev/null 2>&1; then
 3581     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3582     lt_cv_file_magic_cmd='func_win32_libid'
 3583   else
 3584     # Keep this pattern in sync with the one in func_win32_libid.
 3585     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 3586     lt_cv_file_magic_cmd='$OBJDUMP -f'
 3587   fi
 3588   ;;
 3589 
 3590 cegcc*)
 3591   # use the weaker test based on 'objdump'. See mingw*.
 3592   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 3593   lt_cv_file_magic_cmd='$OBJDUMP -f'
 3594   ;;
 3595 
 3596 darwin* | rhapsody*)
 3597   lt_cv_deplibs_check_method=pass_all
 3598   ;;
 3599 
 3600 freebsd* | dragonfly* | midnightbsd*)
 3601   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3602     case $host_cpu in
 3603     i*86 )
 3604       # Not sure whether the presence of OpenBSD here was a mistake.
 3605       # Let's accept both of them until this is cleared up.
 3606       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 3607       lt_cv_file_magic_cmd=$FILECMD
 3608       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 3609       ;;
 3610     esac
 3611   else
 3612     lt_cv_deplibs_check_method=pass_all
 3613   fi
 3614   ;;
 3615 
 3616 haiku*)
 3617   lt_cv_deplibs_check_method=pass_all
 3618   ;;
 3619 
 3620 hpux10.20* | hpux11*)
 3621   lt_cv_file_magic_cmd=$FILECMD
 3622   case $host_cpu in
 3623   ia64*)
 3624     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 3625     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 3626     ;;
 3627   hppa*64*)
 3628     [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]']
 3629     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 3630     ;;
 3631   *)
 3632     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 3633     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 3634     ;;
 3635   esac
 3636   ;;
 3637 
 3638 interix[[3-9]]*)
 3639   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 3640   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 3641   ;;
 3642 
 3643 irix5* | irix6* | nonstopux*)
 3644   case $LD in
 3645   *-32|*"-32 ") libmagic=32-bit;;
 3646   *-n32|*"-n32 ") libmagic=N32;;
 3647   *-64|*"-64 ") libmagic=64-bit;;
 3648   *) libmagic=never-match;;
 3649   esac
 3650   lt_cv_deplibs_check_method=pass_all
 3651   ;;
 3652 
 3653 # This must be glibc/ELF.
 3654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 3655   lt_cv_deplibs_check_method=pass_all
 3656   ;;
 3657 
 3658 netbsd*)
 3659   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3660     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3661   else
 3662     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 3663   fi
 3664   ;;
 3665 
 3666 newos6*)
 3667   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 3668   lt_cv_file_magic_cmd=$FILECMD
 3669   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 3670   ;;
 3671 
 3672 *nto* | *qnx*)
 3673   lt_cv_deplibs_check_method=pass_all
 3674   ;;
 3675 
 3676 openbsd* | bitrig*)
 3677   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 3678     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 3679   else
 3680     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3681   fi
 3682   ;;
 3683 
 3684 osf3* | osf4* | osf5*)
 3685   lt_cv_deplibs_check_method=pass_all
 3686   ;;
 3687 
 3688 rdos*)
 3689   lt_cv_deplibs_check_method=pass_all
 3690   ;;
 3691 
 3692 solaris*)
 3693   lt_cv_deplibs_check_method=pass_all
 3694   ;;
 3695 
 3696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3697   lt_cv_deplibs_check_method=pass_all
 3698   ;;
 3699 
 3700 sysv4 | sysv4.3*)
 3701   case $host_vendor in
 3702   motorola)
 3703     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]]'
 3704     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 3705     ;;
 3706   ncr)
 3707     lt_cv_deplibs_check_method=pass_all
 3708     ;;
 3709   sequent)
 3710     lt_cv_file_magic_cmd='/bin/file'
 3711     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 3712     ;;
 3713   sni)
 3714     lt_cv_file_magic_cmd='/bin/file'
 3715     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 3716     lt_cv_file_magic_test_file=/lib/libc.so
 3717     ;;
 3718   siemens)
 3719     lt_cv_deplibs_check_method=pass_all
 3720     ;;
 3721   pc)
 3722     lt_cv_deplibs_check_method=pass_all
 3723     ;;
 3724   esac
 3725   ;;
 3726 
 3727 tpf*)
 3728   lt_cv_deplibs_check_method=pass_all
 3729   ;;
 3730 os2*)
 3731   lt_cv_deplibs_check_method=pass_all
 3732   ;;
 3733 esac
 3734 ])
 3735 
 3736 file_magic_glob=
 3737 want_nocaseglob=no
 3738 if test "$build" = "$host"; then
 3739   case $host_os in
 3740   mingw* | pw32*)
 3741     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 3742       want_nocaseglob=yes
 3743     else
 3744       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 3745     fi
 3746     ;;
 3747   esac
 3748 fi
 3749 
 3750 file_magic_cmd=$lt_cv_file_magic_cmd
 3751 deplibs_check_method=$lt_cv_deplibs_check_method
 3752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 3753 
 3754 _LT_DECL([], [deplibs_check_method], [1],
 3755     [Method to check whether dependent libraries are shared objects])
 3756 _LT_DECL([], [file_magic_cmd], [1],
 3757     [Command to use when deplibs_check_method = "file_magic"])
 3758 _LT_DECL([], [file_magic_glob], [1],
 3759     [How to find potential files when deplibs_check_method = "file_magic"])
 3760 _LT_DECL([], [want_nocaseglob], [1],
 3761     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 3762 ])# _LT_CHECK_MAGIC_METHOD
 3763 
 3764 
 3765 # LT_PATH_NM
 3766 # ----------
 3767 # find the pathname to a BSD- or MS-compatible name lister
 3768 AC_DEFUN([LT_PATH_NM],
 3769 [AC_REQUIRE([AC_PROG_CC])dnl
 3770 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 3771 [if test -n "$NM"; then
 3772   # Let the user override the test.
 3773   lt_cv_path_NM=$NM
 3774 else
 3775   lt_nm_to_check=${ac_tool_prefix}nm
 3776   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 3777     lt_nm_to_check="$lt_nm_to_check nm"
 3778   fi
 3779   for lt_tmp_nm in $lt_nm_to_check; do
 3780     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3781     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 3782       IFS=$lt_save_ifs
 3783       test -z "$ac_dir" && ac_dir=.
 3784       tmp_nm=$ac_dir/$lt_tmp_nm
 3785       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 3786 	# Check to see if the nm accepts a BSD-compat flag.
 3787 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 3788 	#   nm: unknown option "B" ignored
 3789 	# Tru64's nm complains that /dev/null is an invalid object file
 3790 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 3791 	case $build_os in
 3792 	mingw*) lt_bad_file=conftest.nm/nofile ;;
 3793 	*) lt_bad_file=/dev/null ;;
 3794 	esac
 3795 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
 3796 	*$lt_bad_file* | *'Invalid file or object type'*)
 3797 	  lt_cv_path_NM="$tmp_nm -B"
 3798 	  break 2
 3799 	  ;;
 3800 	*)
 3801 	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
 3802 	  */dev/null*)
 3803 	    lt_cv_path_NM="$tmp_nm -p"
 3804 	    break 2
 3805 	    ;;
 3806 	  *)
 3807 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 3808 	    continue # so that we can try to find one that supports BSD flags
 3809 	    ;;
 3810 	  esac
 3811 	  ;;
 3812 	esac
 3813       fi
 3814     done
 3815     IFS=$lt_save_ifs
 3816   done
 3817   : ${lt_cv_path_NM=no}
 3818 fi])
 3819 if test no != "$lt_cv_path_NM"; then
 3820   NM=$lt_cv_path_NM
 3821 else
 3822   # Didn't find any BSD compatible name lister, look for dumpbin.
 3823   if test -n "$DUMPBIN"; then :
 3824     # Let the user override the test.
 3825   else
 3826     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 3827     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
 3828     *COFF*)
 3829       DUMPBIN="$DUMPBIN -symbols -headers"
 3830       ;;
 3831     *)
 3832       DUMPBIN=:
 3833       ;;
 3834     esac
 3835   fi
 3836   AC_SUBST([DUMPBIN])
 3837   if test : != "$DUMPBIN"; then
 3838     NM=$DUMPBIN
 3839   fi
 3840 fi
 3841 test -z "$NM" && NM=nm
 3842 AC_SUBST([NM])
 3843 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 3844 
 3845 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 3846   [lt_cv_nm_interface="BSD nm"
 3847   echo "int some_variable = 0;" > conftest.$ac_ext
 3848   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 3849   (eval "$ac_compile" 2>conftest.err)
 3850   cat conftest.err >&AS_MESSAGE_LOG_FD
 3851   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 3852   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 3853   cat conftest.err >&AS_MESSAGE_LOG_FD
 3854   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 3855   cat conftest.out >&AS_MESSAGE_LOG_FD
 3856   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 3857     lt_cv_nm_interface="MS dumpbin"
 3858   fi
 3859   rm -f conftest*])
 3860 ])# LT_PATH_NM
 3861 
 3862 # Old names:
 3863 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 3864 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 3865 dnl aclocal-1.4 backwards compatibility:
 3866 dnl AC_DEFUN([AM_PROG_NM], [])
 3867 dnl AC_DEFUN([AC_PROG_NM], [])
 3868 
 3869 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3870 # --------------------------------
 3871 # how to determine the name of the shared library
 3872 # associated with a specific link library.
 3873 #  -- PORTME fill in with the dynamic library characteristics
 3874 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 3875 [m4_require([_LT_DECL_EGREP])
 3876 m4_require([_LT_DECL_OBJDUMP])
 3877 m4_require([_LT_DECL_DLLTOOL])
 3878 AC_CACHE_CHECK([how to associate runtime and link libraries],
 3879 lt_cv_sharedlib_from_linklib_cmd,
 3880 [lt_cv_sharedlib_from_linklib_cmd='unknown'
 3881 
 3882 case $host_os in
 3883 cygwin* | mingw* | pw32* | cegcc*)
 3884   # two different shell functions defined in ltmain.sh;
 3885   # decide which one to use based on capabilities of $DLLTOOL
 3886   case `$DLLTOOL --help 2>&1` in
 3887   *--identify-strict*)
 3888     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 3889     ;;
 3890   *)
 3891     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 3892     ;;
 3893   esac
 3894   ;;
 3895 *)
 3896   # fallback: assume linklib IS sharedlib
 3897   lt_cv_sharedlib_from_linklib_cmd=$ECHO
 3898   ;;
 3899 esac
 3900 ])
 3901 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 3902 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 3903 
 3904 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 3905     [Command to associate shared and link libraries])
 3906 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3907 
 3908 
 3909 # _LT_PATH_MANIFEST_TOOL
 3910 # ----------------------
 3911 # locate the manifest tool
 3912 m4_defun([_LT_PATH_MANIFEST_TOOL],
 3913 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 3914 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 3915 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 3916   [lt_cv_path_mainfest_tool=no
 3917   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 3918   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 3919   cat conftest.err >&AS_MESSAGE_LOG_FD
 3920   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 3921     lt_cv_path_mainfest_tool=yes
 3922   fi
 3923   rm -f conftest*])
 3924 if test yes != "$lt_cv_path_mainfest_tool"; then
 3925   MANIFEST_TOOL=:
 3926 fi
 3927 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 3928 ])# _LT_PATH_MANIFEST_TOOL
 3929 
 3930 
 3931 # _LT_DLL_DEF_P([FILE])
 3932 # ---------------------
 3933 # True iff FILE is a Windows DLL '.def' file.
 3934 # Keep in sync with func_dll_def_p in the libtool script
 3935 AC_DEFUN([_LT_DLL_DEF_P],
 3936 [dnl
 3937   test DEF = "`$SED -n dnl
 3938     -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
 3939     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
 3940     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
 3941     -e q dnl                          Only consider the first "real" line
 3942     $1`" dnl
 3943 ])# _LT_DLL_DEF_P
 3944 
 3945 
 3946 # LT_LIB_M
 3947 # --------
 3948 # check for math library
 3949 AC_DEFUN([LT_LIB_M],
 3950 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3951 LIBM=
 3952 case $host in
 3953 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 3954   # These system don't have libm, or don't need it
 3955   ;;
 3956 *-ncr-sysv4.3*)
 3957   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
 3958   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 3959   ;;
 3960 *)
 3961   AC_CHECK_LIB(m, cos, LIBM=-lm)
 3962   ;;
 3963 esac
 3964 AC_SUBST([LIBM])
 3965 ])# LT_LIB_M
 3966 
 3967 # Old name:
 3968 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 3969 dnl aclocal-1.4 backwards compatibility:
 3970 dnl AC_DEFUN([AC_CHECK_LIBM], [])
 3971 
 3972 
 3973 # _LT_COMPILER_NO_RTTI([TAGNAME])
 3974 # -------------------------------
 3975 m4_defun([_LT_COMPILER_NO_RTTI],
 3976 [m4_require([_LT_TAG_COMPILER])dnl
 3977 
 3978 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 3979 
 3980 if test yes = "$GCC"; then
 3981   case $cc_basename in
 3982   nvcc*)
 3983     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 3984   *)
 3985     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 3986   esac
 3987 
 3988   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 3989     lt_cv_prog_compiler_rtti_exceptions,
 3990     [-fno-rtti -fno-exceptions], [],
 3991     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 3992 fi
 3993 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 3994 	[Compiler flag to turn off builtin functions])
 3995 ])# _LT_COMPILER_NO_RTTI
 3996 
 3997 
 3998 # _LT_CMD_GLOBAL_SYMBOLS
 3999 # ----------------------
 4000 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 4001 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 4002 AC_REQUIRE([AC_PROG_CC])dnl
 4003 AC_REQUIRE([AC_PROG_AWK])dnl
 4004 AC_REQUIRE([LT_PATH_NM])dnl
 4005 AC_REQUIRE([LT_PATH_LD])dnl
 4006 m4_require([_LT_DECL_SED])dnl
 4007 m4_require([_LT_DECL_EGREP])dnl
 4008 m4_require([_LT_TAG_COMPILER])dnl
 4009 
 4010 # Check for command to grab the raw symbol name followed by C symbol from nm.
 4011 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 4012 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 4013 [
 4014 # These are sane defaults that work on at least a few old systems.
 4015 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 4016 
 4017 # Character class describing NM global symbol codes.
 4018 symcode='[[BCDEGRST]]'
 4019 
 4020 # Regexp to match symbols that can be accessed directly from C.
 4021 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 4022 
 4023 # Define system-specific variables.
 4024 case $host_os in
 4025 aix*)
 4026   symcode='[[BCDT]]'
 4027   ;;
 4028 cygwin* | mingw* | pw32* | cegcc*)
 4029   symcode='[[ABCDGISTW]]'
 4030   ;;
 4031 hpux*)
 4032   if test ia64 = "$host_cpu"; then
 4033     symcode='[[ABCDEGRST]]'
 4034   fi
 4035   ;;
 4036 irix* | nonstopux*)
 4037   symcode='[[BCDEGRST]]'
 4038   ;;
 4039 osf*)
 4040   symcode='[[BCDEGQRST]]'
 4041   ;;
 4042 solaris*)
 4043   symcode='[[BDRT]]'
 4044   ;;
 4045 sco3.2v5*)
 4046   symcode='[[DT]]'
 4047   ;;
 4048 sysv4.2uw2*)
 4049   symcode='[[DT]]'
 4050   ;;
 4051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
 4052   symcode='[[ABDT]]'
 4053   ;;
 4054 sysv4)
 4055   symcode='[[DFNSTU]]'
 4056   ;;
 4057 esac
 4058 
 4059 # If we're using GNU nm, then use its standard symbol codes.
 4060 case `$NM -V 2>&1` in
 4061 *GNU* | *'with BFD'*)
 4062   symcode='[[ABCDGIRSTW]]' ;;
 4063 esac
 4064 
 4065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4066   # Gets list of data symbols to import.
 4067   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
 4068   # Adjust the below global symbol transforms to fixup imported variables.
 4069   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 4070   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 4071   lt_c_name_lib_hook="\
 4072   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 4073   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 4074 else
 4075   # Disable hooks by default.
 4076   lt_cv_sys_global_symbol_to_import=
 4077   lt_cdecl_hook=
 4078   lt_c_name_hook=
 4079   lt_c_name_lib_hook=
 4080 fi
 4081 
 4082 # Transform an extracted symbol line into a proper C declaration.
 4083 # Some systems (esp. on ia64) link data and code symbols differently,
 4084 # so use this general approach.
 4085 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
 4086 $lt_cdecl_hook\
 4087 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 4088 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 4089 
 4090 # Transform an extracted symbol line into symbol name and symbol address
 4091 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
 4092 $lt_c_name_hook\
 4093 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4094 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 4095 
 4096 # Transform an extracted symbol line into symbol name with lib prefix and
 4097 # symbol address.
 4098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
 4099 $lt_c_name_lib_hook\
 4100 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4101 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 4102 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 4103 
 4104 # Handle CRLF in mingw tool chain
 4105 opt_cr=
 4106 case $build_os in
 4107 mingw*)
 4108   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 4109   ;;
 4110 esac
 4111 
 4112 # Try without a prefix underscore, then with it.
 4113 for ac_symprfx in "" "_"; do
 4114 
 4115   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 4116   symxfrm="\\1 $ac_symprfx\\2 \\2"
 4117 
 4118   # Write the raw and C identifiers.
 4119   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4120     # Fake it for dumpbin and say T for any non-static function,
 4121     # D for any global variable and I for any imported variable.
 4122     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
 4123     # which start with @ or ?.
 4124     lt_cv_sys_global_symbol_pipe="$AWK ['"\
 4125 "     {last_section=section; section=\$ 3};"\
 4126 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 4127 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 4128 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 4129 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 4130 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 4131 "     \$ 0!~/External *\|/{next};"\
 4132 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 4133 "     {if(hide[section]) next};"\
 4134 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 4135 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 4136 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 4137 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 4138 "     ' prfx=^$ac_symprfx]"
 4139   else
 4140     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 4141   fi
 4142   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
 4143 
 4144   # Check to see that the pipe works correctly.
 4145   pipe_works=no
 4146 
 4147   rm -f conftest*
 4148   cat > conftest.$ac_ext <<_LT_EOF
 4149 #ifdef __cplusplus
 4150 extern "C" {
 4151 #endif
 4152 char nm_test_var;
 4153 void nm_test_func(void);
 4154 void nm_test_func(void){}
 4155 #ifdef __cplusplus
 4156 }
 4157 #endif
 4158 int main(){nm_test_var='a';nm_test_func();return(0);}
 4159 _LT_EOF
 4160 
 4161   if AC_TRY_EVAL(ac_compile); then
 4162     # Now try to grab the symbols.
 4163     nlist=conftest.nm
 4164     if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 4165       # Try sorting and uniquifying the output.
 4166       if sort "$nlist" | uniq > "$nlist"T; then
 4167 	mv -f "$nlist"T "$nlist"
 4168       else
 4169 	rm -f "$nlist"T
 4170       fi
 4171 
 4172       # Make sure that we snagged all the symbols we need.
 4173       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 4174 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 4175 	  cat <<_LT_EOF > conftest.$ac_ext
 4176 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 4177 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 4178 /* DATA imports from DLLs on WIN32 can't be const, because runtime
 4179    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 4180 # define LT@&t@_DLSYM_CONST
 4181 #elif defined __osf__
 4182 /* This system does not cope well with relocations in const data.  */
 4183 # define LT@&t@_DLSYM_CONST
 4184 #else
 4185 # define LT@&t@_DLSYM_CONST const
 4186 #endif
 4187 
 4188 #ifdef __cplusplus
 4189 extern "C" {
 4190 #endif
 4191 
 4192 _LT_EOF
 4193 	  # Now generate the symbol file.
 4194 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 4195 
 4196 	  cat <<_LT_EOF >> conftest.$ac_ext
 4197 
 4198 /* The mapping between symbol names and symbols.  */
 4199 LT@&t@_DLSYM_CONST struct {
 4200   const char *name;
 4201   void       *address;
 4202 }
 4203 lt__PROGRAM__LTX_preloaded_symbols[[]] =
 4204 {
 4205   { "@PROGRAM@", (void *) 0 },
 4206 _LT_EOF
 4207 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 4208 	  cat <<\_LT_EOF >> conftest.$ac_ext
 4209   {0, (void *) 0}
 4210 };
 4211 
 4212 /* This works around a problem in FreeBSD linker */
 4213 #ifdef FREEBSD_WORKAROUND
 4214 static const void *lt_preloaded_setup() {
 4215   return lt__PROGRAM__LTX_preloaded_symbols;
 4216 }
 4217 #endif
 4218 
 4219 #ifdef __cplusplus
 4220 }
 4221 #endif
 4222 _LT_EOF
 4223 	  # Now try linking the two files.
 4224 	  mv conftest.$ac_objext conftstm.$ac_objext
 4225 	  lt_globsym_save_LIBS=$LIBS
 4226 	  lt_globsym_save_CFLAGS=$CFLAGS
 4227 	  LIBS=conftstm.$ac_objext
 4228 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 4229 	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
 4230 	    pipe_works=yes
 4231 	  fi
 4232 	  LIBS=$lt_globsym_save_LIBS
 4233 	  CFLAGS=$lt_globsym_save_CFLAGS
 4234 	else
 4235 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 4236 	fi
 4237       else
 4238 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 4239       fi
 4240     else
 4241       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 4242     fi
 4243   else
 4244     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 4245     cat conftest.$ac_ext >&5
 4246   fi
 4247   rm -rf conftest* conftst*
 4248 
 4249   # Do not use the global_symbol_pipe unless it works.
 4250   if test yes = "$pipe_works"; then
 4251     break
 4252   else
 4253     lt_cv_sys_global_symbol_pipe=
 4254   fi
 4255 done
 4256 ])
 4257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 4258   lt_cv_sys_global_symbol_to_cdecl=
 4259 fi
 4260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 4261   AC_MSG_RESULT(failed)
 4262 else
 4263   AC_MSG_RESULT(ok)
 4264 fi
 4265 
 4266 # Response file support.
 4267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4268   nm_file_list_spec='@'
 4269 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 4270   nm_file_list_spec='@'
 4271 fi
 4272 
 4273 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 4274     [Take the output of nm and produce a listing of raw symbols and C names])
 4275 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 4276     [Transform the output of nm in a proper C declaration])
 4277 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
 4278     [Transform the output of nm into a list of symbols to manually relocate])
 4279 _LT_DECL([global_symbol_to_c_name_address],
 4280     [lt_cv_sys_global_symbol_to_c_name_address], [1],
 4281     [Transform the output of nm in a C name address pair])
 4282 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 4283     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 4284     [Transform the output of nm in a C name address pair when lib prefix is needed])
 4285 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
 4286     [The name lister interface])
 4287 _LT_DECL([], [nm_file_list_spec], [1],
 4288     [Specify filename containing input files for $NM])
 4289 ]) # _LT_CMD_GLOBAL_SYMBOLS
 4290 
 4291 
 4292 # _LT_COMPILER_PIC([TAGNAME])
 4293 # ---------------------------
 4294 m4_defun([_LT_COMPILER_PIC],
 4295 [m4_require([_LT_TAG_COMPILER])dnl
 4296 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
 4297 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4298 _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4299 
 4300 m4_if([$1], [CXX], [
 4301   # C++ specific cases for pic, static, wl, etc.
 4302   if test yes = "$GXX"; then
 4303     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4304     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4305 
 4306     case $host_os in
 4307     aix*)
 4308       # All AIX code is PIC.
 4309       if test ia64 = "$host_cpu"; then
 4310 	# AIX 5 now supports IA64 processor
 4311 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4312       fi
 4313       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4314       ;;
 4315 
 4316     amigaos*)
 4317       case $host_cpu in
 4318       powerpc)
 4319             # see comment about AmigaOS4 .so support
 4320             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4321         ;;
 4322       m68k)
 4323             # FIXME: we need at least 68020 code to build shared libraries, but
 4324             # adding the '-m68020' flag to GCC prevents building anything better,
 4325             # like '-m68040'.
 4326             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4327         ;;
 4328       esac
 4329       ;;
 4330 
 4331     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4332       # PIC is the default for these OSes.
 4333       ;;
 4334     mingw* | cygwin* | os2* | pw32* | cegcc*)
 4335       # This hack is so that the source file can tell whether it is being
 4336       # built for inclusion in a dll (and should export symbols for example).
 4337       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4338       # (--disable-auto-import) libraries
 4339       m4_if([$1], [GCJ], [],
 4340 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4341       case $host_os in
 4342       os2*)
 4343 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4344 	;;
 4345       esac
 4346       ;;
 4347     darwin* | rhapsody*)
 4348       # PIC is the default on this platform
 4349       # Common symbols not allowed in MH_DYLIB files
 4350       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4351       ;;
 4352     *djgpp*)
 4353       # DJGPP does not support shared libraries at all
 4354       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4355       ;;
 4356     haiku*)
 4357       # PIC is the default for Haiku.
 4358       # The "-static" flag exists, but is broken.
 4359       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4360       ;;
 4361     interix[[3-9]]*)
 4362       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4363       # Instead, we relocate shared libraries at runtime.
 4364       ;;
 4365     sysv4*MP*)
 4366       if test -d /usr/nec; then
 4367 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4368       fi
 4369       ;;
 4370     hpux*)
 4371       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4372       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4373       # sets the default TLS model and affects inlining.
 4374       case $host_cpu in
 4375       hppa*64*)
 4376 	;;
 4377       *)
 4378 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4379 	;;
 4380       esac
 4381       ;;
 4382     *qnx* | *nto*)
 4383       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4384       # it will coredump.
 4385       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4386       ;;
 4387     *)
 4388       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4389       ;;
 4390     esac
 4391   else
 4392     case $host_os in
 4393       aix[[4-9]]*)
 4394 	# All AIX code is PIC.
 4395 	if test ia64 = "$host_cpu"; then
 4396 	  # AIX 5 now supports IA64 processor
 4397 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4398 	else
 4399 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4400 	fi
 4401 	;;
 4402       chorus*)
 4403 	case $cc_basename in
 4404 	cxch68*)
 4405 	  # Green Hills C++ Compiler
 4406 	  # _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"
 4407 	  ;;
 4408 	esac
 4409 	;;
 4410       mingw* | cygwin* | os2* | pw32* | cegcc*)
 4411 	# This hack is so that the source file can tell whether it is being
 4412 	# built for inclusion in a dll (and should export symbols for example).
 4413 	m4_if([$1], [GCJ], [],
 4414 	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4415 	;;
 4416       dgux*)
 4417 	case $cc_basename in
 4418 	  ec++*)
 4419 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4420 	    ;;
 4421 	  ghcx*)
 4422 	    # Green Hills C++ Compiler
 4423 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4424 	    ;;
 4425 	  *)
 4426 	    ;;
 4427 	esac
 4428 	;;
 4429       freebsd* | dragonfly* | midnightbsd*)
 4430 	# FreeBSD uses GNU C++
 4431 	;;
 4432       hpux9* | hpux10* | hpux11*)
 4433 	case $cc_basename in
 4434 	  CC*)
 4435 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4436 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4437 	    if test ia64 != "$host_cpu"; then
 4438 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4439 	    fi
 4440 	    ;;
 4441 	  aCC*)
 4442 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4443 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4444 	    case $host_cpu in
 4445 	    hppa*64*|ia64*)
 4446 	      # +Z the default
 4447 	      ;;
 4448 	    *)
 4449 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4450 	      ;;
 4451 	    esac
 4452 	    ;;
 4453 	  *)
 4454 	    ;;
 4455 	esac
 4456 	;;
 4457       interix*)
 4458 	# This is c89, which is MS Visual C++ (no shared libs)
 4459 	# Anyone wants to do a port?
 4460 	;;
 4461       irix5* | irix6* | nonstopux*)
 4462 	case $cc_basename in
 4463 	  CC*)
 4464 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4465 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4466 	    # CC pic flag -KPIC is the default.
 4467 	    ;;
 4468 	  *)
 4469 	    ;;
 4470 	esac
 4471 	;;
 4472       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4473 	case $cc_basename in
 4474 	  KCC*)
 4475 	    # KAI C++ Compiler
 4476 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4477 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4478 	    ;;
 4479 	  ecpc* )
 4480 	    # old Intel C++ for x86_64, which still supported -KPIC.
 4481 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4482 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4483 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4484 	    ;;
 4485 	  icpc* )
 4486 	    # Intel C++, used to be incompatible with GCC.
 4487 	    # ICC 10 doesn't accept -KPIC any more.
 4488 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4489 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4490 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4491 	    ;;
 4492 	  pgCC* | pgcpp*)
 4493 	    # Portland Group C++ compiler
 4494 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4495 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4496 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4497 	    ;;
 4498 	  cxx*)
 4499 	    # Compaq C++
 4500 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4501 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4502 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4503 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4504 	    ;;
 4505 	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 4506 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
 4507 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4508 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4509 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4510 	    ;;
 4511 	  *)
 4512 	    case `$CC -V 2>&1 | $SED 5q` in
 4513 	    *Sun\ C*)
 4514 	      # Sun C++ 5.9
 4515 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4516 	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4517 	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4518 	      ;;
 4519 	    esac
 4520 	    ;;
 4521 	esac
 4522 	;;
 4523       lynxos*)
 4524 	;;
 4525       m88k*)
 4526 	;;
 4527       mvs*)
 4528 	case $cc_basename in
 4529 	  cxx*)
 4530 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 4531 	    ;;
 4532 	  *)
 4533 	    ;;
 4534 	esac
 4535 	;;
 4536       netbsd*)
 4537 	;;
 4538       *qnx* | *nto*)
 4539         # QNX uses GNU C++, but need to define -shared option too, otherwise
 4540         # it will coredump.
 4541         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4542         ;;
 4543       osf3* | osf4* | osf5*)
 4544 	case $cc_basename in
 4545 	  KCC*)
 4546 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4547 	    ;;
 4548 	  RCC*)
 4549 	    # Rational C++ 2.4.1
 4550 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4551 	    ;;
 4552 	  cxx*)
 4553 	    # Digital/Compaq C++
 4554 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4555 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4556 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4557 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4558 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4559 	    ;;
 4560 	  *)
 4561 	    ;;
 4562 	esac
 4563 	;;
 4564       psos*)
 4565 	;;
 4566       solaris*)
 4567 	case $cc_basename in
 4568 	  CC* | sunCC*)
 4569 	    # Sun C++ 4.2, 5.x and Centerline C++
 4570 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4571 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4572 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4573 	    ;;
 4574 	  gcx*)
 4575 	    # Green Hills C++ Compiler
 4576 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4577 	    ;;
 4578 	  *)
 4579 	    ;;
 4580 	esac
 4581 	;;
 4582       sunos4*)
 4583 	case $cc_basename in
 4584 	  CC*)
 4585 	    # Sun C++ 4.x
 4586 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4587 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4588 	    ;;
 4589 	  lcc*)
 4590 	    # Lucid
 4591 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4592 	    ;;
 4593 	  *)
 4594 	    ;;
 4595 	esac
 4596 	;;
 4597       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4598 	case $cc_basename in
 4599 	  CC*)
 4600 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4601 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4602 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4603 	    ;;
 4604 	esac
 4605 	;;
 4606       tandem*)
 4607 	case $cc_basename in
 4608 	  NCC*)
 4609 	    # NonStop-UX NCC 3.20
 4610 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4611 	    ;;
 4612 	  *)
 4613 	    ;;
 4614 	esac
 4615 	;;
 4616       vxworks*)
 4617 	;;
 4618       *)
 4619 	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4620 	;;
 4621     esac
 4622   fi
 4623 ],
 4624 [
 4625   if test yes = "$GCC"; then
 4626     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4627     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4628 
 4629     case $host_os in
 4630       aix*)
 4631       # All AIX code is PIC.
 4632       if test ia64 = "$host_cpu"; then
 4633 	# AIX 5 now supports IA64 processor
 4634 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4635       fi
 4636       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4637       ;;
 4638 
 4639     amigaos*)
 4640       case $host_cpu in
 4641       powerpc)
 4642             # see comment about AmigaOS4 .so support
 4643             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4644         ;;
 4645       m68k)
 4646             # FIXME: we need at least 68020 code to build shared libraries, but
 4647             # adding the '-m68020' flag to GCC prevents building anything better,
 4648             # like '-m68040'.
 4649             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4650         ;;
 4651       esac
 4652       ;;
 4653 
 4654     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4655       # PIC is the default for these OSes.
 4656       ;;
 4657 
 4658     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4659       # This hack is so that the source file can tell whether it is being
 4660       # built for inclusion in a dll (and should export symbols for example).
 4661       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4662       # (--disable-auto-import) libraries
 4663       m4_if([$1], [GCJ], [],
 4664 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4665       case $host_os in
 4666       os2*)
 4667 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4668 	;;
 4669       esac
 4670       ;;
 4671 
 4672     darwin* | rhapsody*)
 4673       # PIC is the default on this platform
 4674       # Common symbols not allowed in MH_DYLIB files
 4675       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4676       ;;
 4677 
 4678     haiku*)
 4679       # PIC is the default for Haiku.
 4680       # The "-static" flag exists, but is broken.
 4681       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4682       ;;
 4683 
 4684     hpux*)
 4685       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4686       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4687       # sets the default TLS model and affects inlining.
 4688       case $host_cpu in
 4689       hppa*64*)
 4690 	# +Z the default
 4691 	;;
 4692       *)
 4693 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4694 	;;
 4695       esac
 4696       ;;
 4697 
 4698     interix[[3-9]]*)
 4699       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4700       # Instead, we relocate shared libraries at runtime.
 4701       ;;
 4702 
 4703     msdosdjgpp*)
 4704       # Just because we use GCC doesn't mean we suddenly get shared libraries
 4705       # on systems that don't support them.
 4706       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4707       enable_shared=no
 4708       ;;
 4709 
 4710     *nto* | *qnx*)
 4711       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4712       # it will coredump.
 4713       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4714       ;;
 4715 
 4716     sysv4*MP*)
 4717       if test -d /usr/nec; then
 4718 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4719       fi
 4720       ;;
 4721 
 4722     *)
 4723       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4724       ;;
 4725     esac
 4726 
 4727     case $cc_basename in
 4728     nvcc*) # Cuda Compiler Driver 2.2
 4729       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 4730       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4731         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 4732       fi
 4733       ;;
 4734     esac
 4735   else
 4736     # PORTME Check for flag to pass linker flags through the system compiler.
 4737     case $host_os in
 4738     aix*)
 4739       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4740       if test ia64 = "$host_cpu"; then
 4741 	# AIX 5 now supports IA64 processor
 4742 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4743       else
 4744 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4745       fi
 4746       ;;
 4747 
 4748     darwin* | rhapsody*)
 4749       # PIC is the default on this platform
 4750       # Common symbols not allowed in MH_DYLIB files
 4751       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4752       case $cc_basename in
 4753       nagfor*)
 4754         # NAG Fortran compiler
 4755         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4756         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4757         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4758         ;;
 4759       esac
 4760       ;;
 4761 
 4762     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4763       # This hack is so that the source file can tell whether it is being
 4764       # built for inclusion in a dll (and should export symbols for example).
 4765       m4_if([$1], [GCJ], [],
 4766 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4767       case $host_os in
 4768       os2*)
 4769 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4770 	;;
 4771       esac
 4772       ;;
 4773 
 4774     hpux9* | hpux10* | hpux11*)
 4775       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 4777       # not for PA HP-UX.
 4778       case $host_cpu in
 4779       hppa*64*|ia64*)
 4780 	# +Z the default
 4781 	;;
 4782       *)
 4783 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4784 	;;
 4785       esac
 4786       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 4787       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4788       ;;
 4789 
 4790     irix5* | irix6* | nonstopux*)
 4791       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4792       # PIC (with -KPIC) is the default.
 4793       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4794       ;;
 4795 
 4796     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4797       case $cc_basename in
 4798       # old Intel for x86_64, which still supported -KPIC.
 4799       ecc*)
 4800 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4801 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4802 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4803         ;;
 4804       # icc used to be incompatible with GCC.
 4805       # ICC 10 doesn't accept -KPIC any more.
 4806       icc* | ifort*)
 4807 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4808 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4809 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4810         ;;
 4811       # Lahey Fortran 8.1.
 4812       lf95*)
 4813 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4814 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 4815 	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 4816 	;;
 4817       nagfor*)
 4818 	# NAG Fortran compiler
 4819 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4820 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4821 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4822 	;;
 4823       tcc*)
 4824 	# Fabrice Bellard et al's Tiny C Compiler
 4825 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4826 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4827 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4828 	;;
 4829       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 4830         # Portland Group compilers (*not* the Pentium gcc compiler,
 4831 	# which looks to be a dead project)
 4832 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4833 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4834 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4835         ;;
 4836       ccc*)
 4837         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4838         # All Alpha code is PIC.
 4839         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4840         ;;
 4841       xl* | bgxl* | bgf* | mpixl*)
 4842 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 4843 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4844 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4845 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4846 	;;
 4847       *)
 4848 	case `$CC -V 2>&1 | $SED 5q` in
 4849 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 4850 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
 4851 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4852 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4853 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 4854 	  ;;
 4855 	*Sun\ F* | *Sun*Fortran*)
 4856 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4857 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4858 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4859 	  ;;
 4860 	*Sun\ C*)
 4861 	  # Sun C 5.9
 4862 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4863 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4864 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4865 	  ;;
 4866         *Intel*\ [[CF]]*Compiler*)
 4867 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4868 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4869 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4870 	  ;;
 4871 	*Portland\ Group*)
 4872 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4873 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4874 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4875 	  ;;
 4876 	esac
 4877 	;;
 4878       esac
 4879       ;;
 4880 
 4881     newsos6)
 4882       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4883       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4884       ;;
 4885 
 4886     *nto* | *qnx*)
 4887       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4888       # it will coredump.
 4889       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4890       ;;
 4891 
 4892     osf3* | osf4* | osf5*)
 4893       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4894       # All OSF/1 code is PIC.
 4895       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4896       ;;
 4897 
 4898     rdos*)
 4899       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4900       ;;
 4901 
 4902     solaris*)
 4903       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4904       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4905       case $cc_basename in
 4906       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 4907 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 4908       *)
 4909 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 4910       esac
 4911       ;;
 4912 
 4913     sunos4*)
 4914       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4915       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4916       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4917       ;;
 4918 
 4919     sysv4 | sysv4.2uw2* | sysv4.3*)
 4920       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4921       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4922       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4923       ;;
 4924 
 4925     sysv4*MP*)
 4926       if test -d /usr/nec; then
 4927 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 4928 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4929       fi
 4930       ;;
 4931 
 4932     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4933       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4934       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4935       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4936       ;;
 4937 
 4938     unicos*)
 4939       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4940       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4941       ;;
 4942 
 4943     uts4*)
 4944       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4945       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4946       ;;
 4947 
 4948     *)
 4949       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4950       ;;
 4951     esac
 4952   fi
 4953 ])
 4954 case $host_os in
 4955   # For platforms that do not support PIC, -DPIC is meaningless:
 4956   *djgpp*)
 4957     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4958     ;;
 4959   *)
 4960     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 4961     ;;
 4962 esac
 4963 
 4964 AC_CACHE_CHECK([for $compiler option to produce PIC],
 4965   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 4966   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 4967 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 4968 
 4969 #
 4970 # Check to make sure the PIC flag actually works.
 4971 #
 4972 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4973   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 4974     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 4975     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 4976     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 4977      "" | " "*) ;;
 4978      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 4979      esac],
 4980     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4981      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 4982 fi
 4983 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 4984 	[Additional compiler flags for building library objects])
 4985 
 4986 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 4987 	[How to pass a linker flag through the compiler])
 4988 #
 4989 # Check to make sure the static flag actually works.
 4990 #
 4991 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 4992 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 4993   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 4994   $lt_tmp_static_flag,
 4995   [],
 4996   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 4997 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 4998 	[Compiler flag to prevent dynamic linking])
 4999 ])# _LT_COMPILER_PIC
 5000 
 5001 
 5002 # _LT_LINKER_SHLIBS([TAGNAME])
 5003 # ----------------------------
 5004 # See if the linker supports building shared libraries.
 5005 m4_defun([_LT_LINKER_SHLIBS],
 5006 [AC_REQUIRE([LT_PATH_LD])dnl
 5007 AC_REQUIRE([LT_PATH_NM])dnl
 5008 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 5009 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 5010 m4_require([_LT_DECL_EGREP])dnl
 5011 m4_require([_LT_DECL_SED])dnl
 5012 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 5013 m4_require([_LT_TAG_COMPILER])dnl
 5014 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 5015 m4_if([$1], [CXX], [
 5016   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 5017   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 5018   case $host_os in
 5019   aix[[4-9]]*)
 5020     # If we're using GNU nm, then we don't want the "-C" option.
 5021     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 5022     # Without the "-l" option, or with the "-B" option, AIX nm treats
 5023     # weak defined symbols like other global defined symbols, whereas
 5024     # GNU nm marks them as "W".
 5025     # While the 'weak' keyword is ignored in the Export File, we need
 5026     # it in the Import File for the 'aix-soname' feature, so we have
 5027     # to replace the "-B" option with "-P" for AIX nm.
 5028     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 5029       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 5030     else
 5031       _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 5032     fi
 5033     ;;
 5034   pw32*)
 5035     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
 5036     ;;
 5037   cygwin* | mingw* | cegcc*)
 5038     case $cc_basename in
 5039     cl* | icl*)
 5040       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 5041       ;;
 5042     *)
 5043       _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'
 5044       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 5045       ;;
 5046     esac
 5047     ;;
 5048   *)
 5049     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 5050     ;;
 5051   esac
 5052 ], [
 5053   runpath_var=
 5054   _LT_TAGVAR(allow_undefined_flag, $1)=
 5055   _LT_TAGVAR(always_export_symbols, $1)=no
 5056   _LT_TAGVAR(archive_cmds, $1)=
 5057   _LT_TAGVAR(archive_expsym_cmds, $1)=
 5058   _LT_TAGVAR(compiler_needs_object, $1)=no
 5059   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 5060   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 5061   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 5062   _LT_TAGVAR(hardcode_automatic, $1)=no
 5063   _LT_TAGVAR(hardcode_direct, $1)=no
 5064   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 5065   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 5066   _LT_TAGVAR(hardcode_libdir_separator, $1)=
 5067   _LT_TAGVAR(hardcode_minus_L, $1)=no
 5068   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 5069   _LT_TAGVAR(inherit_rpath, $1)=no
 5070   _LT_TAGVAR(link_all_deplibs, $1)=unknown
 5071   _LT_TAGVAR(module_cmds, $1)=
 5072   _LT_TAGVAR(module_expsym_cmds, $1)=
 5073   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 5074   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 5075   _LT_TAGVAR(thread_safe_flag_spec, $1)=
 5076   _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5077   # include_expsyms should be a list of space-separated symbols to be *always*
 5078   # included in the symbol list
 5079   _LT_TAGVAR(include_expsyms, $1)=
 5080   # exclude_expsyms can be an extended regexp of symbols to exclude
 5081   # it will be wrapped by ' (' and ')$', so one must not match beginning or
 5082   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 5083   # as well as any symbol that contains 'd'.
 5084   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 5085   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 5086   # platforms (ab)use it in PIC code, but their linkers get confused if
 5087   # the symbol is explicitly referenced.  Since portable code cannot
 5088   # rely on this symbol name, it's probably fine to never include it in
 5089   # preloaded symbol tables.
 5090   # Exclude shared library initialization/finalization symbols.
 5091 dnl Note also adjust exclude_expsyms for C++ above.
 5092   extract_expsyms_cmds=
 5093 
 5094   case $host_os in
 5095   cygwin* | mingw* | pw32* | cegcc*)
 5096     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
 5097     # When not using gcc, we currently assume that we are using
 5098     # Microsoft Visual C++ or Intel C++ Compiler.
 5099     if test yes != "$GCC"; then
 5100       with_gnu_ld=no
 5101     fi
 5102     ;;
 5103   interix*)
 5104     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
 5105     with_gnu_ld=yes
 5106     ;;
 5107   openbsd* | bitrig*)
 5108     with_gnu_ld=no
 5109     ;;
 5110   esac
 5111 
 5112   _LT_TAGVAR(ld_shlibs, $1)=yes
 5113 
 5114   # On some targets, GNU ld is compatible enough with the native linker
 5115   # that we're better off using the native interface for both.
 5116   lt_use_gnu_ld_interface=no
 5117   if test yes = "$with_gnu_ld"; then
 5118     case $host_os in
 5119       aix*)
 5120 	# The AIX port of GNU ld has always aspired to compatibility
 5121 	# with the native linker.  However, as the warning in the GNU ld
 5122 	# block says, versions before 2.19.5* couldn't really create working
 5123 	# shared libraries, regardless of the interface used.
 5124 	case `$LD -v 2>&1` in
 5125 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 5126 	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 5127 	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 5128 	  *)
 5129 	    lt_use_gnu_ld_interface=yes
 5130 	    ;;
 5131 	esac
 5132 	;;
 5133       *)
 5134 	lt_use_gnu_ld_interface=yes
 5135 	;;
 5136     esac
 5137   fi
 5138 
 5139   if test yes = "$lt_use_gnu_ld_interface"; then
 5140     # If archive_cmds runs LD, not CC, wlarc should be empty
 5141     wlarc='$wl'
 5142 
 5143     # Set some defaults for GNU ld with shared library support. These
 5144     # are reset later if shared libraries are not supported. Putting them
 5145     # here allows them to be overridden if necessary.
 5146     runpath_var=LD_RUN_PATH
 5147     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5148     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 5149     # ancient GNU ld didn't support --whole-archive et. al.
 5150     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 5151       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 5152     else
 5153       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5154     fi
 5155     supports_anon_versioning=no
 5156     case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
 5157       *GNU\ gold*) supports_anon_versioning=yes ;;
 5158       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 5159       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 5160       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 5161       *\ 2.11.*) ;; # other 2.11 versions
 5162       *) supports_anon_versioning=yes ;;
 5163     esac
 5164 
 5165     # See if GNU ld supports shared libraries.
 5166     case $host_os in
 5167     aix[[3-9]]*)
 5168       # On AIX/PPC, the GNU linker is very broken
 5169       if test ia64 != "$host_cpu"; then
 5170 	_LT_TAGVAR(ld_shlibs, $1)=no
 5171 	cat <<_LT_EOF 1>&2
 5172 
 5173 *** Warning: the GNU linker, at least up to release 2.19, is reported
 5174 *** to be unable to reliably create shared libraries on AIX.
 5175 *** Therefore, libtool is disabling shared libraries support.  If you
 5176 *** really care for shared libraries, you may want to install binutils
 5177 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 5178 *** You will then need to restart the configuration process.
 5179 
 5180 _LT_EOF
 5181       fi
 5182       ;;
 5183 
 5184     amigaos*)
 5185       case $host_cpu in
 5186       powerpc)
 5187             # see comment about AmigaOS4 .so support
 5188             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5189             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5190         ;;
 5191       m68k)
 5192             _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)'
 5193             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5194             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5195         ;;
 5196       esac
 5197       ;;
 5198 
 5199     beos*)
 5200       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5201 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5202 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 5203 	# support --undefined.  This deserves some investigation.  FIXME
 5204 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5205       else
 5206 	_LT_TAGVAR(ld_shlibs, $1)=no
 5207       fi
 5208       ;;
 5209 
 5210     cygwin* | mingw* | pw32* | cegcc*)
 5211       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 5212       # as there is no search path for DLLs.
 5213       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5214       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 5215       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5216       _LT_TAGVAR(always_export_symbols, $1)=no
 5217       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5218       _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'
 5219       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 5220 
 5221       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 5222         _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'
 5223 	# If the export-symbols file already is a .def file, use it as
 5224 	# is; otherwise, prepend EXPORTS...
 5225 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5226           cp $export_symbols $output_objdir/$soname.def;
 5227         else
 5228           echo EXPORTS > $output_objdir/$soname.def;
 5229           cat $export_symbols >> $output_objdir/$soname.def;
 5230         fi~
 5231         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 5232       else
 5233 	_LT_TAGVAR(ld_shlibs, $1)=no
 5234       fi
 5235       ;;
 5236 
 5237     haiku*)
 5238       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5239       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5240       ;;
 5241 
 5242     os2*)
 5243       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5244       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5245       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5246       shrext_cmds=.dll
 5247       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5248 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5249 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5250 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5251 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5252 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5253 	emximp -o $lib $output_objdir/$libname.def'
 5254       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5255 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5256 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5257 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5258 	prefix_cmds="$SED"~
 5259 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5260 	  prefix_cmds="$prefix_cmds -e 1d";
 5261 	fi~
 5262 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5263 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5264 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5265 	emximp -o $lib $output_objdir/$libname.def'
 5266       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5267       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5268       _LT_TAGVAR(file_list_spec, $1)='@'
 5269       ;;
 5270 
 5271     interix[[3-9]]*)
 5272       _LT_TAGVAR(hardcode_direct, $1)=no
 5273       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5274       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5275       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5276       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 5277       # Instead, shared libraries are loaded at an image base (0x10000000 by
 5278       # default) and relocated if they conflict, which is a slow very memory
 5279       # consuming and fragmenting process.  To avoid this, we pick a random,
 5280       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 5281       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 5282       _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'
 5283       _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'
 5284       ;;
 5285 
 5286     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 5287       tmp_diet=no
 5288       if test linux-dietlibc = "$host_os"; then
 5289 	case $cc_basename in
 5290 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
 5291 	esac
 5292       fi
 5293       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 5294 	 && test no = "$tmp_diet"
 5295       then
 5296 	tmp_addflag=' $pic_flag'
 5297 	tmp_sharedflag='-shared'
 5298 	case $cc_basename,$host_cpu in
 5299         pgcc*)				# Portland Group C compiler
 5300 	  _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'
 5301 	  tmp_addflag=' $pic_flag'
 5302 	  ;;
 5303 	pgf77* | pgf90* | pgf95* | pgfortran*)
 5304 					# Portland Group f77 and f90 compilers
 5305 	  _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'
 5306 	  tmp_addflag=' $pic_flag -Mnomain' ;;
 5307 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
 5308 	  tmp_addflag=' -i_dynamic' ;;
 5309 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 5310 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
 5311 	ifc* | ifort*)			# Intel Fortran compiler
 5312 	  tmp_addflag=' -nofor_main' ;;
 5313 	lf95*)				# Lahey Fortran 8.1
 5314 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5315 	  tmp_sharedflag='--shared' ;;
 5316         nagfor*)                        # NAGFOR 5.3
 5317           tmp_sharedflag='-Wl,-shared' ;;
 5318 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 5319 	  tmp_sharedflag='-qmkshrobj'
 5320 	  tmp_addflag= ;;
 5321 	nvcc*)	# Cuda Compiler Driver 2.2
 5322 	  _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'
 5323 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5324 	  ;;
 5325 	esac
 5326 	case `$CC -V 2>&1 | $SED 5q` in
 5327 	*Sun\ C*)			# Sun C 5.9
 5328 	  _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'
 5329 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5330 	  tmp_sharedflag='-G' ;;
 5331 	*Sun\ F*)			# Sun Fortran 8.3
 5332 	  tmp_sharedflag='-G' ;;
 5333 	esac
 5334 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5335 
 5336         if test yes = "$supports_anon_versioning"; then
 5337           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5338             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5339             echo "local: *; };" >> $output_objdir/$libname.ver~
 5340             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 5341         fi
 5342 
 5343 	case $cc_basename in
 5344 	tcc*)
 5345 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
 5346 	  ;;
 5347 	xlf* | bgf* | bgxlf* | mpixlf*)
 5348 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 5349 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 5350 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5351 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 5352 	  if test yes = "$supports_anon_versioning"; then
 5353 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5354               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5355               echo "local: *; };" >> $output_objdir/$libname.ver~
 5356               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 5357 	  fi
 5358 	  ;;
 5359 	esac
 5360       else
 5361         _LT_TAGVAR(ld_shlibs, $1)=no
 5362       fi
 5363       ;;
 5364 
 5365     netbsd*)
 5366       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5367 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 5368 	wlarc=
 5369       else
 5370 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5371 	_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'
 5372       fi
 5373       ;;
 5374 
 5375     solaris*)
 5376       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 5377 	_LT_TAGVAR(ld_shlibs, $1)=no
 5378 	cat <<_LT_EOF 1>&2
 5379 
 5380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 5381 *** create shared libraries on Solaris systems.  Therefore, libtool
 5382 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5383 *** binutils to release 2.9.1 or newer.  Another option is to modify
 5384 *** your PATH or compiler configuration so that the native linker is
 5385 *** used, and then restart.
 5386 
 5387 _LT_EOF
 5388       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5389 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5390 	_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'
 5391       else
 5392 	_LT_TAGVAR(ld_shlibs, $1)=no
 5393       fi
 5394       ;;
 5395 
 5396     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 5397       case `$LD -v 2>&1` in
 5398         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 5399 	_LT_TAGVAR(ld_shlibs, $1)=no
 5400 	cat <<_LT_EOF 1>&2
 5401 
 5402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 5403 *** reliably create shared libraries on SCO systems.  Therefore, libtool
 5404 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5405 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 5406 *** your PATH or compiler configuration so that the native linker is
 5407 *** used, and then restart.
 5408 
 5409 _LT_EOF
 5410 	;;
 5411 	*)
 5412 	  # For security reasons, it is highly recommended that you always
 5413 	  # use absolute paths for naming shared libraries, and exclude the
 5414 	  # DT_RUNPATH tag from executables and libraries.  But doing so
 5415 	  # requires that you compile everything twice, which is a pain.
 5416 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5417 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5418 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5419 	    _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'
 5420 	  else
 5421 	    _LT_TAGVAR(ld_shlibs, $1)=no
 5422 	  fi
 5423 	;;
 5424       esac
 5425       ;;
 5426 
 5427     sunos4*)
 5428       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5429       wlarc=
 5430       _LT_TAGVAR(hardcode_direct, $1)=yes
 5431       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5432       ;;
 5433 
 5434     *)
 5435       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5436 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5437 	_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'
 5438       else
 5439 	_LT_TAGVAR(ld_shlibs, $1)=no
 5440       fi
 5441       ;;
 5442     esac
 5443 
 5444     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
 5445       runpath_var=
 5446       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 5447       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 5448       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5449     fi
 5450   else
 5451     # PORTME fill in a description of your system's linker (not GNU ld)
 5452     case $host_os in
 5453     aix3*)
 5454       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5455       _LT_TAGVAR(always_export_symbols, $1)=yes
 5456       _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'
 5457       # Note: this linker hardcodes the directories in LIBPATH if there
 5458       # are no directories specified by -L.
 5459       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5460       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 5461 	# Neither direct hardcoding nor static linking is supported with a
 5462 	# broken collect2.
 5463 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
 5464       fi
 5465       ;;
 5466 
 5467     aix[[4-9]]*)
 5468       if test ia64 = "$host_cpu"; then
 5469 	# On IA64, the linker does run time linking by default, so we don't
 5470 	# have to do anything special.
 5471 	aix_use_runtimelinking=no
 5472 	exp_sym_flag='-Bexport'
 5473 	no_entry_flag=
 5474       else
 5475 	# If we're using GNU nm, then we don't want the "-C" option.
 5476 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
 5477 	# Without the "-l" option, or with the "-B" option, AIX nm treats
 5478 	# weak defined symbols like other global defined symbols, whereas
 5479 	# GNU nm marks them as "W".
 5480 	# While the 'weak' keyword is ignored in the Export File, we need
 5481 	# it in the Import File for the 'aix-soname' feature, so we have
 5482 	# to replace the "-B" option with "-P" for AIX nm.
 5483 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 5484 	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
 5485 	else
 5486 	  _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
 5487 	fi
 5488 	aix_use_runtimelinking=no
 5489 
 5490 	# Test if we are trying to use run time linking or normal
 5491 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 5492 	# have runtime linking enabled, and use it for executables.
 5493 	# For shared libraries, we enable/disable runtime linking
 5494 	# depending on the kind of the shared library created -
 5495 	# when "with_aix_soname,aix_use_runtimelinking" is:
 5496 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 5497 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
 5498 	#            lib.a           static archive
 5499 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
 5500 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
 5501 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 5502 	#            lib.a(lib.so.V) shared, rtl:no
 5503 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 5504 	#            lib.a           static archive
 5505 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 5506 	  for ld_flag in $LDFLAGS; do
 5507 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 5508 	    aix_use_runtimelinking=yes
 5509 	    break
 5510 	  fi
 5511 	  done
 5512 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 5513 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
 5514 	    # so we don't have lib.a shared libs to link our executables.
 5515 	    # We have to force runtime linking in this case.
 5516 	    aix_use_runtimelinking=yes
 5517 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
 5518 	  fi
 5519 	  ;;
 5520 	esac
 5521 
 5522 	exp_sym_flag='-bexport'
 5523 	no_entry_flag='-bnoentry'
 5524       fi
 5525 
 5526       # When large executables or shared objects are built, AIX ld can
 5527       # have problems creating the table of contents.  If linking a library
 5528       # or program results in "error TOC overflow" add -mminimal-toc to
 5529       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 5530       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 5531 
 5532       _LT_TAGVAR(archive_cmds, $1)=''
 5533       _LT_TAGVAR(hardcode_direct, $1)=yes
 5534       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5535       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 5536       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5537       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 5538       case $with_aix_soname,$aix_use_runtimelinking in
 5539       aix,*) ;; # traditional, no import file
 5540       svr4,* | *,yes) # use import file
 5541 	# The Import File defines what to hardcode.
 5542 	_LT_TAGVAR(hardcode_direct, $1)=no
 5543 	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 5544 	;;
 5545       esac
 5546 
 5547       if test yes = "$GCC"; then
 5548 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
 5549 	# We only want to do this on AIX 4.2 and lower, the check
 5550 	# below for broken collect2 doesn't work under 4.3+
 5551 	  collect2name=`$CC -print-prog-name=collect2`
 5552 	  if test -f "$collect2name" &&
 5553 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 5554 	  then
 5555 	  # We have reworked collect2
 5556 	  :
 5557 	  else
 5558 	  # We have old collect2
 5559 	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
 5560 	  # It fails to find uninstalled libraries when the uninstalled
 5561 	  # path is not listed in the libpath.  Setting hardcode_minus_L
 5562 	  # to unsupported forces relinking
 5563 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5564 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5565 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 5566 	  fi
 5567 	  ;;
 5568 	esac
 5569 	shared_flag='-shared'
 5570 	if test yes = "$aix_use_runtimelinking"; then
 5571 	  shared_flag="$shared_flag "'$wl-G'
 5572 	fi
 5573 	# Need to ensure runtime linking is disabled for the traditional
 5574 	# shared library, or the linker may eventually find shared libraries
 5575 	# /with/ Import File - we do not want to mix them.
 5576 	shared_flag_aix='-shared'
 5577 	shared_flag_svr4='-shared $wl-G'
 5578       else
 5579 	# not using gcc
 5580 	if test ia64 = "$host_cpu"; then
 5581 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 5582 	# chokes on -Wl,-G. The following line is correct:
 5583 	  shared_flag='-G'
 5584 	else
 5585 	  if test yes = "$aix_use_runtimelinking"; then
 5586 	    shared_flag='$wl-G'
 5587 	  else
 5588 	    shared_flag='$wl-bM:SRE'
 5589 	  fi
 5590 	  shared_flag_aix='$wl-bM:SRE'
 5591 	  shared_flag_svr4='$wl-G'
 5592 	fi
 5593       fi
 5594 
 5595       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 5596       # It seems that -bexpall does not export symbols beginning with
 5597       # underscore (_), so it is better to generate a list of symbols to export.
 5598       _LT_TAGVAR(always_export_symbols, $1)=yes
 5599       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 5600 	# Warning - without using the other runtime loading flags (-brtl),
 5601 	# -berok will link without error, but may produce a broken library.
 5602 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 5603         # Determine the default libpath from the value encoded in an
 5604         # empty executable.
 5605         _LT_SYS_MODULE_PATH_AIX([$1])
 5606         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5607         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 5608       else
 5609 	if test ia64 = "$host_cpu"; then
 5610 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 5611 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 5612 	  _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"
 5613 	else
 5614 	 # Determine the default libpath from the value encoded in an
 5615 	 # empty executable.
 5616 	 _LT_SYS_MODULE_PATH_AIX([$1])
 5617 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5618 	  # Warning - without using the other run time loading flags,
 5619 	  # -berok will link without error, but may produce a broken library.
 5620 	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 5621 	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 5622 	  if test yes = "$with_gnu_ld"; then
 5623 	    # We only use this code for GNU lds that support --whole-archive.
 5624 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 5625 	  else
 5626 	    # Exported symbols can be pulled into shared objects from archives
 5627 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 5628 	  fi
 5629 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 5630 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 5631 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
 5632 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 5633 	  if test svr4 != "$with_aix_soname"; then
 5634 	    # This is similar to how AIX traditionally builds its shared libraries.
 5635 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 5636 	  fi
 5637 	  if test aix != "$with_aix_soname"; then
 5638 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 5639 	  else
 5640 	    # used by -dlpreopen to get the symbols
 5641 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 5642 	  fi
 5643 	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 5644 	fi
 5645       fi
 5646       ;;
 5647 
 5648     amigaos*)
 5649       case $host_cpu in
 5650       powerpc)
 5651             # see comment about AmigaOS4 .so support
 5652             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5653             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5654         ;;
 5655       m68k)
 5656             _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)'
 5657             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5658             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5659         ;;
 5660       esac
 5661       ;;
 5662 
 5663     bsdi[[45]]*)
 5664       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 5665       ;;
 5666 
 5667     cygwin* | mingw* | pw32* | cegcc*)
 5668       # When not using gcc, we currently assume that we are using
 5669       # Microsoft Visual C++ or Intel C++ Compiler.
 5670       # hardcode_libdir_flag_spec is actually meaningless, as there is
 5671       # no search path for DLLs.
 5672       case $cc_basename in
 5673       cl* | icl*)
 5674 	# Native MSVC or ICC
 5675 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5676 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5677 	_LT_TAGVAR(always_export_symbols, $1)=yes
 5678 	_LT_TAGVAR(file_list_spec, $1)='@'
 5679 	# Tell ltmain to make .lib files, not .a files.
 5680 	libext=lib
 5681 	# Tell ltmain to make .dll files, not .so files.
 5682 	shrext_cmds=.dll
 5683 	# FIXME: Setting linknames here is a bad hack.
 5684 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 5685 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5686             cp "$export_symbols" "$output_objdir/$soname.def";
 5687             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 5688           else
 5689             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 5690           fi~
 5691           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 5692           linknames='
 5693 	# The linker will not automatically build a static lib if we build a DLL.
 5694 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5695 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5696 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 5697 	_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'
 5698 	# Don't use ranlib
 5699 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 5700 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 5701           lt_tool_outputfile="@TOOL_OUTPUT@"~
 5702           case $lt_outputfile in
 5703             *.exe|*.EXE) ;;
 5704             *)
 5705               lt_outputfile=$lt_outputfile.exe
 5706               lt_tool_outputfile=$lt_tool_outputfile.exe
 5707               ;;
 5708           esac~
 5709           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 5710             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 5711             $RM "$lt_outputfile.manifest";
 5712           fi'
 5713 	;;
 5714       *)
 5715 	# Assume MSVC and ICC wrapper
 5716 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5717 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5718 	# Tell ltmain to make .lib files, not .a files.
 5719 	libext=lib
 5720 	# Tell ltmain to make .dll files, not .so files.
 5721 	shrext_cmds=.dll
 5722 	# FIXME: Setting linknames here is a bad hack.
 5723 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 5724 	# The linker will automatically build a .lib file if we build a DLL.
 5725 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5726 	# FIXME: Should let the user specify the lib program.
 5727 	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 5728 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5729 	;;
 5730       esac
 5731       ;;
 5732 
 5733     darwin* | rhapsody*)
 5734       _LT_DARWIN_LINKER_FEATURES($1)
 5735       ;;
 5736 
 5737     dgux*)
 5738       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5739       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5740       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5741       ;;
 5742 
 5743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 5744     # support.  Future versions do this automatically, but an explicit c++rt0.o
 5745     # does not break anything, and helps significantly (at the cost of a little
 5746     # extra space).
 5747     freebsd2.2*)
 5748       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 5749       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5750       _LT_TAGVAR(hardcode_direct, $1)=yes
 5751       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5752       ;;
 5753 
 5754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 5755     freebsd2.*)
 5756       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5757       _LT_TAGVAR(hardcode_direct, $1)=yes
 5758       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5759       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5760       ;;
 5761 
 5762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 5763     freebsd* | dragonfly* | midnightbsd*)
 5764       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5765       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5766       _LT_TAGVAR(hardcode_direct, $1)=yes
 5767       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5768       ;;
 5769 
 5770     hpux9*)
 5771       if test yes = "$GCC"; then
 5772 	_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 5773       else
 5774 	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 5775       fi
 5776       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5777       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5778       _LT_TAGVAR(hardcode_direct, $1)=yes
 5779 
 5780       # hardcode_minus_L: Not really in the search PATH,
 5781       # but as the default location of the library.
 5782       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5783       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5784       ;;
 5785 
 5786     hpux10*)
 5787       if test yes,no = "$GCC,$with_gnu_ld"; then
 5788 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5789       else
 5790 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 5791       fi
 5792       if test no = "$with_gnu_ld"; then
 5793 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5794 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5795 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5796 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5797 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5798 	# hardcode_minus_L: Not really in the search PATH,
 5799 	# but as the default location of the library.
 5800 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 5801       fi
 5802       ;;
 5803 
 5804     hpux11*)
 5805       if test yes,no = "$GCC,$with_gnu_ld"; then
 5806 	case $host_cpu in
 5807 	hppa*64*)
 5808 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5809 	  ;;
 5810 	ia64*)
 5811 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5812 	  ;;
 5813 	*)
 5814 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5815 	  ;;
 5816 	esac
 5817       else
 5818 	case $host_cpu in
 5819 	hppa*64*)
 5820 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5821 	  ;;
 5822 	ia64*)
 5823 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5824 	  ;;
 5825 	*)
 5826 	m4_if($1, [], [
 5827 	  # Older versions of the 11.00 compiler do not understand -b yet
 5828 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 5829 	  _LT_LINKER_OPTION([if $CC understands -b],
 5830 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 5831 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 5832 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 5833 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 5834 	  ;;
 5835 	esac
 5836       fi
 5837       if test no = "$with_gnu_ld"; then
 5838 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5839 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5840 
 5841 	case $host_cpu in
 5842 	hppa*64*|ia64*)
 5843 	  _LT_TAGVAR(hardcode_direct, $1)=no
 5844 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5845 	  ;;
 5846 	*)
 5847 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 5848 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5849 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5850 
 5851 	  # hardcode_minus_L: Not really in the search PATH,
 5852 	  # but as the default location of the library.
 5853 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5854 	  ;;
 5855 	esac
 5856       fi
 5857       ;;
 5858 
 5859     irix5* | irix6* | nonstopux*)
 5860       if test yes = "$GCC"; then
 5861 	_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'
 5862 	# Try to use the -exported_symbol ld option, if it does not
 5863 	# work, assume that -exports_file does not work either and
 5864 	# implicitly export all symbols.
 5865 	# This should be the same for all languages, so no per-tag cache variable.
 5866 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 5867 	  [lt_cv_irix_exported_symbol],
 5868 	  [save_LDFLAGS=$LDFLAGS
 5869 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 5870 	   AC_LINK_IFELSE(
 5871 	     [AC_LANG_SOURCE(
 5872 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 5873 			      [C++], [[int foo (void) { return 0; }]],
 5874 			      [Fortran 77], [[
 5875       subroutine foo
 5876       end]],
 5877 			      [Fortran], [[
 5878       subroutine foo
 5879       end]])])],
 5880 	      [lt_cv_irix_exported_symbol=yes],
 5881 	      [lt_cv_irix_exported_symbol=no])
 5882            LDFLAGS=$save_LDFLAGS])
 5883 	if test yes = "$lt_cv_irix_exported_symbol"; then
 5884           _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'
 5885 	fi
 5886       else
 5887 	_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'
 5888 	_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'
 5889       fi
 5890       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5891       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5892       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5893       _LT_TAGVAR(inherit_rpath, $1)=yes
 5894       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5895       ;;
 5896 
 5897     linux*)
 5898       case $cc_basename in
 5899       tcc*)
 5900 	# Fabrice Bellard et al's Tiny C Compiler
 5901 	_LT_TAGVAR(ld_shlibs, $1)=yes
 5902 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5903 	;;
 5904       esac
 5905       ;;
 5906 
 5907     netbsd*)
 5908       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5909 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 5910       else
 5911 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 5912       fi
 5913       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5914       _LT_TAGVAR(hardcode_direct, $1)=yes
 5915       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5916       ;;
 5917 
 5918     newsos6)
 5919       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5920       _LT_TAGVAR(hardcode_direct, $1)=yes
 5921       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5922       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5923       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5924       ;;
 5925 
 5926     *nto* | *qnx*)
 5927       ;;
 5928 
 5929     openbsd* | bitrig*)
 5930       if test -f /usr/libexec/ld.so; then
 5931 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5932 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5933 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5934 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 5935 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5936 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 5937 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5938 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5939 	else
 5940 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5941 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5942 	fi
 5943       else
 5944 	_LT_TAGVAR(ld_shlibs, $1)=no
 5945       fi
 5946       ;;
 5947 
 5948     os2*)
 5949       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5950       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5951       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5952       shrext_cmds=.dll
 5953       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5954 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5955 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5956 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5957 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5958 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5959 	emximp -o $lib $output_objdir/$libname.def'
 5960       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5961 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5962 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5963 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5964 	prefix_cmds="$SED"~
 5965 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5966 	  prefix_cmds="$prefix_cmds -e 1d";
 5967 	fi~
 5968 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5969 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5970 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5971 	emximp -o $lib $output_objdir/$libname.def'
 5972       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5973       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5974       _LT_TAGVAR(file_list_spec, $1)='@'
 5975       ;;
 5976 
 5977     osf3*)
 5978       if test yes = "$GCC"; then
 5979 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5980 	_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'
 5981       else
 5982 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5983 	_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'
 5984       fi
 5985       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5986       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5987       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5988       ;;
 5989 
 5990     osf4* | osf5*)	# as osf3* with the addition of -msym flag
 5991       if test yes = "$GCC"; then
 5992 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5993 	_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'
 5994 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5995       else
 5996 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5997 	_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'
 5998 	_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~
 5999           $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'
 6000 
 6001 	# Both c and cxx compiler support -rpath directly
 6002 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 6003       fi
 6004       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 6005       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6006       ;;
 6007 
 6008     solaris*)
 6009       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 6010       if test yes = "$GCC"; then
 6011 	wlarc='$wl'
 6012 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 6013 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 6014           $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'
 6015       else
 6016 	case `$CC -V 2>&1` in
 6017 	*"Compilers 5.0"*)
 6018 	  wlarc=''
 6019 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6020 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 6021             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 6022 	  ;;
 6023 	*)
 6024 	  wlarc='$wl'
 6025 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 6026 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 6027             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 6028 	  ;;
 6029 	esac
 6030       fi
 6031       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 6032       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6033       case $host_os in
 6034       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 6035       *)
 6036 	# The compiler driver will combine and reorder linker options,
 6037 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
 6038 	# but is careful enough not to reorder.
 6039 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 6040 	if test yes = "$GCC"; then
 6041 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 6042 	else
 6043 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 6044 	fi
 6045 	;;
 6046       esac
 6047       _LT_TAGVAR(link_all_deplibs, $1)=yes
 6048       ;;
 6049 
 6050     sunos4*)
 6051       if test sequent = "$host_vendor"; then
 6052 	# Use $CC to link under sequent, because it throws in some extra .o
 6053 	# files that make .init and .fini sections work.
 6054 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 6055       else
 6056 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 6057       fi
 6058       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6059       _LT_TAGVAR(hardcode_direct, $1)=yes
 6060       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 6061       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6062       ;;
 6063 
 6064     sysv4)
 6065       case $host_vendor in
 6066 	sni)
 6067 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6068 	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 6069 	;;
 6070 	siemens)
 6071 	  ## LD is ld it makes a PLAMLIB
 6072 	  ## CC just makes a GrossModule.
 6073 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 6074 	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 6075 	  _LT_TAGVAR(hardcode_direct, $1)=no
 6076         ;;
 6077 	motorola)
 6078 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6079 	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 6080 	;;
 6081       esac
 6082       runpath_var='LD_RUN_PATH'
 6083       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6084       ;;
 6085 
 6086     sysv4.3*)
 6087       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6088       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6089       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 6090       ;;
 6091 
 6092     sysv4*MP*)
 6093       if test -d /usr/nec; then
 6094 	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6095 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6096 	runpath_var=LD_RUN_PATH
 6097 	hardcode_runpath_var=yes
 6098 	_LT_TAGVAR(ld_shlibs, $1)=yes
 6099       fi
 6100       ;;
 6101 
 6102     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 6103       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6104       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6105       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6106       runpath_var='LD_RUN_PATH'
 6107 
 6108       if test yes = "$GCC"; then
 6109 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6110 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6111       else
 6112 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6113 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6114       fi
 6115       ;;
 6116 
 6117     sysv5* | sco3.2v5* | sco5v6*)
 6118       # Note: We CANNOT use -z defs as we might desire, because we do not
 6119       # link with -lc, and that would cause any symbols used from libc to
 6120       # always be unresolved, which means just about no library would
 6121       # ever link correctly.  If we're not using GNU ld we use -z text
 6122       # though, which does catch some bad symbols but isn't as heavy-handed
 6123       # as -z defs.
 6124       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6125       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 6126       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6127       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6128       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 6129       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6130       _LT_TAGVAR(link_all_deplibs, $1)=yes
 6131       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 6132       runpath_var='LD_RUN_PATH'
 6133 
 6134       if test yes = "$GCC"; then
 6135 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6136 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6137       else
 6138 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6139 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6140       fi
 6141       ;;
 6142 
 6143     uts4*)
 6144       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6145       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6146       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6147       ;;
 6148 
 6149     *)
 6150       _LT_TAGVAR(ld_shlibs, $1)=no
 6151       ;;
 6152     esac
 6153 
 6154     if test sni = "$host_vendor"; then
 6155       case $host in
 6156       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 6157 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
 6158 	;;
 6159       esac
 6160     fi
 6161   fi
 6162 ])
 6163 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 6164 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 6165 
 6166 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 6167 
 6168 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 6169 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 6170 _LT_DECL([], [extract_expsyms_cmds], [2],
 6171     [The commands to extract the exported symbol list from a shared archive])
 6172 
 6173 #
 6174 # Do we need to explicitly link libc?
 6175 #
 6176 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 6177 x|xyes)
 6178   # Assume -lc should be added
 6179   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6180 
 6181   if test yes,yes = "$GCC,$enable_shared"; then
 6182     case $_LT_TAGVAR(archive_cmds, $1) in
 6183     *'~'*)
 6184       # FIXME: we may have to deal with multi-command sequences.
 6185       ;;
 6186     '$CC '*)
 6187       # Test whether the compiler implicitly links with -lc since on some
 6188       # systems, -lgcc has to come before -lc. If gcc already passes -lc
 6189       # to ld, don't add -lc before -lgcc.
 6190       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 6191 	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 6192 	[$RM conftest*
 6193 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 6194 
 6195 	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 6196 	  soname=conftest
 6197 	  lib=conftest
 6198 	  libobjs=conftest.$ac_objext
 6199 	  deplibs=
 6200 	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 6201 	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 6202 	  compiler_flags=-v
 6203 	  linker_flags=-v
 6204 	  verstring=
 6205 	  output_objdir=.
 6206 	  libname=conftest
 6207 	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 6208 	  _LT_TAGVAR(allow_undefined_flag, $1)=
 6209 	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 6210 	  then
 6211 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6212 	  else
 6213 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6214 	  fi
 6215 	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 6216 	else
 6217 	  cat conftest.err 1>&5
 6218 	fi
 6219 	$RM conftest*
 6220 	])
 6221       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 6222       ;;
 6223     esac
 6224   fi
 6225   ;;
 6226 esac
 6227 
 6228 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 6229     [Whether or not to add -lc for building shared libraries])
 6230 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 6231     [enable_shared_with_static_runtimes], [0],
 6232     [Whether or not to disallow shared libs when runtime libs are static])
 6233 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 6234     [Compiler flag to allow reflexive dlopens])
 6235 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
 6236     [Compiler flag to generate shared objects directly from archives])
 6237 _LT_TAGDECL([], [compiler_needs_object], [1],
 6238     [Whether the compiler copes with passing no objects directly])
 6239 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 6240     [Create an old-style archive from a shared archive])
 6241 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 6242     [Create a temporary old-style archive to link instead of a shared archive])
 6243 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 6244 _LT_TAGDECL([], [archive_expsym_cmds], [2])
 6245 _LT_TAGDECL([], [module_cmds], [2],
 6246     [Commands used to build a loadable module if different from building
 6247     a shared archive.])
 6248 _LT_TAGDECL([], [module_expsym_cmds], [2])
 6249 _LT_TAGDECL([], [with_gnu_ld], [1],
 6250     [Whether we are building with GNU ld or not])
 6251 _LT_TAGDECL([], [allow_undefined_flag], [1],
 6252     [Flag that allows shared libraries with undefined symbols to be built])
 6253 _LT_TAGDECL([], [no_undefined_flag], [1],
 6254     [Flag that enforces no undefined symbols])
 6255 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 6256     [Flag to hardcode $libdir into a binary during linking.
 6257     This must work even if $libdir does not exist])
 6258 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
 6259     [Whether we need a single "-rpath" flag with a separated argument])
 6260 _LT_TAGDECL([], [hardcode_direct], [0],
 6261     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6262     DIR into the resulting binary])
 6263 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
 6264     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6265     DIR into the resulting binary and the resulting library dependency is
 6266     "absolute", i.e impossible to change by setting $shlibpath_var if the
 6267     library is relocated])
 6268 _LT_TAGDECL([], [hardcode_minus_L], [0],
 6269     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 6270     into the resulting binary])
 6271 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 6272     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 6273     into the resulting binary])
 6274 _LT_TAGDECL([], [hardcode_automatic], [0],
 6275     [Set to "yes" if building a shared library automatically hardcodes DIR
 6276     into the library and all subsequent libraries and executables linked
 6277     against it])
 6278 _LT_TAGDECL([], [inherit_rpath], [0],
 6279     [Set to yes if linker adds runtime paths of dependent libraries
 6280     to runtime path list])
 6281 _LT_TAGDECL([], [link_all_deplibs], [0],
 6282     [Whether libtool must link a program against all its dependency libraries])
 6283 _LT_TAGDECL([], [always_export_symbols], [0],
 6284     [Set to "yes" if exported symbols are required])
 6285 _LT_TAGDECL([], [export_symbols_cmds], [2],
 6286     [The commands to list exported symbols])
 6287 _LT_TAGDECL([], [exclude_expsyms], [1],
 6288     [Symbols that should not be listed in the preloaded symbols])
 6289 _LT_TAGDECL([], [include_expsyms], [1],
 6290     [Symbols that must always be exported])
 6291 _LT_TAGDECL([], [prelink_cmds], [2],
 6292     [Commands necessary for linking programs (against libraries) with templates])
 6293 _LT_TAGDECL([], [postlink_cmds], [2],
 6294     [Commands necessary for finishing linking programs])
 6295 _LT_TAGDECL([], [file_list_spec], [1],
 6296     [Specify filename containing input files])
 6297 dnl FIXME: Not yet implemented
 6298 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 6299 dnl    [Compiler flag to generate thread safe objects])
 6300 ])# _LT_LINKER_SHLIBS
 6301 
 6302 
 6303 # _LT_LANG_C_CONFIG([TAG])
 6304 # ------------------------
 6305 # Ensure that the configuration variables for a C compiler are suitably
 6306 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6307 # the compiler configuration to 'libtool'.
 6308 m4_defun([_LT_LANG_C_CONFIG],
 6309 [m4_require([_LT_DECL_EGREP])dnl
 6310 lt_save_CC=$CC
 6311 AC_LANG_PUSH(C)
 6312 
 6313 # Source file extension for C test sources.
 6314 ac_ext=c
 6315 
 6316 # Object file extension for compiled C test sources.
 6317 objext=o
 6318 _LT_TAGVAR(objext, $1)=$objext
 6319 
 6320 # Code to be used in simple compile tests
 6321 lt_simple_compile_test_code="int some_variable = 0;"
 6322 
 6323 # Code to be used in simple link tests
 6324 lt_simple_link_test_code='int main(){return(0);}'
 6325 
 6326 _LT_TAG_COMPILER
 6327 # Save the default compiler, since it gets overwritten when the other
 6328 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 6329 compiler_DEFAULT=$CC
 6330 
 6331 # save warnings/boilerplate of simple test code
 6332 _LT_COMPILER_BOILERPLATE
 6333 _LT_LINKER_BOILERPLATE
 6334 
 6335 if test -n "$compiler"; then
 6336   _LT_COMPILER_NO_RTTI($1)
 6337   _LT_COMPILER_PIC($1)
 6338   _LT_COMPILER_C_O($1)
 6339   _LT_COMPILER_FILE_LOCKS($1)
 6340   _LT_LINKER_SHLIBS($1)
 6341   _LT_SYS_DYNAMIC_LINKER($1)
 6342   _LT_LINKER_HARDCODE_LIBPATH($1)
 6343   LT_SYS_DLOPEN_SELF
 6344   _LT_CMD_STRIPLIB
 6345 
 6346   # Report what library types will actually be built
 6347   AC_MSG_CHECKING([if libtool supports shared libraries])
 6348   AC_MSG_RESULT([$can_build_shared])
 6349 
 6350   AC_MSG_CHECKING([whether to build shared libraries])
 6351   test no = "$can_build_shared" && enable_shared=no
 6352 
 6353   # On AIX, shared libraries and static libraries use the same namespace, and
 6354   # are all built from PIC.
 6355   case $host_os in
 6356   aix3*)
 6357     test yes = "$enable_shared" && enable_static=no
 6358     if test -n "$RANLIB"; then
 6359       archive_cmds="$archive_cmds~\$RANLIB \$lib"
 6360       postinstall_cmds='$RANLIB $lib'
 6361     fi
 6362     ;;
 6363 
 6364   aix[[4-9]]*)
 6365     if test ia64 != "$host_cpu"; then
 6366       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 6367       yes,aix,yes) ;;			# shared object as lib.so file only
 6368       yes,svr4,*) ;;			# shared object as lib.so archive member only
 6369       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 6370       esac
 6371     fi
 6372     ;;
 6373   esac
 6374   AC_MSG_RESULT([$enable_shared])
 6375 
 6376   AC_MSG_CHECKING([whether to build static libraries])
 6377   # Make sure either enable_shared or enable_static is yes.
 6378   test yes = "$enable_shared" || enable_static=yes
 6379   AC_MSG_RESULT([$enable_static])
 6380 
 6381   _LT_CONFIG($1)
 6382 fi
 6383 AC_LANG_POP
 6384 CC=$lt_save_CC
 6385 ])# _LT_LANG_C_CONFIG
 6386 
 6387 
 6388 # _LT_LANG_CXX_CONFIG([TAG])
 6389 # --------------------------
 6390 # Ensure that the configuration variables for a C++ compiler are suitably
 6391 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6392 # the compiler configuration to 'libtool'.
 6393 m4_defun([_LT_LANG_CXX_CONFIG],
 6394 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 6395 m4_require([_LT_DECL_EGREP])dnl
 6396 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 6397 if test -n "$CXX" && ( test no != "$CXX" &&
 6398     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 6399     (test g++ != "$CXX"))); then
 6400   AC_PROG_CXXCPP
 6401 else
 6402   _lt_caught_CXX_error=yes
 6403 fi
 6404 
 6405 AC_LANG_PUSH(C++)
 6406 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6407 _LT_TAGVAR(allow_undefined_flag, $1)=
 6408 _LT_TAGVAR(always_export_symbols, $1)=no
 6409 _LT_TAGVAR(archive_expsym_cmds, $1)=
 6410 _LT_TAGVAR(compiler_needs_object, $1)=no
 6411 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 6412 _LT_TAGVAR(hardcode_direct, $1)=no
 6413 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6414 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 6415 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6416 _LT_TAGVAR(hardcode_minus_L, $1)=no
 6417 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 6418 _LT_TAGVAR(hardcode_automatic, $1)=no
 6419 _LT_TAGVAR(inherit_rpath, $1)=no
 6420 _LT_TAGVAR(module_cmds, $1)=
 6421 _LT_TAGVAR(module_expsym_cmds, $1)=
 6422 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 6423 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 6424 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 6425 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 6426 _LT_TAGVAR(no_undefined_flag, $1)=
 6427 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6428 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 6429 
 6430 # Source file extension for C++ test sources.
 6431 ac_ext=cpp
 6432 
 6433 # Object file extension for compiled C++ test sources.
 6434 objext=o
 6435 _LT_TAGVAR(objext, $1)=$objext
 6436 
 6437 # No sense in running all these tests if we already determined that
 6438 # the CXX compiler isn't working.  Some variables (like enable_shared)
 6439 # are currently assumed to apply to all compilers on this platform,
 6440 # and will be corrupted by setting them based on a non-working compiler.
 6441 if test yes != "$_lt_caught_CXX_error"; then
 6442   # Code to be used in simple compile tests
 6443   lt_simple_compile_test_code="int some_variable = 0;"
 6444 
 6445   # Code to be used in simple link tests
 6446   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 6447 
 6448   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 6449   _LT_TAG_COMPILER
 6450 
 6451   # save warnings/boilerplate of simple test code
 6452   _LT_COMPILER_BOILERPLATE
 6453   _LT_LINKER_BOILERPLATE
 6454 
 6455   # Allow CC to be a program name with arguments.
 6456   lt_save_CC=$CC
 6457   lt_save_CFLAGS=$CFLAGS
 6458   lt_save_LD=$LD
 6459   lt_save_GCC=$GCC
 6460   GCC=$GXX
 6461   lt_save_with_gnu_ld=$with_gnu_ld
 6462   lt_save_path_LD=$lt_cv_path_LD
 6463   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 6464     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 6465   else
 6466     $as_unset lt_cv_prog_gnu_ld
 6467   fi
 6468   if test -n "${lt_cv_path_LDCXX+set}"; then
 6469     lt_cv_path_LD=$lt_cv_path_LDCXX
 6470   else
 6471     $as_unset lt_cv_path_LD
 6472   fi
 6473   test -z "${LDCXX+set}" || LD=$LDCXX
 6474   CC=${CXX-"c++"}
 6475   CFLAGS=$CXXFLAGS
 6476   compiler=$CC
 6477   _LT_TAGVAR(compiler, $1)=$CC
 6478   _LT_CC_BASENAME([$compiler])
 6479 
 6480   if test -n "$compiler"; then
 6481     # We don't want -fno-exception when compiling C++ code, so set the
 6482     # no_builtin_flag separately
 6483     if test yes = "$GXX"; then
 6484       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 6485     else
 6486       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 6487     fi
 6488 
 6489     if test yes = "$GXX"; then
 6490       # Set up default GNU C++ configuration
 6491 
 6492       LT_PATH_LD
 6493 
 6494       # Check if GNU C++ uses GNU ld as the underlying linker, since the
 6495       # archiving commands below assume that GNU ld is being used.
 6496       if test yes = "$with_gnu_ld"; then
 6497         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 6498         _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'
 6499 
 6500         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 6501         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 6502 
 6503         # If archive_cmds runs LD, not CC, wlarc should be empty
 6504         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 6505         #     investigate it a little bit more. (MM)
 6506         wlarc='$wl'
 6507 
 6508         # ancient GNU ld didn't support --whole-archive et. al.
 6509         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 6510 	  $GREP 'no-whole-archive' > /dev/null; then
 6511           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 6512         else
 6513           _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6514         fi
 6515       else
 6516         with_gnu_ld=no
 6517         wlarc=
 6518 
 6519         # A generic and very simple default shared library creation
 6520         # command for GNU C++ for the case where it uses the native
 6521         # linker, instead of GNU ld.  If possible, this setting should
 6522         # overridden to take advantage of the native linker features on
 6523         # the platform it is being used on.
 6524         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 6525       fi
 6526 
 6527       # Commands to make compiler produce verbose output that lists
 6528       # what "hidden" libraries, object files and flags are used when
 6529       # linking a shared library.
 6530       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 6531 
 6532     else
 6533       GXX=no
 6534       with_gnu_ld=no
 6535       wlarc=
 6536     fi
 6537 
 6538     # PORTME: fill in a description of your system's C++ link characteristics
 6539     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 6540     _LT_TAGVAR(ld_shlibs, $1)=yes
 6541     case $host_os in
 6542       aix3*)
 6543         # FIXME: insert proper C++ library support
 6544         _LT_TAGVAR(ld_shlibs, $1)=no
 6545         ;;
 6546       aix[[4-9]]*)
 6547         if test ia64 = "$host_cpu"; then
 6548           # On IA64, the linker does run time linking by default, so we don't
 6549           # have to do anything special.
 6550           aix_use_runtimelinking=no
 6551           exp_sym_flag='-Bexport'
 6552           no_entry_flag=
 6553         else
 6554           aix_use_runtimelinking=no
 6555 
 6556           # Test if we are trying to use run time linking or normal
 6557           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 6558           # have runtime linking enabled, and use it for executables.
 6559           # For shared libraries, we enable/disable runtime linking
 6560           # depending on the kind of the shared library created -
 6561           # when "with_aix_soname,aix_use_runtimelinking" is:
 6562           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 6563           # "aix,yes"  lib.so          shared, rtl:yes, for executables
 6564           #            lib.a           static archive
 6565           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 6566           #            lib.a(lib.so.V) shared, rtl:no,  for executables
 6567           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 6568           #            lib.a(lib.so.V) shared, rtl:no
 6569           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 6570           #            lib.a           static archive
 6571           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 6572 	    for ld_flag in $LDFLAGS; do
 6573 	      case $ld_flag in
 6574 	      *-brtl*)
 6575 	        aix_use_runtimelinking=yes
 6576 	        break
 6577 	        ;;
 6578 	      esac
 6579 	    done
 6580 	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 6581 	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
 6582 	      # so we don't have lib.a shared libs to link our executables.
 6583 	      # We have to force runtime linking in this case.
 6584 	      aix_use_runtimelinking=yes
 6585 	      LDFLAGS="$LDFLAGS -Wl,-brtl"
 6586 	    fi
 6587 	    ;;
 6588           esac
 6589 
 6590           exp_sym_flag='-bexport'
 6591           no_entry_flag='-bnoentry'
 6592         fi
 6593 
 6594         # When large executables or shared objects are built, AIX ld can
 6595         # have problems creating the table of contents.  If linking a library
 6596         # or program results in "error TOC overflow" add -mminimal-toc to
 6597         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 6598         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 6599 
 6600         _LT_TAGVAR(archive_cmds, $1)=''
 6601         _LT_TAGVAR(hardcode_direct, $1)=yes
 6602         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6603         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6604         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6605         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 6606         case $with_aix_soname,$aix_use_runtimelinking in
 6607         aix,*) ;;	# no import file
 6608         svr4,* | *,yes) # use import file
 6609           # The Import File defines what to hardcode.
 6610           _LT_TAGVAR(hardcode_direct, $1)=no
 6611           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6612           ;;
 6613         esac
 6614 
 6615         if test yes = "$GXX"; then
 6616           case $host_os in aix4.[[012]]|aix4.[[012]].*)
 6617           # We only want to do this on AIX 4.2 and lower, the check
 6618           # below for broken collect2 doesn't work under 4.3+
 6619 	  collect2name=`$CC -print-prog-name=collect2`
 6620 	  if test -f "$collect2name" &&
 6621 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 6622 	  then
 6623 	    # We have reworked collect2
 6624 	    :
 6625 	  else
 6626 	    # We have old collect2
 6627 	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
 6628 	    # It fails to find uninstalled libraries when the uninstalled
 6629 	    # path is not listed in the libpath.  Setting hardcode_minus_L
 6630 	    # to unsupported forces relinking
 6631 	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
 6632 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6633 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6634 	  fi
 6635           esac
 6636           shared_flag='-shared'
 6637 	  if test yes = "$aix_use_runtimelinking"; then
 6638 	    shared_flag=$shared_flag' $wl-G'
 6639 	  fi
 6640 	  # Need to ensure runtime linking is disabled for the traditional
 6641 	  # shared library, or the linker may eventually find shared libraries
 6642 	  # /with/ Import File - we do not want to mix them.
 6643 	  shared_flag_aix='-shared'
 6644 	  shared_flag_svr4='-shared $wl-G'
 6645         else
 6646           # not using gcc
 6647           if test ia64 = "$host_cpu"; then
 6648 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 6649 	  # chokes on -Wl,-G. The following line is correct:
 6650 	  shared_flag='-G'
 6651           else
 6652 	    if test yes = "$aix_use_runtimelinking"; then
 6653 	      shared_flag='$wl-G'
 6654 	    else
 6655 	      shared_flag='$wl-bM:SRE'
 6656 	    fi
 6657 	    shared_flag_aix='$wl-bM:SRE'
 6658 	    shared_flag_svr4='$wl-G'
 6659           fi
 6660         fi
 6661 
 6662         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 6663         # It seems that -bexpall does not export symbols beginning with
 6664         # underscore (_), so it is better to generate a list of symbols to
 6665 	# export.
 6666         _LT_TAGVAR(always_export_symbols, $1)=yes
 6667 	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 6668           # Warning - without using the other runtime loading flags (-brtl),
 6669           # -berok will link without error, but may produce a broken library.
 6670           # The "-G" linker flag allows undefined symbols.
 6671           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
 6672           # Determine the default libpath from the value encoded in an empty
 6673           # executable.
 6674           _LT_SYS_MODULE_PATH_AIX([$1])
 6675           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6676 
 6677           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
 6678         else
 6679           if test ia64 = "$host_cpu"; then
 6680 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 6681 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 6682 	    _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"
 6683           else
 6684 	    # Determine the default libpath from the value encoded in an
 6685 	    # empty executable.
 6686 	    _LT_SYS_MODULE_PATH_AIX([$1])
 6687 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6688 	    # Warning - without using the other run time loading flags,
 6689 	    # -berok will link without error, but may produce a broken library.
 6690 	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 6691 	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 6692 	    if test yes = "$with_gnu_ld"; then
 6693 	      # We only use this code for GNU lds that support --whole-archive.
 6694 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 6695 	    else
 6696 	      # Exported symbols can be pulled into shared objects from archives
 6697 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 6698 	    fi
 6699 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6700 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 6701 	    # -brtl affects multiple linker settings, -berok does not and is overridden later
 6702 	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 6703 	    if test svr4 != "$with_aix_soname"; then
 6704 	      # This is similar to how AIX traditionally builds its shared
 6705 	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 6706 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 6707 	    fi
 6708 	    if test aix != "$with_aix_soname"; then
 6709 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 6710 	    else
 6711 	      # used by -dlpreopen to get the symbols
 6712 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 6713 	    fi
 6714 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 6715           fi
 6716         fi
 6717         ;;
 6718 
 6719       beos*)
 6720 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 6721 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6722 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 6723 	  # support --undefined.  This deserves some investigation.  FIXME
 6724 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6725 	else
 6726 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6727 	fi
 6728 	;;
 6729 
 6730       chorus*)
 6731         case $cc_basename in
 6732           *)
 6733 	  # FIXME: insert proper C++ library support
 6734 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6735 	  ;;
 6736         esac
 6737         ;;
 6738 
 6739       cygwin* | mingw* | pw32* | cegcc*)
 6740 	case $GXX,$cc_basename in
 6741 	,cl* | no,cl* | ,icl* | no,icl*)
 6742 	  # Native MSVC or ICC
 6743 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
 6744 	  # no search path for DLLs.
 6745 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 6746 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6747 	  _LT_TAGVAR(always_export_symbols, $1)=yes
 6748 	  _LT_TAGVAR(file_list_spec, $1)='@'
 6749 	  # Tell ltmain to make .lib files, not .a files.
 6750 	  libext=lib
 6751 	  # Tell ltmain to make .dll files, not .so files.
 6752 	  shrext_cmds=.dll
 6753 	  # FIXME: Setting linknames here is a bad hack.
 6754 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 6755 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6756               cp "$export_symbols" "$output_objdir/$soname.def";
 6757               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 6758             else
 6759               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 6760             fi~
 6761             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 6762             linknames='
 6763 	  # The linker will not automatically build a static lib if we build a DLL.
 6764 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 6765 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6766 	  # Don't use ranlib
 6767 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 6768 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 6769             lt_tool_outputfile="@TOOL_OUTPUT@"~
 6770             case $lt_outputfile in
 6771               *.exe|*.EXE) ;;
 6772               *)
 6773                 lt_outputfile=$lt_outputfile.exe
 6774                 lt_tool_outputfile=$lt_tool_outputfile.exe
 6775                 ;;
 6776             esac~
 6777             func_to_tool_file "$lt_outputfile"~
 6778             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 6779               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 6780               $RM "$lt_outputfile.manifest";
 6781             fi'
 6782 	  ;;
 6783 	*)
 6784 	  # g++
 6785 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 6786 	  # as there is no search path for DLLs.
 6787 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6788 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 6789 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6790 	  _LT_TAGVAR(always_export_symbols, $1)=no
 6791 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6792 
 6793 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 6794 	    _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'
 6795 	    # If the export-symbols file already is a .def file, use it as
 6796 	    # is; otherwise, prepend EXPORTS...
 6797 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6798               cp $export_symbols $output_objdir/$soname.def;
 6799             else
 6800               echo EXPORTS > $output_objdir/$soname.def;
 6801               cat $export_symbols >> $output_objdir/$soname.def;
 6802             fi~
 6803             $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'
 6804 	  else
 6805 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6806 	  fi
 6807 	  ;;
 6808 	esac
 6809 	;;
 6810       darwin* | rhapsody*)
 6811         _LT_DARWIN_LINKER_FEATURES($1)
 6812 	;;
 6813 
 6814       os2*)
 6815 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6816 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 6817 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6818 	shrext_cmds=.dll
 6819 	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6820 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6821 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6822 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6823 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 6824 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6825 	  emximp -o $lib $output_objdir/$libname.def'
 6826 	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6827 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6828 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6829 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6830 	  prefix_cmds="$SED"~
 6831 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
 6832 	    prefix_cmds="$prefix_cmds -e 1d";
 6833 	  fi~
 6834 	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 6835 	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 6836 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6837 	  emximp -o $lib $output_objdir/$libname.def'
 6838 	_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 6839 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6840 	_LT_TAGVAR(file_list_spec, $1)='@'
 6841 	;;
 6842 
 6843       dgux*)
 6844         case $cc_basename in
 6845           ec++*)
 6846 	    # FIXME: insert proper C++ library support
 6847 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6848 	    ;;
 6849           ghcx*)
 6850 	    # Green Hills C++ Compiler
 6851 	    # FIXME: insert proper C++ library support
 6852 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6853 	    ;;
 6854           *)
 6855 	    # FIXME: insert proper C++ library support
 6856 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6857 	    ;;
 6858         esac
 6859         ;;
 6860 
 6861       freebsd2.*)
 6862         # C++ shared libraries reported to be fairly broken before
 6863 	# switch to ELF
 6864         _LT_TAGVAR(ld_shlibs, $1)=no
 6865         ;;
 6866 
 6867       freebsd-elf*)
 6868         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6869         ;;
 6870 
 6871       freebsd* | dragonfly* | midnightbsd*)
 6872         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 6873         # conventions
 6874         _LT_TAGVAR(ld_shlibs, $1)=yes
 6875         ;;
 6876 
 6877       haiku*)
 6878         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6879         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6880         ;;
 6881 
 6882       hpux9*)
 6883         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6884         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6885         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6886         _LT_TAGVAR(hardcode_direct, $1)=yes
 6887         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6888 				             # but as the default
 6889 				             # location of the library.
 6890 
 6891         case $cc_basename in
 6892           CC*)
 6893             # FIXME: insert proper C++ library support
 6894             _LT_TAGVAR(ld_shlibs, $1)=no
 6895             ;;
 6896           aCC*)
 6897             _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 6898             # Commands to make compiler produce verbose output that lists
 6899             # what "hidden" libraries, object files and flags are used when
 6900             # linking a shared library.
 6901             #
 6902             # There doesn't appear to be a way to prevent this compiler from
 6903             # explicitly linking system object files so we need to strip them
 6904             # from the output so that they don't get included in the library
 6905             # dependencies.
 6906             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"'
 6907             ;;
 6908           *)
 6909             if test yes = "$GXX"; then
 6910               _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
 6911             else
 6912               # FIXME: insert proper C++ library support
 6913               _LT_TAGVAR(ld_shlibs, $1)=no
 6914             fi
 6915             ;;
 6916         esac
 6917         ;;
 6918 
 6919       hpux10*|hpux11*)
 6920         if test no = "$with_gnu_ld"; then
 6921 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6922 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6923 
 6924           case $host_cpu in
 6925             hppa*64*|ia64*)
 6926               ;;
 6927             *)
 6928 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6929               ;;
 6930           esac
 6931         fi
 6932         case $host_cpu in
 6933           hppa*64*|ia64*)
 6934             _LT_TAGVAR(hardcode_direct, $1)=no
 6935             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6936             ;;
 6937           *)
 6938             _LT_TAGVAR(hardcode_direct, $1)=yes
 6939             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6940             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6941 					         # but as the default
 6942 					         # location of the library.
 6943             ;;
 6944         esac
 6945 
 6946         case $cc_basename in
 6947           CC*)
 6948 	    # FIXME: insert proper C++ library support
 6949 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6950 	    ;;
 6951           aCC*)
 6952 	    case $host_cpu in
 6953 	      hppa*64*)
 6954 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6955 	        ;;
 6956 	      ia64*)
 6957 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6958 	        ;;
 6959 	      *)
 6960 	        _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'
 6961 	        ;;
 6962 	    esac
 6963 	    # Commands to make compiler produce verbose output that lists
 6964 	    # what "hidden" libraries, object files and flags are used when
 6965 	    # linking a shared library.
 6966 	    #
 6967 	    # There doesn't appear to be a way to prevent this compiler from
 6968 	    # explicitly linking system object files so we need to strip them
 6969 	    # from the output so that they don't get included in the library
 6970 	    # dependencies.
 6971 	    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"'
 6972 	    ;;
 6973           *)
 6974 	    if test yes = "$GXX"; then
 6975 	      if test no = "$with_gnu_ld"; then
 6976 	        case $host_cpu in
 6977 	          hppa*64*)
 6978 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6979 	            ;;
 6980 	          ia64*)
 6981 	            _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'
 6982 	            ;;
 6983 	          *)
 6984 	            _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'
 6985 	            ;;
 6986 	        esac
 6987 	      fi
 6988 	    else
 6989 	      # FIXME: insert proper C++ library support
 6990 	      _LT_TAGVAR(ld_shlibs, $1)=no
 6991 	    fi
 6992 	    ;;
 6993         esac
 6994         ;;
 6995 
 6996       interix[[3-9]]*)
 6997 	_LT_TAGVAR(hardcode_direct, $1)=no
 6998 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6999 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7000 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 7001 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 7002 	# Instead, shared libraries are loaded at an image base (0x10000000 by
 7003 	# default) and relocated if they conflict, which is a slow very memory
 7004 	# consuming and fragmenting process.  To avoid this, we pick a random,
 7005 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 7006 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 7007 	_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'
 7008 	_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'
 7009 	;;
 7010       irix5* | irix6*)
 7011         case $cc_basename in
 7012           CC*)
 7013 	    # SGI C++
 7014 	    _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'
 7015 
 7016 	    # Archives containing C++ object files must be created using
 7017 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 7018 	    # necessary to make sure instantiated templates are included
 7019 	    # in the archive.
 7020 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 7021 	    ;;
 7022           *)
 7023 	    if test yes = "$GXX"; then
 7024 	      if test no = "$with_gnu_ld"; then
 7025 	        _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'
 7026 	      else
 7027 	        _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'
 7028 	      fi
 7029 	    fi
 7030 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 7031 	    ;;
 7032         esac
 7033         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7034         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7035         _LT_TAGVAR(inherit_rpath, $1)=yes
 7036         ;;
 7037 
 7038       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 7039         case $cc_basename in
 7040           KCC*)
 7041 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 7042 
 7043 	    # KCC will only create a shared library if the output file
 7044 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 7045 	    # to its proper name (with version) after linking.
 7046 	    _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'
 7047 	    _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'
 7048 	    # Commands to make compiler produce verbose output that lists
 7049 	    # what "hidden" libraries, object files and flags are used when
 7050 	    # linking a shared library.
 7051 	    #
 7052 	    # There doesn't appear to be a way to prevent this compiler from
 7053 	    # explicitly linking system object files so we need to strip them
 7054 	    # from the output so that they don't get included in the library
 7055 	    # dependencies.
 7056 	    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"'
 7057 
 7058 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7059 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7060 
 7061 	    # Archives containing C++ object files must be created using
 7062 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 7063 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 7064 	    ;;
 7065 	  icpc* | ecpc* )
 7066 	    # Intel C++
 7067 	    with_gnu_ld=yes
 7068 	    # version 8.0 and above of icpc choke on multiply defined symbols
 7069 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
 7070 	    # earlier do not add the objects themselves.
 7071 	    case `$CC -V 2>&1` in
 7072 	      *"Version 7."*)
 7073 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7074 		_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'
 7075 		;;
 7076 	      *)  # Version 8.0 or newer
 7077 	        tmp_idyn=
 7078 	        case $host_cpu in
 7079 		  ia64*) tmp_idyn=' -i_dynamic';;
 7080 		esac
 7081 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 7082 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 7083 		;;
 7084 	    esac
 7085 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7086 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7087 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7088 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 7089 	    ;;
 7090           pgCC* | pgcpp*)
 7091             # Portland Group C++ compiler
 7092 	    case `$CC -V` in
 7093 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 7094 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 7095                rm -rf $tpldir~
 7096                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 7097                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 7098 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 7099                 rm -rf $tpldir~
 7100                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 7101                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 7102                 $RANLIB $oldlib'
 7103 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 7104                 rm -rf $tpldir~
 7105                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7106                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7107 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 7108                 rm -rf $tpldir~
 7109                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7110                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 7111 	      ;;
 7112 	    *) # Version 6 and above use weak symbols
 7113 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7114 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
 7115 	      ;;
 7116 	    esac
 7117 
 7118 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
 7119 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7120 	    _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'
 7121             ;;
 7122 	  cxx*)
 7123 	    # Compaq C++
 7124 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7125 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
 7126 
 7127 	    runpath_var=LD_RUN_PATH
 7128 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7129 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7130 
 7131 	    # Commands to make compiler produce verbose output that lists
 7132 	    # what "hidden" libraries, object files and flags are used when
 7133 	    # linking a shared library.
 7134 	    #
 7135 	    # There doesn't appear to be a way to prevent this compiler from
 7136 	    # explicitly linking system object files so we need to strip them
 7137 	    # from the output so that they don't get included in the library
 7138 	    # dependencies.
 7139 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 7140 	    ;;
 7141 	  xl* | mpixl* | bgxl*)
 7142 	    # IBM XL 8.0 on PPC, with GNU ld
 7143 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7144 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7145 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 7146 	    if test yes = "$supports_anon_versioning"; then
 7147 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 7148                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 7149                 echo "local: *; };" >> $output_objdir/$libname.ver~
 7150                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 7151 	    fi
 7152 	    ;;
 7153 	  *)
 7154 	    case `$CC -V 2>&1 | $SED 5q` in
 7155 	    *Sun\ C*)
 7156 	      # Sun C++ 5.9
 7157 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7158 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7159 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
 7160 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7161 	      _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'
 7162 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
 7163 
 7164 	      # Not sure whether something based on
 7165 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 7166 	      # would be better.
 7167 	      output_verbose_link_cmd='func_echo_all'
 7168 
 7169 	      # Archives containing C++ object files must be created using
 7170 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7171 	      # necessary to make sure instantiated templates are included
 7172 	      # in the archive.
 7173 	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7174 	      ;;
 7175 	    esac
 7176 	    ;;
 7177 	esac
 7178 	;;
 7179 
 7180       lynxos*)
 7181         # FIXME: insert proper C++ library support
 7182 	_LT_TAGVAR(ld_shlibs, $1)=no
 7183 	;;
 7184 
 7185       m88k*)
 7186         # FIXME: insert proper C++ library support
 7187         _LT_TAGVAR(ld_shlibs, $1)=no
 7188 	;;
 7189 
 7190       mvs*)
 7191         case $cc_basename in
 7192           cxx*)
 7193 	    # FIXME: insert proper C++ library support
 7194 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7195 	    ;;
 7196 	  *)
 7197 	    # FIXME: insert proper C++ library support
 7198 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7199 	    ;;
 7200 	esac
 7201 	;;
 7202 
 7203       netbsd*)
 7204         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 7205 	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 7206 	  wlarc=
 7207 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7208 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7209 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7210 	fi
 7211 	# Workaround some broken pre-1.5 toolchains
 7212 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 7213 	;;
 7214 
 7215       *nto* | *qnx*)
 7216         _LT_TAGVAR(ld_shlibs, $1)=yes
 7217 	;;
 7218 
 7219       openbsd* | bitrig*)
 7220 	if test -f /usr/libexec/ld.so; then
 7221 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7222 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7223 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 7224 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 7225 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7226 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 7227 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
 7228 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 7229 	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 7230 	  fi
 7231 	  output_verbose_link_cmd=func_echo_all
 7232 	else
 7233 	  _LT_TAGVAR(ld_shlibs, $1)=no
 7234 	fi
 7235 	;;
 7236 
 7237       osf3* | osf4* | osf5*)
 7238         case $cc_basename in
 7239           KCC*)
 7240 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 7241 
 7242 	    # KCC will only create a shared library if the output file
 7243 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 7244 	    # to its proper name (with version) after linking.
 7245 	    _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'
 7246 
 7247 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7248 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7249 
 7250 	    # Archives containing C++ object files must be created using
 7251 	    # the KAI C++ compiler.
 7252 	    case $host in
 7253 	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 7254 	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 7255 	    esac
 7256 	    ;;
 7257           RCC*)
 7258 	    # Rational C++ 2.4.1
 7259 	    # FIXME: insert proper C++ library support
 7260 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7261 	    ;;
 7262           cxx*)
 7263 	    case $host in
 7264 	      osf3*)
 7265 	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7266 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 7267 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7268 		;;
 7269 	      *)
 7270 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 7271 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 7272 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 7273                   echo "-hidden">> $lib.exp~
 7274                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
 7275                   $RM $lib.exp'
 7276 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7277 		;;
 7278 	    esac
 7279 
 7280 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7281 
 7282 	    # Commands to make compiler produce verbose output that lists
 7283 	    # what "hidden" libraries, object files and flags are used when
 7284 	    # linking a shared library.
 7285 	    #
 7286 	    # There doesn't appear to be a way to prevent this compiler from
 7287 	    # explicitly linking system object files so we need to strip them
 7288 	    # from the output so that they don't get included in the library
 7289 	    # dependencies.
 7290 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 7291 	    ;;
 7292 	  *)
 7293 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7294 	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7295 	      case $host in
 7296 	        osf3*)
 7297 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 7298 		  ;;
 7299 	        *)
 7300 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 7301 		  ;;
 7302 	      esac
 7303 
 7304 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7305 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7306 
 7307 	      # Commands to make compiler produce verbose output that lists
 7308 	      # what "hidden" libraries, object files and flags are used when
 7309 	      # linking a shared library.
 7310 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7311 
 7312 	    else
 7313 	      # FIXME: insert proper C++ library support
 7314 	      _LT_TAGVAR(ld_shlibs, $1)=no
 7315 	    fi
 7316 	    ;;
 7317         esac
 7318         ;;
 7319 
 7320       psos*)
 7321         # FIXME: insert proper C++ library support
 7322         _LT_TAGVAR(ld_shlibs, $1)=no
 7323         ;;
 7324 
 7325       sunos4*)
 7326         case $cc_basename in
 7327           CC*)
 7328 	    # Sun C++ 4.x
 7329 	    # FIXME: insert proper C++ library support
 7330 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7331 	    ;;
 7332           lcc*)
 7333 	    # Lucid
 7334 	    # FIXME: insert proper C++ library support
 7335 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7336 	    ;;
 7337           *)
 7338 	    # FIXME: insert proper C++ library support
 7339 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7340 	    ;;
 7341         esac
 7342         ;;
 7343 
 7344       solaris*)
 7345         case $cc_basename in
 7346           CC* | sunCC*)
 7347 	    # Sun C++ 4.2, 5.x and Centerline C++
 7348             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 7349 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7350 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7351 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7352               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 7353 
 7354 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7355 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7356 	    case $host_os in
 7357 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7358 	      *)
 7359 		# The compiler driver will combine and reorder linker options,
 7360 		# but understands '-z linker_flag'.
 7361 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
 7362 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 7363 	        ;;
 7364 	    esac
 7365 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 7366 
 7367 	    output_verbose_link_cmd='func_echo_all'
 7368 
 7369 	    # Archives containing C++ object files must be created using
 7370 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7371 	    # necessary to make sure instantiated templates are included
 7372 	    # in the archive.
 7373 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7374 	    ;;
 7375           gcx*)
 7376 	    # Green Hills C++ Compiler
 7377 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7378 
 7379 	    # The C++ compiler must be used to create the archive.
 7380 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 7381 	    ;;
 7382           *)
 7383 	    # GNU C++ compiler with Solaris linker
 7384 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7385 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
 7386 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 7387 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7388 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7389                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 7390 
 7391 	        # Commands to make compiler produce verbose output that lists
 7392 	        # what "hidden" libraries, object files and flags are used when
 7393 	        # linking a shared library.
 7394 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7395 	      else
 7396 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
 7397 	        # platform.
 7398 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7399 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7400                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 7401 
 7402 	        # Commands to make compiler produce verbose output that lists
 7403 	        # what "hidden" libraries, object files and flags are used when
 7404 	        # linking a shared library.
 7405 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7406 	      fi
 7407 
 7408 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
 7409 	      case $host_os in
 7410 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7411 		*)
 7412 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 7413 		  ;;
 7414 	      esac
 7415 	    fi
 7416 	    ;;
 7417         esac
 7418         ;;
 7419 
 7420     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 7421       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7422       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7423       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7424       runpath_var='LD_RUN_PATH'
 7425 
 7426       case $cc_basename in
 7427         CC*)
 7428 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7429 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7430 	  ;;
 7431 	*)
 7432 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7433 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7434 	  ;;
 7435       esac
 7436       ;;
 7437 
 7438       sysv5* | sco3.2v5* | sco5v6*)
 7439 	# Note: We CANNOT use -z defs as we might desire, because we do not
 7440 	# link with -lc, and that would cause any symbols used from libc to
 7441 	# always be unresolved, which means just about no library would
 7442 	# ever link correctly.  If we're not using GNU ld we use -z text
 7443 	# though, which does catch some bad symbols but isn't as heavy-handed
 7444 	# as -z defs.
 7445 	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7446 	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 7447 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7448 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7449 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 7450 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 7451 	_LT_TAGVAR(link_all_deplibs, $1)=yes
 7452 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 7453 	runpath_var='LD_RUN_PATH'
 7454 
 7455 	case $cc_basename in
 7456           CC*)
 7457 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7458 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7459 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 7460               '"$_LT_TAGVAR(old_archive_cmds, $1)"
 7461 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 7462               '"$_LT_TAGVAR(reload_cmds, $1)"
 7463 	    ;;
 7464 	  *)
 7465 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7466 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7467 	    ;;
 7468 	esac
 7469       ;;
 7470 
 7471       tandem*)
 7472         case $cc_basename in
 7473           NCC*)
 7474 	    # NonStop-UX NCC 3.20
 7475 	    # FIXME: insert proper C++ library support
 7476 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7477 	    ;;
 7478           *)
 7479 	    # FIXME: insert proper C++ library support
 7480 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7481 	    ;;
 7482         esac
 7483         ;;
 7484 
 7485       vxworks*)
 7486         # FIXME: insert proper C++ library support
 7487         _LT_TAGVAR(ld_shlibs, $1)=no
 7488         ;;
 7489 
 7490       *)
 7491         # FIXME: insert proper C++ library support
 7492         _LT_TAGVAR(ld_shlibs, $1)=no
 7493         ;;
 7494     esac
 7495 
 7496     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 7497     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 7498 
 7499     _LT_TAGVAR(GCC, $1)=$GXX
 7500     _LT_TAGVAR(LD, $1)=$LD
 7501 
 7502     ## CAVEAT EMPTOR:
 7503     ## There is no encapsulation within the following macros, do not change
 7504     ## the running order or otherwise move them around unless you know exactly
 7505     ## what you are doing...
 7506     _LT_SYS_HIDDEN_LIBDEPS($1)
 7507     _LT_COMPILER_PIC($1)
 7508     _LT_COMPILER_C_O($1)
 7509     _LT_COMPILER_FILE_LOCKS($1)
 7510     _LT_LINKER_SHLIBS($1)
 7511     _LT_SYS_DYNAMIC_LINKER($1)
 7512     _LT_LINKER_HARDCODE_LIBPATH($1)
 7513 
 7514     _LT_CONFIG($1)
 7515   fi # test -n "$compiler"
 7516 
 7517   CC=$lt_save_CC
 7518   CFLAGS=$lt_save_CFLAGS
 7519   LDCXX=$LD
 7520   LD=$lt_save_LD
 7521   GCC=$lt_save_GCC
 7522   with_gnu_ld=$lt_save_with_gnu_ld
 7523   lt_cv_path_LDCXX=$lt_cv_path_LD
 7524   lt_cv_path_LD=$lt_save_path_LD
 7525   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 7526   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 7527 fi # test yes != "$_lt_caught_CXX_error"
 7528 
 7529 AC_LANG_POP
 7530 ])# _LT_LANG_CXX_CONFIG
 7531 
 7532 
 7533 # _LT_FUNC_STRIPNAME_CNF
 7534 # ----------------------
 7535 # func_stripname_cnf prefix suffix name
 7536 # strip PREFIX and SUFFIX off of NAME.
 7537 # PREFIX and SUFFIX must not contain globbing or regex special
 7538 # characters, hashes, percent signs, but SUFFIX may contain a leading
 7539 # dot (in which case that matches only a dot).
 7540 #
 7541 # This function is identical to the (non-XSI) version of func_stripname,
 7542 # except this one can be used by m4 code that may be executed by configure,
 7543 # rather than the libtool script.
 7544 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 7545 AC_REQUIRE([_LT_DECL_SED])
 7546 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 7547 func_stripname_cnf ()
 7548 {
 7549   case @S|@2 in
 7550   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
 7551   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
 7552   esac
 7553 } # func_stripname_cnf
 7554 ])# _LT_FUNC_STRIPNAME_CNF
 7555 
 7556 
 7557 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 7558 # ---------------------------------
 7559 # Figure out "hidden" library dependencies from verbose
 7560 # compiler output when linking a shared library.
 7561 # Parse the compiler output and extract the necessary
 7562 # objects, libraries and library flags.
 7563 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 7564 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 7565 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 7566 # Dependencies to place before and after the object being linked:
 7567 _LT_TAGVAR(predep_objects, $1)=
 7568 _LT_TAGVAR(postdep_objects, $1)=
 7569 _LT_TAGVAR(predeps, $1)=
 7570 _LT_TAGVAR(postdeps, $1)=
 7571 _LT_TAGVAR(compiler_lib_search_path, $1)=
 7572 
 7573 dnl we can't use the lt_simple_compile_test_code here,
 7574 dnl because it contains code intended for an executable,
 7575 dnl not a library.  It's possible we should let each
 7576 dnl tag define a new lt_????_link_test_code variable,
 7577 dnl but it's only used here...
 7578 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 7579 int a;
 7580 void foo (void) { a = 0; }
 7581 _LT_EOF
 7582 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 7583 class Foo
 7584 {
 7585 public:
 7586   Foo (void) { a = 0; }
 7587 private:
 7588   int a;
 7589 };
 7590 _LT_EOF
 7591 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 7592       subroutine foo
 7593       implicit none
 7594       integer*4 a
 7595       a=0
 7596       return
 7597       end
 7598 _LT_EOF
 7599 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 7600       subroutine foo
 7601       implicit none
 7602       integer a
 7603       a=0
 7604       return
 7605       end
 7606 _LT_EOF
 7607 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 7608 public class foo {
 7609   private int a;
 7610   public void bar (void) {
 7611     a = 0;
 7612   }
 7613 };
 7614 _LT_EOF
 7615 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 7616 package foo
 7617 func foo() {
 7618 }
 7619 _LT_EOF
 7620 ])
 7621 
 7622 _lt_libdeps_save_CFLAGS=$CFLAGS
 7623 case "$CC $CFLAGS " in #(
 7624 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 7625 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 7626 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 7627 esac
 7628 
 7629 dnl Parse the compiler output and extract the necessary
 7630 dnl objects, libraries and library flags.
 7631 if AC_TRY_EVAL(ac_compile); then
 7632   # Parse the compiler output and extract the necessary
 7633   # objects, libraries and library flags.
 7634 
 7635   # Sentinel used to keep track of whether or not we are before
 7636   # the conftest object file.
 7637   pre_test_object_deps_done=no
 7638 
 7639   for p in `eval "$output_verbose_link_cmd"`; do
 7640     case $prev$p in
 7641 
 7642     -L* | -R* | -l*)
 7643        # Some compilers place space between "-{L,R}" and the path.
 7644        # Remove the space.
 7645        if test x-L = "$p" ||
 7646           test x-R = "$p"; then
 7647 	 prev=$p
 7648 	 continue
 7649        fi
 7650 
 7651        # Expand the sysroot to ease extracting the directories later.
 7652        if test -z "$prev"; then
 7653          case $p in
 7654          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 7655          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 7656          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 7657          esac
 7658        fi
 7659        case $p in
 7660        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 7661        esac
 7662        if test no = "$pre_test_object_deps_done"; then
 7663 	 case $prev in
 7664 	 -L | -R)
 7665 	   # Internal compiler library paths should come after those
 7666 	   # provided the user.  The postdeps already come after the
 7667 	   # user supplied libs so there is no need to process them.
 7668 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 7669 	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
 7670 	   else
 7671 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
 7672 	   fi
 7673 	   ;;
 7674 	 # The "-l" case would never come before the object being
 7675 	 # linked, so don't bother handling this case.
 7676 	 esac
 7677        else
 7678 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 7679 	   _LT_TAGVAR(postdeps, $1)=$prev$p
 7680 	 else
 7681 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
 7682 	 fi
 7683        fi
 7684        prev=
 7685        ;;
 7686 
 7687     *.lto.$objext) ;; # Ignore GCC LTO objects
 7688     *.$objext)
 7689        # This assumes that the test object file only shows up
 7690        # once in the compiler output.
 7691        if test "$p" = "conftest.$objext"; then
 7692 	 pre_test_object_deps_done=yes
 7693 	 continue
 7694        fi
 7695 
 7696        if test no = "$pre_test_object_deps_done"; then
 7697 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 7698 	   _LT_TAGVAR(predep_objects, $1)=$p
 7699 	 else
 7700 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 7701 	 fi
 7702        else
 7703 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 7704 	   _LT_TAGVAR(postdep_objects, $1)=$p
 7705 	 else
 7706 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 7707 	 fi
 7708        fi
 7709        ;;
 7710 
 7711     *) ;; # Ignore the rest.
 7712 
 7713     esac
 7714   done
 7715 
 7716   # Clean up.
 7717   rm -f a.out a.exe
 7718 else
 7719   echo "libtool.m4: error: problem compiling $1 test program"
 7720 fi
 7721 
 7722 $RM -f confest.$objext
 7723 CFLAGS=$_lt_libdeps_save_CFLAGS
 7724 
 7725 # PORTME: override above test on systems where it is broken
 7726 m4_if([$1], [CXX],
 7727 [case $host_os in
 7728 interix[[3-9]]*)
 7729   # Interix 3.5 installs completely hosed .la files for C++, so rather than
 7730   # hack all around it, let's just trust "g++" to DTRT.
 7731   _LT_TAGVAR(predep_objects,$1)=
 7732   _LT_TAGVAR(postdep_objects,$1)=
 7733   _LT_TAGVAR(postdeps,$1)=
 7734   ;;
 7735 esac
 7736 ])
 7737 
 7738 case " $_LT_TAGVAR(postdeps, $1) " in
 7739 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 7740 esac
 7741  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 7742 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 7743  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
 7744 fi
 7745 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 7746     [The directories searched by this compiler when creating a shared library])
 7747 _LT_TAGDECL([], [predep_objects], [1],
 7748     [Dependencies to place before and after the objects being linked to
 7749     create a shared library])
 7750 _LT_TAGDECL([], [postdep_objects], [1])
 7751 _LT_TAGDECL([], [predeps], [1])
 7752 _LT_TAGDECL([], [postdeps], [1])
 7753 _LT_TAGDECL([], [compiler_lib_search_path], [1],
 7754     [The library search path used internally by the compiler when linking
 7755     a shared library])
 7756 ])# _LT_SYS_HIDDEN_LIBDEPS
 7757 
 7758 
 7759 # _LT_LANG_F77_CONFIG([TAG])
 7760 # --------------------------
 7761 # Ensure that the configuration variables for a Fortran 77 compiler are
 7762 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7763 # to write the compiler configuration to 'libtool'.
 7764 m4_defun([_LT_LANG_F77_CONFIG],
 7765 [AC_LANG_PUSH(Fortran 77)
 7766 if test -z "$F77" || test no = "$F77"; then
 7767   _lt_disable_F77=yes
 7768 fi
 7769 
 7770 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7771 _LT_TAGVAR(allow_undefined_flag, $1)=
 7772 _LT_TAGVAR(always_export_symbols, $1)=no
 7773 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7774 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7775 _LT_TAGVAR(hardcode_direct, $1)=no
 7776 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7778 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7779 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7780 _LT_TAGVAR(hardcode_automatic, $1)=no
 7781 _LT_TAGVAR(inherit_rpath, $1)=no
 7782 _LT_TAGVAR(module_cmds, $1)=
 7783 _LT_TAGVAR(module_expsym_cmds, $1)=
 7784 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7785 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7786 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7787 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7788 _LT_TAGVAR(no_undefined_flag, $1)=
 7789 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7790 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7791 
 7792 # Source file extension for f77 test sources.
 7793 ac_ext=f
 7794 
 7795 # Object file extension for compiled f77 test sources.
 7796 objext=o
 7797 _LT_TAGVAR(objext, $1)=$objext
 7798 
 7799 # No sense in running all these tests if we already determined that
 7800 # the F77 compiler isn't working.  Some variables (like enable_shared)
 7801 # are currently assumed to apply to all compilers on this platform,
 7802 # and will be corrupted by setting them based on a non-working compiler.
 7803 if test yes != "$_lt_disable_F77"; then
 7804   # Code to be used in simple compile tests
 7805   lt_simple_compile_test_code="\
 7806       subroutine t
 7807       return
 7808       end
 7809 "
 7810 
 7811   # Code to be used in simple link tests
 7812   lt_simple_link_test_code="\
 7813       program t
 7814       end
 7815 "
 7816 
 7817   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7818   _LT_TAG_COMPILER
 7819 
 7820   # save warnings/boilerplate of simple test code
 7821   _LT_COMPILER_BOILERPLATE
 7822   _LT_LINKER_BOILERPLATE
 7823 
 7824   # Allow CC to be a program name with arguments.
 7825   lt_save_CC=$CC
 7826   lt_save_GCC=$GCC
 7827   lt_save_CFLAGS=$CFLAGS
 7828   CC=${F77-"f77"}
 7829   CFLAGS=$FFLAGS
 7830   compiler=$CC
 7831   _LT_TAGVAR(compiler, $1)=$CC
 7832   _LT_CC_BASENAME([$compiler])
 7833   GCC=$G77
 7834   if test -n "$compiler"; then
 7835     AC_MSG_CHECKING([if libtool supports shared libraries])
 7836     AC_MSG_RESULT([$can_build_shared])
 7837 
 7838     AC_MSG_CHECKING([whether to build shared libraries])
 7839     test no = "$can_build_shared" && enable_shared=no
 7840 
 7841     # On AIX, shared libraries and static libraries use the same namespace, and
 7842     # are all built from PIC.
 7843     case $host_os in
 7844       aix3*)
 7845         test yes = "$enable_shared" && enable_static=no
 7846         if test -n "$RANLIB"; then
 7847           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7848           postinstall_cmds='$RANLIB $lib'
 7849         fi
 7850         ;;
 7851       aix[[4-9]]*)
 7852 	if test ia64 != "$host_cpu"; then
 7853 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7854 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7855 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7856 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7857 	  esac
 7858 	fi
 7859         ;;
 7860     esac
 7861     AC_MSG_RESULT([$enable_shared])
 7862 
 7863     AC_MSG_CHECKING([whether to build static libraries])
 7864     # Make sure either enable_shared or enable_static is yes.
 7865     test yes = "$enable_shared" || enable_static=yes
 7866     AC_MSG_RESULT([$enable_static])
 7867 
 7868     _LT_TAGVAR(GCC, $1)=$G77
 7869     _LT_TAGVAR(LD, $1)=$LD
 7870 
 7871     ## CAVEAT EMPTOR:
 7872     ## There is no encapsulation within the following macros, do not change
 7873     ## the running order or otherwise move them around unless you know exactly
 7874     ## what you are doing...
 7875     _LT_COMPILER_PIC($1)
 7876     _LT_COMPILER_C_O($1)
 7877     _LT_COMPILER_FILE_LOCKS($1)
 7878     _LT_LINKER_SHLIBS($1)
 7879     _LT_SYS_DYNAMIC_LINKER($1)
 7880     _LT_LINKER_HARDCODE_LIBPATH($1)
 7881 
 7882     _LT_CONFIG($1)
 7883   fi # test -n "$compiler"
 7884 
 7885   GCC=$lt_save_GCC
 7886   CC=$lt_save_CC
 7887   CFLAGS=$lt_save_CFLAGS
 7888 fi # test yes != "$_lt_disable_F77"
 7889 
 7890 AC_LANG_POP
 7891 ])# _LT_LANG_F77_CONFIG
 7892 
 7893 
 7894 # _LT_LANG_FC_CONFIG([TAG])
 7895 # -------------------------
 7896 # Ensure that the configuration variables for a Fortran compiler are
 7897 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7898 # to write the compiler configuration to 'libtool'.
 7899 m4_defun([_LT_LANG_FC_CONFIG],
 7900 [AC_LANG_PUSH(Fortran)
 7901 
 7902 if test -z "$FC" || test no = "$FC"; then
 7903   _lt_disable_FC=yes
 7904 fi
 7905 
 7906 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7907 _LT_TAGVAR(allow_undefined_flag, $1)=
 7908 _LT_TAGVAR(always_export_symbols, $1)=no
 7909 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7910 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7911 _LT_TAGVAR(hardcode_direct, $1)=no
 7912 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7914 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7915 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7916 _LT_TAGVAR(hardcode_automatic, $1)=no
 7917 _LT_TAGVAR(inherit_rpath, $1)=no
 7918 _LT_TAGVAR(module_cmds, $1)=
 7919 _LT_TAGVAR(module_expsym_cmds, $1)=
 7920 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7921 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7922 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7923 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7924 _LT_TAGVAR(no_undefined_flag, $1)=
 7925 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7926 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7927 
 7928 # Source file extension for fc test sources.
 7929 ac_ext=${ac_fc_srcext-f}
 7930 
 7931 # Object file extension for compiled fc test sources.
 7932 objext=o
 7933 _LT_TAGVAR(objext, $1)=$objext
 7934 
 7935 # No sense in running all these tests if we already determined that
 7936 # the FC compiler isn't working.  Some variables (like enable_shared)
 7937 # are currently assumed to apply to all compilers on this platform,
 7938 # and will be corrupted by setting them based on a non-working compiler.
 7939 if test yes != "$_lt_disable_FC"; then
 7940   # Code to be used in simple compile tests
 7941   lt_simple_compile_test_code="\
 7942       subroutine t
 7943       return
 7944       end
 7945 "
 7946 
 7947   # Code to be used in simple link tests
 7948   lt_simple_link_test_code="\
 7949       program t
 7950       end
 7951 "
 7952 
 7953   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7954   _LT_TAG_COMPILER
 7955 
 7956   # save warnings/boilerplate of simple test code
 7957   _LT_COMPILER_BOILERPLATE
 7958   _LT_LINKER_BOILERPLATE
 7959 
 7960   # Allow CC to be a program name with arguments.
 7961   lt_save_CC=$CC
 7962   lt_save_GCC=$GCC
 7963   lt_save_CFLAGS=$CFLAGS
 7964   CC=${FC-"f95"}
 7965   CFLAGS=$FCFLAGS
 7966   compiler=$CC
 7967   GCC=$ac_cv_fc_compiler_gnu
 7968 
 7969   _LT_TAGVAR(compiler, $1)=$CC
 7970   _LT_CC_BASENAME([$compiler])
 7971 
 7972   if test -n "$compiler"; then
 7973     AC_MSG_CHECKING([if libtool supports shared libraries])
 7974     AC_MSG_RESULT([$can_build_shared])
 7975 
 7976     AC_MSG_CHECKING([whether to build shared libraries])
 7977     test no = "$can_build_shared" && enable_shared=no
 7978 
 7979     # On AIX, shared libraries and static libraries use the same namespace, and
 7980     # are all built from PIC.
 7981     case $host_os in
 7982       aix3*)
 7983         test yes = "$enable_shared" && enable_static=no
 7984         if test -n "$RANLIB"; then
 7985           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7986           postinstall_cmds='$RANLIB $lib'
 7987         fi
 7988         ;;
 7989       aix[[4-9]]*)
 7990 	if test ia64 != "$host_cpu"; then
 7991 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7992 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7993 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7994 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7995 	  esac
 7996 	fi
 7997         ;;
 7998     esac
 7999     AC_MSG_RESULT([$enable_shared])
 8000 
 8001     AC_MSG_CHECKING([whether to build static libraries])
 8002     # Make sure either enable_shared or enable_static is yes.
 8003     test yes = "$enable_shared" || enable_static=yes
 8004     AC_MSG_RESULT([$enable_static])
 8005 
 8006     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
 8007     _LT_TAGVAR(LD, $1)=$LD
 8008 
 8009     ## CAVEAT EMPTOR:
 8010     ## There is no encapsulation within the following macros, do not change
 8011     ## the running order or otherwise move them around unless you know exactly
 8012     ## what you are doing...
 8013     _LT_SYS_HIDDEN_LIBDEPS($1)
 8014     _LT_COMPILER_PIC($1)
 8015     _LT_COMPILER_C_O($1)
 8016     _LT_COMPILER_FILE_LOCKS($1)
 8017     _LT_LINKER_SHLIBS($1)
 8018     _LT_SYS_DYNAMIC_LINKER($1)
 8019     _LT_LINKER_HARDCODE_LIBPATH($1)
 8020 
 8021     _LT_CONFIG($1)
 8022   fi # test -n "$compiler"
 8023 
 8024   GCC=$lt_save_GCC
 8025   CC=$lt_save_CC
 8026   CFLAGS=$lt_save_CFLAGS
 8027 fi # test yes != "$_lt_disable_FC"
 8028 
 8029 AC_LANG_POP
 8030 ])# _LT_LANG_FC_CONFIG
 8031 
 8032 
 8033 # _LT_LANG_GCJ_CONFIG([TAG])
 8034 # --------------------------
 8035 # Ensure that the configuration variables for the GNU Java Compiler compiler
 8036 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8037 # to write the compiler configuration to 'libtool'.
 8038 m4_defun([_LT_LANG_GCJ_CONFIG],
 8039 [AC_REQUIRE([LT_PROG_GCJ])dnl
 8040 AC_LANG_SAVE
 8041 
 8042 # Source file extension for Java test sources.
 8043 ac_ext=java
 8044 
 8045 # Object file extension for compiled Java test sources.
 8046 objext=o
 8047 _LT_TAGVAR(objext, $1)=$objext
 8048 
 8049 # Code to be used in simple compile tests
 8050 lt_simple_compile_test_code="class foo {}"
 8051 
 8052 # Code to be used in simple link tests
 8053 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 8054 
 8055 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8056 _LT_TAG_COMPILER
 8057 
 8058 # save warnings/boilerplate of simple test code
 8059 _LT_COMPILER_BOILERPLATE
 8060 _LT_LINKER_BOILERPLATE
 8061 
 8062 # Allow CC to be a program name with arguments.
 8063 lt_save_CC=$CC
 8064 lt_save_CFLAGS=$CFLAGS
 8065 lt_save_GCC=$GCC
 8066 GCC=yes
 8067 CC=${GCJ-"gcj"}
 8068 CFLAGS=$GCJFLAGS
 8069 compiler=$CC
 8070 _LT_TAGVAR(compiler, $1)=$CC
 8071 _LT_TAGVAR(LD, $1)=$LD
 8072 _LT_CC_BASENAME([$compiler])
 8073 
 8074 # GCJ did not exist at the time GCC didn't implicitly link libc in.
 8075 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 8076 
 8077 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 8078 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 8079 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 8080 
 8081 if test -n "$compiler"; then
 8082   _LT_COMPILER_NO_RTTI($1)
 8083   _LT_COMPILER_PIC($1)
 8084   _LT_COMPILER_C_O($1)
 8085   _LT_COMPILER_FILE_LOCKS($1)
 8086   _LT_LINKER_SHLIBS($1)
 8087   _LT_LINKER_HARDCODE_LIBPATH($1)
 8088 
 8089   _LT_CONFIG($1)
 8090 fi
 8091 
 8092 AC_LANG_RESTORE
 8093 
 8094 GCC=$lt_save_GCC
 8095 CC=$lt_save_CC
 8096 CFLAGS=$lt_save_CFLAGS
 8097 ])# _LT_LANG_GCJ_CONFIG
 8098 
 8099 
 8100 # _LT_LANG_GO_CONFIG([TAG])
 8101 # --------------------------
 8102 # Ensure that the configuration variables for the GNU Go compiler
 8103 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8104 # to write the compiler configuration to 'libtool'.
 8105 m4_defun([_LT_LANG_GO_CONFIG],
 8106 [AC_REQUIRE([LT_PROG_GO])dnl
 8107 AC_LANG_SAVE
 8108 
 8109 # Source file extension for Go test sources.
 8110 ac_ext=go
 8111 
 8112 # Object file extension for compiled Go test sources.
 8113 objext=o
 8114 _LT_TAGVAR(objext, $1)=$objext
 8115 
 8116 # Code to be used in simple compile tests
 8117 lt_simple_compile_test_code="package main; func main() { }"
 8118 
 8119 # Code to be used in simple link tests
 8120 lt_simple_link_test_code='package main; func main() { }'
 8121 
 8122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8123 _LT_TAG_COMPILER
 8124 
 8125 # save warnings/boilerplate of simple test code
 8126 _LT_COMPILER_BOILERPLATE
 8127 _LT_LINKER_BOILERPLATE
 8128 
 8129 # Allow CC to be a program name with arguments.
 8130 lt_save_CC=$CC
 8131 lt_save_CFLAGS=$CFLAGS
 8132 lt_save_GCC=$GCC
 8133 GCC=yes
 8134 CC=${GOC-"gccgo"}
 8135 CFLAGS=$GOFLAGS
 8136 compiler=$CC
 8137 _LT_TAGVAR(compiler, $1)=$CC
 8138 _LT_TAGVAR(LD, $1)=$LD
 8139 _LT_CC_BASENAME([$compiler])
 8140 
 8141 # Go did not exist at the time GCC didn't implicitly link libc in.
 8142 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 8143 
 8144 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 8145 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 8146 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 8147 
 8148 if test -n "$compiler"; then
 8149   _LT_COMPILER_NO_RTTI($1)
 8150   _LT_COMPILER_PIC($1)
 8151   _LT_COMPILER_C_O($1)
 8152   _LT_COMPILER_FILE_LOCKS($1)
 8153   _LT_LINKER_SHLIBS($1)
 8154   _LT_LINKER_HARDCODE_LIBPATH($1)
 8155 
 8156   _LT_CONFIG($1)
 8157 fi
 8158 
 8159 AC_LANG_RESTORE
 8160 
 8161 GCC=$lt_save_GCC
 8162 CC=$lt_save_CC
 8163 CFLAGS=$lt_save_CFLAGS
 8164 ])# _LT_LANG_GO_CONFIG
 8165 
 8166 
 8167 # _LT_LANG_RC_CONFIG([TAG])
 8168 # -------------------------
 8169 # Ensure that the configuration variables for the Windows resource compiler
 8170 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8171 # to write the compiler configuration to 'libtool'.
 8172 m4_defun([_LT_LANG_RC_CONFIG],
 8173 [AC_REQUIRE([LT_PROG_RC])dnl
 8174 AC_LANG_SAVE
 8175 
 8176 # Source file extension for RC test sources.
 8177 ac_ext=rc
 8178 
 8179 # Object file extension for compiled RC test sources.
 8180 objext=o
 8181 _LT_TAGVAR(objext, $1)=$objext
 8182 
 8183 # Code to be used in simple compile tests
 8184 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 8185 
 8186 # Code to be used in simple link tests
 8187 lt_simple_link_test_code=$lt_simple_compile_test_code
 8188 
 8189 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8190 _LT_TAG_COMPILER
 8191 
 8192 # save warnings/boilerplate of simple test code
 8193 _LT_COMPILER_BOILERPLATE
 8194 _LT_LINKER_BOILERPLATE
 8195 
 8196 # Allow CC to be a program name with arguments.
 8197 lt_save_CC=$CC
 8198 lt_save_CFLAGS=$CFLAGS
 8199 lt_save_GCC=$GCC
 8200 GCC=
 8201 CC=${RC-"windres"}
 8202 CFLAGS=
 8203 compiler=$CC
 8204 _LT_TAGVAR(compiler, $1)=$CC
 8205 _LT_CC_BASENAME([$compiler])
 8206 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 8207 
 8208 if test -n "$compiler"; then
 8209   :
 8210   _LT_CONFIG($1)
 8211 fi
 8212 
 8213 GCC=$lt_save_GCC
 8214 AC_LANG_RESTORE
 8215 CC=$lt_save_CC
 8216 CFLAGS=$lt_save_CFLAGS
 8217 ])# _LT_LANG_RC_CONFIG
 8218 
 8219 
 8220 # LT_PROG_GCJ
 8221 # -----------
 8222 AC_DEFUN([LT_PROG_GCJ],
 8223 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 8224   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 8225     [AC_CHECK_TOOL(GCJ, gcj,)
 8226       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
 8227       AC_SUBST(GCJFLAGS)])])[]dnl
 8228 ])
 8229 
 8230 # Old name:
 8231 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 8232 dnl aclocal-1.4 backwards compatibility:
 8233 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 8234 
 8235 
 8236 # LT_PROG_GO
 8237 # ----------
 8238 AC_DEFUN([LT_PROG_GO],
 8239 [AC_CHECK_TOOL(GOC, gccgo,)
 8240 ])
 8241 
 8242 
 8243 # LT_PROG_RC
 8244 # ----------
 8245 AC_DEFUN([LT_PROG_RC],
 8246 [AC_CHECK_TOOL(RC, windres,)
 8247 ])
 8248 
 8249 # Old name:
 8250 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 8251 dnl aclocal-1.4 backwards compatibility:
 8252 dnl AC_DEFUN([LT_AC_PROG_RC], [])
 8253 
 8254 
 8255 # _LT_DECL_EGREP
 8256 # --------------
 8257 # If we don't have a new enough Autoconf to choose the best grep
 8258 # available, choose the one first in the user's PATH.
 8259 m4_defun([_LT_DECL_EGREP],
 8260 [AC_REQUIRE([AC_PROG_EGREP])dnl
 8261 AC_REQUIRE([AC_PROG_FGREP])dnl
 8262 test -z "$GREP" && GREP=grep
 8263 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 8264 _LT_DECL([], [EGREP], [1], [An ERE matcher])
 8265 _LT_DECL([], [FGREP], [1], [A literal string matcher])
 8266 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 8267 AC_SUBST([GREP])
 8268 ])
 8269 
 8270 
 8271 # _LT_DECL_OBJDUMP
 8272 # --------------
 8273 # If we don't have a new enough Autoconf to choose the best objdump
 8274 # available, choose the one first in the user's PATH.
 8275 m4_defun([_LT_DECL_OBJDUMP],
 8276 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
 8277 test -z "$OBJDUMP" && OBJDUMP=objdump
 8278 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 8279 AC_SUBST([OBJDUMP])
 8280 ])
 8281 
 8282 # _LT_DECL_DLLTOOL
 8283 # ----------------
 8284 # Ensure DLLTOOL variable is set.
 8285 m4_defun([_LT_DECL_DLLTOOL],
 8286 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 8287 test -z "$DLLTOOL" && DLLTOOL=dlltool
 8288 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 8289 AC_SUBST([DLLTOOL])
 8290 ])
 8291 
 8292 # _LT_DECL_FILECMD
 8293 # ----------------
 8294 # Check for a file(cmd) program that can be used to detect file type and magic
 8295 m4_defun([_LT_DECL_FILECMD],
 8296 [AC_CHECK_TOOL([FILECMD], [file], [:])
 8297 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
 8298 ])# _LD_DECL_FILECMD
 8299 
 8300 # _LT_DECL_SED
 8301 # ------------
 8302 # Check for a fully-functional sed program, that truncates
 8303 # as few characters as possible.  Prefer GNU sed if found.
 8304 m4_defun([_LT_DECL_SED],
 8305 [AC_PROG_SED
 8306 test -z "$SED" && SED=sed
 8307 Xsed="$SED -e 1s/^X//"
 8308 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 8309 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 8310     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 8311 ])# _LT_DECL_SED
 8312 
 8313 m4_ifndef([AC_PROG_SED], [
 8314 # NOTE: This macro has been submitted for inclusion into   #
 8315 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 8316 #  a released version of Autoconf we should remove this    #
 8317 #  macro and use it instead.                               #
 8318 
 8319 m4_defun([AC_PROG_SED],
 8320 [AC_MSG_CHECKING([for a sed that does not truncate output])
 8321 AC_CACHE_VAL(lt_cv_path_SED,
 8322 [# Loop through the user's path and test for sed and gsed.
 8323 # Then use that list of sed's as ones to test for truncation.
 8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8325 for as_dir in $PATH
 8326 do
 8327   IFS=$as_save_IFS
 8328   test -z "$as_dir" && as_dir=.
 8329   for lt_ac_prog in sed gsed; do
 8330     for ac_exec_ext in '' $ac_executable_extensions; do
 8331       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 8332         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 8333       fi
 8334     done
 8335   done
 8336 done
 8337 IFS=$as_save_IFS
 8338 lt_ac_max=0
 8339 lt_ac_count=0
 8340 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 8341 # along with /bin/sed that truncates output.
 8342 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 8343   test ! -f "$lt_ac_sed" && continue
 8344   cat /dev/null > conftest.in
 8345   lt_ac_count=0
 8346   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 8347   # Check for GNU sed and select it if it is found.
 8348   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 8349     lt_cv_path_SED=$lt_ac_sed
 8350     break
 8351   fi
 8352   while true; do
 8353     cat conftest.in conftest.in >conftest.tmp
 8354     mv conftest.tmp conftest.in
 8355     cp conftest.in conftest.nl
 8356     echo >>conftest.nl
 8357     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 8358     cmp -s conftest.out conftest.nl || break
 8359     # 10000 chars as input seems more than enough
 8360     test 10 -lt "$lt_ac_count" && break
 8361     lt_ac_count=`expr $lt_ac_count + 1`
 8362     if test "$lt_ac_count" -gt "$lt_ac_max"; then
 8363       lt_ac_max=$lt_ac_count
 8364       lt_cv_path_SED=$lt_ac_sed
 8365     fi
 8366   done
 8367 done
 8368 ])
 8369 SED=$lt_cv_path_SED
 8370 AC_SUBST([SED])
 8371 AC_MSG_RESULT([$SED])
 8372 ])#AC_PROG_SED
 8373 ])#m4_ifndef
 8374 
 8375 # Old name:
 8376 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 8377 dnl aclocal-1.4 backwards compatibility:
 8378 dnl AC_DEFUN([LT_AC_PROG_SED], [])
 8379 
 8380 
 8381 # _LT_CHECK_SHELL_FEATURES
 8382 # ------------------------
 8383 # Find out whether the shell is Bourne or XSI compatible,
 8384 # or has some other useful features.
 8385 m4_defun([_LT_CHECK_SHELL_FEATURES],
 8386 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 8387   lt_unset=unset
 8388 else
 8389   lt_unset=false
 8390 fi
 8391 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 8392 
 8393 # test EBCDIC or ASCII
 8394 case `echo X|tr X '\101'` in
 8395  A) # ASCII based system
 8396     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 8397   lt_SP2NL='tr \040 \012'
 8398   lt_NL2SP='tr \015\012 \040\040'
 8399   ;;
 8400  *) # EBCDIC based system
 8401   lt_SP2NL='tr \100 \n'
 8402   lt_NL2SP='tr \r\n \100\100'
 8403   ;;
 8404 esac
 8405 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 8406 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 8407 ])# _LT_CHECK_SHELL_FEATURES
 8408 
 8409 
 8410 # _LT_PATH_CONVERSION_FUNCTIONS
 8411 # -----------------------------
 8412 # Determine what file name conversion functions should be used by
 8413 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 8414 # for certain cross-compile configurations and native mingw.
 8415 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 8416 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 8417 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 8418 AC_MSG_CHECKING([how to convert $build file names to $host format])
 8419 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 8420 [case $host in
 8421   *-*-mingw* )
 8422     case $build in
 8423       *-*-mingw* ) # actually msys
 8424         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 8425         ;;
 8426       *-*-cygwin* )
 8427         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 8428         ;;
 8429       * ) # otherwise, assume *nix
 8430         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 8431         ;;
 8432     esac
 8433     ;;
 8434   *-*-cygwin* )
 8435     case $build in
 8436       *-*-mingw* ) # actually msys
 8437         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 8438         ;;
 8439       *-*-cygwin* )
 8440         lt_cv_to_host_file_cmd=func_convert_file_noop
 8441         ;;
 8442       * ) # otherwise, assume *nix
 8443         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 8444         ;;
 8445     esac
 8446     ;;
 8447   * ) # unhandled hosts (and "normal" native builds)
 8448     lt_cv_to_host_file_cmd=func_convert_file_noop
 8449     ;;
 8450 esac
 8451 ])
 8452 to_host_file_cmd=$lt_cv_to_host_file_cmd
 8453 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 8454 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 8455          [0], [convert $build file names to $host format])dnl
 8456 
 8457 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 8458 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 8459 [#assume ordinary cross tools, or native build.
 8460 lt_cv_to_tool_file_cmd=func_convert_file_noop
 8461 case $host in
 8462   *-*-mingw* )
 8463     case $build in
 8464       *-*-mingw* ) # actually msys
 8465         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 8466         ;;
 8467     esac
 8468     ;;
 8469 esac
 8470 ])
 8471 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 8472 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 8473 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 8474          [0], [convert $build files to toolchain format])dnl
 8475 ])# _LT_PATH_CONVERSION_FUNCTIONS
 8476 
 8477 # Helper functions for option handling.                    -*- Autoconf -*-
 8478 #
 8479 #   Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
 8480 #   Software Foundation, Inc.
 8481 #   Written by Gary V. Vaughan, 2004
 8482 #
 8483 # This file is free software; the Free Software Foundation gives
 8484 # unlimited permission to copy and/or distribute it, with or without
 8485 # modifications, as long as this notice is preserved.
 8486 
 8487 # serial 8 ltoptions.m4
 8488 
 8489 # This is to help aclocal find these macros, as it can't see m4_define.
 8490 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 8491 
 8492 
 8493 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 8494 # ------------------------------------------
 8495 m4_define([_LT_MANGLE_OPTION],
 8496 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 8497 
 8498 
 8499 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 8500 # ---------------------------------------
 8501 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 8502 # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 8503 # saved as a flag.
 8504 m4_define([_LT_SET_OPTION],
 8505 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 8506 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 8507         _LT_MANGLE_DEFUN([$1], [$2]),
 8508     [m4_warning([Unknown $1 option '$2'])])[]dnl
 8509 ])
 8510 
 8511 
 8512 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 8513 # ------------------------------------------------------------
 8514 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 8515 m4_define([_LT_IF_OPTION],
 8516 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 8517 
 8518 
 8519 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 8520 # -------------------------------------------------------
 8521 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 8522 # are set.
 8523 m4_define([_LT_UNLESS_OPTIONS],
 8524 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 8525 	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 8526 		      [m4_define([$0_found])])])[]dnl
 8527 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 8528 ])[]dnl
 8529 ])
 8530 
 8531 
 8532 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 8533 # ----------------------------------------
 8534 # OPTION-LIST is a space-separated list of Libtool options associated
 8535 # with MACRO-NAME.  If any OPTION has a matching handler declared with
 8536 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 8537 # the unknown option and exit.
 8538 m4_defun([_LT_SET_OPTIONS],
 8539 [# Set options
 8540 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 8541     [_LT_SET_OPTION([$1], _LT_Option)])
 8542 
 8543 m4_if([$1],[LT_INIT],[
 8544   dnl
 8545   dnl Simply set some default values (i.e off) if boolean options were not
 8546   dnl specified:
 8547   _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 8548   ])
 8549   _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 8550   ])
 8551   dnl
 8552   dnl If no reference was made to various pairs of opposing options, then
 8553   dnl we run the default mode handler for the pair.  For example, if neither
 8554   dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
 8555   dnl archives by default:
 8556   _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 8557   _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 8558   _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 8559   _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 8560 		   [_LT_ENABLE_FAST_INSTALL])
 8561   _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
 8562 		   [_LT_WITH_AIX_SONAME([aix])])
 8563   ])
 8564 ])# _LT_SET_OPTIONS
 8565 
 8566 
 8567 
 8568 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 8569 # -----------------------------------------
 8570 m4_define([_LT_MANGLE_DEFUN],
 8571 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 8572 
 8573 
 8574 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 8575 # -----------------------------------------------
 8576 m4_define([LT_OPTION_DEFINE],
 8577 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 8578 ])# LT_OPTION_DEFINE
 8579 
 8580 
 8581 # dlopen
 8582 # ------
 8583 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 8584 ])
 8585 
 8586 AU_DEFUN([AC_LIBTOOL_DLOPEN],
 8587 [_LT_SET_OPTION([LT_INIT], [dlopen])
 8588 AC_DIAGNOSE([obsolete],
 8589 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8590 put the 'dlopen' option into LT_INIT's first parameter.])
 8591 ])
 8592 
 8593 dnl aclocal-1.4 backwards compatibility:
 8594 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 8595 
 8596 
 8597 # win32-dll
 8598 # ---------
 8599 # Declare package support for building win32 dll's.
 8600 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 8601 [enable_win32_dll=yes
 8602 
 8603 case $host in
 8604 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 8605   AC_CHECK_TOOL(AS, as, false)
 8606   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 8607   AC_CHECK_TOOL(OBJDUMP, objdump, false)
 8608   ;;
 8609 esac
 8610 
 8611 test -z "$AS" && AS=as
 8612 _LT_DECL([], [AS],      [1], [Assembler program])dnl
 8613 
 8614 test -z "$DLLTOOL" && DLLTOOL=dlltool
 8615 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 8616 
 8617 test -z "$OBJDUMP" && OBJDUMP=objdump
 8618 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 8619 ])# win32-dll
 8620 
 8621 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 8622 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 8623 _LT_SET_OPTION([LT_INIT], [win32-dll])
 8624 AC_DIAGNOSE([obsolete],
 8625 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8626 put the 'win32-dll' option into LT_INIT's first parameter.])
 8627 ])
 8628 
 8629 dnl aclocal-1.4 backwards compatibility:
 8630 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 8631 
 8632 
 8633 # _LT_ENABLE_SHARED([DEFAULT])
 8634 # ----------------------------
 8635 # implement the --enable-shared flag, and supports the 'shared' and
 8636 # 'disable-shared' LT_INIT options.
 8637 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8638 m4_define([_LT_ENABLE_SHARED],
 8639 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8640 AC_ARG_ENABLE([shared],
 8641     [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 8642 	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 8643     [p=${PACKAGE-default}
 8644     case $enableval in
 8645     yes) enable_shared=yes ;;
 8646     no) enable_shared=no ;;
 8647     *)
 8648       enable_shared=no
 8649       # Look at the argument we got.  We use all the common list separators.
 8650       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8651       for pkg in $enableval; do
 8652 	IFS=$lt_save_ifs
 8653 	if test "X$pkg" = "X$p"; then
 8654 	  enable_shared=yes
 8655 	fi
 8656       done
 8657       IFS=$lt_save_ifs
 8658       ;;
 8659     esac],
 8660     [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 8661 
 8662     _LT_DECL([build_libtool_libs], [enable_shared], [0],
 8663 	[Whether or not to build shared libraries])
 8664 ])# _LT_ENABLE_SHARED
 8665 
 8666 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 8667 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 8668 
 8669 # Old names:
 8670 AC_DEFUN([AC_ENABLE_SHARED],
 8671 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 8672 ])
 8673 
 8674 AC_DEFUN([AC_DISABLE_SHARED],
 8675 [_LT_SET_OPTION([LT_INIT], [disable-shared])
 8676 ])
 8677 
 8678 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 8679 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 8680 
 8681 dnl aclocal-1.4 backwards compatibility:
 8682 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 8683 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 8684 
 8685 
 8686 
 8687 # _LT_ENABLE_STATIC([DEFAULT])
 8688 # ----------------------------
 8689 # implement the --enable-static flag, and support the 'static' and
 8690 # 'disable-static' LT_INIT options.
 8691 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8692 m4_define([_LT_ENABLE_STATIC],
 8693 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8694 AC_ARG_ENABLE([static],
 8695     [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 8696 	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 8697     [p=${PACKAGE-default}
 8698     case $enableval in
 8699     yes) enable_static=yes ;;
 8700     no) enable_static=no ;;
 8701     *)
 8702      enable_static=no
 8703       # Look at the argument we got.  We use all the common list separators.
 8704       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8705       for pkg in $enableval; do
 8706 	IFS=$lt_save_ifs
 8707 	if test "X$pkg" = "X$p"; then
 8708 	  enable_static=yes
 8709 	fi
 8710       done
 8711       IFS=$lt_save_ifs
 8712       ;;
 8713     esac],
 8714     [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 8715 
 8716     _LT_DECL([build_old_libs], [enable_static], [0],
 8717 	[Whether or not to build static libraries])
 8718 ])# _LT_ENABLE_STATIC
 8719 
 8720 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 8721 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 8722 
 8723 # Old names:
 8724 AC_DEFUN([AC_ENABLE_STATIC],
 8725 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 8726 ])
 8727 
 8728 AC_DEFUN([AC_DISABLE_STATIC],
 8729 [_LT_SET_OPTION([LT_INIT], [disable-static])
 8730 ])
 8731 
 8732 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 8733 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 8734 
 8735 dnl aclocal-1.4 backwards compatibility:
 8736 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 8737 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 8738 
 8739 
 8740 
 8741 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
 8742 # ----------------------------------
 8743 # implement the --enable-fast-install flag, and support the 'fast-install'
 8744 # and 'disable-fast-install' LT_INIT options.
 8745 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8746 m4_define([_LT_ENABLE_FAST_INSTALL],
 8747 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8748 AC_ARG_ENABLE([fast-install],
 8749     [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 8750     [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 8751     [p=${PACKAGE-default}
 8752     case $enableval in
 8753     yes) enable_fast_install=yes ;;
 8754     no) enable_fast_install=no ;;
 8755     *)
 8756       enable_fast_install=no
 8757       # Look at the argument we got.  We use all the common list separators.
 8758       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8759       for pkg in $enableval; do
 8760 	IFS=$lt_save_ifs
 8761 	if test "X$pkg" = "X$p"; then
 8762 	  enable_fast_install=yes
 8763 	fi
 8764       done
 8765       IFS=$lt_save_ifs
 8766       ;;
 8767     esac],
 8768     [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 8769 
 8770 _LT_DECL([fast_install], [enable_fast_install], [0],
 8771 	 [Whether or not to optimize for fast installation])dnl
 8772 ])# _LT_ENABLE_FAST_INSTALL
 8773 
 8774 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 8775 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 8776 
 8777 # Old names:
 8778 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 8779 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 8780 AC_DIAGNOSE([obsolete],
 8781 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
 8782 the 'fast-install' option into LT_INIT's first parameter.])
 8783 ])
 8784 
 8785 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 8786 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 8787 AC_DIAGNOSE([obsolete],
 8788 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
 8789 the 'disable-fast-install' option into LT_INIT's first parameter.])
 8790 ])
 8791 
 8792 dnl aclocal-1.4 backwards compatibility:
 8793 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 8794 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 8795 
 8796 
 8797 # _LT_WITH_AIX_SONAME([DEFAULT])
 8798 # ----------------------------------
 8799 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
 8800 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
 8801 # is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
 8802 m4_define([_LT_WITH_AIX_SONAME],
 8803 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
 8804 shared_archive_member_spec=
 8805 case $host,$enable_shared in
 8806 power*-*-aix[[5-9]]*,yes)
 8807   AC_MSG_CHECKING([which variant of shared library versioning to provide])
 8808   AC_ARG_WITH([aix-soname],
 8809     [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
 8810       [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
 8811     [case $withval in
 8812     aix|svr4|both)
 8813       ;;
 8814     *)
 8815       AC_MSG_ERROR([Unknown argument to --with-aix-soname])
 8816       ;;
 8817     esac
 8818     lt_cv_with_aix_soname=$with_aix_soname],
 8819     [AC_CACHE_VAL([lt_cv_with_aix_soname],
 8820       [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
 8821     with_aix_soname=$lt_cv_with_aix_soname])
 8822   AC_MSG_RESULT([$with_aix_soname])
 8823   if test aix != "$with_aix_soname"; then
 8824     # For the AIX way of multilib, we name the shared archive member
 8825     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 8826     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 8827     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 8828     # the AIX toolchain works better with OBJECT_MODE set (default 32).
 8829     if test 64 = "${OBJECT_MODE-32}"; then
 8830       shared_archive_member_spec=shr_64
 8831     else
 8832       shared_archive_member_spec=shr
 8833     fi
 8834   fi
 8835   ;;
 8836 *)
 8837   with_aix_soname=aix
 8838   ;;
 8839 esac
 8840 
 8841 _LT_DECL([], [shared_archive_member_spec], [0],
 8842     [Shared archive member basename, for filename based shared library versioning on AIX])dnl
 8843 ])# _LT_WITH_AIX_SONAME
 8844 
 8845 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
 8846 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
 8847 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
 8848 
 8849 
 8850 # _LT_WITH_PIC([MODE])
 8851 # --------------------
 8852 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
 8853 # LT_INIT options.
 8854 # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
 8855 m4_define([_LT_WITH_PIC],
 8856 [AC_ARG_WITH([pic],
 8857     [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
 8858 	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 8859     [lt_p=${PACKAGE-default}
 8860     case $withval in
 8861     yes|no) pic_mode=$withval ;;
 8862     *)
 8863       pic_mode=default
 8864       # Look at the argument we got.  We use all the common list separators.
 8865       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8866       for lt_pkg in $withval; do
 8867 	IFS=$lt_save_ifs
 8868 	if test "X$lt_pkg" = "X$lt_p"; then
 8869 	  pic_mode=yes
 8870 	fi
 8871       done
 8872       IFS=$lt_save_ifs
 8873       ;;
 8874     esac],
 8875     [pic_mode=m4_default([$1], [default])])
 8876 
 8877 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 8878 ])# _LT_WITH_PIC
 8879 
 8880 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 8881 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 8882 
 8883 # Old name:
 8884 AU_DEFUN([AC_LIBTOOL_PICMODE],
 8885 [_LT_SET_OPTION([LT_INIT], [pic-only])
 8886 AC_DIAGNOSE([obsolete],
 8887 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8888 put the 'pic-only' option into LT_INIT's first parameter.])
 8889 ])
 8890 
 8891 dnl aclocal-1.4 backwards compatibility:
 8892 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 8893 
 8894 
 8895 m4_define([_LTDL_MODE], [])
 8896 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 8897 		 [m4_define([_LTDL_MODE], [nonrecursive])])
 8898 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 8899 		 [m4_define([_LTDL_MODE], [recursive])])
 8900 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 8901 		 [m4_define([_LTDL_MODE], [subproject])])
 8902 
 8903 m4_define([_LTDL_TYPE], [])
 8904 LT_OPTION_DEFINE([LTDL_INIT], [installable],
 8905 		 [m4_define([_LTDL_TYPE], [installable])])
 8906 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 8907 		 [m4_define([_LTDL_TYPE], [convenience])])
 8908 
 8909 # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 8910 #
 8911 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
 8912 # Foundation, Inc.
 8913 # Written by Gary V. Vaughan, 2004
 8914 #
 8915 # This file is free software; the Free Software Foundation gives
 8916 # unlimited permission to copy and/or distribute it, with or without
 8917 # modifications, as long as this notice is preserved.
 8918 
 8919 # serial 6 ltsugar.m4
 8920 
 8921 # This is to help aclocal find these macros, as it can't see m4_define.
 8922 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 8923 
 8924 
 8925 # lt_join(SEP, ARG1, [ARG2...])
 8926 # -----------------------------
 8927 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 8928 # associated separator.
 8929 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 8930 # versions in m4sugar had bugs.
 8931 m4_define([lt_join],
 8932 [m4_if([$#], [1], [],
 8933        [$#], [2], [[$2]],
 8934        [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 8935 m4_define([_lt_join],
 8936 [m4_if([$#$2], [2], [],
 8937        [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 8938 
 8939 
 8940 # lt_car(LIST)
 8941 # lt_cdr(LIST)
 8942 # ------------
 8943 # Manipulate m4 lists.
 8944 # These macros are necessary as long as will still need to support
 8945 # Autoconf-2.59, which quotes differently.
 8946 m4_define([lt_car], [[$1]])
 8947 m4_define([lt_cdr],
 8948 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 8949        [$#], 1, [],
 8950        [m4_dquote(m4_shift($@))])])
 8951 m4_define([lt_unquote], $1)
 8952 
 8953 
 8954 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
 8955 # ------------------------------------------
 8956 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
 8957 # Note that neither SEPARATOR nor STRING are expanded; they are appended
 8958 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 8959 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
 8960 # than defined and empty).
 8961 #
 8962 # This macro is needed until we can rely on Autoconf 2.62, since earlier
 8963 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 8964 m4_define([lt_append],
 8965 [m4_define([$1],
 8966 	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 8967 
 8968 
 8969 
 8970 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 8971 # ----------------------------------------------------------
 8972 # Produce a SEP delimited list of all paired combinations of elements of
 8973 # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 8974 # has the form PREFIXmINFIXSUFFIXn.
 8975 # Needed until we can rely on m4_combine added in Autoconf 2.62.
 8976 m4_define([lt_combine],
 8977 [m4_if(m4_eval([$# > 3]), [1],
 8978        [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 8979 [[m4_foreach([_Lt_prefix], [$2],
 8980 	     [m4_foreach([_Lt_suffix],
 8981 		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 8982 	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 8983 
 8984 
 8985 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 8986 # -----------------------------------------------------------------------
 8987 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 8988 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 8989 m4_define([lt_if_append_uniq],
 8990 [m4_ifdef([$1],
 8991 	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 8992 		 [lt_append([$1], [$2], [$3])$4],
 8993 		 [$5])],
 8994 	  [lt_append([$1], [$2], [$3])$4])])
 8995 
 8996 
 8997 # lt_dict_add(DICT, KEY, VALUE)
 8998 # -----------------------------
 8999 m4_define([lt_dict_add],
 9000 [m4_define([$1($2)], [$3])])
 9001 
 9002 
 9003 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 9004 # --------------------------------------------
 9005 m4_define([lt_dict_add_subkey],
 9006 [m4_define([$1($2:$3)], [$4])])
 9007 
 9008 
 9009 # lt_dict_fetch(DICT, KEY, [SUBKEY])
 9010 # ----------------------------------
 9011 m4_define([lt_dict_fetch],
 9012 [m4_ifval([$3],
 9013 	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 9014     m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 9015 
 9016 
 9017 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 9018 # -----------------------------------------------------------------
 9019 m4_define([lt_if_dict_fetch],
 9020 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 9021 	[$5],
 9022     [$6])])
 9023 
 9024 
 9025 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 9026 # --------------------------------------------------------------
 9027 m4_define([lt_dict_filter],
 9028 [m4_if([$5], [], [],
 9029   [lt_join(m4_quote(m4_default([$4], [[, ]])),
 9030            lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 9031 		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 9032 ])
 9033 
 9034 # ltversion.m4 -- version numbers			-*- Autoconf -*-
 9035 #
 9036 #   Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
 9037 #   Inc.
 9038 #   Written by Scott James Remnant, 2004
 9039 #
 9040 # This file is free software; the Free Software Foundation gives
 9041 # unlimited permission to copy and/or distribute it, with or without
 9042 # modifications, as long as this notice is preserved.
 9043 
 9044 # @configure_input@
 9045 
 9046 # serial 4245 ltversion.m4
 9047 # This file is part of GNU Libtool
 9048 
 9049 m4_define([LT_PACKAGE_VERSION], [2.4.7])
 9050 m4_define([LT_PACKAGE_REVISION], [2.4.7])
 9051 
 9052 AC_DEFUN([LTVERSION_VERSION],
 9053 [macro_version='2.4.7'
 9054 macro_revision='2.4.7'
 9055 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 9056 _LT_DECL(, macro_revision, 0)
 9057 ])
 9058 
 9059 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 9060 #
 9061 #   Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
 9062 #   Software Foundation, Inc.
 9063 #   Written by Scott James Remnant, 2004.
 9064 #
 9065 # This file is free software; the Free Software Foundation gives
 9066 # unlimited permission to copy and/or distribute it, with or without
 9067 # modifications, as long as this notice is preserved.
 9068 
 9069 # serial 5 lt~obsolete.m4
 9070 
 9071 # These exist entirely to fool aclocal when bootstrapping libtool.
 9072 #
 9073 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
 9074 # which have later been changed to m4_define as they aren't part of the
 9075 # exported API, or moved to Autoconf or Automake where they belong.
 9076 #
 9077 # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 9078 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 9079 # using a macro with the same name in our local m4/libtool.m4 it'll
 9080 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 9081 # and doesn't know about Autoconf macros at all.)
 9082 #
 9083 # So we provide this file, which has a silly filename so it's always
 9084 # included after everything else.  This provides aclocal with the
 9085 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 9086 # because those macros already exist, or will be overwritten later.
 9087 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
 9088 #
 9089 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 9090 # Yes, that means every name once taken will need to remain here until
 9091 # we give up compatibility with versions before 1.7, at which point
 9092 # we need to keep only those names which we still refer to.
 9093 
 9094 # This is to help aclocal find these macros, as it can't see m4_define.
 9095 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 9096 
 9097 m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 9098 m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
 9099 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 9100 m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
 9101 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 9102 m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
 9103 m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
 9104 m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 9105 m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
 9106 m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
 9107 m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
 9108 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 9109 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 9110 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 9111 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 9112 m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 9113 m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
 9114 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 9115 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 9116 m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
 9117 m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
 9118 m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 9119 m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 9120 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 9121 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 9122 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 9123 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 9124 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 9125 m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
 9126 m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
 9127 m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
 9128 m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 9129 m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 9130 m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
 9131 m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
 9132 m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 9133 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 9134 m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
 9135 m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 9136 m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
 9137 m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
 9138 m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
 9139 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 9140 m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 9141 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 9142 m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 9143 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 9144 m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 9145 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 9146 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 9147 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 9148 m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 9149 m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
 9150 m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 9151 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 9152 m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 9153 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 9154 m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 9155 m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
 9156 m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
 9157 m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
 9158 
 9159 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
 9160 #
 9161 # This file is free software; the Free Software Foundation
 9162 # gives unlimited permission to copy and/or distribute it,
 9163 # with or without modifications, as long as this notice is preserved.
 9164 
 9165 # AM_AUTOMAKE_VERSION(VERSION)
 9166 # ----------------------------
 9167 # Automake X.Y traces this macro to ensure aclocal.m4 has been
 9168 # generated from the m4 files accompanying Automake X.Y.
 9169 # (This private macro should not be called outside this file.)
 9170 AC_DEFUN([AM_AUTOMAKE_VERSION],
 9171 [am__api_version='1.16'
 9172 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 9173 dnl require some minimum version.  Point them to the right macro.
 9174 m4_if([$1], [1.16.5], [],
 9175       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 9176 ])
 9177 
 9178 # _AM_AUTOCONF_VERSION(VERSION)
 9179 # -----------------------------
 9180 # aclocal traces this macro to find the Autoconf version.
 9181 # This is a private macro too.  Using m4_define simplifies
 9182 # the logic in aclocal, which can simply ignore this definition.
 9183 m4_define([_AM_AUTOCONF_VERSION], [])
 9184 
 9185 # AM_SET_CURRENT_AUTOMAKE_VERSION
 9186 # -------------------------------
 9187 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 9188 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 9189 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 9190 [AM_AUTOMAKE_VERSION([1.16.5])dnl
 9191 m4_ifndef([AC_AUTOCONF_VERSION],
 9192   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 9193 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 9194 
 9195 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 9196 
 9197 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9198 #
 9199 # This file is free software; the Free Software Foundation
 9200 # gives unlimited permission to copy and/or distribute it,
 9201 # with or without modifications, as long as this notice is preserved.
 9202 
 9203 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 9204 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 9205 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 9206 #
 9207 # Of course, Automake must honor this variable whenever it calls a
 9208 # tool from the auxiliary directory.  The problem is that $srcdir (and
 9209 # therefore $ac_aux_dir as well) can be either absolute or relative,
 9210 # depending on how configure is run.  This is pretty annoying, since
 9211 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
 9212 # source directory, any form will work fine, but in subdirectories a
 9213 # relative path needs to be adjusted first.
 9214 #
 9215 # $ac_aux_dir/missing
 9216 #    fails when called from a subdirectory if $ac_aux_dir is relative
 9217 # $top_srcdir/$ac_aux_dir/missing
 9218 #    fails if $ac_aux_dir is absolute,
 9219 #    fails when called from a subdirectory in a VPATH build with
 9220 #          a relative $ac_aux_dir
 9221 #
 9222 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 9223 # are both prefixed by $srcdir.  In an in-source build this is usually
 9224 # harmless because $srcdir is '.', but things will broke when you
 9225 # start a VPATH build or use an absolute $srcdir.
 9226 #
 9227 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 9228 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 9229 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 9230 # and then we would define $MISSING as
 9231 #   MISSING="\${SHELL} $am_aux_dir/missing"
 9232 # This will work as long as MISSING is not called from configure, because
 9233 # unfortunately $(top_srcdir) has no meaning in configure.
 9234 # However there are other variables, like CC, which are often used in
 9235 # configure, and could therefore not use this "fixed" $ac_aux_dir.
 9236 #
 9237 # Another solution, used here, is to always expand $ac_aux_dir to an
 9238 # absolute PATH.  The drawback is that using absolute paths prevent a
 9239 # configured tree to be moved without reconfiguration.
 9240 
 9241 AC_DEFUN([AM_AUX_DIR_EXPAND],
 9242 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 9243 # Expand $ac_aux_dir to an absolute path.
 9244 am_aux_dir=`cd "$ac_aux_dir" && pwd`
 9245 ])
 9246 
 9247 # AM_CONDITIONAL                                            -*- Autoconf -*-
 9248 
 9249 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
 9250 #
 9251 # This file is free software; the Free Software Foundation
 9252 # gives unlimited permission to copy and/or distribute it,
 9253 # with or without modifications, as long as this notice is preserved.
 9254 
 9255 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
 9256 # -------------------------------------
 9257 # Define a conditional.
 9258 AC_DEFUN([AM_CONDITIONAL],
 9259 [AC_PREREQ([2.52])dnl
 9260  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 9261        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 9262 AC_SUBST([$1_TRUE])dnl
 9263 AC_SUBST([$1_FALSE])dnl
 9264 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
 9265 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
 9266 m4_define([_AM_COND_VALUE_$1], [$2])dnl
 9267 if $2; then
 9268   $1_TRUE=
 9269   $1_FALSE='#'
 9270 else
 9271   $1_TRUE='#'
 9272   $1_FALSE=
 9273 fi
 9274 AC_CONFIG_COMMANDS_PRE(
 9275 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 9276   AC_MSG_ERROR([[conditional "$1" was never defined.
 9277 Usually this means the macro was only invoked conditionally.]])
 9278 fi])])
 9279 
 9280 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9281 #
 9282 # This file is free software; the Free Software Foundation
 9283 # gives unlimited permission to copy and/or distribute it,
 9284 # with or without modifications, as long as this notice is preserved.
 9285 
 9286 
 9287 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
 9288 # written in clear, in which case automake, when reading aclocal.m4,
 9289 # will think it sees a *use*, and therefore will trigger all it's
 9290 # C support machinery.  Also note that it means that autoscan, seeing
 9291 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 9292 
 9293 
 9294 # _AM_DEPENDENCIES(NAME)
 9295 # ----------------------
 9296 # See how the compiler implements dependency checking.
 9297 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
 9298 # We try a few techniques and use that to set a single cache variable.
 9299 #
 9300 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 9301 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 9302 # dependency, and given that the user is not expected to run this macro,
 9303 # just rely on AC_PROG_CC.
 9304 AC_DEFUN([_AM_DEPENDENCIES],
 9305 [AC_REQUIRE([AM_SET_DEPDIR])dnl
 9306 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 9307 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 9308 AC_REQUIRE([AM_DEP_TRACK])dnl
 9309 
 9310 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 9311       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 9312       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 9313       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 9314       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 9315       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 9316                     [depcc="$$1"   am_compiler_list=])
 9317 
 9318 AC_CACHE_CHECK([dependency style of $depcc],
 9319                [am_cv_$1_dependencies_compiler_type],
 9320 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 9321   # We make a subdir and do the tests there.  Otherwise we can end up
 9322   # making bogus files that we don't know about and never remove.  For
 9323   # instance it was reported that on HP-UX the gcc test will end up
 9324   # making a dummy file named 'D' -- because '-MD' means "put the output
 9325   # in D".
 9326   rm -rf conftest.dir
 9327   mkdir conftest.dir
 9328   # Copy depcomp to subdir because otherwise we won't find it if we're
 9329   # using a relative directory.
 9330   cp "$am_depcomp" conftest.dir
 9331   cd conftest.dir
 9332   # We will build objects and dependencies in a subdirectory because
 9333   # it helps to detect inapplicable dependency modes.  For instance
 9334   # both Tru64's cc and ICC support -MD to output dependencies as a
 9335   # side effect of compilation, but ICC will put the dependencies in
 9336   # the current directory while Tru64 will put them in the object
 9337   # directory.
 9338   mkdir sub
 9339 
 9340   am_cv_$1_dependencies_compiler_type=none
 9341   if test "$am_compiler_list" = ""; then
 9342      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 9343   fi
 9344   am__universal=false
 9345   m4_case([$1], [CC],
 9346     [case " $depcc " in #(
 9347      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 9348      esac],
 9349     [CXX],
 9350     [case " $depcc " in #(
 9351      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 9352      esac])
 9353 
 9354   for depmode in $am_compiler_list; do
 9355     # Setup a source with many dependencies, because some compilers
 9356     # like to wrap large dependency lists on column 80 (with \), and
 9357     # we should not choose a depcomp mode which is confused by this.
 9358     #
 9359     # We need to recreate these files for each test, as the compiler may
 9360     # overwrite some of them when testing with obscure command lines.
 9361     # This happens at least with the AIX C compiler.
 9362     : > sub/conftest.c
 9363     for i in 1 2 3 4 5 6; do
 9364       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 9365       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 9366       # Solaris 10 /bin/sh.
 9367       echo '/* dummy */' > sub/conftst$i.h
 9368     done
 9369     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 9370 
 9371     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 9372     # mode.  It turns out that the SunPro C++ compiler does not properly
 9373     # handle '-M -o', and we need to detect this.  Also, some Intel
 9374     # versions had trouble with output in subdirs.
 9375     am__obj=sub/conftest.${OBJEXT-o}
 9376     am__minus_obj="-o $am__obj"
 9377     case $depmode in
 9378     gcc)
 9379       # This depmode causes a compiler race in universal mode.
 9380       test "$am__universal" = false || continue
 9381       ;;
 9382     nosideeffect)
 9383       # After this tag, mechanisms are not by side-effect, so they'll
 9384       # only be used when explicitly requested.
 9385       if test "x$enable_dependency_tracking" = xyes; then
 9386 	continue
 9387       else
 9388 	break
 9389       fi
 9390       ;;
 9391     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 9392       # This compiler won't grok '-c -o', but also, the minuso test has
 9393       # not run yet.  These depmodes are late enough in the game, and
 9394       # so weak that their functioning should not be impacted.
 9395       am__obj=conftest.${OBJEXT-o}
 9396       am__minus_obj=
 9397       ;;
 9398     none) break ;;
 9399     esac
 9400     if depmode=$depmode \
 9401        source=sub/conftest.c object=$am__obj \
 9402        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 9403        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 9404          >/dev/null 2>conftest.err &&
 9405        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 9406        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 9407        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 9408        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 9409       # icc doesn't choke on unknown options, it will just issue warnings
 9410       # or remarks (even with -Werror).  So we grep stderr for any message
 9411       # that says an option was ignored or not supported.
 9412       # When given -MP, icc 7.0 and 7.1 complain thusly:
 9413       #   icc: Command line warning: ignoring option '-M'; no argument required
 9414       # The diagnosis changed in icc 8.0:
 9415       #   icc: Command line remark: option '-MP' not supported
 9416       if (grep 'ignoring option' conftest.err ||
 9417           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 9418         am_cv_$1_dependencies_compiler_type=$depmode
 9419         break
 9420       fi
 9421     fi
 9422   done
 9423 
 9424   cd ..
 9425   rm -rf conftest.dir
 9426 else
 9427   am_cv_$1_dependencies_compiler_type=none
 9428 fi
 9429 ])
 9430 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 9431 AM_CONDITIONAL([am__fastdep$1], [
 9432   test "x$enable_dependency_tracking" != xno \
 9433   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 9434 ])
 9435 
 9436 
 9437 # AM_SET_DEPDIR
 9438 # -------------
 9439 # Choose a directory name for dependency files.
 9440 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 9441 AC_DEFUN([AM_SET_DEPDIR],
 9442 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 9443 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 9444 ])
 9445 
 9446 
 9447 # AM_DEP_TRACK
 9448 # ------------
 9449 AC_DEFUN([AM_DEP_TRACK],
 9450 [AC_ARG_ENABLE([dependency-tracking], [dnl
 9451 AS_HELP_STRING(
 9452   [--enable-dependency-tracking],
 9453   [do not reject slow dependency extractors])
 9454 AS_HELP_STRING(
 9455   [--disable-dependency-tracking],
 9456   [speeds up one-time build])])
 9457 if test "x$enable_dependency_tracking" != xno; then
 9458   am_depcomp="$ac_aux_dir/depcomp"
 9459   AMDEPBACKSLASH='\'
 9460   am__nodep='_no'
 9461 fi
 9462 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 9463 AC_SUBST([AMDEPBACKSLASH])dnl
 9464 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 9465 AC_SUBST([am__nodep])dnl
 9466 _AM_SUBST_NOTMAKE([am__nodep])dnl
 9467 ])
 9468 
 9469 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 9470 
 9471 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9472 #
 9473 # This file is free software; the Free Software Foundation
 9474 # gives unlimited permission to copy and/or distribute it,
 9475 # with or without modifications, as long as this notice is preserved.
 9476 
 9477 # _AM_OUTPUT_DEPENDENCY_COMMANDS
 9478 # ------------------------------
 9479 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 9480 [{
 9481   # Older Autoconf quotes --file arguments for eval, but not when files
 9482   # are listed without --file.  Let's play safe and only enable the eval
 9483   # if we detect the quoting.
 9484   # TODO: see whether this extra hack can be removed once we start
 9485   # requiring Autoconf 2.70 or later.
 9486   AS_CASE([$CONFIG_FILES],
 9487           [*\'*], [eval set x "$CONFIG_FILES"],
 9488           [*], [set x $CONFIG_FILES])
 9489   shift
 9490   # Used to flag and report bootstrapping failures.
 9491   am_rc=0
 9492   for am_mf
 9493   do
 9494     # Strip MF so we end up with the name of the file.
 9495     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
 9496     # Check whether this is an Automake generated Makefile which includes
 9497     # dependency-tracking related rules and includes.
 9498     # Grep'ing the whole file directly is not great: AIX grep has a line
 9499     # limit of 2048, but all sed's we know have understand at least 4000.
 9500     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
 9501       || continue
 9502     am_dirpart=`AS_DIRNAME(["$am_mf"])`
 9503     am_filepart=`AS_BASENAME(["$am_mf"])`
 9504     AM_RUN_LOG([cd "$am_dirpart" \
 9505       && sed -e '/# am--include-marker/d' "$am_filepart" \
 9506         | $MAKE -f - am--depfiles]) || am_rc=$?
 9507   done
 9508   if test $am_rc -ne 0; then
 9509     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
 9510     for automatic dependency tracking.  If GNU make was not used, consider
 9511     re-running the configure script with MAKE="gmake" (or whatever is
 9512     necessary).  You can also try re-running configure with the
 9513     '--disable-dependency-tracking' option to at least be able to build
 9514     the package (albeit without support for automatic dependency tracking).])
 9515   fi
 9516   AS_UNSET([am_dirpart])
 9517   AS_UNSET([am_filepart])
 9518   AS_UNSET([am_mf])
 9519   AS_UNSET([am_rc])
 9520   rm -f conftest-deps.mk
 9521 }
 9522 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 9523 
 9524 
 9525 # AM_OUTPUT_DEPENDENCY_COMMANDS
 9526 # -----------------------------
 9527 # This macro should only be invoked once -- use via AC_REQUIRE.
 9528 #
 9529 # This code is only required when automatic dependency tracking is enabled.
 9530 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
 9531 # order to bootstrap the dependency handling code.
 9532 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 9533 [AC_CONFIG_COMMANDS([depfiles],
 9534      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 9535      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
 9536 
 9537 # Do all the work for Automake.                             -*- Autoconf -*-
 9538 
 9539 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
 9540 #
 9541 # This file is free software; the Free Software Foundation
 9542 # gives unlimited permission to copy and/or distribute it,
 9543 # with or without modifications, as long as this notice is preserved.
 9544 
 9545 # This macro actually does too much.  Some checks are only needed if
 9546 # your package does certain things.  But this isn't really a big deal.
 9547 
 9548 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 9549 m4_define([AC_PROG_CC],
 9550 m4_defn([AC_PROG_CC])
 9551 [_AM_PROG_CC_C_O
 9552 ])
 9553 
 9554 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 9555 # AM_INIT_AUTOMAKE([OPTIONS])
 9556 # -----------------------------------------------
 9557 # The call with PACKAGE and VERSION arguments is the old style
 9558 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
 9559 # and VERSION should now be passed to AC_INIT and removed from
 9560 # the call to AM_INIT_AUTOMAKE.
 9561 # We support both call styles for the transition.  After
 9562 # the next Automake release, Autoconf can make the AC_INIT
 9563 # arguments mandatory, and then we can depend on a new Autoconf
 9564 # release and drop the old call support.
 9565 AC_DEFUN([AM_INIT_AUTOMAKE],
 9566 [AC_PREREQ([2.65])dnl
 9567 m4_ifdef([_$0_ALREADY_INIT],
 9568   [m4_fatal([$0 expanded multiple times
 9569 ]m4_defn([_$0_ALREADY_INIT]))],
 9570   [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
 9571 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 9572 dnl the ones we care about.
 9573 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 9574 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 9575 AC_REQUIRE([AC_PROG_INSTALL])dnl
 9576 if test "`cd $srcdir && pwd`" != "`pwd`"; then
 9577   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 9578   # is not polluted with repeated "-I."
 9579   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 9580   # test to see if srcdir already configured
 9581   if test -f $srcdir/config.status; then
 9582     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 9583   fi
 9584 fi
 9585 
 9586 # test whether we have cygpath
 9587 if test -z "$CYGPATH_W"; then
 9588   if (cygpath --version) >/dev/null 2>/dev/null; then
 9589     CYGPATH_W='cygpath -w'
 9590   else
 9591     CYGPATH_W=echo
 9592   fi
 9593 fi
 9594 AC_SUBST([CYGPATH_W])
 9595 
 9596 # Define the identity of the package.
 9597 dnl Distinguish between old-style and new-style calls.
 9598 m4_ifval([$2],
 9599 [AC_DIAGNOSE([obsolete],
 9600              [$0: two- and three-arguments forms are deprecated.])
 9601 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 9602  AC_SUBST([PACKAGE], [$1])dnl
 9603  AC_SUBST([VERSION], [$2])],
 9604 [_AM_SET_OPTIONS([$1])dnl
 9605 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 9606 m4_if(
 9607   m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
 9608   [ok:ok],,
 9609   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 9610  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 9611  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 9612 
 9613 _AM_IF_OPTION([no-define],,
 9614 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 9615  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 9616 
 9617 # Some tools Automake needs.
 9618 AC_REQUIRE([AM_SANITY_CHECK])dnl
 9619 AC_REQUIRE([AC_ARG_PROGRAM])dnl
 9620 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 9621 AM_MISSING_PROG([AUTOCONF], [autoconf])
 9622 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 9623 AM_MISSING_PROG([AUTOHEADER], [autoheader])
 9624 AM_MISSING_PROG([MAKEINFO], [makeinfo])
 9625 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 9626 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 9627 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 9628 # For better backward compatibility.  To be removed once Automake 1.9.x
 9629 # dies out for good.  For more background, see:
 9630 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 9631 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 9632 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 9633 # We need awk for the "check" target (and possibly the TAP driver).  The
 9634 # system "awk" is bad on some platforms.
 9635 AC_REQUIRE([AC_PROG_AWK])dnl
 9636 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 9637 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 9638 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 9639 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 9640 			     [_AM_PROG_TAR([v7])])])
 9641 _AM_IF_OPTION([no-dependencies],,
 9642 [AC_PROVIDE_IFELSE([AC_PROG_CC],
 9643 		  [_AM_DEPENDENCIES([CC])],
 9644 		  [m4_define([AC_PROG_CC],
 9645 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 9646 AC_PROVIDE_IFELSE([AC_PROG_CXX],
 9647 		  [_AM_DEPENDENCIES([CXX])],
 9648 		  [m4_define([AC_PROG_CXX],
 9649 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 9650 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 9651 		  [_AM_DEPENDENCIES([OBJC])],
 9652 		  [m4_define([AC_PROG_OBJC],
 9653 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 9654 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 9655 		  [_AM_DEPENDENCIES([OBJCXX])],
 9656 		  [m4_define([AC_PROG_OBJCXX],
 9657 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 9658 ])
 9659 # Variables for tags utilities; see am/tags.am
 9660 if test -z "$CTAGS"; then
 9661   CTAGS=ctags
 9662 fi
 9663 AC_SUBST([CTAGS])
 9664 if test -z "$ETAGS"; then
 9665   ETAGS=etags
 9666 fi
 9667 AC_SUBST([ETAGS])
 9668 if test -z "$CSCOPE"; then
 9669   CSCOPE=cscope
 9670 fi
 9671 AC_SUBST([CSCOPE])
 9672 
 9673 AC_REQUIRE([AM_SILENT_RULES])dnl
 9674 dnl The testsuite driver may need to know about EXEEXT, so add the
 9675 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 9676 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 9677 AC_CONFIG_COMMANDS_PRE(dnl
 9678 [m4_provide_if([_AM_COMPILER_EXEEXT],
 9679   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 9680 
 9681 # POSIX will say in a future version that running "rm -f" with no argument
 9682 # is OK; and we want to be able to make that assumption in our Makefile
 9683 # recipes.  So use an aggressive probe to check that the usage we want is
 9684 # actually supported "in the wild" to an acceptable degree.
 9685 # See automake bug#10828.
 9686 # To make any issue more visible, cause the running configure to be aborted
 9687 # by default if the 'rm' program in use doesn't match our expectations; the
 9688 # user can still override this though.
 9689 if rm -f && rm -fr && rm -rf; then : OK; else
 9690   cat >&2 <<'END'
 9691 Oops!
 9692 
 9693 Your 'rm' program seems unable to run without file operands specified
 9694 on the command line, even when the '-f' option is present.  This is contrary
 9695 to the behaviour of most rm programs out there, and not conforming with
 9696 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 9697 
 9698 Please tell bug-automake@gnu.org about your system, including the value
 9699 of your $PATH and any error possibly output before this message.  This
 9700 can help us improve future automake versions.
 9701 
 9702 END
 9703   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 9704     echo 'Configuration will proceed anyway, since you have set the' >&2
 9705     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 9706     echo >&2
 9707   else
 9708     cat >&2 <<'END'
 9709 Aborting the configuration process, to ensure you take notice of the issue.
 9710 
 9711 You can download and install GNU coreutils to get an 'rm' implementation
 9712 that behaves properly: <https://www.gnu.org/software/coreutils/>.
 9713 
 9714 If you want to complete the configuration process using your problematic
 9715 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 9716 to "yes", and re-run configure.
 9717 
 9718 END
 9719     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 9720   fi
 9721 fi
 9722 dnl The trailing newline in this macro's definition is deliberate, for
 9723 dnl backward compatibility and to allow trailing 'dnl'-style comments
 9724 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
 9725 ])
 9726 
 9727 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 9728 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 9729 dnl mangled by Autoconf and run in a shell conditional statement.
 9730 m4_define([_AC_COMPILER_EXEEXT],
 9731 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 9732 
 9733 # When config.status generates a header, we must update the stamp-h file.
 9734 # This file resides in the same directory as the config header
 9735 # that is generated.  The stamp files are numbered to have different names.
 9736 
 9737 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 9738 # loop where config.status creates the headers, so we can generate
 9739 # our stamp files there.
 9740 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 9741 [# Compute $1's index in $config_headers.
 9742 _am_arg=$1
 9743 _am_stamp_count=1
 9744 for _am_header in $config_headers :; do
 9745   case $_am_header in
 9746     $_am_arg | $_am_arg:* )
 9747       break ;;
 9748     * )
 9749       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 9750   esac
 9751 done
 9752 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 9753 
 9754 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9755 #
 9756 # This file is free software; the Free Software Foundation
 9757 # gives unlimited permission to copy and/or distribute it,
 9758 # with or without modifications, as long as this notice is preserved.
 9759 
 9760 # AM_PROG_INSTALL_SH
 9761 # ------------------
 9762 # Define $install_sh.
 9763 AC_DEFUN([AM_PROG_INSTALL_SH],
 9764 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9765 if test x"${install_sh+set}" != xset; then
 9766   case $am_aux_dir in
 9767   *\ * | *\	*)
 9768     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 9769   *)
 9770     install_sh="\${SHELL} $am_aux_dir/install-sh"
 9771   esac
 9772 fi
 9773 AC_SUBST([install_sh])])
 9774 
 9775 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
 9776 #
 9777 # This file is free software; the Free Software Foundation
 9778 # gives unlimited permission to copy and/or distribute it,
 9779 # with or without modifications, as long as this notice is preserved.
 9780 
 9781 # Check whether the underlying file-system supports filenames
 9782 # with a leading dot.  For instance MS-DOS doesn't.
 9783 AC_DEFUN([AM_SET_LEADING_DOT],
 9784 [rm -rf .tst 2>/dev/null
 9785 mkdir .tst 2>/dev/null
 9786 if test -d .tst; then
 9787   am__leading_dot=.
 9788 else
 9789   am__leading_dot=_
 9790 fi
 9791 rmdir .tst 2>/dev/null
 9792 AC_SUBST([am__leading_dot])])
 9793 
 9794 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
 9795 
 9796 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9797 #
 9798 # This file is free software; the Free Software Foundation
 9799 # gives unlimited permission to copy and/or distribute it,
 9800 # with or without modifications, as long as this notice is preserved.
 9801 
 9802 # AM_MAKE_INCLUDE()
 9803 # -----------------
 9804 # Check whether make has an 'include' directive that can support all
 9805 # the idioms we need for our automatic dependency tracking code.
 9806 AC_DEFUN([AM_MAKE_INCLUDE],
 9807 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
 9808 cat > confinc.mk << 'END'
 9809 am__doit:
 9810 	@echo this is the am__doit target >confinc.out
 9811 .PHONY: am__doit
 9812 END
 9813 am__include="#"
 9814 am__quote=
 9815 # BSD make does it like this.
 9816 echo '.include "confinc.mk" # ignored' > confmf.BSD
 9817 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 9818 echo 'include confinc.mk # ignored' > confmf.GNU
 9819 _am_result=no
 9820 for s in GNU BSD; do
 9821   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
 9822   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
 9823       ['0:this is the am__doit target'],
 9824       [AS_CASE([$s],
 9825           [BSD], [am__include='.include' am__quote='"'],
 9826           [am__include='include' am__quote=''])])
 9827   if test "$am__include" != "#"; then
 9828     _am_result="yes ($s style)"
 9829     break
 9830   fi
 9831 done
 9832 rm -f confinc.* confmf.*
 9833 AC_MSG_RESULT([${_am_result}])
 9834 AC_SUBST([am__include])])
 9835 AC_SUBST([am__quote])])
 9836 
 9837 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 9838 
 9839 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
 9840 #
 9841 # This file is free software; the Free Software Foundation
 9842 # gives unlimited permission to copy and/or distribute it,
 9843 # with or without modifications, as long as this notice is preserved.
 9844 
 9845 # AM_MISSING_PROG(NAME, PROGRAM)
 9846 # ------------------------------
 9847 AC_DEFUN([AM_MISSING_PROG],
 9848 [AC_REQUIRE([AM_MISSING_HAS_RUN])
 9849 $1=${$1-"${am_missing_run}$2"}
 9850 AC_SUBST($1)])
 9851 
 9852 # AM_MISSING_HAS_RUN
 9853 # ------------------
 9854 # Define MISSING if not defined so far and test if it is modern enough.
 9855 # If it is, set am_missing_run to use it, otherwise, to nothing.
 9856 AC_DEFUN([AM_MISSING_HAS_RUN],
 9857 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9858 AC_REQUIRE_AUX_FILE([missing])dnl
 9859 if test x"${MISSING+set}" != xset; then
 9860   MISSING="\${SHELL} '$am_aux_dir/missing'"
 9861 fi
 9862 # Use eval to expand $SHELL
 9863 if eval "$MISSING --is-lightweight"; then
 9864   am_missing_run="$MISSING "
 9865 else
 9866   am_missing_run=
 9867   AC_MSG_WARN(['missing' script is too old or missing])
 9868 fi
 9869 ])
 9870 
 9871 # Helper functions for option handling.                     -*- Autoconf -*-
 9872 
 9873 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9874 #
 9875 # This file is free software; the Free Software Foundation
 9876 # gives unlimited permission to copy and/or distribute it,
 9877 # with or without modifications, as long as this notice is preserved.
 9878 
 9879 # _AM_MANGLE_OPTION(NAME)
 9880 # -----------------------
 9881 AC_DEFUN([_AM_MANGLE_OPTION],
 9882 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 9883 
 9884 # _AM_SET_OPTION(NAME)
 9885 # --------------------
 9886 # Set option NAME.  Presently that only means defining a flag for this option.
 9887 AC_DEFUN([_AM_SET_OPTION],
 9888 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 9889 
 9890 # _AM_SET_OPTIONS(OPTIONS)
 9891 # ------------------------
 9892 # OPTIONS is a space-separated list of Automake options.
 9893 AC_DEFUN([_AM_SET_OPTIONS],
 9894 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 9895 
 9896 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 9897 # -------------------------------------------
 9898 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 9899 AC_DEFUN([_AM_IF_OPTION],
 9900 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 9901 
 9902 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9903 #
 9904 # This file is free software; the Free Software Foundation
 9905 # gives unlimited permission to copy and/or distribute it,
 9906 # with or without modifications, as long as this notice is preserved.
 9907 
 9908 # _AM_PROG_CC_C_O
 9909 # ---------------
 9910 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 9911 # to automatically call this.
 9912 AC_DEFUN([_AM_PROG_CC_C_O],
 9913 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9914 AC_REQUIRE_AUX_FILE([compile])dnl
 9915 AC_LANG_PUSH([C])dnl
 9916 AC_CACHE_CHECK(
 9917   [whether $CC understands -c and -o together],
 9918   [am_cv_prog_cc_c_o],
 9919   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 9920   # Make sure it works both with $CC and with simple cc.
 9921   # Following AC_PROG_CC_C_O, we do the test twice because some
 9922   # compilers refuse to overwrite an existing .o file with -o,
 9923   # though they will create one.
 9924   am_cv_prog_cc_c_o=yes
 9925   for am_i in 1 2; do
 9926     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 9927          && test -f conftest2.$ac_objext; then
 9928       : OK
 9929     else
 9930       am_cv_prog_cc_c_o=no
 9931       break
 9932     fi
 9933   done
 9934   rm -f core conftest*
 9935   unset am_i])
 9936 if test "$am_cv_prog_cc_c_o" != yes; then
 9937    # Losing compiler, so override with the script.
 9938    # FIXME: It is wrong to rewrite CC.
 9939    # But if we don't then we get into trouble of one sort or another.
 9940    # A longer-term fix would be to have automake use am__CC in this case,
 9941    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 9942    CC="$am_aux_dir/compile $CC"
 9943 fi
 9944 AC_LANG_POP([C])])
 9945 
 9946 # For backward compatibility.
 9947 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 9948 
 9949 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9950 #
 9951 # This file is free software; the Free Software Foundation
 9952 # gives unlimited permission to copy and/or distribute it,
 9953 # with or without modifications, as long as this notice is preserved.
 9954 
 9955 # AM_RUN_LOG(COMMAND)
 9956 # -------------------
 9957 # Run COMMAND, save the exit status in ac_status, and log it.
 9958 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 9959 AC_DEFUN([AM_RUN_LOG],
 9960 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 9961    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 9962    ac_status=$?
 9963    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 9964    (exit $ac_status); }])
 9965 
 9966 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 9967 
 9968 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
 9969 #
 9970 # This file is free software; the Free Software Foundation
 9971 # gives unlimited permission to copy and/or distribute it,
 9972 # with or without modifications, as long as this notice is preserved.
 9973 
 9974 # AM_SANITY_CHECK
 9975 # ---------------
 9976 AC_DEFUN([AM_SANITY_CHECK],
 9977 [AC_MSG_CHECKING([whether build environment is sane])
 9978 # Reject unsafe characters in $srcdir or the absolute working directory
 9979 # name.  Accept space and tab only in the latter.
 9980 am_lf='
 9981 '
 9982 case `pwd` in
 9983   *[[\\\"\#\$\&\'\`$am_lf]]*)
 9984     AC_MSG_ERROR([unsafe absolute working directory name]);;
 9985 esac
 9986 case $srcdir in
 9987   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
 9988     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 9989 esac
 9990 
 9991 # Do 'set' in a subshell so we don't clobber the current shell's
 9992 # arguments.  Must try -L first in case configure is actually a
 9993 # symlink; some systems play weird games with the mod time of symlinks
 9994 # (eg FreeBSD returns the mod time of the symlink's containing
 9995 # directory).
 9996 if (
 9997    am_has_slept=no
 9998    for am_try in 1 2; do
 9999      echo "timestamp, slept: $am_has_slept" > conftest.file
10000      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10001      if test "$[*]" = "X"; then
10002 	# -L didn't work.
10003 	set X `ls -t "$srcdir/configure" conftest.file`
10004      fi
10005      if test "$[*]" != "X $srcdir/configure conftest.file" \
10006 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10007 
10008 	# If neither matched, then we have a broken ls.  This can happen
10009 	# if, for instance, CONFIG_SHELL is bash and it inherits a
10010 	# broken ls alias from the environment.  This has actually
10011 	# happened.  Such a system could not be considered "sane".
10012 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10013   alias in your environment])
10014      fi
10015      if test "$[2]" = conftest.file || test $am_try -eq 2; then
10016        break
10017      fi
10018      # Just in case.
10019      sleep 1
10020      am_has_slept=yes
10021    done
10022    test "$[2]" = conftest.file
10023    )
10024 then
10025    # Ok.
10026    :
10027 else
10028    AC_MSG_ERROR([newly created file is older than distributed files!
10029 Check your system clock])
10030 fi
10031 AC_MSG_RESULT([yes])
10032 # If we didn't sleep, we still need to ensure time stamps of config.status and
10033 # generated files are strictly newer.
10034 am_sleep_pid=
10035 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10036   ( sleep 1 ) &
10037   am_sleep_pid=$!
10038 fi
10039 AC_CONFIG_COMMANDS_PRE(
10040   [AC_MSG_CHECKING([that generated files are newer than configure])
10041    if test -n "$am_sleep_pid"; then
10042      # Hide warnings about reused PIDs.
10043      wait $am_sleep_pid 2>/dev/null
10044    fi
10045    AC_MSG_RESULT([done])])
10046 rm -f conftest.file
10047 ])
10048 
10049 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
10050 #
10051 # This file is free software; the Free Software Foundation
10052 # gives unlimited permission to copy and/or distribute it,
10053 # with or without modifications, as long as this notice is preserved.
10054 
10055 # AM_SILENT_RULES([DEFAULT])
10056 # --------------------------
10057 # Enable less verbose build rules; with the default set to DEFAULT
10058 # ("yes" being less verbose, "no" or empty being verbose).
10059 AC_DEFUN([AM_SILENT_RULES],
10060 [AC_ARG_ENABLE([silent-rules], [dnl
10061 AS_HELP_STRING(
10062   [--enable-silent-rules],
10063   [less verbose build output (undo: "make V=1")])
10064 AS_HELP_STRING(
10065   [--disable-silent-rules],
10066   [verbose build output (undo: "make V=0")])dnl
10067 ])
10068 case $enable_silent_rules in @%:@ (((
10069   yes) AM_DEFAULT_VERBOSITY=0;;
10070    no) AM_DEFAULT_VERBOSITY=1;;
10071     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10072 esac
10073 dnl
10074 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10075 dnl do not support nested variable expansions.
10076 dnl See automake bug#9928 and bug#10237.
10077 am_make=${MAKE-make}
10078 AC_CACHE_CHECK([whether $am_make supports nested variables],
10079    [am_cv_make_support_nested_variables],
10080    [if AS_ECHO([['TRUE=$(BAR$(V))
10081 BAR0=false
10082 BAR1=true
10083 V=1
10084 am__doit:
10085 	@$(TRUE)
10086 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10087   am_cv_make_support_nested_variables=yes
10088 else
10089   am_cv_make_support_nested_variables=no
10090 fi])
10091 if test $am_cv_make_support_nested_variables = yes; then
10092   dnl Using '$V' instead of '$(V)' breaks IRIX make.
10093   AM_V='$(V)'
10094   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10095 else
10096   AM_V=$AM_DEFAULT_VERBOSITY
10097   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10098 fi
10099 AC_SUBST([AM_V])dnl
10100 AM_SUBST_NOTMAKE([AM_V])dnl
10101 AC_SUBST([AM_DEFAULT_V])dnl
10102 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10103 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10104 AM_BACKSLASH='\'
10105 AC_SUBST([AM_BACKSLASH])dnl
10106 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10107 ])
10108 
10109 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10110 #
10111 # This file is free software; the Free Software Foundation
10112 # gives unlimited permission to copy and/or distribute it,
10113 # with or without modifications, as long as this notice is preserved.
10114 
10115 # AM_PROG_INSTALL_STRIP
10116 # ---------------------
10117 # One issue with vendor 'install' (even GNU) is that you can't
10118 # specify the program used to strip binaries.  This is especially
10119 # annoying in cross-compiling environments, where the build's strip
10120 # is unlikely to handle the host's binaries.
10121 # Fortunately install-sh will honor a STRIPPROG variable, so we
10122 # always use install-sh in "make install-strip", and initialize
10123 # STRIPPROG with the value of the STRIP variable (set by the user).
10124 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10125 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10126 # Installed binaries are usually stripped using 'strip' when the user
10127 # run "make install-strip".  However 'strip' might not be the right
10128 # tool to use in cross-compilation environments, therefore Automake
10129 # will honor the 'STRIP' environment variable to overrule this program.
10130 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10131 if test "$cross_compiling" != no; then
10132   AC_CHECK_TOOL([STRIP], [strip], :)
10133 fi
10134 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10135 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10136 
10137 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
10138 #
10139 # This file is free software; the Free Software Foundation
10140 # gives unlimited permission to copy and/or distribute it,
10141 # with or without modifications, as long as this notice is preserved.
10142 
10143 # _AM_SUBST_NOTMAKE(VARIABLE)
10144 # ---------------------------
10145 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10146 # This macro is traced by Automake.
10147 AC_DEFUN([_AM_SUBST_NOTMAKE])
10148 
10149 # AM_SUBST_NOTMAKE(VARIABLE)
10150 # --------------------------
10151 # Public sister of _AM_SUBST_NOTMAKE.
10152 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10153 
10154 # Check how to create a tarball.                            -*- Autoconf -*-
10155 
10156 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10157 #
10158 # This file is free software; the Free Software Foundation
10159 # gives unlimited permission to copy and/or distribute it,
10160 # with or without modifications, as long as this notice is preserved.
10161 
10162 # _AM_PROG_TAR(FORMAT)
10163 # --------------------
10164 # Check how to create a tarball in format FORMAT.
10165 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10166 #
10167 # Substitute a variable $(am__tar) that is a command
10168 # writing to stdout a FORMAT-tarball containing the directory
10169 # $tardir.
10170 #     tardir=directory && $(am__tar) > result.tar
10171 #
10172 # Substitute a variable $(am__untar) that extract such
10173 # a tarball read from stdin.
10174 #     $(am__untar) < result.tar
10175 #
10176 AC_DEFUN([_AM_PROG_TAR],
10177 [# Always define AMTAR for backward compatibility.  Yes, it's still used
10178 # in the wild :-(  We should find a proper way to deprecate it ...
10179 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10180 
10181 # We'll loop over all known methods to create a tar archive until one works.
10182 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10183 
10184 m4_if([$1], [v7],
10185   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10186 
10187   [m4_case([$1],
10188     [ustar],
10189      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10190       # There is notably a 21 bits limit for the UID and the GID.  In fact,
10191       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10192       # and bug#13588).
10193       am_max_uid=2097151 # 2^21 - 1
10194       am_max_gid=$am_max_uid
10195       # The $UID and $GID variables are not portable, so we need to resort
10196       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
10197       # below are definitely unexpected, so allow the users to see them
10198       # (that is, avoid stderr redirection).
10199       am_uid=`id -u || echo unknown`
10200       am_gid=`id -g || echo unknown`
10201       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10202       if test $am_uid -le $am_max_uid; then
10203          AC_MSG_RESULT([yes])
10204       else
10205          AC_MSG_RESULT([no])
10206          _am_tools=none
10207       fi
10208       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10209       if test $am_gid -le $am_max_gid; then
10210          AC_MSG_RESULT([yes])
10211       else
10212         AC_MSG_RESULT([no])
10213         _am_tools=none
10214       fi],
10215 
10216   [pax],
10217     [],
10218 
10219   [m4_fatal([Unknown tar format])])
10220 
10221   AC_MSG_CHECKING([how to create a $1 tar archive])
10222 
10223   # Go ahead even if we have the value already cached.  We do so because we
10224   # need to set the values for the 'am__tar' and 'am__untar' variables.
10225   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10226 
10227   for _am_tool in $_am_tools; do
10228     case $_am_tool in
10229     gnutar)
10230       for _am_tar in tar gnutar gtar; do
10231         AM_RUN_LOG([$_am_tar --version]) && break
10232       done
10233       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10234       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10235       am__untar="$_am_tar -xf -"
10236       ;;
10237     plaintar)
10238       # Must skip GNU tar: if it does not support --format= it doesn't create
10239       # ustar tarball either.
10240       (tar --version) >/dev/null 2>&1 && continue
10241       am__tar='tar chf - "$$tardir"'
10242       am__tar_='tar chf - "$tardir"'
10243       am__untar='tar xf -'
10244       ;;
10245     pax)
10246       am__tar='pax -L -x $1 -w "$$tardir"'
10247       am__tar_='pax -L -x $1 -w "$tardir"'
10248       am__untar='pax -r'
10249       ;;
10250     cpio)
10251       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10252       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10253       am__untar='cpio -i -H $1 -d'
10254       ;;
10255     none)
10256       am__tar=false
10257       am__tar_=false
10258       am__untar=false
10259       ;;
10260     esac
10261 
10262     # If the value was cached, stop now.  We just wanted to have am__tar
10263     # and am__untar set.
10264     test -n "${am_cv_prog_tar_$1}" && break
10265 
10266     # tar/untar a dummy directory, and stop if the command works.
10267     rm -rf conftest.dir
10268     mkdir conftest.dir
10269     echo GrepMe > conftest.dir/file
10270     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10271     rm -rf conftest.dir
10272     if test -s conftest.tar; then
10273       AM_RUN_LOG([$am__untar <conftest.tar])
10274       AM_RUN_LOG([cat conftest.dir/file])
10275       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10276     fi
10277   done
10278   rm -rf conftest.dir
10279 
10280   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10281   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10282 
10283 AC_SUBST([am__tar])
10284 AC_SUBST([am__untar])
10285 ]) # _AM_PROG_TAR
10286