"Fossies" - the Fresh Open Source Software Archive

Member "alsa-oss-1.1.8/aclocal.m4" (7 Jan 2019, 349995 Bytes) of package /linux/misc/alsa-oss-1.1.8.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "aclocal.m4": 1.1.6_vs_1.1.8.

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


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