Home | History | Annotate | Line # | Download | only in m4
      1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
      2 #
      3 #   Copyright (C) 1996-2001, 2003-2019, 2021-2024 Free Software
      4 #   Foundation, Inc.
      5 #   Written by Gordon Matzigkeit, 1996
      6 #
      7 # This file is free software; the Free Software Foundation gives
      8 # unlimited permission to copy and/or distribute it, with or without
      9 # modifications, as long as this notice is preserved.
     10 
     11 m4_define([_LT_COPYING], [dnl
     12 # Copyright (C) 2024 Free Software Foundation, Inc.
     13 # This is free software; see the source for copying conditions.  There is NO
     14 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     15 
     16 # GNU Libtool is free software; you can redistribute it and/or modify
     17 # it under the terms of the GNU General Public License as published by
     18 # the Free Software Foundation; either version 2 of the License, or
     19 # (at your option) any later version.
     20 #
     21 # As a special exception to the GNU General Public License, if you
     22 # distribute this file as part of a program or library that is built
     23 # using GNU Libtool, you may include this file under the  same
     24 # distribution terms that you use for the rest of that program.
     25 #
     26 # GNU Libtool is distributed in the hope that it will be useful, but
     27 # WITHOUT ANY WARRANTY; without even the implied warranty of
     28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     29 # GNU General Public License for more details.
     30 #
     31 # You should have received a copy of the GNU General Public License
     32 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     33 ])
     34 
     35 # serial 63 LT_INIT
     36 
     37 
     38 # LT_PREREQ(VERSION)
     39 # ------------------
     40 # Complain and exit if this libtool version is less that VERSION.
     41 m4_defun([LT_PREREQ],
     42 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
     43        [m4_default([$3],
     44 		   [m4_fatal([Libtool version $1 or higher is required],
     45 		             63)])],
     46        [$2])])
     47 
     48 
     49 # _LT_CHECK_BUILDDIR
     50 # ------------------
     51 # Complain if the absolute build directory name contains unusual characters
     52 m4_defun([_LT_CHECK_BUILDDIR],
     53 [case `pwd` in
     54   *\ * | *\	*)
     55     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
     56 esac
     57 ])
     58 
     59 
     60 # LT_INIT([OPTIONS])
     61 # ------------------
     62 AC_DEFUN([LT_INIT],
     63 [AC_PREREQ([2.64])dnl We use AC_PATH_PROGS_FEATURE_CHECK
     64 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
     65 AC_BEFORE([$0], [LT_LANG])dnl
     66 AC_BEFORE([$0], [LT_OUTPUT])dnl
     67 AC_BEFORE([$0], [LTDL_INIT])dnl
     68 m4_require([_LT_CHECK_BUILDDIR])dnl
     69 
     70 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
     71 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
     72 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
     73 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
     74 dnl unless we require an AC_DEFUNed macro:
     75 AC_REQUIRE([LTOPTIONS_VERSION])dnl
     76 AC_REQUIRE([LTSUGAR_VERSION])dnl
     77 AC_REQUIRE([LTVERSION_VERSION])dnl
     78 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
     79 m4_require([_LT_PROG_LTMAIN])dnl
     80 
     81 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
     82 
     83 dnl Parse OPTIONS
     84 _LT_SET_OPTIONS([$0], [$1])
     85 
     86 # This can be used to rebuild libtool when needed
     87 LIBTOOL_DEPS=$ltmain
     88 
     89 # Always use our own libtool.
     90 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
     91 AC_SUBST(LIBTOOL)dnl
     92 
     93 _LT_SETUP
     94 
     95 # Only expand once:
     96 m4_define([LT_INIT])
     97 ])# LT_INIT
     98 
     99 # Old names:
    100 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
    101 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
    102 dnl aclocal-1.4 backwards compatibility:
    103 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
    104 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
    105 
    106 
    107 # _LT_PREPARE_CC_BASENAME
    108 # -----------------------
    109 m4_defun([_LT_PREPARE_CC_BASENAME], [
    110 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
    111 func_cc_basename ()
    112 {
    113     for cc_temp in @S|@*""; do
    114       case $cc_temp in
    115         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
    116         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
    117         \-*) ;;
    118         *) break;;
    119       esac
    120     done
    121     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    122 }
    123 ])# _LT_PREPARE_CC_BASENAME
    124 
    125 
    126 # _LT_CC_BASENAME(CC)
    127 # -------------------
    128 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
    129 # but that macro is also expanded into generated libtool script, which
    130 # arranges for $SED and $ECHO to be set by different means.
    131 m4_defun([_LT_CC_BASENAME],
    132 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
    133 AC_REQUIRE([_LT_DECL_SED])dnl
    134 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    135 func_cc_basename $1
    136 cc_basename=$func_cc_basename_result
    137 ])
    138 
    139 
    140 # _LT_FILEUTILS_DEFAULTS
    141 # ----------------------
    142 # It is okay to use these file commands and assume they have been set
    143 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
    144 m4_defun([_LT_FILEUTILS_DEFAULTS],
    145 [: ${CP="cp -f"}
    146 : ${MV="mv -f"}
    147 : ${RM="rm -f"}
    148 ])# _LT_FILEUTILS_DEFAULTS
    149 
    150 
    151 # _LT_SETUP
    152 # ---------
    153 m4_defun([_LT_SETUP],
    154 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    155 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    156 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
    157 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    158 
    159 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
    160 dnl
    161 _LT_DECL([], [host_alias], [0], [The host system])dnl
    162 _LT_DECL([], [host], [0])dnl
    163 _LT_DECL([], [host_os], [0])dnl
    164 dnl
    165 _LT_DECL([], [build_alias], [0], [The build system])dnl
    166 _LT_DECL([], [build], [0])dnl
    167 _LT_DECL([], [build_os], [0])dnl
    168 dnl
    169 AC_REQUIRE([AC_PROG_CC])dnl
    170 AC_REQUIRE([LT_PATH_LD])dnl
    171 AC_REQUIRE([LT_PATH_NM])dnl
    172 dnl
    173 AC_REQUIRE([AC_PROG_LN_S])dnl
    174 test -z "$LN_S" && LN_S="ln -s"
    175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
    176 dnl
    177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
    178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
    179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
    180 dnl
    181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    183 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    184 m4_require([_LT_CMD_RELOAD])dnl
    185 m4_require([_LT_DECL_FILECMD])dnl
    186 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
    187 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    188 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    189 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    190 m4_require([_LT_WITH_SYSROOT])dnl
    191 m4_require([_LT_CMD_TRUNCATE])dnl
    192 
    193 _LT_CONFIG_LIBTOOL_INIT([
    194 # See if we are running on zsh, and set the options that allow our
    195 # commands through without removal of \ escapes INIT.
    196 if test -n "\${ZSH_VERSION+set}"; then
    197    setopt NO_GLOB_SUBST
    198 fi
    199 ])
    200 if test -n "${ZSH_VERSION+set}"; then
    201    setopt NO_GLOB_SUBST
    202 fi
    203 
    204 _LT_CHECK_OBJDIR
    205 
    206 m4_require([_LT_TAG_COMPILER])dnl
    207 
    208 case $host_os in
    209 aix3*)
    210   # AIX sometimes has problems with the GCC collect2 program.  For some
    211   # reason, if we set the COLLECT_NAMES environment variable, the problems
    212   # vanish in a puff of smoke.
    213   if test set != "${COLLECT_NAMES+set}"; then
    214     COLLECT_NAMES=
    215     export COLLECT_NAMES
    216   fi
    217   ;;
    218 esac
    219 
    220 # Global variables:
    221 ofile=libtool
    222 can_build_shared=yes
    223 
    224 # All known linkers require a '.a' archive for static linking (except MSVC and
    225 # ICC, which need '.lib').
    226 libext=a
    227 
    228 with_gnu_ld=$lt_cv_prog_gnu_ld
    229 
    230 old_CC=$CC
    231 old_CFLAGS=$CFLAGS
    232 
    233 # Set sane defaults for various variables
    234 test -z "$CC" && CC=cc
    235 test -z "$LTCC" && LTCC=$CC
    236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    237 test -z "$LD" && LD=ld
    238 test -z "$ac_objext" && ac_objext=o
    239 
    240 _LT_CC_BASENAME([$compiler])
    241 
    242 # Only perform the check for file, if the check method requires it
    243 test -z "$MAGIC_CMD" && MAGIC_CMD=file
    244 case $deplibs_check_method in
    245 file_magic*)
    246   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    247     _LT_PATH_MAGIC
    248   fi
    249   ;;
    250 esac
    251 
    252 # Use C for the default configuration in the libtool script
    253 LT_SUPPORTED_TAG([CC])
    254 _LT_LANG_C_CONFIG
    255 _LT_LANG_DEFAULT_CONFIG
    256 _LT_CONFIG_COMMANDS
    257 ])# _LT_SETUP
    258 
    259 
    260 # _LT_PREPARE_SED_QUOTE_VARS
    261 # --------------------------
    262 # Define a few sed substitution that help us do robust quoting.
    263 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
    264 [# Backslashify metacharacters that are still active within
    265 # double-quoted strings.
    266 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
    267 
    268 # Same as above, but do not quote variable references.
    269 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
    270 
    271 # Sed substitution to delay expansion of an escaped shell variable in a
    272 # double_quote_subst'ed string.
    273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    274 
    275 # Sed substitution to delay expansion of an escaped single quote.
    276 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    277 
    278 # Sed substitution to avoid accidental globbing in evaled expressions
    279 no_glob_subst='s/\*/\\\*/g'
    280 ])
    281 
    282 # _LT_PROG_LTMAIN
    283 # ---------------
    284 # Note that this code is called both from 'configure', and 'config.status'
    285 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
    286 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
    287 # so we pass a copy along to make sure it has a sensible value anyway.
    288 m4_defun([_LT_PROG_LTMAIN],
    289 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
    290 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
    291 ltmain=$ac_aux_dir/ltmain.sh
    292 ])# _LT_PROG_LTMAIN
    293 
    294 
    295 ## ------------------------------------- ##
    296 ## Accumulate code for creating libtool. ##
    297 ## ------------------------------------- ##
    298 
    299 # So that we can recreate a full libtool script including additional
    300 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
    301 # in macros and then make a single call at the end using the 'libtool'
    302 # label.
    303 
    304 
    305 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
    306 # ----------------------------------------
    307 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
    308 m4_define([_LT_CONFIG_LIBTOOL_INIT],
    309 [m4_ifval([$1],
    310           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
    311                      [$1
    312 ])])])
    313 
    314 # Initialize.
    315 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
    316 
    317 
    318 # _LT_CONFIG_LIBTOOL([COMMANDS])
    319 # ------------------------------
    320 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
    321 m4_define([_LT_CONFIG_LIBTOOL],
    322 [m4_ifval([$1],
    323           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
    324                      [$1
    325 ])])])
    326 
    327 # Initialize.
    328 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
    329 
    330 
    331 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
    332 # -----------------------------------------------------
    333 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
    334 [_LT_CONFIG_LIBTOOL([$1])
    335 _LT_CONFIG_LIBTOOL_INIT([$2])
    336 ])
    337 
    338 
    339 # _LT_FORMAT_COMMENT([COMMENT])
    340 # -----------------------------
    341 # Add leading comment marks to the start of each line, and a trailing
    342 # full-stop to the whole comment if one is not present already.
    343 m4_define([_LT_FORMAT_COMMENT],
    344 [m4_ifval([$1], [
    345 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
    346               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
    347 )])
    348 
    349 
    350 
    351 ## ------------------------ ##
    352 ## FIXME: Eliminate VARNAME ##
    353 ## ------------------------ ##
    354 
    355 
    356 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
    357 # -------------------------------------------------------------------
    358 # CONFIGNAME is the name given to the value in the libtool script.
    359 # VARNAME is the (base) name used in the configure script.
    360 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
    361 # VARNAME.  Any other value will be used directly.
    362 m4_define([_LT_DECL],
    363 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
    364     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
    365 	[m4_ifval([$1], [$1], [$2])])
    366     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
    367     m4_ifval([$4],
    368 	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
    369     lt_dict_add_subkey([lt_decl_dict], [$2],
    370 	[tagged?], [m4_ifval([$5], [yes], [no])])])
    371 ])
    372 
    373 
    374 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
    375 # --------------------------------------------------------
    376 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
    377 
    378 
    379 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
    380 # ------------------------------------------------
    381 m4_define([lt_decl_tag_varnames],
    382 [_lt_decl_filter([tagged?], [yes], $@)])
    383 
    384 
    385 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
    386 # ---------------------------------------------------------
    387 m4_define([_lt_decl_filter],
    388 [m4_case([$#],
    389   [0], [m4_fatal([$0: too few arguments: $#])],
    390   [1], [m4_fatal([$0: too few arguments: $#: $1])],
    391   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
    392   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
    393   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
    394 ])
    395 
    396 
    397 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
    398 # --------------------------------------------------
    399 m4_define([lt_decl_quote_varnames],
    400 [_lt_decl_filter([value], [1], $@)])
    401 
    402 
    403 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
    404 # ---------------------------------------------------
    405 m4_define([lt_decl_dquote_varnames],
    406 [_lt_decl_filter([value], [2], $@)])
    407 
    408 
    409 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
    410 # ---------------------------------------------------
    411 m4_define([lt_decl_varnames_tagged],
    412 [m4_assert([$# <= 2])dnl
    413 _$0(m4_quote(m4_default([$1], [[, ]])),
    414     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
    415     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
    416 m4_define([_lt_decl_varnames_tagged],
    417 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
    418 
    419 
    420 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
    421 # ------------------------------------------------
    422 m4_define([lt_decl_all_varnames],
    423 [_$0(m4_quote(m4_default([$1], [[, ]])),
    424      m4_if([$2], [],
    425 	   m4_quote(lt_decl_varnames),
    426 	m4_quote(m4_shift($@))))[]dnl
    427 ])
    428 m4_define([_lt_decl_all_varnames],
    429 [lt_join($@, lt_decl_varnames_tagged([$1],
    430 			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
    431 ])
    432 
    433 
    434 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
    435 # ------------------------------------
    436 # Quote a variable value, and forward it to 'config.status' so that its
    437 # declaration there will have the same value as in 'configure'.  VARNAME
    438 # must have a single quote delimited value for this to work.
    439 m4_define([_LT_CONFIG_STATUS_DECLARE],
    440 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
    441 
    442 
    443 # _LT_CONFIG_STATUS_DECLARATIONS
    444 # ------------------------------
    445 # We delimit libtool config variables with single quotes, so when
    446 # we write them to config.status, we have to be sure to quote all
    447 # embedded single quotes properly.  In configure, this macro expands
    448 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
    449 #
    450 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
    451 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
    452 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
    453     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
    454 
    455 
    456 # _LT_LIBTOOL_TAGS
    457 # ----------------
    458 # Output comment and list of tags supported by the script
    459 m4_defun([_LT_LIBTOOL_TAGS],
    460 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
    461 available_tags='_LT_TAGS'dnl
    462 ])
    463 
    464 
    465 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
    466 # -----------------------------------
    467 # Extract the dictionary values for VARNAME (optionally with TAG) and
    468 # expand to a commented shell variable setting:
    469 #
    470 #    # Some comment about what VAR is for.
    471 #    visible_name=$lt_internal_name
    472 m4_define([_LT_LIBTOOL_DECLARE],
    473 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
    474 					   [description])))[]dnl
    475 m4_pushdef([_libtool_name],
    476     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
    477 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
    478     [0], [_libtool_name=[$]$1],
    479     [1], [_libtool_name=$lt_[]$1],
    480     [2], [_libtool_name=$lt_[]$1],
    481     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
    482 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
    483 ])
    484 
    485 
    486 # _LT_LIBTOOL_CONFIG_VARS
    487 # -----------------------
    488 # Produce commented declarations of non-tagged libtool config variables
    489 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
    490 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
    491 # section) are produced by _LT_LIBTOOL_TAG_VARS.
    492 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
    493 [m4_foreach([_lt_var],
    494     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
    495     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
    496 
    497 
    498 # _LT_LIBTOOL_TAG_VARS(TAG)
    499 # -------------------------
    500 m4_define([_LT_LIBTOOL_TAG_VARS],
    501 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
    502     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
    503 
    504 
    505 # _LT_TAGVAR(VARNAME, [TAGNAME])
    506 # ------------------------------
    507 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
    508 
    509 
    510 # _LT_CONFIG_COMMANDS
    511 # -------------------
    512 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
    513 # variables for single and double quote escaping we saved from calls
    514 # to _LT_DECL, we can put quote escaped variables declarations
    515 # into 'config.status', and then the shell code to quote escape them in
    516 # for loops in 'config.status'.  Finally, any additional code accumulated
    517 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
    518 m4_defun([_LT_CONFIG_COMMANDS],
    519 [AC_PROVIDE_IFELSE([LT_OUTPUT],
    520 	dnl If the libtool generation code has been placed in $CONFIG_LT,
    521 	dnl instead of duplicating it all over again into config.status,
    522 	dnl then we will have config.status run $CONFIG_LT later, so it
    523 	dnl needs to know what name is stored there:
    524         [AC_CONFIG_COMMANDS([libtool],
    525             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
    526     dnl If the libtool generation code is destined for config.status,
    527     dnl expand the accumulated commands and init code now:
    528     [AC_CONFIG_COMMANDS([libtool],
    529         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
    530 ])#_LT_CONFIG_COMMANDS
    531 
    532 
    533 # Initialize.
    534 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
    535 [
    536 
    537 # The HP-UX ksh and POSIX shell print the target directory to stdout
    538 # if CDPATH is set.
    539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    540 
    541 sed_quote_subst='$sed_quote_subst'
    542 double_quote_subst='$double_quote_subst'
    543 delay_variable_subst='$delay_variable_subst'
    544 _LT_CONFIG_STATUS_DECLARATIONS
    545 LTCC='$LTCC'
    546 LTCFLAGS='$LTCFLAGS'
    547 compiler='$compiler_DEFAULT'
    548 
    549 # A function that is used when there is no print builtin or printf.
    550 func_fallback_echo ()
    551 {
    552   eval 'cat <<_LTECHO_EOF
    553 \$[]1
    554 _LTECHO_EOF'
    555 }
    556 
    557 # Quote evaled strings.
    558 for var in lt_decl_all_varnames([[ \
    559 ]], lt_decl_quote_varnames); do
    560     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    561     *[[\\\\\\\`\\"\\\$]]*)
    562       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
    563       ;;
    564     *)
    565       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
    566       ;;
    567     esac
    568 done
    569 
    570 # Double-quote double-evaled strings.
    571 for var in lt_decl_all_varnames([[ \
    572 ]], lt_decl_dquote_varnames); do
    573     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    574     *[[\\\\\\\`\\"\\\$]]*)
    575       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
    576       ;;
    577     *)
    578       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
    579       ;;
    580     esac
    581 done
    582 
    583 _LT_OUTPUT_LIBTOOL_INIT
    584 ])
    585 
    586 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
    587 # ------------------------------------
    588 # Generate a child script FILE with all initialization necessary to
    589 # reuse the environment learned by the parent script, and make the
    590 # file executable.  If COMMENT is supplied, it is inserted after the
    591 # '#!' sequence but before initialization text begins.  After this
    592 # macro, additional text can be appended to FILE to form the body of
    593 # the child script.  The macro ends with non-zero status if the
    594 # file could not be fully written (such as if the disk is full).
    595 m4_ifdef([AS_INIT_GENERATED],
    596 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
    597 [m4_defun([_LT_GENERATED_FILE_INIT],
    598 [m4_require([AS_PREPARE])]dnl
    599 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
    600 [lt_write_fail=0
    601 cat >$1 <<_ASEOF || lt_write_fail=1
    602 #! $SHELL
    603 # Generated by $as_me.
    604 $2
    605 SHELL=\${CONFIG_SHELL-$SHELL}
    606 export SHELL
    607 _ASEOF
    608 cat >>$1 <<\_ASEOF || lt_write_fail=1
    609 AS_SHELL_SANITIZE
    610 _AS_PREPARE
    611 exec AS_MESSAGE_FD>&1
    612 _ASEOF
    613 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
    614 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
    615 
    616 # LT_OUTPUT
    617 # ---------
    618 # This macro allows early generation of the libtool script (before
    619 # AC_OUTPUT is called), in case it is used in configure for compilation
    620 # tests.
    621 AC_DEFUN([LT_OUTPUT],
    622 [: ${CONFIG_LT=./config.lt}
    623 AC_MSG_NOTICE([creating $CONFIG_LT])
    624 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
    625 [# Run this file to recreate a libtool stub with the current configuration.])
    626 
    627 cat >>"$CONFIG_LT" <<\_LTEOF
    628 lt_cl_silent=false
    629 exec AS_MESSAGE_LOG_FD>>config.log
    630 {
    631   echo
    632   AS_BOX([Running $as_me.])
    633 } >&AS_MESSAGE_LOG_FD
    634 
    635 lt_cl_help="\
    636 '$as_me' creates a local libtool stub from the current configuration,
    637 for use in further configure time tests before the real libtool is
    638 generated.
    639 
    640 Usage: $[0] [[OPTIONS]]
    641 
    642   -h, --help      print this help, then exit
    643   -V, --version   print version number, then exit
    644   -q, --quiet     do not print progress messages
    645   -d, --debug     don't remove temporary files
    646 
    647 Report bugs to <bug-libtool (a] gnu.org>."
    648 
    649 lt_cl_version="\
    650 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
    651 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
    652 configured by $[0], generated by m4_PACKAGE_STRING.
    653 
    654 Copyright (C) 2024 Free Software Foundation, Inc.
    655 This config.lt script is free software; the Free Software Foundation
    656 gives unlimited permission to copy, distribute and modify it."
    657 
    658 while test 0 != $[#]
    659 do
    660   case $[1] in
    661     --version | --v* | -V )
    662       echo "$lt_cl_version"; exit 0 ;;
    663     --help | --h* | -h )
    664       echo "$lt_cl_help"; exit 0 ;;
    665     --debug | --d* | -d )
    666       debug=: ;;
    667     --quiet | --q* | --silent | --s* | -q )
    668       lt_cl_silent=: ;;
    669 
    670     -*) AC_MSG_ERROR([unrecognized option: $[1]
    671 Try '$[0] --help' for more information.]) ;;
    672 
    673     *) AC_MSG_ERROR([unrecognized argument: $[1]
    674 Try '$[0] --help' for more information.]) ;;
    675   esac
    676   shift
    677 done
    678 
    679 if $lt_cl_silent; then
    680   exec AS_MESSAGE_FD>/dev/null
    681 fi
    682 _LTEOF
    683 
    684 cat >>"$CONFIG_LT" <<_LTEOF
    685 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
    686 _LTEOF
    687 
    688 cat >>"$CONFIG_LT" <<\_LTEOF
    689 AC_MSG_NOTICE([creating $ofile])
    690 _LT_OUTPUT_LIBTOOL_COMMANDS
    691 AS_EXIT(0)
    692 _LTEOF
    693 chmod +x "$CONFIG_LT"
    694 
    695 # configure is writing to config.log, but config.lt does its own redirection,
    696 # appending to config.log, which fails on DOS, as config.log is still kept
    697 # open by configure.  Here we exec the FD to /dev/null, effectively closing
    698 # config.log, so it can be properly (re)opened and appended to by config.lt.
    699 lt_cl_success=:
    700 test yes = "$silent" &&
    701   lt_config_lt_args="$lt_config_lt_args --quiet"
    702 exec AS_MESSAGE_LOG_FD>/dev/null
    703 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
    704 exec AS_MESSAGE_LOG_FD>>config.log
    705 $lt_cl_success || AS_EXIT(1)
    706 ])# LT_OUTPUT
    707 
    708 
    709 # _LT_CONFIG(TAG)
    710 # ---------------
    711 # If TAG is the built-in tag, create an initial libtool script with a
    712 # default configuration from the untagged config vars.  Otherwise add code
    713 # to config.status for appending the configuration named by TAG from the
    714 # matching tagged config vars.
    715 m4_defun([_LT_CONFIG],
    716 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    717 _LT_CONFIG_SAVE_COMMANDS([
    718   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
    719   m4_if(_LT_TAG, [C], [
    720     # See if we are running on zsh, and set the options that allow our
    721     # commands through without removal of \ escapes.
    722     if test -n "${ZSH_VERSION+set}"; then
    723       setopt NO_GLOB_SUBST
    724     fi
    725 
    726     cfgfile=${ofile}T
    727     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    728     $RM "$cfgfile"
    729 
    730     cat <<_LT_EOF >> "$cfgfile"
    731 #! $SHELL
    732 # Generated automatically by $as_me ($PACKAGE) $VERSION
    733 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
    734 
    735 # Provide generalized library-building support services.
    736 # Written by Gordon Matzigkeit, 1996
    737 
    738 _LT_COPYING
    739 _LT_LIBTOOL_TAGS
    740 
    741 # Configured defaults for sys_lib_dlsearch_path munging.
    742 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
    743 
    744 # ### BEGIN LIBTOOL CONFIG
    745 _LT_LIBTOOL_CONFIG_VARS
    746 _LT_LIBTOOL_TAG_VARS
    747 # ### END LIBTOOL CONFIG
    748 
    749 _LT_EOF
    750 
    751     cat <<'_LT_EOF' >> "$cfgfile"
    752 
    753 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
    754 
    755 _LT_PREPARE_MUNGE_PATH_LIST
    756 _LT_PREPARE_CC_BASENAME
    757 
    758 # ### END FUNCTIONS SHARED WITH CONFIGURE
    759 
    760 _LT_EOF
    761 
    762   case $host_os in
    763   aix3*)
    764     cat <<\_LT_EOF >> "$cfgfile"
    765 # AIX sometimes has problems with the GCC collect2 program.  For some
    766 # reason, if we set the COLLECT_NAMES environment variable, the problems
    767 # vanish in a puff of smoke.
    768 if test set != "${COLLECT_NAMES+set}"; then
    769   COLLECT_NAMES=
    770   export COLLECT_NAMES
    771 fi
    772 _LT_EOF
    773     ;;
    774   esac
    775 
    776   _LT_PROG_LTMAIN
    777 
    778   # We use sed instead of cat because bash on DJGPP gets confused if
    779   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
    780   # text mode, it properly converts lines to CR/LF.  This bash problem
    781   # is reportedly fixed, but why not run on old versions too?
    782   $SED '$q' "$ltmain" >> "$cfgfile" \
    783      || (rm -f "$cfgfile"; exit 1)
    784 
    785    mv -f "$cfgfile" "$ofile" ||
    786     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    787   chmod +x "$ofile"
    788 ],
    789 [cat <<_LT_EOF >> "$ofile"
    790 
    791 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
    792 dnl in a comment (ie after a #).
    793 # ### BEGIN LIBTOOL TAG CONFIG: $1
    794 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
    795 # ### END LIBTOOL TAG CONFIG: $1
    796 _LT_EOF
    797 ])dnl /m4_if
    798 ],
    799 [m4_if([$1], [], [
    800     PACKAGE='$PACKAGE'
    801     VERSION='$VERSION'
    802     RM='$RM'
    803     ofile='$ofile'], [])
    804 ])dnl /_LT_CONFIG_SAVE_COMMANDS
    805 ])# _LT_CONFIG
    806 
    807 
    808 # LT_SUPPORTED_TAG(TAG)
    809 # ---------------------
    810 # Trace this macro to discover what tags are supported by the libtool
    811 # --tag option, using:
    812 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
    813 AC_DEFUN([LT_SUPPORTED_TAG], [])
    814 
    815 
    816 # C support is built-in for now
    817 m4_define([_LT_LANG_C_enabled], [])
    818 m4_define([_LT_TAGS], [])
    819 
    820 
    821 # LT_LANG(LANG)
    822 # -------------
    823 # Enable libtool support for the given language if not already enabled.
    824 AC_DEFUN([LT_LANG],
    825 [AC_BEFORE([$0], [LT_OUTPUT])dnl
    826 m4_case([$1],
    827   [C],			[_LT_LANG(C)],
    828   [C++],		[_LT_LANG(CXX)],
    829   [Go],			[_LT_LANG(GO)],
    830   [Java],		[_LT_LANG(GCJ)],
    831   [Fortran 77],		[_LT_LANG(F77)],
    832   [Fortran],		[_LT_LANG(FC)],
    833   [Windows Resource],	[_LT_LANG(RC)],
    834   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
    835     [_LT_LANG($1)],
    836     [m4_fatal([$0: unsupported language: "$1"])])])dnl
    837 ])# LT_LANG
    838 
    839 
    840 # _LT_LANG(LANGNAME)
    841 # ------------------
    842 m4_defun([_LT_LANG],
    843 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
    844   [LT_SUPPORTED_TAG([$1])dnl
    845   m4_append([_LT_TAGS], [$1 ])dnl
    846   m4_define([_LT_LANG_]$1[_enabled], [])dnl
    847   _LT_LANG_$1_CONFIG($1)])dnl
    848 ])# _LT_LANG
    849 
    850 
    851 m4_ifndef([AC_PROG_GO], [
    852 ############################################################
    853 # NOTE: This macro has been submitted for inclusion into   #
    854 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
    855 #  a released version of Autoconf we should remove this    #
    856 #  macro and use it instead.                               #
    857 ############################################################
    858 m4_defun([AC_PROG_GO],
    859 [AC_LANG_PUSH(Go)dnl
    860 AC_ARG_VAR([GOC],     [Go compiler command])dnl
    861 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
    862 _AC_ARG_VAR_LDFLAGS()dnl
    863 AC_CHECK_TOOL(GOC, gccgo)
    864 if test -z "$GOC"; then
    865   if test -n "$ac_tool_prefix"; then
    866     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
    867   fi
    868 fi
    869 if test -z "$GOC"; then
    870   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
    871 fi
    872 ])#m4_defun
    873 ])#m4_ifndef
    874 
    875 
    876 # _LT_LANG_DEFAULT_CONFIG
    877 # -----------------------
    878 m4_defun([_LT_LANG_DEFAULT_CONFIG],
    879 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
    880   [LT_LANG(CXX)],
    881   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
    882 
    883 AC_PROVIDE_IFELSE([AC_PROG_F77],
    884   [LT_LANG(F77)],
    885   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
    886 
    887 AC_PROVIDE_IFELSE([AC_PROG_FC],
    888   [LT_LANG(FC)],
    889   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
    890 
    891 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
    892 dnl pulling things in needlessly.
    893 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
    894   [LT_LANG(GCJ)],
    895   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
    896     [LT_LANG(GCJ)],
    897     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
    898       [LT_LANG(GCJ)],
    899       [m4_ifdef([AC_PROG_GCJ],
    900 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
    901        m4_ifdef([A][M_PROG_GCJ],
    902 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
    903        m4_ifdef([LT_PROG_GCJ],
    904 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
    905 
    906 AC_PROVIDE_IFELSE([AC_PROG_GO],
    907   [LT_LANG(GO)],
    908   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
    909 
    910 AC_PROVIDE_IFELSE([LT_PROG_RC],
    911   [LT_LANG(RC)],
    912   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
    913 ])# _LT_LANG_DEFAULT_CONFIG
    914 
    915 # Obsolete macros:
    916 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
    917 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
    918 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
    919 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
    920 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
    921 dnl aclocal-1.4 backwards compatibility:
    922 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
    923 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
    924 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
    925 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
    926 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
    927 
    928 
    929 # _LT_TAG_COMPILER
    930 # ----------------
    931 m4_defun([_LT_TAG_COMPILER],
    932 [AC_REQUIRE([AC_PROG_CC])dnl
    933 
    934 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
    935 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
    936 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
    937 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
    938 
    939 # If no C compiler was specified, use CC.
    940 LTCC=${LTCC-"$CC"}
    941 
    942 # If no C compiler flags were specified, use CFLAGS.
    943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    944 
    945 # Allow CC to be a program name with arguments.
    946 compiler=$CC
    947 ])# _LT_TAG_COMPILER
    948 
    949 
    950 # _LT_COMPILER_BOILERPLATE
    951 # ------------------------
    952 # Check for compiler boilerplate output or warnings with
    953 # the simple compiler test code.
    954 m4_defun([_LT_COMPILER_BOILERPLATE],
    955 [m4_require([_LT_DECL_SED])dnl
    956 ac_outfile=conftest.$ac_objext
    957 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
    958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    959 _lt_compiler_boilerplate=`cat conftest.err`
    960 $RM conftest*
    961 ])# _LT_COMPILER_BOILERPLATE
    962 
    963 
    964 # _LT_LINKER_BOILERPLATE
    965 # ----------------------
    966 # Check for linker boilerplate output or warnings with
    967 # the simple link test code.
    968 m4_defun([_LT_LINKER_BOILERPLATE],
    969 [m4_require([_LT_DECL_SED])dnl
    970 ac_outfile=conftest.$ac_objext
    971 echo "$lt_simple_link_test_code" >conftest.$ac_ext
    972 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    973 _lt_linker_boilerplate=`cat conftest.err`
    974 $RM -r conftest*
    975 ])# _LT_LINKER_BOILERPLATE
    976 
    977 
    978 # _LT_REQUIRED_DARWIN_CHECKS
    979 # -------------------------
    980 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
    981   case $host_os in
    982     rhapsody* | darwin*)
    983     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
    984     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
    985     AC_CHECK_TOOL([LIPO], [lipo], [:])
    986     AC_CHECK_TOOL([OTOOL], [otool], [:])
    987     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
    988     _LT_DECL([], [DSYMUTIL], [1],
    989       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
    990     _LT_DECL([], [NMEDIT], [1],
    991       [Tool to change global to local symbols on Mac OS X])
    992     _LT_DECL([], [LIPO], [1],
    993       [Tool to manipulate fat objects and archives on Mac OS X])
    994     _LT_DECL([], [OTOOL], [1],
    995       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
    996     _LT_DECL([], [OTOOL64], [1],
    997       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
    998 
    999     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   1000       [lt_cv_apple_cc_single_mod=no
   1001       if test -z "$LT_MULTI_MODULE"; then
   1002 	# By default we will add the -single_module flag. You can override
   1003 	# by either setting the environment variable LT_MULTI_MODULE
   1004 	# non-empty at configure time, or by adding -multi_module to the
   1005 	# link flags.
   1006 	rm -rf libconftest.dylib*
   1007 	echo "int foo(void){return 1;}" > conftest.c
   1008 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1009 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
   1010 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1011 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   1012         _lt_result=$?
   1013 	# If there is a non-empty error log, and "single_module"
   1014 	# appears in it, assume the flag caused a linker warning
   1015         if test -s conftest.err && $GREP single_module conftest.err; then
   1016 	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1017 	# Otherwise, if the output was created with a 0 exit code from
   1018 	# the compiler, it worked.
   1019 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   1020 	  lt_cv_apple_cc_single_mod=yes
   1021 	else
   1022 	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1023 	fi
   1024 	rm -rf libconftest.dylib*
   1025 	rm -f conftest.*
   1026       fi])
   1027 
   1028     # Feature test to disable chained fixups since it is not
   1029     # compatible with '-undefined dynamic_lookup'
   1030     AC_CACHE_CHECK([for -no_fixup_chains linker flag],
   1031       [lt_cv_support_no_fixup_chains],
   1032       [ save_LDFLAGS=$LDFLAGS
   1033         LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
   1034         AC_LINK_IFELSE(
   1035           [AC_LANG_PROGRAM([],[])],
   1036           lt_cv_support_no_fixup_chains=yes,
   1037           lt_cv_support_no_fixup_chains=no
   1038         )
   1039         LDFLAGS=$save_LDFLAGS
   1040       ]
   1041     )
   1042 
   1043     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   1044       [lt_cv_ld_exported_symbols_list],
   1045       [lt_cv_ld_exported_symbols_list=no
   1046       save_LDFLAGS=$LDFLAGS
   1047       echo "_main" > conftest.sym
   1048       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   1049       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
   1050 	[lt_cv_ld_exported_symbols_list=yes],
   1051 	[lt_cv_ld_exported_symbols_list=no])
   1052 	LDFLAGS=$save_LDFLAGS
   1053     ])
   1054 
   1055     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
   1056       [lt_cv_ld_force_load=no
   1057       cat > conftest.c << _LT_EOF
   1058 int forced_loaded() { return 2;}
   1059 _LT_EOF
   1060       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
   1061       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
   1062       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
   1063       $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
   1064       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
   1065       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
   1066       cat > conftest.c << _LT_EOF
   1067 int main(void) { return 0;}
   1068 _LT_EOF
   1069       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
   1070       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   1071       _lt_result=$?
   1072       if test -s conftest.err && $GREP force_load conftest.err; then
   1073 	cat conftest.err >&AS_MESSAGE_LOG_FD
   1074       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   1075 	lt_cv_ld_force_load=yes
   1076       else
   1077 	cat conftest.err >&AS_MESSAGE_LOG_FD
   1078       fi
   1079         rm -f conftest.err libconftest.a conftest conftest.c
   1080         rm -rf conftest.dSYM
   1081     ])
   1082     case $host_os in
   1083     rhapsody* | darwin1.[[012]])
   1084       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   1085     darwin1.*)
   1086       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   1087     darwin*)
   1088       case $MACOSX_DEPLOYMENT_TARGET,$host in
   1089         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
   1090           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   1091         *)
   1092           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
   1093           if test yes = "$lt_cv_support_no_fixup_chains"; then
   1094             AS_VAR_APPEND([_lt_dar_allow_undefined], [' $wl-no_fixup_chains'])
   1095           fi
   1096         ;;
   1097       esac
   1098     ;;
   1099   esac
   1100     if test yes = "$lt_cv_apple_cc_single_mod"; then
   1101       _lt_dar_single_mod='$single_module'
   1102     fi
   1103     _lt_dar_needs_single_mod=no
   1104     case $host_os in
   1105     rhapsody* | darwin1.*)
   1106       _lt_dar_needs_single_mod=yes ;;
   1107     darwin*)
   1108       # When targeting Mac OS X 10.4 (darwin 8) or later,
   1109       # -single_module is the default and -multi_module is unsupported.
   1110       # The toolchain on macOS 10.14 (darwin 18) and later cannot
   1111       # target any OS version that needs -single_module.
   1112       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   1113       10.0,*-darwin[[567]].*|10.[[0-3]],*-darwin[[5-9]].*|10.[[0-3]],*-darwin1[[0-7]].*)
   1114         _lt_dar_needs_single_mod=yes ;;
   1115       esac
   1116     ;;
   1117     esac
   1118     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   1119       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   1120     else
   1121       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   1122     fi
   1123     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   1124       _lt_dsymutil='~$DSYMUTIL $lib || :'
   1125     else
   1126       _lt_dsymutil=
   1127     fi
   1128     ;;
   1129   esac
   1130 ])
   1131 
   1132 
   1133 # _LT_DARWIN_LINKER_FEATURES([TAG])
   1134 # ---------------------------------
   1135 # Checks for linker and compiler features on darwin
   1136 m4_defun([_LT_DARWIN_LINKER_FEATURES],
   1137 [
   1138   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
   1139   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   1140   _LT_TAGVAR(hardcode_direct, $1)=no
   1141   _LT_TAGVAR(hardcode_automatic, $1)=yes
   1142   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1143   if test yes = "$lt_cv_ld_force_load"; then
   1144     _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\"`'
   1145     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
   1146                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   1147   else
   1148     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1149   fi
   1150   _LT_TAGVAR(link_all_deplibs, $1)=yes
   1151   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
   1152   case $cc_basename in
   1153      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   1154      *) _lt_dar_can_shared=$GCC ;;
   1155   esac
   1156   if test yes = "$_lt_dar_can_shared"; then
   1157     output_verbose_link_cmd=func_echo_all
   1158     _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"
   1159     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   1160     _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"
   1161     _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"
   1162     m4_if([$1], [CXX],
   1163 [   if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
   1164       _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"
   1165       _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"
   1166     fi
   1167 ],[])
   1168   else
   1169   _LT_TAGVAR(ld_shlibs, $1)=no
   1170   fi
   1171 ])
   1172 
   1173 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
   1174 # ----------------------------------
   1175 # Links a minimal program and checks the executable
   1176 # for the system default hardcoded library path. In most cases,
   1177 # this is /usr/lib:/lib, but when the MPI compilers are used
   1178 # the location of the communication and MPI libs are included too.
   1179 # If we don't find anything, use the default library path according
   1180 # to the aix ld manual.
   1181 # Store the results from the different compilers for each TAGNAME.
   1182 # Allow to override them for all tags through lt_cv_aix_libpath.
   1183 m4_defun([_LT_SYS_MODULE_PATH_AIX],
   1184 [m4_require([_LT_DECL_SED])dnl
   1185 if test set = "${lt_cv_aix_libpath+set}"; then
   1186   aix_libpath=$lt_cv_aix_libpath
   1187 else
   1188   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
   1189   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
   1190   lt_aix_libpath_sed='[
   1191       /Import File Strings/,/^$/ {
   1192 	  /^0/ {
   1193 	      s/^0  *\([^ ]*\) *$/\1/
   1194 	      p
   1195 	  }
   1196       }]'
   1197   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1198   # Check for a 64-bit object if we didn't find anything.
   1199   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1200     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1201   fi],[])
   1202   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1203     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
   1204   fi
   1205   ])
   1206   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
   1207 fi
   1208 ])# _LT_SYS_MODULE_PATH_AIX
   1209 
   1210 
   1211 # _LT_SHELL_INIT(ARG)
   1212 # -------------------
   1213 m4_define([_LT_SHELL_INIT],
   1214 [m4_divert_text([M4SH-INIT], [$1
   1215 ])])# _LT_SHELL_INIT
   1216 
   1217 
   1218 
   1219 # _LT_PROG_ECHO_BACKSLASH
   1220 # -----------------------
   1221 # Find how we can fake an echo command that does not interpret backslash.
   1222 # In particular, with Autoconf 2.60 or later we add some code to the start
   1223 # of the generated configure script that will find a shell with a builtin
   1224 # printf (that we can use as an echo command).
   1225 m4_defun([_LT_PROG_ECHO_BACKSLASH],
   1226 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1227 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1228 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1229 
   1230 AC_MSG_CHECKING([how to print strings])
   1231 # Test print first, because it will be a builtin if present.
   1232 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   1233    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   1234   ECHO='print -r --'
   1235 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   1236   ECHO='printf %s\n'
   1237 else
   1238   # Use this function as a fallback that always works.
   1239   func_fallback_echo ()
   1240   {
   1241     eval 'cat <<_LTECHO_EOF
   1242 $[]1
   1243 _LTECHO_EOF'
   1244   }
   1245   ECHO='func_fallback_echo'
   1246 fi
   1247 
   1248 # func_echo_all arg...
   1249 # Invoke $ECHO with all args, space-separated.
   1250 func_echo_all ()
   1251 {
   1252     $ECHO "$*"
   1253 }
   1254 
   1255 case $ECHO in
   1256   printf*) AC_MSG_RESULT([printf]) ;;
   1257   print*) AC_MSG_RESULT([print -r]) ;;
   1258   *) AC_MSG_RESULT([cat]) ;;
   1259 esac
   1260 
   1261 m4_ifdef([_AS_DETECT_SUGGESTED],
   1262 [_AS_DETECT_SUGGESTED([
   1263   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
   1264     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1265     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1266     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1267     PATH=/empty FPATH=/empty; export PATH FPATH
   1268     test "X`printf %s $ECHO`" = "X$ECHO" \
   1269       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
   1270 
   1271 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
   1272 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
   1273 ])# _LT_PROG_ECHO_BACKSLASH
   1274 
   1275 
   1276 # _LT_WITH_SYSROOT
   1277 # ----------------
   1278 AC_DEFUN([_LT_WITH_SYSROOT],
   1279 [m4_require([_LT_DECL_SED])dnl
   1280 AC_MSG_CHECKING([for sysroot])
   1281 AC_ARG_WITH([sysroot],
   1282 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
   1283   [Search for dependent libraries within DIR (or the compiler's sysroot
   1284    if not specified).])],
   1285 [], [with_sysroot=no])
   1286 
   1287 dnl lt_sysroot will always be passed unquoted.  We quote it here
   1288 dnl in case the user passed a directory name.
   1289 lt_sysroot=
   1290 case $with_sysroot in #(
   1291  yes)
   1292    if test yes = "$GCC"; then
   1293      # Trim trailing / since we'll always append absolute paths and we want
   1294      # to avoid //, if only for less confusing output for the user.
   1295      lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
   1296    fi
   1297    ;; #(
   1298  /*)
   1299    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
   1300    ;; #(
   1301  no|'')
   1302    ;; #(
   1303  *)
   1304    AC_MSG_RESULT([$with_sysroot])
   1305    AC_MSG_ERROR([The sysroot must be an absolute path.])
   1306    ;;
   1307 esac
   1308 
   1309  AC_MSG_RESULT([${lt_sysroot:-no}])
   1310 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   1311 [dependent libraries, and where our libraries should be installed.])])
   1312 
   1313 # _LT_ENABLE_LOCK
   1314 # ---------------
   1315 m4_defun([_LT_ENABLE_LOCK],
   1316 [AC_ARG_ENABLE([libtool-lock],
   1317   [AS_HELP_STRING([--disable-libtool-lock],
   1318     [avoid locking (might break parallel builds)])])
   1319 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   1320 
   1321 # Some flags need to be propagated to the compiler or linker for good
   1322 # libtool support.
   1323 case $host in
   1324 ia64-*-hpux*)
   1325   # Find out what ABI is being produced by ac_compile, and set mode
   1326   # options accordingly.
   1327   echo 'int i;' > conftest.$ac_ext
   1328   if AC_TRY_EVAL(ac_compile); then
   1329     case `$FILECMD conftest.$ac_objext` in
   1330       *ELF-32*)
   1331 	HPUX_IA64_MODE=32
   1332 	;;
   1333       *ELF-64*)
   1334 	HPUX_IA64_MODE=64
   1335 	;;
   1336     esac
   1337   fi
   1338   rm -rf conftest*
   1339   ;;
   1340 *-*-irix6*)
   1341   # Find out what ABI is being produced by ac_compile, and set linker
   1342   # options accordingly.
   1343   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   1344   if AC_TRY_EVAL(ac_compile); then
   1345     if test yes = "$lt_cv_prog_gnu_ld"; then
   1346       case `$FILECMD conftest.$ac_objext` in
   1347 	*32-bit*)
   1348 	  LD="${LD-ld} -melf32bsmip"
   1349 	  ;;
   1350 	*N32*)
   1351 	  LD="${LD-ld} -melf32bmipn32"
   1352 	  ;;
   1353 	*64-bit*)
   1354 	  LD="${LD-ld} -melf64bmip"
   1355 	;;
   1356       esac
   1357     else
   1358       case `$FILECMD conftest.$ac_objext` in
   1359 	*32-bit*)
   1360 	  LD="${LD-ld} -32"
   1361 	  ;;
   1362 	*N32*)
   1363 	  LD="${LD-ld} -n32"
   1364 	  ;;
   1365 	*64-bit*)
   1366 	  LD="${LD-ld} -64"
   1367 	  ;;
   1368       esac
   1369     fi
   1370   fi
   1371   rm -rf conftest*
   1372   ;;
   1373 
   1374 mips64*-*linux*)
   1375   # Find out what ABI is being produced by ac_compile, and set linker
   1376   # options accordingly.
   1377   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   1378   if AC_TRY_EVAL(ac_compile); then
   1379     emul=elf
   1380     case `$FILECMD conftest.$ac_objext` in
   1381       *32-bit*)
   1382 	emul="${emul}32"
   1383 	;;
   1384       *64-bit*)
   1385 	emul="${emul}64"
   1386 	;;
   1387     esac
   1388     case `$FILECMD conftest.$ac_objext` in
   1389       *MSB*)
   1390 	emul="${emul}btsmip"
   1391 	;;
   1392       *LSB*)
   1393 	emul="${emul}ltsmip"
   1394 	;;
   1395     esac
   1396     case `$FILECMD conftest.$ac_objext` in
   1397       *N32*)
   1398 	emul="${emul}n32"
   1399 	;;
   1400     esac
   1401     LD="${LD-ld} -m $emul"
   1402   fi
   1403   rm -rf conftest*
   1404   ;;
   1405 
   1406 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   1407 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
   1408   # Find out what ABI is being produced by ac_compile, and set linker
   1409   # options accordingly.  Note that the listed cases only cover the
   1410   # situations where additional linker options are needed (such as when
   1411   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   1412   # vice versa); the common cases where no linker options are needed do
   1413   # not appear in the list.
   1414   echo 'int i;' > conftest.$ac_ext
   1415   if AC_TRY_EVAL(ac_compile); then
   1416     case `$FILECMD conftest.o` in
   1417       *32-bit*)
   1418 	case $host in
   1419 	  x86_64-*kfreebsd*-gnu)
   1420 	    LD="${LD-ld} -m elf_i386_fbsd"
   1421 	    ;;
   1422 	  x86_64-*linux*|x86_64-gnu*)
   1423 	    case `$FILECMD conftest.o` in
   1424 	      *x86-64*)
   1425 		LD="${LD-ld} -m elf32_x86_64"
   1426 		;;
   1427 	      *)
   1428 		LD="${LD-ld} -m elf_i386"
   1429 		;;
   1430 	    esac
   1431 	    ;;
   1432 	  powerpc64le-*linux*)
   1433 	    LD="${LD-ld} -m elf32lppclinux"
   1434 	    ;;
   1435 	  powerpc64-*linux*)
   1436 	    LD="${LD-ld} -m elf32ppclinux"
   1437 	    ;;
   1438 	  s390x-*linux*)
   1439 	    LD="${LD-ld} -m elf_s390"
   1440 	    ;;
   1441 	  sparc64-*linux*)
   1442 	    LD="${LD-ld} -m elf32_sparc"
   1443 	    ;;
   1444 	esac
   1445 	;;
   1446       *64-bit*)
   1447 	case $host in
   1448 	  x86_64-*kfreebsd*-gnu)
   1449 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   1450 	    ;;
   1451 	  x86_64-*linux*|x86_64-gnu*)
   1452 	    LD="${LD-ld} -m elf_x86_64"
   1453 	    ;;
   1454 	  powerpcle-*linux*|powerpc64le-*linux*)
   1455 	    LD="${LD-ld} -m elf64lppc"
   1456 	    ;;
   1457 	  powerpc-*linux*|powerpc64-*linux*)
   1458 	    LD="${LD-ld} -m elf64ppc"
   1459 	    ;;
   1460 	  s390*-*linux*|s390*-*tpf*)
   1461 	    LD="${LD-ld} -m elf64_s390"
   1462 	    ;;
   1463 	  sparc*-*linux*)
   1464 	    LD="${LD-ld} -m elf64_sparc"
   1465 	    ;;
   1466 	esac
   1467 	;;
   1468     esac
   1469   fi
   1470   rm -rf conftest*
   1471   ;;
   1472 
   1473 *-*-sco3.2v5*)
   1474   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   1475   SAVE_CFLAGS=$CFLAGS
   1476   CFLAGS="$CFLAGS -belf"
   1477   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
   1478     [AC_LANG_PUSH(C)
   1479      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
   1480      AC_LANG_POP])
   1481   if test yes != "$lt_cv_cc_needs_belf"; then
   1482     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   1483     CFLAGS=$SAVE_CFLAGS
   1484   fi
   1485   ;;
   1486 *-*solaris*)
   1487   # Find out what ABI is being produced by ac_compile, and set linker
   1488   # options accordingly.
   1489   echo 'int i;' > conftest.$ac_ext
   1490   if AC_TRY_EVAL(ac_compile); then
   1491     case `$FILECMD conftest.o` in
   1492     *64-bit*)
   1493       case $lt_cv_prog_gnu_ld in
   1494       yes*)
   1495         case $host in
   1496         i?86-*-solaris*|x86_64-*-solaris*)
   1497           LD="${LD-ld} -m elf_x86_64"
   1498           ;;
   1499         sparc*-*-solaris*)
   1500           LD="${LD-ld} -m elf64_sparc"
   1501           ;;
   1502         esac
   1503         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   1504         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   1505           LD=${LD-ld}_sol2
   1506         fi
   1507         ;;
   1508       *)
   1509 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   1510 	  LD="${LD-ld} -64"
   1511 	fi
   1512 	;;
   1513       esac
   1514       ;;
   1515     esac
   1516   fi
   1517   rm -rf conftest*
   1518   ;;
   1519 esac
   1520 
   1521 need_locks=$enable_libtool_lock
   1522 ])# _LT_ENABLE_LOCK
   1523 
   1524 
   1525 # _LT_PROG_AR
   1526 # -----------
   1527 m4_defun([_LT_PROG_AR],
   1528 [AC_CHECK_TOOLS(AR, [ar], false)
   1529 : ${AR=ar}
   1530 _LT_DECL([], [AR], [1], [The archiver])
   1531 
   1532 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
   1533 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
   1534 # higher priority because that's what people were doing historically (setting
   1535 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
   1536 # variable obsoleted/removed.
   1537 
   1538 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
   1539 lt_ar_flags=$AR_FLAGS
   1540 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
   1541 
   1542 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
   1543 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
   1544 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
   1545          [Flags to create an archive])
   1546 
   1547 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   1548   [lt_cv_ar_at_file=no
   1549    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
   1550      [echo conftest.$ac_objext > conftest.lst
   1551       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
   1552       AC_TRY_EVAL([lt_ar_try])
   1553       if test 0 -eq "$ac_status"; then
   1554 	# Ensure the archiver fails upon bogus file names.
   1555 	rm -f conftest.$ac_objext libconftest.a
   1556 	AC_TRY_EVAL([lt_ar_try])
   1557 	if test 0 -ne "$ac_status"; then
   1558           lt_cv_ar_at_file=@
   1559         fi
   1560       fi
   1561       rm -f conftest.* libconftest.a
   1562      ])
   1563   ])
   1564 
   1565 if test no = "$lt_cv_ar_at_file"; then
   1566   archiver_list_spec=
   1567 else
   1568   archiver_list_spec=$lt_cv_ar_at_file
   1569 fi
   1570 _LT_DECL([], [archiver_list_spec], [1],
   1571   [How to feed a file listing to the archiver])
   1572 ])# _LT_PROG_AR
   1573 
   1574 
   1575 # _LT_CMD_OLD_ARCHIVE
   1576 # -------------------
   1577 m4_defun([_LT_CMD_OLD_ARCHIVE],
   1578 [_LT_PROG_AR
   1579 
   1580 AC_CHECK_TOOL(STRIP, strip, :)
   1581 test -z "$STRIP" && STRIP=:
   1582 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
   1583 
   1584 AC_REQUIRE([AC_PROG_RANLIB])
   1585 test -z "$RANLIB" && RANLIB=:
   1586 _LT_DECL([], [RANLIB], [1],
   1587     [Commands used to install an old-style archive])
   1588 
   1589 # Determine commands to create old-style static archives.
   1590 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   1591 old_postinstall_cmds='chmod 644 $oldlib'
   1592 old_postuninstall_cmds=
   1593 
   1594 if test -n "$RANLIB"; then
   1595   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   1596   old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   1597 fi
   1598 
   1599 case $host_os in
   1600   darwin*)
   1601     lock_old_archive_extraction=yes ;;
   1602   *)
   1603     lock_old_archive_extraction=no ;;
   1604 esac
   1605 _LT_DECL([], [old_postinstall_cmds], [2])
   1606 _LT_DECL([], [old_postuninstall_cmds], [2])
   1607 _LT_TAGDECL([], [old_archive_cmds], [2],
   1608     [Commands used to build an old-style archive])
   1609 _LT_DECL([], [lock_old_archive_extraction], [0],
   1610     [Whether to use a lock for old archive extraction])
   1611 ])# _LT_CMD_OLD_ARCHIVE
   1612 
   1613 
   1614 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   1615 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
   1616 # ----------------------------------------------------------------
   1617 # Check whether the given compiler option works
   1618 AC_DEFUN([_LT_COMPILER_OPTION],
   1619 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   1620 m4_require([_LT_DECL_SED])dnl
   1621 AC_CACHE_CHECK([$1], [$2],
   1622   [$2=no
   1623    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   1624    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   1625    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
   1626    # Insert the option either (1) after the last *FLAGS variable, or
   1627    # (2) before a word containing "conftest.", or (3) at the end.
   1628    # Note that $ac_compile itself does not contain backslashes and begins
   1629    # with a dollar sign (not a hyphen), so the echo should work correctly.
   1630    # The option is referenced via a variable to avoid confusing sed.
   1631    lt_compile=`echo "$ac_compile" | $SED \
   1632    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1633    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1634    -e 's:$: $lt_compiler_flag:'`
   1635    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1636    (eval "$lt_compile" 2>conftest.err)
   1637    ac_status=$?
   1638    cat conftest.err >&AS_MESSAGE_LOG_FD
   1639    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1640    if (exit $ac_status) && test -s "$ac_outfile"; then
   1641      # The compiler can only warn and ignore the option if not recognized
   1642      # So say no if there are warnings other than the usual output.
   1643      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   1644      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1645      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1646        $2=yes
   1647      fi
   1648    fi
   1649    $RM conftest*
   1650 ])
   1651 
   1652 if test yes = "[$]$2"; then
   1653     m4_if([$5], , :, [$5])
   1654 else
   1655     m4_if([$6], , :, [$6])
   1656 fi
   1657 ])# _LT_COMPILER_OPTION
   1658 
   1659 # Old name:
   1660 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
   1661 dnl aclocal-1.4 backwards compatibility:
   1662 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
   1663 
   1664 
   1665 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   1666 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
   1667 # ----------------------------------------------------
   1668 # Check whether the given linker option works
   1669 AC_DEFUN([_LT_LINKER_OPTION],
   1670 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   1671 m4_require([_LT_DECL_SED])dnl
   1672 AC_CACHE_CHECK([$1], [$2],
   1673   [$2=no
   1674    save_LDFLAGS=$LDFLAGS
   1675    LDFLAGS="$LDFLAGS $3"
   1676    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   1677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   1678      # The linker can only warn and ignore the option if not recognized
   1679      # So say no if there are warnings
   1680      if test -s conftest.err; then
   1681        # Append any errors to the config.log.
   1682        cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1683        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   1684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1685        if diff conftest.exp conftest.er2 >/dev/null; then
   1686          $2=yes
   1687        fi
   1688      else
   1689        $2=yes
   1690      fi
   1691    fi
   1692    $RM -r conftest*
   1693    LDFLAGS=$save_LDFLAGS
   1694 ])
   1695 
   1696 if test yes = "[$]$2"; then
   1697     m4_if([$4], , :, [$4])
   1698 else
   1699     m4_if([$5], , :, [$5])
   1700 fi
   1701 ])# _LT_LINKER_OPTION
   1702 
   1703 # Old name:
   1704 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
   1705 dnl aclocal-1.4 backwards compatibility:
   1706 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
   1707 
   1708 
   1709 # LT_CMD_MAX_LEN
   1710 #---------------
   1711 AC_DEFUN([LT_CMD_MAX_LEN],
   1712 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   1713 # find the maximum length of command line arguments
   1714 AC_MSG_CHECKING([the maximum length of command line arguments])
   1715 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
   1716   i=0
   1717   teststring=ABCD
   1718 
   1719   case $build_os in
   1720   msdosdjgpp*)
   1721     # On DJGPP, this test can blow up pretty badly due to problems in libc
   1722     # (any single argument exceeding 2000 bytes causes a buffer overrun
   1723     # during glob expansion).  Even if it were fixed, the result of this
   1724     # check would be larger than it should be.
   1725     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   1726     ;;
   1727 
   1728   gnu* | ironclad*)
   1729     # Under GNU Hurd and Ironclad, this test is not required because there
   1730     # is no limit to the length of command line arguments.
   1731     # Libtool will interpret -1 as no limit whatsoever
   1732     lt_cv_sys_max_cmd_len=-1;
   1733     ;;
   1734 
   1735   cygwin* | mingw* | windows* | cegcc*)
   1736     # On Win9x/ME, this test blows up -- it succeeds, but takes
   1737     # about 5 minutes as the teststring grows exponentially.
   1738     # Worse, since 9x/ME are not pre-emptively multitasking,
   1739     # you end up with a "frozen" computer, even though with patience
   1740     # the test eventually succeeds (with a max line length of 256k).
   1741     # Instead, let's just punt: use the minimum linelength reported by
   1742     # all of the supported platforms: 8192 (on NT/2K/XP).
   1743     lt_cv_sys_max_cmd_len=8192;
   1744     ;;
   1745 
   1746   mint*)
   1747     # On MiNT this can take a long time and run out of memory.
   1748     lt_cv_sys_max_cmd_len=8192;
   1749     ;;
   1750 
   1751   amigaos*)
   1752     # On AmigaOS with pdksh, this test takes hours, literally.
   1753     # So we just punt and use a minimum line length of 8192.
   1754     lt_cv_sys_max_cmd_len=8192;
   1755     ;;
   1756 
   1757   darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
   1758     # This has been around since 386BSD, at least.  Likely further.
   1759     if test -x /sbin/sysctl; then
   1760       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   1761     elif test -x /usr/sbin/sysctl; then
   1762       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   1763     else
   1764       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   1765     fi
   1766     # And add a safety zone
   1767     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   1768     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   1769     ;;
   1770 
   1771   interix*)
   1772     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   1773     lt_cv_sys_max_cmd_len=196608
   1774     ;;
   1775 
   1776   os2*)
   1777     # The test takes a long time on OS/2.
   1778     lt_cv_sys_max_cmd_len=8192
   1779     ;;
   1780 
   1781   osf*)
   1782     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1783     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1784     # nice to cause kernel panics so lets avoid the loop below.
   1785     # First set a reasonable default.
   1786     lt_cv_sys_max_cmd_len=16384
   1787     #
   1788     if test -x /sbin/sysconfig; then
   1789       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   1790         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   1791       esac
   1792     fi
   1793     ;;
   1794   sco3.2v5*)
   1795     lt_cv_sys_max_cmd_len=102400
   1796     ;;
   1797   sysv5* | sco5v6* | sysv4.2uw2*)
   1798     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   1799     if test -n "$kargmax"; then
   1800       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[	 ]]//'`
   1801     else
   1802       lt_cv_sys_max_cmd_len=32768
   1803     fi
   1804     ;;
   1805   *)
   1806     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   1807     if test -n "$lt_cv_sys_max_cmd_len" && \
   1808        test undefined != "$lt_cv_sys_max_cmd_len"; then
   1809       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   1810       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   1811     else
   1812       # Make teststring a little bigger before we do anything with it.
   1813       # a 1K string should be a reasonable start.
   1814       for i in 1 2 3 4 5 6 7 8; do
   1815         teststring=$teststring$teststring
   1816       done
   1817       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   1818       # If test is not a shell built-in, we'll probably end up computing a
   1819       # maximum length that is only half of the actual maximum length, but
   1820       # we can't tell.
   1821       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   1822 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   1823 	      test 17 != "$i" # 1/2 MB should be enough
   1824       do
   1825         i=`expr $i + 1`
   1826         teststring=$teststring$teststring
   1827       done
   1828       # Only check the string length outside the loop.
   1829       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   1830       teststring=
   1831       # Add a significant safety factor because C++ compilers can tack on
   1832       # massive amounts of additional arguments before passing them to the
   1833       # linker.  It appears as though 1/2 is a usable value.
   1834       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   1835     fi
   1836     ;;
   1837   esac
   1838 ])
   1839 if test -n "$lt_cv_sys_max_cmd_len"; then
   1840   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
   1841 else
   1842   AC_MSG_RESULT(none)
   1843 fi
   1844 max_cmd_len=$lt_cv_sys_max_cmd_len
   1845 _LT_DECL([], [max_cmd_len], [0],
   1846     [What is the maximum length of a command?])
   1847 ])# LT_CMD_MAX_LEN
   1848 
   1849 # Old name:
   1850 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
   1851 dnl aclocal-1.4 backwards compatibility:
   1852 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
   1853 
   1854 
   1855 # _LT_HEADER_DLFCN
   1856 # ----------------
   1857 m4_defun([_LT_HEADER_DLFCN],
   1858 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
   1859 ])# _LT_HEADER_DLFCN
   1860 
   1861 
   1862 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
   1863 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
   1864 # ----------------------------------------------------------------
   1865 m4_defun([_LT_TRY_DLOPEN_SELF],
   1866 [m4_require([_LT_HEADER_DLFCN])dnl
   1867 if test yes = "$cross_compiling"; then :
   1868   [$4]
   1869 else
   1870   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1871   lt_status=$lt_dlunknown
   1872   cat > conftest.$ac_ext <<_LT_EOF
   1873 [#line $LINENO "configure"
   1874 #include "confdefs.h"
   1875 
   1876 #if HAVE_DLFCN_H
   1877 #include <dlfcn.h>
   1878 #endif
   1879 
   1880 #include <stdio.h>
   1881 
   1882 #ifdef RTLD_GLOBAL
   1883 #  define LT_DLGLOBAL		RTLD_GLOBAL
   1884 #else
   1885 #  ifdef DL_GLOBAL
   1886 #    define LT_DLGLOBAL		DL_GLOBAL
   1887 #  else
   1888 #    define LT_DLGLOBAL		0
   1889 #  endif
   1890 #endif
   1891 
   1892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   1893    find out it does not work in some platform. */
   1894 #ifndef LT_DLLAZY_OR_NOW
   1895 #  ifdef RTLD_LAZY
   1896 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   1897 #  else
   1898 #    ifdef DL_LAZY
   1899 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   1900 #    else
   1901 #      ifdef RTLD_NOW
   1902 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   1903 #      else
   1904 #        ifdef DL_NOW
   1905 #          define LT_DLLAZY_OR_NOW	DL_NOW
   1906 #        else
   1907 #          define LT_DLLAZY_OR_NOW	0
   1908 #        endif
   1909 #      endif
   1910 #    endif
   1911 #  endif
   1912 #endif
   1913 
   1914 /* When -fvisibility=hidden is used, assume the code has been annotated
   1915    correspondingly for the symbols needed.  */
   1916 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   1917 int fnord (void) __attribute__((visibility("default")));
   1918 #endif
   1919 
   1920 int fnord (void) { return 42; }
   1921 int main (void)
   1922 {
   1923   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   1924   int status = $lt_dlunknown;
   1925 
   1926   if (self)
   1927     {
   1928       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   1929       else
   1930         {
   1931 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   1932           else puts (dlerror ());
   1933 	}
   1934       /* dlclose (self); */
   1935     }
   1936   else
   1937     puts (dlerror ());
   1938 
   1939   return status;
   1940 }]
   1941 _LT_EOF
   1942   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
   1943     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
   1944     lt_status=$?
   1945     case x$lt_status in
   1946       x$lt_dlno_uscore) $1 ;;
   1947       x$lt_dlneed_uscore) $2 ;;
   1948       x$lt_dlunknown|x*) $3 ;;
   1949     esac
   1950   else :
   1951     # compilation failed
   1952     $3
   1953   fi
   1954 fi
   1955 rm -fr conftest*
   1956 ])# _LT_TRY_DLOPEN_SELF
   1957 
   1958 
   1959 # LT_SYS_DLOPEN_SELF
   1960 # ------------------
   1961 AC_DEFUN([LT_SYS_DLOPEN_SELF],
   1962 [m4_require([_LT_HEADER_DLFCN])dnl
   1963 if test yes != "$enable_dlopen"; then
   1964   enable_dlopen=unknown
   1965   enable_dlopen_self=unknown
   1966   enable_dlopen_self_static=unknown
   1967 else
   1968   lt_cv_dlopen=no
   1969   lt_cv_dlopen_libs=
   1970 
   1971   case $host_os in
   1972   beos*)
   1973     lt_cv_dlopen=load_add_on
   1974     lt_cv_dlopen_libs=
   1975     lt_cv_dlopen_self=yes
   1976     ;;
   1977 
   1978   mingw* | windows* | pw32* | cegcc*)
   1979     lt_cv_dlopen=LoadLibrary
   1980     lt_cv_dlopen_libs=
   1981     ;;
   1982 
   1983   cygwin*)
   1984     lt_cv_dlopen=dlopen
   1985     lt_cv_dlopen_libs=
   1986     ;;
   1987 
   1988   darwin*)
   1989     # if libdl is installed we need to link against it
   1990     AC_CHECK_LIB([dl], [dlopen],
   1991 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
   1992     lt_cv_dlopen=dyld
   1993     lt_cv_dlopen_libs=
   1994     lt_cv_dlopen_self=yes
   1995     ])
   1996     ;;
   1997 
   1998   tpf*)
   1999     # Don't try to run any link tests for TPF.  We know it's impossible
   2000     # because TPF is a cross-compiler, and we know how we open DSOs.
   2001     lt_cv_dlopen=dlopen
   2002     lt_cv_dlopen_libs=
   2003     lt_cv_dlopen_self=no
   2004     ;;
   2005 
   2006   *)
   2007     AC_CHECK_FUNC([shl_load],
   2008 	  [lt_cv_dlopen=shl_load],
   2009       [AC_CHECK_LIB([dld], [shl_load],
   2010 	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
   2011 	[AC_CHECK_FUNC([dlopen],
   2012 	      [lt_cv_dlopen=dlopen],
   2013 	  [AC_CHECK_LIB([dl], [dlopen],
   2014 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
   2015 	    [AC_CHECK_LIB([svld], [dlopen],
   2016 		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
   2017 	      [AC_CHECK_LIB([dld], [dld_link],
   2018 		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
   2019 	      ])
   2020 	    ])
   2021 	  ])
   2022 	])
   2023       ])
   2024     ;;
   2025   esac
   2026 
   2027   if test no = "$lt_cv_dlopen"; then
   2028     enable_dlopen=no
   2029   else
   2030     enable_dlopen=yes
   2031   fi
   2032 
   2033   case $lt_cv_dlopen in
   2034   dlopen)
   2035     save_CPPFLAGS=$CPPFLAGS
   2036     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   2037 
   2038     save_LDFLAGS=$LDFLAGS
   2039     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   2040 
   2041     save_LIBS=$LIBS
   2042     LIBS="$lt_cv_dlopen_libs $LIBS"
   2043 
   2044     AC_CACHE_CHECK([whether a program can dlopen itself],
   2045 	  lt_cv_dlopen_self, [dnl
   2046 	  _LT_TRY_DLOPEN_SELF(
   2047 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
   2048 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
   2049     ])
   2050 
   2051     if test yes = "$lt_cv_dlopen_self"; then
   2052       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   2053       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
   2054 	  lt_cv_dlopen_self_static, [dnl
   2055 	  _LT_TRY_DLOPEN_SELF(
   2056 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
   2057 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
   2058       ])
   2059     fi
   2060 
   2061     CPPFLAGS=$save_CPPFLAGS
   2062     LDFLAGS=$save_LDFLAGS
   2063     LIBS=$save_LIBS
   2064     ;;
   2065   esac
   2066 
   2067   case $lt_cv_dlopen_self in
   2068   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   2069   *) enable_dlopen_self=unknown ;;
   2070   esac
   2071 
   2072   case $lt_cv_dlopen_self_static in
   2073   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   2074   *) enable_dlopen_self_static=unknown ;;
   2075   esac
   2076 fi
   2077 _LT_DECL([dlopen_support], [enable_dlopen], [0],
   2078 	 [Whether dlopen is supported])
   2079 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
   2080 	 [Whether dlopen of programs is supported])
   2081 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
   2082 	 [Whether dlopen of statically linked programs is supported])
   2083 ])# LT_SYS_DLOPEN_SELF
   2084 
   2085 # Old name:
   2086 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
   2087 dnl aclocal-1.4 backwards compatibility:
   2088 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
   2089 
   2090 
   2091 # _LT_COMPILER_C_O([TAGNAME])
   2092 # ---------------------------
   2093 # Check to see if options -c and -o are simultaneously supported by compiler.
   2094 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
   2095 m4_defun([_LT_COMPILER_C_O],
   2096 [m4_require([_LT_DECL_SED])dnl
   2097 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   2098 m4_require([_LT_TAG_COMPILER])dnl
   2099 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
   2100   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
   2101   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
   2102    $RM -r conftest 2>/dev/null
   2103    mkdir conftest
   2104    cd conftest
   2105    mkdir out
   2106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   2107 
   2108    lt_compiler_flag="-o out/conftest2.$ac_objext"
   2109    # Insert the option either (1) after the last *FLAGS variable, or
   2110    # (2) before a word containing "conftest.", or (3) at the end.
   2111    # Note that $ac_compile itself does not contain backslashes and begins
   2112    # with a dollar sign (not a hyphen), so the echo should work correctly.
   2113    lt_compile=`echo "$ac_compile" | $SED \
   2114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   2115    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   2116    -e 's:$: $lt_compiler_flag:'`
   2117    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   2118    (eval "$lt_compile" 2>out/conftest.err)
   2119    ac_status=$?
   2120    cat out/conftest.err >&AS_MESSAGE_LOG_FD
   2121    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   2122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   2123    then
   2124      # The compiler can only warn and ignore the option if not recognized
   2125      # So say no if there are warnings
   2126      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   2127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   2128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   2129        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   2130      fi
   2131    fi
   2132    chmod u+w . 2>&AS_MESSAGE_LOG_FD
   2133    $RM conftest*
   2134    # SGI C++ compiler will create directory out/ii_files/ for
   2135    # template instantiation
   2136    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   2137    $RM out/* && rmdir out
   2138    cd ..
   2139    $RM -r conftest
   2140    $RM conftest*
   2141 ])
   2142 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
   2143 	[Does compiler simultaneously support -c and -o options?])
   2144 ])# _LT_COMPILER_C_O
   2145 
   2146 
   2147 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
   2148 # ----------------------------------
   2149 # Check to see if we can do hard links to lock some files if needed
   2150 m4_defun([_LT_COMPILER_FILE_LOCKS],
   2151 [m4_require([_LT_ENABLE_LOCK])dnl
   2152 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   2153 _LT_COMPILER_C_O([$1])
   2154 
   2155 hard_links=nottested
   2156 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
   2157   # do not overwrite the value of need_locks provided by the user
   2158   AC_MSG_CHECKING([if we can lock with hard links])
   2159   hard_links=yes
   2160   $RM conftest*
   2161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   2162   touch conftest.a
   2163   ln conftest.a conftest.b 2>&5 || hard_links=no
   2164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   2165   AC_MSG_RESULT([$hard_links])
   2166   if test no = "$hard_links"; then
   2167     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
   2168     need_locks=warn
   2169   fi
   2170 else
   2171   need_locks=no
   2172 fi
   2173 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
   2174 ])# _LT_COMPILER_FILE_LOCKS
   2175 
   2176 
   2177 # _LT_CHECK_OBJDIR
   2178 # ----------------
   2179 m4_defun([_LT_CHECK_OBJDIR],
   2180 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
   2181 [rm -f .libs 2>/dev/null
   2182 mkdir .libs 2>/dev/null
   2183 if test -d .libs; then
   2184   lt_cv_objdir=.libs
   2185 else
   2186   # MS-DOS does not allow filenames that begin with a dot.
   2187   lt_cv_objdir=_libs
   2188 fi
   2189 rmdir .libs 2>/dev/null])
   2190 objdir=$lt_cv_objdir
   2191 _LT_DECL([], [objdir], [0],
   2192          [The name of the directory that contains temporary libtool files])dnl
   2193 m4_pattern_allow([LT_OBJDIR])dnl
   2194 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
   2195   [Define to the sub-directory where libtool stores uninstalled libraries.])
   2196 ])# _LT_CHECK_OBJDIR
   2197 
   2198 
   2199 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
   2200 # --------------------------------------
   2201 # Check hardcoding attributes.
   2202 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
   2203 [AC_MSG_CHECKING([how to hardcode library paths into programs])
   2204 _LT_TAGVAR(hardcode_action, $1)=
   2205 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
   2206    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
   2207    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
   2208 
   2209   # We can hardcode non-existent directories.
   2210   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
   2211      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   2212      # have to relink, otherwise we might link with an installed library
   2213      # when we should be linking with a yet-to-be-installed one
   2214      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
   2215      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
   2216     # Linking always hardcodes the temporary library directory.
   2217     _LT_TAGVAR(hardcode_action, $1)=relink
   2218   else
   2219     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   2220     _LT_TAGVAR(hardcode_action, $1)=immediate
   2221   fi
   2222 else
   2223   # We cannot hardcode anything, or else we can only hardcode existing
   2224   # directories.
   2225   _LT_TAGVAR(hardcode_action, $1)=unsupported
   2226 fi
   2227 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
   2228 
   2229 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
   2230    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
   2231   # Fast installation is not supported
   2232   enable_fast_install=no
   2233 elif test yes = "$shlibpath_overrides_runpath" ||
   2234      test no = "$enable_shared"; then
   2235   # Fast installation is not necessary
   2236   enable_fast_install=needless
   2237 fi
   2238 _LT_TAGDECL([], [hardcode_action], [0],
   2239     [How to hardcode a shared library path into an executable])
   2240 ])# _LT_LINKER_HARDCODE_LIBPATH
   2241 
   2242 
   2243 # _LT_CMD_STRIPLIB
   2244 # ----------------
   2245 m4_defun([_LT_CMD_STRIPLIB],
   2246 [m4_require([_LT_DECL_EGREP])
   2247 striplib=
   2248 old_striplib=
   2249 AC_MSG_CHECKING([whether stripping libraries is possible])
   2250 if test -z "$STRIP"; then
   2251   AC_MSG_RESULT([no])
   2252 else
   2253   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   2254     old_striplib="$STRIP --strip-debug"
   2255     striplib="$STRIP --strip-unneeded"
   2256     AC_MSG_RESULT([yes])
   2257   else
   2258     case $host_os in
   2259     darwin*)
   2260       # FIXME - insert some real tests, host_os isn't really good enough
   2261       striplib="$STRIP -x"
   2262       old_striplib="$STRIP -S"
   2263       AC_MSG_RESULT([yes])
   2264       ;;
   2265     freebsd*)
   2266       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
   2267         old_striplib="$STRIP --strip-debug"
   2268         striplib="$STRIP --strip-unneeded"
   2269         AC_MSG_RESULT([yes])
   2270       else
   2271         AC_MSG_RESULT([no])
   2272       fi
   2273       ;;
   2274     *)
   2275       AC_MSG_RESULT([no])
   2276       ;;
   2277     esac
   2278   fi
   2279 fi
   2280 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
   2281 _LT_DECL([], [striplib], [1])
   2282 ])# _LT_CMD_STRIPLIB
   2283 
   2284 
   2285 # _LT_PREPARE_MUNGE_PATH_LIST
   2286 # ---------------------------
   2287 # Make sure func_munge_path_list() is defined correctly.
   2288 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
   2289 [[# func_munge_path_list VARIABLE PATH
   2290 # -----------------------------------
   2291 # VARIABLE is name of variable containing _space_ separated list of
   2292 # directories to be munged by the contents of PATH, which is string
   2293 # having a format:
   2294 # "DIR[:DIR]:"
   2295 #       string "DIR[ DIR]" will be prepended to VARIABLE
   2296 # ":DIR[:DIR]"
   2297 #       string "DIR[ DIR]" will be appended to VARIABLE
   2298 # "DIRP[:DIRP]::[DIRA:]DIRA"
   2299 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   2300 #       "DIRA[ DIRA]" will be appended to VARIABLE
   2301 # "DIR[:DIR]"
   2302 #       VARIABLE will be replaced by "DIR[ DIR]"
   2303 func_munge_path_list ()
   2304 {
   2305     case x@S|@2 in
   2306     x)
   2307         ;;
   2308     *:)
   2309         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
   2310         ;;
   2311     x:*)
   2312         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
   2313         ;;
   2314     *::*)
   2315         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   2316         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
   2317         ;;
   2318     *)
   2319         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
   2320         ;;
   2321     esac
   2322 }
   2323 ]])# _LT_PREPARE_PATH_LIST
   2324 
   2325 
   2326 # _LT_SYS_DYNAMIC_LINKER([TAG])
   2327 # -----------------------------
   2328 # PORTME Fill in your ld.so characteristics
   2329 m4_defun([_LT_SYS_DYNAMIC_LINKER],
   2330 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   2331 m4_require([_LT_DECL_EGREP])dnl
   2332 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   2333 m4_require([_LT_DECL_OBJDUMP])dnl
   2334 m4_require([_LT_DECL_SED])dnl
   2335 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
   2336 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
   2337 AC_MSG_CHECKING([dynamic linker characteristics])
   2338 m4_if([$1],
   2339 	[], [
   2340 if test yes = "$GCC"; then
   2341   case $host_os in
   2342     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   2343     *) lt_awk_arg='/^libraries:/' ;;
   2344   esac
   2345   case $host_os in
   2346     mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
   2347     *) lt_sed_strip_eq='s|=/|/|g' ;;
   2348   esac
   2349   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   2350   case $lt_search_path_spec in
   2351   *\;*)
   2352     # if the path contains ";" then we assume it to be the separator
   2353     # otherwise default to the standard path separator (i.e. ":") - it is
   2354     # assumed that no part of a normal pathname contains ";" but that should
   2355     # okay in the real world where ";" in dirpaths is itself problematic.
   2356     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   2357     ;;
   2358   *)
   2359     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   2360     ;;
   2361   esac
   2362   # Ok, now we have the path, separated by spaces, we can step through it
   2363   # and add multilib dir if necessary...
   2364   lt_tmp_lt_search_path_spec=
   2365   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   2366   # ...but if some path component already ends with the multilib dir we assume
   2367   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   2368   case "$lt_multi_os_dir; $lt_search_path_spec " in
   2369   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   2370     lt_multi_os_dir=
   2371     ;;
   2372   esac
   2373   for lt_sys_path in $lt_search_path_spec; do
   2374     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   2375       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   2376     elif test -n "$lt_multi_os_dir"; then
   2377       test -d "$lt_sys_path" && \
   2378 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   2379     fi
   2380   done
   2381   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   2382 BEGIN {RS = " "; FS = "/|\n";} {
   2383   lt_foo = "";
   2384   lt_count = 0;
   2385   for (lt_i = NF; lt_i > 0; lt_i--) {
   2386     if ($lt_i != "" && $lt_i != ".") {
   2387       if ($lt_i == "..") {
   2388         lt_count++;
   2389       } else {
   2390         if (lt_count == 0) {
   2391           lt_foo = "/" $lt_i lt_foo;
   2392         } else {
   2393           lt_count--;
   2394         }
   2395       }
   2396     }
   2397   }
   2398   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
   2399   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
   2400 }'`
   2401   # AWK program above erroneously prepends '/' to C:/dos/paths
   2402   # for these hosts.
   2403   case $host_os in
   2404     mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   2405       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
   2406   esac
   2407   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   2408 else
   2409   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   2410 fi])
   2411 library_names_spec=
   2412 libname_spec='lib$name'
   2413 soname_spec=
   2414 shrext_cmds=.so
   2415 postinstall_cmds=
   2416 postuninstall_cmds=
   2417 finish_cmds=
   2418 finish_eval=
   2419 shlibpath_var=
   2420 shlibpath_overrides_runpath=unknown
   2421 version_type=none
   2422 dynamic_linker="$host_os ld.so"
   2423 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   2424 need_lib_prefix=unknown
   2425 hardcode_into_libs=no
   2426 
   2427 # when you set need_version to no, make sure it does not cause -set_version
   2428 # flags to be left without arguments
   2429 need_version=unknown
   2430 
   2431 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
   2432 [User-defined run-time library search path.])
   2433 
   2434 case $host_os in
   2435 aix3*)
   2436   version_type=linux # correct to gnu/linux during the next big refactor
   2437   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   2438   shlibpath_var=LIBPATH
   2439 
   2440   # AIX 3 has no versioning support, so we append a major version to the name.
   2441   soname_spec='$libname$release$shared_ext$major'
   2442   ;;
   2443 
   2444 aix[[4-9]]*)
   2445   version_type=linux # correct to gnu/linux during the next big refactor
   2446   need_lib_prefix=no
   2447   need_version=no
   2448   hardcode_into_libs=yes
   2449   if test ia64 = "$host_cpu"; then
   2450     # AIX 5 supports IA64
   2451     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   2452     shlibpath_var=LD_LIBRARY_PATH
   2453   else
   2454     # With GCC up to 2.95.x, collect2 would create an import file
   2455     # for dependence libraries.  The import file would start with
   2456     # the line '#! .'.  This would cause the generated library to
   2457     # depend on '.', always an invalid library.  This was fixed in
   2458     # development snapshots of GCC prior to 3.0.
   2459     case $host_os in
   2460       aix4 | aix4.[[01]] | aix4.[[01]].*)
   2461       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   2462 	   echo ' yes '
   2463 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   2464 	:
   2465       else
   2466 	can_build_shared=no
   2467       fi
   2468       ;;
   2469     esac
   2470     # Using Import Files as archive members, it is possible to support
   2471     # filename-based versioning of shared library archives on AIX. While
   2472     # this would work for both with and without runtime linking, it will
   2473     # prevent static linking of such archives. So we do filename-based
   2474     # shared library versioning with .so extension only, which is used
   2475     # when both runtime linking and shared linking is enabled.
   2476     # Unfortunately, runtime linking may impact performance, so we do
   2477     # not want this to be the default eventually. Also, we use the
   2478     # versioned .so libs for executables only if there is the -brtl
   2479     # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
   2480     # To allow for filename-based versioning support, we need to create
   2481     # libNAME.so.V as an archive file, containing:
   2482     # *) an Import File, referring to the versioned filename of the
   2483     #    archive as well as the shared archive member, telling the
   2484     #    bitwidth (32 or 64) of that shared object, and providing the
   2485     #    list of exported symbols of that shared object, eventually
   2486     #    decorated with the 'weak' keyword
   2487     # *) the shared object with the F_LOADONLY flag set, to really avoid
   2488     #    it being seen by the linker.
   2489     # At run time we better use the real file rather than another symlink,
   2490     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   2491 
   2492     case $with_aix_soname,$aix_use_runtimelinking in
   2493     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   2494     # soname into executable. Probably we can add versioning support to
   2495     # collect2, so additional links can be useful in future.
   2496     aix,yes) # traditional libtool
   2497       dynamic_linker='AIX unversionable lib.so'
   2498       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   2499       # instead of lib<name>.a to let people know that these are not
   2500       # typical AIX shared libraries.
   2501       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2502       ;;
   2503     aix,no) # traditional AIX only
   2504       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
   2505       # We preserve .a as extension for shared libraries through AIX4.2
   2506       # and later when we are not doing run time linking.
   2507       library_names_spec='$libname$release.a $libname.a'
   2508       soname_spec='$libname$release$shared_ext$major'
   2509       ;;
   2510     svr4,*) # full svr4 only
   2511       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
   2512       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   2513       # We do not specify a path in Import Files, so LIBPATH fires.
   2514       shlibpath_overrides_runpath=yes
   2515       ;;
   2516     *,yes) # both, prefer svr4
   2517       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
   2518       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   2519       # unpreferred sharedlib libNAME.a needs extra handling
   2520       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"'
   2521       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"'
   2522       # We do not specify a path in Import Files, so LIBPATH fires.
   2523       shlibpath_overrides_runpath=yes
   2524       ;;
   2525     *,no) # both, prefer aix
   2526       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
   2527       library_names_spec='$libname$release.a $libname.a'
   2528       soname_spec='$libname$release$shared_ext$major'
   2529       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   2530       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)'
   2531       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"'
   2532       ;;
   2533     esac
   2534     shlibpath_var=LIBPATH
   2535   fi
   2536   ;;
   2537 
   2538 amigaos*)
   2539   case $host_cpu in
   2540   powerpc)
   2541     # Since July 2007 AmigaOS4 officially supports .so libraries.
   2542     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   2543     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2544     ;;
   2545   m68k)
   2546     library_names_spec='$libname.ixlibrary $libname.a'
   2547     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   2548     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'
   2549     ;;
   2550   esac
   2551   ;;
   2552 
   2553 beos*)
   2554   library_names_spec='$libname$shared_ext'
   2555   dynamic_linker="$host_os ld.so"
   2556   shlibpath_var=LIBRARY_PATH
   2557   ;;
   2558 
   2559 bsdi[[45]]*)
   2560   version_type=linux # correct to gnu/linux during the next big refactor
   2561   need_version=no
   2562   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2563   soname_spec='$libname$release$shared_ext$major'
   2564   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   2565   shlibpath_var=LD_LIBRARY_PATH
   2566   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   2567   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   2568   # the default ld.so.conf also contains /usr/contrib/lib and
   2569   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   2570   # libtool to hard-code these into programs
   2571   ;;
   2572 
   2573 cygwin* | mingw* | windows* | pw32* | cegcc*)
   2574   version_type=windows
   2575   shrext_cmds=.dll
   2576   need_version=no
   2577   need_lib_prefix=no
   2578 
   2579   case $GCC,$cc_basename in
   2580   yes,*)
   2581     # gcc
   2582     library_names_spec='$libname.dll.a'
   2583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   2584     # If user builds GCC with multilib enabled,
   2585     # it should just install on $(libdir)
   2586     # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
   2587     if test xyes = x"$multilib"; then
   2588       postinstall_cmds='base_file=`basename \$file`~
   2589         dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   2590         dldir=$destdir/`dirname \$dlpath`~
   2591         $install_prog $dir/$dlname $destdir/$dlname~
   2592         chmod a+x $destdir/$dlname~
   2593         if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   2594           eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
   2595         fi'
   2596     else
   2597       postinstall_cmds='base_file=`basename \$file`~
   2598         dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   2599         dldir=$destdir/`dirname \$dlpath`~
   2600         test -d \$dldir || mkdir -p \$dldir~
   2601         $install_prog $dir/$dlname \$dldir/$dlname~
   2602         chmod a+x \$dldir/$dlname~
   2603         if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   2604           eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   2605         fi'
   2606     fi
   2607     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   2608       dlpath=$dir/\$dldll~
   2609        $RM \$dlpath'
   2610     shlibpath_overrides_runpath=yes
   2611 
   2612     case $host_os in
   2613     cygwin*)
   2614       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   2615       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
   2616 m4_if([$1], [],[
   2617       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
   2618       ;;
   2619     mingw* | windows* | cegcc*)
   2620       # MinGW DLLs use traditional 'lib' prefix
   2621       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
   2622       ;;
   2623     pw32*)
   2624       # pw32 DLLs use 'pw' prefix rather than 'lib'
   2625       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
   2626       ;;
   2627     esac
   2628     dynamic_linker='Win32 ld.exe'
   2629     ;;
   2630 
   2631   *,cl* | *,icl*)
   2632     # Native MSVC or ICC
   2633     libname_spec='$name'
   2634     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
   2635     library_names_spec='$libname.dll.lib'
   2636 
   2637     case $build_os in
   2638     mingw* | windows*)
   2639       sys_lib_search_path_spec=
   2640       lt_save_ifs=$IFS
   2641       IFS=';'
   2642       for lt_path in $LIB
   2643       do
   2644         IFS=$lt_save_ifs
   2645         # Let DOS variable expansion print the short 8.3 style file name.
   2646         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   2647         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   2648       done
   2649       IFS=$lt_save_ifs
   2650       # Convert to MSYS style.
   2651       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
   2652       ;;
   2653     cygwin*)
   2654       # Convert to unix form, then to dos form, then back to unix form
   2655       # but this time dos style (no spaces!) so that the unix form looks
   2656       # like /cygdrive/c/PROGRA~1:/cygdr...
   2657       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   2658       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   2659       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   2660       ;;
   2661     *)
   2662       sys_lib_search_path_spec=$LIB
   2663       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
   2664         # It is most probably a Windows format PATH.
   2665         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   2666       else
   2667         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   2668       fi
   2669       # FIXME: find the short name or the path components, as spaces are
   2670       # common. (e.g. "Program Files" -> "PROGRA~1")
   2671       ;;
   2672     esac
   2673 
   2674     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   2675     postinstall_cmds='base_file=`basename \$file`~
   2676       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   2677       dldir=$destdir/`dirname \$dlpath`~
   2678       test -d \$dldir || mkdir -p \$dldir~
   2679       $install_prog $dir/$dlname \$dldir/$dlname'
   2680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   2681       dlpath=$dir/\$dldll~
   2682        $RM \$dlpath'
   2683     shlibpath_overrides_runpath=yes
   2684     dynamic_linker='Win32 link.exe'
   2685     ;;
   2686 
   2687   *)
   2688     # Assume MSVC and ICC wrapper
   2689     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
   2690     dynamic_linker='Win32 ld.exe'
   2691     ;;
   2692   esac
   2693   # FIXME: first we should search . and the directory the executable is in
   2694   shlibpath_var=PATH
   2695   ;;
   2696 
   2697 darwin* | rhapsody*)
   2698   dynamic_linker="$host_os dyld"
   2699   version_type=darwin
   2700   need_lib_prefix=no
   2701   need_version=no
   2702   library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
   2703   soname_spec='$libname$release$major$shared_ext'
   2704   shlibpath_overrides_runpath=yes
   2705   shlibpath_var=DYLD_LIBRARY_PATH
   2706   shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
   2707 m4_if([$1], [],[
   2708   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
   2709   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   2710   ;;
   2711 
   2712 dgux*)
   2713   version_type=linux # correct to gnu/linux during the next big refactor
   2714   need_lib_prefix=no
   2715   need_version=no
   2716   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2717   soname_spec='$libname$release$shared_ext$major'
   2718   shlibpath_var=LD_LIBRARY_PATH
   2719   ;;
   2720 
   2721 freebsd* | dragonfly* | midnightbsd*)
   2722   # DragonFly does not have aout.  When/if they implement a new
   2723   # versioning mechanism, adjust this.
   2724   if test -x /usr/bin/objformat; then
   2725     objformat=`/usr/bin/objformat`
   2726   else
   2727     case $host_os in
   2728     freebsd[[23]].*) objformat=aout ;;
   2729     *) objformat=elf ;;
   2730     esac
   2731   fi
   2732   # Handle Gentoo/FreeBSD as it was Linux
   2733   case $host_vendor in
   2734     gentoo)
   2735       version_type=linux ;;
   2736     *)
   2737       version_type=freebsd-$objformat ;;
   2738   esac
   2739 
   2740   case $version_type in
   2741     freebsd-elf*)
   2742       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2743       soname_spec='$libname$release$shared_ext$major'
   2744       need_version=no
   2745       need_lib_prefix=no
   2746       ;;
   2747     freebsd-*)
   2748       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   2749       need_version=yes
   2750       ;;
   2751     linux)
   2752       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   2753       soname_spec='${libname}${release}${shared_ext}$major'
   2754       need_lib_prefix=no
   2755       need_version=no
   2756       ;;
   2757   esac
   2758   case $host_cpu in
   2759     powerpc64)
   2760       # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
   2761       # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
   2762       AC_COMPILE_IFELSE(
   2763         [AC_LANG_SOURCE(
   2764            [[int test_pointer_size[sizeof (void *) - 5];
   2765            ]])],
   2766         [shlibpath_var=LD_LIBRARY_PATH],
   2767         [shlibpath_var=LD_32_LIBRARY_PATH])
   2768       ;;
   2769     *)
   2770       shlibpath_var=LD_LIBRARY_PATH
   2771       ;;
   2772   esac
   2773   case $host_os in
   2774   freebsd2.*)
   2775     shlibpath_overrides_runpath=yes
   2776     ;;
   2777   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
   2778     shlibpath_overrides_runpath=yes
   2779     hardcode_into_libs=yes
   2780     ;;
   2781   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
   2782   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
   2783     shlibpath_overrides_runpath=no
   2784     hardcode_into_libs=yes
   2785     ;;
   2786   *) # from 4.6 on, and DragonFly
   2787     shlibpath_overrides_runpath=yes
   2788     hardcode_into_libs=yes
   2789     ;;
   2790   esac
   2791   ;;
   2792 
   2793 haiku*)
   2794   version_type=linux # correct to gnu/linux during the next big refactor
   2795   need_lib_prefix=no
   2796   need_version=no
   2797   dynamic_linker="$host_os runtime_loader"
   2798   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2799   soname_spec='$libname$release$shared_ext$major'
   2800   shlibpath_var=LIBRARY_PATH
   2801   shlibpath_overrides_runpath=no
   2802   sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
   2803   sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
   2804   hardcode_into_libs=no
   2805   ;;
   2806 
   2807 hpux9* | hpux10* | hpux11*)
   2808   # Give a soname corresponding to the major version so that dld.sl refuses to
   2809   # link against other versions.
   2810   version_type=sunos
   2811   need_lib_prefix=no
   2812   need_version=no
   2813   case $host_cpu in
   2814   ia64*)
   2815     shrext_cmds='.so'
   2816     hardcode_into_libs=yes
   2817     dynamic_linker="$host_os dld.so"
   2818     shlibpath_var=LD_LIBRARY_PATH
   2819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   2820     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2821     soname_spec='$libname$release$shared_ext$major'
   2822     if test 32 = "$HPUX_IA64_MODE"; then
   2823       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   2824       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   2825     else
   2826       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   2827       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   2828     fi
   2829     ;;
   2830   hppa*64*)
   2831     shrext_cmds='.sl'
   2832     hardcode_into_libs=yes
   2833     dynamic_linker="$host_os dld.sl"
   2834     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   2835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   2836     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2837     soname_spec='$libname$release$shared_ext$major'
   2838     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   2839     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   2840     ;;
   2841   *)
   2842     shrext_cmds='.sl'
   2843     dynamic_linker="$host_os dld.sl"
   2844     shlibpath_var=SHLIB_PATH
   2845     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   2846     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2847     soname_spec='$libname$release$shared_ext$major'
   2848     ;;
   2849   esac
   2850   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   2851   postinstall_cmds='chmod 555 $lib'
   2852   # or fails outright, so override atomically:
   2853   install_override_mode=555
   2854   ;;
   2855 
   2856 interix[[3-9]]*)
   2857   version_type=linux # correct to gnu/linux during the next big refactor
   2858   need_lib_prefix=no
   2859   need_version=no
   2860   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2861   soname_spec='$libname$release$shared_ext$major'
   2862   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   2863   shlibpath_var=LD_LIBRARY_PATH
   2864   shlibpath_overrides_runpath=no
   2865   hardcode_into_libs=yes
   2866   ;;
   2867 
   2868 irix5* | irix6* | nonstopux*)
   2869   case $host_os in
   2870     nonstopux*) version_type=nonstopux ;;
   2871     *)
   2872 	if test yes = "$lt_cv_prog_gnu_ld"; then
   2873 		version_type=linux # correct to gnu/linux during the next big refactor
   2874 	else
   2875 		version_type=irix
   2876 	fi ;;
   2877   esac
   2878   need_lib_prefix=no
   2879   need_version=no
   2880   soname_spec='$libname$release$shared_ext$major'
   2881   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   2882   case $host_os in
   2883   irix5* | nonstopux*)
   2884     libsuff= shlibsuff=
   2885     ;;
   2886   *)
   2887     case $LD in # libtool.m4 will add one of these switches to LD
   2888     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   2889       libsuff= shlibsuff= libmagic=32-bit;;
   2890     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   2891       libsuff=32 shlibsuff=N32 libmagic=N32;;
   2892     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   2893       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   2894     *) libsuff= shlibsuff= libmagic=never-match;;
   2895     esac
   2896     ;;
   2897   esac
   2898   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   2899   shlibpath_overrides_runpath=no
   2900   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   2901   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   2902   hardcode_into_libs=yes
   2903   ;;
   2904 
   2905 # No shared lib support for Linux oldld, aout, or coff.
   2906 linux*oldld* | linux*aout* | linux*coff*)
   2907   dynamic_linker=no
   2908   ;;
   2909 
   2910 linux*android*)
   2911   version_type=none # Android doesn't support versioned libraries.
   2912   need_lib_prefix=no
   2913   need_version=no
   2914   library_names_spec='$libname$release$shared_ext $libname$shared_ext'
   2915   soname_spec='$libname$release$shared_ext'
   2916   finish_cmds=
   2917   shlibpath_var=LD_LIBRARY_PATH
   2918   shlibpath_overrides_runpath=yes
   2919 
   2920   # This implies no fast_install, which is unacceptable.
   2921   # Some rework will be needed to allow for fast_install
   2922   # before this can be enabled.
   2923   hardcode_into_libs=yes
   2924 
   2925   dynamic_linker='Android linker'
   2926   # -rpath works at least for libraries that are not overridden by
   2927   # libraries installed in system locations.
   2928   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   2929   ;;
   2930 
   2931 # This must be glibc/ELF.
   2932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   2933   version_type=linux # correct to gnu/linux during the next big refactor
   2934   need_lib_prefix=no
   2935   need_version=no
   2936   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2937   soname_spec='$libname$release$shared_ext$major'
   2938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   2939   shlibpath_var=LD_LIBRARY_PATH
   2940   shlibpath_overrides_runpath=no
   2941 
   2942   # Some binutils ld are patched to set DT_RUNPATH
   2943   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
   2944     [lt_cv_shlibpath_overrides_runpath=no
   2945     save_LDFLAGS=$LDFLAGS
   2946     save_libdir=$libdir
   2947     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
   2948 	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
   2949     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
   2950       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
   2951 	 [lt_cv_shlibpath_overrides_runpath=yes])])
   2952     LDFLAGS=$save_LDFLAGS
   2953     libdir=$save_libdir
   2954     ])
   2955   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   2956 
   2957   # This implies no fast_install, which is unacceptable.
   2958   # Some rework will be needed to allow for fast_install
   2959   # before this can be enabled.
   2960   hardcode_into_libs=yes
   2961 
   2962   # Ideally, we could use ldconfig to report *all* directories which are
   2963   # searched for libraries, however this is still not possible.  Aside from not
   2964   # being certain /sbin/ldconfig is available, command
   2965   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   2966   # even though it is searched at run-time.  Try to do the best guess by
   2967   # appending ld.so.conf contents (and includes) to the search path.
   2968   if test -f /etc/ld.so.conf; then
   2969     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' ' '`
   2970     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   2971   fi
   2972 
   2973   # We used to test for /lib/ld.so.1 and disable shared libraries on
   2974   # powerpc, because MkLinux only supported shared libraries with the
   2975   # GNU dynamic linker.  Since this was broken with cross compilers,
   2976   # most powerpc-linux boxes support dynamic linking these days and
   2977   # people can always --disable-shared, the test was removed, and we
   2978   # assume the GNU/Linux dynamic linker is in use.
   2979   dynamic_linker='GNU/Linux ld.so'
   2980   ;;
   2981 
   2982 netbsdelf*-gnu)
   2983   version_type=linux
   2984   need_lib_prefix=no
   2985   need_version=no
   2986   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   2987   soname_spec='$libname$release$shared_ext$major'
   2988   shlibpath_var=LD_LIBRARY_PATH
   2989   shlibpath_overrides_runpath=no
   2990   hardcode_into_libs=yes
   2991   dynamic_linker='NetBSD ld.elf_so'
   2992   ;;
   2993 
   2994 netbsd*)
   2995   version_type=sunos
   2996   need_lib_prefix=no
   2997   need_version=no
   2998   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   2999     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   3000     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   3001     dynamic_linker='NetBSD (a.out) ld.so'
   3002   else
   3003     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3004     soname_spec='$libname$release$shared_ext$major'
   3005     dynamic_linker='NetBSD ld.elf_so'
   3006   fi
   3007   shlibpath_var=LD_LIBRARY_PATH
   3008   shlibpath_overrides_runpath=yes
   3009   hardcode_into_libs=yes
   3010   ;;
   3011 
   3012 *-mlibc)
   3013   version_type=linux # correct to gnu/linux during the next big refactor
   3014   need_lib_prefix=no
   3015   need_version=no
   3016   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3017   soname_spec='$libname$release$shared_ext$major'
   3018   dynamic_linker='mlibc ld.so'
   3019   shlibpath_var=LD_LIBRARY_PATH
   3020   shlibpath_overrides_runpath=no
   3021   hardcode_into_libs=yes
   3022   ;;
   3023 
   3024 newsos6)
   3025   version_type=linux # correct to gnu/linux during the next big refactor
   3026   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3027   shlibpath_var=LD_LIBRARY_PATH
   3028   shlibpath_overrides_runpath=yes
   3029   ;;
   3030 
   3031 *nto* | *qnx*)
   3032   version_type=qnx
   3033   need_lib_prefix=no
   3034   need_version=no
   3035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3036   soname_spec='$libname$release$shared_ext$major'
   3037   shlibpath_var=LD_LIBRARY_PATH
   3038   shlibpath_overrides_runpath=no
   3039   hardcode_into_libs=yes
   3040   dynamic_linker='ldqnx.so'
   3041   ;;
   3042 
   3043 openbsd*)
   3044   version_type=sunos
   3045   sys_lib_dlsearch_path_spec=/usr/lib
   3046   need_lib_prefix=no
   3047   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   3048     need_version=no
   3049   else
   3050     need_version=yes
   3051   fi
   3052   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   3053   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   3054   shlibpath_var=LD_LIBRARY_PATH
   3055   shlibpath_overrides_runpath=yes
   3056   ;;
   3057 
   3058 os2*)
   3059   libname_spec='$name'
   3060   version_type=windows
   3061   shrext_cmds=.dll
   3062   need_version=no
   3063   need_lib_prefix=no
   3064   # OS/2 can only load a DLL with a base name of 8 characters or less.
   3065   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   3066     v=$($ECHO $release$versuffix | tr -d .-);
   3067     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   3068     $ECHO $n$v`$shared_ext'
   3069   library_names_spec='${libname}_dll.$libext'
   3070   dynamic_linker='OS/2 ld.exe'
   3071   shlibpath_var=BEGINLIBPATH
   3072   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   3073   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   3074   postinstall_cmds='base_file=`basename \$file`~
   3075     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   3076     dldir=$destdir/`dirname \$dlpath`~
   3077     test -d \$dldir || mkdir -p \$dldir~
   3078     $install_prog $dir/$dlname \$dldir/$dlname~
   3079     chmod a+x \$dldir/$dlname~
   3080     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   3081       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   3082     fi'
   3083   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   3084     dlpath=$dir/\$dldll~
   3085     $RM \$dlpath'
   3086   ;;
   3087 
   3088 osf3* | osf4* | osf5*)
   3089   version_type=osf
   3090   need_lib_prefix=no
   3091   need_version=no
   3092   soname_spec='$libname$release$shared_ext$major'
   3093   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3094   shlibpath_var=LD_LIBRARY_PATH
   3095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   3096   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   3097   ;;
   3098 
   3099 rdos*)
   3100   dynamic_linker=no
   3101   ;;
   3102 
   3103 serenity*)
   3104   version_type=linux # correct to gnu/linux during the next big refactor
   3105   need_lib_prefix=no
   3106   need_version=no
   3107   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3108   soname_spec='$libname$release$shared_ext$major'
   3109   shlibpath_var=LD_LIBRARY_PATH
   3110   shlibpath_overrides_runpath=no
   3111   dynamic_linker='SerenityOS LibELF'
   3112   ;;
   3113 
   3114 solaris*)
   3115   version_type=linux # correct to gnu/linux during the next big refactor
   3116   need_lib_prefix=no
   3117   need_version=no
   3118   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3119   soname_spec='$libname$release$shared_ext$major'
   3120   shlibpath_var=LD_LIBRARY_PATH
   3121   shlibpath_overrides_runpath=yes
   3122   hardcode_into_libs=yes
   3123   # ldd complains unless libraries are executable
   3124   postinstall_cmds='chmod +x $lib'
   3125   ;;
   3126 
   3127 sunos4*)
   3128   version_type=sunos
   3129   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   3130   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   3131   shlibpath_var=LD_LIBRARY_PATH
   3132   shlibpath_overrides_runpath=yes
   3133   if test yes = "$with_gnu_ld"; then
   3134     need_lib_prefix=no
   3135   fi
   3136   need_version=yes
   3137   ;;
   3138 
   3139 sysv4 | sysv4.3*)
   3140   version_type=linux # correct to gnu/linux during the next big refactor
   3141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3142   soname_spec='$libname$release$shared_ext$major'
   3143   shlibpath_var=LD_LIBRARY_PATH
   3144   case $host_vendor in
   3145     sni)
   3146       shlibpath_overrides_runpath=no
   3147       need_lib_prefix=no
   3148       runpath_var=LD_RUN_PATH
   3149       ;;
   3150     siemens)
   3151       need_lib_prefix=no
   3152       ;;
   3153     motorola)
   3154       need_lib_prefix=no
   3155       need_version=no
   3156       shlibpath_overrides_runpath=no
   3157       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   3158       ;;
   3159   esac
   3160   ;;
   3161 
   3162 sysv4*MP*)
   3163   if test -d /usr/nec; then
   3164     version_type=linux # correct to gnu/linux during the next big refactor
   3165     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   3166     soname_spec='$libname$shared_ext.$major'
   3167     shlibpath_var=LD_LIBRARY_PATH
   3168   fi
   3169   ;;
   3170 
   3171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   3172   version_type=sco
   3173   need_lib_prefix=no
   3174   need_version=no
   3175   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   3176   soname_spec='$libname$release$shared_ext$major'
   3177   shlibpath_var=LD_LIBRARY_PATH
   3178   shlibpath_overrides_runpath=yes
   3179   hardcode_into_libs=yes
   3180   if test yes = "$with_gnu_ld"; then
   3181     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   3182   else
   3183     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   3184     case $host_os in
   3185       sco3.2v5*)
   3186         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   3187 	;;
   3188     esac
   3189   fi
   3190   sys_lib_dlsearch_path_spec='/usr/lib'
   3191   ;;
   3192 
   3193 tpf*)
   3194   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   3195   version_type=linux # correct to gnu/linux during the next big refactor
   3196   need_lib_prefix=no
   3197   need_version=no
   3198   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3199   shlibpath_var=LD_LIBRARY_PATH
   3200   shlibpath_overrides_runpath=no
   3201   hardcode_into_libs=yes
   3202   ;;
   3203 
   3204 uts4*)
   3205   version_type=linux # correct to gnu/linux during the next big refactor
   3206   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   3207   soname_spec='$libname$release$shared_ext$major'
   3208   shlibpath_var=LD_LIBRARY_PATH
   3209   ;;
   3210 
   3211 emscripten*)
   3212   version_type=none
   3213   need_lib_prefix=no
   3214   need_version=no
   3215   library_names_spec='$libname$release$shared_ext'
   3216   soname_spec='$libname$release$shared_ext'
   3217   finish_cmds=
   3218   dynamic_linker="Emscripten linker"
   3219   _LT_COMPILER_PIC($1)='-fPIC'
   3220   _LT_TAGVAR(archive_cmds, $1)='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
   3221   _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
   3222   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   3223   _LT_TAGVAR(no_undefined_flag, $1)=
   3224   ;;
   3225 
   3226 *)
   3227   dynamic_linker=no
   3228   ;;
   3229 esac
   3230 AC_MSG_RESULT([$dynamic_linker])
   3231 test no = "$dynamic_linker" && can_build_shared=no
   3232 
   3233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   3234 if test yes = "$GCC"; then
   3235   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   3236 fi
   3237 
   3238 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   3239   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   3240 fi
   3241 
   3242 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   3243   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   3244 fi
   3245 
   3246 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   3247 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   3248 
   3249 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   3250 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   3251 
   3252 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   3253 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   3254 
   3255 _LT_DECL([], [variables_saved_for_relink], [1],
   3256     [Variables whose values should be saved in libtool wrapper scripts and
   3257     restored at link time])
   3258 _LT_DECL([], [need_lib_prefix], [0],
   3259     [Do we need the "lib" prefix for modules?])
   3260 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
   3261 _LT_DECL([], [version_type], [0], [Library versioning type])
   3262 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
   3263 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
   3264 _LT_DECL([], [shlibpath_overrides_runpath], [0],
   3265     [Is shlibpath searched before the hard-coded library search path?])
   3266 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
   3267 _LT_DECL([], [library_names_spec], [1],
   3268     [[List of archive names.  First name is the real one, the rest are links.
   3269     The last name is the one that the linker finds with -lNAME]])
   3270 _LT_DECL([], [soname_spec], [1],
   3271     [[The coded name of the library, if different from the real name]])
   3272 _LT_DECL([], [install_override_mode], [1],
   3273     [Permission mode override for installation of shared libraries])
   3274 _LT_DECL([], [postinstall_cmds], [2],
   3275     [Command to use after installation of a shared archive])
   3276 _LT_DECL([], [postuninstall_cmds], [2],
   3277     [Command to use after uninstallation of a shared archive])
   3278 _LT_DECL([], [finish_cmds], [2],
   3279     [Commands used to finish a libtool library installation in a directory])
   3280 _LT_DECL([], [finish_eval], [1],
   3281     [[As "finish_cmds", except a single script fragment to be evaled but
   3282     not shown]])
   3283 _LT_DECL([], [hardcode_into_libs], [0],
   3284     [Whether we should hardcode library paths into libraries])
   3285 _LT_DECL([], [sys_lib_search_path_spec], [2],
   3286     [Compile-time system search path for libraries])
   3287 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
   3288     [Detected run-time system search path for libraries])
   3289 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
   3290     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
   3291 ])# _LT_SYS_DYNAMIC_LINKER
   3292 
   3293 
   3294 # _LT_PATH_TOOL_PREFIX(TOOL)
   3295 # --------------------------
   3296 # find a file program that can recognize shared library
   3297 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
   3298 [m4_require([_LT_DECL_EGREP])dnl
   3299 AC_MSG_CHECKING([for $1])
   3300 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
   3301 [case $MAGIC_CMD in
   3302 [[\\/*] |  ?:[\\/]*])
   3303   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   3304   ;;
   3305 *)
   3306   lt_save_MAGIC_CMD=$MAGIC_CMD
   3307   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   3308 dnl $ac_dummy forces splitting on constant user-supplied paths.
   3309 dnl POSIX.2 word splitting is done only on the output of word expansions,
   3310 dnl not every word.  This closes a longstanding sh security hole.
   3311   ac_dummy="m4_if([$2], , $PATH, [$2])"
   3312   for ac_dir in $ac_dummy; do
   3313     IFS=$lt_save_ifs
   3314     test -z "$ac_dir" && ac_dir=.
   3315     if test -f "$ac_dir/$1"; then
   3316       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
   3317       if test -n "$file_magic_test_file"; then
   3318 	case $deplibs_check_method in
   3319 	"file_magic "*)
   3320 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   3321 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   3322 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   3323 	    $EGREP "$file_magic_regex" > /dev/null; then
   3324 	    :
   3325 	  else
   3326 	    cat <<_LT_EOF 1>&2
   3327 
   3328 *** Warning: the command libtool uses to detect shared libraries,
   3329 *** $file_magic_cmd, produces output that libtool cannot recognize.
   3330 *** The result is that libtool may fail to recognize shared libraries
   3331 *** as such.  This will affect the creation of libtool libraries that
   3332 *** depend on shared libraries, but programs linked with such libtool
   3333 *** libraries will work regardless of this problem.  Nevertheless, you
   3334 *** may want to report the problem to your system manager and/or to
   3335 *** bug-libtool (a] gnu.org
   3336 
   3337 _LT_EOF
   3338 	  fi ;;
   3339 	esac
   3340       fi
   3341       break
   3342     fi
   3343   done
   3344   IFS=$lt_save_ifs
   3345   MAGIC_CMD=$lt_save_MAGIC_CMD
   3346   ;;
   3347 esac])
   3348 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   3349 if test -n "$MAGIC_CMD"; then
   3350   AC_MSG_RESULT($MAGIC_CMD)
   3351 else
   3352   AC_MSG_RESULT(no)
   3353 fi
   3354 _LT_DECL([], [MAGIC_CMD], [0],
   3355 	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
   3356 ])# _LT_PATH_TOOL_PREFIX
   3357 
   3358 # Old name:
   3359 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
   3360 dnl aclocal-1.4 backwards compatibility:
   3361 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
   3362 
   3363 
   3364 # _LT_PATH_MAGIC
   3365 # --------------
   3366 # find a file program that can recognize a shared library
   3367 m4_defun([_LT_PATH_MAGIC],
   3368 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
   3369 if test -z "$lt_cv_path_MAGIC_CMD"; then
   3370   if test -n "$ac_tool_prefix"; then
   3371     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
   3372   else
   3373     MAGIC_CMD=:
   3374   fi
   3375 fi
   3376 ])# _LT_PATH_MAGIC
   3377 
   3378 
   3379 # LT_PATH_LD
   3380 # ----------
   3381 # find the pathname to the GNU or non-GNU linker
   3382 AC_DEFUN([LT_PATH_LD],
   3383 [AC_REQUIRE([AC_PROG_CC])dnl
   3384 AC_REQUIRE([AC_CANONICAL_HOST])dnl
   3385 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   3386 m4_require([_LT_DECL_SED])dnl
   3387 m4_require([_LT_DECL_EGREP])dnl
   3388 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
   3389 
   3390 AC_ARG_WITH([gnu-ld],
   3391     [AS_HELP_STRING([--with-gnu-ld],
   3392 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
   3393     [test no = "$withval" || with_gnu_ld=yes],
   3394     [with_gnu_ld=no])dnl
   3395 
   3396 ac_prog=ld
   3397 if test yes = "$GCC"; then
   3398   # Check if gcc -print-prog-name=ld gives a path.
   3399   AC_MSG_CHECKING([for ld used by $CC])
   3400   case $host in
   3401   *-*-mingw* | *-*-windows*)
   3402     # gcc leaves a trailing carriage return, which upsets mingw
   3403     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   3404   *)
   3405     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   3406   esac
   3407   case $ac_prog in
   3408     # Accept absolute paths.
   3409     [[\\/]]* | ?:[[\\/]]*)
   3410       re_direlt='/[[^/]][[^/]]*/\.\./'
   3411       # Canonicalize the pathname of ld
   3412       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   3413       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   3414 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   3415       done
   3416       test -z "$LD" && LD=$ac_prog
   3417       ;;
   3418   "")
   3419     # If it fails, then pretend we aren't using GCC.
   3420     ac_prog=ld
   3421     ;;
   3422   *)
   3423     # If it is relative, then search for the first ld in PATH.
   3424     with_gnu_ld=unknown
   3425     ;;
   3426   esac
   3427 elif test yes = "$with_gnu_ld"; then
   3428   AC_MSG_CHECKING([for GNU ld])
   3429 else
   3430   AC_MSG_CHECKING([for non-GNU ld])
   3431 fi
   3432 AC_CACHE_VAL(lt_cv_path_LD,
   3433 [if test -z "$LD"; then
   3434   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   3435   for ac_dir in $PATH; do
   3436     IFS=$lt_save_ifs
   3437     test -z "$ac_dir" && ac_dir=.
   3438     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   3439       lt_cv_path_LD=$ac_dir/$ac_prog
   3440       # Check to see if the program is GNU ld.  I'd rather use --version,
   3441       # but apparently some variants of GNU ld only accept -v.
   3442       # Break only if it was the GNU/non-GNU ld that we prefer.
   3443       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   3444       *GNU* | *'with BFD'*)
   3445 	test no != "$with_gnu_ld" && break
   3446 	;;
   3447       *)
   3448 	test yes != "$with_gnu_ld" && break
   3449 	;;
   3450       esac
   3451     fi
   3452   done
   3453   IFS=$lt_save_ifs
   3454 else
   3455   lt_cv_path_LD=$LD # Let the user override the test with a path.
   3456 fi])
   3457 LD=$lt_cv_path_LD
   3458 if test -n "$LD"; then
   3459   AC_MSG_RESULT($LD)
   3460 else
   3461   AC_MSG_RESULT(no)
   3462 fi
   3463 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
   3464 _LT_PATH_LD_GNU
   3465 AC_SUBST([LD])
   3466 
   3467 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
   3468 ])# LT_PATH_LD
   3469 
   3470 # Old names:
   3471 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
   3472 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
   3473 dnl aclocal-1.4 backwards compatibility:
   3474 dnl AC_DEFUN([AM_PROG_LD], [])
   3475 dnl AC_DEFUN([AC_PROG_LD], [])
   3476 
   3477 
   3478 # _LT_PATH_LD_GNU
   3479 #- --------------
   3480 m4_defun([_LT_PATH_LD_GNU],
   3481 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
   3482 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
   3483 case `$LD -v 2>&1 </dev/null` in
   3484 *GNU* | *'with BFD'*)
   3485   lt_cv_prog_gnu_ld=yes
   3486   ;;
   3487 *)
   3488   lt_cv_prog_gnu_ld=no
   3489   ;;
   3490 esac])
   3491 with_gnu_ld=$lt_cv_prog_gnu_ld
   3492 ])# _LT_PATH_LD_GNU
   3493 
   3494 
   3495 # _LT_CMD_RELOAD
   3496 # --------------
   3497 # find reload flag for linker
   3498 #   -- PORTME Some linkers may need a different reload flag.
   3499 m4_defun([_LT_CMD_RELOAD],
   3500 [AC_CACHE_CHECK([for $LD option to reload object files],
   3501   lt_cv_ld_reload_flag,
   3502   [lt_cv_ld_reload_flag='-r'])
   3503 reload_flag=$lt_cv_ld_reload_flag
   3504 case $reload_flag in
   3505 "" | " "*) ;;
   3506 *) reload_flag=" $reload_flag" ;;
   3507 esac
   3508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   3509 case $host_os in
   3510   cygwin* | mingw* | windows* | pw32* | cegcc*)
   3511     if test yes != "$GCC"; then
   3512       reload_cmds=false
   3513     fi
   3514     ;;
   3515   darwin*)
   3516     if test yes = "$GCC"; then
   3517       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   3518     else
   3519       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   3520     fi
   3521     ;;
   3522 esac
   3523 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
   3524 _LT_TAGDECL([], [reload_cmds], [2])dnl
   3525 ])# _LT_CMD_RELOAD
   3526 
   3527 
   3528 # _LT_PATH_DD
   3529 # -----------
   3530 # find a working dd
   3531 m4_defun([_LT_PATH_DD],
   3532 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
   3533 [printf 0123456789abcdef0123456789abcdef >conftest.i
   3534 cat conftest.i conftest.i >conftest2.i
   3535 : ${lt_DD:=$DD}
   3536 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
   3537 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   3538   cmp -s conftest.i conftest.out \
   3539   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   3540 fi])
   3541 rm -f conftest.i conftest2.i conftest.out])
   3542 ])# _LT_PATH_DD
   3543 
   3544 
   3545 # _LT_CMD_TRUNCATE
   3546 # ----------------
   3547 # find command to truncate a binary pipe
   3548 m4_defun([_LT_CMD_TRUNCATE],
   3549 [m4_require([_LT_PATH_DD])
   3550 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
   3551 [printf 0123456789abcdef0123456789abcdef >conftest.i
   3552 cat conftest.i conftest.i >conftest2.i
   3553 lt_cv_truncate_bin=
   3554 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   3555   cmp -s conftest.i conftest.out \
   3556   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   3557 fi
   3558 rm -f conftest.i conftest2.i conftest.out
   3559 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
   3560 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
   3561   [Command to truncate a binary pipe])
   3562 ])# _LT_CMD_TRUNCATE
   3563 
   3564 
   3565 # _LT_CHECK_MAGIC_METHOD
   3566 # ----------------------
   3567 # how to check for library dependencies
   3568 #  -- PORTME fill in with the dynamic library characteristics
   3569 m4_defun([_LT_CHECK_MAGIC_METHOD],
   3570 [m4_require([_LT_DECL_EGREP])
   3571 m4_require([_LT_DECL_OBJDUMP])
   3572 AC_CACHE_CHECK([how to recognize dependent libraries],
   3573 lt_cv_deplibs_check_method,
   3574 [lt_cv_file_magic_cmd='$MAGIC_CMD'
   3575 lt_cv_file_magic_test_file=
   3576 lt_cv_deplibs_check_method='unknown'
   3577 # Need to set the preceding variable on all platforms that support
   3578 # interlibrary dependencies.
   3579 # 'none' -- dependencies not supported.
   3580 # 'unknown' -- same as none, but documents that we really don't know.
   3581 # 'pass_all' -- all dependencies passed with no checks.
   3582 # 'file_magic [[regex]]' -- check by looking for files in library path
   3583 # that responds to the $file_magic_cmd with a given extended regex.
   3584 # If you have 'file' or equivalent on your system and you're not sure
   3585 # whether 'pass_all' will *always* work, you probably want this one.
   3586 
   3587 case $host_os in
   3588 aix[[4-9]]*)
   3589   lt_cv_deplibs_check_method=pass_all
   3590   ;;
   3591 
   3592 beos*)
   3593   lt_cv_deplibs_check_method=pass_all
   3594   ;;
   3595 
   3596 bsdi[[45]]*)
   3597   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
   3598   lt_cv_file_magic_cmd='$FILECMD -L'
   3599   lt_cv_file_magic_test_file=/shlib/libc.so
   3600   ;;
   3601 
   3602 cygwin*)
   3603   # func_win32_libid is a shell function defined in ltmain.sh
   3604   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   3605   lt_cv_file_magic_cmd='func_win32_libid'
   3606   ;;
   3607 
   3608 mingw* | windows* | pw32*)
   3609   # Base MSYS/MinGW do not provide the 'file' command needed by
   3610   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   3611   # unless we find 'file', for example because we are cross-compiling.
   3612   if ( file / ) >/dev/null 2>&1; then
   3613     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   3614     lt_cv_file_magic_cmd='func_win32_libid'
   3615   else
   3616     # Keep this pattern in sync with the one in func_win32_libid.
   3617     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
   3618     lt_cv_file_magic_cmd='$OBJDUMP -f'
   3619   fi
   3620   ;;
   3621 
   3622 cegcc*)
   3623   # use the weaker test based on 'objdump'. See mingw*.
   3624   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   3625   lt_cv_file_magic_cmd='$OBJDUMP -f'
   3626   ;;
   3627 
   3628 darwin* | rhapsody*)
   3629   lt_cv_deplibs_check_method=pass_all
   3630   ;;
   3631 
   3632 freebsd* | dragonfly* | midnightbsd*)
   3633   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   3634     case $host_cpu in
   3635     i*86 )
   3636       # Not sure whether the presence of OpenBSD here was a mistake.
   3637       # Let's accept both of them until this is cleared up.
   3638       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
   3639       lt_cv_file_magic_cmd=$FILECMD
   3640       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   3641       ;;
   3642     esac
   3643   else
   3644     lt_cv_deplibs_check_method=pass_all
   3645   fi
   3646   ;;
   3647 
   3648 haiku*)
   3649   lt_cv_deplibs_check_method=pass_all
   3650   ;;
   3651 
   3652 hpux10.20* | hpux11*)
   3653   lt_cv_file_magic_cmd=$FILECMD
   3654   case $host_cpu in
   3655   ia64*)
   3656     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
   3657     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   3658     ;;
   3659   hppa*64*)
   3660     [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]']
   3661     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   3662     ;;
   3663   *)
   3664     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
   3665     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   3666     ;;
   3667   esac
   3668   ;;
   3669 
   3670 interix[[3-9]]*)
   3671   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   3672   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
   3673   ;;
   3674 
   3675 irix5* | irix6* | nonstopux*)
   3676   case $LD in
   3677   *-32|*"-32 ") libmagic=32-bit;;
   3678   *-n32|*"-n32 ") libmagic=N32;;
   3679   *-64|*"-64 ") libmagic=64-bit;;
   3680   *) libmagic=never-match;;
   3681   esac
   3682   lt_cv_deplibs_check_method=pass_all
   3683   ;;
   3684 
   3685 # This must be glibc/ELF.
   3686 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   3687   lt_cv_deplibs_check_method=pass_all
   3688   ;;
   3689 
   3690 *-mlibc)
   3691   lt_cv_deplibs_check_method=pass_all
   3692   ;;
   3693 
   3694 netbsd* | netbsdelf*-gnu)
   3695   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   3696     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   3697   else
   3698     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
   3699   fi
   3700   ;;
   3701 
   3702 newos6*)
   3703   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
   3704   lt_cv_file_magic_cmd=$FILECMD
   3705   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   3706   ;;
   3707 
   3708 *nto* | *qnx*)
   3709   lt_cv_deplibs_check_method=pass_all
   3710   ;;
   3711 
   3712 openbsd*)
   3713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   3714     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   3715   else
   3716     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   3717   fi
   3718   ;;
   3719 
   3720 osf3* | osf4* | osf5*)
   3721   lt_cv_deplibs_check_method=pass_all
   3722   ;;
   3723 
   3724 rdos*)
   3725   lt_cv_deplibs_check_method=pass_all
   3726   ;;
   3727 
   3728 serenity*)
   3729   lt_cv_deplibs_check_method=pass_all
   3730   ;;
   3731 
   3732 solaris*)
   3733   lt_cv_deplibs_check_method=pass_all
   3734   ;;
   3735 
   3736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   3737   lt_cv_deplibs_check_method=pass_all
   3738   ;;
   3739 
   3740 sysv4 | sysv4.3*)
   3741   case $host_vendor in
   3742   motorola)
   3743     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]]'
   3744     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   3745     ;;
   3746   ncr)
   3747     lt_cv_deplibs_check_method=pass_all
   3748     ;;
   3749   sequent)
   3750     lt_cv_file_magic_cmd='/bin/file'
   3751     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
   3752     ;;
   3753   sni)
   3754     lt_cv_file_magic_cmd='/bin/file'
   3755     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
   3756     lt_cv_file_magic_test_file=/lib/libc.so
   3757     ;;
   3758   siemens)
   3759     lt_cv_deplibs_check_method=pass_all
   3760     ;;
   3761   pc)
   3762     lt_cv_deplibs_check_method=pass_all
   3763     ;;
   3764   esac
   3765   ;;
   3766 
   3767 tpf*)
   3768   lt_cv_deplibs_check_method=pass_all
   3769   ;;
   3770 os2*)
   3771   lt_cv_deplibs_check_method=pass_all
   3772   ;;
   3773 esac
   3774 ])
   3775 
   3776 file_magic_glob=
   3777 want_nocaseglob=no
   3778 if test "$build" = "$host"; then
   3779   case $host_os in
   3780   mingw* | windows* | pw32*)
   3781     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   3782       want_nocaseglob=yes
   3783     else
   3784       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
   3785     fi
   3786     ;;
   3787   esac
   3788 fi
   3789 
   3790 file_magic_cmd=$lt_cv_file_magic_cmd
   3791 deplibs_check_method=$lt_cv_deplibs_check_method
   3792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   3793 
   3794 _LT_DECL([], [deplibs_check_method], [1],
   3795     [Method to check whether dependent libraries are shared objects])
   3796 _LT_DECL([], [file_magic_cmd], [1],
   3797     [Command to use when deplibs_check_method = "file_magic"])
   3798 _LT_DECL([], [file_magic_glob], [1],
   3799     [How to find potential files when deplibs_check_method = "file_magic"])
   3800 _LT_DECL([], [want_nocaseglob], [1],
   3801     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
   3802 ])# _LT_CHECK_MAGIC_METHOD
   3803 
   3804 
   3805 # LT_PATH_NM
   3806 # ----------
   3807 # find the pathname to a BSD- or MS-compatible name lister
   3808 AC_DEFUN([LT_PATH_NM],
   3809 [AC_REQUIRE([AC_PROG_CC])dnl
   3810 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
   3811 [if test -n "$NM"; then
   3812   # Let the user override the test.
   3813   lt_cv_path_NM=$NM
   3814 else
   3815   lt_nm_to_check=${ac_tool_prefix}nm
   3816   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   3817     lt_nm_to_check="$lt_nm_to_check nm"
   3818   fi
   3819   for lt_tmp_nm in $lt_nm_to_check; do
   3820     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   3821     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   3822       IFS=$lt_save_ifs
   3823       test -z "$ac_dir" && ac_dir=.
   3824       tmp_nm=$ac_dir/$lt_tmp_nm
   3825       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   3826 	# Check to see if the nm accepts a BSD-compat flag.
   3827 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   3828 	#   nm: unknown option "B" ignored
   3829 	# Tru64's nm complains that /dev/null is an invalid object file
   3830 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   3831 	case $build_os in
   3832 	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
   3833 	*) lt_bad_file=/dev/null ;;
   3834 	esac
   3835 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
   3836 	*$lt_bad_file* | *'Invalid file or object type'*)
   3837 	  lt_cv_path_NM="$tmp_nm -B"
   3838 	  break 2
   3839 	  ;;
   3840 	*)
   3841 	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
   3842 	  */dev/null*)
   3843 	    lt_cv_path_NM="$tmp_nm -p"
   3844 	    break 2
   3845 	    ;;
   3846 	  *)
   3847 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   3848 	    continue # so that we can try to find one that supports BSD flags
   3849 	    ;;
   3850 	  esac
   3851 	  ;;
   3852 	esac
   3853       fi
   3854     done
   3855     IFS=$lt_save_ifs
   3856   done
   3857   : ${lt_cv_path_NM=no}
   3858 fi])
   3859 if test no != "$lt_cv_path_NM"; then
   3860   NM=$lt_cv_path_NM
   3861 else
   3862   # Didn't find any BSD compatible name lister, look for dumpbin.
   3863   if test -n "$DUMPBIN"; then :
   3864     # Let the user override the test.
   3865   else
   3866     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
   3867     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
   3868     *COFF*)
   3869       DUMPBIN="$DUMPBIN -symbols -headers"
   3870       ;;
   3871     *)
   3872       DUMPBIN=:
   3873       ;;
   3874     esac
   3875   fi
   3876   AC_SUBST([DUMPBIN])
   3877   if test : != "$DUMPBIN"; then
   3878     NM=$DUMPBIN
   3879   fi
   3880 fi
   3881 test -z "$NM" && NM=nm
   3882 AC_SUBST([NM])
   3883 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
   3884 
   3885 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
   3886   [lt_cv_nm_interface="BSD nm"
   3887   echo "int some_variable = 0;" > conftest.$ac_ext
   3888   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
   3889   (eval "$ac_compile" 2>conftest.err)
   3890   cat conftest.err >&AS_MESSAGE_LOG_FD
   3891   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
   3892   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   3893   cat conftest.err >&AS_MESSAGE_LOG_FD
   3894   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
   3895   cat conftest.out >&AS_MESSAGE_LOG_FD
   3896   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   3897     lt_cv_nm_interface="MS dumpbin"
   3898   fi
   3899   rm -f conftest*])
   3900 ])# LT_PATH_NM
   3901 
   3902 # Old names:
   3903 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
   3904 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
   3905 dnl aclocal-1.4 backwards compatibility:
   3906 dnl AC_DEFUN([AM_PROG_NM], [])
   3907 dnl AC_DEFUN([AC_PROG_NM], [])
   3908 
   3909 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
   3910 # --------------------------------
   3911 # how to determine the name of the shared library
   3912 # associated with a specific link library.
   3913 #  -- PORTME fill in with the dynamic library characteristics
   3914 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
   3915 [m4_require([_LT_DECL_EGREP])
   3916 m4_require([_LT_DECL_OBJDUMP])
   3917 m4_require([_LT_DECL_DLLTOOL])
   3918 AC_CACHE_CHECK([how to associate runtime and link libraries],
   3919 lt_cv_sharedlib_from_linklib_cmd,
   3920 [lt_cv_sharedlib_from_linklib_cmd='unknown'
   3921 
   3922 case $host_os in
   3923 cygwin* | mingw* | windows* | pw32* | cegcc*)
   3924   # two different shell functions defined in ltmain.sh;
   3925   # decide which one to use based on capabilities of $DLLTOOL
   3926   case `$DLLTOOL --help 2>&1` in
   3927   *--identify-strict*)
   3928     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   3929     ;;
   3930   *)
   3931     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   3932     ;;
   3933   esac
   3934   ;;
   3935 *)
   3936   # fallback: assume linklib IS sharedlib
   3937   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   3938   ;;
   3939 esac
   3940 ])
   3941 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   3942 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   3943 
   3944 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
   3945     [Command to associate shared and link libraries])
   3946 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
   3947 
   3948 
   3949 # _LT_PATH_MANIFEST_TOOL
   3950 # ----------------------
   3951 # locate the manifest tool
   3952 m4_defun([_LT_PATH_MANIFEST_TOOL],
   3953 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
   3954 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   3955 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_manifest_tool],
   3956   [lt_cv_path_manifest_tool=no
   3957   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
   3958   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   3959   cat conftest.err >&AS_MESSAGE_LOG_FD
   3960   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   3961     lt_cv_path_manifest_tool=yes
   3962   fi
   3963   rm -f conftest*])
   3964 if test yes != "$lt_cv_path_manifest_tool"; then
   3965   MANIFEST_TOOL=:
   3966 fi
   3967 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
   3968 ])# _LT_PATH_MANIFEST_TOOL
   3969 
   3970 
   3971 # _LT_DLL_DEF_P([FILE])
   3972 # ---------------------
   3973 # True iff FILE is a Windows DLL '.def' file.
   3974 # Keep in sync with func_dll_def_p in the libtool script
   3975 AC_DEFUN([_LT_DLL_DEF_P],
   3976 [dnl
   3977   test DEF = "`$SED -n dnl
   3978     -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
   3979     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
   3980     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
   3981     -e q dnl                          Only consider the first "real" line
   3982     $1`" dnl
   3983 ])# _LT_DLL_DEF_P
   3984 
   3985 
   3986 # LT_LIB_M
   3987 # --------
   3988 # check for math library
   3989 AC_DEFUN([LT_LIB_M],
   3990 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   3991 LIBM=
   3992 case $host in
   3993 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-mingw* | *-*-pw32* | *-*-darwin*)
   3994   # These system don't have libm, or don't need it
   3995   ;;
   3996 *-ncr-sysv4.3*)
   3997   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
   3998   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
   3999   ;;
   4000 *)
   4001   AC_CHECK_LIB(m, cos, LIBM=-lm)
   4002   ;;
   4003 esac
   4004 AC_SUBST([LIBM])
   4005 ])# LT_LIB_M
   4006 
   4007 # Old name:
   4008 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
   4009 dnl aclocal-1.4 backwards compatibility:
   4010 dnl AC_DEFUN([AC_CHECK_LIBM], [])
   4011 
   4012 
   4013 # _LT_COMPILER_NO_RTTI([TAGNAME])
   4014 # -------------------------------
   4015 m4_defun([_LT_COMPILER_NO_RTTI],
   4016 [m4_require([_LT_TAG_COMPILER])dnl
   4017 
   4018 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
   4019 
   4020 if test yes = "$GCC"; then
   4021   case $cc_basename in
   4022   nvcc*)
   4023     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
   4024   *)
   4025     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
   4026   esac
   4027 
   4028   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
   4029     lt_cv_prog_compiler_rtti_exceptions,
   4030     [-fno-rtti -fno-exceptions], [],
   4031     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
   4032 fi
   4033 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
   4034 	[Compiler flag to turn off builtin functions])
   4035 ])# _LT_COMPILER_NO_RTTI
   4036 
   4037 
   4038 # _LT_CMD_GLOBAL_SYMBOLS
   4039 # ----------------------
   4040 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
   4041 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   4042 AC_REQUIRE([AC_PROG_CC])dnl
   4043 AC_REQUIRE([AC_PROG_AWK])dnl
   4044 AC_REQUIRE([LT_PATH_NM])dnl
   4045 AC_REQUIRE([LT_PATH_LD])dnl
   4046 m4_require([_LT_DECL_SED])dnl
   4047 m4_require([_LT_DECL_EGREP])dnl
   4048 m4_require([_LT_TAG_COMPILER])dnl
   4049 
   4050 # Check for command to grab the raw symbol name followed by C symbol from nm.
   4051 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
   4052 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
   4053 [
   4054 # These are sane defaults that work on at least a few old systems.
   4055 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   4056 
   4057 # Character class describing NM global symbol codes.
   4058 symcode='[[BCDEGRST]]'
   4059 
   4060 # Regexp to match symbols that can be accessed directly from C.
   4061 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
   4062 
   4063 # Define system-specific variables.
   4064 case $host_os in
   4065 aix*)
   4066   symcode='[[BCDT]]'
   4067   ;;
   4068 cygwin* | mingw* | windows* | pw32* | cegcc*)
   4069   symcode='[[ABCDGISTW]]'
   4070   ;;
   4071 hpux*)
   4072   if test ia64 = "$host_cpu"; then
   4073     symcode='[[ABCDEGRST]]'
   4074   fi
   4075   ;;
   4076 irix* | nonstopux*)
   4077   symcode='[[BCDEGRST]]'
   4078   ;;
   4079 osf*)
   4080   symcode='[[BCDEGQRST]]'
   4081   ;;
   4082 solaris*)
   4083   symcode='[[BCDRT]]'
   4084   ;;
   4085 sco3.2v5*)
   4086   symcode='[[DT]]'
   4087   ;;
   4088 sysv4.2uw2*)
   4089   symcode='[[DT]]'
   4090   ;;
   4091 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   4092   symcode='[[ABDT]]'
   4093   ;;
   4094 sysv4)
   4095   symcode='[[DFNSTU]]'
   4096   ;;
   4097 esac
   4098 
   4099 # If we're using GNU nm, then use its standard symbol codes.
   4100 case `$NM -V 2>&1` in
   4101 *GNU* | *'with BFD'*)
   4102   symcode='[[ABCDGIRSTW]]' ;;
   4103 esac
   4104 
   4105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   4106   # Gets list of data symbols to import.
   4107   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
   4108   # Adjust the below global symbol transforms to fixup imported variables.
   4109   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   4110   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   4111   lt_c_name_lib_hook="\
   4112   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   4113   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   4114 else
   4115   # Disable hooks by default.
   4116   lt_cv_sys_global_symbol_to_import=
   4117   lt_cdecl_hook=
   4118   lt_c_name_hook=
   4119   lt_c_name_lib_hook=
   4120 fi
   4121 
   4122 # Transform an extracted symbol line into a proper C declaration.
   4123 # Some systems (esp. on ia64) link data and code symbols differently,
   4124 # so use this general approach.
   4125 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
   4126 $lt_cdecl_hook\
   4127 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   4128 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   4129 
   4130 # Transform an extracted symbol line into symbol name and symbol address
   4131 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
   4132 $lt_c_name_hook\
   4133 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   4134 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   4135 
   4136 # Transform an extracted symbol line into symbol name with lib prefix and
   4137 # symbol address.
   4138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
   4139 $lt_c_name_lib_hook\
   4140 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   4141 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   4142 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   4143 
   4144 # Handle CRLF in mingw tool chain
   4145 opt_cr=
   4146 case $build_os in
   4147 mingw* | windows*)
   4148   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   4149   ;;
   4150 esac
   4151 
   4152 # Try without a prefix underscore, then with it.
   4153 for ac_symprfx in "" "_"; do
   4154 
   4155   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   4156   symxfrm="\\1 $ac_symprfx\\2 \\2"
   4157 
   4158   # Write the raw and C identifiers.
   4159   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   4160     # Fake it for dumpbin and say T for any non-static function,
   4161     # D for any global variable and I for any imported variable.
   4162     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
   4163     # which start with @ or ?.
   4164     lt_cv_sys_global_symbol_pipe="$AWK ['"\
   4165 "     {last_section=section; section=\$ 3};"\
   4166 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   4167 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   4168 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   4169 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   4170 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   4171 "     \$ 0!~/External *\|/{next};"\
   4172 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   4173 "     {if(hide[section]) next};"\
   4174 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   4175 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   4176 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   4177 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   4178 "     ' prfx=^$ac_symprfx]"
   4179   else
   4180     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   4181   fi
   4182   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
   4183 
   4184   # Check to see that the pipe works correctly.
   4185   pipe_works=no
   4186 
   4187   rm -f conftest*
   4188   cat > conftest.$ac_ext <<_LT_EOF
   4189 #ifdef __cplusplus
   4190 extern "C" {
   4191 #endif
   4192 char nm_test_var;
   4193 void nm_test_func(void);
   4194 void nm_test_func(void){}
   4195 #ifdef __cplusplus
   4196 }
   4197 #endif
   4198 int main(void){nm_test_var='a';nm_test_func();return(0);}
   4199 _LT_EOF
   4200 
   4201   if AC_TRY_EVAL(ac_compile); then
   4202     # Now try to grab the symbols.
   4203     nlist=conftest.nm
   4204     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
   4205     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
   4206       # Try sorting and uniquifying the output.
   4207       if sort "$nlist" | uniq > "$nlist"T; then
   4208 	mv -f "$nlist"T "$nlist"
   4209       else
   4210 	rm -f "$nlist"T
   4211       fi
   4212 
   4213       # Make sure that we snagged all the symbols we need.
   4214       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   4215 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   4216 	  cat <<_LT_EOF > conftest.$ac_ext
   4217 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   4218 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   4219 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   4220    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   4221 # define LT@&t@_DLSYM_CONST
   4222 #elif defined __osf__
   4223 /* This system does not cope well with relocations in const data.  */
   4224 # define LT@&t@_DLSYM_CONST
   4225 #else
   4226 # define LT@&t@_DLSYM_CONST const
   4227 #endif
   4228 
   4229 #ifdef __cplusplus
   4230 extern "C" {
   4231 #endif
   4232 
   4233 _LT_EOF
   4234 	  # Now generate the symbol file.
   4235 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   4236 
   4237 	  cat <<_LT_EOF >> conftest.$ac_ext
   4238 
   4239 /* The mapping between symbol names and symbols.  */
   4240 LT@&t@_DLSYM_CONST struct {
   4241   const char *name;
   4242   void       *address;
   4243 }
   4244 lt__PROGRAM__LTX_preloaded_symbols[[]] =
   4245 {
   4246   { "@PROGRAM@", (void *) 0 },
   4247 _LT_EOF
   4248 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   4249 	  cat <<\_LT_EOF >> conftest.$ac_ext
   4250   {0, (void *) 0}
   4251 };
   4252 
   4253 /* This works around a problem in FreeBSD linker */
   4254 #ifdef FREEBSD_WORKAROUND
   4255 static const void *lt_preloaded_setup() {
   4256   return lt__PROGRAM__LTX_preloaded_symbols;
   4257 }
   4258 #endif
   4259 
   4260 #ifdef __cplusplus
   4261 }
   4262 #endif
   4263 _LT_EOF
   4264 	  # Now try linking the two files.
   4265 	  mv conftest.$ac_objext conftstm.$ac_objext
   4266 	  lt_globsym_save_LIBS=$LIBS
   4267 	  lt_globsym_save_CFLAGS=$CFLAGS
   4268 	  LIBS=conftstm.$ac_objext
   4269 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
   4270 	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   4271 	    pipe_works=yes
   4272 	  fi
   4273 	  LIBS=$lt_globsym_save_LIBS
   4274 	  CFLAGS=$lt_globsym_save_CFLAGS
   4275 	else
   4276 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
   4277 	fi
   4278       else
   4279 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
   4280       fi
   4281     else
   4282       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
   4283     fi
   4284   else
   4285     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
   4286     cat conftest.$ac_ext >&5
   4287   fi
   4288   rm -rf conftest* conftst*
   4289 
   4290   # Do not use the global_symbol_pipe unless it works.
   4291   if test yes = "$pipe_works"; then
   4292     break
   4293   else
   4294     lt_cv_sys_global_symbol_pipe=
   4295   fi
   4296 done
   4297 ])
   4298 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   4299   lt_cv_sys_global_symbol_to_cdecl=
   4300 fi
   4301 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   4302   AC_MSG_RESULT(failed)
   4303 else
   4304   AC_MSG_RESULT(ok)
   4305 fi
   4306 
   4307 # Response file support.
   4308 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   4309   nm_file_list_spec='@'
   4310 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
   4311   nm_file_list_spec='@'
   4312 fi
   4313 
   4314 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
   4315     [Take the output of nm and produce a listing of raw symbols and C names])
   4316 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
   4317     [Transform the output of nm in a proper C declaration])
   4318 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
   4319     [Transform the output of nm into a list of symbols to manually relocate])
   4320 _LT_DECL([global_symbol_to_c_name_address],
   4321     [lt_cv_sys_global_symbol_to_c_name_address], [1],
   4322     [Transform the output of nm in a C name address pair])
   4323 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
   4324     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
   4325     [Transform the output of nm in a C name address pair when lib prefix is needed])
   4326 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
   4327     [The name lister interface])
   4328 _LT_DECL([], [nm_file_list_spec], [1],
   4329     [Specify filename containing input files for $NM])
   4330 ]) # _LT_CMD_GLOBAL_SYMBOLS
   4331 
   4332 
   4333 # _LT_COMPILER_PIC([TAGNAME])
   4334 # ---------------------------
   4335 m4_defun([_LT_COMPILER_PIC],
   4336 [m4_require([_LT_TAG_COMPILER])dnl
   4337 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
   4338 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
   4339 _LT_TAGVAR(lt_prog_compiler_static, $1)=
   4340 
   4341 m4_if([$1], [CXX], [
   4342   # C++ specific cases for pic, static, wl, etc.
   4343   if test yes = "$GXX"; then
   4344     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4345     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4346 
   4347     case $host_os in
   4348     aix*)
   4349       # All AIX code is PIC.
   4350       if test ia64 = "$host_cpu"; then
   4351 	# AIX 5 now supports IA64 processor
   4352 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4353       fi
   4354       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4355       ;;
   4356 
   4357     amigaos*)
   4358       case $host_cpu in
   4359       powerpc)
   4360             # see comment about AmigaOS4 .so support
   4361             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4362         ;;
   4363       m68k)
   4364             # FIXME: we need at least 68020 code to build shared libraries, but
   4365             # adding the '-m68020' flag to GCC prevents building anything better,
   4366             # like '-m68040'.
   4367             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
   4368         ;;
   4369       esac
   4370       ;;
   4371 
   4372     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   4373       # PIC is the default for these OSes.
   4374       ;;
   4375     mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
   4376       # This hack is so that the source file can tell whether it is being
   4377       # built for inclusion in a dll (and should export symbols for example).
   4378       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   4379       # (--disable-auto-import) libraries
   4380       m4_if([$1], [GCJ], [],
   4381 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
   4382       case $host_os in
   4383       os2*)
   4384 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
   4385 	;;
   4386       esac
   4387       ;;
   4388     darwin* | rhapsody*)
   4389       # PIC is the default on this platform
   4390       # Common symbols not allowed in MH_DYLIB files
   4391       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
   4392       ;;
   4393     *djgpp*)
   4394       # DJGPP does not support shared libraries at all
   4395       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
   4396       ;;
   4397     haiku*)
   4398       # PIC is the default for Haiku.
   4399       # The "-static" flag exists, but is broken.
   4400       _LT_TAGVAR(lt_prog_compiler_static, $1)=
   4401       ;;
   4402     interix[[3-9]]*)
   4403       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   4404       # Instead, we relocate shared libraries at runtime.
   4405       ;;
   4406     sysv4*MP*)
   4407       if test -d /usr/nec; then
   4408 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
   4409       fi
   4410       ;;
   4411     hpux*)
   4412       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   4413       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   4414       # sets the default TLS model and affects inlining.
   4415       case $host_cpu in
   4416       hppa*64*)
   4417 	;;
   4418       *)
   4419 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4420 	;;
   4421       esac
   4422       ;;
   4423     *qnx* | *nto*)
   4424       # QNX uses GNU C++, but need to define -shared option too, otherwise
   4425       # it will coredump.
   4426       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   4427       ;;
   4428     *)
   4429       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4430       ;;
   4431     esac
   4432   else
   4433     case $host_os in
   4434       aix[[4-9]]*)
   4435 	# All AIX code is PIC.
   4436 	if test ia64 = "$host_cpu"; then
   4437 	  # AIX 5 now supports IA64 processor
   4438 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4439 	else
   4440 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
   4441 	fi
   4442 	;;
   4443       chorus*)
   4444 	case $cc_basename in
   4445 	cxch68*)
   4446 	  # Green Hills C++ Compiler
   4447 	  # _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"
   4448 	  ;;
   4449 	esac
   4450 	;;
   4451       mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
   4452 	# This hack is so that the source file can tell whether it is being
   4453 	# built for inclusion in a dll (and should export symbols for example).
   4454 	m4_if([$1], [GCJ], [],
   4455 	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
   4456 	;;
   4457       dgux*)
   4458 	case $cc_basename in
   4459 	  ec++*)
   4460 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4461 	    ;;
   4462 	  ghcx*)
   4463 	    # Green Hills C++ Compiler
   4464 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
   4465 	    ;;
   4466 	  *)
   4467 	    ;;
   4468 	esac
   4469 	;;
   4470       freebsd* | dragonfly* | midnightbsd*)
   4471 	# FreeBSD uses GNU C++
   4472 	;;
   4473       hpux9* | hpux10* | hpux11*)
   4474 	case $cc_basename in
   4475 	  CC*)
   4476 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4477 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
   4478 	    if test ia64 != "$host_cpu"; then
   4479 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
   4480 	    fi
   4481 	    ;;
   4482 	  aCC*)
   4483 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4484 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
   4485 	    case $host_cpu in
   4486 	    hppa*64*|ia64*)
   4487 	      # +Z the default
   4488 	      ;;
   4489 	    *)
   4490 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
   4491 	      ;;
   4492 	    esac
   4493 	    ;;
   4494 	  *)
   4495 	    ;;
   4496 	esac
   4497 	;;
   4498       interix*)
   4499 	# This is c89, which is MS Visual C++ (no shared libs)
   4500 	# Anyone wants to do a port?
   4501 	;;
   4502       irix5* | irix6* | nonstopux*)
   4503 	case $cc_basename in
   4504 	  CC*)
   4505 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4506 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4507 	    # CC pic flag -KPIC is the default.
   4508 	    ;;
   4509 	  *)
   4510 	    ;;
   4511 	esac
   4512 	;;
   4513       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   4514 	case $cc_basename in
   4515 	  KCC*)
   4516 	    # KAI C++ Compiler
   4517 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
   4518 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4519 	    ;;
   4520 	  ecpc* )
   4521 	    # old Intel C++ for x86_64, which still supported -KPIC.
   4522 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4523 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4524 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4525 	    ;;
   4526 	  icpc* )
   4527 	    # Intel C++, used to be incompatible with GCC.
   4528 	    # ICC 10 doesn't accept -KPIC any more.
   4529 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4530 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4531 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4532 	    ;;
   4533 	  pgCC* | pgcpp*)
   4534 	    # Portland Group C++ compiler
   4535 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4536 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
   4537 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4538 	    ;;
   4539 	  cxx*)
   4540 	    # Compaq C++
   4541 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   4542 	    # Linux and Compaq Tru64 Unix objects are PIC.
   4543 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
   4544 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4545 	    ;;
   4546 	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
   4547 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
   4548 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4549 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
   4550 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
   4551 	    ;;
   4552 	  *)
   4553 	    case `$CC -V 2>&1 | $SED 5q` in
   4554 	    *Sun\ C*)
   4555 	      # Sun C++ 5.9
   4556 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4557 	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4558 	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
   4559 	      ;;
   4560 	    esac
   4561 	    ;;
   4562 	esac
   4563 	;;
   4564       lynxos*)
   4565 	;;
   4566       m88k*)
   4567 	;;
   4568       mvs*)
   4569 	case $cc_basename in
   4570 	  cxx*)
   4571 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
   4572 	    ;;
   4573 	  *)
   4574 	    ;;
   4575 	esac
   4576 	;;
   4577       netbsd* | netbsdelf*-gnu)
   4578 	;;
   4579       *-mlibc)
   4580 	;;
   4581       *qnx* | *nto*)
   4582         # QNX uses GNU C++, but need to define -shared option too, otherwise
   4583         # it will coredump.
   4584         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   4585         ;;
   4586       osf3* | osf4* | osf5*)
   4587 	case $cc_basename in
   4588 	  KCC*)
   4589 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
   4590 	    ;;
   4591 	  RCC*)
   4592 	    # Rational C++ 2.4.1
   4593 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
   4594 	    ;;
   4595 	  cxx*)
   4596 	    # Digital/Compaq C++
   4597 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4598 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   4599 	    # Linux and Compaq Tru64 Unix objects are PIC.
   4600 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
   4601 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4602 	    ;;
   4603 	  *)
   4604 	    ;;
   4605 	esac
   4606 	;;
   4607       psos*)
   4608 	;;
   4609       serenity*)
   4610         ;;
   4611       solaris*)
   4612 	case $cc_basename in
   4613 	  CC* | sunCC*)
   4614 	    # Sun C++ 4.2, 5.x and Centerline C++
   4615 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4616 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4617 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
   4618 	    ;;
   4619 	  gcx*)
   4620 	    # Green Hills C++ Compiler
   4621 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
   4622 	    ;;
   4623 	  *)
   4624 	    ;;
   4625 	esac
   4626 	;;
   4627       sunos4*)
   4628 	case $cc_basename in
   4629 	  CC*)
   4630 	    # Sun C++ 4.x
   4631 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
   4632 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4633 	    ;;
   4634 	  lcc*)
   4635 	    # Lucid
   4636 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
   4637 	    ;;
   4638 	  *)
   4639 	    ;;
   4640 	esac
   4641 	;;
   4642       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   4643 	case $cc_basename in
   4644 	  CC*)
   4645 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4646 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4647 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4648 	    ;;
   4649 	esac
   4650 	;;
   4651       tandem*)
   4652 	case $cc_basename in
   4653 	  NCC*)
   4654 	    # NonStop-UX NCC 3.20
   4655 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4656 	    ;;
   4657 	  *)
   4658 	    ;;
   4659 	esac
   4660 	;;
   4661       vxworks*)
   4662 	;;
   4663       *)
   4664 	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
   4665 	;;
   4666     esac
   4667   fi
   4668 ],
   4669 [
   4670   if test yes = "$GCC"; then
   4671     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4672     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4673 
   4674     case $host_os in
   4675       aix*)
   4676       # All AIX code is PIC.
   4677       if test ia64 = "$host_cpu"; then
   4678 	# AIX 5 now supports IA64 processor
   4679 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4680       fi
   4681       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4682       ;;
   4683 
   4684     amigaos*)
   4685       case $host_cpu in
   4686       powerpc)
   4687             # see comment about AmigaOS4 .so support
   4688             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4689         ;;
   4690       m68k)
   4691             # FIXME: we need at least 68020 code to build shared libraries, but
   4692             # adding the '-m68020' flag to GCC prevents building anything better,
   4693             # like '-m68040'.
   4694             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
   4695         ;;
   4696       esac
   4697       ;;
   4698 
   4699     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   4700       # PIC is the default for these OSes.
   4701       ;;
   4702 
   4703     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   4704       # This hack is so that the source file can tell whether it is being
   4705       # built for inclusion in a dll (and should export symbols for example).
   4706       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   4707       # (--disable-auto-import) libraries
   4708       m4_if([$1], [GCJ], [],
   4709 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
   4710       case $host_os in
   4711       os2*)
   4712 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
   4713 	;;
   4714       esac
   4715       ;;
   4716 
   4717     darwin* | rhapsody*)
   4718       # PIC is the default on this platform
   4719       # Common symbols not allowed in MH_DYLIB files
   4720       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
   4721       ;;
   4722 
   4723     haiku*)
   4724       # PIC is the default for Haiku.
   4725       # The "-static" flag exists, but is broken.
   4726       _LT_TAGVAR(lt_prog_compiler_static, $1)=
   4727       ;;
   4728 
   4729     hpux*)
   4730       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   4731       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   4732       # sets the default TLS model and affects inlining.
   4733       case $host_cpu in
   4734       hppa*64*)
   4735 	# +Z the default
   4736 	;;
   4737       *)
   4738 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4739 	;;
   4740       esac
   4741       ;;
   4742 
   4743     interix[[3-9]]*)
   4744       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   4745       # Instead, we relocate shared libraries at runtime.
   4746       ;;
   4747 
   4748     msdosdjgpp*)
   4749       # Just because we use GCC doesn't mean we suddenly get shared libraries
   4750       # on systems that don't support them.
   4751       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
   4752       enable_shared=no
   4753       ;;
   4754 
   4755     *nto* | *qnx*)
   4756       # QNX uses GNU C++, but need to define -shared option too, otherwise
   4757       # it will coredump.
   4758       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   4759       ;;
   4760 
   4761     sysv4*MP*)
   4762       if test -d /usr/nec; then
   4763 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
   4764       fi
   4765       ;;
   4766 
   4767     *)
   4768       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4769       ;;
   4770     esac
   4771 
   4772     case $cc_basename in
   4773     nvcc*) # Cuda Compiler Driver 2.2
   4774       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
   4775       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
   4776         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
   4777       fi
   4778       ;;
   4779     esac
   4780   else
   4781     # PORTME Check for flag to pass linker flags through the system compiler.
   4782     case $host_os in
   4783     aix*)
   4784       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4785       if test ia64 = "$host_cpu"; then
   4786 	# AIX 5 now supports IA64 processor
   4787 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4788       else
   4789 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
   4790       fi
   4791       ;;
   4792 
   4793     darwin* | rhapsody*)
   4794       # PIC is the default on this platform
   4795       # Common symbols not allowed in MH_DYLIB files
   4796       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
   4797       case $cc_basename in
   4798       nagfor*)
   4799         # NAG Fortran compiler
   4800         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
   4801         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
   4802         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4803         ;;
   4804       esac
   4805       ;;
   4806 
   4807     mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
   4808       # This hack is so that the source file can tell whether it is being
   4809       # built for inclusion in a dll (and should export symbols for example).
   4810       m4_if([$1], [GCJ], [],
   4811 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
   4812       case $host_os in
   4813       os2*)
   4814 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
   4815 	;;
   4816       esac
   4817       ;;
   4818 
   4819     hpux9* | hpux10* | hpux11*)
   4820       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   4822       # not for PA HP-UX.
   4823       case $host_cpu in
   4824       hppa*64*|ia64*)
   4825 	# +Z the default
   4826 	;;
   4827       *)
   4828 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
   4829 	;;
   4830       esac
   4831       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   4832       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
   4833       ;;
   4834 
   4835     irix5* | irix6* | nonstopux*)
   4836       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4837       # PIC (with -KPIC) is the default.
   4838       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4839       ;;
   4840 
   4841     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   4842       case $cc_basename in
   4843       # old Intel for x86_64, which still supported -KPIC.
   4844       ecc*)
   4845 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4846 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4847 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4848         ;;
   4849       *flang* | ftn | f18* | f95*)
   4850         # Flang compiler.
   4851 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4852 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4853 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4854         ;;
   4855       # icc used to be incompatible with GCC.
   4856       # ICC 10 doesn't accept -KPIC any more.
   4857       icc* | ifort*)
   4858 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4859 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4860 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4861         ;;
   4862       # Lahey Fortran 8.1.
   4863       lf95*)
   4864 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4865 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
   4866 	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
   4867 	;;
   4868       nagfor*)
   4869 	# NAG Fortran compiler
   4870 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
   4871 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
   4872 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4873 	;;
   4874       tcc*)
   4875 	# Fabrice Bellard et al's Tiny C Compiler
   4876 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4877 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4878 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4879 	;;
   4880       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   4881         # Portland Group compilers (*not* the Pentium gcc compiler,
   4882 	# which looks to be a dead project)
   4883 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4884 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
   4885 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4886         ;;
   4887       ccc*)
   4888         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4889         # All Alpha code is PIC.
   4890         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4891         ;;
   4892       xl* | bgxl* | bgf* | mpixl*)
   4893 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   4894 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4895 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
   4896 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
   4897 	;;
   4898       *)
   4899 	case `$CC -V 2>&1 | $SED 5q` in
   4900 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
   4901 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   4902 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4903 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4904 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
   4905 	  ;;
   4906 	*Sun\ F* | *Sun*Fortran*)
   4907 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4908 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4909 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
   4910 	  ;;
   4911 	*Sun\ C*)
   4912 	  # Sun C 5.9
   4913 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4914 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4915 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4916 	  ;;
   4917         *Intel*\ [[CF]]*Compiler*)
   4918 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4919 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4920 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4921 	  ;;
   4922 	*Portland\ Group*)
   4923 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4924 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
   4925 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4926 	  ;;
   4927 	esac
   4928 	;;
   4929       esac
   4930       ;;
   4931 
   4932     newsos6)
   4933       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4934       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4935       ;;
   4936 
   4937     *-mlibc)
   4938       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4939       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   4940       _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
   4941       ;;
   4942 
   4943     *nto* | *qnx*)
   4944       # QNX uses GNU C++, but need to define -shared option too, otherwise
   4945       # it will coredump.
   4946       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   4947       ;;
   4948 
   4949     osf3* | osf4* | osf5*)
   4950       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4951       # All OSF/1 code is PIC.
   4952       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4953       ;;
   4954 
   4955     rdos*)
   4956       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
   4957       ;;
   4958 
   4959     serenity*)
   4960       ;;
   4961 
   4962     solaris*)
   4963       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4964       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4965       case $cc_basename in
   4966       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   4967 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
   4968       *)
   4969 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
   4970       esac
   4971       ;;
   4972 
   4973     sunos4*)
   4974       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
   4975       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
   4976       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4977       ;;
   4978 
   4979     sysv4 | sysv4.2uw2* | sysv4.3*)
   4980       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4981       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4982       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4983       ;;
   4984 
   4985     sysv4*MP*)
   4986       if test -d /usr/nec; then
   4987 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
   4988 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4989       fi
   4990       ;;
   4991 
   4992     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   4993       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   4994       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
   4995       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   4996       ;;
   4997 
   4998     unicos*)
   4999       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   5000       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
   5001       ;;
   5002 
   5003     uts4*)
   5004       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
   5005       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
   5006       ;;
   5007 
   5008     *)
   5009       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
   5010       ;;
   5011     esac
   5012   fi
   5013 ])
   5014 case $host_os in
   5015   # For platforms that do not support PIC, -DPIC is meaningless:
   5016   *djgpp*)
   5017     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
   5018     ;;
   5019   *)
   5020     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
   5021     ;;
   5022 esac
   5023 
   5024 AC_CACHE_CHECK([for $compiler option to produce PIC],
   5025   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
   5026   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
   5027 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
   5028 
   5029 #
   5030 # Check to make sure the PIC flag actually works.
   5031 #
   5032 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
   5033   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
   5034     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
   5035     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
   5036     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
   5037      "" | " "*) ;;
   5038      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
   5039      esac],
   5040     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
   5041      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
   5042 fi
   5043 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
   5044 	[Additional compiler flags for building library objects])
   5045 
   5046 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
   5047 	[How to pass a linker flag through the compiler])
   5048 #
   5049 # Check to make sure the static flag actually works.
   5050 #
   5051 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
   5052 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
   5053   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
   5054   $lt_tmp_static_flag,
   5055   [],
   5056   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
   5057 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
   5058 	[Compiler flag to prevent dynamic linking])
   5059 ])# _LT_COMPILER_PIC
   5060 
   5061 
   5062 # _LT_LINKER_SHLIBS([TAGNAME])
   5063 # ----------------------------
   5064 # See if the linker supports building shared libraries.
   5065 m4_defun([_LT_LINKER_SHLIBS],
   5066 [AC_REQUIRE([LT_PATH_LD])dnl
   5067 AC_REQUIRE([LT_PATH_NM])dnl
   5068 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
   5069 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   5070 m4_require([_LT_DECL_EGREP])dnl
   5071 m4_require([_LT_DECL_SED])dnl
   5072 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   5073 m4_require([_LT_TAG_COMPILER])dnl
   5074 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
   5075 m4_if([$1], [CXX], [
   5076   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   5077   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
   5078   case $host_os in
   5079   aix[[4-9]]*)
   5080     # If we're using GNU nm, then we don't want the "-C" option.
   5081     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
   5082     # Without the "-l" option, or with the "-B" option, AIX nm treats
   5083     # weak defined symbols like other global defined symbols, whereas
   5084     # GNU nm marks them as "W".
   5085     # While the 'weak' keyword is ignored in the Export File, we need
   5086     # it in the Import File for the 'aix-soname' feature, so we have
   5087     # to replace the "-B" option with "-P" for AIX nm.
   5088     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   5089       _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'
   5090     else
   5091       _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'
   5092     fi
   5093     ;;
   5094   pw32*)
   5095     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
   5096     ;;
   5097   cygwin* | mingw* | windows* | cegcc*)
   5098     case $cc_basename in
   5099     cl* | icl*)
   5100       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   5101       ;;
   5102     *)
   5103       _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'
   5104       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
   5105       ;;
   5106     esac
   5107     ;;
   5108   *)
   5109     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   5110     ;;
   5111   esac
   5112 ], [
   5113   runpath_var=
   5114   _LT_TAGVAR(allow_undefined_flag, $1)=
   5115   _LT_TAGVAR(always_export_symbols, $1)=no
   5116   _LT_TAGVAR(archive_cmds, $1)=
   5117   _LT_TAGVAR(archive_expsym_cmds, $1)=
   5118   _LT_TAGVAR(compiler_needs_object, $1)=no
   5119   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
   5120   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
   5121   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   5122   _LT_TAGVAR(hardcode_automatic, $1)=no
   5123   _LT_TAGVAR(hardcode_direct, $1)=no
   5124   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   5125   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
   5126   _LT_TAGVAR(hardcode_libdir_separator, $1)=
   5127   _LT_TAGVAR(hardcode_minus_L, $1)=no
   5128   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   5129   _LT_TAGVAR(inherit_rpath, $1)=no
   5130   _LT_TAGVAR(link_all_deplibs, $1)=unknown
   5131   _LT_TAGVAR(module_cmds, $1)=
   5132   _LT_TAGVAR(module_expsym_cmds, $1)=
   5133   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
   5134   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
   5135   _LT_TAGVAR(thread_safe_flag_spec, $1)=
   5136   _LT_TAGVAR(whole_archive_flag_spec, $1)=
   5137   # include_expsyms should be a list of space-separated symbols to be *always*
   5138   # included in the symbol list
   5139   _LT_TAGVAR(include_expsyms, $1)=
   5140   # exclude_expsyms can be an extended regexp of symbols to exclude
   5141   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   5142   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   5143   # as well as any symbol that contains 'd'.
   5144   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
   5145   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   5146   # platforms (ab)use it in PIC code, but their linkers get confused if
   5147   # the symbol is explicitly referenced.  Since portable code cannot
   5148   # rely on this symbol name, it's probably fine to never include it in
   5149   # preloaded symbol tables.
   5150   # Exclude shared library initialization/finalization symbols.
   5151 dnl Note also adjust exclude_expsyms for C++ above.
   5152   extract_expsyms_cmds=
   5153 
   5154   case $host_os in
   5155   cygwin* | mingw* | windows* | pw32* | cegcc*)
   5156     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
   5157     # When not using gcc, we currently assume that we are using
   5158     # Microsoft Visual C++ or Intel C++ Compiler.
   5159     if test yes != "$GCC"; then
   5160       with_gnu_ld=no
   5161     fi
   5162     ;;
   5163   interix*)
   5164     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
   5165     with_gnu_ld=yes
   5166     ;;
   5167   esac
   5168 
   5169   _LT_TAGVAR(ld_shlibs, $1)=yes
   5170 
   5171   # On some targets, GNU ld is compatible enough with the native linker
   5172   # that we're better off using the native interface for both.
   5173   lt_use_gnu_ld_interface=no
   5174   if test yes = "$with_gnu_ld"; then
   5175     case $host_os in
   5176       aix*)
   5177 	# The AIX port of GNU ld has always aspired to compatibility
   5178 	# with the native linker.  However, as the warning in the GNU ld
   5179 	# block says, versions before 2.19.5* couldn't really create working
   5180 	# shared libraries, regardless of the interface used.
   5181 	case `$LD -v 2>&1` in
   5182 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   5183 	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
   5184 	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
   5185 	  *)
   5186 	    lt_use_gnu_ld_interface=yes
   5187 	    ;;
   5188 	esac
   5189 	;;
   5190       *)
   5191 	lt_use_gnu_ld_interface=yes
   5192 	;;
   5193     esac
   5194   fi
   5195 
   5196   if test yes = "$lt_use_gnu_ld_interface"; then
   5197     # If archive_cmds runs LD, not CC, wlarc should be empty
   5198     wlarc='$wl'
   5199 
   5200     # Set some defaults for GNU ld with shared library support. These
   5201     # are reset later if shared libraries are not supported. Putting them
   5202     # here allows them to be overridden if necessary.
   5203     runpath_var=LD_RUN_PATH
   5204     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5205     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   5206     # ancient GNU ld didn't support --whole-archive et. al.
   5207     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   5208       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   5209     else
   5210       _LT_TAGVAR(whole_archive_flag_spec, $1)=
   5211     fi
   5212     supports_anon_versioning=no
   5213     case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
   5214       *GNU\ gold*) supports_anon_versioning=yes ;;
   5215       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
   5216       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   5217       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   5218       *\ 2.11.*) ;; # other 2.11 versions
   5219       *) supports_anon_versioning=yes ;;
   5220     esac
   5221 
   5222     # See if GNU ld supports shared libraries.
   5223     case $host_os in
   5224     aix[[3-9]]*)
   5225       # On AIX/PPC, the GNU linker is very broken
   5226       if test ia64 != "$host_cpu"; then
   5227 	_LT_TAGVAR(ld_shlibs, $1)=no
   5228 	cat <<_LT_EOF 1>&2
   5229 
   5230 *** Warning: the GNU linker, at least up to release 2.19, is reported
   5231 *** to be unable to reliably create shared libraries on AIX.
   5232 *** Therefore, libtool is disabling shared libraries support.  If you
   5233 *** really care for shared libraries, you may want to install binutils
   5234 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   5235 *** You will then need to restart the configuration process.
   5236 
   5237 _LT_EOF
   5238       fi
   5239       ;;
   5240 
   5241     amigaos*)
   5242       case $host_cpu in
   5243       powerpc)
   5244             # see comment about AmigaOS4 .so support
   5245             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5246             _LT_TAGVAR(archive_expsym_cmds, $1)=''
   5247         ;;
   5248       m68k)
   5249             _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)'
   5250             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5251             _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5252         ;;
   5253       esac
   5254       ;;
   5255 
   5256     beos*)
   5257       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   5258 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5259 	# Joseph Beckenbach <jrb3 (a] best.com> says some releases of gcc
   5260 	# support --undefined.  This deserves some investigation.  FIXME
   5261 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5262       else
   5263 	_LT_TAGVAR(ld_shlibs, $1)=no
   5264       fi
   5265       ;;
   5266 
   5267     cygwin* | mingw* | windows* | pw32* | cegcc*)
   5268       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
   5269       # as there is no search path for DLLs.
   5270       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5271       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
   5272       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5273       _LT_TAGVAR(always_export_symbols, $1)=no
   5274       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   5275       _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'
   5276       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
   5277       _LT_TAGVAR(file_list_spec, $1)='@'
   5278 
   5279       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   5280         _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'
   5281 	# If the export-symbols file already is a .def file, use it as
   5282 	# is; otherwise, prepend EXPORTS...
   5283 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
   5284           cp $export_symbols $output_objdir/$soname.def;
   5285         else
   5286           echo EXPORTS > $output_objdir/$soname.def;
   5287           cat $export_symbols >> $output_objdir/$soname.def;
   5288         fi~
   5289         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   5290       else
   5291 	_LT_TAGVAR(ld_shlibs, $1)=no
   5292       fi
   5293       ;;
   5294 
   5295     haiku*)
   5296       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5297       _LT_TAGVAR(link_all_deplibs, $1)=no
   5298       ;;
   5299 
   5300     os2*)
   5301       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5302       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5303       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5304       shrext_cmds=.dll
   5305       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   5306 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   5307 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   5308 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   5309 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   5310 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   5311 	emximp -o $lib $output_objdir/$libname.def'
   5312       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   5313 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   5314 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   5315 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   5316 	prefix_cmds="$SED"~
   5317 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   5318 	  prefix_cmds="$prefix_cmds -e 1d";
   5319 	fi~
   5320 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   5321 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   5322 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   5323 	emximp -o $lib $output_objdir/$libname.def'
   5324       _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   5325       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   5326       _LT_TAGVAR(file_list_spec, $1)='@'
   5327       ;;
   5328 
   5329     interix[[3-9]]*)
   5330       _LT_TAGVAR(hardcode_direct, $1)=no
   5331       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5332       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   5333       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   5334       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   5335       # Instead, shared libraries are loaded at an image base (0x10000000 by
   5336       # default) and relocated if they conflict, which is a slow very memory
   5337       # consuming and fragmenting process.  To avoid this, we pick a random,
   5338       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   5339       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   5340       _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'
   5341       _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'
   5342       ;;
   5343 
   5344     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   5345       tmp_diet=no
   5346       if test linux-dietlibc = "$host_os"; then
   5347 	case $cc_basename in
   5348 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   5349 	esac
   5350       fi
   5351       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   5352 	 && test no = "$tmp_diet"
   5353       then
   5354 	tmp_addflag=' $pic_flag'
   5355 	tmp_sharedflag='-shared'
   5356 	case $cc_basename,$host_cpu in
   5357         pgcc*)				# Portland Group C compiler
   5358 	  _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'
   5359 	  tmp_addflag=' $pic_flag'
   5360 	  ;;
   5361 	pgf77* | pgf90* | pgf95* | pgfortran*)
   5362 					# Portland Group f77 and f90 compilers
   5363 	  _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'
   5364 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   5365 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   5366 	  tmp_addflag=' -i_dynamic' ;;
   5367 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   5368 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   5369 	ifc* | ifort*)			# Intel Fortran compiler
   5370 	  tmp_addflag=' -nofor_main' ;;
   5371 	lf95*)				# Lahey Fortran 8.1
   5372 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
   5373 	  tmp_sharedflag='--shared' ;;
   5374         nagfor*)                        # NAGFOR 5.3
   5375           tmp_sharedflag='-Wl,-shared' ;;
   5376 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   5377 	  tmp_sharedflag='-qmkshrobj'
   5378 	  tmp_addflag= ;;
   5379 	nvcc*)	# Cuda Compiler Driver 2.2
   5380 	  _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'
   5381 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
   5382 	  ;;
   5383 	esac
   5384 	case `$CC -V 2>&1 | $SED 5q` in
   5385 	*Sun\ C*)			# Sun C 5.9
   5386 	  _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'
   5387 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
   5388 	  tmp_sharedflag='-G' ;;
   5389 	*Sun\ F*)			# Sun Fortran 8.3
   5390 	  tmp_sharedflag='-G' ;;
   5391 	esac
   5392 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5393 
   5394         if test yes = "$supports_anon_versioning"; then
   5395           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
   5396             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   5397             echo "local: *; };" >> $output_objdir/$libname.ver~
   5398             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   5399         fi
   5400 
   5401 	case $cc_basename in
   5402 	tcc*)
   5403 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5404 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
   5405 	  ;;
   5406 	xlf* | bgf* | bgxlf* | mpixlf*)
   5407 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   5408 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
   5409 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5410 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   5411 	  if test yes = "$supports_anon_versioning"; then
   5412 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
   5413               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   5414               echo "local: *; };" >> $output_objdir/$libname.ver~
   5415               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   5416 	  fi
   5417 	  ;;
   5418 	esac
   5419       else
   5420         _LT_TAGVAR(ld_shlibs, $1)=no
   5421       fi
   5422       ;;
   5423 
   5424     *-mlibc)
   5425 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5426 	_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'
   5427       ;;
   5428 
   5429     netbsd* | netbsdelf*-gnu)
   5430       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   5431 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   5432 	wlarc=
   5433       else
   5434 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5435 	_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'
   5436       fi
   5437       ;;
   5438 
   5439     solaris*)
   5440       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   5441 	_LT_TAGVAR(ld_shlibs, $1)=no
   5442 	cat <<_LT_EOF 1>&2
   5443 
   5444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   5445 *** create shared libraries on Solaris systems.  Therefore, libtool
   5446 *** is disabling shared libraries support.  We urge you to upgrade GNU
   5447 *** binutils to release 2.9.1 or newer.  Another option is to modify
   5448 *** your PATH or compiler configuration so that the native linker is
   5449 *** used, and then restart.
   5450 
   5451 _LT_EOF
   5452       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   5453 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5454 	_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'
   5455       else
   5456 	_LT_TAGVAR(ld_shlibs, $1)=no
   5457       fi
   5458       ;;
   5459 
   5460     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   5461       case `$LD -v 2>&1` in
   5462         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
   5463 	_LT_TAGVAR(ld_shlibs, $1)=no
   5464 	cat <<_LT_EOF 1>&2
   5465 
   5466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   5467 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   5468 *** is disabling shared libraries support.  We urge you to upgrade GNU
   5469 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   5470 *** your PATH or compiler configuration so that the native linker is
   5471 *** used, and then restart.
   5472 
   5473 _LT_EOF
   5474 	;;
   5475 	*)
   5476 	  # For security reasons, it is highly recommended that you always
   5477 	  # use absolute paths for naming shared libraries, and exclude the
   5478 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   5479 	  # requires that you compile everything twice, which is a pain.
   5480 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   5481 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5482 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5483 	    _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'
   5484 	  else
   5485 	    _LT_TAGVAR(ld_shlibs, $1)=no
   5486 	  fi
   5487 	;;
   5488       esac
   5489       ;;
   5490 
   5491     sunos4*)
   5492       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   5493       wlarc=
   5494       _LT_TAGVAR(hardcode_direct, $1)=yes
   5495       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5496       ;;
   5497 
   5498     *)
   5499       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   5500 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5501 	_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'
   5502       else
   5503 	_LT_TAGVAR(ld_shlibs, $1)=no
   5504       fi
   5505       ;;
   5506     esac
   5507 
   5508     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
   5509       runpath_var=
   5510       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
   5511       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
   5512       _LT_TAGVAR(whole_archive_flag_spec, $1)=
   5513     fi
   5514   else
   5515     # PORTME fill in a description of your system's linker (not GNU ld)
   5516     case $host_os in
   5517     aix3*)
   5518       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5519       _LT_TAGVAR(always_export_symbols, $1)=yes
   5520       _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'
   5521       # Note: this linker hardcodes the directories in LIBPATH if there
   5522       # are no directories specified by -L.
   5523       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5524       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   5525 	# Neither direct hardcoding nor static linking is supported with a
   5526 	# broken collect2.
   5527 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
   5528       fi
   5529       ;;
   5530 
   5531     aix[[4-9]]*)
   5532       if test ia64 = "$host_cpu"; then
   5533 	# On IA64, the linker does run time linking by default, so we don't
   5534 	# have to do anything special.
   5535 	aix_use_runtimelinking=no
   5536 	exp_sym_flag='-Bexport'
   5537 	no_entry_flag=
   5538       else
   5539 	# If we're using GNU nm, then we don't want the "-C" option.
   5540 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   5541 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   5542 	# weak defined symbols like other global defined symbols, whereas
   5543 	# GNU nm marks them as "W".
   5544 	# While the 'weak' keyword is ignored in the Export File, we need
   5545 	# it in the Import File for the 'aix-soname' feature, so we have
   5546 	# to replace the "-B" option with "-P" for AIX nm.
   5547 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   5548 	  _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'
   5549 	else
   5550 	  _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'
   5551 	fi
   5552 	aix_use_runtimelinking=no
   5553 
   5554 	# Test if we are trying to use run time linking or normal
   5555 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   5556 	# have runtime linking enabled, and use it for executables.
   5557 	# For shared libraries, we enable/disable runtime linking
   5558 	# depending on the kind of the shared library created -
   5559 	# when "with_aix_soname,aix_use_runtimelinking" is:
   5560 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   5561 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   5562 	#            lib.a           static archive
   5563 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   5564 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   5565 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   5566 	#            lib.a(lib.so.V) shared, rtl:no
   5567 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   5568 	#            lib.a           static archive
   5569 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
   5570 	  for ld_flag in $LDFLAGS; do
   5571 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   5572 	    aix_use_runtimelinking=yes
   5573 	    break
   5574 	  fi
   5575 	  done
   5576 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   5577 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   5578 	    # so we don't have lib.a shared libs to link our executables.
   5579 	    # We have to force runtime linking in this case.
   5580 	    aix_use_runtimelinking=yes
   5581 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   5582 	  fi
   5583 	  ;;
   5584 	esac
   5585 
   5586 	exp_sym_flag='-bexport'
   5587 	no_entry_flag='-bnoentry'
   5588       fi
   5589 
   5590       # When large executables or shared objects are built, AIX ld can
   5591       # have problems creating the table of contents.  If linking a library
   5592       # or program results in "error TOC overflow" add -mminimal-toc to
   5593       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   5594       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   5595 
   5596       _LT_TAGVAR(archive_cmds, $1)=''
   5597       _LT_TAGVAR(hardcode_direct, $1)=yes
   5598       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   5599       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
   5600       _LT_TAGVAR(link_all_deplibs, $1)=yes
   5601       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
   5602       case $with_aix_soname,$aix_use_runtimelinking in
   5603       aix,*) ;; # traditional, no import file
   5604       svr4,* | *,yes) # use import file
   5605 	# The Import File defines what to hardcode.
   5606 	_LT_TAGVAR(hardcode_direct, $1)=no
   5607 	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
   5608 	;;
   5609       esac
   5610 
   5611       if test yes = "$GCC"; then
   5612 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
   5613 	# We only want to do this on AIX 4.2 and lower, the check
   5614 	# below for broken collect2 doesn't work under 4.3+
   5615 	  collect2name=`$CC -print-prog-name=collect2`
   5616 	  if test -f "$collect2name" &&
   5617 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   5618 	  then
   5619 	  # We have reworked collect2
   5620 	  :
   5621 	  else
   5622 	  # We have old collect2
   5623 	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
   5624 	  # It fails to find uninstalled libraries when the uninstalled
   5625 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   5626 	  # to unsupported forces relinking
   5627 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5628 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5629 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
   5630 	  fi
   5631 	  ;;
   5632 	esac
   5633 	shared_flag='-shared'
   5634 	if test yes = "$aix_use_runtimelinking"; then
   5635 	  shared_flag="$shared_flag "'$wl-G'
   5636 	fi
   5637 	# Need to ensure runtime linking is disabled for the traditional
   5638 	# shared library, or the linker may eventually find shared libraries
   5639 	# /with/ Import File - we do not want to mix them.
   5640 	shared_flag_aix='-shared'
   5641 	shared_flag_svr4='-shared $wl-G'
   5642       else
   5643 	# not using gcc
   5644 	if test ia64 = "$host_cpu"; then
   5645 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   5646 	# chokes on -Wl,-G. The following line is correct:
   5647 	  shared_flag='-G'
   5648 	else
   5649 	  if test yes = "$aix_use_runtimelinking"; then
   5650 	    shared_flag='$wl-G'
   5651 	  else
   5652 	    shared_flag='$wl-bM:SRE'
   5653 	  fi
   5654 	  shared_flag_aix='$wl-bM:SRE'
   5655 	  shared_flag_svr4='$wl-G'
   5656 	fi
   5657       fi
   5658 
   5659       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
   5660       # It seems that -bexpall does not export symbols beginning with
   5661       # underscore (_), so it is better to generate a list of symbols to export.
   5662       _LT_TAGVAR(always_export_symbols, $1)=yes
   5663       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   5664 	# Warning - without using the other runtime loading flags (-brtl),
   5665 	# -berok will link without error, but may produce a broken library.
   5666 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
   5667         # Determine the default libpath from the value encoded in an
   5668         # empty executable.
   5669         _LT_SYS_MODULE_PATH_AIX([$1])
   5670         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
   5671         _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
   5672       else
   5673 	if test ia64 = "$host_cpu"; then
   5674 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
   5675 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
   5676 	  _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"
   5677 	else
   5678 	 # Determine the default libpath from the value encoded in an
   5679 	 # empty executable.
   5680 	 _LT_SYS_MODULE_PATH_AIX([$1])
   5681 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
   5682 	  # Warning - without using the other run time loading flags,
   5683 	  # -berok will link without error, but may produce a broken library.
   5684 	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
   5685 	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
   5686 	  if test yes = "$with_gnu_ld"; then
   5687 	    # We only use this code for GNU lds that support --whole-archive.
   5688 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
   5689 	  else
   5690 	    # Exported symbols can be pulled into shared objects from archives
   5691 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
   5692 	  fi
   5693 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
   5694 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   5695 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   5696 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
   5697 	  if test svr4 != "$with_aix_soname"; then
   5698 	    # This is similar to how AIX traditionally builds its shared libraries.
   5699 	    _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'
   5700 	  fi
   5701 	  if test aix != "$with_aix_soname"; then
   5702 	    _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'
   5703 	  else
   5704 	    # used by -dlpreopen to get the symbols
   5705 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   5706 	  fi
   5707 	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
   5708 	fi
   5709       fi
   5710       ;;
   5711 
   5712     amigaos*)
   5713       case $host_cpu in
   5714       powerpc)
   5715             # see comment about AmigaOS4 .so support
   5716             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   5717             _LT_TAGVAR(archive_expsym_cmds, $1)=''
   5718         ;;
   5719       m68k)
   5720             _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)'
   5721             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5722             _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5723         ;;
   5724       esac
   5725       ;;
   5726 
   5727     bsdi[[45]]*)
   5728       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
   5729       ;;
   5730 
   5731     cygwin* | mingw* | windows* | pw32* | cegcc*)
   5732       # When not using gcc, we currently assume that we are using
   5733       # Microsoft Visual C++ or Intel C++ Compiler.
   5734       # hardcode_libdir_flag_spec is actually meaningless, as there is
   5735       # no search path for DLLs.
   5736       case $cc_basename in
   5737       cl* | icl*)
   5738 	# Native MSVC or ICC
   5739 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
   5740 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5741 	_LT_TAGVAR(always_export_symbols, $1)=yes
   5742 	_LT_TAGVAR(file_list_spec, $1)='@'
   5743 	# Tell ltmain to make .lib files, not .a files.
   5744 	libext=lib
   5745 	# Tell ltmain to make .dll files, not .so files.
   5746 	shrext_cmds=.dll
   5747 	# FIXME: Setting linknames here is a bad hack.
   5748 	_LT_TAGVAR(archive_cmds, $1)='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   5749 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
   5750             cp "$export_symbols" "$output_objdir/$soname.def";
   5751             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   5752           else
   5753             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   5754           fi~
   5755           $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   5756           linknames='
   5757 	# The linker will not automatically build a static lib if we build a DLL.
   5758 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
   5759 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   5760 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   5761 	_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'
   5762 	# Don't use ranlib
   5763 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
   5764 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
   5765           lt_tool_outputfile="@TOOL_OUTPUT@"~
   5766           case $lt_outputfile in
   5767             *.exe|*.EXE) ;;
   5768             *)
   5769               lt_outputfile=$lt_outputfile.exe
   5770               lt_tool_outputfile=$lt_tool_outputfile.exe
   5771               ;;
   5772           esac~
   5773           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   5774             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   5775             $RM "$lt_outputfile.manifest";
   5776           fi'
   5777 	;;
   5778       *)
   5779 	# Assume MSVC and ICC wrapper
   5780 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
   5781 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   5782 	# Tell ltmain to make .lib files, not .a files.
   5783 	libext=lib
   5784 	# Tell ltmain to make .dll files, not .so files.
   5785 	shrext_cmds=.dll
   5786 	# FIXME: Setting linknames here is a bad hack.
   5787 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   5788 	# The linker will automatically build a .lib file if we build a DLL.
   5789 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
   5790 	# FIXME: Should let the user specify the lib program.
   5791 	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
   5792 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   5793 	;;
   5794       esac
   5795       ;;
   5796 
   5797     darwin* | rhapsody*)
   5798       _LT_DARWIN_LINKER_FEATURES($1)
   5799       ;;
   5800 
   5801     dgux*)
   5802       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   5803       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   5804       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5805       ;;
   5806 
   5807     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   5808     # support.  Future versions do this automatically, but an explicit c++rt0.o
   5809     # does not break anything, and helps significantly (at the cost of a little
   5810     # extra space).
   5811     freebsd2.2*)
   5812       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   5813       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   5814       _LT_TAGVAR(hardcode_direct, $1)=yes
   5815       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5816       ;;
   5817 
   5818     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   5819     freebsd2.*)
   5820       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   5821       _LT_TAGVAR(hardcode_direct, $1)=yes
   5822       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5823       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5824       ;;
   5825 
   5826     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   5827     freebsd* | dragonfly* | midnightbsd*)
   5828       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   5829       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   5830       _LT_TAGVAR(hardcode_direct, $1)=yes
   5831       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5832       ;;
   5833 
   5834     hpux9*)
   5835       if test yes = "$GCC"; then
   5836 	_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'
   5837       else
   5838 	_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'
   5839       fi
   5840       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
   5841       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   5842       _LT_TAGVAR(hardcode_direct, $1)=yes
   5843 
   5844       # hardcode_minus_L: Not really in the search PATH,
   5845       # but as the default location of the library.
   5846       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5847       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   5848       ;;
   5849 
   5850     hpux10*)
   5851       if test yes,no = "$GCC,$with_gnu_ld"; then
   5852 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   5853       else
   5854 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   5855       fi
   5856       if test no = "$with_gnu_ld"; then
   5857 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
   5858 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
   5859 	_LT_TAGVAR(hardcode_direct, $1)=yes
   5860 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   5861 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   5862 	# hardcode_minus_L: Not really in the search PATH,
   5863 	# but as the default location of the library.
   5864 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
   5865       fi
   5866       ;;
   5867 
   5868     hpux11*)
   5869       if test yes,no = "$GCC,$with_gnu_ld"; then
   5870 	case $host_cpu in
   5871 	hppa*64*)
   5872 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   5873 	  ;;
   5874 	ia64*)
   5875 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   5876 	  ;;
   5877 	*)
   5878 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   5879 	  ;;
   5880 	esac
   5881       else
   5882 	case $host_cpu in
   5883 	hppa*64*)
   5884 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   5885 	  ;;
   5886 	ia64*)
   5887 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   5888 	  ;;
   5889 	*)
   5890 	m4_if($1, [], [
   5891 	  # Older versions of the 11.00 compiler do not understand -b yet
   5892 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   5893 	  _LT_LINKER_OPTION([if $CC understands -b],
   5894 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
   5895 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
   5896 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
   5897 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
   5898 	  ;;
   5899 	esac
   5900       fi
   5901       if test no = "$with_gnu_ld"; then
   5902 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
   5903 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
   5904 
   5905 	case $host_cpu in
   5906 	hppa*64*|ia64*)
   5907 	  _LT_TAGVAR(hardcode_direct, $1)=no
   5908 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5909 	  ;;
   5910 	*)
   5911 	  _LT_TAGVAR(hardcode_direct, $1)=yes
   5912 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   5913 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   5914 
   5915 	  # hardcode_minus_L: Not really in the search PATH,
   5916 	  # but as the default location of the library.
   5917 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
   5918 	  ;;
   5919 	esac
   5920       fi
   5921       ;;
   5922 
   5923     irix5* | irix6* | nonstopux*)
   5924       if test yes = "$GCC"; then
   5925 	_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'
   5926 	# Try to use the -exported_symbol ld option, if it does not
   5927 	# work, assume that -exports_file does not work either and
   5928 	# implicitly export all symbols.
   5929 	# This should be the same for all languages, so no per-tag cache variable.
   5930 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
   5931 	  [lt_cv_irix_exported_symbol],
   5932 	  [save_LDFLAGS=$LDFLAGS
   5933 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   5934 	   AC_LINK_IFELSE(
   5935 	     [AC_LANG_SOURCE(
   5936 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
   5937 			      [C++], [[int foo (void) { return 0; }]],
   5938 			      [Fortran 77], [[
   5939       subroutine foo
   5940       end]],
   5941 			      [Fortran], [[
   5942       subroutine foo
   5943       end]])])],
   5944 	      [lt_cv_irix_exported_symbol=yes],
   5945 	      [lt_cv_irix_exported_symbol=no])
   5946            LDFLAGS=$save_LDFLAGS])
   5947 	if test yes = "$lt_cv_irix_exported_symbol"; then
   5948           _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'
   5949 	fi
   5950       else
   5951 	_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'
   5952 	_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'
   5953       fi
   5954       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
   5955       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5956       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   5957       _LT_TAGVAR(inherit_rpath, $1)=yes
   5958       _LT_TAGVAR(link_all_deplibs, $1)=yes
   5959       ;;
   5960 
   5961     linux*)
   5962       case $cc_basename in
   5963       tcc*)
   5964 	# Fabrice Bellard et al's Tiny C Compiler
   5965 	_LT_TAGVAR(ld_shlibs, $1)=yes
   5966 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   5967 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5968 	;;
   5969       esac
   5970       ;;
   5971 
   5972     *-mlibc)
   5973       ;;
   5974 
   5975     netbsd* | netbsdelf*-gnu)
   5976       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   5977 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   5978       else
   5979 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   5980       fi
   5981       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   5982       _LT_TAGVAR(hardcode_direct, $1)=yes
   5983       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5984       ;;
   5985 
   5986     newsos6)
   5987       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   5988       _LT_TAGVAR(hardcode_direct, $1)=yes
   5989       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   5990       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   5991       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   5992       ;;
   5993 
   5994     *nto* | *qnx*)
   5995       ;;
   5996 
   5997     openbsd*)
   5998       if test -f /usr/libexec/ld.so; then
   5999 	_LT_TAGVAR(hardcode_direct, $1)=yes
   6000 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6001 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   6002 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   6003 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   6004 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   6005 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   6006 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   6007 	else
   6008 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   6009 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   6010 	fi
   6011       else
   6012 	_LT_TAGVAR(ld_shlibs, $1)=no
   6013       fi
   6014       ;;
   6015 
   6016     os2*)
   6017       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6018       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   6019       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   6020       shrext_cmds=.dll
   6021       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   6022 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   6023 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   6024 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   6025 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   6026 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   6027 	emximp -o $lib $output_objdir/$libname.def'
   6028       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   6029 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   6030 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   6031 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   6032 	prefix_cmds="$SED"~
   6033 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   6034 	  prefix_cmds="$prefix_cmds -e 1d";
   6035 	fi~
   6036 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   6037 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   6038 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   6039 	emximp -o $lib $output_objdir/$libname.def'
   6040       _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   6041       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   6042       _LT_TAGVAR(file_list_spec, $1)='@'
   6043       ;;
   6044 
   6045     osf3*)
   6046       if test yes = "$GCC"; then
   6047 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
   6048 	_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'
   6049       else
   6050 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
   6051 	_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'
   6052       fi
   6053       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
   6054       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   6055       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   6056       ;;
   6057 
   6058     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   6059       if test yes = "$GCC"; then
   6060 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
   6061 	_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'
   6062 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   6063       else
   6064 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
   6065 	_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'
   6066 	_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~
   6067           $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'
   6068 
   6069 	# Both c and cxx compiler support -rpath directly
   6070 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
   6071       fi
   6072       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
   6073       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   6074       ;;
   6075 
   6076     serenity*)
   6077       ;;
   6078 
   6079     solaris*)
   6080       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
   6081       if test yes = "$GCC"; then
   6082 	wlarc='$wl'
   6083 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   6084 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   6085           $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'
   6086       else
   6087 	case `$CC -V 2>&1` in
   6088 	*"Compilers 5.0"*)
   6089 	  wlarc=''
   6090 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6091 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   6092             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   6093 	  ;;
   6094 	*)
   6095 	  wlarc='$wl'
   6096 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   6097 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   6098             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   6099 	  ;;
   6100 	esac
   6101       fi
   6102       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   6103       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6104       case $host_os in
   6105       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
   6106       *)
   6107 	# The compiler driver will combine and reorder linker options,
   6108 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   6109 	# but is careful enough not to reorder.
   6110 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   6111 	if test yes = "$GCC"; then
   6112 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   6113 	else
   6114 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
   6115 	fi
   6116 	;;
   6117       esac
   6118       _LT_TAGVAR(link_all_deplibs, $1)=yes
   6119       ;;
   6120 
   6121     sunos4*)
   6122       if test sequent = "$host_vendor"; then
   6123 	# Use $CC to link under sequent, because it throws in some extra .o
   6124 	# files that make .init and .fini sections work.
   6125 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   6126       else
   6127 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   6128       fi
   6129       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6130       _LT_TAGVAR(hardcode_direct, $1)=yes
   6131       _LT_TAGVAR(hardcode_minus_L, $1)=yes
   6132       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6133       ;;
   6134 
   6135     sysv4)
   6136       case $host_vendor in
   6137 	sni)
   6138 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6139 	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
   6140 	;;
   6141 	siemens)
   6142 	  ## LD is ld it makes a PLAMLIB
   6143 	  ## CC just makes a GrossModule.
   6144 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   6145 	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
   6146 	  _LT_TAGVAR(hardcode_direct, $1)=no
   6147         ;;
   6148 	motorola)
   6149 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6150 	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
   6151 	;;
   6152       esac
   6153       runpath_var='LD_RUN_PATH'
   6154       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6155       ;;
   6156 
   6157     sysv4.3*)
   6158       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6159       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6160       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
   6161       ;;
   6162 
   6163     sysv4*MP*)
   6164       if test -d /usr/nec; then
   6165 	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6166 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6167 	runpath_var=LD_RUN_PATH
   6168 	hardcode_runpath_var=yes
   6169 	_LT_TAGVAR(ld_shlibs, $1)=yes
   6170       fi
   6171       ;;
   6172 
   6173     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
   6174       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
   6175       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   6176       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6177       runpath_var='LD_RUN_PATH'
   6178 
   6179       if test yes = "$GCC"; then
   6180 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6181 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6182       else
   6183 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6184 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6185       fi
   6186       ;;
   6187 
   6188     sysv5* | sco3.2v5* | sco5v6*)
   6189       # Note: We CANNOT use -z defs as we might desire, because we do not
   6190       # link with -lc, and that would cause any symbols used from libc to
   6191       # always be unresolved, which means just about no library would
   6192       # ever link correctly.  If we're not using GNU ld we use -z text
   6193       # though, which does catch some bad symbols but isn't as heavy-handed
   6194       # as -z defs.
   6195       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
   6196       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
   6197       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   6198       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6199       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
   6200       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
   6201       _LT_TAGVAR(link_all_deplibs, $1)=yes
   6202       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
   6203       runpath_var='LD_RUN_PATH'
   6204 
   6205       if test yes = "$GCC"; then
   6206 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6207 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6208       else
   6209 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6210 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   6211       fi
   6212       ;;
   6213 
   6214     uts4*)
   6215       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   6216       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6217       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   6218       ;;
   6219 
   6220     *)
   6221       _LT_TAGVAR(ld_shlibs, $1)=no
   6222       ;;
   6223     esac
   6224 
   6225     if test sni = "$host_vendor"; then
   6226       case $host in
   6227       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   6228 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
   6229 	;;
   6230       esac
   6231     fi
   6232   fi
   6233 ])
   6234 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
   6235 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
   6236 
   6237 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
   6238 
   6239 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
   6240 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
   6241 _LT_DECL([], [extract_expsyms_cmds], [2],
   6242     [The commands to extract the exported symbol list from a shared archive])
   6243 
   6244 #
   6245 # Do we need to explicitly link libc?
   6246 #
   6247 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
   6248 x|xyes)
   6249   # Assume -lc should be added
   6250   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
   6251 
   6252   if test yes,yes = "$GCC,$enable_shared"; then
   6253     case $_LT_TAGVAR(archive_cmds, $1) in
   6254     *'~'*)
   6255       # FIXME: we may have to deal with multi-command sequences.
   6256       ;;
   6257     '$CC '*)
   6258       # Test whether the compiler implicitly links with -lc since on some
   6259       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   6260       # to ld, don't add -lc before -lgcc.
   6261       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
   6262 	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
   6263 	[$RM conftest*
   6264 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   6265 
   6266 	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
   6267 	  soname=conftest
   6268 	  lib=conftest
   6269 	  libobjs=conftest.$ac_objext
   6270 	  deplibs=
   6271 	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
   6272 	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
   6273 	  compiler_flags=-v
   6274 	  linker_flags=-v
   6275 	  verstring=
   6276 	  output_objdir=.
   6277 	  libname=conftest
   6278 	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
   6279 	  _LT_TAGVAR(allow_undefined_flag, $1)=
   6280 	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
   6281 	  then
   6282 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
   6283 	  else
   6284 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
   6285 	  fi
   6286 	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
   6287 	else
   6288 	  cat conftest.err 1>&5
   6289 	fi
   6290 	$RM conftest*
   6291 	])
   6292       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
   6293       ;;
   6294     esac
   6295   fi
   6296   ;;
   6297 esac
   6298 
   6299 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
   6300     [Whether or not to add -lc for building shared libraries])
   6301 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
   6302     [enable_shared_with_static_runtimes], [0],
   6303     [Whether or not to disallow shared libs when runtime libs are static])
   6304 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
   6305     [Compiler flag to allow reflexive dlopens])
   6306 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
   6307     [Compiler flag to generate shared objects directly from archives])
   6308 _LT_TAGDECL([], [compiler_needs_object], [1],
   6309     [Whether the compiler copes with passing no objects directly])
   6310 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
   6311     [Create an old-style archive from a shared archive])
   6312 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
   6313     [Create a temporary old-style archive to link instead of a shared archive])
   6314 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
   6315 _LT_TAGDECL([], [archive_expsym_cmds], [2])
   6316 _LT_TAGDECL([], [module_cmds], [2],
   6317     [Commands used to build a loadable module if different from building
   6318     a shared archive.])
   6319 _LT_TAGDECL([], [module_expsym_cmds], [2])
   6320 _LT_TAGDECL([], [with_gnu_ld], [1],
   6321     [Whether we are building with GNU ld or not])
   6322 _LT_TAGDECL([], [allow_undefined_flag], [1],
   6323     [Flag that allows shared libraries with undefined symbols to be built])
   6324 _LT_TAGDECL([], [no_undefined_flag], [1],
   6325     [Flag that enforces no undefined symbols])
   6326 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
   6327     [Flag to hardcode $libdir into a binary during linking.
   6328     This must work even if $libdir does not exist])
   6329 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
   6330     [Whether we need a single "-rpath" flag with a separated argument])
   6331 _LT_TAGDECL([], [hardcode_direct], [0],
   6332     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
   6333     DIR into the resulting binary])
   6334 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
   6335     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
   6336     DIR into the resulting binary and the resulting library dependency is
   6337     "absolute", i.e. impossible to change by setting $shlibpath_var if the
   6338     library is relocated])
   6339 _LT_TAGDECL([], [hardcode_minus_L], [0],
   6340     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   6341     into the resulting binary])
   6342 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
   6343     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   6344     into the resulting binary])
   6345 _LT_TAGDECL([], [hardcode_automatic], [0],
   6346     [Set to "yes" if building a shared library automatically hardcodes DIR
   6347     into the library and all subsequent libraries and executables linked
   6348     against it])
   6349 _LT_TAGDECL([], [inherit_rpath], [0],
   6350     [Set to yes if linker adds runtime paths of dependent libraries
   6351     to runtime path list])
   6352 _LT_TAGDECL([], [link_all_deplibs], [0],
   6353     [Whether libtool must link a program against all its dependency libraries])
   6354 _LT_TAGDECL([], [always_export_symbols], [0],
   6355     [Set to "yes" if exported symbols are required])
   6356 _LT_TAGDECL([], [export_symbols_cmds], [2],
   6357     [The commands to list exported symbols])
   6358 _LT_TAGDECL([], [exclude_expsyms], [1],
   6359     [Symbols that should not be listed in the preloaded symbols])
   6360 _LT_TAGDECL([], [include_expsyms], [1],
   6361     [Symbols that must always be exported])
   6362 _LT_TAGDECL([], [prelink_cmds], [2],
   6363     [Commands necessary for linking programs (against libraries) with templates])
   6364 _LT_TAGDECL([], [postlink_cmds], [2],
   6365     [Commands necessary for finishing linking programs])
   6366 _LT_TAGDECL([], [file_list_spec], [1],
   6367     [Specify filename containing input files])
   6368 dnl FIXME: Not yet implemented
   6369 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
   6370 dnl    [Compiler flag to generate thread safe objects])
   6371 ])# _LT_LINKER_SHLIBS
   6372 
   6373 
   6374 # _LT_LANG_C_CONFIG([TAG])
   6375 # ------------------------
   6376 # Ensure that the configuration variables for a C compiler are suitably
   6377 # defined.  These variables are subsequently used by _LT_CONFIG to write
   6378 # the compiler configuration to 'libtool'.
   6379 m4_defun([_LT_LANG_C_CONFIG],
   6380 [m4_require([_LT_DECL_EGREP])dnl
   6381 lt_save_CC=$CC
   6382 AC_LANG_PUSH(C)
   6383 
   6384 # Source file extension for C test sources.
   6385 ac_ext=c
   6386 
   6387 # Object file extension for compiled C test sources.
   6388 objext=o
   6389 _LT_TAGVAR(objext, $1)=$objext
   6390 
   6391 # Code to be used in simple compile tests
   6392 lt_simple_compile_test_code="int some_variable = 0;"
   6393 
   6394 # Code to be used in simple link tests
   6395 lt_simple_link_test_code='int main(void){return(0);}'
   6396 
   6397 _LT_TAG_COMPILER
   6398 # Save the default compiler, since it gets overwritten when the other
   6399 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   6400 compiler_DEFAULT=$CC
   6401 
   6402 # save warnings/boilerplate of simple test code
   6403 _LT_COMPILER_BOILERPLATE
   6404 _LT_LINKER_BOILERPLATE
   6405 
   6406 ## CAVEAT EMPTOR:
   6407 ## There is no encapsulation within the following macros, do not change
   6408 ## the running order or otherwise move them around unless you know exactly
   6409 ## what you are doing...
   6410 if test -n "$compiler"; then
   6411   _LT_COMPILER_NO_RTTI($1)
   6412   _LT_COMPILER_PIC($1)
   6413   _LT_COMPILER_C_O($1)
   6414   _LT_COMPILER_FILE_LOCKS($1)
   6415   _LT_LINKER_SHLIBS($1)
   6416   _LT_SYS_DYNAMIC_LINKER($1)
   6417   _LT_LINKER_HARDCODE_LIBPATH($1)
   6418   LT_SYS_DLOPEN_SELF
   6419   _LT_CMD_STRIPLIB
   6420 
   6421   # Report what library types will actually be built
   6422   AC_MSG_CHECKING([if libtool supports shared libraries])
   6423   AC_MSG_RESULT([$can_build_shared])
   6424 
   6425   AC_MSG_CHECKING([whether to build shared libraries])
   6426   test no = "$can_build_shared" && enable_shared=no
   6427 
   6428   # On AIX, shared libraries and static libraries use the same namespace, and
   6429   # are all built from PIC.
   6430   case $host_os in
   6431   aix3*)
   6432     test yes = "$enable_shared" && enable_static=no
   6433     if test -n "$RANLIB"; then
   6434       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   6435       postinstall_cmds='$RANLIB $lib'
   6436     fi
   6437     ;;
   6438 
   6439   aix[[4-9]]*)
   6440     if test ia64 != "$host_cpu"; then
   6441       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   6442       yes,aix,yes) ;;			# shared object as lib.so file only
   6443       yes,svr4,*) ;;			# shared object as lib.so archive member only
   6444       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   6445       esac
   6446     fi
   6447     ;;
   6448   esac
   6449   AC_MSG_RESULT([$enable_shared])
   6450 
   6451   AC_MSG_CHECKING([whether to build static libraries])
   6452   # Make sure either enable_shared or enable_static is yes.
   6453   test yes = "$enable_shared" || enable_static=yes
   6454   AC_MSG_RESULT([$enable_static])
   6455 
   6456   _LT_CONFIG($1)
   6457 fi
   6458 AC_LANG_POP
   6459 CC=$lt_save_CC
   6460 ])# _LT_LANG_C_CONFIG
   6461 
   6462 
   6463 # _LT_LANG_CXX_CONFIG([TAG])
   6464 # --------------------------
   6465 # Ensure that the configuration variables for a C++ compiler are suitably
   6466 # defined.  These variables are subsequently used by _LT_CONFIG to write
   6467 # the compiler configuration to 'libtool'.
   6468 m4_defun([_LT_LANG_CXX_CONFIG],
   6469 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   6470 m4_require([_LT_DECL_EGREP])dnl
   6471 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
   6472 if test -n "$CXX" && ( test no != "$CXX" &&
   6473     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
   6474     (test g++ != "$CXX"))); then
   6475   AC_PROG_CXXCPP
   6476 else
   6477   _lt_caught_CXX_error=yes
   6478 fi
   6479 
   6480 AC_LANG_PUSH(C++)
   6481 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   6482 _LT_TAGVAR(allow_undefined_flag, $1)=
   6483 _LT_TAGVAR(always_export_symbols, $1)=no
   6484 _LT_TAGVAR(archive_expsym_cmds, $1)=
   6485 _LT_TAGVAR(compiler_needs_object, $1)=no
   6486 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
   6487 _LT_TAGVAR(hardcode_direct, $1)=no
   6488 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   6489 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
   6490 _LT_TAGVAR(hardcode_libdir_separator, $1)=
   6491 _LT_TAGVAR(hardcode_minus_L, $1)=no
   6492 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   6493 _LT_TAGVAR(hardcode_automatic, $1)=no
   6494 _LT_TAGVAR(inherit_rpath, $1)=no
   6495 _LT_TAGVAR(module_cmds, $1)=
   6496 _LT_TAGVAR(module_expsym_cmds, $1)=
   6497 _LT_TAGVAR(link_all_deplibs, $1)=unknown
   6498 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
   6499 _LT_TAGVAR(reload_flag, $1)=$reload_flag
   6500 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
   6501 _LT_TAGVAR(no_undefined_flag, $1)=
   6502 _LT_TAGVAR(whole_archive_flag_spec, $1)=
   6503 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
   6504 
   6505 # Source file extension for C++ test sources.
   6506 ac_ext=cpp
   6507 
   6508 # Object file extension for compiled C++ test sources.
   6509 objext=o
   6510 _LT_TAGVAR(objext, $1)=$objext
   6511 
   6512 # No sense in running all these tests if we already determined that
   6513 # the CXX compiler isn't working.  Some variables (like enable_shared)
   6514 # are currently assumed to apply to all compilers on this platform,
   6515 # and will be corrupted by setting them based on a non-working compiler.
   6516 if test yes != "$_lt_caught_CXX_error"; then
   6517   # Code to be used in simple compile tests
   6518   lt_simple_compile_test_code="int some_variable = 0;"
   6519 
   6520   # Code to be used in simple link tests
   6521   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
   6522 
   6523   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   6524   _LT_TAG_COMPILER
   6525 
   6526   # save warnings/boilerplate of simple test code
   6527   _LT_COMPILER_BOILERPLATE
   6528   _LT_LINKER_BOILERPLATE
   6529 
   6530   # Allow CC to be a program name with arguments.
   6531   lt_save_CC=$CC
   6532   lt_save_CFLAGS=$CFLAGS
   6533   lt_save_LD=$LD
   6534   lt_save_GCC=$GCC
   6535   GCC=$GXX
   6536   lt_save_with_gnu_ld=$with_gnu_ld
   6537   lt_save_path_LD=$lt_cv_path_LD
   6538   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
   6539     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
   6540   else
   6541     $as_unset lt_cv_prog_gnu_ld
   6542   fi
   6543   if test -n "${lt_cv_path_LDCXX+set}"; then
   6544     lt_cv_path_LD=$lt_cv_path_LDCXX
   6545   else
   6546     $as_unset lt_cv_path_LD
   6547   fi
   6548   test -z "${LDCXX+set}" || LD=$LDCXX
   6549   CC=${CXX-"c++"}
   6550   CFLAGS=$CXXFLAGS
   6551   compiler=$CC
   6552   _LT_TAGVAR(compiler, $1)=$CC
   6553   _LT_CC_BASENAME([$compiler])
   6554 
   6555   if test -n "$compiler"; then
   6556     # We don't want -fno-exception when compiling C++ code, so set the
   6557     # no_builtin_flag separately
   6558     if test yes = "$GXX"; then
   6559       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
   6560     else
   6561       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
   6562     fi
   6563 
   6564     if test yes = "$GXX"; then
   6565       # Set up default GNU C++ configuration
   6566 
   6567       LT_PATH_LD
   6568 
   6569       # Check if GNU C++ uses GNU ld as the underlying linker, since the
   6570       # archiving commands below assume that GNU ld is being used.
   6571       if test yes = "$with_gnu_ld"; then
   6572         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
   6573         _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'
   6574 
   6575         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   6576         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   6577 
   6578         # If archive_cmds runs LD, not CC, wlarc should be empty
   6579         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
   6580         #     investigate it a little bit more. (MM)
   6581         wlarc='$wl'
   6582 
   6583         # ancient GNU ld didn't support --whole-archive et. al.
   6584         if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   6585           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   6586         else
   6587           _LT_TAGVAR(whole_archive_flag_spec, $1)=
   6588         fi
   6589       else
   6590         with_gnu_ld=no
   6591         wlarc=
   6592 
   6593         # A generic and very simple default shared library creation
   6594         # command for GNU C++ for the case where it uses the native
   6595         # linker, instead of GNU ld.  If possible, this setting should
   6596         # overridden to take advantage of the native linker features on
   6597         # the platform it is being used on.
   6598         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   6599       fi
   6600 
   6601       # Commands to make compiler produce verbose output that lists
   6602       # what "hidden" libraries, object files and flags are used when
   6603       # linking a shared library.
   6604       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"'
   6605 
   6606     else
   6607       GXX=no
   6608       with_gnu_ld=no
   6609       wlarc=
   6610     fi
   6611 
   6612     # PORTME: fill in a description of your system's C++ link characteristics
   6613     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
   6614     _LT_TAGVAR(ld_shlibs, $1)=yes
   6615     case $host_os in
   6616       aix3*)
   6617         # FIXME: insert proper C++ library support
   6618         _LT_TAGVAR(ld_shlibs, $1)=no
   6619         ;;
   6620       aix[[4-9]]*)
   6621         if test ia64 = "$host_cpu"; then
   6622           # On IA64, the linker does run time linking by default, so we don't
   6623           # have to do anything special.
   6624           aix_use_runtimelinking=no
   6625           exp_sym_flag='-Bexport'
   6626           no_entry_flag=
   6627         else
   6628           aix_use_runtimelinking=no
   6629 
   6630           # Test if we are trying to use run time linking or normal
   6631           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
   6632           # have runtime linking enabled, and use it for executables.
   6633           # For shared libraries, we enable/disable runtime linking
   6634           # depending on the kind of the shared library created -
   6635           # when "with_aix_soname,aix_use_runtimelinking" is:
   6636           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   6637           # "aix,yes"  lib.so          shared, rtl:yes, for executables
   6638           #            lib.a           static archive
   6639           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
   6640           #            lib.a(lib.so.V) shared, rtl:no,  for executables
   6641           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   6642           #            lib.a(lib.so.V) shared, rtl:no
   6643           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   6644           #            lib.a           static archive
   6645           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
   6646 	    for ld_flag in $LDFLAGS; do
   6647 	      case $ld_flag in
   6648 	      *-brtl*)
   6649 	        aix_use_runtimelinking=yes
   6650 	        break
   6651 	        ;;
   6652 	      esac
   6653 	    done
   6654 	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   6655 	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
   6656 	      # so we don't have lib.a shared libs to link our executables.
   6657 	      # We have to force runtime linking in this case.
   6658 	      aix_use_runtimelinking=yes
   6659 	      LDFLAGS="$LDFLAGS -Wl,-brtl"
   6660 	    fi
   6661 	    ;;
   6662           esac
   6663 
   6664           exp_sym_flag='-bexport'
   6665           no_entry_flag='-bnoentry'
   6666         fi
   6667 
   6668         # When large executables or shared objects are built, AIX ld can
   6669         # have problems creating the table of contents.  If linking a library
   6670         # or program results in "error TOC overflow" add -mminimal-toc to
   6671         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   6672         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   6673 
   6674         _LT_TAGVAR(archive_cmds, $1)=''
   6675         _LT_TAGVAR(hardcode_direct, $1)=yes
   6676         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   6677         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
   6678         _LT_TAGVAR(link_all_deplibs, $1)=yes
   6679         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
   6680         case $with_aix_soname,$aix_use_runtimelinking in
   6681         aix,*) ;;	# no import file
   6682         svr4,* | *,yes) # use import file
   6683           # The Import File defines what to hardcode.
   6684           _LT_TAGVAR(hardcode_direct, $1)=no
   6685           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   6686           ;;
   6687         esac
   6688 
   6689         if test yes = "$GXX"; then
   6690           case $host_os in aix4.[[012]]|aix4.[[012]].*)
   6691           # We only want to do this on AIX 4.2 and lower, the check
   6692           # below for broken collect2 doesn't work under 4.3+
   6693 	  collect2name=`$CC -print-prog-name=collect2`
   6694 	  if test -f "$collect2name" &&
   6695 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   6696 	  then
   6697 	    # We have reworked collect2
   6698 	    :
   6699 	  else
   6700 	    # We have old collect2
   6701 	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
   6702 	    # It fails to find uninstalled libraries when the uninstalled
   6703 	    # path is not listed in the libpath.  Setting hardcode_minus_L
   6704 	    # to unsupported forces relinking
   6705 	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
   6706 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6707 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
   6708 	  fi
   6709           esac
   6710           shared_flag='-shared'
   6711 	  if test yes = "$aix_use_runtimelinking"; then
   6712 	    shared_flag=$shared_flag' $wl-G'
   6713 	  fi
   6714 	  # Need to ensure runtime linking is disabled for the traditional
   6715 	  # shared library, or the linker may eventually find shared libraries
   6716 	  # /with/ Import File - we do not want to mix them.
   6717 	  shared_flag_aix='-shared'
   6718 	  shared_flag_svr4='-shared $wl-G'
   6719         else
   6720           # not using gcc
   6721           if test ia64 = "$host_cpu"; then
   6722 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   6723 	  # chokes on -Wl,-G. The following line is correct:
   6724 	  shared_flag='-G'
   6725           else
   6726 	    if test yes = "$aix_use_runtimelinking"; then
   6727 	      shared_flag='$wl-G'
   6728 	    else
   6729 	      shared_flag='$wl-bM:SRE'
   6730 	    fi
   6731 	    shared_flag_aix='$wl-bM:SRE'
   6732 	    shared_flag_svr4='$wl-G'
   6733           fi
   6734         fi
   6735 
   6736         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
   6737         # It seems that -bexpall does not export symbols beginning with
   6738         # underscore (_), so it is better to generate a list of symbols to
   6739 	# export.
   6740         _LT_TAGVAR(always_export_symbols, $1)=yes
   6741 	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   6742           # Warning - without using the other runtime loading flags (-brtl),
   6743           # -berok will link without error, but may produce a broken library.
   6744           # The "-G" linker flag allows undefined symbols.
   6745           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
   6746           # Determine the default libpath from the value encoded in an empty
   6747           # executable.
   6748           _LT_SYS_MODULE_PATH_AIX([$1])
   6749           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
   6750 
   6751           _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
   6752         else
   6753           if test ia64 = "$host_cpu"; then
   6754 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
   6755 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
   6756 	    _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"
   6757           else
   6758 	    # Determine the default libpath from the value encoded in an
   6759 	    # empty executable.
   6760 	    _LT_SYS_MODULE_PATH_AIX([$1])
   6761 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
   6762 	    # Warning - without using the other run time loading flags,
   6763 	    # -berok will link without error, but may produce a broken library.
   6764 	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
   6765 	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
   6766 	    if test yes = "$with_gnu_ld"; then
   6767 	      # We only use this code for GNU lds that support --whole-archive.
   6768 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
   6769 	    else
   6770 	      # Exported symbols can be pulled into shared objects from archives
   6771 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
   6772 	    fi
   6773 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
   6774 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   6775 	    # -brtl affects multiple linker settings, -berok does not and is overridden later
   6776 	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
   6777 	    if test svr4 != "$with_aix_soname"; then
   6778 	      # This is similar to how AIX traditionally builds its shared
   6779 	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
   6780 	      _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'
   6781 	    fi
   6782 	    if test aix != "$with_aix_soname"; then
   6783 	      _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'
   6784 	    else
   6785 	      # used by -dlpreopen to get the symbols
   6786 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   6787 	    fi
   6788 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
   6789           fi
   6790         fi
   6791         ;;
   6792 
   6793       beos*)
   6794 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   6795 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   6796 	  # Joseph Beckenbach <jrb3 (a] best.com> says some releases of gcc
   6797 	  # support --undefined.  This deserves some investigation.  FIXME
   6798 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   6799 	else
   6800 	  _LT_TAGVAR(ld_shlibs, $1)=no
   6801 	fi
   6802 	;;
   6803 
   6804       chorus*)
   6805         case $cc_basename in
   6806           *)
   6807 	  # FIXME: insert proper C++ library support
   6808 	  _LT_TAGVAR(ld_shlibs, $1)=no
   6809 	  ;;
   6810         esac
   6811         ;;
   6812 
   6813       cygwin* | mingw* | windows* | pw32* | cegcc*)
   6814 	case $GXX,$cc_basename in
   6815 	,cl* | no,cl* | ,icl* | no,icl*)
   6816 	  # Native MSVC or ICC
   6817 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
   6818 	  # no search path for DLLs.
   6819 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
   6820 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   6821 	  _LT_TAGVAR(always_export_symbols, $1)=yes
   6822 	  _LT_TAGVAR(file_list_spec, $1)='@'
   6823 	  # Tell ltmain to make .lib files, not .a files.
   6824 	  libext=lib
   6825 	  # Tell ltmain to make .dll files, not .so files.
   6826 	  shrext_cmds=.dll
   6827 	  # FIXME: Setting linknames here is a bad hack.
   6828 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   6829 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
   6830               cp "$export_symbols" "$output_objdir/$soname.def";
   6831               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   6832             else
   6833               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   6834             fi~
   6835             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   6836             linknames='
   6837 	  # The linker will not automatically build a static lib if we build a DLL.
   6838 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
   6839 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   6840 	  # Don't use ranlib
   6841 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
   6842 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
   6843             lt_tool_outputfile="@TOOL_OUTPUT@"~
   6844             case $lt_outputfile in
   6845               *.exe|*.EXE) ;;
   6846               *)
   6847                 lt_outputfile=$lt_outputfile.exe
   6848                 lt_tool_outputfile=$lt_tool_outputfile.exe
   6849                 ;;
   6850             esac~
   6851             func_to_tool_file "$lt_outputfile"~
   6852             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   6853               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   6854               $RM "$lt_outputfile.manifest";
   6855             fi'
   6856 	  ;;
   6857 	*)
   6858 	  # g++
   6859 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
   6860 	  # as there is no search path for DLLs.
   6861 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6862 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
   6863 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   6864 	  _LT_TAGVAR(always_export_symbols, $1)=no
   6865 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   6866 	  _LT_TAGVAR(file_list_spec, $1)='@'
   6867 
   6868 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   6869 	    _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'
   6870 	    # If the export-symbols file already is a .def file, use it as
   6871 	    # is; otherwise, prepend EXPORTS...
   6872 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
   6873               cp $export_symbols $output_objdir/$soname.def;
   6874             else
   6875               echo EXPORTS > $output_objdir/$soname.def;
   6876               cat $export_symbols >> $output_objdir/$soname.def;
   6877             fi~
   6878             $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'
   6879 	  else
   6880 	    _LT_TAGVAR(ld_shlibs, $1)=no
   6881 	  fi
   6882 	  ;;
   6883 	esac
   6884 	;;
   6885       darwin* | rhapsody*)
   6886         _LT_DARWIN_LINKER_FEATURES($1)
   6887 	;;
   6888 
   6889       os2*)
   6890 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
   6891 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
   6892 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
   6893 	shrext_cmds=.dll
   6894 	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   6895 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   6896 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   6897 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
   6898 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   6899 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   6900 	  emximp -o $lib $output_objdir/$libname.def'
   6901 	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   6902 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   6903 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   6904 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
   6905 	  prefix_cmds="$SED"~
   6906 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
   6907 	    prefix_cmds="$prefix_cmds -e 1d";
   6908 	  fi~
   6909 	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   6910 	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   6911 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   6912 	  emximp -o $lib $output_objdir/$libname.def'
   6913 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   6914 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   6915 	_LT_TAGVAR(file_list_spec, $1)='@'
   6916 	;;
   6917 
   6918       dgux*)
   6919         case $cc_basename in
   6920           ec++*)
   6921 	    # FIXME: insert proper C++ library support
   6922 	    _LT_TAGVAR(ld_shlibs, $1)=no
   6923 	    ;;
   6924           ghcx*)
   6925 	    # Green Hills C++ Compiler
   6926 	    # FIXME: insert proper C++ library support
   6927 	    _LT_TAGVAR(ld_shlibs, $1)=no
   6928 	    ;;
   6929           *)
   6930 	    # FIXME: insert proper C++ library support
   6931 	    _LT_TAGVAR(ld_shlibs, $1)=no
   6932 	    ;;
   6933         esac
   6934         ;;
   6935 
   6936       freebsd2.*)
   6937         # C++ shared libraries reported to be fairly broken before
   6938 	# switch to ELF
   6939         _LT_TAGVAR(ld_shlibs, $1)=no
   6940         ;;
   6941 
   6942       freebsd-elf*)
   6943         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   6944         ;;
   6945 
   6946       freebsd* | dragonfly* | midnightbsd*)
   6947         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   6948         # conventions
   6949         _LT_TAGVAR(ld_shlibs, $1)=yes
   6950         ;;
   6951 
   6952       haiku*)
   6953         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   6954         _LT_TAGVAR(link_all_deplibs, $1)=no
   6955         ;;
   6956 
   6957       hpux9*)
   6958         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
   6959         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   6960         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   6961         _LT_TAGVAR(hardcode_direct, $1)=yes
   6962         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
   6963 				             # but as the default
   6964 				             # location of the library.
   6965 
   6966         case $cc_basename in
   6967           CC*)
   6968             # FIXME: insert proper C++ library support
   6969             _LT_TAGVAR(ld_shlibs, $1)=no
   6970             ;;
   6971           aCC*)
   6972             _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'
   6973             # Commands to make compiler produce verbose output that lists
   6974             # what "hidden" libraries, object files and flags are used when
   6975             # linking a shared library.
   6976             #
   6977             # There doesn't appear to be a way to prevent this compiler from
   6978             # explicitly linking system object files so we need to strip them
   6979             # from the output so that they don't get included in the library
   6980             # dependencies.
   6981             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"'
   6982             ;;
   6983           *)
   6984             if test yes = "$GXX"; then
   6985               _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'
   6986             else
   6987               # FIXME: insert proper C++ library support
   6988               _LT_TAGVAR(ld_shlibs, $1)=no
   6989             fi
   6990             ;;
   6991         esac
   6992         ;;
   6993 
   6994       hpux10*|hpux11*)
   6995         if test no = "$with_gnu_ld"; then
   6996 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
   6997 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   6998 
   6999           case $host_cpu in
   7000             hppa*64*|ia64*)
   7001               ;;
   7002             *)
   7003 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   7004               ;;
   7005           esac
   7006         fi
   7007         case $host_cpu in
   7008           hppa*64*|ia64*)
   7009             _LT_TAGVAR(hardcode_direct, $1)=no
   7010             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7011             ;;
   7012           *)
   7013             _LT_TAGVAR(hardcode_direct, $1)=yes
   7014             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   7015             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
   7016 					         # but as the default
   7017 					         # location of the library.
   7018             ;;
   7019         esac
   7020 
   7021         case $cc_basename in
   7022           CC*)
   7023 	    # FIXME: insert proper C++ library support
   7024 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7025 	    ;;
   7026           aCC*)
   7027 	    case $host_cpu in
   7028 	      hppa*64*)
   7029 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   7030 	        ;;
   7031 	      ia64*)
   7032 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   7033 	        ;;
   7034 	      *)
   7035 	        _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'
   7036 	        ;;
   7037 	    esac
   7038 	    # Commands to make compiler produce verbose output that lists
   7039 	    # what "hidden" libraries, object files and flags are used when
   7040 	    # linking a shared library.
   7041 	    #
   7042 	    # There doesn't appear to be a way to prevent this compiler from
   7043 	    # explicitly linking system object files so we need to strip them
   7044 	    # from the output so that they don't get included in the library
   7045 	    # dependencies.
   7046 	    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"'
   7047 	    ;;
   7048           *)
   7049 	    if test yes = "$GXX"; then
   7050 	      if test no = "$with_gnu_ld"; then
   7051 	        case $host_cpu in
   7052 	          hppa*64*)
   7053 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   7054 	            ;;
   7055 	          ia64*)
   7056 	            _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'
   7057 	            ;;
   7058 	          *)
   7059 	            _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'
   7060 	            ;;
   7061 	        esac
   7062 	      fi
   7063 	    else
   7064 	      # FIXME: insert proper C++ library support
   7065 	      _LT_TAGVAR(ld_shlibs, $1)=no
   7066 	    fi
   7067 	    ;;
   7068         esac
   7069         ;;
   7070 
   7071       interix[[3-9]]*)
   7072 	_LT_TAGVAR(hardcode_direct, $1)=no
   7073 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7074 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   7075 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   7076 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   7077 	# Instead, shared libraries are loaded at an image base (0x10000000 by
   7078 	# default) and relocated if they conflict, which is a slow very memory
   7079 	# consuming and fragmenting process.  To avoid this, we pick a random,
   7080 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   7081 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   7082 	_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'
   7083 	_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'
   7084 	;;
   7085       irix5* | irix6*)
   7086         case $cc_basename in
   7087           CC*)
   7088 	    # SGI C++
   7089 	    _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'
   7090 
   7091 	    # Archives containing C++ object files must be created using
   7092 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
   7093 	    # necessary to make sure instantiated templates are included
   7094 	    # in the archive.
   7095 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
   7096 	    ;;
   7097           *)
   7098 	    if test yes = "$GXX"; then
   7099 	      if test no = "$with_gnu_ld"; then
   7100 	        _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'
   7101 	      else
   7102 	        _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'
   7103 	      fi
   7104 	    fi
   7105 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
   7106 	    ;;
   7107         esac
   7108         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   7109         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   7110         _LT_TAGVAR(inherit_rpath, $1)=yes
   7111         ;;
   7112 
   7113       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   7114         case $cc_basename in
   7115           KCC*)
   7116 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   7117 
   7118 	    # KCC will only create a shared library if the output file
   7119 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   7120 	    # to its proper name (with version) after linking.
   7121 	    _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'
   7122 	    _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'
   7123 	    # Commands to make compiler produce verbose output that lists
   7124 	    # what "hidden" libraries, object files and flags are used when
   7125 	    # linking a shared library.
   7126 	    #
   7127 	    # There doesn't appear to be a way to prevent this compiler from
   7128 	    # explicitly linking system object files so we need to strip them
   7129 	    # from the output so that they don't get included in the library
   7130 	    # dependencies.
   7131 	    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"'
   7132 
   7133 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   7134 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   7135 
   7136 	    # Archives containing C++ object files must be created using
   7137 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
   7138 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
   7139 	    ;;
   7140 	  icpc* | ecpc* )
   7141 	    # Intel C++
   7142 	    with_gnu_ld=yes
   7143 	    # version 8.0 and above of icpc choke on multiply defined symbols
   7144 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
   7145 	    # earlier do not add the objects themselves.
   7146 	    case `$CC -V 2>&1` in
   7147 	      *"Version 7."*)
   7148 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
   7149 		_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'
   7150 		;;
   7151 	      *)  # Version 8.0 or newer
   7152 	        tmp_idyn=
   7153 	        case $host_cpu in
   7154 		  ia64*) tmp_idyn=' -i_dynamic';;
   7155 		esac
   7156 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   7157 		_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'
   7158 		;;
   7159 	    esac
   7160 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   7161 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   7162 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   7163 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
   7164 	    ;;
   7165           pgCC* | pgcpp*)
   7166             # Portland Group C++ compiler
   7167 	    case `$CC -V` in
   7168 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
   7169 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
   7170                rm -rf $tpldir~
   7171                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
   7172                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
   7173 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
   7174                 rm -rf $tpldir~
   7175                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
   7176                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
   7177                 $RANLIB $oldlib'
   7178 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
   7179                 rm -rf $tpldir~
   7180                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   7181                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
   7182 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
   7183                 rm -rf $tpldir~
   7184                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
   7185                 $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'
   7186 	      ;;
   7187 	    *) # Version 6 and above use weak symbols
   7188 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
   7189 	      _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'
   7190 	      ;;
   7191 	    esac
   7192 
   7193 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
   7194 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   7195 	    _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'
   7196             ;;
   7197 	  cxx*)
   7198 	    # Compaq C++
   7199 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
   7200 	    _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'
   7201 
   7202 	    runpath_var=LD_RUN_PATH
   7203 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
   7204 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   7205 
   7206 	    # Commands to make compiler produce verbose output that lists
   7207 	    # what "hidden" libraries, object files and flags are used when
   7208 	    # linking a shared library.
   7209 	    #
   7210 	    # There doesn't appear to be a way to prevent this compiler from
   7211 	    # explicitly linking system object files so we need to strip them
   7212 	    # from the output so that they don't get included in the library
   7213 	    # dependencies.
   7214 	    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'
   7215 	    ;;
   7216 	  xl* | mpixl* | bgxl*)
   7217 	    # IBM XL 8.0 on PPC, with GNU ld
   7218 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   7219 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   7220 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   7221 	    if test yes = "$supports_anon_versioning"; then
   7222 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
   7223                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   7224                 echo "local: *; };" >> $output_objdir/$libname.ver~
   7225                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   7226 	    fi
   7227 	    ;;
   7228 	  *)
   7229 	    case `$CC -V 2>&1 | $SED 5q` in
   7230 	    *Sun\ C*)
   7231 	      # Sun C++ 5.9
   7232 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
   7233 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   7234 	      _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'
   7235 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   7236 	      _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'
   7237 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
   7238 
   7239 	      # Not sure whether something based on
   7240 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
   7241 	      # would be better.
   7242 	      output_verbose_link_cmd='func_echo_all'
   7243 
   7244 	      # Archives containing C++ object files must be created using
   7245 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   7246 	      # necessary to make sure instantiated templates are included
   7247 	      # in the archive.
   7248 	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
   7249 	      ;;
   7250 	    esac
   7251 	    ;;
   7252 	esac
   7253 	;;
   7254 
   7255       lynxos*)
   7256         # FIXME: insert proper C++ library support
   7257 	_LT_TAGVAR(ld_shlibs, $1)=no
   7258 	;;
   7259 
   7260       m88k*)
   7261         # FIXME: insert proper C++ library support
   7262         _LT_TAGVAR(ld_shlibs, $1)=no
   7263 	;;
   7264 
   7265       mvs*)
   7266         case $cc_basename in
   7267           cxx*)
   7268 	    # FIXME: insert proper C++ library support
   7269 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7270 	    ;;
   7271 	  *)
   7272 	    # FIXME: insert proper C++ library support
   7273 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7274 	    ;;
   7275 	esac
   7276 	;;
   7277 
   7278       *-mlibc)
   7279         _LT_TAGVAR(ld_shlibs, $1)=yes
   7280 	;;
   7281 
   7282       netbsd*)
   7283         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   7284 	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
   7285 	  wlarc=
   7286 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   7287 	  _LT_TAGVAR(hardcode_direct, $1)=yes
   7288 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7289 	fi
   7290 	# Workaround some broken pre-1.5 toolchains
   7291 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   7292 	;;
   7293 
   7294       *nto* | *qnx*)
   7295         _LT_TAGVAR(ld_shlibs, $1)=yes
   7296 	;;
   7297 
   7298       openbsd*)
   7299 	if test -f /usr/libexec/ld.so; then
   7300 	  _LT_TAGVAR(hardcode_direct, $1)=yes
   7301 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7302 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
   7303 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   7304 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   7305 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
   7306 	    _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'
   7307 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   7308 	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   7309 	  fi
   7310 	  output_verbose_link_cmd=func_echo_all
   7311 	else
   7312 	  _LT_TAGVAR(ld_shlibs, $1)=no
   7313 	fi
   7314 	;;
   7315 
   7316       osf3* | osf4* | osf5*)
   7317         case $cc_basename in
   7318           KCC*)
   7319 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
   7320 
   7321 	    # KCC will only create a shared library if the output file
   7322 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
   7323 	    # to its proper name (with version) after linking.
   7324 	    _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'
   7325 
   7326 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
   7327 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   7328 
   7329 	    # Archives containing C++ object files must be created using
   7330 	    # the KAI C++ compiler.
   7331 	    case $host in
   7332 	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
   7333 	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
   7334 	    esac
   7335 	    ;;
   7336           RCC*)
   7337 	    # Rational C++ 2.4.1
   7338 	    # FIXME: insert proper C++ library support
   7339 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7340 	    ;;
   7341           cxx*)
   7342 	    case $host in
   7343 	      osf3*)
   7344 	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
   7345 	        _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'
   7346 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   7347 		;;
   7348 	      *)
   7349 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
   7350 	        _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'
   7351 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
   7352                   echo "-hidden">> $lib.exp~
   7353                   $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~
   7354                   $RM $lib.exp'
   7355 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
   7356 		;;
   7357 	    esac
   7358 
   7359 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   7360 
   7361 	    # Commands to make compiler produce verbose output that lists
   7362 	    # what "hidden" libraries, object files and flags are used when
   7363 	    # linking a shared library.
   7364 	    #
   7365 	    # There doesn't appear to be a way to prevent this compiler from
   7366 	    # explicitly linking system object files so we need to strip them
   7367 	    # from the output so that they don't get included in the library
   7368 	    # dependencies.
   7369 	    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"'
   7370 	    ;;
   7371 	  *)
   7372 	    if test yes,no = "$GXX,$with_gnu_ld"; then
   7373 	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
   7374 	      case $host in
   7375 	        osf3*)
   7376 	          _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'
   7377 		  ;;
   7378 	        *)
   7379 	          _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'
   7380 		  ;;
   7381 	      esac
   7382 
   7383 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
   7384 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
   7385 
   7386 	      # Commands to make compiler produce verbose output that lists
   7387 	      # what "hidden" libraries, object files and flags are used when
   7388 	      # linking a shared library.
   7389 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"'
   7390 
   7391 	    else
   7392 	      # FIXME: insert proper C++ library support
   7393 	      _LT_TAGVAR(ld_shlibs, $1)=no
   7394 	    fi
   7395 	    ;;
   7396         esac
   7397         ;;
   7398 
   7399       psos*)
   7400         # FIXME: insert proper C++ library support
   7401         _LT_TAGVAR(ld_shlibs, $1)=no
   7402         ;;
   7403 
   7404       serenity*)
   7405         ;;
   7406 
   7407       sunos4*)
   7408         case $cc_basename in
   7409           CC*)
   7410 	    # Sun C++ 4.x
   7411 	    # FIXME: insert proper C++ library support
   7412 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7413 	    ;;
   7414           lcc*)
   7415 	    # Lucid
   7416 	    # FIXME: insert proper C++ library support
   7417 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7418 	    ;;
   7419           *)
   7420 	    # FIXME: insert proper C++ library support
   7421 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7422 	    ;;
   7423         esac
   7424         ;;
   7425 
   7426       solaris*)
   7427         case $cc_basename in
   7428           CC* | sunCC*)
   7429 	    # Sun C++ 4.2, 5.x and Centerline C++
   7430             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
   7431 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
   7432 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   7433 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   7434               $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'
   7435 
   7436 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
   7437 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7438 	    case $host_os in
   7439 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
   7440 	      *)
   7441 		# The compiler driver will combine and reorder linker options,
   7442 		# but understands '-z linker_flag'.
   7443 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
   7444 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
   7445 	        ;;
   7446 	    esac
   7447 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
   7448 
   7449 	    output_verbose_link_cmd='func_echo_all'
   7450 
   7451 	    # Archives containing C++ object files must be created using
   7452 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
   7453 	    # necessary to make sure instantiated templates are included
   7454 	    # in the archive.
   7455 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
   7456 	    ;;
   7457           gcx*)
   7458 	    # Green Hills C++ Compiler
   7459 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
   7460 
   7461 	    # The C++ compiler must be used to create the archive.
   7462 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
   7463 	    ;;
   7464           *)
   7465 	    # GNU C++ compiler with Solaris linker
   7466 	    if test yes,no = "$GXX,$with_gnu_ld"; then
   7467 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
   7468 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
   7469 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
   7470 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   7471                   $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'
   7472 
   7473 	        # Commands to make compiler produce verbose output that lists
   7474 	        # what "hidden" libraries, object files and flags are used when
   7475 	        # linking a shared library.
   7476 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"'
   7477 	      else
   7478 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
   7479 	        # platform.
   7480 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
   7481 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   7482                   $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'
   7483 
   7484 	        # Commands to make compiler produce verbose output that lists
   7485 	        # what "hidden" libraries, object files and flags are used when
   7486 	        # linking a shared library.
   7487 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [[-]]L"'
   7488 	      fi
   7489 
   7490 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
   7491 	      case $host_os in
   7492 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
   7493 		*)
   7494 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   7495 		  ;;
   7496 	      esac
   7497 	    fi
   7498 	    ;;
   7499         esac
   7500         ;;
   7501 
   7502     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
   7503       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
   7504       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   7505       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7506       runpath_var='LD_RUN_PATH'
   7507 
   7508       case $cc_basename in
   7509         CC*)
   7510 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7511 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7512 	  ;;
   7513 	*)
   7514 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7515 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7516 	  ;;
   7517       esac
   7518       ;;
   7519 
   7520       sysv5* | sco3.2v5* | sco5v6*)
   7521 	# Note: We CANNOT use -z defs as we might desire, because we do not
   7522 	# link with -lc, and that would cause any symbols used from libc to
   7523 	# always be unresolved, which means just about no library would
   7524 	# ever link correctly.  If we're not using GNU ld we use -z text
   7525 	# though, which does catch some bad symbols but isn't as heavy-handed
   7526 	# as -z defs.
   7527 	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
   7528 	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
   7529 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
   7530 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
   7531 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
   7532 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
   7533 	_LT_TAGVAR(link_all_deplibs, $1)=yes
   7534 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
   7535 	runpath_var='LD_RUN_PATH'
   7536 
   7537 	case $cc_basename in
   7538           CC*)
   7539 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7540 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7541 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
   7542               '"$_LT_TAGVAR(old_archive_cmds, $1)"
   7543 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
   7544               '"$_LT_TAGVAR(reload_cmds, $1)"
   7545 	    ;;
   7546 	  *)
   7547 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7548 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   7549 	    ;;
   7550 	esac
   7551       ;;
   7552 
   7553       tandem*)
   7554         case $cc_basename in
   7555           NCC*)
   7556 	    # NonStop-UX NCC 3.20
   7557 	    # FIXME: insert proper C++ library support
   7558 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7559 	    ;;
   7560           *)
   7561 	    # FIXME: insert proper C++ library support
   7562 	    _LT_TAGVAR(ld_shlibs, $1)=no
   7563 	    ;;
   7564         esac
   7565         ;;
   7566 
   7567       vxworks*)
   7568         # FIXME: insert proper C++ library support
   7569         _LT_TAGVAR(ld_shlibs, $1)=no
   7570         ;;
   7571 
   7572       *)
   7573         # FIXME: insert proper C++ library support
   7574         _LT_TAGVAR(ld_shlibs, $1)=no
   7575         ;;
   7576     esac
   7577 
   7578     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
   7579     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
   7580 
   7581     _LT_TAGVAR(GCC, $1)=$GXX
   7582     _LT_TAGVAR(LD, $1)=$LD
   7583 
   7584     ## CAVEAT EMPTOR:
   7585     ## There is no encapsulation within the following macros, do not change
   7586     ## the running order or otherwise move them around unless you know exactly
   7587     ## what you are doing...
   7588     _LT_SYS_HIDDEN_LIBDEPS($1)
   7589     _LT_COMPILER_PIC($1)
   7590     _LT_COMPILER_C_O($1)
   7591     _LT_COMPILER_FILE_LOCKS($1)
   7592     _LT_LINKER_SHLIBS($1)
   7593     _LT_SYS_DYNAMIC_LINKER($1)
   7594     _LT_LINKER_HARDCODE_LIBPATH($1)
   7595 
   7596     _LT_CONFIG($1)
   7597   fi # test -n "$compiler"
   7598 
   7599   CC=$lt_save_CC
   7600   CFLAGS=$lt_save_CFLAGS
   7601   LDCXX=$LD
   7602   LD=$lt_save_LD
   7603   GCC=$lt_save_GCC
   7604   with_gnu_ld=$lt_save_with_gnu_ld
   7605   lt_cv_path_LDCXX=$lt_cv_path_LD
   7606   lt_cv_path_LD=$lt_save_path_LD
   7607   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
   7608   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
   7609 fi # test yes != "$_lt_caught_CXX_error"
   7610 
   7611 AC_LANG_POP
   7612 ])# _LT_LANG_CXX_CONFIG
   7613 
   7614 
   7615 # _LT_FUNC_STRIPNAME_CNF
   7616 # ----------------------
   7617 # func_stripname_cnf prefix suffix name
   7618 # strip PREFIX and SUFFIX off of NAME.
   7619 # PREFIX and SUFFIX must not contain globbing or regex special
   7620 # characters, hashes, percent signs, but SUFFIX may contain a leading
   7621 # dot (in which case that matches only a dot).
   7622 #
   7623 # This function is identical to the (non-XSI) version of func_stripname,
   7624 # except this one can be used by m4 code that may be executed by configure,
   7625 # rather than the libtool script.
   7626 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
   7627 AC_REQUIRE([_LT_DECL_SED])
   7628 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
   7629 func_stripname_cnf ()
   7630 {
   7631   case @S|@2 in
   7632   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
   7633   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
   7634   esac
   7635 } # func_stripname_cnf
   7636 ])# _LT_FUNC_STRIPNAME_CNF
   7637 
   7638 
   7639 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
   7640 # ---------------------------------
   7641 # Figure out "hidden" library dependencies from verbose
   7642 # compiler output when linking a shared library.
   7643 # Parse the compiler output and extract the necessary
   7644 # objects, libraries and library flags.
   7645 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
   7646 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   7647 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
   7648 # Dependencies to place before and after the object being linked:
   7649 _LT_TAGVAR(predep_objects, $1)=
   7650 _LT_TAGVAR(postdep_objects, $1)=
   7651 _LT_TAGVAR(predeps, $1)=
   7652 _LT_TAGVAR(postdeps, $1)=
   7653 _LT_TAGVAR(compiler_lib_search_path, $1)=
   7654 
   7655 dnl we can't use the lt_simple_compile_test_code here,
   7656 dnl because it contains code intended for an executable,
   7657 dnl not a library.  It's possible we should let each
   7658 dnl tag define a new lt_????_link_test_code variable,
   7659 dnl but it's only used here...
   7660 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
   7661 int a;
   7662 void foo (void) { a = 0; }
   7663 _LT_EOF
   7664 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
   7665 class Foo
   7666 {
   7667 public:
   7668   Foo (void) { a = 0; }
   7669 private:
   7670   int a;
   7671 };
   7672 _LT_EOF
   7673 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
   7674       subroutine foo
   7675       implicit none
   7676       integer*4 a
   7677       a=0
   7678       return
   7679       end
   7680 _LT_EOF
   7681 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
   7682       subroutine foo
   7683       implicit none
   7684       integer a
   7685       a=0
   7686       return
   7687       end
   7688 _LT_EOF
   7689 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
   7690 public class foo {
   7691   private int a;
   7692   public void bar (void) {
   7693     a = 0;
   7694   }
   7695 };
   7696 _LT_EOF
   7697 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
   7698 package foo
   7699 func foo() {
   7700 }
   7701 _LT_EOF
   7702 ])
   7703 
   7704 _lt_libdeps_save_CFLAGS=$CFLAGS
   7705 case "$CC $CFLAGS " in #(
   7706 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
   7707 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
   7708 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
   7709 esac
   7710 
   7711 dnl Parse the compiler output and extract the necessary
   7712 dnl objects, libraries and library flags.
   7713 if AC_TRY_EVAL(ac_compile); then
   7714   # Parse the compiler output and extract the necessary
   7715   # objects, libraries and library flags.
   7716 
   7717   # Sentinel used to keep track of whether or not we are before
   7718   # the conftest object file.
   7719   pre_test_object_deps_done=no
   7720 
   7721   for p in `eval "$output_verbose_link_cmd"`; do
   7722     case $prev$p in
   7723 
   7724     -L* | -R* | -l*)
   7725        # Some compilers place space between "-{L,R,l}" and the path.
   7726        # Remove the space.
   7727        if test x-L = x"$p" ||
   7728           test x-R = x"$p" ||
   7729           test x-l = x"$p"; then
   7730 	 prev=$p
   7731 	 continue
   7732        fi
   7733 
   7734        # Expand the sysroot to ease extracting the directories later.
   7735        if test -z "$prev"; then
   7736          case $p in
   7737          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
   7738          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
   7739          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
   7740          esac
   7741        fi
   7742        case $p in
   7743        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
   7744        esac
   7745        if test no = "$pre_test_object_deps_done"; then
   7746 	 case $prev in
   7747 	 -L | -R)
   7748 	   # Internal compiler library paths should come after those
   7749 	   # provided the user.  The postdeps already come after the
   7750 	   # user supplied libs so there is no need to process them.
   7751 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
   7752 	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
   7753 	   else
   7754 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
   7755 	   fi
   7756 	   ;;
   7757 	 # The "-l" case would never come before the object being
   7758 	 # linked, so don't bother handling this case.
   7759 	 esac
   7760        else
   7761 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
   7762 	   _LT_TAGVAR(postdeps, $1)=$prev$p
   7763 	 else
   7764 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
   7765 	 fi
   7766        fi
   7767        prev=
   7768        ;;
   7769 
   7770     *.lto.$objext) ;; # Ignore GCC LTO objects
   7771     *.$objext)
   7772        # This assumes that the test object file only shows up
   7773        # once in the compiler output.
   7774        if test "$p" = "conftest.$objext"; then
   7775 	 pre_test_object_deps_done=yes
   7776 	 continue
   7777        fi
   7778 
   7779        if test no = "$pre_test_object_deps_done"; then
   7780 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
   7781 	   _LT_TAGVAR(predep_objects, $1)=$p
   7782 	 else
   7783 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
   7784 	 fi
   7785        else
   7786 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
   7787 	   _LT_TAGVAR(postdep_objects, $1)=$p
   7788 	 else
   7789 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
   7790 	 fi
   7791        fi
   7792        ;;
   7793 
   7794     *) ;; # Ignore the rest.
   7795 
   7796     esac
   7797   done
   7798 
   7799   # Clean up.
   7800   rm -f a.out a.exe
   7801 else
   7802   echo "libtool.m4: error: problem compiling $1 test program"
   7803 fi
   7804 
   7805 $RM -f confest.$objext
   7806 CFLAGS=$_lt_libdeps_save_CFLAGS
   7807 
   7808 # PORTME: override above test on systems where it is broken
   7809 m4_if([$1], [CXX],
   7810 [case $host_os in
   7811 interix[[3-9]]*)
   7812   # Interix 3.5 installs completely hosed .la files for C++, so rather than
   7813   # hack all around it, let's just trust "g++" to DTRT.
   7814   _LT_TAGVAR(predep_objects,$1)=
   7815   _LT_TAGVAR(postdep_objects,$1)=
   7816   _LT_TAGVAR(postdeps,$1)=
   7817   ;;
   7818 esac
   7819 ])
   7820 
   7821 case " $_LT_TAGVAR(postdeps, $1) " in
   7822 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
   7823 esac
   7824  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
   7825 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
   7826  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
   7827 fi
   7828 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
   7829     [The directories searched by this compiler when creating a shared library])
   7830 _LT_TAGDECL([], [predep_objects], [1],
   7831     [Dependencies to place before and after the objects being linked to
   7832     create a shared library])
   7833 _LT_TAGDECL([], [postdep_objects], [1])
   7834 _LT_TAGDECL([], [predeps], [1])
   7835 _LT_TAGDECL([], [postdeps], [1])
   7836 _LT_TAGDECL([], [compiler_lib_search_path], [1],
   7837     [The library search path used internally by the compiler when linking
   7838     a shared library])
   7839 ])# _LT_SYS_HIDDEN_LIBDEPS
   7840 
   7841 
   7842 # _LT_LANG_F77_CONFIG([TAG])
   7843 # --------------------------
   7844 # Ensure that the configuration variables for a Fortran 77 compiler are
   7845 # suitably defined.  These variables are subsequently used by _LT_CONFIG
   7846 # to write the compiler configuration to 'libtool'.
   7847 m4_defun([_LT_LANG_F77_CONFIG],
   7848 [AC_LANG_PUSH(Fortran 77)
   7849 if test -z "$F77" || test no = "$F77"; then
   7850   _lt_disable_F77=yes
   7851 fi
   7852 
   7853 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   7854 _LT_TAGVAR(allow_undefined_flag, $1)=
   7855 _LT_TAGVAR(always_export_symbols, $1)=no
   7856 _LT_TAGVAR(archive_expsym_cmds, $1)=
   7857 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
   7858 _LT_TAGVAR(hardcode_direct, $1)=no
   7859 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   7860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
   7861 _LT_TAGVAR(hardcode_libdir_separator, $1)=
   7862 _LT_TAGVAR(hardcode_minus_L, $1)=no
   7863 _LT_TAGVAR(hardcode_automatic, $1)=no
   7864 _LT_TAGVAR(inherit_rpath, $1)=no
   7865 _LT_TAGVAR(module_cmds, $1)=
   7866 _LT_TAGVAR(module_expsym_cmds, $1)=
   7867 _LT_TAGVAR(link_all_deplibs, $1)=unknown
   7868 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
   7869 _LT_TAGVAR(reload_flag, $1)=$reload_flag
   7870 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
   7871 _LT_TAGVAR(no_undefined_flag, $1)=
   7872 _LT_TAGVAR(whole_archive_flag_spec, $1)=
   7873 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
   7874 
   7875 # Source file extension for f77 test sources.
   7876 ac_ext=f
   7877 
   7878 # Object file extension for compiled f77 test sources.
   7879 objext=o
   7880 _LT_TAGVAR(objext, $1)=$objext
   7881 
   7882 # No sense in running all these tests if we already determined that
   7883 # the F77 compiler isn't working.  Some variables (like enable_shared)
   7884 # are currently assumed to apply to all compilers on this platform,
   7885 # and will be corrupted by setting them based on a non-working compiler.
   7886 if test yes != "$_lt_disable_F77"; then
   7887   # Code to be used in simple compile tests
   7888   lt_simple_compile_test_code="\
   7889       subroutine t
   7890       return
   7891       end
   7892 "
   7893 
   7894   # Code to be used in simple link tests
   7895   lt_simple_link_test_code="\
   7896       program t
   7897       end
   7898 "
   7899 
   7900   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   7901   _LT_TAG_COMPILER
   7902 
   7903   # save warnings/boilerplate of simple test code
   7904   _LT_COMPILER_BOILERPLATE
   7905   _LT_LINKER_BOILERPLATE
   7906 
   7907   # Allow CC to be a program name with arguments.
   7908   lt_save_CC=$CC
   7909   lt_save_GCC=$GCC
   7910   lt_save_CFLAGS=$CFLAGS
   7911   CC=${F77-"f77"}
   7912   CFLAGS=$FFLAGS
   7913   compiler=$CC
   7914   _LT_TAGVAR(compiler, $1)=$CC
   7915   _LT_CC_BASENAME([$compiler])
   7916   GCC=$G77
   7917   if test -n "$compiler"; then
   7918     AC_MSG_CHECKING([if libtool supports shared libraries])
   7919     AC_MSG_RESULT([$can_build_shared])
   7920 
   7921     AC_MSG_CHECKING([whether to build shared libraries])
   7922     test no = "$can_build_shared" && enable_shared=no
   7923 
   7924     # On AIX, shared libraries and static libraries use the same namespace, and
   7925     # are all built from PIC.
   7926     case $host_os in
   7927       aix3*)
   7928         test yes = "$enable_shared" && enable_static=no
   7929         if test -n "$RANLIB"; then
   7930           archive_cmds="$archive_cmds~\$RANLIB \$lib"
   7931           postinstall_cmds='$RANLIB $lib'
   7932         fi
   7933         ;;
   7934       aix[[4-9]]*)
   7935 	if test ia64 != "$host_cpu"; then
   7936 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   7937 	  yes,aix,yes) ;;		# shared object as lib.so file only
   7938 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
   7939 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   7940 	  esac
   7941 	fi
   7942         ;;
   7943     esac
   7944     AC_MSG_RESULT([$enable_shared])
   7945 
   7946     AC_MSG_CHECKING([whether to build static libraries])
   7947     # Make sure either enable_shared or enable_static is yes.
   7948     test yes = "$enable_shared" || enable_static=yes
   7949     AC_MSG_RESULT([$enable_static])
   7950 
   7951     _LT_TAGVAR(GCC, $1)=$G77
   7952     _LT_TAGVAR(LD, $1)=$LD
   7953 
   7954     ## CAVEAT EMPTOR:
   7955     ## There is no encapsulation within the following macros, do not change
   7956     ## the running order or otherwise move them around unless you know exactly
   7957     ## what you are doing...
   7958     _LT_COMPILER_PIC($1)
   7959     _LT_COMPILER_C_O($1)
   7960     _LT_COMPILER_FILE_LOCKS($1)
   7961     _LT_LINKER_SHLIBS($1)
   7962     _LT_SYS_DYNAMIC_LINKER($1)
   7963     _LT_LINKER_HARDCODE_LIBPATH($1)
   7964 
   7965     _LT_CONFIG($1)
   7966   fi # test -n "$compiler"
   7967 
   7968   GCC=$lt_save_GCC
   7969   CC=$lt_save_CC
   7970   CFLAGS=$lt_save_CFLAGS
   7971 fi # test yes != "$_lt_disable_F77"
   7972 
   7973 AC_LANG_POP
   7974 ])# _LT_LANG_F77_CONFIG
   7975 
   7976 
   7977 # _LT_LANG_FC_CONFIG([TAG])
   7978 # -------------------------
   7979 # Ensure that the configuration variables for a Fortran compiler are
   7980 # suitably defined.  These variables are subsequently used by _LT_CONFIG
   7981 # to write the compiler configuration to 'libtool'.
   7982 m4_defun([_LT_LANG_FC_CONFIG],
   7983 [AC_LANG_PUSH(Fortran)
   7984 
   7985 if test -z "$FC" || test no = "$FC"; then
   7986   _lt_disable_FC=yes
   7987 fi
   7988 
   7989 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   7990 _LT_TAGVAR(allow_undefined_flag, $1)=
   7991 _LT_TAGVAR(always_export_symbols, $1)=no
   7992 _LT_TAGVAR(archive_expsym_cmds, $1)=
   7993 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
   7994 _LT_TAGVAR(hardcode_direct, $1)=no
   7995 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
   7996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
   7997 _LT_TAGVAR(hardcode_libdir_separator, $1)=
   7998 _LT_TAGVAR(hardcode_minus_L, $1)=no
   7999 _LT_TAGVAR(hardcode_automatic, $1)=no
   8000 _LT_TAGVAR(inherit_rpath, $1)=no
   8001 _LT_TAGVAR(module_cmds, $1)=
   8002 _LT_TAGVAR(module_expsym_cmds, $1)=
   8003 _LT_TAGVAR(link_all_deplibs, $1)=unknown
   8004 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
   8005 _LT_TAGVAR(reload_flag, $1)=$reload_flag
   8006 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
   8007 _LT_TAGVAR(no_undefined_flag, $1)=
   8008 _LT_TAGVAR(whole_archive_flag_spec, $1)=
   8009 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
   8010 
   8011 # Source file extension for fc test sources.
   8012 ac_ext=${ac_fc_srcext-f}
   8013 
   8014 # Object file extension for compiled fc test sources.
   8015 objext=o
   8016 _LT_TAGVAR(objext, $1)=$objext
   8017 
   8018 # No sense in running all these tests if we already determined that
   8019 # the FC compiler isn't working.  Some variables (like enable_shared)
   8020 # are currently assumed to apply to all compilers on this platform,
   8021 # and will be corrupted by setting them based on a non-working compiler.
   8022 if test yes != "$_lt_disable_FC"; then
   8023   # Code to be used in simple compile tests
   8024   lt_simple_compile_test_code="\
   8025       subroutine t
   8026       return
   8027       end
   8028 "
   8029 
   8030   # Code to be used in simple link tests
   8031   lt_simple_link_test_code="\
   8032       program t
   8033       end
   8034 "
   8035 
   8036   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   8037   _LT_TAG_COMPILER
   8038 
   8039   # save warnings/boilerplate of simple test code
   8040   _LT_COMPILER_BOILERPLATE
   8041   _LT_LINKER_BOILERPLATE
   8042 
   8043   # Allow CC to be a program name with arguments.
   8044   lt_save_CC=$CC
   8045   lt_save_GCC=$GCC
   8046   lt_save_CFLAGS=$CFLAGS
   8047   CC=${FC-"f95"}
   8048   CFLAGS=$FCFLAGS
   8049   compiler=$CC
   8050   GCC=$ac_cv_fc_compiler_gnu
   8051 
   8052   _LT_TAGVAR(compiler, $1)=$CC
   8053   _LT_CC_BASENAME([$compiler])
   8054 
   8055   if test -n "$compiler"; then
   8056     AC_MSG_CHECKING([if libtool supports shared libraries])
   8057     AC_MSG_RESULT([$can_build_shared])
   8058 
   8059     AC_MSG_CHECKING([whether to build shared libraries])
   8060     test no = "$can_build_shared" && enable_shared=no
   8061 
   8062     # On AIX, shared libraries and static libraries use the same namespace, and
   8063     # are all built from PIC.
   8064     case $host_os in
   8065       aix3*)
   8066         test yes = "$enable_shared" && enable_static=no
   8067         if test -n "$RANLIB"; then
   8068           archive_cmds="$archive_cmds~\$RANLIB \$lib"
   8069           postinstall_cmds='$RANLIB $lib'
   8070         fi
   8071         ;;
   8072       aix[[4-9]]*)
   8073 	if test ia64 != "$host_cpu"; then
   8074 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   8075 	  yes,aix,yes) ;;		# shared object as lib.so file only
   8076 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
   8077 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   8078 	  esac
   8079 	fi
   8080         ;;
   8081     esac
   8082     AC_MSG_RESULT([$enable_shared])
   8083 
   8084     AC_MSG_CHECKING([whether to build static libraries])
   8085     # Make sure either enable_shared or enable_static is yes.
   8086     test yes = "$enable_shared" || enable_static=yes
   8087     AC_MSG_RESULT([$enable_static])
   8088 
   8089     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
   8090     _LT_TAGVAR(LD, $1)=$LD
   8091 
   8092     ## CAVEAT EMPTOR:
   8093     ## There is no encapsulation within the following macros, do not change
   8094     ## the running order or otherwise move them around unless you know exactly
   8095     ## what you are doing...
   8096     _LT_SYS_HIDDEN_LIBDEPS($1)
   8097     _LT_COMPILER_PIC($1)
   8098     _LT_COMPILER_C_O($1)
   8099     _LT_COMPILER_FILE_LOCKS($1)
   8100     _LT_LINKER_SHLIBS($1)
   8101     _LT_SYS_DYNAMIC_LINKER($1)
   8102     _LT_LINKER_HARDCODE_LIBPATH($1)
   8103 
   8104     _LT_CONFIG($1)
   8105   fi # test -n "$compiler"
   8106 
   8107   GCC=$lt_save_GCC
   8108   CC=$lt_save_CC
   8109   CFLAGS=$lt_save_CFLAGS
   8110 fi # test yes != "$_lt_disable_FC"
   8111 
   8112 AC_LANG_POP
   8113 ])# _LT_LANG_FC_CONFIG
   8114 
   8115 
   8116 # _LT_LANG_GCJ_CONFIG([TAG])
   8117 # --------------------------
   8118 # Ensure that the configuration variables for the GNU Java Compiler compiler
   8119 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
   8120 # to write the compiler configuration to 'libtool'.
   8121 m4_defun([_LT_LANG_GCJ_CONFIG],
   8122 [AC_REQUIRE([LT_PROG_GCJ])dnl
   8123 AC_LANG_SAVE
   8124 
   8125 # Source file extension for Java test sources.
   8126 ac_ext=java
   8127 
   8128 # Object file extension for compiled Java test sources.
   8129 objext=o
   8130 _LT_TAGVAR(objext, $1)=$objext
   8131 
   8132 # Code to be used in simple compile tests
   8133 lt_simple_compile_test_code="class foo {}"
   8134 
   8135 # Code to be used in simple link tests
   8136 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
   8137 
   8138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   8139 _LT_TAG_COMPILER
   8140 
   8141 # save warnings/boilerplate of simple test code
   8142 _LT_COMPILER_BOILERPLATE
   8143 _LT_LINKER_BOILERPLATE
   8144 
   8145 # Allow CC to be a program name with arguments.
   8146 lt_save_CC=$CC
   8147 lt_save_CFLAGS=$CFLAGS
   8148 lt_save_GCC=$GCC
   8149 GCC=yes
   8150 CC=${GCJ-"gcj"}
   8151 CFLAGS=$GCJFLAGS
   8152 compiler=$CC
   8153 _LT_TAGVAR(compiler, $1)=$CC
   8154 _LT_TAGVAR(LD, $1)=$LD
   8155 _LT_CC_BASENAME([$compiler])
   8156 
   8157 # GCJ did not exist at the time GCC didn't implicitly link libc in.
   8158 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   8159 
   8160 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
   8161 _LT_TAGVAR(reload_flag, $1)=$reload_flag
   8162 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
   8163 
   8164 ## CAVEAT EMPTOR:
   8165 ## There is no encapsulation within the following macros, do not change
   8166 ## the running order or otherwise move them around unless you know exactly
   8167 ## what you are doing...
   8168 if test -n "$compiler"; then
   8169   _LT_COMPILER_NO_RTTI($1)
   8170   _LT_COMPILER_PIC($1)
   8171   _LT_COMPILER_C_O($1)
   8172   _LT_COMPILER_FILE_LOCKS($1)
   8173   _LT_LINKER_SHLIBS($1)
   8174   _LT_LINKER_HARDCODE_LIBPATH($1)
   8175 
   8176   _LT_CONFIG($1)
   8177 fi
   8178 
   8179 AC_LANG_RESTORE
   8180 
   8181 GCC=$lt_save_GCC
   8182 CC=$lt_save_CC
   8183 CFLAGS=$lt_save_CFLAGS
   8184 ])# _LT_LANG_GCJ_CONFIG
   8185 
   8186 
   8187 # _LT_LANG_GO_CONFIG([TAG])
   8188 # --------------------------
   8189 # Ensure that the configuration variables for the GNU Go compiler
   8190 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
   8191 # to write the compiler configuration to 'libtool'.
   8192 m4_defun([_LT_LANG_GO_CONFIG],
   8193 [AC_REQUIRE([LT_PROG_GO])dnl
   8194 AC_LANG_SAVE
   8195 
   8196 # Source file extension for Go test sources.
   8197 ac_ext=go
   8198 
   8199 # Object file extension for compiled Go test sources.
   8200 objext=o
   8201 _LT_TAGVAR(objext, $1)=$objext
   8202 
   8203 # Code to be used in simple compile tests
   8204 lt_simple_compile_test_code="package main; func main() { }"
   8205 
   8206 # Code to be used in simple link tests
   8207 lt_simple_link_test_code='package main; func main() { }'
   8208 
   8209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   8210 _LT_TAG_COMPILER
   8211 
   8212 # save warnings/boilerplate of simple test code
   8213 _LT_COMPILER_BOILERPLATE
   8214 _LT_LINKER_BOILERPLATE
   8215 
   8216 # Allow CC to be a program name with arguments.
   8217 lt_save_CC=$CC
   8218 lt_save_CFLAGS=$CFLAGS
   8219 lt_save_GCC=$GCC
   8220 GCC=yes
   8221 CC=${GOC-"gccgo"}
   8222 CFLAGS=$GOFLAGS
   8223 compiler=$CC
   8224 _LT_TAGVAR(compiler, $1)=$CC
   8225 _LT_TAGVAR(LD, $1)=$LD
   8226 _LT_CC_BASENAME([$compiler])
   8227 
   8228 # Go did not exist at the time GCC didn't implicitly link libc in.
   8229 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
   8230 
   8231 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
   8232 _LT_TAGVAR(reload_flag, $1)=$reload_flag
   8233 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
   8234 
   8235 ## CAVEAT EMPTOR:
   8236 ## There is no encapsulation within the following macros, do not change
   8237 ## the running order or otherwise move them around unless you know exactly
   8238 ## what you are doing...
   8239 if test -n "$compiler"; then
   8240   _LT_COMPILER_NO_RTTI($1)
   8241   _LT_COMPILER_PIC($1)
   8242   _LT_COMPILER_C_O($1)
   8243   _LT_COMPILER_FILE_LOCKS($1)
   8244   _LT_LINKER_SHLIBS($1)
   8245   _LT_LINKER_HARDCODE_LIBPATH($1)
   8246 
   8247   _LT_CONFIG($1)
   8248 fi
   8249 
   8250 AC_LANG_RESTORE
   8251 
   8252 GCC=$lt_save_GCC
   8253 CC=$lt_save_CC
   8254 CFLAGS=$lt_save_CFLAGS
   8255 ])# _LT_LANG_GO_CONFIG
   8256 
   8257 
   8258 # _LT_LANG_RC_CONFIG([TAG])
   8259 # -------------------------
   8260 # Ensure that the configuration variables for the Windows resource compiler
   8261 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
   8262 # to write the compiler configuration to 'libtool'.
   8263 m4_defun([_LT_LANG_RC_CONFIG],
   8264 [AC_REQUIRE([LT_PROG_RC])dnl
   8265 AC_LANG_SAVE
   8266 
   8267 # Source file extension for RC test sources.
   8268 ac_ext=rc
   8269 
   8270 # Object file extension for compiled RC test sources.
   8271 objext=o
   8272 _LT_TAGVAR(objext, $1)=$objext
   8273 
   8274 # Code to be used in simple compile tests
   8275 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
   8276 
   8277 # Code to be used in simple link tests
   8278 lt_simple_link_test_code=$lt_simple_compile_test_code
   8279 
   8280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   8281 _LT_TAG_COMPILER
   8282 
   8283 # save warnings/boilerplate of simple test code
   8284 _LT_COMPILER_BOILERPLATE
   8285 _LT_LINKER_BOILERPLATE
   8286 
   8287 # Allow CC to be a program name with arguments.
   8288 lt_save_CC=$CC
   8289 lt_save_CFLAGS=$CFLAGS
   8290 lt_save_GCC=$GCC
   8291 GCC=
   8292 CC=${RC-"windres"}
   8293 CFLAGS=
   8294 compiler=$CC
   8295 _LT_TAGVAR(compiler, $1)=$CC
   8296 _LT_CC_BASENAME([$compiler])
   8297 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   8298 
   8299 if test -n "$compiler"; then
   8300   :
   8301   _LT_CONFIG($1)
   8302 fi
   8303 
   8304 GCC=$lt_save_GCC
   8305 AC_LANG_RESTORE
   8306 CC=$lt_save_CC
   8307 CFLAGS=$lt_save_CFLAGS
   8308 ])# _LT_LANG_RC_CONFIG
   8309 
   8310 
   8311 # LT_PROG_GCJ
   8312 # -----------
   8313 AC_DEFUN([LT_PROG_GCJ],
   8314 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
   8315   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
   8316     [AC_CHECK_TOOL(GCJ, gcj,)
   8317       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
   8318       AC_SUBST(GCJFLAGS)])])[]dnl
   8319 ])
   8320 
   8321 # Old name:
   8322 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
   8323 dnl aclocal-1.4 backwards compatibility:
   8324 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
   8325 
   8326 
   8327 # LT_PROG_GO
   8328 # ----------
   8329 AC_DEFUN([LT_PROG_GO],
   8330 [AC_CHECK_TOOL(GOC, gccgo,)
   8331 ])
   8332 
   8333 
   8334 # LT_PROG_RC
   8335 # ----------
   8336 AC_DEFUN([LT_PROG_RC],
   8337 [AC_CHECK_TOOL(RC, windres,)
   8338 ])
   8339 
   8340 # Old name:
   8341 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
   8342 dnl aclocal-1.4 backwards compatibility:
   8343 dnl AC_DEFUN([LT_AC_PROG_RC], [])
   8344 
   8345 
   8346 # _LT_DECL_EGREP
   8347 # --------------
   8348 # If we don't have a new enough Autoconf to choose the best grep
   8349 # available, choose the one first in the user's PATH.
   8350 m4_defun([_LT_DECL_EGREP],
   8351 [AC_REQUIRE([AC_PROG_EGREP])dnl
   8352 AC_REQUIRE([AC_PROG_FGREP])dnl
   8353 test -z "$GREP" && GREP=grep
   8354 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
   8355 _LT_DECL([], [EGREP], [1], [An ERE matcher])
   8356 _LT_DECL([], [FGREP], [1], [A literal string matcher])
   8357 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
   8358 AC_SUBST([GREP])
   8359 ])
   8360 
   8361 
   8362 # _LT_DECL_OBJDUMP
   8363 # --------------
   8364 # If we don't have a new enough Autoconf to choose the best objdump
   8365 # available, choose the one first in the user's PATH.
   8366 m4_defun([_LT_DECL_OBJDUMP],
   8367 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
   8368 test -z "$OBJDUMP" && OBJDUMP=objdump
   8369 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
   8370 AC_SUBST([OBJDUMP])
   8371 ])
   8372 
   8373 # _LT_DECL_DLLTOOL
   8374 # ----------------
   8375 # Ensure DLLTOOL variable is set.
   8376 m4_defun([_LT_DECL_DLLTOOL],
   8377 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   8378 test -z "$DLLTOOL" && DLLTOOL=dlltool
   8379 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
   8380 AC_SUBST([DLLTOOL])
   8381 ])
   8382 
   8383 # _LT_DECL_FILECMD
   8384 # ----------------
   8385 # Check for a file(cmd) program that can be used to detect file type and magic
   8386 m4_defun([_LT_DECL_FILECMD],
   8387 [AC_CHECK_PROG([FILECMD], [file], [file], [:])
   8388 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
   8389 ])# _LD_DECL_FILECMD
   8390 
   8391 # _LT_DECL_SED
   8392 # ------------
   8393 # Check for a fully-functional sed program, that truncates
   8394 # as few characters as possible.  Prefer GNU sed if found.
   8395 m4_defun([_LT_DECL_SED],
   8396 [AC_PROG_SED
   8397 test -z "$SED" && SED=sed
   8398 Xsed="$SED -e 1s/^X//"
   8399 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
   8400 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
   8401     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
   8402 ])# _LT_DECL_SED
   8403 dnl aclocal-1.4 backwards compatibility:
   8404 dnl AC_DEFUN([LT_AC_PROG_SED], [])
   8405 
   8406 
   8407 # _LT_CHECK_SHELL_FEATURES
   8408 # ------------------------
   8409 # Find out whether the shell is Bourne or XSI compatible,
   8410 # or has some other useful features.
   8411 m4_defun([_LT_CHECK_SHELL_FEATURES],
   8412 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   8413   lt_unset=unset
   8414 else
   8415   lt_unset=false
   8416 fi
   8417 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
   8418 
   8419 # test EBCDIC or ASCII
   8420 case `echo X|tr X '\101'` in
   8421  A) # ASCII based system
   8422     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   8423   lt_SP2NL='tr \040 \012'
   8424   lt_NL2SP='tr \015\012 \040\040'
   8425   ;;
   8426  *) # EBCDIC based system
   8427   lt_SP2NL='tr \100 \n'
   8428   lt_NL2SP='tr \r\n \100\100'
   8429   ;;
   8430 esac
   8431 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
   8432 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
   8433 ])# _LT_CHECK_SHELL_FEATURES
   8434 
   8435 
   8436 # _LT_PATH_CONVERSION_FUNCTIONS
   8437 # -----------------------------
   8438 # Determine what file name conversion functions should be used by
   8439 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
   8440 # for certain cross-compile configurations and native mingw.
   8441 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
   8442 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
   8443 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   8444 AC_MSG_CHECKING([how to convert $build file names to $host format])
   8445 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
   8446 [case $host in
   8447   *-*-mingw* )
   8448     case $build in
   8449       *-*-mingw* | *-*-windows* ) # actually msys
   8450         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   8451         ;;
   8452       *-*-cygwin* )
   8453         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   8454         ;;
   8455       * ) # otherwise, assume *nix
   8456         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   8457         ;;
   8458     esac
   8459     ;;
   8460   *-*-cygwin* )
   8461     case $build in
   8462       *-*-mingw* | *-*-windows* ) # actually msys
   8463         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   8464         ;;
   8465       *-*-cygwin* )
   8466         lt_cv_to_host_file_cmd=func_convert_file_noop
   8467         ;;
   8468       * ) # otherwise, assume *nix
   8469         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   8470         ;;
   8471     esac
   8472     ;;
   8473   * ) # unhandled hosts (and "normal" native builds)
   8474     lt_cv_to_host_file_cmd=func_convert_file_noop
   8475     ;;
   8476 esac
   8477 ])
   8478 to_host_file_cmd=$lt_cv_to_host_file_cmd
   8479 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
   8480 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
   8481          [0], [convert $build file names to $host format])dnl
   8482 
   8483 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
   8484 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
   8485 [#assume ordinary cross tools, or native build.
   8486 lt_cv_to_tool_file_cmd=func_convert_file_noop
   8487 case $host in
   8488   *-*-mingw* | *-*-windows* )
   8489     case $build in
   8490       *-*-mingw* | *-*-windows* ) # actually msys
   8491         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   8492         ;;
   8493     esac
   8494     ;;
   8495 esac
   8496 ])
   8497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   8498 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
   8499 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
   8500          [0], [convert $build files to toolchain format])dnl
   8501 ])# _LT_PATH_CONVERSION_FUNCTIONS
   8502