[BACK]Return to aclocal.m4 CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018

Annotation of OpenXM_contrib2/asir2018/aclocal.m4, Revision 1.5

1.5     ! ohara       1: # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1.1       noro        2:
1.5     ! ohara       3: # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1.1       noro        4:
                      5: # This file is free software; the Free Software Foundation
                      6: # gives unlimited permission to copy and/or distribute it,
                      7: # with or without modifications, as long as this notice is preserved.
                      8:
                      9: # This program is distributed in the hope that it will be useful,
                     10: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
                     11: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
                     12: # PARTICULAR PURPOSE.
                     13:
                     14: m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
                     15: m4_ifndef([AC_AUTOCONF_VERSION],
                     16:   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1.5     ! ohara      17: m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
        !            18: [m4_warning([this file was generated for autoconf 2.71.
1.1       noro       19: You have another version of autoconf.  It may work, but is not guaranteed to.
                     20: If you have problems, you may need to regenerate the build system entirely.
                     21: To do so, use the procedure documented by the package, typically 'autoreconf'.])])
                     22:
1.4       ohara      23: # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
                     24: #
1.5     ! ohara      25: #   Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
        !            26: #   Foundation, Inc.
1.4       ohara      27: #   Written by Gordon Matzigkeit, 1996
                     28: #
                     29: # This file is free software; the Free Software Foundation gives
                     30: # unlimited permission to copy and/or distribute it, with or without
                     31: # modifications, as long as this notice is preserved.
                     32:
                     33: m4_define([_LT_COPYING], [dnl
                     34: # Copyright (C) 2014 Free Software Foundation, Inc.
                     35: # This is free software; see the source for copying conditions.  There is NO
                     36: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
                     37:
                     38: # GNU Libtool is free software; you can redistribute it and/or modify
                     39: # it under the terms of the GNU General Public License as published by
                     40: # the Free Software Foundation; either version 2 of of the License, or
                     41: # (at your option) any later version.
                     42: #
                     43: # As a special exception to the GNU General Public License, if you
                     44: # distribute this file as part of a program or library that is built
                     45: # using GNU Libtool, you may include this file under the  same
                     46: # distribution terms that you use for the rest of that program.
                     47: #
                     48: # GNU Libtool is distributed in the hope that it will be useful, but
                     49: # WITHOUT ANY WARRANTY; without even the implied warranty of
                     50: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     51: # GNU General Public License for more details.
                     52: #
                     53: # You should have received a copy of the GNU General Public License
                     54: # along with this program.  If not, see <http://www.gnu.org/licenses/>.
                     55: ])
                     56:
1.5     ! ohara      57: # serial 59 LT_INIT
1.4       ohara      58:
                     59:
                     60: # LT_PREREQ(VERSION)
                     61: # ------------------
                     62: # Complain and exit if this libtool version is less that VERSION.
                     63: m4_defun([LT_PREREQ],
                     64: [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
                     65:        [m4_default([$3],
                     66:                   [m4_fatal([Libtool version $1 or higher is required],
                     67:                             63)])],
                     68:        [$2])])
                     69:
                     70:
                     71: # _LT_CHECK_BUILDDIR
                     72: # ------------------
                     73: # Complain if the absolute build directory name contains unusual characters
                     74: m4_defun([_LT_CHECK_BUILDDIR],
                     75: [case `pwd` in
                     76:   *\ * | *\    *)
                     77:     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
                     78: esac
                     79: ])
                     80:
                     81:
                     82: # LT_INIT([OPTIONS])
                     83: # ------------------
                     84: AC_DEFUN([LT_INIT],
                     85: [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
                     86: AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
                     87: AC_BEFORE([$0], [LT_LANG])dnl
                     88: AC_BEFORE([$0], [LT_OUTPUT])dnl
                     89: AC_BEFORE([$0], [LTDL_INIT])dnl
                     90: m4_require([_LT_CHECK_BUILDDIR])dnl
                     91:
                     92: dnl Autoconf doesn't catch unexpanded LT_ macros by default:
                     93: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
                     94: m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
                     95: dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
                     96: dnl unless we require an AC_DEFUNed macro:
                     97: AC_REQUIRE([LTOPTIONS_VERSION])dnl
                     98: AC_REQUIRE([LTSUGAR_VERSION])dnl
                     99: AC_REQUIRE([LTVERSION_VERSION])dnl
                    100: AC_REQUIRE([LTOBSOLETE_VERSION])dnl
                    101: m4_require([_LT_PROG_LTMAIN])dnl
                    102:
                    103: _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
                    104:
                    105: dnl Parse OPTIONS
                    106: _LT_SET_OPTIONS([$0], [$1])
                    107:
                    108: # This can be used to rebuild libtool when needed
                    109: LIBTOOL_DEPS=$ltmain
                    110:
                    111: # Always use our own libtool.
                    112: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                    113: AC_SUBST(LIBTOOL)dnl
                    114:
                    115: _LT_SETUP
                    116:
                    117: # Only expand once:
                    118: m4_define([LT_INIT])
                    119: ])# LT_INIT
                    120:
                    121: # Old names:
                    122: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
                    123: AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
                    124: dnl aclocal-1.4 backwards compatibility:
                    125: dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
                    126: dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
                    127:
                    128:
                    129: # _LT_PREPARE_CC_BASENAME
                    130: # -----------------------
                    131: m4_defun([_LT_PREPARE_CC_BASENAME], [
                    132: # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
                    133: func_cc_basename ()
                    134: {
                    135:     for cc_temp in @S|@*""; do
                    136:       case $cc_temp in
                    137:         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
                    138:         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
                    139:         \-*) ;;
                    140:         *) break;;
                    141:       esac
                    142:     done
                    143:     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
                    144: }
                    145: ])# _LT_PREPARE_CC_BASENAME
                    146:
                    147:
                    148: # _LT_CC_BASENAME(CC)
                    149: # -------------------
                    150: # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
                    151: # but that macro is also expanded into generated libtool script, which
                    152: # arranges for $SED and $ECHO to be set by different means.
                    153: m4_defun([_LT_CC_BASENAME],
                    154: [m4_require([_LT_PREPARE_CC_BASENAME])dnl
                    155: AC_REQUIRE([_LT_DECL_SED])dnl
                    156: AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
                    157: func_cc_basename $1
                    158: cc_basename=$func_cc_basename_result
                    159: ])
                    160:
                    161:
                    162: # _LT_FILEUTILS_DEFAULTS
                    163: # ----------------------
                    164: # It is okay to use these file commands and assume they have been set
                    165: # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
                    166: m4_defun([_LT_FILEUTILS_DEFAULTS],
                    167: [: ${CP="cp -f"}
                    168: : ${MV="mv -f"}
                    169: : ${RM="rm -f"}
                    170: ])# _LT_FILEUTILS_DEFAULTS
                    171:
                    172:
                    173: # _LT_SETUP
                    174: # ---------
                    175: m4_defun([_LT_SETUP],
                    176: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                    177: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
                    178: AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
                    179: AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
                    180:
                    181: _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
                    182: dnl
                    183: _LT_DECL([], [host_alias], [0], [The host system])dnl
                    184: _LT_DECL([], [host], [0])dnl
                    185: _LT_DECL([], [host_os], [0])dnl
                    186: dnl
                    187: _LT_DECL([], [build_alias], [0], [The build system])dnl
                    188: _LT_DECL([], [build], [0])dnl
                    189: _LT_DECL([], [build_os], [0])dnl
                    190: dnl
                    191: AC_REQUIRE([AC_PROG_CC])dnl
                    192: AC_REQUIRE([LT_PATH_LD])dnl
                    193: AC_REQUIRE([LT_PATH_NM])dnl
                    194: dnl
                    195: AC_REQUIRE([AC_PROG_LN_S])dnl
                    196: test -z "$LN_S" && LN_S="ln -s"
                    197: _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
                    198: dnl
                    199: AC_REQUIRE([LT_CMD_MAX_LEN])dnl
                    200: _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
                    201: _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
                    202: dnl
                    203: m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                    204: m4_require([_LT_CHECK_SHELL_FEATURES])dnl
                    205: m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
                    206: m4_require([_LT_CMD_RELOAD])dnl
1.5     ! ohara     207: m4_require([_LT_DECL_FILECMD])dnl
1.4       ohara     208: m4_require([_LT_CHECK_MAGIC_METHOD])dnl
                    209: m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
                    210: m4_require([_LT_CMD_OLD_ARCHIVE])dnl
                    211: m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
                    212: m4_require([_LT_WITH_SYSROOT])dnl
                    213: m4_require([_LT_CMD_TRUNCATE])dnl
                    214:
                    215: _LT_CONFIG_LIBTOOL_INIT([
                    216: # See if we are running on zsh, and set the options that allow our
                    217: # commands through without removal of \ escapes INIT.
                    218: if test -n "\${ZSH_VERSION+set}"; then
                    219:    setopt NO_GLOB_SUBST
                    220: fi
                    221: ])
                    222: if test -n "${ZSH_VERSION+set}"; then
                    223:    setopt NO_GLOB_SUBST
                    224: fi
                    225:
                    226: _LT_CHECK_OBJDIR
                    227:
                    228: m4_require([_LT_TAG_COMPILER])dnl
                    229:
                    230: case $host_os in
                    231: aix3*)
                    232:   # AIX sometimes has problems with the GCC collect2 program.  For some
                    233:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                    234:   # vanish in a puff of smoke.
                    235:   if test set != "${COLLECT_NAMES+set}"; then
                    236:     COLLECT_NAMES=
                    237:     export COLLECT_NAMES
                    238:   fi
                    239:   ;;
                    240: esac
                    241:
                    242: # Global variables:
                    243: ofile=libtool
                    244: can_build_shared=yes
                    245:
1.5     ! ohara     246: # All known linkers require a '.a' archive for static linking (except MSVC and
        !           247: # ICC, which need '.lib').
1.4       ohara     248: libext=a
                    249:
                    250: with_gnu_ld=$lt_cv_prog_gnu_ld
                    251:
                    252: old_CC=$CC
                    253: old_CFLAGS=$CFLAGS
                    254:
                    255: # Set sane defaults for various variables
                    256: test -z "$CC" && CC=cc
                    257: test -z "$LTCC" && LTCC=$CC
                    258: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                    259: test -z "$LD" && LD=ld
                    260: test -z "$ac_objext" && ac_objext=o
                    261:
                    262: _LT_CC_BASENAME([$compiler])
                    263:
                    264: # Only perform the check for file, if the check method requires it
                    265: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                    266: case $deplibs_check_method in
                    267: file_magic*)
                    268:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                    269:     _LT_PATH_MAGIC
                    270:   fi
                    271:   ;;
                    272: esac
                    273:
                    274: # Use C for the default configuration in the libtool script
                    275: LT_SUPPORTED_TAG([CC])
                    276: _LT_LANG_C_CONFIG
                    277: _LT_LANG_DEFAULT_CONFIG
                    278: _LT_CONFIG_COMMANDS
                    279: ])# _LT_SETUP
                    280:
                    281:
                    282: # _LT_PREPARE_SED_QUOTE_VARS
                    283: # --------------------------
                    284: # Define a few sed substitution that help us do robust quoting.
                    285: m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
                    286: [# Backslashify metacharacters that are still active within
                    287: # double-quoted strings.
                    288: sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
                    289:
                    290: # Same as above, but do not quote variable references.
                    291: double_quote_subst='s/\([["`\\]]\)/\\\1/g'
                    292:
                    293: # Sed substitution to delay expansion of an escaped shell variable in a
                    294: # double_quote_subst'ed string.
                    295: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
                    296:
                    297: # Sed substitution to delay expansion of an escaped single quote.
                    298: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
                    299:
                    300: # Sed substitution to avoid accidental globbing in evaled expressions
                    301: no_glob_subst='s/\*/\\\*/g'
                    302: ])
                    303:
                    304: # _LT_PROG_LTMAIN
                    305: # ---------------
                    306: # Note that this code is called both from 'configure', and 'config.status'
                    307: # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
                    308: # 'config.status' has no value for ac_aux_dir unless we are using Automake,
                    309: # so we pass a copy along to make sure it has a sensible value anyway.
                    310: m4_defun([_LT_PROG_LTMAIN],
                    311: [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
                    312: _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
                    313: ltmain=$ac_aux_dir/ltmain.sh
                    314: ])# _LT_PROG_LTMAIN
                    315:
                    316:
                    317:
                    318: # So that we can recreate a full libtool script including additional
                    319: # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
                    320: # in macros and then make a single call at the end using the 'libtool'
                    321: # label.
                    322:
                    323:
                    324: # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
                    325: # ----------------------------------------
                    326: # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
                    327: m4_define([_LT_CONFIG_LIBTOOL_INIT],
                    328: [m4_ifval([$1],
                    329:           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
                    330:                      [$1
                    331: ])])])
                    332:
                    333: # Initialize.
                    334: m4_define([_LT_OUTPUT_LIBTOOL_INIT])
                    335:
                    336:
                    337: # _LT_CONFIG_LIBTOOL([COMMANDS])
                    338: # ------------------------------
                    339: # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
                    340: m4_define([_LT_CONFIG_LIBTOOL],
                    341: [m4_ifval([$1],
                    342:           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
                    343:                      [$1
                    344: ])])])
                    345:
                    346: # Initialize.
                    347: m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
                    348:
                    349:
                    350: # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
                    351: # -----------------------------------------------------
                    352: m4_defun([_LT_CONFIG_SAVE_COMMANDS],
                    353: [_LT_CONFIG_LIBTOOL([$1])
                    354: _LT_CONFIG_LIBTOOL_INIT([$2])
                    355: ])
                    356:
                    357:
                    358: # _LT_FORMAT_COMMENT([COMMENT])
                    359: # -----------------------------
                    360: # Add leading comment marks to the start of each line, and a trailing
                    361: # full-stop to the whole comment if one is not present already.
                    362: m4_define([_LT_FORMAT_COMMENT],
                    363: [m4_ifval([$1], [
                    364: m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
                    365:               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
                    366: )])
                    367:
                    368:
                    369:
                    370:
                    371:
                    372: # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
                    373: # -------------------------------------------------------------------
                    374: # CONFIGNAME is the name given to the value in the libtool script.
                    375: # VARNAME is the (base) name used in the configure script.
                    376: # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
                    377: # VARNAME.  Any other value will be used directly.
                    378: m4_define([_LT_DECL],
                    379: [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
                    380:     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
                    381:        [m4_ifval([$1], [$1], [$2])])
                    382:     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
                    383:     m4_ifval([$4],
                    384:        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
                    385:     lt_dict_add_subkey([lt_decl_dict], [$2],
                    386:        [tagged?], [m4_ifval([$5], [yes], [no])])])
                    387: ])
                    388:
                    389:
                    390: # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
                    391: # --------------------------------------------------------
                    392: m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
                    393:
                    394:
                    395: # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
                    396: # ------------------------------------------------
                    397: m4_define([lt_decl_tag_varnames],
                    398: [_lt_decl_filter([tagged?], [yes], $@)])
                    399:
                    400:
                    401: # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
                    402: # ---------------------------------------------------------
                    403: m4_define([_lt_decl_filter],
                    404: [m4_case([$#],
                    405:   [0], [m4_fatal([$0: too few arguments: $#])],
                    406:   [1], [m4_fatal([$0: too few arguments: $#: $1])],
                    407:   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
                    408:   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
                    409:   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
                    410: ])
                    411:
                    412:
                    413: # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
                    414: # --------------------------------------------------
                    415: m4_define([lt_decl_quote_varnames],
                    416: [_lt_decl_filter([value], [1], $@)])
                    417:
                    418:
                    419: # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
                    420: # ---------------------------------------------------
                    421: m4_define([lt_decl_dquote_varnames],
                    422: [_lt_decl_filter([value], [2], $@)])
                    423:
                    424:
                    425: # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
                    426: # ---------------------------------------------------
                    427: m4_define([lt_decl_varnames_tagged],
                    428: [m4_assert([$# <= 2])dnl
                    429: _$0(m4_quote(m4_default([$1], [[, ]])),
                    430:     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
                    431:     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
                    432: m4_define([_lt_decl_varnames_tagged],
                    433: [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
                    434:
                    435:
                    436: # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
                    437: # ------------------------------------------------
                    438: m4_define([lt_decl_all_varnames],
                    439: [_$0(m4_quote(m4_default([$1], [[, ]])),
                    440:      m4_if([$2], [],
                    441:           m4_quote(lt_decl_varnames),
                    442:        m4_quote(m4_shift($@))))[]dnl
                    443: ])
                    444: m4_define([_lt_decl_all_varnames],
                    445: [lt_join($@, lt_decl_varnames_tagged([$1],
                    446:                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
                    447: ])
                    448:
                    449:
                    450: # _LT_CONFIG_STATUS_DECLARE([VARNAME])
                    451: # ------------------------------------
                    452: # Quote a variable value, and forward it to 'config.status' so that its
                    453: # declaration there will have the same value as in 'configure'.  VARNAME
                    454: # must have a single quote delimited value for this to work.
                    455: m4_define([_LT_CONFIG_STATUS_DECLARE],
                    456: [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
                    457:
                    458:
                    459: # _LT_CONFIG_STATUS_DECLARATIONS
                    460: # ------------------------------
                    461: # We delimit libtool config variables with single quotes, so when
                    462: # we write them to config.status, we have to be sure to quote all
                    463: # embedded single quotes properly.  In configure, this macro expands
                    464: # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
                    465: #
                    466: #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
                    467: m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
                    468: [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
                    469:     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
                    470:
                    471:
                    472: # _LT_LIBTOOL_TAGS
                    473: # ----------------
                    474: # Output comment and list of tags supported by the script
                    475: m4_defun([_LT_LIBTOOL_TAGS],
                    476: [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
                    477: available_tags='_LT_TAGS'dnl
                    478: ])
                    479:
                    480:
                    481: # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
                    482: # -----------------------------------
                    483: # Extract the dictionary values for VARNAME (optionally with TAG) and
                    484: # expand to a commented shell variable setting:
                    485: #
                    486: #    # Some comment about what VAR is for.
                    487: #    visible_name=$lt_internal_name
                    488: m4_define([_LT_LIBTOOL_DECLARE],
                    489: [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
                    490:                                           [description])))[]dnl
                    491: m4_pushdef([_libtool_name],
                    492:     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
                    493: m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
                    494:     [0], [_libtool_name=[$]$1],
                    495:     [1], [_libtool_name=$lt_[]$1],
                    496:     [2], [_libtool_name=$lt_[]$1],
                    497:     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
                    498: m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
                    499: ])
                    500:
                    501:
                    502: # _LT_LIBTOOL_CONFIG_VARS
                    503: # -----------------------
                    504: # Produce commented declarations of non-tagged libtool config variables
                    505: # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
                    506: # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
                    507: # section) are produced by _LT_LIBTOOL_TAG_VARS.
                    508: m4_defun([_LT_LIBTOOL_CONFIG_VARS],
                    509: [m4_foreach([_lt_var],
                    510:     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
                    511:     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
                    512:
                    513:
                    514: # _LT_LIBTOOL_TAG_VARS(TAG)
                    515: # -------------------------
                    516: m4_define([_LT_LIBTOOL_TAG_VARS],
                    517: [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
                    518:     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
                    519:
                    520:
                    521: # _LT_TAGVAR(VARNAME, [TAGNAME])
                    522: # ------------------------------
                    523: m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
                    524:
                    525:
                    526: # _LT_CONFIG_COMMANDS
                    527: # -------------------
                    528: # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
                    529: # variables for single and double quote escaping we saved from calls
                    530: # to _LT_DECL, we can put quote escaped variables declarations
                    531: # into 'config.status', and then the shell code to quote escape them in
                    532: # for loops in 'config.status'.  Finally, any additional code accumulated
                    533: # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
                    534: m4_defun([_LT_CONFIG_COMMANDS],
                    535: [AC_PROVIDE_IFELSE([LT_OUTPUT],
                    536:        dnl If the libtool generation code has been placed in $CONFIG_LT,
                    537:        dnl instead of duplicating it all over again into config.status,
                    538:        dnl then we will have config.status run $CONFIG_LT later, so it
                    539:        dnl needs to know what name is stored there:
                    540:         [AC_CONFIG_COMMANDS([libtool],
                    541:             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
                    542:     dnl If the libtool generation code is destined for config.status,
                    543:     dnl expand the accumulated commands and init code now:
                    544:     [AC_CONFIG_COMMANDS([libtool],
                    545:         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
                    546: ])#_LT_CONFIG_COMMANDS
                    547:
                    548:
                    549: # Initialize.
                    550: m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
                    551: [
                    552:
                    553: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    554: # if CDPATH is set.
                    555: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    556:
                    557: sed_quote_subst='$sed_quote_subst'
                    558: double_quote_subst='$double_quote_subst'
                    559: delay_variable_subst='$delay_variable_subst'
                    560: _LT_CONFIG_STATUS_DECLARATIONS
                    561: LTCC='$LTCC'
                    562: LTCFLAGS='$LTCFLAGS'
                    563: compiler='$compiler_DEFAULT'
                    564:
                    565: # A function that is used when there is no print builtin or printf.
                    566: func_fallback_echo ()
                    567: {
                    568:   eval 'cat <<_LTECHO_EOF
                    569: \$[]1
                    570: _LTECHO_EOF'
                    571: }
                    572:
                    573: # Quote evaled strings.
                    574: for var in lt_decl_all_varnames([[ \
                    575: ]], lt_decl_quote_varnames); do
                    576:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                    577:     *[[\\\\\\\`\\"\\\$]]*)
                    578:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
                    579:       ;;
                    580:     *)
                    581:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                    582:       ;;
                    583:     esac
                    584: done
                    585:
                    586: # Double-quote double-evaled strings.
                    587: for var in lt_decl_all_varnames([[ \
                    588: ]], lt_decl_dquote_varnames); do
                    589:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
                    590:     *[[\\\\\\\`\\"\\\$]]*)
                    591:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
                    592:       ;;
                    593:     *)
                    594:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
                    595:       ;;
                    596:     esac
                    597: done
                    598:
                    599: _LT_OUTPUT_LIBTOOL_INIT
                    600: ])
                    601:
                    602: # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
                    603: # ------------------------------------
                    604: # Generate a child script FILE with all initialization necessary to
                    605: # reuse the environment learned by the parent script, and make the
                    606: # file executable.  If COMMENT is supplied, it is inserted after the
                    607: # '#!' sequence but before initialization text begins.  After this
                    608: # macro, additional text can be appended to FILE to form the body of
                    609: # the child script.  The macro ends with non-zero status if the
                    610: # file could not be fully written (such as if the disk is full).
                    611: m4_ifdef([AS_INIT_GENERATED],
                    612: [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
                    613: [m4_defun([_LT_GENERATED_FILE_INIT],
                    614: [m4_require([AS_PREPARE])]dnl
                    615: [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
                    616: [lt_write_fail=0
                    617: cat >$1 <<_ASEOF || lt_write_fail=1
                    618: #! $SHELL
                    619: # Generated by $as_me.
                    620: $2
                    621: SHELL=\${CONFIG_SHELL-$SHELL}
                    622: export SHELL
                    623: _ASEOF
                    624: cat >>$1 <<\_ASEOF || lt_write_fail=1
                    625: AS_SHELL_SANITIZE
                    626: _AS_PREPARE
                    627: exec AS_MESSAGE_FD>&1
                    628: _ASEOF
                    629: test 0 = "$lt_write_fail" && chmod +x $1[]dnl
                    630: m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
                    631:
                    632: # LT_OUTPUT
                    633: # ---------
                    634: # This macro allows early generation of the libtool script (before
                    635: # AC_OUTPUT is called), incase it is used in configure for compilation
                    636: # tests.
                    637: AC_DEFUN([LT_OUTPUT],
                    638: [: ${CONFIG_LT=./config.lt}
                    639: AC_MSG_NOTICE([creating $CONFIG_LT])
                    640: _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
                    641: [# Run this file to recreate a libtool stub with the current configuration.])
                    642:
                    643: cat >>"$CONFIG_LT" <<\_LTEOF
                    644: lt_cl_silent=false
                    645: exec AS_MESSAGE_LOG_FD>>config.log
                    646: {
                    647:   echo
                    648:   AS_BOX([Running $as_me.])
                    649: } >&AS_MESSAGE_LOG_FD
                    650:
                    651: lt_cl_help="\
                    652: '$as_me' creates a local libtool stub from the current configuration,
                    653: for use in further configure time tests before the real libtool is
                    654: generated.
                    655:
                    656: Usage: $[0] [[OPTIONS]]
                    657:
                    658:   -h, --help      print this help, then exit
                    659:   -V, --version   print version number, then exit
                    660:   -q, --quiet     do not print progress messages
                    661:   -d, --debug     don't remove temporary files
                    662:
                    663: Report bugs to <bug-libtool@gnu.org>."
                    664:
                    665: lt_cl_version="\
                    666: m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
                    667: m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
                    668: configured by $[0], generated by m4_PACKAGE_STRING.
                    669:
                    670: Copyright (C) 2011 Free Software Foundation, Inc.
                    671: This config.lt script is free software; the Free Software Foundation
                    672: gives unlimited permision to copy, distribute and modify it."
                    673:
                    674: while test 0 != $[#]
                    675: do
                    676:   case $[1] in
                    677:     --version | --v* | -V )
                    678:       echo "$lt_cl_version"; exit 0 ;;
                    679:     --help | --h* | -h )
                    680:       echo "$lt_cl_help"; exit 0 ;;
                    681:     --debug | --d* | -d )
                    682:       debug=: ;;
                    683:     --quiet | --q* | --silent | --s* | -q )
                    684:       lt_cl_silent=: ;;
                    685:
                    686:     -*) AC_MSG_ERROR([unrecognized option: $[1]
                    687: Try '$[0] --help' for more information.]) ;;
                    688:
                    689:     *) AC_MSG_ERROR([unrecognized argument: $[1]
                    690: Try '$[0] --help' for more information.]) ;;
                    691:   esac
                    692:   shift
                    693: done
                    694:
                    695: if $lt_cl_silent; then
                    696:   exec AS_MESSAGE_FD>/dev/null
                    697: fi
                    698: _LTEOF
                    699:
                    700: cat >>"$CONFIG_LT" <<_LTEOF
                    701: _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
                    702: _LTEOF
                    703:
                    704: cat >>"$CONFIG_LT" <<\_LTEOF
                    705: AC_MSG_NOTICE([creating $ofile])
                    706: _LT_OUTPUT_LIBTOOL_COMMANDS
                    707: AS_EXIT(0)
                    708: _LTEOF
                    709: chmod +x "$CONFIG_LT"
                    710:
                    711: # configure is writing to config.log, but config.lt does its own redirection,
                    712: # appending to config.log, which fails on DOS, as config.log is still kept
                    713: # open by configure.  Here we exec the FD to /dev/null, effectively closing
                    714: # config.log, so it can be properly (re)opened and appended to by config.lt.
                    715: lt_cl_success=:
                    716: test yes = "$silent" &&
                    717:   lt_config_lt_args="$lt_config_lt_args --quiet"
                    718: exec AS_MESSAGE_LOG_FD>/dev/null
                    719: $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
                    720: exec AS_MESSAGE_LOG_FD>>config.log
                    721: $lt_cl_success || AS_EXIT(1)
                    722: ])# LT_OUTPUT
                    723:
                    724:
                    725: # _LT_CONFIG(TAG)
                    726: # ---------------
                    727: # If TAG is the built-in tag, create an initial libtool script with a
                    728: # default configuration from the untagged config vars.  Otherwise add code
                    729: # to config.status for appending the configuration named by TAG from the
                    730: # matching tagged config vars.
                    731: m4_defun([_LT_CONFIG],
                    732: [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                    733: _LT_CONFIG_SAVE_COMMANDS([
                    734:   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
                    735:   m4_if(_LT_TAG, [C], [
                    736:     # See if we are running on zsh, and set the options that allow our
                    737:     # commands through without removal of \ escapes.
                    738:     if test -n "${ZSH_VERSION+set}"; then
                    739:       setopt NO_GLOB_SUBST
                    740:     fi
                    741:
                    742:     cfgfile=${ofile}T
                    743:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
                    744:     $RM "$cfgfile"
                    745:
                    746:     cat <<_LT_EOF >> "$cfgfile"
                    747: #! $SHELL
                    748: # Generated automatically by $as_me ($PACKAGE) $VERSION
                    749: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                    750: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                    751:
                    752: # Provide generalized library-building support services.
                    753: # Written by Gordon Matzigkeit, 1996
                    754:
                    755: _LT_COPYING
                    756: _LT_LIBTOOL_TAGS
                    757:
                    758: # Configured defaults for sys_lib_dlsearch_path munging.
                    759: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
                    760:
                    761: # ### BEGIN LIBTOOL CONFIG
                    762: _LT_LIBTOOL_CONFIG_VARS
                    763: _LT_LIBTOOL_TAG_VARS
                    764: # ### END LIBTOOL CONFIG
                    765:
                    766: _LT_EOF
                    767:
                    768:     cat <<'_LT_EOF' >> "$cfgfile"
                    769:
                    770: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
                    771:
                    772: _LT_PREPARE_MUNGE_PATH_LIST
                    773: _LT_PREPARE_CC_BASENAME
                    774:
                    775: # ### END FUNCTIONS SHARED WITH CONFIGURE
                    776:
                    777: _LT_EOF
                    778:
                    779:   case $host_os in
                    780:   aix3*)
                    781:     cat <<\_LT_EOF >> "$cfgfile"
                    782: # AIX sometimes has problems with the GCC collect2 program.  For some
                    783: # reason, if we set the COLLECT_NAMES environment variable, the problems
                    784: # vanish in a puff of smoke.
                    785: if test set != "${COLLECT_NAMES+set}"; then
                    786:   COLLECT_NAMES=
                    787:   export COLLECT_NAMES
                    788: fi
                    789: _LT_EOF
                    790:     ;;
                    791:   esac
                    792:
                    793:   _LT_PROG_LTMAIN
                    794:
                    795:   # We use sed instead of cat because bash on DJGPP gets confused if
                    796:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                    797:   # text mode, it properly converts lines to CR/LF.  This bash problem
                    798:   # is reportedly fixed, but why not run on old versions too?
1.5     ! ohara     799:   $SED '$q' "$ltmain" >> "$cfgfile" \
1.4       ohara     800:      || (rm -f "$cfgfile"; exit 1)
                    801:
                    802:    mv -f "$cfgfile" "$ofile" ||
                    803:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                    804:   chmod +x "$ofile"
                    805: ],
                    806: [cat <<_LT_EOF >> "$ofile"
                    807:
                    808: dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
                    809: dnl in a comment (ie after a #).
                    810: # ### BEGIN LIBTOOL TAG CONFIG: $1
                    811: _LT_LIBTOOL_TAG_VARS(_LT_TAG)
                    812: # ### END LIBTOOL TAG CONFIG: $1
                    813: _LT_EOF
                    814: ])dnl /m4_if
                    815: ],
                    816: [m4_if([$1], [], [
                    817:     PACKAGE='$PACKAGE'
                    818:     VERSION='$VERSION'
                    819:     RM='$RM'
                    820:     ofile='$ofile'], [])
                    821: ])dnl /_LT_CONFIG_SAVE_COMMANDS
                    822: ])# _LT_CONFIG
                    823:
                    824:
                    825: # LT_SUPPORTED_TAG(TAG)
                    826: # ---------------------
                    827: # Trace this macro to discover what tags are supported by the libtool
                    828: # --tag option, using:
                    829: #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
                    830: AC_DEFUN([LT_SUPPORTED_TAG], [])
                    831:
                    832:
                    833: # C support is built-in for now
                    834: m4_define([_LT_LANG_C_enabled], [])
                    835: m4_define([_LT_TAGS], [])
                    836:
                    837:
                    838: # LT_LANG(LANG)
                    839: # -------------
                    840: # Enable libtool support for the given language if not already enabled.
                    841: AC_DEFUN([LT_LANG],
                    842: [AC_BEFORE([$0], [LT_OUTPUT])dnl
                    843: m4_case([$1],
                    844:   [C],                 [_LT_LANG(C)],
                    845:   [C++],               [_LT_LANG(CXX)],
                    846:   [Go],                        [_LT_LANG(GO)],
                    847:   [Java],              [_LT_LANG(GCJ)],
                    848:   [Fortran 77],                [_LT_LANG(F77)],
                    849:   [Fortran],           [_LT_LANG(FC)],
                    850:   [Windows Resource],  [_LT_LANG(RC)],
                    851:   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
                    852:     [_LT_LANG($1)],
                    853:     [m4_fatal([$0: unsupported language: "$1"])])])dnl
                    854: ])# LT_LANG
                    855:
                    856:
                    857: # _LT_LANG(LANGNAME)
                    858: # ------------------
                    859: m4_defun([_LT_LANG],
                    860: [m4_ifdef([_LT_LANG_]$1[_enabled], [],
                    861:   [LT_SUPPORTED_TAG([$1])dnl
                    862:   m4_append([_LT_TAGS], [$1 ])dnl
                    863:   m4_define([_LT_LANG_]$1[_enabled], [])dnl
                    864:   _LT_LANG_$1_CONFIG($1)])dnl
                    865: ])# _LT_LANG
                    866:
                    867:
                    868: m4_ifndef([AC_PROG_GO], [
                    869: # NOTE: This macro has been submitted for inclusion into   #
                    870: #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
                    871: #  a released version of Autoconf we should remove this    #
                    872: #  macro and use it instead.                               #
                    873: m4_defun([AC_PROG_GO],
                    874: [AC_LANG_PUSH(Go)dnl
                    875: AC_ARG_VAR([GOC],     [Go compiler command])dnl
                    876: AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
                    877: _AC_ARG_VAR_LDFLAGS()dnl
                    878: AC_CHECK_TOOL(GOC, gccgo)
                    879: if test -z "$GOC"; then
                    880:   if test -n "$ac_tool_prefix"; then
                    881:     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
                    882:   fi
                    883: fi
                    884: if test -z "$GOC"; then
                    885:   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
                    886: fi
                    887: ])#m4_defun
                    888: ])#m4_ifndef
                    889:
                    890:
                    891: # _LT_LANG_DEFAULT_CONFIG
                    892: # -----------------------
                    893: m4_defun([_LT_LANG_DEFAULT_CONFIG],
                    894: [AC_PROVIDE_IFELSE([AC_PROG_CXX],
                    895:   [LT_LANG(CXX)],
                    896:   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
                    897:
                    898: AC_PROVIDE_IFELSE([AC_PROG_F77],
                    899:   [LT_LANG(F77)],
                    900:   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
                    901:
                    902: AC_PROVIDE_IFELSE([AC_PROG_FC],
                    903:   [LT_LANG(FC)],
                    904:   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
                    905:
                    906: dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
                    907: dnl pulling things in needlessly.
                    908: AC_PROVIDE_IFELSE([AC_PROG_GCJ],
                    909:   [LT_LANG(GCJ)],
                    910:   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
                    911:     [LT_LANG(GCJ)],
                    912:     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
                    913:       [LT_LANG(GCJ)],
                    914:       [m4_ifdef([AC_PROG_GCJ],
                    915:        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
                    916:        m4_ifdef([A][M_PROG_GCJ],
                    917:        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
                    918:        m4_ifdef([LT_PROG_GCJ],
                    919:        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
                    920:
                    921: AC_PROVIDE_IFELSE([AC_PROG_GO],
                    922:   [LT_LANG(GO)],
                    923:   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
                    924:
                    925: AC_PROVIDE_IFELSE([LT_PROG_RC],
                    926:   [LT_LANG(RC)],
                    927:   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
                    928: ])# _LT_LANG_DEFAULT_CONFIG
                    929:
                    930: # Obsolete macros:
                    931: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
                    932: AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
                    933: AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
                    934: AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
                    935: AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
                    936: dnl aclocal-1.4 backwards compatibility:
                    937: dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
                    938: dnl AC_DEFUN([AC_LIBTOOL_F77], [])
                    939: dnl AC_DEFUN([AC_LIBTOOL_FC], [])
                    940: dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
                    941: dnl AC_DEFUN([AC_LIBTOOL_RC], [])
                    942:
                    943:
                    944: # _LT_TAG_COMPILER
                    945: # ----------------
                    946: m4_defun([_LT_TAG_COMPILER],
                    947: [AC_REQUIRE([AC_PROG_CC])dnl
                    948:
                    949: _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
                    950: _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
                    951: _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
                    952: _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
                    953:
                    954: # If no C compiler was specified, use CC.
                    955: LTCC=${LTCC-"$CC"}
                    956:
                    957: # If no C compiler flags were specified, use CFLAGS.
                    958: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
                    959:
                    960: # Allow CC to be a program name with arguments.
                    961: compiler=$CC
                    962: ])# _LT_TAG_COMPILER
                    963:
                    964:
                    965: # _LT_COMPILER_BOILERPLATE
                    966: # ------------------------
                    967: # Check for compiler boilerplate output or warnings with
                    968: # the simple compiler test code.
                    969: m4_defun([_LT_COMPILER_BOILERPLATE],
                    970: [m4_require([_LT_DECL_SED])dnl
                    971: ac_outfile=conftest.$ac_objext
                    972: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                    973: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                    974: _lt_compiler_boilerplate=`cat conftest.err`
                    975: $RM conftest*
                    976: ])# _LT_COMPILER_BOILERPLATE
                    977:
                    978:
                    979: # _LT_LINKER_BOILERPLATE
                    980: # ----------------------
                    981: # Check for linker boilerplate output or warnings with
                    982: # the simple link test code.
                    983: m4_defun([_LT_LINKER_BOILERPLATE],
                    984: [m4_require([_LT_DECL_SED])dnl
                    985: ac_outfile=conftest.$ac_objext
                    986: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                    987: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                    988: _lt_linker_boilerplate=`cat conftest.err`
                    989: $RM -r conftest*
                    990: ])# _LT_LINKER_BOILERPLATE
                    991:
                    992: # _LT_REQUIRED_DARWIN_CHECKS
                    993: # -------------------------
                    994: m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
                    995:   case $host_os in
                    996:     rhapsody* | darwin*)
                    997:     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
                    998:     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
                    999:     AC_CHECK_TOOL([LIPO], [lipo], [:])
                   1000:     AC_CHECK_TOOL([OTOOL], [otool], [:])
                   1001:     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
                   1002:     _LT_DECL([], [DSYMUTIL], [1],
                   1003:       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
                   1004:     _LT_DECL([], [NMEDIT], [1],
                   1005:       [Tool to change global to local symbols on Mac OS X])
                   1006:     _LT_DECL([], [LIPO], [1],
                   1007:       [Tool to manipulate fat objects and archives on Mac OS X])
                   1008:     _LT_DECL([], [OTOOL], [1],
                   1009:       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
                   1010:     _LT_DECL([], [OTOOL64], [1],
                   1011:       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
                   1012:
                   1013:     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
                   1014:       [lt_cv_apple_cc_single_mod=no
                   1015:       if test -z "$LT_MULTI_MODULE"; then
                   1016:        # By default we will add the -single_module flag. You can override
                   1017:        # by either setting the environment variable LT_MULTI_MODULE
                   1018:        # non-empty at configure time, or by adding -multi_module to the
                   1019:        # link flags.
                   1020:        rm -rf libconftest.dylib*
                   1021:        echo "int foo(void){return 1;}" > conftest.c
                   1022:        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   1023: -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
                   1024:        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   1025:          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
                   1026:         _lt_result=$?
                   1027:        # If there is a non-empty error log, and "single_module"
                   1028:        # appears in it, assume the flag caused a linker warning
                   1029:         if test -s conftest.err && $GREP single_module conftest.err; then
                   1030:          cat conftest.err >&AS_MESSAGE_LOG_FD
                   1031:        # Otherwise, if the output was created with a 0 exit code from
                   1032:        # the compiler, it worked.
                   1033:        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
                   1034:          lt_cv_apple_cc_single_mod=yes
                   1035:        else
                   1036:          cat conftest.err >&AS_MESSAGE_LOG_FD
                   1037:        fi
                   1038:        rm -rf libconftest.dylib*
                   1039:        rm -f conftest.*
                   1040:       fi])
                   1041:
                   1042:     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
                   1043:       [lt_cv_ld_exported_symbols_list],
                   1044:       [lt_cv_ld_exported_symbols_list=no
                   1045:       save_LDFLAGS=$LDFLAGS
                   1046:       echo "_main" > conftest.sym
                   1047:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   1048:       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
                   1049:        [lt_cv_ld_exported_symbols_list=yes],
                   1050:        [lt_cv_ld_exported_symbols_list=no])
                   1051:        LDFLAGS=$save_LDFLAGS
                   1052:     ])
                   1053:
                   1054:     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
                   1055:       [lt_cv_ld_force_load=no
                   1056:       cat > conftest.c << _LT_EOF
                   1057: int forced_loaded() { return 2;}
                   1058: _LT_EOF
                   1059:       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
                   1060:       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1.5     ! ohara    1061:       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
        !          1062:       $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1.4       ohara    1063:       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
                   1064:       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
                   1065:       cat > conftest.c << _LT_EOF
                   1066: int main() { return 0;}
                   1067: _LT_EOF
                   1068:       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
                   1069:       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
                   1070:       _lt_result=$?
                   1071:       if test -s conftest.err && $GREP force_load conftest.err; then
                   1072:        cat conftest.err >&AS_MESSAGE_LOG_FD
                   1073:       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
                   1074:        lt_cv_ld_force_load=yes
                   1075:       else
                   1076:        cat conftest.err >&AS_MESSAGE_LOG_FD
                   1077:       fi
                   1078:         rm -f conftest.err libconftest.a conftest conftest.c
                   1079:         rm -rf conftest.dSYM
                   1080:     ])
                   1081:     case $host_os in
                   1082:     rhapsody* | darwin1.[[012]])
                   1083:       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
                   1084:     darwin1.*)
                   1085:       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1.5     ! ohara    1086:     darwin*)
        !          1087:       case $MACOSX_DEPLOYMENT_TARGET,$host in
        !          1088:         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
        !          1089:           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
        !          1090:         *)
        !          1091:           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1.4       ohara    1092:       esac
                   1093:     ;;
                   1094:   esac
                   1095:     if test yes = "$lt_cv_apple_cc_single_mod"; then
                   1096:       _lt_dar_single_mod='$single_module'
                   1097:     fi
                   1098:     if test yes = "$lt_cv_ld_exported_symbols_list"; then
                   1099:       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
                   1100:     else
                   1101:       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
                   1102:     fi
                   1103:     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
                   1104:       _lt_dsymutil='~$DSYMUTIL $lib || :'
                   1105:     else
                   1106:       _lt_dsymutil=
                   1107:     fi
                   1108:     ;;
                   1109:   esac
                   1110: ])
                   1111:
                   1112:
                   1113: # _LT_DARWIN_LINKER_FEATURES([TAG])
                   1114: # ---------------------------------
                   1115: # Checks for linker and compiler features on darwin
                   1116: m4_defun([_LT_DARWIN_LINKER_FEATURES],
                   1117: [
                   1118:   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
                   1119:   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   1120:   _LT_TAGVAR(hardcode_direct, $1)=no
                   1121:   _LT_TAGVAR(hardcode_automatic, $1)=yes
                   1122:   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
                   1123:   if test yes = "$lt_cv_ld_force_load"; then
                   1124:     _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\"`'
                   1125:     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
                   1126:                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
                   1127:   else
                   1128:     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
                   1129:   fi
                   1130:   _LT_TAGVAR(link_all_deplibs, $1)=yes
                   1131:   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
                   1132:   case $cc_basename in
                   1133:      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
                   1134:      *) _lt_dar_can_shared=$GCC ;;
                   1135:   esac
                   1136:   if test yes = "$_lt_dar_can_shared"; then
                   1137:     output_verbose_link_cmd=func_echo_all
                   1138:     _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"
                   1139:     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1.5     ! ohara    1140:     _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"
        !          1141:     _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"
1.4       ohara    1142:     m4_if([$1], [CXX],
                   1143: [   if test yes != "$lt_cv_apple_cc_single_mod"; then
                   1144:       _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"
1.5     ! ohara    1145:       _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"
1.4       ohara    1146:     fi
                   1147: ],[])
                   1148:   else
                   1149:   _LT_TAGVAR(ld_shlibs, $1)=no
                   1150:   fi
                   1151: ])
                   1152:
                   1153: # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
                   1154: # ----------------------------------
                   1155: # Links a minimal program and checks the executable
                   1156: # for the system default hardcoded library path. In most cases,
                   1157: # this is /usr/lib:/lib, but when the MPI compilers are used
                   1158: # the location of the communication and MPI libs are included too.
                   1159: # If we don't find anything, use the default library path according
                   1160: # to the aix ld manual.
                   1161: # Store the results from the different compilers for each TAGNAME.
                   1162: # Allow to override them for all tags through lt_cv_aix_libpath.
                   1163: m4_defun([_LT_SYS_MODULE_PATH_AIX],
                   1164: [m4_require([_LT_DECL_SED])dnl
                   1165: if test set = "${lt_cv_aix_libpath+set}"; then
                   1166:   aix_libpath=$lt_cv_aix_libpath
                   1167: else
                   1168:   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
                   1169:   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
                   1170:   lt_aix_libpath_sed='[
                   1171:       /Import File Strings/,/^$/ {
                   1172:          /^0/ {
                   1173:              s/^0  *\([^ ]*\) *$/\1/
                   1174:              p
                   1175:          }
                   1176:       }]'
                   1177:   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   1178:   # Check for a 64-bit object if we didn't find anything.
                   1179:   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
                   1180:     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   1181:   fi],[])
                   1182:   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
                   1183:     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
                   1184:   fi
                   1185:   ])
                   1186:   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
                   1187: fi
                   1188: ])# _LT_SYS_MODULE_PATH_AIX
                   1189:
                   1190:
                   1191: # _LT_SHELL_INIT(ARG)
                   1192: # -------------------
                   1193: m4_define([_LT_SHELL_INIT],
                   1194: [m4_divert_text([M4SH-INIT], [$1
                   1195: ])])# _LT_SHELL_INIT
                   1196:
                   1197:
                   1198:
                   1199: # _LT_PROG_ECHO_BACKSLASH
                   1200: # -----------------------
                   1201: # Find how we can fake an echo command that does not interpret backslash.
                   1202: # In particular, with Autoconf 2.60 or later we add some code to the start
                   1203: # of the generated configure script that will find a shell with a builtin
                   1204: # printf (that we can use as an echo command).
                   1205: m4_defun([_LT_PROG_ECHO_BACKSLASH],
                   1206: [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   1207: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
                   1208: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
                   1209:
                   1210: AC_MSG_CHECKING([how to print strings])
                   1211: # Test print first, because it will be a builtin if present.
                   1212: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
                   1213:    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
                   1214:   ECHO='print -r --'
                   1215: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
                   1216:   ECHO='printf %s\n'
                   1217: else
                   1218:   # Use this function as a fallback that always works.
                   1219:   func_fallback_echo ()
                   1220:   {
                   1221:     eval 'cat <<_LTECHO_EOF
                   1222: $[]1
                   1223: _LTECHO_EOF'
                   1224:   }
                   1225:   ECHO='func_fallback_echo'
                   1226: fi
                   1227:
                   1228: # func_echo_all arg...
                   1229: # Invoke $ECHO with all args, space-separated.
                   1230: func_echo_all ()
                   1231: {
                   1232:     $ECHO "$*"
                   1233: }
                   1234:
                   1235: case $ECHO in
                   1236:   printf*) AC_MSG_RESULT([printf]) ;;
                   1237:   print*) AC_MSG_RESULT([print -r]) ;;
                   1238:   *) AC_MSG_RESULT([cat]) ;;
                   1239: esac
                   1240:
                   1241: m4_ifdef([_AS_DETECT_SUGGESTED],
                   1242: [_AS_DETECT_SUGGESTED([
                   1243:   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
                   1244:     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   1245:     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
                   1246:     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
                   1247:     PATH=/empty FPATH=/empty; export PATH FPATH
                   1248:     test "X`printf %s $ECHO`" = "X$ECHO" \
                   1249:       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
                   1250:
                   1251: _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
                   1252: _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
                   1253: ])# _LT_PROG_ECHO_BACKSLASH
                   1254:
                   1255:
                   1256: # _LT_WITH_SYSROOT
                   1257: # ----------------
                   1258: AC_DEFUN([_LT_WITH_SYSROOT],
1.5     ! ohara    1259: [m4_require([_LT_DECL_SED])dnl
        !          1260: AC_MSG_CHECKING([for sysroot])
1.4       ohara    1261: AC_ARG_WITH([sysroot],
                   1262: [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
                   1263:   [Search for dependent libraries within DIR (or the compiler's sysroot
                   1264:    if not specified).])],
                   1265: [], [with_sysroot=no])
                   1266:
                   1267: dnl lt_sysroot will always be passed unquoted.  We quote it here
                   1268: dnl in case the user passed a directory name.
                   1269: lt_sysroot=
                   1270: case $with_sysroot in #(
                   1271:  yes)
                   1272:    if test yes = "$GCC"; then
                   1273:      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
                   1274:    fi
                   1275:    ;; #(
                   1276:  /*)
1.5     ! ohara    1277:    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.4       ohara    1278:    ;; #(
                   1279:  no|'')
                   1280:    ;; #(
                   1281:  *)
                   1282:    AC_MSG_RESULT([$with_sysroot])
                   1283:    AC_MSG_ERROR([The sysroot must be an absolute path.])
                   1284:    ;;
                   1285: esac
                   1286:
                   1287:  AC_MSG_RESULT([${lt_sysroot:-no}])
                   1288: _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
                   1289: [dependent libraries, and where our libraries should be installed.])])
                   1290:
                   1291: # _LT_ENABLE_LOCK
                   1292: # ---------------
                   1293: m4_defun([_LT_ENABLE_LOCK],
                   1294: [AC_ARG_ENABLE([libtool-lock],
                   1295:   [AS_HELP_STRING([--disable-libtool-lock],
                   1296:     [avoid locking (might break parallel builds)])])
                   1297: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
                   1298:
                   1299: # Some flags need to be propagated to the compiler or linker for good
                   1300: # libtool support.
                   1301: case $host in
                   1302: ia64-*-hpux*)
                   1303:   # Find out what ABI is being produced by ac_compile, and set mode
                   1304:   # options accordingly.
                   1305:   echo 'int i;' > conftest.$ac_ext
                   1306:   if AC_TRY_EVAL(ac_compile); then
1.5     ! ohara    1307:     case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1308:       *ELF-32*)
                   1309:        HPUX_IA64_MODE=32
                   1310:        ;;
                   1311:       *ELF-64*)
                   1312:        HPUX_IA64_MODE=64
                   1313:        ;;
                   1314:     esac
                   1315:   fi
                   1316:   rm -rf conftest*
                   1317:   ;;
                   1318: *-*-irix6*)
                   1319:   # Find out what ABI is being produced by ac_compile, and set linker
                   1320:   # options accordingly.
                   1321:   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
                   1322:   if AC_TRY_EVAL(ac_compile); then
                   1323:     if test yes = "$lt_cv_prog_gnu_ld"; then
1.5     ! ohara    1324:       case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1325:        *32-bit*)
                   1326:          LD="${LD-ld} -melf32bsmip"
                   1327:          ;;
                   1328:        *N32*)
                   1329:          LD="${LD-ld} -melf32bmipn32"
                   1330:          ;;
                   1331:        *64-bit*)
                   1332:          LD="${LD-ld} -melf64bmip"
                   1333:        ;;
                   1334:       esac
                   1335:     else
1.5     ! ohara    1336:       case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1337:        *32-bit*)
                   1338:          LD="${LD-ld} -32"
                   1339:          ;;
                   1340:        *N32*)
                   1341:          LD="${LD-ld} -n32"
                   1342:          ;;
                   1343:        *64-bit*)
                   1344:          LD="${LD-ld} -64"
                   1345:          ;;
                   1346:       esac
                   1347:     fi
                   1348:   fi
                   1349:   rm -rf conftest*
                   1350:   ;;
                   1351:
                   1352: mips64*-*linux*)
                   1353:   # Find out what ABI is being produced by ac_compile, and set linker
                   1354:   # options accordingly.
                   1355:   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
                   1356:   if AC_TRY_EVAL(ac_compile); then
                   1357:     emul=elf
1.5     ! ohara    1358:     case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1359:       *32-bit*)
                   1360:        emul="${emul}32"
                   1361:        ;;
                   1362:       *64-bit*)
                   1363:        emul="${emul}64"
                   1364:        ;;
                   1365:     esac
1.5     ! ohara    1366:     case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1367:       *MSB*)
                   1368:        emul="${emul}btsmip"
                   1369:        ;;
                   1370:       *LSB*)
                   1371:        emul="${emul}ltsmip"
                   1372:        ;;
                   1373:     esac
1.5     ! ohara    1374:     case `$FILECMD conftest.$ac_objext` in
1.4       ohara    1375:       *N32*)
                   1376:        emul="${emul}n32"
                   1377:        ;;
                   1378:     esac
                   1379:     LD="${LD-ld} -m $emul"
                   1380:   fi
                   1381:   rm -rf conftest*
                   1382:   ;;
                   1383:
                   1384: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
                   1385: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
                   1386:   # Find out what ABI is being produced by ac_compile, and set linker
                   1387:   # options accordingly.  Note that the listed cases only cover the
                   1388:   # situations where additional linker options are needed (such as when
                   1389:   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
                   1390:   # vice versa); the common cases where no linker options are needed do
                   1391:   # not appear in the list.
                   1392:   echo 'int i;' > conftest.$ac_ext
                   1393:   if AC_TRY_EVAL(ac_compile); then
1.5     ! ohara    1394:     case `$FILECMD conftest.o` in
1.4       ohara    1395:       *32-bit*)
                   1396:        case $host in
                   1397:          x86_64-*kfreebsd*-gnu)
                   1398:            LD="${LD-ld} -m elf_i386_fbsd"
                   1399:            ;;
                   1400:          x86_64-*linux*)
1.5     ! ohara    1401:            case `$FILECMD conftest.o` in
1.4       ohara    1402:              *x86-64*)
                   1403:                LD="${LD-ld} -m elf32_x86_64"
                   1404:                ;;
                   1405:              *)
                   1406:                LD="${LD-ld} -m elf_i386"
                   1407:                ;;
                   1408:            esac
                   1409:            ;;
                   1410:          powerpc64le-*linux*)
                   1411:            LD="${LD-ld} -m elf32lppclinux"
                   1412:            ;;
                   1413:          powerpc64-*linux*)
                   1414:            LD="${LD-ld} -m elf32ppclinux"
                   1415:            ;;
                   1416:          s390x-*linux*)
                   1417:            LD="${LD-ld} -m elf_s390"
                   1418:            ;;
                   1419:          sparc64-*linux*)
                   1420:            LD="${LD-ld} -m elf32_sparc"
                   1421:            ;;
                   1422:        esac
                   1423:        ;;
                   1424:       *64-bit*)
                   1425:        case $host in
                   1426:          x86_64-*kfreebsd*-gnu)
                   1427:            LD="${LD-ld} -m elf_x86_64_fbsd"
                   1428:            ;;
                   1429:          x86_64-*linux*)
                   1430:            LD="${LD-ld} -m elf_x86_64"
                   1431:            ;;
                   1432:          powerpcle-*linux*)
                   1433:            LD="${LD-ld} -m elf64lppc"
                   1434:            ;;
                   1435:          powerpc-*linux*)
                   1436:            LD="${LD-ld} -m elf64ppc"
                   1437:            ;;
                   1438:          s390*-*linux*|s390*-*tpf*)
                   1439:            LD="${LD-ld} -m elf64_s390"
                   1440:            ;;
                   1441:          sparc*-*linux*)
                   1442:            LD="${LD-ld} -m elf64_sparc"
                   1443:            ;;
                   1444:        esac
                   1445:        ;;
                   1446:     esac
                   1447:   fi
                   1448:   rm -rf conftest*
                   1449:   ;;
                   1450:
                   1451: *-*-sco3.2v5*)
                   1452:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   1453:   SAVE_CFLAGS=$CFLAGS
                   1454:   CFLAGS="$CFLAGS -belf"
                   1455:   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
                   1456:     [AC_LANG_PUSH(C)
                   1457:      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
                   1458:      AC_LANG_POP])
                   1459:   if test yes != "$lt_cv_cc_needs_belf"; then
                   1460:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   1461:     CFLAGS=$SAVE_CFLAGS
                   1462:   fi
                   1463:   ;;
                   1464: *-*solaris*)
                   1465:   # Find out what ABI is being produced by ac_compile, and set linker
                   1466:   # options accordingly.
                   1467:   echo 'int i;' > conftest.$ac_ext
                   1468:   if AC_TRY_EVAL(ac_compile); then
1.5     ! ohara    1469:     case `$FILECMD conftest.o` in
1.4       ohara    1470:     *64-bit*)
                   1471:       case $lt_cv_prog_gnu_ld in
                   1472:       yes*)
                   1473:         case $host in
                   1474:         i?86-*-solaris*|x86_64-*-solaris*)
                   1475:           LD="${LD-ld} -m elf_x86_64"
                   1476:           ;;
                   1477:         sparc*-*-solaris*)
                   1478:           LD="${LD-ld} -m elf64_sparc"
                   1479:           ;;
                   1480:         esac
                   1481:         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
                   1482:         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
                   1483:           LD=${LD-ld}_sol2
                   1484:         fi
                   1485:         ;;
                   1486:       *)
                   1487:        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   1488:          LD="${LD-ld} -64"
                   1489:        fi
                   1490:        ;;
                   1491:       esac
                   1492:       ;;
                   1493:     esac
                   1494:   fi
                   1495:   rm -rf conftest*
                   1496:   ;;
                   1497: esac
                   1498:
                   1499: need_locks=$enable_libtool_lock
                   1500: ])# _LT_ENABLE_LOCK
                   1501:
                   1502:
                   1503: # _LT_PROG_AR
                   1504: # -----------
                   1505: m4_defun([_LT_PROG_AR],
                   1506: [AC_CHECK_TOOLS(AR, [ar], false)
                   1507: : ${AR=ar}
                   1508: _LT_DECL([], [AR], [1], [The archiver])
1.5     ! ohara    1509:
        !          1510: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
        !          1511: # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
        !          1512: # higher priority because thats what people were doing historically (setting
        !          1513: # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
        !          1514: # variable obsoleted/removed.
        !          1515:
        !          1516: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
        !          1517: lt_ar_flags=$AR_FLAGS
        !          1518: _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
        !          1519:
        !          1520: # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
        !          1521: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
        !          1522: _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
        !          1523:          [Flags to create an archive])
1.4       ohara    1524:
                   1525: AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
                   1526:   [lt_cv_ar_at_file=no
                   1527:    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
                   1528:      [echo conftest.$ac_objext > conftest.lst
                   1529:       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
                   1530:       AC_TRY_EVAL([lt_ar_try])
                   1531:       if test 0 -eq "$ac_status"; then
                   1532:        # Ensure the archiver fails upon bogus file names.
                   1533:        rm -f conftest.$ac_objext libconftest.a
                   1534:        AC_TRY_EVAL([lt_ar_try])
                   1535:        if test 0 -ne "$ac_status"; then
                   1536:           lt_cv_ar_at_file=@
                   1537:         fi
                   1538:       fi
                   1539:       rm -f conftest.* libconftest.a
                   1540:      ])
                   1541:   ])
                   1542:
                   1543: if test no = "$lt_cv_ar_at_file"; then
                   1544:   archiver_list_spec=
                   1545: else
                   1546:   archiver_list_spec=$lt_cv_ar_at_file
                   1547: fi
                   1548: _LT_DECL([], [archiver_list_spec], [1],
                   1549:   [How to feed a file listing to the archiver])
                   1550: ])# _LT_PROG_AR
                   1551:
                   1552:
                   1553: # _LT_CMD_OLD_ARCHIVE
                   1554: # -------------------
                   1555: m4_defun([_LT_CMD_OLD_ARCHIVE],
                   1556: [_LT_PROG_AR
                   1557:
                   1558: AC_CHECK_TOOL(STRIP, strip, :)
                   1559: test -z "$STRIP" && STRIP=:
                   1560: _LT_DECL([], [STRIP], [1], [A symbol stripping program])
                   1561:
                   1562: AC_CHECK_TOOL(RANLIB, ranlib, :)
                   1563: test -z "$RANLIB" && RANLIB=:
                   1564: _LT_DECL([], [RANLIB], [1],
                   1565:     [Commands used to install an old-style archive])
                   1566:
                   1567: # Determine commands to create old-style static archives.
                   1568: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   1569: old_postinstall_cmds='chmod 644 $oldlib'
                   1570: old_postuninstall_cmds=
                   1571:
                   1572: if test -n "$RANLIB"; then
                   1573:   case $host_os in
                   1574:   bitrig* | openbsd*)
                   1575:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
                   1576:     ;;
                   1577:   *)
                   1578:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
                   1579:     ;;
                   1580:   esac
                   1581:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
                   1582: fi
                   1583:
                   1584: case $host_os in
                   1585:   darwin*)
                   1586:     lock_old_archive_extraction=yes ;;
                   1587:   *)
                   1588:     lock_old_archive_extraction=no ;;
                   1589: esac
                   1590: _LT_DECL([], [old_postinstall_cmds], [2])
                   1591: _LT_DECL([], [old_postuninstall_cmds], [2])
                   1592: _LT_TAGDECL([], [old_archive_cmds], [2],
                   1593:     [Commands used to build an old-style archive])
                   1594: _LT_DECL([], [lock_old_archive_extraction], [0],
                   1595:     [Whether to use a lock for old archive extraction])
                   1596: ])# _LT_CMD_OLD_ARCHIVE
                   1597:
                   1598:
                   1599: # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
                   1600: #              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
                   1601: # ----------------------------------------------------------------
                   1602: # Check whether the given compiler option works
                   1603: AC_DEFUN([_LT_COMPILER_OPTION],
                   1604: [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   1605: m4_require([_LT_DECL_SED])dnl
                   1606: AC_CACHE_CHECK([$1], [$2],
                   1607:   [$2=no
                   1608:    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
                   1609:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   1610:    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
                   1611:    # Insert the option either (1) after the last *FLAGS variable, or
                   1612:    # (2) before a word containing "conftest.", or (3) at the end.
                   1613:    # Note that $ac_compile itself does not contain backslashes and begins
                   1614:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   1615:    # The option is referenced via a variable to avoid confusing sed.
                   1616:    lt_compile=`echo "$ac_compile" | $SED \
                   1617:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   1618:    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
                   1619:    -e 's:$: $lt_compiler_flag:'`
                   1620:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
                   1621:    (eval "$lt_compile" 2>conftest.err)
                   1622:    ac_status=$?
                   1623:    cat conftest.err >&AS_MESSAGE_LOG_FD
                   1624:    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
                   1625:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   1626:      # The compiler can only warn and ignore the option if not recognized
                   1627:      # So say no if there are warnings other than the usual output.
                   1628:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
                   1629:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   1630:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   1631:        $2=yes
                   1632:      fi
                   1633:    fi
                   1634:    $RM conftest*
                   1635: ])
                   1636:
                   1637: if test yes = "[$]$2"; then
                   1638:     m4_if([$5], , :, [$5])
                   1639: else
                   1640:     m4_if([$6], , :, [$6])
                   1641: fi
                   1642: ])# _LT_COMPILER_OPTION
                   1643:
                   1644: # Old name:
                   1645: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
                   1646: dnl aclocal-1.4 backwards compatibility:
                   1647: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
                   1648:
                   1649:
                   1650: # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
                   1651: #                  [ACTION-SUCCESS], [ACTION-FAILURE])
                   1652: # ----------------------------------------------------
                   1653: # Check whether the given linker option works
                   1654: AC_DEFUN([_LT_LINKER_OPTION],
                   1655: [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   1656: m4_require([_LT_DECL_SED])dnl
                   1657: AC_CACHE_CHECK([$1], [$2],
                   1658:   [$2=no
                   1659:    save_LDFLAGS=$LDFLAGS
                   1660:    LDFLAGS="$LDFLAGS $3"
                   1661:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   1662:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   1663:      # The linker can only warn and ignore the option if not recognized
                   1664:      # So say no if there are warnings
                   1665:      if test -s conftest.err; then
                   1666:        # Append any errors to the config.log.
                   1667:        cat conftest.err 1>&AS_MESSAGE_LOG_FD
                   1668:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
                   1669:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   1670:        if diff conftest.exp conftest.er2 >/dev/null; then
                   1671:          $2=yes
                   1672:        fi
                   1673:      else
                   1674:        $2=yes
                   1675:      fi
                   1676:    fi
                   1677:    $RM -r conftest*
                   1678:    LDFLAGS=$save_LDFLAGS
                   1679: ])
                   1680:
                   1681: if test yes = "[$]$2"; then
                   1682:     m4_if([$4], , :, [$4])
                   1683: else
                   1684:     m4_if([$5], , :, [$5])
                   1685: fi
                   1686: ])# _LT_LINKER_OPTION
                   1687:
                   1688: # Old name:
                   1689: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
                   1690: dnl aclocal-1.4 backwards compatibility:
                   1691: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
                   1692:
                   1693:
                   1694: # LT_CMD_MAX_LEN
                   1695: #---------------
                   1696: AC_DEFUN([LT_CMD_MAX_LEN],
                   1697: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   1698: # find the maximum length of command line arguments
                   1699: AC_MSG_CHECKING([the maximum length of command line arguments])
                   1700: AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
                   1701:   i=0
                   1702:   teststring=ABCD
                   1703:
                   1704:   case $build_os in
                   1705:   msdosdjgpp*)
                   1706:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   1707:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   1708:     # during glob expansion).  Even if it were fixed, the result of this
                   1709:     # check would be larger than it should be.
                   1710:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   1711:     ;;
                   1712:
                   1713:   gnu*)
                   1714:     # Under GNU Hurd, this test is not required because there is
                   1715:     # no limit to the length of command line arguments.
                   1716:     # Libtool will interpret -1 as no limit whatsoever
                   1717:     lt_cv_sys_max_cmd_len=-1;
                   1718:     ;;
                   1719:
                   1720:   cygwin* | mingw* | cegcc*)
                   1721:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   1722:     # about 5 minutes as the teststring grows exponentially.
                   1723:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   1724:     # you end up with a "frozen" computer, even though with patience
                   1725:     # the test eventually succeeds (with a max line length of 256k).
                   1726:     # Instead, let's just punt: use the minimum linelength reported by
                   1727:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   1728:     lt_cv_sys_max_cmd_len=8192;
                   1729:     ;;
                   1730:
                   1731:   mint*)
                   1732:     # On MiNT this can take a long time and run out of memory.
                   1733:     lt_cv_sys_max_cmd_len=8192;
                   1734:     ;;
                   1735:
                   1736:   amigaos*)
                   1737:     # On AmigaOS with pdksh, this test takes hours, literally.
                   1738:     # So we just punt and use a minimum line length of 8192.
                   1739:     lt_cv_sys_max_cmd_len=8192;
                   1740:     ;;
                   1741:
1.5     ! ohara    1742:   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.4       ohara    1743:     # This has been around since 386BSD, at least.  Likely further.
                   1744:     if test -x /sbin/sysctl; then
                   1745:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   1746:     elif test -x /usr/sbin/sysctl; then
                   1747:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   1748:     else
                   1749:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   1750:     fi
                   1751:     # And add a safety zone
                   1752:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   1753:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   1754:     ;;
                   1755:
                   1756:   interix*)
                   1757:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   1758:     lt_cv_sys_max_cmd_len=196608
                   1759:     ;;
                   1760:
                   1761:   os2*)
                   1762:     # The test takes a long time on OS/2.
                   1763:     lt_cv_sys_max_cmd_len=8192
                   1764:     ;;
                   1765:
                   1766:   osf*)
                   1767:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   1768:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   1769:     # nice to cause kernel panics so lets avoid the loop below.
                   1770:     # First set a reasonable default.
                   1771:     lt_cv_sys_max_cmd_len=16384
                   1772:     #
                   1773:     if test -x /sbin/sysconfig; then
                   1774:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   1775:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   1776:       esac
                   1777:     fi
                   1778:     ;;
                   1779:   sco3.2v5*)
                   1780:     lt_cv_sys_max_cmd_len=102400
                   1781:     ;;
                   1782:   sysv5* | sco5v6* | sysv4.2uw2*)
                   1783:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   1784:     if test -n "$kargmax"; then
1.5     ! ohara    1785:       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[       ]]//'`
1.4       ohara    1786:     else
                   1787:       lt_cv_sys_max_cmd_len=32768
                   1788:     fi
                   1789:     ;;
                   1790:   *)
                   1791:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   1792:     if test -n "$lt_cv_sys_max_cmd_len" && \
                   1793:        test undefined != "$lt_cv_sys_max_cmd_len"; then
                   1794:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   1795:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   1796:     else
                   1797:       # Make teststring a little bigger before we do anything with it.
                   1798:       # a 1K string should be a reasonable start.
                   1799:       for i in 1 2 3 4 5 6 7 8; do
                   1800:         teststring=$teststring$teststring
                   1801:       done
                   1802:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   1803:       # If test is not a shell built-in, we'll probably end up computing a
                   1804:       # maximum length that is only half of the actual maximum length, but
                   1805:       # we can't tell.
                   1806:       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
                   1807:                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
                   1808:              test 17 != "$i" # 1/2 MB should be enough
                   1809:       do
                   1810:         i=`expr $i + 1`
                   1811:         teststring=$teststring$teststring
                   1812:       done
                   1813:       # Only check the string length outside the loop.
                   1814:       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
                   1815:       teststring=
                   1816:       # Add a significant safety factor because C++ compilers can tack on
                   1817:       # massive amounts of additional arguments before passing them to the
                   1818:       # linker.  It appears as though 1/2 is a usable value.
                   1819:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   1820:     fi
                   1821:     ;;
                   1822:   esac
                   1823: ])
                   1824: if test -n "$lt_cv_sys_max_cmd_len"; then
                   1825:   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
                   1826: else
                   1827:   AC_MSG_RESULT(none)
                   1828: fi
                   1829: max_cmd_len=$lt_cv_sys_max_cmd_len
                   1830: _LT_DECL([], [max_cmd_len], [0],
                   1831:     [What is the maximum length of a command?])
                   1832: ])# LT_CMD_MAX_LEN
                   1833:
                   1834: # Old name:
                   1835: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
                   1836: dnl aclocal-1.4 backwards compatibility:
                   1837: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
                   1838:
                   1839:
                   1840: # _LT_HEADER_DLFCN
                   1841: # ----------------
                   1842: m4_defun([_LT_HEADER_DLFCN],
                   1843: [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
                   1844: ])# _LT_HEADER_DLFCN
                   1845:
                   1846:
                   1847: # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
                   1848: #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
                   1849: # ----------------------------------------------------------------
                   1850: m4_defun([_LT_TRY_DLOPEN_SELF],
                   1851: [m4_require([_LT_HEADER_DLFCN])dnl
                   1852: if test yes = "$cross_compiling"; then :
                   1853:   [$4]
                   1854: else
                   1855:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   1856:   lt_status=$lt_dlunknown
                   1857:   cat > conftest.$ac_ext <<_LT_EOF
                   1858: [#line $LINENO "configure"
                   1859: #include "confdefs.h"
                   1860:
                   1861: #if HAVE_DLFCN_H
                   1862: #include <dlfcn.h>
                   1863: #endif
                   1864:
                   1865: #include <stdio.h>
                   1866:
                   1867: #ifdef RTLD_GLOBAL
                   1868: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   1869: #else
                   1870: #  ifdef DL_GLOBAL
                   1871: #    define LT_DLGLOBAL                DL_GLOBAL
                   1872: #  else
                   1873: #    define LT_DLGLOBAL                0
                   1874: #  endif
                   1875: #endif
                   1876:
                   1877: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   1878:    find out it does not work in some platform. */
                   1879: #ifndef LT_DLLAZY_OR_NOW
                   1880: #  ifdef RTLD_LAZY
                   1881: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   1882: #  else
                   1883: #    ifdef DL_LAZY
                   1884: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   1885: #    else
                   1886: #      ifdef RTLD_NOW
                   1887: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   1888: #      else
                   1889: #        ifdef DL_NOW
                   1890: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   1891: #        else
                   1892: #          define LT_DLLAZY_OR_NOW     0
                   1893: #        endif
                   1894: #      endif
                   1895: #    endif
                   1896: #  endif
                   1897: #endif
                   1898:
                   1899: /* When -fvisibility=hidden is used, assume the code has been annotated
                   1900:    correspondingly for the symbols needed.  */
                   1901: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
                   1902: int fnord () __attribute__((visibility("default")));
                   1903: #endif
                   1904:
                   1905: int fnord () { return 42; }
                   1906: int main ()
                   1907: {
                   1908:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   1909:   int status = $lt_dlunknown;
                   1910:
                   1911:   if (self)
                   1912:     {
                   1913:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   1914:       else
                   1915:         {
                   1916:          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
                   1917:           else puts (dlerror ());
                   1918:        }
                   1919:       /* dlclose (self); */
                   1920:     }
                   1921:   else
                   1922:     puts (dlerror ());
                   1923:
                   1924:   return status;
                   1925: }]
                   1926: _LT_EOF
                   1927:   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
                   1928:     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
                   1929:     lt_status=$?
                   1930:     case x$lt_status in
                   1931:       x$lt_dlno_uscore) $1 ;;
                   1932:       x$lt_dlneed_uscore) $2 ;;
                   1933:       x$lt_dlunknown|x*) $3 ;;
                   1934:     esac
                   1935:   else :
                   1936:     # compilation failed
                   1937:     $3
                   1938:   fi
                   1939: fi
                   1940: rm -fr conftest*
                   1941: ])# _LT_TRY_DLOPEN_SELF
                   1942:
                   1943:
                   1944: # LT_SYS_DLOPEN_SELF
                   1945: # ------------------
                   1946: AC_DEFUN([LT_SYS_DLOPEN_SELF],
                   1947: [m4_require([_LT_HEADER_DLFCN])dnl
                   1948: if test yes != "$enable_dlopen"; then
                   1949:   enable_dlopen=unknown
                   1950:   enable_dlopen_self=unknown
                   1951:   enable_dlopen_self_static=unknown
                   1952: else
                   1953:   lt_cv_dlopen=no
                   1954:   lt_cv_dlopen_libs=
                   1955:
                   1956:   case $host_os in
                   1957:   beos*)
                   1958:     lt_cv_dlopen=load_add_on
                   1959:     lt_cv_dlopen_libs=
                   1960:     lt_cv_dlopen_self=yes
                   1961:     ;;
                   1962:
                   1963:   mingw* | pw32* | cegcc*)
                   1964:     lt_cv_dlopen=LoadLibrary
                   1965:     lt_cv_dlopen_libs=
                   1966:     ;;
                   1967:
                   1968:   cygwin*)
                   1969:     lt_cv_dlopen=dlopen
                   1970:     lt_cv_dlopen_libs=
                   1971:     ;;
                   1972:
                   1973:   darwin*)
                   1974:     # if libdl is installed we need to link against it
                   1975:     AC_CHECK_LIB([dl], [dlopen],
                   1976:                [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
                   1977:     lt_cv_dlopen=dyld
                   1978:     lt_cv_dlopen_libs=
                   1979:     lt_cv_dlopen_self=yes
                   1980:     ])
                   1981:     ;;
                   1982:
                   1983:   tpf*)
                   1984:     # Don't try to run any link tests for TPF.  We know it's impossible
                   1985:     # because TPF is a cross-compiler, and we know how we open DSOs.
                   1986:     lt_cv_dlopen=dlopen
                   1987:     lt_cv_dlopen_libs=
                   1988:     lt_cv_dlopen_self=no
                   1989:     ;;
                   1990:
                   1991:   *)
                   1992:     AC_CHECK_FUNC([shl_load],
                   1993:          [lt_cv_dlopen=shl_load],
                   1994:       [AC_CHECK_LIB([dld], [shl_load],
                   1995:            [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
                   1996:        [AC_CHECK_FUNC([dlopen],
                   1997:              [lt_cv_dlopen=dlopen],
                   1998:          [AC_CHECK_LIB([dl], [dlopen],
                   1999:                [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
                   2000:            [AC_CHECK_LIB([svld], [dlopen],
                   2001:                  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
                   2002:              [AC_CHECK_LIB([dld], [dld_link],
                   2003:                    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
                   2004:              ])
                   2005:            ])
                   2006:          ])
                   2007:        ])
                   2008:       ])
                   2009:     ;;
                   2010:   esac
                   2011:
                   2012:   if test no = "$lt_cv_dlopen"; then
                   2013:     enable_dlopen=no
                   2014:   else
                   2015:     enable_dlopen=yes
                   2016:   fi
                   2017:
                   2018:   case $lt_cv_dlopen in
                   2019:   dlopen)
                   2020:     save_CPPFLAGS=$CPPFLAGS
                   2021:     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
                   2022:
                   2023:     save_LDFLAGS=$LDFLAGS
                   2024:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
                   2025:
                   2026:     save_LIBS=$LIBS
                   2027:     LIBS="$lt_cv_dlopen_libs $LIBS"
                   2028:
                   2029:     AC_CACHE_CHECK([whether a program can dlopen itself],
                   2030:          lt_cv_dlopen_self, [dnl
                   2031:          _LT_TRY_DLOPEN_SELF(
                   2032:            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
                   2033:            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
                   2034:     ])
                   2035:
                   2036:     if test yes = "$lt_cv_dlopen_self"; then
                   2037:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   2038:       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
                   2039:          lt_cv_dlopen_self_static, [dnl
                   2040:          _LT_TRY_DLOPEN_SELF(
                   2041:            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
                   2042:            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
                   2043:       ])
                   2044:     fi
                   2045:
                   2046:     CPPFLAGS=$save_CPPFLAGS
                   2047:     LDFLAGS=$save_LDFLAGS
                   2048:     LIBS=$save_LIBS
                   2049:     ;;
                   2050:   esac
                   2051:
                   2052:   case $lt_cv_dlopen_self in
                   2053:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   2054:   *) enable_dlopen_self=unknown ;;
                   2055:   esac
                   2056:
                   2057:   case $lt_cv_dlopen_self_static in
                   2058:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   2059:   *) enable_dlopen_self_static=unknown ;;
                   2060:   esac
                   2061: fi
                   2062: _LT_DECL([dlopen_support], [enable_dlopen], [0],
                   2063:         [Whether dlopen is supported])
                   2064: _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
                   2065:         [Whether dlopen of programs is supported])
                   2066: _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
                   2067:         [Whether dlopen of statically linked programs is supported])
                   2068: ])# LT_SYS_DLOPEN_SELF
                   2069:
                   2070: # Old name:
                   2071: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
                   2072: dnl aclocal-1.4 backwards compatibility:
                   2073: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
                   2074:
                   2075:
                   2076: # _LT_COMPILER_C_O([TAGNAME])
                   2077: # ---------------------------
                   2078: # Check to see if options -c and -o are simultaneously supported by compiler.
                   2079: # This macro does not hard code the compiler like AC_PROG_CC_C_O.
                   2080: m4_defun([_LT_COMPILER_C_O],
                   2081: [m4_require([_LT_DECL_SED])dnl
                   2082: m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   2083: m4_require([_LT_TAG_COMPILER])dnl
                   2084: AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
                   2085:   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
                   2086:   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
                   2087:    $RM -r conftest 2>/dev/null
                   2088:    mkdir conftest
                   2089:    cd conftest
                   2090:    mkdir out
                   2091:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   2092:
                   2093:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   2094:    # Insert the option either (1) after the last *FLAGS variable, or
                   2095:    # (2) before a word containing "conftest.", or (3) at the end.
                   2096:    # Note that $ac_compile itself does not contain backslashes and begins
                   2097:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   2098:    lt_compile=`echo "$ac_compile" | $SED \
                   2099:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   2100:    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
                   2101:    -e 's:$: $lt_compiler_flag:'`
                   2102:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
                   2103:    (eval "$lt_compile" 2>out/conftest.err)
                   2104:    ac_status=$?
                   2105:    cat out/conftest.err >&AS_MESSAGE_LOG_FD
                   2106:    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
                   2107:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   2108:    then
                   2109:      # The compiler can only warn and ignore the option if not recognized
                   2110:      # So say no if there are warnings
                   2111:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
                   2112:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   2113:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   2114:        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
                   2115:      fi
                   2116:    fi
                   2117:    chmod u+w . 2>&AS_MESSAGE_LOG_FD
                   2118:    $RM conftest*
                   2119:    # SGI C++ compiler will create directory out/ii_files/ for
                   2120:    # template instantiation
                   2121:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
                   2122:    $RM out/* && rmdir out
                   2123:    cd ..
                   2124:    $RM -r conftest
                   2125:    $RM conftest*
                   2126: ])
                   2127: _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
                   2128:        [Does compiler simultaneously support -c and -o options?])
                   2129: ])# _LT_COMPILER_C_O
                   2130:
                   2131:
                   2132: # _LT_COMPILER_FILE_LOCKS([TAGNAME])
                   2133: # ----------------------------------
                   2134: # Check to see if we can do hard links to lock some files if needed
                   2135: m4_defun([_LT_COMPILER_FILE_LOCKS],
                   2136: [m4_require([_LT_ENABLE_LOCK])dnl
                   2137: m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   2138: _LT_COMPILER_C_O([$1])
                   2139:
                   2140: hard_links=nottested
                   2141: if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
                   2142:   # do not overwrite the value of need_locks provided by the user
                   2143:   AC_MSG_CHECKING([if we can lock with hard links])
                   2144:   hard_links=yes
                   2145:   $RM conftest*
                   2146:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   2147:   touch conftest.a
                   2148:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   2149:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   2150:   AC_MSG_RESULT([$hard_links])
                   2151:   if test no = "$hard_links"; then
                   2152:     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
                   2153:     need_locks=warn
                   2154:   fi
                   2155: else
                   2156:   need_locks=no
                   2157: fi
                   2158: _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
                   2159: ])# _LT_COMPILER_FILE_LOCKS
                   2160:
                   2161:
                   2162: # _LT_CHECK_OBJDIR
                   2163: # ----------------
                   2164: m4_defun([_LT_CHECK_OBJDIR],
                   2165: [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
                   2166: [rm -f .libs 2>/dev/null
                   2167: mkdir .libs 2>/dev/null
                   2168: if test -d .libs; then
                   2169:   lt_cv_objdir=.libs
                   2170: else
                   2171:   # MS-DOS does not allow filenames that begin with a dot.
                   2172:   lt_cv_objdir=_libs
                   2173: fi
                   2174: rmdir .libs 2>/dev/null])
                   2175: objdir=$lt_cv_objdir
                   2176: _LT_DECL([], [objdir], [0],
                   2177:          [The name of the directory that contains temporary libtool files])dnl
                   2178: m4_pattern_allow([LT_OBJDIR])dnl
                   2179: AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
                   2180:   [Define to the sub-directory where libtool stores uninstalled libraries.])
                   2181: ])# _LT_CHECK_OBJDIR
                   2182:
                   2183:
                   2184: # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
                   2185: # --------------------------------------
                   2186: # Check hardcoding attributes.
                   2187: m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
                   2188: [AC_MSG_CHECKING([how to hardcode library paths into programs])
                   2189: _LT_TAGVAR(hardcode_action, $1)=
                   2190: if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
                   2191:    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
                   2192:    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
                   2193:
                   2194:   # We can hardcode non-existent directories.
                   2195:   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
                   2196:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   2197:      # have to relink, otherwise we might link with an installed library
                   2198:      # when we should be linking with a yet-to-be-installed one
                   2199:      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
                   2200:      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
                   2201:     # Linking always hardcodes the temporary library directory.
                   2202:     _LT_TAGVAR(hardcode_action, $1)=relink
                   2203:   else
                   2204:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   2205:     _LT_TAGVAR(hardcode_action, $1)=immediate
                   2206:   fi
                   2207: else
                   2208:   # We cannot hardcode anything, or else we can only hardcode existing
                   2209:   # directories.
                   2210:   _LT_TAGVAR(hardcode_action, $1)=unsupported
                   2211: fi
                   2212: AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
                   2213:
                   2214: if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
                   2215:    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
                   2216:   # Fast installation is not supported
                   2217:   enable_fast_install=no
                   2218: elif test yes = "$shlibpath_overrides_runpath" ||
                   2219:      test no = "$enable_shared"; then
                   2220:   # Fast installation is not necessary
                   2221:   enable_fast_install=needless
                   2222: fi
                   2223: _LT_TAGDECL([], [hardcode_action], [0],
                   2224:     [How to hardcode a shared library path into an executable])
                   2225: ])# _LT_LINKER_HARDCODE_LIBPATH
                   2226:
                   2227:
                   2228: # _LT_CMD_STRIPLIB
                   2229: # ----------------
                   2230: m4_defun([_LT_CMD_STRIPLIB],
                   2231: [m4_require([_LT_DECL_EGREP])
                   2232: striplib=
                   2233: old_striplib=
                   2234: AC_MSG_CHECKING([whether stripping libraries is possible])
1.5     ! ohara    2235: if test -z "$STRIP"; then
        !          2236:   AC_MSG_RESULT([no])
1.4       ohara    2237: else
1.5     ! ohara    2238:   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
        !          2239:     old_striplib="$STRIP --strip-debug"
        !          2240:     striplib="$STRIP --strip-unneeded"
        !          2241:     AC_MSG_RESULT([yes])
        !          2242:   else
        !          2243:     case $host_os in
        !          2244:     darwin*)
        !          2245:       # FIXME - insert some real tests, host_os isn't really good enough
1.4       ohara    2246:       striplib="$STRIP -x"
                   2247:       old_striplib="$STRIP -S"
                   2248:       AC_MSG_RESULT([yes])
1.5     ! ohara    2249:       ;;
        !          2250:     freebsd*)
        !          2251:       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
        !          2252:         old_striplib="$STRIP --strip-debug"
        !          2253:         striplib="$STRIP --strip-unneeded"
        !          2254:         AC_MSG_RESULT([yes])
        !          2255:       else
        !          2256:         AC_MSG_RESULT([no])
        !          2257:       fi
        !          2258:       ;;
        !          2259:     *)
1.4       ohara    2260:       AC_MSG_RESULT([no])
1.5     ! ohara    2261:       ;;
        !          2262:     esac
        !          2263:   fi
1.4       ohara    2264: fi
                   2265: _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
                   2266: _LT_DECL([], [striplib], [1])
                   2267: ])# _LT_CMD_STRIPLIB
                   2268:
                   2269:
                   2270: # _LT_PREPARE_MUNGE_PATH_LIST
                   2271: # ---------------------------
                   2272: # Make sure func_munge_path_list() is defined correctly.
                   2273: m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
                   2274: [[# func_munge_path_list VARIABLE PATH
                   2275: # -----------------------------------
                   2276: # VARIABLE is name of variable containing _space_ separated list of
                   2277: # directories to be munged by the contents of PATH, which is string
                   2278: # having a format:
                   2279: # "DIR[:DIR]:"
                   2280: #       string "DIR[ DIR]" will be prepended to VARIABLE
                   2281: # ":DIR[:DIR]"
                   2282: #       string "DIR[ DIR]" will be appended to VARIABLE
                   2283: # "DIRP[:DIRP]::[DIRA:]DIRA"
                   2284: #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
                   2285: #       "DIRA[ DIRA]" will be appended to VARIABLE
                   2286: # "DIR[:DIR]"
                   2287: #       VARIABLE will be replaced by "DIR[ DIR]"
                   2288: func_munge_path_list ()
                   2289: {
                   2290:     case x@S|@2 in
                   2291:     x)
                   2292:         ;;
                   2293:     *:)
                   2294:         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
                   2295:         ;;
                   2296:     x:*)
                   2297:         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
                   2298:         ;;
                   2299:     *::*)
                   2300:         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
                   2301:         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
                   2302:         ;;
                   2303:     *)
                   2304:         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
                   2305:         ;;
                   2306:     esac
                   2307: }
                   2308: ]])# _LT_PREPARE_PATH_LIST
                   2309:
                   2310:
                   2311: # _LT_SYS_DYNAMIC_LINKER([TAG])
                   2312: # -----------------------------
                   2313: # PORTME Fill in your ld.so characteristics
                   2314: m4_defun([_LT_SYS_DYNAMIC_LINKER],
                   2315: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   2316: m4_require([_LT_DECL_EGREP])dnl
                   2317: m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   2318: m4_require([_LT_DECL_OBJDUMP])dnl
                   2319: m4_require([_LT_DECL_SED])dnl
                   2320: m4_require([_LT_CHECK_SHELL_FEATURES])dnl
                   2321: m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
                   2322: AC_MSG_CHECKING([dynamic linker characteristics])
                   2323: m4_if([$1],
                   2324:        [], [
                   2325: if test yes = "$GCC"; then
                   2326:   case $host_os in
                   2327:     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
                   2328:     *) lt_awk_arg='/^libraries:/' ;;
                   2329:   esac
                   2330:   case $host_os in
                   2331:     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
                   2332:     *) lt_sed_strip_eq='s|=/|/|g' ;;
                   2333:   esac
                   2334:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
                   2335:   case $lt_search_path_spec in
                   2336:   *\;*)
                   2337:     # if the path contains ";" then we assume it to be the separator
                   2338:     # otherwise default to the standard path separator (i.e. ":") - it is
                   2339:     # assumed that no part of a normal pathname contains ";" but that should
                   2340:     # okay in the real world where ";" in dirpaths is itself problematic.
                   2341:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
                   2342:     ;;
                   2343:   *)
                   2344:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
                   2345:     ;;
                   2346:   esac
                   2347:   # Ok, now we have the path, separated by spaces, we can step through it
                   2348:   # and add multilib dir if necessary...
                   2349:   lt_tmp_lt_search_path_spec=
                   2350:   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   2351:   # ...but if some path component already ends with the multilib dir we assume
                   2352:   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
                   2353:   case "$lt_multi_os_dir; $lt_search_path_spec " in
                   2354:   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
                   2355:     lt_multi_os_dir=
                   2356:     ;;
                   2357:   esac
                   2358:   for lt_sys_path in $lt_search_path_spec; do
                   2359:     if test -d "$lt_sys_path$lt_multi_os_dir"; then
                   2360:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
                   2361:     elif test -n "$lt_multi_os_dir"; then
                   2362:       test -d "$lt_sys_path" && \
                   2363:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   2364:     fi
                   2365:   done
                   2366:   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
                   2367: BEGIN {RS = " "; FS = "/|\n";} {
                   2368:   lt_foo = "";
                   2369:   lt_count = 0;
                   2370:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   2371:     if ($lt_i != "" && $lt_i != ".") {
                   2372:       if ($lt_i == "..") {
                   2373:         lt_count++;
                   2374:       } else {
                   2375:         if (lt_count == 0) {
                   2376:           lt_foo = "/" $lt_i lt_foo;
                   2377:         } else {
                   2378:           lt_count--;
                   2379:         }
                   2380:       }
                   2381:     }
                   2382:   }
                   2383:   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
                   2384:   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
                   2385: }'`
                   2386:   # AWK program above erroneously prepends '/' to C:/dos/paths
                   2387:   # for these hosts.
                   2388:   case $host_os in
                   2389:     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
                   2390:       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
                   2391:   esac
                   2392:   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
                   2393: else
                   2394:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   2395: fi])
                   2396: library_names_spec=
                   2397: libname_spec='lib$name'
                   2398: soname_spec=
                   2399: shrext_cmds=.so
                   2400: postinstall_cmds=
                   2401: postuninstall_cmds=
                   2402: finish_cmds=
                   2403: finish_eval=
                   2404: shlibpath_var=
                   2405: shlibpath_overrides_runpath=unknown
                   2406: version_type=none
                   2407: dynamic_linker="$host_os ld.so"
                   2408: sys_lib_dlsearch_path_spec="/lib /usr/lib"
                   2409: need_lib_prefix=unknown
                   2410: hardcode_into_libs=no
                   2411:
                   2412: # when you set need_version to no, make sure it does not cause -set_version
                   2413: # flags to be left without arguments
                   2414: need_version=unknown
                   2415:
                   2416: AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
                   2417: [User-defined run-time library search path.])
                   2418:
                   2419: case $host_os in
                   2420: aix3*)
                   2421:   version_type=linux # correct to gnu/linux during the next big refactor
                   2422:   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
                   2423:   shlibpath_var=LIBPATH
                   2424:
                   2425:   # AIX 3 has no versioning support, so we append a major version to the name.
                   2426:   soname_spec='$libname$release$shared_ext$major'
                   2427:   ;;
                   2428:
                   2429: aix[[4-9]]*)
                   2430:   version_type=linux # correct to gnu/linux during the next big refactor
                   2431:   need_lib_prefix=no
                   2432:   need_version=no
                   2433:   hardcode_into_libs=yes
                   2434:   if test ia64 = "$host_cpu"; then
                   2435:     # AIX 5 supports IA64
                   2436:     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
                   2437:     shlibpath_var=LD_LIBRARY_PATH
                   2438:   else
                   2439:     # With GCC up to 2.95.x, collect2 would create an import file
                   2440:     # for dependence libraries.  The import file would start with
                   2441:     # the line '#! .'.  This would cause the generated library to
                   2442:     # depend on '.', always an invalid library.  This was fixed in
                   2443:     # development snapshots of GCC prior to 3.0.
                   2444:     case $host_os in
                   2445:       aix4 | aix4.[[01]] | aix4.[[01]].*)
                   2446:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   2447:           echo ' yes '
                   2448:           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
                   2449:        :
                   2450:       else
                   2451:        can_build_shared=no
                   2452:       fi
                   2453:       ;;
                   2454:     esac
                   2455:     # Using Import Files as archive members, it is possible to support
                   2456:     # filename-based versioning of shared library archives on AIX. While
                   2457:     # this would work for both with and without runtime linking, it will
                   2458:     # prevent static linking of such archives. So we do filename-based
                   2459:     # shared library versioning with .so extension only, which is used
                   2460:     # when both runtime linking and shared linking is enabled.
                   2461:     # Unfortunately, runtime linking may impact performance, so we do
                   2462:     # not want this to be the default eventually. Also, we use the
                   2463:     # versioned .so libs for executables only if there is the -brtl
                   2464:     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
                   2465:     # To allow for filename-based versioning support, we need to create
                   2466:     # libNAME.so.V as an archive file, containing:
                   2467:     # *) an Import File, referring to the versioned filename of the
                   2468:     #    archive as well as the shared archive member, telling the
                   2469:     #    bitwidth (32 or 64) of that shared object, and providing the
                   2470:     #    list of exported symbols of that shared object, eventually
                   2471:     #    decorated with the 'weak' keyword
                   2472:     # *) the shared object with the F_LOADONLY flag set, to really avoid
                   2473:     #    it being seen by the linker.
                   2474:     # At run time we better use the real file rather than another symlink,
                   2475:     # but for link time we create the symlink libNAME.so -> libNAME.so.V
                   2476:
                   2477:     case $with_aix_soname,$aix_use_runtimelinking in
                   2478:     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
                   2479:     # soname into executable. Probably we can add versioning support to
                   2480:     # collect2, so additional links can be useful in future.
                   2481:     aix,yes) # traditional libtool
                   2482:       dynamic_linker='AIX unversionable lib.so'
                   2483:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   2484:       # instead of lib<name>.a to let people know that these are not
                   2485:       # typical AIX shared libraries.
                   2486:       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2487:       ;;
                   2488:     aix,no) # traditional AIX only
                   2489:       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
                   2490:       # We preserve .a as extension for shared libraries through AIX4.2
                   2491:       # and later when we are not doing run time linking.
                   2492:       library_names_spec='$libname$release.a $libname.a'
                   2493:       soname_spec='$libname$release$shared_ext$major'
                   2494:       ;;
                   2495:     svr4,*) # full svr4 only
                   2496:       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
                   2497:       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
                   2498:       # We do not specify a path in Import Files, so LIBPATH fires.
                   2499:       shlibpath_overrides_runpath=yes
                   2500:       ;;
                   2501:     *,yes) # both, prefer svr4
                   2502:       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
                   2503:       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
                   2504:       # unpreferred sharedlib libNAME.a needs extra handling
                   2505:       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
                   2506:       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
                   2507:       # We do not specify a path in Import Files, so LIBPATH fires.
                   2508:       shlibpath_overrides_runpath=yes
                   2509:       ;;
                   2510:     *,no) # both, prefer aix
                   2511:       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
                   2512:       library_names_spec='$libname$release.a $libname.a'
                   2513:       soname_spec='$libname$release$shared_ext$major'
                   2514:       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
                   2515:       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
                   2516:       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
                   2517:       ;;
                   2518:     esac
                   2519:     shlibpath_var=LIBPATH
                   2520:   fi
                   2521:   ;;
                   2522:
                   2523: amigaos*)
                   2524:   case $host_cpu in
                   2525:   powerpc)
                   2526:     # Since July 2007 AmigaOS4 officially supports .so libraries.
                   2527:     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
                   2528:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2529:     ;;
                   2530:   m68k)
                   2531:     library_names_spec='$libname.ixlibrary $libname.a'
                   2532:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   2533:     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   2534:     ;;
                   2535:   esac
                   2536:   ;;
                   2537:
                   2538: beos*)
                   2539:   library_names_spec='$libname$shared_ext'
                   2540:   dynamic_linker="$host_os ld.so"
                   2541:   shlibpath_var=LIBRARY_PATH
                   2542:   ;;
                   2543:
                   2544: bsdi[[45]]*)
                   2545:   version_type=linux # correct to gnu/linux during the next big refactor
                   2546:   need_version=no
                   2547:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2548:   soname_spec='$libname$release$shared_ext$major'
                   2549:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   2550:   shlibpath_var=LD_LIBRARY_PATH
                   2551:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   2552:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   2553:   # the default ld.so.conf also contains /usr/contrib/lib and
                   2554:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   2555:   # libtool to hard-code these into programs
                   2556:   ;;
                   2557:
                   2558: cygwin* | mingw* | pw32* | cegcc*)
                   2559:   version_type=windows
                   2560:   shrext_cmds=.dll
                   2561:   need_version=no
                   2562:   need_lib_prefix=no
                   2563:
                   2564:   case $GCC,$cc_basename in
                   2565:   yes,*)
                   2566:     # gcc
                   2567:     library_names_spec='$libname.dll.a'
                   2568:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   2569:     postinstall_cmds='base_file=`basename \$file`~
                   2570:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
                   2571:       dldir=$destdir/`dirname \$dlpath`~
                   2572:       test -d \$dldir || mkdir -p \$dldir~
                   2573:       $install_prog $dir/$dlname \$dldir/$dlname~
                   2574:       chmod a+x \$dldir/$dlname~
                   2575:       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
                   2576:         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
                   2577:       fi'
                   2578:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   2579:       dlpath=$dir/\$dldll~
                   2580:        $RM \$dlpath'
                   2581:     shlibpath_overrides_runpath=yes
                   2582:
                   2583:     case $host_os in
                   2584:     cygwin*)
                   2585:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.5     ! ohara    2586:       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
1.4       ohara    2587: m4_if([$1], [],[
                   2588:       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
                   2589:       ;;
                   2590:     mingw* | cegcc*)
                   2591:       # MinGW DLLs use traditional 'lib' prefix
                   2592:       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
                   2593:       ;;
                   2594:     pw32*)
                   2595:       # pw32 DLLs use 'pw' prefix rather than 'lib'
1.5     ! ohara    2596:       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
1.4       ohara    2597:       ;;
                   2598:     esac
                   2599:     dynamic_linker='Win32 ld.exe'
                   2600:     ;;
                   2601:
1.5     ! ohara    2602:   *,cl* | *,icl*)
        !          2603:     # Native MSVC or ICC
1.4       ohara    2604:     libname_spec='$name'
                   2605:     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
                   2606:     library_names_spec='$libname.dll.lib'
                   2607:
                   2608:     case $build_os in
                   2609:     mingw*)
                   2610:       sys_lib_search_path_spec=
                   2611:       lt_save_ifs=$IFS
                   2612:       IFS=';'
                   2613:       for lt_path in $LIB
                   2614:       do
                   2615:         IFS=$lt_save_ifs
                   2616:         # Let DOS variable expansion print the short 8.3 style file name.
                   2617:         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
                   2618:         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
                   2619:       done
                   2620:       IFS=$lt_save_ifs
                   2621:       # Convert to MSYS style.
1.5     ! ohara    2622:       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
1.4       ohara    2623:       ;;
                   2624:     cygwin*)
                   2625:       # Convert to unix form, then to dos form, then back to unix form
                   2626:       # but this time dos style (no spaces!) so that the unix form looks
                   2627:       # like /cygdrive/c/PROGRA~1:/cygdr...
                   2628:       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
                   2629:       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
                   2630:       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   2631:       ;;
                   2632:     *)
                   2633:       sys_lib_search_path_spec=$LIB
                   2634:       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
                   2635:         # It is most probably a Windows format PATH.
                   2636:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   2637:       else
                   2638:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
                   2639:       fi
                   2640:       # FIXME: find the short name or the path components, as spaces are
                   2641:       # common. (e.g. "Program Files" -> "PROGRA~1")
                   2642:       ;;
                   2643:     esac
                   2644:
                   2645:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   2646:     postinstall_cmds='base_file=`basename \$file`~
                   2647:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
                   2648:       dldir=$destdir/`dirname \$dlpath`~
                   2649:       test -d \$dldir || mkdir -p \$dldir~
                   2650:       $install_prog $dir/$dlname \$dldir/$dlname'
                   2651:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   2652:       dlpath=$dir/\$dldll~
                   2653:        $RM \$dlpath'
                   2654:     shlibpath_overrides_runpath=yes
                   2655:     dynamic_linker='Win32 link.exe'
                   2656:     ;;
                   2657:
                   2658:   *)
1.5     ! ohara    2659:     # Assume MSVC and ICC wrapper
1.4       ohara    2660:     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
                   2661:     dynamic_linker='Win32 ld.exe'
                   2662:     ;;
                   2663:   esac
                   2664:   # FIXME: first we should search . and the directory the executable is in
                   2665:   shlibpath_var=PATH
                   2666:   ;;
                   2667:
                   2668: darwin* | rhapsody*)
                   2669:   dynamic_linker="$host_os dyld"
                   2670:   version_type=darwin
                   2671:   need_lib_prefix=no
                   2672:   need_version=no
                   2673:   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
                   2674:   soname_spec='$libname$release$major$shared_ext'
                   2675:   shlibpath_overrides_runpath=yes
                   2676:   shlibpath_var=DYLD_LIBRARY_PATH
                   2677:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
                   2678: m4_if([$1], [],[
                   2679:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
                   2680:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   2681:   ;;
                   2682:
                   2683: dgux*)
                   2684:   version_type=linux # correct to gnu/linux during the next big refactor
                   2685:   need_lib_prefix=no
                   2686:   need_version=no
                   2687:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2688:   soname_spec='$libname$release$shared_ext$major'
                   2689:   shlibpath_var=LD_LIBRARY_PATH
                   2690:   ;;
                   2691:
1.5     ! ohara    2692: freebsd* | dragonfly* | midnightbsd*)
1.4       ohara    2693:   # DragonFly does not have aout.  When/if they implement a new
                   2694:   # versioning mechanism, adjust this.
                   2695:   if test -x /usr/bin/objformat; then
                   2696:     objformat=`/usr/bin/objformat`
                   2697:   else
                   2698:     case $host_os in
                   2699:     freebsd[[23]].*) objformat=aout ;;
                   2700:     *) objformat=elf ;;
                   2701:     esac
                   2702:   fi
                   2703:   version_type=freebsd-$objformat
                   2704:   case $version_type in
                   2705:     freebsd-elf*)
                   2706:       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2707:       soname_spec='$libname$release$shared_ext$major'
                   2708:       need_version=no
                   2709:       need_lib_prefix=no
                   2710:       ;;
                   2711:     freebsd-*)
                   2712:       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
                   2713:       need_version=yes
                   2714:       ;;
                   2715:   esac
                   2716:   shlibpath_var=LD_LIBRARY_PATH
                   2717:   case $host_os in
                   2718:   freebsd2.*)
                   2719:     shlibpath_overrides_runpath=yes
                   2720:     ;;
                   2721:   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
                   2722:     shlibpath_overrides_runpath=yes
                   2723:     hardcode_into_libs=yes
                   2724:     ;;
                   2725:   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
                   2726:   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
                   2727:     shlibpath_overrides_runpath=no
                   2728:     hardcode_into_libs=yes
                   2729:     ;;
                   2730:   *) # from 4.6 on, and DragonFly
                   2731:     shlibpath_overrides_runpath=yes
                   2732:     hardcode_into_libs=yes
                   2733:     ;;
                   2734:   esac
                   2735:   ;;
                   2736:
                   2737: haiku*)
                   2738:   version_type=linux # correct to gnu/linux during the next big refactor
                   2739:   need_lib_prefix=no
                   2740:   need_version=no
                   2741:   dynamic_linker="$host_os runtime_loader"
                   2742:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2743:   soname_spec='$libname$release$shared_ext$major'
                   2744:   shlibpath_var=LIBRARY_PATH
                   2745:   shlibpath_overrides_runpath=no
                   2746:   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
                   2747:   hardcode_into_libs=yes
                   2748:   ;;
                   2749:
                   2750: hpux9* | hpux10* | hpux11*)
                   2751:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   2752:   # link against other versions.
                   2753:   version_type=sunos
                   2754:   need_lib_prefix=no
                   2755:   need_version=no
                   2756:   case $host_cpu in
                   2757:   ia64*)
                   2758:     shrext_cmds='.so'
                   2759:     hardcode_into_libs=yes
                   2760:     dynamic_linker="$host_os dld.so"
                   2761:     shlibpath_var=LD_LIBRARY_PATH
                   2762:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   2763:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2764:     soname_spec='$libname$release$shared_ext$major'
                   2765:     if test 32 = "$HPUX_IA64_MODE"; then
                   2766:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   2767:       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
                   2768:     else
                   2769:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   2770:       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
                   2771:     fi
                   2772:     ;;
                   2773:   hppa*64*)
                   2774:     shrext_cmds='.sl'
                   2775:     hardcode_into_libs=yes
                   2776:     dynamic_linker="$host_os dld.sl"
                   2777:     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   2778:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   2779:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2780:     soname_spec='$libname$release$shared_ext$major'
                   2781:     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   2782:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   2783:     ;;
                   2784:   *)
                   2785:     shrext_cmds='.sl'
                   2786:     dynamic_linker="$host_os dld.sl"
                   2787:     shlibpath_var=SHLIB_PATH
                   2788:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   2789:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2790:     soname_spec='$libname$release$shared_ext$major'
                   2791:     ;;
                   2792:   esac
                   2793:   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
                   2794:   postinstall_cmds='chmod 555 $lib'
                   2795:   # or fails outright, so override atomically:
                   2796:   install_override_mode=555
                   2797:   ;;
                   2798:
                   2799: interix[[3-9]]*)
                   2800:   version_type=linux # correct to gnu/linux during the next big refactor
                   2801:   need_lib_prefix=no
                   2802:   need_version=no
                   2803:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2804:   soname_spec='$libname$release$shared_ext$major'
                   2805:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   2806:   shlibpath_var=LD_LIBRARY_PATH
                   2807:   shlibpath_overrides_runpath=no
                   2808:   hardcode_into_libs=yes
                   2809:   ;;
                   2810:
                   2811: irix5* | irix6* | nonstopux*)
                   2812:   case $host_os in
                   2813:     nonstopux*) version_type=nonstopux ;;
                   2814:     *)
                   2815:        if test yes = "$lt_cv_prog_gnu_ld"; then
                   2816:                version_type=linux # correct to gnu/linux during the next big refactor
                   2817:        else
                   2818:                version_type=irix
                   2819:        fi ;;
                   2820:   esac
                   2821:   need_lib_prefix=no
                   2822:   need_version=no
                   2823:   soname_spec='$libname$release$shared_ext$major'
                   2824:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
                   2825:   case $host_os in
                   2826:   irix5* | nonstopux*)
                   2827:     libsuff= shlibsuff=
                   2828:     ;;
                   2829:   *)
                   2830:     case $LD in # libtool.m4 will add one of these switches to LD
                   2831:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   2832:       libsuff= shlibsuff= libmagic=32-bit;;
                   2833:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   2834:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   2835:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   2836:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   2837:     *) libsuff= shlibsuff= libmagic=never-match;;
                   2838:     esac
                   2839:     ;;
                   2840:   esac
                   2841:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   2842:   shlibpath_overrides_runpath=no
                   2843:   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
                   2844:   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
                   2845:   hardcode_into_libs=yes
                   2846:   ;;
                   2847:
                   2848: # No shared lib support for Linux oldld, aout, or coff.
                   2849: linux*oldld* | linux*aout* | linux*coff*)
                   2850:   dynamic_linker=no
                   2851:   ;;
                   2852:
                   2853: linux*android*)
                   2854:   version_type=none # Android doesn't support versioned libraries.
                   2855:   need_lib_prefix=no
                   2856:   need_version=no
                   2857:   library_names_spec='$libname$release$shared_ext'
                   2858:   soname_spec='$libname$release$shared_ext'
                   2859:   finish_cmds=
                   2860:   shlibpath_var=LD_LIBRARY_PATH
                   2861:   shlibpath_overrides_runpath=yes
                   2862:
                   2863:   # This implies no fast_install, which is unacceptable.
                   2864:   # Some rework will be needed to allow for fast_install
                   2865:   # before this can be enabled.
                   2866:   hardcode_into_libs=yes
                   2867:
                   2868:   dynamic_linker='Android linker'
                   2869:   # Don't embed -rpath directories since the linker doesn't support them.
                   2870:   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   2871:   ;;
                   2872:
                   2873: # This must be glibc/ELF.
                   2874: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
                   2875:   version_type=linux # correct to gnu/linux during the next big refactor
                   2876:   need_lib_prefix=no
                   2877:   need_version=no
                   2878:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2879:   soname_spec='$libname$release$shared_ext$major'
                   2880:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   2881:   shlibpath_var=LD_LIBRARY_PATH
                   2882:   shlibpath_overrides_runpath=no
                   2883:
                   2884:   # Some binutils ld are patched to set DT_RUNPATH
                   2885:   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
                   2886:     [lt_cv_shlibpath_overrides_runpath=no
                   2887:     save_LDFLAGS=$LDFLAGS
                   2888:     save_libdir=$libdir
                   2889:     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
                   2890:         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
                   2891:     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
                   2892:       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
                   2893:         [lt_cv_shlibpath_overrides_runpath=yes])])
                   2894:     LDFLAGS=$save_LDFLAGS
                   2895:     libdir=$save_libdir
                   2896:     ])
                   2897:   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
                   2898:
                   2899:   # This implies no fast_install, which is unacceptable.
                   2900:   # Some rework will be needed to allow for fast_install
                   2901:   # before this can be enabled.
                   2902:   hardcode_into_libs=yes
                   2903:
                   2904:   # Ideally, we could use ldconfig to report *all* directores which are
                   2905:   # searched for libraries, however this is still not possible.  Aside from not
                   2906:   # being certain /sbin/ldconfig is available, command
                   2907:   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
                   2908:   # even though it is searched at run-time.  Try to do the best guess by
                   2909:   # appending ld.so.conf contents (and includes) to the search path.
                   2910:   if test -f /etc/ld.so.conf; then
                   2911:     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' ' '`
                   2912:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   2913:   fi
                   2914:
                   2915:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   2916:   # powerpc, because MkLinux only supported shared libraries with the
                   2917:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   2918:   # most powerpc-linux boxes support dynamic linking these days and
                   2919:   # people can always --disable-shared, the test was removed, and we
                   2920:   # assume the GNU/Linux dynamic linker is in use.
                   2921:   dynamic_linker='GNU/Linux ld.so'
                   2922:   ;;
                   2923:
                   2924: netbsd*)
                   2925:   version_type=sunos
                   2926:   need_lib_prefix=no
                   2927:   need_version=no
                   2928:   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   2929:     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
                   2930:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   2931:     dynamic_linker='NetBSD (a.out) ld.so'
                   2932:   else
                   2933:     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2934:     soname_spec='$libname$release$shared_ext$major'
                   2935:     dynamic_linker='NetBSD ld.elf_so'
                   2936:   fi
                   2937:   shlibpath_var=LD_LIBRARY_PATH
                   2938:   shlibpath_overrides_runpath=yes
                   2939:   hardcode_into_libs=yes
                   2940:   ;;
                   2941:
                   2942: newsos6)
                   2943:   version_type=linux # correct to gnu/linux during the next big refactor
                   2944:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2945:   shlibpath_var=LD_LIBRARY_PATH
                   2946:   shlibpath_overrides_runpath=yes
                   2947:   ;;
                   2948:
                   2949: *nto* | *qnx*)
                   2950:   version_type=qnx
                   2951:   need_lib_prefix=no
                   2952:   need_version=no
                   2953:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   2954:   soname_spec='$libname$release$shared_ext$major'
                   2955:   shlibpath_var=LD_LIBRARY_PATH
                   2956:   shlibpath_overrides_runpath=no
                   2957:   hardcode_into_libs=yes
                   2958:   dynamic_linker='ldqnx.so'
                   2959:   ;;
                   2960:
                   2961: openbsd* | bitrig*)
                   2962:   version_type=sunos
                   2963:   sys_lib_dlsearch_path_spec=/usr/lib
                   2964:   need_lib_prefix=no
                   2965:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
                   2966:     need_version=no
                   2967:   else
                   2968:     need_version=yes
                   2969:   fi
                   2970:   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
                   2971:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   2972:   shlibpath_var=LD_LIBRARY_PATH
                   2973:   shlibpath_overrides_runpath=yes
                   2974:   ;;
                   2975:
                   2976: os2*)
                   2977:   libname_spec='$name'
                   2978:   version_type=windows
                   2979:   shrext_cmds=.dll
                   2980:   need_version=no
                   2981:   need_lib_prefix=no
                   2982:   # OS/2 can only load a DLL with a base name of 8 characters or less.
                   2983:   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
                   2984:     v=$($ECHO $release$versuffix | tr -d .-);
                   2985:     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
                   2986:     $ECHO $n$v`$shared_ext'
                   2987:   library_names_spec='${libname}_dll.$libext'
                   2988:   dynamic_linker='OS/2 ld.exe'
                   2989:   shlibpath_var=BEGINLIBPATH
                   2990:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
                   2991:   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   2992:   postinstall_cmds='base_file=`basename \$file`~
                   2993:     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
                   2994:     dldir=$destdir/`dirname \$dlpath`~
                   2995:     test -d \$dldir || mkdir -p \$dldir~
                   2996:     $install_prog $dir/$dlname \$dldir/$dlname~
                   2997:     chmod a+x \$dldir/$dlname~
                   2998:     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
                   2999:       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
                   3000:     fi'
                   3001:   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
                   3002:     dlpath=$dir/\$dldll~
                   3003:     $RM \$dlpath'
                   3004:   ;;
                   3005:
                   3006: osf3* | osf4* | osf5*)
                   3007:   version_type=osf
                   3008:   need_lib_prefix=no
                   3009:   need_version=no
                   3010:   soname_spec='$libname$release$shared_ext$major'
                   3011:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   3012:   shlibpath_var=LD_LIBRARY_PATH
                   3013:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   3014:   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   3015:   ;;
                   3016:
                   3017: rdos*)
                   3018:   dynamic_linker=no
                   3019:   ;;
                   3020:
                   3021: solaris*)
                   3022:   version_type=linux # correct to gnu/linux during the next big refactor
                   3023:   need_lib_prefix=no
                   3024:   need_version=no
                   3025:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   3026:   soname_spec='$libname$release$shared_ext$major'
                   3027:   shlibpath_var=LD_LIBRARY_PATH
                   3028:   shlibpath_overrides_runpath=yes
                   3029:   hardcode_into_libs=yes
                   3030:   # ldd complains unless libraries are executable
                   3031:   postinstall_cmds='chmod +x $lib'
                   3032:   ;;
                   3033:
                   3034: sunos4*)
                   3035:   version_type=sunos
                   3036:   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
                   3037:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   3038:   shlibpath_var=LD_LIBRARY_PATH
                   3039:   shlibpath_overrides_runpath=yes
                   3040:   if test yes = "$with_gnu_ld"; then
                   3041:     need_lib_prefix=no
                   3042:   fi
                   3043:   need_version=yes
                   3044:   ;;
                   3045:
                   3046: sysv4 | sysv4.3*)
                   3047:   version_type=linux # correct to gnu/linux during the next big refactor
                   3048:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   3049:   soname_spec='$libname$release$shared_ext$major'
                   3050:   shlibpath_var=LD_LIBRARY_PATH
                   3051:   case $host_vendor in
                   3052:     sni)
                   3053:       shlibpath_overrides_runpath=no
                   3054:       need_lib_prefix=no
                   3055:       runpath_var=LD_RUN_PATH
                   3056:       ;;
                   3057:     siemens)
                   3058:       need_lib_prefix=no
                   3059:       ;;
                   3060:     motorola)
                   3061:       need_lib_prefix=no
                   3062:       need_version=no
                   3063:       shlibpath_overrides_runpath=no
                   3064:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   3065:       ;;
                   3066:   esac
                   3067:   ;;
                   3068:
                   3069: sysv4*MP*)
                   3070:   if test -d /usr/nec; then
                   3071:     version_type=linux # correct to gnu/linux during the next big refactor
                   3072:     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
                   3073:     soname_spec='$libname$shared_ext.$major'
                   3074:     shlibpath_var=LD_LIBRARY_PATH
                   3075:   fi
                   3076:   ;;
                   3077:
                   3078: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   3079:   version_type=sco
                   3080:   need_lib_prefix=no
                   3081:   need_version=no
                   3082:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
                   3083:   soname_spec='$libname$release$shared_ext$major'
                   3084:   shlibpath_var=LD_LIBRARY_PATH
                   3085:   shlibpath_overrides_runpath=yes
                   3086:   hardcode_into_libs=yes
                   3087:   if test yes = "$with_gnu_ld"; then
                   3088:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   3089:   else
                   3090:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   3091:     case $host_os in
                   3092:       sco3.2v5*)
                   3093:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   3094:        ;;
                   3095:     esac
                   3096:   fi
                   3097:   sys_lib_dlsearch_path_spec='/usr/lib'
                   3098:   ;;
                   3099:
                   3100: tpf*)
                   3101:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
                   3102:   version_type=linux # correct to gnu/linux during the next big refactor
                   3103:   need_lib_prefix=no
                   3104:   need_version=no
                   3105:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   3106:   shlibpath_var=LD_LIBRARY_PATH
                   3107:   shlibpath_overrides_runpath=no
                   3108:   hardcode_into_libs=yes
                   3109:   ;;
                   3110:
                   3111: uts4*)
                   3112:   version_type=linux # correct to gnu/linux during the next big refactor
                   3113:   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
                   3114:   soname_spec='$libname$release$shared_ext$major'
                   3115:   shlibpath_var=LD_LIBRARY_PATH
                   3116:   ;;
                   3117:
                   3118: *)
                   3119:   dynamic_linker=no
                   3120:   ;;
                   3121: esac
                   3122: AC_MSG_RESULT([$dynamic_linker])
                   3123: test no = "$dynamic_linker" && can_build_shared=no
                   3124:
                   3125: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   3126: if test yes = "$GCC"; then
                   3127:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
                   3128: fi
                   3129:
                   3130: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
                   3131:   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
                   3132: fi
                   3133:
                   3134: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
                   3135:   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
                   3136: fi
                   3137:
                   3138: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
                   3139: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
                   3140:
                   3141: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
                   3142: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
                   3143:
                   3144: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
                   3145: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
                   3146:
                   3147: _LT_DECL([], [variables_saved_for_relink], [1],
                   3148:     [Variables whose values should be saved in libtool wrapper scripts and
                   3149:     restored at link time])
                   3150: _LT_DECL([], [need_lib_prefix], [0],
                   3151:     [Do we need the "lib" prefix for modules?])
                   3152: _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
                   3153: _LT_DECL([], [version_type], [0], [Library versioning type])
                   3154: _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
                   3155: _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
                   3156: _LT_DECL([], [shlibpath_overrides_runpath], [0],
                   3157:     [Is shlibpath searched before the hard-coded library search path?])
                   3158: _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
                   3159: _LT_DECL([], [library_names_spec], [1],
                   3160:     [[List of archive names.  First name is the real one, the rest are links.
                   3161:     The last name is the one that the linker finds with -lNAME]])
                   3162: _LT_DECL([], [soname_spec], [1],
                   3163:     [[The coded name of the library, if different from the real name]])
                   3164: _LT_DECL([], [install_override_mode], [1],
                   3165:     [Permission mode override for installation of shared libraries])
                   3166: _LT_DECL([], [postinstall_cmds], [2],
                   3167:     [Command to use after installation of a shared archive])
                   3168: _LT_DECL([], [postuninstall_cmds], [2],
                   3169:     [Command to use after uninstallation of a shared archive])
                   3170: _LT_DECL([], [finish_cmds], [2],
                   3171:     [Commands used to finish a libtool library installation in a directory])
                   3172: _LT_DECL([], [finish_eval], [1],
                   3173:     [[As "finish_cmds", except a single script fragment to be evaled but
                   3174:     not shown]])
                   3175: _LT_DECL([], [hardcode_into_libs], [0],
                   3176:     [Whether we should hardcode library paths into libraries])
                   3177: _LT_DECL([], [sys_lib_search_path_spec], [2],
                   3178:     [Compile-time system search path for libraries])
                   3179: _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
                   3180:     [Detected run-time system search path for libraries])
                   3181: _LT_DECL([], [configure_time_lt_sys_library_path], [2],
                   3182:     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
                   3183: ])# _LT_SYS_DYNAMIC_LINKER
                   3184:
                   3185:
                   3186: # _LT_PATH_TOOL_PREFIX(TOOL)
                   3187: # --------------------------
                   3188: # find a file program that can recognize shared library
                   3189: AC_DEFUN([_LT_PATH_TOOL_PREFIX],
                   3190: [m4_require([_LT_DECL_EGREP])dnl
                   3191: AC_MSG_CHECKING([for $1])
                   3192: AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
                   3193: [case $MAGIC_CMD in
                   3194: [[\\/*] |  ?:[\\/]*])
                   3195:   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
                   3196:   ;;
                   3197: *)
                   3198:   lt_save_MAGIC_CMD=$MAGIC_CMD
                   3199:   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
                   3200: dnl $ac_dummy forces splitting on constant user-supplied paths.
                   3201: dnl POSIX.2 word splitting is done only on the output of word expansions,
                   3202: dnl not every word.  This closes a longstanding sh security hole.
                   3203:   ac_dummy="m4_if([$2], , $PATH, [$2])"
                   3204:   for ac_dir in $ac_dummy; do
                   3205:     IFS=$lt_save_ifs
                   3206:     test -z "$ac_dir" && ac_dir=.
                   3207:     if test -f "$ac_dir/$1"; then
                   3208:       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
                   3209:       if test -n "$file_magic_test_file"; then
                   3210:        case $deplibs_check_method in
                   3211:        "file_magic "*)
                   3212:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   3213:          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
                   3214:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   3215:            $EGREP "$file_magic_regex" > /dev/null; then
                   3216:            :
                   3217:          else
                   3218:            cat <<_LT_EOF 1>&2
                   3219:
                   3220: *** Warning: the command libtool uses to detect shared libraries,
                   3221: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   3222: *** The result is that libtool may fail to recognize shared libraries
                   3223: *** as such.  This will affect the creation of libtool libraries that
                   3224: *** depend on shared libraries, but programs linked with such libtool
                   3225: *** libraries will work regardless of this problem.  Nevertheless, you
                   3226: *** may want to report the problem to your system manager and/or to
                   3227: *** bug-libtool@gnu.org
                   3228:
                   3229: _LT_EOF
                   3230:          fi ;;
                   3231:        esac
                   3232:       fi
                   3233:       break
                   3234:     fi
                   3235:   done
                   3236:   IFS=$lt_save_ifs
                   3237:   MAGIC_CMD=$lt_save_MAGIC_CMD
                   3238:   ;;
                   3239: esac])
                   3240: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
                   3241: if test -n "$MAGIC_CMD"; then
                   3242:   AC_MSG_RESULT($MAGIC_CMD)
                   3243: else
                   3244:   AC_MSG_RESULT(no)
                   3245: fi
                   3246: _LT_DECL([], [MAGIC_CMD], [0],
                   3247:         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
                   3248: ])# _LT_PATH_TOOL_PREFIX
                   3249:
                   3250: # Old name:
                   3251: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
                   3252: dnl aclocal-1.4 backwards compatibility:
                   3253: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
                   3254:
                   3255:
                   3256: # _LT_PATH_MAGIC
                   3257: # --------------
                   3258: # find a file program that can recognize a shared library
                   3259: m4_defun([_LT_PATH_MAGIC],
                   3260: [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
                   3261: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   3262:   if test -n "$ac_tool_prefix"; then
                   3263:     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
                   3264:   else
                   3265:     MAGIC_CMD=:
                   3266:   fi
                   3267: fi
                   3268: ])# _LT_PATH_MAGIC
                   3269:
                   3270:
                   3271: # LT_PATH_LD
                   3272: # ----------
                   3273: # find the pathname to the GNU or non-GNU linker
                   3274: AC_DEFUN([LT_PATH_LD],
                   3275: [AC_REQUIRE([AC_PROG_CC])dnl
                   3276: AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   3277: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
                   3278: m4_require([_LT_DECL_SED])dnl
                   3279: m4_require([_LT_DECL_EGREP])dnl
                   3280: m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
                   3281:
                   3282: AC_ARG_WITH([gnu-ld],
                   3283:     [AS_HELP_STRING([--with-gnu-ld],
                   3284:        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
                   3285:     [test no = "$withval" || with_gnu_ld=yes],
                   3286:     [with_gnu_ld=no])dnl
                   3287:
                   3288: ac_prog=ld
                   3289: if test yes = "$GCC"; then
                   3290:   # Check if gcc -print-prog-name=ld gives a path.
                   3291:   AC_MSG_CHECKING([for ld used by $CC])
                   3292:   case $host in
                   3293:   *-*-mingw*)
                   3294:     # gcc leaves a trailing carriage return, which upsets mingw
                   3295:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   3296:   *)
                   3297:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   3298:   esac
                   3299:   case $ac_prog in
                   3300:     # Accept absolute paths.
                   3301:     [[\\/]]* | ?:[[\\/]]*)
                   3302:       re_direlt='/[[^/]][[^/]]*/\.\./'
                   3303:       # Canonicalize the pathname of ld
                   3304:       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
                   3305:       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
                   3306:        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
                   3307:       done
                   3308:       test -z "$LD" && LD=$ac_prog
                   3309:       ;;
                   3310:   "")
                   3311:     # If it fails, then pretend we aren't using GCC.
                   3312:     ac_prog=ld
                   3313:     ;;
                   3314:   *)
                   3315:     # If it is relative, then search for the first ld in PATH.
                   3316:     with_gnu_ld=unknown
                   3317:     ;;
                   3318:   esac
                   3319: elif test yes = "$with_gnu_ld"; then
                   3320:   AC_MSG_CHECKING([for GNU ld])
                   3321: else
                   3322:   AC_MSG_CHECKING([for non-GNU ld])
                   3323: fi
                   3324: AC_CACHE_VAL(lt_cv_path_LD,
                   3325: [if test -z "$LD"; then
                   3326:   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
                   3327:   for ac_dir in $PATH; do
                   3328:     IFS=$lt_save_ifs
                   3329:     test -z "$ac_dir" && ac_dir=.
                   3330:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   3331:       lt_cv_path_LD=$ac_dir/$ac_prog
                   3332:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   3333:       # but apparently some variants of GNU ld only accept -v.
                   3334:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   3335:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   3336:       *GNU* | *'with BFD'*)
                   3337:        test no != "$with_gnu_ld" && break
                   3338:        ;;
                   3339:       *)
                   3340:        test yes != "$with_gnu_ld" && break
                   3341:        ;;
                   3342:       esac
                   3343:     fi
                   3344:   done
                   3345:   IFS=$lt_save_ifs
                   3346: else
                   3347:   lt_cv_path_LD=$LD # Let the user override the test with a path.
                   3348: fi])
                   3349: LD=$lt_cv_path_LD
                   3350: if test -n "$LD"; then
                   3351:   AC_MSG_RESULT($LD)
                   3352: else
                   3353:   AC_MSG_RESULT(no)
                   3354: fi
                   3355: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
                   3356: _LT_PATH_LD_GNU
                   3357: AC_SUBST([LD])
                   3358:
                   3359: _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
                   3360: ])# LT_PATH_LD
                   3361:
                   3362: # Old names:
                   3363: AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
                   3364: AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
                   3365: dnl aclocal-1.4 backwards compatibility:
                   3366: dnl AC_DEFUN([AM_PROG_LD], [])
                   3367: dnl AC_DEFUN([AC_PROG_LD], [])
                   3368:
                   3369:
                   3370: # _LT_PATH_LD_GNU
                   3371: #- --------------
                   3372: m4_defun([_LT_PATH_LD_GNU],
                   3373: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
                   3374: [# I'd rather use --version here, but apparently some GNU lds only accept -v.
                   3375: case `$LD -v 2>&1 </dev/null` in
                   3376: *GNU* | *'with BFD'*)
                   3377:   lt_cv_prog_gnu_ld=yes
                   3378:   ;;
                   3379: *)
                   3380:   lt_cv_prog_gnu_ld=no
                   3381:   ;;
                   3382: esac])
                   3383: with_gnu_ld=$lt_cv_prog_gnu_ld
                   3384: ])# _LT_PATH_LD_GNU
                   3385:
                   3386:
                   3387: # _LT_CMD_RELOAD
                   3388: # --------------
                   3389: # find reload flag for linker
                   3390: #   -- PORTME Some linkers may need a different reload flag.
                   3391: m4_defun([_LT_CMD_RELOAD],
                   3392: [AC_CACHE_CHECK([for $LD option to reload object files],
                   3393:   lt_cv_ld_reload_flag,
                   3394:   [lt_cv_ld_reload_flag='-r'])
                   3395: reload_flag=$lt_cv_ld_reload_flag
                   3396: case $reload_flag in
                   3397: "" | " "*) ;;
                   3398: *) reload_flag=" $reload_flag" ;;
                   3399: esac
                   3400: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   3401: case $host_os in
                   3402:   cygwin* | mingw* | pw32* | cegcc*)
                   3403:     if test yes != "$GCC"; then
                   3404:       reload_cmds=false
                   3405:     fi
                   3406:     ;;
                   3407:   darwin*)
                   3408:     if test yes = "$GCC"; then
                   3409:       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
                   3410:     else
                   3411:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   3412:     fi
                   3413:     ;;
                   3414: esac
                   3415: _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
                   3416: _LT_TAGDECL([], [reload_cmds], [2])dnl
                   3417: ])# _LT_CMD_RELOAD
                   3418:
                   3419:
                   3420: # _LT_PATH_DD
                   3421: # -----------
                   3422: # find a working dd
                   3423: m4_defun([_LT_PATH_DD],
                   3424: [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
                   3425: [printf 0123456789abcdef0123456789abcdef >conftest.i
                   3426: cat conftest.i conftest.i >conftest2.i
                   3427: : ${lt_DD:=$DD}
                   3428: AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
                   3429: [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
                   3430:   cmp -s conftest.i conftest.out \
                   3431:   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
                   3432: fi])
                   3433: rm -f conftest.i conftest2.i conftest.out])
                   3434: ])# _LT_PATH_DD
                   3435:
                   3436:
                   3437: # _LT_CMD_TRUNCATE
                   3438: # ----------------
                   3439: # find command to truncate a binary pipe
                   3440: m4_defun([_LT_CMD_TRUNCATE],
                   3441: [m4_require([_LT_PATH_DD])
                   3442: AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
                   3443: [printf 0123456789abcdef0123456789abcdef >conftest.i
                   3444: cat conftest.i conftest.i >conftest2.i
                   3445: lt_cv_truncate_bin=
                   3446: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
                   3447:   cmp -s conftest.i conftest.out \
                   3448:   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
                   3449: fi
                   3450: rm -f conftest.i conftest2.i conftest.out
                   3451: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
                   3452: _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
                   3453:   [Command to truncate a binary pipe])
                   3454: ])# _LT_CMD_TRUNCATE
                   3455:
                   3456:
                   3457: # _LT_CHECK_MAGIC_METHOD
                   3458: # ----------------------
                   3459: # how to check for library dependencies
                   3460: #  -- PORTME fill in with the dynamic library characteristics
                   3461: m4_defun([_LT_CHECK_MAGIC_METHOD],
                   3462: [m4_require([_LT_DECL_EGREP])
                   3463: m4_require([_LT_DECL_OBJDUMP])
                   3464: AC_CACHE_CHECK([how to recognize dependent libraries],
                   3465: lt_cv_deplibs_check_method,
                   3466: [lt_cv_file_magic_cmd='$MAGIC_CMD'
                   3467: lt_cv_file_magic_test_file=
                   3468: lt_cv_deplibs_check_method='unknown'
                   3469: # Need to set the preceding variable on all platforms that support
                   3470: # interlibrary dependencies.
                   3471: # 'none' -- dependencies not supported.
                   3472: # 'unknown' -- same as none, but documents that we really don't know.
                   3473: # 'pass_all' -- all dependencies passed with no checks.
                   3474: # 'test_compile' -- check by making test program.
                   3475: # 'file_magic [[regex]]' -- check by looking for files in library path
                   3476: # that responds to the $file_magic_cmd with a given extended regex.
                   3477: # If you have 'file' or equivalent on your system and you're not sure
                   3478: # whether 'pass_all' will *always* work, you probably want this one.
                   3479:
                   3480: case $host_os in
                   3481: aix[[4-9]]*)
                   3482:   lt_cv_deplibs_check_method=pass_all
                   3483:   ;;
                   3484:
                   3485: beos*)
                   3486:   lt_cv_deplibs_check_method=pass_all
                   3487:   ;;
                   3488:
                   3489: bsdi[[45]]*)
                   3490:   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1.5     ! ohara    3491:   lt_cv_file_magic_cmd='$FILECMD -L'
1.4       ohara    3492:   lt_cv_file_magic_test_file=/shlib/libc.so
                   3493:   ;;
                   3494:
                   3495: cygwin*)
                   3496:   # func_win32_libid is a shell function defined in ltmain.sh
                   3497:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   3498:   lt_cv_file_magic_cmd='func_win32_libid'
                   3499:   ;;
                   3500:
                   3501: mingw* | pw32*)
                   3502:   # Base MSYS/MinGW do not provide the 'file' command needed by
                   3503:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   3504:   # unless we find 'file', for example because we are cross-compiling.
                   3505:   if ( file / ) >/dev/null 2>&1; then
                   3506:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   3507:     lt_cv_file_magic_cmd='func_win32_libid'
                   3508:   else
                   3509:     # Keep this pattern in sync with the one in func_win32_libid.
                   3510:     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
                   3511:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   3512:   fi
                   3513:   ;;
                   3514:
                   3515: cegcc*)
                   3516:   # use the weaker test based on 'objdump'. See mingw*.
                   3517:   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
                   3518:   lt_cv_file_magic_cmd='$OBJDUMP -f'
                   3519:   ;;
                   3520:
                   3521: darwin* | rhapsody*)
                   3522:   lt_cv_deplibs_check_method=pass_all
                   3523:   ;;
                   3524:
1.5     ! ohara    3525: freebsd* | dragonfly* | midnightbsd*)
1.4       ohara    3526:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   3527:     case $host_cpu in
                   3528:     i*86 )
                   3529:       # Not sure whether the presence of OpenBSD here was a mistake.
                   3530:       # Let's accept both of them until this is cleared up.
                   3531:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1.5     ! ohara    3532:       lt_cv_file_magic_cmd=$FILECMD
1.4       ohara    3533:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
                   3534:       ;;
                   3535:     esac
                   3536:   else
                   3537:     lt_cv_deplibs_check_method=pass_all
                   3538:   fi
                   3539:   ;;
                   3540:
                   3541: haiku*)
                   3542:   lt_cv_deplibs_check_method=pass_all
                   3543:   ;;
                   3544:
                   3545: hpux10.20* | hpux11*)
1.5     ! ohara    3546:   lt_cv_file_magic_cmd=$FILECMD
1.4       ohara    3547:   case $host_cpu in
                   3548:   ia64*)
                   3549:     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
                   3550:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   3551:     ;;
                   3552:   hppa*64*)
                   3553:     [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]']
                   3554:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   3555:     ;;
                   3556:   *)
                   3557:     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
                   3558:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   3559:     ;;
                   3560:   esac
                   3561:   ;;
                   3562:
                   3563: interix[[3-9]]*)
                   3564:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   3565:   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
                   3566:   ;;
                   3567:
                   3568: irix5* | irix6* | nonstopux*)
                   3569:   case $LD in
                   3570:   *-32|*"-32 ") libmagic=32-bit;;
                   3571:   *-n32|*"-n32 ") libmagic=N32;;
                   3572:   *-64|*"-64 ") libmagic=64-bit;;
                   3573:   *) libmagic=never-match;;
                   3574:   esac
                   3575:   lt_cv_deplibs_check_method=pass_all
                   3576:   ;;
                   3577:
                   3578: # This must be glibc/ELF.
                   3579: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
                   3580:   lt_cv_deplibs_check_method=pass_all
                   3581:   ;;
                   3582:
                   3583: netbsd*)
                   3584:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
                   3585:     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
                   3586:   else
                   3587:     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
                   3588:   fi
                   3589:   ;;
                   3590:
                   3591: newos6*)
                   3592:   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
1.5     ! ohara    3593:   lt_cv_file_magic_cmd=$FILECMD
1.4       ohara    3594:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   3595:   ;;
                   3596:
                   3597: *nto* | *qnx*)
                   3598:   lt_cv_deplibs_check_method=pass_all
                   3599:   ;;
                   3600:
                   3601: openbsd* | bitrig*)
                   3602:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
                   3603:     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
                   3604:   else
                   3605:     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
                   3606:   fi
                   3607:   ;;
                   3608:
                   3609: osf3* | osf4* | osf5*)
                   3610:   lt_cv_deplibs_check_method=pass_all
                   3611:   ;;
                   3612:
                   3613: rdos*)
                   3614:   lt_cv_deplibs_check_method=pass_all
                   3615:   ;;
                   3616:
                   3617: solaris*)
                   3618:   lt_cv_deplibs_check_method=pass_all
                   3619:   ;;
                   3620:
                   3621: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   3622:   lt_cv_deplibs_check_method=pass_all
                   3623:   ;;
                   3624:
                   3625: sysv4 | sysv4.3*)
                   3626:   case $host_vendor in
                   3627:   motorola)
                   3628:     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]]'
                   3629:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
                   3630:     ;;
                   3631:   ncr)
                   3632:     lt_cv_deplibs_check_method=pass_all
                   3633:     ;;
                   3634:   sequent)
                   3635:     lt_cv_file_magic_cmd='/bin/file'
                   3636:     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
                   3637:     ;;
                   3638:   sni)
                   3639:     lt_cv_file_magic_cmd='/bin/file'
                   3640:     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
                   3641:     lt_cv_file_magic_test_file=/lib/libc.so
                   3642:     ;;
                   3643:   siemens)
                   3644:     lt_cv_deplibs_check_method=pass_all
                   3645:     ;;
                   3646:   pc)
                   3647:     lt_cv_deplibs_check_method=pass_all
                   3648:     ;;
                   3649:   esac
                   3650:   ;;
                   3651:
                   3652: tpf*)
                   3653:   lt_cv_deplibs_check_method=pass_all
                   3654:   ;;
                   3655: os2*)
                   3656:   lt_cv_deplibs_check_method=pass_all
                   3657:   ;;
                   3658: esac
                   3659: ])
                   3660:
                   3661: file_magic_glob=
                   3662: want_nocaseglob=no
                   3663: if test "$build" = "$host"; then
                   3664:   case $host_os in
                   3665:   mingw* | pw32*)
                   3666:     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
                   3667:       want_nocaseglob=yes
                   3668:     else
                   3669:       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
                   3670:     fi
                   3671:     ;;
                   3672:   esac
                   3673: fi
                   3674:
                   3675: file_magic_cmd=$lt_cv_file_magic_cmd
                   3676: deplibs_check_method=$lt_cv_deplibs_check_method
                   3677: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   3678:
                   3679: _LT_DECL([], [deplibs_check_method], [1],
                   3680:     [Method to check whether dependent libraries are shared objects])
                   3681: _LT_DECL([], [file_magic_cmd], [1],
                   3682:     [Command to use when deplibs_check_method = "file_magic"])
                   3683: _LT_DECL([], [file_magic_glob], [1],
                   3684:     [How to find potential files when deplibs_check_method = "file_magic"])
                   3685: _LT_DECL([], [want_nocaseglob], [1],
                   3686:     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
                   3687: ])# _LT_CHECK_MAGIC_METHOD
                   3688:
                   3689:
                   3690: # LT_PATH_NM
                   3691: # ----------
                   3692: # find the pathname to a BSD- or MS-compatible name lister
                   3693: AC_DEFUN([LT_PATH_NM],
                   3694: [AC_REQUIRE([AC_PROG_CC])dnl
                   3695: AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
                   3696: [if test -n "$NM"; then
                   3697:   # Let the user override the test.
                   3698:   lt_cv_path_NM=$NM
                   3699: else
                   3700:   lt_nm_to_check=${ac_tool_prefix}nm
                   3701:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   3702:     lt_nm_to_check="$lt_nm_to_check nm"
                   3703:   fi
                   3704:   for lt_tmp_nm in $lt_nm_to_check; do
                   3705:     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
                   3706:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   3707:       IFS=$lt_save_ifs
                   3708:       test -z "$ac_dir" && ac_dir=.
                   3709:       tmp_nm=$ac_dir/$lt_tmp_nm
                   3710:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
                   3711:        # Check to see if the nm accepts a BSD-compat flag.
                   3712:        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
                   3713:        #   nm: unknown option "B" ignored
                   3714:        # Tru64's nm complains that /dev/null is an invalid object file
                   3715:        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
                   3716:        case $build_os in
                   3717:        mingw*) lt_bad_file=conftest.nm/nofile ;;
                   3718:        *) lt_bad_file=/dev/null ;;
                   3719:        esac
1.5     ! ohara    3720:        case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
1.4       ohara    3721:        *$lt_bad_file* | *'Invalid file or object type'*)
                   3722:          lt_cv_path_NM="$tmp_nm -B"
                   3723:          break 2
                   3724:          ;;
                   3725:        *)
1.5     ! ohara    3726:          case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.4       ohara    3727:          */dev/null*)
                   3728:            lt_cv_path_NM="$tmp_nm -p"
                   3729:            break 2
                   3730:            ;;
                   3731:          *)
                   3732:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   3733:            continue # so that we can try to find one that supports BSD flags
                   3734:            ;;
                   3735:          esac
                   3736:          ;;
                   3737:        esac
                   3738:       fi
                   3739:     done
                   3740:     IFS=$lt_save_ifs
                   3741:   done
                   3742:   : ${lt_cv_path_NM=no}
                   3743: fi])
                   3744: if test no != "$lt_cv_path_NM"; then
                   3745:   NM=$lt_cv_path_NM
                   3746: else
                   3747:   # Didn't find any BSD compatible name lister, look for dumpbin.
                   3748:   if test -n "$DUMPBIN"; then :
                   3749:     # Let the user override the test.
                   3750:   else
                   3751:     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
1.5     ! ohara    3752:     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.4       ohara    3753:     *COFF*)
                   3754:       DUMPBIN="$DUMPBIN -symbols -headers"
                   3755:       ;;
                   3756:     *)
                   3757:       DUMPBIN=:
                   3758:       ;;
                   3759:     esac
                   3760:   fi
                   3761:   AC_SUBST([DUMPBIN])
                   3762:   if test : != "$DUMPBIN"; then
                   3763:     NM=$DUMPBIN
                   3764:   fi
                   3765: fi
                   3766: test -z "$NM" && NM=nm
                   3767: AC_SUBST([NM])
                   3768: _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
                   3769:
                   3770: AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
                   3771:   [lt_cv_nm_interface="BSD nm"
                   3772:   echo "int some_variable = 0;" > conftest.$ac_ext
                   3773:   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
                   3774:   (eval "$ac_compile" 2>conftest.err)
                   3775:   cat conftest.err >&AS_MESSAGE_LOG_FD
                   3776:   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
                   3777:   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
                   3778:   cat conftest.err >&AS_MESSAGE_LOG_FD
                   3779:   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
                   3780:   cat conftest.out >&AS_MESSAGE_LOG_FD
                   3781:   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
                   3782:     lt_cv_nm_interface="MS dumpbin"
                   3783:   fi
                   3784:   rm -f conftest*])
                   3785: ])# LT_PATH_NM
                   3786:
                   3787: # Old names:
                   3788: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
                   3789: AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
                   3790: dnl aclocal-1.4 backwards compatibility:
                   3791: dnl AC_DEFUN([AM_PROG_NM], [])
                   3792: dnl AC_DEFUN([AC_PROG_NM], [])
                   3793:
                   3794: # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
                   3795: # --------------------------------
                   3796: # how to determine the name of the shared library
                   3797: # associated with a specific link library.
                   3798: #  -- PORTME fill in with the dynamic library characteristics
                   3799: m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
                   3800: [m4_require([_LT_DECL_EGREP])
                   3801: m4_require([_LT_DECL_OBJDUMP])
                   3802: m4_require([_LT_DECL_DLLTOOL])
                   3803: AC_CACHE_CHECK([how to associate runtime and link libraries],
                   3804: lt_cv_sharedlib_from_linklib_cmd,
                   3805: [lt_cv_sharedlib_from_linklib_cmd='unknown'
                   3806:
                   3807: case $host_os in
                   3808: cygwin* | mingw* | pw32* | cegcc*)
                   3809:   # two different shell functions defined in ltmain.sh;
                   3810:   # decide which one to use based on capabilities of $DLLTOOL
                   3811:   case `$DLLTOOL --help 2>&1` in
                   3812:   *--identify-strict*)
                   3813:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
                   3814:     ;;
                   3815:   *)
                   3816:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
                   3817:     ;;
                   3818:   esac
                   3819:   ;;
                   3820: *)
                   3821:   # fallback: assume linklib IS sharedlib
                   3822:   lt_cv_sharedlib_from_linklib_cmd=$ECHO
                   3823:   ;;
                   3824: esac
                   3825: ])
                   3826: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
                   3827: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
                   3828:
                   3829: _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
                   3830:     [Command to associate shared and link libraries])
                   3831: ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
                   3832:
                   3833:
                   3834: # _LT_PATH_MANIFEST_TOOL
                   3835: # ----------------------
                   3836: # locate the manifest tool
                   3837: m4_defun([_LT_PATH_MANIFEST_TOOL],
                   3838: [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
                   3839: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
                   3840: AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
                   3841:   [lt_cv_path_mainfest_tool=no
                   3842:   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
                   3843:   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
                   3844:   cat conftest.err >&AS_MESSAGE_LOG_FD
                   3845:   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
                   3846:     lt_cv_path_mainfest_tool=yes
                   3847:   fi
                   3848:   rm -f conftest*])
                   3849: if test yes != "$lt_cv_path_mainfest_tool"; then
                   3850:   MANIFEST_TOOL=:
                   3851: fi
                   3852: _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
                   3853: ])# _LT_PATH_MANIFEST_TOOL
                   3854:
                   3855:
                   3856: # _LT_DLL_DEF_P([FILE])
                   3857: # ---------------------
                   3858: # True iff FILE is a Windows DLL '.def' file.
                   3859: # Keep in sync with func_dll_def_p in the libtool script
                   3860: AC_DEFUN([_LT_DLL_DEF_P],
                   3861: [dnl
                   3862:   test DEF = "`$SED -n dnl
                   3863:     -e '\''s/^[[        ]]*//'\'' dnl Strip leading whitespace
                   3864:     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
                   3865:     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[  ]].*\)*$/DEF/p'\'' dnl
                   3866:     -e q dnl                          Only consider the first "real" line
                   3867:     $1`" dnl
                   3868: ])# _LT_DLL_DEF_P
                   3869:
                   3870:
                   3871: # LT_LIB_M
                   3872: # --------
                   3873: # check for math library
                   3874: AC_DEFUN([LT_LIB_M],
                   3875: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   3876: LIBM=
                   3877: case $host in
                   3878: *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
                   3879:   # These system don't have libm, or don't need it
                   3880:   ;;
                   3881: *-ncr-sysv4.3*)
                   3882:   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
                   3883:   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
                   3884:   ;;
                   3885: *)
                   3886:   AC_CHECK_LIB(m, cos, LIBM=-lm)
                   3887:   ;;
                   3888: esac
                   3889: AC_SUBST([LIBM])
                   3890: ])# LT_LIB_M
                   3891:
                   3892: # Old name:
                   3893: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
                   3894: dnl aclocal-1.4 backwards compatibility:
                   3895: dnl AC_DEFUN([AC_CHECK_LIBM], [])
                   3896:
                   3897:
                   3898: # _LT_COMPILER_NO_RTTI([TAGNAME])
                   3899: # -------------------------------
                   3900: m4_defun([_LT_COMPILER_NO_RTTI],
                   3901: [m4_require([_LT_TAG_COMPILER])dnl
                   3902:
                   3903: _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
                   3904:
                   3905: if test yes = "$GCC"; then
                   3906:   case $cc_basename in
                   3907:   nvcc*)
                   3908:     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
                   3909:   *)
                   3910:     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
                   3911:   esac
                   3912:
                   3913:   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
                   3914:     lt_cv_prog_compiler_rtti_exceptions,
                   3915:     [-fno-rtti -fno-exceptions], [],
                   3916:     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
                   3917: fi
                   3918: _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
                   3919:        [Compiler flag to turn off builtin functions])
                   3920: ])# _LT_COMPILER_NO_RTTI
                   3921:
                   3922:
                   3923: # _LT_CMD_GLOBAL_SYMBOLS
                   3924: # ----------------------
                   3925: m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
                   3926: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   3927: AC_REQUIRE([AC_PROG_CC])dnl
                   3928: AC_REQUIRE([AC_PROG_AWK])dnl
                   3929: AC_REQUIRE([LT_PATH_NM])dnl
                   3930: AC_REQUIRE([LT_PATH_LD])dnl
                   3931: m4_require([_LT_DECL_SED])dnl
                   3932: m4_require([_LT_DECL_EGREP])dnl
                   3933: m4_require([_LT_TAG_COMPILER])dnl
                   3934:
                   3935: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   3936: AC_MSG_CHECKING([command to parse $NM output from $compiler object])
                   3937: AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
                   3938: [
                   3939: # These are sane defaults that work on at least a few old systems.
                   3940: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   3941:
                   3942: # Character class describing NM global symbol codes.
                   3943: symcode='[[BCDEGRST]]'
                   3944:
                   3945: # Regexp to match symbols that can be accessed directly from C.
                   3946: sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
                   3947:
                   3948: # Define system-specific variables.
                   3949: case $host_os in
                   3950: aix*)
                   3951:   symcode='[[BCDT]]'
                   3952:   ;;
                   3953: cygwin* | mingw* | pw32* | cegcc*)
                   3954:   symcode='[[ABCDGISTW]]'
                   3955:   ;;
                   3956: hpux*)
                   3957:   if test ia64 = "$host_cpu"; then
                   3958:     symcode='[[ABCDEGRST]]'
                   3959:   fi
                   3960:   ;;
                   3961: irix* | nonstopux*)
                   3962:   symcode='[[BCDEGRST]]'
                   3963:   ;;
                   3964: osf*)
                   3965:   symcode='[[BCDEGQRST]]'
                   3966:   ;;
                   3967: solaris*)
                   3968:   symcode='[[BDRT]]'
                   3969:   ;;
                   3970: sco3.2v5*)
                   3971:   symcode='[[DT]]'
                   3972:   ;;
                   3973: sysv4.2uw2*)
                   3974:   symcode='[[DT]]'
                   3975:   ;;
                   3976: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   3977:   symcode='[[ABDT]]'
                   3978:   ;;
                   3979: sysv4)
                   3980:   symcode='[[DFNSTU]]'
                   3981:   ;;
                   3982: esac
                   3983:
                   3984: # If we're using GNU nm, then use its standard symbol codes.
                   3985: case `$NM -V 2>&1` in
                   3986: *GNU* | *'with BFD'*)
                   3987:   symcode='[[ABCDGIRSTW]]' ;;
                   3988: esac
                   3989:
                   3990: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   3991:   # Gets list of data symbols to import.
1.5     ! ohara    3992:   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
1.4       ohara    3993:   # Adjust the below global symbol transforms to fixup imported variables.
                   3994:   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
                   3995:   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
                   3996:   lt_c_name_lib_hook="\
                   3997:   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
                   3998:   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
                   3999: else
                   4000:   # Disable hooks by default.
                   4001:   lt_cv_sys_global_symbol_to_import=
                   4002:   lt_cdecl_hook=
                   4003:   lt_c_name_hook=
                   4004:   lt_c_name_lib_hook=
                   4005: fi
                   4006:
                   4007: # Transform an extracted symbol line into a proper C declaration.
                   4008: # Some systems (esp. on ia64) link data and code symbols differently,
                   4009: # so use this general approach.
1.5     ! ohara    4010: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
1.4       ohara    4011: $lt_cdecl_hook\
                   4012: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
                   4013: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
                   4014:
                   4015: # Transform an extracted symbol line into symbol name and symbol address
1.5     ! ohara    4016: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
1.4       ohara    4017: $lt_c_name_hook\
                   4018: " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
                   4019: " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
                   4020:
                   4021: # Transform an extracted symbol line into symbol name with lib prefix and
                   4022: # symbol address.
1.5     ! ohara    4023: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
1.4       ohara    4024: $lt_c_name_lib_hook\
                   4025: " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
                   4026: " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
                   4027: " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
                   4028:
                   4029: # Handle CRLF in mingw tool chain
                   4030: opt_cr=
                   4031: case $build_os in
                   4032: mingw*)
                   4033:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
                   4034:   ;;
                   4035: esac
                   4036:
                   4037: # Try without a prefix underscore, then with it.
                   4038: for ac_symprfx in "" "_"; do
                   4039:
                   4040:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   4041:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   4042:
                   4043:   # Write the raw and C identifiers.
                   4044:   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   4045:     # Fake it for dumpbin and say T for any non-static function,
                   4046:     # D for any global variable and I for any imported variable.
1.5     ! ohara    4047:     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.4       ohara    4048:     # which start with @ or ?.
                   4049:     lt_cv_sys_global_symbol_pipe="$AWK ['"\
                   4050: "     {last_section=section; section=\$ 3};"\
                   4051: "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
                   4052: "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
                   4053: "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
                   4054: "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
                   4055: "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
                   4056: "     \$ 0!~/External *\|/{next};"\
                   4057: "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
                   4058: "     {if(hide[section]) next};"\
                   4059: "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
                   4060: "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
                   4061: "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
                   4062: "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
                   4063: "     ' prfx=^$ac_symprfx]"
                   4064:   else
1.5     ! ohara    4065:     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[   ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.4       ohara    4066:   fi
1.5     ! ohara    4067:   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.4       ohara    4068:
                   4069:   # Check to see that the pipe works correctly.
                   4070:   pipe_works=no
                   4071:
                   4072:   rm -f conftest*
                   4073:   cat > conftest.$ac_ext <<_LT_EOF
                   4074: #ifdef __cplusplus
                   4075: extern "C" {
                   4076: #endif
                   4077: char nm_test_var;
                   4078: void nm_test_func(void);
                   4079: void nm_test_func(void){}
                   4080: #ifdef __cplusplus
                   4081: }
                   4082: #endif
                   4083: int main(){nm_test_var='a';nm_test_func();return(0);}
                   4084: _LT_EOF
                   4085:
                   4086:   if AC_TRY_EVAL(ac_compile); then
                   4087:     # Now try to grab the symbols.
                   4088:     nlist=conftest.nm
                   4089:     if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
                   4090:       # Try sorting and uniquifying the output.
                   4091:       if sort "$nlist" | uniq > "$nlist"T; then
                   4092:        mv -f "$nlist"T "$nlist"
                   4093:       else
                   4094:        rm -f "$nlist"T
                   4095:       fi
                   4096:
                   4097:       # Make sure that we snagged all the symbols we need.
                   4098:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
                   4099:        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
                   4100:          cat <<_LT_EOF > conftest.$ac_ext
                   4101: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
                   4102: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
                   4103: /* DATA imports from DLLs on WIN32 can't be const, because runtime
                   4104:    relocations are performed -- see ld's documentation on pseudo-relocs.  */
                   4105: # define LT@&t@_DLSYM_CONST
                   4106: #elif defined __osf__
                   4107: /* This system does not cope well with relocations in const data.  */
                   4108: # define LT@&t@_DLSYM_CONST
                   4109: #else
                   4110: # define LT@&t@_DLSYM_CONST const
                   4111: #endif
                   4112:
                   4113: #ifdef __cplusplus
                   4114: extern "C" {
                   4115: #endif
                   4116:
                   4117: _LT_EOF
                   4118:          # Now generate the symbol file.
                   4119:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
                   4120:
                   4121:          cat <<_LT_EOF >> conftest.$ac_ext
                   4122:
                   4123: /* The mapping between symbol names and symbols.  */
                   4124: LT@&t@_DLSYM_CONST struct {
                   4125:   const char *name;
                   4126:   void       *address;
                   4127: }
                   4128: lt__PROGRAM__LTX_preloaded_symbols[[]] =
                   4129: {
                   4130:   { "@PROGRAM@", (void *) 0 },
                   4131: _LT_EOF
                   4132:          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
                   4133:          cat <<\_LT_EOF >> conftest.$ac_ext
                   4134:   {0, (void *) 0}
                   4135: };
                   4136:
                   4137: /* This works around a problem in FreeBSD linker */
                   4138: #ifdef FREEBSD_WORKAROUND
                   4139: static const void *lt_preloaded_setup() {
                   4140:   return lt__PROGRAM__LTX_preloaded_symbols;
                   4141: }
                   4142: #endif
                   4143:
                   4144: #ifdef __cplusplus
                   4145: }
                   4146: #endif
                   4147: _LT_EOF
                   4148:          # Now try linking the two files.
                   4149:          mv conftest.$ac_objext conftstm.$ac_objext
                   4150:          lt_globsym_save_LIBS=$LIBS
                   4151:          lt_globsym_save_CFLAGS=$CFLAGS
                   4152:          LIBS=conftstm.$ac_objext
                   4153:          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
                   4154:          if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
                   4155:            pipe_works=yes
                   4156:          fi
                   4157:          LIBS=$lt_globsym_save_LIBS
                   4158:          CFLAGS=$lt_globsym_save_CFLAGS
                   4159:        else
                   4160:          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
                   4161:        fi
                   4162:       else
                   4163:        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
                   4164:       fi
                   4165:     else
                   4166:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
                   4167:     fi
                   4168:   else
                   4169:     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
                   4170:     cat conftest.$ac_ext >&5
                   4171:   fi
                   4172:   rm -rf conftest* conftst*
                   4173:
                   4174:   # Do not use the global_symbol_pipe unless it works.
                   4175:   if test yes = "$pipe_works"; then
                   4176:     break
                   4177:   else
                   4178:     lt_cv_sys_global_symbol_pipe=
                   4179:   fi
                   4180: done
                   4181: ])
                   4182: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   4183:   lt_cv_sys_global_symbol_to_cdecl=
                   4184: fi
                   4185: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
                   4186:   AC_MSG_RESULT(failed)
                   4187: else
                   4188:   AC_MSG_RESULT(ok)
                   4189: fi
                   4190:
                   4191: # Response file support.
                   4192: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
                   4193:   nm_file_list_spec='@'
                   4194: elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
                   4195:   nm_file_list_spec='@'
                   4196: fi
                   4197:
                   4198: _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
                   4199:     [Take the output of nm and produce a listing of raw symbols and C names])
                   4200: _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
                   4201:     [Transform the output of nm in a proper C declaration])
                   4202: _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
                   4203:     [Transform the output of nm into a list of symbols to manually relocate])
                   4204: _LT_DECL([global_symbol_to_c_name_address],
                   4205:     [lt_cv_sys_global_symbol_to_c_name_address], [1],
                   4206:     [Transform the output of nm in a C name address pair])
                   4207: _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
                   4208:     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
                   4209:     [Transform the output of nm in a C name address pair when lib prefix is needed])
                   4210: _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
                   4211:     [The name lister interface])
                   4212: _LT_DECL([], [nm_file_list_spec], [1],
                   4213:     [Specify filename containing input files for $NM])
                   4214: ]) # _LT_CMD_GLOBAL_SYMBOLS
                   4215:
                   4216:
                   4217: # _LT_COMPILER_PIC([TAGNAME])
                   4218: # ---------------------------
                   4219: m4_defun([_LT_COMPILER_PIC],
                   4220: [m4_require([_LT_TAG_COMPILER])dnl
                   4221: _LT_TAGVAR(lt_prog_compiler_wl, $1)=
                   4222: _LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4223: _LT_TAGVAR(lt_prog_compiler_static, $1)=
                   4224:
                   4225: m4_if([$1], [CXX], [
                   4226:   # C++ specific cases for pic, static, wl, etc.
                   4227:   if test yes = "$GXX"; then
                   4228:     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4229:     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4230:
                   4231:     case $host_os in
                   4232:     aix*)
                   4233:       # All AIX code is PIC.
                   4234:       if test ia64 = "$host_cpu"; then
                   4235:        # AIX 5 now supports IA64 processor
                   4236:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4237:       fi
                   4238:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4239:       ;;
                   4240:
                   4241:     amigaos*)
                   4242:       case $host_cpu in
                   4243:       powerpc)
                   4244:             # see comment about AmigaOS4 .so support
                   4245:             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4246:         ;;
                   4247:       m68k)
                   4248:             # FIXME: we need at least 68020 code to build shared libraries, but
                   4249:             # adding the '-m68020' flag to GCC prevents building anything better,
                   4250:             # like '-m68040'.
                   4251:             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
                   4252:         ;;
                   4253:       esac
                   4254:       ;;
                   4255:
                   4256:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   4257:       # PIC is the default for these OSes.
                   4258:       ;;
                   4259:     mingw* | cygwin* | os2* | pw32* | cegcc*)
                   4260:       # This hack is so that the source file can tell whether it is being
                   4261:       # built for inclusion in a dll (and should export symbols for example).
                   4262:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   4263:       # (--disable-auto-import) libraries
                   4264:       m4_if([$1], [GCJ], [],
                   4265:        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
                   4266:       case $host_os in
                   4267:       os2*)
                   4268:        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
                   4269:        ;;
                   4270:       esac
                   4271:       ;;
                   4272:     darwin* | rhapsody*)
                   4273:       # PIC is the default on this platform
                   4274:       # Common symbols not allowed in MH_DYLIB files
                   4275:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
                   4276:       ;;
                   4277:     *djgpp*)
                   4278:       # DJGPP does not support shared libraries at all
                   4279:       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4280:       ;;
                   4281:     haiku*)
                   4282:       # PIC is the default for Haiku.
                   4283:       # The "-static" flag exists, but is broken.
                   4284:       _LT_TAGVAR(lt_prog_compiler_static, $1)=
                   4285:       ;;
                   4286:     interix[[3-9]]*)
                   4287:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   4288:       # Instead, we relocate shared libraries at runtime.
                   4289:       ;;
                   4290:     sysv4*MP*)
                   4291:       if test -d /usr/nec; then
                   4292:        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
                   4293:       fi
                   4294:       ;;
                   4295:     hpux*)
                   4296:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
                   4297:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
                   4298:       # sets the default TLS model and affects inlining.
                   4299:       case $host_cpu in
                   4300:       hppa*64*)
                   4301:        ;;
                   4302:       *)
                   4303:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4304:        ;;
                   4305:       esac
                   4306:       ;;
                   4307:     *qnx* | *nto*)
                   4308:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   4309:       # it will coredump.
                   4310:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
                   4311:       ;;
                   4312:     *)
                   4313:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4314:       ;;
                   4315:     esac
                   4316:   else
                   4317:     case $host_os in
                   4318:       aix[[4-9]]*)
                   4319:        # All AIX code is PIC.
                   4320:        if test ia64 = "$host_cpu"; then
                   4321:          # AIX 5 now supports IA64 processor
                   4322:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4323:        else
                   4324:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
                   4325:        fi
                   4326:        ;;
                   4327:       chorus*)
                   4328:        case $cc_basename in
                   4329:        cxch68*)
                   4330:          # Green Hills C++ Compiler
                   4331:          # _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"
                   4332:          ;;
                   4333:        esac
                   4334:        ;;
                   4335:       mingw* | cygwin* | os2* | pw32* | cegcc*)
                   4336:        # This hack is so that the source file can tell whether it is being
                   4337:        # built for inclusion in a dll (and should export symbols for example).
                   4338:        m4_if([$1], [GCJ], [],
                   4339:          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
                   4340:        ;;
                   4341:       dgux*)
                   4342:        case $cc_basename in
                   4343:          ec++*)
                   4344:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4345:            ;;
                   4346:          ghcx*)
                   4347:            # Green Hills C++ Compiler
                   4348:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
                   4349:            ;;
                   4350:          *)
                   4351:            ;;
                   4352:        esac
                   4353:        ;;
1.5     ! ohara    4354:       freebsd* | dragonfly* | midnightbsd*)
1.4       ohara    4355:        # FreeBSD uses GNU C++
                   4356:        ;;
                   4357:       hpux9* | hpux10* | hpux11*)
                   4358:        case $cc_basename in
                   4359:          CC*)
                   4360:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4361:            _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
                   4362:            if test ia64 != "$host_cpu"; then
                   4363:              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
                   4364:            fi
                   4365:            ;;
                   4366:          aCC*)
                   4367:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4368:            _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
                   4369:            case $host_cpu in
                   4370:            hppa*64*|ia64*)
                   4371:              # +Z the default
                   4372:              ;;
                   4373:            *)
                   4374:              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
                   4375:              ;;
                   4376:            esac
                   4377:            ;;
                   4378:          *)
                   4379:            ;;
                   4380:        esac
                   4381:        ;;
                   4382:       interix*)
                   4383:        # This is c89, which is MS Visual C++ (no shared libs)
                   4384:        # Anyone wants to do a port?
                   4385:        ;;
                   4386:       irix5* | irix6* | nonstopux*)
                   4387:        case $cc_basename in
                   4388:          CC*)
                   4389:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4390:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4391:            # CC pic flag -KPIC is the default.
                   4392:            ;;
                   4393:          *)
                   4394:            ;;
                   4395:        esac
                   4396:        ;;
                   4397:       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
                   4398:        case $cc_basename in
                   4399:          KCC*)
                   4400:            # KAI C++ Compiler
                   4401:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
                   4402:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4403:            ;;
                   4404:          ecpc* )
                   4405:            # old Intel C++ for x86_64, which still supported -KPIC.
                   4406:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4407:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4408:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4409:            ;;
                   4410:          icpc* )
                   4411:            # Intel C++, used to be incompatible with GCC.
                   4412:            # ICC 10 doesn't accept -KPIC any more.
                   4413:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4414:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4415:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4416:            ;;
                   4417:          pgCC* | pgcpp*)
                   4418:            # Portland Group C++ compiler
                   4419:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4420:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
                   4421:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4422:            ;;
                   4423:          cxx*)
                   4424:            # Compaq C++
                   4425:            # Make sure the PIC flag is empty.  It appears that all Alpha
                   4426:            # Linux and Compaq Tru64 Unix objects are PIC.
                   4427:            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4428:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4429:            ;;
                   4430:          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
                   4431:            # IBM XL 8.0, 9.0 on PPC and BlueGene
                   4432:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4433:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
                   4434:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
                   4435:            ;;
                   4436:          *)
1.5     ! ohara    4437:            case `$CC -V 2>&1 | $SED 5q` in
1.4       ohara    4438:            *Sun\ C*)
                   4439:              # Sun C++ 5.9
                   4440:              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4441:              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4442:              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
                   4443:              ;;
                   4444:            esac
                   4445:            ;;
                   4446:        esac
                   4447:        ;;
                   4448:       lynxos*)
                   4449:        ;;
                   4450:       m88k*)
                   4451:        ;;
                   4452:       mvs*)
                   4453:        case $cc_basename in
                   4454:          cxx*)
                   4455:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
                   4456:            ;;
                   4457:          *)
                   4458:            ;;
                   4459:        esac
                   4460:        ;;
                   4461:       netbsd*)
                   4462:        ;;
                   4463:       *qnx* | *nto*)
                   4464:         # QNX uses GNU C++, but need to define -shared option too, otherwise
                   4465:         # it will coredump.
                   4466:         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
                   4467:         ;;
                   4468:       osf3* | osf4* | osf5*)
                   4469:        case $cc_basename in
                   4470:          KCC*)
                   4471:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
                   4472:            ;;
                   4473:          RCC*)
                   4474:            # Rational C++ 2.4.1
                   4475:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
                   4476:            ;;
                   4477:          cxx*)
                   4478:            # Digital/Compaq C++
                   4479:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4480:            # Make sure the PIC flag is empty.  It appears that all Alpha
                   4481:            # Linux and Compaq Tru64 Unix objects are PIC.
                   4482:            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4483:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4484:            ;;
                   4485:          *)
                   4486:            ;;
                   4487:        esac
                   4488:        ;;
                   4489:       psos*)
                   4490:        ;;
                   4491:       solaris*)
                   4492:        case $cc_basename in
                   4493:          CC* | sunCC*)
                   4494:            # Sun C++ 4.2, 5.x and Centerline C++
                   4495:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4496:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4497:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
                   4498:            ;;
                   4499:          gcx*)
                   4500:            # Green Hills C++ Compiler
                   4501:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
                   4502:            ;;
                   4503:          *)
                   4504:            ;;
                   4505:        esac
                   4506:        ;;
                   4507:       sunos4*)
                   4508:        case $cc_basename in
                   4509:          CC*)
                   4510:            # Sun C++ 4.x
                   4511:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
                   4512:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4513:            ;;
                   4514:          lcc*)
                   4515:            # Lucid
                   4516:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
                   4517:            ;;
                   4518:          *)
                   4519:            ;;
                   4520:        esac
                   4521:        ;;
                   4522:       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   4523:        case $cc_basename in
                   4524:          CC*)
                   4525:            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4526:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4527:            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4528:            ;;
                   4529:        esac
                   4530:        ;;
                   4531:       tandem*)
                   4532:        case $cc_basename in
                   4533:          NCC*)
                   4534:            # NonStop-UX NCC 3.20
                   4535:            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4536:            ;;
                   4537:          *)
                   4538:            ;;
                   4539:        esac
                   4540:        ;;
                   4541:       vxworks*)
                   4542:        ;;
                   4543:       *)
                   4544:        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
                   4545:        ;;
                   4546:     esac
                   4547:   fi
                   4548: ],
                   4549: [
                   4550:   if test yes = "$GCC"; then
                   4551:     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4552:     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4553:
                   4554:     case $host_os in
                   4555:       aix*)
                   4556:       # All AIX code is PIC.
                   4557:       if test ia64 = "$host_cpu"; then
                   4558:        # AIX 5 now supports IA64 processor
                   4559:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4560:       fi
                   4561:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4562:       ;;
                   4563:
                   4564:     amigaos*)
                   4565:       case $host_cpu in
                   4566:       powerpc)
                   4567:             # see comment about AmigaOS4 .so support
                   4568:             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4569:         ;;
                   4570:       m68k)
                   4571:             # FIXME: we need at least 68020 code to build shared libraries, but
                   4572:             # adding the '-m68020' flag to GCC prevents building anything better,
                   4573:             # like '-m68040'.
                   4574:             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
                   4575:         ;;
                   4576:       esac
                   4577:       ;;
                   4578:
                   4579:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   4580:       # PIC is the default for these OSes.
                   4581:       ;;
                   4582:
                   4583:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   4584:       # This hack is so that the source file can tell whether it is being
                   4585:       # built for inclusion in a dll (and should export symbols for example).
                   4586:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   4587:       # (--disable-auto-import) libraries
                   4588:       m4_if([$1], [GCJ], [],
                   4589:        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
                   4590:       case $host_os in
                   4591:       os2*)
                   4592:        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
                   4593:        ;;
                   4594:       esac
                   4595:       ;;
                   4596:
                   4597:     darwin* | rhapsody*)
                   4598:       # PIC is the default on this platform
                   4599:       # Common symbols not allowed in MH_DYLIB files
                   4600:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
                   4601:       ;;
                   4602:
                   4603:     haiku*)
                   4604:       # PIC is the default for Haiku.
                   4605:       # The "-static" flag exists, but is broken.
                   4606:       _LT_TAGVAR(lt_prog_compiler_static, $1)=
                   4607:       ;;
                   4608:
                   4609:     hpux*)
                   4610:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
                   4611:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
                   4612:       # sets the default TLS model and affects inlining.
                   4613:       case $host_cpu in
                   4614:       hppa*64*)
                   4615:        # +Z the default
                   4616:        ;;
                   4617:       *)
                   4618:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4619:        ;;
                   4620:       esac
                   4621:       ;;
                   4622:
                   4623:     interix[[3-9]]*)
                   4624:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   4625:       # Instead, we relocate shared libraries at runtime.
                   4626:       ;;
                   4627:
                   4628:     msdosdjgpp*)
                   4629:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   4630:       # on systems that don't support them.
                   4631:       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
                   4632:       enable_shared=no
                   4633:       ;;
                   4634:
                   4635:     *nto* | *qnx*)
                   4636:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   4637:       # it will coredump.
                   4638:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
                   4639:       ;;
                   4640:
                   4641:     sysv4*MP*)
                   4642:       if test -d /usr/nec; then
                   4643:        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
                   4644:       fi
                   4645:       ;;
                   4646:
                   4647:     *)
                   4648:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4649:       ;;
                   4650:     esac
                   4651:
                   4652:     case $cc_basename in
                   4653:     nvcc*) # Cuda Compiler Driver 2.2
                   4654:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
                   4655:       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
                   4656:         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
                   4657:       fi
                   4658:       ;;
                   4659:     esac
                   4660:   else
                   4661:     # PORTME Check for flag to pass linker flags through the system compiler.
                   4662:     case $host_os in
                   4663:     aix*)
                   4664:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4665:       if test ia64 = "$host_cpu"; then
                   4666:        # AIX 5 now supports IA64 processor
                   4667:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4668:       else
                   4669:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
                   4670:       fi
                   4671:       ;;
                   4672:
                   4673:     darwin* | rhapsody*)
                   4674:       # PIC is the default on this platform
                   4675:       # Common symbols not allowed in MH_DYLIB files
                   4676:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
                   4677:       case $cc_basename in
                   4678:       nagfor*)
                   4679:         # NAG Fortran compiler
                   4680:         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
                   4681:         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
                   4682:         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4683:         ;;
                   4684:       esac
                   4685:       ;;
                   4686:
                   4687:     mingw* | cygwin* | pw32* | os2* | cegcc*)
                   4688:       # This hack is so that the source file can tell whether it is being
                   4689:       # built for inclusion in a dll (and should export symbols for example).
                   4690:       m4_if([$1], [GCJ], [],
                   4691:        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
                   4692:       case $host_os in
                   4693:       os2*)
                   4694:        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
                   4695:        ;;
                   4696:       esac
                   4697:       ;;
                   4698:
                   4699:     hpux9* | hpux10* | hpux11*)
                   4700:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4701:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   4702:       # not for PA HP-UX.
                   4703:       case $host_cpu in
                   4704:       hppa*64*|ia64*)
                   4705:        # +Z the default
                   4706:        ;;
                   4707:       *)
                   4708:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
                   4709:        ;;
                   4710:       esac
                   4711:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   4712:       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
                   4713:       ;;
                   4714:
                   4715:     irix5* | irix6* | nonstopux*)
                   4716:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4717:       # PIC (with -KPIC) is the default.
                   4718:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4719:       ;;
                   4720:
                   4721:     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
                   4722:       case $cc_basename in
                   4723:       # old Intel for x86_64, which still supported -KPIC.
                   4724:       ecc*)
                   4725:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4726:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4727:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4728:         ;;
                   4729:       # icc used to be incompatible with GCC.
                   4730:       # ICC 10 doesn't accept -KPIC any more.
                   4731:       icc* | ifort*)
                   4732:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4733:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4734:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4735:         ;;
                   4736:       # Lahey Fortran 8.1.
                   4737:       lf95*)
                   4738:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4739:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
                   4740:        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
                   4741:        ;;
                   4742:       nagfor*)
                   4743:        # NAG Fortran compiler
                   4744:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
                   4745:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
                   4746:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4747:        ;;
                   4748:       tcc*)
                   4749:        # Fabrice Bellard et al's Tiny C Compiler
                   4750:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4751:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4752:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4753:        ;;
                   4754:       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
                   4755:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   4756:        # which looks to be a dead project)
                   4757:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4758:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
                   4759:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4760:         ;;
                   4761:       ccc*)
                   4762:         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4763:         # All Alpha code is PIC.
                   4764:         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4765:         ;;
                   4766:       xl* | bgxl* | bgf* | mpixl*)
                   4767:        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
                   4768:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4769:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
                   4770:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
                   4771:        ;;
                   4772:       *)
1.5     ! ohara    4773:        case `$CC -V 2>&1 | $SED 5q` in
1.4       ohara    4774:        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
                   4775:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   4776:          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4777:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4778:          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
                   4779:          ;;
                   4780:        *Sun\ F* | *Sun*Fortran*)
                   4781:          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4782:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4783:          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
                   4784:          ;;
                   4785:        *Sun\ C*)
                   4786:          # Sun C 5.9
                   4787:          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4788:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4789:          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4790:          ;;
                   4791:         *Intel*\ [[CF]]*Compiler*)
                   4792:          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4793:          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
                   4794:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
                   4795:          ;;
                   4796:        *Portland\ Group*)
                   4797:          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4798:          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
                   4799:          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4800:          ;;
                   4801:        esac
                   4802:        ;;
                   4803:       esac
                   4804:       ;;
                   4805:
                   4806:     newsos6)
                   4807:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4808:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4809:       ;;
                   4810:
                   4811:     *nto* | *qnx*)
                   4812:       # QNX uses GNU C++, but need to define -shared option too, otherwise
                   4813:       # it will coredump.
                   4814:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
                   4815:       ;;
                   4816:
                   4817:     osf3* | osf4* | osf5*)
                   4818:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4819:       # All OSF/1 code is PIC.
                   4820:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4821:       ;;
                   4822:
                   4823:     rdos*)
                   4824:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
                   4825:       ;;
                   4826:
                   4827:     solaris*)
                   4828:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4829:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4830:       case $cc_basename in
                   4831:       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
                   4832:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
                   4833:       *)
                   4834:        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
                   4835:       esac
                   4836:       ;;
                   4837:
                   4838:     sunos4*)
                   4839:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
                   4840:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
                   4841:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4842:       ;;
                   4843:
                   4844:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   4845:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4846:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4847:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4848:       ;;
                   4849:
                   4850:     sysv4*MP*)
                   4851:       if test -d /usr/nec; then
                   4852:        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
                   4853:        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4854:       fi
                   4855:       ;;
                   4856:
                   4857:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   4858:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4859:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
                   4860:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4861:       ;;
                   4862:
                   4863:     unicos*)
                   4864:       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
                   4865:       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
                   4866:       ;;
                   4867:
                   4868:     uts4*)
                   4869:       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
                   4870:       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
                   4871:       ;;
                   4872:
                   4873:     *)
                   4874:       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
                   4875:       ;;
                   4876:     esac
                   4877:   fi
                   4878: ])
                   4879: case $host_os in
                   4880:   # For platforms that do not support PIC, -DPIC is meaningless:
                   4881:   *djgpp*)
                   4882:     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4883:     ;;
                   4884:   *)
                   4885:     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
                   4886:     ;;
                   4887: esac
                   4888:
                   4889: AC_CACHE_CHECK([for $compiler option to produce PIC],
                   4890:   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
                   4891:   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
                   4892: _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
                   4893:
                   4894: #
                   4895: # Check to make sure the PIC flag actually works.
                   4896: #
                   4897: if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
                   4898:   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
                   4899:     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
                   4900:     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
                   4901:     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
                   4902:      "" | " "*) ;;
                   4903:      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
                   4904:      esac],
                   4905:     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
                   4906:      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
                   4907: fi
                   4908: _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
                   4909:        [Additional compiler flags for building library objects])
                   4910:
                   4911: _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
                   4912:        [How to pass a linker flag through the compiler])
                   4913: #
                   4914: # Check to make sure the static flag actually works.
                   4915: #
                   4916: wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
                   4917: _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
                   4918:   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
                   4919:   $lt_tmp_static_flag,
                   4920:   [],
                   4921:   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
                   4922: _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
                   4923:        [Compiler flag to prevent dynamic linking])
                   4924: ])# _LT_COMPILER_PIC
                   4925:
                   4926:
                   4927: # _LT_LINKER_SHLIBS([TAGNAME])
                   4928: # ----------------------------
                   4929: # See if the linker supports building shared libraries.
                   4930: m4_defun([_LT_LINKER_SHLIBS],
                   4931: [AC_REQUIRE([LT_PATH_LD])dnl
                   4932: AC_REQUIRE([LT_PATH_NM])dnl
                   4933: m4_require([_LT_PATH_MANIFEST_TOOL])dnl
                   4934: m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   4935: m4_require([_LT_DECL_EGREP])dnl
                   4936: m4_require([_LT_DECL_SED])dnl
                   4937: m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
                   4938: m4_require([_LT_TAG_COMPILER])dnl
                   4939: AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
                   4940: m4_if([$1], [CXX], [
                   4941:   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   4942:   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
                   4943:   case $host_os in
                   4944:   aix[[4-9]]*)
                   4945:     # If we're using GNU nm, then we don't want the "-C" option.
                   4946:     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
                   4947:     # Without the "-l" option, or with the "-B" option, AIX nm treats
                   4948:     # weak defined symbols like other global defined symbols, whereas
                   4949:     # GNU nm marks them as "W".
                   4950:     # While the 'weak' keyword is ignored in the Export File, we need
                   4951:     # it in the Import File for the 'aix-soname' feature, so we have
                   4952:     # to replace the "-B" option with "-P" for AIX nm.
                   4953:     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
                   4954:       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
                   4955:     else
1.5     ! ohara    4956:       _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.4       ohara    4957:     fi
                   4958:     ;;
                   4959:   pw32*)
                   4960:     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
                   4961:     ;;
                   4962:   cygwin* | mingw* | cegcc*)
                   4963:     case $cc_basename in
1.5     ! ohara    4964:     cl* | icl*)
1.4       ohara    4965:       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
                   4966:       ;;
                   4967:     *)
                   4968:       _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'
                   4969:       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
                   4970:       ;;
                   4971:     esac
                   4972:     ;;
                   4973:   *)
                   4974:     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   4975:     ;;
                   4976:   esac
                   4977: ], [
                   4978:   runpath_var=
                   4979:   _LT_TAGVAR(allow_undefined_flag, $1)=
                   4980:   _LT_TAGVAR(always_export_symbols, $1)=no
                   4981:   _LT_TAGVAR(archive_cmds, $1)=
                   4982:   _LT_TAGVAR(archive_expsym_cmds, $1)=
                   4983:   _LT_TAGVAR(compiler_needs_object, $1)=no
                   4984:   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
                   4985:   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
                   4986:   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   4987:   _LT_TAGVAR(hardcode_automatic, $1)=no
                   4988:   _LT_TAGVAR(hardcode_direct, $1)=no
                   4989:   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   4990:   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
                   4991:   _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   4992:   _LT_TAGVAR(hardcode_minus_L, $1)=no
                   4993:   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
                   4994:   _LT_TAGVAR(inherit_rpath, $1)=no
                   4995:   _LT_TAGVAR(link_all_deplibs, $1)=unknown
                   4996:   _LT_TAGVAR(module_cmds, $1)=
                   4997:   _LT_TAGVAR(module_expsym_cmds, $1)=
                   4998:   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
                   4999:   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
                   5000:   _LT_TAGVAR(thread_safe_flag_spec, $1)=
                   5001:   _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   5002:   # include_expsyms should be a list of space-separated symbols to be *always*
                   5003:   # included in the symbol list
                   5004:   _LT_TAGVAR(include_expsyms, $1)=
                   5005:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   5006:   # it will be wrapped by ' (' and ')$', so one must not match beginning or
                   5007:   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
                   5008:   # as well as any symbol that contains 'd'.
                   5009:   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
                   5010:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   5011:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   5012:   # the symbol is explicitly referenced.  Since portable code cannot
                   5013:   # rely on this symbol name, it's probably fine to never include it in
                   5014:   # preloaded symbol tables.
                   5015:   # Exclude shared library initialization/finalization symbols.
                   5016: dnl Note also adjust exclude_expsyms for C++ above.
                   5017:   extract_expsyms_cmds=
                   5018:
                   5019:   case $host_os in
                   5020:   cygwin* | mingw* | pw32* | cegcc*)
1.5     ! ohara    5021:     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.4       ohara    5022:     # When not using gcc, we currently assume that we are using
1.5     ! ohara    5023:     # Microsoft Visual C++ or Intel C++ Compiler.
1.4       ohara    5024:     if test yes != "$GCC"; then
                   5025:       with_gnu_ld=no
                   5026:     fi
                   5027:     ;;
                   5028:   interix*)
1.5     ! ohara    5029:     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.4       ohara    5030:     with_gnu_ld=yes
                   5031:     ;;
                   5032:   openbsd* | bitrig*)
                   5033:     with_gnu_ld=no
                   5034:     ;;
                   5035:   esac
                   5036:
                   5037:   _LT_TAGVAR(ld_shlibs, $1)=yes
                   5038:
                   5039:   # On some targets, GNU ld is compatible enough with the native linker
                   5040:   # that we're better off using the native interface for both.
                   5041:   lt_use_gnu_ld_interface=no
                   5042:   if test yes = "$with_gnu_ld"; then
                   5043:     case $host_os in
                   5044:       aix*)
                   5045:        # The AIX port of GNU ld has always aspired to compatibility
                   5046:        # with the native linker.  However, as the warning in the GNU ld
                   5047:        # block says, versions before 2.19.5* couldn't really create working
                   5048:        # shared libraries, regardless of the interface used.
                   5049:        case `$LD -v 2>&1` in
                   5050:          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
                   5051:          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
                   5052:          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
                   5053:          *)
                   5054:            lt_use_gnu_ld_interface=yes
                   5055:            ;;
                   5056:        esac
                   5057:        ;;
                   5058:       *)
                   5059:        lt_use_gnu_ld_interface=yes
                   5060:        ;;
                   5061:     esac
                   5062:   fi
                   5063:
                   5064:   if test yes = "$lt_use_gnu_ld_interface"; then
                   5065:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   5066:     wlarc='$wl'
                   5067:
                   5068:     # Set some defaults for GNU ld with shared library support. These
                   5069:     # are reset later if shared libraries are not supported. Putting them
                   5070:     # here allows them to be overridden if necessary.
                   5071:     runpath_var=LD_RUN_PATH
                   5072:     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5073:     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   5074:     # ancient GNU ld didn't support --whole-archive et. al.
                   5075:     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
                   5076:       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
                   5077:     else
                   5078:       _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   5079:     fi
                   5080:     supports_anon_versioning=no
1.5     ! ohara    5081:     case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
1.4       ohara    5082:       *GNU\ gold*) supports_anon_versioning=yes ;;
                   5083:       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
                   5084:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   5085:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   5086:       *\ 2.11.*) ;; # other 2.11 versions
                   5087:       *) supports_anon_versioning=yes ;;
                   5088:     esac
                   5089:
                   5090:     # See if GNU ld supports shared libraries.
                   5091:     case $host_os in
                   5092:     aix[[3-9]]*)
                   5093:       # On AIX/PPC, the GNU linker is very broken
                   5094:       if test ia64 != "$host_cpu"; then
                   5095:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5096:        cat <<_LT_EOF 1>&2
                   5097:
                   5098: *** Warning: the GNU linker, at least up to release 2.19, is reported
                   5099: *** to be unable to reliably create shared libraries on AIX.
                   5100: *** Therefore, libtool is disabling shared libraries support.  If you
                   5101: *** really care for shared libraries, you may want to install binutils
                   5102: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
                   5103: *** You will then need to restart the configuration process.
                   5104:
                   5105: _LT_EOF
                   5106:       fi
                   5107:       ;;
                   5108:
                   5109:     amigaos*)
                   5110:       case $host_cpu in
                   5111:       powerpc)
                   5112:             # see comment about AmigaOS4 .so support
                   5113:             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5114:             _LT_TAGVAR(archive_expsym_cmds, $1)=''
                   5115:         ;;
                   5116:       m68k)
                   5117:             _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)'
                   5118:             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5119:             _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5120:         ;;
                   5121:       esac
                   5122:       ;;
                   5123:
                   5124:     beos*)
                   5125:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   5126:        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5127:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   5128:        # support --undefined.  This deserves some investigation.  FIXME
                   5129:        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5130:       else
                   5131:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5132:       fi
                   5133:       ;;
                   5134:
                   5135:     cygwin* | mingw* | pw32* | cegcc*)
                   5136:       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
                   5137:       # as there is no search path for DLLs.
                   5138:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5139:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
                   5140:       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5141:       _LT_TAGVAR(always_export_symbols, $1)=no
                   5142:       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
                   5143:       _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'
                   5144:       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
                   5145:
                   5146:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
                   5147:         _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'
                   5148:        # If the export-symbols file already is a .def file, use it as
                   5149:        # is; otherwise, prepend EXPORTS...
                   5150:        _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
                   5151:           cp $export_symbols $output_objdir/$soname.def;
                   5152:         else
                   5153:           echo EXPORTS > $output_objdir/$soname.def;
                   5154:           cat $export_symbols >> $output_objdir/$soname.def;
                   5155:         fi~
                   5156:         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   5157:       else
                   5158:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5159:       fi
                   5160:       ;;
                   5161:
                   5162:     haiku*)
                   5163:       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5164:       _LT_TAGVAR(link_all_deplibs, $1)=yes
                   5165:       ;;
                   5166:
                   5167:     os2*)
                   5168:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5169:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5170:       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5171:       shrext_cmds=.dll
                   5172:       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   5173:        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   5174:        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   5175:        $ECHO EXPORTS >> $output_objdir/$libname.def~
                   5176:        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
                   5177:        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   5178:        emximp -o $lib $output_objdir/$libname.def'
                   5179:       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   5180:        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   5181:        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   5182:        $ECHO EXPORTS >> $output_objdir/$libname.def~
                   5183:        prefix_cmds="$SED"~
                   5184:        if test EXPORTS = "`$SED 1q $export_symbols`"; then
                   5185:          prefix_cmds="$prefix_cmds -e 1d";
                   5186:        fi~
                   5187:        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
                   5188:        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
                   5189:        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   5190:        emximp -o $lib $output_objdir/$libname.def'
                   5191:       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
                   5192:       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.5     ! ohara    5193:       _LT_TAGVAR(file_list_spec, $1)='@'
1.4       ohara    5194:       ;;
                   5195:
                   5196:     interix[[3-9]]*)
                   5197:       _LT_TAGVAR(hardcode_direct, $1)=no
                   5198:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5199:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   5200:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   5201:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   5202:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   5203:       # default) and relocated if they conflict, which is a slow very memory
                   5204:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   5205:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   5206:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   5207:       _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'
1.5     ! ohara    5208:       _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'
1.4       ohara    5209:       ;;
                   5210:
                   5211:     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
                   5212:       tmp_diet=no
                   5213:       if test linux-dietlibc = "$host_os"; then
                   5214:        case $cc_basename in
                   5215:          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
                   5216:        esac
                   5217:       fi
                   5218:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
                   5219:         && test no = "$tmp_diet"
                   5220:       then
                   5221:        tmp_addflag=' $pic_flag'
                   5222:        tmp_sharedflag='-shared'
                   5223:        case $cc_basename,$host_cpu in
                   5224:         pgcc*)                         # Portland Group C compiler
                   5225:          _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'
                   5226:          tmp_addflag=' $pic_flag'
                   5227:          ;;
                   5228:        pgf77* | pgf90* | pgf95* | pgfortran*)
                   5229:                                        # Portland Group f77 and f90 compilers
                   5230:          _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'
                   5231:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   5232:        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
                   5233:          tmp_addflag=' -i_dynamic' ;;
                   5234:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   5235:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   5236:        ifc* | ifort*)                  # Intel Fortran compiler
                   5237:          tmp_addflag=' -nofor_main' ;;
                   5238:        lf95*)                          # Lahey Fortran 8.1
                   5239:          _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   5240:          tmp_sharedflag='--shared' ;;
                   5241:         nagfor*)                        # NAGFOR 5.3
                   5242:           tmp_sharedflag='-Wl,-shared' ;;
                   5243:        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
                   5244:          tmp_sharedflag='-qmkshrobj'
                   5245:          tmp_addflag= ;;
                   5246:        nvcc*)  # Cuda Compiler Driver 2.2
                   5247:          _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'
                   5248:          _LT_TAGVAR(compiler_needs_object, $1)=yes
                   5249:          ;;
                   5250:        esac
1.5     ! ohara    5251:        case `$CC -V 2>&1 | $SED 5q` in
1.4       ohara    5252:        *Sun\ C*)                       # Sun C 5.9
                   5253:          _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'
                   5254:          _LT_TAGVAR(compiler_needs_object, $1)=yes
                   5255:          tmp_sharedflag='-G' ;;
                   5256:        *Sun\ F*)                       # Sun Fortran 8.3
                   5257:          tmp_sharedflag='-G' ;;
                   5258:        esac
                   5259:        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5260:
                   5261:         if test yes = "$supports_anon_versioning"; then
                   5262:           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
1.5     ! ohara    5263:             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.4       ohara    5264:             echo "local: *; };" >> $output_objdir/$libname.ver~
                   5265:             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
                   5266:         fi
                   5267:
                   5268:        case $cc_basename in
                   5269:        tcc*)
                   5270:          _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
                   5271:          ;;
                   5272:        xlf* | bgf* | bgxlf* | mpixlf*)
                   5273:          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
                   5274:          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
                   5275:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5276:          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
                   5277:          if test yes = "$supports_anon_versioning"; then
                   5278:            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
1.5     ! ohara    5279:               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.4       ohara    5280:               echo "local: *; };" >> $output_objdir/$libname.ver~
                   5281:               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
                   5282:          fi
                   5283:          ;;
                   5284:        esac
                   5285:       else
                   5286:         _LT_TAGVAR(ld_shlibs, $1)=no
                   5287:       fi
                   5288:       ;;
                   5289:
                   5290:     netbsd*)
                   5291:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   5292:        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   5293:        wlarc=
                   5294:       else
                   5295:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5296:        _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'
                   5297:       fi
                   5298:       ;;
                   5299:
                   5300:     solaris*)
                   5301:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
                   5302:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5303:        cat <<_LT_EOF 1>&2
                   5304:
                   5305: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   5306: *** create shared libraries on Solaris systems.  Therefore, libtool
                   5307: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   5308: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   5309: *** your PATH or compiler configuration so that the native linker is
                   5310: *** used, and then restart.
                   5311:
                   5312: _LT_EOF
                   5313:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   5314:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5315:        _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'
                   5316:       else
                   5317:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5318:       fi
                   5319:       ;;
                   5320:
                   5321:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   5322:       case `$LD -v 2>&1` in
                   5323:         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
                   5324:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5325:        cat <<_LT_EOF 1>&2
                   5326:
                   5327: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
                   5328: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   5329: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   5330: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   5331: *** your PATH or compiler configuration so that the native linker is
                   5332: *** used, and then restart.
                   5333:
                   5334: _LT_EOF
                   5335:        ;;
                   5336:        *)
                   5337:          # For security reasons, it is highly recommended that you always
                   5338:          # use absolute paths for naming shared libraries, and exclude the
                   5339:          # DT_RUNPATH tag from executables and libraries.  But doing so
                   5340:          # requires that you compile everything twice, which is a pain.
                   5341:          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   5342:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5343:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5344:            _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'
                   5345:          else
                   5346:            _LT_TAGVAR(ld_shlibs, $1)=no
                   5347:          fi
                   5348:        ;;
                   5349:       esac
                   5350:       ;;
                   5351:
                   5352:     sunos4*)
                   5353:       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   5354:       wlarc=
                   5355:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5356:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5357:       ;;
                   5358:
                   5359:     *)
                   5360:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   5361:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5362:        _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'
                   5363:       else
                   5364:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5365:       fi
                   5366:       ;;
                   5367:     esac
                   5368:
                   5369:     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
                   5370:       runpath_var=
                   5371:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
                   5372:       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
                   5373:       _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   5374:     fi
                   5375:   else
                   5376:     # PORTME fill in a description of your system's linker (not GNU ld)
                   5377:     case $host_os in
                   5378:     aix3*)
                   5379:       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5380:       _LT_TAGVAR(always_export_symbols, $1)=yes
                   5381:       _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'
                   5382:       # Note: this linker hardcodes the directories in LIBPATH if there
                   5383:       # are no directories specified by -L.
                   5384:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5385:       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
                   5386:        # Neither direct hardcoding nor static linking is supported with a
                   5387:        # broken collect2.
                   5388:        _LT_TAGVAR(hardcode_direct, $1)=unsupported
                   5389:       fi
                   5390:       ;;
                   5391:
                   5392:     aix[[4-9]]*)
                   5393:       if test ia64 = "$host_cpu"; then
                   5394:        # On IA64, the linker does run time linking by default, so we don't
                   5395:        # have to do anything special.
                   5396:        aix_use_runtimelinking=no
                   5397:        exp_sym_flag='-Bexport'
                   5398:        no_entry_flag=
                   5399:       else
                   5400:        # If we're using GNU nm, then we don't want the "-C" option.
                   5401:        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
                   5402:        # Without the "-l" option, or with the "-B" option, AIX nm treats
                   5403:        # weak defined symbols like other global defined symbols, whereas
                   5404:        # GNU nm marks them as "W".
                   5405:        # While the 'weak' keyword is ignored in the Export File, we need
                   5406:        # it in the Import File for the 'aix-soname' feature, so we have
                   5407:        # to replace the "-B" option with "-P" for AIX nm.
                   5408:        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
                   5409:          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
                   5410:        else
1.5     ! ohara    5411:          _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.4       ohara    5412:        fi
                   5413:        aix_use_runtimelinking=no
                   5414:
                   5415:        # Test if we are trying to use run time linking or normal
                   5416:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   5417:        # have runtime linking enabled, and use it for executables.
                   5418:        # For shared libraries, we enable/disable runtime linking
                   5419:        # depending on the kind of the shared library created -
                   5420:        # when "with_aix_soname,aix_use_runtimelinking" is:
                   5421:        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
                   5422:        # "aix,yes"  lib.so          shared, rtl:yes, for executables
                   5423:        #            lib.a           static archive
                   5424:        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
                   5425:        #            lib.a(lib.so.V) shared, rtl:no,  for executables
                   5426:        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
                   5427:        #            lib.a(lib.so.V) shared, rtl:no
                   5428:        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
                   5429:        #            lib.a           static archive
                   5430:        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
                   5431:          for ld_flag in $LDFLAGS; do
                   5432:          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
                   5433:            aix_use_runtimelinking=yes
                   5434:            break
                   5435:          fi
                   5436:          done
                   5437:          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
                   5438:            # With aix-soname=svr4, we create the lib.so.V shared archives only,
                   5439:            # so we don't have lib.a shared libs to link our executables.
                   5440:            # We have to force runtime linking in this case.
                   5441:            aix_use_runtimelinking=yes
                   5442:            LDFLAGS="$LDFLAGS -Wl,-brtl"
                   5443:          fi
                   5444:          ;;
                   5445:        esac
                   5446:
                   5447:        exp_sym_flag='-bexport'
                   5448:        no_entry_flag='-bnoentry'
                   5449:       fi
                   5450:
                   5451:       # When large executables or shared objects are built, AIX ld can
                   5452:       # have problems creating the table of contents.  If linking a library
                   5453:       # or program results in "error TOC overflow" add -mminimal-toc to
                   5454:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   5455:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   5456:
                   5457:       _LT_TAGVAR(archive_cmds, $1)=''
                   5458:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5459:       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   5460:       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
                   5461:       _LT_TAGVAR(link_all_deplibs, $1)=yes
                   5462:       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
                   5463:       case $with_aix_soname,$aix_use_runtimelinking in
                   5464:       aix,*) ;; # traditional, no import file
                   5465:       svr4,* | *,yes) # use import file
                   5466:        # The Import File defines what to hardcode.
                   5467:        _LT_TAGVAR(hardcode_direct, $1)=no
                   5468:        _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   5469:        ;;
                   5470:       esac
                   5471:
                   5472:       if test yes = "$GCC"; then
                   5473:        case $host_os in aix4.[[012]]|aix4.[[012]].*)
                   5474:        # We only want to do this on AIX 4.2 and lower, the check
                   5475:        # below for broken collect2 doesn't work under 4.3+
                   5476:          collect2name=`$CC -print-prog-name=collect2`
                   5477:          if test -f "$collect2name" &&
                   5478:           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
                   5479:          then
                   5480:          # We have reworked collect2
                   5481:          :
                   5482:          else
                   5483:          # We have old collect2
                   5484:          _LT_TAGVAR(hardcode_direct, $1)=unsupported
                   5485:          # It fails to find uninstalled libraries when the uninstalled
                   5486:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   5487:          # to unsupported forces relinking
                   5488:          _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5489:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5490:          _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   5491:          fi
                   5492:          ;;
                   5493:        esac
                   5494:        shared_flag='-shared'
                   5495:        if test yes = "$aix_use_runtimelinking"; then
                   5496:          shared_flag="$shared_flag "'$wl-G'
                   5497:        fi
                   5498:        # Need to ensure runtime linking is disabled for the traditional
                   5499:        # shared library, or the linker may eventually find shared libraries
                   5500:        # /with/ Import File - we do not want to mix them.
                   5501:        shared_flag_aix='-shared'
                   5502:        shared_flag_svr4='-shared $wl-G'
                   5503:       else
                   5504:        # not using gcc
                   5505:        if test ia64 = "$host_cpu"; then
                   5506:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   5507:        # chokes on -Wl,-G. The following line is correct:
                   5508:          shared_flag='-G'
                   5509:        else
                   5510:          if test yes = "$aix_use_runtimelinking"; then
                   5511:            shared_flag='$wl-G'
                   5512:          else
                   5513:            shared_flag='$wl-bM:SRE'
                   5514:          fi
                   5515:          shared_flag_aix='$wl-bM:SRE'
                   5516:          shared_flag_svr4='$wl-G'
                   5517:        fi
                   5518:       fi
                   5519:
                   5520:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
                   5521:       # It seems that -bexpall does not export symbols beginning with
                   5522:       # underscore (_), so it is better to generate a list of symbols to export.
                   5523:       _LT_TAGVAR(always_export_symbols, $1)=yes
                   5524:       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
                   5525:        # Warning - without using the other runtime loading flags (-brtl),
                   5526:        # -berok will link without error, but may produce a broken library.
                   5527:        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
                   5528:         # Determine the default libpath from the value encoded in an
                   5529:         # empty executable.
                   5530:         _LT_SYS_MODULE_PATH_AIX([$1])
                   5531:         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
                   5532:         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
                   5533:       else
                   5534:        if test ia64 = "$host_cpu"; then
                   5535:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
                   5536:          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
                   5537:          _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"
                   5538:        else
                   5539:         # Determine the default libpath from the value encoded in an
                   5540:         # empty executable.
                   5541:         _LT_SYS_MODULE_PATH_AIX([$1])
                   5542:         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
                   5543:          # Warning - without using the other run time loading flags,
                   5544:          # -berok will link without error, but may produce a broken library.
                   5545:          _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
                   5546:          _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
                   5547:          if test yes = "$with_gnu_ld"; then
                   5548:            # We only use this code for GNU lds that support --whole-archive.
                   5549:            _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
                   5550:          else
                   5551:            # Exported symbols can be pulled into shared objects from archives
                   5552:            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
                   5553:          fi
                   5554:          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
                   5555:          _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
                   5556:          # -brtl affects multiple linker settings, -berok does not and is overridden later
                   5557:          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
                   5558:          if test svr4 != "$with_aix_soname"; then
                   5559:            # This is similar to how AIX traditionally builds its shared libraries.
                   5560:            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
                   5561:          fi
                   5562:          if test aix != "$with_aix_soname"; then
                   5563:            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
                   5564:          else
                   5565:            # used by -dlpreopen to get the symbols
                   5566:            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
                   5567:          fi
                   5568:          _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
                   5569:        fi
                   5570:       fi
                   5571:       ;;
                   5572:
                   5573:     amigaos*)
                   5574:       case $host_cpu in
                   5575:       powerpc)
                   5576:             # see comment about AmigaOS4 .so support
                   5577:             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   5578:             _LT_TAGVAR(archive_expsym_cmds, $1)=''
                   5579:         ;;
                   5580:       m68k)
                   5581:             _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)'
                   5582:             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5583:             _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5584:         ;;
                   5585:       esac
                   5586:       ;;
                   5587:
                   5588:     bsdi[[45]]*)
                   5589:       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
                   5590:       ;;
                   5591:
                   5592:     cygwin* | mingw* | pw32* | cegcc*)
                   5593:       # When not using gcc, we currently assume that we are using
1.5     ! ohara    5594:       # Microsoft Visual C++ or Intel C++ Compiler.
1.4       ohara    5595:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   5596:       # no search path for DLLs.
                   5597:       case $cc_basename in
1.5     ! ohara    5598:       cl* | icl*)
        !          5599:        # Native MSVC or ICC
1.4       ohara    5600:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
                   5601:        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5602:        _LT_TAGVAR(always_export_symbols, $1)=yes
                   5603:        _LT_TAGVAR(file_list_spec, $1)='@'
                   5604:        # Tell ltmain to make .lib files, not .a files.
                   5605:        libext=lib
                   5606:        # Tell ltmain to make .dll files, not .so files.
                   5607:        shrext_cmds=.dll
                   5608:        # FIXME: Setting linknames here is a bad hack.
                   5609:        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
                   5610:        _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
                   5611:             cp "$export_symbols" "$output_objdir/$soname.def";
                   5612:             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
                   5613:           else
                   5614:             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
                   5615:           fi~
                   5616:           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
                   5617:           linknames='
                   5618:        # The linker will not automatically build a static lib if we build a DLL.
                   5619:        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
                   5620:        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
                   5621:        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
                   5622:        _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'
                   5623:        # Don't use ranlib
                   5624:        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
                   5625:        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
                   5626:           lt_tool_outputfile="@TOOL_OUTPUT@"~
                   5627:           case $lt_outputfile in
                   5628:             *.exe|*.EXE) ;;
                   5629:             *)
                   5630:               lt_outputfile=$lt_outputfile.exe
                   5631:               lt_tool_outputfile=$lt_tool_outputfile.exe
                   5632:               ;;
                   5633:           esac~
                   5634:           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
                   5635:             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
                   5636:             $RM "$lt_outputfile.manifest";
                   5637:           fi'
                   5638:        ;;
                   5639:       *)
1.5     ! ohara    5640:        # Assume MSVC and ICC wrapper
1.4       ohara    5641:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
                   5642:        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5643:        # Tell ltmain to make .lib files, not .a files.
                   5644:        libext=lib
                   5645:        # Tell ltmain to make .dll files, not .so files.
                   5646:        shrext_cmds=.dll
                   5647:        # FIXME: Setting linknames here is a bad hack.
                   5648:        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
                   5649:        # The linker will automatically build a .lib file if we build a DLL.
                   5650:        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
                   5651:        # FIXME: Should let the user specify the lib program.
                   5652:        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   5653:        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
                   5654:        ;;
                   5655:       esac
                   5656:       ;;
                   5657:
                   5658:     darwin* | rhapsody*)
                   5659:       _LT_DARWIN_LINKER_FEATURES($1)
                   5660:       ;;
                   5661:
                   5662:     dgux*)
                   5663:       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   5664:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5665:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5666:       ;;
                   5667:
                   5668:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   5669:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   5670:     # does not break anything, and helps significantly (at the cost of a little
                   5671:     # extra space).
                   5672:     freebsd2.2*)
                   5673:       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   5674:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   5675:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5676:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5677:       ;;
                   5678:
                   5679:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   5680:     freebsd2.*)
                   5681:       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   5682:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5683:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5684:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5685:       ;;
                   5686:
                   5687:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.5     ! ohara    5688:     freebsd* | dragonfly* | midnightbsd*)
1.4       ohara    5689:       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   5690:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   5691:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5692:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5693:       ;;
                   5694:
                   5695:     hpux9*)
                   5696:       if test yes = "$GCC"; then
                   5697:        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
                   5698:       else
                   5699:        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
                   5700:       fi
                   5701:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
                   5702:       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5703:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5704:
                   5705:       # hardcode_minus_L: Not really in the search PATH,
                   5706:       # but as the default location of the library.
                   5707:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5708:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   5709:       ;;
                   5710:
                   5711:     hpux10*)
                   5712:       if test yes,no = "$GCC,$with_gnu_ld"; then
                   5713:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   5714:       else
                   5715:        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   5716:       fi
                   5717:       if test no = "$with_gnu_ld"; then
                   5718:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
                   5719:        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5720:        _LT_TAGVAR(hardcode_direct, $1)=yes
                   5721:        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   5722:        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   5723:        # hardcode_minus_L: Not really in the search PATH,
                   5724:        # but as the default location of the library.
                   5725:        _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5726:       fi
                   5727:       ;;
                   5728:
                   5729:     hpux11*)
                   5730:       if test yes,no = "$GCC,$with_gnu_ld"; then
                   5731:        case $host_cpu in
                   5732:        hppa*64*)
                   5733:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
                   5734:          ;;
                   5735:        ia64*)
                   5736:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   5737:          ;;
                   5738:        *)
                   5739:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   5740:          ;;
                   5741:        esac
                   5742:       else
                   5743:        case $host_cpu in
                   5744:        hppa*64*)
                   5745:          _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
                   5746:          ;;
                   5747:        ia64*)
                   5748:          _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   5749:          ;;
                   5750:        *)
                   5751:        m4_if($1, [], [
                   5752:          # Older versions of the 11.00 compiler do not understand -b yet
                   5753:          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
                   5754:          _LT_LINKER_OPTION([if $CC understands -b],
                   5755:            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
                   5756:            [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
                   5757:            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
                   5758:          [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
                   5759:          ;;
                   5760:        esac
                   5761:       fi
                   5762:       if test no = "$with_gnu_ld"; then
                   5763:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
                   5764:        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5765:
                   5766:        case $host_cpu in
                   5767:        hppa*64*|ia64*)
                   5768:          _LT_TAGVAR(hardcode_direct, $1)=no
                   5769:          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5770:          ;;
                   5771:        *)
                   5772:          _LT_TAGVAR(hardcode_direct, $1)=yes
                   5773:          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   5774:          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   5775:
                   5776:          # hardcode_minus_L: Not really in the search PATH,
                   5777:          # but as the default location of the library.
                   5778:          _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5779:          ;;
                   5780:        esac
                   5781:       fi
                   5782:       ;;
                   5783:
                   5784:     irix5* | irix6* | nonstopux*)
                   5785:       if test yes = "$GCC"; then
                   5786:        _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'
                   5787:        # Try to use the -exported_symbol ld option, if it does not
                   5788:        # work, assume that -exports_file does not work either and
                   5789:        # implicitly export all symbols.
                   5790:        # This should be the same for all languages, so no per-tag cache variable.
                   5791:        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
                   5792:          [lt_cv_irix_exported_symbol],
                   5793:          [save_LDFLAGS=$LDFLAGS
                   5794:           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
                   5795:           AC_LINK_IFELSE(
                   5796:             [AC_LANG_SOURCE(
                   5797:                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
                   5798:                              [C++], [[int foo (void) { return 0; }]],
                   5799:                              [Fortran 77], [[
                   5800:       subroutine foo
                   5801:       end]],
                   5802:                              [Fortran], [[
                   5803:       subroutine foo
                   5804:       end]])])],
                   5805:              [lt_cv_irix_exported_symbol=yes],
                   5806:              [lt_cv_irix_exported_symbol=no])
                   5807:            LDFLAGS=$save_LDFLAGS])
                   5808:        if test yes = "$lt_cv_irix_exported_symbol"; then
                   5809:           _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'
                   5810:        fi
                   5811:       else
                   5812:        _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'
                   5813:        _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'
                   5814:       fi
                   5815:       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
                   5816:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5817:       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5818:       _LT_TAGVAR(inherit_rpath, $1)=yes
                   5819:       _LT_TAGVAR(link_all_deplibs, $1)=yes
                   5820:       ;;
                   5821:
                   5822:     linux*)
                   5823:       case $cc_basename in
                   5824:       tcc*)
                   5825:        # Fabrice Bellard et al's Tiny C Compiler
                   5826:        _LT_TAGVAR(ld_shlibs, $1)=yes
                   5827:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   5828:        ;;
                   5829:       esac
                   5830:       ;;
                   5831:
                   5832:     netbsd*)
                   5833:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   5834:        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   5835:       else
                   5836:        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   5837:       fi
                   5838:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   5839:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5840:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5841:       ;;
                   5842:
                   5843:     newsos6)
                   5844:       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   5845:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5846:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5847:       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5848:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5849:       ;;
                   5850:
                   5851:     *nto* | *qnx*)
                   5852:       ;;
                   5853:
                   5854:     openbsd* | bitrig*)
                   5855:       if test -f /usr/libexec/ld.so; then
                   5856:        _LT_TAGVAR(hardcode_direct, $1)=yes
                   5857:        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5858:        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   5859:        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
                   5860:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   5861:          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
                   5862:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   5863:          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   5864:        else
                   5865:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   5866:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   5867:        fi
                   5868:       else
                   5869:        _LT_TAGVAR(ld_shlibs, $1)=no
                   5870:       fi
                   5871:       ;;
                   5872:
                   5873:     os2*)
                   5874:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5875:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5876:       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   5877:       shrext_cmds=.dll
                   5878:       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   5879:        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   5880:        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   5881:        $ECHO EXPORTS >> $output_objdir/$libname.def~
                   5882:        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
                   5883:        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   5884:        emximp -o $lib $output_objdir/$libname.def'
                   5885:       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   5886:        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   5887:        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   5888:        $ECHO EXPORTS >> $output_objdir/$libname.def~
                   5889:        prefix_cmds="$SED"~
                   5890:        if test EXPORTS = "`$SED 1q $export_symbols`"; then
                   5891:          prefix_cmds="$prefix_cmds -e 1d";
                   5892:        fi~
                   5893:        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
                   5894:        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
                   5895:        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   5896:        emximp -o $lib $output_objdir/$libname.def'
                   5897:       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
                   5898:       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.5     ! ohara    5899:       _LT_TAGVAR(file_list_spec, $1)='@'
1.4       ohara    5900:       ;;
                   5901:
                   5902:     osf3*)
                   5903:       if test yes = "$GCC"; then
                   5904:        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
                   5905:        _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'
                   5906:       else
                   5907:        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
                   5908:        _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'
                   5909:       fi
                   5910:       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
                   5911:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5912:       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5913:       ;;
                   5914:
                   5915:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   5916:       if test yes = "$GCC"; then
                   5917:        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
                   5918:        _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'
                   5919:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   5920:       else
                   5921:        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
                   5922:        _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'
                   5923:        _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~
                   5924:           $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'
                   5925:
                   5926:        # Both c and cxx compiler support -rpath directly
                   5927:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
                   5928:       fi
                   5929:       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
                   5930:       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   5931:       ;;
                   5932:
                   5933:     solaris*)
                   5934:       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
                   5935:       if test yes = "$GCC"; then
                   5936:        wlarc='$wl'
                   5937:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
                   5938:        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   5939:           $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'
                   5940:       else
                   5941:        case `$CC -V 2>&1` in
                   5942:        *"Compilers 5.0"*)
                   5943:          wlarc=''
                   5944:          _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   5945:          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   5946:             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
                   5947:          ;;
                   5948:        *)
                   5949:          wlarc='$wl'
                   5950:          _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   5951:          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   5952:             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
                   5953:          ;;
                   5954:        esac
                   5955:       fi
                   5956:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   5957:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5958:       case $host_os in
                   5959:       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
                   5960:       *)
                   5961:        # The compiler driver will combine and reorder linker options,
                   5962:        # but understands '-z linker_flag'.  GCC discards it without '$wl',
                   5963:        # but is careful enough not to reorder.
                   5964:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   5965:        if test yes = "$GCC"; then
                   5966:          _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
                   5967:        else
                   5968:          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
                   5969:        fi
                   5970:        ;;
                   5971:       esac
                   5972:       _LT_TAGVAR(link_all_deplibs, $1)=yes
                   5973:       ;;
                   5974:
                   5975:     sunos4*)
                   5976:       if test sequent = "$host_vendor"; then
                   5977:        # Use $CC to link under sequent, because it throws in some extra .o
                   5978:        # files that make .init and .fini sections work.
                   5979:        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   5980:       else
                   5981:        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   5982:       fi
                   5983:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   5984:       _LT_TAGVAR(hardcode_direct, $1)=yes
                   5985:       _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   5986:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   5987:       ;;
                   5988:
                   5989:     sysv4)
                   5990:       case $host_vendor in
                   5991:        sni)
                   5992:          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   5993:          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
                   5994:        ;;
                   5995:        siemens)
                   5996:          ## LD is ld it makes a PLAMLIB
                   5997:          ## CC just makes a GrossModule.
                   5998:          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   5999:          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
                   6000:          _LT_TAGVAR(hardcode_direct, $1)=no
                   6001:         ;;
                   6002:        motorola)
                   6003:          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   6004:          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
                   6005:        ;;
                   6006:       esac
                   6007:       runpath_var='LD_RUN_PATH'
                   6008:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6009:       ;;
                   6010:
                   6011:     sysv4.3*)
                   6012:       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   6013:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6014:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
                   6015:       ;;
                   6016:
                   6017:     sysv4*MP*)
                   6018:       if test -d /usr/nec; then
                   6019:        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   6020:        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6021:        runpath_var=LD_RUN_PATH
                   6022:        hardcode_runpath_var=yes
                   6023:        _LT_TAGVAR(ld_shlibs, $1)=yes
                   6024:       fi
                   6025:       ;;
                   6026:
                   6027:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
                   6028:       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
                   6029:       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   6030:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6031:       runpath_var='LD_RUN_PATH'
                   6032:
                   6033:       if test yes = "$GCC"; then
                   6034:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6035:        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6036:       else
                   6037:        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6038:        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6039:       fi
                   6040:       ;;
                   6041:
                   6042:     sysv5* | sco3.2v5* | sco5v6*)
                   6043:       # Note: We CANNOT use -z defs as we might desire, because we do not
                   6044:       # link with -lc, and that would cause any symbols used from libc to
                   6045:       # always be unresolved, which means just about no library would
                   6046:       # ever link correctly.  If we're not using GNU ld we use -z text
                   6047:       # though, which does catch some bad symbols but isn't as heavy-handed
                   6048:       # as -z defs.
                   6049:       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
                   6050:       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
                   6051:       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   6052:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6053:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
                   6054:       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
                   6055:       _LT_TAGVAR(link_all_deplibs, $1)=yes
                   6056:       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
                   6057:       runpath_var='LD_RUN_PATH'
                   6058:
                   6059:       if test yes = "$GCC"; then
                   6060:        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6061:        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6062:       else
                   6063:        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6064:        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   6065:       fi
                   6066:       ;;
                   6067:
                   6068:     uts4*)
                   6069:       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   6070:       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   6071:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6072:       ;;
                   6073:
                   6074:     *)
                   6075:       _LT_TAGVAR(ld_shlibs, $1)=no
                   6076:       ;;
                   6077:     esac
                   6078:
                   6079:     if test sni = "$host_vendor"; then
                   6080:       case $host in
                   6081:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
                   6082:        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
                   6083:        ;;
                   6084:       esac
                   6085:     fi
                   6086:   fi
                   6087: ])
                   6088: AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
                   6089: test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
                   6090:
                   6091: _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
                   6092:
                   6093: _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
                   6094: _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
                   6095: _LT_DECL([], [extract_expsyms_cmds], [2],
                   6096:     [The commands to extract the exported symbol list from a shared archive])
                   6097:
                   6098: #
                   6099: # Do we need to explicitly link libc?
                   6100: #
                   6101: case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
                   6102: x|xyes)
                   6103:   # Assume -lc should be added
                   6104:   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
                   6105:
                   6106:   if test yes,yes = "$GCC,$enable_shared"; then
                   6107:     case $_LT_TAGVAR(archive_cmds, $1) in
                   6108:     *'~'*)
                   6109:       # FIXME: we may have to deal with multi-command sequences.
                   6110:       ;;
                   6111:     '$CC '*)
                   6112:       # Test whether the compiler implicitly links with -lc since on some
                   6113:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   6114:       # to ld, don't add -lc before -lgcc.
                   6115:       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
                   6116:        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
                   6117:        [$RM conftest*
                   6118:        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   6119:
                   6120:        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
                   6121:          soname=conftest
                   6122:          lib=conftest
                   6123:          libobjs=conftest.$ac_objext
                   6124:          deplibs=
                   6125:          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
                   6126:          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
                   6127:          compiler_flags=-v
                   6128:          linker_flags=-v
                   6129:          verstring=
                   6130:          output_objdir=.
                   6131:          libname=conftest
                   6132:          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
                   6133:          _LT_TAGVAR(allow_undefined_flag, $1)=
                   6134:          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
                   6135:          then
                   6136:            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   6137:          else
                   6138:            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
                   6139:          fi
                   6140:          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
                   6141:        else
                   6142:          cat conftest.err 1>&5
                   6143:        fi
                   6144:        $RM conftest*
                   6145:        ])
                   6146:       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
                   6147:       ;;
                   6148:     esac
                   6149:   fi
                   6150:   ;;
                   6151: esac
                   6152:
                   6153: _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
                   6154:     [Whether or not to add -lc for building shared libraries])
                   6155: _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
                   6156:     [enable_shared_with_static_runtimes], [0],
                   6157:     [Whether or not to disallow shared libs when runtime libs are static])
                   6158: _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
                   6159:     [Compiler flag to allow reflexive dlopens])
                   6160: _LT_TAGDECL([], [whole_archive_flag_spec], [1],
                   6161:     [Compiler flag to generate shared objects directly from archives])
                   6162: _LT_TAGDECL([], [compiler_needs_object], [1],
                   6163:     [Whether the compiler copes with passing no objects directly])
                   6164: _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
                   6165:     [Create an old-style archive from a shared archive])
                   6166: _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
                   6167:     [Create a temporary old-style archive to link instead of a shared archive])
                   6168: _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
                   6169: _LT_TAGDECL([], [archive_expsym_cmds], [2])
                   6170: _LT_TAGDECL([], [module_cmds], [2],
                   6171:     [Commands used to build a loadable module if different from building
                   6172:     a shared archive.])
                   6173: _LT_TAGDECL([], [module_expsym_cmds], [2])
                   6174: _LT_TAGDECL([], [with_gnu_ld], [1],
                   6175:     [Whether we are building with GNU ld or not])
                   6176: _LT_TAGDECL([], [allow_undefined_flag], [1],
                   6177:     [Flag that allows shared libraries with undefined symbols to be built])
                   6178: _LT_TAGDECL([], [no_undefined_flag], [1],
                   6179:     [Flag that enforces no undefined symbols])
                   6180: _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
                   6181:     [Flag to hardcode $libdir into a binary during linking.
                   6182:     This must work even if $libdir does not exist])
                   6183: _LT_TAGDECL([], [hardcode_libdir_separator], [1],
                   6184:     [Whether we need a single "-rpath" flag with a separated argument])
                   6185: _LT_TAGDECL([], [hardcode_direct], [0],
                   6186:     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
                   6187:     DIR into the resulting binary])
                   6188: _LT_TAGDECL([], [hardcode_direct_absolute], [0],
                   6189:     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
                   6190:     DIR into the resulting binary and the resulting library dependency is
                   6191:     "absolute", i.e impossible to change by setting $shlibpath_var if the
                   6192:     library is relocated])
                   6193: _LT_TAGDECL([], [hardcode_minus_L], [0],
                   6194:     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
                   6195:     into the resulting binary])
                   6196: _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
                   6197:     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
                   6198:     into the resulting binary])
                   6199: _LT_TAGDECL([], [hardcode_automatic], [0],
                   6200:     [Set to "yes" if building a shared library automatically hardcodes DIR
                   6201:     into the library and all subsequent libraries and executables linked
                   6202:     against it])
                   6203: _LT_TAGDECL([], [inherit_rpath], [0],
                   6204:     [Set to yes if linker adds runtime paths of dependent libraries
                   6205:     to runtime path list])
                   6206: _LT_TAGDECL([], [link_all_deplibs], [0],
                   6207:     [Whether libtool must link a program against all its dependency libraries])
                   6208: _LT_TAGDECL([], [always_export_symbols], [0],
                   6209:     [Set to "yes" if exported symbols are required])
                   6210: _LT_TAGDECL([], [export_symbols_cmds], [2],
                   6211:     [The commands to list exported symbols])
                   6212: _LT_TAGDECL([], [exclude_expsyms], [1],
                   6213:     [Symbols that should not be listed in the preloaded symbols])
                   6214: _LT_TAGDECL([], [include_expsyms], [1],
                   6215:     [Symbols that must always be exported])
                   6216: _LT_TAGDECL([], [prelink_cmds], [2],
                   6217:     [Commands necessary for linking programs (against libraries) with templates])
                   6218: _LT_TAGDECL([], [postlink_cmds], [2],
                   6219:     [Commands necessary for finishing linking programs])
                   6220: _LT_TAGDECL([], [file_list_spec], [1],
                   6221:     [Specify filename containing input files])
                   6222: dnl FIXME: Not yet implemented
                   6223: dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
                   6224: dnl    [Compiler flag to generate thread safe objects])
                   6225: ])# _LT_LINKER_SHLIBS
                   6226:
                   6227:
                   6228: # _LT_LANG_C_CONFIG([TAG])
                   6229: # ------------------------
                   6230: # Ensure that the configuration variables for a C compiler are suitably
                   6231: # defined.  These variables are subsequently used by _LT_CONFIG to write
                   6232: # the compiler configuration to 'libtool'.
                   6233: m4_defun([_LT_LANG_C_CONFIG],
                   6234: [m4_require([_LT_DECL_EGREP])dnl
                   6235: lt_save_CC=$CC
                   6236: AC_LANG_PUSH(C)
                   6237:
                   6238: # Source file extension for C test sources.
                   6239: ac_ext=c
                   6240:
                   6241: # Object file extension for compiled C test sources.
                   6242: objext=o
                   6243: _LT_TAGVAR(objext, $1)=$objext
                   6244:
                   6245: # Code to be used in simple compile tests
                   6246: lt_simple_compile_test_code="int some_variable = 0;"
                   6247:
                   6248: # Code to be used in simple link tests
                   6249: lt_simple_link_test_code='int main(){return(0);}'
                   6250:
                   6251: _LT_TAG_COMPILER
                   6252: # Save the default compiler, since it gets overwritten when the other
                   6253: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
                   6254: compiler_DEFAULT=$CC
                   6255:
                   6256: # save warnings/boilerplate of simple test code
                   6257: _LT_COMPILER_BOILERPLATE
                   6258: _LT_LINKER_BOILERPLATE
                   6259:
                   6260: if test -n "$compiler"; then
                   6261:   _LT_COMPILER_NO_RTTI($1)
                   6262:   _LT_COMPILER_PIC($1)
                   6263:   _LT_COMPILER_C_O($1)
                   6264:   _LT_COMPILER_FILE_LOCKS($1)
                   6265:   _LT_LINKER_SHLIBS($1)
                   6266:   _LT_SYS_DYNAMIC_LINKER($1)
                   6267:   _LT_LINKER_HARDCODE_LIBPATH($1)
                   6268:   LT_SYS_DLOPEN_SELF
                   6269:   _LT_CMD_STRIPLIB
                   6270:
                   6271:   # Report what library types will actually be built
                   6272:   AC_MSG_CHECKING([if libtool supports shared libraries])
                   6273:   AC_MSG_RESULT([$can_build_shared])
                   6274:
                   6275:   AC_MSG_CHECKING([whether to build shared libraries])
                   6276:   test no = "$can_build_shared" && enable_shared=no
                   6277:
                   6278:   # On AIX, shared libraries and static libraries use the same namespace, and
                   6279:   # are all built from PIC.
                   6280:   case $host_os in
                   6281:   aix3*)
                   6282:     test yes = "$enable_shared" && enable_static=no
                   6283:     if test -n "$RANLIB"; then
                   6284:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   6285:       postinstall_cmds='$RANLIB $lib'
                   6286:     fi
                   6287:     ;;
                   6288:
                   6289:   aix[[4-9]]*)
                   6290:     if test ia64 != "$host_cpu"; then
                   6291:       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
                   6292:       yes,aix,yes) ;;                  # shared object as lib.so file only
                   6293:       yes,svr4,*) ;;                   # shared object as lib.so archive member only
                   6294:       yes,*) enable_static=no ;;       # shared object in lib.a archive as well
                   6295:       esac
                   6296:     fi
                   6297:     ;;
                   6298:   esac
                   6299:   AC_MSG_RESULT([$enable_shared])
                   6300:
                   6301:   AC_MSG_CHECKING([whether to build static libraries])
                   6302:   # Make sure either enable_shared or enable_static is yes.
                   6303:   test yes = "$enable_shared" || enable_static=yes
                   6304:   AC_MSG_RESULT([$enable_static])
                   6305:
                   6306:   _LT_CONFIG($1)
                   6307: fi
                   6308: AC_LANG_POP
                   6309: CC=$lt_save_CC
                   6310: ])# _LT_LANG_C_CONFIG
                   6311:
                   6312:
                   6313: # _LT_LANG_CXX_CONFIG([TAG])
                   6314: # --------------------------
                   6315: # Ensure that the configuration variables for a C++ compiler are suitably
                   6316: # defined.  These variables are subsequently used by _LT_CONFIG to write
                   6317: # the compiler configuration to 'libtool'.
                   6318: m4_defun([_LT_LANG_CXX_CONFIG],
                   6319: [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   6320: m4_require([_LT_DECL_EGREP])dnl
                   6321: m4_require([_LT_PATH_MANIFEST_TOOL])dnl
                   6322: if test -n "$CXX" && ( test no != "$CXX" &&
                   6323:     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
                   6324:     (test g++ != "$CXX"))); then
                   6325:   AC_PROG_CXXCPP
                   6326: else
                   6327:   _lt_caught_CXX_error=yes
                   6328: fi
                   6329:
                   6330: AC_LANG_PUSH(C++)
                   6331: _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   6332: _LT_TAGVAR(allow_undefined_flag, $1)=
                   6333: _LT_TAGVAR(always_export_symbols, $1)=no
                   6334: _LT_TAGVAR(archive_expsym_cmds, $1)=
                   6335: _LT_TAGVAR(compiler_needs_object, $1)=no
                   6336: _LT_TAGVAR(export_dynamic_flag_spec, $1)=
                   6337: _LT_TAGVAR(hardcode_direct, $1)=no
                   6338: _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   6339: _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
                   6340: _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   6341: _LT_TAGVAR(hardcode_minus_L, $1)=no
                   6342: _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
                   6343: _LT_TAGVAR(hardcode_automatic, $1)=no
                   6344: _LT_TAGVAR(inherit_rpath, $1)=no
                   6345: _LT_TAGVAR(module_cmds, $1)=
                   6346: _LT_TAGVAR(module_expsym_cmds, $1)=
                   6347: _LT_TAGVAR(link_all_deplibs, $1)=unknown
                   6348: _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
                   6349: _LT_TAGVAR(reload_flag, $1)=$reload_flag
                   6350: _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
                   6351: _LT_TAGVAR(no_undefined_flag, $1)=
                   6352: _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   6353: _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
                   6354:
                   6355: # Source file extension for C++ test sources.
                   6356: ac_ext=cpp
                   6357:
                   6358: # Object file extension for compiled C++ test sources.
                   6359: objext=o
                   6360: _LT_TAGVAR(objext, $1)=$objext
                   6361:
                   6362: # No sense in running all these tests if we already determined that
                   6363: # the CXX compiler isn't working.  Some variables (like enable_shared)
                   6364: # are currently assumed to apply to all compilers on this platform,
                   6365: # and will be corrupted by setting them based on a non-working compiler.
                   6366: if test yes != "$_lt_caught_CXX_error"; then
                   6367:   # Code to be used in simple compile tests
                   6368:   lt_simple_compile_test_code="int some_variable = 0;"
                   6369:
                   6370:   # Code to be used in simple link tests
                   6371:   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
                   6372:
                   6373:   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   6374:   _LT_TAG_COMPILER
                   6375:
                   6376:   # save warnings/boilerplate of simple test code
                   6377:   _LT_COMPILER_BOILERPLATE
                   6378:   _LT_LINKER_BOILERPLATE
                   6379:
                   6380:   # Allow CC to be a program name with arguments.
                   6381:   lt_save_CC=$CC
                   6382:   lt_save_CFLAGS=$CFLAGS
                   6383:   lt_save_LD=$LD
                   6384:   lt_save_GCC=$GCC
                   6385:   GCC=$GXX
                   6386:   lt_save_with_gnu_ld=$with_gnu_ld
                   6387:   lt_save_path_LD=$lt_cv_path_LD
                   6388:   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
                   6389:     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
                   6390:   else
                   6391:     $as_unset lt_cv_prog_gnu_ld
                   6392:   fi
                   6393:   if test -n "${lt_cv_path_LDCXX+set}"; then
                   6394:     lt_cv_path_LD=$lt_cv_path_LDCXX
                   6395:   else
                   6396:     $as_unset lt_cv_path_LD
                   6397:   fi
                   6398:   test -z "${LDCXX+set}" || LD=$LDCXX
                   6399:   CC=${CXX-"c++"}
                   6400:   CFLAGS=$CXXFLAGS
                   6401:   compiler=$CC
                   6402:   _LT_TAGVAR(compiler, $1)=$CC
                   6403:   _LT_CC_BASENAME([$compiler])
                   6404:
                   6405:   if test -n "$compiler"; then
                   6406:     # We don't want -fno-exception when compiling C++ code, so set the
                   6407:     # no_builtin_flag separately
                   6408:     if test yes = "$GXX"; then
                   6409:       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
                   6410:     else
                   6411:       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
                   6412:     fi
                   6413:
                   6414:     if test yes = "$GXX"; then
                   6415:       # Set up default GNU C++ configuration
                   6416:
                   6417:       LT_PATH_LD
                   6418:
                   6419:       # Check if GNU C++ uses GNU ld as the underlying linker, since the
                   6420:       # archiving commands below assume that GNU ld is being used.
                   6421:       if test yes = "$with_gnu_ld"; then
                   6422:         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
                   6423:         _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'
                   6424:
                   6425:         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   6426:         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   6427:
                   6428:         # If archive_cmds runs LD, not CC, wlarc should be empty
                   6429:         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
                   6430:         #     investigate it a little bit more. (MM)
                   6431:         wlarc='$wl'
                   6432:
                   6433:         # ancient GNU ld didn't support --whole-archive et. al.
                   6434:         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
                   6435:          $GREP 'no-whole-archive' > /dev/null; then
                   6436:           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
                   6437:         else
                   6438:           _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   6439:         fi
                   6440:       else
                   6441:         with_gnu_ld=no
                   6442:         wlarc=
                   6443:
                   6444:         # A generic and very simple default shared library creation
                   6445:         # command for GNU C++ for the case where it uses the native
                   6446:         # linker, instead of GNU ld.  If possible, this setting should
                   6447:         # overridden to take advantage of the native linker features on
                   6448:         # the platform it is being used on.
                   6449:         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
                   6450:       fi
                   6451:
                   6452:       # Commands to make compiler produce verbose output that lists
                   6453:       # what "hidden" libraries, object files and flags are used when
                   6454:       # linking a shared library.
                   6455:       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
                   6456:
                   6457:     else
                   6458:       GXX=no
                   6459:       with_gnu_ld=no
                   6460:       wlarc=
                   6461:     fi
                   6462:
                   6463:     # PORTME: fill in a description of your system's C++ link characteristics
                   6464:     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
                   6465:     _LT_TAGVAR(ld_shlibs, $1)=yes
                   6466:     case $host_os in
                   6467:       aix3*)
                   6468:         # FIXME: insert proper C++ library support
                   6469:         _LT_TAGVAR(ld_shlibs, $1)=no
                   6470:         ;;
                   6471:       aix[[4-9]]*)
                   6472:         if test ia64 = "$host_cpu"; then
                   6473:           # On IA64, the linker does run time linking by default, so we don't
                   6474:           # have to do anything special.
                   6475:           aix_use_runtimelinking=no
                   6476:           exp_sym_flag='-Bexport'
                   6477:           no_entry_flag=
                   6478:         else
                   6479:           aix_use_runtimelinking=no
                   6480:
                   6481:           # Test if we are trying to use run time linking or normal
                   6482:           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   6483:           # have runtime linking enabled, and use it for executables.
                   6484:           # For shared libraries, we enable/disable runtime linking
                   6485:           # depending on the kind of the shared library created -
                   6486:           # when "with_aix_soname,aix_use_runtimelinking" is:
                   6487:           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
                   6488:           # "aix,yes"  lib.so          shared, rtl:yes, for executables
                   6489:           #            lib.a           static archive
                   6490:           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
                   6491:           #            lib.a(lib.so.V) shared, rtl:no,  for executables
                   6492:           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
                   6493:           #            lib.a(lib.so.V) shared, rtl:no
                   6494:           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
                   6495:           #            lib.a           static archive
                   6496:           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
                   6497:            for ld_flag in $LDFLAGS; do
                   6498:              case $ld_flag in
                   6499:              *-brtl*)
                   6500:                aix_use_runtimelinking=yes
                   6501:                break
                   6502:                ;;
                   6503:              esac
                   6504:            done
                   6505:            if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
                   6506:              # With aix-soname=svr4, we create the lib.so.V shared archives only,
                   6507:              # so we don't have lib.a shared libs to link our executables.
                   6508:              # We have to force runtime linking in this case.
                   6509:              aix_use_runtimelinking=yes
                   6510:              LDFLAGS="$LDFLAGS -Wl,-brtl"
                   6511:            fi
                   6512:            ;;
                   6513:           esac
                   6514:
                   6515:           exp_sym_flag='-bexport'
                   6516:           no_entry_flag='-bnoentry'
                   6517:         fi
                   6518:
                   6519:         # When large executables or shared objects are built, AIX ld can
                   6520:         # have problems creating the table of contents.  If linking a library
                   6521:         # or program results in "error TOC overflow" add -mminimal-toc to
                   6522:         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   6523:         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   6524:
                   6525:         _LT_TAGVAR(archive_cmds, $1)=''
                   6526:         _LT_TAGVAR(hardcode_direct, $1)=yes
                   6527:         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   6528:         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
                   6529:         _LT_TAGVAR(link_all_deplibs, $1)=yes
                   6530:         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
                   6531:         case $with_aix_soname,$aix_use_runtimelinking in
                   6532:         aix,*) ;;      # no import file
                   6533:         svr4,* | *,yes) # use import file
                   6534:           # The Import File defines what to hardcode.
                   6535:           _LT_TAGVAR(hardcode_direct, $1)=no
                   6536:           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   6537:           ;;
                   6538:         esac
                   6539:
                   6540:         if test yes = "$GXX"; then
                   6541:           case $host_os in aix4.[[012]]|aix4.[[012]].*)
                   6542:           # We only want to do this on AIX 4.2 and lower, the check
                   6543:           # below for broken collect2 doesn't work under 4.3+
                   6544:          collect2name=`$CC -print-prog-name=collect2`
                   6545:          if test -f "$collect2name" &&
                   6546:             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
                   6547:          then
                   6548:            # We have reworked collect2
                   6549:            :
                   6550:          else
                   6551:            # We have old collect2
                   6552:            _LT_TAGVAR(hardcode_direct, $1)=unsupported
                   6553:            # It fails to find uninstalled libraries when the uninstalled
                   6554:            # path is not listed in the libpath.  Setting hardcode_minus_L
                   6555:            # to unsupported forces relinking
                   6556:            _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   6557:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   6558:            _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   6559:          fi
                   6560:           esac
                   6561:           shared_flag='-shared'
                   6562:          if test yes = "$aix_use_runtimelinking"; then
                   6563:            shared_flag=$shared_flag' $wl-G'
                   6564:          fi
                   6565:          # Need to ensure runtime linking is disabled for the traditional
                   6566:          # shared library, or the linker may eventually find shared libraries
                   6567:          # /with/ Import File - we do not want to mix them.
                   6568:          shared_flag_aix='-shared'
                   6569:          shared_flag_svr4='-shared $wl-G'
                   6570:         else
                   6571:           # not using gcc
                   6572:           if test ia64 = "$host_cpu"; then
                   6573:          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   6574:          # chokes on -Wl,-G. The following line is correct:
                   6575:          shared_flag='-G'
                   6576:           else
                   6577:            if test yes = "$aix_use_runtimelinking"; then
                   6578:              shared_flag='$wl-G'
                   6579:            else
                   6580:              shared_flag='$wl-bM:SRE'
                   6581:            fi
                   6582:            shared_flag_aix='$wl-bM:SRE'
                   6583:            shared_flag_svr4='$wl-G'
                   6584:           fi
                   6585:         fi
                   6586:
                   6587:         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
                   6588:         # It seems that -bexpall does not export symbols beginning with
                   6589:         # underscore (_), so it is better to generate a list of symbols to
                   6590:        # export.
                   6591:         _LT_TAGVAR(always_export_symbols, $1)=yes
                   6592:        if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
                   6593:           # Warning - without using the other runtime loading flags (-brtl),
                   6594:           # -berok will link without error, but may produce a broken library.
                   6595:           # The "-G" linker flag allows undefined symbols.
                   6596:           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
                   6597:           # Determine the default libpath from the value encoded in an empty
                   6598:           # executable.
                   6599:           _LT_SYS_MODULE_PATH_AIX([$1])
                   6600:           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
                   6601:
                   6602:           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
                   6603:         else
                   6604:           if test ia64 = "$host_cpu"; then
                   6605:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
                   6606:            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
                   6607:            _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"
                   6608:           else
                   6609:            # Determine the default libpath from the value encoded in an
                   6610:            # empty executable.
                   6611:            _LT_SYS_MODULE_PATH_AIX([$1])
                   6612:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
                   6613:            # Warning - without using the other run time loading flags,
                   6614:            # -berok will link without error, but may produce a broken library.
                   6615:            _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
                   6616:            _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
                   6617:            if test yes = "$with_gnu_ld"; then
                   6618:              # We only use this code for GNU lds that support --whole-archive.
                   6619:              _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
                   6620:            else
                   6621:              # Exported symbols can be pulled into shared objects from archives
                   6622:              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
                   6623:            fi
                   6624:            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
                   6625:            _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
                   6626:            # -brtl affects multiple linker settings, -berok does not and is overridden later
                   6627:            compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
                   6628:            if test svr4 != "$with_aix_soname"; then
                   6629:              # This is similar to how AIX traditionally builds its shared
                   6630:              # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
                   6631:              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
                   6632:            fi
                   6633:            if test aix != "$with_aix_soname"; then
                   6634:              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
                   6635:            else
                   6636:              # used by -dlpreopen to get the symbols
                   6637:              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
                   6638:            fi
                   6639:            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
                   6640:           fi
                   6641:         fi
                   6642:         ;;
                   6643:
                   6644:       beos*)
                   6645:        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
                   6646:          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   6647:          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   6648:          # support --undefined.  This deserves some investigation.  FIXME
                   6649:          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   6650:        else
                   6651:          _LT_TAGVAR(ld_shlibs, $1)=no
                   6652:        fi
                   6653:        ;;
                   6654:
                   6655:       chorus*)
                   6656:         case $cc_basename in
                   6657:           *)
                   6658:          # FIXME: insert proper C++ library support
                   6659:          _LT_TAGVAR(ld_shlibs, $1)=no
                   6660:          ;;
                   6661:         esac
                   6662:         ;;
                   6663:
                   6664:       cygwin* | mingw* | pw32* | cegcc*)
                   6665:        case $GXX,$cc_basename in
1.5     ! ohara    6666:        ,cl* | no,cl* | ,icl* | no,icl*)
        !          6667:          # Native MSVC or ICC
1.4       ohara    6668:          # hardcode_libdir_flag_spec is actually meaningless, as there is
                   6669:          # no search path for DLLs.
                   6670:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
                   6671:          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   6672:          _LT_TAGVAR(always_export_symbols, $1)=yes
                   6673:          _LT_TAGVAR(file_list_spec, $1)='@'
                   6674:          # Tell ltmain to make .lib files, not .a files.
                   6675:          libext=lib
                   6676:          # Tell ltmain to make .dll files, not .so files.
                   6677:          shrext_cmds=.dll
                   6678:          # FIXME: Setting linknames here is a bad hack.
                   6679:          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
                   6680:          _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
                   6681:               cp "$export_symbols" "$output_objdir/$soname.def";
                   6682:               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
                   6683:             else
                   6684:               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
                   6685:             fi~
                   6686:             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
                   6687:             linknames='
                   6688:          # The linker will not automatically build a static lib if we build a DLL.
                   6689:          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
                   6690:          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
                   6691:          # Don't use ranlib
                   6692:          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
                   6693:          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
                   6694:             lt_tool_outputfile="@TOOL_OUTPUT@"~
                   6695:             case $lt_outputfile in
                   6696:               *.exe|*.EXE) ;;
                   6697:               *)
                   6698:                 lt_outputfile=$lt_outputfile.exe
                   6699:                 lt_tool_outputfile=$lt_tool_outputfile.exe
                   6700:                 ;;
                   6701:             esac~
                   6702:             func_to_tool_file "$lt_outputfile"~
                   6703:             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
                   6704:               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
                   6705:               $RM "$lt_outputfile.manifest";
                   6706:             fi'
                   6707:          ;;
                   6708:        *)
                   6709:          # g++
                   6710:          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
                   6711:          # as there is no search path for DLLs.
                   6712:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   6713:          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
                   6714:          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   6715:          _LT_TAGVAR(always_export_symbols, $1)=no
                   6716:          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
                   6717:
                   6718:          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
                   6719:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   6720:            # If the export-symbols file already is a .def file, use it as
                   6721:            # is; otherwise, prepend EXPORTS...
                   6722:            _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
                   6723:               cp $export_symbols $output_objdir/$soname.def;
                   6724:             else
                   6725:               echo EXPORTS > $output_objdir/$soname.def;
                   6726:               cat $export_symbols >> $output_objdir/$soname.def;
                   6727:             fi~
                   6728:             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   6729:          else
                   6730:            _LT_TAGVAR(ld_shlibs, $1)=no
                   6731:          fi
                   6732:          ;;
                   6733:        esac
                   6734:        ;;
                   6735:       darwin* | rhapsody*)
                   6736:         _LT_DARWIN_LINKER_FEATURES($1)
                   6737:        ;;
                   6738:
                   6739:       os2*)
                   6740:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
                   6741:        _LT_TAGVAR(hardcode_minus_L, $1)=yes
                   6742:        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
                   6743:        shrext_cmds=.dll
                   6744:        _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   6745:          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   6746:          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   6747:          $ECHO EXPORTS >> $output_objdir/$libname.def~
                   6748:          emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
                   6749:          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   6750:          emximp -o $lib $output_objdir/$libname.def'
                   6751:        _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
                   6752:          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
                   6753:          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
                   6754:          $ECHO EXPORTS >> $output_objdir/$libname.def~
                   6755:          prefix_cmds="$SED"~
                   6756:          if test EXPORTS = "`$SED 1q $export_symbols`"; then
                   6757:            prefix_cmds="$prefix_cmds -e 1d";
                   6758:          fi~
                   6759:          prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
                   6760:          cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
                   6761:          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
                   6762:          emximp -o $lib $output_objdir/$libname.def'
                   6763:        _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
                   6764:        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.5     ! ohara    6765:        _LT_TAGVAR(file_list_spec, $1)='@'
1.4       ohara    6766:        ;;
                   6767:
                   6768:       dgux*)
                   6769:         case $cc_basename in
                   6770:           ec++*)
                   6771:            # FIXME: insert proper C++ library support
                   6772:            _LT_TAGVAR(ld_shlibs, $1)=no
                   6773:            ;;
                   6774:           ghcx*)
                   6775:            # Green Hills C++ Compiler
                   6776:            # FIXME: insert proper C++ library support
                   6777:            _LT_TAGVAR(ld_shlibs, $1)=no
                   6778:            ;;
                   6779:           *)
                   6780:            # FIXME: insert proper C++ library support
                   6781:            _LT_TAGVAR(ld_shlibs, $1)=no
                   6782:            ;;
                   6783:         esac
                   6784:         ;;
                   6785:
                   6786:       freebsd2.*)
                   6787:         # C++ shared libraries reported to be fairly broken before
                   6788:        # switch to ELF
                   6789:         _LT_TAGVAR(ld_shlibs, $1)=no
                   6790:         ;;
                   6791:
                   6792:       freebsd-elf*)
                   6793:         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   6794:         ;;
                   6795:
1.5     ! ohara    6796:       freebsd* | dragonfly* | midnightbsd*)
1.4       ohara    6797:         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
                   6798:         # conventions
                   6799:         _LT_TAGVAR(ld_shlibs, $1)=yes
                   6800:         ;;
                   6801:
                   6802:       haiku*)
                   6803:         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   6804:         _LT_TAGVAR(link_all_deplibs, $1)=yes
                   6805:         ;;
                   6806:
                   6807:       hpux9*)
                   6808:         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
                   6809:         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   6810:         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   6811:         _LT_TAGVAR(hardcode_direct, $1)=yes
                   6812:         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
                   6813:                                             # but as the default
                   6814:                                             # location of the library.
                   6815:
                   6816:         case $cc_basename in
                   6817:           CC*)
                   6818:             # FIXME: insert proper C++ library support
                   6819:             _LT_TAGVAR(ld_shlibs, $1)=no
                   6820:             ;;
                   6821:           aCC*)
                   6822:             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
                   6823:             # Commands to make compiler produce verbose output that lists
                   6824:             # what "hidden" libraries, object files and flags are used when
                   6825:             # linking a shared library.
                   6826:             #
                   6827:             # There doesn't appear to be a way to prevent this compiler from
                   6828:             # explicitly linking system object files so we need to strip them
                   6829:             # from the output so that they don't get included in the library
                   6830:             # dependencies.
                   6831:             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
                   6832:             ;;
                   6833:           *)
                   6834:             if test yes = "$GXX"; then
                   6835:               _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
                   6836:             else
                   6837:               # FIXME: insert proper C++ library support
                   6838:               _LT_TAGVAR(ld_shlibs, $1)=no
                   6839:             fi
                   6840:             ;;
                   6841:         esac
                   6842:         ;;
                   6843:
                   6844:       hpux10*|hpux11*)
                   6845:         if test no = "$with_gnu_ld"; then
                   6846:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
                   6847:          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   6848:
                   6849:           case $host_cpu in
                   6850:             hppa*64*|ia64*)
                   6851:               ;;
                   6852:             *)
                   6853:              _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   6854:               ;;
                   6855:           esac
                   6856:         fi
                   6857:         case $host_cpu in
                   6858:           hppa*64*|ia64*)
                   6859:             _LT_TAGVAR(hardcode_direct, $1)=no
                   6860:             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6861:             ;;
                   6862:           *)
                   6863:             _LT_TAGVAR(hardcode_direct, $1)=yes
                   6864:             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   6865:             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
                   6866:                                                 # but as the default
                   6867:                                                 # location of the library.
                   6868:             ;;
                   6869:         esac
                   6870:
                   6871:         case $cc_basename in
                   6872:           CC*)
                   6873:            # FIXME: insert proper C++ library support
                   6874:            _LT_TAGVAR(ld_shlibs, $1)=no
                   6875:            ;;
                   6876:           aCC*)
                   6877:            case $host_cpu in
                   6878:              hppa*64*)
                   6879:                _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6880:                ;;
                   6881:              ia64*)
                   6882:                _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6883:                ;;
                   6884:              *)
                   6885:                _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6886:                ;;
                   6887:            esac
                   6888:            # Commands to make compiler produce verbose output that lists
                   6889:            # what "hidden" libraries, object files and flags are used when
                   6890:            # linking a shared library.
                   6891:            #
                   6892:            # There doesn't appear to be a way to prevent this compiler from
                   6893:            # explicitly linking system object files so we need to strip them
                   6894:            # from the output so that they don't get included in the library
                   6895:            # dependencies.
                   6896:            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
                   6897:            ;;
                   6898:           *)
                   6899:            if test yes = "$GXX"; then
                   6900:              if test no = "$with_gnu_ld"; then
                   6901:                case $host_cpu in
                   6902:                  hppa*64*)
                   6903:                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6904:                    ;;
                   6905:                  ia64*)
                   6906:                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6907:                    ;;
                   6908:                  *)
                   6909:                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   6910:                    ;;
                   6911:                esac
                   6912:              fi
                   6913:            else
                   6914:              # FIXME: insert proper C++ library support
                   6915:              _LT_TAGVAR(ld_shlibs, $1)=no
                   6916:            fi
                   6917:            ;;
                   6918:         esac
                   6919:         ;;
                   6920:
                   6921:       interix[[3-9]]*)
                   6922:        _LT_TAGVAR(hardcode_direct, $1)=no
                   6923:        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   6924:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   6925:        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   6926:        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   6927:        # Instead, shared libraries are loaded at an image base (0x10000000 by
                   6928:        # default) and relocated if they conflict, which is a slow very memory
                   6929:        # consuming and fragmenting process.  To avoid this, we pick a random,
                   6930:        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   6931:        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   6932:        _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'
1.5     ! ohara    6933:        _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'
1.4       ohara    6934:        ;;
                   6935:       irix5* | irix6*)
                   6936:         case $cc_basename in
                   6937:           CC*)
                   6938:            # SGI C++
                   6939:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
                   6940:
                   6941:            # Archives containing C++ object files must be created using
                   6942:            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
                   6943:            # necessary to make sure instantiated templates are included
                   6944:            # in the archive.
                   6945:            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
                   6946:            ;;
                   6947:           *)
                   6948:            if test yes = "$GXX"; then
                   6949:              if test no = "$with_gnu_ld"; then
                   6950:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
                   6951:              else
                   6952:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
                   6953:              fi
                   6954:            fi
                   6955:            _LT_TAGVAR(link_all_deplibs, $1)=yes
                   6956:            ;;
                   6957:         esac
                   6958:         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   6959:         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   6960:         _LT_TAGVAR(inherit_rpath, $1)=yes
                   6961:         ;;
                   6962:
                   6963:       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
                   6964:         case $cc_basename in
                   6965:           KCC*)
                   6966:            # Kuck and Associates, Inc. (KAI) C++ Compiler
                   6967:
                   6968:            # KCC will only create a shared library if the output file
                   6969:            # ends with ".so" (or ".sl" for HP-UX), so rename the library
                   6970:            # to its proper name (with version) after linking.
                   6971:            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
                   6972:            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
                   6973:            # Commands to make compiler produce verbose output that lists
                   6974:            # what "hidden" libraries, object files and flags are used when
                   6975:            # linking a shared library.
                   6976:            #
                   6977:            # There doesn't appear to be a way to prevent this compiler from
                   6978:            # explicitly linking system object files so we need to strip them
                   6979:            # from the output so that they don't get included in the library
                   6980:            # dependencies.
                   6981:            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
                   6982:
                   6983:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   6984:            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   6985:
                   6986:            # Archives containing C++ object files must be created using
                   6987:            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
                   6988:            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
                   6989:            ;;
                   6990:          icpc* | ecpc* )
                   6991:            # Intel C++
                   6992:            with_gnu_ld=yes
                   6993:            # version 8.0 and above of icpc choke on multiply defined symbols
                   6994:            # if we add $predep_objects and $postdep_objects, however 7.1 and
                   6995:            # earlier do not add the objects themselves.
                   6996:            case `$CC -V 2>&1` in
                   6997:              *"Version 7."*)
                   6998:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
                   6999:                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
                   7000:                ;;
                   7001:              *)  # Version 8.0 or newer
                   7002:                tmp_idyn=
                   7003:                case $host_cpu in
                   7004:                  ia64*) tmp_idyn=' -i_dynamic';;
                   7005:                esac
                   7006:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   7007:                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
                   7008:                ;;
                   7009:            esac
                   7010:            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   7011:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   7012:            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   7013:            _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
                   7014:            ;;
                   7015:           pgCC* | pgcpp*)
                   7016:             # Portland Group C++ compiler
                   7017:            case `$CC -V` in
                   7018:            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
                   7019:              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
                   7020:                rm -rf $tpldir~
                   7021:                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
                   7022:                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
                   7023:              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
                   7024:                 rm -rf $tpldir~
                   7025:                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
                   7026:                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
                   7027:                 $RANLIB $oldlib'
                   7028:              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
                   7029:                 rm -rf $tpldir~
                   7030:                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
                   7031:                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
                   7032:              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
                   7033:                 rm -rf $tpldir~
                   7034:                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
                   7035:                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
                   7036:              ;;
                   7037:            *) # Version 6 and above use weak symbols
                   7038:              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
                   7039:              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
                   7040:              ;;
                   7041:            esac
                   7042:
                   7043:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
                   7044:            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   7045:            _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'
                   7046:             ;;
                   7047:          cxx*)
                   7048:            # Compaq C++
                   7049:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
                   7050:            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
                   7051:
                   7052:            runpath_var=LD_RUN_PATH
                   7053:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
                   7054:            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   7055:
                   7056:            # Commands to make compiler produce verbose output that lists
                   7057:            # what "hidden" libraries, object files and flags are used when
                   7058:            # linking a shared library.
                   7059:            #
                   7060:            # There doesn't appear to be a way to prevent this compiler from
                   7061:            # explicitly linking system object files so we need to strip them
                   7062:            # from the output so that they don't get included in the library
                   7063:            # dependencies.
                   7064:            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
                   7065:            ;;
                   7066:          xl* | mpixl* | bgxl*)
                   7067:            # IBM XL 8.0 on PPC, with GNU ld
                   7068:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   7069:            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
                   7070:            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
                   7071:            if test yes = "$supports_anon_versioning"; then
                   7072:              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
1.5     ! ohara    7073:                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.4       ohara    7074:                 echo "local: *; };" >> $output_objdir/$libname.ver~
                   7075:                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
                   7076:            fi
                   7077:            ;;
                   7078:          *)
1.5     ! ohara    7079:            case `$CC -V 2>&1 | $SED 5q` in
1.4       ohara    7080:            *Sun\ C*)
                   7081:              # Sun C++ 5.9
                   7082:              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
                   7083:              _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   7084:              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
                   7085:              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   7086:              _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'
                   7087:              _LT_TAGVAR(compiler_needs_object, $1)=yes
                   7088:
                   7089:              # Not sure whether something based on
                   7090:              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
                   7091:              # would be better.
                   7092:              output_verbose_link_cmd='func_echo_all'
                   7093:
                   7094:              # Archives containing C++ object files must be created using
                   7095:              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
                   7096:              # necessary to make sure instantiated templates are included
                   7097:              # in the archive.
                   7098:              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
                   7099:              ;;
                   7100:            esac
                   7101:            ;;
                   7102:        esac
                   7103:        ;;
                   7104:
                   7105:       lynxos*)
                   7106:         # FIXME: insert proper C++ library support
                   7107:        _LT_TAGVAR(ld_shlibs, $1)=no
                   7108:        ;;
                   7109:
                   7110:       m88k*)
                   7111:         # FIXME: insert proper C++ library support
                   7112:         _LT_TAGVAR(ld_shlibs, $1)=no
                   7113:        ;;
                   7114:
                   7115:       mvs*)
                   7116:         case $cc_basename in
                   7117:           cxx*)
                   7118:            # FIXME: insert proper C++ library support
                   7119:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7120:            ;;
                   7121:          *)
                   7122:            # FIXME: insert proper C++ library support
                   7123:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7124:            ;;
                   7125:        esac
                   7126:        ;;
                   7127:
                   7128:       netbsd*)
                   7129:         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
                   7130:          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
                   7131:          wlarc=
                   7132:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   7133:          _LT_TAGVAR(hardcode_direct, $1)=yes
                   7134:          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   7135:        fi
                   7136:        # Workaround some broken pre-1.5 toolchains
                   7137:        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
                   7138:        ;;
                   7139:
                   7140:       *nto* | *qnx*)
                   7141:         _LT_TAGVAR(ld_shlibs, $1)=yes
                   7142:        ;;
                   7143:
                   7144:       openbsd* | bitrig*)
                   7145:        if test -f /usr/libexec/ld.so; then
                   7146:          _LT_TAGVAR(hardcode_direct, $1)=yes
                   7147:          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   7148:          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
                   7149:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
                   7150:          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   7151:          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
                   7152:            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
                   7153:            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
                   7154:            _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
                   7155:          fi
                   7156:          output_verbose_link_cmd=func_echo_all
                   7157:        else
                   7158:          _LT_TAGVAR(ld_shlibs, $1)=no
                   7159:        fi
                   7160:        ;;
                   7161:
                   7162:       osf3* | osf4* | osf5*)
                   7163:         case $cc_basename in
                   7164:           KCC*)
                   7165:            # Kuck and Associates, Inc. (KAI) C++ Compiler
                   7166:
                   7167:            # KCC will only create a shared library if the output file
                   7168:            # ends with ".so" (or ".sl" for HP-UX), so rename the library
                   7169:            # to its proper name (with version) after linking.
                   7170:            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
                   7171:
                   7172:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
                   7173:            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   7174:
                   7175:            # Archives containing C++ object files must be created using
                   7176:            # the KAI C++ compiler.
                   7177:            case $host in
                   7178:              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
                   7179:              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
                   7180:            esac
                   7181:            ;;
                   7182:           RCC*)
                   7183:            # Rational C++ 2.4.1
                   7184:            # FIXME: insert proper C++ library support
                   7185:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7186:            ;;
                   7187:           cxx*)
                   7188:            case $host in
                   7189:              osf3*)
                   7190:                _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
                   7191:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
                   7192:                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   7193:                ;;
                   7194:              *)
                   7195:                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
                   7196:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
                   7197:                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
                   7198:                   echo "-hidden">> $lib.exp~
                   7199:                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
                   7200:                   $RM $lib.exp'
                   7201:                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
                   7202:                ;;
                   7203:            esac
                   7204:
                   7205:            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   7206:
                   7207:            # Commands to make compiler produce verbose output that lists
                   7208:            # what "hidden" libraries, object files and flags are used when
                   7209:            # linking a shared library.
                   7210:            #
                   7211:            # There doesn't appear to be a way to prevent this compiler from
                   7212:            # explicitly linking system object files so we need to strip them
                   7213:            # from the output so that they don't get included in the library
                   7214:            # dependencies.
                   7215:            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
                   7216:            ;;
                   7217:          *)
                   7218:            if test yes,no = "$GXX,$with_gnu_ld"; then
                   7219:              _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
                   7220:              case $host in
                   7221:                osf3*)
                   7222:                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
                   7223:                  ;;
                   7224:                *)
                   7225:                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
                   7226:                  ;;
                   7227:              esac
                   7228:
                   7229:              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
                   7230:              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
                   7231:
                   7232:              # Commands to make compiler produce verbose output that lists
                   7233:              # what "hidden" libraries, object files and flags are used when
                   7234:              # linking a shared library.
                   7235:              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
                   7236:
                   7237:            else
                   7238:              # FIXME: insert proper C++ library support
                   7239:              _LT_TAGVAR(ld_shlibs, $1)=no
                   7240:            fi
                   7241:            ;;
                   7242:         esac
                   7243:         ;;
                   7244:
                   7245:       psos*)
                   7246:         # FIXME: insert proper C++ library support
                   7247:         _LT_TAGVAR(ld_shlibs, $1)=no
                   7248:         ;;
                   7249:
                   7250:       sunos4*)
                   7251:         case $cc_basename in
                   7252:           CC*)
                   7253:            # Sun C++ 4.x
                   7254:            # FIXME: insert proper C++ library support
                   7255:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7256:            ;;
                   7257:           lcc*)
                   7258:            # Lucid
                   7259:            # FIXME: insert proper C++ library support
                   7260:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7261:            ;;
                   7262:           *)
                   7263:            # FIXME: insert proper C++ library support
                   7264:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7265:            ;;
                   7266:         esac
                   7267:         ;;
                   7268:
                   7269:       solaris*)
                   7270:         case $cc_basename in
                   7271:           CC* | sunCC*)
                   7272:            # Sun C++ 4.2, 5.x and Centerline C++
                   7273:             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
                   7274:            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
                   7275:            _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                   7276:            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   7277:               $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
                   7278:
                   7279:            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
                   7280:            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   7281:            case $host_os in
                   7282:              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
                   7283:              *)
                   7284:                # The compiler driver will combine and reorder linker options,
                   7285:                # but understands '-z linker_flag'.
                   7286:                # Supported since Solaris 2.6 (maybe 2.5.1?)
                   7287:                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
                   7288:                ;;
                   7289:            esac
                   7290:            _LT_TAGVAR(link_all_deplibs, $1)=yes
                   7291:
                   7292:            output_verbose_link_cmd='func_echo_all'
                   7293:
                   7294:            # Archives containing C++ object files must be created using
                   7295:            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
                   7296:            # necessary to make sure instantiated templates are included
                   7297:            # in the archive.
                   7298:            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
                   7299:            ;;
                   7300:           gcx*)
                   7301:            # Green Hills C++ Compiler
                   7302:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
                   7303:
                   7304:            # The C++ compiler must be used to create the archive.
                   7305:            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
                   7306:            ;;
                   7307:           *)
                   7308:            # GNU C++ compiler with Solaris linker
                   7309:            if test yes,no = "$GXX,$with_gnu_ld"; then
                   7310:              _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
                   7311:              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
                   7312:                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
                   7313:                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   7314:                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
                   7315:
                   7316:                # Commands to make compiler produce verbose output that lists
                   7317:                # what "hidden" libraries, object files and flags are used when
                   7318:                # linking a shared library.
                   7319:                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
                   7320:              else
                   7321:                # g++ 2.7 appears to require '-G' NOT '-shared' on this
                   7322:                # platform.
                   7323:                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
                   7324:                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                   7325:                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
                   7326:
                   7327:                # Commands to make compiler produce verbose output that lists
                   7328:                # what "hidden" libraries, object files and flags are used when
                   7329:                # linking a shared library.
                   7330:                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
                   7331:              fi
                   7332:
                   7333:              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
                   7334:              case $host_os in
                   7335:                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
                   7336:                *)
                   7337:                  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
                   7338:                  ;;
                   7339:              esac
                   7340:            fi
                   7341:            ;;
                   7342:         esac
                   7343:         ;;
                   7344:
                   7345:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
                   7346:       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
                   7347:       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   7348:       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   7349:       runpath_var='LD_RUN_PATH'
                   7350:
                   7351:       case $cc_basename in
                   7352:         CC*)
                   7353:          _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7354:          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7355:          ;;
                   7356:        *)
                   7357:          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7358:          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7359:          ;;
                   7360:       esac
                   7361:       ;;
                   7362:
                   7363:       sysv5* | sco3.2v5* | sco5v6*)
                   7364:        # Note: We CANNOT use -z defs as we might desire, because we do not
                   7365:        # link with -lc, and that would cause any symbols used from libc to
                   7366:        # always be unresolved, which means just about no library would
                   7367:        # ever link correctly.  If we're not using GNU ld we use -z text
                   7368:        # though, which does catch some bad symbols but isn't as heavy-handed
                   7369:        # as -z defs.
                   7370:        _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
                   7371:        _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
                   7372:        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   7373:        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
                   7374:        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
                   7375:        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
                   7376:        _LT_TAGVAR(link_all_deplibs, $1)=yes
                   7377:        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
                   7378:        runpath_var='LD_RUN_PATH'
                   7379:
                   7380:        case $cc_basename in
                   7381:           CC*)
                   7382:            _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7383:            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7384:            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
                   7385:               '"$_LT_TAGVAR(old_archive_cmds, $1)"
                   7386:            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
                   7387:               '"$_LT_TAGVAR(reload_cmds, $1)"
                   7388:            ;;
                   7389:          *)
                   7390:            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7391:            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   7392:            ;;
                   7393:        esac
                   7394:       ;;
                   7395:
                   7396:       tandem*)
                   7397:         case $cc_basename in
                   7398:           NCC*)
                   7399:            # NonStop-UX NCC 3.20
                   7400:            # FIXME: insert proper C++ library support
                   7401:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7402:            ;;
                   7403:           *)
                   7404:            # FIXME: insert proper C++ library support
                   7405:            _LT_TAGVAR(ld_shlibs, $1)=no
                   7406:            ;;
                   7407:         esac
                   7408:         ;;
                   7409:
                   7410:       vxworks*)
                   7411:         # FIXME: insert proper C++ library support
                   7412:         _LT_TAGVAR(ld_shlibs, $1)=no
                   7413:         ;;
                   7414:
                   7415:       *)
                   7416:         # FIXME: insert proper C++ library support
                   7417:         _LT_TAGVAR(ld_shlibs, $1)=no
                   7418:         ;;
                   7419:     esac
                   7420:
                   7421:     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
                   7422:     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
                   7423:
                   7424:     _LT_TAGVAR(GCC, $1)=$GXX
                   7425:     _LT_TAGVAR(LD, $1)=$LD
                   7426:
                   7427:     ## CAVEAT EMPTOR:
                   7428:     ## There is no encapsulation within the following macros, do not change
                   7429:     ## the running order or otherwise move them around unless you know exactly
                   7430:     ## what you are doing...
                   7431:     _LT_SYS_HIDDEN_LIBDEPS($1)
                   7432:     _LT_COMPILER_PIC($1)
                   7433:     _LT_COMPILER_C_O($1)
                   7434:     _LT_COMPILER_FILE_LOCKS($1)
                   7435:     _LT_LINKER_SHLIBS($1)
                   7436:     _LT_SYS_DYNAMIC_LINKER($1)
                   7437:     _LT_LINKER_HARDCODE_LIBPATH($1)
                   7438:
                   7439:     _LT_CONFIG($1)
                   7440:   fi # test -n "$compiler"
                   7441:
                   7442:   CC=$lt_save_CC
                   7443:   CFLAGS=$lt_save_CFLAGS
                   7444:   LDCXX=$LD
                   7445:   LD=$lt_save_LD
                   7446:   GCC=$lt_save_GCC
                   7447:   with_gnu_ld=$lt_save_with_gnu_ld
                   7448:   lt_cv_path_LDCXX=$lt_cv_path_LD
                   7449:   lt_cv_path_LD=$lt_save_path_LD
                   7450:   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
                   7451:   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
                   7452: fi # test yes != "$_lt_caught_CXX_error"
                   7453:
                   7454: AC_LANG_POP
                   7455: ])# _LT_LANG_CXX_CONFIG
                   7456:
                   7457:
                   7458: # _LT_FUNC_STRIPNAME_CNF
                   7459: # ----------------------
                   7460: # func_stripname_cnf prefix suffix name
                   7461: # strip PREFIX and SUFFIX off of NAME.
                   7462: # PREFIX and SUFFIX must not contain globbing or regex special
                   7463: # characters, hashes, percent signs, but SUFFIX may contain a leading
                   7464: # dot (in which case that matches only a dot).
                   7465: #
                   7466: # This function is identical to the (non-XSI) version of func_stripname,
                   7467: # except this one can be used by m4 code that may be executed by configure,
                   7468: # rather than the libtool script.
                   7469: m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
                   7470: AC_REQUIRE([_LT_DECL_SED])
                   7471: AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
                   7472: func_stripname_cnf ()
                   7473: {
                   7474:   case @S|@2 in
                   7475:   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
                   7476:   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
                   7477:   esac
                   7478: } # func_stripname_cnf
                   7479: ])# _LT_FUNC_STRIPNAME_CNF
                   7480:
                   7481:
                   7482: # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
                   7483: # ---------------------------------
                   7484: # Figure out "hidden" library dependencies from verbose
                   7485: # compiler output when linking a shared library.
                   7486: # Parse the compiler output and extract the necessary
                   7487: # objects, libraries and library flags.
                   7488: m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
                   7489: [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
                   7490: AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
                   7491: # Dependencies to place before and after the object being linked:
                   7492: _LT_TAGVAR(predep_objects, $1)=
                   7493: _LT_TAGVAR(postdep_objects, $1)=
                   7494: _LT_TAGVAR(predeps, $1)=
                   7495: _LT_TAGVAR(postdeps, $1)=
                   7496: _LT_TAGVAR(compiler_lib_search_path, $1)=
                   7497:
                   7498: dnl we can't use the lt_simple_compile_test_code here,
                   7499: dnl because it contains code intended for an executable,
                   7500: dnl not a library.  It's possible we should let each
                   7501: dnl tag define a new lt_????_link_test_code variable,
                   7502: dnl but it's only used here...
                   7503: m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
                   7504: int a;
                   7505: void foo (void) { a = 0; }
                   7506: _LT_EOF
                   7507: ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
                   7508: class Foo
                   7509: {
                   7510: public:
                   7511:   Foo (void) { a = 0; }
                   7512: private:
                   7513:   int a;
                   7514: };
                   7515: _LT_EOF
                   7516: ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
                   7517:       subroutine foo
                   7518:       implicit none
                   7519:       integer*4 a
                   7520:       a=0
                   7521:       return
                   7522:       end
                   7523: _LT_EOF
                   7524: ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
                   7525:       subroutine foo
                   7526:       implicit none
                   7527:       integer a
                   7528:       a=0
                   7529:       return
                   7530:       end
                   7531: _LT_EOF
                   7532: ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
                   7533: public class foo {
                   7534:   private int a;
                   7535:   public void bar (void) {
                   7536:     a = 0;
                   7537:   }
                   7538: };
                   7539: _LT_EOF
                   7540: ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
                   7541: package foo
                   7542: func foo() {
                   7543: }
                   7544: _LT_EOF
                   7545: ])
                   7546:
                   7547: _lt_libdeps_save_CFLAGS=$CFLAGS
                   7548: case "$CC $CFLAGS " in #(
                   7549: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
                   7550: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
                   7551: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
                   7552: esac
                   7553:
                   7554: dnl Parse the compiler output and extract the necessary
                   7555: dnl objects, libraries and library flags.
                   7556: if AC_TRY_EVAL(ac_compile); then
                   7557:   # Parse the compiler output and extract the necessary
                   7558:   # objects, libraries and library flags.
                   7559:
                   7560:   # Sentinel used to keep track of whether or not we are before
                   7561:   # the conftest object file.
                   7562:   pre_test_object_deps_done=no
                   7563:
                   7564:   for p in `eval "$output_verbose_link_cmd"`; do
                   7565:     case $prev$p in
                   7566:
                   7567:     -L* | -R* | -l*)
                   7568:        # Some compilers place space between "-{L,R}" and the path.
                   7569:        # Remove the space.
                   7570:        if test x-L = "$p" ||
                   7571:           test x-R = "$p"; then
                   7572:         prev=$p
                   7573:         continue
                   7574:        fi
                   7575:
                   7576:        # Expand the sysroot to ease extracting the directories later.
                   7577:        if test -z "$prev"; then
                   7578:          case $p in
                   7579:          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
                   7580:          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
                   7581:          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
                   7582:          esac
                   7583:        fi
                   7584:        case $p in
                   7585:        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
                   7586:        esac
                   7587:        if test no = "$pre_test_object_deps_done"; then
                   7588:         case $prev in
                   7589:         -L | -R)
                   7590:           # Internal compiler library paths should come after those
                   7591:           # provided the user.  The postdeps already come after the
                   7592:           # user supplied libs so there is no need to process them.
                   7593:           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
                   7594:             _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
                   7595:           else
                   7596:             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
                   7597:           fi
                   7598:           ;;
                   7599:         # The "-l" case would never come before the object being
                   7600:         # linked, so don't bother handling this case.
                   7601:         esac
                   7602:        else
                   7603:         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
                   7604:           _LT_TAGVAR(postdeps, $1)=$prev$p
                   7605:         else
                   7606:           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
                   7607:         fi
                   7608:        fi
                   7609:        prev=
                   7610:        ;;
                   7611:
                   7612:     *.lto.$objext) ;; # Ignore GCC LTO objects
                   7613:     *.$objext)
                   7614:        # This assumes that the test object file only shows up
                   7615:        # once in the compiler output.
                   7616:        if test "$p" = "conftest.$objext"; then
                   7617:         pre_test_object_deps_done=yes
                   7618:         continue
                   7619:        fi
                   7620:
                   7621:        if test no = "$pre_test_object_deps_done"; then
                   7622:         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
                   7623:           _LT_TAGVAR(predep_objects, $1)=$p
                   7624:         else
                   7625:           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
                   7626:         fi
                   7627:        else
                   7628:         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
                   7629:           _LT_TAGVAR(postdep_objects, $1)=$p
                   7630:         else
                   7631:           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
                   7632:         fi
                   7633:        fi
                   7634:        ;;
                   7635:
                   7636:     *) ;; # Ignore the rest.
                   7637:
                   7638:     esac
                   7639:   done
                   7640:
                   7641:   # Clean up.
                   7642:   rm -f a.out a.exe
                   7643: else
                   7644:   echo "libtool.m4: error: problem compiling $1 test program"
                   7645: fi
                   7646:
                   7647: $RM -f confest.$objext
                   7648: CFLAGS=$_lt_libdeps_save_CFLAGS
                   7649:
                   7650: # PORTME: override above test on systems where it is broken
                   7651: m4_if([$1], [CXX],
                   7652: [case $host_os in
                   7653: interix[[3-9]]*)
                   7654:   # Interix 3.5 installs completely hosed .la files for C++, so rather than
                   7655:   # hack all around it, let's just trust "g++" to DTRT.
                   7656:   _LT_TAGVAR(predep_objects,$1)=
                   7657:   _LT_TAGVAR(postdep_objects,$1)=
                   7658:   _LT_TAGVAR(postdeps,$1)=
                   7659:   ;;
                   7660: esac
                   7661: ])
                   7662:
                   7663: case " $_LT_TAGVAR(postdeps, $1) " in
                   7664: *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
                   7665: esac
                   7666:  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
                   7667: if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
                   7668:  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
                   7669: fi
                   7670: _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
                   7671:     [The directories searched by this compiler when creating a shared library])
                   7672: _LT_TAGDECL([], [predep_objects], [1],
                   7673:     [Dependencies to place before and after the objects being linked to
                   7674:     create a shared library])
                   7675: _LT_TAGDECL([], [postdep_objects], [1])
                   7676: _LT_TAGDECL([], [predeps], [1])
                   7677: _LT_TAGDECL([], [postdeps], [1])
                   7678: _LT_TAGDECL([], [compiler_lib_search_path], [1],
                   7679:     [The library search path used internally by the compiler when linking
                   7680:     a shared library])
                   7681: ])# _LT_SYS_HIDDEN_LIBDEPS
                   7682:
                   7683:
                   7684: # _LT_LANG_F77_CONFIG([TAG])
                   7685: # --------------------------
                   7686: # Ensure that the configuration variables for a Fortran 77 compiler are
                   7687: # suitably defined.  These variables are subsequently used by _LT_CONFIG
                   7688: # to write the compiler configuration to 'libtool'.
                   7689: m4_defun([_LT_LANG_F77_CONFIG],
                   7690: [AC_LANG_PUSH(Fortran 77)
                   7691: if test -z "$F77" || test no = "$F77"; then
                   7692:   _lt_disable_F77=yes
                   7693: fi
                   7694:
                   7695: _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   7696: _LT_TAGVAR(allow_undefined_flag, $1)=
                   7697: _LT_TAGVAR(always_export_symbols, $1)=no
                   7698: _LT_TAGVAR(archive_expsym_cmds, $1)=
                   7699: _LT_TAGVAR(export_dynamic_flag_spec, $1)=
                   7700: _LT_TAGVAR(hardcode_direct, $1)=no
                   7701: _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   7702: _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
                   7703: _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   7704: _LT_TAGVAR(hardcode_minus_L, $1)=no
                   7705: _LT_TAGVAR(hardcode_automatic, $1)=no
                   7706: _LT_TAGVAR(inherit_rpath, $1)=no
                   7707: _LT_TAGVAR(module_cmds, $1)=
                   7708: _LT_TAGVAR(module_expsym_cmds, $1)=
                   7709: _LT_TAGVAR(link_all_deplibs, $1)=unknown
                   7710: _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
                   7711: _LT_TAGVAR(reload_flag, $1)=$reload_flag
                   7712: _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
                   7713: _LT_TAGVAR(no_undefined_flag, $1)=
                   7714: _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   7715: _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
                   7716:
                   7717: # Source file extension for f77 test sources.
                   7718: ac_ext=f
                   7719:
                   7720: # Object file extension for compiled f77 test sources.
                   7721: objext=o
                   7722: _LT_TAGVAR(objext, $1)=$objext
                   7723:
                   7724: # No sense in running all these tests if we already determined that
                   7725: # the F77 compiler isn't working.  Some variables (like enable_shared)
                   7726: # are currently assumed to apply to all compilers on this platform,
                   7727: # and will be corrupted by setting them based on a non-working compiler.
                   7728: if test yes != "$_lt_disable_F77"; then
                   7729:   # Code to be used in simple compile tests
                   7730:   lt_simple_compile_test_code="\
                   7731:       subroutine t
                   7732:       return
                   7733:       end
                   7734: "
                   7735:
                   7736:   # Code to be used in simple link tests
                   7737:   lt_simple_link_test_code="\
                   7738:       program t
                   7739:       end
                   7740: "
                   7741:
                   7742:   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   7743:   _LT_TAG_COMPILER
                   7744:
                   7745:   # save warnings/boilerplate of simple test code
                   7746:   _LT_COMPILER_BOILERPLATE
                   7747:   _LT_LINKER_BOILERPLATE
                   7748:
                   7749:   # Allow CC to be a program name with arguments.
                   7750:   lt_save_CC=$CC
                   7751:   lt_save_GCC=$GCC
                   7752:   lt_save_CFLAGS=$CFLAGS
                   7753:   CC=${F77-"f77"}
                   7754:   CFLAGS=$FFLAGS
                   7755:   compiler=$CC
                   7756:   _LT_TAGVAR(compiler, $1)=$CC
                   7757:   _LT_CC_BASENAME([$compiler])
                   7758:   GCC=$G77
                   7759:   if test -n "$compiler"; then
                   7760:     AC_MSG_CHECKING([if libtool supports shared libraries])
                   7761:     AC_MSG_RESULT([$can_build_shared])
                   7762:
                   7763:     AC_MSG_CHECKING([whether to build shared libraries])
                   7764:     test no = "$can_build_shared" && enable_shared=no
                   7765:
                   7766:     # On AIX, shared libraries and static libraries use the same namespace, and
                   7767:     # are all built from PIC.
                   7768:     case $host_os in
                   7769:       aix3*)
                   7770:         test yes = "$enable_shared" && enable_static=no
                   7771:         if test -n "$RANLIB"; then
                   7772:           archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   7773:           postinstall_cmds='$RANLIB $lib'
                   7774:         fi
                   7775:         ;;
                   7776:       aix[[4-9]]*)
                   7777:        if test ia64 != "$host_cpu"; then
                   7778:          case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
                   7779:          yes,aix,yes) ;;               # shared object as lib.so file only
                   7780:          yes,svr4,*) ;;                # shared object as lib.so archive member only
                   7781:          yes,*) enable_static=no ;;    # shared object in lib.a archive as well
                   7782:          esac
                   7783:        fi
                   7784:         ;;
                   7785:     esac
                   7786:     AC_MSG_RESULT([$enable_shared])
                   7787:
                   7788:     AC_MSG_CHECKING([whether to build static libraries])
                   7789:     # Make sure either enable_shared or enable_static is yes.
                   7790:     test yes = "$enable_shared" || enable_static=yes
                   7791:     AC_MSG_RESULT([$enable_static])
                   7792:
                   7793:     _LT_TAGVAR(GCC, $1)=$G77
                   7794:     _LT_TAGVAR(LD, $1)=$LD
                   7795:
                   7796:     ## CAVEAT EMPTOR:
                   7797:     ## There is no encapsulation within the following macros, do not change
                   7798:     ## the running order or otherwise move them around unless you know exactly
                   7799:     ## what you are doing...
                   7800:     _LT_COMPILER_PIC($1)
                   7801:     _LT_COMPILER_C_O($1)
                   7802:     _LT_COMPILER_FILE_LOCKS($1)
                   7803:     _LT_LINKER_SHLIBS($1)
                   7804:     _LT_SYS_DYNAMIC_LINKER($1)
                   7805:     _LT_LINKER_HARDCODE_LIBPATH($1)
                   7806:
                   7807:     _LT_CONFIG($1)
                   7808:   fi # test -n "$compiler"
                   7809:
                   7810:   GCC=$lt_save_GCC
                   7811:   CC=$lt_save_CC
                   7812:   CFLAGS=$lt_save_CFLAGS
                   7813: fi # test yes != "$_lt_disable_F77"
                   7814:
                   7815: AC_LANG_POP
                   7816: ])# _LT_LANG_F77_CONFIG
                   7817:
                   7818:
                   7819: # _LT_LANG_FC_CONFIG([TAG])
                   7820: # -------------------------
                   7821: # Ensure that the configuration variables for a Fortran compiler are
                   7822: # suitably defined.  These variables are subsequently used by _LT_CONFIG
                   7823: # to write the compiler configuration to 'libtool'.
                   7824: m4_defun([_LT_LANG_FC_CONFIG],
                   7825: [AC_LANG_PUSH(Fortran)
                   7826:
                   7827: if test -z "$FC" || test no = "$FC"; then
                   7828:   _lt_disable_FC=yes
                   7829: fi
                   7830:
                   7831: _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   7832: _LT_TAGVAR(allow_undefined_flag, $1)=
                   7833: _LT_TAGVAR(always_export_symbols, $1)=no
                   7834: _LT_TAGVAR(archive_expsym_cmds, $1)=
                   7835: _LT_TAGVAR(export_dynamic_flag_spec, $1)=
                   7836: _LT_TAGVAR(hardcode_direct, $1)=no
                   7837: _LT_TAGVAR(hardcode_direct_absolute, $1)=no
                   7838: _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
                   7839: _LT_TAGVAR(hardcode_libdir_separator, $1)=
                   7840: _LT_TAGVAR(hardcode_minus_L, $1)=no
                   7841: _LT_TAGVAR(hardcode_automatic, $1)=no
                   7842: _LT_TAGVAR(inherit_rpath, $1)=no
                   7843: _LT_TAGVAR(module_cmds, $1)=
                   7844: _LT_TAGVAR(module_expsym_cmds, $1)=
                   7845: _LT_TAGVAR(link_all_deplibs, $1)=unknown
                   7846: _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
                   7847: _LT_TAGVAR(reload_flag, $1)=$reload_flag
                   7848: _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
                   7849: _LT_TAGVAR(no_undefined_flag, $1)=
                   7850: _LT_TAGVAR(whole_archive_flag_spec, $1)=
                   7851: _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
                   7852:
                   7853: # Source file extension for fc test sources.
                   7854: ac_ext=${ac_fc_srcext-f}
                   7855:
                   7856: # Object file extension for compiled fc test sources.
                   7857: objext=o
                   7858: _LT_TAGVAR(objext, $1)=$objext
                   7859:
                   7860: # No sense in running all these tests if we already determined that
                   7861: # the FC compiler isn't working.  Some variables (like enable_shared)
                   7862: # are currently assumed to apply to all compilers on this platform,
                   7863: # and will be corrupted by setting them based on a non-working compiler.
                   7864: if test yes != "$_lt_disable_FC"; then
                   7865:   # Code to be used in simple compile tests
                   7866:   lt_simple_compile_test_code="\
                   7867:       subroutine t
                   7868:       return
                   7869:       end
                   7870: "
                   7871:
                   7872:   # Code to be used in simple link tests
                   7873:   lt_simple_link_test_code="\
                   7874:       program t
                   7875:       end
                   7876: "
                   7877:
                   7878:   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   7879:   _LT_TAG_COMPILER
                   7880:
                   7881:   # save warnings/boilerplate of simple test code
                   7882:   _LT_COMPILER_BOILERPLATE
                   7883:   _LT_LINKER_BOILERPLATE
                   7884:
                   7885:   # Allow CC to be a program name with arguments.
                   7886:   lt_save_CC=$CC
                   7887:   lt_save_GCC=$GCC
                   7888:   lt_save_CFLAGS=$CFLAGS
                   7889:   CC=${FC-"f95"}
                   7890:   CFLAGS=$FCFLAGS
                   7891:   compiler=$CC
                   7892:   GCC=$ac_cv_fc_compiler_gnu
                   7893:
                   7894:   _LT_TAGVAR(compiler, $1)=$CC
                   7895:   _LT_CC_BASENAME([$compiler])
                   7896:
                   7897:   if test -n "$compiler"; then
                   7898:     AC_MSG_CHECKING([if libtool supports shared libraries])
                   7899:     AC_MSG_RESULT([$can_build_shared])
                   7900:
                   7901:     AC_MSG_CHECKING([whether to build shared libraries])
                   7902:     test no = "$can_build_shared" && enable_shared=no
                   7903:
                   7904:     # On AIX, shared libraries and static libraries use the same namespace, and
                   7905:     # are all built from PIC.
                   7906:     case $host_os in
                   7907:       aix3*)
                   7908:         test yes = "$enable_shared" && enable_static=no
                   7909:         if test -n "$RANLIB"; then
                   7910:           archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   7911:           postinstall_cmds='$RANLIB $lib'
                   7912:         fi
                   7913:         ;;
                   7914:       aix[[4-9]]*)
                   7915:        if test ia64 != "$host_cpu"; then
                   7916:          case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
                   7917:          yes,aix,yes) ;;               # shared object as lib.so file only
                   7918:          yes,svr4,*) ;;                # shared object as lib.so archive member only
                   7919:          yes,*) enable_static=no ;;    # shared object in lib.a archive as well
                   7920:          esac
                   7921:        fi
                   7922:         ;;
                   7923:     esac
                   7924:     AC_MSG_RESULT([$enable_shared])
                   7925:
                   7926:     AC_MSG_CHECKING([whether to build static libraries])
                   7927:     # Make sure either enable_shared or enable_static is yes.
                   7928:     test yes = "$enable_shared" || enable_static=yes
                   7929:     AC_MSG_RESULT([$enable_static])
                   7930:
                   7931:     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
                   7932:     _LT_TAGVAR(LD, $1)=$LD
                   7933:
                   7934:     ## CAVEAT EMPTOR:
                   7935:     ## There is no encapsulation within the following macros, do not change
                   7936:     ## the running order or otherwise move them around unless you know exactly
                   7937:     ## what you are doing...
                   7938:     _LT_SYS_HIDDEN_LIBDEPS($1)
                   7939:     _LT_COMPILER_PIC($1)
                   7940:     _LT_COMPILER_C_O($1)
                   7941:     _LT_COMPILER_FILE_LOCKS($1)
                   7942:     _LT_LINKER_SHLIBS($1)
                   7943:     _LT_SYS_DYNAMIC_LINKER($1)
                   7944:     _LT_LINKER_HARDCODE_LIBPATH($1)
                   7945:
                   7946:     _LT_CONFIG($1)
                   7947:   fi # test -n "$compiler"
                   7948:
                   7949:   GCC=$lt_save_GCC
                   7950:   CC=$lt_save_CC
                   7951:   CFLAGS=$lt_save_CFLAGS
                   7952: fi # test yes != "$_lt_disable_FC"
                   7953:
                   7954: AC_LANG_POP
                   7955: ])# _LT_LANG_FC_CONFIG
                   7956:
                   7957:
                   7958: # _LT_LANG_GCJ_CONFIG([TAG])
                   7959: # --------------------------
                   7960: # Ensure that the configuration variables for the GNU Java Compiler compiler
                   7961: # are suitably defined.  These variables are subsequently used by _LT_CONFIG
                   7962: # to write the compiler configuration to 'libtool'.
                   7963: m4_defun([_LT_LANG_GCJ_CONFIG],
                   7964: [AC_REQUIRE([LT_PROG_GCJ])dnl
                   7965: AC_LANG_SAVE
                   7966:
                   7967: # Source file extension for Java test sources.
                   7968: ac_ext=java
                   7969:
                   7970: # Object file extension for compiled Java test sources.
                   7971: objext=o
                   7972: _LT_TAGVAR(objext, $1)=$objext
                   7973:
                   7974: # Code to be used in simple compile tests
                   7975: lt_simple_compile_test_code="class foo {}"
                   7976:
                   7977: # Code to be used in simple link tests
                   7978: lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
                   7979:
                   7980: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   7981: _LT_TAG_COMPILER
                   7982:
                   7983: # save warnings/boilerplate of simple test code
                   7984: _LT_COMPILER_BOILERPLATE
                   7985: _LT_LINKER_BOILERPLATE
                   7986:
                   7987: # Allow CC to be a program name with arguments.
                   7988: lt_save_CC=$CC
                   7989: lt_save_CFLAGS=$CFLAGS
                   7990: lt_save_GCC=$GCC
                   7991: GCC=yes
                   7992: CC=${GCJ-"gcj"}
                   7993: CFLAGS=$GCJFLAGS
                   7994: compiler=$CC
                   7995: _LT_TAGVAR(compiler, $1)=$CC
                   7996: _LT_TAGVAR(LD, $1)=$LD
                   7997: _LT_CC_BASENAME([$compiler])
                   7998:
                   7999: # GCJ did not exist at the time GCC didn't implicitly link libc in.
                   8000: _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   8001:
                   8002: _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
                   8003: _LT_TAGVAR(reload_flag, $1)=$reload_flag
                   8004: _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
                   8005:
                   8006: if test -n "$compiler"; then
                   8007:   _LT_COMPILER_NO_RTTI($1)
                   8008:   _LT_COMPILER_PIC($1)
                   8009:   _LT_COMPILER_C_O($1)
                   8010:   _LT_COMPILER_FILE_LOCKS($1)
                   8011:   _LT_LINKER_SHLIBS($1)
                   8012:   _LT_LINKER_HARDCODE_LIBPATH($1)
                   8013:
                   8014:   _LT_CONFIG($1)
                   8015: fi
                   8016:
                   8017: AC_LANG_RESTORE
                   8018:
                   8019: GCC=$lt_save_GCC
                   8020: CC=$lt_save_CC
                   8021: CFLAGS=$lt_save_CFLAGS
                   8022: ])# _LT_LANG_GCJ_CONFIG
                   8023:
                   8024:
                   8025: # _LT_LANG_GO_CONFIG([TAG])
                   8026: # --------------------------
                   8027: # Ensure that the configuration variables for the GNU Go compiler
                   8028: # are suitably defined.  These variables are subsequently used by _LT_CONFIG
                   8029: # to write the compiler configuration to 'libtool'.
                   8030: m4_defun([_LT_LANG_GO_CONFIG],
                   8031: [AC_REQUIRE([LT_PROG_GO])dnl
                   8032: AC_LANG_SAVE
                   8033:
                   8034: # Source file extension for Go test sources.
                   8035: ac_ext=go
                   8036:
                   8037: # Object file extension for compiled Go test sources.
                   8038: objext=o
                   8039: _LT_TAGVAR(objext, $1)=$objext
                   8040:
                   8041: # Code to be used in simple compile tests
                   8042: lt_simple_compile_test_code="package main; func main() { }"
                   8043:
                   8044: # Code to be used in simple link tests
                   8045: lt_simple_link_test_code='package main; func main() { }'
                   8046:
                   8047: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   8048: _LT_TAG_COMPILER
                   8049:
                   8050: # save warnings/boilerplate of simple test code
                   8051: _LT_COMPILER_BOILERPLATE
                   8052: _LT_LINKER_BOILERPLATE
                   8053:
                   8054: # Allow CC to be a program name with arguments.
                   8055: lt_save_CC=$CC
                   8056: lt_save_CFLAGS=$CFLAGS
                   8057: lt_save_GCC=$GCC
                   8058: GCC=yes
                   8059: CC=${GOC-"gccgo"}
                   8060: CFLAGS=$GOFLAGS
                   8061: compiler=$CC
                   8062: _LT_TAGVAR(compiler, $1)=$CC
                   8063: _LT_TAGVAR(LD, $1)=$LD
                   8064: _LT_CC_BASENAME([$compiler])
                   8065:
                   8066: # Go did not exist at the time GCC didn't implicitly link libc in.
                   8067: _LT_TAGVAR(archive_cmds_need_lc, $1)=no
                   8068:
                   8069: _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
                   8070: _LT_TAGVAR(reload_flag, $1)=$reload_flag
                   8071: _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
                   8072:
                   8073: if test -n "$compiler"; then
                   8074:   _LT_COMPILER_NO_RTTI($1)
                   8075:   _LT_COMPILER_PIC($1)
                   8076:   _LT_COMPILER_C_O($1)
                   8077:   _LT_COMPILER_FILE_LOCKS($1)
                   8078:   _LT_LINKER_SHLIBS($1)
                   8079:   _LT_LINKER_HARDCODE_LIBPATH($1)
                   8080:
                   8081:   _LT_CONFIG($1)
                   8082: fi
                   8083:
                   8084: AC_LANG_RESTORE
                   8085:
                   8086: GCC=$lt_save_GCC
                   8087: CC=$lt_save_CC
                   8088: CFLAGS=$lt_save_CFLAGS
                   8089: ])# _LT_LANG_GO_CONFIG
                   8090:
                   8091:
                   8092: # _LT_LANG_RC_CONFIG([TAG])
                   8093: # -------------------------
                   8094: # Ensure that the configuration variables for the Windows resource compiler
                   8095: # are suitably defined.  These variables are subsequently used by _LT_CONFIG
                   8096: # to write the compiler configuration to 'libtool'.
                   8097: m4_defun([_LT_LANG_RC_CONFIG],
                   8098: [AC_REQUIRE([LT_PROG_RC])dnl
                   8099: AC_LANG_SAVE
                   8100:
                   8101: # Source file extension for RC test sources.
                   8102: ac_ext=rc
                   8103:
                   8104: # Object file extension for compiled RC test sources.
                   8105: objext=o
                   8106: _LT_TAGVAR(objext, $1)=$objext
                   8107:
                   8108: # Code to be used in simple compile tests
                   8109: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
                   8110:
                   8111: # Code to be used in simple link tests
                   8112: lt_simple_link_test_code=$lt_simple_compile_test_code
                   8113:
                   8114: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
                   8115: _LT_TAG_COMPILER
                   8116:
                   8117: # save warnings/boilerplate of simple test code
                   8118: _LT_COMPILER_BOILERPLATE
                   8119: _LT_LINKER_BOILERPLATE
                   8120:
                   8121: # Allow CC to be a program name with arguments.
                   8122: lt_save_CC=$CC
                   8123: lt_save_CFLAGS=$CFLAGS
                   8124: lt_save_GCC=$GCC
                   8125: GCC=
                   8126: CC=${RC-"windres"}
                   8127: CFLAGS=
                   8128: compiler=$CC
                   8129: _LT_TAGVAR(compiler, $1)=$CC
                   8130: _LT_CC_BASENAME([$compiler])
                   8131: _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
                   8132:
                   8133: if test -n "$compiler"; then
                   8134:   :
                   8135:   _LT_CONFIG($1)
                   8136: fi
                   8137:
                   8138: GCC=$lt_save_GCC
                   8139: AC_LANG_RESTORE
                   8140: CC=$lt_save_CC
                   8141: CFLAGS=$lt_save_CFLAGS
                   8142: ])# _LT_LANG_RC_CONFIG
                   8143:
                   8144:
                   8145: # LT_PROG_GCJ
                   8146: # -----------
                   8147: AC_DEFUN([LT_PROG_GCJ],
                   8148: [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
                   8149:   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
                   8150:     [AC_CHECK_TOOL(GCJ, gcj,)
                   8151:       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
                   8152:       AC_SUBST(GCJFLAGS)])])[]dnl
                   8153: ])
                   8154:
                   8155: # Old name:
                   8156: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
                   8157: dnl aclocal-1.4 backwards compatibility:
                   8158: dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
                   8159:
                   8160:
                   8161: # LT_PROG_GO
                   8162: # ----------
                   8163: AC_DEFUN([LT_PROG_GO],
                   8164: [AC_CHECK_TOOL(GOC, gccgo,)
                   8165: ])
                   8166:
                   8167:
                   8168: # LT_PROG_RC
                   8169: # ----------
                   8170: AC_DEFUN([LT_PROG_RC],
                   8171: [AC_CHECK_TOOL(RC, windres,)
                   8172: ])
                   8173:
                   8174: # Old name:
                   8175: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
                   8176: dnl aclocal-1.4 backwards compatibility:
                   8177: dnl AC_DEFUN([LT_AC_PROG_RC], [])
                   8178:
                   8179:
                   8180: # _LT_DECL_EGREP
                   8181: # --------------
                   8182: # If we don't have a new enough Autoconf to choose the best grep
                   8183: # available, choose the one first in the user's PATH.
                   8184: m4_defun([_LT_DECL_EGREP],
                   8185: [AC_REQUIRE([AC_PROG_EGREP])dnl
                   8186: AC_REQUIRE([AC_PROG_FGREP])dnl
                   8187: test -z "$GREP" && GREP=grep
                   8188: _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
                   8189: _LT_DECL([], [EGREP], [1], [An ERE matcher])
                   8190: _LT_DECL([], [FGREP], [1], [A literal string matcher])
                   8191: dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
                   8192: AC_SUBST([GREP])
                   8193: ])
                   8194:
                   8195:
                   8196: # _LT_DECL_OBJDUMP
                   8197: # --------------
                   8198: # If we don't have a new enough Autoconf to choose the best objdump
                   8199: # available, choose the one first in the user's PATH.
                   8200: m4_defun([_LT_DECL_OBJDUMP],
                   8201: [AC_CHECK_TOOL(OBJDUMP, objdump, false)
                   8202: test -z "$OBJDUMP" && OBJDUMP=objdump
                   8203: _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
                   8204: AC_SUBST([OBJDUMP])
                   8205: ])
                   8206:
                   8207: # _LT_DECL_DLLTOOL
                   8208: # ----------------
                   8209: # Ensure DLLTOOL variable is set.
                   8210: m4_defun([_LT_DECL_DLLTOOL],
                   8211: [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
                   8212: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   8213: _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
                   8214: AC_SUBST([DLLTOOL])
                   8215: ])
                   8216:
1.5     ! ohara    8217: # _LT_DECL_FILECMD
        !          8218: # ----------------
        !          8219: # Check for a file(cmd) program that can be used to detect file type and magic
        !          8220: m4_defun([_LT_DECL_FILECMD],
        !          8221: [AC_CHECK_TOOL([FILECMD], [file], [:])
        !          8222: _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
        !          8223: ])# _LD_DECL_FILECMD
        !          8224:
1.4       ohara    8225: # _LT_DECL_SED
                   8226: # ------------
                   8227: # Check for a fully-functional sed program, that truncates
                   8228: # as few characters as possible.  Prefer GNU sed if found.
                   8229: m4_defun([_LT_DECL_SED],
                   8230: [AC_PROG_SED
                   8231: test -z "$SED" && SED=sed
                   8232: Xsed="$SED -e 1s/^X//"
                   8233: _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
                   8234: _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
                   8235:     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
                   8236: ])# _LT_DECL_SED
                   8237:
                   8238: m4_ifndef([AC_PROG_SED], [
                   8239: # NOTE: This macro has been submitted for inclusion into   #
                   8240: #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
                   8241: #  a released version of Autoconf we should remove this    #
                   8242: #  macro and use it instead.                               #
                   8243:
                   8244: m4_defun([AC_PROG_SED],
                   8245: [AC_MSG_CHECKING([for a sed that does not truncate output])
                   8246: AC_CACHE_VAL(lt_cv_path_SED,
                   8247: [# Loop through the user's path and test for sed and gsed.
                   8248: # Then use that list of sed's as ones to test for truncation.
                   8249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8250: for as_dir in $PATH
                   8251: do
                   8252:   IFS=$as_save_IFS
                   8253:   test -z "$as_dir" && as_dir=.
                   8254:   for lt_ac_prog in sed gsed; do
                   8255:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8256:       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
                   8257:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   8258:       fi
                   8259:     done
                   8260:   done
                   8261: done
                   8262: IFS=$as_save_IFS
                   8263: lt_ac_max=0
                   8264: lt_ac_count=0
                   8265: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   8266: # along with /bin/sed that truncates output.
                   8267: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
                   8268:   test ! -f "$lt_ac_sed" && continue
                   8269:   cat /dev/null > conftest.in
                   8270:   lt_ac_count=0
                   8271:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
                   8272:   # Check for GNU sed and select it if it is found.
                   8273:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   8274:     lt_cv_path_SED=$lt_ac_sed
                   8275:     break
                   8276:   fi
                   8277:   while true; do
                   8278:     cat conftest.in conftest.in >conftest.tmp
                   8279:     mv conftest.tmp conftest.in
                   8280:     cp conftest.in conftest.nl
                   8281:     echo >>conftest.nl
                   8282:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   8283:     cmp -s conftest.out conftest.nl || break
                   8284:     # 10000 chars as input seems more than enough
                   8285:     test 10 -lt "$lt_ac_count" && break
                   8286:     lt_ac_count=`expr $lt_ac_count + 1`
                   8287:     if test "$lt_ac_count" -gt "$lt_ac_max"; then
                   8288:       lt_ac_max=$lt_ac_count
                   8289:       lt_cv_path_SED=$lt_ac_sed
                   8290:     fi
                   8291:   done
                   8292: done
                   8293: ])
                   8294: SED=$lt_cv_path_SED
                   8295: AC_SUBST([SED])
                   8296: AC_MSG_RESULT([$SED])
                   8297: ])#AC_PROG_SED
                   8298: ])#m4_ifndef
                   8299:
                   8300: # Old name:
                   8301: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
                   8302: dnl aclocal-1.4 backwards compatibility:
                   8303: dnl AC_DEFUN([LT_AC_PROG_SED], [])
                   8304:
                   8305:
                   8306: # _LT_CHECK_SHELL_FEATURES
                   8307: # ------------------------
                   8308: # Find out whether the shell is Bourne or XSI compatible,
                   8309: # or has some other useful features.
                   8310: m4_defun([_LT_CHECK_SHELL_FEATURES],
                   8311: [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   8312:   lt_unset=unset
                   8313: else
                   8314:   lt_unset=false
                   8315: fi
                   8316: _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
                   8317:
                   8318: # test EBCDIC or ASCII
                   8319: case `echo X|tr X '\101'` in
                   8320:  A) # ASCII based system
                   8321:     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
                   8322:   lt_SP2NL='tr \040 \012'
                   8323:   lt_NL2SP='tr \015\012 \040\040'
                   8324:   ;;
                   8325:  *) # EBCDIC based system
                   8326:   lt_SP2NL='tr \100 \n'
                   8327:   lt_NL2SP='tr \r\n \100\100'
                   8328:   ;;
                   8329: esac
                   8330: _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
                   8331: _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
                   8332: ])# _LT_CHECK_SHELL_FEATURES
                   8333:
                   8334:
                   8335: # _LT_PATH_CONVERSION_FUNCTIONS
                   8336: # -----------------------------
                   8337: # Determine what file name conversion functions should be used by
                   8338: # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
                   8339: # for certain cross-compile configurations and native mingw.
                   8340: m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
                   8341: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   8342: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
                   8343: AC_MSG_CHECKING([how to convert $build file names to $host format])
                   8344: AC_CACHE_VAL(lt_cv_to_host_file_cmd,
                   8345: [case $host in
                   8346:   *-*-mingw* )
                   8347:     case $build in
                   8348:       *-*-mingw* ) # actually msys
                   8349:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
                   8350:         ;;
                   8351:       *-*-cygwin* )
                   8352:         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
                   8353:         ;;
                   8354:       * ) # otherwise, assume *nix
                   8355:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
                   8356:         ;;
                   8357:     esac
                   8358:     ;;
                   8359:   *-*-cygwin* )
                   8360:     case $build in
                   8361:       *-*-mingw* ) # actually msys
                   8362:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
                   8363:         ;;
                   8364:       *-*-cygwin* )
                   8365:         lt_cv_to_host_file_cmd=func_convert_file_noop
                   8366:         ;;
                   8367:       * ) # otherwise, assume *nix
                   8368:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
                   8369:         ;;
                   8370:     esac
                   8371:     ;;
                   8372:   * ) # unhandled hosts (and "normal" native builds)
                   8373:     lt_cv_to_host_file_cmd=func_convert_file_noop
                   8374:     ;;
                   8375: esac
                   8376: ])
                   8377: to_host_file_cmd=$lt_cv_to_host_file_cmd
                   8378: AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
                   8379: _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
                   8380:          [0], [convert $build file names to $host format])dnl
                   8381:
                   8382: AC_MSG_CHECKING([how to convert $build file names to toolchain format])
                   8383: AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
                   8384: [#assume ordinary cross tools, or native build.
                   8385: lt_cv_to_tool_file_cmd=func_convert_file_noop
                   8386: case $host in
                   8387:   *-*-mingw* )
                   8388:     case $build in
                   8389:       *-*-mingw* ) # actually msys
                   8390:         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
                   8391:         ;;
                   8392:     esac
                   8393:     ;;
                   8394: esac
                   8395: ])
                   8396: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
                   8397: AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
                   8398: _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
                   8399:          [0], [convert $build files to toolchain format])dnl
                   8400: ])# _LT_PATH_CONVERSION_FUNCTIONS
                   8401:
                   8402: # Helper functions for option handling.                    -*- Autoconf -*-
                   8403: #
1.5     ! ohara    8404: #   Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
        !          8405: #   Software Foundation, Inc.
1.4       ohara    8406: #   Written by Gary V. Vaughan, 2004
                   8407: #
                   8408: # This file is free software; the Free Software Foundation gives
                   8409: # unlimited permission to copy and/or distribute it, with or without
                   8410: # modifications, as long as this notice is preserved.
                   8411:
                   8412: # serial 8 ltoptions.m4
                   8413:
                   8414: # This is to help aclocal find these macros, as it can't see m4_define.
                   8415: AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
                   8416:
                   8417:
                   8418: # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
                   8419: # ------------------------------------------
                   8420: m4_define([_LT_MANGLE_OPTION],
                   8421: [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
                   8422:
                   8423:
                   8424: # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
                   8425: # ---------------------------------------
                   8426: # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
                   8427: # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
                   8428: # saved as a flag.
                   8429: m4_define([_LT_SET_OPTION],
                   8430: [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
                   8431: m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
                   8432:         _LT_MANGLE_DEFUN([$1], [$2]),
                   8433:     [m4_warning([Unknown $1 option '$2'])])[]dnl
                   8434: ])
                   8435:
                   8436:
                   8437: # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
                   8438: # ------------------------------------------------------------
                   8439: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
                   8440: m4_define([_LT_IF_OPTION],
                   8441: [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
                   8442:
                   8443:
                   8444: # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
                   8445: # -------------------------------------------------------
                   8446: # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
                   8447: # are set.
                   8448: m4_define([_LT_UNLESS_OPTIONS],
                   8449: [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
                   8450:            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
                   8451:                      [m4_define([$0_found])])])[]dnl
                   8452: m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
                   8453: ])[]dnl
                   8454: ])
                   8455:
                   8456:
                   8457: # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
                   8458: # ----------------------------------------
                   8459: # OPTION-LIST is a space-separated list of Libtool options associated
                   8460: # with MACRO-NAME.  If any OPTION has a matching handler declared with
                   8461: # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
                   8462: # the unknown option and exit.
                   8463: m4_defun([_LT_SET_OPTIONS],
                   8464: [# Set options
                   8465: m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
                   8466:     [_LT_SET_OPTION([$1], _LT_Option)])
                   8467:
                   8468: m4_if([$1],[LT_INIT],[
                   8469:   dnl
                   8470:   dnl Simply set some default values (i.e off) if boolean options were not
                   8471:   dnl specified:
                   8472:   _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
                   8473:   ])
                   8474:   _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
                   8475:   ])
                   8476:   dnl
                   8477:   dnl If no reference was made to various pairs of opposing options, then
                   8478:   dnl we run the default mode handler for the pair.  For example, if neither
                   8479:   dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
                   8480:   dnl archives by default:
                   8481:   _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
                   8482:   _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
                   8483:   _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
                   8484:   _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
                   8485:                   [_LT_ENABLE_FAST_INSTALL])
                   8486:   _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
                   8487:                   [_LT_WITH_AIX_SONAME([aix])])
                   8488:   ])
                   8489: ])# _LT_SET_OPTIONS
                   8490:
                   8491:
                   8492:
                   8493: # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
                   8494: # -----------------------------------------
                   8495: m4_define([_LT_MANGLE_DEFUN],
                   8496: [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
                   8497:
                   8498:
                   8499: # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
                   8500: # -----------------------------------------------
                   8501: m4_define([LT_OPTION_DEFINE],
                   8502: [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
                   8503: ])# LT_OPTION_DEFINE
                   8504:
                   8505:
                   8506: # dlopen
                   8507: # ------
                   8508: LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
                   8509: ])
                   8510:
                   8511: AU_DEFUN([AC_LIBTOOL_DLOPEN],
                   8512: [_LT_SET_OPTION([LT_INIT], [dlopen])
                   8513: AC_DIAGNOSE([obsolete],
                   8514: [$0: Remove this warning and the call to _LT_SET_OPTION when you
                   8515: put the 'dlopen' option into LT_INIT's first parameter.])
                   8516: ])
                   8517:
                   8518: dnl aclocal-1.4 backwards compatibility:
                   8519: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
                   8520:
                   8521:
                   8522: # win32-dll
                   8523: # ---------
                   8524: # Declare package support for building win32 dll's.
                   8525: LT_OPTION_DEFINE([LT_INIT], [win32-dll],
                   8526: [enable_win32_dll=yes
                   8527:
                   8528: case $host in
                   8529: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
                   8530:   AC_CHECK_TOOL(AS, as, false)
                   8531:   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
                   8532:   AC_CHECK_TOOL(OBJDUMP, objdump, false)
                   8533:   ;;
                   8534: esac
                   8535:
                   8536: test -z "$AS" && AS=as
                   8537: _LT_DECL([], [AS],      [1], [Assembler program])dnl
                   8538:
                   8539: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   8540: _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
                   8541:
                   8542: test -z "$OBJDUMP" && OBJDUMP=objdump
                   8543: _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
                   8544: ])# win32-dll
                   8545:
                   8546: AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
                   8547: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                   8548: _LT_SET_OPTION([LT_INIT], [win32-dll])
                   8549: AC_DIAGNOSE([obsolete],
                   8550: [$0: Remove this warning and the call to _LT_SET_OPTION when you
                   8551: put the 'win32-dll' option into LT_INIT's first parameter.])
                   8552: ])
                   8553:
                   8554: dnl aclocal-1.4 backwards compatibility:
                   8555: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
                   8556:
                   8557:
                   8558: # _LT_ENABLE_SHARED([DEFAULT])
                   8559: # ----------------------------
                   8560: # implement the --enable-shared flag, and supports the 'shared' and
                   8561: # 'disable-shared' LT_INIT options.
                   8562: # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
                   8563: m4_define([_LT_ENABLE_SHARED],
                   8564: [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
                   8565: AC_ARG_ENABLE([shared],
                   8566:     [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
                   8567:        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
                   8568:     [p=${PACKAGE-default}
                   8569:     case $enableval in
                   8570:     yes) enable_shared=yes ;;
                   8571:     no) enable_shared=no ;;
                   8572:     *)
                   8573:       enable_shared=no
                   8574:       # Look at the argument we got.  We use all the common list separators.
                   8575:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
                   8576:       for pkg in $enableval; do
                   8577:        IFS=$lt_save_ifs
                   8578:        if test "X$pkg" = "X$p"; then
                   8579:          enable_shared=yes
                   8580:        fi
                   8581:       done
                   8582:       IFS=$lt_save_ifs
                   8583:       ;;
                   8584:     esac],
                   8585:     [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
                   8586:
                   8587:     _LT_DECL([build_libtool_libs], [enable_shared], [0],
                   8588:        [Whether or not to build shared libraries])
                   8589: ])# _LT_ENABLE_SHARED
                   8590:
                   8591: LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
                   8592: LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
                   8593:
                   8594: # Old names:
                   8595: AC_DEFUN([AC_ENABLE_SHARED],
                   8596: [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
                   8597: ])
                   8598:
                   8599: AC_DEFUN([AC_DISABLE_SHARED],
                   8600: [_LT_SET_OPTION([LT_INIT], [disable-shared])
                   8601: ])
                   8602:
                   8603: AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
                   8604: AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
                   8605:
                   8606: dnl aclocal-1.4 backwards compatibility:
                   8607: dnl AC_DEFUN([AM_ENABLE_SHARED], [])
                   8608: dnl AC_DEFUN([AM_DISABLE_SHARED], [])
                   8609:
                   8610:
                   8611:
                   8612: # _LT_ENABLE_STATIC([DEFAULT])
                   8613: # ----------------------------
                   8614: # implement the --enable-static flag, and support the 'static' and
                   8615: # 'disable-static' LT_INIT options.
                   8616: # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
                   8617: m4_define([_LT_ENABLE_STATIC],
                   8618: [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
                   8619: AC_ARG_ENABLE([static],
                   8620:     [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
                   8621:        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
                   8622:     [p=${PACKAGE-default}
                   8623:     case $enableval in
                   8624:     yes) enable_static=yes ;;
                   8625:     no) enable_static=no ;;
                   8626:     *)
                   8627:      enable_static=no
                   8628:       # Look at the argument we got.  We use all the common list separators.
                   8629:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
                   8630:       for pkg in $enableval; do
                   8631:        IFS=$lt_save_ifs
                   8632:        if test "X$pkg" = "X$p"; then
                   8633:          enable_static=yes
                   8634:        fi
                   8635:       done
                   8636:       IFS=$lt_save_ifs
                   8637:       ;;
                   8638:     esac],
                   8639:     [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
                   8640:
                   8641:     _LT_DECL([build_old_libs], [enable_static], [0],
                   8642:        [Whether or not to build static libraries])
                   8643: ])# _LT_ENABLE_STATIC
                   8644:
                   8645: LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
                   8646: LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
                   8647:
                   8648: # Old names:
                   8649: AC_DEFUN([AC_ENABLE_STATIC],
                   8650: [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
                   8651: ])
                   8652:
                   8653: AC_DEFUN([AC_DISABLE_STATIC],
                   8654: [_LT_SET_OPTION([LT_INIT], [disable-static])
                   8655: ])
                   8656:
                   8657: AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
                   8658: AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
                   8659:
                   8660: dnl aclocal-1.4 backwards compatibility:
                   8661: dnl AC_DEFUN([AM_ENABLE_STATIC], [])
                   8662: dnl AC_DEFUN([AM_DISABLE_STATIC], [])
                   8663:
                   8664:
                   8665:
                   8666: # _LT_ENABLE_FAST_INSTALL([DEFAULT])
                   8667: # ----------------------------------
                   8668: # implement the --enable-fast-install flag, and support the 'fast-install'
                   8669: # and 'disable-fast-install' LT_INIT options.
                   8670: # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
                   8671: m4_define([_LT_ENABLE_FAST_INSTALL],
                   8672: [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
                   8673: AC_ARG_ENABLE([fast-install],
                   8674:     [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
                   8675:     [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
                   8676:     [p=${PACKAGE-default}
                   8677:     case $enableval in
                   8678:     yes) enable_fast_install=yes ;;
                   8679:     no) enable_fast_install=no ;;
                   8680:     *)
                   8681:       enable_fast_install=no
                   8682:       # Look at the argument we got.  We use all the common list separators.
                   8683:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
                   8684:       for pkg in $enableval; do
                   8685:        IFS=$lt_save_ifs
                   8686:        if test "X$pkg" = "X$p"; then
                   8687:          enable_fast_install=yes
                   8688:        fi
                   8689:       done
                   8690:       IFS=$lt_save_ifs
                   8691:       ;;
                   8692:     esac],
                   8693:     [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
                   8694:
                   8695: _LT_DECL([fast_install], [enable_fast_install], [0],
                   8696:         [Whether or not to optimize for fast installation])dnl
                   8697: ])# _LT_ENABLE_FAST_INSTALL
                   8698:
                   8699: LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
                   8700: LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
                   8701:
                   8702: # Old names:
                   8703: AU_DEFUN([AC_ENABLE_FAST_INSTALL],
                   8704: [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
                   8705: AC_DIAGNOSE([obsolete],
                   8706: [$0: Remove this warning and the call to _LT_SET_OPTION when you put
                   8707: the 'fast-install' option into LT_INIT's first parameter.])
                   8708: ])
                   8709:
                   8710: AU_DEFUN([AC_DISABLE_FAST_INSTALL],
                   8711: [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
                   8712: AC_DIAGNOSE([obsolete],
                   8713: [$0: Remove this warning and the call to _LT_SET_OPTION when you put
                   8714: the 'disable-fast-install' option into LT_INIT's first parameter.])
                   8715: ])
                   8716:
                   8717: dnl aclocal-1.4 backwards compatibility:
                   8718: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
                   8719: dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
                   8720:
                   8721:
                   8722: # _LT_WITH_AIX_SONAME([DEFAULT])
                   8723: # ----------------------------------
                   8724: # implement the --with-aix-soname flag, and support the `aix-soname=aix'
                   8725: # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
                   8726: # is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
                   8727: m4_define([_LT_WITH_AIX_SONAME],
                   8728: [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
                   8729: shared_archive_member_spec=
                   8730: case $host,$enable_shared in
                   8731: power*-*-aix[[5-9]]*,yes)
                   8732:   AC_MSG_CHECKING([which variant of shared library versioning to provide])
                   8733:   AC_ARG_WITH([aix-soname],
                   8734:     [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
                   8735:       [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
                   8736:     [case $withval in
                   8737:     aix|svr4|both)
                   8738:       ;;
                   8739:     *)
                   8740:       AC_MSG_ERROR([Unknown argument to --with-aix-soname])
                   8741:       ;;
                   8742:     esac
                   8743:     lt_cv_with_aix_soname=$with_aix_soname],
                   8744:     [AC_CACHE_VAL([lt_cv_with_aix_soname],
                   8745:       [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
                   8746:     with_aix_soname=$lt_cv_with_aix_soname])
                   8747:   AC_MSG_RESULT([$with_aix_soname])
                   8748:   if test aix != "$with_aix_soname"; then
                   8749:     # For the AIX way of multilib, we name the shared archive member
                   8750:     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
                   8751:     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
                   8752:     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
                   8753:     # the AIX toolchain works better with OBJECT_MODE set (default 32).
                   8754:     if test 64 = "${OBJECT_MODE-32}"; then
                   8755:       shared_archive_member_spec=shr_64
                   8756:     else
                   8757:       shared_archive_member_spec=shr
                   8758:     fi
                   8759:   fi
                   8760:   ;;
                   8761: *)
                   8762:   with_aix_soname=aix
                   8763:   ;;
                   8764: esac
                   8765:
                   8766: _LT_DECL([], [shared_archive_member_spec], [0],
                   8767:     [Shared archive member basename, for filename based shared library versioning on AIX])dnl
                   8768: ])# _LT_WITH_AIX_SONAME
                   8769:
                   8770: LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
                   8771: LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
                   8772: LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
                   8773:
                   8774:
                   8775: # _LT_WITH_PIC([MODE])
                   8776: # --------------------
                   8777: # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
                   8778: # LT_INIT options.
                   8779: # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
                   8780: m4_define([_LT_WITH_PIC],
                   8781: [AC_ARG_WITH([pic],
                   8782:     [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
                   8783:        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
                   8784:     [lt_p=${PACKAGE-default}
                   8785:     case $withval in
                   8786:     yes|no) pic_mode=$withval ;;
                   8787:     *)
                   8788:       pic_mode=default
                   8789:       # Look at the argument we got.  We use all the common list separators.
                   8790:       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
                   8791:       for lt_pkg in $withval; do
                   8792:        IFS=$lt_save_ifs
                   8793:        if test "X$lt_pkg" = "X$lt_p"; then
                   8794:          pic_mode=yes
                   8795:        fi
                   8796:       done
                   8797:       IFS=$lt_save_ifs
                   8798:       ;;
                   8799:     esac],
                   8800:     [pic_mode=m4_default([$1], [default])])
                   8801:
                   8802: _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
                   8803: ])# _LT_WITH_PIC
                   8804:
                   8805: LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
                   8806: LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
                   8807:
                   8808: # Old name:
                   8809: AU_DEFUN([AC_LIBTOOL_PICMODE],
                   8810: [_LT_SET_OPTION([LT_INIT], [pic-only])
                   8811: AC_DIAGNOSE([obsolete],
                   8812: [$0: Remove this warning and the call to _LT_SET_OPTION when you
                   8813: put the 'pic-only' option into LT_INIT's first parameter.])
                   8814: ])
                   8815:
                   8816: dnl aclocal-1.4 backwards compatibility:
                   8817: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
                   8818:
                   8819:
                   8820: m4_define([_LTDL_MODE], [])
                   8821: LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
                   8822:                 [m4_define([_LTDL_MODE], [nonrecursive])])
                   8823: LT_OPTION_DEFINE([LTDL_INIT], [recursive],
                   8824:                 [m4_define([_LTDL_MODE], [recursive])])
                   8825: LT_OPTION_DEFINE([LTDL_INIT], [subproject],
                   8826:                 [m4_define([_LTDL_MODE], [subproject])])
                   8827:
                   8828: m4_define([_LTDL_TYPE], [])
                   8829: LT_OPTION_DEFINE([LTDL_INIT], [installable],
                   8830:                 [m4_define([_LTDL_TYPE], [installable])])
                   8831: LT_OPTION_DEFINE([LTDL_INIT], [convenience],
                   8832:                 [m4_define([_LTDL_TYPE], [convenience])])
                   8833:
                   8834: # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
                   8835: #
1.5     ! ohara    8836: # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
1.4       ohara    8837: # Foundation, Inc.
                   8838: # Written by Gary V. Vaughan, 2004
                   8839: #
                   8840: # This file is free software; the Free Software Foundation gives
                   8841: # unlimited permission to copy and/or distribute it, with or without
                   8842: # modifications, as long as this notice is preserved.
                   8843:
                   8844: # serial 6 ltsugar.m4
                   8845:
                   8846: # This is to help aclocal find these macros, as it can't see m4_define.
                   8847: AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
                   8848:
                   8849:
                   8850: # lt_join(SEP, ARG1, [ARG2...])
                   8851: # -----------------------------
                   8852: # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
                   8853: # associated separator.
                   8854: # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
                   8855: # versions in m4sugar had bugs.
                   8856: m4_define([lt_join],
                   8857: [m4_if([$#], [1], [],
                   8858:        [$#], [2], [[$2]],
                   8859:        [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
                   8860: m4_define([_lt_join],
                   8861: [m4_if([$#$2], [2], [],
                   8862:        [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
                   8863:
                   8864:
                   8865: # lt_car(LIST)
                   8866: # lt_cdr(LIST)
                   8867: # ------------
                   8868: # Manipulate m4 lists.
                   8869: # These macros are necessary as long as will still need to support
                   8870: # Autoconf-2.59, which quotes differently.
                   8871: m4_define([lt_car], [[$1]])
                   8872: m4_define([lt_cdr],
                   8873: [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
                   8874:        [$#], 1, [],
                   8875:        [m4_dquote(m4_shift($@))])])
                   8876: m4_define([lt_unquote], $1)
                   8877:
                   8878:
                   8879: # lt_append(MACRO-NAME, STRING, [SEPARATOR])
                   8880: # ------------------------------------------
                   8881: # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
                   8882: # Note that neither SEPARATOR nor STRING are expanded; they are appended
                   8883: # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
                   8884: # No SEPARATOR is output if MACRO-NAME was previously undefined (different
                   8885: # than defined and empty).
                   8886: #
                   8887: # This macro is needed until we can rely on Autoconf 2.62, since earlier
                   8888: # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
                   8889: m4_define([lt_append],
                   8890: [m4_define([$1],
                   8891:           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
                   8892:
                   8893:
                   8894:
                   8895: # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
                   8896: # ----------------------------------------------------------
                   8897: # Produce a SEP delimited list of all paired combinations of elements of
                   8898: # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
                   8899: # has the form PREFIXmINFIXSUFFIXn.
                   8900: # Needed until we can rely on m4_combine added in Autoconf 2.62.
                   8901: m4_define([lt_combine],
                   8902: [m4_if(m4_eval([$# > 3]), [1],
                   8903:        [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
                   8904: [[m4_foreach([_Lt_prefix], [$2],
                   8905:             [m4_foreach([_Lt_suffix],
                   8906:                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
                   8907:        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
                   8908:
                   8909:
                   8910: # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
                   8911: # -----------------------------------------------------------------------
                   8912: # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
                   8913: # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
                   8914: m4_define([lt_if_append_uniq],
                   8915: [m4_ifdef([$1],
                   8916:          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
                   8917:                 [lt_append([$1], [$2], [$3])$4],
                   8918:                 [$5])],
                   8919:          [lt_append([$1], [$2], [$3])$4])])
                   8920:
                   8921:
                   8922: # lt_dict_add(DICT, KEY, VALUE)
                   8923: # -----------------------------
                   8924: m4_define([lt_dict_add],
                   8925: [m4_define([$1($2)], [$3])])
                   8926:
                   8927:
                   8928: # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
                   8929: # --------------------------------------------
                   8930: m4_define([lt_dict_add_subkey],
                   8931: [m4_define([$1($2:$3)], [$4])])
                   8932:
                   8933:
                   8934: # lt_dict_fetch(DICT, KEY, [SUBKEY])
                   8935: # ----------------------------------
                   8936: m4_define([lt_dict_fetch],
                   8937: [m4_ifval([$3],
                   8938:        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
                   8939:     m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
                   8940:
                   8941:
                   8942: # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
                   8943: # -----------------------------------------------------------------
                   8944: m4_define([lt_if_dict_fetch],
                   8945: [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
                   8946:        [$5],
                   8947:     [$6])])
                   8948:
                   8949:
                   8950: # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
                   8951: # --------------------------------------------------------------
                   8952: m4_define([lt_dict_filter],
                   8953: [m4_if([$5], [], [],
                   8954:   [lt_join(m4_quote(m4_default([$4], [[, ]])),
                   8955:            lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
                   8956:                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
                   8957: ])
                   8958:
                   8959: # ltversion.m4 -- version numbers                      -*- Autoconf -*-
                   8960: #
1.5     ! ohara    8961: #   Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
        !          8962: #   Inc.
1.4       ohara    8963: #   Written by Scott James Remnant, 2004
                   8964: #
                   8965: # This file is free software; the Free Software Foundation gives
                   8966: # unlimited permission to copy and/or distribute it, with or without
                   8967: # modifications, as long as this notice is preserved.
                   8968:
                   8969: # @configure_input@
                   8970:
1.5     ! ohara    8971: # serial 4245 ltversion.m4
1.4       ohara    8972: # This file is part of GNU Libtool
                   8973:
1.5     ! ohara    8974: m4_define([LT_PACKAGE_VERSION], [2.4.7])
        !          8975: m4_define([LT_PACKAGE_REVISION], [2.4.7])
1.4       ohara    8976:
                   8977: AC_DEFUN([LTVERSION_VERSION],
1.5     ! ohara    8978: [macro_version='2.4.7'
        !          8979: macro_revision='2.4.7'
1.4       ohara    8980: _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
                   8981: _LT_DECL(, macro_revision, 0)
                   8982: ])
                   8983:
                   8984: # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
                   8985: #
1.5     ! ohara    8986: #   Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
        !          8987: #   Software Foundation, Inc.
1.4       ohara    8988: #   Written by Scott James Remnant, 2004.
                   8989: #
                   8990: # This file is free software; the Free Software Foundation gives
                   8991: # unlimited permission to copy and/or distribute it, with or without
                   8992: # modifications, as long as this notice is preserved.
                   8993:
                   8994: # serial 5 lt~obsolete.m4
                   8995:
                   8996: # These exist entirely to fool aclocal when bootstrapping libtool.
                   8997: #
                   8998: # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
                   8999: # which have later been changed to m4_define as they aren't part of the
                   9000: # exported API, or moved to Autoconf or Automake where they belong.
                   9001: #
                   9002: # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
                   9003: # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
                   9004: # using a macro with the same name in our local m4/libtool.m4 it'll
                   9005: # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
                   9006: # and doesn't know about Autoconf macros at all.)
                   9007: #
                   9008: # So we provide this file, which has a silly filename so it's always
                   9009: # included after everything else.  This provides aclocal with the
                   9010: # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
                   9011: # because those macros already exist, or will be overwritten later.
                   9012: # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
                   9013: #
                   9014: # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
                   9015: # Yes, that means every name once taken will need to remain here until
                   9016: # we give up compatibility with versions before 1.7, at which point
                   9017: # we need to keep only those names which we still refer to.
                   9018:
                   9019: # This is to help aclocal find these macros, as it can't see m4_define.
                   9020: AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
                   9021:
                   9022: m4_ifndef([AC_LIBTOOL_LINKER_OPTION],  [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
                   9023: m4_ifndef([AC_PROG_EGREP],             [AC_DEFUN([AC_PROG_EGREP])])
                   9024: m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],        [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
                   9025: m4_ifndef([_LT_AC_SHELL_INIT],         [AC_DEFUN([_LT_AC_SHELL_INIT])])
                   9026: m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],    [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
                   9027: m4_ifndef([_LT_PROG_LTMAIN],           [AC_DEFUN([_LT_PROG_LTMAIN])])
                   9028: m4_ifndef([_LT_AC_TAGVAR],             [AC_DEFUN([_LT_AC_TAGVAR])])
                   9029: m4_ifndef([AC_LTDL_ENABLE_INSTALL],    [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
                   9030: m4_ifndef([AC_LTDL_PREOPEN],           [AC_DEFUN([AC_LTDL_PREOPEN])])
                   9031: m4_ifndef([_LT_AC_SYS_COMPILER],       [AC_DEFUN([_LT_AC_SYS_COMPILER])])
                   9032: m4_ifndef([_LT_AC_LOCK],               [AC_DEFUN([_LT_AC_LOCK])])
                   9033: m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],        [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
                   9034: m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],    [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
                   9035: m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],    [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
                   9036: m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
                   9037: m4_ifndef([AC_LIBTOOL_OBJDIR],         [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
                   9038: m4_ifndef([AC_LTDL_OBJDIR],            [AC_DEFUN([AC_LTDL_OBJDIR])])
                   9039: m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
                   9040: m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],  [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
                   9041: m4_ifndef([AC_PATH_MAGIC],             [AC_DEFUN([AC_PATH_MAGIC])])
                   9042: m4_ifndef([AC_PROG_LD_GNU],            [AC_DEFUN([AC_PROG_LD_GNU])])
                   9043: m4_ifndef([AC_PROG_LD_RELOAD_FLAG],    [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
                   9044: m4_ifndef([AC_DEPLIBS_CHECK_METHOD],   [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
                   9045: m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
                   9046: m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
                   9047: m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
                   9048: m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
                   9049: m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
                   9050: m4_ifndef([LT_AC_PROG_EGREP],          [AC_DEFUN([LT_AC_PROG_EGREP])])
                   9051: m4_ifndef([LT_AC_PROG_SED],            [AC_DEFUN([LT_AC_PROG_SED])])
                   9052: m4_ifndef([_LT_CC_BASENAME],           [AC_DEFUN([_LT_CC_BASENAME])])
                   9053: m4_ifndef([_LT_COMPILER_BOILERPLATE],  [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
                   9054: m4_ifndef([_LT_LINKER_BOILERPLATE],    [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
                   9055: m4_ifndef([_AC_PROG_LIBTOOL],          [AC_DEFUN([_AC_PROG_LIBTOOL])])
                   9056: m4_ifndef([AC_LIBTOOL_SETUP],          [AC_DEFUN([AC_LIBTOOL_SETUP])])
                   9057: m4_ifndef([_LT_AC_CHECK_DLFCN],                [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
                   9058: m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],     [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
                   9059: m4_ifndef([_LT_AC_TAGCONFIG],          [AC_DEFUN([_LT_AC_TAGCONFIG])])
                   9060: m4_ifndef([AC_DISABLE_FAST_INSTALL],   [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
                   9061: m4_ifndef([_LT_AC_LANG_CXX],           [AC_DEFUN([_LT_AC_LANG_CXX])])
                   9062: m4_ifndef([_LT_AC_LANG_F77],           [AC_DEFUN([_LT_AC_LANG_F77])])
                   9063: m4_ifndef([_LT_AC_LANG_GCJ],           [AC_DEFUN([_LT_AC_LANG_GCJ])])
                   9064: m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
                   9065: m4_ifndef([_LT_AC_LANG_C_CONFIG],      [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
                   9066: m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
                   9067: m4_ifndef([_LT_AC_LANG_CXX_CONFIG],    [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
                   9068: m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
                   9069: m4_ifndef([_LT_AC_LANG_F77_CONFIG],    [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
                   9070: m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
                   9071: m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],    [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
                   9072: m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
                   9073: m4_ifndef([_LT_AC_LANG_RC_CONFIG],     [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
                   9074: m4_ifndef([AC_LIBTOOL_CONFIG],         [AC_DEFUN([AC_LIBTOOL_CONFIG])])
                   9075: m4_ifndef([_LT_AC_FILE_LTDLL_C],       [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
                   9076: m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],        [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
                   9077: m4_ifndef([_LT_AC_PROG_CXXCPP],                [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
                   9078: m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],        [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
                   9079: m4_ifndef([_LT_PROG_ECHO_BACKSLASH],   [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
                   9080: m4_ifndef([_LT_PROG_F77],              [AC_DEFUN([_LT_PROG_F77])])
                   9081: m4_ifndef([_LT_PROG_FC],               [AC_DEFUN([_LT_PROG_FC])])
                   9082: m4_ifndef([_LT_PROG_CXX],              [AC_DEFUN([_LT_PROG_CXX])])
                   9083:
1.5     ! ohara    9084: # Copyright (C) 2002-2021 Free Software Foundation, Inc.
1.1       noro     9085: #
                   9086: # This file is free software; the Free Software Foundation
                   9087: # gives unlimited permission to copy and/or distribute it,
                   9088: # with or without modifications, as long as this notice is preserved.
                   9089:
                   9090: # AM_AUTOMAKE_VERSION(VERSION)
                   9091: # ----------------------------
                   9092: # Automake X.Y traces this macro to ensure aclocal.m4 has been
                   9093: # generated from the m4 files accompanying Automake X.Y.
                   9094: # (This private macro should not be called outside this file.)
                   9095: AC_DEFUN([AM_AUTOMAKE_VERSION],
1.4       ohara    9096: [am__api_version='1.16'
1.1       noro     9097: dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
                   9098: dnl require some minimum version.  Point them to the right macro.
1.5     ! ohara    9099: m4_if([$1], [1.16.5], [],
1.1       noro     9100:       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
                   9101: ])
                   9102:
                   9103: # _AM_AUTOCONF_VERSION(VERSION)
                   9104: # -----------------------------
                   9105: # aclocal traces this macro to find the Autoconf version.
                   9106: # This is a private macro too.  Using m4_define simplifies
                   9107: # the logic in aclocal, which can simply ignore this definition.
                   9108: m4_define([_AM_AUTOCONF_VERSION], [])
                   9109:
                   9110: # AM_SET_CURRENT_AUTOMAKE_VERSION
                   9111: # -------------------------------
                   9112: # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
                   9113: # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
                   9114: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.5     ! ohara    9115: [AM_AUTOMAKE_VERSION([1.16.5])dnl
1.1       noro     9116: m4_ifndef([AC_AUTOCONF_VERSION],
                   9117:   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
                   9118: _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
                   9119:
                   9120: # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
                   9121:
1.5     ! ohara    9122: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     9123: #
                   9124: # This file is free software; the Free Software Foundation
                   9125: # gives unlimited permission to copy and/or distribute it,
                   9126: # with or without modifications, as long as this notice is preserved.
                   9127:
                   9128: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
                   9129: # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
                   9130: # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
                   9131: #
                   9132: # Of course, Automake must honor this variable whenever it calls a
                   9133: # tool from the auxiliary directory.  The problem is that $srcdir (and
                   9134: # therefore $ac_aux_dir as well) can be either absolute or relative,
                   9135: # depending on how configure is run.  This is pretty annoying, since
                   9136: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
                   9137: # source directory, any form will work fine, but in subdirectories a
                   9138: # relative path needs to be adjusted first.
                   9139: #
                   9140: # $ac_aux_dir/missing
                   9141: #    fails when called from a subdirectory if $ac_aux_dir is relative
                   9142: # $top_srcdir/$ac_aux_dir/missing
                   9143: #    fails if $ac_aux_dir is absolute,
                   9144: #    fails when called from a subdirectory in a VPATH build with
                   9145: #          a relative $ac_aux_dir
                   9146: #
                   9147: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
                   9148: # are both prefixed by $srcdir.  In an in-source build this is usually
                   9149: # harmless because $srcdir is '.', but things will broke when you
                   9150: # start a VPATH build or use an absolute $srcdir.
                   9151: #
                   9152: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
                   9153: # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
                   9154: #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
                   9155: # and then we would define $MISSING as
                   9156: #   MISSING="\${SHELL} $am_aux_dir/missing"
                   9157: # This will work as long as MISSING is not called from configure, because
                   9158: # unfortunately $(top_srcdir) has no meaning in configure.
                   9159: # However there are other variables, like CC, which are often used in
                   9160: # configure, and could therefore not use this "fixed" $ac_aux_dir.
                   9161: #
                   9162: # Another solution, used here, is to always expand $ac_aux_dir to an
                   9163: # absolute PATH.  The drawback is that using absolute paths prevent a
                   9164: # configured tree to be moved without reconfiguration.
                   9165:
                   9166: AC_DEFUN([AM_AUX_DIR_EXPAND],
                   9167: [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
                   9168: # Expand $ac_aux_dir to an absolute path.
                   9169: am_aux_dir=`cd "$ac_aux_dir" && pwd`
                   9170: ])
                   9171:
                   9172: # AM_CONDITIONAL                                            -*- Autoconf -*-
                   9173:
1.5     ! ohara    9174: # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1.1       noro     9175: #
                   9176: # This file is free software; the Free Software Foundation
                   9177: # gives unlimited permission to copy and/or distribute it,
                   9178: # with or without modifications, as long as this notice is preserved.
                   9179:
                   9180: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
                   9181: # -------------------------------------
                   9182: # Define a conditional.
                   9183: AC_DEFUN([AM_CONDITIONAL],
                   9184: [AC_PREREQ([2.52])dnl
                   9185:  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
                   9186:        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
                   9187: AC_SUBST([$1_TRUE])dnl
                   9188: AC_SUBST([$1_FALSE])dnl
                   9189: _AM_SUBST_NOTMAKE([$1_TRUE])dnl
                   9190: _AM_SUBST_NOTMAKE([$1_FALSE])dnl
                   9191: m4_define([_AM_COND_VALUE_$1], [$2])dnl
                   9192: if $2; then
                   9193:   $1_TRUE=
                   9194:   $1_FALSE='#'
                   9195: else
                   9196:   $1_TRUE='#'
                   9197:   $1_FALSE=
                   9198: fi
                   9199: AC_CONFIG_COMMANDS_PRE(
                   9200: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
                   9201:   AC_MSG_ERROR([[conditional "$1" was never defined.
                   9202: Usually this means the macro was only invoked conditionally.]])
                   9203: fi])])
                   9204:
1.5     ! ohara    9205: # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1.1       noro     9206: #
                   9207: # This file is free software; the Free Software Foundation
                   9208: # gives unlimited permission to copy and/or distribute it,
                   9209: # with or without modifications, as long as this notice is preserved.
                   9210:
                   9211:
                   9212: # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
                   9213: # written in clear, in which case automake, when reading aclocal.m4,
                   9214: # will think it sees a *use*, and therefore will trigger all it's
                   9215: # C support machinery.  Also note that it means that autoscan, seeing
                   9216: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
                   9217:
                   9218:
                   9219: # _AM_DEPENDENCIES(NAME)
                   9220: # ----------------------
                   9221: # See how the compiler implements dependency checking.
                   9222: # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
                   9223: # We try a few techniques and use that to set a single cache variable.
                   9224: #
                   9225: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
                   9226: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
                   9227: # dependency, and given that the user is not expected to run this macro,
                   9228: # just rely on AC_PROG_CC.
                   9229: AC_DEFUN([_AM_DEPENDENCIES],
                   9230: [AC_REQUIRE([AM_SET_DEPDIR])dnl
                   9231: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
                   9232: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
                   9233: AC_REQUIRE([AM_DEP_TRACK])dnl
                   9234:
                   9235: m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
                   9236:       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
                   9237:       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
                   9238:       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
                   9239:       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
                   9240:       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
                   9241:                     [depcc="$$1"   am_compiler_list=])
                   9242:
                   9243: AC_CACHE_CHECK([dependency style of $depcc],
                   9244:                [am_cv_$1_dependencies_compiler_type],
                   9245: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   9246:   # We make a subdir and do the tests there.  Otherwise we can end up
                   9247:   # making bogus files that we don't know about and never remove.  For
                   9248:   # instance it was reported that on HP-UX the gcc test will end up
                   9249:   # making a dummy file named 'D' -- because '-MD' means "put the output
                   9250:   # in D".
                   9251:   rm -rf conftest.dir
                   9252:   mkdir conftest.dir
                   9253:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   9254:   # using a relative directory.
                   9255:   cp "$am_depcomp" conftest.dir
                   9256:   cd conftest.dir
                   9257:   # We will build objects and dependencies in a subdirectory because
                   9258:   # it helps to detect inapplicable dependency modes.  For instance
                   9259:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   9260:   # side effect of compilation, but ICC will put the dependencies in
                   9261:   # the current directory while Tru64 will put them in the object
                   9262:   # directory.
                   9263:   mkdir sub
                   9264:
                   9265:   am_cv_$1_dependencies_compiler_type=none
                   9266:   if test "$am_compiler_list" = ""; then
                   9267:      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
                   9268:   fi
                   9269:   am__universal=false
                   9270:   m4_case([$1], [CC],
                   9271:     [case " $depcc " in #(
                   9272:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   9273:      esac],
                   9274:     [CXX],
                   9275:     [case " $depcc " in #(
                   9276:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   9277:      esac])
                   9278:
                   9279:   for depmode in $am_compiler_list; do
                   9280:     # Setup a source with many dependencies, because some compilers
                   9281:     # like to wrap large dependency lists on column 80 (with \), and
                   9282:     # we should not choose a depcomp mode which is confused by this.
                   9283:     #
                   9284:     # We need to recreate these files for each test, as the compiler may
                   9285:     # overwrite some of them when testing with obscure command lines.
                   9286:     # This happens at least with the AIX C compiler.
                   9287:     : > sub/conftest.c
                   9288:     for i in 1 2 3 4 5 6; do
                   9289:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   9290:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
                   9291:       # Solaris 10 /bin/sh.
                   9292:       echo '/* dummy */' > sub/conftst$i.h
                   9293:     done
                   9294:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   9295:
                   9296:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
                   9297:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   9298:     # handle '-M -o', and we need to detect this.  Also, some Intel
                   9299:     # versions had trouble with output in subdirs.
                   9300:     am__obj=sub/conftest.${OBJEXT-o}
                   9301:     am__minus_obj="-o $am__obj"
                   9302:     case $depmode in
                   9303:     gcc)
                   9304:       # This depmode causes a compiler race in universal mode.
                   9305:       test "$am__universal" = false || continue
                   9306:       ;;
                   9307:     nosideeffect)
                   9308:       # After this tag, mechanisms are not by side-effect, so they'll
                   9309:       # only be used when explicitly requested.
                   9310:       if test "x$enable_dependency_tracking" = xyes; then
                   9311:        continue
                   9312:       else
                   9313:        break
                   9314:       fi
                   9315:       ;;
                   9316:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
                   9317:       # This compiler won't grok '-c -o', but also, the minuso test has
                   9318:       # not run yet.  These depmodes are late enough in the game, and
                   9319:       # so weak that their functioning should not be impacted.
                   9320:       am__obj=conftest.${OBJEXT-o}
                   9321:       am__minus_obj=
                   9322:       ;;
                   9323:     none) break ;;
                   9324:     esac
                   9325:     if depmode=$depmode \
                   9326:        source=sub/conftest.c object=$am__obj \
                   9327:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   9328:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   9329:          >/dev/null 2>conftest.err &&
                   9330:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   9331:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   9332:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   9333:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   9334:       # icc doesn't choke on unknown options, it will just issue warnings
                   9335:       # or remarks (even with -Werror).  So we grep stderr for any message
                   9336:       # that says an option was ignored or not supported.
                   9337:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   9338:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   9339:       # The diagnosis changed in icc 8.0:
                   9340:       #   icc: Command line remark: option '-MP' not supported
                   9341:       if (grep 'ignoring option' conftest.err ||
                   9342:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   9343:         am_cv_$1_dependencies_compiler_type=$depmode
                   9344:         break
                   9345:       fi
                   9346:     fi
                   9347:   done
                   9348:
                   9349:   cd ..
                   9350:   rm -rf conftest.dir
                   9351: else
                   9352:   am_cv_$1_dependencies_compiler_type=none
                   9353: fi
                   9354: ])
                   9355: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
                   9356: AM_CONDITIONAL([am__fastdep$1], [
                   9357:   test "x$enable_dependency_tracking" != xno \
                   9358:   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
                   9359: ])
                   9360:
                   9361:
                   9362: # AM_SET_DEPDIR
                   9363: # -------------
                   9364: # Choose a directory name for dependency files.
                   9365: # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
                   9366: AC_DEFUN([AM_SET_DEPDIR],
                   9367: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
                   9368: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
                   9369: ])
                   9370:
                   9371:
                   9372: # AM_DEP_TRACK
                   9373: # ------------
                   9374: AC_DEFUN([AM_DEP_TRACK],
                   9375: [AC_ARG_ENABLE([dependency-tracking], [dnl
                   9376: AS_HELP_STRING(
                   9377:   [--enable-dependency-tracking],
                   9378:   [do not reject slow dependency extractors])
                   9379: AS_HELP_STRING(
                   9380:   [--disable-dependency-tracking],
                   9381:   [speeds up one-time build])])
                   9382: if test "x$enable_dependency_tracking" != xno; then
                   9383:   am_depcomp="$ac_aux_dir/depcomp"
                   9384:   AMDEPBACKSLASH='\'
                   9385:   am__nodep='_no'
                   9386: fi
                   9387: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
                   9388: AC_SUBST([AMDEPBACKSLASH])dnl
                   9389: _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
                   9390: AC_SUBST([am__nodep])dnl
                   9391: _AM_SUBST_NOTMAKE([am__nodep])dnl
                   9392: ])
                   9393:
                   9394: # Generate code to set up dependency tracking.              -*- Autoconf -*-
                   9395:
1.5     ! ohara    9396: # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1.1       noro     9397: #
                   9398: # This file is free software; the Free Software Foundation
                   9399: # gives unlimited permission to copy and/or distribute it,
                   9400: # with or without modifications, as long as this notice is preserved.
                   9401:
                   9402: # _AM_OUTPUT_DEPENDENCY_COMMANDS
                   9403: # ------------------------------
                   9404: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
                   9405: [{
                   9406:   # Older Autoconf quotes --file arguments for eval, but not when files
                   9407:   # are listed without --file.  Let's play safe and only enable the eval
                   9408:   # if we detect the quoting.
1.4       ohara    9409:   # TODO: see whether this extra hack can be removed once we start
                   9410:   # requiring Autoconf 2.70 or later.
                   9411:   AS_CASE([$CONFIG_FILES],
                   9412:           [*\'*], [eval set x "$CONFIG_FILES"],
                   9413:           [*], [set x $CONFIG_FILES])
1.1       noro     9414:   shift
1.4       ohara    9415:   # Used to flag and report bootstrapping failures.
                   9416:   am_rc=0
                   9417:   for am_mf
1.1       noro     9418:   do
                   9419:     # Strip MF so we end up with the name of the file.
1.4       ohara    9420:     am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
                   9421:     # Check whether this is an Automake generated Makefile which includes
                   9422:     # dependency-tracking related rules and includes.
                   9423:     # Grep'ing the whole file directly is not great: AIX grep has a line
1.1       noro     9424:     # limit of 2048, but all sed's we know have understand at least 4000.
1.4       ohara    9425:     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
                   9426:       || continue
                   9427:     am_dirpart=`AS_DIRNAME(["$am_mf"])`
                   9428:     am_filepart=`AS_BASENAME(["$am_mf"])`
                   9429:     AM_RUN_LOG([cd "$am_dirpart" \
                   9430:       && sed -e '/# am--include-marker/d' "$am_filepart" \
                   9431:         | $MAKE -f - am--depfiles]) || am_rc=$?
1.1       noro     9432:   done
1.4       ohara    9433:   if test $am_rc -ne 0; then
                   9434:     AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
1.5     ! ohara    9435:     for automatic dependency tracking.  If GNU make was not used, consider
        !          9436:     re-running the configure script with MAKE="gmake" (or whatever is
        !          9437:     necessary).  You can also try re-running configure with the
1.4       ohara    9438:     '--disable-dependency-tracking' option to at least be able to build
                   9439:     the package (albeit without support for automatic dependency tracking).])
                   9440:   fi
                   9441:   AS_UNSET([am_dirpart])
                   9442:   AS_UNSET([am_filepart])
                   9443:   AS_UNSET([am_mf])
                   9444:   AS_UNSET([am_rc])
                   9445:   rm -f conftest-deps.mk
1.1       noro     9446: }
                   9447: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
                   9448:
                   9449:
                   9450: # AM_OUTPUT_DEPENDENCY_COMMANDS
                   9451: # -----------------------------
                   9452: # This macro should only be invoked once -- use via AC_REQUIRE.
                   9453: #
1.4       ohara    9454: # This code is only required when automatic dependency tracking is enabled.
                   9455: # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
                   9456: # order to bootstrap the dependency handling code.
1.1       noro     9457: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
                   9458: [AC_CONFIG_COMMANDS([depfiles],
                   9459:      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1.4       ohara    9460:      [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
1.1       noro     9461:
                   9462: # Do all the work for Automake.                             -*- Autoconf -*-
                   9463:
1.5     ! ohara    9464: # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1.1       noro     9465: #
                   9466: # This file is free software; the Free Software Foundation
                   9467: # gives unlimited permission to copy and/or distribute it,
                   9468: # with or without modifications, as long as this notice is preserved.
                   9469:
                   9470: # This macro actually does too much.  Some checks are only needed if
                   9471: # your package does certain things.  But this isn't really a big deal.
                   9472:
                   9473: dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
                   9474: m4_define([AC_PROG_CC],
                   9475: m4_defn([AC_PROG_CC])
                   9476: [_AM_PROG_CC_C_O
                   9477: ])
                   9478:
                   9479: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
                   9480: # AM_INIT_AUTOMAKE([OPTIONS])
                   9481: # -----------------------------------------------
                   9482: # The call with PACKAGE and VERSION arguments is the old style
                   9483: # call (pre autoconf-2.50), which is being phased out.  PACKAGE
                   9484: # and VERSION should now be passed to AC_INIT and removed from
                   9485: # the call to AM_INIT_AUTOMAKE.
                   9486: # We support both call styles for the transition.  After
                   9487: # the next Automake release, Autoconf can make the AC_INIT
                   9488: # arguments mandatory, and then we can depend on a new Autoconf
                   9489: # release and drop the old call support.
                   9490: AC_DEFUN([AM_INIT_AUTOMAKE],
                   9491: [AC_PREREQ([2.65])dnl
1.5     ! ohara    9492: m4_ifdef([_$0_ALREADY_INIT],
        !          9493:   [m4_fatal([$0 expanded multiple times
        !          9494: ]m4_defn([_$0_ALREADY_INIT]))],
        !          9495:   [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
1.1       noro     9496: dnl Autoconf wants to disallow AM_ names.  We explicitly allow
                   9497: dnl the ones we care about.
                   9498: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
                   9499: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
                   9500: AC_REQUIRE([AC_PROG_INSTALL])dnl
                   9501: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   9502:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   9503:   # is not polluted with repeated "-I."
                   9504:   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
                   9505:   # test to see if srcdir already configured
                   9506:   if test -f $srcdir/config.status; then
                   9507:     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
                   9508:   fi
                   9509: fi
                   9510:
                   9511: # test whether we have cygpath
                   9512: if test -z "$CYGPATH_W"; then
                   9513:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   9514:     CYGPATH_W='cygpath -w'
                   9515:   else
                   9516:     CYGPATH_W=echo
                   9517:   fi
                   9518: fi
                   9519: AC_SUBST([CYGPATH_W])
                   9520:
                   9521: # Define the identity of the package.
                   9522: dnl Distinguish between old-style and new-style calls.
                   9523: m4_ifval([$2],
                   9524: [AC_DIAGNOSE([obsolete],
                   9525:              [$0: two- and three-arguments forms are deprecated.])
                   9526: m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
                   9527:  AC_SUBST([PACKAGE], [$1])dnl
                   9528:  AC_SUBST([VERSION], [$2])],
                   9529: [_AM_SET_OPTIONS([$1])dnl
                   9530: dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
                   9531: m4_if(
1.5     ! ohara    9532:   m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
1.1       noro     9533:   [ok:ok],,
                   9534:   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
                   9535:  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
                   9536:  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
                   9537:
                   9538: _AM_IF_OPTION([no-define],,
                   9539: [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
                   9540:  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
                   9541:
                   9542: # Some tools Automake needs.
                   9543: AC_REQUIRE([AM_SANITY_CHECK])dnl
                   9544: AC_REQUIRE([AC_ARG_PROGRAM])dnl
                   9545: AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
                   9546: AM_MISSING_PROG([AUTOCONF], [autoconf])
                   9547: AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
                   9548: AM_MISSING_PROG([AUTOHEADER], [autoheader])
                   9549: AM_MISSING_PROG([MAKEINFO], [makeinfo])
                   9550: AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
                   9551: AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
                   9552: AC_REQUIRE([AC_PROG_MKDIR_P])dnl
                   9553: # For better backward compatibility.  To be removed once Automake 1.9.x
                   9554: # dies out for good.  For more background, see:
1.4       ohara    9555: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
                   9556: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.1       noro     9557: AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1.3       noro     9558: # We need awk for the "check" target (and possibly the TAP driver).  The
                   9559: # system "awk" is bad on some platforms.
1.1       noro     9560: AC_REQUIRE([AC_PROG_AWK])dnl
                   9561: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
                   9562: AC_REQUIRE([AM_SET_LEADING_DOT])dnl
                   9563: _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
                   9564:              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
                   9565:                             [_AM_PROG_TAR([v7])])])
                   9566: _AM_IF_OPTION([no-dependencies],,
                   9567: [AC_PROVIDE_IFELSE([AC_PROG_CC],
                   9568:                  [_AM_DEPENDENCIES([CC])],
                   9569:                  [m4_define([AC_PROG_CC],
                   9570:                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
                   9571: AC_PROVIDE_IFELSE([AC_PROG_CXX],
                   9572:                  [_AM_DEPENDENCIES([CXX])],
                   9573:                  [m4_define([AC_PROG_CXX],
                   9574:                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
                   9575: AC_PROVIDE_IFELSE([AC_PROG_OBJC],
                   9576:                  [_AM_DEPENDENCIES([OBJC])],
                   9577:                  [m4_define([AC_PROG_OBJC],
                   9578:                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
                   9579: AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
                   9580:                  [_AM_DEPENDENCIES([OBJCXX])],
                   9581:                  [m4_define([AC_PROG_OBJCXX],
                   9582:                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
                   9583: ])
1.5     ! ohara    9584: # Variables for tags utilities; see am/tags.am
        !          9585: if test -z "$CTAGS"; then
        !          9586:   CTAGS=ctags
        !          9587: fi
        !          9588: AC_SUBST([CTAGS])
        !          9589: if test -z "$ETAGS"; then
        !          9590:   ETAGS=etags
        !          9591: fi
        !          9592: AC_SUBST([ETAGS])
        !          9593: if test -z "$CSCOPE"; then
        !          9594:   CSCOPE=cscope
        !          9595: fi
        !          9596: AC_SUBST([CSCOPE])
        !          9597:
1.1       noro     9598: AC_REQUIRE([AM_SILENT_RULES])dnl
                   9599: dnl The testsuite driver may need to know about EXEEXT, so add the
                   9600: dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
                   9601: dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
                   9602: AC_CONFIG_COMMANDS_PRE(dnl
                   9603: [m4_provide_if([_AM_COMPILER_EXEEXT],
                   9604:   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
                   9605:
                   9606: # POSIX will say in a future version that running "rm -f" with no argument
                   9607: # is OK; and we want to be able to make that assumption in our Makefile
                   9608: # recipes.  So use an aggressive probe to check that the usage we want is
                   9609: # actually supported "in the wild" to an acceptable degree.
                   9610: # See automake bug#10828.
                   9611: # To make any issue more visible, cause the running configure to be aborted
                   9612: # by default if the 'rm' program in use doesn't match our expectations; the
                   9613: # user can still override this though.
                   9614: if rm -f && rm -fr && rm -rf; then : OK; else
                   9615:   cat >&2 <<'END'
                   9616: Oops!
                   9617:
                   9618: Your 'rm' program seems unable to run without file operands specified
                   9619: on the command line, even when the '-f' option is present.  This is contrary
                   9620: to the behaviour of most rm programs out there, and not conforming with
                   9621: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
                   9622:
                   9623: Please tell bug-automake@gnu.org about your system, including the value
                   9624: of your $PATH and any error possibly output before this message.  This
                   9625: can help us improve future automake versions.
                   9626:
                   9627: END
                   9628:   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
                   9629:     echo 'Configuration will proceed anyway, since you have set the' >&2
                   9630:     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
                   9631:     echo >&2
                   9632:   else
                   9633:     cat >&2 <<'END'
                   9634: Aborting the configuration process, to ensure you take notice of the issue.
                   9635:
                   9636: You can download and install GNU coreutils to get an 'rm' implementation
1.4       ohara    9637: that behaves properly: <https://www.gnu.org/software/coreutils/>.
1.1       noro     9638:
                   9639: If you want to complete the configuration process using your problematic
                   9640: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
                   9641: to "yes", and re-run configure.
                   9642:
                   9643: END
                   9644:     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
                   9645:   fi
                   9646: fi
1.3       noro     9647: dnl The trailing newline in this macro's definition is deliberate, for
                   9648: dnl backward compatibility and to allow trailing 'dnl'-style comments
                   9649: dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1.1       noro     9650: ])
                   9651:
                   9652: dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
                   9653: dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
                   9654: dnl mangled by Autoconf and run in a shell conditional statement.
                   9655: m4_define([_AC_COMPILER_EXEEXT],
                   9656: m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
                   9657:
                   9658: # When config.status generates a header, we must update the stamp-h file.
                   9659: # This file resides in the same directory as the config header
                   9660: # that is generated.  The stamp files are numbered to have different names.
                   9661:
                   9662: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
                   9663: # loop where config.status creates the headers, so we can generate
                   9664: # our stamp files there.
                   9665: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
                   9666: [# Compute $1's index in $config_headers.
                   9667: _am_arg=$1
                   9668: _am_stamp_count=1
                   9669: for _am_header in $config_headers :; do
                   9670:   case $_am_header in
                   9671:     $_am_arg | $_am_arg:* )
                   9672:       break ;;
                   9673:     * )
                   9674:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   9675:   esac
                   9676: done
                   9677: echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
                   9678:
1.5     ! ohara    9679: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     9680: #
                   9681: # This file is free software; the Free Software Foundation
                   9682: # gives unlimited permission to copy and/or distribute it,
                   9683: # with or without modifications, as long as this notice is preserved.
                   9684:
                   9685: # AM_PROG_INSTALL_SH
                   9686: # ------------------
                   9687: # Define $install_sh.
                   9688: AC_DEFUN([AM_PROG_INSTALL_SH],
                   9689: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.3       noro     9690: if test x"${install_sh+set}" != xset; then
1.1       noro     9691:   case $am_aux_dir in
                   9692:   *\ * | *\    *)
                   9693:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   9694:   *)
                   9695:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   9696:   esac
                   9697: fi
                   9698: AC_SUBST([install_sh])])
                   9699:
1.5     ! ohara    9700: # Copyright (C) 2003-2021 Free Software Foundation, Inc.
1.1       noro     9701: #
                   9702: # This file is free software; the Free Software Foundation
                   9703: # gives unlimited permission to copy and/or distribute it,
                   9704: # with or without modifications, as long as this notice is preserved.
                   9705:
                   9706: # Check whether the underlying file-system supports filenames
                   9707: # with a leading dot.  For instance MS-DOS doesn't.
                   9708: AC_DEFUN([AM_SET_LEADING_DOT],
                   9709: [rm -rf .tst 2>/dev/null
                   9710: mkdir .tst 2>/dev/null
                   9711: if test -d .tst; then
                   9712:   am__leading_dot=.
                   9713: else
                   9714:   am__leading_dot=_
                   9715: fi
                   9716: rmdir .tst 2>/dev/null
                   9717: AC_SUBST([am__leading_dot])])
                   9718:
                   9719: # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
                   9720: # From Jim Meyering
                   9721:
1.5     ! ohara    9722: # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1.1       noro     9723: #
                   9724: # This file is free software; the Free Software Foundation
                   9725: # gives unlimited permission to copy and/or distribute it,
                   9726: # with or without modifications, as long as this notice is preserved.
                   9727:
                   9728: # AM_MAINTAINER_MODE([DEFAULT-MODE])
                   9729: # ----------------------------------
                   9730: # Control maintainer-specific portions of Makefiles.
                   9731: # Default is to disable them, unless 'enable' is passed literally.
                   9732: # For symmetry, 'disable' may be passed as well.  Anyway, the user
                   9733: # can override the default with the --enable/--disable switch.
                   9734: AC_DEFUN([AM_MAINTAINER_MODE],
                   9735: [m4_case(m4_default([$1], [disable]),
                   9736:        [enable], [m4_define([am_maintainer_other], [disable])],
                   9737:        [disable], [m4_define([am_maintainer_other], [enable])],
                   9738:        [m4_define([am_maintainer_other], [enable])
                   9739:         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
                   9740: AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
                   9741:   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
                   9742:   AC_ARG_ENABLE([maintainer-mode],
                   9743:     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
                   9744:       am_maintainer_other[ make rules and dependencies not useful
                   9745:       (and sometimes confusing) to the casual installer])],
                   9746:     [USE_MAINTAINER_MODE=$enableval],
                   9747:     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
                   9748:   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
                   9749:   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
                   9750:   MAINT=$MAINTAINER_MODE_TRUE
                   9751:   AC_SUBST([MAINT])dnl
                   9752: ]
                   9753: )
                   9754:
                   9755: # Check to see how 'make' treats includes.                 -*- Autoconf -*-
                   9756:
1.5     ! ohara    9757: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     9758: #
                   9759: # This file is free software; the Free Software Foundation
                   9760: # gives unlimited permission to copy and/or distribute it,
                   9761: # with or without modifications, as long as this notice is preserved.
                   9762:
                   9763: # AM_MAKE_INCLUDE()
                   9764: # -----------------
1.4       ohara    9765: # Check whether make has an 'include' directive that can support all
                   9766: # the idioms we need for our automatic dependency tracking code.
1.1       noro     9767: AC_DEFUN([AM_MAKE_INCLUDE],
1.4       ohara    9768: [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
                   9769: cat > confinc.mk << 'END'
1.1       noro     9770: am__doit:
1.4       ohara    9771:        @echo this is the am__doit target >confinc.out
1.1       noro     9772: .PHONY: am__doit
                   9773: END
                   9774: am__include="#"
                   9775: am__quote=
1.4       ohara    9776: # BSD make does it like this.
                   9777: echo '.include "confinc.mk" # ignored' > confmf.BSD
                   9778: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
                   9779: echo 'include confinc.mk # ignored' > confmf.GNU
                   9780: _am_result=no
                   9781: for s in GNU BSD; do
                   9782:   AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
                   9783:   AS_CASE([$?:`cat confinc.out 2>/dev/null`],
                   9784:       ['0:this is the am__doit target'],
                   9785:       [AS_CASE([$s],
                   9786:           [BSD], [am__include='.include' am__quote='"'],
                   9787:           [am__include='include' am__quote=''])])
                   9788:   if test "$am__include" != "#"; then
                   9789:     _am_result="yes ($s style)"
                   9790:     break
                   9791:   fi
                   9792: done
                   9793: rm -f confinc.* confmf.*
                   9794: AC_MSG_RESULT([${_am_result}])
                   9795: AC_SUBST([am__include])])
                   9796: AC_SUBST([am__quote])])
1.1       noro     9797:
                   9798: # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
                   9799:
1.5     ! ohara    9800: # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1.1       noro     9801: #
                   9802: # This file is free software; the Free Software Foundation
                   9803: # gives unlimited permission to copy and/or distribute it,
                   9804: # with or without modifications, as long as this notice is preserved.
                   9805:
                   9806: # AM_MISSING_PROG(NAME, PROGRAM)
                   9807: # ------------------------------
                   9808: AC_DEFUN([AM_MISSING_PROG],
                   9809: [AC_REQUIRE([AM_MISSING_HAS_RUN])
                   9810: $1=${$1-"${am_missing_run}$2"}
                   9811: AC_SUBST($1)])
                   9812:
                   9813: # AM_MISSING_HAS_RUN
                   9814: # ------------------
                   9815: # Define MISSING if not defined so far and test if it is modern enough.
                   9816: # If it is, set am_missing_run to use it, otherwise, to nothing.
                   9817: AC_DEFUN([AM_MISSING_HAS_RUN],
                   9818: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                   9819: AC_REQUIRE_AUX_FILE([missing])dnl
                   9820: if test x"${MISSING+set}" != xset; then
1.5     ! ohara    9821:   MISSING="\${SHELL} '$am_aux_dir/missing'"
1.1       noro     9822: fi
                   9823: # Use eval to expand $SHELL
                   9824: if eval "$MISSING --is-lightweight"; then
                   9825:   am_missing_run="$MISSING "
                   9826: else
                   9827:   am_missing_run=
                   9828:   AC_MSG_WARN(['missing' script is too old or missing])
                   9829: fi
                   9830: ])
                   9831:
                   9832: # Helper functions for option handling.                     -*- Autoconf -*-
                   9833:
1.5     ! ohara    9834: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     9835: #
                   9836: # This file is free software; the Free Software Foundation
                   9837: # gives unlimited permission to copy and/or distribute it,
                   9838: # with or without modifications, as long as this notice is preserved.
                   9839:
                   9840: # _AM_MANGLE_OPTION(NAME)
                   9841: # -----------------------
                   9842: AC_DEFUN([_AM_MANGLE_OPTION],
                   9843: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
                   9844:
                   9845: # _AM_SET_OPTION(NAME)
                   9846: # --------------------
                   9847: # Set option NAME.  Presently that only means defining a flag for this option.
                   9848: AC_DEFUN([_AM_SET_OPTION],
                   9849: [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
                   9850:
                   9851: # _AM_SET_OPTIONS(OPTIONS)
                   9852: # ------------------------
                   9853: # OPTIONS is a space-separated list of Automake options.
                   9854: AC_DEFUN([_AM_SET_OPTIONS],
                   9855: [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
                   9856:
                   9857: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
                   9858: # -------------------------------------------
                   9859: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
                   9860: AC_DEFUN([_AM_IF_OPTION],
                   9861: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
                   9862:
1.5     ! ohara    9863: # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1.1       noro     9864: #
                   9865: # This file is free software; the Free Software Foundation
                   9866: # gives unlimited permission to copy and/or distribute it,
                   9867: # with or without modifications, as long as this notice is preserved.
                   9868:
                   9869: # _AM_PROG_CC_C_O
                   9870: # ---------------
                   9871: # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
                   9872: # to automatically call this.
                   9873: AC_DEFUN([_AM_PROG_CC_C_O],
                   9874: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
                   9875: AC_REQUIRE_AUX_FILE([compile])dnl
                   9876: AC_LANG_PUSH([C])dnl
                   9877: AC_CACHE_CHECK(
                   9878:   [whether $CC understands -c and -o together],
                   9879:   [am_cv_prog_cc_c_o],
                   9880:   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
                   9881:   # Make sure it works both with $CC and with simple cc.
                   9882:   # Following AC_PROG_CC_C_O, we do the test twice because some
                   9883:   # compilers refuse to overwrite an existing .o file with -o,
                   9884:   # though they will create one.
                   9885:   am_cv_prog_cc_c_o=yes
                   9886:   for am_i in 1 2; do
                   9887:     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
                   9888:          && test -f conftest2.$ac_objext; then
                   9889:       : OK
                   9890:     else
                   9891:       am_cv_prog_cc_c_o=no
                   9892:       break
                   9893:     fi
                   9894:   done
                   9895:   rm -f core conftest*
                   9896:   unset am_i])
                   9897: if test "$am_cv_prog_cc_c_o" != yes; then
                   9898:    # Losing compiler, so override with the script.
                   9899:    # FIXME: It is wrong to rewrite CC.
                   9900:    # But if we don't then we get into trouble of one sort or another.
                   9901:    # A longer-term fix would be to have automake use am__CC in this case,
                   9902:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   9903:    CC="$am_aux_dir/compile $CC"
                   9904: fi
                   9905: AC_LANG_POP([C])])
                   9906:
                   9907: # For backward compatibility.
                   9908: AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
                   9909:
1.5     ! ohara    9910: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     9911: #
                   9912: # This file is free software; the Free Software Foundation
                   9913: # gives unlimited permission to copy and/or distribute it,
                   9914: # with or without modifications, as long as this notice is preserved.
                   9915:
                   9916: # AM_RUN_LOG(COMMAND)
                   9917: # -------------------
                   9918: # Run COMMAND, save the exit status in ac_status, and log it.
                   9919: # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
                   9920: AC_DEFUN([AM_RUN_LOG],
                   9921: [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
                   9922:    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
                   9923:    ac_status=$?
                   9924:    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
                   9925:    (exit $ac_status); }])
                   9926:
                   9927: # Check to make sure that the build environment is sane.    -*- Autoconf -*-
                   9928:
1.5     ! ohara    9929: # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1.1       noro     9930: #
                   9931: # This file is free software; the Free Software Foundation
                   9932: # gives unlimited permission to copy and/or distribute it,
                   9933: # with or without modifications, as long as this notice is preserved.
                   9934:
                   9935: # AM_SANITY_CHECK
                   9936: # ---------------
                   9937: AC_DEFUN([AM_SANITY_CHECK],
                   9938: [AC_MSG_CHECKING([whether build environment is sane])
                   9939: # Reject unsafe characters in $srcdir or the absolute working directory
                   9940: # name.  Accept space and tab only in the latter.
                   9941: am_lf='
                   9942: '
                   9943: case `pwd` in
                   9944:   *[[\\\"\#\$\&\'\`$am_lf]]*)
                   9945:     AC_MSG_ERROR([unsafe absolute working directory name]);;
                   9946: esac
                   9947: case $srcdir in
                   9948:   *[[\\\"\#\$\&\'\`$am_lf\ \   ]]*)
                   9949:     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
                   9950: esac
                   9951:
                   9952: # Do 'set' in a subshell so we don't clobber the current shell's
                   9953: # arguments.  Must try -L first in case configure is actually a
                   9954: # symlink; some systems play weird games with the mod time of symlinks
                   9955: # (eg FreeBSD returns the mod time of the symlink's containing
                   9956: # directory).
                   9957: if (
                   9958:    am_has_slept=no
                   9959:    for am_try in 1 2; do
                   9960:      echo "timestamp, slept: $am_has_slept" > conftest.file
                   9961:      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   9962:      if test "$[*]" = "X"; then
                   9963:        # -L didn't work.
                   9964:        set X `ls -t "$srcdir/configure" conftest.file`
                   9965:      fi
                   9966:      if test "$[*]" != "X $srcdir/configure conftest.file" \
                   9967:        && test "$[*]" != "X conftest.file $srcdir/configure"; then
                   9968:
                   9969:        # If neither matched, then we have a broken ls.  This can happen
                   9970:        # if, for instance, CONFIG_SHELL is bash and it inherits a
                   9971:        # broken ls alias from the environment.  This has actually
                   9972:        # happened.  Such a system could not be considered "sane".
                   9973:        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
                   9974:   alias in your environment])
                   9975:      fi
                   9976:      if test "$[2]" = conftest.file || test $am_try -eq 2; then
                   9977:        break
                   9978:      fi
                   9979:      # Just in case.
                   9980:      sleep 1
                   9981:      am_has_slept=yes
                   9982:    done
                   9983:    test "$[2]" = conftest.file
                   9984:    )
                   9985: then
                   9986:    # Ok.
                   9987:    :
                   9988: else
                   9989:    AC_MSG_ERROR([newly created file is older than distributed files!
                   9990: Check your system clock])
                   9991: fi
                   9992: AC_MSG_RESULT([yes])
                   9993: # If we didn't sleep, we still need to ensure time stamps of config.status and
                   9994: # generated files are strictly newer.
                   9995: am_sleep_pid=
                   9996: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
                   9997:   ( sleep 1 ) &
                   9998:   am_sleep_pid=$!
                   9999: fi
                   10000: AC_CONFIG_COMMANDS_PRE(
                   10001:   [AC_MSG_CHECKING([that generated files are newer than configure])
                   10002:    if test -n "$am_sleep_pid"; then
                   10003:      # Hide warnings about reused PIDs.
                   10004:      wait $am_sleep_pid 2>/dev/null
                   10005:    fi
                   10006:    AC_MSG_RESULT([done])])
                   10007: rm -f conftest.file
                   10008: ])
                   10009:
1.5     ! ohara    10010: # Copyright (C) 2009-2021 Free Software Foundation, Inc.
1.1       noro     10011: #
                   10012: # This file is free software; the Free Software Foundation
                   10013: # gives unlimited permission to copy and/or distribute it,
                   10014: # with or without modifications, as long as this notice is preserved.
                   10015:
                   10016: # AM_SILENT_RULES([DEFAULT])
                   10017: # --------------------------
                   10018: # Enable less verbose build rules; with the default set to DEFAULT
                   10019: # ("yes" being less verbose, "no" or empty being verbose).
                   10020: AC_DEFUN([AM_SILENT_RULES],
                   10021: [AC_ARG_ENABLE([silent-rules], [dnl
                   10022: AS_HELP_STRING(
                   10023:   [--enable-silent-rules],
                   10024:   [less verbose build output (undo: "make V=1")])
                   10025: AS_HELP_STRING(
                   10026:   [--disable-silent-rules],
                   10027:   [verbose build output (undo: "make V=0")])dnl
                   10028: ])
                   10029: case $enable_silent_rules in @%:@ (((
                   10030:   yes) AM_DEFAULT_VERBOSITY=0;;
                   10031:    no) AM_DEFAULT_VERBOSITY=1;;
                   10032:     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
                   10033: esac
                   10034: dnl
                   10035: dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
                   10036: dnl do not support nested variable expansions.
                   10037: dnl See automake bug#9928 and bug#10237.
                   10038: am_make=${MAKE-make}
                   10039: AC_CACHE_CHECK([whether $am_make supports nested variables],
                   10040:    [am_cv_make_support_nested_variables],
                   10041:    [if AS_ECHO([['TRUE=$(BAR$(V))
                   10042: BAR0=false
                   10043: BAR1=true
                   10044: V=1
                   10045: am__doit:
                   10046:        @$(TRUE)
                   10047: .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
                   10048:   am_cv_make_support_nested_variables=yes
                   10049: else
                   10050:   am_cv_make_support_nested_variables=no
                   10051: fi])
                   10052: if test $am_cv_make_support_nested_variables = yes; then
                   10053:   dnl Using '$V' instead of '$(V)' breaks IRIX make.
                   10054:   AM_V='$(V)'
                   10055:   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
                   10056: else
                   10057:   AM_V=$AM_DEFAULT_VERBOSITY
                   10058:   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
                   10059: fi
                   10060: AC_SUBST([AM_V])dnl
                   10061: AM_SUBST_NOTMAKE([AM_V])dnl
                   10062: AC_SUBST([AM_DEFAULT_V])dnl
                   10063: AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
                   10064: AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
                   10065: AM_BACKSLASH='\'
                   10066: AC_SUBST([AM_BACKSLASH])dnl
                   10067: _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
                   10068: ])
                   10069:
1.5     ! ohara    10070: # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1.1       noro     10071: #
                   10072: # This file is free software; the Free Software Foundation
                   10073: # gives unlimited permission to copy and/or distribute it,
                   10074: # with or without modifications, as long as this notice is preserved.
                   10075:
                   10076: # AM_PROG_INSTALL_STRIP
                   10077: # ---------------------
                   10078: # One issue with vendor 'install' (even GNU) is that you can't
                   10079: # specify the program used to strip binaries.  This is especially
                   10080: # annoying in cross-compiling environments, where the build's strip
                   10081: # is unlikely to handle the host's binaries.
                   10082: # Fortunately install-sh will honor a STRIPPROG variable, so we
                   10083: # always use install-sh in "make install-strip", and initialize
                   10084: # STRIPPROG with the value of the STRIP variable (set by the user).
                   10085: AC_DEFUN([AM_PROG_INSTALL_STRIP],
                   10086: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
                   10087: # Installed binaries are usually stripped using 'strip' when the user
                   10088: # run "make install-strip".  However 'strip' might not be the right
                   10089: # tool to use in cross-compilation environments, therefore Automake
                   10090: # will honor the 'STRIP' environment variable to overrule this program.
                   10091: dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
                   10092: if test "$cross_compiling" != no; then
                   10093:   AC_CHECK_TOOL([STRIP], [strip], :)
                   10094: fi
                   10095: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
                   10096: AC_SUBST([INSTALL_STRIP_PROGRAM])])
                   10097:
1.5     ! ohara    10098: # Copyright (C) 2006-2021 Free Software Foundation, Inc.
1.1       noro     10099: #
                   10100: # This file is free software; the Free Software Foundation
                   10101: # gives unlimited permission to copy and/or distribute it,
                   10102: # with or without modifications, as long as this notice is preserved.
                   10103:
                   10104: # _AM_SUBST_NOTMAKE(VARIABLE)
                   10105: # ---------------------------
                   10106: # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
                   10107: # This macro is traced by Automake.
                   10108: AC_DEFUN([_AM_SUBST_NOTMAKE])
                   10109:
                   10110: # AM_SUBST_NOTMAKE(VARIABLE)
                   10111: # --------------------------
                   10112: # Public sister of _AM_SUBST_NOTMAKE.
                   10113: AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
                   10114:
                   10115: # Check how to create a tarball.                            -*- Autoconf -*-
                   10116:
1.5     ! ohara    10117: # Copyright (C) 2004-2021 Free Software Foundation, Inc.
1.1       noro     10118: #
                   10119: # This file is free software; the Free Software Foundation
                   10120: # gives unlimited permission to copy and/or distribute it,
                   10121: # with or without modifications, as long as this notice is preserved.
                   10122:
                   10123: # _AM_PROG_TAR(FORMAT)
                   10124: # --------------------
                   10125: # Check how to create a tarball in format FORMAT.
                   10126: # FORMAT should be one of 'v7', 'ustar', or 'pax'.
                   10127: #
                   10128: # Substitute a variable $(am__tar) that is a command
                   10129: # writing to stdout a FORMAT-tarball containing the directory
                   10130: # $tardir.
                   10131: #     tardir=directory && $(am__tar) > result.tar
                   10132: #
                   10133: # Substitute a variable $(am__untar) that extract such
                   10134: # a tarball read from stdin.
                   10135: #     $(am__untar) < result.tar
                   10136: #
                   10137: AC_DEFUN([_AM_PROG_TAR],
                   10138: [# Always define AMTAR for backward compatibility.  Yes, it's still used
                   10139: # in the wild :-(  We should find a proper way to deprecate it ...
                   10140: AC_SUBST([AMTAR], ['$${TAR-tar}'])
                   10141:
                   10142: # We'll loop over all known methods to create a tar archive until one works.
                   10143: _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
                   10144:
                   10145: m4_if([$1], [v7],
                   10146:   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
                   10147:
                   10148:   [m4_case([$1],
                   10149:     [ustar],
                   10150:      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
                   10151:       # There is notably a 21 bits limit for the UID and the GID.  In fact,
                   10152:       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
                   10153:       # and bug#13588).
                   10154:       am_max_uid=2097151 # 2^21 - 1
                   10155:       am_max_gid=$am_max_uid
                   10156:       # The $UID and $GID variables are not portable, so we need to resort
                   10157:       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
                   10158:       # below are definitely unexpected, so allow the users to see them
                   10159:       # (that is, avoid stderr redirection).
                   10160:       am_uid=`id -u || echo unknown`
                   10161:       am_gid=`id -g || echo unknown`
                   10162:       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
                   10163:       if test $am_uid -le $am_max_uid; then
                   10164:          AC_MSG_RESULT([yes])
                   10165:       else
                   10166:          AC_MSG_RESULT([no])
                   10167:          _am_tools=none
                   10168:       fi
                   10169:       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
                   10170:       if test $am_gid -le $am_max_gid; then
                   10171:          AC_MSG_RESULT([yes])
                   10172:       else
                   10173:         AC_MSG_RESULT([no])
                   10174:         _am_tools=none
                   10175:       fi],
                   10176:
                   10177:   [pax],
                   10178:     [],
                   10179:
                   10180:   [m4_fatal([Unknown tar format])])
                   10181:
                   10182:   AC_MSG_CHECKING([how to create a $1 tar archive])
                   10183:
                   10184:   # Go ahead even if we have the value already cached.  We do so because we
                   10185:   # need to set the values for the 'am__tar' and 'am__untar' variables.
                   10186:   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
                   10187:
                   10188:   for _am_tool in $_am_tools; do
                   10189:     case $_am_tool in
                   10190:     gnutar)
                   10191:       for _am_tar in tar gnutar gtar; do
                   10192:         AM_RUN_LOG([$_am_tar --version]) && break
                   10193:       done
                   10194:       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
                   10195:       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
                   10196:       am__untar="$_am_tar -xf -"
                   10197:       ;;
                   10198:     plaintar)
                   10199:       # Must skip GNU tar: if it does not support --format= it doesn't create
                   10200:       # ustar tarball either.
                   10201:       (tar --version) >/dev/null 2>&1 && continue
                   10202:       am__tar='tar chf - "$$tardir"'
                   10203:       am__tar_='tar chf - "$tardir"'
                   10204:       am__untar='tar xf -'
                   10205:       ;;
                   10206:     pax)
                   10207:       am__tar='pax -L -x $1 -w "$$tardir"'
                   10208:       am__tar_='pax -L -x $1 -w "$tardir"'
                   10209:       am__untar='pax -r'
                   10210:       ;;
                   10211:     cpio)
                   10212:       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
                   10213:       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
                   10214:       am__untar='cpio -i -H $1 -d'
                   10215:       ;;
                   10216:     none)
                   10217:       am__tar=false
                   10218:       am__tar_=false
                   10219:       am__untar=false
                   10220:       ;;
                   10221:     esac
                   10222:
                   10223:     # If the value was cached, stop now.  We just wanted to have am__tar
                   10224:     # and am__untar set.
                   10225:     test -n "${am_cv_prog_tar_$1}" && break
                   10226:
                   10227:     # tar/untar a dummy directory, and stop if the command works.
                   10228:     rm -rf conftest.dir
                   10229:     mkdir conftest.dir
                   10230:     echo GrepMe > conftest.dir/file
                   10231:     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
                   10232:     rm -rf conftest.dir
                   10233:     if test -s conftest.tar; then
                   10234:       AM_RUN_LOG([$am__untar <conftest.tar])
                   10235:       AM_RUN_LOG([cat conftest.dir/file])
                   10236:       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
                   10237:     fi
                   10238:   done
                   10239:   rm -rf conftest.dir
                   10240:
                   10241:   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
                   10242:   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
                   10243:
                   10244: AC_SUBST([am__tar])
                   10245: AC_SUBST([am__untar])
                   10246: ]) # _AM_PROG_TAR
                   10247:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>