"Fossies" - the Fresh Open Source Software Archive

Member "protobuf-3.21.1/third_party/googletest/googlemock/aclocal.m4" (27 May 2022, 389305 Bytes) of package /linux/misc/protobuf-all-3.21.1.tar.gz:


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": 3.20.1_vs_3.21.0.

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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   24 #
   25 #   Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
   26 #   Foundation, Inc.
   27 #   Written by Gordon Matzigkeit, 1996
   28 #
   29 # This file is free software; the Free Software Foundation gives
   30 # unlimited permission to copy and/or distribute it, with or without
   31 # modifications, as long as this notice is preserved.
   32 
   33 m4_define([_LT_COPYING], [dnl
   34 # Copyright (C) 2014 Free Software Foundation, Inc.
   35 # This is free software; see the source for copying conditions.  There is NO
   36 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   37 
   38 # GNU Libtool is free software; you can redistribute it and/or modify
   39 # it under the terms of the GNU General Public License as published by
   40 # the Free Software Foundation; either version 2 of of the License, or
   41 # (at your option) any later version.
   42 #
   43 # As a special exception to the GNU General Public License, if you
   44 # distribute this file as part of a program or library that is built
   45 # using GNU Libtool, you may include this file under the  same
   46 # distribution terms that you use for the rest of that program.
   47 #
   48 # GNU Libtool is distributed in the hope that it will be useful, but
   49 # WITHOUT ANY WARRANTY; without even the implied warranty of
   50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   51 # GNU General Public License for more details.
   52 #
   53 # You should have received a copy of the GNU General Public License
   54 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   55 ])
   56 
   57 # serial 59 LT_INIT
   58 
   59 
   60 # LT_PREREQ(VERSION)
   61 # ------------------
   62 # Complain and exit if this libtool version is less that VERSION.
   63 m4_defun([LT_PREREQ],
   64 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
   65        [m4_default([$3],
   66 		   [m4_fatal([Libtool version $1 or higher is required],
   67 		             63)])],
   68        [$2])])
   69 
   70 
   71 # _LT_CHECK_BUILDDIR
   72 # ------------------
   73 # Complain if the absolute build directory name contains unusual characters
   74 m4_defun([_LT_CHECK_BUILDDIR],
   75 [case `pwd` in
   76   *\ * | *\	*)
   77     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
   78 esac
   79 ])
   80 
   81 
   82 # LT_INIT([OPTIONS])
   83 # ------------------
   84 AC_DEFUN([LT_INIT],
   85 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
   86 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
   87 AC_BEFORE([$0], [LT_LANG])dnl
   88 AC_BEFORE([$0], [LT_OUTPUT])dnl
   89 AC_BEFORE([$0], [LTDL_INIT])dnl
   90 m4_require([_LT_CHECK_BUILDDIR])dnl
   91 
   92 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
   93 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
   94 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
   95 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
   96 dnl unless we require an AC_DEFUNed macro:
   97 AC_REQUIRE([LTOPTIONS_VERSION])dnl
   98 AC_REQUIRE([LTSUGAR_VERSION])dnl
   99 AC_REQUIRE([LTVERSION_VERSION])dnl
  100 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  101 m4_require([_LT_PROG_LTMAIN])dnl
  102 
  103 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  104 
  105 dnl Parse OPTIONS
  106 _LT_SET_OPTIONS([$0], [$1])
  107 
  108 # This can be used to rebuild libtool when needed
  109 LIBTOOL_DEPS=$ltmain
  110 
  111 # Always use our own libtool.
  112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  113 AC_SUBST(LIBTOOL)dnl
  114 
  115 _LT_SETUP
  116 
  117 # Only expand once:
  118 m4_define([LT_INIT])
  119 ])# LT_INIT
  120 
  121 # Old names:
  122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  124 dnl aclocal-1.4 backwards compatibility:
  125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  127 
  128 
  129 # _LT_PREPARE_CC_BASENAME
  130 # -----------------------
  131 m4_defun([_LT_PREPARE_CC_BASENAME], [
  132 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  133 func_cc_basename ()
  134 {
  135     for cc_temp in @S|@*""; do
  136       case $cc_temp in
  137         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  138         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  139         \-*) ;;
  140         *) break;;
  141       esac
  142     done
  143     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  144 }
  145 ])# _LT_PREPARE_CC_BASENAME
  146 
  147 
  148 # _LT_CC_BASENAME(CC)
  149 # -------------------
  150 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  151 # but that macro is also expanded into generated libtool script, which
  152 # arranges for $SED and $ECHO to be set by different means.
  153 m4_defun([_LT_CC_BASENAME],
  154 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  155 AC_REQUIRE([_LT_DECL_SED])dnl
  156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  157 func_cc_basename $1
  158 cc_basename=$func_cc_basename_result
  159 ])
  160 
  161 
  162 # _LT_FILEUTILS_DEFAULTS
  163 # ----------------------
  164 # It is okay to use these file commands and assume they have been set
  165 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  166 m4_defun([_LT_FILEUTILS_DEFAULTS],
  167 [: ${CP="cp -f"}
  168 : ${MV="mv -f"}
  169 : ${RM="rm -f"}
  170 ])# _LT_FILEUTILS_DEFAULTS
  171 
  172 
  173 # _LT_SETUP
  174 # ---------
  175 m4_defun([_LT_SETUP],
  176 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  177 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  178 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  179 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  180 
  181 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  182 dnl
  183 _LT_DECL([], [host_alias], [0], [The host system])dnl
  184 _LT_DECL([], [host], [0])dnl
  185 _LT_DECL([], [host_os], [0])dnl
  186 dnl
  187 _LT_DECL([], [build_alias], [0], [The build system])dnl
  188 _LT_DECL([], [build], [0])dnl
  189 _LT_DECL([], [build_os], [0])dnl
  190 dnl
  191 AC_REQUIRE([AC_PROG_CC])dnl
  192 AC_REQUIRE([LT_PATH_LD])dnl
  193 AC_REQUIRE([LT_PATH_NM])dnl
  194 dnl
  195 AC_REQUIRE([AC_PROG_LN_S])dnl
  196 test -z "$LN_S" && LN_S="ln -s"
  197 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  198 dnl
  199 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  200 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  201 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  202 dnl
  203 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  204 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  205 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  206 m4_require([_LT_CMD_RELOAD])dnl
  207 m4_require([_LT_DECL_FILECMD])dnl
  208 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  209 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  210 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  211 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  212 m4_require([_LT_WITH_SYSROOT])dnl
  213 m4_require([_LT_CMD_TRUNCATE])dnl
  214 
  215 _LT_CONFIG_LIBTOOL_INIT([
  216 # See if we are running on zsh, and set the options that allow our
  217 # commands through without removal of \ escapes INIT.
  218 if test -n "\${ZSH_VERSION+set}"; then
  219    setopt NO_GLOB_SUBST
  220 fi
  221 ])
  222 if test -n "${ZSH_VERSION+set}"; then
  223    setopt NO_GLOB_SUBST
  224 fi
  225 
  226 _LT_CHECK_OBJDIR
  227 
  228 m4_require([_LT_TAG_COMPILER])dnl
  229 
  230 case $host_os in
  231 aix3*)
  232   # AIX sometimes has problems with the GCC collect2 program.  For some
  233   # reason, if we set the COLLECT_NAMES environment variable, the problems
  234   # vanish in a puff of smoke.
  235   if test set != "${COLLECT_NAMES+set}"; then
  236     COLLECT_NAMES=
  237     export COLLECT_NAMES
  238   fi
  239   ;;
  240 esac
  241 
  242 # Global variables:
  243 ofile=libtool
  244 can_build_shared=yes
  245 
  246 # All known linkers require a '.a' archive for static linking (except MSVC and
  247 # ICC, which need '.lib').
  248 libext=a
  249 
  250 with_gnu_ld=$lt_cv_prog_gnu_ld
  251 
  252 old_CC=$CC
  253 old_CFLAGS=$CFLAGS
  254 
  255 # Set sane defaults for various variables
  256 test -z "$CC" && CC=cc
  257 test -z "$LTCC" && LTCC=$CC
  258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  259 test -z "$LD" && LD=ld
  260 test -z "$ac_objext" && ac_objext=o
  261 
  262 _LT_CC_BASENAME([$compiler])
  263 
  264 # Only perform the check for file, if the check method requires it
  265 test -z "$MAGIC_CMD" && MAGIC_CMD=file
  266 case $deplibs_check_method in
  267 file_magic*)
  268   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  269     _LT_PATH_MAGIC
  270   fi
  271   ;;
  272 esac
  273 
  274 # Use C for the default configuration in the libtool script
  275 LT_SUPPORTED_TAG([CC])
  276 _LT_LANG_C_CONFIG
  277 _LT_LANG_DEFAULT_CONFIG
  278 _LT_CONFIG_COMMANDS
  279 ])# _LT_SETUP
  280 
  281 
  282 # _LT_PREPARE_SED_QUOTE_VARS
  283 # --------------------------
  284 # Define a few sed substitution that help us do robust quoting.
  285 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  286 [# Backslashify metacharacters that are still active within
  287 # double-quoted strings.
  288 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  289 
  290 # Same as above, but do not quote variable references.
  291 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  292 
  293 # Sed substitution to delay expansion of an escaped shell variable in a
  294 # double_quote_subst'ed string.
  295 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  296 
  297 # Sed substitution to delay expansion of an escaped single quote.
  298 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  299 
  300 # Sed substitution to avoid accidental globbing in evaled expressions
  301 no_glob_subst='s/\*/\\\*/g'
  302 ])
  303 
  304 # _LT_PROG_LTMAIN
  305 # ---------------
  306 # Note that this code is called both from 'configure', and 'config.status'
  307 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
  308 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  309 # so we pass a copy along to make sure it has a sensible value anyway.
  310 m4_defun([_LT_PROG_LTMAIN],
  311 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  312 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  313 ltmain=$ac_aux_dir/ltmain.sh
  314 ])# _LT_PROG_LTMAIN
  315 
  316 
  317 
  318 # So that we can recreate a full libtool script including additional
  319 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  320 # in macros and then make a single call at the end using the 'libtool'
  321 # label.
  322 
  323 
  324 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  325 # ----------------------------------------
  326 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  327 m4_define([_LT_CONFIG_LIBTOOL_INIT],
  328 [m4_ifval([$1],
  329           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  330                      [$1
  331 ])])])
  332 
  333 # Initialize.
  334 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  335 
  336 
  337 # _LT_CONFIG_LIBTOOL([COMMANDS])
  338 # ------------------------------
  339 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  340 m4_define([_LT_CONFIG_LIBTOOL],
  341 [m4_ifval([$1],
  342           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  343                      [$1
  344 ])])])
  345 
  346 # Initialize.
  347 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  348 
  349 
  350 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  351 # -----------------------------------------------------
  352 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  353 [_LT_CONFIG_LIBTOOL([$1])
  354 _LT_CONFIG_LIBTOOL_INIT([$2])
  355 ])
  356 
  357 
  358 # _LT_FORMAT_COMMENT([COMMENT])
  359 # -----------------------------
  360 # Add leading comment marks to the start of each line, and a trailing
  361 # full-stop to the whole comment if one is not present already.
  362 m4_define([_LT_FORMAT_COMMENT],
  363 [m4_ifval([$1], [
  364 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  365               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  366 )])
  367 
  368 
  369 
  370 
  371 
  372 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  373 # -------------------------------------------------------------------
  374 # CONFIGNAME is the name given to the value in the libtool script.
  375 # VARNAME is the (base) name used in the configure script.
  376 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  377 # VARNAME.  Any other value will be used directly.
  378 m4_define([_LT_DECL],
  379 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  380     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  381 	[m4_ifval([$1], [$1], [$2])])
  382     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  383     m4_ifval([$4],
  384 	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  385     lt_dict_add_subkey([lt_decl_dict], [$2],
  386 	[tagged?], [m4_ifval([$5], [yes], [no])])])
  387 ])
  388 
  389 
  390 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  391 # --------------------------------------------------------
  392 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  393 
  394 
  395 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  396 # ------------------------------------------------
  397 m4_define([lt_decl_tag_varnames],
  398 [_lt_decl_filter([tagged?], [yes], $@)])
  399 
  400 
  401 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  402 # ---------------------------------------------------------
  403 m4_define([_lt_decl_filter],
  404 [m4_case([$#],
  405   [0], [m4_fatal([$0: too few arguments: $#])],
  406   [1], [m4_fatal([$0: too few arguments: $#: $1])],
  407   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  408   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  409   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  410 ])
  411 
  412 
  413 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  414 # --------------------------------------------------
  415 m4_define([lt_decl_quote_varnames],
  416 [_lt_decl_filter([value], [1], $@)])
  417 
  418 
  419 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  420 # ---------------------------------------------------
  421 m4_define([lt_decl_dquote_varnames],
  422 [_lt_decl_filter([value], [2], $@)])
  423 
  424 
  425 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  426 # ---------------------------------------------------
  427 m4_define([lt_decl_varnames_tagged],
  428 [m4_assert([$# <= 2])dnl
  429 _$0(m4_quote(m4_default([$1], [[, ]])),
  430     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  431     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  432 m4_define([_lt_decl_varnames_tagged],
  433 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  434 
  435 
  436 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  437 # ------------------------------------------------
  438 m4_define([lt_decl_all_varnames],
  439 [_$0(m4_quote(m4_default([$1], [[, ]])),
  440      m4_if([$2], [],
  441 	   m4_quote(lt_decl_varnames),
  442 	m4_quote(m4_shift($@))))[]dnl
  443 ])
  444 m4_define([_lt_decl_all_varnames],
  445 [lt_join($@, lt_decl_varnames_tagged([$1],
  446 			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  447 ])
  448 
  449 
  450 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  451 # ------------------------------------
  452 # Quote a variable value, and forward it to 'config.status' so that its
  453 # declaration there will have the same value as in 'configure'.  VARNAME
  454 # must have a single quote delimited value for this to work.
  455 m4_define([_LT_CONFIG_STATUS_DECLARE],
  456 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  457 
  458 
  459 # _LT_CONFIG_STATUS_DECLARATIONS
  460 # ------------------------------
  461 # We delimit libtool config variables with single quotes, so when
  462 # we write them to config.status, we have to be sure to quote all
  463 # embedded single quotes properly.  In configure, this macro expands
  464 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  465 #
  466 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  467 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  468 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  469     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  470 
  471 
  472 # _LT_LIBTOOL_TAGS
  473 # ----------------
  474 # Output comment and list of tags supported by the script
  475 m4_defun([_LT_LIBTOOL_TAGS],
  476 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  477 available_tags='_LT_TAGS'dnl
  478 ])
  479 
  480 
  481 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  482 # -----------------------------------
  483 # Extract the dictionary values for VARNAME (optionally with TAG) and
  484 # expand to a commented shell variable setting:
  485 #
  486 #    # Some comment about what VAR is for.
  487 #    visible_name=$lt_internal_name
  488 m4_define([_LT_LIBTOOL_DECLARE],
  489 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  490 					   [description])))[]dnl
  491 m4_pushdef([_libtool_name],
  492     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  493 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  494     [0], [_libtool_name=[$]$1],
  495     [1], [_libtool_name=$lt_[]$1],
  496     [2], [_libtool_name=$lt_[]$1],
  497     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  498 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  499 ])
  500 
  501 
  502 # _LT_LIBTOOL_CONFIG_VARS
  503 # -----------------------
  504 # Produce commented declarations of non-tagged libtool config variables
  505 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  506 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
  507 # section) are produced by _LT_LIBTOOL_TAG_VARS.
  508 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  509 [m4_foreach([_lt_var],
  510     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  511     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  512 
  513 
  514 # _LT_LIBTOOL_TAG_VARS(TAG)
  515 # -------------------------
  516 m4_define([_LT_LIBTOOL_TAG_VARS],
  517 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  518     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  519 
  520 
  521 # _LT_TAGVAR(VARNAME, [TAGNAME])
  522 # ------------------------------
  523 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  524 
  525 
  526 # _LT_CONFIG_COMMANDS
  527 # -------------------
  528 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
  529 # variables for single and double quote escaping we saved from calls
  530 # to _LT_DECL, we can put quote escaped variables declarations
  531 # into 'config.status', and then the shell code to quote escape them in
  532 # for loops in 'config.status'.  Finally, any additional code accumulated
  533 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  534 m4_defun([_LT_CONFIG_COMMANDS],
  535 [AC_PROVIDE_IFELSE([LT_OUTPUT],
  536 	dnl If the libtool generation code has been placed in $CONFIG_LT,
  537 	dnl instead of duplicating it all over again into config.status,
  538 	dnl then we will have config.status run $CONFIG_LT later, so it
  539 	dnl needs to know what name is stored there:
  540         [AC_CONFIG_COMMANDS([libtool],
  541             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  542     dnl If the libtool generation code is destined for config.status,
  543     dnl expand the accumulated commands and init code now:
  544     [AC_CONFIG_COMMANDS([libtool],
  545         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  546 ])#_LT_CONFIG_COMMANDS
  547 
  548 
  549 # Initialize.
  550 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  551 [
  552 
  553 # The HP-UX ksh and POSIX shell print the target directory to stdout
  554 # if CDPATH is set.
  555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  556 
  557 sed_quote_subst='$sed_quote_subst'
  558 double_quote_subst='$double_quote_subst'
  559 delay_variable_subst='$delay_variable_subst'
  560 _LT_CONFIG_STATUS_DECLARATIONS
  561 LTCC='$LTCC'
  562 LTCFLAGS='$LTCFLAGS'
  563 compiler='$compiler_DEFAULT'
  564 
  565 # A function that is used when there is no print builtin or printf.
  566 func_fallback_echo ()
  567 {
  568   eval 'cat <<_LTECHO_EOF
  569 \$[]1
  570 _LTECHO_EOF'
  571 }
  572 
  573 # Quote evaled strings.
  574 for var in lt_decl_all_varnames([[ \
  575 ]], lt_decl_quote_varnames); do
  576     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  577     *[[\\\\\\\`\\"\\\$]]*)
  578       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  579       ;;
  580     *)
  581       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  582       ;;
  583     esac
  584 done
  585 
  586 # Double-quote double-evaled strings.
  587 for var in lt_decl_all_varnames([[ \
  588 ]], lt_decl_dquote_varnames); do
  589     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  590     *[[\\\\\\\`\\"\\\$]]*)
  591       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  592       ;;
  593     *)
  594       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  595       ;;
  596     esac
  597 done
  598 
  599 _LT_OUTPUT_LIBTOOL_INIT
  600 ])
  601 
  602 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  603 # ------------------------------------
  604 # Generate a child script FILE with all initialization necessary to
  605 # reuse the environment learned by the parent script, and make the
  606 # file executable.  If COMMENT is supplied, it is inserted after the
  607 # '#!' sequence but before initialization text begins.  After this
  608 # macro, additional text can be appended to FILE to form the body of
  609 # the child script.  The macro ends with non-zero status if the
  610 # file could not be fully written (such as if the disk is full).
  611 m4_ifdef([AS_INIT_GENERATED],
  612 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  613 [m4_defun([_LT_GENERATED_FILE_INIT],
  614 [m4_require([AS_PREPARE])]dnl
  615 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  616 [lt_write_fail=0
  617 cat >$1 <<_ASEOF || lt_write_fail=1
  618 #! $SHELL
  619 # Generated by $as_me.
  620 $2
  621 SHELL=\${CONFIG_SHELL-$SHELL}
  622 export SHELL
  623 _ASEOF
  624 cat >>$1 <<\_ASEOF || lt_write_fail=1
  625 AS_SHELL_SANITIZE
  626 _AS_PREPARE
  627 exec AS_MESSAGE_FD>&1
  628 _ASEOF
  629 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  630 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  631 
  632 # LT_OUTPUT
  633 # ---------
  634 # This macro allows early generation of the libtool script (before
  635 # AC_OUTPUT is called), incase it is used in configure for compilation
  636 # tests.
  637 AC_DEFUN([LT_OUTPUT],
  638 [: ${CONFIG_LT=./config.lt}
  639 AC_MSG_NOTICE([creating $CONFIG_LT])
  640 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  641 [# Run this file to recreate a libtool stub with the current configuration.])
  642 
  643 cat >>"$CONFIG_LT" <<\_LTEOF
  644 lt_cl_silent=false
  645 exec AS_MESSAGE_LOG_FD>>config.log
  646 {
  647   echo
  648   AS_BOX([Running $as_me.])
  649 } >&AS_MESSAGE_LOG_FD
  650 
  651 lt_cl_help="\
  652 '$as_me' creates a local libtool stub from the current configuration,
  653 for use in further configure time tests before the real libtool is
  654 generated.
  655 
  656 Usage: $[0] [[OPTIONS]]
  657 
  658   -h, --help      print this help, then exit
  659   -V, --version   print version number, then exit
  660   -q, --quiet     do not print progress messages
  661   -d, --debug     don't remove temporary files
  662 
  663 Report bugs to <bug-libtool@gnu.org>."
  664 
  665 lt_cl_version="\
  666 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  667 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  668 configured by $[0], generated by m4_PACKAGE_STRING.
  669 
  670 Copyright (C) 2011 Free Software Foundation, Inc.
  671 This config.lt script is free software; the Free Software Foundation
  672 gives unlimited permision to copy, distribute and modify it."
  673 
  674 while test 0 != $[#]
  675 do
  676   case $[1] in
  677     --version | --v* | -V )
  678       echo "$lt_cl_version"; exit 0 ;;
  679     --help | --h* | -h )
  680       echo "$lt_cl_help"; exit 0 ;;
  681     --debug | --d* | -d )
  682       debug=: ;;
  683     --quiet | --q* | --silent | --s* | -q )
  684       lt_cl_silent=: ;;
  685 
  686     -*) AC_MSG_ERROR([unrecognized option: $[1]
  687 Try '$[0] --help' for more information.]) ;;
  688 
  689     *) AC_MSG_ERROR([unrecognized argument: $[1]
  690 Try '$[0] --help' for more information.]) ;;
  691   esac
  692   shift
  693 done
  694 
  695 if $lt_cl_silent; then
  696   exec AS_MESSAGE_FD>/dev/null
  697 fi
  698 _LTEOF
  699 
  700 cat >>"$CONFIG_LT" <<_LTEOF
  701 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  702 _LTEOF
  703 
  704 cat >>"$CONFIG_LT" <<\_LTEOF
  705 AC_MSG_NOTICE([creating $ofile])
  706 _LT_OUTPUT_LIBTOOL_COMMANDS
  707 AS_EXIT(0)
  708 _LTEOF
  709 chmod +x "$CONFIG_LT"
  710 
  711 # configure is writing to config.log, but config.lt does its own redirection,
  712 # appending to config.log, which fails on DOS, as config.log is still kept
  713 # open by configure.  Here we exec the FD to /dev/null, effectively closing
  714 # config.log, so it can be properly (re)opened and appended to by config.lt.
  715 lt_cl_success=:
  716 test yes = "$silent" &&
  717   lt_config_lt_args="$lt_config_lt_args --quiet"
  718 exec AS_MESSAGE_LOG_FD>/dev/null
  719 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  720 exec AS_MESSAGE_LOG_FD>>config.log
  721 $lt_cl_success || AS_EXIT(1)
  722 ])# LT_OUTPUT
  723 
  724 
  725 # _LT_CONFIG(TAG)
  726 # ---------------
  727 # If TAG is the built-in tag, create an initial libtool script with a
  728 # default configuration from the untagged config vars.  Otherwise add code
  729 # to config.status for appending the configuration named by TAG from the
  730 # matching tagged config vars.
  731 m4_defun([_LT_CONFIG],
  732 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  733 _LT_CONFIG_SAVE_COMMANDS([
  734   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  735   m4_if(_LT_TAG, [C], [
  736     # See if we are running on zsh, and set the options that allow our
  737     # commands through without removal of \ escapes.
  738     if test -n "${ZSH_VERSION+set}"; then
  739       setopt NO_GLOB_SUBST
  740     fi
  741 
  742     cfgfile=${ofile}T
  743     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  744     $RM "$cfgfile"
  745 
  746     cat <<_LT_EOF >> "$cfgfile"
  747 #! $SHELL
  748 # Generated automatically by $as_me ($PACKAGE) $VERSION
  749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  750 
  751 # Provide generalized library-building support services.
  752 # Written by Gordon Matzigkeit, 1996
  753 
  754 _LT_COPYING
  755 _LT_LIBTOOL_TAGS
  756 
  757 # Configured defaults for sys_lib_dlsearch_path munging.
  758 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  759 
  760 # ### BEGIN LIBTOOL CONFIG
  761 _LT_LIBTOOL_CONFIG_VARS
  762 _LT_LIBTOOL_TAG_VARS
  763 # ### END LIBTOOL CONFIG
  764 
  765 _LT_EOF
  766 
  767     cat <<'_LT_EOF' >> "$cfgfile"
  768 
  769 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  770 
  771 _LT_PREPARE_MUNGE_PATH_LIST
  772 _LT_PREPARE_CC_BASENAME
  773 
  774 # ### END FUNCTIONS SHARED WITH CONFIGURE
  775 
  776 _LT_EOF
  777 
  778   case $host_os in
  779   aix3*)
  780     cat <<\_LT_EOF >> "$cfgfile"
  781 # AIX sometimes has problems with the GCC collect2 program.  For some
  782 # reason, if we set the COLLECT_NAMES environment variable, the problems
  783 # vanish in a puff of smoke.
  784 if test set != "${COLLECT_NAMES+set}"; then
  785   COLLECT_NAMES=
  786   export COLLECT_NAMES
  787 fi
  788 _LT_EOF
  789     ;;
  790   esac
  791 
  792   _LT_PROG_LTMAIN
  793 
  794   # We use sed instead of cat because bash on DJGPP gets confused if
  795   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  796   # text mode, it properly converts lines to CR/LF.  This bash problem
  797   # is reportedly fixed, but why not run on old versions too?
  798   $SED '$q' "$ltmain" >> "$cfgfile" \
  799      || (rm -f "$cfgfile"; exit 1)
  800 
  801    mv -f "$cfgfile" "$ofile" ||
  802     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  803   chmod +x "$ofile"
  804 ],
  805 [cat <<_LT_EOF >> "$ofile"
  806 
  807 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  808 dnl in a comment (ie after a #).
  809 # ### BEGIN LIBTOOL TAG CONFIG: $1
  810 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  811 # ### END LIBTOOL TAG CONFIG: $1
  812 _LT_EOF
  813 ])dnl /m4_if
  814 ],
  815 [m4_if([$1], [], [
  816     PACKAGE='$PACKAGE'
  817     VERSION='$VERSION'
  818     RM='$RM'
  819     ofile='$ofile'], [])
  820 ])dnl /_LT_CONFIG_SAVE_COMMANDS
  821 ])# _LT_CONFIG
  822 
  823 
  824 # LT_SUPPORTED_TAG(TAG)
  825 # ---------------------
  826 # Trace this macro to discover what tags are supported by the libtool
  827 # --tag option, using:
  828 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
  829 AC_DEFUN([LT_SUPPORTED_TAG], [])
  830 
  831 
  832 # C support is built-in for now
  833 m4_define([_LT_LANG_C_enabled], [])
  834 m4_define([_LT_TAGS], [])
  835 
  836 
  837 # LT_LANG(LANG)
  838 # -------------
  839 # Enable libtool support for the given language if not already enabled.
  840 AC_DEFUN([LT_LANG],
  841 [AC_BEFORE([$0], [LT_OUTPUT])dnl
  842 m4_case([$1],
  843   [C],			[_LT_LANG(C)],
  844   [C++],		[_LT_LANG(CXX)],
  845   [Go],			[_LT_LANG(GO)],
  846   [Java],		[_LT_LANG(GCJ)],
  847   [Fortran 77],		[_LT_LANG(F77)],
  848   [Fortran],		[_LT_LANG(FC)],
  849   [Windows Resource],	[_LT_LANG(RC)],
  850   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  851     [_LT_LANG($1)],
  852     [m4_fatal([$0: unsupported language: "$1"])])])dnl
  853 ])# LT_LANG
  854 
  855 
  856 # _LT_LANG(LANGNAME)
  857 # ------------------
  858 m4_defun([_LT_LANG],
  859 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  860   [LT_SUPPORTED_TAG([$1])dnl
  861   m4_append([_LT_TAGS], [$1 ])dnl
  862   m4_define([_LT_LANG_]$1[_enabled], [])dnl
  863   _LT_LANG_$1_CONFIG($1)])dnl
  864 ])# _LT_LANG
  865 
  866 
  867 m4_ifndef([AC_PROG_GO], [
  868 # NOTE: This macro has been submitted for inclusion into   #
  869 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
  870 #  a released version of Autoconf we should remove this    #
  871 #  macro and use it instead.                               #
  872 m4_defun([AC_PROG_GO],
  873 [AC_LANG_PUSH(Go)dnl
  874 AC_ARG_VAR([GOC],     [Go compiler command])dnl
  875 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  876 _AC_ARG_VAR_LDFLAGS()dnl
  877 AC_CHECK_TOOL(GOC, gccgo)
  878 if test -z "$GOC"; then
  879   if test -n "$ac_tool_prefix"; then
  880     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  881   fi
  882 fi
  883 if test -z "$GOC"; then
  884   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  885 fi
  886 ])#m4_defun
  887 ])#m4_ifndef
  888 
  889 
  890 # _LT_LANG_DEFAULT_CONFIG
  891 # -----------------------
  892 m4_defun([_LT_LANG_DEFAULT_CONFIG],
  893 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  894   [LT_LANG(CXX)],
  895   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  896 
  897 AC_PROVIDE_IFELSE([AC_PROG_F77],
  898   [LT_LANG(F77)],
  899   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  900 
  901 AC_PROVIDE_IFELSE([AC_PROG_FC],
  902   [LT_LANG(FC)],
  903   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  904 
  905 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  906 dnl pulling things in needlessly.
  907 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  908   [LT_LANG(GCJ)],
  909   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  910     [LT_LANG(GCJ)],
  911     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  912       [LT_LANG(GCJ)],
  913       [m4_ifdef([AC_PROG_GCJ],
  914 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  915        m4_ifdef([A][M_PROG_GCJ],
  916 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  917        m4_ifdef([LT_PROG_GCJ],
  918 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  919 
  920 AC_PROVIDE_IFELSE([AC_PROG_GO],
  921   [LT_LANG(GO)],
  922   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  923 
  924 AC_PROVIDE_IFELSE([LT_PROG_RC],
  925   [LT_LANG(RC)],
  926   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  927 ])# _LT_LANG_DEFAULT_CONFIG
  928 
  929 # Obsolete macros:
  930 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  931 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  932 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  933 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  934 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  935 dnl aclocal-1.4 backwards compatibility:
  936 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  937 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  938 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  939 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  940 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  941 
  942 
  943 # _LT_TAG_COMPILER
  944 # ----------------
  945 m4_defun([_LT_TAG_COMPILER],
  946 [AC_REQUIRE([AC_PROG_CC])dnl
  947 
  948 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  949 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  950 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  951 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  952 
  953 # If no C compiler was specified, use CC.
  954 LTCC=${LTCC-"$CC"}
  955 
  956 # If no C compiler flags were specified, use CFLAGS.
  957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  958 
  959 # Allow CC to be a program name with arguments.
  960 compiler=$CC
  961 ])# _LT_TAG_COMPILER
  962 
  963 
  964 # _LT_COMPILER_BOILERPLATE
  965 # ------------------------
  966 # Check for compiler boilerplate output or warnings with
  967 # the simple compiler test code.
  968 m4_defun([_LT_COMPILER_BOILERPLATE],
  969 [m4_require([_LT_DECL_SED])dnl
  970 ac_outfile=conftest.$ac_objext
  971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  973 _lt_compiler_boilerplate=`cat conftest.err`
  974 $RM conftest*
  975 ])# _LT_COMPILER_BOILERPLATE
  976 
  977 
  978 # _LT_LINKER_BOILERPLATE
  979 # ----------------------
  980 # Check for linker boilerplate output or warnings with
  981 # the simple link test code.
  982 m4_defun([_LT_LINKER_BOILERPLATE],
  983 [m4_require([_LT_DECL_SED])dnl
  984 ac_outfile=conftest.$ac_objext
  985 echo "$lt_simple_link_test_code" >conftest.$ac_ext
  986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  987 _lt_linker_boilerplate=`cat conftest.err`
  988 $RM -r conftest*
  989 ])# _LT_LINKER_BOILERPLATE
  990 
  991 # _LT_REQUIRED_DARWIN_CHECKS
  992 # -------------------------
  993 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  994   case $host_os in
  995     rhapsody* | darwin*)
  996     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  997     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  998     AC_CHECK_TOOL([LIPO], [lipo], [:])
  999     AC_CHECK_TOOL([OTOOL], [otool], [:])
 1000     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 1001     _LT_DECL([], [DSYMUTIL], [1],
 1002       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 1003     _LT_DECL([], [NMEDIT], [1],
 1004       [Tool to change global to local symbols on Mac OS X])
 1005     _LT_DECL([], [LIPO], [1],
 1006       [Tool to manipulate fat objects and archives on Mac OS X])
 1007     _LT_DECL([], [OTOOL], [1],
 1008       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 1009     _LT_DECL([], [OTOOL64], [1],
 1010       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 1011 
 1012     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 1013       [lt_cv_apple_cc_single_mod=no
 1014       if test -z "$LT_MULTI_MODULE"; then
 1015 	# By default we will add the -single_module flag. You can override
 1016 	# by either setting the environment variable LT_MULTI_MODULE
 1017 	# non-empty at configure time, or by adding -multi_module to the
 1018 	# link flags.
 1019 	rm -rf libconftest.dylib*
 1020 	echo "int foo(void){return 1;}" > conftest.c
 1021 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1022 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 1023 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1024 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 1025         _lt_result=$?
 1026 	# If there is a non-empty error log, and "single_module"
 1027 	# appears in it, assume the flag caused a linker warning
 1028         if test -s conftest.err && $GREP single_module conftest.err; then
 1029 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1030 	# Otherwise, if the output was created with a 0 exit code from
 1031 	# the compiler, it worked.
 1032 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 1033 	  lt_cv_apple_cc_single_mod=yes
 1034 	else
 1035 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1036 	fi
 1037 	rm -rf libconftest.dylib*
 1038 	rm -f conftest.*
 1039       fi])
 1040 
 1041     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 1042       [lt_cv_ld_exported_symbols_list],
 1043       [lt_cv_ld_exported_symbols_list=no
 1044       save_LDFLAGS=$LDFLAGS
 1045       echo "_main" > conftest.sym
 1046       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 1047       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 1048 	[lt_cv_ld_exported_symbols_list=yes],
 1049 	[lt_cv_ld_exported_symbols_list=no])
 1050 	LDFLAGS=$save_LDFLAGS
 1051     ])
 1052 
 1053     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 1054       [lt_cv_ld_force_load=no
 1055       cat > conftest.c << _LT_EOF
 1056 int forced_loaded() { return 2;}
 1057 _LT_EOF
 1058       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 1059       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 1060       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 1061       $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 1062       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 1063       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 1064       cat > conftest.c << _LT_EOF
 1065 int main() { return 0;}
 1066 _LT_EOF
 1067       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 1068       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 1069       _lt_result=$?
 1070       if test -s conftest.err && $GREP force_load conftest.err; then
 1071 	cat conftest.err >&AS_MESSAGE_LOG_FD
 1072       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
 1073 	lt_cv_ld_force_load=yes
 1074       else
 1075 	cat conftest.err >&AS_MESSAGE_LOG_FD
 1076       fi
 1077         rm -f conftest.err libconftest.a conftest conftest.c
 1078         rm -rf conftest.dSYM
 1079     ])
 1080     case $host_os in
 1081     rhapsody* | darwin1.[[012]])
 1082       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 1083     darwin1.*)
 1084       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 1085     darwin*)
 1086       case $MACOSX_DEPLOYMENT_TARGET,$host in
 1087         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
 1088           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 1089         *)
 1090           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 1091       esac
 1092     ;;
 1093   esac
 1094     if test yes = "$lt_cv_apple_cc_single_mod"; then
 1095       _lt_dar_single_mod='$single_module'
 1096     fi
 1097     if test yes = "$lt_cv_ld_exported_symbols_list"; then
 1098       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
 1099     else
 1100       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 1101     fi
 1102     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 1103       _lt_dsymutil='~$DSYMUTIL $lib || :'
 1104     else
 1105       _lt_dsymutil=
 1106     fi
 1107     ;;
 1108   esac
 1109 ])
 1110 
 1111 
 1112 # _LT_DARWIN_LINKER_FEATURES([TAG])
 1113 # ---------------------------------
 1114 # Checks for linker and compiler features on darwin
 1115 m4_defun([_LT_DARWIN_LINKER_FEATURES],
 1116 [
 1117   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 1118   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 1119   _LT_TAGVAR(hardcode_direct, $1)=no
 1120   _LT_TAGVAR(hardcode_automatic, $1)=yes
 1121   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 1122   if test yes = "$lt_cv_ld_force_load"; then
 1123     _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\"`'
 1124     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 1125                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 1126   else
 1127     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 1128   fi
 1129   _LT_TAGVAR(link_all_deplibs, $1)=yes
 1130   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
 1131   case $cc_basename in
 1132      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 1133      *) _lt_dar_can_shared=$GCC ;;
 1134   esac
 1135   if test yes = "$_lt_dar_can_shared"; then
 1136     output_verbose_link_cmd=func_echo_all
 1137     _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"
 1138     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 1139     _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"
 1140     _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"
 1141     m4_if([$1], [CXX],
 1142 [   if test yes != "$lt_cv_apple_cc_single_mod"; then
 1143       _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"
 1144       _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"
 1145     fi
 1146 ],[])
 1147   else
 1148   _LT_TAGVAR(ld_shlibs, $1)=no
 1149   fi
 1150 ])
 1151 
 1152 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 1153 # ----------------------------------
 1154 # Links a minimal program and checks the executable
 1155 # for the system default hardcoded library path. In most cases,
 1156 # this is /usr/lib:/lib, but when the MPI compilers are used
 1157 # the location of the communication and MPI libs are included too.
 1158 # If we don't find anything, use the default library path according
 1159 # to the aix ld manual.
 1160 # Store the results from the different compilers for each TAGNAME.
 1161 # Allow to override them for all tags through lt_cv_aix_libpath.
 1162 m4_defun([_LT_SYS_MODULE_PATH_AIX],
 1163 [m4_require([_LT_DECL_SED])dnl
 1164 if test set = "${lt_cv_aix_libpath+set}"; then
 1165   aix_libpath=$lt_cv_aix_libpath
 1166 else
 1167   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 1168   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 1169   lt_aix_libpath_sed='[
 1170       /Import File Strings/,/^$/ {
 1171 	  /^0/ {
 1172 	      s/^0  *\([^ ]*\) *$/\1/
 1173 	      p
 1174 	  }
 1175       }]'
 1176   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1177   # Check for a 64-bit object if we didn't find anything.
 1178   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1179     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1180   fi],[])
 1181   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1182     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
 1183   fi
 1184   ])
 1185   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 1186 fi
 1187 ])# _LT_SYS_MODULE_PATH_AIX
 1188 
 1189 
 1190 # _LT_SHELL_INIT(ARG)
 1191 # -------------------
 1192 m4_define([_LT_SHELL_INIT],
 1193 [m4_divert_text([M4SH-INIT], [$1
 1194 ])])# _LT_SHELL_INIT
 1195 
 1196 
 1197 
 1198 # _LT_PROG_ECHO_BACKSLASH
 1199 # -----------------------
 1200 # Find how we can fake an echo command that does not interpret backslash.
 1201 # In particular, with Autoconf 2.60 or later we add some code to the start
 1202 # of the generated configure script that will find a shell with a builtin
 1203 # printf (that we can use as an echo command).
 1204 m4_defun([_LT_PROG_ECHO_BACKSLASH],
 1205 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1206 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1207 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1208 
 1209 AC_MSG_CHECKING([how to print strings])
 1210 # Test print first, because it will be a builtin if present.
 1211 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 1212    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 1213   ECHO='print -r --'
 1214 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 1215   ECHO='printf %s\n'
 1216 else
 1217   # Use this function as a fallback that always works.
 1218   func_fallback_echo ()
 1219   {
 1220     eval 'cat <<_LTECHO_EOF
 1221 $[]1
 1222 _LTECHO_EOF'
 1223   }
 1224   ECHO='func_fallback_echo'
 1225 fi
 1226 
 1227 # func_echo_all arg...
 1228 # Invoke $ECHO with all args, space-separated.
 1229 func_echo_all ()
 1230 {
 1231     $ECHO "$*"
 1232 }
 1233 
 1234 case $ECHO in
 1235   printf*) AC_MSG_RESULT([printf]) ;;
 1236   print*) AC_MSG_RESULT([print -r]) ;;
 1237   *) AC_MSG_RESULT([cat]) ;;
 1238 esac
 1239 
 1240 m4_ifdef([_AS_DETECT_SUGGESTED],
 1241 [_AS_DETECT_SUGGESTED([
 1242   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 1243     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1244     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1245     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1246     PATH=/empty FPATH=/empty; export PATH FPATH
 1247     test "X`printf %s $ECHO`" = "X$ECHO" \
 1248       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 1249 
 1250 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 1251 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 1252 ])# _LT_PROG_ECHO_BACKSLASH
 1253 
 1254 
 1255 # _LT_WITH_SYSROOT
 1256 # ----------------
 1257 AC_DEFUN([_LT_WITH_SYSROOT],
 1258 [m4_require([_LT_DECL_SED])dnl
 1259 AC_MSG_CHECKING([for sysroot])
 1260 AC_ARG_WITH([sysroot],
 1261 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
 1262   [Search for dependent libraries within DIR (or the compiler's sysroot
 1263    if not specified).])],
 1264 [], [with_sysroot=no])
 1265 
 1266 dnl lt_sysroot will always be passed unquoted.  We quote it here
 1267 dnl in case the user passed a directory name.
 1268 lt_sysroot=
 1269 case $with_sysroot in #(
 1270  yes)
 1271    if test yes = "$GCC"; then
 1272      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 1273    fi
 1274    ;; #(
 1275  /*)
 1276    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
 1277    ;; #(
 1278  no|'')
 1279    ;; #(
 1280  *)
 1281    AC_MSG_RESULT([$with_sysroot])
 1282    AC_MSG_ERROR([The sysroot must be an absolute path.])
 1283    ;;
 1284 esac
 1285 
 1286  AC_MSG_RESULT([${lt_sysroot:-no}])
 1287 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 1288 [dependent libraries, and where our libraries should be installed.])])
 1289 
 1290 # _LT_ENABLE_LOCK
 1291 # ---------------
 1292 m4_defun([_LT_ENABLE_LOCK],
 1293 [AC_ARG_ENABLE([libtool-lock],
 1294   [AS_HELP_STRING([--disable-libtool-lock],
 1295     [avoid locking (might break parallel builds)])])
 1296 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 1297 
 1298 # Some flags need to be propagated to the compiler or linker for good
 1299 # libtool support.
 1300 case $host in
 1301 ia64-*-hpux*)
 1302   # Find out what ABI is being produced by ac_compile, and set mode
 1303   # options accordingly.
 1304   echo 'int i;' > conftest.$ac_ext
 1305   if AC_TRY_EVAL(ac_compile); then
 1306     case `$FILECMD conftest.$ac_objext` in
 1307       *ELF-32*)
 1308 	HPUX_IA64_MODE=32
 1309 	;;
 1310       *ELF-64*)
 1311 	HPUX_IA64_MODE=64
 1312 	;;
 1313     esac
 1314   fi
 1315   rm -rf conftest*
 1316   ;;
 1317 *-*-irix6*)
 1318   # Find out what ABI is being produced by ac_compile, and set linker
 1319   # options accordingly.
 1320   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 1321   if AC_TRY_EVAL(ac_compile); then
 1322     if test yes = "$lt_cv_prog_gnu_ld"; then
 1323       case `$FILECMD conftest.$ac_objext` in
 1324 	*32-bit*)
 1325 	  LD="${LD-ld} -melf32bsmip"
 1326 	  ;;
 1327 	*N32*)
 1328 	  LD="${LD-ld} -melf32bmipn32"
 1329 	  ;;
 1330 	*64-bit*)
 1331 	  LD="${LD-ld} -melf64bmip"
 1332 	;;
 1333       esac
 1334     else
 1335       case `$FILECMD conftest.$ac_objext` in
 1336 	*32-bit*)
 1337 	  LD="${LD-ld} -32"
 1338 	  ;;
 1339 	*N32*)
 1340 	  LD="${LD-ld} -n32"
 1341 	  ;;
 1342 	*64-bit*)
 1343 	  LD="${LD-ld} -64"
 1344 	  ;;
 1345       esac
 1346     fi
 1347   fi
 1348   rm -rf conftest*
 1349   ;;
 1350 
 1351 mips64*-*linux*)
 1352   # Find out what ABI is being produced by ac_compile, and set linker
 1353   # options accordingly.
 1354   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 1355   if AC_TRY_EVAL(ac_compile); then
 1356     emul=elf
 1357     case `$FILECMD conftest.$ac_objext` in
 1358       *32-bit*)
 1359 	emul="${emul}32"
 1360 	;;
 1361       *64-bit*)
 1362 	emul="${emul}64"
 1363 	;;
 1364     esac
 1365     case `$FILECMD conftest.$ac_objext` in
 1366       *MSB*)
 1367 	emul="${emul}btsmip"
 1368 	;;
 1369       *LSB*)
 1370 	emul="${emul}ltsmip"
 1371 	;;
 1372     esac
 1373     case `$FILECMD conftest.$ac_objext` in
 1374       *N32*)
 1375 	emul="${emul}n32"
 1376 	;;
 1377     esac
 1378     LD="${LD-ld} -m $emul"
 1379   fi
 1380   rm -rf conftest*
 1381   ;;
 1382 
 1383 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 1384 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 1385   # Find out what ABI is being produced by ac_compile, and set linker
 1386   # options accordingly.  Note that the listed cases only cover the
 1387   # situations where additional linker options are needed (such as when
 1388   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 1389   # vice versa); the common cases where no linker options are needed do
 1390   # not appear in the list.
 1391   echo 'int i;' > conftest.$ac_ext
 1392   if AC_TRY_EVAL(ac_compile); then
 1393     case `$FILECMD conftest.o` in
 1394       *32-bit*)
 1395 	case $host in
 1396 	  x86_64-*kfreebsd*-gnu)
 1397 	    LD="${LD-ld} -m elf_i386_fbsd"
 1398 	    ;;
 1399 	  x86_64-*linux*)
 1400 	    case `$FILECMD conftest.o` in
 1401 	      *x86-64*)
 1402 		LD="${LD-ld} -m elf32_x86_64"
 1403 		;;
 1404 	      *)
 1405 		LD="${LD-ld} -m elf_i386"
 1406 		;;
 1407 	    esac
 1408 	    ;;
 1409 	  powerpc64le-*linux*)
 1410 	    LD="${LD-ld} -m elf32lppclinux"
 1411 	    ;;
 1412 	  powerpc64-*linux*)
 1413 	    LD="${LD-ld} -m elf32ppclinux"
 1414 	    ;;
 1415 	  s390x-*linux*)
 1416 	    LD="${LD-ld} -m elf_s390"
 1417 	    ;;
 1418 	  sparc64-*linux*)
 1419 	    LD="${LD-ld} -m elf32_sparc"
 1420 	    ;;
 1421 	esac
 1422 	;;
 1423       *64-bit*)
 1424 	case $host in
 1425 	  x86_64-*kfreebsd*-gnu)
 1426 	    LD="${LD-ld} -m elf_x86_64_fbsd"
 1427 	    ;;
 1428 	  x86_64-*linux*)
 1429 	    LD="${LD-ld} -m elf_x86_64"
 1430 	    ;;
 1431 	  powerpcle-*linux*)
 1432 	    LD="${LD-ld} -m elf64lppc"
 1433 	    ;;
 1434 	  powerpc-*linux*)
 1435 	    LD="${LD-ld} -m elf64ppc"
 1436 	    ;;
 1437 	  s390*-*linux*|s390*-*tpf*)
 1438 	    LD="${LD-ld} -m elf64_s390"
 1439 	    ;;
 1440 	  sparc*-*linux*)
 1441 	    LD="${LD-ld} -m elf64_sparc"
 1442 	    ;;
 1443 	esac
 1444 	;;
 1445     esac
 1446   fi
 1447   rm -rf conftest*
 1448   ;;
 1449 
 1450 *-*-sco3.2v5*)
 1451   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 1452   SAVE_CFLAGS=$CFLAGS
 1453   CFLAGS="$CFLAGS -belf"
 1454   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 1455     [AC_LANG_PUSH(C)
 1456      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 1457      AC_LANG_POP])
 1458   if test yes != "$lt_cv_cc_needs_belf"; then
 1459     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 1460     CFLAGS=$SAVE_CFLAGS
 1461   fi
 1462   ;;
 1463 *-*solaris*)
 1464   # Find out what ABI is being produced by ac_compile, and set linker
 1465   # options accordingly.
 1466   echo 'int i;' > conftest.$ac_ext
 1467   if AC_TRY_EVAL(ac_compile); then
 1468     case `$FILECMD conftest.o` in
 1469     *64-bit*)
 1470       case $lt_cv_prog_gnu_ld in
 1471       yes*)
 1472         case $host in
 1473         i?86-*-solaris*|x86_64-*-solaris*)
 1474           LD="${LD-ld} -m elf_x86_64"
 1475           ;;
 1476         sparc*-*-solaris*)
 1477           LD="${LD-ld} -m elf64_sparc"
 1478           ;;
 1479         esac
 1480         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 1481         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 1482           LD=${LD-ld}_sol2
 1483         fi
 1484         ;;
 1485       *)
 1486 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 1487 	  LD="${LD-ld} -64"
 1488 	fi
 1489 	;;
 1490       esac
 1491       ;;
 1492     esac
 1493   fi
 1494   rm -rf conftest*
 1495   ;;
 1496 esac
 1497 
 1498 need_locks=$enable_libtool_lock
 1499 ])# _LT_ENABLE_LOCK
 1500 
 1501 
 1502 # _LT_PROG_AR
 1503 # -----------
 1504 m4_defun([_LT_PROG_AR],
 1505 [AC_CHECK_TOOLS(AR, [ar], false)
 1506 : ${AR=ar}
 1507 _LT_DECL([], [AR], [1], [The archiver])
 1508 
 1509 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
 1510 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
 1511 # higher priority because thats what people were doing historically (setting
 1512 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
 1513 # variable obsoleted/removed.
 1514 
 1515 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
 1516 lt_ar_flags=$AR_FLAGS
 1517 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
 1518 
 1519 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
 1520 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
 1521 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
 1522          [Flags to create an archive])
 1523 
 1524 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 1525   [lt_cv_ar_at_file=no
 1526    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 1527      [echo conftest.$ac_objext > conftest.lst
 1528       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 1529       AC_TRY_EVAL([lt_ar_try])
 1530       if test 0 -eq "$ac_status"; then
 1531 	# Ensure the archiver fails upon bogus file names.
 1532 	rm -f conftest.$ac_objext libconftest.a
 1533 	AC_TRY_EVAL([lt_ar_try])
 1534 	if test 0 -ne "$ac_status"; then
 1535           lt_cv_ar_at_file=@
 1536         fi
 1537       fi
 1538       rm -f conftest.* libconftest.a
 1539      ])
 1540   ])
 1541 
 1542 if test no = "$lt_cv_ar_at_file"; then
 1543   archiver_list_spec=
 1544 else
 1545   archiver_list_spec=$lt_cv_ar_at_file
 1546 fi
 1547 _LT_DECL([], [archiver_list_spec], [1],
 1548   [How to feed a file listing to the archiver])
 1549 ])# _LT_PROG_AR
 1550 
 1551 
 1552 # _LT_CMD_OLD_ARCHIVE
 1553 # -------------------
 1554 m4_defun([_LT_CMD_OLD_ARCHIVE],
 1555 [_LT_PROG_AR
 1556 
 1557 AC_CHECK_TOOL(STRIP, strip, :)
 1558 test -z "$STRIP" && STRIP=:
 1559 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
 1560 
 1561 AC_CHECK_TOOL(RANLIB, ranlib, :)
 1562 test -z "$RANLIB" && RANLIB=:
 1563 _LT_DECL([], [RANLIB], [1],
 1564     [Commands used to install an old-style archive])
 1565 
 1566 # Determine commands to create old-style static archives.
 1567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 1568 old_postinstall_cmds='chmod 644 $oldlib'
 1569 old_postuninstall_cmds=
 1570 
 1571 if test -n "$RANLIB"; then
 1572   case $host_os in
 1573   bitrig* | openbsd*)
 1574     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 1575     ;;
 1576   *)
 1577     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 1578     ;;
 1579   esac
 1580   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 1581 fi
 1582 
 1583 case $host_os in
 1584   darwin*)
 1585     lock_old_archive_extraction=yes ;;
 1586   *)
 1587     lock_old_archive_extraction=no ;;
 1588 esac
 1589 _LT_DECL([], [old_postinstall_cmds], [2])
 1590 _LT_DECL([], [old_postuninstall_cmds], [2])
 1591 _LT_TAGDECL([], [old_archive_cmds], [2],
 1592     [Commands used to build an old-style archive])
 1593 _LT_DECL([], [lock_old_archive_extraction], [0],
 1594     [Whether to use a lock for old archive extraction])
 1595 ])# _LT_CMD_OLD_ARCHIVE
 1596 
 1597 
 1598 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1599 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 1600 # ----------------------------------------------------------------
 1601 # Check whether the given compiler option works
 1602 AC_DEFUN([_LT_COMPILER_OPTION],
 1603 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1604 m4_require([_LT_DECL_SED])dnl
 1605 AC_CACHE_CHECK([$1], [$2],
 1606   [$2=no
 1607    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 1608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 1609    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
 1610    # Insert the option either (1) after the last *FLAGS variable, or
 1611    # (2) before a word containing "conftest.", or (3) at the end.
 1612    # Note that $ac_compile itself does not contain backslashes and begins
 1613    # with a dollar sign (not a hyphen), so the echo should work correctly.
 1614    # The option is referenced via a variable to avoid confusing sed.
 1615    lt_compile=`echo "$ac_compile" | $SED \
 1616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 1617    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 1618    -e 's:$: $lt_compiler_flag:'`
 1619    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 1620    (eval "$lt_compile" 2>conftest.err)
 1621    ac_status=$?
 1622    cat conftest.err >&AS_MESSAGE_LOG_FD
 1623    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1624    if (exit $ac_status) && test -s "$ac_outfile"; then
 1625      # The compiler can only warn and ignore the option if not recognized
 1626      # So say no if there are warnings other than the usual output.
 1627      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 1628      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1629      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 1630        $2=yes
 1631      fi
 1632    fi
 1633    $RM conftest*
 1634 ])
 1635 
 1636 if test yes = "[$]$2"; then
 1637     m4_if([$5], , :, [$5])
 1638 else
 1639     m4_if([$6], , :, [$6])
 1640 fi
 1641 ])# _LT_COMPILER_OPTION
 1642 
 1643 # Old name:
 1644 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 1645 dnl aclocal-1.4 backwards compatibility:
 1646 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 1647 
 1648 
 1649 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1650 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
 1651 # ----------------------------------------------------
 1652 # Check whether the given linker option works
 1653 AC_DEFUN([_LT_LINKER_OPTION],
 1654 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1655 m4_require([_LT_DECL_SED])dnl
 1656 AC_CACHE_CHECK([$1], [$2],
 1657   [$2=no
 1658    save_LDFLAGS=$LDFLAGS
 1659    LDFLAGS="$LDFLAGS $3"
 1660    echo "$lt_simple_link_test_code" > conftest.$ac_ext
 1661    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 1662      # The linker can only warn and ignore the option if not recognized
 1663      # So say no if there are warnings
 1664      if test -s conftest.err; then
 1665        # Append any errors to the config.log.
 1666        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 1667        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 1668        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1669        if diff conftest.exp conftest.er2 >/dev/null; then
 1670          $2=yes
 1671        fi
 1672      else
 1673        $2=yes
 1674      fi
 1675    fi
 1676    $RM -r conftest*
 1677    LDFLAGS=$save_LDFLAGS
 1678 ])
 1679 
 1680 if test yes = "[$]$2"; then
 1681     m4_if([$4], , :, [$4])
 1682 else
 1683     m4_if([$5], , :, [$5])
 1684 fi
 1685 ])# _LT_LINKER_OPTION
 1686 
 1687 # Old name:
 1688 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 1689 dnl aclocal-1.4 backwards compatibility:
 1690 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 1691 
 1692 
 1693 # LT_CMD_MAX_LEN
 1694 #---------------
 1695 AC_DEFUN([LT_CMD_MAX_LEN],
 1696 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 1697 # find the maximum length of command line arguments
 1698 AC_MSG_CHECKING([the maximum length of command line arguments])
 1699 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 1700   i=0
 1701   teststring=ABCD
 1702 
 1703   case $build_os in
 1704   msdosdjgpp*)
 1705     # On DJGPP, this test can blow up pretty badly due to problems in libc
 1706     # (any single argument exceeding 2000 bytes causes a buffer overrun
 1707     # during glob expansion).  Even if it were fixed, the result of this
 1708     # check would be larger than it should be.
 1709     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 1710     ;;
 1711 
 1712   gnu*)
 1713     # Under GNU Hurd, this test is not required because there is
 1714     # no limit to the length of command line arguments.
 1715     # Libtool will interpret -1 as no limit whatsoever
 1716     lt_cv_sys_max_cmd_len=-1;
 1717     ;;
 1718 
 1719   cygwin* | mingw* | cegcc*)
 1720     # On Win9x/ME, this test blows up -- it succeeds, but takes
 1721     # about 5 minutes as the teststring grows exponentially.
 1722     # Worse, since 9x/ME are not pre-emptively multitasking,
 1723     # you end up with a "frozen" computer, even though with patience
 1724     # the test eventually succeeds (with a max line length of 256k).
 1725     # Instead, let's just punt: use the minimum linelength reported by
 1726     # all of the supported platforms: 8192 (on NT/2K/XP).
 1727     lt_cv_sys_max_cmd_len=8192;
 1728     ;;
 1729 
 1730   mint*)
 1731     # On MiNT this can take a long time and run out of memory.
 1732     lt_cv_sys_max_cmd_len=8192;
 1733     ;;
 1734 
 1735   amigaos*)
 1736     # On AmigaOS with pdksh, this test takes hours, literally.
 1737     # So we just punt and use a minimum line length of 8192.
 1738     lt_cv_sys_max_cmd_len=8192;
 1739     ;;
 1740 
 1741   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
 1742     # This has been around since 386BSD, at least.  Likely further.
 1743     if test -x /sbin/sysctl; then
 1744       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 1745     elif test -x /usr/sbin/sysctl; then
 1746       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 1747     else
 1748       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 1749     fi
 1750     # And add a safety zone
 1751     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1752     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1753     ;;
 1754 
 1755   interix*)
 1756     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 1757     lt_cv_sys_max_cmd_len=196608
 1758     ;;
 1759 
 1760   os2*)
 1761     # The test takes a long time on OS/2.
 1762     lt_cv_sys_max_cmd_len=8192
 1763     ;;
 1764 
 1765   osf*)
 1766     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 1767     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 1768     # nice to cause kernel panics so lets avoid the loop below.
 1769     # First set a reasonable default.
 1770     lt_cv_sys_max_cmd_len=16384
 1771     #
 1772     if test -x /sbin/sysconfig; then
 1773       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 1774         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 1775       esac
 1776     fi
 1777     ;;
 1778   sco3.2v5*)
 1779     lt_cv_sys_max_cmd_len=102400
 1780     ;;
 1781   sysv5* | sco5v6* | sysv4.2uw2*)
 1782     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 1783     if test -n "$kargmax"; then
 1784       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[	 ]]//'`
 1785     else
 1786       lt_cv_sys_max_cmd_len=32768
 1787     fi
 1788     ;;
 1789   *)
 1790     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 1791     if test -n "$lt_cv_sys_max_cmd_len" && \
 1792        test undefined != "$lt_cv_sys_max_cmd_len"; then
 1793       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1795     else
 1796       # Make teststring a little bigger before we do anything with it.
 1797       # a 1K string should be a reasonable start.
 1798       for i in 1 2 3 4 5 6 7 8; do
 1799         teststring=$teststring$teststring
 1800       done
 1801       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 1802       # If test is not a shell built-in, we'll probably end up computing a
 1803       # maximum length that is only half of the actual maximum length, but
 1804       # we can't tell.
 1805       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 1806 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 1807 	      test 17 != "$i" # 1/2 MB should be enough
 1808       do
 1809         i=`expr $i + 1`
 1810         teststring=$teststring$teststring
 1811       done
 1812       # Only check the string length outside the loop.
 1813       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 1814       teststring=
 1815       # Add a significant safety factor because C++ compilers can tack on
 1816       # massive amounts of additional arguments before passing them to the
 1817       # linker.  It appears as though 1/2 is a usable value.
 1818       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 1819     fi
 1820     ;;
 1821   esac
 1822 ])
 1823 if test -n "$lt_cv_sys_max_cmd_len"; then
 1824   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 1825 else
 1826   AC_MSG_RESULT(none)
 1827 fi
 1828 max_cmd_len=$lt_cv_sys_max_cmd_len
 1829 _LT_DECL([], [max_cmd_len], [0],
 1830     [What is the maximum length of a command?])
 1831 ])# LT_CMD_MAX_LEN
 1832 
 1833 # Old name:
 1834 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 1835 dnl aclocal-1.4 backwards compatibility:
 1836 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 1837 
 1838 
 1839 # _LT_HEADER_DLFCN
 1840 # ----------------
 1841 m4_defun([_LT_HEADER_DLFCN],
 1842 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 1843 ])# _LT_HEADER_DLFCN
 1844 
 1845 
 1846 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 1847 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 1848 # ----------------------------------------------------------------
 1849 m4_defun([_LT_TRY_DLOPEN_SELF],
 1850 [m4_require([_LT_HEADER_DLFCN])dnl
 1851 if test yes = "$cross_compiling"; then :
 1852   [$4]
 1853 else
 1854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 1855   lt_status=$lt_dlunknown
 1856   cat > conftest.$ac_ext <<_LT_EOF
 1857 [#line $LINENO "configure"
 1858 #include "confdefs.h"
 1859 
 1860 #if HAVE_DLFCN_H
 1861 #include <dlfcn.h>
 1862 #endif
 1863 
 1864 #include <stdio.h>
 1865 
 1866 #ifdef RTLD_GLOBAL
 1867 #  define LT_DLGLOBAL		RTLD_GLOBAL
 1868 #else
 1869 #  ifdef DL_GLOBAL
 1870 #    define LT_DLGLOBAL		DL_GLOBAL
 1871 #  else
 1872 #    define LT_DLGLOBAL		0
 1873 #  endif
 1874 #endif
 1875 
 1876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 1877    find out it does not work in some platform. */
 1878 #ifndef LT_DLLAZY_OR_NOW
 1879 #  ifdef RTLD_LAZY
 1880 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 1881 #  else
 1882 #    ifdef DL_LAZY
 1883 #      define LT_DLLAZY_OR_NOW		DL_LAZY
 1884 #    else
 1885 #      ifdef RTLD_NOW
 1886 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 1887 #      else
 1888 #        ifdef DL_NOW
 1889 #          define LT_DLLAZY_OR_NOW	DL_NOW
 1890 #        else
 1891 #          define LT_DLLAZY_OR_NOW	0
 1892 #        endif
 1893 #      endif
 1894 #    endif
 1895 #  endif
 1896 #endif
 1897 
 1898 /* When -fvisibility=hidden is used, assume the code has been annotated
 1899    correspondingly for the symbols needed.  */
 1900 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 1901 int fnord () __attribute__((visibility("default")));
 1902 #endif
 1903 
 1904 int fnord () { return 42; }
 1905 int main ()
 1906 {
 1907   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 1908   int status = $lt_dlunknown;
 1909 
 1910   if (self)
 1911     {
 1912       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 1913       else
 1914         {
 1915 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 1916           else puts (dlerror ());
 1917 	}
 1918       /* dlclose (self); */
 1919     }
 1920   else
 1921     puts (dlerror ());
 1922 
 1923   return status;
 1924 }]
 1925 _LT_EOF
 1926   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
 1927     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 1928     lt_status=$?
 1929     case x$lt_status in
 1930       x$lt_dlno_uscore) $1 ;;
 1931       x$lt_dlneed_uscore) $2 ;;
 1932       x$lt_dlunknown|x*) $3 ;;
 1933     esac
 1934   else :
 1935     # compilation failed
 1936     $3
 1937   fi
 1938 fi
 1939 rm -fr conftest*
 1940 ])# _LT_TRY_DLOPEN_SELF
 1941 
 1942 
 1943 # LT_SYS_DLOPEN_SELF
 1944 # ------------------
 1945 AC_DEFUN([LT_SYS_DLOPEN_SELF],
 1946 [m4_require([_LT_HEADER_DLFCN])dnl
 1947 if test yes != "$enable_dlopen"; then
 1948   enable_dlopen=unknown
 1949   enable_dlopen_self=unknown
 1950   enable_dlopen_self_static=unknown
 1951 else
 1952   lt_cv_dlopen=no
 1953   lt_cv_dlopen_libs=
 1954 
 1955   case $host_os in
 1956   beos*)
 1957     lt_cv_dlopen=load_add_on
 1958     lt_cv_dlopen_libs=
 1959     lt_cv_dlopen_self=yes
 1960     ;;
 1961 
 1962   mingw* | pw32* | cegcc*)
 1963     lt_cv_dlopen=LoadLibrary
 1964     lt_cv_dlopen_libs=
 1965     ;;
 1966 
 1967   cygwin*)
 1968     lt_cv_dlopen=dlopen
 1969     lt_cv_dlopen_libs=
 1970     ;;
 1971 
 1972   darwin*)
 1973     # if libdl is installed we need to link against it
 1974     AC_CHECK_LIB([dl], [dlopen],
 1975 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
 1976     lt_cv_dlopen=dyld
 1977     lt_cv_dlopen_libs=
 1978     lt_cv_dlopen_self=yes
 1979     ])
 1980     ;;
 1981 
 1982   tpf*)
 1983     # Don't try to run any link tests for TPF.  We know it's impossible
 1984     # because TPF is a cross-compiler, and we know how we open DSOs.
 1985     lt_cv_dlopen=dlopen
 1986     lt_cv_dlopen_libs=
 1987     lt_cv_dlopen_self=no
 1988     ;;
 1989 
 1990   *)
 1991     AC_CHECK_FUNC([shl_load],
 1992 	  [lt_cv_dlopen=shl_load],
 1993       [AC_CHECK_LIB([dld], [shl_load],
 1994 	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
 1995 	[AC_CHECK_FUNC([dlopen],
 1996 	      [lt_cv_dlopen=dlopen],
 1997 	  [AC_CHECK_LIB([dl], [dlopen],
 1998 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
 1999 	    [AC_CHECK_LIB([svld], [dlopen],
 2000 		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
 2001 	      [AC_CHECK_LIB([dld], [dld_link],
 2002 		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
 2003 	      ])
 2004 	    ])
 2005 	  ])
 2006 	])
 2007       ])
 2008     ;;
 2009   esac
 2010 
 2011   if test no = "$lt_cv_dlopen"; then
 2012     enable_dlopen=no
 2013   else
 2014     enable_dlopen=yes
 2015   fi
 2016 
 2017   case $lt_cv_dlopen in
 2018   dlopen)
 2019     save_CPPFLAGS=$CPPFLAGS
 2020     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 2021 
 2022     save_LDFLAGS=$LDFLAGS
 2023     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 2024 
 2025     save_LIBS=$LIBS
 2026     LIBS="$lt_cv_dlopen_libs $LIBS"
 2027 
 2028     AC_CACHE_CHECK([whether a program can dlopen itself],
 2029 	  lt_cv_dlopen_self, [dnl
 2030 	  _LT_TRY_DLOPEN_SELF(
 2031 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 2032 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 2033     ])
 2034 
 2035     if test yes = "$lt_cv_dlopen_self"; then
 2036       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 2037       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 2038 	  lt_cv_dlopen_self_static, [dnl
 2039 	  _LT_TRY_DLOPEN_SELF(
 2040 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 2041 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 2042       ])
 2043     fi
 2044 
 2045     CPPFLAGS=$save_CPPFLAGS
 2046     LDFLAGS=$save_LDFLAGS
 2047     LIBS=$save_LIBS
 2048     ;;
 2049   esac
 2050 
 2051   case $lt_cv_dlopen_self in
 2052   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 2053   *) enable_dlopen_self=unknown ;;
 2054   esac
 2055 
 2056   case $lt_cv_dlopen_self_static in
 2057   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 2058   *) enable_dlopen_self_static=unknown ;;
 2059   esac
 2060 fi
 2061 _LT_DECL([dlopen_support], [enable_dlopen], [0],
 2062 	 [Whether dlopen is supported])
 2063 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 2064 	 [Whether dlopen of programs is supported])
 2065 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 2066 	 [Whether dlopen of statically linked programs is supported])
 2067 ])# LT_SYS_DLOPEN_SELF
 2068 
 2069 # Old name:
 2070 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 2071 dnl aclocal-1.4 backwards compatibility:
 2072 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 2073 
 2074 
 2075 # _LT_COMPILER_C_O([TAGNAME])
 2076 # ---------------------------
 2077 # Check to see if options -c and -o are simultaneously supported by compiler.
 2078 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
 2079 m4_defun([_LT_COMPILER_C_O],
 2080 [m4_require([_LT_DECL_SED])dnl
 2081 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2082 m4_require([_LT_TAG_COMPILER])dnl
 2083 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 2084   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 2085   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 2086    $RM -r conftest 2>/dev/null
 2087    mkdir conftest
 2088    cd conftest
 2089    mkdir out
 2090    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 2091 
 2092    lt_compiler_flag="-o out/conftest2.$ac_objext"
 2093    # Insert the option either (1) after the last *FLAGS variable, or
 2094    # (2) before a word containing "conftest.", or (3) at the end.
 2095    # Note that $ac_compile itself does not contain backslashes and begins
 2096    # with a dollar sign (not a hyphen), so the echo should work correctly.
 2097    lt_compile=`echo "$ac_compile" | $SED \
 2098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 2099    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 2100    -e 's:$: $lt_compiler_flag:'`
 2101    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 2102    (eval "$lt_compile" 2>out/conftest.err)
 2103    ac_status=$?
 2104    cat out/conftest.err >&AS_MESSAGE_LOG_FD
 2105    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 2106    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 2107    then
 2108      # The compiler can only warn and ignore the option if not recognized
 2109      # So say no if there are warnings
 2110      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 2111      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 2112      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 2113        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 2114      fi
 2115    fi
 2116    chmod u+w . 2>&AS_MESSAGE_LOG_FD
 2117    $RM conftest*
 2118    # SGI C++ compiler will create directory out/ii_files/ for
 2119    # template instantiation
 2120    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 2121    $RM out/* && rmdir out
 2122    cd ..
 2123    $RM -r conftest
 2124    $RM conftest*
 2125 ])
 2126 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 2127 	[Does compiler simultaneously support -c and -o options?])
 2128 ])# _LT_COMPILER_C_O
 2129 
 2130 
 2131 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
 2132 # ----------------------------------
 2133 # Check to see if we can do hard links to lock some files if needed
 2134 m4_defun([_LT_COMPILER_FILE_LOCKS],
 2135 [m4_require([_LT_ENABLE_LOCK])dnl
 2136 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2137 _LT_COMPILER_C_O([$1])
 2138 
 2139 hard_links=nottested
 2140 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
 2141   # do not overwrite the value of need_locks provided by the user
 2142   AC_MSG_CHECKING([if we can lock with hard links])
 2143   hard_links=yes
 2144   $RM conftest*
 2145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2146   touch conftest.a
 2147   ln conftest.a conftest.b 2>&5 || hard_links=no
 2148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2149   AC_MSG_RESULT([$hard_links])
 2150   if test no = "$hard_links"; then
 2151     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
 2152     need_locks=warn
 2153   fi
 2154 else
 2155   need_locks=no
 2156 fi
 2157 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 2158 ])# _LT_COMPILER_FILE_LOCKS
 2159 
 2160 
 2161 # _LT_CHECK_OBJDIR
 2162 # ----------------
 2163 m4_defun([_LT_CHECK_OBJDIR],
 2164 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 2165 [rm -f .libs 2>/dev/null
 2166 mkdir .libs 2>/dev/null
 2167 if test -d .libs; then
 2168   lt_cv_objdir=.libs
 2169 else
 2170   # MS-DOS does not allow filenames that begin with a dot.
 2171   lt_cv_objdir=_libs
 2172 fi
 2173 rmdir .libs 2>/dev/null])
 2174 objdir=$lt_cv_objdir
 2175 _LT_DECL([], [objdir], [0],
 2176          [The name of the directory that contains temporary libtool files])dnl
 2177 m4_pattern_allow([LT_OBJDIR])dnl
 2178 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
 2179   [Define to the sub-directory where libtool stores uninstalled libraries.])
 2180 ])# _LT_CHECK_OBJDIR
 2181 
 2182 
 2183 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 2184 # --------------------------------------
 2185 # Check hardcoding attributes.
 2186 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 2187 [AC_MSG_CHECKING([how to hardcode library paths into programs])
 2188 _LT_TAGVAR(hardcode_action, $1)=
 2189 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 2190    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 2191    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
 2192 
 2193   # We can hardcode non-existent directories.
 2194   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
 2195      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 2196      # have to relink, otherwise we might link with an installed library
 2197      # when we should be linking with a yet-to-be-installed one
 2198      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
 2199      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
 2200     # Linking always hardcodes the temporary library directory.
 2201     _LT_TAGVAR(hardcode_action, $1)=relink
 2202   else
 2203     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 2204     _LT_TAGVAR(hardcode_action, $1)=immediate
 2205   fi
 2206 else
 2207   # We cannot hardcode anything, or else we can only hardcode existing
 2208   # directories.
 2209   _LT_TAGVAR(hardcode_action, $1)=unsupported
 2210 fi
 2211 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 2212 
 2213 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
 2214    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
 2215   # Fast installation is not supported
 2216   enable_fast_install=no
 2217 elif test yes = "$shlibpath_overrides_runpath" ||
 2218      test no = "$enable_shared"; then
 2219   # Fast installation is not necessary
 2220   enable_fast_install=needless
 2221 fi
 2222 _LT_TAGDECL([], [hardcode_action], [0],
 2223     [How to hardcode a shared library path into an executable])
 2224 ])# _LT_LINKER_HARDCODE_LIBPATH
 2225 
 2226 
 2227 # _LT_CMD_STRIPLIB
 2228 # ----------------
 2229 m4_defun([_LT_CMD_STRIPLIB],
 2230 [m4_require([_LT_DECL_EGREP])
 2231 striplib=
 2232 old_striplib=
 2233 AC_MSG_CHECKING([whether stripping libraries is possible])
 2234 if test -z "$STRIP"; then
 2235   AC_MSG_RESULT([no])
 2236 else
 2237   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 2238     old_striplib="$STRIP --strip-debug"
 2239     striplib="$STRIP --strip-unneeded"
 2240     AC_MSG_RESULT([yes])
 2241   else
 2242     case $host_os in
 2243     darwin*)
 2244       # FIXME - insert some real tests, host_os isn't really good enough
 2245       striplib="$STRIP -x"
 2246       old_striplib="$STRIP -S"
 2247       AC_MSG_RESULT([yes])
 2248       ;;
 2249     freebsd*)
 2250       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
 2251         old_striplib="$STRIP --strip-debug"
 2252         striplib="$STRIP --strip-unneeded"
 2253         AC_MSG_RESULT([yes])
 2254       else
 2255         AC_MSG_RESULT([no])
 2256       fi
 2257       ;;
 2258     *)
 2259       AC_MSG_RESULT([no])
 2260       ;;
 2261     esac
 2262   fi
 2263 fi
 2264 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 2265 _LT_DECL([], [striplib], [1])
 2266 ])# _LT_CMD_STRIPLIB
 2267 
 2268 
 2269 # _LT_PREPARE_MUNGE_PATH_LIST
 2270 # ---------------------------
 2271 # Make sure func_munge_path_list() is defined correctly.
 2272 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
 2273 [[# func_munge_path_list VARIABLE PATH
 2274 # -----------------------------------
 2275 # VARIABLE is name of variable containing _space_ separated list of
 2276 # directories to be munged by the contents of PATH, which is string
 2277 # having a format:
 2278 # "DIR[:DIR]:"
 2279 #       string "DIR[ DIR]" will be prepended to VARIABLE
 2280 # ":DIR[:DIR]"
 2281 #       string "DIR[ DIR]" will be appended to VARIABLE
 2282 # "DIRP[:DIRP]::[DIRA:]DIRA"
 2283 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 2284 #       "DIRA[ DIRA]" will be appended to VARIABLE
 2285 # "DIR[:DIR]"
 2286 #       VARIABLE will be replaced by "DIR[ DIR]"
 2287 func_munge_path_list ()
 2288 {
 2289     case x@S|@2 in
 2290     x)
 2291         ;;
 2292     *:)
 2293         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
 2294         ;;
 2295     x:*)
 2296         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2297         ;;
 2298     *::*)
 2299         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 2300         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
 2301         ;;
 2302     *)
 2303         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2304         ;;
 2305     esac
 2306 }
 2307 ]])# _LT_PREPARE_PATH_LIST
 2308 
 2309 
 2310 # _LT_SYS_DYNAMIC_LINKER([TAG])
 2311 # -----------------------------
 2312 # PORTME Fill in your ld.so characteristics
 2313 m4_defun([_LT_SYS_DYNAMIC_LINKER],
 2314 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 2315 m4_require([_LT_DECL_EGREP])dnl
 2316 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2317 m4_require([_LT_DECL_OBJDUMP])dnl
 2318 m4_require([_LT_DECL_SED])dnl
 2319 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 2320 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
 2321 AC_MSG_CHECKING([dynamic linker characteristics])
 2322 m4_if([$1],
 2323 	[], [
 2324 if test yes = "$GCC"; then
 2325   case $host_os in
 2326     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 2327     *) lt_awk_arg='/^libraries:/' ;;
 2328   esac
 2329   case $host_os in
 2330     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
 2331     *) lt_sed_strip_eq='s|=/|/|g' ;;
 2332   esac
 2333   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 2334   case $lt_search_path_spec in
 2335   *\;*)
 2336     # if the path contains ";" then we assume it to be the separator
 2337     # otherwise default to the standard path separator (i.e. ":") - it is
 2338     # assumed that no part of a normal pathname contains ";" but that should
 2339     # okay in the real world where ";" in dirpaths is itself problematic.
 2340     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 2341     ;;
 2342   *)
 2343     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 2344     ;;
 2345   esac
 2346   # Ok, now we have the path, separated by spaces, we can step through it
 2347   # and add multilib dir if necessary...
 2348   lt_tmp_lt_search_path_spec=
 2349   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 2350   # ...but if some path component already ends with the multilib dir we assume
 2351   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 2352   case "$lt_multi_os_dir; $lt_search_path_spec " in
 2353   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 2354     lt_multi_os_dir=
 2355     ;;
 2356   esac
 2357   for lt_sys_path in $lt_search_path_spec; do
 2358     if test -d "$lt_sys_path$lt_multi_os_dir"; then
 2359       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 2360     elif test -n "$lt_multi_os_dir"; then
 2361       test -d "$lt_sys_path" && \
 2362 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 2363     fi
 2364   done
 2365   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 2366 BEGIN {RS = " "; FS = "/|\n";} {
 2367   lt_foo = "";
 2368   lt_count = 0;
 2369   for (lt_i = NF; lt_i > 0; lt_i--) {
 2370     if ($lt_i != "" && $lt_i != ".") {
 2371       if ($lt_i == "..") {
 2372         lt_count++;
 2373       } else {
 2374         if (lt_count == 0) {
 2375           lt_foo = "/" $lt_i lt_foo;
 2376         } else {
 2377           lt_count--;
 2378         }
 2379       }
 2380     }
 2381   }
 2382   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 2383   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 2384 }'`
 2385   # AWK program above erroneously prepends '/' to C:/dos/paths
 2386   # for these hosts.
 2387   case $host_os in
 2388     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 2389       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
 2390   esac
 2391   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 2392 else
 2393   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 2394 fi])
 2395 library_names_spec=
 2396 libname_spec='lib$name'
 2397 soname_spec=
 2398 shrext_cmds=.so
 2399 postinstall_cmds=
 2400 postuninstall_cmds=
 2401 finish_cmds=
 2402 finish_eval=
 2403 shlibpath_var=
 2404 shlibpath_overrides_runpath=unknown
 2405 version_type=none
 2406 dynamic_linker="$host_os ld.so"
 2407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 2408 need_lib_prefix=unknown
 2409 hardcode_into_libs=no
 2410 
 2411 # when you set need_version to no, make sure it does not cause -set_version
 2412 # flags to be left without arguments
 2413 need_version=unknown
 2414 
 2415 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
 2416 [User-defined run-time library search path.])
 2417 
 2418 case $host_os in
 2419 aix3*)
 2420   version_type=linux # correct to gnu/linux during the next big refactor
 2421   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 2422   shlibpath_var=LIBPATH
 2423 
 2424   # AIX 3 has no versioning support, so we append a major version to the name.
 2425   soname_spec='$libname$release$shared_ext$major'
 2426   ;;
 2427 
 2428 aix[[4-9]]*)
 2429   version_type=linux # correct to gnu/linux during the next big refactor
 2430   need_lib_prefix=no
 2431   need_version=no
 2432   hardcode_into_libs=yes
 2433   if test ia64 = "$host_cpu"; then
 2434     # AIX 5 supports IA64
 2435     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 2436     shlibpath_var=LD_LIBRARY_PATH
 2437   else
 2438     # With GCC up to 2.95.x, collect2 would create an import file
 2439     # for dependence libraries.  The import file would start with
 2440     # the line '#! .'.  This would cause the generated library to
 2441     # depend on '.', always an invalid library.  This was fixed in
 2442     # development snapshots of GCC prior to 3.0.
 2443     case $host_os in
 2444       aix4 | aix4.[[01]] | aix4.[[01]].*)
 2445       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 2446 	   echo ' yes '
 2447 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 2448 	:
 2449       else
 2450 	can_build_shared=no
 2451       fi
 2452       ;;
 2453     esac
 2454     # Using Import Files as archive members, it is possible to support
 2455     # filename-based versioning of shared library archives on AIX. While
 2456     # this would work for both with and without runtime linking, it will
 2457     # prevent static linking of such archives. So we do filename-based
 2458     # shared library versioning with .so extension only, which is used
 2459     # when both runtime linking and shared linking is enabled.
 2460     # Unfortunately, runtime linking may impact performance, so we do
 2461     # not want this to be the default eventually. Also, we use the
 2462     # versioned .so libs for executables only if there is the -brtl
 2463     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 2464     # To allow for filename-based versioning support, we need to create
 2465     # libNAME.so.V as an archive file, containing:
 2466     # *) an Import File, referring to the versioned filename of the
 2467     #    archive as well as the shared archive member, telling the
 2468     #    bitwidth (32 or 64) of that shared object, and providing the
 2469     #    list of exported symbols of that shared object, eventually
 2470     #    decorated with the 'weak' keyword
 2471     # *) the shared object with the F_LOADONLY flag set, to really avoid
 2472     #    it being seen by the linker.
 2473     # At run time we better use the real file rather than another symlink,
 2474     # but for link time we create the symlink libNAME.so -> libNAME.so.V
 2475 
 2476     case $with_aix_soname,$aix_use_runtimelinking in
 2477     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 2478     # soname into executable. Probably we can add versioning support to
 2479     # collect2, so additional links can be useful in future.
 2480     aix,yes) # traditional libtool
 2481       dynamic_linker='AIX unversionable lib.so'
 2482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 2483       # instead of lib<name>.a to let people know that these are not
 2484       # typical AIX shared libraries.
 2485       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2486       ;;
 2487     aix,no) # traditional AIX only
 2488       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
 2489       # We preserve .a as extension for shared libraries through AIX4.2
 2490       # and later when we are not doing run time linking.
 2491       library_names_spec='$libname$release.a $libname.a'
 2492       soname_spec='$libname$release$shared_ext$major'
 2493       ;;
 2494     svr4,*) # full svr4 only
 2495       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
 2496       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2497       # We do not specify a path in Import Files, so LIBPATH fires.
 2498       shlibpath_overrides_runpath=yes
 2499       ;;
 2500     *,yes) # both, prefer svr4
 2501       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
 2502       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2503       # unpreferred sharedlib libNAME.a needs extra handling
 2504       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"'
 2505       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"'
 2506       # We do not specify a path in Import Files, so LIBPATH fires.
 2507       shlibpath_overrides_runpath=yes
 2508       ;;
 2509     *,no) # both, prefer aix
 2510       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
 2511       library_names_spec='$libname$release.a $libname.a'
 2512       soname_spec='$libname$release$shared_ext$major'
 2513       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 2514       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)'
 2515       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"'
 2516       ;;
 2517     esac
 2518     shlibpath_var=LIBPATH
 2519   fi
 2520   ;;
 2521 
 2522 amigaos*)
 2523   case $host_cpu in
 2524   powerpc)
 2525     # Since July 2007 AmigaOS4 officially supports .so libraries.
 2526     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 2527     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2528     ;;
 2529   m68k)
 2530     library_names_spec='$libname.ixlibrary $libname.a'
 2531     # Create ${libname}_ixlibrary.a entries in /sys/libs.
 2532     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'
 2533     ;;
 2534   esac
 2535   ;;
 2536 
 2537 beos*)
 2538   library_names_spec='$libname$shared_ext'
 2539   dynamic_linker="$host_os ld.so"
 2540   shlibpath_var=LIBRARY_PATH
 2541   ;;
 2542 
 2543 bsdi[[45]]*)
 2544   version_type=linux # correct to gnu/linux during the next big refactor
 2545   need_version=no
 2546   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2547   soname_spec='$libname$release$shared_ext$major'
 2548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 2549   shlibpath_var=LD_LIBRARY_PATH
 2550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 2551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 2552   # the default ld.so.conf also contains /usr/contrib/lib and
 2553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 2554   # libtool to hard-code these into programs
 2555   ;;
 2556 
 2557 cygwin* | mingw* | pw32* | cegcc*)
 2558   version_type=windows
 2559   shrext_cmds=.dll
 2560   need_version=no
 2561   need_lib_prefix=no
 2562 
 2563   case $GCC,$cc_basename in
 2564   yes,*)
 2565     # gcc
 2566     library_names_spec='$libname.dll.a'
 2567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2568     postinstall_cmds='base_file=`basename \$file`~
 2569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2570       dldir=$destdir/`dirname \$dlpath`~
 2571       test -d \$dldir || mkdir -p \$dldir~
 2572       $install_prog $dir/$dlname \$dldir/$dlname~
 2573       chmod a+x \$dldir/$dlname~
 2574       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 2575         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 2576       fi'
 2577     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2578       dlpath=$dir/\$dldll~
 2579        $RM \$dlpath'
 2580     shlibpath_overrides_runpath=yes
 2581 
 2582     case $host_os in
 2583     cygwin*)
 2584       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 2585       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2586 m4_if([$1], [],[
 2587       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 2588       ;;
 2589     mingw* | cegcc*)
 2590       # MinGW DLLs use traditional 'lib' prefix
 2591       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2592       ;;
 2593     pw32*)
 2594       # pw32 DLLs use 'pw' prefix rather than 'lib'
 2595       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2596       ;;
 2597     esac
 2598     dynamic_linker='Win32 ld.exe'
 2599     ;;
 2600 
 2601   *,cl* | *,icl*)
 2602     # Native MSVC or ICC
 2603     libname_spec='$name'
 2604     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2605     library_names_spec='$libname.dll.lib'
 2606 
 2607     case $build_os in
 2608     mingw*)
 2609       sys_lib_search_path_spec=
 2610       lt_save_ifs=$IFS
 2611       IFS=';'
 2612       for lt_path in $LIB
 2613       do
 2614         IFS=$lt_save_ifs
 2615         # Let DOS variable expansion print the short 8.3 style file name.
 2616         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 2617         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 2618       done
 2619       IFS=$lt_save_ifs
 2620       # Convert to MSYS style.
 2621       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 2622       ;;
 2623     cygwin*)
 2624       # Convert to unix form, then to dos form, then back to unix form
 2625       # but this time dos style (no spaces!) so that the unix form looks
 2626       # like /cygdrive/c/PROGRA~1:/cygdr...
 2627       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 2628       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 2629       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2630       ;;
 2631     *)
 2632       sys_lib_search_path_spec=$LIB
 2633       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 2634         # It is most probably a Windows format PATH.
 2635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 2636       else
 2637         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2638       fi
 2639       # FIXME: find the short name or the path components, as spaces are
 2640       # common. (e.g. "Program Files" -> "PROGRA~1")
 2641       ;;
 2642     esac
 2643 
 2644     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2645     postinstall_cmds='base_file=`basename \$file`~
 2646       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2647       dldir=$destdir/`dirname \$dlpath`~
 2648       test -d \$dldir || mkdir -p \$dldir~
 2649       $install_prog $dir/$dlname \$dldir/$dlname'
 2650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2651       dlpath=$dir/\$dldll~
 2652        $RM \$dlpath'
 2653     shlibpath_overrides_runpath=yes
 2654     dynamic_linker='Win32 link.exe'
 2655     ;;
 2656 
 2657   *)
 2658     # Assume MSVC and ICC wrapper
 2659     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
 2660     dynamic_linker='Win32 ld.exe'
 2661     ;;
 2662   esac
 2663   # FIXME: first we should search . and the directory the executable is in
 2664   shlibpath_var=PATH
 2665   ;;
 2666 
 2667 darwin* | rhapsody*)
 2668   dynamic_linker="$host_os dyld"
 2669   version_type=darwin
 2670   need_lib_prefix=no
 2671   need_version=no
 2672   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 2673   soname_spec='$libname$release$major$shared_ext'
 2674   shlibpath_overrides_runpath=yes
 2675   shlibpath_var=DYLD_LIBRARY_PATH
 2676   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 2677 m4_if([$1], [],[
 2678   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 2679   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 2680   ;;
 2681 
 2682 dgux*)
 2683   version_type=linux # correct to gnu/linux during the next big refactor
 2684   need_lib_prefix=no
 2685   need_version=no
 2686   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2687   soname_spec='$libname$release$shared_ext$major'
 2688   shlibpath_var=LD_LIBRARY_PATH
 2689   ;;
 2690 
 2691 freebsd* | dragonfly* | midnightbsd*)
 2692   # DragonFly does not have aout.  When/if they implement a new
 2693   # versioning mechanism, adjust this.
 2694   if test -x /usr/bin/objformat; then
 2695     objformat=`/usr/bin/objformat`
 2696   else
 2697     case $host_os in
 2698     freebsd[[23]].*) objformat=aout ;;
 2699     *) objformat=elf ;;
 2700     esac
 2701   fi
 2702   version_type=freebsd-$objformat
 2703   case $version_type in
 2704     freebsd-elf*)
 2705       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2706       soname_spec='$libname$release$shared_ext$major'
 2707       need_version=no
 2708       need_lib_prefix=no
 2709       ;;
 2710     freebsd-*)
 2711       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2712       need_version=yes
 2713       ;;
 2714   esac
 2715   shlibpath_var=LD_LIBRARY_PATH
 2716   case $host_os in
 2717   freebsd2.*)
 2718     shlibpath_overrides_runpath=yes
 2719     ;;
 2720   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 2721     shlibpath_overrides_runpath=yes
 2722     hardcode_into_libs=yes
 2723     ;;
 2724   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 2725   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 2726     shlibpath_overrides_runpath=no
 2727     hardcode_into_libs=yes
 2728     ;;
 2729   *) # from 4.6 on, and DragonFly
 2730     shlibpath_overrides_runpath=yes
 2731     hardcode_into_libs=yes
 2732     ;;
 2733   esac
 2734   ;;
 2735 
 2736 haiku*)
 2737   version_type=linux # correct to gnu/linux during the next big refactor
 2738   need_lib_prefix=no
 2739   need_version=no
 2740   dynamic_linker="$host_os runtime_loader"
 2741   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2742   soname_spec='$libname$release$shared_ext$major'
 2743   shlibpath_var=LIBRARY_PATH
 2744   shlibpath_overrides_runpath=no
 2745   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 2746   hardcode_into_libs=yes
 2747   ;;
 2748 
 2749 hpux9* | hpux10* | hpux11*)
 2750   # Give a soname corresponding to the major version so that dld.sl refuses to
 2751   # link against other versions.
 2752   version_type=sunos
 2753   need_lib_prefix=no
 2754   need_version=no
 2755   case $host_cpu in
 2756   ia64*)
 2757     shrext_cmds='.so'
 2758     hardcode_into_libs=yes
 2759     dynamic_linker="$host_os dld.so"
 2760     shlibpath_var=LD_LIBRARY_PATH
 2761     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2762     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2763     soname_spec='$libname$release$shared_ext$major'
 2764     if test 32 = "$HPUX_IA64_MODE"; then
 2765       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 2766       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 2767     else
 2768       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 2769       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 2770     fi
 2771     ;;
 2772   hppa*64*)
 2773     shrext_cmds='.sl'
 2774     hardcode_into_libs=yes
 2775     dynamic_linker="$host_os dld.sl"
 2776     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 2777     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 2781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2782     ;;
 2783   *)
 2784     shrext_cmds='.sl'
 2785     dynamic_linker="$host_os dld.sl"
 2786     shlibpath_var=SHLIB_PATH
 2787     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 2788     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2789     soname_spec='$libname$release$shared_ext$major'
 2790     ;;
 2791   esac
 2792   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 2793   postinstall_cmds='chmod 555 $lib'
 2794   # or fails outright, so override atomically:
 2795   install_override_mode=555
 2796   ;;
 2797 
 2798 interix[[3-9]]*)
 2799   version_type=linux # correct to gnu/linux during the next big refactor
 2800   need_lib_prefix=no
 2801   need_version=no
 2802   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2803   soname_spec='$libname$release$shared_ext$major'
 2804   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 2805   shlibpath_var=LD_LIBRARY_PATH
 2806   shlibpath_overrides_runpath=no
 2807   hardcode_into_libs=yes
 2808   ;;
 2809 
 2810 irix5* | irix6* | nonstopux*)
 2811   case $host_os in
 2812     nonstopux*) version_type=nonstopux ;;
 2813     *)
 2814 	if test yes = "$lt_cv_prog_gnu_ld"; then
 2815 		version_type=linux # correct to gnu/linux during the next big refactor
 2816 	else
 2817 		version_type=irix
 2818 	fi ;;
 2819   esac
 2820   need_lib_prefix=no
 2821   need_version=no
 2822   soname_spec='$libname$release$shared_ext$major'
 2823   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 2824   case $host_os in
 2825   irix5* | nonstopux*)
 2826     libsuff= shlibsuff=
 2827     ;;
 2828   *)
 2829     case $LD in # libtool.m4 will add one of these switches to LD
 2830     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 2831       libsuff= shlibsuff= libmagic=32-bit;;
 2832     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 2833       libsuff=32 shlibsuff=N32 libmagic=N32;;
 2834     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 2835       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 2836     *) libsuff= shlibsuff= libmagic=never-match;;
 2837     esac
 2838     ;;
 2839   esac
 2840   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 2841   shlibpath_overrides_runpath=no
 2842   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 2843   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 2844   hardcode_into_libs=yes
 2845   ;;
 2846 
 2847 # No shared lib support for Linux oldld, aout, or coff.
 2848 linux*oldld* | linux*aout* | linux*coff*)
 2849   dynamic_linker=no
 2850   ;;
 2851 
 2852 linux*android*)
 2853   version_type=none # Android doesn't support versioned libraries.
 2854   need_lib_prefix=no
 2855   need_version=no
 2856   library_names_spec='$libname$release$shared_ext'
 2857   soname_spec='$libname$release$shared_ext'
 2858   finish_cmds=
 2859   shlibpath_var=LD_LIBRARY_PATH
 2860   shlibpath_overrides_runpath=yes
 2861 
 2862   # This implies no fast_install, which is unacceptable.
 2863   # Some rework will be needed to allow for fast_install
 2864   # before this can be enabled.
 2865   hardcode_into_libs=yes
 2866 
 2867   dynamic_linker='Android linker'
 2868   # Don't embed -rpath directories since the linker doesn't support them.
 2869   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 2870   ;;
 2871 
 2872 # This must be glibc/ELF.
 2873 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 2874   version_type=linux # correct to gnu/linux during the next big refactor
 2875   need_lib_prefix=no
 2876   need_version=no
 2877   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2878   soname_spec='$libname$release$shared_ext$major'
 2879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 2880   shlibpath_var=LD_LIBRARY_PATH
 2881   shlibpath_overrides_runpath=no
 2882 
 2883   # Some binutils ld are patched to set DT_RUNPATH
 2884   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 2885     [lt_cv_shlibpath_overrides_runpath=no
 2886     save_LDFLAGS=$LDFLAGS
 2887     save_libdir=$libdir
 2888     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 2889 	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 2890     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 2891       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 2892 	 [lt_cv_shlibpath_overrides_runpath=yes])])
 2893     LDFLAGS=$save_LDFLAGS
 2894     libdir=$save_libdir
 2895     ])
 2896   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 2897 
 2898   # This implies no fast_install, which is unacceptable.
 2899   # Some rework will be needed to allow for fast_install
 2900   # before this can be enabled.
 2901   hardcode_into_libs=yes
 2902 
 2903   # Ideally, we could use ldconfig to report *all* directores which are
 2904   # searched for libraries, however this is still not possible.  Aside from not
 2905   # being certain /sbin/ldconfig is available, command
 2906   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 2907   # even though it is searched at run-time.  Try to do the best guess by
 2908   # appending ld.so.conf contents (and includes) to the search path.
 2909   if test -f /etc/ld.so.conf; then
 2910     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' ' '`
 2911     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 2912   fi
 2913 
 2914   # We used to test for /lib/ld.so.1 and disable shared libraries on
 2915   # powerpc, because MkLinux only supported shared libraries with the
 2916   # GNU dynamic linker.  Since this was broken with cross compilers,
 2917   # most powerpc-linux boxes support dynamic linking these days and
 2918   # people can always --disable-shared, the test was removed, and we
 2919   # assume the GNU/Linux dynamic linker is in use.
 2920   dynamic_linker='GNU/Linux ld.so'
 2921   ;;
 2922 
 2923 netbsdelf*-gnu)
 2924   version_type=linux
 2925   need_lib_prefix=no
 2926   need_version=no
 2927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 2928   soname_spec='${libname}${release}${shared_ext}$major'
 2929   shlibpath_var=LD_LIBRARY_PATH
 2930   shlibpath_overrides_runpath=no
 2931   hardcode_into_libs=yes
 2932   dynamic_linker='NetBSD ld.elf_so'
 2933   ;;
 2934 
 2935 netbsd*)
 2936   version_type=sunos
 2937   need_lib_prefix=no
 2938   need_version=no
 2939   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 2940     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2941     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2942     dynamic_linker='NetBSD (a.out) ld.so'
 2943   else
 2944     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2945     soname_spec='$libname$release$shared_ext$major'
 2946     dynamic_linker='NetBSD ld.elf_so'
 2947   fi
 2948   shlibpath_var=LD_LIBRARY_PATH
 2949   shlibpath_overrides_runpath=yes
 2950   hardcode_into_libs=yes
 2951   ;;
 2952 
 2953 newsos6)
 2954   version_type=linux # correct to gnu/linux during the next big refactor
 2955   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2956   shlibpath_var=LD_LIBRARY_PATH
 2957   shlibpath_overrides_runpath=yes
 2958   ;;
 2959 
 2960 *nto* | *qnx*)
 2961   version_type=qnx
 2962   need_lib_prefix=no
 2963   need_version=no
 2964   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2965   soname_spec='$libname$release$shared_ext$major'
 2966   shlibpath_var=LD_LIBRARY_PATH
 2967   shlibpath_overrides_runpath=no
 2968   hardcode_into_libs=yes
 2969   dynamic_linker='ldqnx.so'
 2970   ;;
 2971 
 2972 openbsd* | bitrig*)
 2973   version_type=sunos
 2974   sys_lib_dlsearch_path_spec=/usr/lib
 2975   need_lib_prefix=no
 2976   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 2977     need_version=no
 2978   else
 2979     need_version=yes
 2980   fi
 2981   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2983   shlibpath_var=LD_LIBRARY_PATH
 2984   shlibpath_overrides_runpath=yes
 2985   ;;
 2986 
 2987 os2*)
 2988   libname_spec='$name'
 2989   version_type=windows
 2990   shrext_cmds=.dll
 2991   need_version=no
 2992   need_lib_prefix=no
 2993   # OS/2 can only load a DLL with a base name of 8 characters or less.
 2994   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 2995     v=$($ECHO $release$versuffix | tr -d .-);
 2996     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 2997     $ECHO $n$v`$shared_ext'
 2998   library_names_spec='${libname}_dll.$libext'
 2999   dynamic_linker='OS/2 ld.exe'
 3000   shlibpath_var=BEGINLIBPATH
 3001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 3002   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 3003   postinstall_cmds='base_file=`basename \$file`~
 3004     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 3005     dldir=$destdir/`dirname \$dlpath`~
 3006     test -d \$dldir || mkdir -p \$dldir~
 3007     $install_prog $dir/$dlname \$dldir/$dlname~
 3008     chmod a+x \$dldir/$dlname~
 3009     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 3010       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 3011     fi'
 3012   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 3013     dlpath=$dir/\$dldll~
 3014     $RM \$dlpath'
 3015   ;;
 3016 
 3017 osf3* | osf4* | osf5*)
 3018   version_type=osf
 3019   need_lib_prefix=no
 3020   need_version=no
 3021   soname_spec='$libname$release$shared_ext$major'
 3022   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3023   shlibpath_var=LD_LIBRARY_PATH
 3024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 3025   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 3026   ;;
 3027 
 3028 rdos*)
 3029   dynamic_linker=no
 3030   ;;
 3031 
 3032 solaris*)
 3033   version_type=linux # correct to gnu/linux during the next big refactor
 3034   need_lib_prefix=no
 3035   need_version=no
 3036   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3037   soname_spec='$libname$release$shared_ext$major'
 3038   shlibpath_var=LD_LIBRARY_PATH
 3039   shlibpath_overrides_runpath=yes
 3040   hardcode_into_libs=yes
 3041   # ldd complains unless libraries are executable
 3042   postinstall_cmds='chmod +x $lib'
 3043   ;;
 3044 
 3045 sunos4*)
 3046   version_type=sunos
 3047   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 3048   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 3049   shlibpath_var=LD_LIBRARY_PATH
 3050   shlibpath_overrides_runpath=yes
 3051   if test yes = "$with_gnu_ld"; then
 3052     need_lib_prefix=no
 3053   fi
 3054   need_version=yes
 3055   ;;
 3056 
 3057 sysv4 | sysv4.3*)
 3058   version_type=linux # correct to gnu/linux during the next big refactor
 3059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3060   soname_spec='$libname$release$shared_ext$major'
 3061   shlibpath_var=LD_LIBRARY_PATH
 3062   case $host_vendor in
 3063     sni)
 3064       shlibpath_overrides_runpath=no
 3065       need_lib_prefix=no
 3066       runpath_var=LD_RUN_PATH
 3067       ;;
 3068     siemens)
 3069       need_lib_prefix=no
 3070       ;;
 3071     motorola)
 3072       need_lib_prefix=no
 3073       need_version=no
 3074       shlibpath_overrides_runpath=no
 3075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 3076       ;;
 3077   esac
 3078   ;;
 3079 
 3080 sysv4*MP*)
 3081   if test -d /usr/nec; then
 3082     version_type=linux # correct to gnu/linux during the next big refactor
 3083     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 3084     soname_spec='$libname$shared_ext.$major'
 3085     shlibpath_var=LD_LIBRARY_PATH
 3086   fi
 3087   ;;
 3088 
 3089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3090   version_type=sco
 3091   need_lib_prefix=no
 3092   need_version=no
 3093   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 3094   soname_spec='$libname$release$shared_ext$major'
 3095   shlibpath_var=LD_LIBRARY_PATH
 3096   shlibpath_overrides_runpath=yes
 3097   hardcode_into_libs=yes
 3098   if test yes = "$with_gnu_ld"; then
 3099     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 3100   else
 3101     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 3102     case $host_os in
 3103       sco3.2v5*)
 3104         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 3105 	;;
 3106     esac
 3107   fi
 3108   sys_lib_dlsearch_path_spec='/usr/lib'
 3109   ;;
 3110 
 3111 tpf*)
 3112   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 3113   version_type=linux # correct to gnu/linux during the next big refactor
 3114   need_lib_prefix=no
 3115   need_version=no
 3116   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3117   shlibpath_var=LD_LIBRARY_PATH
 3118   shlibpath_overrides_runpath=no
 3119   hardcode_into_libs=yes
 3120   ;;
 3121 
 3122 uts4*)
 3123   version_type=linux # correct to gnu/linux during the next big refactor
 3124   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3125   soname_spec='$libname$release$shared_ext$major'
 3126   shlibpath_var=LD_LIBRARY_PATH
 3127   ;;
 3128 
 3129 *)
 3130   dynamic_linker=no
 3131   ;;
 3132 esac
 3133 AC_MSG_RESULT([$dynamic_linker])
 3134 test no = "$dynamic_linker" && can_build_shared=no
 3135 
 3136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 3137 if test yes = "$GCC"; then
 3138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 3139 fi
 3140 
 3141 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 3142   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 3143 fi
 3144 
 3145 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 3146   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 3147 fi
 3148 
 3149 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 3150 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 3151 
 3152 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 3153 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 3154 
 3155 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 3156 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 3157 
 3158 _LT_DECL([], [variables_saved_for_relink], [1],
 3159     [Variables whose values should be saved in libtool wrapper scripts and
 3160     restored at link time])
 3161 _LT_DECL([], [need_lib_prefix], [0],
 3162     [Do we need the "lib" prefix for modules?])
 3163 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 3164 _LT_DECL([], [version_type], [0], [Library versioning type])
 3165 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 3166 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 3167 _LT_DECL([], [shlibpath_overrides_runpath], [0],
 3168     [Is shlibpath searched before the hard-coded library search path?])
 3169 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 3170 _LT_DECL([], [library_names_spec], [1],
 3171     [[List of archive names.  First name is the real one, the rest are links.
 3172     The last name is the one that the linker finds with -lNAME]])
 3173 _LT_DECL([], [soname_spec], [1],
 3174     [[The coded name of the library, if different from the real name]])
 3175 _LT_DECL([], [install_override_mode], [1],
 3176     [Permission mode override for installation of shared libraries])
 3177 _LT_DECL([], [postinstall_cmds], [2],
 3178     [Command to use after installation of a shared archive])
 3179 _LT_DECL([], [postuninstall_cmds], [2],
 3180     [Command to use after uninstallation of a shared archive])
 3181 _LT_DECL([], [finish_cmds], [2],
 3182     [Commands used to finish a libtool library installation in a directory])
 3183 _LT_DECL([], [finish_eval], [1],
 3184     [[As "finish_cmds", except a single script fragment to be evaled but
 3185     not shown]])
 3186 _LT_DECL([], [hardcode_into_libs], [0],
 3187     [Whether we should hardcode library paths into libraries])
 3188 _LT_DECL([], [sys_lib_search_path_spec], [2],
 3189     [Compile-time system search path for libraries])
 3190 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
 3191     [Detected run-time system search path for libraries])
 3192 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
 3193     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
 3194 ])# _LT_SYS_DYNAMIC_LINKER
 3195 
 3196 
 3197 # _LT_PATH_TOOL_PREFIX(TOOL)
 3198 # --------------------------
 3199 # find a file program that can recognize shared library
 3200 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 3201 [m4_require([_LT_DECL_EGREP])dnl
 3202 AC_MSG_CHECKING([for $1])
 3203 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 3204 [case $MAGIC_CMD in
 3205 [[\\/*] |  ?:[\\/]*])
 3206   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 3207   ;;
 3208 *)
 3209   lt_save_MAGIC_CMD=$MAGIC_CMD
 3210   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3211 dnl $ac_dummy forces splitting on constant user-supplied paths.
 3212 dnl POSIX.2 word splitting is done only on the output of word expansions,
 3213 dnl not every word.  This closes a longstanding sh security hole.
 3214   ac_dummy="m4_if([$2], , $PATH, [$2])"
 3215   for ac_dir in $ac_dummy; do
 3216     IFS=$lt_save_ifs
 3217     test -z "$ac_dir" && ac_dir=.
 3218     if test -f "$ac_dir/$1"; then
 3219       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
 3220       if test -n "$file_magic_test_file"; then
 3221 	case $deplibs_check_method in
 3222 	"file_magic "*)
 3223 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 3224 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3225 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 3226 	    $EGREP "$file_magic_regex" > /dev/null; then
 3227 	    :
 3228 	  else
 3229 	    cat <<_LT_EOF 1>&2
 3230 
 3231 *** Warning: the command libtool uses to detect shared libraries,
 3232 *** $file_magic_cmd, produces output that libtool cannot recognize.
 3233 *** The result is that libtool may fail to recognize shared libraries
 3234 *** as such.  This will affect the creation of libtool libraries that
 3235 *** depend on shared libraries, but programs linked with such libtool
 3236 *** libraries will work regardless of this problem.  Nevertheless, you
 3237 *** may want to report the problem to your system manager and/or to
 3238 *** bug-libtool@gnu.org
 3239 
 3240 _LT_EOF
 3241 	  fi ;;
 3242 	esac
 3243       fi
 3244       break
 3245     fi
 3246   done
 3247   IFS=$lt_save_ifs
 3248   MAGIC_CMD=$lt_save_MAGIC_CMD
 3249   ;;
 3250 esac])
 3251 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3252 if test -n "$MAGIC_CMD"; then
 3253   AC_MSG_RESULT($MAGIC_CMD)
 3254 else
 3255   AC_MSG_RESULT(no)
 3256 fi
 3257 _LT_DECL([], [MAGIC_CMD], [0],
 3258 	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 3259 ])# _LT_PATH_TOOL_PREFIX
 3260 
 3261 # Old name:
 3262 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 3263 dnl aclocal-1.4 backwards compatibility:
 3264 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 3265 
 3266 
 3267 # _LT_PATH_MAGIC
 3268 # --------------
 3269 # find a file program that can recognize a shared library
 3270 m4_defun([_LT_PATH_MAGIC],
 3271 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 3272 if test -z "$lt_cv_path_MAGIC_CMD"; then
 3273   if test -n "$ac_tool_prefix"; then
 3274     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 3275   else
 3276     MAGIC_CMD=:
 3277   fi
 3278 fi
 3279 ])# _LT_PATH_MAGIC
 3280 
 3281 
 3282 # LT_PATH_LD
 3283 # ----------
 3284 # find the pathname to the GNU or non-GNU linker
 3285 AC_DEFUN([LT_PATH_LD],
 3286 [AC_REQUIRE([AC_PROG_CC])dnl
 3287 AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3288 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 3289 m4_require([_LT_DECL_SED])dnl
 3290 m4_require([_LT_DECL_EGREP])dnl
 3291 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 3292 
 3293 AC_ARG_WITH([gnu-ld],
 3294     [AS_HELP_STRING([--with-gnu-ld],
 3295 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
 3296     [test no = "$withval" || with_gnu_ld=yes],
 3297     [with_gnu_ld=no])dnl
 3298 
 3299 ac_prog=ld
 3300 if test yes = "$GCC"; then
 3301   # Check if gcc -print-prog-name=ld gives a path.
 3302   AC_MSG_CHECKING([for ld used by $CC])
 3303   case $host in
 3304   *-*-mingw*)
 3305     # gcc leaves a trailing carriage return, which upsets mingw
 3306     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 3307   *)
 3308     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 3309   esac
 3310   case $ac_prog in
 3311     # Accept absolute paths.
 3312     [[\\/]]* | ?:[[\\/]]*)
 3313       re_direlt='/[[^/]][[^/]]*/\.\./'
 3314       # Canonicalize the pathname of ld
 3315       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 3316       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 3317 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 3318       done
 3319       test -z "$LD" && LD=$ac_prog
 3320       ;;
 3321   "")
 3322     # If it fails, then pretend we aren't using GCC.
 3323     ac_prog=ld
 3324     ;;
 3325   *)
 3326     # If it is relative, then search for the first ld in PATH.
 3327     with_gnu_ld=unknown
 3328     ;;
 3329   esac
 3330 elif test yes = "$with_gnu_ld"; then
 3331   AC_MSG_CHECKING([for GNU ld])
 3332 else
 3333   AC_MSG_CHECKING([for non-GNU ld])
 3334 fi
 3335 AC_CACHE_VAL(lt_cv_path_LD,
 3336 [if test -z "$LD"; then
 3337   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3338   for ac_dir in $PATH; do
 3339     IFS=$lt_save_ifs
 3340     test -z "$ac_dir" && ac_dir=.
 3341     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 3342       lt_cv_path_LD=$ac_dir/$ac_prog
 3343       # Check to see if the program is GNU ld.  I'd rather use --version,
 3344       # but apparently some variants of GNU ld only accept -v.
 3345       # Break only if it was the GNU/non-GNU ld that we prefer.
 3346       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 3347       *GNU* | *'with BFD'*)
 3348 	test no != "$with_gnu_ld" && break
 3349 	;;
 3350       *)
 3351 	test yes != "$with_gnu_ld" && break
 3352 	;;
 3353       esac
 3354     fi
 3355   done
 3356   IFS=$lt_save_ifs
 3357 else
 3358   lt_cv_path_LD=$LD # Let the user override the test with a path.
 3359 fi])
 3360 LD=$lt_cv_path_LD
 3361 if test -n "$LD"; then
 3362   AC_MSG_RESULT($LD)
 3363 else
 3364   AC_MSG_RESULT(no)
 3365 fi
 3366 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 3367 _LT_PATH_LD_GNU
 3368 AC_SUBST([LD])
 3369 
 3370 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 3371 ])# LT_PATH_LD
 3372 
 3373 # Old names:
 3374 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 3375 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 3376 dnl aclocal-1.4 backwards compatibility:
 3377 dnl AC_DEFUN([AM_PROG_LD], [])
 3378 dnl AC_DEFUN([AC_PROG_LD], [])
 3379 
 3380 
 3381 # _LT_PATH_LD_GNU
 3382 #- --------------
 3383 m4_defun([_LT_PATH_LD_GNU],
 3384 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 3385 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
 3386 case `$LD -v 2>&1 </dev/null` in
 3387 *GNU* | *'with BFD'*)
 3388   lt_cv_prog_gnu_ld=yes
 3389   ;;
 3390 *)
 3391   lt_cv_prog_gnu_ld=no
 3392   ;;
 3393 esac])
 3394 with_gnu_ld=$lt_cv_prog_gnu_ld
 3395 ])# _LT_PATH_LD_GNU
 3396 
 3397 
 3398 # _LT_CMD_RELOAD
 3399 # --------------
 3400 # find reload flag for linker
 3401 #   -- PORTME Some linkers may need a different reload flag.
 3402 m4_defun([_LT_CMD_RELOAD],
 3403 [AC_CACHE_CHECK([for $LD option to reload object files],
 3404   lt_cv_ld_reload_flag,
 3405   [lt_cv_ld_reload_flag='-r'])
 3406 reload_flag=$lt_cv_ld_reload_flag
 3407 case $reload_flag in
 3408 "" | " "*) ;;
 3409 *) reload_flag=" $reload_flag" ;;
 3410 esac
 3411 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3412 case $host_os in
 3413   cygwin* | mingw* | pw32* | cegcc*)
 3414     if test yes != "$GCC"; then
 3415       reload_cmds=false
 3416     fi
 3417     ;;
 3418   darwin*)
 3419     if test yes = "$GCC"; then
 3420       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 3421     else
 3422       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3423     fi
 3424     ;;
 3425 esac
 3426 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 3427 _LT_TAGDECL([], [reload_cmds], [2])dnl
 3428 ])# _LT_CMD_RELOAD
 3429 
 3430 
 3431 # _LT_PATH_DD
 3432 # -----------
 3433 # find a working dd
 3434 m4_defun([_LT_PATH_DD],
 3435 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
 3436 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3437 cat conftest.i conftest.i >conftest2.i
 3438 : ${lt_DD:=$DD}
 3439 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
 3440 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3441   cmp -s conftest.i conftest.out \
 3442   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 3443 fi])
 3444 rm -f conftest.i conftest2.i conftest.out])
 3445 ])# _LT_PATH_DD
 3446 
 3447 
 3448 # _LT_CMD_TRUNCATE
 3449 # ----------------
 3450 # find command to truncate a binary pipe
 3451 m4_defun([_LT_CMD_TRUNCATE],
 3452 [m4_require([_LT_PATH_DD])
 3453 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
 3454 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3455 cat conftest.i conftest.i >conftest2.i
 3456 lt_cv_truncate_bin=
 3457 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3458   cmp -s conftest.i conftest.out \
 3459   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 3460 fi
 3461 rm -f conftest.i conftest2.i conftest.out
 3462 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
 3463 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
 3464   [Command to truncate a binary pipe])
 3465 ])# _LT_CMD_TRUNCATE
 3466 
 3467 
 3468 # _LT_CHECK_MAGIC_METHOD
 3469 # ----------------------
 3470 # how to check for library dependencies
 3471 #  -- PORTME fill in with the dynamic library characteristics
 3472 m4_defun([_LT_CHECK_MAGIC_METHOD],
 3473 [m4_require([_LT_DECL_EGREP])
 3474 m4_require([_LT_DECL_OBJDUMP])
 3475 AC_CACHE_CHECK([how to recognize dependent libraries],
 3476 lt_cv_deplibs_check_method,
 3477 [lt_cv_file_magic_cmd='$MAGIC_CMD'
 3478 lt_cv_file_magic_test_file=
 3479 lt_cv_deplibs_check_method='unknown'
 3480 # Need to set the preceding variable on all platforms that support
 3481 # interlibrary dependencies.
 3482 # 'none' -- dependencies not supported.
 3483 # 'unknown' -- same as none, but documents that we really don't know.
 3484 # 'pass_all' -- all dependencies passed with no checks.
 3485 # 'test_compile' -- check by making test program.
 3486 # 'file_magic [[regex]]' -- check by looking for files in library path
 3487 # that responds to the $file_magic_cmd with a given extended regex.
 3488 # If you have 'file' or equivalent on your system and you're not sure
 3489 # whether 'pass_all' will *always* work, you probably want this one.
 3490 
 3491 case $host_os in
 3492 aix[[4-9]]*)
 3493   lt_cv_deplibs_check_method=pass_all
 3494   ;;
 3495 
 3496 beos*)
 3497   lt_cv_deplibs_check_method=pass_all
 3498   ;;
 3499 
 3500 bsdi[[45]]*)
 3501   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 3502   lt_cv_file_magic_cmd='$FILECMD -L'
 3503   lt_cv_file_magic_test_file=/shlib/libc.so
 3504   ;;
 3505 
 3506 cygwin*)
 3507   # func_win32_libid is a shell function defined in ltmain.sh
 3508   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3509   lt_cv_file_magic_cmd='func_win32_libid'
 3510   ;;
 3511 
 3512 mingw* | pw32*)
 3513   # Base MSYS/MinGW do not provide the 'file' command needed by
 3514   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 3515   # unless we find 'file', for example because we are cross-compiling.
 3516   if ( file / ) >/dev/null 2>&1; then
 3517     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3518     lt_cv_file_magic_cmd='func_win32_libid'
 3519   else
 3520     # Keep this pattern in sync with the one in func_win32_libid.
 3521     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 3522     lt_cv_file_magic_cmd='$OBJDUMP -f'
 3523   fi
 3524   ;;
 3525 
 3526 cegcc*)
 3527   # use the weaker test based on 'objdump'. See mingw*.
 3528   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 3529   lt_cv_file_magic_cmd='$OBJDUMP -f'
 3530   ;;
 3531 
 3532 darwin* | rhapsody*)
 3533   lt_cv_deplibs_check_method=pass_all
 3534   ;;
 3535 
 3536 freebsd* | dragonfly* | midnightbsd*)
 3537   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3538     case $host_cpu in
 3539     i*86 )
 3540       # Not sure whether the presence of OpenBSD here was a mistake.
 3541       # Let's accept both of them until this is cleared up.
 3542       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 3543       lt_cv_file_magic_cmd=$FILECMD
 3544       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 3545       ;;
 3546     esac
 3547   else
 3548     lt_cv_deplibs_check_method=pass_all
 3549   fi
 3550   ;;
 3551 
 3552 haiku*)
 3553   lt_cv_deplibs_check_method=pass_all
 3554   ;;
 3555 
 3556 hpux10.20* | hpux11*)
 3557   lt_cv_file_magic_cmd=$FILECMD
 3558   case $host_cpu in
 3559   ia64*)
 3560     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 3561     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 3562     ;;
 3563   hppa*64*)
 3564     [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]']
 3565     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 3566     ;;
 3567   *)
 3568     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 3569     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 3570     ;;
 3571   esac
 3572   ;;
 3573 
 3574 interix[[3-9]]*)
 3575   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 3576   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 3577   ;;
 3578 
 3579 irix5* | irix6* | nonstopux*)
 3580   case $LD in
 3581   *-32|*"-32 ") libmagic=32-bit;;
 3582   *-n32|*"-n32 ") libmagic=N32;;
 3583   *-64|*"-64 ") libmagic=64-bit;;
 3584   *) libmagic=never-match;;
 3585   esac
 3586   lt_cv_deplibs_check_method=pass_all
 3587   ;;
 3588 
 3589 # This must be glibc/ELF.
 3590 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 3591   lt_cv_deplibs_check_method=pass_all
 3592   ;;
 3593 
 3594 netbsd* | netbsdelf*-gnu)
 3595   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3596     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3597   else
 3598     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 3599   fi
 3600   ;;
 3601 
 3602 newos6*)
 3603   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 3604   lt_cv_file_magic_cmd=$FILECMD
 3605   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 3606   ;;
 3607 
 3608 *nto* | *qnx*)
 3609   lt_cv_deplibs_check_method=pass_all
 3610   ;;
 3611 
 3612 openbsd* | bitrig*)
 3613   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 3614     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 3615   else
 3616     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3617   fi
 3618   ;;
 3619 
 3620 osf3* | osf4* | osf5*)
 3621   lt_cv_deplibs_check_method=pass_all
 3622   ;;
 3623 
 3624 rdos*)
 3625   lt_cv_deplibs_check_method=pass_all
 3626   ;;
 3627 
 3628 solaris*)
 3629   lt_cv_deplibs_check_method=pass_all
 3630   ;;
 3631 
 3632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3633   lt_cv_deplibs_check_method=pass_all
 3634   ;;
 3635 
 3636 sysv4 | sysv4.3*)
 3637   case $host_vendor in
 3638   motorola)
 3639     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]]'
 3640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 3641     ;;
 3642   ncr)
 3643     lt_cv_deplibs_check_method=pass_all
 3644     ;;
 3645   sequent)
 3646     lt_cv_file_magic_cmd='/bin/file'
 3647     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 3648     ;;
 3649   sni)
 3650     lt_cv_file_magic_cmd='/bin/file'
 3651     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 3652     lt_cv_file_magic_test_file=/lib/libc.so
 3653     ;;
 3654   siemens)
 3655     lt_cv_deplibs_check_method=pass_all
 3656     ;;
 3657   pc)
 3658     lt_cv_deplibs_check_method=pass_all
 3659     ;;
 3660   esac
 3661   ;;
 3662 
 3663 tpf*)
 3664   lt_cv_deplibs_check_method=pass_all
 3665   ;;
 3666 os2*)
 3667   lt_cv_deplibs_check_method=pass_all
 3668   ;;
 3669 esac
 3670 ])
 3671 
 3672 file_magic_glob=
 3673 want_nocaseglob=no
 3674 if test "$build" = "$host"; then
 3675   case $host_os in
 3676   mingw* | pw32*)
 3677     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 3678       want_nocaseglob=yes
 3679     else
 3680       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 3681     fi
 3682     ;;
 3683   esac
 3684 fi
 3685 
 3686 file_magic_cmd=$lt_cv_file_magic_cmd
 3687 deplibs_check_method=$lt_cv_deplibs_check_method
 3688 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 3689 
 3690 _LT_DECL([], [deplibs_check_method], [1],
 3691     [Method to check whether dependent libraries are shared objects])
 3692 _LT_DECL([], [file_magic_cmd], [1],
 3693     [Command to use when deplibs_check_method = "file_magic"])
 3694 _LT_DECL([], [file_magic_glob], [1],
 3695     [How to find potential files when deplibs_check_method = "file_magic"])
 3696 _LT_DECL([], [want_nocaseglob], [1],
 3697     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 3698 ])# _LT_CHECK_MAGIC_METHOD
 3699 
 3700 
 3701 # LT_PATH_NM
 3702 # ----------
 3703 # find the pathname to a BSD- or MS-compatible name lister
 3704 AC_DEFUN([LT_PATH_NM],
 3705 [AC_REQUIRE([AC_PROG_CC])dnl
 3706 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 3707 [if test -n "$NM"; then
 3708   # Let the user override the test.
 3709   lt_cv_path_NM=$NM
 3710 else
 3711   lt_nm_to_check=${ac_tool_prefix}nm
 3712   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 3713     lt_nm_to_check="$lt_nm_to_check nm"
 3714   fi
 3715   for lt_tmp_nm in $lt_nm_to_check; do
 3716     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3717     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 3718       IFS=$lt_save_ifs
 3719       test -z "$ac_dir" && ac_dir=.
 3720       tmp_nm=$ac_dir/$lt_tmp_nm
 3721       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 3722 	# Check to see if the nm accepts a BSD-compat flag.
 3723 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 3724 	#   nm: unknown option "B" ignored
 3725 	# Tru64's nm complains that /dev/null is an invalid object file
 3726 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 3727 	case $build_os in
 3728 	mingw*) lt_bad_file=conftest.nm/nofile ;;
 3729 	*) lt_bad_file=/dev/null ;;
 3730 	esac
 3731 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
 3732 	*$lt_bad_file* | *'Invalid file or object type'*)
 3733 	  lt_cv_path_NM="$tmp_nm -B"
 3734 	  break 2
 3735 	  ;;
 3736 	*)
 3737 	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
 3738 	  */dev/null*)
 3739 	    lt_cv_path_NM="$tmp_nm -p"
 3740 	    break 2
 3741 	    ;;
 3742 	  *)
 3743 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 3744 	    continue # so that we can try to find one that supports BSD flags
 3745 	    ;;
 3746 	  esac
 3747 	  ;;
 3748 	esac
 3749       fi
 3750     done
 3751     IFS=$lt_save_ifs
 3752   done
 3753   : ${lt_cv_path_NM=no}
 3754 fi])
 3755 if test no != "$lt_cv_path_NM"; then
 3756   NM=$lt_cv_path_NM
 3757 else
 3758   # Didn't find any BSD compatible name lister, look for dumpbin.
 3759   if test -n "$DUMPBIN"; then :
 3760     # Let the user override the test.
 3761   else
 3762     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 3763     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
 3764     *COFF*)
 3765       DUMPBIN="$DUMPBIN -symbols -headers"
 3766       ;;
 3767     *)
 3768       DUMPBIN=:
 3769       ;;
 3770     esac
 3771   fi
 3772   AC_SUBST([DUMPBIN])
 3773   if test : != "$DUMPBIN"; then
 3774     NM=$DUMPBIN
 3775   fi
 3776 fi
 3777 test -z "$NM" && NM=nm
 3778 AC_SUBST([NM])
 3779 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 3780 
 3781 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 3782   [lt_cv_nm_interface="BSD nm"
 3783   echo "int some_variable = 0;" > conftest.$ac_ext
 3784   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 3785   (eval "$ac_compile" 2>conftest.err)
 3786   cat conftest.err >&AS_MESSAGE_LOG_FD
 3787   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 3788   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 3789   cat conftest.err >&AS_MESSAGE_LOG_FD
 3790   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 3791   cat conftest.out >&AS_MESSAGE_LOG_FD
 3792   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 3793     lt_cv_nm_interface="MS dumpbin"
 3794   fi
 3795   rm -f conftest*])
 3796 ])# LT_PATH_NM
 3797 
 3798 # Old names:
 3799 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 3800 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 3801 dnl aclocal-1.4 backwards compatibility:
 3802 dnl AC_DEFUN([AM_PROG_NM], [])
 3803 dnl AC_DEFUN([AC_PROG_NM], [])
 3804 
 3805 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3806 # --------------------------------
 3807 # how to determine the name of the shared library
 3808 # associated with a specific link library.
 3809 #  -- PORTME fill in with the dynamic library characteristics
 3810 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 3811 [m4_require([_LT_DECL_EGREP])
 3812 m4_require([_LT_DECL_OBJDUMP])
 3813 m4_require([_LT_DECL_DLLTOOL])
 3814 AC_CACHE_CHECK([how to associate runtime and link libraries],
 3815 lt_cv_sharedlib_from_linklib_cmd,
 3816 [lt_cv_sharedlib_from_linklib_cmd='unknown'
 3817 
 3818 case $host_os in
 3819 cygwin* | mingw* | pw32* | cegcc*)
 3820   # two different shell functions defined in ltmain.sh;
 3821   # decide which one to use based on capabilities of $DLLTOOL
 3822   case `$DLLTOOL --help 2>&1` in
 3823   *--identify-strict*)
 3824     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 3825     ;;
 3826   *)
 3827     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 3828     ;;
 3829   esac
 3830   ;;
 3831 *)
 3832   # fallback: assume linklib IS sharedlib
 3833   lt_cv_sharedlib_from_linklib_cmd=$ECHO
 3834   ;;
 3835 esac
 3836 ])
 3837 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 3838 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 3839 
 3840 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 3841     [Command to associate shared and link libraries])
 3842 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3843 
 3844 
 3845 # _LT_PATH_MANIFEST_TOOL
 3846 # ----------------------
 3847 # locate the manifest tool
 3848 m4_defun([_LT_PATH_MANIFEST_TOOL],
 3849 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 3850 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 3851 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 3852   [lt_cv_path_mainfest_tool=no
 3853   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 3854   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 3855   cat conftest.err >&AS_MESSAGE_LOG_FD
 3856   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 3857     lt_cv_path_mainfest_tool=yes
 3858   fi
 3859   rm -f conftest*])
 3860 if test yes != "$lt_cv_path_mainfest_tool"; then
 3861   MANIFEST_TOOL=:
 3862 fi
 3863 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 3864 ])# _LT_PATH_MANIFEST_TOOL
 3865 
 3866 
 3867 # _LT_DLL_DEF_P([FILE])
 3868 # ---------------------
 3869 # True iff FILE is a Windows DLL '.def' file.
 3870 # Keep in sync with func_dll_def_p in the libtool script
 3871 AC_DEFUN([_LT_DLL_DEF_P],
 3872 [dnl
 3873   test DEF = "`$SED -n dnl
 3874     -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
 3875     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
 3876     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
 3877     -e q dnl                          Only consider the first "real" line
 3878     $1`" dnl
 3879 ])# _LT_DLL_DEF_P
 3880 
 3881 
 3882 # LT_LIB_M
 3883 # --------
 3884 # check for math library
 3885 AC_DEFUN([LT_LIB_M],
 3886 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3887 LIBM=
 3888 case $host in
 3889 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 3890   # These system don't have libm, or don't need it
 3891   ;;
 3892 *-ncr-sysv4.3*)
 3893   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
 3894   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 3895   ;;
 3896 *)
 3897   AC_CHECK_LIB(m, cos, LIBM=-lm)
 3898   ;;
 3899 esac
 3900 AC_SUBST([LIBM])
 3901 ])# LT_LIB_M
 3902 
 3903 # Old name:
 3904 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 3905 dnl aclocal-1.4 backwards compatibility:
 3906 dnl AC_DEFUN([AC_CHECK_LIBM], [])
 3907 
 3908 
 3909 # _LT_COMPILER_NO_RTTI([TAGNAME])
 3910 # -------------------------------
 3911 m4_defun([_LT_COMPILER_NO_RTTI],
 3912 [m4_require([_LT_TAG_COMPILER])dnl
 3913 
 3914 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 3915 
 3916 if test yes = "$GCC"; then
 3917   case $cc_basename in
 3918   nvcc*)
 3919     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 3920   *)
 3921     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 3922   esac
 3923 
 3924   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 3925     lt_cv_prog_compiler_rtti_exceptions,
 3926     [-fno-rtti -fno-exceptions], [],
 3927     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 3928 fi
 3929 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 3930 	[Compiler flag to turn off builtin functions])
 3931 ])# _LT_COMPILER_NO_RTTI
 3932 
 3933 
 3934 # _LT_CMD_GLOBAL_SYMBOLS
 3935 # ----------------------
 3936 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 3937 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3938 AC_REQUIRE([AC_PROG_CC])dnl
 3939 AC_REQUIRE([AC_PROG_AWK])dnl
 3940 AC_REQUIRE([LT_PATH_NM])dnl
 3941 AC_REQUIRE([LT_PATH_LD])dnl
 3942 m4_require([_LT_DECL_SED])dnl
 3943 m4_require([_LT_DECL_EGREP])dnl
 3944 m4_require([_LT_TAG_COMPILER])dnl
 3945 
 3946 # Check for command to grab the raw symbol name followed by C symbol from nm.
 3947 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 3948 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 3949 [
 3950 # These are sane defaults that work on at least a few old systems.
 3951 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 3952 
 3953 # Character class describing NM global symbol codes.
 3954 symcode='[[BCDEGRST]]'
 3955 
 3956 # Regexp to match symbols that can be accessed directly from C.
 3957 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 3958 
 3959 # Define system-specific variables.
 3960 case $host_os in
 3961 aix*)
 3962   symcode='[[BCDT]]'
 3963   ;;
 3964 cygwin* | mingw* | pw32* | cegcc*)
 3965   symcode='[[ABCDGISTW]]'
 3966   ;;
 3967 hpux*)
 3968   if test ia64 = "$host_cpu"; then
 3969     symcode='[[ABCDEGRST]]'
 3970   fi
 3971   ;;
 3972 irix* | nonstopux*)
 3973   symcode='[[BCDEGRST]]'
 3974   ;;
 3975 osf*)
 3976   symcode='[[BCDEGQRST]]'
 3977   ;;
 3978 solaris*)
 3979   symcode='[[BDRT]]'
 3980   ;;
 3981 sco3.2v5*)
 3982   symcode='[[DT]]'
 3983   ;;
 3984 sysv4.2uw2*)
 3985   symcode='[[DT]]'
 3986   ;;
 3987 sysv5* | sco5v6* | unixware* | OpenUNIX*)
 3988   symcode='[[ABDT]]'
 3989   ;;
 3990 sysv4)
 3991   symcode='[[DFNSTU]]'
 3992   ;;
 3993 esac
 3994 
 3995 # If we're using GNU nm, then use its standard symbol codes.
 3996 case `$NM -V 2>&1` in
 3997 *GNU* | *'with BFD'*)
 3998   symcode='[[ABCDGIRSTW]]' ;;
 3999 esac
 4000 
 4001 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4002   # Gets list of data symbols to import.
 4003   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
 4004   # Adjust the below global symbol transforms to fixup imported variables.
 4005   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 4006   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 4007   lt_c_name_lib_hook="\
 4008   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 4009   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 4010 else
 4011   # Disable hooks by default.
 4012   lt_cv_sys_global_symbol_to_import=
 4013   lt_cdecl_hook=
 4014   lt_c_name_hook=
 4015   lt_c_name_lib_hook=
 4016 fi
 4017 
 4018 # Transform an extracted symbol line into a proper C declaration.
 4019 # Some systems (esp. on ia64) link data and code symbols differently,
 4020 # so use this general approach.
 4021 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
 4022 $lt_cdecl_hook\
 4023 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 4024 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 4025 
 4026 # Transform an extracted symbol line into symbol name and symbol address
 4027 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
 4028 $lt_c_name_hook\
 4029 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4030 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 4031 
 4032 # Transform an extracted symbol line into symbol name with lib prefix and
 4033 # symbol address.
 4034 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
 4035 $lt_c_name_lib_hook\
 4036 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4037 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 4038 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 4039 
 4040 # Handle CRLF in mingw tool chain
 4041 opt_cr=
 4042 case $build_os in
 4043 mingw*)
 4044   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 4045   ;;
 4046 esac
 4047 
 4048 # Try without a prefix underscore, then with it.
 4049 for ac_symprfx in "" "_"; do
 4050 
 4051   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 4052   symxfrm="\\1 $ac_symprfx\\2 \\2"
 4053 
 4054   # Write the raw and C identifiers.
 4055   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4056     # Fake it for dumpbin and say T for any non-static function,
 4057     # D for any global variable and I for any imported variable.
 4058     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
 4059     # which start with @ or ?.
 4060     lt_cv_sys_global_symbol_pipe="$AWK ['"\
 4061 "     {last_section=section; section=\$ 3};"\
 4062 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 4063 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 4064 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 4065 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 4066 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 4067 "     \$ 0!~/External *\|/{next};"\
 4068 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 4069 "     {if(hide[section]) next};"\
 4070 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 4071 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 4072 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 4073 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 4074 "     ' prfx=^$ac_symprfx]"
 4075   else
 4076     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 4077   fi
 4078   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
 4079 
 4080   # Check to see that the pipe works correctly.
 4081   pipe_works=no
 4082 
 4083   rm -f conftest*
 4084   cat > conftest.$ac_ext <<_LT_EOF
 4085 #ifdef __cplusplus
 4086 extern "C" {
 4087 #endif
 4088 char nm_test_var;
 4089 void nm_test_func(void);
 4090 void nm_test_func(void){}
 4091 #ifdef __cplusplus
 4092 }
 4093 #endif
 4094 int main(){nm_test_var='a';nm_test_func();return(0);}
 4095 _LT_EOF
 4096 
 4097   if AC_TRY_EVAL(ac_compile); then
 4098     # Now try to grab the symbols.
 4099     nlist=conftest.nm
 4100     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
 4101     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
 4102       # Try sorting and uniquifying the output.
 4103       if sort "$nlist" | uniq > "$nlist"T; then
 4104 	mv -f "$nlist"T "$nlist"
 4105       else
 4106 	rm -f "$nlist"T
 4107       fi
 4108 
 4109       # Make sure that we snagged all the symbols we need.
 4110       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 4111 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 4112 	  cat <<_LT_EOF > conftest.$ac_ext
 4113 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 4114 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 4115 /* DATA imports from DLLs on WIN32 can't be const, because runtime
 4116    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 4117 # define LT@&t@_DLSYM_CONST
 4118 #elif defined __osf__
 4119 /* This system does not cope well with relocations in const data.  */
 4120 # define LT@&t@_DLSYM_CONST
 4121 #else
 4122 # define LT@&t@_DLSYM_CONST const
 4123 #endif
 4124 
 4125 #ifdef __cplusplus
 4126 extern "C" {
 4127 #endif
 4128 
 4129 _LT_EOF
 4130 	  # Now generate the symbol file.
 4131 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 4132 
 4133 	  cat <<_LT_EOF >> conftest.$ac_ext
 4134 
 4135 /* The mapping between symbol names and symbols.  */
 4136 LT@&t@_DLSYM_CONST struct {
 4137   const char *name;
 4138   void       *address;
 4139 }
 4140 lt__PROGRAM__LTX_preloaded_symbols[[]] =
 4141 {
 4142   { "@PROGRAM@", (void *) 0 },
 4143 _LT_EOF
 4144 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 4145 	  cat <<\_LT_EOF >> conftest.$ac_ext
 4146   {0, (void *) 0}
 4147 };
 4148 
 4149 /* This works around a problem in FreeBSD linker */
 4150 #ifdef FREEBSD_WORKAROUND
 4151 static const void *lt_preloaded_setup() {
 4152   return lt__PROGRAM__LTX_preloaded_symbols;
 4153 }
 4154 #endif
 4155 
 4156 #ifdef __cplusplus
 4157 }
 4158 #endif
 4159 _LT_EOF
 4160 	  # Now try linking the two files.
 4161 	  mv conftest.$ac_objext conftstm.$ac_objext
 4162 	  lt_globsym_save_LIBS=$LIBS
 4163 	  lt_globsym_save_CFLAGS=$CFLAGS
 4164 	  LIBS=conftstm.$ac_objext
 4165 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 4166 	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
 4167 	    pipe_works=yes
 4168 	  fi
 4169 	  LIBS=$lt_globsym_save_LIBS
 4170 	  CFLAGS=$lt_globsym_save_CFLAGS
 4171 	else
 4172 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 4173 	fi
 4174       else
 4175 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 4176       fi
 4177     else
 4178       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 4179     fi
 4180   else
 4181     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 4182     cat conftest.$ac_ext >&5
 4183   fi
 4184   rm -rf conftest* conftst*
 4185 
 4186   # Do not use the global_symbol_pipe unless it works.
 4187   if test yes = "$pipe_works"; then
 4188     break
 4189   else
 4190     lt_cv_sys_global_symbol_pipe=
 4191   fi
 4192 done
 4193 ])
 4194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 4195   lt_cv_sys_global_symbol_to_cdecl=
 4196 fi
 4197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 4198   AC_MSG_RESULT(failed)
 4199 else
 4200   AC_MSG_RESULT(ok)
 4201 fi
 4202 
 4203 # Response file support.
 4204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4205   nm_file_list_spec='@'
 4206 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 4207   nm_file_list_spec='@'
 4208 fi
 4209 
 4210 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 4211     [Take the output of nm and produce a listing of raw symbols and C names])
 4212 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 4213     [Transform the output of nm in a proper C declaration])
 4214 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
 4215     [Transform the output of nm into a list of symbols to manually relocate])
 4216 _LT_DECL([global_symbol_to_c_name_address],
 4217     [lt_cv_sys_global_symbol_to_c_name_address], [1],
 4218     [Transform the output of nm in a C name address pair])
 4219 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 4220     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 4221     [Transform the output of nm in a C name address pair when lib prefix is needed])
 4222 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
 4223     [The name lister interface])
 4224 _LT_DECL([], [nm_file_list_spec], [1],
 4225     [Specify filename containing input files for $NM])
 4226 ]) # _LT_CMD_GLOBAL_SYMBOLS
 4227 
 4228 
 4229 # _LT_COMPILER_PIC([TAGNAME])
 4230 # ---------------------------
 4231 m4_defun([_LT_COMPILER_PIC],
 4232 [m4_require([_LT_TAG_COMPILER])dnl
 4233 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
 4234 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4235 _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4236 
 4237 m4_if([$1], [CXX], [
 4238   # C++ specific cases for pic, static, wl, etc.
 4239   if test yes = "$GXX"; then
 4240     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4241     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4242 
 4243     case $host_os in
 4244     aix*)
 4245       # All AIX code is PIC.
 4246       if test ia64 = "$host_cpu"; then
 4247 	# AIX 5 now supports IA64 processor
 4248 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4249       fi
 4250       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4251       ;;
 4252 
 4253     amigaos*)
 4254       case $host_cpu in
 4255       powerpc)
 4256             # see comment about AmigaOS4 .so support
 4257             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4258         ;;
 4259       m68k)
 4260             # FIXME: we need at least 68020 code to build shared libraries, but
 4261             # adding the '-m68020' flag to GCC prevents building anything better,
 4262             # like '-m68040'.
 4263             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4264         ;;
 4265       esac
 4266       ;;
 4267 
 4268     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4269       # PIC is the default for these OSes.
 4270       ;;
 4271     mingw* | cygwin* | os2* | pw32* | cegcc*)
 4272       # This hack is so that the source file can tell whether it is being
 4273       # built for inclusion in a dll (and should export symbols for example).
 4274       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4275       # (--disable-auto-import) libraries
 4276       m4_if([$1], [GCJ], [],
 4277 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4278       case $host_os in
 4279       os2*)
 4280 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4281 	;;
 4282       esac
 4283       ;;
 4284     darwin* | rhapsody*)
 4285       # PIC is the default on this platform
 4286       # Common symbols not allowed in MH_DYLIB files
 4287       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4288       ;;
 4289     *djgpp*)
 4290       # DJGPP does not support shared libraries at all
 4291       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4292       ;;
 4293     haiku*)
 4294       # PIC is the default for Haiku.
 4295       # The "-static" flag exists, but is broken.
 4296       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4297       ;;
 4298     interix[[3-9]]*)
 4299       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4300       # Instead, we relocate shared libraries at runtime.
 4301       ;;
 4302     sysv4*MP*)
 4303       if test -d /usr/nec; then
 4304 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4305       fi
 4306       ;;
 4307     hpux*)
 4308       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4309       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4310       # sets the default TLS model and affects inlining.
 4311       case $host_cpu in
 4312       hppa*64*)
 4313 	;;
 4314       *)
 4315 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4316 	;;
 4317       esac
 4318       ;;
 4319     *qnx* | *nto*)
 4320       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4321       # it will coredump.
 4322       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4323       ;;
 4324     *)
 4325       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4326       ;;
 4327     esac
 4328   else
 4329     case $host_os in
 4330       aix[[4-9]]*)
 4331 	# All AIX code is PIC.
 4332 	if test ia64 = "$host_cpu"; then
 4333 	  # AIX 5 now supports IA64 processor
 4334 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4335 	else
 4336 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4337 	fi
 4338 	;;
 4339       chorus*)
 4340 	case $cc_basename in
 4341 	cxch68*)
 4342 	  # Green Hills C++ Compiler
 4343 	  # _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"
 4344 	  ;;
 4345 	esac
 4346 	;;
 4347       mingw* | cygwin* | os2* | pw32* | cegcc*)
 4348 	# This hack is so that the source file can tell whether it is being
 4349 	# built for inclusion in a dll (and should export symbols for example).
 4350 	m4_if([$1], [GCJ], [],
 4351 	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4352 	;;
 4353       dgux*)
 4354 	case $cc_basename in
 4355 	  ec++*)
 4356 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4357 	    ;;
 4358 	  ghcx*)
 4359 	    # Green Hills C++ Compiler
 4360 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4361 	    ;;
 4362 	  *)
 4363 	    ;;
 4364 	esac
 4365 	;;
 4366       freebsd* | dragonfly* | midnightbsd*)
 4367 	# FreeBSD uses GNU C++
 4368 	;;
 4369       hpux9* | hpux10* | hpux11*)
 4370 	case $cc_basename in
 4371 	  CC*)
 4372 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4373 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4374 	    if test ia64 != "$host_cpu"; then
 4375 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4376 	    fi
 4377 	    ;;
 4378 	  aCC*)
 4379 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4380 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4381 	    case $host_cpu in
 4382 	    hppa*64*|ia64*)
 4383 	      # +Z the default
 4384 	      ;;
 4385 	    *)
 4386 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4387 	      ;;
 4388 	    esac
 4389 	    ;;
 4390 	  *)
 4391 	    ;;
 4392 	esac
 4393 	;;
 4394       interix*)
 4395 	# This is c89, which is MS Visual C++ (no shared libs)
 4396 	# Anyone wants to do a port?
 4397 	;;
 4398       irix5* | irix6* | nonstopux*)
 4399 	case $cc_basename in
 4400 	  CC*)
 4401 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4402 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4403 	    # CC pic flag -KPIC is the default.
 4404 	    ;;
 4405 	  *)
 4406 	    ;;
 4407 	esac
 4408 	;;
 4409       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4410 	case $cc_basename in
 4411 	  KCC*)
 4412 	    # KAI C++ Compiler
 4413 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4414 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4415 	    ;;
 4416 	  ecpc* )
 4417 	    # old Intel C++ for x86_64, which still supported -KPIC.
 4418 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4419 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4420 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4421 	    ;;
 4422 	  icpc* )
 4423 	    # Intel C++, used to be incompatible with GCC.
 4424 	    # ICC 10 doesn't accept -KPIC any more.
 4425 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4426 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4427 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4428 	    ;;
 4429 	  pgCC* | pgcpp*)
 4430 	    # Portland Group C++ compiler
 4431 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4432 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4433 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4434 	    ;;
 4435 	  cxx*)
 4436 	    # Compaq C++
 4437 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4438 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4439 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4440 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4441 	    ;;
 4442 	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 4443 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
 4444 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4445 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4446 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4447 	    ;;
 4448 	  *)
 4449 	    case `$CC -V 2>&1 | $SED 5q` in
 4450 	    *Sun\ C*)
 4451 	      # Sun C++ 5.9
 4452 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4453 	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4454 	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4455 	      ;;
 4456 	    esac
 4457 	    ;;
 4458 	esac
 4459 	;;
 4460       lynxos*)
 4461 	;;
 4462       m88k*)
 4463 	;;
 4464       mvs*)
 4465 	case $cc_basename in
 4466 	  cxx*)
 4467 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 4468 	    ;;
 4469 	  *)
 4470 	    ;;
 4471 	esac
 4472 	;;
 4473       netbsd* | netbsdelf*-gnu)
 4474 	;;
 4475       *qnx* | *nto*)
 4476         # QNX uses GNU C++, but need to define -shared option too, otherwise
 4477         # it will coredump.
 4478         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4479         ;;
 4480       osf3* | osf4* | osf5*)
 4481 	case $cc_basename in
 4482 	  KCC*)
 4483 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4484 	    ;;
 4485 	  RCC*)
 4486 	    # Rational C++ 2.4.1
 4487 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4488 	    ;;
 4489 	  cxx*)
 4490 	    # Digital/Compaq C++
 4491 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4492 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4493 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4494 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4495 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4496 	    ;;
 4497 	  *)
 4498 	    ;;
 4499 	esac
 4500 	;;
 4501       psos*)
 4502 	;;
 4503       solaris*)
 4504 	case $cc_basename in
 4505 	  CC* | sunCC*)
 4506 	    # Sun C++ 4.2, 5.x and Centerline C++
 4507 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4508 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4509 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4510 	    ;;
 4511 	  gcx*)
 4512 	    # Green Hills C++ Compiler
 4513 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4514 	    ;;
 4515 	  *)
 4516 	    ;;
 4517 	esac
 4518 	;;
 4519       sunos4*)
 4520 	case $cc_basename in
 4521 	  CC*)
 4522 	    # Sun C++ 4.x
 4523 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4524 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4525 	    ;;
 4526 	  lcc*)
 4527 	    # Lucid
 4528 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4529 	    ;;
 4530 	  *)
 4531 	    ;;
 4532 	esac
 4533 	;;
 4534       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4535 	case $cc_basename in
 4536 	  CC*)
 4537 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4538 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4539 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4540 	    ;;
 4541 	esac
 4542 	;;
 4543       tandem*)
 4544 	case $cc_basename in
 4545 	  NCC*)
 4546 	    # NonStop-UX NCC 3.20
 4547 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4548 	    ;;
 4549 	  *)
 4550 	    ;;
 4551 	esac
 4552 	;;
 4553       vxworks*)
 4554 	;;
 4555       *)
 4556 	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4557 	;;
 4558     esac
 4559   fi
 4560 ],
 4561 [
 4562   if test yes = "$GCC"; then
 4563     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4564     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4565 
 4566     case $host_os in
 4567       aix*)
 4568       # All AIX code is PIC.
 4569       if test ia64 = "$host_cpu"; then
 4570 	# AIX 5 now supports IA64 processor
 4571 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4572       fi
 4573       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4574       ;;
 4575 
 4576     amigaos*)
 4577       case $host_cpu in
 4578       powerpc)
 4579             # see comment about AmigaOS4 .so support
 4580             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4581         ;;
 4582       m68k)
 4583             # FIXME: we need at least 68020 code to build shared libraries, but
 4584             # adding the '-m68020' flag to GCC prevents building anything better,
 4585             # like '-m68040'.
 4586             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4587         ;;
 4588       esac
 4589       ;;
 4590 
 4591     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4592       # PIC is the default for these OSes.
 4593       ;;
 4594 
 4595     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4596       # This hack is so that the source file can tell whether it is being
 4597       # built for inclusion in a dll (and should export symbols for example).
 4598       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4599       # (--disable-auto-import) libraries
 4600       m4_if([$1], [GCJ], [],
 4601 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4602       case $host_os in
 4603       os2*)
 4604 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4605 	;;
 4606       esac
 4607       ;;
 4608 
 4609     darwin* | rhapsody*)
 4610       # PIC is the default on this platform
 4611       # Common symbols not allowed in MH_DYLIB files
 4612       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4613       ;;
 4614 
 4615     haiku*)
 4616       # PIC is the default for Haiku.
 4617       # The "-static" flag exists, but is broken.
 4618       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4619       ;;
 4620 
 4621     hpux*)
 4622       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4623       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4624       # sets the default TLS model and affects inlining.
 4625       case $host_cpu in
 4626       hppa*64*)
 4627 	# +Z the default
 4628 	;;
 4629       *)
 4630 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4631 	;;
 4632       esac
 4633       ;;
 4634 
 4635     interix[[3-9]]*)
 4636       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4637       # Instead, we relocate shared libraries at runtime.
 4638       ;;
 4639 
 4640     msdosdjgpp*)
 4641       # Just because we use GCC doesn't mean we suddenly get shared libraries
 4642       # on systems that don't support them.
 4643       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4644       enable_shared=no
 4645       ;;
 4646 
 4647     *nto* | *qnx*)
 4648       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4649       # it will coredump.
 4650       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4651       ;;
 4652 
 4653     sysv4*MP*)
 4654       if test -d /usr/nec; then
 4655 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4656       fi
 4657       ;;
 4658 
 4659     *)
 4660       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4661       ;;
 4662     esac
 4663 
 4664     case $cc_basename in
 4665     nvcc*) # Cuda Compiler Driver 2.2
 4666       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 4667       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4668         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 4669       fi
 4670       ;;
 4671     esac
 4672   else
 4673     # PORTME Check for flag to pass linker flags through the system compiler.
 4674     case $host_os in
 4675     aix*)
 4676       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4677       if test ia64 = "$host_cpu"; then
 4678 	# AIX 5 now supports IA64 processor
 4679 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4680       else
 4681 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4682       fi
 4683       ;;
 4684 
 4685     darwin* | rhapsody*)
 4686       # PIC is the default on this platform
 4687       # Common symbols not allowed in MH_DYLIB files
 4688       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4689       case $cc_basename in
 4690       nagfor*)
 4691         # NAG Fortran compiler
 4692         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4693         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4694         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4695         ;;
 4696       esac
 4697       ;;
 4698 
 4699     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4700       # This hack is so that the source file can tell whether it is being
 4701       # built for inclusion in a dll (and should export symbols for example).
 4702       m4_if([$1], [GCJ], [],
 4703 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4704       case $host_os in
 4705       os2*)
 4706 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4707 	;;
 4708       esac
 4709       ;;
 4710 
 4711     hpux9* | hpux10* | hpux11*)
 4712       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4713       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 4714       # not for PA HP-UX.
 4715       case $host_cpu in
 4716       hppa*64*|ia64*)
 4717 	# +Z the default
 4718 	;;
 4719       *)
 4720 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4721 	;;
 4722       esac
 4723       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 4724       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4725       ;;
 4726 
 4727     irix5* | irix6* | nonstopux*)
 4728       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4729       # PIC (with -KPIC) is the default.
 4730       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4731       ;;
 4732 
 4733     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4734       case $cc_basename in
 4735       # old Intel for x86_64, which still supported -KPIC.
 4736       ecc*)
 4737 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4738 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4739 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4740         ;;
 4741       # flang / f18. f95 an alias for gfortran or flang on Debian
 4742       flang* | f18* | f95*)
 4743 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4744 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4745 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4746         ;;
 4747       # icc used to be incompatible with GCC.
 4748       # ICC 10 doesn't accept -KPIC any more.
 4749       icc* | ifort*)
 4750 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4751 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4752 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4753         ;;
 4754       # Lahey Fortran 8.1.
 4755       lf95*)
 4756 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4757 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 4758 	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 4759 	;;
 4760       nagfor*)
 4761 	# NAG Fortran compiler
 4762 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4763 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4764 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4765 	;;
 4766       tcc*)
 4767 	# Fabrice Bellard et al's Tiny C Compiler
 4768 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4769 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4770 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4771 	;;
 4772       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 4773         # Portland Group compilers (*not* the Pentium gcc compiler,
 4774 	# which looks to be a dead project)
 4775 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4776 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4777 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4778         ;;
 4779       ccc*)
 4780         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4781         # All Alpha code is PIC.
 4782         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4783         ;;
 4784       xl* | bgxl* | bgf* | mpixl*)
 4785 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 4786 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4787 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4788 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4789 	;;
 4790       *)
 4791 	case `$CC -V 2>&1 | $SED 5q` in
 4792 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 4793 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
 4794 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4795 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4796 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 4797 	  ;;
 4798 	*Sun\ F* | *Sun*Fortran*)
 4799 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4800 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4801 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4802 	  ;;
 4803 	*Sun\ C*)
 4804 	  # Sun C 5.9
 4805 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4806 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4807 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4808 	  ;;
 4809         *Intel*\ [[CF]]*Compiler*)
 4810 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4811 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4812 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4813 	  ;;
 4814 	*Portland\ Group*)
 4815 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4816 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4817 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4818 	  ;;
 4819 	esac
 4820 	;;
 4821       esac
 4822       ;;
 4823 
 4824     newsos6)
 4825       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4826       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4827       ;;
 4828 
 4829     *nto* | *qnx*)
 4830       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4831       # it will coredump.
 4832       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4833       ;;
 4834 
 4835     osf3* | osf4* | osf5*)
 4836       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4837       # All OSF/1 code is PIC.
 4838       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4839       ;;
 4840 
 4841     rdos*)
 4842       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4843       ;;
 4844 
 4845     solaris*)
 4846       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4847       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4848       case $cc_basename in
 4849       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 4850 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 4851       *)
 4852 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 4853       esac
 4854       ;;
 4855 
 4856     sunos4*)
 4857       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4858       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4859       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4860       ;;
 4861 
 4862     sysv4 | sysv4.2uw2* | sysv4.3*)
 4863       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4864       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4865       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4866       ;;
 4867 
 4868     sysv4*MP*)
 4869       if test -d /usr/nec; then
 4870 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 4871 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4872       fi
 4873       ;;
 4874 
 4875     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4876       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4877       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4878       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4879       ;;
 4880 
 4881     unicos*)
 4882       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4883       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4884       ;;
 4885 
 4886     uts4*)
 4887       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4888       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4889       ;;
 4890 
 4891     *)
 4892       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4893       ;;
 4894     esac
 4895   fi
 4896 ])
 4897 case $host_os in
 4898   # For platforms that do not support PIC, -DPIC is meaningless:
 4899   *djgpp*)
 4900     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4901     ;;
 4902   *)
 4903     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 4904     ;;
 4905 esac
 4906 
 4907 AC_CACHE_CHECK([for $compiler option to produce PIC],
 4908   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 4909   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 4910 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 4911 
 4912 #
 4913 # Check to make sure the PIC flag actually works.
 4914 #
 4915 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4916   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 4917     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 4918     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 4919     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 4920      "" | " "*) ;;
 4921      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 4922      esac],
 4923     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4924      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 4925 fi
 4926 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 4927 	[Additional compiler flags for building library objects])
 4928 
 4929 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 4930 	[How to pass a linker flag through the compiler])
 4931 #
 4932 # Check to make sure the static flag actually works.
 4933 #
 4934 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 4935 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 4936   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 4937   $lt_tmp_static_flag,
 4938   [],
 4939   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 4940 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 4941 	[Compiler flag to prevent dynamic linking])
 4942 ])# _LT_COMPILER_PIC
 4943 
 4944 
 4945 # _LT_LINKER_SHLIBS([TAGNAME])
 4946 # ----------------------------
 4947 # See if the linker supports building shared libraries.
 4948 m4_defun([_LT_LINKER_SHLIBS],
 4949 [AC_REQUIRE([LT_PATH_LD])dnl
 4950 AC_REQUIRE([LT_PATH_NM])dnl
 4951 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 4952 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 4953 m4_require([_LT_DECL_EGREP])dnl
 4954 m4_require([_LT_DECL_SED])dnl
 4955 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 4956 m4_require([_LT_TAG_COMPILER])dnl
 4957 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 4958 m4_if([$1], [CXX], [
 4959   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 4960   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 4961   case $host_os in
 4962   aix[[4-9]]*)
 4963     # If we're using GNU nm, then we don't want the "-C" option.
 4964     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 4965     # Without the "-l" option, or with the "-B" option, AIX nm treats
 4966     # weak defined symbols like other global defined symbols, whereas
 4967     # GNU nm marks them as "W".
 4968     # While the 'weak' keyword is ignored in the Export File, we need
 4969     # it in the Import File for the 'aix-soname' feature, so we have
 4970     # to replace the "-B" option with "-P" for AIX nm.
 4971     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 4972       _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'
 4973     else
 4974       _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'
 4975     fi
 4976     ;;
 4977   pw32*)
 4978     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
 4979     ;;
 4980   cygwin* | mingw* | cegcc*)
 4981     case $cc_basename in
 4982     cl* | icl*)
 4983       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 4984       ;;
 4985     *)
 4986       _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'
 4987       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 4988       ;;
 4989     esac
 4990     ;;
 4991   linux* | k*bsd*-gnu | gnu*)
 4992     _LT_TAGVAR(link_all_deplibs, $1)=no
 4993     ;;
 4994   *)
 4995     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 4996     ;;
 4997   esac
 4998 ], [
 4999   runpath_var=
 5000   _LT_TAGVAR(allow_undefined_flag, $1)=
 5001   _LT_TAGVAR(always_export_symbols, $1)=no
 5002   _LT_TAGVAR(archive_cmds, $1)=
 5003   _LT_TAGVAR(archive_expsym_cmds, $1)=
 5004   _LT_TAGVAR(compiler_needs_object, $1)=no
 5005   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 5006   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 5007   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 5008   _LT_TAGVAR(hardcode_automatic, $1)=no
 5009   _LT_TAGVAR(hardcode_direct, $1)=no
 5010   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 5011   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 5012   _LT_TAGVAR(hardcode_libdir_separator, $1)=
 5013   _LT_TAGVAR(hardcode_minus_L, $1)=no
 5014   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 5015   _LT_TAGVAR(inherit_rpath, $1)=no
 5016   _LT_TAGVAR(link_all_deplibs, $1)=unknown
 5017   _LT_TAGVAR(module_cmds, $1)=
 5018   _LT_TAGVAR(module_expsym_cmds, $1)=
 5019   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 5020   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 5021   _LT_TAGVAR(thread_safe_flag_spec, $1)=
 5022   _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5023   # include_expsyms should be a list of space-separated symbols to be *always*
 5024   # included in the symbol list
 5025   _LT_TAGVAR(include_expsyms, $1)=
 5026   # exclude_expsyms can be an extended regexp of symbols to exclude
 5027   # it will be wrapped by ' (' and ')$', so one must not match beginning or
 5028   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 5029   # as well as any symbol that contains 'd'.
 5030   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 5031   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 5032   # platforms (ab)use it in PIC code, but their linkers get confused if
 5033   # the symbol is explicitly referenced.  Since portable code cannot
 5034   # rely on this symbol name, it's probably fine to never include it in
 5035   # preloaded symbol tables.
 5036   # Exclude shared library initialization/finalization symbols.
 5037 dnl Note also adjust exclude_expsyms for C++ above.
 5038   extract_expsyms_cmds=
 5039 
 5040   case $host_os in
 5041   cygwin* | mingw* | pw32* | cegcc*)
 5042     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
 5043     # When not using gcc, we currently assume that we are using
 5044     # Microsoft Visual C++ or Intel C++ Compiler.
 5045     if test yes != "$GCC"; then
 5046       with_gnu_ld=no
 5047     fi
 5048     ;;
 5049   interix*)
 5050     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
 5051     with_gnu_ld=yes
 5052     ;;
 5053   openbsd* | bitrig*)
 5054     with_gnu_ld=no
 5055     ;;
 5056   linux* | k*bsd*-gnu | gnu*)
 5057     _LT_TAGVAR(link_all_deplibs, $1)=no
 5058     ;;
 5059   esac
 5060 
 5061   _LT_TAGVAR(ld_shlibs, $1)=yes
 5062 
 5063   # On some targets, GNU ld is compatible enough with the native linker
 5064   # that we're better off using the native interface for both.
 5065   lt_use_gnu_ld_interface=no
 5066   if test yes = "$with_gnu_ld"; then
 5067     case $host_os in
 5068       aix*)
 5069 	# The AIX port of GNU ld has always aspired to compatibility
 5070 	# with the native linker.  However, as the warning in the GNU ld
 5071 	# block says, versions before 2.19.5* couldn't really create working
 5072 	# shared libraries, regardless of the interface used.
 5073 	case `$LD -v 2>&1` in
 5074 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 5075 	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 5076 	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 5077 	  *)
 5078 	    lt_use_gnu_ld_interface=yes
 5079 	    ;;
 5080 	esac
 5081 	;;
 5082       *)
 5083 	lt_use_gnu_ld_interface=yes
 5084 	;;
 5085     esac
 5086   fi
 5087 
 5088   if test yes = "$lt_use_gnu_ld_interface"; then
 5089     # If archive_cmds runs LD, not CC, wlarc should be empty
 5090     wlarc='$wl'
 5091 
 5092     # Set some defaults for GNU ld with shared library support. These
 5093     # are reset later if shared libraries are not supported. Putting them
 5094     # here allows them to be overridden if necessary.
 5095     runpath_var=LD_RUN_PATH
 5096     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5097     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 5098     # ancient GNU ld didn't support --whole-archive et. al.
 5099     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 5100       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 5101     else
 5102       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5103     fi
 5104     supports_anon_versioning=no
 5105     case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
 5106       *GNU\ gold*) supports_anon_versioning=yes ;;
 5107       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 5108       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 5109       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 5110       *\ 2.11.*) ;; # other 2.11 versions
 5111       *) supports_anon_versioning=yes ;;
 5112     esac
 5113 
 5114     # See if GNU ld supports shared libraries.
 5115     case $host_os in
 5116     aix[[3-9]]*)
 5117       # On AIX/PPC, the GNU linker is very broken
 5118       if test ia64 != "$host_cpu"; then
 5119 	_LT_TAGVAR(ld_shlibs, $1)=no
 5120 	cat <<_LT_EOF 1>&2
 5121 
 5122 *** Warning: the GNU linker, at least up to release 2.19, is reported
 5123 *** to be unable to reliably create shared libraries on AIX.
 5124 *** Therefore, libtool is disabling shared libraries support.  If you
 5125 *** really care for shared libraries, you may want to install binutils
 5126 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 5127 *** You will then need to restart the configuration process.
 5128 
 5129 _LT_EOF
 5130       fi
 5131       ;;
 5132 
 5133     amigaos*)
 5134       case $host_cpu in
 5135       powerpc)
 5136             # see comment about AmigaOS4 .so support
 5137             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5138             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5139         ;;
 5140       m68k)
 5141             _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)'
 5142             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5143             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5144         ;;
 5145       esac
 5146       ;;
 5147 
 5148     beos*)
 5149       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5150 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5151 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 5152 	# support --undefined.  This deserves some investigation.  FIXME
 5153 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5154       else
 5155 	_LT_TAGVAR(ld_shlibs, $1)=no
 5156       fi
 5157       ;;
 5158 
 5159     cygwin* | mingw* | pw32* | cegcc*)
 5160       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 5161       # as there is no search path for DLLs.
 5162       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5163       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 5164       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5165       _LT_TAGVAR(always_export_symbols, $1)=no
 5166       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5167       _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'
 5168       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 5169 
 5170       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 5171         _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'
 5172 	# If the export-symbols file already is a .def file, use it as
 5173 	# is; otherwise, prepend EXPORTS...
 5174 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5175           cp $export_symbols $output_objdir/$soname.def;
 5176         else
 5177           echo EXPORTS > $output_objdir/$soname.def;
 5178           cat $export_symbols >> $output_objdir/$soname.def;
 5179         fi~
 5180         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 5181       else
 5182 	_LT_TAGVAR(ld_shlibs, $1)=no
 5183       fi
 5184       ;;
 5185 
 5186     haiku*)
 5187       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5188       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5189       ;;
 5190 
 5191     os2*)
 5192       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5193       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5194       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5195       shrext_cmds=.dll
 5196       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5197 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5198 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5199 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5200 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5201 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5202 	emximp -o $lib $output_objdir/$libname.def'
 5203       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5204 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5205 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5206 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5207 	prefix_cmds="$SED"~
 5208 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5209 	  prefix_cmds="$prefix_cmds -e 1d";
 5210 	fi~
 5211 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5212 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5213 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5214 	emximp -o $lib $output_objdir/$libname.def'
 5215       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5216       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5217       _LT_TAGVAR(file_list_spec, $1)='@'
 5218       ;;
 5219 
 5220     interix[[3-9]]*)
 5221       _LT_TAGVAR(hardcode_direct, $1)=no
 5222       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5223       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5224       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5225       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 5226       # Instead, shared libraries are loaded at an image base (0x10000000 by
 5227       # default) and relocated if they conflict, which is a slow very memory
 5228       # consuming and fragmenting process.  To avoid this, we pick a random,
 5229       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 5230       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 5231       _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'
 5232       _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'
 5233       ;;
 5234 
 5235     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 5236       tmp_diet=no
 5237       if test linux-dietlibc = "$host_os"; then
 5238 	case $cc_basename in
 5239 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
 5240 	esac
 5241       fi
 5242       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 5243 	 && test no = "$tmp_diet"
 5244       then
 5245 	tmp_addflag=' $pic_flag'
 5246 	tmp_sharedflag='-shared'
 5247 	case $cc_basename,$host_cpu in
 5248         pgcc*)				# Portland Group C compiler
 5249 	  _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'
 5250 	  tmp_addflag=' $pic_flag'
 5251 	  ;;
 5252 	pgf77* | pgf90* | pgf95* | pgfortran*)
 5253 					# Portland Group f77 and f90 compilers
 5254 	  _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'
 5255 	  tmp_addflag=' $pic_flag -Mnomain' ;;
 5256 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
 5257 	  tmp_addflag=' -i_dynamic' ;;
 5258 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 5259 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
 5260 	ifc* | ifort*)			# Intel Fortran compiler
 5261 	  tmp_addflag=' -nofor_main' ;;
 5262 	lf95*)				# Lahey Fortran 8.1
 5263 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5264 	  tmp_sharedflag='--shared' ;;
 5265         nagfor*)                        # NAGFOR 5.3
 5266           tmp_sharedflag='-Wl,-shared' ;;
 5267 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 5268 	  tmp_sharedflag='-qmkshrobj'
 5269 	  tmp_addflag= ;;
 5270 	nvcc*)	# Cuda Compiler Driver 2.2
 5271 	  _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'
 5272 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5273 	  ;;
 5274 	esac
 5275 	case `$CC -V 2>&1 | $SED 5q` in
 5276 	*Sun\ C*)			# Sun C 5.9
 5277 	  _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'
 5278 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5279 	  tmp_sharedflag='-G' ;;
 5280 	*Sun\ F*)			# Sun Fortran 8.3
 5281 	  tmp_sharedflag='-G' ;;
 5282 	esac
 5283 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5284 
 5285         if test yes = "$supports_anon_versioning"; then
 5286           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5287             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5288             echo "local: *; };" >> $output_objdir/$libname.ver~
 5289             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 5290         fi
 5291 
 5292 	case $cc_basename in
 5293 	tcc*)
 5294 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5295 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
 5296 	  ;;
 5297 	xlf* | bgf* | bgxlf* | mpixlf*)
 5298 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 5299 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 5300 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5301 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 5302 	  if test yes = "$supports_anon_versioning"; then
 5303 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5304               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5305               echo "local: *; };" >> $output_objdir/$libname.ver~
 5306               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 5307 	  fi
 5308 	  ;;
 5309 	esac
 5310       else
 5311         _LT_TAGVAR(ld_shlibs, $1)=no
 5312       fi
 5313       ;;
 5314 
 5315     netbsd* | netbsdelf*-gnu)
 5316       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5317 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 5318 	wlarc=
 5319       else
 5320 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5321 	_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'
 5322       fi
 5323       ;;
 5324 
 5325     solaris*)
 5326       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 5327 	_LT_TAGVAR(ld_shlibs, $1)=no
 5328 	cat <<_LT_EOF 1>&2
 5329 
 5330 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 5331 *** create shared libraries on Solaris systems.  Therefore, libtool
 5332 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5333 *** binutils to release 2.9.1 or newer.  Another option is to modify
 5334 *** your PATH or compiler configuration so that the native linker is
 5335 *** used, and then restart.
 5336 
 5337 _LT_EOF
 5338       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5339 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5340 	_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'
 5341       else
 5342 	_LT_TAGVAR(ld_shlibs, $1)=no
 5343       fi
 5344       ;;
 5345 
 5346     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 5347       case `$LD -v 2>&1` in
 5348         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 5349 	_LT_TAGVAR(ld_shlibs, $1)=no
 5350 	cat <<_LT_EOF 1>&2
 5351 
 5352 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 5353 *** reliably create shared libraries on SCO systems.  Therefore, libtool
 5354 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5355 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 5356 *** your PATH or compiler configuration so that the native linker is
 5357 *** used, and then restart.
 5358 
 5359 _LT_EOF
 5360 	;;
 5361 	*)
 5362 	  # For security reasons, it is highly recommended that you always
 5363 	  # use absolute paths for naming shared libraries, and exclude the
 5364 	  # DT_RUNPATH tag from executables and libraries.  But doing so
 5365 	  # requires that you compile everything twice, which is a pain.
 5366 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5367 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5368 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5369 	    _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'
 5370 	  else
 5371 	    _LT_TAGVAR(ld_shlibs, $1)=no
 5372 	  fi
 5373 	;;
 5374       esac
 5375       ;;
 5376 
 5377     sunos4*)
 5378       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5379       wlarc=
 5380       _LT_TAGVAR(hardcode_direct, $1)=yes
 5381       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5382       ;;
 5383 
 5384     *)
 5385       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5386 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5387 	_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'
 5388       else
 5389 	_LT_TAGVAR(ld_shlibs, $1)=no
 5390       fi
 5391       ;;
 5392     esac
 5393 
 5394     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
 5395       runpath_var=
 5396       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 5397       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 5398       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5399     fi
 5400   else
 5401     # PORTME fill in a description of your system's linker (not GNU ld)
 5402     case $host_os in
 5403     aix3*)
 5404       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5405       _LT_TAGVAR(always_export_symbols, $1)=yes
 5406       _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'
 5407       # Note: this linker hardcodes the directories in LIBPATH if there
 5408       # are no directories specified by -L.
 5409       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5410       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 5411 	# Neither direct hardcoding nor static linking is supported with a
 5412 	# broken collect2.
 5413 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
 5414       fi
 5415       ;;
 5416 
 5417     aix[[4-9]]*)
 5418       if test ia64 = "$host_cpu"; then
 5419 	# On IA64, the linker does run time linking by default, so we don't
 5420 	# have to do anything special.
 5421 	aix_use_runtimelinking=no
 5422 	exp_sym_flag='-Bexport'
 5423 	no_entry_flag=
 5424       else
 5425 	# If we're using GNU nm, then we don't want the "-C" option.
 5426 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
 5427 	# Without the "-l" option, or with the "-B" option, AIX nm treats
 5428 	# weak defined symbols like other global defined symbols, whereas
 5429 	# GNU nm marks them as "W".
 5430 	# While the 'weak' keyword is ignored in the Export File, we need
 5431 	# it in the Import File for the 'aix-soname' feature, so we have
 5432 	# to replace the "-B" option with "-P" for AIX nm.
 5433 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 5434 	  _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'
 5435 	else
 5436 	  _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'
 5437 	fi
 5438 	aix_use_runtimelinking=no
 5439 
 5440 	# Test if we are trying to use run time linking or normal
 5441 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 5442 	# have runtime linking enabled, and use it for executables.
 5443 	# For shared libraries, we enable/disable runtime linking
 5444 	# depending on the kind of the shared library created -
 5445 	# when "with_aix_soname,aix_use_runtimelinking" is:
 5446 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 5447 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
 5448 	#            lib.a           static archive
 5449 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
 5450 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
 5451 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 5452 	#            lib.a(lib.so.V) shared, rtl:no
 5453 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 5454 	#            lib.a           static archive
 5455 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 5456 	  for ld_flag in $LDFLAGS; do
 5457 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 5458 	    aix_use_runtimelinking=yes
 5459 	    break
 5460 	  fi
 5461 	  done
 5462 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 5463 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
 5464 	    # so we don't have lib.a shared libs to link our executables.
 5465 	    # We have to force runtime linking in this case.
 5466 	    aix_use_runtimelinking=yes
 5467 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
 5468 	  fi
 5469 	  ;;
 5470 	esac
 5471 
 5472 	exp_sym_flag='-bexport'
 5473 	no_entry_flag='-bnoentry'
 5474       fi
 5475 
 5476       # When large executables or shared objects are built, AIX ld can
 5477       # have problems creating the table of contents.  If linking a library
 5478       # or program results in "error TOC overflow" add -mminimal-toc to
 5479       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 5480       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 5481 
 5482       _LT_TAGVAR(archive_cmds, $1)=''
 5483       _LT_TAGVAR(hardcode_direct, $1)=yes
 5484       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5485       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 5486       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5487       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 5488       case $with_aix_soname,$aix_use_runtimelinking in
 5489       aix,*) ;; # traditional, no import file
 5490       svr4,* | *,yes) # use import file
 5491 	# The Import File defines what to hardcode.
 5492 	_LT_TAGVAR(hardcode_direct, $1)=no
 5493 	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 5494 	;;
 5495       esac
 5496 
 5497       if test yes = "$GCC"; then
 5498 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
 5499 	# We only want to do this on AIX 4.2 and lower, the check
 5500 	# below for broken collect2 doesn't work under 4.3+
 5501 	  collect2name=`$CC -print-prog-name=collect2`
 5502 	  if test -f "$collect2name" &&
 5503 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 5504 	  then
 5505 	  # We have reworked collect2
 5506 	  :
 5507 	  else
 5508 	  # We have old collect2
 5509 	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
 5510 	  # It fails to find uninstalled libraries when the uninstalled
 5511 	  # path is not listed in the libpath.  Setting hardcode_minus_L
 5512 	  # to unsupported forces relinking
 5513 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5514 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5515 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 5516 	  fi
 5517 	  ;;
 5518 	esac
 5519 	shared_flag='-shared'
 5520 	if test yes = "$aix_use_runtimelinking"; then
 5521 	  shared_flag="$shared_flag "'$wl-G'
 5522 	fi
 5523 	# Need to ensure runtime linking is disabled for the traditional
 5524 	# shared library, or the linker may eventually find shared libraries
 5525 	# /with/ Import File - we do not want to mix them.
 5526 	shared_flag_aix='-shared'
 5527 	shared_flag_svr4='-shared $wl-G'
 5528       else
 5529 	# not using gcc
 5530 	if test ia64 = "$host_cpu"; then
 5531 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 5532 	# chokes on -Wl,-G. The following line is correct:
 5533 	  shared_flag='-G'
 5534 	else
 5535 	  if test yes = "$aix_use_runtimelinking"; then
 5536 	    shared_flag='$wl-G'
 5537 	  else
 5538 	    shared_flag='$wl-bM:SRE'
 5539 	  fi
 5540 	  shared_flag_aix='$wl-bM:SRE'
 5541 	  shared_flag_svr4='$wl-G'
 5542 	fi
 5543       fi
 5544 
 5545       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 5546       # It seems that -bexpall does not export symbols beginning with
 5547       # underscore (_), so it is better to generate a list of symbols to export.
 5548       _LT_TAGVAR(always_export_symbols, $1)=yes
 5549       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 5550 	# Warning - without using the other runtime loading flags (-brtl),
 5551 	# -berok will link without error, but may produce a broken library.
 5552 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 5553         # Determine the default libpath from the value encoded in an
 5554         # empty executable.
 5555         _LT_SYS_MODULE_PATH_AIX([$1])
 5556         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5557         _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
 5558       else
 5559 	if test ia64 = "$host_cpu"; then
 5560 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 5561 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 5562 	  _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"
 5563 	else
 5564 	 # Determine the default libpath from the value encoded in an
 5565 	 # empty executable.
 5566 	 _LT_SYS_MODULE_PATH_AIX([$1])
 5567 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5568 	  # Warning - without using the other run time loading flags,
 5569 	  # -berok will link without error, but may produce a broken library.
 5570 	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 5571 	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 5572 	  if test yes = "$with_gnu_ld"; then
 5573 	    # We only use this code for GNU lds that support --whole-archive.
 5574 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 5575 	  else
 5576 	    # Exported symbols can be pulled into shared objects from archives
 5577 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 5578 	  fi
 5579 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 5580 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 5581 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
 5582 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 5583 	  if test svr4 != "$with_aix_soname"; then
 5584 	    # This is similar to how AIX traditionally builds its shared libraries.
 5585 	    _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'
 5586 	  fi
 5587 	  if test aix != "$with_aix_soname"; then
 5588 	    _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'
 5589 	  else
 5590 	    # used by -dlpreopen to get the symbols
 5591 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 5592 	  fi
 5593 	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 5594 	fi
 5595       fi
 5596       ;;
 5597 
 5598     amigaos*)
 5599       case $host_cpu in
 5600       powerpc)
 5601             # see comment about AmigaOS4 .so support
 5602             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5603             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5604         ;;
 5605       m68k)
 5606             _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)'
 5607             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5608             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5609         ;;
 5610       esac
 5611       ;;
 5612 
 5613     bsdi[[45]]*)
 5614       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 5615       ;;
 5616 
 5617     cygwin* | mingw* | pw32* | cegcc*)
 5618       # When not using gcc, we currently assume that we are using
 5619       # Microsoft Visual C++ or Intel C++ Compiler.
 5620       # hardcode_libdir_flag_spec is actually meaningless, as there is
 5621       # no search path for DLLs.
 5622       case $cc_basename in
 5623       cl* | icl*)
 5624 	# Native MSVC or ICC
 5625 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5626 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5627 	_LT_TAGVAR(always_export_symbols, $1)=yes
 5628 	_LT_TAGVAR(file_list_spec, $1)='@'
 5629 	# Tell ltmain to make .lib files, not .a files.
 5630 	libext=lib
 5631 	# Tell ltmain to make .dll files, not .so files.
 5632 	shrext_cmds=.dll
 5633 	# FIXME: Setting linknames here is a bad hack.
 5634 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 5635 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5636             cp "$export_symbols" "$output_objdir/$soname.def";
 5637             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 5638           else
 5639             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 5640           fi~
 5641           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 5642           linknames='
 5643 	# The linker will not automatically build a static lib if we build a DLL.
 5644 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5645 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5646 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 5647 	_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'
 5648 	# Don't use ranlib
 5649 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 5650 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 5651           lt_tool_outputfile="@TOOL_OUTPUT@"~
 5652           case $lt_outputfile in
 5653             *.exe|*.EXE) ;;
 5654             *)
 5655               lt_outputfile=$lt_outputfile.exe
 5656               lt_tool_outputfile=$lt_tool_outputfile.exe
 5657               ;;
 5658           esac~
 5659           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 5660             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 5661             $RM "$lt_outputfile.manifest";
 5662           fi'
 5663 	;;
 5664       *)
 5665 	# Assume MSVC and ICC wrapper
 5666 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5667 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5668 	# Tell ltmain to make .lib files, not .a files.
 5669 	libext=lib
 5670 	# Tell ltmain to make .dll files, not .so files.
 5671 	shrext_cmds=.dll
 5672 	# FIXME: Setting linknames here is a bad hack.
 5673 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 5674 	# The linker will automatically build a .lib file if we build a DLL.
 5675 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5676 	# FIXME: Should let the user specify the lib program.
 5677 	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 5678 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5679 	;;
 5680       esac
 5681       ;;
 5682 
 5683     darwin* | rhapsody*)
 5684       _LT_DARWIN_LINKER_FEATURES($1)
 5685       ;;
 5686 
 5687     dgux*)
 5688       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5689       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5690       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5691       ;;
 5692 
 5693     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 5694     # support.  Future versions do this automatically, but an explicit c++rt0.o
 5695     # does not break anything, and helps significantly (at the cost of a little
 5696     # extra space).
 5697     freebsd2.2*)
 5698       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 5699       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5700       _LT_TAGVAR(hardcode_direct, $1)=yes
 5701       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5702       ;;
 5703 
 5704     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 5705     freebsd2.*)
 5706       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5707       _LT_TAGVAR(hardcode_direct, $1)=yes
 5708       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5709       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5710       ;;
 5711 
 5712     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 5713     freebsd* | dragonfly* | midnightbsd*)
 5714       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5715       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5716       _LT_TAGVAR(hardcode_direct, $1)=yes
 5717       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5718       ;;
 5719 
 5720     hpux9*)
 5721       if test yes = "$GCC"; then
 5722 	_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'
 5723       else
 5724 	_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'
 5725       fi
 5726       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5727       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5728       _LT_TAGVAR(hardcode_direct, $1)=yes
 5729 
 5730       # hardcode_minus_L: Not really in the search PATH,
 5731       # but as the default location of the library.
 5732       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5733       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5734       ;;
 5735 
 5736     hpux10*)
 5737       if test yes,no = "$GCC,$with_gnu_ld"; then
 5738 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5739       else
 5740 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 5741       fi
 5742       if test no = "$with_gnu_ld"; then
 5743 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5744 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5745 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5746 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5747 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5748 	# hardcode_minus_L: Not really in the search PATH,
 5749 	# but as the default location of the library.
 5750 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 5751       fi
 5752       ;;
 5753 
 5754     hpux11*)
 5755       if test yes,no = "$GCC,$with_gnu_ld"; then
 5756 	case $host_cpu in
 5757 	hppa*64*)
 5758 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5759 	  ;;
 5760 	ia64*)
 5761 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5762 	  ;;
 5763 	*)
 5764 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5765 	  ;;
 5766 	esac
 5767       else
 5768 	case $host_cpu in
 5769 	hppa*64*)
 5770 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5771 	  ;;
 5772 	ia64*)
 5773 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5774 	  ;;
 5775 	*)
 5776 	m4_if($1, [], [
 5777 	  # Older versions of the 11.00 compiler do not understand -b yet
 5778 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 5779 	  _LT_LINKER_OPTION([if $CC understands -b],
 5780 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 5781 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 5782 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 5783 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 5784 	  ;;
 5785 	esac
 5786       fi
 5787       if test no = "$with_gnu_ld"; then
 5788 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5789 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5790 
 5791 	case $host_cpu in
 5792 	hppa*64*|ia64*)
 5793 	  _LT_TAGVAR(hardcode_direct, $1)=no
 5794 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5795 	  ;;
 5796 	*)
 5797 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 5798 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5799 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5800 
 5801 	  # hardcode_minus_L: Not really in the search PATH,
 5802 	  # but as the default location of the library.
 5803 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5804 	  ;;
 5805 	esac
 5806       fi
 5807       ;;
 5808 
 5809     irix5* | irix6* | nonstopux*)
 5810       if test yes = "$GCC"; then
 5811 	_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'
 5812 	# Try to use the -exported_symbol ld option, if it does not
 5813 	# work, assume that -exports_file does not work either and
 5814 	# implicitly export all symbols.
 5815 	# This should be the same for all languages, so no per-tag cache variable.
 5816 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 5817 	  [lt_cv_irix_exported_symbol],
 5818 	  [save_LDFLAGS=$LDFLAGS
 5819 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 5820 	   AC_LINK_IFELSE(
 5821 	     [AC_LANG_SOURCE(
 5822 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 5823 			      [C++], [[int foo (void) { return 0; }]],
 5824 			      [Fortran 77], [[
 5825       subroutine foo
 5826       end]],
 5827 			      [Fortran], [[
 5828       subroutine foo
 5829       end]])])],
 5830 	      [lt_cv_irix_exported_symbol=yes],
 5831 	      [lt_cv_irix_exported_symbol=no])
 5832            LDFLAGS=$save_LDFLAGS])
 5833 	if test yes = "$lt_cv_irix_exported_symbol"; then
 5834           _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'
 5835 	fi
 5836 	_LT_TAGVAR(link_all_deplibs, $1)=no
 5837       else
 5838 	_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'
 5839 	_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'
 5840       fi
 5841       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5842       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5843       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5844       _LT_TAGVAR(inherit_rpath, $1)=yes
 5845       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5846       ;;
 5847 
 5848     linux*)
 5849       case $cc_basename in
 5850       tcc*)
 5851 	# Fabrice Bellard et al's Tiny C Compiler
 5852 	_LT_TAGVAR(ld_shlibs, $1)=yes
 5853 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5854 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5855 	;;
 5856       esac
 5857       ;;
 5858 
 5859     netbsd* | netbsdelf*-gnu)
 5860       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5861 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 5862       else
 5863 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 5864       fi
 5865       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5866       _LT_TAGVAR(hardcode_direct, $1)=yes
 5867       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5868       ;;
 5869 
 5870     newsos6)
 5871       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5872       _LT_TAGVAR(hardcode_direct, $1)=yes
 5873       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5874       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5875       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5876       ;;
 5877 
 5878     *nto* | *qnx*)
 5879       ;;
 5880 
 5881     openbsd* | bitrig*)
 5882       if test -f /usr/libexec/ld.so; then
 5883 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5884 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5885 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5886 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 5887 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5888 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 5889 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5890 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5891 	else
 5892 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5893 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5894 	fi
 5895       else
 5896 	_LT_TAGVAR(ld_shlibs, $1)=no
 5897       fi
 5898       ;;
 5899 
 5900     os2*)
 5901       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5902       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5903       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5904       shrext_cmds=.dll
 5905       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5906 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5907 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5908 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5909 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5910 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5911 	emximp -o $lib $output_objdir/$libname.def'
 5912       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5913 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5914 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5915 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5916 	prefix_cmds="$SED"~
 5917 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5918 	  prefix_cmds="$prefix_cmds -e 1d";
 5919 	fi~
 5920 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5921 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5922 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5923 	emximp -o $lib $output_objdir/$libname.def'
 5924       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5925       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5926       _LT_TAGVAR(file_list_spec, $1)='@'
 5927       ;;
 5928 
 5929     osf3*)
 5930       if test yes = "$GCC"; then
 5931 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5932 	_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'
 5933       else
 5934 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5935 	_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'
 5936       fi
 5937       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5938       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5939       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5940       ;;
 5941 
 5942     osf4* | osf5*)	# as osf3* with the addition of -msym flag
 5943       if test yes = "$GCC"; then
 5944 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5945 	_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'
 5946 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5947       else
 5948 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5949 	_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'
 5950 	_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~
 5951           $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'
 5952 
 5953 	# Both c and cxx compiler support -rpath directly
 5954 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 5955       fi
 5956       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5957       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5958       ;;
 5959 
 5960     solaris*)
 5961       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 5962       if test yes = "$GCC"; then
 5963 	wlarc='$wl'
 5964 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5965 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5966           $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'
 5967       else
 5968 	case `$CC -V 2>&1` in
 5969 	*"Compilers 5.0"*)
 5970 	  wlarc=''
 5971 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5972 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5973             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 5974 	  ;;
 5975 	*)
 5976 	  wlarc='$wl'
 5977 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 5978 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5979             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 5980 	  ;;
 5981 	esac
 5982       fi
 5983       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5984       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5985       case $host_os in
 5986       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 5987       *)
 5988 	# The compiler driver will combine and reorder linker options,
 5989 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
 5990 	# but is careful enough not to reorder.
 5991 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 5992 	if test yes = "$GCC"; then
 5993 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 5994 	else
 5995 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 5996 	fi
 5997 	;;
 5998       esac
 5999       _LT_TAGVAR(link_all_deplibs, $1)=yes
 6000       ;;
 6001 
 6002     sunos4*)
 6003       if test sequent = "$host_vendor"; then
 6004 	# Use $CC to link under sequent, because it throws in some extra .o
 6005 	# files that make .init and .fini sections work.
 6006 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 6007       else
 6008 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 6009       fi
 6010       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6011       _LT_TAGVAR(hardcode_direct, $1)=yes
 6012       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 6013       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6014       ;;
 6015 
 6016     sysv4)
 6017       case $host_vendor in
 6018 	sni)
 6019 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6020 	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 6021 	;;
 6022 	siemens)
 6023 	  ## LD is ld it makes a PLAMLIB
 6024 	  ## CC just makes a GrossModule.
 6025 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 6026 	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 6027 	  _LT_TAGVAR(hardcode_direct, $1)=no
 6028         ;;
 6029 	motorola)
 6030 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6031 	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 6032 	;;
 6033       esac
 6034       runpath_var='LD_RUN_PATH'
 6035       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6036       ;;
 6037 
 6038     sysv4.3*)
 6039       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6040       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6041       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 6042       ;;
 6043 
 6044     sysv4*MP*)
 6045       if test -d /usr/nec; then
 6046 	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6047 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6048 	runpath_var=LD_RUN_PATH
 6049 	hardcode_runpath_var=yes
 6050 	_LT_TAGVAR(ld_shlibs, $1)=yes
 6051       fi
 6052       ;;
 6053 
 6054     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 6055       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6056       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6057       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6058       runpath_var='LD_RUN_PATH'
 6059 
 6060       if test yes = "$GCC"; then
 6061 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6062 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6063       else
 6064 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6065 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6066       fi
 6067       ;;
 6068 
 6069     sysv5* | sco3.2v5* | sco5v6*)
 6070       # Note: We CANNOT use -z defs as we might desire, because we do not
 6071       # link with -lc, and that would cause any symbols used from libc to
 6072       # always be unresolved, which means just about no library would
 6073       # ever link correctly.  If we're not using GNU ld we use -z text
 6074       # though, which does catch some bad symbols but isn't as heavy-handed
 6075       # as -z defs.
 6076       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6077       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 6078       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6079       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6080       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 6081       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6082       _LT_TAGVAR(link_all_deplibs, $1)=yes
 6083       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 6084       runpath_var='LD_RUN_PATH'
 6085 
 6086       if test yes = "$GCC"; then
 6087 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6088 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6089       else
 6090 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6091 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6092       fi
 6093       ;;
 6094 
 6095     uts4*)
 6096       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6097       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6098       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6099       ;;
 6100 
 6101     *)
 6102       _LT_TAGVAR(ld_shlibs, $1)=no
 6103       ;;
 6104     esac
 6105 
 6106     if test sni = "$host_vendor"; then
 6107       case $host in
 6108       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 6109 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
 6110 	;;
 6111       esac
 6112     fi
 6113   fi
 6114 ])
 6115 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 6116 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 6117 
 6118 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 6119 
 6120 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 6121 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 6122 _LT_DECL([], [extract_expsyms_cmds], [2],
 6123     [The commands to extract the exported symbol list from a shared archive])
 6124 
 6125 #
 6126 # Do we need to explicitly link libc?
 6127 #
 6128 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 6129 x|xyes)
 6130   # Assume -lc should be added
 6131   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6132 
 6133   if test yes,yes = "$GCC,$enable_shared"; then
 6134     case $_LT_TAGVAR(archive_cmds, $1) in
 6135     *'~'*)
 6136       # FIXME: we may have to deal with multi-command sequences.
 6137       ;;
 6138     '$CC '*)
 6139       # Test whether the compiler implicitly links with -lc since on some
 6140       # systems, -lgcc has to come before -lc. If gcc already passes -lc
 6141       # to ld, don't add -lc before -lgcc.
 6142       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 6143 	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 6144 	[$RM conftest*
 6145 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 6146 
 6147 	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 6148 	  soname=conftest
 6149 	  lib=conftest
 6150 	  libobjs=conftest.$ac_objext
 6151 	  deplibs=
 6152 	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 6153 	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 6154 	  compiler_flags=-v
 6155 	  linker_flags=-v
 6156 	  verstring=
 6157 	  output_objdir=.
 6158 	  libname=conftest
 6159 	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 6160 	  _LT_TAGVAR(allow_undefined_flag, $1)=
 6161 	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 6162 	  then
 6163 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6164 	  else
 6165 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6166 	  fi
 6167 	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 6168 	else
 6169 	  cat conftest.err 1>&5
 6170 	fi
 6171 	$RM conftest*
 6172 	])
 6173       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 6174       ;;
 6175     esac
 6176   fi
 6177   ;;
 6178 esac
 6179 
 6180 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 6181     [Whether or not to add -lc for building shared libraries])
 6182 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 6183     [enable_shared_with_static_runtimes], [0],
 6184     [Whether or not to disallow shared libs when runtime libs are static])
 6185 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 6186     [Compiler flag to allow reflexive dlopens])
 6187 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
 6188     [Compiler flag to generate shared objects directly from archives])
 6189 _LT_TAGDECL([], [compiler_needs_object], [1],
 6190     [Whether the compiler copes with passing no objects directly])
 6191 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 6192     [Create an old-style archive from a shared archive])
 6193 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 6194     [Create a temporary old-style archive to link instead of a shared archive])
 6195 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 6196 _LT_TAGDECL([], [archive_expsym_cmds], [2])
 6197 _LT_TAGDECL([], [module_cmds], [2],
 6198     [Commands used to build a loadable module if different from building
 6199     a shared archive.])
 6200 _LT_TAGDECL([], [module_expsym_cmds], [2])
 6201 _LT_TAGDECL([], [with_gnu_ld], [1],
 6202     [Whether we are building with GNU ld or not])
 6203 _LT_TAGDECL([], [allow_undefined_flag], [1],
 6204     [Flag that allows shared libraries with undefined symbols to be built])
 6205 _LT_TAGDECL([], [no_undefined_flag], [1],
 6206     [Flag that enforces no undefined symbols])
 6207 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 6208     [Flag to hardcode $libdir into a binary during linking.
 6209     This must work even if $libdir does not exist])
 6210 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
 6211     [Whether we need a single "-rpath" flag with a separated argument])
 6212 _LT_TAGDECL([], [hardcode_direct], [0],
 6213     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6214     DIR into the resulting binary])
 6215 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
 6216     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6217     DIR into the resulting binary and the resulting library dependency is
 6218     "absolute", i.e impossible to change by setting $shlibpath_var if the
 6219     library is relocated])
 6220 _LT_TAGDECL([], [hardcode_minus_L], [0],
 6221     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 6222     into the resulting binary])
 6223 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 6224     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 6225     into the resulting binary])
 6226 _LT_TAGDECL([], [hardcode_automatic], [0],
 6227     [Set to "yes" if building a shared library automatically hardcodes DIR
 6228     into the library and all subsequent libraries and executables linked
 6229     against it])
 6230 _LT_TAGDECL([], [inherit_rpath], [0],
 6231     [Set to yes if linker adds runtime paths of dependent libraries
 6232     to runtime path list])
 6233 _LT_TAGDECL([], [link_all_deplibs], [0],
 6234     [Whether libtool must link a program against all its dependency libraries])
 6235 _LT_TAGDECL([], [always_export_symbols], [0],
 6236     [Set to "yes" if exported symbols are required])
 6237 _LT_TAGDECL([], [export_symbols_cmds], [2],
 6238     [The commands to list exported symbols])
 6239 _LT_TAGDECL([], [exclude_expsyms], [1],
 6240     [Symbols that should not be listed in the preloaded symbols])
 6241 _LT_TAGDECL([], [include_expsyms], [1],
 6242     [Symbols that must always be exported])
 6243 _LT_TAGDECL([], [prelink_cmds], [2],
 6244     [Commands necessary for linking programs (against libraries) with templates])
 6245 _LT_TAGDECL([], [postlink_cmds], [2],
 6246     [Commands necessary for finishing linking programs])
 6247 _LT_TAGDECL([], [file_list_spec], [1],
 6248     [Specify filename containing input files])
 6249 dnl FIXME: Not yet implemented
 6250 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 6251 dnl    [Compiler flag to generate thread safe objects])
 6252 ])# _LT_LINKER_SHLIBS
 6253 
 6254 
 6255 # _LT_LANG_C_CONFIG([TAG])
 6256 # ------------------------
 6257 # Ensure that the configuration variables for a C compiler are suitably
 6258 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6259 # the compiler configuration to 'libtool'.
 6260 m4_defun([_LT_LANG_C_CONFIG],
 6261 [m4_require([_LT_DECL_EGREP])dnl
 6262 lt_save_CC=$CC
 6263 AC_LANG_PUSH(C)
 6264 
 6265 # Source file extension for C test sources.
 6266 ac_ext=c
 6267 
 6268 # Object file extension for compiled C test sources.
 6269 objext=o
 6270 _LT_TAGVAR(objext, $1)=$objext
 6271 
 6272 # Code to be used in simple compile tests
 6273 lt_simple_compile_test_code="int some_variable = 0;"
 6274 
 6275 # Code to be used in simple link tests
 6276 lt_simple_link_test_code='int main(){return(0);}'
 6277 
 6278 _LT_TAG_COMPILER
 6279 # Save the default compiler, since it gets overwritten when the other
 6280 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 6281 compiler_DEFAULT=$CC
 6282 
 6283 # save warnings/boilerplate of simple test code
 6284 _LT_COMPILER_BOILERPLATE
 6285 _LT_LINKER_BOILERPLATE
 6286 
 6287 if test -n "$compiler"; then
 6288   _LT_COMPILER_NO_RTTI($1)
 6289   _LT_COMPILER_PIC($1)
 6290   _LT_COMPILER_C_O($1)
 6291   _LT_COMPILER_FILE_LOCKS($1)
 6292   _LT_LINKER_SHLIBS($1)
 6293   _LT_SYS_DYNAMIC_LINKER($1)
 6294   _LT_LINKER_HARDCODE_LIBPATH($1)
 6295   LT_SYS_DLOPEN_SELF
 6296   _LT_CMD_STRIPLIB
 6297 
 6298   # Report what library types will actually be built
 6299   AC_MSG_CHECKING([if libtool supports shared libraries])
 6300   AC_MSG_RESULT([$can_build_shared])
 6301 
 6302   AC_MSG_CHECKING([whether to build shared libraries])
 6303   test no = "$can_build_shared" && enable_shared=no
 6304 
 6305   # On AIX, shared libraries and static libraries use the same namespace, and
 6306   # are all built from PIC.
 6307   case $host_os in
 6308   aix3*)
 6309     test yes = "$enable_shared" && enable_static=no
 6310     if test -n "$RANLIB"; then
 6311       archive_cmds="$archive_cmds~\$RANLIB \$lib"
 6312       postinstall_cmds='$RANLIB $lib'
 6313     fi
 6314     ;;
 6315 
 6316   aix[[4-9]]*)
 6317     if test ia64 != "$host_cpu"; then
 6318       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 6319       yes,aix,yes) ;;			# shared object as lib.so file only
 6320       yes,svr4,*) ;;			# shared object as lib.so archive member only
 6321       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 6322       esac
 6323     fi
 6324     ;;
 6325   esac
 6326   AC_MSG_RESULT([$enable_shared])
 6327 
 6328   AC_MSG_CHECKING([whether to build static libraries])
 6329   # Make sure either enable_shared or enable_static is yes.
 6330   test yes = "$enable_shared" || enable_static=yes
 6331   AC_MSG_RESULT([$enable_static])
 6332 
 6333   _LT_CONFIG($1)
 6334 fi
 6335 AC_LANG_POP
 6336 CC=$lt_save_CC
 6337 ])# _LT_LANG_C_CONFIG
 6338 
 6339 
 6340 # _LT_LANG_CXX_CONFIG([TAG])
 6341 # --------------------------
 6342 # Ensure that the configuration variables for a C++ compiler are suitably
 6343 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6344 # the compiler configuration to 'libtool'.
 6345 m4_defun([_LT_LANG_CXX_CONFIG],
 6346 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 6347 m4_require([_LT_DECL_EGREP])dnl
 6348 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 6349 if test -n "$CXX" && ( test no != "$CXX" &&
 6350     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 6351     (test g++ != "$CXX"))); then
 6352   AC_PROG_CXXCPP
 6353 else
 6354   _lt_caught_CXX_error=yes
 6355 fi
 6356 
 6357 AC_LANG_PUSH(C++)
 6358 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6359 _LT_TAGVAR(allow_undefined_flag, $1)=
 6360 _LT_TAGVAR(always_export_symbols, $1)=no
 6361 _LT_TAGVAR(archive_expsym_cmds, $1)=
 6362 _LT_TAGVAR(compiler_needs_object, $1)=no
 6363 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 6364 _LT_TAGVAR(hardcode_direct, $1)=no
 6365 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 6367 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6368 _LT_TAGVAR(hardcode_minus_L, $1)=no
 6369 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 6370 _LT_TAGVAR(hardcode_automatic, $1)=no
 6371 _LT_TAGVAR(inherit_rpath, $1)=no
 6372 _LT_TAGVAR(module_cmds, $1)=
 6373 _LT_TAGVAR(module_expsym_cmds, $1)=
 6374 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 6375 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 6376 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 6377 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 6378 _LT_TAGVAR(no_undefined_flag, $1)=
 6379 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6380 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 6381 
 6382 # Source file extension for C++ test sources.
 6383 ac_ext=cpp
 6384 
 6385 # Object file extension for compiled C++ test sources.
 6386 objext=o
 6387 _LT_TAGVAR(objext, $1)=$objext
 6388 
 6389 # No sense in running all these tests if we already determined that
 6390 # the CXX compiler isn't working.  Some variables (like enable_shared)
 6391 # are currently assumed to apply to all compilers on this platform,
 6392 # and will be corrupted by setting them based on a non-working compiler.
 6393 if test yes != "$_lt_caught_CXX_error"; then
 6394   # Code to be used in simple compile tests
 6395   lt_simple_compile_test_code="int some_variable = 0;"
 6396 
 6397   # Code to be used in simple link tests
 6398   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 6399 
 6400   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 6401   _LT_TAG_COMPILER
 6402 
 6403   # save warnings/boilerplate of simple test code
 6404   _LT_COMPILER_BOILERPLATE
 6405   _LT_LINKER_BOILERPLATE
 6406 
 6407   # Allow CC to be a program name with arguments.
 6408   lt_save_CC=$CC
 6409   lt_save_CFLAGS=$CFLAGS
 6410   lt_save_LD=$LD
 6411   lt_save_GCC=$GCC
 6412   GCC=$GXX
 6413   lt_save_with_gnu_ld=$with_gnu_ld
 6414   lt_save_path_LD=$lt_cv_path_LD
 6415   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 6416     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 6417   else
 6418     $as_unset lt_cv_prog_gnu_ld
 6419   fi
 6420   if test -n "${lt_cv_path_LDCXX+set}"; then
 6421     lt_cv_path_LD=$lt_cv_path_LDCXX
 6422   else
 6423     $as_unset lt_cv_path_LD
 6424   fi
 6425   test -z "${LDCXX+set}" || LD=$LDCXX
 6426   CC=${CXX-"c++"}
 6427   CFLAGS=$CXXFLAGS
 6428   compiler=$CC
 6429   _LT_TAGVAR(compiler, $1)=$CC
 6430   _LT_CC_BASENAME([$compiler])
 6431 
 6432   if test -n "$compiler"; then
 6433     # We don't want -fno-exception when compiling C++ code, so set the
 6434     # no_builtin_flag separately
 6435     if test yes = "$GXX"; then
 6436       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 6437     else
 6438       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 6439     fi
 6440 
 6441     if test yes = "$GXX"; then
 6442       # Set up default GNU C++ configuration
 6443 
 6444       LT_PATH_LD
 6445 
 6446       # Check if GNU C++ uses GNU ld as the underlying linker, since the
 6447       # archiving commands below assume that GNU ld is being used.
 6448       if test yes = "$with_gnu_ld"; then
 6449         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 6450         _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'
 6451 
 6452         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 6453         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 6454 
 6455         # If archive_cmds runs LD, not CC, wlarc should be empty
 6456         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 6457         #     investigate it a little bit more. (MM)
 6458         wlarc='$wl'
 6459 
 6460         # ancient GNU ld didn't support --whole-archive et. al.
 6461         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 6462 	  $GREP 'no-whole-archive' > /dev/null; then
 6463           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 6464         else
 6465           _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6466         fi
 6467       else
 6468         with_gnu_ld=no
 6469         wlarc=
 6470 
 6471         # A generic and very simple default shared library creation
 6472         # command for GNU C++ for the case where it uses the native
 6473         # linker, instead of GNU ld.  If possible, this setting should
 6474         # overridden to take advantage of the native linker features on
 6475         # the platform it is being used on.
 6476         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 6477       fi
 6478 
 6479       # Commands to make compiler produce verbose output that lists
 6480       # what "hidden" libraries, object files and flags are used when
 6481       # linking a shared library.
 6482       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
 6483 
 6484     else
 6485       GXX=no
 6486       with_gnu_ld=no
 6487       wlarc=
 6488     fi
 6489 
 6490     # PORTME: fill in a description of your system's C++ link characteristics
 6491     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 6492     _LT_TAGVAR(ld_shlibs, $1)=yes
 6493     case $host_os in
 6494       aix3*)
 6495         # FIXME: insert proper C++ library support
 6496         _LT_TAGVAR(ld_shlibs, $1)=no
 6497         ;;
 6498       aix[[4-9]]*)
 6499         if test ia64 = "$host_cpu"; then
 6500           # On IA64, the linker does run time linking by default, so we don't
 6501           # have to do anything special.
 6502           aix_use_runtimelinking=no
 6503           exp_sym_flag='-Bexport'
 6504           no_entry_flag=
 6505         else
 6506           aix_use_runtimelinking=no
 6507 
 6508           # Test if we are trying to use run time linking or normal
 6509           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 6510           # have runtime linking enabled, and use it for executables.
 6511           # For shared libraries, we enable/disable runtime linking
 6512           # depending on the kind of the shared library created -
 6513           # when "with_aix_soname,aix_use_runtimelinking" is:
 6514           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 6515           # "aix,yes"  lib.so          shared, rtl:yes, for executables
 6516           #            lib.a           static archive
 6517           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 6518           #            lib.a(lib.so.V) shared, rtl:no,  for executables
 6519           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 6520           #            lib.a(lib.so.V) shared, rtl:no
 6521           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 6522           #            lib.a           static archive
 6523           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 6524 	    for ld_flag in $LDFLAGS; do
 6525 	      case $ld_flag in
 6526 	      *-brtl*)
 6527 	        aix_use_runtimelinking=yes
 6528 	        break
 6529 	        ;;
 6530 	      esac
 6531 	    done
 6532 	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 6533 	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
 6534 	      # so we don't have lib.a shared libs to link our executables.
 6535 	      # We have to force runtime linking in this case.
 6536 	      aix_use_runtimelinking=yes
 6537 	      LDFLAGS="$LDFLAGS -Wl,-brtl"
 6538 	    fi
 6539 	    ;;
 6540           esac
 6541 
 6542           exp_sym_flag='-bexport'
 6543           no_entry_flag='-bnoentry'
 6544         fi
 6545 
 6546         # When large executables or shared objects are built, AIX ld can
 6547         # have problems creating the table of contents.  If linking a library
 6548         # or program results in "error TOC overflow" add -mminimal-toc to
 6549         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 6550         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 6551 
 6552         _LT_TAGVAR(archive_cmds, $1)=''
 6553         _LT_TAGVAR(hardcode_direct, $1)=yes
 6554         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6555         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6556         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6557         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 6558         case $with_aix_soname,$aix_use_runtimelinking in
 6559         aix,*) ;;	# no import file
 6560         svr4,* | *,yes) # use import file
 6561           # The Import File defines what to hardcode.
 6562           _LT_TAGVAR(hardcode_direct, $1)=no
 6563           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6564           ;;
 6565         esac
 6566 
 6567         if test yes = "$GXX"; then
 6568           case $host_os in aix4.[[012]]|aix4.[[012]].*)
 6569           # We only want to do this on AIX 4.2 and lower, the check
 6570           # below for broken collect2 doesn't work under 4.3+
 6571 	  collect2name=`$CC -print-prog-name=collect2`
 6572 	  if test -f "$collect2name" &&
 6573 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 6574 	  then
 6575 	    # We have reworked collect2
 6576 	    :
 6577 	  else
 6578 	    # We have old collect2
 6579 	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
 6580 	    # It fails to find uninstalled libraries when the uninstalled
 6581 	    # path is not listed in the libpath.  Setting hardcode_minus_L
 6582 	    # to unsupported forces relinking
 6583 	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
 6584 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6585 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6586 	  fi
 6587           esac
 6588           shared_flag='-shared'
 6589 	  if test yes = "$aix_use_runtimelinking"; then
 6590 	    shared_flag=$shared_flag' $wl-G'
 6591 	  fi
 6592 	  # Need to ensure runtime linking is disabled for the traditional
 6593 	  # shared library, or the linker may eventually find shared libraries
 6594 	  # /with/ Import File - we do not want to mix them.
 6595 	  shared_flag_aix='-shared'
 6596 	  shared_flag_svr4='-shared $wl-G'
 6597         else
 6598           # not using gcc
 6599           if test ia64 = "$host_cpu"; then
 6600 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 6601 	  # chokes on -Wl,-G. The following line is correct:
 6602 	  shared_flag='-G'
 6603           else
 6604 	    if test yes = "$aix_use_runtimelinking"; then
 6605 	      shared_flag='$wl-G'
 6606 	    else
 6607 	      shared_flag='$wl-bM:SRE'
 6608 	    fi
 6609 	    shared_flag_aix='$wl-bM:SRE'
 6610 	    shared_flag_svr4='$wl-G'
 6611           fi
 6612         fi
 6613 
 6614         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 6615         # It seems that -bexpall does not export symbols beginning with
 6616         # underscore (_), so it is better to generate a list of symbols to
 6617 	# export.
 6618         _LT_TAGVAR(always_export_symbols, $1)=yes
 6619 	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 6620           # Warning - without using the other runtime loading flags (-brtl),
 6621           # -berok will link without error, but may produce a broken library.
 6622           # The "-G" linker flag allows undefined symbols.
 6623           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
 6624           # Determine the default libpath from the value encoded in an empty
 6625           # executable.
 6626           _LT_SYS_MODULE_PATH_AIX([$1])
 6627           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6628 
 6629           _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
 6630         else
 6631           if test ia64 = "$host_cpu"; then
 6632 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 6633 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 6634 	    _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"
 6635           else
 6636 	    # Determine the default libpath from the value encoded in an
 6637 	    # empty executable.
 6638 	    _LT_SYS_MODULE_PATH_AIX([$1])
 6639 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6640 	    # Warning - without using the other run time loading flags,
 6641 	    # -berok will link without error, but may produce a broken library.
 6642 	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 6643 	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 6644 	    if test yes = "$with_gnu_ld"; then
 6645 	      # We only use this code for GNU lds that support --whole-archive.
 6646 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 6647 	    else
 6648 	      # Exported symbols can be pulled into shared objects from archives
 6649 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 6650 	    fi
 6651 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6652 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 6653 	    # -brtl affects multiple linker settings, -berok does not and is overridden later
 6654 	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 6655 	    if test svr4 != "$with_aix_soname"; then
 6656 	      # This is similar to how AIX traditionally builds its shared
 6657 	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 6658 	      _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'
 6659 	    fi
 6660 	    if test aix != "$with_aix_soname"; then
 6661 	      _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'
 6662 	    else
 6663 	      # used by -dlpreopen to get the symbols
 6664 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 6665 	    fi
 6666 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 6667           fi
 6668         fi
 6669         ;;
 6670 
 6671       beos*)
 6672 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 6673 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6674 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 6675 	  # support --undefined.  This deserves some investigation.  FIXME
 6676 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6677 	else
 6678 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6679 	fi
 6680 	;;
 6681 
 6682       chorus*)
 6683         case $cc_basename in
 6684           *)
 6685 	  # FIXME: insert proper C++ library support
 6686 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6687 	  ;;
 6688         esac
 6689         ;;
 6690 
 6691       cygwin* | mingw* | pw32* | cegcc*)
 6692 	case $GXX,$cc_basename in
 6693 	,cl* | no,cl* | ,icl* | no,icl*)
 6694 	  # Native MSVC or ICC
 6695 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
 6696 	  # no search path for DLLs.
 6697 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 6698 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6699 	  _LT_TAGVAR(always_export_symbols, $1)=yes
 6700 	  _LT_TAGVAR(file_list_spec, $1)='@'
 6701 	  # Tell ltmain to make .lib files, not .a files.
 6702 	  libext=lib
 6703 	  # Tell ltmain to make .dll files, not .so files.
 6704 	  shrext_cmds=.dll
 6705 	  # FIXME: Setting linknames here is a bad hack.
 6706 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 6707 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6708               cp "$export_symbols" "$output_objdir/$soname.def";
 6709               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 6710             else
 6711               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 6712             fi~
 6713             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 6714             linknames='
 6715 	  # The linker will not automatically build a static lib if we build a DLL.
 6716 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 6717 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6718 	  # Don't use ranlib
 6719 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 6720 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 6721             lt_tool_outputfile="@TOOL_OUTPUT@"~
 6722             case $lt_outputfile in
 6723               *.exe|*.EXE) ;;
 6724               *)
 6725                 lt_outputfile=$lt_outputfile.exe
 6726                 lt_tool_outputfile=$lt_tool_outputfile.exe
 6727                 ;;
 6728             esac~
 6729             func_to_tool_file "$lt_outputfile"~
 6730             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 6731               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 6732               $RM "$lt_outputfile.manifest";
 6733             fi'
 6734 	  ;;
 6735 	*)
 6736 	  # g++
 6737 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 6738 	  # as there is no search path for DLLs.
 6739 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6740 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 6741 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6742 	  _LT_TAGVAR(always_export_symbols, $1)=no
 6743 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6744 
 6745 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 6746 	    _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'
 6747 	    # If the export-symbols file already is a .def file, use it as
 6748 	    # is; otherwise, prepend EXPORTS...
 6749 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6750               cp $export_symbols $output_objdir/$soname.def;
 6751             else
 6752               echo EXPORTS > $output_objdir/$soname.def;
 6753               cat $export_symbols >> $output_objdir/$soname.def;
 6754             fi~
 6755             $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'
 6756 	  else
 6757 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6758 	  fi
 6759 	  ;;
 6760 	esac
 6761 	;;
 6762       darwin* | rhapsody*)
 6763         _LT_DARWIN_LINKER_FEATURES($1)
 6764 	;;
 6765 
 6766       os2*)
 6767 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6768 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 6769 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6770 	shrext_cmds=.dll
 6771 	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6772 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6773 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6774 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6775 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 6776 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6777 	  emximp -o $lib $output_objdir/$libname.def'
 6778 	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6779 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6780 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6781 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6782 	  prefix_cmds="$SED"~
 6783 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
 6784 	    prefix_cmds="$prefix_cmds -e 1d";
 6785 	  fi~
 6786 	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 6787 	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 6788 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6789 	  emximp -o $lib $output_objdir/$libname.def'
 6790 	_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 6791 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6792 	_LT_TAGVAR(file_list_spec, $1)='@'
 6793 	;;
 6794 
 6795       dgux*)
 6796         case $cc_basename in
 6797           ec++*)
 6798 	    # FIXME: insert proper C++ library support
 6799 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6800 	    ;;
 6801           ghcx*)
 6802 	    # Green Hills C++ Compiler
 6803 	    # FIXME: insert proper C++ library support
 6804 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6805 	    ;;
 6806           *)
 6807 	    # FIXME: insert proper C++ library support
 6808 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6809 	    ;;
 6810         esac
 6811         ;;
 6812 
 6813       freebsd2.*)
 6814         # C++ shared libraries reported to be fairly broken before
 6815 	# switch to ELF
 6816         _LT_TAGVAR(ld_shlibs, $1)=no
 6817         ;;
 6818 
 6819       freebsd-elf*)
 6820         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6821         ;;
 6822 
 6823       freebsd* | dragonfly* | midnightbsd*)
 6824         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 6825         # conventions
 6826         _LT_TAGVAR(ld_shlibs, $1)=yes
 6827         ;;
 6828 
 6829       haiku*)
 6830         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6831         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6832         ;;
 6833 
 6834       hpux9*)
 6835         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6836         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6837         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6838         _LT_TAGVAR(hardcode_direct, $1)=yes
 6839         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6840 				             # but as the default
 6841 				             # location of the library.
 6842 
 6843         case $cc_basename in
 6844           CC*)
 6845             # FIXME: insert proper C++ library support
 6846             _LT_TAGVAR(ld_shlibs, $1)=no
 6847             ;;
 6848           aCC*)
 6849             _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'
 6850             # Commands to make compiler produce verbose output that lists
 6851             # what "hidden" libraries, object files and flags are used when
 6852             # linking a shared library.
 6853             #
 6854             # There doesn't appear to be a way to prevent this compiler from
 6855             # explicitly linking system object files so we need to strip them
 6856             # from the output so that they don't get included in the library
 6857             # dependencies.
 6858             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"'
 6859             ;;
 6860           *)
 6861             if test yes = "$GXX"; then
 6862               _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'
 6863             else
 6864               # FIXME: insert proper C++ library support
 6865               _LT_TAGVAR(ld_shlibs, $1)=no
 6866             fi
 6867             ;;
 6868         esac
 6869         ;;
 6870 
 6871       hpux10*|hpux11*)
 6872         if test no = "$with_gnu_ld"; then
 6873 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6874 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6875 
 6876           case $host_cpu in
 6877             hppa*64*|ia64*)
 6878               ;;
 6879             *)
 6880 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6881               ;;
 6882           esac
 6883         fi
 6884         case $host_cpu in
 6885           hppa*64*|ia64*)
 6886             _LT_TAGVAR(hardcode_direct, $1)=no
 6887             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6888             ;;
 6889           *)
 6890             _LT_TAGVAR(hardcode_direct, $1)=yes
 6891             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6892             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6893 					         # but as the default
 6894 					         # location of the library.
 6895             ;;
 6896         esac
 6897 
 6898         case $cc_basename in
 6899           CC*)
 6900 	    # FIXME: insert proper C++ library support
 6901 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6902 	    ;;
 6903           aCC*)
 6904 	    case $host_cpu in
 6905 	      hppa*64*)
 6906 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6907 	        ;;
 6908 	      ia64*)
 6909 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6910 	        ;;
 6911 	      *)
 6912 	        _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'
 6913 	        ;;
 6914 	    esac
 6915 	    # Commands to make compiler produce verbose output that lists
 6916 	    # what "hidden" libraries, object files and flags are used when
 6917 	    # linking a shared library.
 6918 	    #
 6919 	    # There doesn't appear to be a way to prevent this compiler from
 6920 	    # explicitly linking system object files so we need to strip them
 6921 	    # from the output so that they don't get included in the library
 6922 	    # dependencies.
 6923 	    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"'
 6924 	    ;;
 6925           *)
 6926 	    if test yes = "$GXX"; then
 6927 	      if test no = "$with_gnu_ld"; then
 6928 	        case $host_cpu in
 6929 	          hppa*64*)
 6930 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6931 	            ;;
 6932 	          ia64*)
 6933 	            _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'
 6934 	            ;;
 6935 	          *)
 6936 	            _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'
 6937 	            ;;
 6938 	        esac
 6939 	      fi
 6940 	    else
 6941 	      # FIXME: insert proper C++ library support
 6942 	      _LT_TAGVAR(ld_shlibs, $1)=no
 6943 	    fi
 6944 	    ;;
 6945         esac
 6946         ;;
 6947 
 6948       interix[[3-9]]*)
 6949 	_LT_TAGVAR(hardcode_direct, $1)=no
 6950 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6951 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 6952 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6953 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 6954 	# Instead, shared libraries are loaded at an image base (0x10000000 by
 6955 	# default) and relocated if they conflict, which is a slow very memory
 6956 	# consuming and fragmenting process.  To avoid this, we pick a random,
 6957 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 6958 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 6959 	_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'
 6960 	_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'
 6961 	;;
 6962       irix5* | irix6*)
 6963         case $cc_basename in
 6964           CC*)
 6965 	    # SGI C++
 6966 	    _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'
 6967 
 6968 	    # Archives containing C++ object files must be created using
 6969 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 6970 	    # necessary to make sure instantiated templates are included
 6971 	    # in the archive.
 6972 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 6973 	    ;;
 6974           *)
 6975 	    if test yes = "$GXX"; then
 6976 	      if test no = "$with_gnu_ld"; then
 6977 	        _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'
 6978 	      else
 6979 	        _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'
 6980 	      fi
 6981 	    fi
 6982 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 6983 	    ;;
 6984         esac
 6985         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 6986         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6987         _LT_TAGVAR(inherit_rpath, $1)=yes
 6988         ;;
 6989 
 6990       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 6991         case $cc_basename in
 6992           KCC*)
 6993 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 6994 
 6995 	    # KCC will only create a shared library if the output file
 6996 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 6997 	    # to its proper name (with version) after linking.
 6998 	    _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'
 6999 	    _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'
 7000 	    # Commands to make compiler produce verbose output that lists
 7001 	    # what "hidden" libraries, object files and flags are used when
 7002 	    # linking a shared library.
 7003 	    #
 7004 	    # There doesn't appear to be a way to prevent this compiler from
 7005 	    # explicitly linking system object files so we need to strip them
 7006 	    # from the output so that they don't get included in the library
 7007 	    # dependencies.
 7008 	    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"'
 7009 
 7010 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7011 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7012 
 7013 	    # Archives containing C++ object files must be created using
 7014 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 7015 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 7016 	    ;;
 7017 	  icpc* | ecpc* )
 7018 	    # Intel C++
 7019 	    with_gnu_ld=yes
 7020 	    # version 8.0 and above of icpc choke on multiply defined symbols
 7021 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
 7022 	    # earlier do not add the objects themselves.
 7023 	    case `$CC -V 2>&1` in
 7024 	      *"Version 7."*)
 7025 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7026 		_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'
 7027 		;;
 7028 	      *)  # Version 8.0 or newer
 7029 	        tmp_idyn=
 7030 	        case $host_cpu in
 7031 		  ia64*) tmp_idyn=' -i_dynamic';;
 7032 		esac
 7033 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 7034 		_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'
 7035 		;;
 7036 	    esac
 7037 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7038 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7039 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7040 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 7041 	    ;;
 7042           pgCC* | pgcpp*)
 7043             # Portland Group C++ compiler
 7044 	    case `$CC -V` in
 7045 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 7046 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 7047                rm -rf $tpldir~
 7048                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 7049                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 7050 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 7051                 rm -rf $tpldir~
 7052                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 7053                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 7054                 $RANLIB $oldlib'
 7055 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 7056                 rm -rf $tpldir~
 7057                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7058                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7059 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 7060                 rm -rf $tpldir~
 7061                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7062                 $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'
 7063 	      ;;
 7064 	    *) # Version 6 and above use weak symbols
 7065 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7066 	      _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'
 7067 	      ;;
 7068 	    esac
 7069 
 7070 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
 7071 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7072 	    _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'
 7073             ;;
 7074 	  cxx*)
 7075 	    # Compaq C++
 7076 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7077 	    _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'
 7078 
 7079 	    runpath_var=LD_RUN_PATH
 7080 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7081 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7082 
 7083 	    # Commands to make compiler produce verbose output that lists
 7084 	    # what "hidden" libraries, object files and flags are used when
 7085 	    # linking a shared library.
 7086 	    #
 7087 	    # There doesn't appear to be a way to prevent this compiler from
 7088 	    # explicitly linking system object files so we need to strip them
 7089 	    # from the output so that they don't get included in the library
 7090 	    # dependencies.
 7091 	    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'
 7092 	    ;;
 7093 	  xl* | mpixl* | bgxl*)
 7094 	    # IBM XL 8.0 on PPC, with GNU ld
 7095 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7096 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7097 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 7098 	    if test yes = "$supports_anon_versioning"; then
 7099 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 7100                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 7101                 echo "local: *; };" >> $output_objdir/$libname.ver~
 7102                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 7103 	    fi
 7104 	    ;;
 7105 	  *)
 7106 	    case `$CC -V 2>&1 | $SED 5q` in
 7107 	    *Sun\ C*)
 7108 	      # Sun C++ 5.9
 7109 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7110 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7111 	      _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'
 7112 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7113 	      _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'
 7114 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
 7115 
 7116 	      # Not sure whether something based on
 7117 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 7118 	      # would be better.
 7119 	      output_verbose_link_cmd='func_echo_all'
 7120 
 7121 	      # Archives containing C++ object files must be created using
 7122 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7123 	      # necessary to make sure instantiated templates are included
 7124 	      # in the archive.
 7125 	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7126 	      ;;
 7127 	    esac
 7128 	    ;;
 7129 	esac
 7130 	;;
 7131 
 7132       lynxos*)
 7133         # FIXME: insert proper C++ library support
 7134 	_LT_TAGVAR(ld_shlibs, $1)=no
 7135 	;;
 7136 
 7137       m88k*)
 7138         # FIXME: insert proper C++ library support
 7139         _LT_TAGVAR(ld_shlibs, $1)=no
 7140 	;;
 7141 
 7142       mvs*)
 7143         case $cc_basename in
 7144           cxx*)
 7145 	    # FIXME: insert proper C++ library support
 7146 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7147 	    ;;
 7148 	  *)
 7149 	    # FIXME: insert proper C++ library support
 7150 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7151 	    ;;
 7152 	esac
 7153 	;;
 7154 
 7155       netbsd*)
 7156         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 7157 	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 7158 	  wlarc=
 7159 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7160 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7161 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7162 	fi
 7163 	# Workaround some broken pre-1.5 toolchains
 7164 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 7165 	;;
 7166 
 7167       *nto* | *qnx*)
 7168         _LT_TAGVAR(ld_shlibs, $1)=yes
 7169 	;;
 7170 
 7171       openbsd* | bitrig*)
 7172 	if test -f /usr/libexec/ld.so; then
 7173 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7174 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7175 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 7176 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 7177 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7178 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 7179 	    _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'
 7180 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 7181 	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 7182 	  fi
 7183 	  output_verbose_link_cmd=func_echo_all
 7184 	else
 7185 	  _LT_TAGVAR(ld_shlibs, $1)=no
 7186 	fi
 7187 	;;
 7188 
 7189       osf3* | osf4* | osf5*)
 7190         case $cc_basename in
 7191           KCC*)
 7192 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 7193 
 7194 	    # KCC will only create a shared library if the output file
 7195 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 7196 	    # to its proper name (with version) after linking.
 7197 	    _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'
 7198 
 7199 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7200 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7201 
 7202 	    # Archives containing C++ object files must be created using
 7203 	    # the KAI C++ compiler.
 7204 	    case $host in
 7205 	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 7206 	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 7207 	    esac
 7208 	    ;;
 7209           RCC*)
 7210 	    # Rational C++ 2.4.1
 7211 	    # FIXME: insert proper C++ library support
 7212 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7213 	    ;;
 7214           cxx*)
 7215 	    case $host in
 7216 	      osf3*)
 7217 	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7218 	        _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'
 7219 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7220 		;;
 7221 	      *)
 7222 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 7223 	        _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'
 7224 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 7225                   echo "-hidden">> $lib.exp~
 7226                   $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~
 7227                   $RM $lib.exp'
 7228 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7229 		;;
 7230 	    esac
 7231 
 7232 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7233 
 7234 	    # Commands to make compiler produce verbose output that lists
 7235 	    # what "hidden" libraries, object files and flags are used when
 7236 	    # linking a shared library.
 7237 	    #
 7238 	    # There doesn't appear to be a way to prevent this compiler from
 7239 	    # explicitly linking system object files so we need to strip them
 7240 	    # from the output so that they don't get included in the library
 7241 	    # dependencies.
 7242 	    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"'
 7243 	    ;;
 7244 	  *)
 7245 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7246 	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7247 	      case $host in
 7248 	        osf3*)
 7249 	          _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'
 7250 		  ;;
 7251 	        *)
 7252 	          _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'
 7253 		  ;;
 7254 	      esac
 7255 
 7256 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7257 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7258 
 7259 	      # Commands to make compiler produce verbose output that lists
 7260 	      # what "hidden" libraries, object files and flags are used when
 7261 	      # linking a shared library.
 7262 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
 7263 
 7264 	    else
 7265 	      # FIXME: insert proper C++ library support
 7266 	      _LT_TAGVAR(ld_shlibs, $1)=no
 7267 	    fi
 7268 	    ;;
 7269         esac
 7270         ;;
 7271 
 7272       psos*)
 7273         # FIXME: insert proper C++ library support
 7274         _LT_TAGVAR(ld_shlibs, $1)=no
 7275         ;;
 7276 
 7277       sunos4*)
 7278         case $cc_basename in
 7279           CC*)
 7280 	    # Sun C++ 4.x
 7281 	    # FIXME: insert proper C++ library support
 7282 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7283 	    ;;
 7284           lcc*)
 7285 	    # Lucid
 7286 	    # FIXME: insert proper C++ library support
 7287 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7288 	    ;;
 7289           *)
 7290 	    # FIXME: insert proper C++ library support
 7291 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7292 	    ;;
 7293         esac
 7294         ;;
 7295 
 7296       solaris*)
 7297         case $cc_basename in
 7298           CC* | sunCC*)
 7299 	    # Sun C++ 4.2, 5.x and Centerline C++
 7300             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 7301 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7302 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7303 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7304               $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'
 7305 
 7306 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7307 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7308 	    case $host_os in
 7309 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7310 	      *)
 7311 		# The compiler driver will combine and reorder linker options,
 7312 		# but understands '-z linker_flag'.
 7313 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
 7314 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 7315 	        ;;
 7316 	    esac
 7317 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 7318 
 7319 	    output_verbose_link_cmd='func_echo_all'
 7320 
 7321 	    # Archives containing C++ object files must be created using
 7322 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7323 	    # necessary to make sure instantiated templates are included
 7324 	    # in the archive.
 7325 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7326 	    ;;
 7327           gcx*)
 7328 	    # Green Hills C++ Compiler
 7329 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7330 
 7331 	    # The C++ compiler must be used to create the archive.
 7332 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 7333 	    ;;
 7334           *)
 7335 	    # GNU C++ compiler with Solaris linker
 7336 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7337 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
 7338 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 7339 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7340 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7341                   $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'
 7342 
 7343 	        # Commands to make compiler produce verbose output that lists
 7344 	        # what "hidden" libraries, object files and flags are used when
 7345 	        # linking a shared library.
 7346 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
 7347 	      else
 7348 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
 7349 	        # platform.
 7350 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 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 -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 7353 
 7354 	        # Commands to make compiler produce verbose output that lists
 7355 	        # what "hidden" libraries, object files and flags are used when
 7356 	        # linking a shared library.
 7357 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
 7358 	      fi
 7359 
 7360 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
 7361 	      case $host_os in
 7362 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7363 		*)
 7364 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 7365 		  ;;
 7366 	      esac
 7367 	    fi
 7368 	    ;;
 7369         esac
 7370         ;;
 7371 
 7372     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 7373       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7374       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7375       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7376       runpath_var='LD_RUN_PATH'
 7377 
 7378       case $cc_basename in
 7379         CC*)
 7380 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7381 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7382 	  ;;
 7383 	*)
 7384 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7385 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7386 	  ;;
 7387       esac
 7388       ;;
 7389 
 7390       sysv5* | sco3.2v5* | sco5v6*)
 7391 	# Note: We CANNOT use -z defs as we might desire, because we do not
 7392 	# link with -lc, and that would cause any symbols used from libc to
 7393 	# always be unresolved, which means just about no library would
 7394 	# ever link correctly.  If we're not using GNU ld we use -z text
 7395 	# though, which does catch some bad symbols but isn't as heavy-handed
 7396 	# as -z defs.
 7397 	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7398 	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 7399 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7400 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7401 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 7402 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 7403 	_LT_TAGVAR(link_all_deplibs, $1)=yes
 7404 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 7405 	runpath_var='LD_RUN_PATH'
 7406 
 7407 	case $cc_basename in
 7408           CC*)
 7409 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7410 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7411 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 7412               '"$_LT_TAGVAR(old_archive_cmds, $1)"
 7413 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 7414               '"$_LT_TAGVAR(reload_cmds, $1)"
 7415 	    ;;
 7416 	  *)
 7417 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7418 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7419 	    ;;
 7420 	esac
 7421       ;;
 7422 
 7423       tandem*)
 7424         case $cc_basename in
 7425           NCC*)
 7426 	    # NonStop-UX NCC 3.20
 7427 	    # FIXME: insert proper C++ library support
 7428 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7429 	    ;;
 7430           *)
 7431 	    # FIXME: insert proper C++ library support
 7432 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7433 	    ;;
 7434         esac
 7435         ;;
 7436 
 7437       vxworks*)
 7438         # FIXME: insert proper C++ library support
 7439         _LT_TAGVAR(ld_shlibs, $1)=no
 7440         ;;
 7441 
 7442       *)
 7443         # FIXME: insert proper C++ library support
 7444         _LT_TAGVAR(ld_shlibs, $1)=no
 7445         ;;
 7446     esac
 7447 
 7448     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 7449     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 7450 
 7451     _LT_TAGVAR(GCC, $1)=$GXX
 7452     _LT_TAGVAR(LD, $1)=$LD
 7453 
 7454     ## CAVEAT EMPTOR:
 7455     ## There is no encapsulation within the following macros, do not change
 7456     ## the running order or otherwise move them around unless you know exactly
 7457     ## what you are doing...
 7458     _LT_SYS_HIDDEN_LIBDEPS($1)
 7459     _LT_COMPILER_PIC($1)
 7460     _LT_COMPILER_C_O($1)
 7461     _LT_COMPILER_FILE_LOCKS($1)
 7462     _LT_LINKER_SHLIBS($1)
 7463     _LT_SYS_DYNAMIC_LINKER($1)
 7464     _LT_LINKER_HARDCODE_LIBPATH($1)
 7465 
 7466     _LT_CONFIG($1)
 7467   fi # test -n "$compiler"
 7468 
 7469   CC=$lt_save_CC
 7470   CFLAGS=$lt_save_CFLAGS
 7471   LDCXX=$LD
 7472   LD=$lt_save_LD
 7473   GCC=$lt_save_GCC
 7474   with_gnu_ld=$lt_save_with_gnu_ld
 7475   lt_cv_path_LDCXX=$lt_cv_path_LD
 7476   lt_cv_path_LD=$lt_save_path_LD
 7477   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 7478   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 7479 fi # test yes != "$_lt_caught_CXX_error"
 7480 
 7481 AC_LANG_POP
 7482 ])# _LT_LANG_CXX_CONFIG
 7483 
 7484 
 7485 # _LT_FUNC_STRIPNAME_CNF
 7486 # ----------------------
 7487 # func_stripname_cnf prefix suffix name
 7488 # strip PREFIX and SUFFIX off of NAME.
 7489 # PREFIX and SUFFIX must not contain globbing or regex special
 7490 # characters, hashes, percent signs, but SUFFIX may contain a leading
 7491 # dot (in which case that matches only a dot).
 7492 #
 7493 # This function is identical to the (non-XSI) version of func_stripname,
 7494 # except this one can be used by m4 code that may be executed by configure,
 7495 # rather than the libtool script.
 7496 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 7497 AC_REQUIRE([_LT_DECL_SED])
 7498 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 7499 func_stripname_cnf ()
 7500 {
 7501   case @S|@2 in
 7502   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
 7503   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
 7504   esac
 7505 } # func_stripname_cnf
 7506 ])# _LT_FUNC_STRIPNAME_CNF
 7507 
 7508 
 7509 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 7510 # ---------------------------------
 7511 # Figure out "hidden" library dependencies from verbose
 7512 # compiler output when linking a shared library.
 7513 # Parse the compiler output and extract the necessary
 7514 # objects, libraries and library flags.
 7515 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 7516 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 7517 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 7518 # Dependencies to place before and after the object being linked:
 7519 _LT_TAGVAR(predep_objects, $1)=
 7520 _LT_TAGVAR(postdep_objects, $1)=
 7521 _LT_TAGVAR(predeps, $1)=
 7522 _LT_TAGVAR(postdeps, $1)=
 7523 _LT_TAGVAR(compiler_lib_search_path, $1)=
 7524 
 7525 dnl we can't use the lt_simple_compile_test_code here,
 7526 dnl because it contains code intended for an executable,
 7527 dnl not a library.  It's possible we should let each
 7528 dnl tag define a new lt_????_link_test_code variable,
 7529 dnl but it's only used here...
 7530 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 7531 int a;
 7532 void foo (void) { a = 0; }
 7533 _LT_EOF
 7534 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 7535 class Foo
 7536 {
 7537 public:
 7538   Foo (void) { a = 0; }
 7539 private:
 7540   int a;
 7541 };
 7542 _LT_EOF
 7543 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 7544       subroutine foo
 7545       implicit none
 7546       integer*4 a
 7547       a=0
 7548       return
 7549       end
 7550 _LT_EOF
 7551 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 7552       subroutine foo
 7553       implicit none
 7554       integer a
 7555       a=0
 7556       return
 7557       end
 7558 _LT_EOF
 7559 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 7560 public class foo {
 7561   private int a;
 7562   public void bar (void) {
 7563     a = 0;
 7564   }
 7565 };
 7566 _LT_EOF
 7567 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 7568 package foo
 7569 func foo() {
 7570 }
 7571 _LT_EOF
 7572 ])
 7573 
 7574 _lt_libdeps_save_CFLAGS=$CFLAGS
 7575 case "$CC $CFLAGS " in #(
 7576 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 7577 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 7578 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 7579 esac
 7580 
 7581 dnl Parse the compiler output and extract the necessary
 7582 dnl objects, libraries and library flags.
 7583 if AC_TRY_EVAL(ac_compile); then
 7584   # Parse the compiler output and extract the necessary
 7585   # objects, libraries and library flags.
 7586 
 7587   # Sentinel used to keep track of whether or not we are before
 7588   # the conftest object file.
 7589   pre_test_object_deps_done=no
 7590 
 7591   for p in `eval "$output_verbose_link_cmd"`; do
 7592     case $prev$p in
 7593 
 7594     -L* | -R* | -l*)
 7595        # Some compilers place space between "-{L,R}" and the path.
 7596        # Remove the space.
 7597        if test x-L = "$p" ||
 7598           test x-R = "$p"; then
 7599 	 prev=$p
 7600 	 continue
 7601        fi
 7602 
 7603        # Expand the sysroot to ease extracting the directories later.
 7604        if test -z "$prev"; then
 7605          case $p in
 7606          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 7607          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 7608          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 7609          esac
 7610        fi
 7611        case $p in
 7612        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 7613        esac
 7614        if test no = "$pre_test_object_deps_done"; then
 7615 	 case $prev in
 7616 	 -L | -R)
 7617 	   # Internal compiler library paths should come after those
 7618 	   # provided the user.  The postdeps already come after the
 7619 	   # user supplied libs so there is no need to process them.
 7620 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 7621 	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
 7622 	   else
 7623 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
 7624 	   fi
 7625 	   ;;
 7626 	 # The "-l" case would never come before the object being
 7627 	 # linked, so don't bother handling this case.
 7628 	 esac
 7629        else
 7630 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 7631 	   _LT_TAGVAR(postdeps, $1)=$prev$p
 7632 	 else
 7633 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
 7634 	 fi
 7635        fi
 7636        prev=
 7637        ;;
 7638 
 7639     *.lto.$objext) ;; # Ignore GCC LTO objects
 7640     *.$objext)
 7641        # This assumes that the test object file only shows up
 7642        # once in the compiler output.
 7643        if test "$p" = "conftest.$objext"; then
 7644 	 pre_test_object_deps_done=yes
 7645 	 continue
 7646        fi
 7647 
 7648        if test no = "$pre_test_object_deps_done"; then
 7649 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 7650 	   _LT_TAGVAR(predep_objects, $1)=$p
 7651 	 else
 7652 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 7653 	 fi
 7654        else
 7655 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 7656 	   _LT_TAGVAR(postdep_objects, $1)=$p
 7657 	 else
 7658 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 7659 	 fi
 7660        fi
 7661        ;;
 7662 
 7663     *) ;; # Ignore the rest.
 7664 
 7665     esac
 7666   done
 7667 
 7668   # Clean up.
 7669   rm -f a.out a.exe
 7670 else
 7671   echo "libtool.m4: error: problem compiling $1 test program"
 7672 fi
 7673 
 7674 $RM -f confest.$objext
 7675 CFLAGS=$_lt_libdeps_save_CFLAGS
 7676 
 7677 # PORTME: override above test on systems where it is broken
 7678 m4_if([$1], [CXX],
 7679 [case $host_os in
 7680 interix[[3-9]]*)
 7681   # Interix 3.5 installs completely hosed .la files for C++, so rather than
 7682   # hack all around it, let's just trust "g++" to DTRT.
 7683   _LT_TAGVAR(predep_objects,$1)=
 7684   _LT_TAGVAR(postdep_objects,$1)=
 7685   _LT_TAGVAR(postdeps,$1)=
 7686   ;;
 7687 esac
 7688 ])
 7689 
 7690 case " $_LT_TAGVAR(postdeps, $1) " in
 7691 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 7692 esac
 7693  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 7694 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 7695  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
 7696 fi
 7697 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 7698     [The directories searched by this compiler when creating a shared library])
 7699 _LT_TAGDECL([], [predep_objects], [1],
 7700     [Dependencies to place before and after the objects being linked to
 7701     create a shared library])
 7702 _LT_TAGDECL([], [postdep_objects], [1])
 7703 _LT_TAGDECL([], [predeps], [1])
 7704 _LT_TAGDECL([], [postdeps], [1])
 7705 _LT_TAGDECL([], [compiler_lib_search_path], [1],
 7706     [The library search path used internally by the compiler when linking
 7707     a shared library])
 7708 ])# _LT_SYS_HIDDEN_LIBDEPS
 7709 
 7710 
 7711 # _LT_LANG_F77_CONFIG([TAG])
 7712 # --------------------------
 7713 # Ensure that the configuration variables for a Fortran 77 compiler are
 7714 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7715 # to write the compiler configuration to 'libtool'.
 7716 m4_defun([_LT_LANG_F77_CONFIG],
 7717 [AC_LANG_PUSH(Fortran 77)
 7718 if test -z "$F77" || test no = "$F77"; then
 7719   _lt_disable_F77=yes
 7720 fi
 7721 
 7722 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7723 _LT_TAGVAR(allow_undefined_flag, $1)=
 7724 _LT_TAGVAR(always_export_symbols, $1)=no
 7725 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7726 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7727 _LT_TAGVAR(hardcode_direct, $1)=no
 7728 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7730 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7731 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7732 _LT_TAGVAR(hardcode_automatic, $1)=no
 7733 _LT_TAGVAR(inherit_rpath, $1)=no
 7734 _LT_TAGVAR(module_cmds, $1)=
 7735 _LT_TAGVAR(module_expsym_cmds, $1)=
 7736 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7737 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7738 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7739 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7740 _LT_TAGVAR(no_undefined_flag, $1)=
 7741 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7742 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7743 
 7744 # Source file extension for f77 test sources.
 7745 ac_ext=f
 7746 
 7747 # Object file extension for compiled f77 test sources.
 7748 objext=o
 7749 _LT_TAGVAR(objext, $1)=$objext
 7750 
 7751 # No sense in running all these tests if we already determined that
 7752 # the F77 compiler isn't working.  Some variables (like enable_shared)
 7753 # are currently assumed to apply to all compilers on this platform,
 7754 # and will be corrupted by setting them based on a non-working compiler.
 7755 if test yes != "$_lt_disable_F77"; then
 7756   # Code to be used in simple compile tests
 7757   lt_simple_compile_test_code="\
 7758       subroutine t
 7759       return
 7760       end
 7761 "
 7762 
 7763   # Code to be used in simple link tests
 7764   lt_simple_link_test_code="\
 7765       program t
 7766       end
 7767 "
 7768 
 7769   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7770   _LT_TAG_COMPILER
 7771 
 7772   # save warnings/boilerplate of simple test code
 7773   _LT_COMPILER_BOILERPLATE
 7774   _LT_LINKER_BOILERPLATE
 7775 
 7776   # Allow CC to be a program name with arguments.
 7777   lt_save_CC=$CC
 7778   lt_save_GCC=$GCC
 7779   lt_save_CFLAGS=$CFLAGS
 7780   CC=${F77-"f77"}
 7781   CFLAGS=$FFLAGS
 7782   compiler=$CC
 7783   _LT_TAGVAR(compiler, $1)=$CC
 7784   _LT_CC_BASENAME([$compiler])
 7785   GCC=$G77
 7786   if test -n "$compiler"; then
 7787     AC_MSG_CHECKING([if libtool supports shared libraries])
 7788     AC_MSG_RESULT([$can_build_shared])
 7789 
 7790     AC_MSG_CHECKING([whether to build shared libraries])
 7791     test no = "$can_build_shared" && enable_shared=no
 7792 
 7793     # On AIX, shared libraries and static libraries use the same namespace, and
 7794     # are all built from PIC.
 7795     case $host_os in
 7796       aix3*)
 7797         test yes = "$enable_shared" && enable_static=no
 7798         if test -n "$RANLIB"; then
 7799           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7800           postinstall_cmds='$RANLIB $lib'
 7801         fi
 7802         ;;
 7803       aix[[4-9]]*)
 7804 	if test ia64 != "$host_cpu"; then
 7805 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7806 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7807 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7808 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7809 	  esac
 7810 	fi
 7811         ;;
 7812     esac
 7813     AC_MSG_RESULT([$enable_shared])
 7814 
 7815     AC_MSG_CHECKING([whether to build static libraries])
 7816     # Make sure either enable_shared or enable_static is yes.
 7817     test yes = "$enable_shared" || enable_static=yes
 7818     AC_MSG_RESULT([$enable_static])
 7819 
 7820     _LT_TAGVAR(GCC, $1)=$G77
 7821     _LT_TAGVAR(LD, $1)=$LD
 7822 
 7823     ## CAVEAT EMPTOR:
 7824     ## There is no encapsulation within the following macros, do not change
 7825     ## the running order or otherwise move them around unless you know exactly
 7826     ## what you are doing...
 7827     _LT_COMPILER_PIC($1)
 7828     _LT_COMPILER_C_O($1)
 7829     _LT_COMPILER_FILE_LOCKS($1)
 7830     _LT_LINKER_SHLIBS($1)
 7831     _LT_SYS_DYNAMIC_LINKER($1)
 7832     _LT_LINKER_HARDCODE_LIBPATH($1)
 7833 
 7834     _LT_CONFIG($1)
 7835   fi # test -n "$compiler"
 7836 
 7837   GCC=$lt_save_GCC
 7838   CC=$lt_save_CC
 7839   CFLAGS=$lt_save_CFLAGS
 7840 fi # test yes != "$_lt_disable_F77"
 7841 
 7842 AC_LANG_POP
 7843 ])# _LT_LANG_F77_CONFIG
 7844 
 7845 
 7846 # _LT_LANG_FC_CONFIG([TAG])
 7847 # -------------------------
 7848 # Ensure that the configuration variables for a Fortran compiler are
 7849 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7850 # to write the compiler configuration to 'libtool'.
 7851 m4_defun([_LT_LANG_FC_CONFIG],
 7852 [AC_LANG_PUSH(Fortran)
 7853 
 7854 if test -z "$FC" || test no = "$FC"; then
 7855   _lt_disable_FC=yes
 7856 fi
 7857 
 7858 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7859 _LT_TAGVAR(allow_undefined_flag, $1)=
 7860 _LT_TAGVAR(always_export_symbols, $1)=no
 7861 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7862 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7863 _LT_TAGVAR(hardcode_direct, $1)=no
 7864 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7866 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7867 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7868 _LT_TAGVAR(hardcode_automatic, $1)=no
 7869 _LT_TAGVAR(inherit_rpath, $1)=no
 7870 _LT_TAGVAR(module_cmds, $1)=
 7871 _LT_TAGVAR(module_expsym_cmds, $1)=
 7872 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7873 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7874 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7875 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7876 _LT_TAGVAR(no_undefined_flag, $1)=
 7877 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7878 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7879 
 7880 # Source file extension for fc test sources.
 7881 ac_ext=${ac_fc_srcext-f}
 7882 
 7883 # Object file extension for compiled fc test sources.
 7884 objext=o
 7885 _LT_TAGVAR(objext, $1)=$objext
 7886 
 7887 # No sense in running all these tests if we already determined that
 7888 # the FC compiler isn't working.  Some variables (like enable_shared)
 7889 # are currently assumed to apply to all compilers on this platform,
 7890 # and will be corrupted by setting them based on a non-working compiler.
 7891 if test yes != "$_lt_disable_FC"; then
 7892   # Code to be used in simple compile tests
 7893   lt_simple_compile_test_code="\
 7894       subroutine t
 7895       return
 7896       end
 7897 "
 7898 
 7899   # Code to be used in simple link tests
 7900   lt_simple_link_test_code="\
 7901       program t
 7902       end
 7903 "
 7904 
 7905   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7906   _LT_TAG_COMPILER
 7907 
 7908   # save warnings/boilerplate of simple test code
 7909   _LT_COMPILER_BOILERPLATE
 7910   _LT_LINKER_BOILERPLATE
 7911 
 7912   # Allow CC to be a program name with arguments.
 7913   lt_save_CC=$CC
 7914   lt_save_GCC=$GCC
 7915   lt_save_CFLAGS=$CFLAGS
 7916   CC=${FC-"f95"}
 7917   CFLAGS=$FCFLAGS
 7918   compiler=$CC
 7919   GCC=$ac_cv_fc_compiler_gnu
 7920 
 7921   _LT_TAGVAR(compiler, $1)=$CC
 7922   _LT_CC_BASENAME([$compiler])
 7923 
 7924   if test -n "$compiler"; then
 7925     AC_MSG_CHECKING([if libtool supports shared libraries])
 7926     AC_MSG_RESULT([$can_build_shared])
 7927 
 7928     AC_MSG_CHECKING([whether to build shared libraries])
 7929     test no = "$can_build_shared" && enable_shared=no
 7930 
 7931     # On AIX, shared libraries and static libraries use the same namespace, and
 7932     # are all built from PIC.
 7933     case $host_os in
 7934       aix3*)
 7935         test yes = "$enable_shared" && enable_static=no
 7936         if test -n "$RANLIB"; then
 7937           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7938           postinstall_cmds='$RANLIB $lib'
 7939         fi
 7940         ;;
 7941       aix[[4-9]]*)
 7942 	if test ia64 != "$host_cpu"; then
 7943 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7944 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7945 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7946 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7947 	  esac
 7948 	fi
 7949         ;;
 7950     esac
 7951     AC_MSG_RESULT([$enable_shared])
 7952 
 7953     AC_MSG_CHECKING([whether to build static libraries])
 7954     # Make sure either enable_shared or enable_static is yes.
 7955     test yes = "$enable_shared" || enable_static=yes
 7956     AC_MSG_RESULT([$enable_static])
 7957 
 7958     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
 7959     _LT_TAGVAR(LD, $1)=$LD
 7960 
 7961     ## CAVEAT EMPTOR:
 7962     ## There is no encapsulation within the following macros, do not change
 7963     ## the running order or otherwise move them around unless you know exactly
 7964     ## what you are doing...
 7965     _LT_SYS_HIDDEN_LIBDEPS($1)
 7966     _LT_COMPILER_PIC($1)
 7967     _LT_COMPILER_C_O($1)
 7968     _LT_COMPILER_FILE_LOCKS($1)
 7969     _LT_LINKER_SHLIBS($1)
 7970     _LT_SYS_DYNAMIC_LINKER($1)
 7971     _LT_LINKER_HARDCODE_LIBPATH($1)
 7972 
 7973     _LT_CONFIG($1)
 7974   fi # test -n "$compiler"
 7975 
 7976   GCC=$lt_save_GCC
 7977   CC=$lt_save_CC
 7978   CFLAGS=$lt_save_CFLAGS
 7979 fi # test yes != "$_lt_disable_FC"
 7980 
 7981 AC_LANG_POP
 7982 ])# _LT_LANG_FC_CONFIG
 7983 
 7984 
 7985 # _LT_LANG_GCJ_CONFIG([TAG])
 7986 # --------------------------
 7987 # Ensure that the configuration variables for the GNU Java Compiler compiler
 7988 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 7989 # to write the compiler configuration to 'libtool'.
 7990 m4_defun([_LT_LANG_GCJ_CONFIG],
 7991 [AC_REQUIRE([LT_PROG_GCJ])dnl
 7992 AC_LANG_SAVE
 7993 
 7994 # Source file extension for Java test sources.
 7995 ac_ext=java
 7996 
 7997 # Object file extension for compiled Java test sources.
 7998 objext=o
 7999 _LT_TAGVAR(objext, $1)=$objext
 8000 
 8001 # Code to be used in simple compile tests
 8002 lt_simple_compile_test_code="class foo {}"
 8003 
 8004 # Code to be used in simple link tests
 8005 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 8006 
 8007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8008 _LT_TAG_COMPILER
 8009 
 8010 # save warnings/boilerplate of simple test code
 8011 _LT_COMPILER_BOILERPLATE
 8012 _LT_LINKER_BOILERPLATE
 8013 
 8014 # Allow CC to be a program name with arguments.
 8015 lt_save_CC=$CC
 8016 lt_save_CFLAGS=$CFLAGS
 8017 lt_save_GCC=$GCC
 8018 GCC=yes
 8019 CC=${GCJ-"gcj"}
 8020 CFLAGS=$GCJFLAGS
 8021 compiler=$CC
 8022 _LT_TAGVAR(compiler, $1)=$CC
 8023 _LT_TAGVAR(LD, $1)=$LD
 8024 _LT_CC_BASENAME([$compiler])
 8025 
 8026 # GCJ did not exist at the time GCC didn't implicitly link libc in.
 8027 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 8028 
 8029 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 8030 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 8031 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 8032 
 8033 if test -n "$compiler"; then
 8034   _LT_COMPILER_NO_RTTI($1)
 8035   _LT_COMPILER_PIC($1)
 8036   _LT_COMPILER_C_O($1)
 8037   _LT_COMPILER_FILE_LOCKS($1)
 8038   _LT_LINKER_SHLIBS($1)
 8039   _LT_LINKER_HARDCODE_LIBPATH($1)
 8040 
 8041   _LT_CONFIG($1)
 8042 fi
 8043 
 8044 AC_LANG_RESTORE
 8045 
 8046 GCC=$lt_save_GCC
 8047 CC=$lt_save_CC
 8048 CFLAGS=$lt_save_CFLAGS
 8049 ])# _LT_LANG_GCJ_CONFIG
 8050 
 8051 
 8052 # _LT_LANG_GO_CONFIG([TAG])
 8053 # --------------------------
 8054 # Ensure that the configuration variables for the GNU Go compiler
 8055 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8056 # to write the compiler configuration to 'libtool'.
 8057 m4_defun([_LT_LANG_GO_CONFIG],
 8058 [AC_REQUIRE([LT_PROG_GO])dnl
 8059 AC_LANG_SAVE
 8060 
 8061 # Source file extension for Go test sources.
 8062 ac_ext=go
 8063 
 8064 # Object file extension for compiled Go test sources.
 8065 objext=o
 8066 _LT_TAGVAR(objext, $1)=$objext
 8067 
 8068 # Code to be used in simple compile tests
 8069 lt_simple_compile_test_code="package main; func main() { }"
 8070 
 8071 # Code to be used in simple link tests
 8072 lt_simple_link_test_code='package main; func main() { }'
 8073 
 8074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8075 _LT_TAG_COMPILER
 8076 
 8077 # save warnings/boilerplate of simple test code
 8078 _LT_COMPILER_BOILERPLATE
 8079 _LT_LINKER_BOILERPLATE
 8080 
 8081 # Allow CC to be a program name with arguments.
 8082 lt_save_CC=$CC
 8083 lt_save_CFLAGS=$CFLAGS
 8084 lt_save_GCC=$GCC
 8085 GCC=yes
 8086 CC=${GOC-"gccgo"}
 8087 CFLAGS=$GOFLAGS
 8088 compiler=$CC
 8089 _LT_TAGVAR(compiler, $1)=$CC
 8090 _LT_TAGVAR(LD, $1)=$LD
 8091 _LT_CC_BASENAME([$compiler])
 8092 
 8093 # Go did not exist at the time GCC didn't implicitly link libc in.
 8094 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 8095 
 8096 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 8097 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 8098 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 8099 
 8100 if test -n "$compiler"; then
 8101   _LT_COMPILER_NO_RTTI($1)
 8102   _LT_COMPILER_PIC($1)
 8103   _LT_COMPILER_C_O($1)
 8104   _LT_COMPILER_FILE_LOCKS($1)
 8105   _LT_LINKER_SHLIBS($1)
 8106   _LT_LINKER_HARDCODE_LIBPATH($1)
 8107 
 8108   _LT_CONFIG($1)
 8109 fi
 8110 
 8111 AC_LANG_RESTORE
 8112 
 8113 GCC=$lt_save_GCC
 8114 CC=$lt_save_CC
 8115 CFLAGS=$lt_save_CFLAGS
 8116 ])# _LT_LANG_GO_CONFIG
 8117 
 8118 
 8119 # _LT_LANG_RC_CONFIG([TAG])
 8120 # -------------------------
 8121 # Ensure that the configuration variables for the Windows resource compiler
 8122 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8123 # to write the compiler configuration to 'libtool'.
 8124 m4_defun([_LT_LANG_RC_CONFIG],
 8125 [AC_REQUIRE([LT_PROG_RC])dnl
 8126 AC_LANG_SAVE
 8127 
 8128 # Source file extension for RC test sources.
 8129 ac_ext=rc
 8130 
 8131 # Object file extension for compiled RC test sources.
 8132 objext=o
 8133 _LT_TAGVAR(objext, $1)=$objext
 8134 
 8135 # Code to be used in simple compile tests
 8136 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 8137 
 8138 # Code to be used in simple link tests
 8139 lt_simple_link_test_code=$lt_simple_compile_test_code
 8140 
 8141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8142 _LT_TAG_COMPILER
 8143 
 8144 # save warnings/boilerplate of simple test code
 8145 _LT_COMPILER_BOILERPLATE
 8146 _LT_LINKER_BOILERPLATE
 8147 
 8148 # Allow CC to be a program name with arguments.
 8149 lt_save_CC=$CC
 8150 lt_save_CFLAGS=$CFLAGS
 8151 lt_save_GCC=$GCC
 8152 GCC=
 8153 CC=${RC-"windres"}
 8154 CFLAGS=
 8155 compiler=$CC
 8156 _LT_TAGVAR(compiler, $1)=$CC
 8157 _LT_CC_BASENAME([$compiler])
 8158 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 8159 
 8160 if test -n "$compiler"; then
 8161   :
 8162   _LT_CONFIG($1)
 8163 fi
 8164 
 8165 GCC=$lt_save_GCC
 8166 AC_LANG_RESTORE
 8167 CC=$lt_save_CC
 8168 CFLAGS=$lt_save_CFLAGS
 8169 ])# _LT_LANG_RC_CONFIG
 8170 
 8171 
 8172 # LT_PROG_GCJ
 8173 # -----------
 8174 AC_DEFUN([LT_PROG_GCJ],
 8175 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 8176   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 8177     [AC_CHECK_TOOL(GCJ, gcj,)
 8178       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
 8179       AC_SUBST(GCJFLAGS)])])[]dnl
 8180 ])
 8181 
 8182 # Old name:
 8183 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 8184 dnl aclocal-1.4 backwards compatibility:
 8185 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 8186 
 8187 
 8188 # LT_PROG_GO
 8189 # ----------
 8190 AC_DEFUN([LT_PROG_GO],
 8191 [AC_CHECK_TOOL(GOC, gccgo,)
 8192 ])
 8193 
 8194 
 8195 # LT_PROG_RC
 8196 # ----------
 8197 AC_DEFUN([LT_PROG_RC],
 8198 [AC_CHECK_TOOL(RC, windres,)
 8199 ])
 8200 
 8201 # Old name:
 8202 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 8203 dnl aclocal-1.4 backwards compatibility:
 8204 dnl AC_DEFUN([LT_AC_PROG_RC], [])
 8205 
 8206 
 8207 # _LT_DECL_EGREP
 8208 # --------------
 8209 # If we don't have a new enough Autoconf to choose the best grep
 8210 # available, choose the one first in the user's PATH.
 8211 m4_defun([_LT_DECL_EGREP],
 8212 [AC_REQUIRE([AC_PROG_EGREP])dnl
 8213 AC_REQUIRE([AC_PROG_FGREP])dnl
 8214 test -z "$GREP" && GREP=grep
 8215 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 8216 _LT_DECL([], [EGREP], [1], [An ERE matcher])
 8217 _LT_DECL([], [FGREP], [1], [A literal string matcher])
 8218 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 8219 AC_SUBST([GREP])
 8220 ])
 8221 
 8222 
 8223 # _LT_DECL_OBJDUMP
 8224 # --------------
 8225 # If we don't have a new enough Autoconf to choose the best objdump
 8226 # available, choose the one first in the user's PATH.
 8227 m4_defun([_LT_DECL_OBJDUMP],
 8228 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
 8229 test -z "$OBJDUMP" && OBJDUMP=objdump
 8230 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 8231 AC_SUBST([OBJDUMP])
 8232 ])
 8233 
 8234 # _LT_DECL_DLLTOOL
 8235 # ----------------
 8236 # Ensure DLLTOOL variable is set.
 8237 m4_defun([_LT_DECL_DLLTOOL],
 8238 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 8239 test -z "$DLLTOOL" && DLLTOOL=dlltool
 8240 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 8241 AC_SUBST([DLLTOOL])
 8242 ])
 8243 
 8244 # _LT_DECL_FILECMD
 8245 # ----------------
 8246 # Check for a file(cmd) program that can be used to detect file type and magic
 8247 m4_defun([_LT_DECL_FILECMD],
 8248 [AC_CHECK_TOOL([FILECMD], [file], [:])
 8249 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
 8250 ])# _LD_DECL_FILECMD
 8251 
 8252 # _LT_DECL_SED
 8253 # ------------
 8254 # Check for a fully-functional sed program, that truncates
 8255 # as few characters as possible.  Prefer GNU sed if found.
 8256 m4_defun([_LT_DECL_SED],
 8257 [AC_PROG_SED
 8258 test -z "$SED" && SED=sed
 8259 Xsed="$SED -e 1s/^X//"
 8260 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 8261 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 8262     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 8263 ])# _LT_DECL_SED
 8264 
 8265 m4_ifndef([AC_PROG_SED], [
 8266 # NOTE: This macro has been submitted for inclusion into   #
 8267 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 8268 #  a released version of Autoconf we should remove this    #
 8269 #  macro and use it instead.                               #
 8270 
 8271 m4_defun([AC_PROG_SED],
 8272 [AC_MSG_CHECKING([for a sed that does not truncate output])
 8273 AC_CACHE_VAL(lt_cv_path_SED,
 8274 [# Loop through the user's path and test for sed and gsed.
 8275 # Then use that list of sed's as ones to test for truncation.
 8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8277 for as_dir in $PATH
 8278 do
 8279   IFS=$as_save_IFS
 8280   test -z "$as_dir" && as_dir=.
 8281   for lt_ac_prog in sed gsed; do
 8282     for ac_exec_ext in '' $ac_executable_extensions; do
 8283       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 8284         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 8285       fi
 8286     done
 8287   done
 8288 done
 8289 IFS=$as_save_IFS
 8290 lt_ac_max=0
 8291 lt_ac_count=0
 8292 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 8293 # along with /bin/sed that truncates output.
 8294 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 8295   test ! -f "$lt_ac_sed" && continue
 8296   cat /dev/null > conftest.in
 8297   lt_ac_count=0
 8298   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 8299   # Check for GNU sed and select it if it is found.
 8300   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 8301     lt_cv_path_SED=$lt_ac_sed
 8302     break
 8303   fi
 8304   while true; do
 8305     cat conftest.in conftest.in >conftest.tmp
 8306     mv conftest.tmp conftest.in
 8307     cp conftest.in conftest.nl
 8308     echo >>conftest.nl
 8309     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 8310     cmp -s conftest.out conftest.nl || break
 8311     # 10000 chars as input seems more than enough
 8312     test 10 -lt "$lt_ac_count" && break
 8313     lt_ac_count=`expr $lt_ac_count + 1`
 8314     if test "$lt_ac_count" -gt "$lt_ac_max"; then
 8315       lt_ac_max=$lt_ac_count
 8316       lt_cv_path_SED=$lt_ac_sed
 8317     fi
 8318   done
 8319 done
 8320 ])
 8321 SED=$lt_cv_path_SED
 8322 AC_SUBST([SED])
 8323 AC_MSG_RESULT([$SED])
 8324 ])#AC_PROG_SED
 8325 ])#m4_ifndef
 8326 
 8327 # Old name:
 8328 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 8329 dnl aclocal-1.4 backwards compatibility:
 8330 dnl AC_DEFUN([LT_AC_PROG_SED], [])
 8331 
 8332 
 8333 # _LT_CHECK_SHELL_FEATURES
 8334 # ------------------------
 8335 # Find out whether the shell is Bourne or XSI compatible,
 8336 # or has some other useful features.
 8337 m4_defun([_LT_CHECK_SHELL_FEATURES],
 8338 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 8339   lt_unset=unset
 8340 else
 8341   lt_unset=false
 8342 fi
 8343 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 8344 
 8345 # test EBCDIC or ASCII
 8346 case `echo X|tr X '\101'` in
 8347  A) # ASCII based system
 8348     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 8349   lt_SP2NL='tr \040 \012'
 8350   lt_NL2SP='tr \015\012 \040\040'
 8351   ;;
 8352  *) # EBCDIC based system
 8353   lt_SP2NL='tr \100 \n'
 8354   lt_NL2SP='tr \r\n \100\100'
 8355   ;;
 8356 esac
 8357 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 8358 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 8359 ])# _LT_CHECK_SHELL_FEATURES
 8360 
 8361 
 8362 # _LT_PATH_CONVERSION_FUNCTIONS
 8363 # -----------------------------
 8364 # Determine what file name conversion functions should be used by
 8365 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 8366 # for certain cross-compile configurations and native mingw.
 8367 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 8368 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 8369 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 8370 AC_MSG_CHECKING([how to convert $build file names to $host format])
 8371 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 8372 [case $host in
 8373   *-*-mingw* )
 8374     case $build in
 8375       *-*-mingw* ) # actually msys
 8376         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 8377         ;;
 8378       *-*-cygwin* )
 8379         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 8380         ;;
 8381       * ) # otherwise, assume *nix
 8382         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 8383         ;;
 8384     esac
 8385     ;;
 8386   *-*-cygwin* )
 8387     case $build in
 8388       *-*-mingw* ) # actually msys
 8389         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 8390         ;;
 8391       *-*-cygwin* )
 8392         lt_cv_to_host_file_cmd=func_convert_file_noop
 8393         ;;
 8394       * ) # otherwise, assume *nix
 8395         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 8396         ;;
 8397     esac
 8398     ;;
 8399   * ) # unhandled hosts (and "normal" native builds)
 8400     lt_cv_to_host_file_cmd=func_convert_file_noop
 8401     ;;
 8402 esac
 8403 ])
 8404 to_host_file_cmd=$lt_cv_to_host_file_cmd
 8405 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 8406 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 8407          [0], [convert $build file names to $host format])dnl
 8408 
 8409 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 8410 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 8411 [#assume ordinary cross tools, or native build.
 8412 lt_cv_to_tool_file_cmd=func_convert_file_noop
 8413 case $host in
 8414   *-*-mingw* )
 8415     case $build in
 8416       *-*-mingw* ) # actually msys
 8417         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 8418         ;;
 8419     esac
 8420     ;;
 8421 esac
 8422 ])
 8423 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 8424 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 8425 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 8426          [0], [convert $build files to toolchain format])dnl
 8427 ])# _LT_PATH_CONVERSION_FUNCTIONS
 8428 
 8429 # Helper functions for option handling.                    -*- Autoconf -*-
 8430 #
 8431 #   Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
 8432 #   Software Foundation, Inc.
 8433 #   Written by Gary V. Vaughan, 2004
 8434 #
 8435 # This file is free software; the Free Software Foundation gives
 8436 # unlimited permission to copy and/or distribute it, with or without
 8437 # modifications, as long as this notice is preserved.
 8438 
 8439 # serial 8 ltoptions.m4
 8440 
 8441 # This is to help aclocal find these macros, as it can't see m4_define.
 8442 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 8443 
 8444 
 8445 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 8446 # ------------------------------------------
 8447 m4_define([_LT_MANGLE_OPTION],
 8448 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 8449 
 8450 
 8451 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 8452 # ---------------------------------------
 8453 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 8454 # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 8455 # saved as a flag.
 8456 m4_define([_LT_SET_OPTION],
 8457 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 8458 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 8459         _LT_MANGLE_DEFUN([$1], [$2]),
 8460     [m4_warning([Unknown $1 option '$2'])])[]dnl
 8461 ])
 8462 
 8463 
 8464 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 8465 # ------------------------------------------------------------
 8466 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 8467 m4_define([_LT_IF_OPTION],
 8468 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 8469 
 8470 
 8471 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 8472 # -------------------------------------------------------
 8473 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 8474 # are set.
 8475 m4_define([_LT_UNLESS_OPTIONS],
 8476 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 8477 	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 8478 		      [m4_define([$0_found])])])[]dnl
 8479 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 8480 ])[]dnl
 8481 ])
 8482 
 8483 
 8484 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 8485 # ----------------------------------------
 8486 # OPTION-LIST is a space-separated list of Libtool options associated
 8487 # with MACRO-NAME.  If any OPTION has a matching handler declared with
 8488 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 8489 # the unknown option and exit.
 8490 m4_defun([_LT_SET_OPTIONS],
 8491 [# Set options
 8492 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 8493     [_LT_SET_OPTION([$1], _LT_Option)])
 8494 
 8495 m4_if([$1],[LT_INIT],[
 8496   dnl
 8497   dnl Simply set some default values (i.e off) if boolean options were not
 8498   dnl specified:
 8499   _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 8500   ])
 8501   _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 8502   ])
 8503   dnl
 8504   dnl If no reference was made to various pairs of opposing options, then
 8505   dnl we run the default mode handler for the pair.  For example, if neither
 8506   dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
 8507   dnl archives by default:
 8508   _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 8509   _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 8510   _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 8511   _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 8512 		   [_LT_ENABLE_FAST_INSTALL])
 8513   _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
 8514 		   [_LT_WITH_AIX_SONAME([aix])])
 8515   ])
 8516 ])# _LT_SET_OPTIONS
 8517 
 8518 
 8519 
 8520 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 8521 # -----------------------------------------
 8522 m4_define([_LT_MANGLE_DEFUN],
 8523 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 8524 
 8525 
 8526 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 8527 # -----------------------------------------------
 8528 m4_define([LT_OPTION_DEFINE],
 8529 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 8530 ])# LT_OPTION_DEFINE
 8531 
 8532 
 8533 # dlopen
 8534 # ------
 8535 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 8536 ])
 8537 
 8538 AU_DEFUN([AC_LIBTOOL_DLOPEN],
 8539 [_LT_SET_OPTION([LT_INIT], [dlopen])
 8540 AC_DIAGNOSE([obsolete],
 8541 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8542 put the 'dlopen' option into LT_INIT's first parameter.])
 8543 ])
 8544 
 8545 dnl aclocal-1.4 backwards compatibility:
 8546 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 8547 
 8548 
 8549 # win32-dll
 8550 # ---------
 8551 # Declare package support for building win32 dll's.
 8552 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 8553 [enable_win32_dll=yes
 8554 
 8555 case $host in
 8556 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 8557   AC_CHECK_TOOL(AS, as, false)
 8558   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 8559   AC_CHECK_TOOL(OBJDUMP, objdump, false)
 8560   ;;
 8561 esac
 8562 
 8563 test -z "$AS" && AS=as
 8564 _LT_DECL([], [AS],      [1], [Assembler program])dnl
 8565 
 8566 test -z "$DLLTOOL" && DLLTOOL=dlltool
 8567 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 8568 
 8569 test -z "$OBJDUMP" && OBJDUMP=objdump
 8570 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 8571 ])# win32-dll
 8572 
 8573 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 8574 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 8575 _LT_SET_OPTION([LT_INIT], [win32-dll])
 8576 AC_DIAGNOSE([obsolete],
 8577 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8578 put the 'win32-dll' option into LT_INIT's first parameter.])
 8579 ])
 8580 
 8581 dnl aclocal-1.4 backwards compatibility:
 8582 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 8583 
 8584 
 8585 # _LT_ENABLE_SHARED([DEFAULT])
 8586 # ----------------------------
 8587 # implement the --enable-shared flag, and supports the 'shared' and
 8588 # 'disable-shared' LT_INIT options.
 8589 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8590 m4_define([_LT_ENABLE_SHARED],
 8591 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8592 AC_ARG_ENABLE([shared],
 8593     [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 8594 	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 8595     [p=${PACKAGE-default}
 8596     case $enableval in
 8597     yes) enable_shared=yes ;;
 8598     no) enable_shared=no ;;
 8599     *)
 8600       enable_shared=no
 8601       # Look at the argument we got.  We use all the common list separators.
 8602       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8603       for pkg in $enableval; do
 8604 	IFS=$lt_save_ifs
 8605 	if test "X$pkg" = "X$p"; then
 8606 	  enable_shared=yes
 8607 	fi
 8608       done
 8609       IFS=$lt_save_ifs
 8610       ;;
 8611     esac],
 8612     [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 8613 
 8614     _LT_DECL([build_libtool_libs], [enable_shared], [0],
 8615 	[Whether or not to build shared libraries])
 8616 ])# _LT_ENABLE_SHARED
 8617 
 8618 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 8619 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 8620 
 8621 # Old names:
 8622 AC_DEFUN([AC_ENABLE_SHARED],
 8623 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 8624 ])
 8625 
 8626 AC_DEFUN([AC_DISABLE_SHARED],
 8627 [_LT_SET_OPTION([LT_INIT], [disable-shared])
 8628 ])
 8629 
 8630 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 8631 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 8632 
 8633 dnl aclocal-1.4 backwards compatibility:
 8634 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 8635 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 8636 
 8637 
 8638 
 8639 # _LT_ENABLE_STATIC([DEFAULT])
 8640 # ----------------------------
 8641 # implement the --enable-static flag, and support the 'static' and
 8642 # 'disable-static' LT_INIT options.
 8643 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8644 m4_define([_LT_ENABLE_STATIC],
 8645 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8646 AC_ARG_ENABLE([static],
 8647     [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 8648 	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 8649     [p=${PACKAGE-default}
 8650     case $enableval in
 8651     yes) enable_static=yes ;;
 8652     no) enable_static=no ;;
 8653     *)
 8654      enable_static=no
 8655       # Look at the argument we got.  We use all the common list separators.
 8656       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8657       for pkg in $enableval; do
 8658 	IFS=$lt_save_ifs
 8659 	if test "X$pkg" = "X$p"; then
 8660 	  enable_static=yes
 8661 	fi
 8662       done
 8663       IFS=$lt_save_ifs
 8664       ;;
 8665     esac],
 8666     [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 8667 
 8668     _LT_DECL([build_old_libs], [enable_static], [0],
 8669 	[Whether or not to build static libraries])
 8670 ])# _LT_ENABLE_STATIC
 8671 
 8672 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 8673 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 8674 
 8675 # Old names:
 8676 AC_DEFUN([AC_ENABLE_STATIC],
 8677 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 8678 ])
 8679 
 8680 AC_DEFUN([AC_DISABLE_STATIC],
 8681 [_LT_SET_OPTION([LT_INIT], [disable-static])
 8682 ])
 8683 
 8684 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 8685 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 8686 
 8687 dnl aclocal-1.4 backwards compatibility:
 8688 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 8689 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 8690 
 8691 
 8692 
 8693 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
 8694 # ----------------------------------
 8695 # implement the --enable-fast-install flag, and support the 'fast-install'
 8696 # and 'disable-fast-install' LT_INIT options.
 8697 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
 8698 m4_define([_LT_ENABLE_FAST_INSTALL],
 8699 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 8700 AC_ARG_ENABLE([fast-install],
 8701     [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 8702     [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 8703     [p=${PACKAGE-default}
 8704     case $enableval in
 8705     yes) enable_fast_install=yes ;;
 8706     no) enable_fast_install=no ;;
 8707     *)
 8708       enable_fast_install=no
 8709       # Look at the argument we got.  We use all the common list separators.
 8710       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8711       for pkg in $enableval; do
 8712 	IFS=$lt_save_ifs
 8713 	if test "X$pkg" = "X$p"; then
 8714 	  enable_fast_install=yes
 8715 	fi
 8716       done
 8717       IFS=$lt_save_ifs
 8718       ;;
 8719     esac],
 8720     [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 8721 
 8722 _LT_DECL([fast_install], [enable_fast_install], [0],
 8723 	 [Whether or not to optimize for fast installation])dnl
 8724 ])# _LT_ENABLE_FAST_INSTALL
 8725 
 8726 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 8727 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 8728 
 8729 # Old names:
 8730 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 8731 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 8732 AC_DIAGNOSE([obsolete],
 8733 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
 8734 the 'fast-install' option into LT_INIT's first parameter.])
 8735 ])
 8736 
 8737 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 8738 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 8739 AC_DIAGNOSE([obsolete],
 8740 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
 8741 the 'disable-fast-install' option into LT_INIT's first parameter.])
 8742 ])
 8743 
 8744 dnl aclocal-1.4 backwards compatibility:
 8745 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 8746 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 8747 
 8748 
 8749 # _LT_WITH_AIX_SONAME([DEFAULT])
 8750 # ----------------------------------
 8751 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
 8752 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
 8753 # is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
 8754 m4_define([_LT_WITH_AIX_SONAME],
 8755 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
 8756 shared_archive_member_spec=
 8757 case $host,$enable_shared in
 8758 power*-*-aix[[5-9]]*,yes)
 8759   AC_MSG_CHECKING([which variant of shared library versioning to provide])
 8760   AC_ARG_WITH([aix-soname],
 8761     [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
 8762       [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
 8763     [case $withval in
 8764     aix|svr4|both)
 8765       ;;
 8766     *)
 8767       AC_MSG_ERROR([Unknown argument to --with-aix-soname])
 8768       ;;
 8769     esac
 8770     lt_cv_with_aix_soname=$with_aix_soname],
 8771     [AC_CACHE_VAL([lt_cv_with_aix_soname],
 8772       [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
 8773     with_aix_soname=$lt_cv_with_aix_soname])
 8774   AC_MSG_RESULT([$with_aix_soname])
 8775   if test aix != "$with_aix_soname"; then
 8776     # For the AIX way of multilib, we name the shared archive member
 8777     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 8778     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 8779     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 8780     # the AIX toolchain works better with OBJECT_MODE set (default 32).
 8781     if test 64 = "${OBJECT_MODE-32}"; then
 8782       shared_archive_member_spec=shr_64
 8783     else
 8784       shared_archive_member_spec=shr
 8785     fi
 8786   fi
 8787   ;;
 8788 *)
 8789   with_aix_soname=aix
 8790   ;;
 8791 esac
 8792 
 8793 _LT_DECL([], [shared_archive_member_spec], [0],
 8794     [Shared archive member basename, for filename based shared library versioning on AIX])dnl
 8795 ])# _LT_WITH_AIX_SONAME
 8796 
 8797 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
 8798 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
 8799 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
 8800 
 8801 
 8802 # _LT_WITH_PIC([MODE])
 8803 # --------------------
 8804 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
 8805 # LT_INIT options.
 8806 # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
 8807 m4_define([_LT_WITH_PIC],
 8808 [AC_ARG_WITH([pic],
 8809     [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
 8810 	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 8811     [lt_p=${PACKAGE-default}
 8812     case $withval in
 8813     yes|no) pic_mode=$withval ;;
 8814     *)
 8815       pic_mode=default
 8816       # Look at the argument we got.  We use all the common list separators.
 8817       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
 8818       for lt_pkg in $withval; do
 8819 	IFS=$lt_save_ifs
 8820 	if test "X$lt_pkg" = "X$lt_p"; then
 8821 	  pic_mode=yes
 8822 	fi
 8823       done
 8824       IFS=$lt_save_ifs
 8825       ;;
 8826     esac],
 8827     [pic_mode=m4_default([$1], [default])])
 8828 
 8829 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 8830 ])# _LT_WITH_PIC
 8831 
 8832 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 8833 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 8834 
 8835 # Old name:
 8836 AU_DEFUN([AC_LIBTOOL_PICMODE],
 8837 [_LT_SET_OPTION([LT_INIT], [pic-only])
 8838 AC_DIAGNOSE([obsolete],
 8839 [$0: Remove this warning and the call to _LT_SET_OPTION when you
 8840 put the 'pic-only' option into LT_INIT's first parameter.])
 8841 ])
 8842 
 8843 dnl aclocal-1.4 backwards compatibility:
 8844 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 8845 
 8846 
 8847 m4_define([_LTDL_MODE], [])
 8848 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 8849 		 [m4_define([_LTDL_MODE], [nonrecursive])])
 8850 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 8851 		 [m4_define([_LTDL_MODE], [recursive])])
 8852 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 8853 		 [m4_define([_LTDL_MODE], [subproject])])
 8854 
 8855 m4_define([_LTDL_TYPE], [])
 8856 LT_OPTION_DEFINE([LTDL_INIT], [installable],
 8857 		 [m4_define([_LTDL_TYPE], [installable])])
 8858 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 8859 		 [m4_define([_LTDL_TYPE], [convenience])])
 8860 
 8861 # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 8862 #
 8863 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
 8864 # Foundation, Inc.
 8865 # Written by Gary V. Vaughan, 2004
 8866 #
 8867 # This file is free software; the Free Software Foundation gives
 8868 # unlimited permission to copy and/or distribute it, with or without
 8869 # modifications, as long as this notice is preserved.
 8870 
 8871 # serial 6 ltsugar.m4
 8872 
 8873 # This is to help aclocal find these macros, as it can't see m4_define.
 8874 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 8875 
 8876 
 8877 # lt_join(SEP, ARG1, [ARG2...])
 8878 # -----------------------------
 8879 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 8880 # associated separator.
 8881 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 8882 # versions in m4sugar had bugs.
 8883 m4_define([lt_join],
 8884 [m4_if([$#], [1], [],
 8885        [$#], [2], [[$2]],
 8886        [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 8887 m4_define([_lt_join],
 8888 [m4_if([$#$2], [2], [],
 8889        [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 8890 
 8891 
 8892 # lt_car(LIST)
 8893 # lt_cdr(LIST)
 8894 # ------------
 8895 # Manipulate m4 lists.
 8896 # These macros are necessary as long as will still need to support
 8897 # Autoconf-2.59, which quotes differently.
 8898 m4_define([lt_car], [[$1]])
 8899 m4_define([lt_cdr],
 8900 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 8901        [$#], 1, [],
 8902        [m4_dquote(m4_shift($@))])])
 8903 m4_define([lt_unquote], $1)
 8904 
 8905 
 8906 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
 8907 # ------------------------------------------
 8908 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
 8909 # Note that neither SEPARATOR nor STRING are expanded; they are appended
 8910 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 8911 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
 8912 # than defined and empty).
 8913 #
 8914 # This macro is needed until we can rely on Autoconf 2.62, since earlier
 8915 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 8916 m4_define([lt_append],
 8917 [m4_define([$1],
 8918 	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 8919 
 8920 
 8921 
 8922 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 8923 # ----------------------------------------------------------
 8924 # Produce a SEP delimited list of all paired combinations of elements of
 8925 # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 8926 # has the form PREFIXmINFIXSUFFIXn.
 8927 # Needed until we can rely on m4_combine added in Autoconf 2.62.
 8928 m4_define([lt_combine],
 8929 [m4_if(m4_eval([$# > 3]), [1],
 8930        [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 8931 [[m4_foreach([_Lt_prefix], [$2],
 8932 	     [m4_foreach([_Lt_suffix],
 8933 		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 8934 	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 8935 
 8936 
 8937 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 8938 # -----------------------------------------------------------------------
 8939 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 8940 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 8941 m4_define([lt_if_append_uniq],
 8942 [m4_ifdef([$1],
 8943 	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 8944 		 [lt_append([$1], [$2], [$3])$4],
 8945 		 [$5])],
 8946 	  [lt_append([$1], [$2], [$3])$4])])
 8947 
 8948 
 8949 # lt_dict_add(DICT, KEY, VALUE)
 8950 # -----------------------------
 8951 m4_define([lt_dict_add],
 8952 [m4_define([$1($2)], [$3])])
 8953 
 8954 
 8955 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 8956 # --------------------------------------------
 8957 m4_define([lt_dict_add_subkey],
 8958 [m4_define([$1($2:$3)], [$4])])
 8959 
 8960 
 8961 # lt_dict_fetch(DICT, KEY, [SUBKEY])
 8962 # ----------------------------------
 8963 m4_define([lt_dict_fetch],
 8964 [m4_ifval([$3],
 8965 	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 8966     m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 8967 
 8968 
 8969 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 8970 # -----------------------------------------------------------------
 8971 m4_define([lt_if_dict_fetch],
 8972 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 8973 	[$5],
 8974     [$6])])
 8975 
 8976 
 8977 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 8978 # --------------------------------------------------------------
 8979 m4_define([lt_dict_filter],
 8980 [m4_if([$5], [], [],
 8981   [lt_join(m4_quote(m4_default([$4], [[, ]])),
 8982            lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 8983 		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 8984 ])
 8985 
 8986 # ltversion.m4 -- version numbers			-*- Autoconf -*-
 8987 #
 8988 #   Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
 8989 #   Inc.
 8990 #   Written by Scott James Remnant, 2004
 8991 #
 8992 # This file is free software; the Free Software Foundation gives
 8993 # unlimited permission to copy and/or distribute it, with or without
 8994 # modifications, as long as this notice is preserved.
 8995 
 8996 # @configure_input@
 8997 
 8998 # serial 4179 ltversion.m4
 8999 # This file is part of GNU Libtool
 9000 
 9001 m4_define([LT_PACKAGE_VERSION], [2.4.6])
 9002 m4_define([LT_PACKAGE_REVISION], [2.4.6])
 9003 
 9004 AC_DEFUN([LTVERSION_VERSION],
 9005 [macro_version='2.4.6'
 9006 macro_revision='2.4.6'
 9007 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 9008 _LT_DECL(, macro_revision, 0)
 9009 ])
 9010 
 9011 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 9012 #
 9013 #   Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
 9014 #   Software Foundation, Inc.
 9015 #   Written by Scott James Remnant, 2004.
 9016 #
 9017 # This file is free software; the Free Software Foundation gives
 9018 # unlimited permission to copy and/or distribute it, with or without
 9019 # modifications, as long as this notice is preserved.
 9020 
 9021 # serial 5 lt~obsolete.m4
 9022 
 9023 # These exist entirely to fool aclocal when bootstrapping libtool.
 9024 #
 9025 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
 9026 # which have later been changed to m4_define as they aren't part of the
 9027 # exported API, or moved to Autoconf or Automake where they belong.
 9028 #
 9029 # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 9030 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 9031 # using a macro with the same name in our local m4/libtool.m4 it'll
 9032 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 9033 # and doesn't know about Autoconf macros at all.)
 9034 #
 9035 # So we provide this file, which has a silly filename so it's always
 9036 # included after everything else.  This provides aclocal with the
 9037 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 9038 # because those macros already exist, or will be overwritten later.
 9039 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
 9040 #
 9041 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 9042 # Yes, that means every name once taken will need to remain here until
 9043 # we give up compatibility with versions before 1.7, at which point
 9044 # we need to keep only those names which we still refer to.
 9045 
 9046 # This is to help aclocal find these macros, as it can't see m4_define.
 9047 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 9048 
 9049 m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 9050 m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
 9051 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 9052 m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
 9053 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 9054 m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
 9055 m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
 9056 m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 9057 m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
 9058 m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
 9059 m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
 9060 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 9061 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 9062 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 9063 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 9064 m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 9065 m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
 9066 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 9067 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 9068 m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
 9069 m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
 9070 m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 9071 m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 9072 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 9073 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 9074 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 9075 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 9076 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 9077 m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
 9078 m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
 9079 m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
 9080 m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 9081 m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 9082 m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
 9083 m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
 9084 m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 9085 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 9086 m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
 9087 m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 9088 m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
 9089 m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
 9090 m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
 9091 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 9092 m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 9093 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 9094 m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 9095 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 9096 m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 9097 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 9098 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 9099 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 9100 m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 9101 m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
 9102 m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 9103 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 9104 m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 9105 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 9106 m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 9107 m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
 9108 m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
 9109 m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
 9110 
 9111 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
 9112 #
 9113 # This file is free software; the Free Software Foundation
 9114 # gives unlimited permission to copy and/or distribute it,
 9115 # with or without modifications, as long as this notice is preserved.
 9116 
 9117 # AM_AUTOMAKE_VERSION(VERSION)
 9118 # ----------------------------
 9119 # Automake X.Y traces this macro to ensure aclocal.m4 has been
 9120 # generated from the m4 files accompanying Automake X.Y.
 9121 # (This private macro should not be called outside this file.)
 9122 AC_DEFUN([AM_AUTOMAKE_VERSION],
 9123 [am__api_version='1.16'
 9124 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 9125 dnl require some minimum version.  Point them to the right macro.
 9126 m4_if([$1], [1.16.5], [],
 9127       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 9128 ])
 9129 
 9130 # _AM_AUTOCONF_VERSION(VERSION)
 9131 # -----------------------------
 9132 # aclocal traces this macro to find the Autoconf version.
 9133 # This is a private macro too.  Using m4_define simplifies
 9134 # the logic in aclocal, which can simply ignore this definition.
 9135 m4_define([_AM_AUTOCONF_VERSION], [])
 9136 
 9137 # AM_SET_CURRENT_AUTOMAKE_VERSION
 9138 # -------------------------------
 9139 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 9140 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 9141 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 9142 [AM_AUTOMAKE_VERSION([1.16.5])dnl
 9143 m4_ifndef([AC_AUTOCONF_VERSION],
 9144   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 9145 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 9146 
 9147 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 9148 
 9149 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9150 #
 9151 # This file is free software; the Free Software Foundation
 9152 # gives unlimited permission to copy and/or distribute it,
 9153 # with or without modifications, as long as this notice is preserved.
 9154 
 9155 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 9156 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 9157 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 9158 #
 9159 # Of course, Automake must honor this variable whenever it calls a
 9160 # tool from the auxiliary directory.  The problem is that $srcdir (and
 9161 # therefore $ac_aux_dir as well) can be either absolute or relative,
 9162 # depending on how configure is run.  This is pretty annoying, since
 9163 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
 9164 # source directory, any form will work fine, but in subdirectories a
 9165 # relative path needs to be adjusted first.
 9166 #
 9167 # $ac_aux_dir/missing
 9168 #    fails when called from a subdirectory if $ac_aux_dir is relative
 9169 # $top_srcdir/$ac_aux_dir/missing
 9170 #    fails if $ac_aux_dir is absolute,
 9171 #    fails when called from a subdirectory in a VPATH build with
 9172 #          a relative $ac_aux_dir
 9173 #
 9174 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 9175 # are both prefixed by $srcdir.  In an in-source build this is usually
 9176 # harmless because $srcdir is '.', but things will broke when you
 9177 # start a VPATH build or use an absolute $srcdir.
 9178 #
 9179 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 9180 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 9181 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 9182 # and then we would define $MISSING as
 9183 #   MISSING="\${SHELL} $am_aux_dir/missing"
 9184 # This will work as long as MISSING is not called from configure, because
 9185 # unfortunately $(top_srcdir) has no meaning in configure.
 9186 # However there are other variables, like CC, which are often used in
 9187 # configure, and could therefore not use this "fixed" $ac_aux_dir.
 9188 #
 9189 # Another solution, used here, is to always expand $ac_aux_dir to an
 9190 # absolute PATH.  The drawback is that using absolute paths prevent a
 9191 # configured tree to be moved without reconfiguration.
 9192 
 9193 AC_DEFUN([AM_AUX_DIR_EXPAND],
 9194 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 9195 # Expand $ac_aux_dir to an absolute path.
 9196 am_aux_dir=`cd "$ac_aux_dir" && pwd`
 9197 ])
 9198 
 9199 # AM_CONDITIONAL                                            -*- Autoconf -*-
 9200 
 9201 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
 9202 #
 9203 # This file is free software; the Free Software Foundation
 9204 # gives unlimited permission to copy and/or distribute it,
 9205 # with or without modifications, as long as this notice is preserved.
 9206 
 9207 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
 9208 # -------------------------------------
 9209 # Define a conditional.
 9210 AC_DEFUN([AM_CONDITIONAL],
 9211 [AC_PREREQ([2.52])dnl
 9212  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 9213        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 9214 AC_SUBST([$1_TRUE])dnl
 9215 AC_SUBST([$1_FALSE])dnl
 9216 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
 9217 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
 9218 m4_define([_AM_COND_VALUE_$1], [$2])dnl
 9219 if $2; then
 9220   $1_TRUE=
 9221   $1_FALSE='#'
 9222 else
 9223   $1_TRUE='#'
 9224   $1_FALSE=
 9225 fi
 9226 AC_CONFIG_COMMANDS_PRE(
 9227 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 9228   AC_MSG_ERROR([[conditional "$1" was never defined.
 9229 Usually this means the macro was only invoked conditionally.]])
 9230 fi])])
 9231 
 9232 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9233 #
 9234 # This file is free software; the Free Software Foundation
 9235 # gives unlimited permission to copy and/or distribute it,
 9236 # with or without modifications, as long as this notice is preserved.
 9237 
 9238 
 9239 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
 9240 # written in clear, in which case automake, when reading aclocal.m4,
 9241 # will think it sees a *use*, and therefore will trigger all it's
 9242 # C support machinery.  Also note that it means that autoscan, seeing
 9243 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 9244 
 9245 
 9246 # _AM_DEPENDENCIES(NAME)
 9247 # ----------------------
 9248 # See how the compiler implements dependency checking.
 9249 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
 9250 # We try a few techniques and use that to set a single cache variable.
 9251 #
 9252 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 9253 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 9254 # dependency, and given that the user is not expected to run this macro,
 9255 # just rely on AC_PROG_CC.
 9256 AC_DEFUN([_AM_DEPENDENCIES],
 9257 [AC_REQUIRE([AM_SET_DEPDIR])dnl
 9258 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 9259 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 9260 AC_REQUIRE([AM_DEP_TRACK])dnl
 9261 
 9262 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 9263       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 9264       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 9265       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 9266       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 9267       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 9268                     [depcc="$$1"   am_compiler_list=])
 9269 
 9270 AC_CACHE_CHECK([dependency style of $depcc],
 9271                [am_cv_$1_dependencies_compiler_type],
 9272 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 9273   # We make a subdir and do the tests there.  Otherwise we can end up
 9274   # making bogus files that we don't know about and never remove.  For
 9275   # instance it was reported that on HP-UX the gcc test will end up
 9276   # making a dummy file named 'D' -- because '-MD' means "put the output
 9277   # in D".
 9278   rm -rf conftest.dir
 9279   mkdir conftest.dir
 9280   # Copy depcomp to subdir because otherwise we won't find it if we're
 9281   # using a relative directory.
 9282   cp "$am_depcomp" conftest.dir
 9283   cd conftest.dir
 9284   # We will build objects and dependencies in a subdirectory because
 9285   # it helps to detect inapplicable dependency modes.  For instance
 9286   # both Tru64's cc and ICC support -MD to output dependencies as a
 9287   # side effect of compilation, but ICC will put the dependencies in
 9288   # the current directory while Tru64 will put them in the object
 9289   # directory.
 9290   mkdir sub
 9291 
 9292   am_cv_$1_dependencies_compiler_type=none
 9293   if test "$am_compiler_list" = ""; then
 9294      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 9295   fi
 9296   am__universal=false
 9297   m4_case([$1], [CC],
 9298     [case " $depcc " in #(
 9299      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 9300      esac],
 9301     [CXX],
 9302     [case " $depcc " in #(
 9303      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 9304      esac])
 9305 
 9306   for depmode in $am_compiler_list; do
 9307     # Setup a source with many dependencies, because some compilers
 9308     # like to wrap large dependency lists on column 80 (with \), and
 9309     # we should not choose a depcomp mode which is confused by this.
 9310     #
 9311     # We need to recreate these files for each test, as the compiler may
 9312     # overwrite some of them when testing with obscure command lines.
 9313     # This happens at least with the AIX C compiler.
 9314     : > sub/conftest.c
 9315     for i in 1 2 3 4 5 6; do
 9316       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 9317       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 9318       # Solaris 10 /bin/sh.
 9319       echo '/* dummy */' > sub/conftst$i.h
 9320     done
 9321     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 9322 
 9323     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 9324     # mode.  It turns out that the SunPro C++ compiler does not properly
 9325     # handle '-M -o', and we need to detect this.  Also, some Intel
 9326     # versions had trouble with output in subdirs.
 9327     am__obj=sub/conftest.${OBJEXT-o}
 9328     am__minus_obj="-o $am__obj"
 9329     case $depmode in
 9330     gcc)
 9331       # This depmode causes a compiler race in universal mode.
 9332       test "$am__universal" = false || continue
 9333       ;;
 9334     nosideeffect)
 9335       # After this tag, mechanisms are not by side-effect, so they'll
 9336       # only be used when explicitly requested.
 9337       if test "x$enable_dependency_tracking" = xyes; then
 9338 	continue
 9339       else
 9340 	break
 9341       fi
 9342       ;;
 9343     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 9344       # This compiler won't grok '-c -o', but also, the minuso test has
 9345       # not run yet.  These depmodes are late enough in the game, and
 9346       # so weak that their functioning should not be impacted.
 9347       am__obj=conftest.${OBJEXT-o}
 9348       am__minus_obj=
 9349       ;;
 9350     none) break ;;
 9351     esac
 9352     if depmode=$depmode \
 9353        source=sub/conftest.c object=$am__obj \
 9354        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 9355        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 9356          >/dev/null 2>conftest.err &&
 9357        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 9358        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 9359        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 9360        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 9361       # icc doesn't choke on unknown options, it will just issue warnings
 9362       # or remarks (even with -Werror).  So we grep stderr for any message
 9363       # that says an option was ignored or not supported.
 9364       # When given -MP, icc 7.0 and 7.1 complain thusly:
 9365       #   icc: Command line warning: ignoring option '-M'; no argument required
 9366       # The diagnosis changed in icc 8.0:
 9367       #   icc: Command line remark: option '-MP' not supported
 9368       if (grep 'ignoring option' conftest.err ||
 9369           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 9370         am_cv_$1_dependencies_compiler_type=$depmode
 9371         break
 9372       fi
 9373     fi
 9374   done
 9375 
 9376   cd ..
 9377   rm -rf conftest.dir
 9378 else
 9379   am_cv_$1_dependencies_compiler_type=none
 9380 fi
 9381 ])
 9382 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 9383 AM_CONDITIONAL([am__fastdep$1], [
 9384   test "x$enable_dependency_tracking" != xno \
 9385   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 9386 ])
 9387 
 9388 
 9389 # AM_SET_DEPDIR
 9390 # -------------
 9391 # Choose a directory name for dependency files.
 9392 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
 9393 AC_DEFUN([AM_SET_DEPDIR],
 9394 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 9395 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 9396 ])
 9397 
 9398 
 9399 # AM_DEP_TRACK
 9400 # ------------
 9401 AC_DEFUN([AM_DEP_TRACK],
 9402 [AC_ARG_ENABLE([dependency-tracking], [dnl
 9403 AS_HELP_STRING(
 9404   [--enable-dependency-tracking],
 9405   [do not reject slow dependency extractors])
 9406 AS_HELP_STRING(
 9407   [--disable-dependency-tracking],
 9408   [speeds up one-time build])])
 9409 if test "x$enable_dependency_tracking" != xno; then
 9410   am_depcomp="$ac_aux_dir/depcomp"
 9411   AMDEPBACKSLASH='\'
 9412   am__nodep='_no'
 9413 fi
 9414 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 9415 AC_SUBST([AMDEPBACKSLASH])dnl
 9416 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 9417 AC_SUBST([am__nodep])dnl
 9418 _AM_SUBST_NOTMAKE([am__nodep])dnl
 9419 ])
 9420 
 9421 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 9422 
 9423 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9424 #
 9425 # This file is free software; the Free Software Foundation
 9426 # gives unlimited permission to copy and/or distribute it,
 9427 # with or without modifications, as long as this notice is preserved.
 9428 
 9429 # _AM_OUTPUT_DEPENDENCY_COMMANDS
 9430 # ------------------------------
 9431 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 9432 [{
 9433   # Older Autoconf quotes --file arguments for eval, but not when files
 9434   # are listed without --file.  Let's play safe and only enable the eval
 9435   # if we detect the quoting.
 9436   # TODO: see whether this extra hack can be removed once we start
 9437   # requiring Autoconf 2.70 or later.
 9438   AS_CASE([$CONFIG_FILES],
 9439           [*\'*], [eval set x "$CONFIG_FILES"],
 9440           [*], [set x $CONFIG_FILES])
 9441   shift
 9442   # Used to flag and report bootstrapping failures.
 9443   am_rc=0
 9444   for am_mf
 9445   do
 9446     # Strip MF so we end up with the name of the file.
 9447     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
 9448     # Check whether this is an Automake generated Makefile which includes
 9449     # dependency-tracking related rules and includes.
 9450     # Grep'ing the whole file directly is not great: AIX grep has a line
 9451     # limit of 2048, but all sed's we know have understand at least 4000.
 9452     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
 9453       || continue
 9454     am_dirpart=`AS_DIRNAME(["$am_mf"])`
 9455     am_filepart=`AS_BASENAME(["$am_mf"])`
 9456     AM_RUN_LOG([cd "$am_dirpart" \
 9457       && sed -e '/# am--include-marker/d' "$am_filepart" \
 9458         | $MAKE -f - am--depfiles]) || am_rc=$?
 9459   done
 9460   if test $am_rc -ne 0; then
 9461     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
 9462     for automatic dependency tracking.  If GNU make was not used, consider
 9463     re-running the configure script with MAKE="gmake" (or whatever is
 9464     necessary).  You can also try re-running configure with the
 9465     '--disable-dependency-tracking' option to at least be able to build
 9466     the package (albeit without support for automatic dependency tracking).])
 9467   fi
 9468   AS_UNSET([am_dirpart])
 9469   AS_UNSET([am_filepart])
 9470   AS_UNSET([am_mf])
 9471   AS_UNSET([am_rc])
 9472   rm -f conftest-deps.mk
 9473 }
 9474 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 9475 
 9476 
 9477 # AM_OUTPUT_DEPENDENCY_COMMANDS
 9478 # -----------------------------
 9479 # This macro should only be invoked once -- use via AC_REQUIRE.
 9480 #
 9481 # This code is only required when automatic dependency tracking is enabled.
 9482 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
 9483 # order to bootstrap the dependency handling code.
 9484 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 9485 [AC_CONFIG_COMMANDS([depfiles],
 9486      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 9487      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
 9488 
 9489 # Do all the work for Automake.                             -*- Autoconf -*-
 9490 
 9491 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
 9492 #
 9493 # This file is free software; the Free Software Foundation
 9494 # gives unlimited permission to copy and/or distribute it,
 9495 # with or without modifications, as long as this notice is preserved.
 9496 
 9497 # This macro actually does too much.  Some checks are only needed if
 9498 # your package does certain things.  But this isn't really a big deal.
 9499 
 9500 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 9501 m4_define([AC_PROG_CC],
 9502 m4_defn([AC_PROG_CC])
 9503 [_AM_PROG_CC_C_O
 9504 ])
 9505 
 9506 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 9507 # AM_INIT_AUTOMAKE([OPTIONS])
 9508 # -----------------------------------------------
 9509 # The call with PACKAGE and VERSION arguments is the old style
 9510 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
 9511 # and VERSION should now be passed to AC_INIT and removed from
 9512 # the call to AM_INIT_AUTOMAKE.
 9513 # We support both call styles for the transition.  After
 9514 # the next Automake release, Autoconf can make the AC_INIT
 9515 # arguments mandatory, and then we can depend on a new Autoconf
 9516 # release and drop the old call support.
 9517 AC_DEFUN([AM_INIT_AUTOMAKE],
 9518 [AC_PREREQ([2.65])dnl
 9519 m4_ifdef([_$0_ALREADY_INIT],
 9520   [m4_fatal([$0 expanded multiple times
 9521 ]m4_defn([_$0_ALREADY_INIT]))],
 9522   [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
 9523 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 9524 dnl the ones we care about.
 9525 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 9526 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 9527 AC_REQUIRE([AC_PROG_INSTALL])dnl
 9528 if test "`cd $srcdir && pwd`" != "`pwd`"; then
 9529   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 9530   # is not polluted with repeated "-I."
 9531   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 9532   # test to see if srcdir already configured
 9533   if test -f $srcdir/config.status; then
 9534     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 9535   fi
 9536 fi
 9537 
 9538 # test whether we have cygpath
 9539 if test -z "$CYGPATH_W"; then
 9540   if (cygpath --version) >/dev/null 2>/dev/null; then
 9541     CYGPATH_W='cygpath -w'
 9542   else
 9543     CYGPATH_W=echo
 9544   fi
 9545 fi
 9546 AC_SUBST([CYGPATH_W])
 9547 
 9548 # Define the identity of the package.
 9549 dnl Distinguish between old-style and new-style calls.
 9550 m4_ifval([$2],
 9551 [AC_DIAGNOSE([obsolete],
 9552              [$0: two- and three-arguments forms are deprecated.])
 9553 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 9554  AC_SUBST([PACKAGE], [$1])dnl
 9555  AC_SUBST([VERSION], [$2])],
 9556 [_AM_SET_OPTIONS([$1])dnl
 9557 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 9558 m4_if(
 9559   m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
 9560   [ok:ok],,
 9561   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 9562  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 9563  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 9564 
 9565 _AM_IF_OPTION([no-define],,
 9566 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 9567  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 9568 
 9569 # Some tools Automake needs.
 9570 AC_REQUIRE([AM_SANITY_CHECK])dnl
 9571 AC_REQUIRE([AC_ARG_PROGRAM])dnl
 9572 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 9573 AM_MISSING_PROG([AUTOCONF], [autoconf])
 9574 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 9575 AM_MISSING_PROG([AUTOHEADER], [autoheader])
 9576 AM_MISSING_PROG([MAKEINFO], [makeinfo])
 9577 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 9578 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 9579 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 9580 # For better backward compatibility.  To be removed once Automake 1.9.x
 9581 # dies out for good.  For more background, see:
 9582 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 9583 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 9584 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 9585 # We need awk for the "check" target (and possibly the TAP driver).  The
 9586 # system "awk" is bad on some platforms.
 9587 AC_REQUIRE([AC_PROG_AWK])dnl
 9588 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 9589 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 9590 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 9591 	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 9592 			     [_AM_PROG_TAR([v7])])])
 9593 _AM_IF_OPTION([no-dependencies],,
 9594 [AC_PROVIDE_IFELSE([AC_PROG_CC],
 9595 		  [_AM_DEPENDENCIES([CC])],
 9596 		  [m4_define([AC_PROG_CC],
 9597 			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 9598 AC_PROVIDE_IFELSE([AC_PROG_CXX],
 9599 		  [_AM_DEPENDENCIES([CXX])],
 9600 		  [m4_define([AC_PROG_CXX],
 9601 			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 9602 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 9603 		  [_AM_DEPENDENCIES([OBJC])],
 9604 		  [m4_define([AC_PROG_OBJC],
 9605 			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 9606 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 9607 		  [_AM_DEPENDENCIES([OBJCXX])],
 9608 		  [m4_define([AC_PROG_OBJCXX],
 9609 			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 9610 ])
 9611 # Variables for tags utilities; see am/tags.am
 9612 if test -z "$CTAGS"; then
 9613   CTAGS=ctags
 9614 fi
 9615 AC_SUBST([CTAGS])
 9616 if test -z "$ETAGS"; then
 9617   ETAGS=etags
 9618 fi
 9619 AC_SUBST([ETAGS])
 9620 if test -z "$CSCOPE"; then
 9621   CSCOPE=cscope
 9622 fi
 9623 AC_SUBST([CSCOPE])
 9624 
 9625 AC_REQUIRE([AM_SILENT_RULES])dnl
 9626 dnl The testsuite driver may need to know about EXEEXT, so add the
 9627 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 9628 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 9629 AC_CONFIG_COMMANDS_PRE(dnl
 9630 [m4_provide_if([_AM_COMPILER_EXEEXT],
 9631   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 9632 
 9633 # POSIX will say in a future version that running "rm -f" with no argument
 9634 # is OK; and we want to be able to make that assumption in our Makefile
 9635 # recipes.  So use an aggressive probe to check that the usage we want is
 9636 # actually supported "in the wild" to an acceptable degree.
 9637 # See automake bug#10828.
 9638 # To make any issue more visible, cause the running configure to be aborted
 9639 # by default if the 'rm' program in use doesn't match our expectations; the
 9640 # user can still override this though.
 9641 if rm -f && rm -fr && rm -rf; then : OK; else
 9642   cat >&2 <<'END'
 9643 Oops!
 9644 
 9645 Your 'rm' program seems unable to run without file operands specified
 9646 on the command line, even when the '-f' option is present.  This is contrary
 9647 to the behaviour of most rm programs out there, and not conforming with
 9648 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 9649 
 9650 Please tell bug-automake@gnu.org about your system, including the value
 9651 of your $PATH and any error possibly output before this message.  This
 9652 can help us improve future automake versions.
 9653 
 9654 END
 9655   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 9656     echo 'Configuration will proceed anyway, since you have set the' >&2
 9657     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 9658     echo >&2
 9659   else
 9660     cat >&2 <<'END'
 9661 Aborting the configuration process, to ensure you take notice of the issue.
 9662 
 9663 You can download and install GNU coreutils to get an 'rm' implementation
 9664 that behaves properly: <https://www.gnu.org/software/coreutils/>.
 9665 
 9666 If you want to complete the configuration process using your problematic
 9667 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 9668 to "yes", and re-run configure.
 9669 
 9670 END
 9671     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 9672   fi
 9673 fi
 9674 dnl The trailing newline in this macro's definition is deliberate, for
 9675 dnl backward compatibility and to allow trailing 'dnl'-style comments
 9676 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
 9677 ])
 9678 
 9679 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 9680 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 9681 dnl mangled by Autoconf and run in a shell conditional statement.
 9682 m4_define([_AC_COMPILER_EXEEXT],
 9683 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 9684 
 9685 # When config.status generates a header, we must update the stamp-h file.
 9686 # This file resides in the same directory as the config header
 9687 # that is generated.  The stamp files are numbered to have different names.
 9688 
 9689 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 9690 # loop where config.status creates the headers, so we can generate
 9691 # our stamp files there.
 9692 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 9693 [# Compute $1's index in $config_headers.
 9694 _am_arg=$1
 9695 _am_stamp_count=1
 9696 for _am_header in $config_headers :; do
 9697   case $_am_header in
 9698     $_am_arg | $_am_arg:* )
 9699       break ;;
 9700     * )
 9701       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 9702   esac
 9703 done
 9704 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 9705 
 9706 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9707 #
 9708 # This file is free software; the Free Software Foundation
 9709 # gives unlimited permission to copy and/or distribute it,
 9710 # with or without modifications, as long as this notice is preserved.
 9711 
 9712 # AM_PROG_INSTALL_SH
 9713 # ------------------
 9714 # Define $install_sh.
 9715 AC_DEFUN([AM_PROG_INSTALL_SH],
 9716 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9717 if test x"${install_sh+set}" != xset; then
 9718   case $am_aux_dir in
 9719   *\ * | *\	*)
 9720     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 9721   *)
 9722     install_sh="\${SHELL} $am_aux_dir/install-sh"
 9723   esac
 9724 fi
 9725 AC_SUBST([install_sh])])
 9726 
 9727 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
 9728 #
 9729 # This file is free software; the Free Software Foundation
 9730 # gives unlimited permission to copy and/or distribute it,
 9731 # with or without modifications, as long as this notice is preserved.
 9732 
 9733 # Check whether the underlying file-system supports filenames
 9734 # with a leading dot.  For instance MS-DOS doesn't.
 9735 AC_DEFUN([AM_SET_LEADING_DOT],
 9736 [rm -rf .tst 2>/dev/null
 9737 mkdir .tst 2>/dev/null
 9738 if test -d .tst; then
 9739   am__leading_dot=.
 9740 else
 9741   am__leading_dot=_
 9742 fi
 9743 rmdir .tst 2>/dev/null
 9744 AC_SUBST([am__leading_dot])])
 9745 
 9746 # Check to see how 'make' treats includes.	            -*- Autoconf -*-
 9747 
 9748 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9749 #
 9750 # This file is free software; the Free Software Foundation
 9751 # gives unlimited permission to copy and/or distribute it,
 9752 # with or without modifications, as long as this notice is preserved.
 9753 
 9754 # AM_MAKE_INCLUDE()
 9755 # -----------------
 9756 # Check whether make has an 'include' directive that can support all
 9757 # the idioms we need for our automatic dependency tracking code.
 9758 AC_DEFUN([AM_MAKE_INCLUDE],
 9759 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
 9760 cat > confinc.mk << 'END'
 9761 am__doit:
 9762 	@echo this is the am__doit target >confinc.out
 9763 .PHONY: am__doit
 9764 END
 9765 am__include="#"
 9766 am__quote=
 9767 # BSD make does it like this.
 9768 echo '.include "confinc.mk" # ignored' > confmf.BSD
 9769 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 9770 echo 'include confinc.mk # ignored' > confmf.GNU
 9771 _am_result=no
 9772 for s in GNU BSD; do
 9773   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
 9774   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
 9775       ['0:this is the am__doit target'],
 9776       [AS_CASE([$s],
 9777           [BSD], [am__include='.include' am__quote='"'],
 9778           [am__include='include' am__quote=''])])
 9779   if test "$am__include" != "#"; then
 9780     _am_result="yes ($s style)"
 9781     break
 9782   fi
 9783 done
 9784 rm -f confinc.* confmf.*
 9785 AC_MSG_RESULT([${_am_result}])
 9786 AC_SUBST([am__include])])
 9787 AC_SUBST([am__quote])])
 9788 
 9789 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 9790 
 9791 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
 9792 #
 9793 # This file is free software; the Free Software Foundation
 9794 # gives unlimited permission to copy and/or distribute it,
 9795 # with or without modifications, as long as this notice is preserved.
 9796 
 9797 # AM_MISSING_PROG(NAME, PROGRAM)
 9798 # ------------------------------
 9799 AC_DEFUN([AM_MISSING_PROG],
 9800 [AC_REQUIRE([AM_MISSING_HAS_RUN])
 9801 $1=${$1-"${am_missing_run}$2"}
 9802 AC_SUBST($1)])
 9803 
 9804 # AM_MISSING_HAS_RUN
 9805 # ------------------
 9806 # Define MISSING if not defined so far and test if it is modern enough.
 9807 # If it is, set am_missing_run to use it, otherwise, to nothing.
 9808 AC_DEFUN([AM_MISSING_HAS_RUN],
 9809 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9810 AC_REQUIRE_AUX_FILE([missing])dnl
 9811 if test x"${MISSING+set}" != xset; then
 9812   MISSING="\${SHELL} '$am_aux_dir/missing'"
 9813 fi
 9814 # Use eval to expand $SHELL
 9815 if eval "$MISSING --is-lightweight"; then
 9816   am_missing_run="$MISSING "
 9817 else
 9818   am_missing_run=
 9819   AC_MSG_WARN(['missing' script is too old or missing])
 9820 fi
 9821 ])
 9822 
 9823 # Helper functions for option handling.                     -*- Autoconf -*-
 9824 
 9825 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
 9826 #
 9827 # This file is free software; the Free Software Foundation
 9828 # gives unlimited permission to copy and/or distribute it,
 9829 # with or without modifications, as long as this notice is preserved.
 9830 
 9831 # _AM_MANGLE_OPTION(NAME)
 9832 # -----------------------
 9833 AC_DEFUN([_AM_MANGLE_OPTION],
 9834 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 9835 
 9836 # _AM_SET_OPTION(NAME)
 9837 # --------------------
 9838 # Set option NAME.  Presently that only means defining a flag for this option.
 9839 AC_DEFUN([_AM_SET_OPTION],
 9840 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 9841 
 9842 # _AM_SET_OPTIONS(OPTIONS)
 9843 # ------------------------
 9844 # OPTIONS is a space-separated list of Automake options.
 9845 AC_DEFUN([_AM_SET_OPTIONS],
 9846 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 9847 
 9848 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 9849 # -------------------------------------------
 9850 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 9851 AC_DEFUN([_AM_IF_OPTION],
 9852 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 9853 
 9854 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9855 #
 9856 # This file is free software; the Free Software Foundation
 9857 # gives unlimited permission to copy and/or distribute it,
 9858 # with or without modifications, as long as this notice is preserved.
 9859 
 9860 # _AM_PROG_CC_C_O
 9861 # ---------------
 9862 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 9863 # to automatically call this.
 9864 AC_DEFUN([_AM_PROG_CC_C_O],
 9865 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 9866 AC_REQUIRE_AUX_FILE([compile])dnl
 9867 AC_LANG_PUSH([C])dnl
 9868 AC_CACHE_CHECK(
 9869   [whether $CC understands -c and -o together],
 9870   [am_cv_prog_cc_c_o],
 9871   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 9872   # Make sure it works both with $CC and with simple cc.
 9873   # Following AC_PROG_CC_C_O, we do the test twice because some
 9874   # compilers refuse to overwrite an existing .o file with -o,
 9875   # though they will create one.
 9876   am_cv_prog_cc_c_o=yes
 9877   for am_i in 1 2; do
 9878     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 9879          && test -f conftest2.$ac_objext; then
 9880       : OK
 9881     else
 9882       am_cv_prog_cc_c_o=no
 9883       break
 9884     fi
 9885   done
 9886   rm -f core conftest*
 9887   unset am_i])
 9888 if test "$am_cv_prog_cc_c_o" != yes; then
 9889    # Losing compiler, so override with the script.
 9890    # FIXME: It is wrong to rewrite CC.
 9891    # But if we don't then we get into trouble of one sort or another.
 9892    # A longer-term fix would be to have automake use am__CC in this case,
 9893    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 9894    CC="$am_aux_dir/compile $CC"
 9895 fi
 9896 AC_LANG_POP([C])])
 9897 
 9898 # For backward compatibility.
 9899 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 9900 
 9901 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
 9902 #
 9903 # This file is free software; the Free Software Foundation
 9904 # gives unlimited permission to copy and/or distribute it,
 9905 # with or without modifications, as long as this notice is preserved.
 9906 
 9907 
 9908 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 9909 # ---------------------------------------------------------------------------
 9910 # Adds support for distributing Python modules and packages.  To
 9911 # install modules, copy them to $(pythondir), using the python_PYTHON
 9912 # automake variable.  To install a package with the same name as the
 9913 # automake package, install to $(pkgpythondir), or use the
 9914 # pkgpython_PYTHON automake variable.
 9915 #
 9916 # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 9917 # locations to install python extension modules (shared libraries).
 9918 # Another macro is required to find the appropriate flags to compile
 9919 # extension modules.
 9920 #
 9921 # If your package is configured with a different prefix to python,
 9922 # users will have to add the install directory to the PYTHONPATH
 9923 # environment variable, or create a .pth file (see the python
 9924 # documentation for details).
 9925 #
 9926 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 9927 # cause an error if the version of python installed on the system
 9928 # doesn't meet the requirement.  MINIMUM-VERSION should consist of
 9929 # numbers and dots only.
 9930 AC_DEFUN([AM_PATH_PYTHON],
 9931  [
 9932   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 9933   dnl supported. (2.0 was released on October 16, 2000).
 9934   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 9935 [python python2 python3 dnl
 9936  python3.11 python3.10 dnl
 9937  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
 9938  python3.2 python3.1 python3.0 dnl
 9939  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
 9940  python2.0])
 9941 
 9942   AC_ARG_VAR([PYTHON], [the Python interpreter])
 9943 
 9944   m4_if([$1],[],[
 9945     dnl No version check is needed.
 9946     # Find any Python interpreter.
 9947     if test -z "$PYTHON"; then
 9948       AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 9949     fi
 9950     am_display_PYTHON=python
 9951   ], [
 9952     dnl A version check is needed.
 9953     if test -n "$PYTHON"; then
 9954       # If the user set $PYTHON, use it and don't search something else.
 9955       AC_MSG_CHECKING([whether $PYTHON version is >= $1])
 9956       AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 9957 			      [AC_MSG_RESULT([yes])],
 9958 			      [AC_MSG_RESULT([no])
 9959 			       AC_MSG_ERROR([Python interpreter is too old])])
 9960       am_display_PYTHON=$PYTHON
 9961     else
 9962       # Otherwise, try each interpreter until we find one that satisfies
 9963       # VERSION.
 9964       AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 9965 	[am_cv_pathless_PYTHON],[
 9966 	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 9967 	  test "$am_cv_pathless_PYTHON" = none && break
 9968 	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 9969 	done])
 9970       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 9971       if test "$am_cv_pathless_PYTHON" = none; then
 9972 	PYTHON=:
 9973       else
 9974         AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 9975       fi
 9976       am_display_PYTHON=$am_cv_pathless_PYTHON
 9977     fi
 9978   ])
 9979 
 9980   if test "$PYTHON" = :; then
 9981     dnl Run any user-specified action, or abort.
 9982     m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 9983   else
 9984 
 9985   dnl Query Python for its version number.  Although site.py simply uses
 9986   dnl sys.version[:3], printing that failed with Python 3.10, since the
 9987   dnl trailing zero was eliminated. So now we output just the major
 9988   dnl and minor version numbers, as numbers. Apparently the tertiary
 9989   dnl version is not of interest.
 9990   dnl
 9991   AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 9992     [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`])
 9993   AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 9994 
 9995   dnl At times, e.g., when building shared libraries, you may want
 9996   dnl to know which OS platform Python thinks this is.
 9997   dnl
 9998   AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 9999     [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
10000   AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
10001 
10002   dnl emacs-page
10003   dnl If --with-python-sys-prefix is given, use the values of sys.prefix
10004   dnl and sys.exec_prefix for the corresponding values of PYTHON_PREFIX
10005   dnl and PYTHON_EXEC_PREFIX. Otherwise, use the GNU ${prefix} and
10006   dnl ${exec_prefix} variables.
10007   dnl
10008   dnl The two are made distinct variables so they can be overridden if
10009   dnl need be, although general consensus is that you shouldn't need
10010   dnl this separation.
10011   dnl
10012   dnl Also allow directly setting the prefixes via configure options,
10013   dnl overriding any default.
10014   dnl
10015   if test "x$prefix" = xNONE; then
10016     am__usable_prefix=$ac_default_prefix
10017   else
10018     am__usable_prefix=$prefix
10019   fi
10020 
10021   # Allow user to request using sys.* values from Python,
10022   # instead of the GNU $prefix values.
10023   AC_ARG_WITH([python-sys-prefix],
10024   [AS_HELP_STRING([--with-python-sys-prefix],
10025                   [use Python's sys.prefix and sys.exec_prefix values])],
10026   [am_use_python_sys=:],
10027   [am_use_python_sys=false])
10028 
10029   # Allow user to override whatever the default Python prefix is.
10030   AC_ARG_WITH([python_prefix],
10031   [AS_HELP_STRING([--with-python_prefix],
10032                   [override the default PYTHON_PREFIX])],
10033   [am_python_prefix_subst=$withval
10034    am_cv_python_prefix=$withval
10035    AC_MSG_CHECKING([for explicit $am_display_PYTHON prefix])
10036    AC_MSG_RESULT([$am_cv_python_prefix])],
10037   [
10038    if $am_use_python_sys; then
10039      # using python sys.prefix value, not GNU
10040      AC_CACHE_CHECK([for python default $am_display_PYTHON prefix],
10041      [am_cv_python_prefix],
10042      [am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`])
10043 
10044      dnl If sys.prefix is a subdir of $prefix, replace the literal value of
10045      dnl $prefix with a variable reference so it can be overridden.
10046      case $am_cv_python_prefix in
10047      $am__usable_prefix*)
10048        am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
10049        am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
10050        ;;
10051      *)
10052        am_python_prefix_subst=$am_cv_python_prefix
10053        ;;
10054      esac
10055    else # using GNU prefix value, not python sys.prefix
10056      am_python_prefix_subst='${prefix}'
10057      am_python_prefix=$am_python_prefix_subst
10058      AC_MSG_CHECKING([for GNU default $am_display_PYTHON prefix])
10059      AC_MSG_RESULT([$am_python_prefix])
10060    fi])
10061   # Substituting python_prefix_subst value.
10062   AC_SUBST([PYTHON_PREFIX], [$am_python_prefix_subst])
10063 
10064   # emacs-page Now do it all over again for Python exec_prefix, but with yet
10065   # another conditional: fall back to regular prefix if that was specified.
10066   AC_ARG_WITH([python_exec_prefix],
10067   [AS_HELP_STRING([--with-python_exec_prefix],
10068                   [override the default PYTHON_EXEC_PREFIX])],
10069   [am_python_exec_prefix_subst=$withval
10070    am_cv_python_exec_prefix=$withval
10071    AC_MSG_CHECKING([for explicit $am_display_PYTHON exec_prefix])
10072    AC_MSG_RESULT([$am_cv_python_exec_prefix])],
10073   [
10074    # no explicit --with-python_exec_prefix, but if
10075    # --with-python_prefix was given, use its value for python_exec_prefix too.
10076    AS_IF([test -n "$with_python_prefix"],
10077    [am_python_exec_prefix_subst=$with_python_prefix
10078     am_cv_python_exec_prefix=$with_python_prefix
10079     AC_MSG_CHECKING([for python_prefix-given $am_display_PYTHON exec_prefix])
10080     AC_MSG_RESULT([$am_cv_python_exec_prefix])],
10081    [
10082     # Set am__usable_exec_prefix whether using GNU or Python values,
10083     # since we use that variable for pyexecdir.
10084     if test "x$exec_prefix" = xNONE; then
10085       am__usable_exec_prefix=$am__usable_prefix
10086     else
10087       am__usable_exec_prefix=$exec_prefix
10088     fi
10089     #
10090     if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
10091       AC_CACHE_CHECK([for python default $am_display_PYTHON exec_prefix],
10092       [am_cv_python_exec_prefix],
10093       [am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`])
10094       dnl If sys.exec_prefix is a subdir of $exec_prefix, replace the
10095       dnl literal value of $exec_prefix with a variable reference so it can
10096       dnl be overridden.
10097       case $am_cv_python_exec_prefix in
10098       $am__usable_exec_prefix*)
10099         am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
10100         am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
10101         ;;
10102       *)
10103         am_python_exec_prefix_subst=$am_cv_python_exec_prefix
10104         ;;
10105      esac
10106    else # using GNU $exec_prefix, not python sys.exec_prefix
10107      am_python_exec_prefix_subst='${exec_prefix}'
10108      am_python_exec_prefix=$am_python_exec_prefix_subst
10109      AC_MSG_CHECKING([for GNU default $am_display_PYTHON exec_prefix])
10110      AC_MSG_RESULT([$am_python_exec_prefix])
10111    fi])])
10112   # Substituting python_exec_prefix_subst.
10113   AC_SUBST([PYTHON_EXEC_PREFIX], [$am_python_exec_prefix_subst])
10114 
10115   # Factor out some code duplication into this shell variable.
10116   am_python_setup_sysconfig="\
10117 import sys
10118 # Prefer sysconfig over distutils.sysconfig, for better compatibility
10119 # with python 3.x.  See automake bug#10227.
10120 try:
10121     import sysconfig
10122 except ImportError:
10123     can_use_sysconfig = 0
10124 else:
10125     can_use_sysconfig = 1
10126 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
10127 # <https://github.com/pypa/virtualenv/issues/118>
10128 try:
10129     from platform import python_implementation
10130     if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
10131         can_use_sysconfig = 0
10132 except ImportError:
10133     pass"
10134 
10135   dnl emacs-page Set up 4 directories:
10136 
10137   dnl 1. pythondir: where to install python scripts.  This is the
10138   dnl    site-packages directory, not the python standard library
10139   dnl    directory like in previous automake betas.  This behavior
10140   dnl    is more consistent with lispdir.m4 for example.
10141   dnl Query distutils for this directory.
10142   dnl
10143   AC_CACHE_CHECK([for $am_display_PYTHON script directory (pythondir)],
10144   [am_cv_python_pythondir],
10145   [if test "x$am_cv_python_prefix" = x; then
10146      am_py_prefix=$am__usable_prefix
10147    else
10148      am_py_prefix=$am_cv_python_prefix
10149    fi
10150    am_cv_python_pythondir=`$PYTHON -c "
10151 $am_python_setup_sysconfig
10152 if can_use_sysconfig:
10153   if hasattr(sysconfig, 'get_default_scheme'):
10154     scheme = sysconfig.get_default_scheme()
10155   else:
10156     scheme = sysconfig._get_default_scheme()
10157   if scheme == 'posix_local':
10158     # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
10159     scheme = 'posix_prefix'
10160   sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
10161 else:
10162   from distutils import sysconfig
10163   sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
10164 sys.stdout.write(sitedir)"`
10165    #
10166    case $am_cv_python_pythondir in
10167    $am_py_prefix*)
10168      am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10169      am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
10170      ;;
10171    *)
10172      case $am_py_prefix in
10173        /usr|/System*) ;;
10174        *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10175           ;;
10176      esac
10177      ;;
10178    esac
10179   ])
10180   AC_SUBST([pythondir], [$am_cv_python_pythondir])
10181 
10182   dnl 2. pkgpythondir: $PACKAGE directory under pythondir.  Was
10183   dnl    PYTHON_SITE_PACKAGE in previous betas, but this naming is
10184   dnl    more consistent with the rest of automake.
10185   dnl
10186   AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
10187 
10188   dnl 3. pyexecdir: directory for installing python extension modules
10189   dnl    (shared libraries).
10190   dnl Query distutils for this directory.
10191   dnl
10192   AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)],
10193   [am_cv_python_pyexecdir],
10194   [if test "x$am_cv_python_exec_prefix" = x; then
10195      am_py_exec_prefix=$am__usable_exec_prefix
10196    else
10197      am_py_exec_prefix=$am_cv_python_exec_prefix
10198    fi
10199    am_cv_python_pyexecdir=`$PYTHON -c "
10200 $am_python_setup_sysconfig
10201 if can_use_sysconfig:
10202   if hasattr(sysconfig, 'get_default_scheme'):
10203     scheme = sysconfig.get_default_scheme()
10204   else:
10205     scheme = sysconfig._get_default_scheme()
10206   if scheme == 'posix_local':
10207     # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
10208     scheme = 'posix_prefix'
10209   sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
10210 else:
10211   from distutils import sysconfig
10212   sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
10213 sys.stdout.write(sitedir)"`
10214    #
10215    case $am_cv_python_pyexecdir in
10216    $am_py_exec_prefix*)
10217      am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10218      am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
10219      ;;
10220    *)
10221      case $am_py_exec_prefix in
10222        /usr|/System*) ;;
10223        *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10224           ;;
10225      esac
10226      ;;
10227    esac
10228   ])
10229   AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
10230 
10231   dnl 4. pkgpyexecdir: $(pyexecdir)/$(PACKAGE)
10232   dnl
10233   AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
10234 
10235   dnl Run any user-specified action.
10236   $2
10237   fi
10238 ])
10239 
10240 
10241 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
10242 # ---------------------------------------------------------------------------
10243 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
10244 # Run ACTION-IF-FALSE otherwise.
10245 # This test uses sys.hexversion instead of the string equivalent (first
10246 # word of sys.version), in order to cope with versions such as 2.2c1.
10247 # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
10248 AC_DEFUN([AM_PYTHON_CHECK_VERSION],
10249  [prog="import sys
10250 # split strings by '.' and convert to numeric.  Append some zeros
10251 # because we need at least 4 digits for the hex conversion.
10252 # map returns an iterator in Python 3.0 and a list in 2.x
10253 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
10254 minverhex = 0
10255 # xrange is not present in Python 3.0 and range returns an iterator
10256 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
10257 sys.exit(sys.hexversion < minverhex)"
10258   AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
10259 
10260 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10261 #
10262 # This file is free software; the Free Software Foundation
10263 # gives unlimited permission to copy and/or distribute it,
10264 # with or without modifications, as long as this notice is preserved.
10265 
10266 # AM_RUN_LOG(COMMAND)
10267 # -------------------
10268 # Run COMMAND, save the exit status in ac_status, and log it.
10269 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10270 AC_DEFUN([AM_RUN_LOG],
10271 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10272    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10273    ac_status=$?
10274    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10275    (exit $ac_status); }])
10276 
10277 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
10278 
10279 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
10280 #
10281 # This file is free software; the Free Software Foundation
10282 # gives unlimited permission to copy and/or distribute it,
10283 # with or without modifications, as long as this notice is preserved.
10284 
10285 # AM_SANITY_CHECK
10286 # ---------------
10287 AC_DEFUN([AM_SANITY_CHECK],
10288 [AC_MSG_CHECKING([whether build environment is sane])
10289 # Reject unsafe characters in $srcdir or the absolute working directory
10290 # name.  Accept space and tab only in the latter.
10291 am_lf='
10292 '
10293 case `pwd` in
10294   *[[\\\"\#\$\&\'\`$am_lf]]*)
10295     AC_MSG_ERROR([unsafe absolute working directory name]);;
10296 esac
10297 case $srcdir in
10298   *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
10299     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10300 esac
10301 
10302 # Do 'set' in a subshell so we don't clobber the current shell's
10303 # arguments.  Must try -L first in case configure is actually a
10304 # symlink; some systems play weird games with the mod time of symlinks
10305 # (eg FreeBSD returns the mod time of the symlink's containing
10306 # directory).
10307 if (
10308    am_has_slept=no
10309    for am_try in 1 2; do
10310      echo "timestamp, slept: $am_has_slept" > conftest.file
10311      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10312      if test "$[*]" = "X"; then
10313 	# -L didn't work.
10314 	set X `ls -t "$srcdir/configure" conftest.file`
10315      fi
10316      if test "$[*]" != "X $srcdir/configure conftest.file" \
10317 	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10318 
10319 	# If neither matched, then we have a broken ls.  This can happen
10320 	# if, for instance, CONFIG_SHELL is bash and it inherits a
10321 	# broken ls alias from the environment.  This has actually
10322 	# happened.  Such a system could not be considered "sane".
10323 	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10324   alias in your environment])
10325      fi
10326      if test "$[2]" = conftest.file || test $am_try -eq 2; then
10327        break
10328      fi
10329      # Just in case.
10330      sleep 1
10331      am_has_slept=yes
10332    done
10333    test "$[2]" = conftest.file
10334    )
10335 then
10336    # Ok.
10337    :
10338 else
10339    AC_MSG_ERROR([newly created file is older than distributed files!
10340 Check your system clock])
10341 fi
10342 AC_MSG_RESULT([yes])
10343 # If we didn't sleep, we still need to ensure time stamps of config.status and
10344 # generated files are strictly newer.
10345 am_sleep_pid=
10346 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10347   ( sleep 1 ) &
10348   am_sleep_pid=$!
10349 fi
10350 AC_CONFIG_COMMANDS_PRE(
10351   [AC_MSG_CHECKING([that generated files are newer than configure])
10352    if test -n "$am_sleep_pid"; then
10353      # Hide warnings about reused PIDs.
10354      wait $am_sleep_pid 2>/dev/null
10355    fi
10356    AC_MSG_RESULT([done])])
10357 rm -f conftest.file
10358 ])
10359 
10360 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
10361 #
10362 # This file is free software; the Free Software Foundation
10363 # gives unlimited permission to copy and/or distribute it,
10364 # with or without modifications, as long as this notice is preserved.
10365 
10366 # AM_SILENT_RULES([DEFAULT])
10367 # --------------------------
10368 # Enable less verbose build rules; with the default set to DEFAULT
10369 # ("yes" being less verbose, "no" or empty being verbose).
10370 AC_DEFUN([AM_SILENT_RULES],
10371 [AC_ARG_ENABLE([silent-rules], [dnl
10372 AS_HELP_STRING(
10373   [--enable-silent-rules],
10374   [less verbose build output (undo: "make V=1")])
10375 AS_HELP_STRING(
10376   [--disable-silent-rules],
10377   [verbose build output (undo: "make V=0")])dnl
10378 ])
10379 case $enable_silent_rules in @%:@ (((
10380   yes) AM_DEFAULT_VERBOSITY=0;;
10381    no) AM_DEFAULT_VERBOSITY=1;;
10382     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10383 esac
10384 dnl
10385 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10386 dnl do not support nested variable expansions.
10387 dnl See automake bug#9928 and bug#10237.
10388 am_make=${MAKE-make}
10389 AC_CACHE_CHECK([whether $am_make supports nested variables],
10390    [am_cv_make_support_nested_variables],
10391    [if AS_ECHO([['TRUE=$(BAR$(V))
10392 BAR0=false
10393 BAR1=true
10394 V=1
10395 am__doit:
10396 	@$(TRUE)
10397 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10398   am_cv_make_support_nested_variables=yes
10399 else
10400   am_cv_make_support_nested_variables=no
10401 fi])
10402 if test $am_cv_make_support_nested_variables = yes; then
10403   dnl Using '$V' instead of '$(V)' breaks IRIX make.
10404   AM_V='$(V)'
10405   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10406 else
10407   AM_V=$AM_DEFAULT_VERBOSITY
10408   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10409 fi
10410 AC_SUBST([AM_V])dnl
10411 AM_SUBST_NOTMAKE([AM_V])dnl
10412 AC_SUBST([AM_DEFAULT_V])dnl
10413 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10414 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10415 AM_BACKSLASH='\'
10416 AC_SUBST([AM_BACKSLASH])dnl
10417 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10418 ])
10419 
10420 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10421 #
10422 # This file is free software; the Free Software Foundation
10423 # gives unlimited permission to copy and/or distribute it,
10424 # with or without modifications, as long as this notice is preserved.
10425 
10426 # AM_PROG_INSTALL_STRIP
10427 # ---------------------
10428 # One issue with vendor 'install' (even GNU) is that you can't
10429 # specify the program used to strip binaries.  This is especially
10430 # annoying in cross-compiling environments, where the build's strip
10431 # is unlikely to handle the host's binaries.
10432 # Fortunately install-sh will honor a STRIPPROG variable, so we
10433 # always use install-sh in "make install-strip", and initialize
10434 # STRIPPROG with the value of the STRIP variable (set by the user).
10435 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10436 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10437 # Installed binaries are usually stripped using 'strip' when the user
10438 # run "make install-strip".  However 'strip' might not be the right
10439 # tool to use in cross-compilation environments, therefore Automake
10440 # will honor the 'STRIP' environment variable to overrule this program.
10441 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10442 if test "$cross_compiling" != no; then
10443   AC_CHECK_TOOL([STRIP], [strip], :)
10444 fi
10445 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10446 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10447 
10448 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
10449 #
10450 # This file is free software; the Free Software Foundation
10451 # gives unlimited permission to copy and/or distribute it,
10452 # with or without modifications, as long as this notice is preserved.
10453 
10454 # _AM_SUBST_NOTMAKE(VARIABLE)
10455 # ---------------------------
10456 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10457 # This macro is traced by Automake.
10458 AC_DEFUN([_AM_SUBST_NOTMAKE])
10459 
10460 # AM_SUBST_NOTMAKE(VARIABLE)
10461 # --------------------------
10462 # Public sister of _AM_SUBST_NOTMAKE.
10463 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10464 
10465 # Check how to create a tarball.                            -*- Autoconf -*-
10466 
10467 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10468 #
10469 # This file is free software; the Free Software Foundation
10470 # gives unlimited permission to copy and/or distribute it,
10471 # with or without modifications, as long as this notice is preserved.
10472 
10473 # _AM_PROG_TAR(FORMAT)
10474 # --------------------
10475 # Check how to create a tarball in format FORMAT.
10476 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10477 #
10478 # Substitute a variable $(am__tar) that is a command
10479 # writing to stdout a FORMAT-tarball containing the directory
10480 # $tardir.
10481 #     tardir=directory && $(am__tar) > result.tar
10482 #
10483 # Substitute a variable $(am__untar) that extract such
10484 # a tarball read from stdin.
10485 #     $(am__untar) < result.tar
10486 #
10487 AC_DEFUN([_AM_PROG_TAR],
10488 [# Always define AMTAR for backward compatibility.  Yes, it's still used
10489 # in the wild :-(  We should find a proper way to deprecate it ...
10490 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10491 
10492 # We'll loop over all known methods to create a tar archive until one works.
10493 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10494 
10495 m4_if([$1], [v7],
10496   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10497 
10498   [m4_case([$1],
10499     [ustar],
10500      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10501       # There is notably a 21 bits limit for the UID and the GID.  In fact,
10502       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10503       # and bug#13588).
10504       am_max_uid=2097151 # 2^21 - 1
10505       am_max_gid=$am_max_uid
10506       # The $UID and $GID variables are not portable, so we need to resort
10507       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
10508       # below are definitely unexpected, so allow the users to see them
10509       # (that is, avoid stderr redirection).
10510       am_uid=`id -u || echo unknown`
10511       am_gid=`id -g || echo unknown`
10512       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10513       if test $am_uid -le $am_max_uid; then
10514          AC_MSG_RESULT([yes])
10515       else
10516          AC_MSG_RESULT([no])
10517          _am_tools=none
10518       fi
10519       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10520       if test $am_gid -le $am_max_gid; then
10521          AC_MSG_RESULT([yes])
10522       else
10523         AC_MSG_RESULT([no])
10524         _am_tools=none
10525       fi],
10526 
10527   [pax],
10528     [],
10529 
10530   [m4_fatal([Unknown tar format])])
10531 
10532   AC_MSG_CHECKING([how to create a $1 tar archive])
10533 
10534   # Go ahead even if we have the value already cached.  We do so because we
10535   # need to set the values for the 'am__tar' and 'am__untar' variables.
10536   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10537 
10538   for _am_tool in $_am_tools; do
10539     case $_am_tool in
10540     gnutar)
10541       for _am_tar in tar gnutar gtar; do
10542         AM_RUN_LOG([$_am_tar --version]) && break
10543       done
10544       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10545       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10546       am__untar="$_am_tar -xf -"
10547       ;;
10548     plaintar)
10549       # Must skip GNU tar: if it does not support --format= it doesn't create
10550       # ustar tarball either.
10551       (tar --version) >/dev/null 2>&1 && continue
10552       am__tar='tar chf - "$$tardir"'
10553       am__tar_='tar chf - "$tardir"'
10554       am__untar='tar xf -'
10555       ;;
10556     pax)
10557       am__tar='pax -L -x $1 -w "$$tardir"'
10558       am__tar_='pax -L -x $1 -w "$tardir"'
10559       am__untar='pax -r'
10560       ;;
10561     cpio)
10562       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10563       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10564       am__untar='cpio -i -H $1 -d'
10565       ;;
10566     none)
10567       am__tar=false
10568       am__tar_=false
10569       am__untar=false
10570       ;;
10571     esac
10572 
10573     # If the value was cached, stop now.  We just wanted to have am__tar
10574     # and am__untar set.
10575     test -n "${am_cv_prog_tar_$1}" && break
10576 
10577     # tar/untar a dummy directory, and stop if the command works.
10578     rm -rf conftest.dir
10579     mkdir conftest.dir
10580     echo GrepMe > conftest.dir/file
10581     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10582     rm -rf conftest.dir
10583     if test -s conftest.tar; then
10584       AM_RUN_LOG([$am__untar <conftest.tar])
10585       AM_RUN_LOG([cat conftest.dir/file])
10586       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10587     fi
10588   done
10589   rm -rf conftest.dir
10590 
10591   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10592   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10593 
10594 AC_SUBST([am__tar])
10595 AC_SUBST([am__untar])
10596 ]) # _AM_PROG_TAR
10597