1 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
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.
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
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
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'.])])
23 # Portability macros for glibc argz. -*- Autoconf -*-
25 # Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
26 # Written by Gary V. Vaughan <gary@gnu.org>
28 # This file is free software; the Free Software Foundation gives
29 # unlimited permission to copy and/or distribute it, with or without
30 # modifications, as long as this notice is preserved.
34 AC_DEFUN([gl_FUNC_ARGZ],
37 AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
39 AC_CHECK_TYPES([error_t],
41 [AC_DEFINE([error_t], [int],
42 [Define to a type to use for `error_t' if it is not otherwise available.])
43 AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
44 does not typedef error_t.])],
45 [#if defined(HAVE_ARGZ_H)
50 AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
51 argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
53 dnl if have system argz functions, allow forced use of
54 dnl libltdl-supplied implementation (and default to do so
55 dnl on "known bad" systems). Could use a runtime check, but
56 dnl (a) detecting malloc issues is notoriously unreliable
57 dnl (b) only known system that declares argz functions,
58 dnl provides them, yet they are broken, is cygwin
59 dnl releases prior to 16-Mar-2007 (1.5.24 and earlier)
60 dnl So, it's more straightforward simply to special case
61 dnl this for known bad systems.
62 AS_IF([test -z "$ARGZ_H"],
64 [if argz actually works],
65 [lt_cv_sys_argz_works],
68 lt_cv_sys_argz_works=no
69 if test "$cross_compiling" != no; then
70 lt_cv_sys_argz_works="guessing no"
72 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
75 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
80 if test "$lt_os_major" -gt 1 \
81 || { test "$lt_os_major" -eq 1 \
82 && { test "$lt_os_minor" -gt 5 \
83 || { test "$lt_os_minor" -eq 5 \
84 && test "$lt_os_micro" -gt 24; }; }; }; then
85 lt_cv_sys_argz_works=yes
89 *) lt_cv_sys_argz_works=yes ;;
91 AS_IF([test "$lt_cv_sys_argz_works" = yes],
92 [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
93 [This value is set to 1 to indicate that the system argz facility works])],
100 # Prerequisites of lib/argz.c.
101 AC_DEFUN([gl_PREREQ_ARGZ], [:])
103 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
106 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
108 # Written by Gordon Matzigkeit, 1996
110 # This file is free software; the Free Software Foundation gives
111 # unlimited permission to copy and/or distribute it, with or without
112 # modifications, as long as this notice is preserved.
114 m4_define([_LT_COPYING], [dnl
115 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
116 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
118 # Written by Gordon Matzigkeit, 1996
120 # This file is part of GNU Libtool.
122 # GNU Libtool is free software; you can redistribute it and/or
123 # modify it under the terms of the GNU General Public License as
124 # published by the Free Software Foundation; either version 2 of
125 # the License, or (at your option) any later version.
127 # As a special exception to the GNU General Public License,
128 # if you distribute this file as part of a program or library that
129 # is built using GNU Libtool, you may include this file under the
130 # same distribution terms that you use for the rest of that program.
132 # GNU Libtool is distributed in the hope that it will be useful,
133 # but WITHOUT ANY WARRANTY; without even the implied warranty of
134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
135 # GNU General Public License for more details.
137 # You should have received a copy of the GNU General Public License
138 # along with GNU Libtool; see the file COPYING. If not, a copy
139 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
140 # obtained by writing to the Free Software Foundation, Inc.,
141 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
149 # Complain and exit if this libtool version is less that VERSION.
150 m4_defun([LT_PREREQ],
151 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
153 [m4_fatal([Libtool version $1 or higher is required],
160 # Complain if the absolute build directory name contains unusual characters
161 m4_defun([_LT_CHECK_BUILDDIR],
164 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
172 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
173 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
174 AC_BEFORE([$0], [LT_LANG])dnl
175 AC_BEFORE([$0], [LT_OUTPUT])dnl
176 AC_BEFORE([$0], [LTDL_INIT])dnl
177 m4_require([_LT_CHECK_BUILDDIR])dnl
179 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
180 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
181 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
182 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
183 dnl unless we require an AC_DEFUNed macro:
184 AC_REQUIRE([LTOPTIONS_VERSION])dnl
185 AC_REQUIRE([LTSUGAR_VERSION])dnl
186 AC_REQUIRE([LTVERSION_VERSION])dnl
187 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
188 m4_require([_LT_PROG_LTMAIN])dnl
190 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
193 _LT_SET_OPTIONS([$0], [$1])
195 # This can be used to rebuild libtool when needed
196 LIBTOOL_DEPS="$ltmain"
198 # Always use our own libtool.
199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
209 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
210 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
211 dnl aclocal-1.4 backwards compatibility:
212 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
213 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
216 # _LT_CC_BASENAME(CC)
217 # -------------------
218 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
219 m4_defun([_LT_CC_BASENAME],
220 [for cc_temp in $1""; do
222 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
223 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
228 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
232 # _LT_FILEUTILS_DEFAULTS
233 # ----------------------
234 # It is okay to use these file commands and assume they have been set
235 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
236 m4_defun([_LT_FILEUTILS_DEFAULTS],
240 ])# _LT_FILEUTILS_DEFAULTS
245 m4_defun([_LT_SETUP],
246 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
247 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
248 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
249 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
251 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
253 _LT_DECL([], [host_alias], [0], [The host system])dnl
254 _LT_DECL([], [host], [0])dnl
255 _LT_DECL([], [host_os], [0])dnl
257 _LT_DECL([], [build_alias], [0], [The build system])dnl
258 _LT_DECL([], [build], [0])dnl
259 _LT_DECL([], [build_os], [0])dnl
261 AC_REQUIRE([AC_PROG_CC])dnl
262 AC_REQUIRE([LT_PATH_LD])dnl
263 AC_REQUIRE([LT_PATH_NM])dnl
265 AC_REQUIRE([AC_PROG_LN_S])dnl
266 test -z "$LN_S" && LN_S="ln -s"
267 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
269 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
270 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
271 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
273 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
274 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
275 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
276 m4_require([_LT_CMD_RELOAD])dnl
277 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
278 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
279 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
280 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
281 m4_require([_LT_WITH_SYSROOT])dnl
283 _LT_CONFIG_LIBTOOL_INIT([
284 # See if we are running on zsh, and set the options which allow our
285 # commands through without removal of \ escapes INIT.
286 if test -n "\${ZSH_VERSION+set}" ; then
290 if test -n "${ZSH_VERSION+set}" ; then
296 m4_require([_LT_TAG_COMPILER])dnl
300 # AIX sometimes has problems with the GCC collect2 program. For some
301 # reason, if we set the COLLECT_NAMES environment variable, the problems
302 # vanish in a puff of smoke.
303 if test "X${COLLECT_NAMES+set}" != Xset; then
314 # All known linkers require a `.a' archive for static linking (except MSVC,
315 # which needs '.lib').
318 with_gnu_ld="$lt_cv_prog_gnu_ld"
323 # Set sane defaults for various variables
324 test -z "$CC" && CC=cc
325 test -z "$LTCC" && LTCC=$CC
326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
327 test -z "$LD" && LD=ld
328 test -z "$ac_objext" && ac_objext=o
330 _LT_CC_BASENAME([$compiler])
332 # Only perform the check for file, if the check method requires it
333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
334 case $deplibs_check_method in
336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
342 # Use C for the default configuration in the libtool script
343 LT_SUPPORTED_TAG([CC])
345 _LT_LANG_DEFAULT_CONFIG
350 # _LT_PREPARE_SED_QUOTE_VARS
351 # --------------------------
352 # Define a few sed substitution that help us do robust quoting.
353 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
354 [# Backslashify metacharacters that are still active within
355 # double-quoted strings.
356 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
358 # Same as above, but do not quote variable references.
359 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
361 # Sed substitution to delay expansion of an escaped shell variable in a
362 # double_quote_subst'ed string.
363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
365 # Sed substitution to delay expansion of an escaped single quote.
366 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
368 # Sed substitution to avoid accidental globbing in evaled expressions
369 no_glob_subst='s/\*/\\\*/g'
374 # Note that this code is called both from `configure', and `config.status'
375 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
376 # `config.status' has no value for ac_aux_dir unless we are using Automake,
377 # so we pass a copy along to make sure it has a sensible value anyway.
378 m4_defun([_LT_PROG_LTMAIN],
379 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
380 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
381 ltmain="$ac_aux_dir/ltmain.sh"
386 # So that we can recreate a full libtool script including additional
387 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
388 # in macros and then make a single call at the end using the `libtool'
392 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
393 # ----------------------------------------
394 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
395 m4_define([_LT_CONFIG_LIBTOOL_INIT],
397 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
402 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
405 # _LT_CONFIG_LIBTOOL([COMMANDS])
406 # ------------------------------
407 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
408 m4_define([_LT_CONFIG_LIBTOOL],
410 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
415 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
418 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
419 # -----------------------------------------------------
420 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
421 [_LT_CONFIG_LIBTOOL([$1])
422 _LT_CONFIG_LIBTOOL_INIT([$2])
426 # _LT_FORMAT_COMMENT([COMMENT])
427 # -----------------------------
428 # Add leading comment marks to the start of each line, and a trailing
429 # full-stop to the whole comment if one is not present already.
430 m4_define([_LT_FORMAT_COMMENT],
432 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
433 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
440 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
441 # -------------------------------------------------------------------
442 # CONFIGNAME is the name given to the value in the libtool script.
443 # VARNAME is the (base) name used in the configure script.
444 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
445 # VARNAME. Any other value will be used directly.
446 m4_define([_LT_DECL],
447 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
448 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
449 [m4_ifval([$1], [$1], [$2])])
450 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
452 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
453 lt_dict_add_subkey([lt_decl_dict], [$2],
454 [tagged?], [m4_ifval([$5], [yes], [no])])])
458 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
459 # --------------------------------------------------------
460 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
463 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
464 # ------------------------------------------------
465 m4_define([lt_decl_tag_varnames],
466 [_lt_decl_filter([tagged?], [yes], $@)])
469 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
470 # ---------------------------------------------------------
471 m4_define([_lt_decl_filter],
473 [0], [m4_fatal([$0: too few arguments: $#])],
474 [1], [m4_fatal([$0: too few arguments: $#: $1])],
475 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
476 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
477 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
481 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
482 # --------------------------------------------------
483 m4_define([lt_decl_quote_varnames],
484 [_lt_decl_filter([value], [1], $@)])
487 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
488 # ---------------------------------------------------
489 m4_define([lt_decl_dquote_varnames],
490 [_lt_decl_filter([value], [2], $@)])
493 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
494 # ---------------------------------------------------
495 m4_define([lt_decl_varnames_tagged],
496 [m4_assert([$# <= 2])dnl
497 _$0(m4_quote(m4_default([$1], [[, ]])),
498 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
499 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
500 m4_define([_lt_decl_varnames_tagged],
501 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
504 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
505 # ------------------------------------------------
506 m4_define([lt_decl_all_varnames],
507 [_$0(m4_quote(m4_default([$1], [[, ]])),
509 m4_quote(lt_decl_varnames),
510 m4_quote(m4_shift($@))))[]dnl
512 m4_define([_lt_decl_all_varnames],
513 [lt_join($@, lt_decl_varnames_tagged([$1],
514 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
518 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
519 # ------------------------------------
520 # Quote a variable value, and forward it to `config.status' so that its
521 # declaration there will have the same value as in `configure'. VARNAME
522 # must have a single quote delimited value for this to work.
523 m4_define([_LT_CONFIG_STATUS_DECLARE],
524 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
527 # _LT_CONFIG_STATUS_DECLARATIONS
528 # ------------------------------
529 # We delimit libtool config variables with single quotes, so when
530 # we write them to config.status, we have to be sure to quote all
531 # embedded single quotes properly. In configure, this macro expands
532 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
534 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
535 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
536 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
537 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
542 # Output comment and list of tags supported by the script
543 m4_defun([_LT_LIBTOOL_TAGS],
544 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
545 available_tags="_LT_TAGS"dnl
549 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
550 # -----------------------------------
551 # Extract the dictionary values for VARNAME (optionally with TAG) and
552 # expand to a commented shell variable setting:
554 # # Some comment about what VAR is for.
555 # visible_name=$lt_internal_name
556 m4_define([_LT_LIBTOOL_DECLARE],
557 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
558 [description])))[]dnl
559 m4_pushdef([_libtool_name],
560 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
561 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
562 [0], [_libtool_name=[$]$1],
563 [1], [_libtool_name=$lt_[]$1],
564 [2], [_libtool_name=$lt_[]$1],
565 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
566 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
570 # _LT_LIBTOOL_CONFIG_VARS
571 # -----------------------
572 # Produce commented declarations of non-tagged libtool config variables
573 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
574 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
575 # section) are produced by _LT_LIBTOOL_TAG_VARS.
576 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
577 [m4_foreach([_lt_var],
578 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
579 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
582 # _LT_LIBTOOL_TAG_VARS(TAG)
583 # -------------------------
584 m4_define([_LT_LIBTOOL_TAG_VARS],
585 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
586 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
589 # _LT_TAGVAR(VARNAME, [TAGNAME])
590 # ------------------------------
591 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
594 # _LT_CONFIG_COMMANDS
595 # -------------------
596 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
597 # variables for single and double quote escaping we saved from calls
598 # to _LT_DECL, we can put quote escaped variables declarations
599 # into `config.status', and then the shell code to quote escape them in
600 # for loops in `config.status'. Finally, any additional code accumulated
601 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
602 m4_defun([_LT_CONFIG_COMMANDS],
603 [AC_PROVIDE_IFELSE([LT_OUTPUT],
604 dnl If the libtool generation code has been placed in $CONFIG_LT,
605 dnl instead of duplicating it all over again into config.status,
606 dnl then we will have config.status run $CONFIG_LT later, so it
607 dnl needs to know what name is stored there:
608 [AC_CONFIG_COMMANDS([libtool],
609 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
610 dnl If the libtool generation code is destined for config.status,
611 dnl expand the accumulated commands and init code now:
612 [AC_CONFIG_COMMANDS([libtool],
613 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
614 ])#_LT_CONFIG_COMMANDS
618 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
621 # The HP-UX ksh and POSIX shell print the target directory to stdout
623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
625 sed_quote_subst='$sed_quote_subst'
626 double_quote_subst='$double_quote_subst'
627 delay_variable_subst='$delay_variable_subst'
628 _LT_CONFIG_STATUS_DECLARATIONS
631 compiler='$compiler_DEFAULT'
633 # A function that is used when there is no print builtin or printf.
634 func_fallback_echo ()
636 eval 'cat <<_LTECHO_EOF
641 # Quote evaled strings.
642 for var in lt_decl_all_varnames([[ \
643 ]], lt_decl_quote_varnames); do
644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
645 *[[\\\\\\\`\\"\\\$]]*)
646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
654 # Double-quote double-evaled strings.
655 for var in lt_decl_all_varnames([[ \
656 ]], lt_decl_dquote_varnames); do
657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
658 *[[\\\\\\\`\\"\\\$]]*)
659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
667 _LT_OUTPUT_LIBTOOL_INIT
670 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
671 # ------------------------------------
672 # Generate a child script FILE with all initialization necessary to
673 # reuse the environment learned by the parent script, and make the
674 # file executable. If COMMENT is supplied, it is inserted after the
675 # `#!' sequence but before initialization text begins. After this
676 # macro, additional text can be appended to FILE to form the body of
677 # the child script. The macro ends with non-zero status if the
678 # file could not be fully written (such as if the disk is full).
679 m4_ifdef([AS_INIT_GENERATED],
680 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
681 [m4_defun([_LT_GENERATED_FILE_INIT],
682 [m4_require([AS_PREPARE])]dnl
683 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
685 cat >$1 <<_ASEOF || lt_write_fail=1
687 # Generated by $as_me.
689 SHELL=\${CONFIG_SHELL-$SHELL}
692 cat >>$1 <<\_ASEOF || lt_write_fail=1
695 exec AS_MESSAGE_FD>&1
697 test $lt_write_fail = 0 && chmod +x $1[]dnl
698 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
702 # This macro allows early generation of the libtool script (before
703 # AC_OUTPUT is called), incase it is used in configure for compilation
705 AC_DEFUN([LT_OUTPUT],
706 [: ${CONFIG_LT=./config.lt}
707 AC_MSG_NOTICE([creating $CONFIG_LT])
708 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
709 [# Run this file to recreate a libtool stub with the current configuration.])
711 cat >>"$CONFIG_LT" <<\_LTEOF
713 exec AS_MESSAGE_LOG_FD>>config.log
716 AS_BOX([Running $as_me.])
717 } >&AS_MESSAGE_LOG_FD
720 \`$as_me' creates a local libtool stub from the current configuration,
721 for use in further configure time tests before the real libtool is
724 Usage: $[0] [[OPTIONS]]
726 -h, --help print this help, then exit
727 -V, --version print version number, then exit
728 -q, --quiet do not print progress messages
729 -d, --debug don't remove temporary files
731 Report bugs to <bug-libtool@gnu.org>."
734 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
735 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
736 configured by $[0], generated by m4_PACKAGE_STRING.
738 Copyright (C) 2011 Free Software Foundation, Inc.
739 This config.lt script is free software; the Free Software Foundation
740 gives unlimited permision to copy, distribute and modify it."
745 --version | --v* | -V )
746 echo "$lt_cl_version"; exit 0 ;;
748 echo "$lt_cl_help"; exit 0 ;;
749 --debug | --d* | -d )
751 --quiet | --q* | --silent | --s* | -q )
754 -*) AC_MSG_ERROR([unrecognized option: $[1]
755 Try \`$[0] --help' for more information.]) ;;
757 *) AC_MSG_ERROR([unrecognized argument: $[1]
758 Try \`$[0] --help' for more information.]) ;;
763 if $lt_cl_silent; then
764 exec AS_MESSAGE_FD>/dev/null
768 cat >>"$CONFIG_LT" <<_LTEOF
769 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
772 cat >>"$CONFIG_LT" <<\_LTEOF
773 AC_MSG_NOTICE([creating $ofile])
774 _LT_OUTPUT_LIBTOOL_COMMANDS
777 chmod +x "$CONFIG_LT"
779 # configure is writing to config.log, but config.lt does its own redirection,
780 # appending to config.log, which fails on DOS, as config.log is still kept
781 # open by configure. Here we exec the FD to /dev/null, effectively closing
782 # config.log, so it can be properly (re)opened and appended to by config.lt.
784 test "$silent" = yes &&
785 lt_config_lt_args="$lt_config_lt_args --quiet"
786 exec AS_MESSAGE_LOG_FD>/dev/null
787 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
788 exec AS_MESSAGE_LOG_FD>>config.log
789 $lt_cl_success || AS_EXIT(1)
795 # If TAG is the built-in tag, create an initial libtool script with a
796 # default configuration from the untagged config vars. Otherwise add code
797 # to config.status for appending the configuration named by TAG from the
798 # matching tagged config vars.
799 m4_defun([_LT_CONFIG],
800 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
801 _LT_CONFIG_SAVE_COMMANDS([
802 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
803 m4_if(_LT_TAG, [C], [
804 # See if we are running on zsh, and set the options which allow our
805 # commands through without removal of \ escapes.
806 if test -n "${ZSH_VERSION+set}" ; then
811 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
814 cat <<_LT_EOF >> "$cfgfile"
817 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
818 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
820 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
825 # ### BEGIN LIBTOOL CONFIG
826 _LT_LIBTOOL_CONFIG_VARS
828 # ### END LIBTOOL CONFIG
834 cat <<\_LT_EOF >> "$cfgfile"
835 # AIX sometimes has problems with the GCC collect2 program. For some
836 # reason, if we set the COLLECT_NAMES environment variable, the problems
837 # vanish in a puff of smoke.
838 if test "X${COLLECT_NAMES+set}" != Xset; then
848 # We use sed instead of cat because bash on DJGPP gets confused if
849 # if finds mixed CR/LF and LF-only lines. Since sed operates in
850 # text mode, it properly converts lines to CR/LF. This bash problem
851 # is reportedly fixed, but why not run on old versions too?
852 sed '$q' "$ltmain" >> "$cfgfile" \
853 || (rm -f "$cfgfile"; exit 1)
855 _LT_PROG_REPLACE_SHELLFNS
857 mv -f "$cfgfile" "$ofile" ||
858 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
861 [cat <<_LT_EOF >> "$ofile"
863 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
864 dnl in a comment (ie after a #).
865 # ### BEGIN LIBTOOL TAG CONFIG: $1
866 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
867 # ### END LIBTOOL TAG CONFIG: $1
874 TIMESTAMP='$TIMESTAMP'
877 ])dnl /_LT_CONFIG_SAVE_COMMANDS
881 # LT_SUPPORTED_TAG(TAG)
882 # ---------------------
883 # Trace this macro to discover what tags are supported by the libtool
884 # --tag option, using:
885 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
886 AC_DEFUN([LT_SUPPORTED_TAG], [])
889 # C support is built-in for now
890 m4_define([_LT_LANG_C_enabled], [])
891 m4_define([_LT_TAGS], [])
896 # Enable libtool support for the given language if not already enabled.
898 [AC_BEFORE([$0], [LT_OUTPUT])dnl
901 [C++], [_LT_LANG(CXX)],
902 [Go], [_LT_LANG(GO)],
903 [Java], [_LT_LANG(GCJ)],
904 [Fortran 77], [_LT_LANG(F77)],
905 [Fortran], [_LT_LANG(FC)],
906 [Windows Resource], [_LT_LANG(RC)],
907 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
909 [m4_fatal([$0: unsupported language: "$1"])])])dnl
916 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
917 [LT_SUPPORTED_TAG([$1])dnl
918 m4_append([_LT_TAGS], [$1 ])dnl
919 m4_define([_LT_LANG_]$1[_enabled], [])dnl
920 _LT_LANG_$1_CONFIG($1)])dnl
924 m4_ifndef([AC_PROG_GO], [
925 # NOTE: This macro has been submitted for inclusion into #
926 # GNU Autoconf as AC_PROG_GO. When it is available in #
927 # a released version of Autoconf we should remove this #
928 # macro and use it instead. #
929 m4_defun([AC_PROG_GO],
931 AC_ARG_VAR([GOC], [Go compiler command])dnl
932 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
933 _AC_ARG_VAR_LDFLAGS()dnl
934 AC_CHECK_TOOL(GOC, gccgo)
935 if test -z "$GOC"; then
936 if test -n "$ac_tool_prefix"; then
937 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
940 if test -z "$GOC"; then
941 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
947 # _LT_LANG_DEFAULT_CONFIG
948 # -----------------------
949 m4_defun([_LT_LANG_DEFAULT_CONFIG],
950 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
952 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
954 AC_PROVIDE_IFELSE([AC_PROG_F77],
956 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
958 AC_PROVIDE_IFELSE([AC_PROG_FC],
960 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
962 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
963 dnl pulling things in needlessly.
964 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
966 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
968 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
970 [m4_ifdef([AC_PROG_GCJ],
971 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
972 m4_ifdef([A][M_PROG_GCJ],
973 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
974 m4_ifdef([LT_PROG_GCJ],
975 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
977 AC_PROVIDE_IFELSE([AC_PROG_GO],
979 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
981 AC_PROVIDE_IFELSE([LT_PROG_RC],
983 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
984 ])# _LT_LANG_DEFAULT_CONFIG
987 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
988 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
989 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
990 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
991 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
992 dnl aclocal-1.4 backwards compatibility:
993 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
994 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
995 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
996 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
997 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1002 m4_defun([_LT_TAG_COMPILER],
1003 [AC_REQUIRE([AC_PROG_CC])dnl
1005 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1006 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1007 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1008 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1010 # If no C compiler was specified, use CC.
1013 # If no C compiler flags were specified, use CFLAGS.
1014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1016 # Allow CC to be a program name with arguments.
1018 ])# _LT_TAG_COMPILER
1021 # _LT_COMPILER_BOILERPLATE
1022 # ------------------------
1023 # Check for compiler boilerplate output or warnings with
1024 # the simple compiler test code.
1025 m4_defun([_LT_COMPILER_BOILERPLATE],
1026 [m4_require([_LT_DECL_SED])dnl
1027 ac_outfile=conftest.$ac_objext
1028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1030 _lt_compiler_boilerplate=`cat conftest.err`
1032 ])# _LT_COMPILER_BOILERPLATE
1035 # _LT_LINKER_BOILERPLATE
1036 # ----------------------
1037 # Check for linker boilerplate output or warnings with
1038 # the simple link test code.
1039 m4_defun([_LT_LINKER_BOILERPLATE],
1040 [m4_require([_LT_DECL_SED])dnl
1041 ac_outfile=conftest.$ac_objext
1042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1044 _lt_linker_boilerplate=`cat conftest.err`
1046 ])# _LT_LINKER_BOILERPLATE
1048 # _LT_REQUIRED_DARWIN_CHECKS
1049 # -------------------------
1050 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1052 rhapsody* | darwin*)
1053 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1054 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1055 AC_CHECK_TOOL([LIPO], [lipo], [:])
1056 AC_CHECK_TOOL([OTOOL], [otool], [:])
1057 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1058 _LT_DECL([], [DSYMUTIL], [1],
1059 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1060 _LT_DECL([], [NMEDIT], [1],
1061 [Tool to change global to local symbols on Mac OS X])
1062 _LT_DECL([], [LIPO], [1],
1063 [Tool to manipulate fat objects and archives on Mac OS X])
1064 _LT_DECL([], [OTOOL], [1],
1065 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1066 _LT_DECL([], [OTOOL64], [1],
1067 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1069 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1070 [lt_cv_apple_cc_single_mod=no
1071 if test -z "${LT_MULTI_MODULE}"; then
1072 # By default we will add the -single_module flag. You can override
1073 # by either setting the environment variable LT_MULTI_MODULE
1074 # non-empty at configure time, or by adding -multi_module to the
1076 rm -rf libconftest.dylib*
1077 echo "int foo(void){return 1;}" > conftest.c
1078 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1079 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1080 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1081 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1083 # If there is a non-empty error log, and "single_module"
1084 # appears in it, assume the flag caused a linker warning
1085 if test -s conftest.err && $GREP single_module conftest.err; then
1086 cat conftest.err >&AS_MESSAGE_LOG_FD
1087 # Otherwise, if the output was created with a 0 exit code from
1088 # the compiler, it worked.
1089 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1090 lt_cv_apple_cc_single_mod=yes
1092 cat conftest.err >&AS_MESSAGE_LOG_FD
1094 rm -rf libconftest.dylib*
1098 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1099 [lt_cv_ld_exported_symbols_list],
1100 [lt_cv_ld_exported_symbols_list=no
1101 save_LDFLAGS=$LDFLAGS
1102 echo "_main" > conftest.sym
1103 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1104 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1105 [lt_cv_ld_exported_symbols_list=yes],
1106 [lt_cv_ld_exported_symbols_list=no])
1107 LDFLAGS="$save_LDFLAGS"
1110 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1111 [lt_cv_ld_force_load=no
1112 cat > conftest.c << _LT_EOF
1113 int forced_loaded() { return 2;}
1115 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1116 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1117 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1118 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1119 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1120 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1121 cat > conftest.c << _LT_EOF
1122 int main() { return 0;}
1124 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1125 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1127 if test -s conftest.err && $GREP force_load conftest.err; then
1128 cat conftest.err >&AS_MESSAGE_LOG_FD
1129 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1130 lt_cv_ld_force_load=yes
1132 cat conftest.err >&AS_MESSAGE_LOG_FD
1134 rm -f conftest.err libconftest.a conftest conftest.c
1135 rm -rf conftest.dSYM
1138 rhapsody* | darwin1.[[012]])
1139 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1141 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1142 darwin*) # darwin 5.x on
1143 # if running on 10.5 or later, the deployment target defaults
1144 # to the OS version, if on x86, and 10.4, the deployment
1145 # target defaults to 10.4. Don't you love it?
1146 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1147 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1156 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1157 _lt_dar_single_mod='$single_module'
1159 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1160 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1162 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1164 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1165 _lt_dsymutil='~$DSYMUTIL $lib || :'
1174 # _LT_DARWIN_LINKER_FEATURES([TAG])
1175 # ---------------------------------
1176 # Checks for linker and compiler features on darwin
1177 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1179 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1180 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1181 _LT_TAGVAR(hardcode_direct, $1)=no
1182 _LT_TAGVAR(hardcode_automatic, $1)=yes
1183 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1184 if test "$lt_cv_ld_force_load" = "yes"; then
1185 _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\"`'
1186 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1187 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1189 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1191 _LT_TAGVAR(link_all_deplibs, $1)=yes
1192 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1193 case $cc_basename in
1194 ifort*) _lt_dar_can_shared=yes ;;
1195 *) _lt_dar_can_shared=$GCC ;;
1197 if test "$_lt_dar_can_shared" = "yes"; then
1198 output_verbose_link_cmd=func_echo_all
1199 _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}"
1200 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1201 _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}"
1202 _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}"
1204 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1205 _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}"
1206 _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}"
1210 _LT_TAGVAR(ld_shlibs, $1)=no
1214 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1215 # ----------------------------------
1216 # Links a minimal program and checks the executable
1217 # for the system default hardcoded library path. In most cases,
1218 # this is /usr/lib:/lib, but when the MPI compilers are used
1219 # the location of the communication and MPI libs are included too.
1220 # If we don't find anything, use the default library path according
1221 # to the aix ld manual.
1222 # Store the results from the different compilers for each TAGNAME.
1223 # Allow to override them for all tags through lt_cv_aix_libpath.
1224 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1225 [m4_require([_LT_DECL_SED])dnl
1226 if test "${lt_cv_aix_libpath+set}" = set; then
1227 aix_libpath=$lt_cv_aix_libpath
1229 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1230 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1231 lt_aix_libpath_sed='[
1232 /Import File Strings/,/^$/ {
1234 s/^0 *\([^ ]*\) *$/\1/
1238 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1239 # Check for a 64-bit object if we didn't find anything.
1240 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1241 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1243 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1244 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1247 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1249 ])# _LT_SYS_MODULE_PATH_AIX
1252 # _LT_SHELL_INIT(ARG)
1253 # -------------------
1254 m4_define([_LT_SHELL_INIT],
1255 [m4_divert_text([M4SH-INIT], [$1
1256 ])])# _LT_SHELL_INIT
1260 # _LT_PROG_ECHO_BACKSLASH
1261 # -----------------------
1262 # Find how we can fake an echo command that does not interpret backslash.
1263 # In particular, with Autoconf 2.60 or later we add some code to the start
1264 # of the generated configure script which will find a shell with a builtin
1265 # printf (which we can use as an echo command).
1266 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1267 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1268 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1269 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1271 AC_MSG_CHECKING([how to print strings])
1272 # Test print first, because it will be a builtin if present.
1273 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1274 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1276 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1279 # Use this function as a fallback that always works.
1280 func_fallback_echo ()
1282 eval 'cat <<_LTECHO_EOF
1286 ECHO='func_fallback_echo'
1289 # func_echo_all arg...
1290 # Invoke $ECHO with all args, space-separated.
1297 printf*) AC_MSG_RESULT([printf]) ;;
1298 print*) AC_MSG_RESULT([print -r]) ;;
1299 *) AC_MSG_RESULT([cat]) ;;
1302 m4_ifdef([_AS_DETECT_SUGGESTED],
1303 [_AS_DETECT_SUGGESTED([
1304 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1305 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1306 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1308 PATH=/empty FPATH=/empty; export PATH FPATH
1309 test "X`printf %s $ECHO`" = "X$ECHO" \
1310 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1312 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1313 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1314 ])# _LT_PROG_ECHO_BACKSLASH
1319 AC_DEFUN([_LT_WITH_SYSROOT],
1320 [AC_MSG_CHECKING([for sysroot])
1321 AC_ARG_WITH([sysroot],
1322 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1323 (or the compiler's sysroot if not specified).],
1324 [], [with_sysroot=no])
1326 dnl lt_sysroot will always be passed unquoted. We quote it here
1327 dnl in case the user passed a directory name.
1329 case ${with_sysroot} in #(
1331 if test "$GCC" = yes; then
1332 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1336 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1341 AC_MSG_RESULT([${with_sysroot}])
1342 AC_MSG_ERROR([The sysroot must be an absolute path.])
1346 AC_MSG_RESULT([${lt_sysroot:-no}])
1347 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1348 [dependent libraries, and in which our libraries should be installed.])])
1352 m4_defun([_LT_ENABLE_LOCK],
1353 [AC_ARG_ENABLE([libtool-lock],
1354 [AS_HELP_STRING([--disable-libtool-lock],
1355 [avoid locking (might break parallel builds)])])
1356 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1358 # Some flags need to be propagated to the compiler or linker for good
1362 # Find out which ABI we are using.
1363 echo 'int i;' > conftest.$ac_ext
1364 if AC_TRY_EVAL(ac_compile); then
1365 case `/usr/bin/file conftest.$ac_objext` in
1377 # Find out which ABI we are using.
1378 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1379 if AC_TRY_EVAL(ac_compile); then
1380 if test "$lt_cv_prog_gnu_ld" = yes; then
1381 case `/usr/bin/file conftest.$ac_objext` in
1383 LD="${LD-ld} -melf32bsmip"
1386 LD="${LD-ld} -melf32bmipn32"
1389 LD="${LD-ld} -melf64bmip"
1393 case `/usr/bin/file conftest.$ac_objext` in
1409 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1410 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1411 # Find out which ABI we are using.
1412 echo 'int i;' > conftest.$ac_ext
1413 if AC_TRY_EVAL(ac_compile); then
1414 case `/usr/bin/file conftest.o` in
1417 x86_64-*kfreebsd*-gnu)
1418 LD="${LD-ld} -m elf_i386_fbsd"
1421 LD="${LD-ld} -m elf_i386"
1424 LD="${LD-ld} -m elf32lppclinux"
1427 LD="${LD-ld} -m elf32ppclinux"
1430 LD="${LD-ld} -m elf_s390"
1433 LD="${LD-ld} -m elf32_sparc"
1439 x86_64-*kfreebsd*-gnu)
1440 LD="${LD-ld} -m elf_x86_64_fbsd"
1443 LD="${LD-ld} -m elf_x86_64"
1446 LD="${LD-ld} -m elf64lppc"
1449 LD="${LD-ld} -m elf64ppc"
1451 s390*-*linux*|s390*-*tpf*)
1452 LD="${LD-ld} -m elf64_s390"
1455 LD="${LD-ld} -m elf64_sparc"
1465 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1466 SAVE_CFLAGS="$CFLAGS"
1467 CFLAGS="$CFLAGS -belf"
1468 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1470 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1474 CFLAGS="$SAVE_CFLAGS"
1478 # Find out which ABI we are using.
1479 echo 'int i;' > conftest.$ac_ext
1480 if AC_TRY_EVAL(ac_compile); then
1481 case `/usr/bin/file conftest.o` in
1483 case $lt_cv_prog_gnu_ld in
1487 LD="${LD-ld} -m elf_x86_64"
1490 LD="${LD-ld} -m elf64_sparc"
1493 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1494 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1499 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1511 need_locks="$enable_libtool_lock"
1517 m4_defun([_LT_PROG_AR],
1518 [AC_CHECK_TOOLS(AR, [ar], false)
1521 _LT_DECL([], [AR], [1], [The archiver])
1522 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1524 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1525 [lt_cv_ar_at_file=no
1526 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1527 [echo conftest.$ac_objext > conftest.lst
1528 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1529 AC_TRY_EVAL([lt_ar_try])
1530 if test "$ac_status" -eq 0; then
1531 # Ensure the archiver fails upon bogus file names.
1532 rm -f conftest.$ac_objext libconftest.a
1533 AC_TRY_EVAL([lt_ar_try])
1534 if test "$ac_status" -ne 0; then
1538 rm -f conftest.* libconftest.a
1542 if test "x$lt_cv_ar_at_file" = xno; then
1545 archiver_list_spec=$lt_cv_ar_at_file
1547 _LT_DECL([], [archiver_list_spec], [1],
1548 [How to feed a file listing to the archiver])
1552 # _LT_CMD_OLD_ARCHIVE
1553 # -------------------
1554 m4_defun([_LT_CMD_OLD_ARCHIVE],
1557 AC_CHECK_TOOL(STRIP, strip, :)
1558 test -z "$STRIP" && STRIP=:
1559 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1561 AC_CHECK_TOOL(RANLIB, ranlib, :)
1562 test -z "$RANLIB" && RANLIB=:
1563 _LT_DECL([], [RANLIB], [1],
1564 [Commands used to install an old-style archive])
1566 # Determine commands to create old-style static archives.
1567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1568 old_postinstall_cmds='chmod 644 $oldlib'
1569 old_postuninstall_cmds=
1571 if test -n "$RANLIB"; then
1574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1577 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1580 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1585 lock_old_archive_extraction=yes ;;
1587 lock_old_archive_extraction=no ;;
1589 _LT_DECL([], [old_postinstall_cmds], [2])
1590 _LT_DECL([], [old_postuninstall_cmds], [2])
1591 _LT_TAGDECL([], [old_archive_cmds], [2],
1592 [Commands used to build an old-style archive])
1593 _LT_DECL([], [lock_old_archive_extraction], [0],
1594 [Whether to use a lock for old archive extraction])
1595 ])# _LT_CMD_OLD_ARCHIVE
1598 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1599 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1600 # ----------------------------------------------------------------
1601 # Check whether the given compiler option works
1602 AC_DEFUN([_LT_COMPILER_OPTION],
1603 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1604 m4_require([_LT_DECL_SED])dnl
1605 AC_CACHE_CHECK([$1], [$2],
1607 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1609 lt_compiler_flag="$3"
1610 # Insert the option either (1) after the last *FLAGS variable, or
1611 # (2) before a word containing "conftest.", or (3) at the end.
1612 # Note that $ac_compile itself does not contain backslashes and begins
1613 # with a dollar sign (not a hyphen), so the echo should work correctly.
1614 # The option is referenced via a variable to avoid confusing sed.
1615 lt_compile=`echo "$ac_compile" | $SED \
1616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1617 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1618 -e 's:$: $lt_compiler_flag:'`
1619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1620 (eval "$lt_compile" 2>conftest.err)
1622 cat conftest.err >&AS_MESSAGE_LOG_FD
1623 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1624 if (exit $ac_status) && test -s "$ac_outfile"; then
1625 # The compiler can only warn and ignore the option if not recognized
1626 # So say no if there are warnings other than the usual output.
1627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1636 if test x"[$]$2" = xyes; then
1637 m4_if([$5], , :, [$5])
1639 m4_if([$6], , :, [$6])
1641 ])# _LT_COMPILER_OPTION
1644 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1645 dnl aclocal-1.4 backwards compatibility:
1646 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1649 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1650 # [ACTION-SUCCESS], [ACTION-FAILURE])
1651 # ----------------------------------------------------
1652 # Check whether the given linker option works
1653 AC_DEFUN([_LT_LINKER_OPTION],
1654 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1655 m4_require([_LT_DECL_SED])dnl
1656 AC_CACHE_CHECK([$1], [$2],
1658 save_LDFLAGS="$LDFLAGS"
1659 LDFLAGS="$LDFLAGS $3"
1660 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1662 # The linker can only warn and ignore the option if not recognized
1663 # So say no if there are warnings
1664 if test -s conftest.err; then
1665 # Append any errors to the config.log.
1666 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1667 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1669 if diff conftest.exp conftest.er2 >/dev/null; then
1677 LDFLAGS="$save_LDFLAGS"
1680 if test x"[$]$2" = xyes; then
1681 m4_if([$4], , :, [$4])
1683 m4_if([$5], , :, [$5])
1685 ])# _LT_LINKER_OPTION
1688 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1689 dnl aclocal-1.4 backwards compatibility:
1690 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1695 AC_DEFUN([LT_CMD_MAX_LEN],
1696 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1697 # find the maximum length of command line arguments
1698 AC_MSG_CHECKING([the maximum length of command line arguments])
1699 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1705 # On DJGPP, this test can blow up pretty badly due to problems in libc
1706 # (any single argument exceeding 2000 bytes causes a buffer overrun
1707 # during glob expansion). Even if it were fixed, the result of this
1708 # check would be larger than it should be.
1709 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1713 # Under GNU Hurd, this test is not required because there is
1714 # no limit to the length of command line arguments.
1715 # Libtool will interpret -1 as no limit whatsoever
1716 lt_cv_sys_max_cmd_len=-1;
1719 cygwin* | mingw* | cegcc*)
1720 # On Win9x/ME, this test blows up -- it succeeds, but takes
1721 # about 5 minutes as the teststring grows exponentially.
1722 # Worse, since 9x/ME are not pre-emptively multitasking,
1723 # you end up with a "frozen" computer, even though with patience
1724 # the test eventually succeeds (with a max line length of 256k).
1725 # Instead, let's just punt: use the minimum linelength reported by
1726 # all of the supported platforms: 8192 (on NT/2K/XP).
1727 lt_cv_sys_max_cmd_len=8192;
1731 # On MiNT this can take a long time and run out of memory.
1732 lt_cv_sys_max_cmd_len=8192;
1736 # On AmigaOS with pdksh, this test takes hours, literally.
1737 # So we just punt and use a minimum line length of 8192.
1738 lt_cv_sys_max_cmd_len=8192;
1741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1742 # This has been around since 386BSD, at least. Likely further.
1743 if test -x /sbin/sysctl; then
1744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1745 elif test -x /usr/sbin/sysctl; then
1746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1750 # And add a safety zone
1751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1757 lt_cv_sys_max_cmd_len=196608
1761 # The test takes a long time on OS/2.
1762 lt_cv_sys_max_cmd_len=8192
1766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1768 # nice to cause kernel panics so lets avoid the loop below.
1769 # First set a reasonable default.
1770 lt_cv_sys_max_cmd_len=16384
1772 if test -x /sbin/sysconfig; then
1773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1774 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1779 lt_cv_sys_max_cmd_len=102400
1781 sysv5* | sco5v6* | sysv4.2uw2*)
1782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1783 if test -n "$kargmax"; then
1784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1786 lt_cv_sys_max_cmd_len=32768
1790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1791 if test -n "$lt_cv_sys_max_cmd_len"; then
1792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1795 # Make teststring a little bigger before we do anything with it.
1796 # a 1K string should be a reasonable start.
1797 for i in 1 2 3 4 5 6 7 8 ; do
1798 teststring=$teststring$teststring
1800 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1801 # If test is not a shell built-in, we'll probably end up computing a
1802 # maximum length that is only half of the actual maximum length, but
1804 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1805 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1806 test $i != 17 # 1/2 MB should be enough
1809 teststring=$teststring$teststring
1811 # Only check the string length outside the loop.
1812 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1814 # Add a significant safety factor because C++ compilers can tack on
1815 # massive amounts of additional arguments before passing them to the
1816 # linker. It appears as though 1/2 is a usable value.
1817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1822 if test -n $lt_cv_sys_max_cmd_len ; then
1823 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1827 max_cmd_len=$lt_cv_sys_max_cmd_len
1828 _LT_DECL([], [max_cmd_len], [0],
1829 [What is the maximum length of a command?])
1833 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1834 dnl aclocal-1.4 backwards compatibility:
1835 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1840 m4_defun([_LT_HEADER_DLFCN],
1841 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1842 ])# _LT_HEADER_DLFCN
1845 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1846 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1847 # ----------------------------------------------------------------
1848 m4_defun([_LT_TRY_DLOPEN_SELF],
1849 [m4_require([_LT_HEADER_DLFCN])dnl
1850 if test "$cross_compiling" = yes; then :
1853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1854 lt_status=$lt_dlunknown
1855 cat > conftest.$ac_ext <<_LT_EOF
1856 [#line $LINENO "configure"
1857 #include "confdefs.h"
1866 # define LT_DLGLOBAL RTLD_GLOBAL
1869 # define LT_DLGLOBAL DL_GLOBAL
1871 # define LT_DLGLOBAL 0
1875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1876 find out it does not work in some platform. */
1877 #ifndef LT_DLLAZY_OR_NOW
1879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1882 # define LT_DLLAZY_OR_NOW DL_LAZY
1885 # define LT_DLLAZY_OR_NOW RTLD_NOW
1888 # define LT_DLLAZY_OR_NOW DL_NOW
1890 # define LT_DLLAZY_OR_NOW 0
1897 /* When -fvisbility=hidden is used, assume the code has been annotated
1898 correspondingly for the symbols needed. */
1899 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1900 int fnord () __attribute__((visibility("default")));
1903 int fnord () { return 42; }
1906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1907 int status = $lt_dlunknown;
1911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1914 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1915 else puts (dlerror ());
1917 /* dlclose (self); */
1925 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1926 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1929 x$lt_dlno_uscore) $1 ;;
1930 x$lt_dlneed_uscore) $2 ;;
1931 x$lt_dlunknown|x*) $3 ;;
1934 # compilation failed
1939 ])# _LT_TRY_DLOPEN_SELF
1942 # LT_SYS_DLOPEN_SELF
1943 # ------------------
1944 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1945 [m4_require([_LT_HEADER_DLFCN])dnl
1946 if test "x$enable_dlopen" != xyes; then
1947 enable_dlopen=unknown
1948 enable_dlopen_self=unknown
1949 enable_dlopen_self_static=unknown
1956 lt_cv_dlopen="load_add_on"
1958 lt_cv_dlopen_self=yes
1961 mingw* | pw32* | cegcc*)
1962 lt_cv_dlopen="LoadLibrary"
1967 lt_cv_dlopen="dlopen"
1972 # if libdl is installed we need to link against it
1973 AC_CHECK_LIB([dl], [dlopen],
1974 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1977 lt_cv_dlopen_self=yes
1982 AC_CHECK_FUNC([shl_load],
1983 [lt_cv_dlopen="shl_load"],
1984 [AC_CHECK_LIB([dld], [shl_load],
1985 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1986 [AC_CHECK_FUNC([dlopen],
1987 [lt_cv_dlopen="dlopen"],
1988 [AC_CHECK_LIB([dl], [dlopen],
1989 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1990 [AC_CHECK_LIB([svld], [dlopen],
1991 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1992 [AC_CHECK_LIB([dld], [dld_link],
1993 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2002 if test "x$lt_cv_dlopen" != xno; then
2008 case $lt_cv_dlopen in
2010 save_CPPFLAGS="$CPPFLAGS"
2011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2013 save_LDFLAGS="$LDFLAGS"
2014 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2017 LIBS="$lt_cv_dlopen_libs $LIBS"
2019 AC_CACHE_CHECK([whether a program can dlopen itself],
2020 lt_cv_dlopen_self, [dnl
2021 _LT_TRY_DLOPEN_SELF(
2022 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2023 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2026 if test "x$lt_cv_dlopen_self" = xyes; then
2027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2028 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2029 lt_cv_dlopen_self_static, [dnl
2030 _LT_TRY_DLOPEN_SELF(
2031 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2032 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2036 CPPFLAGS="$save_CPPFLAGS"
2037 LDFLAGS="$save_LDFLAGS"
2042 case $lt_cv_dlopen_self in
2043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2044 *) enable_dlopen_self=unknown ;;
2047 case $lt_cv_dlopen_self_static in
2048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2049 *) enable_dlopen_self_static=unknown ;;
2052 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2053 [Whether dlopen is supported])
2054 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2055 [Whether dlopen of programs is supported])
2056 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2057 [Whether dlopen of statically linked programs is supported])
2058 ])# LT_SYS_DLOPEN_SELF
2061 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2062 dnl aclocal-1.4 backwards compatibility:
2063 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2066 # _LT_COMPILER_C_O([TAGNAME])
2067 # ---------------------------
2068 # Check to see if options -c and -o are simultaneously supported by compiler.
2069 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2070 m4_defun([_LT_COMPILER_C_O],
2071 [m4_require([_LT_DECL_SED])dnl
2072 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2073 m4_require([_LT_TAG_COMPILER])dnl
2074 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2075 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2076 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2077 $RM -r conftest 2>/dev/null
2081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2083 lt_compiler_flag="-o out/conftest2.$ac_objext"
2084 # Insert the option either (1) after the last *FLAGS variable, or
2085 # (2) before a word containing "conftest.", or (3) at the end.
2086 # Note that $ac_compile itself does not contain backslashes and begins
2087 # with a dollar sign (not a hyphen), so the echo should work correctly.
2088 lt_compile=`echo "$ac_compile" | $SED \
2089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2090 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2091 -e 's:$: $lt_compiler_flag:'`
2092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2093 (eval "$lt_compile" 2>out/conftest.err)
2095 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2099 # The compiler can only warn and ignore the option if not recognized
2100 # So say no if there are warnings
2101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2104 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2107 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2109 # SGI C++ compiler will create directory out/ii_files/ for
2110 # template instantiation
2111 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2112 $RM out/* && rmdir out
2117 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2118 [Does compiler simultaneously support -c and -o options?])
2119 ])# _LT_COMPILER_C_O
2122 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2123 # ----------------------------------
2124 # Check to see if we can do hard links to lock some files if needed
2125 m4_defun([_LT_COMPILER_FILE_LOCKS],
2126 [m4_require([_LT_ENABLE_LOCK])dnl
2127 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2128 _LT_COMPILER_C_O([$1])
2130 hard_links="nottested"
2131 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2132 # do not overwrite the value of need_locks provided by the user
2133 AC_MSG_CHECKING([if we can lock with hard links])
2136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2138 ln conftest.a conftest.b 2>&5 || hard_links=no
2139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2140 AC_MSG_RESULT([$hard_links])
2141 if test "$hard_links" = no; then
2142 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2148 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2149 ])# _LT_COMPILER_FILE_LOCKS
2154 m4_defun([_LT_CHECK_OBJDIR],
2155 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2156 [rm -f .libs 2>/dev/null
2157 mkdir .libs 2>/dev/null
2158 if test -d .libs; then
2161 # MS-DOS does not allow filenames that begin with a dot.
2164 rmdir .libs 2>/dev/null])
2165 objdir=$lt_cv_objdir
2166 _LT_DECL([], [objdir], [0],
2167 [The name of the directory that contains temporary libtool files])dnl
2168 m4_pattern_allow([LT_OBJDIR])dnl
2169 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2170 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2171 ])# _LT_CHECK_OBJDIR
2174 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2175 # --------------------------------------
2176 # Check hardcoding attributes.
2177 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2178 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2179 _LT_TAGVAR(hardcode_action, $1)=
2180 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2181 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2182 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2184 # We can hardcode non-existent directories.
2185 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2187 # have to relink, otherwise we might link with an installed library
2188 # when we should be linking with a yet-to-be-installed one
2189 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2190 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2191 # Linking always hardcodes the temporary library directory.
2192 _LT_TAGVAR(hardcode_action, $1)=relink
2194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2195 _LT_TAGVAR(hardcode_action, $1)=immediate
2198 # We cannot hardcode anything, or else we can only hardcode existing
2200 _LT_TAGVAR(hardcode_action, $1)=unsupported
2202 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2204 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2205 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2206 # Fast installation is not supported
2207 enable_fast_install=no
2208 elif test "$shlibpath_overrides_runpath" = yes ||
2209 test "$enable_shared" = no; then
2210 # Fast installation is not necessary
2211 enable_fast_install=needless
2213 _LT_TAGDECL([], [hardcode_action], [0],
2214 [How to hardcode a shared library path into an executable])
2215 ])# _LT_LINKER_HARDCODE_LIBPATH
2220 m4_defun([_LT_CMD_STRIPLIB],
2221 [m4_require([_LT_DECL_EGREP])
2224 AC_MSG_CHECKING([whether stripping libraries is possible])
2225 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2227 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2228 AC_MSG_RESULT([yes])
2230 # FIXME - insert some real tests, host_os isn't really good enough
2233 if test -n "$STRIP" ; then
2234 striplib="$STRIP -x"
2235 old_striplib="$STRIP -S"
2236 AC_MSG_RESULT([yes])
2246 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2247 _LT_DECL([], [striplib], [1])
2248 ])# _LT_CMD_STRIPLIB
2251 # _LT_SYS_DYNAMIC_LINKER([TAG])
2252 # -----------------------------
2253 # PORTME Fill in your ld.so characteristics
2254 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2255 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2256 m4_require([_LT_DECL_EGREP])dnl
2257 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2258 m4_require([_LT_DECL_OBJDUMP])dnl
2259 m4_require([_LT_DECL_SED])dnl
2260 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2261 AC_MSG_CHECKING([dynamic linker characteristics])
2264 if test "$GCC" = yes; then
2266 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2267 *) lt_awk_arg="/^libraries:/" ;;
2270 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2271 *) lt_sed_strip_eq="s,=/,/,g" ;;
2273 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2274 case $lt_search_path_spec in
2276 # if the path contains ";" then we assume it to be the separator
2277 # otherwise default to the standard path separator (i.e. ":") - it is
2278 # assumed that no part of a normal pathname contains ";" but that should
2279 # okay in the real world where ";" in dirpaths is itself problematic.
2280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2286 # Ok, now we have the path, separated by spaces, we can step through it
2287 # and add multilib dir if necessary.
2288 lt_tmp_lt_search_path_spec=
2289 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2290 for lt_sys_path in $lt_search_path_spec; do
2291 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2292 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2294 test -d "$lt_sys_path" && \
2295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2298 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2299 BEGIN {RS=" "; FS="/|\n";} {
2302 for (lt_i = NF; lt_i > 0; lt_i--) {
2303 if ($lt_i != "" && $lt_i != ".") {
2304 if ($lt_i == "..") {
2307 if (lt_count == 0) {
2308 lt_foo="/" $lt_i lt_foo;
2315 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2316 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2318 # AWK program above erroneously prepends '/' to C:/dos/paths
2321 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2322 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2324 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2329 libname_spec='lib$name'
2337 shlibpath_overrides_runpath=unknown
2339 dynamic_linker="$host_os ld.so"
2340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2341 need_lib_prefix=unknown
2342 hardcode_into_libs=no
2344 # when you set need_version to no, make sure it does not cause -set_version
2345 # flags to be left without arguments
2346 need_version=unknown
2350 version_type=linux # correct to gnu/linux during the next big refactor
2351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2352 shlibpath_var=LIBPATH
2354 # AIX 3 has no versioning support, so we append a major version to the name.
2355 soname_spec='${libname}${release}${shared_ext}$major'
2359 version_type=linux # correct to gnu/linux during the next big refactor
2362 hardcode_into_libs=yes
2363 if test "$host_cpu" = ia64; then
2364 # AIX 5 supports IA64
2365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2366 shlibpath_var=LD_LIBRARY_PATH
2368 # With GCC up to 2.95.x, collect2 would create an import file
2369 # for dependence libraries. The import file would start with
2370 # the line `#! .'. This would cause the generated library to
2371 # depend on `.', always an invalid library. This was fixed in
2372 # development snapshots of GCC prior to 3.0.
2374 aix4 | aix4.[[01]] | aix4.[[01]].*)
2375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2377 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2385 # soname into executable. Probably we can add versioning support to
2386 # collect2, so additional links can be useful in future.
2387 if test "$aix_use_runtimelinking" = yes; then
2388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2389 # instead of lib<name>.a to let people know that these are not
2390 # typical AIX shared libraries.
2391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2393 # We preserve .a as extension for shared libraries through AIX4.2
2394 # and later when we are not doing run time linking.
2395 library_names_spec='${libname}${release}.a $libname.a'
2396 soname_spec='${libname}${release}${shared_ext}$major'
2398 shlibpath_var=LIBPATH
2405 # Since July 2007 AmigaOS4 officially supports .so libraries.
2406 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2410 library_names_spec='$libname.ixlibrary $libname.a'
2411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2412 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2418 library_names_spec='${libname}${shared_ext}'
2419 dynamic_linker="$host_os ld.so"
2420 shlibpath_var=LIBRARY_PATH
2424 version_type=linux # correct to gnu/linux during the next big refactor
2426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2427 soname_spec='${libname}${release}${shared_ext}$major'
2428 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2429 shlibpath_var=LD_LIBRARY_PATH
2430 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2431 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2432 # the default ld.so.conf also contains /usr/contrib/lib and
2433 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2434 # libtool to hard-code these into programs
2437 cygwin* | mingw* | pw32* | cegcc*)
2438 version_type=windows
2443 case $GCC,$cc_basename in
2446 library_names_spec='$libname.dll.a'
2447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2448 postinstall_cmds='base_file=`basename \${file}`~
2449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2450 dldir=$destdir/`dirname \$dlpath`~
2451 test -d \$dldir || mkdir -p \$dldir~
2452 $install_prog $dir/$dlname \$dldir/$dlname~
2453 chmod a+x \$dldir/$dlname~
2454 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2455 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2458 dlpath=$dir/\$dldll~
2460 shlibpath_overrides_runpath=yes
2464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2470 # MinGW DLLs use traditional 'lib' prefix
2471 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2474 # pw32 DLLs use 'pw' prefix rather than 'lib'
2475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2478 dynamic_linker='Win32 ld.exe'
2483 libname_spec='$name'
2484 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2485 library_names_spec='${libname}.dll.lib'
2489 sys_lib_search_path_spec=
2495 # Let DOS variable expansion print the short 8.3 style file name.
2496 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2497 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2500 # Convert to MSYS style.
2501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2504 # Convert to unix form, then to dos form, then back to unix form
2505 # but this time dos style (no spaces!) so that the unix form looks
2506 # like /cygdrive/c/PROGRA~1:/cygdr...
2507 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2508 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2509 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2512 sys_lib_search_path_spec="$LIB"
2513 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2514 # It is most probably a Windows format PATH.
2515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2519 # FIXME: find the short name or the path components, as spaces are
2520 # common. (e.g. "Program Files" -> "PROGRA~1")
2524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2525 postinstall_cmds='base_file=`basename \${file}`~
2526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2527 dldir=$destdir/`dirname \$dlpath`~
2528 test -d \$dldir || mkdir -p \$dldir~
2529 $install_prog $dir/$dlname \$dldir/$dlname'
2530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2531 dlpath=$dir/\$dldll~
2533 shlibpath_overrides_runpath=yes
2534 dynamic_linker='Win32 link.exe'
2538 # Assume MSVC wrapper
2539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2540 dynamic_linker='Win32 ld.exe'
2543 # FIXME: first we should search . and the directory the executable is in
2547 darwin* | rhapsody*)
2548 dynamic_linker="$host_os dyld"
2552 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2553 soname_spec='${libname}${release}${major}$shared_ext'
2554 shlibpath_overrides_runpath=yes
2555 shlibpath_var=DYLD_LIBRARY_PATH
2556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2563 version_type=linux # correct to gnu/linux during the next big refactor
2566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2567 soname_spec='${libname}${release}${shared_ext}$major'
2568 shlibpath_var=LD_LIBRARY_PATH
2571 freebsd* | dragonfly*)
2572 # DragonFly does not have aout. When/if they implement a new
2573 # versioning mechanism, adjust this.
2574 if test -x /usr/bin/objformat; then
2575 objformat=`/usr/bin/objformat`
2578 freebsd[[23]].*) objformat=aout ;;
2582 version_type=freebsd-$objformat
2583 case $version_type in
2585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2594 shlibpath_var=LD_LIBRARY_PATH
2597 shlibpath_overrides_runpath=yes
2599 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2600 shlibpath_overrides_runpath=yes
2601 hardcode_into_libs=yes
2603 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2604 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2605 shlibpath_overrides_runpath=no
2606 hardcode_into_libs=yes
2608 *) # from 4.6 on, and DragonFly
2609 shlibpath_overrides_runpath=yes
2610 hardcode_into_libs=yes
2616 version_type=linux # correct to gnu/linux during the next big refactor
2619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2620 soname_spec='${libname}${release}${shared_ext}$major'
2621 shlibpath_var=LD_LIBRARY_PATH
2622 shlibpath_overrides_runpath=no
2623 hardcode_into_libs=yes
2627 version_type=linux # correct to gnu/linux during the next big refactor
2630 dynamic_linker="$host_os runtime_loader"
2631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2632 soname_spec='${libname}${release}${shared_ext}$major'
2633 shlibpath_var=LIBRARY_PATH
2634 shlibpath_overrides_runpath=yes
2635 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2636 hardcode_into_libs=yes
2639 hpux9* | hpux10* | hpux11*)
2640 # Give a soname corresponding to the major version so that dld.sl refuses to
2641 # link against other versions.
2648 hardcode_into_libs=yes
2649 dynamic_linker="$host_os dld.so"
2650 shlibpath_var=LD_LIBRARY_PATH
2651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2653 soname_spec='${libname}${release}${shared_ext}$major'
2654 if test "X$HPUX_IA64_MODE" = X32; then
2655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2663 hardcode_into_libs=yes
2664 dynamic_linker="$host_os dld.sl"
2665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2668 soname_spec='${libname}${release}${shared_ext}$major'
2669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2674 dynamic_linker="$host_os dld.sl"
2675 shlibpath_var=SHLIB_PATH
2676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2678 soname_spec='${libname}${release}${shared_ext}$major'
2681 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2682 postinstall_cmds='chmod 555 $lib'
2683 # or fails outright, so override atomically:
2684 install_override_mode=555
2688 version_type=linux # correct to gnu/linux during the next big refactor
2691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2692 soname_spec='${libname}${release}${shared_ext}$major'
2693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2694 shlibpath_var=LD_LIBRARY_PATH
2695 shlibpath_overrides_runpath=no
2696 hardcode_into_libs=yes
2699 irix5* | irix6* | nonstopux*)
2701 nonstopux*) version_type=nonstopux ;;
2703 if test "$lt_cv_prog_gnu_ld" = yes; then
2704 version_type=linux # correct to gnu/linux during the next big refactor
2711 soname_spec='${libname}${release}${shared_ext}$major'
2712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2714 irix5* | nonstopux*)
2718 case $LD in # libtool.m4 will add one of these switches to LD
2719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2720 libsuff= shlibsuff= libmagic=32-bit;;
2721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2722 libsuff=32 shlibsuff=N32 libmagic=N32;;
2723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2725 *) libsuff= shlibsuff= libmagic=never-match;;
2729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2730 shlibpath_overrides_runpath=no
2731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2733 hardcode_into_libs=yes
2736 # No shared lib support for Linux oldld, aout, or coff.
2737 linux*oldld* | linux*aout* | linux*coff*)
2741 # This must be glibc/ELF.
2742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2743 version_type=linux # correct to gnu/linux during the next big refactor
2746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2747 soname_spec='${libname}${release}${shared_ext}$major'
2748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2749 shlibpath_var=LD_LIBRARY_PATH
2750 shlibpath_overrides_runpath=no
2752 # Some binutils ld are patched to set DT_RUNPATH
2753 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2754 [lt_cv_shlibpath_overrides_runpath=no
2755 save_LDFLAGS=$LDFLAGS
2757 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2758 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2759 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2760 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2761 [lt_cv_shlibpath_overrides_runpath=yes])])
2762 LDFLAGS=$save_LDFLAGS
2765 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2767 # This implies no fast_install, which is unacceptable.
2768 # Some rework will be needed to allow for fast_install
2769 # before this can be enabled.
2770 hardcode_into_libs=yes
2772 # Add ABI-specific directories to the system library path.
2773 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2775 # Append ld.so.conf contents to the search path
2776 if test -f /etc/ld.so.conf; then
2777 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' ' '`
2778 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2782 # We used to test for /lib/ld.so.1 and disable shared libraries on
2783 # powerpc, because MkLinux only supported shared libraries with the
2784 # GNU dynamic linker. Since this was broken with cross compilers,
2785 # most powerpc-linux boxes support dynamic linking these days and
2786 # people can always --disable-shared, the test was removed, and we
2787 # assume the GNU/Linux dynamic linker is in use.
2788 dynamic_linker='GNU/Linux ld.so'
2795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2798 dynamic_linker='NetBSD (a.out) ld.so'
2800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2801 soname_spec='${libname}${release}${shared_ext}$major'
2802 dynamic_linker='NetBSD ld.elf_so'
2804 shlibpath_var=LD_LIBRARY_PATH
2805 shlibpath_overrides_runpath=yes
2806 hardcode_into_libs=yes
2810 version_type=linux # correct to gnu/linux during the next big refactor
2811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2812 shlibpath_var=LD_LIBRARY_PATH
2813 shlibpath_overrides_runpath=yes
2820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2821 soname_spec='${libname}${release}${shared_ext}$major'
2822 shlibpath_var=LD_LIBRARY_PATH
2823 shlibpath_overrides_runpath=no
2824 hardcode_into_libs=yes
2825 dynamic_linker='ldqnx.so'
2830 sys_lib_dlsearch_path_spec="/usr/lib"
2832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2834 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2835 *) need_version=no ;;
2837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2839 shlibpath_var=LD_LIBRARY_PATH
2840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2842 openbsd2.[[89]] | openbsd2.[[89]].*)
2843 shlibpath_overrides_runpath=no
2846 shlibpath_overrides_runpath=yes
2850 shlibpath_overrides_runpath=yes
2855 libname_spec='$name'
2858 library_names_spec='$libname${shared_ext} $libname.a'
2859 dynamic_linker='OS/2 ld.exe'
2860 shlibpath_var=LIBPATH
2863 osf3* | osf4* | osf5*)
2867 soname_spec='${libname}${release}${shared_ext}$major'
2868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2869 shlibpath_var=LD_LIBRARY_PATH
2870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2879 version_type=linux # correct to gnu/linux during the next big refactor
2882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2883 soname_spec='${libname}${release}${shared_ext}$major'
2884 shlibpath_var=LD_LIBRARY_PATH
2885 shlibpath_overrides_runpath=yes
2886 hardcode_into_libs=yes
2887 # ldd complains unless libraries are executable
2888 postinstall_cmds='chmod +x $lib'
2893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2894 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2895 shlibpath_var=LD_LIBRARY_PATH
2896 shlibpath_overrides_runpath=yes
2897 if test "$with_gnu_ld" = yes; then
2904 version_type=linux # correct to gnu/linux during the next big refactor
2905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2906 soname_spec='${libname}${release}${shared_ext}$major'
2907 shlibpath_var=LD_LIBRARY_PATH
2908 case $host_vendor in
2910 shlibpath_overrides_runpath=no
2912 runpath_var=LD_RUN_PATH
2920 shlibpath_overrides_runpath=no
2921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2927 if test -d /usr/nec ;then
2928 version_type=linux # correct to gnu/linux during the next big refactor
2929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2930 soname_spec='$libname${shared_ext}.$major'
2931 shlibpath_var=LD_LIBRARY_PATH
2935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2936 version_type=freebsd-elf
2939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2940 soname_spec='${libname}${release}${shared_ext}$major'
2941 shlibpath_var=LD_LIBRARY_PATH
2942 shlibpath_overrides_runpath=yes
2943 hardcode_into_libs=yes
2944 if test "$with_gnu_ld" = yes; then
2945 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2950 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2954 sys_lib_dlsearch_path_spec='/usr/lib'
2958 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2959 version_type=linux # correct to gnu/linux during the next big refactor
2962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2963 shlibpath_var=LD_LIBRARY_PATH
2964 shlibpath_overrides_runpath=no
2965 hardcode_into_libs=yes
2969 version_type=linux # correct to gnu/linux during the next big refactor
2970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2971 soname_spec='${libname}${release}${shared_ext}$major'
2972 shlibpath_var=LD_LIBRARY_PATH
2979 AC_MSG_RESULT([$dynamic_linker])
2980 test "$dynamic_linker" = no && can_build_shared=no
2982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2983 if test "$GCC" = yes; then
2984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2988 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2990 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2994 _LT_DECL([], [variables_saved_for_relink], [1],
2995 [Variables whose values should be saved in libtool wrapper scripts and
2996 restored at link time])
2997 _LT_DECL([], [need_lib_prefix], [0],
2998 [Do we need the "lib" prefix for modules?])
2999 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3000 _LT_DECL([], [version_type], [0], [Library versioning type])
3001 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3002 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3003 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3004 [Is shlibpath searched before the hard-coded library search path?])
3005 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3006 _LT_DECL([], [library_names_spec], [1],
3007 [[List of archive names. First name is the real one, the rest are links.
3008 The last name is the one that the linker finds with -lNAME]])
3009 _LT_DECL([], [soname_spec], [1],
3010 [[The coded name of the library, if different from the real name]])
3011 _LT_DECL([], [install_override_mode], [1],
3012 [Permission mode override for installation of shared libraries])
3013 _LT_DECL([], [postinstall_cmds], [2],
3014 [Command to use after installation of a shared archive])
3015 _LT_DECL([], [postuninstall_cmds], [2],
3016 [Command to use after uninstallation of a shared archive])
3017 _LT_DECL([], [finish_cmds], [2],
3018 [Commands used to finish a libtool library installation in a directory])
3019 _LT_DECL([], [finish_eval], [1],
3020 [[As "finish_cmds", except a single script fragment to be evaled but
3022 _LT_DECL([], [hardcode_into_libs], [0],
3023 [Whether we should hardcode library paths into libraries])
3024 _LT_DECL([], [sys_lib_search_path_spec], [2],
3025 [Compile-time system search path for libraries])
3026 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3027 [Run-time system search path for libraries])
3028 ])# _LT_SYS_DYNAMIC_LINKER
3031 # _LT_PATH_TOOL_PREFIX(TOOL)
3032 # --------------------------
3033 # find a file program which can recognize shared library
3034 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3035 [m4_require([_LT_DECL_EGREP])dnl
3036 AC_MSG_CHECKING([for $1])
3037 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3039 [[\\/*] | ?:[\\/]*])
3040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3043 lt_save_MAGIC_CMD="$MAGIC_CMD"
3044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3045 dnl $ac_dummy forces splitting on constant user-supplied paths.
3046 dnl POSIX.2 word splitting is done only on the output of word expansions,
3047 dnl not every word. This closes a longstanding sh security hole.
3048 ac_dummy="m4_if([$2], , $PATH, [$2])"
3049 for ac_dir in $ac_dummy; do
3051 test -z "$ac_dir" && ac_dir=.
3052 if test -f $ac_dir/$1; then
3053 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3054 if test -n "$file_magic_test_file"; then
3055 case $deplibs_check_method in
3057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3060 $EGREP "$file_magic_regex" > /dev/null; then
3065 *** Warning: the command libtool uses to detect shared libraries,
3066 *** $file_magic_cmd, produces output that libtool cannot recognize.
3067 *** The result is that libtool may fail to recognize shared libraries
3068 *** as such. This will affect the creation of libtool libraries that
3069 *** depend on shared libraries, but programs linked with such libtool
3070 *** libraries will work regardless of this problem. Nevertheless, you
3071 *** may want to report the problem to your system manager and/or to
3072 *** bug-libtool@gnu.org
3082 MAGIC_CMD="$lt_save_MAGIC_CMD"
3085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3086 if test -n "$MAGIC_CMD"; then
3087 AC_MSG_RESULT($MAGIC_CMD)
3091 _LT_DECL([], [MAGIC_CMD], [0],
3092 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3093 ])# _LT_PATH_TOOL_PREFIX
3096 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3097 dnl aclocal-1.4 backwards compatibility:
3098 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3103 # find a file program which can recognize a shared library
3104 m4_defun([_LT_PATH_MAGIC],
3105 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3106 if test -z "$lt_cv_path_MAGIC_CMD"; then
3107 if test -n "$ac_tool_prefix"; then
3108 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3118 # find the pathname to the GNU or non-GNU linker
3119 AC_DEFUN([LT_PATH_LD],
3120 [AC_REQUIRE([AC_PROG_CC])dnl
3121 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3122 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3123 m4_require([_LT_DECL_SED])dnl
3124 m4_require([_LT_DECL_EGREP])dnl
3125 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3127 AC_ARG_WITH([gnu-ld],
3128 [AS_HELP_STRING([--with-gnu-ld],
3129 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3130 [test "$withval" = no || with_gnu_ld=yes],
3131 [with_gnu_ld=no])dnl
3134 if test "$GCC" = yes; then
3135 # Check if gcc -print-prog-name=ld gives a path.
3136 AC_MSG_CHECKING([for ld used by $CC])
3139 # gcc leaves a trailing carriage return which upsets mingw
3140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3145 # Accept absolute paths.
3146 [[\\/]]* | ?:[[\\/]]*)
3147 re_direlt='/[[^/]][[^/]]*/\.\./'
3148 # Canonicalize the pathname of ld
3149 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3150 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3151 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3153 test -z "$LD" && LD="$ac_prog"
3156 # If it fails, then pretend we aren't using GCC.
3160 # If it is relative, then search for the first ld in PATH.
3164 elif test "$with_gnu_ld" = yes; then
3165 AC_MSG_CHECKING([for GNU ld])
3167 AC_MSG_CHECKING([for non-GNU ld])
3169 AC_CACHE_VAL(lt_cv_path_LD,
3170 [if test -z "$LD"; then
3171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3172 for ac_dir in $PATH; do
3174 test -z "$ac_dir" && ac_dir=.
3175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3176 lt_cv_path_LD="$ac_dir/$ac_prog"
3177 # Check to see if the program is GNU ld. I'd rather use --version,
3178 # but apparently some variants of GNU ld only accept -v.
3179 # Break only if it was the GNU/non-GNU ld that we prefer.
3180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3181 *GNU* | *'with BFD'*)
3182 test "$with_gnu_ld" != no && break
3185 test "$with_gnu_ld" != yes && break
3192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3195 if test -n "$LD"; then
3200 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3204 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3208 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3209 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3210 dnl aclocal-1.4 backwards compatibility:
3211 dnl AC_DEFUN([AM_PROG_LD], [])
3212 dnl AC_DEFUN([AC_PROG_LD], [])
3217 m4_defun([_LT_PATH_LD_GNU],
3218 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3219 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3220 case `$LD -v 2>&1 </dev/null` in
3221 *GNU* | *'with BFD'*)
3222 lt_cv_prog_gnu_ld=yes
3225 lt_cv_prog_gnu_ld=no
3228 with_gnu_ld=$lt_cv_prog_gnu_ld
3234 # find reload flag for linker
3235 # -- PORTME Some linkers may need a different reload flag.
3236 m4_defun([_LT_CMD_RELOAD],
3237 [AC_CACHE_CHECK([for $LD option to reload object files],
3238 lt_cv_ld_reload_flag,
3239 [lt_cv_ld_reload_flag='-r'])
3240 reload_flag=$lt_cv_ld_reload_flag
3241 case $reload_flag in
3243 *) reload_flag=" $reload_flag" ;;
3245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3247 cygwin* | mingw* | pw32* | cegcc*)
3248 if test "$GCC" != yes; then
3253 if test "$GCC" = yes; then
3254 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3256 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3260 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3261 _LT_TAGDECL([], [reload_cmds], [2])dnl
3265 # _LT_CHECK_MAGIC_METHOD
3266 # ----------------------
3267 # how to check for library dependencies
3268 # -- PORTME fill in with the dynamic library characteristics
3269 m4_defun([_LT_CHECK_MAGIC_METHOD],
3270 [m4_require([_LT_DECL_EGREP])
3271 m4_require([_LT_DECL_OBJDUMP])
3272 AC_CACHE_CHECK([how to recognize dependent libraries],
3273 lt_cv_deplibs_check_method,
3274 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3275 lt_cv_file_magic_test_file=
3276 lt_cv_deplibs_check_method='unknown'
3277 # Need to set the preceding variable on all platforms that support
3278 # interlibrary dependencies.
3279 # 'none' -- dependencies not supported.
3280 # `unknown' -- same as none, but documents that we really don't know.
3281 # 'pass_all' -- all dependencies passed with no checks.
3282 # 'test_compile' -- check by making test program.
3283 # 'file_magic [[regex]]' -- check by looking for files in library path
3284 # which responds to the $file_magic_cmd with a given extended regex.
3285 # If you have `file' or equivalent on your system and you're not sure
3286 # whether `pass_all' will *always* work, you probably want this one.
3290 lt_cv_deplibs_check_method=pass_all
3294 lt_cv_deplibs_check_method=pass_all
3298 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3299 lt_cv_file_magic_cmd='/usr/bin/file -L'
3300 lt_cv_file_magic_test_file=/shlib/libc.so
3304 # func_win32_libid is a shell function defined in ltmain.sh
3305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3306 lt_cv_file_magic_cmd='func_win32_libid'
3310 # Base MSYS/MinGW do not provide the 'file' command needed by
3311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3312 # unless we find 'file', for example because we are cross-compiling.
3313 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3314 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3316 lt_cv_file_magic_cmd='func_win32_libid'
3318 # Keep this pattern in sync with the one in func_win32_libid.
3319 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3320 lt_cv_file_magic_cmd='$OBJDUMP -f'
3325 # use the weaker test based on 'objdump'. See mingw*.
3326 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3327 lt_cv_file_magic_cmd='$OBJDUMP -f'
3330 darwin* | rhapsody*)
3331 lt_cv_deplibs_check_method=pass_all
3334 freebsd* | dragonfly*)
3335 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3338 # Not sure whether the presence of OpenBSD here was a mistake.
3339 # Let's accept both of them until this is cleared up.
3340 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3341 lt_cv_file_magic_cmd=/usr/bin/file
3342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3346 lt_cv_deplibs_check_method=pass_all
3351 lt_cv_deplibs_check_method=pass_all
3355 lt_cv_deplibs_check_method=pass_all
3358 hpux10.20* | hpux11*)
3359 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3363 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3366 [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]']
3367 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3370 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3371 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3377 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3378 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3381 irix5* | irix6* | nonstopux*)
3383 *-32|*"-32 ") libmagic=32-bit;;
3384 *-n32|*"-n32 ") libmagic=N32;;
3385 *-64|*"-64 ") libmagic=64-bit;;
3386 *) libmagic=never-match;;
3388 lt_cv_deplibs_check_method=pass_all
3391 # This must be glibc/ELF.
3392 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3393 lt_cv_deplibs_check_method=pass_all
3397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3398 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3400 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3405 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3411 lt_cv_deplibs_check_method=pass_all
3415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3416 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3418 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3422 osf3* | osf4* | osf5*)
3423 lt_cv_deplibs_check_method=pass_all
3427 lt_cv_deplibs_check_method=pass_all
3431 lt_cv_deplibs_check_method=pass_all
3434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3435 lt_cv_deplibs_check_method=pass_all
3439 case $host_vendor in
3441 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]]'
3442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3445 lt_cv_deplibs_check_method=pass_all
3448 lt_cv_file_magic_cmd='/bin/file'
3449 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3452 lt_cv_file_magic_cmd='/bin/file'
3453 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3454 lt_cv_file_magic_test_file=/lib/libc.so
3457 lt_cv_deplibs_check_method=pass_all
3460 lt_cv_deplibs_check_method=pass_all
3466 lt_cv_deplibs_check_method=pass_all
3473 if test "$build" = "$host"; then
3476 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3479 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3485 file_magic_cmd=$lt_cv_file_magic_cmd
3486 deplibs_check_method=$lt_cv_deplibs_check_method
3487 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3489 _LT_DECL([], [deplibs_check_method], [1],
3490 [Method to check whether dependent libraries are shared objects])
3491 _LT_DECL([], [file_magic_cmd], [1],
3492 [Command to use when deplibs_check_method = "file_magic"])
3493 _LT_DECL([], [file_magic_glob], [1],
3494 [How to find potential files when deplibs_check_method = "file_magic"])
3495 _LT_DECL([], [want_nocaseglob], [1],
3496 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3497 ])# _LT_CHECK_MAGIC_METHOD
3502 # find the pathname to a BSD- or MS-compatible name lister
3503 AC_DEFUN([LT_PATH_NM],
3504 [AC_REQUIRE([AC_PROG_CC])dnl
3505 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3506 [if test -n "$NM"; then
3507 # Let the user override the test.
3510 lt_nm_to_check="${ac_tool_prefix}nm"
3511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3512 lt_nm_to_check="$lt_nm_to_check nm"
3514 for lt_tmp_nm in $lt_nm_to_check; do
3515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3518 test -z "$ac_dir" && ac_dir=.
3519 tmp_nm="$ac_dir/$lt_tmp_nm"
3520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3521 # Check to see if the nm accepts a BSD-compat flag.
3522 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3523 # nm: unknown option "B" ignored
3524 # Tru64's nm complains that /dev/null is an invalid object file
3525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3526 */dev/null* | *'Invalid file or object type'*)
3527 lt_cv_path_NM="$tmp_nm -B"
3531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3533 lt_cv_path_NM="$tmp_nm -p"
3537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3538 continue # so that we can try to find one that supports BSD flags
3547 : ${lt_cv_path_NM=no}
3549 if test "$lt_cv_path_NM" != "no"; then
3552 # Didn't find any BSD compatible name lister, look for dumpbin.
3553 if test -n "$DUMPBIN"; then :
3554 # Let the user override the test.
3556 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3557 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3559 DUMPBIN="$DUMPBIN -symbols"
3567 if test "$DUMPBIN" != ":"; then
3571 test -z "$NM" && NM=nm
3573 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3575 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3576 [lt_cv_nm_interface="BSD nm"
3577 echo "int some_variable = 0;" > conftest.$ac_ext
3578 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3579 (eval "$ac_compile" 2>conftest.err)
3580 cat conftest.err >&AS_MESSAGE_LOG_FD
3581 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3583 cat conftest.err >&AS_MESSAGE_LOG_FD
3584 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3585 cat conftest.out >&AS_MESSAGE_LOG_FD
3586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3587 lt_cv_nm_interface="MS dumpbin"
3593 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3594 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3595 dnl aclocal-1.4 backwards compatibility:
3596 dnl AC_DEFUN([AM_PROG_NM], [])
3597 dnl AC_DEFUN([AC_PROG_NM], [])
3599 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3600 # --------------------------------
3601 # how to determine the name of the shared library
3602 # associated with a specific link library.
3603 # -- PORTME fill in with the dynamic library characteristics
3604 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3605 [m4_require([_LT_DECL_EGREP])
3606 m4_require([_LT_DECL_OBJDUMP])
3607 m4_require([_LT_DECL_DLLTOOL])
3608 AC_CACHE_CHECK([how to associate runtime and link libraries],
3609 lt_cv_sharedlib_from_linklib_cmd,
3610 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3613 cygwin* | mingw* | pw32* | cegcc*)
3614 # two different shell functions defined in ltmain.sh
3615 # decide which to use based on capabilities of $DLLTOOL
3616 case `$DLLTOOL --help 2>&1` in
3617 *--identify-strict*)
3618 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3626 # fallback: assume linklib IS sharedlib
3627 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3631 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3632 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3634 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3635 [Command to associate shared and link libraries])
3636 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3639 # _LT_PATH_MANIFEST_TOOL
3640 # ----------------------
3641 # locate the manifest tool
3642 m4_defun([_LT_PATH_MANIFEST_TOOL],
3643 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3644 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3645 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3646 [lt_cv_path_mainfest_tool=no
3647 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3648 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3649 cat conftest.err >&AS_MESSAGE_LOG_FD
3650 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3651 lt_cv_path_mainfest_tool=yes
3654 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3657 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3658 ])# _LT_PATH_MANIFEST_TOOL
3663 # check for math library
3664 AC_DEFUN([LT_LIB_M],
3665 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3668 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3669 # These system don't have libm, or don't need it
3672 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3673 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3676 AC_CHECK_LIB(m, cos, LIBM="-lm")
3683 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3684 dnl aclocal-1.4 backwards compatibility:
3685 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3688 # _LT_COMPILER_NO_RTTI([TAGNAME])
3689 # -------------------------------
3690 m4_defun([_LT_COMPILER_NO_RTTI],
3691 [m4_require([_LT_TAG_COMPILER])dnl
3693 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3695 if test "$GCC" = yes; then
3696 case $cc_basename in
3698 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3700 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3703 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3704 lt_cv_prog_compiler_rtti_exceptions,
3705 [-fno-rtti -fno-exceptions], [],
3706 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3708 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3709 [Compiler flag to turn off builtin functions])
3710 ])# _LT_COMPILER_NO_RTTI
3713 # _LT_CMD_GLOBAL_SYMBOLS
3714 # ----------------------
3715 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3716 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3717 AC_REQUIRE([AC_PROG_CC])dnl
3718 AC_REQUIRE([AC_PROG_AWK])dnl
3719 AC_REQUIRE([LT_PATH_NM])dnl
3720 AC_REQUIRE([LT_PATH_LD])dnl
3721 m4_require([_LT_DECL_SED])dnl
3722 m4_require([_LT_DECL_EGREP])dnl
3723 m4_require([_LT_TAG_COMPILER])dnl
3725 # Check for command to grab the raw symbol name followed by C symbol from nm.
3726 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3727 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3729 # These are sane defaults that work on at least a few old systems.
3730 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3732 # Character class describing NM global symbol codes.
3733 symcode='[[BCDEGRST]]'
3735 # Regexp to match symbols that can be accessed directly from C.
3736 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3738 # Define system-specific variables.
3743 cygwin* | mingw* | pw32* | cegcc*)
3744 symcode='[[ABCDGISTW]]'
3747 if test "$host_cpu" = ia64; then
3748 symcode='[[ABCDEGRST]]'
3752 symcode='[[BCDEGRST]]'
3755 symcode='[[BCDEGQRST]]'
3766 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3770 symcode='[[DFNSTU]]'
3774 # If we're using GNU nm, then use its standard symbol codes.
3775 case `$NM -V 2>&1` in
3776 *GNU* | *'with BFD'*)
3777 symcode='[[ABCDGIRSTW]]' ;;
3780 # Transform an extracted symbol line into a proper C declaration.
3781 # Some systems (esp. on ia64) link data and code symbols differently,
3782 # so use this general approach.
3783 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3785 # Transform an extracted symbol line into symbol name and symbol address
3786 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3787 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3789 # Handle CRLF in mingw tool chain
3793 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3797 # Try without a prefix underscore, then with it.
3798 for ac_symprfx in "" "_"; do
3800 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3801 symxfrm="\\1 $ac_symprfx\\2 \\2"
3803 # Write the raw and C identifiers.
3804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3805 # Fake it for dumpbin and say T for any non-static function
3806 # and D for any global variable.
3807 # Also find C++ and __fastcall symbols from MSVC++,
3808 # which start with @ or ?.
3809 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3810 " {last_section=section; section=\$ 3};"\
3811 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3812 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3813 " \$ 0!~/External *\|/{next};"\
3814 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3815 " {if(hide[section]) next};"\
3816 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3817 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3818 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3819 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3820 " ' prfx=^$ac_symprfx]"
3822 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3824 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3826 # Check to see that the pipe works correctly.
3830 cat > conftest.$ac_ext <<_LT_EOF
3835 void nm_test_func(void);
3836 void nm_test_func(void){}
3840 int main(){nm_test_var='a';nm_test_func();return(0);}
3843 if AC_TRY_EVAL(ac_compile); then
3844 # Now try to grab the symbols.
3846 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3847 # Try sorting and uniquifying the output.
3848 if sort "$nlist" | uniq > "$nlist"T; then
3849 mv -f "$nlist"T "$nlist"
3854 # Make sure that we snagged all the symbols we need.
3855 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3856 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3857 cat <<_LT_EOF > conftest.$ac_ext
3858 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3859 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3860 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3861 relocations are performed -- see ld's documentation on pseudo-relocs. */
3862 # define LT@&t@_DLSYM_CONST
3863 #elif defined(__osf__)
3864 /* This system does not cope well with relocations in const data. */
3865 # define LT@&t@_DLSYM_CONST
3867 # define LT@&t@_DLSYM_CONST const
3875 # Now generate the symbol file.
3876 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3878 cat <<_LT_EOF >> conftest.$ac_ext
3880 /* The mapping between symbol names and symbols. */
3881 LT@&t@_DLSYM_CONST struct {
3885 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3887 { "@PROGRAM@", (void *) 0 },
3889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3890 cat <<\_LT_EOF >> conftest.$ac_ext
3894 /* This works around a problem in FreeBSD linker */
3895 #ifdef FREEBSD_WORKAROUND
3896 static const void *lt_preloaded_setup() {
3897 return lt__PROGRAM__LTX_preloaded_symbols;
3905 # Now try linking the two files.
3906 mv conftest.$ac_objext conftstm.$ac_objext
3907 lt_globsym_save_LIBS=$LIBS
3908 lt_globsym_save_CFLAGS=$CFLAGS
3909 LIBS="conftstm.$ac_objext"
3910 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3911 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3914 LIBS=$lt_globsym_save_LIBS
3915 CFLAGS=$lt_globsym_save_CFLAGS
3917 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3920 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3923 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3926 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3927 cat conftest.$ac_ext >&5
3929 rm -rf conftest* conftst*
3931 # Do not use the global_symbol_pipe unless it works.
3932 if test "$pipe_works" = yes; then
3935 lt_cv_sys_global_symbol_pipe=
3939 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3940 lt_cv_sys_global_symbol_to_cdecl=
3942 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3943 AC_MSG_RESULT(failed)
3948 # Response file support.
3949 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3950 nm_file_list_spec='@'
3951 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3952 nm_file_list_spec='@'
3955 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3956 [Take the output of nm and produce a listing of raw symbols and C names])
3957 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3958 [Transform the output of nm in a proper C declaration])
3959 _LT_DECL([global_symbol_to_c_name_address],
3960 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3961 [Transform the output of nm in a C name address pair])
3962 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3963 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3964 [Transform the output of nm in a C name address pair when lib prefix is needed])
3965 _LT_DECL([], [nm_file_list_spec], [1],
3966 [Specify filename containing input files for $NM])
3967 ]) # _LT_CMD_GLOBAL_SYMBOLS
3970 # _LT_COMPILER_PIC([TAGNAME])
3971 # ---------------------------
3972 m4_defun([_LT_COMPILER_PIC],
3973 [m4_require([_LT_TAG_COMPILER])dnl
3974 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3975 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3978 m4_if([$1], [CXX], [
3979 # C++ specific cases for pic, static, wl, etc.
3980 if test "$GXX" = yes; then
3981 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3982 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3986 # All AIX code is PIC.
3987 if test "$host_cpu" = ia64; then
3988 # AIX 5 now supports IA64 processor
3989 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3996 # see comment about AmigaOS4 .so support
3997 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4000 # FIXME: we need at least 68020 code to build shared libraries, but
4001 # adding the `-m68020' flag to GCC prevents building anything better,
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4009 # PIC is the default for these OSes.
4011 mingw* | cygwin* | os2* | pw32* | cegcc*)
4012 # This hack is so that the source file can tell whether it is being
4013 # built for inclusion in a dll (and should export symbols for example).
4014 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4015 # (--disable-auto-import) libraries
4016 m4_if([$1], [GCJ], [],
4017 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4019 darwin* | rhapsody*)
4020 # PIC is the default on this platform
4021 # Common symbols not allowed in MH_DYLIB files
4022 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4025 # DJGPP does not support shared libraries at all
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4029 # PIC is the default for Haiku.
4030 # The "-static" flag exists, but is broken.
4031 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4035 # Instead, we relocate shared libraries at runtime.
4038 if test -d /usr/nec; then
4039 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4043 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4044 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4045 # sets the default TLS model and affects inlining.
4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4055 # QNX uses GNU C++, but need to define -shared option too, otherwise
4057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4066 # All AIX code is PIC.
4067 if test "$host_cpu" = ia64; then
4068 # AIX 5 now supports IA64 processor
4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4071 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4075 case $cc_basename in
4077 # Green Hills C++ Compiler
4078 # _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"
4082 mingw* | cygwin* | os2* | pw32* | cegcc*)
4083 # This hack is so that the source file can tell whether it is being
4084 # built for inclusion in a dll (and should export symbols for example).
4085 m4_if([$1], [GCJ], [],
4086 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4089 case $cc_basename in
4091 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4094 # Green Hills C++ Compiler
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4101 freebsd* | dragonfly*)
4102 # FreeBSD uses GNU C++
4104 hpux9* | hpux10* | hpux11*)
4105 case $cc_basename in
4107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4108 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4109 if test "$host_cpu" != ia64; then
4110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4114 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4115 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4130 # This is c89, which is MS Visual C++ (no shared libs)
4131 # Anyone wants to do a port?
4133 irix5* | irix6* | nonstopux*)
4134 case $cc_basename in
4136 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4138 # CC pic flag -KPIC is the default.
4144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4145 case $cc_basename in
4148 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4152 # old Intel C++ for x86_64 which still supported -KPIC.
4153 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4154 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4155 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4158 # Intel C++, used to be incompatible with GCC.
4159 # ICC 10 doesn't accept -KPIC any more.
4160 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4161 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4162 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4165 # Portland Group C++ compiler
4166 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4167 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4168 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4172 # Make sure the PIC flag is empty. It appears that all Alpha
4173 # Linux and Compaq Tru64 Unix objects are PIC.
4174 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4175 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4177 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4178 # IBM XL 8.0, 9.0 on PPC and BlueGene
4179 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4180 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4181 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4184 case `$CC -V 2>&1 | sed 5q` in
4187 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4188 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4189 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4200 case $cc_basename in
4202 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4211 # QNX uses GNU C++, but need to define -shared option too, otherwise
4213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4215 osf3* | osf4* | osf5*)
4216 case $cc_basename in
4218 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4221 # Rational C++ 2.4.1
4222 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4225 # Digital/Compaq C++
4226 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4227 # Make sure the PIC flag is empty. It appears that all Alpha
4228 # Linux and Compaq Tru64 Unix objects are PIC.
4229 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4230 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4239 case $cc_basename in
4241 # Sun C++ 4.2, 5.x and Centerline C++
4242 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4243 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4244 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4247 # Green Hills C++ Compiler
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4255 case $cc_basename in
4258 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4259 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4263 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4270 case $cc_basename in
4272 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4273 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4274 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4279 case $cc_basename in
4281 # NonStop-UX NCC 3.20
4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4291 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4297 if test "$GCC" = yes; then
4298 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4303 # All AIX code is PIC.
4304 if test "$host_cpu" = ia64; then
4305 # AIX 5 now supports IA64 processor
4306 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4313 # see comment about AmigaOS4 .so support
4314 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4317 # FIXME: we need at least 68020 code to build shared libraries, but
4318 # adding the `-m68020' flag to GCC prevents building anything better,
4320 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4326 # PIC is the default for these OSes.
4329 mingw* | cygwin* | pw32* | os2* | cegcc*)
4330 # This hack is so that the source file can tell whether it is being
4331 # built for inclusion in a dll (and should export symbols for example).
4332 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4333 # (--disable-auto-import) libraries
4334 m4_if([$1], [GCJ], [],
4335 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4338 darwin* | rhapsody*)
4339 # PIC is the default on this platform
4340 # Common symbols not allowed in MH_DYLIB files
4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4345 # PIC is the default for Haiku.
4346 # The "-static" flag exists, but is broken.
4347 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4351 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4352 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4353 # sets the default TLS model and affects inlining.
4359 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4365 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4366 # Instead, we relocate shared libraries at runtime.
4370 # Just because we use GCC doesn't mean we suddenly get shared libraries
4371 # on systems that don't support them.
4372 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4377 # QNX uses GNU C++, but need to define -shared option too, otherwise
4379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4383 if test -d /usr/nec; then
4384 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4389 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4393 case $cc_basename in
4394 nvcc*) # Cuda Compiler Driver 2.2
4395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4396 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4402 # PORTME Check for flag to pass linker flags through the system compiler.
4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4406 if test "$host_cpu" = ia64; then
4407 # AIX 5 now supports IA64 processor
4408 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4414 mingw* | cygwin* | pw32* | os2* | cegcc*)
4415 # This hack is so that the source file can tell whether it is being
4416 # built for inclusion in a dll (and should export symbols for example).
4417 m4_if([$1], [GCJ], [],
4418 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4421 hpux9* | hpux10* | hpux11*)
4422 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4433 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4434 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4437 irix5* | irix6* | nonstopux*)
4438 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4439 # PIC (with -KPIC) is the default.
4440 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4444 case $cc_basename in
4445 # old Intel for x86_64 which still supported -KPIC.
4447 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4448 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4449 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4451 # icc used to be incompatible with GCC.
4452 # ICC 10 doesn't accept -KPIC any more.
4454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4455 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4456 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4458 # Lahey Fortran 8.1.
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4465 # NAG Fortran compiler
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4470 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4471 # Portland Group compilers (*not* the Pentium gcc compiler,
4472 # which looks to be a dead project)
4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4474 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4475 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4478 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4479 # All Alpha code is PIC.
4480 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4482 xl* | bgxl* | bgf* | mpixl*)
4483 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4484 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4485 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4486 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4489 case `$CC -V 2>&1 | sed 5q` in
4490 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4491 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4494 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4496 *Sun\ F* | *Sun*Fortran*)
4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4498 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4499 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4504 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4505 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4507 *Intel*\ [[CF]]*Compiler*)
4508 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4509 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4510 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4513 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4514 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4515 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4524 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4528 # QNX uses GNU C++, but need to define -shared option too, otherwise
4530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4533 osf3* | osf4* | osf5*)
4534 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4535 # All OSF/1 code is PIC.
4536 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4540 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4544 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4545 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4546 case $cc_basename in
4547 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4548 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4550 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4555 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4556 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4560 sysv4 | sysv4.2uw2* | sysv4.3*)
4561 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4562 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4563 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4567 if test -d /usr/nec ;then
4568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4569 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4574 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4575 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4576 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4580 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4581 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4585 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4586 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4590 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4596 # For platforms which do not support PIC, -DPIC is meaningless:
4598 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4601 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4605 AC_CACHE_CHECK([for $compiler option to produce PIC],
4606 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4607 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4608 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4611 # Check to make sure the PIC flag actually works.
4613 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4614 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4615 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4616 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4617 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4619 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4621 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4622 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4624 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4625 [Additional compiler flags for building library objects])
4627 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4628 [How to pass a linker flag through the compiler])
4630 # Check to make sure the static flag actually works.
4632 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4633 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4634 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4635 $lt_tmp_static_flag,
4637 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4638 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4639 [Compiler flag to prevent dynamic linking])
4640 ])# _LT_COMPILER_PIC
4643 # _LT_LINKER_SHLIBS([TAGNAME])
4644 # ----------------------------
4645 # See if the linker supports building shared libraries.
4646 m4_defun([_LT_LINKER_SHLIBS],
4647 [AC_REQUIRE([LT_PATH_LD])dnl
4648 AC_REQUIRE([LT_PATH_NM])dnl
4649 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4650 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4651 m4_require([_LT_DECL_EGREP])dnl
4652 m4_require([_LT_DECL_SED])dnl
4653 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4654 m4_require([_LT_TAG_COMPILER])dnl
4655 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4656 m4_if([$1], [CXX], [
4657 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4658 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4661 # If we're using GNU nm, then we don't want the "-C" option.
4662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4663 # Also, AIX nm treats weak defined symbols like other global defined
4664 # symbols, whereas GNU nm marks them as "W".
4665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4666 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4668 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4672 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4674 cygwin* | mingw* | cegcc*)
4675 case $cc_basename in
4677 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4680 _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'
4681 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4686 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4691 _LT_TAGVAR(allow_undefined_flag, $1)=
4692 _LT_TAGVAR(always_export_symbols, $1)=no
4693 _LT_TAGVAR(archive_cmds, $1)=
4694 _LT_TAGVAR(archive_expsym_cmds, $1)=
4695 _LT_TAGVAR(compiler_needs_object, $1)=no
4696 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4697 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4698 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4699 _LT_TAGVAR(hardcode_automatic, $1)=no
4700 _LT_TAGVAR(hardcode_direct, $1)=no
4701 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4703 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4704 _LT_TAGVAR(hardcode_minus_L, $1)=no
4705 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4706 _LT_TAGVAR(inherit_rpath, $1)=no
4707 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4708 _LT_TAGVAR(module_cmds, $1)=
4709 _LT_TAGVAR(module_expsym_cmds, $1)=
4710 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4711 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4712 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4713 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4714 # include_expsyms should be a list of space-separated symbols to be *always*
4715 # included in the symbol list
4716 _LT_TAGVAR(include_expsyms, $1)=
4717 # exclude_expsyms can be an extended regexp of symbols to exclude
4718 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4719 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4720 # as well as any symbol that contains `d'.
4721 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4722 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4723 # platforms (ab)use it in PIC code, but their linkers get confused if
4724 # the symbol is explicitly referenced. Since portable code cannot
4725 # rely on this symbol name, it's probably fine to never include it in
4726 # preloaded symbol tables.
4727 # Exclude shared library initialization/finalization symbols.
4728 dnl Note also adjust exclude_expsyms for C++ above.
4729 extract_expsyms_cmds=
4732 cygwin* | mingw* | pw32* | cegcc*)
4733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4734 # When not using gcc, we currently assume that we are using
4735 # Microsoft Visual C++.
4736 if test "$GCC" != yes; then
4741 # we just hope/assume this is gcc and not c89 (= MSVC++)
4749 _LT_TAGVAR(ld_shlibs, $1)=yes
4751 # On some targets, GNU ld is compatible enough with the native linker
4752 # that we're better off using the native interface for both.
4753 lt_use_gnu_ld_interface=no
4754 if test "$with_gnu_ld" = yes; then
4757 # The AIX port of GNU ld has always aspired to compatibility
4758 # with the native linker. However, as the warning in the GNU ld
4759 # block says, versions before 2.19.5* couldn't really create working
4760 # shared libraries, regardless of the interface used.
4761 case `$LD -v 2>&1` in
4762 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4763 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4764 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4766 lt_use_gnu_ld_interface=yes
4771 lt_use_gnu_ld_interface=yes
4776 if test "$lt_use_gnu_ld_interface" = yes; then
4777 # If archive_cmds runs LD, not CC, wlarc should be empty
4780 # Set some defaults for GNU ld with shared library support. These
4781 # are reset later if shared libraries are not supported. Putting them
4782 # here allows them to be overridden if necessary.
4783 runpath_var=LD_RUN_PATH
4784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4785 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4786 # ancient GNU ld didn't support --whole-archive et. al.
4787 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4788 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4790 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4792 supports_anon_versioning=no
4793 case `$LD -v 2>&1` in
4794 *GNU\ gold*) supports_anon_versioning=yes ;;
4795 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4796 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4797 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4798 *\ 2.11.*) ;; # other 2.11 versions
4799 *) supports_anon_versioning=yes ;;
4802 # See if GNU ld supports shared libraries.
4805 # On AIX/PPC, the GNU linker is very broken
4806 if test "$host_cpu" != ia64; then
4807 _LT_TAGVAR(ld_shlibs, $1)=no
4810 *** Warning: the GNU linker, at least up to release 2.19, is reported
4811 *** to be unable to reliably create shared libraries on AIX.
4812 *** Therefore, libtool is disabling shared libraries support. If you
4813 *** really care for shared libraries, you may want to install binutils
4814 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4815 *** You will then need to restart the configuration process.
4824 # see comment about AmigaOS4 .so support
4825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4826 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4829 _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)'
4830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4831 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4838 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4840 # support --undefined. This deserves some investigation. FIXME
4841 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4843 _LT_TAGVAR(ld_shlibs, $1)=no
4847 cygwin* | mingw* | pw32* | cegcc*)
4848 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4849 # as there is no search path for DLLs.
4850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4851 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4852 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4853 _LT_TAGVAR(always_export_symbols, $1)=no
4854 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4855 _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'
4856 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4859 _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'
4860 # If the export-symbols file already is a .def file (1st line
4861 # is EXPORTS), use it as is; otherwise, prepend...
4862 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4863 cp $export_symbols $output_objdir/$soname.def;
4865 echo EXPORTS > $output_objdir/$soname.def;
4866 cat $export_symbols >> $output_objdir/$soname.def;
4868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4870 _LT_TAGVAR(ld_shlibs, $1)=no
4875 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4876 _LT_TAGVAR(link_all_deplibs, $1)=yes
4880 _LT_TAGVAR(hardcode_direct, $1)=no
4881 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4883 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4885 # Instead, shared libraries are loaded at an image base (0x10000000 by
4886 # default) and relocated if they conflict, which is a slow very memory
4887 # consuming and fragmenting process. To avoid this, we pick a random,
4888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4890 _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'
4891 _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'
4894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4896 if test "$host_os" = linux-dietlibc; then
4897 case $cc_basename in
4898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4902 && test "$tmp_diet" = no
4904 tmp_addflag=' $pic_flag'
4905 tmp_sharedflag='-shared'
4906 case $cc_basename,$host_cpu in
4907 pgcc*) # Portland Group C compiler
4908 _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'
4909 tmp_addflag=' $pic_flag'
4911 pgf77* | pgf90* | pgf95* | pgfortran*)
4912 # Portland Group f77 and f90 compilers
4913 _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'
4914 tmp_addflag=' $pic_flag -Mnomain' ;;
4915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4916 tmp_addflag=' -i_dynamic' ;;
4917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4918 tmp_addflag=' -i_dynamic -nofor_main' ;;
4919 ifc* | ifort*) # Intel Fortran compiler
4920 tmp_addflag=' -nofor_main' ;;
4921 lf95*) # Lahey Fortran 8.1
4922 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4923 tmp_sharedflag='--shared' ;;
4924 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4925 tmp_sharedflag='-qmkshrobj'
4927 nvcc*) # Cuda Compiler Driver 2.2
4928 _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'
4929 _LT_TAGVAR(compiler_needs_object, $1)=yes
4932 case `$CC -V 2>&1 | sed 5q` in
4933 *Sun\ C*) # Sun C 5.9
4934 _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'
4935 _LT_TAGVAR(compiler_needs_object, $1)=yes
4936 tmp_sharedflag='-G' ;;
4937 *Sun\ F*) # Sun Fortran 8.3
4938 tmp_sharedflag='-G' ;;
4940 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4942 if test "x$supports_anon_versioning" = xyes; then
4943 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4945 echo "local: *; };" >> $output_objdir/$libname.ver~
4946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4949 case $cc_basename in
4950 xlf* | bgf* | bgxlf* | mpixlf*)
4951 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4952 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4954 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4955 if test "x$supports_anon_versioning" = xyes; then
4956 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4958 echo "local: *; };" >> $output_objdir/$libname.ver~
4959 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4964 _LT_TAGVAR(ld_shlibs, $1)=no
4969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4970 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4973 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4974 _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'
4979 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4980 _LT_TAGVAR(ld_shlibs, $1)=no
4983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4984 *** create shared libraries on Solaris systems. Therefore, libtool
4985 *** is disabling shared libraries support. We urge you to upgrade GNU
4986 *** binutils to release 2.9.1 or newer. Another option is to modify
4987 *** your PATH or compiler configuration so that the native linker is
4988 *** used, and then restart.
4991 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4992 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4993 _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'
4995 _LT_TAGVAR(ld_shlibs, $1)=no
4999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5000 case `$LD -v 2>&1` in
5001 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5002 _LT_TAGVAR(ld_shlibs, $1)=no
5005 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5006 *** reliably create shared libraries on SCO systems. Therefore, libtool
5007 *** is disabling shared libraries support. We urge you to upgrade GNU
5008 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5009 *** your PATH or compiler configuration so that the native linker is
5010 *** used, and then restart.
5015 # For security reasons, it is highly recommended that you always
5016 # use absolute paths for naming shared libraries, and exclude the
5017 # DT_RUNPATH tag from executables and libraries. But doing so
5018 # requires that you compile everything twice, which is a pain.
5019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5021 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5022 _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'
5024 _LT_TAGVAR(ld_shlibs, $1)=no
5031 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5033 _LT_TAGVAR(hardcode_direct, $1)=yes
5034 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5039 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5040 _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'
5042 _LT_TAGVAR(ld_shlibs, $1)=no
5047 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5050 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5051 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5054 # PORTME fill in a description of your system's linker (not GNU ld)
5057 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5058 _LT_TAGVAR(always_export_symbols, $1)=yes
5059 _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'
5060 # Note: this linker hardcodes the directories in LIBPATH if there
5061 # are no directories specified by -L.
5062 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5064 # Neither direct hardcoding nor static linking is supported with a
5066 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5071 if test "$host_cpu" = ia64; then
5072 # On IA64, the linker does run time linking by default, so we don't
5073 # have to do anything special.
5074 aix_use_runtimelinking=no
5075 exp_sym_flag='-Bexport'
5078 # If we're using GNU nm, then we don't want the "-C" option.
5079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5080 # Also, AIX nm treats weak defined symbols like other global
5081 # defined symbols, whereas GNU nm marks them as "W".
5082 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5083 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5085 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5087 aix_use_runtimelinking=no
5089 # Test if we are trying to use run time linking or normal
5090 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5091 # need to do runtime linking.
5092 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5093 for ld_flag in $LDFLAGS; do
5094 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5095 aix_use_runtimelinking=yes
5102 exp_sym_flag='-bexport'
5103 no_entry_flag='-bnoentry'
5106 # When large executables or shared objects are built, AIX ld can
5107 # have problems creating the table of contents. If linking a library
5108 # or program results in "error TOC overflow" add -mminimal-toc to
5109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5112 _LT_TAGVAR(archive_cmds, $1)=''
5113 _LT_TAGVAR(hardcode_direct, $1)=yes
5114 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5115 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5116 _LT_TAGVAR(link_all_deplibs, $1)=yes
5117 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5119 if test "$GCC" = yes; then
5120 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5121 # We only want to do this on AIX 4.2 and lower, the check
5122 # below for broken collect2 doesn't work under 4.3+
5123 collect2name=`${CC} -print-prog-name=collect2`
5124 if test -f "$collect2name" &&
5125 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5127 # We have reworked collect2
5130 # We have old collect2
5131 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5132 # It fails to find uninstalled libraries when the uninstalled
5133 # path is not listed in the libpath. Setting hardcode_minus_L
5134 # to unsupported forces relinking
5135 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5136 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5137 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5141 shared_flag='-shared'
5142 if test "$aix_use_runtimelinking" = yes; then
5143 shared_flag="$shared_flag "'${wl}-G'
5147 if test "$host_cpu" = ia64; then
5148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5149 # chokes on -Wl,-G. The following line is correct:
5152 if test "$aix_use_runtimelinking" = yes; then
5153 shared_flag='${wl}-G'
5155 shared_flag='${wl}-bM:SRE'
5160 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5161 # It seems that -bexpall does not export symbols beginning with
5162 # underscore (_), so it is better to generate a list of symbols to export.
5163 _LT_TAGVAR(always_export_symbols, $1)=yes
5164 if test "$aix_use_runtimelinking" = yes; then
5165 # Warning - without using the other runtime loading flags (-brtl),
5166 # -berok will link without error, but may produce a broken library.
5167 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5168 # Determine the default libpath from the value encoded in an
5170 _LT_SYS_MODULE_PATH_AIX([$1])
5171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5172 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5174 if test "$host_cpu" = ia64; then
5175 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5176 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5177 _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"
5179 # Determine the default libpath from the value encoded in an
5181 _LT_SYS_MODULE_PATH_AIX([$1])
5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5183 # Warning - without using the other run time loading flags,
5184 # -berok will link without error, but may produce a broken library.
5185 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5186 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5187 if test "$with_gnu_ld" = yes; then
5188 # We only use this code for GNU lds that support --whole-archive.
5189 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5191 # Exported symbols can be pulled into shared objects from archives
5192 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5194 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5195 # This is similar to how AIX traditionally builds its shared libraries.
5196 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5204 # see comment about AmigaOS4 .so support
5205 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5206 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5209 _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)'
5210 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5211 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5217 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5220 cygwin* | mingw* | pw32* | cegcc*)
5221 # When not using gcc, we currently assume that we are using
5222 # Microsoft Visual C++.
5223 # hardcode_libdir_flag_spec is actually meaningless, as there is
5224 # no search path for DLLs.
5225 case $cc_basename in
5228 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5229 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5230 _LT_TAGVAR(always_export_symbols, $1)=yes
5231 _LT_TAGVAR(file_list_spec, $1)='@'
5232 # Tell ltmain to make .lib files, not .a files.
5234 # Tell ltmain to make .dll files, not .so files.
5236 # FIXME: Setting linknames here is a bad hack.
5237 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5238 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5239 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5241 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5243 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5245 # The linker will not automatically build a static lib if we build a DLL.
5246 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5247 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5248 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5249 _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'
5251 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5252 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5253 lt_tool_outputfile="@TOOL_OUTPUT@"~
5254 case $lt_outputfile in
5257 lt_outputfile="$lt_outputfile.exe"
5258 lt_tool_outputfile="$lt_tool_outputfile.exe"
5261 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5263 $RM "$lt_outputfile.manifest";
5267 # Assume MSVC wrapper
5268 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5269 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5270 # Tell ltmain to make .lib files, not .a files.
5272 # Tell ltmain to make .dll files, not .so files.
5274 # FIXME: Setting linknames here is a bad hack.
5275 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5276 # The linker will automatically build a .lib file if we build a DLL.
5277 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5278 # FIXME: Should let the user specify the lib program.
5279 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5280 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5285 darwin* | rhapsody*)
5286 _LT_DARWIN_LINKER_FEATURES($1)
5290 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5292 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5296 # support. Future versions do this automatically, but an explicit c++rt0.o
5297 # does not break anything, and helps significantly (at the cost of a little
5300 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5302 _LT_TAGVAR(hardcode_direct, $1)=yes
5303 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5308 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5309 _LT_TAGVAR(hardcode_direct, $1)=yes
5310 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5311 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5315 freebsd* | dragonfly*)
5316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5318 _LT_TAGVAR(hardcode_direct, $1)=yes
5319 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5323 if test "$GCC" = yes; then
5324 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5326 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5329 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5330 _LT_TAGVAR(hardcode_direct, $1)=yes
5332 # hardcode_minus_L: Not really in the search PATH,
5333 # but as the default location of the library.
5334 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5335 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5339 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5340 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5342 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5344 if test "$with_gnu_ld" = no; then
5345 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5346 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5347 _LT_TAGVAR(hardcode_direct, $1)=yes
5348 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5349 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5350 # hardcode_minus_L: Not really in the search PATH,
5351 # but as the default location of the library.
5352 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5360 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5363 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5366 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5372 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5375 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5379 # Older versions of the 11.00 compiler do not understand -b yet
5380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5381 _LT_LINKER_OPTION([if $CC understands -b],
5382 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5383 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5384 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5385 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5389 if test "$with_gnu_ld" = no; then
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5391 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5395 _LT_TAGVAR(hardcode_direct, $1)=no
5396 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5399 _LT_TAGVAR(hardcode_direct, $1)=yes
5400 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5401 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5403 # hardcode_minus_L: Not really in the search PATH,
5404 # but as the default location of the library.
5405 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5411 irix5* | irix6* | nonstopux*)
5412 if test "$GCC" = yes; then
5413 _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'
5414 # Try to use the -exported_symbol ld option, if it does not
5415 # work, assume that -exports_file does not work either and
5416 # implicitly export all symbols.
5417 # This should be the same for all languages, so no per-tag cache variable.
5418 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5419 [lt_cv_irix_exported_symbol],
5420 [save_LDFLAGS="$LDFLAGS"
5421 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5424 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5425 [C++], [[int foo (void) { return 0; }]],
5432 [lt_cv_irix_exported_symbol=yes],
5433 [lt_cv_irix_exported_symbol=no])
5434 LDFLAGS="$save_LDFLAGS"])
5435 if test "$lt_cv_irix_exported_symbol" = yes; then
5436 _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'
5439 _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'
5440 _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'
5442 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5444 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5445 _LT_TAGVAR(inherit_rpath, $1)=yes
5446 _LT_TAGVAR(link_all_deplibs, $1)=yes
5450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5451 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5453 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5455 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5456 _LT_TAGVAR(hardcode_direct, $1)=yes
5457 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5462 _LT_TAGVAR(hardcode_direct, $1)=yes
5463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5464 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5465 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5472 if test -f /usr/libexec/ld.so; then
5473 _LT_TAGVAR(hardcode_direct, $1)=yes
5474 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5475 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5477 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5478 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5479 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5480 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5483 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5484 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5485 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5489 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5494 _LT_TAGVAR(ld_shlibs, $1)=no
5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5500 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5501 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5502 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5503 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5507 if test "$GCC" = yes; then
5508 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5509 _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'
5511 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5512 _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'
5514 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5515 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5516 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5519 osf4* | osf5*) # as osf3* with the addition of -msym flag
5520 if test "$GCC" = yes; then
5521 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5522 _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'
5523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5525 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5526 _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'
5527 _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~
5528 $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'
5530 # Both c and cxx compiler support -rpath directly
5531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5533 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5534 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5538 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5539 if test "$GCC" = yes; then
5541 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5542 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5543 $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'
5545 case `$CC -V 2>&1` in
5548 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5549 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5554 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5555 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5556 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5560 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5561 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5563 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5565 # The compiler driver will combine and reorder linker options,
5566 # but understands `-z linker_flag'. GCC discards it without `$wl',
5567 # but is careful enough not to reorder.
5568 # Supported since Solaris 2.6 (maybe 2.5.1?)
5569 if test "$GCC" = yes; then
5570 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5572 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5576 _LT_TAGVAR(link_all_deplibs, $1)=yes
5580 if test "x$host_vendor" = xsequent; then
5581 # Use $CC to link under sequent, because it throws in some extra .o
5582 # files that make .init and .fini sections work.
5583 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5585 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5588 _LT_TAGVAR(hardcode_direct, $1)=yes
5589 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5590 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5594 case $host_vendor in
5596 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5597 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5600 ## LD is ld it makes a PLAMLIB
5601 ## CC just makes a GrossModule.
5602 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5603 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5604 _LT_TAGVAR(hardcode_direct, $1)=no
5607 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5608 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5611 runpath_var='LD_RUN_PATH'
5612 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5616 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5617 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5618 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5622 if test -d /usr/nec; then
5623 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5624 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5625 runpath_var=LD_RUN_PATH
5626 hardcode_runpath_var=yes
5627 _LT_TAGVAR(ld_shlibs, $1)=yes
5631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5632 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5633 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5634 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5635 runpath_var='LD_RUN_PATH'
5637 if test "$GCC" = yes; then
5638 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5639 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5641 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5642 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5646 sysv5* | sco3.2v5* | sco5v6*)
5647 # Note: We can NOT use -z defs as we might desire, because we do not
5648 # link with -lc, and that would cause any symbols used from libc to
5649 # always be unresolved, which means just about no library would
5650 # ever link correctly. If we're not using GNU ld we use -z text
5651 # though, which does catch some bad symbols but isn't as heavy-handed
5653 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5654 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5655 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5656 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5658 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5659 _LT_TAGVAR(link_all_deplibs, $1)=yes
5660 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5661 runpath_var='LD_RUN_PATH'
5663 if test "$GCC" = yes; then
5664 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5665 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5667 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5668 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5673 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5675 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5679 _LT_TAGVAR(ld_shlibs, $1)=no
5683 if test x$host_vendor = xsni; then
5685 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5686 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5692 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5693 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5695 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5697 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5698 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5699 _LT_DECL([], [extract_expsyms_cmds], [2],
5700 [The commands to extract the exported symbol list from a shared archive])
5703 # Do we need to explicitly link libc?
5705 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5707 # Assume -lc should be added
5708 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5710 if test "$enable_shared" = yes && test "$GCC" = yes; then
5711 case $_LT_TAGVAR(archive_cmds, $1) in
5713 # FIXME: we may have to deal with multi-command sequences.
5716 # Test whether the compiler implicitly links with -lc since on some
5717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5718 # to ld, don't add -lc before -lgcc.
5719 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5720 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5724 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5727 libobjs=conftest.$ac_objext
5729 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5730 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5736 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5737 _LT_TAGVAR(allow_undefined_flag, $1)=
5738 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5740 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5742 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5744 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5746 cat conftest.err 1>&5
5750 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5757 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5758 [Whether or not to add -lc for building shared libraries])
5759 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5760 [enable_shared_with_static_runtimes], [0],
5761 [Whether or not to disallow shared libs when runtime libs are static])
5762 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5763 [Compiler flag to allow reflexive dlopens])
5764 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5765 [Compiler flag to generate shared objects directly from archives])
5766 _LT_TAGDECL([], [compiler_needs_object], [1],
5767 [Whether the compiler copes with passing no objects directly])
5768 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5769 [Create an old-style archive from a shared archive])
5770 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5771 [Create a temporary old-style archive to link instead of a shared archive])
5772 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5773 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5774 _LT_TAGDECL([], [module_cmds], [2],
5775 [Commands used to build a loadable module if different from building
5777 _LT_TAGDECL([], [module_expsym_cmds], [2])
5778 _LT_TAGDECL([], [with_gnu_ld], [1],
5779 [Whether we are building with GNU ld or not])
5780 _LT_TAGDECL([], [allow_undefined_flag], [1],
5781 [Flag that allows shared libraries with undefined symbols to be built])
5782 _LT_TAGDECL([], [no_undefined_flag], [1],
5783 [Flag that enforces no undefined symbols])
5784 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5785 [Flag to hardcode $libdir into a binary during linking.
5786 This must work even if $libdir does not exist])
5787 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5788 [Whether we need a single "-rpath" flag with a separated argument])
5789 _LT_TAGDECL([], [hardcode_direct], [0],
5790 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5791 DIR into the resulting binary])
5792 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5793 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5794 DIR into the resulting binary and the resulting library dependency is
5795 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5796 library is relocated])
5797 _LT_TAGDECL([], [hardcode_minus_L], [0],
5798 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5799 into the resulting binary])
5800 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5801 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5802 into the resulting binary])
5803 _LT_TAGDECL([], [hardcode_automatic], [0],
5804 [Set to "yes" if building a shared library automatically hardcodes DIR
5805 into the library and all subsequent libraries and executables linked
5807 _LT_TAGDECL([], [inherit_rpath], [0],
5808 [Set to yes if linker adds runtime paths of dependent libraries
5809 to runtime path list])
5810 _LT_TAGDECL([], [link_all_deplibs], [0],
5811 [Whether libtool must link a program against all its dependency libraries])
5812 _LT_TAGDECL([], [always_export_symbols], [0],
5813 [Set to "yes" if exported symbols are required])
5814 _LT_TAGDECL([], [export_symbols_cmds], [2],
5815 [The commands to list exported symbols])
5816 _LT_TAGDECL([], [exclude_expsyms], [1],
5817 [Symbols that should not be listed in the preloaded symbols])
5818 _LT_TAGDECL([], [include_expsyms], [1],
5819 [Symbols that must always be exported])
5820 _LT_TAGDECL([], [prelink_cmds], [2],
5821 [Commands necessary for linking programs (against libraries) with templates])
5822 _LT_TAGDECL([], [postlink_cmds], [2],
5823 [Commands necessary for finishing linking programs])
5824 _LT_TAGDECL([], [file_list_spec], [1],
5825 [Specify filename containing input files])
5826 dnl FIXME: Not yet implemented
5827 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5828 dnl [Compiler flag to generate thread safe objects])
5829 ])# _LT_LINKER_SHLIBS
5832 # _LT_LANG_C_CONFIG([TAG])
5833 # ------------------------
5834 # Ensure that the configuration variables for a C compiler are suitably
5835 # defined. These variables are subsequently used by _LT_CONFIG to write
5836 # the compiler configuration to `libtool'.
5837 m4_defun([_LT_LANG_C_CONFIG],
5838 [m4_require([_LT_DECL_EGREP])dnl
5842 # Source file extension for C test sources.
5845 # Object file extension for compiled C test sources.
5847 _LT_TAGVAR(objext, $1)=$objext
5849 # Code to be used in simple compile tests
5850 lt_simple_compile_test_code="int some_variable = 0;"
5852 # Code to be used in simple link tests
5853 lt_simple_link_test_code='int main(){return(0);}'
5856 # Save the default compiler, since it gets overwritten when the other
5857 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5858 compiler_DEFAULT=$CC
5860 # save warnings/boilerplate of simple test code
5861 _LT_COMPILER_BOILERPLATE
5862 _LT_LINKER_BOILERPLATE
5864 if test -n "$compiler"; then
5865 _LT_COMPILER_NO_RTTI($1)
5866 _LT_COMPILER_PIC($1)
5867 _LT_COMPILER_C_O($1)
5868 _LT_COMPILER_FILE_LOCKS($1)
5869 _LT_LINKER_SHLIBS($1)
5870 _LT_SYS_DYNAMIC_LINKER($1)
5871 _LT_LINKER_HARDCODE_LIBPATH($1)
5875 # Report which library types will actually be built
5876 AC_MSG_CHECKING([if libtool supports shared libraries])
5877 AC_MSG_RESULT([$can_build_shared])
5879 AC_MSG_CHECKING([whether to build shared libraries])
5880 test "$can_build_shared" = "no" && enable_shared=no
5882 # On AIX, shared libraries and static libraries use the same namespace, and
5883 # are all built from PIC.
5886 test "$enable_shared" = yes && enable_static=no
5887 if test -n "$RANLIB"; then
5888 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5889 postinstall_cmds='$RANLIB $lib'
5894 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5895 test "$enable_shared" = yes && enable_static=no
5899 AC_MSG_RESULT([$enable_shared])
5901 AC_MSG_CHECKING([whether to build static libraries])
5902 # Make sure either enable_shared or enable_static is yes.
5903 test "$enable_shared" = yes || enable_static=yes
5904 AC_MSG_RESULT([$enable_static])
5910 ])# _LT_LANG_C_CONFIG
5913 # _LT_LANG_CXX_CONFIG([TAG])
5914 # --------------------------
5915 # Ensure that the configuration variables for a C++ compiler are suitably
5916 # defined. These variables are subsequently used by _LT_CONFIG to write
5917 # the compiler configuration to `libtool'.
5918 m4_defun([_LT_LANG_CXX_CONFIG],
5919 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5920 m4_require([_LT_DECL_EGREP])dnl
5921 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5924 (test "X$CXX" != "Xg++"))) ; then
5927 _lt_caught_CXX_error=yes
5931 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5932 _LT_TAGVAR(allow_undefined_flag, $1)=
5933 _LT_TAGVAR(always_export_symbols, $1)=no
5934 _LT_TAGVAR(archive_expsym_cmds, $1)=
5935 _LT_TAGVAR(compiler_needs_object, $1)=no
5936 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5937 _LT_TAGVAR(hardcode_direct, $1)=no
5938 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5940 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5941 _LT_TAGVAR(hardcode_minus_L, $1)=no
5942 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5943 _LT_TAGVAR(hardcode_automatic, $1)=no
5944 _LT_TAGVAR(inherit_rpath, $1)=no
5945 _LT_TAGVAR(module_cmds, $1)=
5946 _LT_TAGVAR(module_expsym_cmds, $1)=
5947 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5948 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5949 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5950 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5951 _LT_TAGVAR(no_undefined_flag, $1)=
5952 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5953 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5955 # Source file extension for C++ test sources.
5958 # Object file extension for compiled C++ test sources.
5960 _LT_TAGVAR(objext, $1)=$objext
5962 # No sense in running all these tests if we already determined that
5963 # the CXX compiler isn't working. Some variables (like enable_shared)
5964 # are currently assumed to apply to all compilers on this platform,
5965 # and will be corrupted by setting them based on a non-working compiler.
5966 if test "$_lt_caught_CXX_error" != yes; then
5967 # Code to be used in simple compile tests
5968 lt_simple_compile_test_code="int some_variable = 0;"
5970 # Code to be used in simple link tests
5971 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5976 # save warnings/boilerplate of simple test code
5977 _LT_COMPILER_BOILERPLATE
5978 _LT_LINKER_BOILERPLATE
5980 # Allow CC to be a program name with arguments.
5982 lt_save_CFLAGS=$CFLAGS
5986 lt_save_with_gnu_ld=$with_gnu_ld
5987 lt_save_path_LD=$lt_cv_path_LD
5988 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5989 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5991 $as_unset lt_cv_prog_gnu_ld
5993 if test -n "${lt_cv_path_LDCXX+set}"; then
5994 lt_cv_path_LD=$lt_cv_path_LDCXX
5996 $as_unset lt_cv_path_LD
5998 test -z "${LDCXX+set}" || LD=$LDCXX
6002 _LT_TAGVAR(compiler, $1)=$CC
6003 _LT_CC_BASENAME([$compiler])
6005 if test -n "$compiler"; then
6006 # We don't want -fno-exception when compiling C++ code, so set the
6007 # no_builtin_flag separately
6008 if test "$GXX" = yes; then
6009 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6011 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6014 if test "$GXX" = yes; then
6015 # Set up default GNU C++ configuration
6019 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6020 # archiving commands below assume that GNU ld is being used.
6021 if test "$with_gnu_ld" = yes; then
6022 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 _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'
6025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6026 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6028 # If archive_cmds runs LD, not CC, wlarc should be empty
6029 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6030 # investigate it a little bit more. (MM)
6033 # ancient GNU ld didn't support --whole-archive et. al.
6034 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6035 $GREP 'no-whole-archive' > /dev/null; then
6036 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6038 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6044 # A generic and very simple default shared library creation
6045 # command for GNU C++ for the case where it uses the native
6046 # linker, instead of GNU ld. If possible, this setting should
6047 # overridden to take advantage of the native linker features on
6048 # the platform it is being used on.
6049 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6052 # Commands to make compiler produce verbose output that lists
6053 # what "hidden" libraries, object files and flags are used when
6054 # linking a shared library.
6055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6063 # PORTME: fill in a description of your system's C++ link characteristics
6064 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6065 _LT_TAGVAR(ld_shlibs, $1)=yes
6068 # FIXME: insert proper C++ library support
6069 _LT_TAGVAR(ld_shlibs, $1)=no
6072 if test "$host_cpu" = ia64; then
6073 # On IA64, the linker does run time linking by default, so we don't
6074 # have to do anything special.
6075 aix_use_runtimelinking=no
6076 exp_sym_flag='-Bexport'
6079 aix_use_runtimelinking=no
6081 # Test if we are trying to use run time linking or normal
6082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6083 # need to do runtime linking.
6084 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6085 for ld_flag in $LDFLAGS; do
6088 aix_use_runtimelinking=yes
6096 exp_sym_flag='-bexport'
6097 no_entry_flag='-bnoentry'
6100 # When large executables or shared objects are built, AIX ld can
6101 # have problems creating the table of contents. If linking a library
6102 # or program results in "error TOC overflow" add -mminimal-toc to
6103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6106 _LT_TAGVAR(archive_cmds, $1)=''
6107 _LT_TAGVAR(hardcode_direct, $1)=yes
6108 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6109 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6110 _LT_TAGVAR(link_all_deplibs, $1)=yes
6111 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6113 if test "$GXX" = yes; then
6114 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6115 # We only want to do this on AIX 4.2 and lower, the check
6116 # below for broken collect2 doesn't work under 4.3+
6117 collect2name=`${CC} -print-prog-name=collect2`
6118 if test -f "$collect2name" &&
6119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6121 # We have reworked collect2
6124 # We have old collect2
6125 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6126 # It fails to find uninstalled libraries when the uninstalled
6127 # path is not listed in the libpath. Setting hardcode_minus_L
6128 # to unsupported forces relinking
6129 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6131 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6134 shared_flag='-shared'
6135 if test "$aix_use_runtimelinking" = yes; then
6136 shared_flag="$shared_flag "'${wl}-G'
6140 if test "$host_cpu" = ia64; then
6141 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6142 # chokes on -Wl,-G. The following line is correct:
6145 if test "$aix_use_runtimelinking" = yes; then
6146 shared_flag='${wl}-G'
6148 shared_flag='${wl}-bM:SRE'
6153 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6154 # It seems that -bexpall does not export symbols beginning with
6155 # underscore (_), so it is better to generate a list of symbols to
6157 _LT_TAGVAR(always_export_symbols, $1)=yes
6158 if test "$aix_use_runtimelinking" = yes; then
6159 # Warning - without using the other runtime loading flags (-brtl),
6160 # -berok will link without error, but may produce a broken library.
6161 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6162 # Determine the default libpath from the value encoded in an empty
6164 _LT_SYS_MODULE_PATH_AIX([$1])
6165 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6167 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6169 if test "$host_cpu" = ia64; then
6170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6171 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6172 _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"
6174 # Determine the default libpath from the value encoded in an
6176 _LT_SYS_MODULE_PATH_AIX([$1])
6177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6178 # Warning - without using the other run time loading flags,
6179 # -berok will link without error, but may produce a broken library.
6180 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6181 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6182 if test "$with_gnu_ld" = yes; then
6183 # We only use this code for GNU lds that support --whole-archive.
6184 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6186 # Exported symbols can be pulled into shared objects from archives
6187 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6189 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6190 # This is similar to how AIX traditionally builds its shared
6192 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6199 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6201 # support --undefined. This deserves some investigation. FIXME
6202 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6204 _LT_TAGVAR(ld_shlibs, $1)=no
6209 case $cc_basename in
6211 # FIXME: insert proper C++ library support
6212 _LT_TAGVAR(ld_shlibs, $1)=no
6217 cygwin* | mingw* | pw32* | cegcc*)
6218 case $GXX,$cc_basename in
6221 # hardcode_libdir_flag_spec is actually meaningless, as there is
6222 # no search path for DLLs.
6223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6224 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6225 _LT_TAGVAR(always_export_symbols, $1)=yes
6226 _LT_TAGVAR(file_list_spec, $1)='@'
6227 # Tell ltmain to make .lib files, not .a files.
6229 # Tell ltmain to make .dll files, not .so files.
6231 # FIXME: Setting linknames here is a bad hack.
6232 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6233 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6234 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6236 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6238 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6240 # The linker will not automatically build a static lib if we build a DLL.
6241 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6242 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6244 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6245 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6246 lt_tool_outputfile="@TOOL_OUTPUT@"~
6247 case $lt_outputfile in
6250 lt_outputfile="$lt_outputfile.exe"
6251 lt_tool_outputfile="$lt_tool_outputfile.exe"
6254 func_to_tool_file "$lt_outputfile"~
6255 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6256 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6257 $RM "$lt_outputfile.manifest";
6262 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6263 # as there is no search path for DLLs.
6264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6265 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6266 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6267 _LT_TAGVAR(always_export_symbols, $1)=no
6268 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6270 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6271 _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'
6272 # If the export-symbols file already is a .def file (1st line
6273 # is EXPORTS), use it as is; otherwise, prepend...
6274 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6275 cp $export_symbols $output_objdir/$soname.def;
6277 echo EXPORTS > $output_objdir/$soname.def;
6278 cat $export_symbols >> $output_objdir/$soname.def;
6280 $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'
6282 _LT_TAGVAR(ld_shlibs, $1)=no
6287 darwin* | rhapsody*)
6288 _LT_DARWIN_LINKER_FEATURES($1)
6292 case $cc_basename in
6294 # FIXME: insert proper C++ library support
6295 _LT_TAGVAR(ld_shlibs, $1)=no
6298 # Green Hills C++ Compiler
6299 # FIXME: insert proper C++ library support
6300 _LT_TAGVAR(ld_shlibs, $1)=no
6303 # FIXME: insert proper C++ library support
6304 _LT_TAGVAR(ld_shlibs, $1)=no
6310 # C++ shared libraries reported to be fairly broken before
6312 _LT_TAGVAR(ld_shlibs, $1)=no
6316 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6319 freebsd* | dragonfly*)
6320 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6322 _LT_TAGVAR(ld_shlibs, $1)=yes
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6330 _LT_TAGVAR(link_all_deplibs, $1)=yes
6334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6335 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6336 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6337 _LT_TAGVAR(hardcode_direct, $1)=yes
6338 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6339 # but as the default
6340 # location of the library.
6342 case $cc_basename in
6344 # FIXME: insert proper C++ library support
6345 _LT_TAGVAR(ld_shlibs, $1)=no
6348 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6349 # Commands to make compiler produce verbose output that lists
6350 # what "hidden" libraries, object files and flags are used when
6351 # linking a shared library.
6353 # There doesn't appear to be a way to prevent this compiler from
6354 # explicitly linking system object files so we need to strip them
6355 # from the output so that they don't get included in the library
6357 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"'
6360 if test "$GXX" = yes; then
6361 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6363 # FIXME: insert proper C++ library support
6364 _LT_TAGVAR(ld_shlibs, $1)=no
6371 if test $with_gnu_ld = no; then
6372 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6373 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6385 _LT_TAGVAR(hardcode_direct, $1)=no
6386 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6389 _LT_TAGVAR(hardcode_direct, $1)=yes
6390 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6391 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6392 # but as the default
6393 # location of the library.
6397 case $cc_basename in
6399 # FIXME: insert proper C++ library support
6400 _LT_TAGVAR(ld_shlibs, $1)=no
6405 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6408 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6411 _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'
6414 # Commands to make compiler produce verbose output that lists
6415 # what "hidden" libraries, object files and flags are used when
6416 # linking a shared library.
6418 # There doesn't appear to be a way to prevent this compiler from
6419 # explicitly linking system object files so we need to strip them
6420 # from the output so that they don't get included in the library
6422 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"'
6425 if test "$GXX" = yes; then
6426 if test $with_gnu_ld = no; then
6429 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6432 _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'
6435 _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'
6440 # FIXME: insert proper C++ library support
6441 _LT_TAGVAR(ld_shlibs, $1)=no
6448 _LT_TAGVAR(hardcode_direct, $1)=no
6449 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6451 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6453 # Instead, shared libraries are loaded at an image base (0x10000000 by
6454 # default) and relocated if they conflict, which is a slow very memory
6455 # consuming and fragmenting process. To avoid this, we pick a random,
6456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6458 _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'
6459 _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'
6462 case $cc_basename in
6465 _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'
6467 # Archives containing C++ object files must be created using
6468 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6469 # necessary to make sure instantiated templates are included
6471 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6474 if test "$GXX" = yes; then
6475 if test "$with_gnu_ld" = no; then
6476 _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'
6478 _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'
6481 _LT_TAGVAR(link_all_deplibs, $1)=yes
6484 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6485 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6486 _LT_TAGVAR(inherit_rpath, $1)=yes
6489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6490 case $cc_basename in
6492 # Kuck and Associates, Inc. (KAI) C++ Compiler
6494 # KCC will only create a shared library if the output file
6495 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6496 # to its proper name (with version) after linking.
6497 _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'
6498 _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'
6499 # Commands to make compiler produce verbose output that lists
6500 # what "hidden" libraries, object files and flags are used when
6501 # linking a shared library.
6503 # There doesn't appear to be a way to prevent this compiler from
6504 # explicitly linking system object files so we need to strip them
6505 # from the output so that they don't get included in the library
6507 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"'
6509 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6510 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6512 # Archives containing C++ object files must be created using
6513 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6514 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6519 # version 8.0 and above of icpc choke on multiply defined symbols
6520 # if we add $predep_objects and $postdep_objects, however 7.1 and
6521 # earlier do not add the objects themselves.
6522 case `$CC -V 2>&1` in
6524 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6525 _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'
6527 *) # Version 8.0 or newer
6530 ia64*) tmp_idyn=' -i_dynamic';;
6532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6533 _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'
6536 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6537 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6538 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6539 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6542 # Portland Group C++ compiler
6544 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6545 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6547 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6548 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6549 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6551 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6552 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6554 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6556 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6557 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6558 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6560 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6561 $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'
6563 *) # Version 6 and above use weak symbols
6564 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6565 _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'
6569 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6571 _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'
6575 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6576 _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'
6578 runpath_var=LD_RUN_PATH
6579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6580 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6582 # Commands to make compiler produce verbose output that lists
6583 # what "hidden" libraries, object files and flags are used when
6584 # linking a shared library.
6586 # There doesn't appear to be a way to prevent this compiler from
6587 # explicitly linking system object files so we need to strip them
6588 # from the output so that they don't get included in the library
6590 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'
6592 xl* | mpixl* | bgxl*)
6593 # IBM XL 8.0 on PPC, with GNU ld
6594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6595 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6596 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6597 if test "x$supports_anon_versioning" = xyes; then
6598 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6600 echo "local: *; };" >> $output_objdir/$libname.ver~
6601 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6605 case `$CC -V 2>&1 | sed 5q` in
6608 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6609 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6610 _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'
6611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6612 _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'
6613 _LT_TAGVAR(compiler_needs_object, $1)=yes
6615 # Not sure whether something based on
6616 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6618 output_verbose_link_cmd='func_echo_all'
6620 # Archives containing C++ object files must be created using
6621 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6622 # necessary to make sure instantiated templates are included
6624 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6632 # FIXME: insert proper C++ library support
6633 _LT_TAGVAR(ld_shlibs, $1)=no
6637 # FIXME: insert proper C++ library support
6638 _LT_TAGVAR(ld_shlibs, $1)=no
6642 case $cc_basename in
6644 # FIXME: insert proper C++ library support
6645 _LT_TAGVAR(ld_shlibs, $1)=no
6648 # FIXME: insert proper C++ library support
6649 _LT_TAGVAR(ld_shlibs, $1)=no
6655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6656 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6659 _LT_TAGVAR(hardcode_direct, $1)=yes
6660 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6662 # Workaround some broken pre-1.5 toolchains
6663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6667 _LT_TAGVAR(ld_shlibs, $1)=yes
6671 # C++ shared libraries are fairly broken
6672 _LT_TAGVAR(ld_shlibs, $1)=no
6676 if test -f /usr/libexec/ld.so; then
6677 _LT_TAGVAR(hardcode_direct, $1)=yes
6678 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6679 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6681 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6683 _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'
6684 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6685 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6687 output_verbose_link_cmd=func_echo_all
6689 _LT_TAGVAR(ld_shlibs, $1)=no
6693 osf3* | osf4* | osf5*)
6694 case $cc_basename in
6696 # Kuck and Associates, Inc. (KAI) C++ Compiler
6698 # KCC will only create a shared library if the output file
6699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6700 # to its proper name (with version) after linking.
6701 _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'
6703 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6704 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6706 # Archives containing C++ object files must be created using
6707 # the KAI C++ compiler.
6709 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6710 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6714 # Rational C++ 2.4.1
6715 # FIXME: insert proper C++ library support
6716 _LT_TAGVAR(ld_shlibs, $1)=no
6721 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6722 _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'
6723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6726 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6727 _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'
6728 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6729 echo "-hidden">> $lib.exp~
6730 $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~
6732 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6736 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6738 # Commands to make compiler produce verbose output that lists
6739 # what "hidden" libraries, object files and flags are used when
6740 # linking a shared library.
6742 # There doesn't appear to be a way to prevent this compiler from
6743 # explicitly linking system object files so we need to strip them
6744 # from the output so that they don't get included in the library
6746 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"'
6749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6750 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6753 _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'
6756 _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'
6760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6761 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6763 # Commands to make compiler produce verbose output that lists
6764 # what "hidden" libraries, object files and flags are used when
6765 # linking a shared library.
6766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6769 # FIXME: insert proper C++ library support
6770 _LT_TAGVAR(ld_shlibs, $1)=no
6777 # FIXME: insert proper C++ library support
6778 _LT_TAGVAR(ld_shlibs, $1)=no
6782 case $cc_basename in
6785 # FIXME: insert proper C++ library support
6786 _LT_TAGVAR(ld_shlibs, $1)=no
6790 # FIXME: insert proper C++ library support
6791 _LT_TAGVAR(ld_shlibs, $1)=no
6794 # FIXME: insert proper C++ library support
6795 _LT_TAGVAR(ld_shlibs, $1)=no
6801 case $cc_basename in
6803 # Sun C++ 4.2, 5.x and Centerline C++
6804 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6805 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6806 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6807 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6808 $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'
6810 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6811 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6813 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6815 # The compiler driver will combine and reorder linker options,
6816 # but understands `-z linker_flag'.
6817 # Supported since Solaris 2.6 (maybe 2.5.1?)
6818 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6821 _LT_TAGVAR(link_all_deplibs, $1)=yes
6823 output_verbose_link_cmd='func_echo_all'
6825 # Archives containing C++ object files must be created using
6826 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6827 # necessary to make sure instantiated templates are included
6829 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6832 # Green Hills C++ Compiler
6833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6835 # The C++ compiler must be used to create the archive.
6836 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6839 # GNU C++ compiler with Solaris linker
6840 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6841 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6842 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6844 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6845 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6847 # Commands to make compiler produce verbose output that lists
6848 # what "hidden" libraries, object files and flags are used when
6849 # linking a shared library.
6850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6852 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6854 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6855 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6856 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6858 # Commands to make compiler produce verbose output that lists
6859 # what "hidden" libraries, object files and flags are used when
6860 # linking a shared library.
6861 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6864 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6866 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6868 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6876 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6877 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6878 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6879 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6880 runpath_var='LD_RUN_PATH'
6882 case $cc_basename in
6884 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6885 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6889 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6894 sysv5* | sco3.2v5* | sco5v6*)
6895 # Note: We can NOT use -z defs as we might desire, because we do not
6896 # link with -lc, and that would cause any symbols used from libc to
6897 # always be unresolved, which means just about no library would
6898 # ever link correctly. If we're not using GNU ld we use -z text
6899 # though, which does catch some bad symbols but isn't as heavy-handed
6901 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6902 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6903 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6904 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6906 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6907 _LT_TAGVAR(link_all_deplibs, $1)=yes
6908 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6909 runpath_var='LD_RUN_PATH'
6911 case $cc_basename in
6913 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6914 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6915 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6916 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6917 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6918 '"$_LT_TAGVAR(reload_cmds, $1)"
6921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6922 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6928 case $cc_basename in
6930 # NonStop-UX NCC 3.20
6931 # FIXME: insert proper C++ library support
6932 _LT_TAGVAR(ld_shlibs, $1)=no
6935 # FIXME: insert proper C++ library support
6936 _LT_TAGVAR(ld_shlibs, $1)=no
6942 # FIXME: insert proper C++ library support
6943 _LT_TAGVAR(ld_shlibs, $1)=no
6947 # FIXME: insert proper C++ library support
6948 _LT_TAGVAR(ld_shlibs, $1)=no
6952 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6953 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6955 _LT_TAGVAR(GCC, $1)="$GXX"
6956 _LT_TAGVAR(LD, $1)="$LD"
6959 ## There is no encapsulation within the following macros, do not change
6960 ## the running order or otherwise move them around unless you know exactly
6961 ## what you are doing...
6962 _LT_SYS_HIDDEN_LIBDEPS($1)
6963 _LT_COMPILER_PIC($1)
6964 _LT_COMPILER_C_O($1)
6965 _LT_COMPILER_FILE_LOCKS($1)
6966 _LT_LINKER_SHLIBS($1)
6967 _LT_SYS_DYNAMIC_LINKER($1)
6968 _LT_LINKER_HARDCODE_LIBPATH($1)
6971 fi # test -n "$compiler"
6974 CFLAGS=$lt_save_CFLAGS
6978 with_gnu_ld=$lt_save_with_gnu_ld
6979 lt_cv_path_LDCXX=$lt_cv_path_LD
6980 lt_cv_path_LD=$lt_save_path_LD
6981 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6982 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6983 fi # test "$_lt_caught_CXX_error" != yes
6986 ])# _LT_LANG_CXX_CONFIG
6989 # _LT_FUNC_STRIPNAME_CNF
6990 # ----------------------
6991 # func_stripname_cnf prefix suffix name
6992 # strip PREFIX and SUFFIX off of NAME.
6993 # PREFIX and SUFFIX must not contain globbing or regex special
6994 # characters, hashes, percent signs, but SUFFIX may contain a leading
6995 # dot (in which case that matches only a dot).
6997 # This function is identical to the (non-XSI) version of func_stripname,
6998 # except this one can be used by m4 code that may be executed by configure,
6999 # rather than the libtool script.
7000 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7001 AC_REQUIRE([_LT_DECL_SED])
7002 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7003 func_stripname_cnf ()
7006 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7007 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7009 } # func_stripname_cnf
7010 ])# _LT_FUNC_STRIPNAME_CNF
7012 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7013 # ---------------------------------
7014 # Figure out "hidden" library dependencies from verbose
7015 # compiler output when linking a shared library.
7016 # Parse the compiler output and extract the necessary
7017 # objects, libraries and library flags.
7018 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7019 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7020 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7021 # Dependencies to place before and after the object being linked:
7022 _LT_TAGVAR(predep_objects, $1)=
7023 _LT_TAGVAR(postdep_objects, $1)=
7024 _LT_TAGVAR(predeps, $1)=
7025 _LT_TAGVAR(postdeps, $1)=
7026 _LT_TAGVAR(compiler_lib_search_path, $1)=
7028 dnl we can't use the lt_simple_compile_test_code here,
7029 dnl because it contains code intended for an executable,
7030 dnl not a library. It's possible we should let each
7031 dnl tag define a new lt_????_link_test_code variable,
7032 dnl but it's only used here...
7033 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7035 void foo (void) { a = 0; }
7037 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7041 Foo (void) { a = 0; }
7046 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7054 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7062 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7065 public void bar (void) {
7070 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7077 _lt_libdeps_save_CFLAGS=$CFLAGS
7078 case "$CC $CFLAGS " in #(
7079 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7080 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7081 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7084 dnl Parse the compiler output and extract the necessary
7085 dnl objects, libraries and library flags.
7086 if AC_TRY_EVAL(ac_compile); then
7087 # Parse the compiler output and extract the necessary
7088 # objects, libraries and library flags.
7090 # Sentinel used to keep track of whether or not we are before
7091 # the conftest object file.
7092 pre_test_object_deps_done=no
7094 for p in `eval "$output_verbose_link_cmd"`; do
7098 # Some compilers place space between "-{L,R}" and the path.
7100 if test $p = "-L" ||
7101 test $p = "-R"; then
7106 # Expand the sysroot to ease extracting the directories later.
7107 if test -z "$prev"; then
7109 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7110 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7111 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7115 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7117 if test "$pre_test_object_deps_done" = no; then
7120 # Internal compiler library paths should come after those
7121 # provided the user. The postdeps already come after the
7122 # user supplied libs so there is no need to process them.
7123 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7124 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7126 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7129 # The "-l" case would never come before the object being
7130 # linked, so don't bother handling this case.
7133 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7134 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7136 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7142 *.lto.$objext) ;; # Ignore GCC LTO objects
7144 # This assumes that the test object file only shows up
7145 # once in the compiler output.
7146 if test "$p" = "conftest.$objext"; then
7147 pre_test_object_deps_done=yes
7151 if test "$pre_test_object_deps_done" = no; then
7152 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7153 _LT_TAGVAR(predep_objects, $1)="$p"
7155 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7158 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7159 _LT_TAGVAR(postdep_objects, $1)="$p"
7161 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7166 *) ;; # Ignore the rest.
7174 echo "libtool.m4: error: problem compiling $1 test program"
7177 $RM -f confest.$objext
7178 CFLAGS=$_lt_libdeps_save_CFLAGS
7180 # PORTME: override above test on systems where it is broken
7184 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7185 # hack all around it, let's just trust "g++" to DTRT.
7186 _LT_TAGVAR(predep_objects,$1)=
7187 _LT_TAGVAR(postdep_objects,$1)=
7188 _LT_TAGVAR(postdeps,$1)=
7192 case `$CC -V 2>&1 | sed 5q` in
7196 # The more standards-conforming stlport4 library is
7197 # incompatible with the Cstd library. Avoid specifying
7198 # it if it's in CXXFLAGS. Ignore libCrun as
7199 # -library=stlport4 depends on it.
7200 case " $CXX $CXXFLAGS " in
7201 *" -library=stlport4 "*)
7202 solaris_use_stlport4=yes
7206 if test "$solaris_use_stlport4" != yes; then
7207 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7214 case $cc_basename in
7216 # The more standards-conforming stlport4 library is
7217 # incompatible with the Cstd library. Avoid specifying
7218 # it if it's in CXXFLAGS. Ignore libCrun as
7219 # -library=stlport4 depends on it.
7220 case " $CXX $CXXFLAGS " in
7221 *" -library=stlport4 "*)
7222 solaris_use_stlport4=yes
7226 # Adding this requires a known-good setup of shared libraries for
7227 # Sun compiler versions before 5.6, else PIC objects from an old
7228 # archive will be linked into the output, leading to subtle bugs.
7229 if test "$solaris_use_stlport4" != yes; then
7230 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7238 case " $_LT_TAGVAR(postdeps, $1) " in
7239 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7241 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7242 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7243 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7245 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7246 [The directories searched by this compiler when creating a shared library])
7247 _LT_TAGDECL([], [predep_objects], [1],
7248 [Dependencies to place before and after the objects being linked to
7249 create a shared library])
7250 _LT_TAGDECL([], [postdep_objects], [1])
7251 _LT_TAGDECL([], [predeps], [1])
7252 _LT_TAGDECL([], [postdeps], [1])
7253 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7254 [The library search path used internally by the compiler when linking
7256 ])# _LT_SYS_HIDDEN_LIBDEPS
7259 # _LT_LANG_F77_CONFIG([TAG])
7260 # --------------------------
7261 # Ensure that the configuration variables for a Fortran 77 compiler are
7262 # suitably defined. These variables are subsequently used by _LT_CONFIG
7263 # to write the compiler configuration to `libtool'.
7264 m4_defun([_LT_LANG_F77_CONFIG],
7265 [AC_LANG_PUSH(Fortran 77)
7266 if test -z "$F77" || test "X$F77" = "Xno"; then
7270 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7271 _LT_TAGVAR(allow_undefined_flag, $1)=
7272 _LT_TAGVAR(always_export_symbols, $1)=no
7273 _LT_TAGVAR(archive_expsym_cmds, $1)=
7274 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7275 _LT_TAGVAR(hardcode_direct, $1)=no
7276 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7277 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7278 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7279 _LT_TAGVAR(hardcode_minus_L, $1)=no
7280 _LT_TAGVAR(hardcode_automatic, $1)=no
7281 _LT_TAGVAR(inherit_rpath, $1)=no
7282 _LT_TAGVAR(module_cmds, $1)=
7283 _LT_TAGVAR(module_expsym_cmds, $1)=
7284 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7285 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7286 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7287 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7288 _LT_TAGVAR(no_undefined_flag, $1)=
7289 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7290 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7292 # Source file extension for f77 test sources.
7295 # Object file extension for compiled f77 test sources.
7297 _LT_TAGVAR(objext, $1)=$objext
7299 # No sense in running all these tests if we already determined that
7300 # the F77 compiler isn't working. Some variables (like enable_shared)
7301 # are currently assumed to apply to all compilers on this platform,
7302 # and will be corrupted by setting them based on a non-working compiler.
7303 if test "$_lt_disable_F77" != yes; then
7304 # Code to be used in simple compile tests
7305 lt_simple_compile_test_code="\
7311 # Code to be used in simple link tests
7312 lt_simple_link_test_code="\
7317 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7320 # save warnings/boilerplate of simple test code
7321 _LT_COMPILER_BOILERPLATE
7322 _LT_LINKER_BOILERPLATE
7324 # Allow CC to be a program name with arguments.
7327 lt_save_CFLAGS=$CFLAGS
7331 _LT_TAGVAR(compiler, $1)=$CC
7332 _LT_CC_BASENAME([$compiler])
7334 if test -n "$compiler"; then
7335 AC_MSG_CHECKING([if libtool supports shared libraries])
7336 AC_MSG_RESULT([$can_build_shared])
7338 AC_MSG_CHECKING([whether to build shared libraries])
7339 test "$can_build_shared" = "no" && enable_shared=no
7341 # On AIX, shared libraries and static libraries use the same namespace, and
7342 # are all built from PIC.
7345 test "$enable_shared" = yes && enable_static=no
7346 if test -n "$RANLIB"; then
7347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7348 postinstall_cmds='$RANLIB $lib'
7352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7353 test "$enable_shared" = yes && enable_static=no
7357 AC_MSG_RESULT([$enable_shared])
7359 AC_MSG_CHECKING([whether to build static libraries])
7360 # Make sure either enable_shared or enable_static is yes.
7361 test "$enable_shared" = yes || enable_static=yes
7362 AC_MSG_RESULT([$enable_static])
7364 _LT_TAGVAR(GCC, $1)="$G77"
7365 _LT_TAGVAR(LD, $1)="$LD"
7368 ## There is no encapsulation within the following macros, do not change
7369 ## the running order or otherwise move them around unless you know exactly
7370 ## what you are doing...
7371 _LT_COMPILER_PIC($1)
7372 _LT_COMPILER_C_O($1)
7373 _LT_COMPILER_FILE_LOCKS($1)
7374 _LT_LINKER_SHLIBS($1)
7375 _LT_SYS_DYNAMIC_LINKER($1)
7376 _LT_LINKER_HARDCODE_LIBPATH($1)
7379 fi # test -n "$compiler"
7383 CFLAGS="$lt_save_CFLAGS"
7384 fi # test "$_lt_disable_F77" != yes
7387 ])# _LT_LANG_F77_CONFIG
7390 # _LT_LANG_FC_CONFIG([TAG])
7391 # -------------------------
7392 # Ensure that the configuration variables for a Fortran compiler are
7393 # suitably defined. These variables are subsequently used by _LT_CONFIG
7394 # to write the compiler configuration to `libtool'.
7395 m4_defun([_LT_LANG_FC_CONFIG],
7396 [AC_LANG_PUSH(Fortran)
7398 if test -z "$FC" || test "X$FC" = "Xno"; then
7402 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7403 _LT_TAGVAR(allow_undefined_flag, $1)=
7404 _LT_TAGVAR(always_export_symbols, $1)=no
7405 _LT_TAGVAR(archive_expsym_cmds, $1)=
7406 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7407 _LT_TAGVAR(hardcode_direct, $1)=no
7408 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7409 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7410 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7411 _LT_TAGVAR(hardcode_minus_L, $1)=no
7412 _LT_TAGVAR(hardcode_automatic, $1)=no
7413 _LT_TAGVAR(inherit_rpath, $1)=no
7414 _LT_TAGVAR(module_cmds, $1)=
7415 _LT_TAGVAR(module_expsym_cmds, $1)=
7416 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7417 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7418 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7419 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7420 _LT_TAGVAR(no_undefined_flag, $1)=
7421 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7422 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7424 # Source file extension for fc test sources.
7425 ac_ext=${ac_fc_srcext-f}
7427 # Object file extension for compiled fc test sources.
7429 _LT_TAGVAR(objext, $1)=$objext
7431 # No sense in running all these tests if we already determined that
7432 # the FC compiler isn't working. Some variables (like enable_shared)
7433 # are currently assumed to apply to all compilers on this platform,
7434 # and will be corrupted by setting them based on a non-working compiler.
7435 if test "$_lt_disable_FC" != yes; then
7436 # Code to be used in simple compile tests
7437 lt_simple_compile_test_code="\
7443 # Code to be used in simple link tests
7444 lt_simple_link_test_code="\
7449 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7452 # save warnings/boilerplate of simple test code
7453 _LT_COMPILER_BOILERPLATE
7454 _LT_LINKER_BOILERPLATE
7456 # Allow CC to be a program name with arguments.
7459 lt_save_CFLAGS=$CFLAGS
7463 GCC=$ac_cv_fc_compiler_gnu
7465 _LT_TAGVAR(compiler, $1)=$CC
7466 _LT_CC_BASENAME([$compiler])
7468 if test -n "$compiler"; then
7469 AC_MSG_CHECKING([if libtool supports shared libraries])
7470 AC_MSG_RESULT([$can_build_shared])
7472 AC_MSG_CHECKING([whether to build shared libraries])
7473 test "$can_build_shared" = "no" && enable_shared=no
7475 # On AIX, shared libraries and static libraries use the same namespace, and
7476 # are all built from PIC.
7479 test "$enable_shared" = yes && enable_static=no
7480 if test -n "$RANLIB"; then
7481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7482 postinstall_cmds='$RANLIB $lib'
7486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7487 test "$enable_shared" = yes && enable_static=no
7491 AC_MSG_RESULT([$enable_shared])
7493 AC_MSG_CHECKING([whether to build static libraries])
7494 # Make sure either enable_shared or enable_static is yes.
7495 test "$enable_shared" = yes || enable_static=yes
7496 AC_MSG_RESULT([$enable_static])
7498 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7499 _LT_TAGVAR(LD, $1)="$LD"
7502 ## There is no encapsulation within the following macros, do not change
7503 ## the running order or otherwise move them around unless you know exactly
7504 ## what you are doing...
7505 _LT_SYS_HIDDEN_LIBDEPS($1)
7506 _LT_COMPILER_PIC($1)
7507 _LT_COMPILER_C_O($1)
7508 _LT_COMPILER_FILE_LOCKS($1)
7509 _LT_LINKER_SHLIBS($1)
7510 _LT_SYS_DYNAMIC_LINKER($1)
7511 _LT_LINKER_HARDCODE_LIBPATH($1)
7514 fi # test -n "$compiler"
7518 CFLAGS=$lt_save_CFLAGS
7519 fi # test "$_lt_disable_FC" != yes
7522 ])# _LT_LANG_FC_CONFIG
7525 # _LT_LANG_GCJ_CONFIG([TAG])
7526 # --------------------------
7527 # Ensure that the configuration variables for the GNU Java Compiler compiler
7528 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7529 # to write the compiler configuration to `libtool'.
7530 m4_defun([_LT_LANG_GCJ_CONFIG],
7531 [AC_REQUIRE([LT_PROG_GCJ])dnl
7534 # Source file extension for Java test sources.
7537 # Object file extension for compiled Java test sources.
7539 _LT_TAGVAR(objext, $1)=$objext
7541 # Code to be used in simple compile tests
7542 lt_simple_compile_test_code="class foo {}"
7544 # Code to be used in simple link tests
7545 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7550 # save warnings/boilerplate of simple test code
7551 _LT_COMPILER_BOILERPLATE
7552 _LT_LINKER_BOILERPLATE
7554 # Allow CC to be a program name with arguments.
7556 lt_save_CFLAGS=$CFLAGS
7562 _LT_TAGVAR(compiler, $1)=$CC
7563 _LT_TAGVAR(LD, $1)="$LD"
7564 _LT_CC_BASENAME([$compiler])
7566 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7567 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7569 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7570 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7571 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7573 if test -n "$compiler"; then
7574 _LT_COMPILER_NO_RTTI($1)
7575 _LT_COMPILER_PIC($1)
7576 _LT_COMPILER_C_O($1)
7577 _LT_COMPILER_FILE_LOCKS($1)
7578 _LT_LINKER_SHLIBS($1)
7579 _LT_LINKER_HARDCODE_LIBPATH($1)
7588 CFLAGS=$lt_save_CFLAGS
7589 ])# _LT_LANG_GCJ_CONFIG
7592 # _LT_LANG_GO_CONFIG([TAG])
7593 # --------------------------
7594 # Ensure that the configuration variables for the GNU Go compiler
7595 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7596 # to write the compiler configuration to `libtool'.
7597 m4_defun([_LT_LANG_GO_CONFIG],
7598 [AC_REQUIRE([LT_PROG_GO])dnl
7601 # Source file extension for Go test sources.
7604 # Object file extension for compiled Go test sources.
7606 _LT_TAGVAR(objext, $1)=$objext
7608 # Code to be used in simple compile tests
7609 lt_simple_compile_test_code="package main; func main() { }"
7611 # Code to be used in simple link tests
7612 lt_simple_link_test_code='package main; func main() { }'
7614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7617 # save warnings/boilerplate of simple test code
7618 _LT_COMPILER_BOILERPLATE
7619 _LT_LINKER_BOILERPLATE
7621 # Allow CC to be a program name with arguments.
7623 lt_save_CFLAGS=$CFLAGS
7629 _LT_TAGVAR(compiler, $1)=$CC
7630 _LT_TAGVAR(LD, $1)="$LD"
7631 _LT_CC_BASENAME([$compiler])
7633 # Go did not exist at the time GCC didn't implicitly link libc in.
7634 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7636 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7637 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7638 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7640 if test -n "$compiler"; then
7641 _LT_COMPILER_NO_RTTI($1)
7642 _LT_COMPILER_PIC($1)
7643 _LT_COMPILER_C_O($1)
7644 _LT_COMPILER_FILE_LOCKS($1)
7645 _LT_LINKER_SHLIBS($1)
7646 _LT_LINKER_HARDCODE_LIBPATH($1)
7655 CFLAGS=$lt_save_CFLAGS
7656 ])# _LT_LANG_GO_CONFIG
7659 # _LT_LANG_RC_CONFIG([TAG])
7660 # -------------------------
7661 # Ensure that the configuration variables for the Windows resource compiler
7662 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7663 # to write the compiler configuration to `libtool'.
7664 m4_defun([_LT_LANG_RC_CONFIG],
7665 [AC_REQUIRE([LT_PROG_RC])dnl
7668 # Source file extension for RC test sources.
7671 # Object file extension for compiled RC test sources.
7673 _LT_TAGVAR(objext, $1)=$objext
7675 # Code to be used in simple compile tests
7676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7678 # Code to be used in simple link tests
7679 lt_simple_link_test_code="$lt_simple_compile_test_code"
7681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7684 # save warnings/boilerplate of simple test code
7685 _LT_COMPILER_BOILERPLATE
7686 _LT_LINKER_BOILERPLATE
7688 # Allow CC to be a program name with arguments.
7690 lt_save_CFLAGS=$CFLAGS
7696 _LT_TAGVAR(compiler, $1)=$CC
7697 _LT_CC_BASENAME([$compiler])
7698 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7700 if test -n "$compiler"; then
7708 CFLAGS=$lt_save_CFLAGS
7709 ])# _LT_LANG_RC_CONFIG
7714 AC_DEFUN([LT_PROG_GCJ],
7715 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7716 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7717 [AC_CHECK_TOOL(GCJ, gcj,)
7718 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7719 AC_SUBST(GCJFLAGS)])])[]dnl
7723 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7724 dnl aclocal-1.4 backwards compatibility:
7725 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7730 AC_DEFUN([LT_PROG_GO],
7731 [AC_CHECK_TOOL(GOC, gccgo,)
7737 AC_DEFUN([LT_PROG_RC],
7738 [AC_CHECK_TOOL(RC, windres,)
7742 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7743 dnl aclocal-1.4 backwards compatibility:
7744 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7749 # If we don't have a new enough Autoconf to choose the best grep
7750 # available, choose the one first in the user's PATH.
7751 m4_defun([_LT_DECL_EGREP],
7752 [AC_REQUIRE([AC_PROG_EGREP])dnl
7753 AC_REQUIRE([AC_PROG_FGREP])dnl
7754 test -z "$GREP" && GREP=grep
7755 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7756 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7757 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7758 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7765 # If we don't have a new enough Autoconf to choose the best objdump
7766 # available, choose the one first in the user's PATH.
7767 m4_defun([_LT_DECL_OBJDUMP],
7768 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7769 test -z "$OBJDUMP" && OBJDUMP=objdump
7770 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7776 # Ensure DLLTOOL variable is set.
7777 m4_defun([_LT_DECL_DLLTOOL],
7778 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7779 test -z "$DLLTOOL" && DLLTOOL=dlltool
7780 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7786 # Check for a fully-functional sed program, that truncates
7787 # as few characters as possible. Prefer GNU sed if found.
7788 m4_defun([_LT_DECL_SED],
7790 test -z "$SED" && SED=sed
7791 Xsed="$SED -e 1s/^X//"
7792 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7793 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7794 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7797 m4_ifndef([AC_PROG_SED], [
7798 # NOTE: This macro has been submitted for inclusion into #
7799 # GNU Autoconf as AC_PROG_SED. When it is available in #
7800 # a released version of Autoconf we should remove this #
7801 # macro and use it instead. #
7803 m4_defun([AC_PROG_SED],
7804 [AC_MSG_CHECKING([for a sed that does not truncate output])
7805 AC_CACHE_VAL(lt_cv_path_SED,
7806 [# Loop through the user's path and test for sed and gsed.
7807 # Then use that list of sed's as ones to test for truncation.
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir=.
7813 for lt_ac_prog in sed gsed; do
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7816 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7824 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7825 # along with /bin/sed that truncates output.
7826 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7827 test ! -f $lt_ac_sed && continue
7828 cat /dev/null > conftest.in
7830 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7831 # Check for GNU sed and select it if it is found.
7832 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7833 lt_cv_path_SED=$lt_ac_sed
7837 cat conftest.in conftest.in >conftest.tmp
7838 mv conftest.tmp conftest.in
7839 cp conftest.in conftest.nl
7841 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7842 cmp -s conftest.out conftest.nl || break
7843 # 10000 chars as input seems more than enough
7844 test $lt_ac_count -gt 10 && break
7845 lt_ac_count=`expr $lt_ac_count + 1`
7846 if test $lt_ac_count -gt $lt_ac_max; then
7847 lt_ac_max=$lt_ac_count
7848 lt_cv_path_SED=$lt_ac_sed
7855 AC_MSG_RESULT([$SED])
7860 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7861 dnl aclocal-1.4 backwards compatibility:
7862 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7865 # _LT_CHECK_SHELL_FEATURES
7866 # ------------------------
7867 # Find out whether the shell is Bourne or XSI compatible,
7868 # or has some other useful features.
7869 m4_defun([_LT_CHECK_SHELL_FEATURES],
7870 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7871 # Try some XSI features
7874 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7876 && eval 'test $(( 1 + 1 )) -eq 2 \
7877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7879 AC_MSG_RESULT([$xsi_shell])
7880 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7882 AC_MSG_CHECKING([whether the shell understands "+="])
7884 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7886 && lt_shell_append=yes
7887 AC_MSG_RESULT([$lt_shell_append])
7888 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7895 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7897 # test EBCDIC or ASCII
7898 case `echo X|tr X '\101'` in
7899 A) # ASCII based system
7900 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7901 lt_SP2NL='tr \040 \012'
7902 lt_NL2SP='tr \015\012 \040\040'
7904 *) # EBCDIC based system
7905 lt_SP2NL='tr \100 \n'
7906 lt_NL2SP='tr \r\n \100\100'
7909 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7910 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7911 ])# _LT_CHECK_SHELL_FEATURES
7914 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7915 # ------------------------------------------------------
7916 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7917 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7918 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7920 sed -e '/^$1 ()$/,/^} # $1 /c\
7923 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7924 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7931 # _LT_PROG_REPLACE_SHELLFNS
7932 # -------------------------
7933 # Replace existing portable implementations of several shell functions with
7934 # equivalent extended shell implementations where those features are available..
7935 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7936 [if test x"$xsi_shell" = xyes; then
7937 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7939 */*) func_dirname_result="${1%/*}${2}" ;;
7940 * ) func_dirname_result="${3}" ;;
7943 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7944 func_basename_result="${1##*/}"])
7946 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7948 */*) func_dirname_result="${1%/*}${2}" ;;
7949 * ) func_dirname_result="${3}" ;;
7951 func_basename_result="${1##*/}"])
7953 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7954 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7955 # positional parameters, so assign one to ordinary parameter first.
7956 func_stripname_result=${3}
7957 func_stripname_result=${func_stripname_result#"${1}"}
7958 func_stripname_result=${func_stripname_result%"${2}"}])
7960 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7961 func_split_long_opt_name=${1%%=*}
7962 func_split_long_opt_arg=${1#*=}])
7964 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7965 func_split_short_opt_arg=${1#??}
7966 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7968 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7970 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7971 *) func_lo2o_result=${1} ;;
7974 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7976 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7978 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7981 if test x"$lt_shell_append" = xyes; then
7982 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7984 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7985 func_quote_for_eval "${2}"
7986 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7987 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7989 # Save a `func_append' function call where possible by direct use of '+='
7990 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7991 && mv -f "$cfgfile.tmp" "$cfgfile" \
7992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7993 test 0 -eq $? || _lt_function_replace_fail=:
7995 # Save a `func_append' function call even when '+=' is not available
7996 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7997 && mv -f "$cfgfile.tmp" "$cfgfile" \
7998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7999 test 0 -eq $? || _lt_function_replace_fail=:
8002 if test x"$_lt_function_replace_fail" = x":"; then
8003 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8007 # _LT_PATH_CONVERSION_FUNCTIONS
8008 # -----------------------------
8009 # Determine which file name conversion functions should be used by
8010 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8011 # for certain cross-compile configurations and native mingw.
8012 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8013 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8014 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8015 AC_MSG_CHECKING([how to convert $build file names to $host format])
8016 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8020 *-*-mingw* ) # actually msys
8021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8024 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8026 * ) # otherwise, assume *nix
8027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8033 *-*-mingw* ) # actually msys
8034 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8037 lt_cv_to_host_file_cmd=func_convert_file_noop
8039 * ) # otherwise, assume *nix
8040 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8044 * ) # unhandled hosts (and "normal" native builds)
8045 lt_cv_to_host_file_cmd=func_convert_file_noop
8049 to_host_file_cmd=$lt_cv_to_host_file_cmd
8050 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8051 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8052 [0], [convert $build file names to $host format])dnl
8054 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8055 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8056 [#assume ordinary cross tools, or native build.
8057 lt_cv_to_tool_file_cmd=func_convert_file_noop
8061 *-*-mingw* ) # actually msys
8062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8068 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8069 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8070 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8071 [0], [convert $build files to toolchain format])dnl
8072 ])# _LT_PATH_CONVERSION_FUNCTIONS
8074 # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
8076 # Copyright (C) 1999-2006, 2007, 2008, 2011 Free Software Foundation, Inc.
8077 # Written by Thomas Tanner, 1999
8079 # This file is free software; the Free Software Foundation gives
8080 # unlimited permission to copy and/or distribute it, with or without
8081 # modifications, as long as this notice is preserved.
8083 # serial 18 LTDL_INIT
8085 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
8086 # ------------------------------------------
8087 # DIRECTORY contains the libltdl sources. It is okay to call this
8088 # function multiple times, as long as the same DIRECTORY is always given.
8089 AC_DEFUN([LT_CONFIG_LTDL_DIR],
8090 [AC_BEFORE([$0], [LTDL_INIT])
8092 ])# LT_CONFIG_LTDL_DIR
8094 # We break this out into a separate macro, so that we can call it safely
8095 # internally without being caught accidentally by the sed scan in libtoolize.
8096 m4_defun([_LT_CONFIG_LTDL_DIR],
8097 [dnl remove trailing slashes
8098 m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
8100 [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
8101 m4_if(_ARG_DIR, [.],
8103 [m4_define([_LTDL_DIR], _ARG_DIR)
8104 _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
8105 [m4_if(_ARG_DIR, _LTDL_DIR,
8107 [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
8108 m4_popdef([_ARG_DIR])
8109 ])# _LT_CONFIG_LTDL_DIR
8112 m4_define([_LTDL_DIR], [])
8117 # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
8118 # to `${top_builddir}/'.
8119 m4_define([_LT_BUILD_PREFIX],
8120 [m4_ifdef([AC_AUTOCONF_VERSION],
8121 [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
8122 [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
8123 [${top_build_prefix}],
8124 [${top_builddir}/])],
8125 [${top_build_prefix}])],
8126 [${top_builddir}/])[]dnl
8132 # sets LIBLTDL to the link flags for the libltdl convenience library and
8133 # LTDLINCL to the include flags for the libltdl header and adds
8134 # --enable-ltdl-convenience to the configure arguments. Note that
8135 # AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
8136 # '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
8137 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
8138 # quotes!). If your package is not flat and you're not using automake,
8139 # define top_build_prefix, top_builddir, and top_srcdir appropriately
8140 # in your Makefiles.
8141 AC_DEFUN([LTDL_CONVENIENCE],
8142 [AC_BEFORE([$0], [LTDL_INIT])dnl
8143 dnl Although the argument is deprecated and no longer documented,
8144 dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
8145 dnl here make sure it is the same as any other declaration of libltdl's
8146 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
8147 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8148 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8150 ])# LTDL_CONVENIENCE
8152 # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
8153 # now we have LT_CONFIG_LTDL_DIR:
8154 AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
8155 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8158 dnl aclocal-1.4 backwards compatibility:
8159 dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
8164 # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
8165 m4_defun([_LTDL_CONVENIENCE],
8166 [case $enable_ltdl_convenience in
8167 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8168 "") enable_ltdl_convenience=yes
8169 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8171 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
8173 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8176 AC_SUBST([LTDLDEPS])
8177 AC_SUBST([LTDLINCL])
8179 # For backwards non-gettext consistent compatibility...
8182 ])# _LTDL_CONVENIENCE
8187 # sets LIBLTDL to the link flags for the libltdl installable library
8188 # and LTDLINCL to the include flags for the libltdl header and adds
8189 # --enable-ltdl-install to the configure arguments. Note that
8190 # AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
8191 # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
8192 # available, otherwise with '${top_builddir}/', and LTDLINCL will be
8193 # prefixed with '${top_srcdir}/' (note the single quotes!). If your
8194 # package is not flat and you're not using automake, define top_build_prefix,
8195 # top_builddir, and top_srcdir appropriately in your Makefiles.
8196 # In the future, this macro may have to be called after LT_INIT.
8197 AC_DEFUN([LTDL_INSTALLABLE],
8198 [AC_BEFORE([$0], [LTDL_INIT])dnl
8199 dnl Although the argument is deprecated and no longer documented,
8200 dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
8201 dnl here make sure it is the same as any other declaration of libltdl's
8202 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
8203 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8204 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8206 ])# LTDL_INSTALLABLE
8208 # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
8209 # now we have LT_CONFIG_LTDL_DIR:
8210 AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
8211 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8214 dnl aclocal-1.4 backwards compatibility:
8215 dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
8220 # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
8221 m4_defun([_LTDL_INSTALLABLE],
8222 [if test -f $prefix/lib/libltdl.la; then
8223 lt_save_LDFLAGS="$LDFLAGS"
8224 LDFLAGS="-L$prefix/lib $LDFLAGS"
8225 AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
8226 LDFLAGS="$lt_save_LDFLAGS"
8227 if test x"${lt_lib_ltdl-no}" = xyes; then
8228 if test x"$enable_ltdl_install" != xyes; then
8229 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
8230 AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
8231 enable_ltdl_install=no
8233 elif test x"$enable_ltdl_install" = xno; then
8234 AC_MSG_WARN([libltdl not installed, but installation disabled])
8238 # If configure.ac declared an installable ltdl, and the user didn't override
8239 # with --disable-ltdl-install, we will install the shipped libltdl.
8240 case $enable_ltdl_install in
8241 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
8246 *) enable_ltdl_install=yes
8247 ac_configure_args="$ac_configure_args --enable-ltdl-install"
8248 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
8250 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8255 AC_SUBST([LTDLDEPS])
8256 AC_SUBST([LTDLINCL])
8258 # For backwards non-gettext consistent compatibility...
8261 ])# LTDL_INSTALLABLE
8264 # _LTDL_MODE_DISPATCH
8265 # -------------------
8266 m4_define([_LTDL_MODE_DISPATCH],
8267 [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
8268 m4_if(_LTDL_DIR, [],
8270 dnl if _LTDL_MODE was not set already, the default value is `subproject':
8271 [m4_case(m4_default(_LTDL_MODE, [subproject]),
8272 [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
8273 _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
8274 [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
8276 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
8277 dnl Be careful not to expand twice:
8279 ])# _LTDL_MODE_DISPATCH
8282 # _LT_LIBOBJ(MODULE_NAME)
8283 # -----------------------
8284 # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
8286 AC_DEFUN([_LT_LIBOBJ], [
8287 m4_pattern_allow([^_LT_LIBOBJS$])
8288 _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
8292 # LTDL_INIT([OPTIONS])
8293 # --------------------
8294 # Clients of libltdl can use this macro to allow the installer to
8295 # choose between a shipped copy of the ltdl sources or a preinstalled
8296 # version of the library. If the shipped ltdl sources are not in a
8297 # subdirectory named libltdl, the directory name must be given by
8298 # LT_CONFIG_LTDL_DIR.
8299 AC_DEFUN([LTDL_INIT],
8301 _LT_SET_OPTIONS([$0], [$1])
8303 dnl We need to keep our own list of libobjs separate from our parent project,
8304 dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
8305 dnl we look for our own LIBOBJs.
8306 m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
8307 m4_pushdef([AC_LIBSOURCES])
8309 dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
8310 m4_if(_LTDL_MODE, [],
8311 [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
8312 m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
8313 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
8315 AC_ARG_WITH([included_ltdl],
8316 [AS_HELP_STRING([--with-included-ltdl],
8317 [use the GNU ltdl sources included here])])
8319 if test "x$with_included_ltdl" != xyes; then
8320 # We are not being forced to use the included libltdl sources, so
8321 # decide whether there is a useful installed version we can use.
8322 AC_CHECK_HEADER([ltdl.h],
8323 [AC_CHECK_DECL([lt_dlinterface_register],
8324 [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
8325 [with_included_ltdl=no],
8326 [with_included_ltdl=yes])],
8327 [with_included_ltdl=yes],
8328 [AC_INCLUDES_DEFAULT
8329 #include <ltdl.h>])],
8330 [with_included_ltdl=yes],
8331 [AC_INCLUDES_DEFAULT]
8335 dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
8336 dnl was called yet, then for old times' sake, we assume libltdl is in an
8337 dnl eponymous directory:
8338 AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
8340 AC_ARG_WITH([ltdl_include],
8341 [AS_HELP_STRING([--with-ltdl-include=DIR],
8342 [use the ltdl headers installed in DIR])])
8344 if test -n "$with_ltdl_include"; then
8345 if test -f "$with_ltdl_include/ltdl.h"; then :
8347 AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
8350 with_ltdl_include=no
8353 AC_ARG_WITH([ltdl_lib],
8354 [AS_HELP_STRING([--with-ltdl-lib=DIR],
8355 [use the libltdl.la installed in DIR])])
8357 if test -n "$with_ltdl_lib"; then
8358 if test -f "$with_ltdl_lib/libltdl.la"; then :
8360 AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
8366 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
8368 m4_case(m4_default(_LTDL_TYPE, [convenience]),
8369 [convenience], [_LTDL_CONVENIENCE],
8370 [installable], [_LTDL_INSTALLABLE],
8371 [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
8374 # If the included ltdl is not to be used, then use the
8375 # preinstalled libltdl we found.
8376 AC_DEFINE([HAVE_LTDL], [1],
8377 [Define this if a modern libltdl is already installed])
8383 AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
8385 *) with_included_ltdl=no
8386 LIBLTDL="-L$with_ltdl_lib -lltdl"
8388 LTDLINCL="-I$with_ltdl_include"
8393 # Report our decision...
8394 AC_MSG_CHECKING([where to find libltdl headers])
8395 AC_MSG_RESULT([$LTDLINCL])
8396 AC_MSG_CHECKING([where to find libltdl library])
8397 AC_MSG_RESULT([$LIBLTDL])
8401 dnl restore autoconf definition.
8402 m4_popdef([AC_LIBOBJ])
8403 m4_popdef([AC_LIBSOURCES])
8405 AC_CONFIG_COMMANDS_PRE([
8408 if test -n "$_LT_LIBOBJS"; then
8409 # Remove the extension.
8410 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
8411 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
8412 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
8413 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
8416 AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
8417 AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
8421 m4_define([LTDL_INIT])
8425 AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
8426 AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
8427 AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
8428 dnl aclocal-1.4 backwards compatibility:
8429 dnl AC_DEFUN([AC_LIB_LTDL], [])
8430 dnl AC_DEFUN([AC_WITH_LTDL], [])
8431 dnl AC_DEFUN([LT_WITH_LTDL], [])
8436 # Perform all the checks necessary for compilation of the ltdl objects
8437 # -- including compiler checks and header checks. This is a public
8438 # interface mainly for the benefit of libltdl's own configure.ac, most
8439 # other users should call LTDL_INIT instead.
8440 AC_DEFUN([_LTDL_SETUP],
8441 [AC_REQUIRE([AC_PROG_CC])dnl
8442 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
8443 AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
8444 AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
8445 AC_REQUIRE([LT_LIB_DLLOAD])dnl
8446 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8447 AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
8448 AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
8449 AC_REQUIRE([gl_FUNC_ARGZ])dnl
8451 m4_require([_LT_CHECK_OBJDIR])dnl
8452 m4_require([_LT_HEADER_DLFCN])dnl
8453 m4_require([_LT_CHECK_DLPREOPEN])dnl
8454 m4_require([_LT_DECL_SED])dnl
8456 dnl Don't require this, or it will be expanded earlier than the code
8457 dnl that sets the variables it relies on:
8460 dnl _LTDL_MODE specific code must be called at least once:
8463 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
8464 # the user used. This is so that ltdl.h can pick up the parent projects
8465 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
8466 # definitions required by ltdl.c.
8467 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
8468 AC_CONFIG_COMMANDS_PRE([dnl
8469 m4_pattern_allow([^LT_CONFIG_H$])dnl
8470 m4_ifset([AH_HEADER],
8471 [LT_CONFIG_H=AH_HEADER],
8472 [m4_ifset([AC_LIST_HEADERS],
8473 [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`],
8475 AC_SUBST([LT_CONFIG_H])
8477 AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
8478 [], [], [AC_INCLUDES_DEFAULT])
8480 AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
8481 AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
8483 m4_pattern_allow([LT_LIBEXT])dnl
8484 AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
8487 eval "lt_libprefix=\"$libname_spec\""
8488 m4_pattern_allow([LT_LIBPREFIX])dnl
8489 AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
8492 eval "LTDLOPEN=\"$libname_spec\""
8493 AC_SUBST([LTDLOPEN])
8497 # _LT_ENABLE_INSTALL
8498 # ------------------
8499 m4_define([_LT_ENABLE_INSTALL],
8500 [AC_ARG_ENABLE([ltdl-install],
8501 [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
8503 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
8505 *) enable_ltdl_convenience=yes ;;
8508 m4_ifdef([AM_CONDITIONAL],
8509 [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
8510 AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
8511 ])# _LT_ENABLE_INSTALL
8514 # LT_SYS_DLOPEN_DEPLIBS
8515 # ---------------------
8516 AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
8517 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8518 AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
8519 [lt_cv_sys_dlopen_deplibs],
8520 [# PORTME does your system automatically load deplibs for dlopen?
8521 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8522 # For now, we just catch OSes we know something about -- in the
8523 # future, we'll try test this programmatically.
8524 lt_cv_sys_dlopen_deplibs=unknown
8526 aix3*|aix4.1.*|aix4.2.*)
8527 # Unknown whether this is true for these versions of AIX, but
8528 # we want this `case' here to explicitly catch those versions.
8529 lt_cv_sys_dlopen_deplibs=unknown
8532 lt_cv_sys_dlopen_deplibs=yes
8537 lt_cv_sys_dlopen_deplibs=no
8542 # Assuming the user has installed a libdl from somewhere, this is true
8543 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8544 lt_cv_sys_dlopen_deplibs=yes
8546 freebsd* | dragonfly*)
8547 lt_cv_sys_dlopen_deplibs=yes
8549 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
8550 # GNU and its variants, using gnu ld.so (Glibc)
8551 lt_cv_sys_dlopen_deplibs=yes
8554 lt_cv_sys_dlopen_deplibs=yes
8557 lt_cv_sys_dlopen_deplibs=yes
8559 irix[[12345]]*|irix6.[[01]]*)
8560 # Catch all versions of IRIX before 6.2, and indicate that we don't
8561 # know how it worked for any of those versions.
8562 lt_cv_sys_dlopen_deplibs=unknown
8565 # The case above catches anything before 6.2, and it's known that
8566 # at 6.2 and later dlopen does load deplibs.
8567 lt_cv_sys_dlopen_deplibs=yes
8570 lt_cv_sys_dlopen_deplibs=yes
8573 lt_cv_sys_dlopen_deplibs=yes
8576 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8577 # it did *not* use an RPATH in a shared library to find objects the
8578 # library depends on, so we explicitly say `no'.
8579 lt_cv_sys_dlopen_deplibs=no
8581 osf5.0|osf5.0a|osf5.1)
8582 # dlopen *does* load deplibs and with the right loader patch applied
8583 # it even uses RPATH in a shared library to search for shared objects
8584 # that the library depends on, but there's no easy way to know if that
8585 # patch is installed. Since this is the case, all we can really
8586 # say is unknown -- it depends on the patch being installed. If
8587 # it is, this changes to `yes'. Without it, it would be `no'.
8588 lt_cv_sys_dlopen_deplibs=unknown
8591 # the two cases above should catch all versions of osf <= 5.1. Read
8592 # the comments above for what we know about them.
8593 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8594 # is used to find them so we can finally say `yes'.
8595 lt_cv_sys_dlopen_deplibs=yes
8598 lt_cv_sys_dlopen_deplibs=yes
8601 lt_cv_sys_dlopen_deplibs=yes
8603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8604 libltdl_cv_sys_dlopen_deplibs=yes
8608 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
8609 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
8610 [Define if the OS needs help to load dependent libraries for dlopen().])
8612 ])# LT_SYS_DLOPEN_DEPLIBS
8615 AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
8616 dnl aclocal-1.4 backwards compatibility:
8617 dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
8622 AC_DEFUN([LT_SYS_MODULE_EXT],
8623 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8624 AC_CACHE_CHECK([which extension is used for runtime loadable modules],
8625 [libltdl_cv_shlibext],
8628 eval libltdl_cv_shlibext=$shrext_cmds
8630 eval libltdl_cv_shrext=$shrext_cmds
8632 if test -n "$libltdl_cv_shlibext"; then
8633 m4_pattern_allow([LT_MODULE_EXT])dnl
8634 AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
8635 [Define to the extension used for runtime loadable modules, say, ".so".])
8637 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
8638 m4_pattern_allow([LT_SHARED_EXT])dnl
8639 AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
8640 [Define to the shared library suffix, say, ".dylib".])
8642 ])# LT_SYS_MODULE_EXT
8645 AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
8646 dnl aclocal-1.4 backwards compatibility:
8647 dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
8650 # LT_SYS_MODULE_PATH
8651 # ------------------
8652 AC_DEFUN([LT_SYS_MODULE_PATH],
8653 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8654 AC_CACHE_CHECK([which variable specifies run-time module search path],
8655 [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
8656 if test -n "$lt_cv_module_path_var"; then
8657 m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
8658 AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
8659 [Define to the name of the environment variable that determines the run-time module search path.])
8661 ])# LT_SYS_MODULE_PATH
8664 AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
8665 dnl aclocal-1.4 backwards compatibility:
8666 dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
8669 # LT_SYS_DLSEARCH_PATH
8670 # --------------------
8671 AC_DEFUN([LT_SYS_DLSEARCH_PATH],
8672 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8673 AC_CACHE_CHECK([for the default library search path],
8674 [lt_cv_sys_dlsearch_path],
8675 [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
8676 if test -n "$lt_cv_sys_dlsearch_path"; then
8678 for dir in $lt_cv_sys_dlsearch_path; do
8679 if test -z "$sys_dlsearch_path"; then
8680 sys_dlsearch_path="$dir"
8682 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
8685 m4_pattern_allow([LT_DLSEARCH_PATH])dnl
8686 AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
8687 [Define to the system default library search path.])
8689 ])# LT_SYS_DLSEARCH_PATH
8692 AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
8693 dnl aclocal-1.4 backwards compatibility:
8694 dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
8697 # _LT_CHECK_DLPREOPEN
8698 # -------------------
8699 m4_defun([_LT_CHECK_DLPREOPEN],
8700 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8701 AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
8702 [libltdl_cv_preloaded_symbols],
8703 [if test -n "$lt_cv_sys_global_symbol_pipe"; then
8704 libltdl_cv_preloaded_symbols=yes
8706 libltdl_cv_preloaded_symbols=no
8709 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8710 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
8711 [Define if libtool can extract symbol lists from object files.])
8713 ])# _LT_CHECK_DLPREOPEN
8718 AC_DEFUN([LT_LIB_DLLOAD],
8719 [m4_pattern_allow([^LT_DLLOADERS$])
8721 AC_SUBST([LT_DLLOADERS])
8726 AC_SEARCH_LIBS([dlopen], [dl],
8727 [AC_DEFINE([HAVE_LIBDL], [1],
8728 [Define if you have the libdl library or equivalent.])
8729 if test "$ac_cv_search_dlopen" != "none required" ; then
8730 LIBADD_DLOPEN="-ldl"
8732 libltdl_cv_lib_dl_dlopen="yes"
8733 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8734 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
8737 ]], [[dlopen(0, 0);]])],
8738 [AC_DEFINE([HAVE_LIBDL], [1],
8739 [Define if you have the libdl library or equivalent.])
8740 libltdl_cv_func_dlopen="yes"
8741 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8742 [AC_CHECK_LIB([svld], [dlopen],
8743 [AC_DEFINE([HAVE_LIBDL], [1],
8744 [Define if you have the libdl library or equivalent.])
8745 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
8746 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
8747 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8749 lt_save_LIBS="$LIBS"
8750 LIBS="$LIBS $LIBADD_DLOPEN"
8751 AC_CHECK_FUNCS([dlerror])
8752 LIBS="$lt_save_LIBS"
8754 AC_SUBST([LIBADD_DLOPEN])
8757 AC_CHECK_FUNC([shl_load],
8758 [AC_DEFINE([HAVE_SHL_LOAD], [1],
8759 [Define if you have the shl_load function.])
8760 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
8761 [AC_CHECK_LIB([dld], [shl_load],
8762 [AC_DEFINE([HAVE_SHL_LOAD], [1],
8763 [Define if you have the shl_load function.])
8764 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8765 LIBADD_SHL_LOAD="-ldld"])])
8766 AC_SUBST([LIBADD_SHL_LOAD])
8770 # We only want this for pre-Mac OS X 10.4.
8771 AC_CHECK_FUNC([_dyld_func_lookup],
8772 [AC_DEFINE([HAVE_DYLD], [1],
8773 [Define if you have the _dyld_func_lookup function.])
8774 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
8777 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
8779 cygwin* | mingw* | os2* | pw32*)
8780 AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
8781 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
8785 AC_CHECK_LIB([dld], [dld_link],
8786 [AC_DEFINE([HAVE_DLD], [1],
8787 [Define if you have the GNU dld library.])
8788 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
8789 AC_SUBST([LIBADD_DLD_LINK])
8791 m4_pattern_allow([^LT_DLPREOPEN$])
8793 if test -n "$LT_DLLOADERS"
8795 for lt_loader in $LT_DLLOADERS; do
8796 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
8798 AC_DEFINE([HAVE_LIBDLLOADER], [1],
8799 [Define if libdlloader will be built on this platform])
8801 AC_SUBST([LT_DLPREOPEN])
8803 dnl This isn't used anymore, but set it for backwards compatibility
8804 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
8805 AC_SUBST([LIBADD_DL])
8811 AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
8812 dnl aclocal-1.4 backwards compatibility:
8813 dnl AC_DEFUN([AC_LTDL_DLLIB], [])
8816 # LT_SYS_SYMBOL_USCORE
8817 # --------------------
8818 # does the compiler prefix global symbols with an underscore?
8819 AC_DEFUN([LT_SYS_SYMBOL_USCORE],
8820 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8821 AC_CACHE_CHECK([for _ prefix in compiled symbols],
8822 [lt_cv_sys_symbol_underscore],
8823 [lt_cv_sys_symbol_underscore=no
8824 cat > conftest.$ac_ext <<_LT_EOF
8825 void nm_test_func(){}
8826 int main(){nm_test_func;return 0;}
8828 if AC_TRY_EVAL(ac_compile); then
8829 # Now try to grab the symbols.
8830 ac_nlist=conftest.nm
8831 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
8832 # See whether the symbols have a leading underscore.
8833 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8834 lt_cv_sys_symbol_underscore=yes
8836 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8839 echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
8843 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
8846 echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
8847 cat conftest.c >&AS_MESSAGE_LOG_FD
8851 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
8852 AC_SUBST([sys_symbol_underscore])
8853 ])# LT_SYS_SYMBOL_USCORE
8856 AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
8857 dnl aclocal-1.4 backwards compatibility:
8858 dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
8861 # LT_FUNC_DLSYM_USCORE
8862 # --------------------
8863 AC_DEFUN([LT_FUNC_DLSYM_USCORE],
8864 [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8865 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
8866 if test x"$libltdl_cv_func_dlopen" = xyes ||
8867 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8868 AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
8869 [libltdl_cv_need_uscore],
8870 [libltdl_cv_need_uscore=unknown
8872 LIBS="$LIBS $LIBADD_DLOPEN"
8873 _LT_TRY_DLOPEN_SELF(
8874 [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
8875 [], [libltdl_cv_need_uscore=cross])
8881 if test x"$libltdl_cv_need_uscore" = xyes; then
8882 AC_DEFINE([NEED_USCORE], [1],
8883 [Define if dlsym() requires a leading underscore in symbol names.])
8885 ])# LT_FUNC_DLSYM_USCORE
8888 AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
8889 dnl aclocal-1.4 backwards compatibility:
8890 dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
8892 # Helper functions for option handling. -*- Autoconf -*-
8894 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8896 # Written by Gary V. Vaughan, 2004
8898 # This file is free software; the Free Software Foundation gives
8899 # unlimited permission to copy and/or distribute it, with or without
8900 # modifications, as long as this notice is preserved.
8902 # serial 7 ltoptions.m4
8904 # This is to help aclocal find these macros, as it can't see m4_define.
8905 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8908 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8909 # ------------------------------------------
8910 m4_define([_LT_MANGLE_OPTION],
8911 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8914 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8915 # ---------------------------------------
8916 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8917 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8919 m4_define([_LT_SET_OPTION],
8920 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8921 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8922 _LT_MANGLE_DEFUN([$1], [$2]),
8923 [m4_warning([Unknown $1 option `$2'])])[]dnl
8927 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8928 # ------------------------------------------------------------
8929 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8930 m4_define([_LT_IF_OPTION],
8931 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8934 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8935 # -------------------------------------------------------
8936 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8938 m4_define([_LT_UNLESS_OPTIONS],
8939 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8940 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8941 [m4_define([$0_found])])])[]dnl
8942 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8947 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8948 # ----------------------------------------
8949 # OPTION-LIST is a space-separated list of Libtool options associated
8950 # with MACRO-NAME. If any OPTION has a matching handler declared with
8951 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8952 # the unknown option and exit.
8953 m4_defun([_LT_SET_OPTIONS],
8955 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8956 [_LT_SET_OPTION([$1], _LT_Option)])
8958 m4_if([$1],[LT_INIT],[
8960 dnl Simply set some default values (i.e off) if boolean options were not
8962 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8964 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8967 dnl If no reference was made to various pairs of opposing options, then
8968 dnl we run the default mode handler for the pair. For example, if neither
8969 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8970 dnl archives by default:
8971 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8972 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8973 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8974 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8975 [_LT_ENABLE_FAST_INSTALL])
8981 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8982 # -----------------------------------------
8983 m4_define([_LT_MANGLE_DEFUN],
8984 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8987 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8988 # -----------------------------------------------
8989 m4_define([LT_OPTION_DEFINE],
8990 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8991 ])# LT_OPTION_DEFINE
8996 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8999 AU_DEFUN([AC_LIBTOOL_DLOPEN],
9000 [_LT_SET_OPTION([LT_INIT], [dlopen])
9001 AC_DIAGNOSE([obsolete],
9002 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9003 put the `dlopen' option into LT_INIT's first parameter.])
9006 dnl aclocal-1.4 backwards compatibility:
9007 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9012 # Declare package support for building win32 dll's.
9013 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9014 [enable_win32_dll=yes
9017 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9018 AC_CHECK_TOOL(AS, as, false)
9019 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9020 AC_CHECK_TOOL(OBJDUMP, objdump, false)
9024 test -z "$AS" && AS=as
9025 _LT_DECL([], [AS], [1], [Assembler program])dnl
9027 test -z "$DLLTOOL" && DLLTOOL=dlltool
9028 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9030 test -z "$OBJDUMP" && OBJDUMP=objdump
9031 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9034 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9035 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
9036 _LT_SET_OPTION([LT_INIT], [win32-dll])
9037 AC_DIAGNOSE([obsolete],
9038 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9039 put the `win32-dll' option into LT_INIT's first parameter.])
9042 dnl aclocal-1.4 backwards compatibility:
9043 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9046 # _LT_ENABLE_SHARED([DEFAULT])
9047 # ----------------------------
9048 # implement the --enable-shared flag, and supports the `shared' and
9049 # `disable-shared' LT_INIT options.
9050 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9051 m4_define([_LT_ENABLE_SHARED],
9052 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9053 AC_ARG_ENABLE([shared],
9054 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9055 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9056 [p=${PACKAGE-default}
9058 yes) enable_shared=yes ;;
9059 no) enable_shared=no ;;
9062 # Look at the argument we got. We use all the common list separators.
9063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9064 for pkg in $enableval; do
9066 if test "X$pkg" = "X$p"; then
9073 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9075 _LT_DECL([build_libtool_libs], [enable_shared], [0],
9076 [Whether or not to build shared libraries])
9077 ])# _LT_ENABLE_SHARED
9079 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9080 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9083 AC_DEFUN([AC_ENABLE_SHARED],
9084 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9087 AC_DEFUN([AC_DISABLE_SHARED],
9088 [_LT_SET_OPTION([LT_INIT], [disable-shared])
9091 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9092 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9094 dnl aclocal-1.4 backwards compatibility:
9095 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9096 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9100 # _LT_ENABLE_STATIC([DEFAULT])
9101 # ----------------------------
9102 # implement the --enable-static flag, and support the `static' and
9103 # `disable-static' LT_INIT options.
9104 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9105 m4_define([_LT_ENABLE_STATIC],
9106 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9107 AC_ARG_ENABLE([static],
9108 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9109 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9110 [p=${PACKAGE-default}
9112 yes) enable_static=yes ;;
9113 no) enable_static=no ;;
9116 # Look at the argument we got. We use all the common list separators.
9117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9118 for pkg in $enableval; do
9120 if test "X$pkg" = "X$p"; then
9127 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9129 _LT_DECL([build_old_libs], [enable_static], [0],
9130 [Whether or not to build static libraries])
9131 ])# _LT_ENABLE_STATIC
9133 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9134 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9137 AC_DEFUN([AC_ENABLE_STATIC],
9138 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9141 AC_DEFUN([AC_DISABLE_STATIC],
9142 [_LT_SET_OPTION([LT_INIT], [disable-static])
9145 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9146 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9148 dnl aclocal-1.4 backwards compatibility:
9149 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9150 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9154 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
9155 # ----------------------------------
9156 # implement the --enable-fast-install flag, and support the `fast-install'
9157 # and `disable-fast-install' LT_INIT options.
9158 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9159 m4_define([_LT_ENABLE_FAST_INSTALL],
9160 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9161 AC_ARG_ENABLE([fast-install],
9162 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9163 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9164 [p=${PACKAGE-default}
9166 yes) enable_fast_install=yes ;;
9167 no) enable_fast_install=no ;;
9169 enable_fast_install=no
9170 # Look at the argument we got. We use all the common list separators.
9171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9172 for pkg in $enableval; do
9174 if test "X$pkg" = "X$p"; then
9175 enable_fast_install=yes
9181 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9183 _LT_DECL([fast_install], [enable_fast_install], [0],
9184 [Whether or not to optimize for fast installation])dnl
9185 ])# _LT_ENABLE_FAST_INSTALL
9187 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9188 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9191 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9192 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9193 AC_DIAGNOSE([obsolete],
9194 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9195 the `fast-install' option into LT_INIT's first parameter.])
9198 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9199 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9200 AC_DIAGNOSE([obsolete],
9201 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9202 the `disable-fast-install' option into LT_INIT's first parameter.])
9205 dnl aclocal-1.4 backwards compatibility:
9206 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9207 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9210 # _LT_WITH_PIC([MODE])
9211 # --------------------
9212 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
9214 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9215 m4_define([_LT_WITH_PIC],
9217 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9218 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9219 [lt_p=${PACKAGE-default}
9221 yes|no) pic_mode=$withval ;;
9224 # Look at the argument we got. We use all the common list separators.
9225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226 for lt_pkg in $withval; do
9228 if test "X$lt_pkg" = "X$lt_p"; then
9237 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9239 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9242 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9243 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9246 AU_DEFUN([AC_LIBTOOL_PICMODE],
9247 [_LT_SET_OPTION([LT_INIT], [pic-only])
9248 AC_DIAGNOSE([obsolete],
9249 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9250 put the `pic-only' option into LT_INIT's first parameter.])
9253 dnl aclocal-1.4 backwards compatibility:
9254 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9257 m4_define([_LTDL_MODE], [])
9258 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9259 [m4_define([_LTDL_MODE], [nonrecursive])])
9260 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9261 [m4_define([_LTDL_MODE], [recursive])])
9262 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9263 [m4_define([_LTDL_MODE], [subproject])])
9265 m4_define([_LTDL_TYPE], [])
9266 LT_OPTION_DEFINE([LTDL_INIT], [installable],
9267 [m4_define([_LTDL_TYPE], [installable])])
9268 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9269 [m4_define([_LTDL_TYPE], [convenience])])
9271 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9273 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9274 # Written by Gary V. Vaughan, 2004
9276 # This file is free software; the Free Software Foundation gives
9277 # unlimited permission to copy and/or distribute it, with or without
9278 # modifications, as long as this notice is preserved.
9280 # serial 6 ltsugar.m4
9282 # This is to help aclocal find these macros, as it can't see m4_define.
9283 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9286 # lt_join(SEP, ARG1, [ARG2...])
9287 # -----------------------------
9288 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9289 # associated separator.
9290 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9291 # versions in m4sugar had bugs.
9292 m4_define([lt_join],
9293 [m4_if([$#], [1], [],
9295 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9296 m4_define([_lt_join],
9297 [m4_if([$#$2], [2], [],
9298 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9304 # Manipulate m4 lists.
9305 # These macros are necessary as long as will still need to support
9306 # Autoconf-2.59 which quotes differently.
9307 m4_define([lt_car], [[$1]])
9309 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9311 [m4_dquote(m4_shift($@))])])
9312 m4_define([lt_unquote], $1)
9315 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
9316 # ------------------------------------------
9317 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9318 # Note that neither SEPARATOR nor STRING are expanded; they are appended
9319 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9320 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
9321 # than defined and empty).
9323 # This macro is needed until we can rely on Autoconf 2.62, since earlier
9324 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9325 m4_define([lt_append],
9327 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9331 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9332 # ----------------------------------------------------------
9333 # Produce a SEP delimited list of all paired combinations of elements of
9334 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9335 # has the form PREFIXmINFIXSUFFIXn.
9336 # Needed until we can rely on m4_combine added in Autoconf 2.62.
9337 m4_define([lt_combine],
9338 [m4_if(m4_eval([$# > 3]), [1],
9339 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9340 [[m4_foreach([_Lt_prefix], [$2],
9341 [m4_foreach([_Lt_suffix],
9342 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9343 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9346 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9347 # -----------------------------------------------------------------------
9348 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9349 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9350 m4_define([lt_if_append_uniq],
9352 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9353 [lt_append([$1], [$2], [$3])$4],
9355 [lt_append([$1], [$2], [$3])$4])])
9358 # lt_dict_add(DICT, KEY, VALUE)
9359 # -----------------------------
9360 m4_define([lt_dict_add],
9361 [m4_define([$1($2)], [$3])])
9364 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9365 # --------------------------------------------
9366 m4_define([lt_dict_add_subkey],
9367 [m4_define([$1($2:$3)], [$4])])
9370 # lt_dict_fetch(DICT, KEY, [SUBKEY])
9371 # ----------------------------------
9372 m4_define([lt_dict_fetch],
9374 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9375 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9378 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9379 # -----------------------------------------------------------------
9380 m4_define([lt_if_dict_fetch],
9381 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9386 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9387 # --------------------------------------------------------------
9388 m4_define([lt_dict_filter],
9389 [m4_if([$5], [], [],
9390 [lt_join(m4_quote(m4_default([$4], [[, ]])),
9391 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9392 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9395 # ltversion.m4 -- version numbers -*- Autoconf -*-
9397 # Copyright (C) 2004 Free Software Foundation, Inc.
9398 # Written by Scott James Remnant, 2004
9400 # This file is free software; the Free Software Foundation gives
9401 # unlimited permission to copy and/or distribute it, with or without
9402 # modifications, as long as this notice is preserved.
9406 # serial 3337 ltversion.m4
9407 # This file is part of GNU Libtool
9409 m4_define([LT_PACKAGE_VERSION], [2.4.2])
9410 m4_define([LT_PACKAGE_REVISION], [1.3337])
9412 AC_DEFUN([LTVERSION_VERSION],
9413 [macro_version='2.4.2'
9414 macro_revision='1.3337'
9415 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9416 _LT_DECL(, macro_revision, 0)
9419 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9421 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9422 # Written by Scott James Remnant, 2004.
9424 # This file is free software; the Free Software Foundation gives
9425 # unlimited permission to copy and/or distribute it, with or without
9426 # modifications, as long as this notice is preserved.
9428 # serial 5 lt~obsolete.m4
9430 # These exist entirely to fool aclocal when bootstrapping libtool.
9432 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9433 # which have later been changed to m4_define as they aren't part of the
9434 # exported API, or moved to Autoconf or Automake where they belong.
9436 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9437 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9438 # using a macro with the same name in our local m4/libtool.m4 it'll
9439 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9440 # and doesn't know about Autoconf macros at all.)
9442 # So we provide this file, which has a silly filename so it's always
9443 # included after everything else. This provides aclocal with the
9444 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9445 # because those macros already exist, or will be overwritten later.
9446 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9448 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9449 # Yes, that means every name once taken will need to remain here until
9450 # we give up compatibility with versions before 1.7, at which point
9451 # we need to keep only those names which we still refer to.
9453 # This is to help aclocal find these macros, as it can't see m4_define.
9454 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9456 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9457 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9458 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9459 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9460 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9461 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9462 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9463 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9464 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9465 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9466 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9467 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9468 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9469 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9470 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9471 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9472 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9473 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9474 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9475 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9476 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9477 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9478 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9479 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9480 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9481 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9482 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9483 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9484 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9485 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9486 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9487 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9488 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9489 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9490 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9491 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9492 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9493 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9494 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9495 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9496 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9497 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9498 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9499 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9500 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9501 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9502 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9503 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9504 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9505 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9506 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9507 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9508 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9509 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9510 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9511 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9512 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9513 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9514 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9515 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9516 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9518 # Configure sysconftool
9519 # Copyright 2000-2005 Double Precision, Inc. See COPYING for
9520 # distribution information.
9522 # AC_PROG_SYSCONFTOOL
9524 AC_DEFUN([AC_PROG_SYSCONFTOOL],
9527 AC_PATH_PROGS(SYSCONFTOOL_PERL, perl5 perl, perl)
9529 if test "$SYSCONFTOOL_PERL" = "perl"
9531 AC_ERROR(perl not found - please install perl)
9534 AC_MSG_CHECKING(for sysconftool...)
9536 for sysconf_dir in $ac_aux_dir . .. ../..
9538 if test -f $srcdir/$sysconf_dir/sysconftool
9540 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
9545 if test "$SYSCONFTOOL" = ""
9547 AC_ERROR(sysconftool missing - not in the package)
9550 AC_MSG_RESULT( $SYSCONFTOOL)
9551 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
9552 AC_SUBST(SYSCONFTOOL)
9556 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
9558 # This file is free software; the Free Software Foundation
9559 # gives unlimited permission to copy and/or distribute it,
9560 # with or without modifications, as long as this notice is preserved.
9562 # AM_AUTOMAKE_VERSION(VERSION)
9563 # ----------------------------
9564 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9565 # generated from the m4 files accompanying Automake X.Y.
9566 # (This private macro should not be called outside this file.)
9567 AC_DEFUN([AM_AUTOMAKE_VERSION],
9568 [am__api_version='1.13'
9569 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9570 dnl require some minimum version. Point them to the right macro.
9571 m4_if([$1], [1.13.4], [],
9572 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9575 # _AM_AUTOCONF_VERSION(VERSION)
9576 # -----------------------------
9577 # aclocal traces this macro to find the Autoconf version.
9578 # This is a private macro too. Using m4_define simplifies
9579 # the logic in aclocal, which can simply ignore this definition.
9580 m4_define([_AM_AUTOCONF_VERSION], [])
9582 # AM_SET_CURRENT_AUTOMAKE_VERSION
9583 # -------------------------------
9584 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9585 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9586 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9587 [AM_AUTOMAKE_VERSION([1.13.4])dnl
9588 m4_ifndef([AC_AUTOCONF_VERSION],
9589 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9590 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9592 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9594 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9596 # This file is free software; the Free Software Foundation
9597 # gives unlimited permission to copy and/or distribute it,
9598 # with or without modifications, as long as this notice is preserved.
9600 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9601 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
9602 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9604 # Of course, Automake must honor this variable whenever it calls a
9605 # tool from the auxiliary directory. The problem is that $srcdir (and
9606 # therefore $ac_aux_dir as well) can be either absolute or relative,
9607 # depending on how configure is run. This is pretty annoying, since
9608 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9609 # source directory, any form will work fine, but in subdirectories a
9610 # relative path needs to be adjusted first.
9612 # $ac_aux_dir/missing
9613 # fails when called from a subdirectory if $ac_aux_dir is relative
9614 # $top_srcdir/$ac_aux_dir/missing
9615 # fails if $ac_aux_dir is absolute,
9616 # fails when called from a subdirectory in a VPATH build with
9617 # a relative $ac_aux_dir
9619 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9620 # are both prefixed by $srcdir. In an in-source build this is usually
9621 # harmless because $srcdir is '.', but things will broke when you
9622 # start a VPATH build or use an absolute $srcdir.
9624 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9625 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9626 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9627 # and then we would define $MISSING as
9628 # MISSING="\${SHELL} $am_aux_dir/missing"
9629 # This will work as long as MISSING is not called from configure, because
9630 # unfortunately $(top_srcdir) has no meaning in configure.
9631 # However there are other variables, like CC, which are often used in
9632 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9634 # Another solution, used here, is to always expand $ac_aux_dir to an
9635 # absolute PATH. The drawback is that using absolute paths prevent a
9636 # configured tree to be moved without reconfiguration.
9638 AC_DEFUN([AM_AUX_DIR_EXPAND],
9639 [dnl Rely on autoconf to set up CDPATH properly.
9640 AC_PREREQ([2.50])dnl
9641 # expand $ac_aux_dir to an absolute path
9642 am_aux_dir=`cd $ac_aux_dir && pwd`
9645 # AM_CONDITIONAL -*- Autoconf -*-
9647 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
9649 # This file is free software; the Free Software Foundation
9650 # gives unlimited permission to copy and/or distribute it,
9651 # with or without modifications, as long as this notice is preserved.
9653 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9654 # -------------------------------------
9655 # Define a conditional.
9656 AC_DEFUN([AM_CONDITIONAL],
9657 [AC_PREREQ([2.52])dnl
9658 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9659 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9660 AC_SUBST([$1_TRUE])dnl
9661 AC_SUBST([$1_FALSE])dnl
9662 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9663 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9664 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9672 AC_CONFIG_COMMANDS_PRE(
9673 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9674 AC_MSG_ERROR([[conditional "$1" was never defined.
9675 Usually this means the macro was only invoked conditionally.]])
9678 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
9680 # This file is free software; the Free Software Foundation
9681 # gives unlimited permission to copy and/or distribute it,
9682 # with or without modifications, as long as this notice is preserved.
9685 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9686 # written in clear, in which case automake, when reading aclocal.m4,
9687 # will think it sees a *use*, and therefore will trigger all it's
9688 # C support machinery. Also note that it means that autoscan, seeing
9689 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9692 # _AM_DEPENDENCIES(NAME)
9693 # ----------------------
9694 # See how the compiler implements dependency checking.
9695 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9696 # We try a few techniques and use that to set a single cache variable.
9698 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9699 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9700 # dependency, and given that the user is not expected to run this macro,
9701 # just rely on AC_PROG_CC.
9702 AC_DEFUN([_AM_DEPENDENCIES],
9703 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9704 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9705 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9706 AC_REQUIRE([AM_DEP_TRACK])dnl
9708 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
9709 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
9710 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9711 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9712 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
9713 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9714 [depcc="$$1" am_compiler_list=])
9716 AC_CACHE_CHECK([dependency style of $depcc],
9717 [am_cv_$1_dependencies_compiler_type],
9718 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9719 # We make a subdir and do the tests there. Otherwise we can end up
9720 # making bogus files that we don't know about and never remove. For
9721 # instance it was reported that on HP-UX the gcc test will end up
9722 # making a dummy file named 'D' -- because '-MD' means "put the output
9726 # Copy depcomp to subdir because otherwise we won't find it if we're
9727 # using a relative directory.
9728 cp "$am_depcomp" conftest.dir
9730 # We will build objects and dependencies in a subdirectory because
9731 # it helps to detect inapplicable dependency modes. For instance
9732 # both Tru64's cc and ICC support -MD to output dependencies as a
9733 # side effect of compilation, but ICC will put the dependencies in
9734 # the current directory while Tru64 will put them in the object
9738 am_cv_$1_dependencies_compiler_type=none
9739 if test "$am_compiler_list" = ""; then
9740 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9744 [case " $depcc " in #(
9745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9748 [case " $depcc " in #(
9749 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9752 for depmode in $am_compiler_list; do
9753 # Setup a source with many dependencies, because some compilers
9754 # like to wrap large dependency lists on column 80 (with \), and
9755 # we should not choose a depcomp mode which is confused by this.
9757 # We need to recreate these files for each test, as the compiler may
9758 # overwrite some of them when testing with obscure command lines.
9759 # This happens at least with the AIX C compiler.
9761 for i in 1 2 3 4 5 6; do
9762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9764 # Solaris 10 /bin/sh.
9765 echo '/* dummy */' > sub/conftst$i.h
9767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9769 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9770 # mode. It turns out that the SunPro C++ compiler does not properly
9771 # handle '-M -o', and we need to detect this. Also, some Intel
9772 # versions had trouble with output in subdirs.
9773 am__obj=sub/conftest.${OBJEXT-o}
9774 am__minus_obj="-o $am__obj"
9777 # This depmode causes a compiler race in universal mode.
9778 test "$am__universal" = false || continue
9781 # After this tag, mechanisms are not by side-effect, so they'll
9782 # only be used when explicitly requested.
9783 if test "x$enable_dependency_tracking" = xyes; then
9789 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9790 # This compiler won't grok '-c -o', but also, the minuso test has
9791 # not run yet. These depmodes are late enough in the game, and
9792 # so weak that their functioning should not be impacted.
9793 am__obj=conftest.${OBJEXT-o}
9798 if depmode=$depmode \
9799 source=sub/conftest.c object=$am__obj \
9800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9802 >/dev/null 2>conftest.err &&
9803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9807 # icc doesn't choke on unknown options, it will just issue warnings
9808 # or remarks (even with -Werror). So we grep stderr for any message
9809 # that says an option was ignored or not supported.
9810 # When given -MP, icc 7.0 and 7.1 complain thusly:
9811 # icc: Command line warning: ignoring option '-M'; no argument required
9812 # The diagnosis changed in icc 8.0:
9813 # icc: Command line remark: option '-MP' not supported
9814 if (grep 'ignoring option' conftest.err ||
9815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9816 am_cv_$1_dependencies_compiler_type=$depmode
9825 am_cv_$1_dependencies_compiler_type=none
9828 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9829 AM_CONDITIONAL([am__fastdep$1], [
9830 test "x$enable_dependency_tracking" != xno \
9831 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9837 # Choose a directory name for dependency files.
9838 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9839 AC_DEFUN([AM_SET_DEPDIR],
9840 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9841 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9847 AC_DEFUN([AM_DEP_TRACK],
9848 [AC_ARG_ENABLE([dependency-tracking], [dnl
9850 [--enable-dependency-tracking],
9851 [do not reject slow dependency extractors])
9853 [--disable-dependency-tracking],
9854 [speeds up one-time build])])
9855 if test "x$enable_dependency_tracking" != xno; then
9856 am_depcomp="$ac_aux_dir/depcomp"
9860 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9861 AC_SUBST([AMDEPBACKSLASH])dnl
9862 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9863 AC_SUBST([am__nodep])dnl
9864 _AM_SUBST_NOTMAKE([am__nodep])dnl
9867 # Generate code to set up dependency tracking. -*- Autoconf -*-
9869 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
9871 # This file is free software; the Free Software Foundation
9872 # gives unlimited permission to copy and/or distribute it,
9873 # with or without modifications, as long as this notice is preserved.
9876 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9877 # ------------------------------
9878 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9880 # Older Autoconf quotes --file arguments for eval, but not when files
9881 # are listed without --file. Let's play safe and only enable the eval
9882 # if we detect the quoting.
9883 case $CONFIG_FILES in
9884 *\'*) eval set x "$CONFIG_FILES" ;;
9885 *) set x $CONFIG_FILES ;;
9890 # Strip MF so we end up with the name of the file.
9891 mf=`echo "$mf" | sed -e 's/:.*$//'`
9892 # Check whether this is an Automake generated Makefile or not.
9893 # We used to match only the files named 'Makefile.in', but
9894 # some people rename them; so instead we look at the file content.
9895 # Grep'ing the first line is not enough: some people post-process
9896 # each Makefile.in and add a new line on top of each file to say so.
9897 # Grep'ing the whole file is not good either: AIX grep has a line
9898 # limit of 2048, but all sed's we know have understand at least 4000.
9899 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9900 dirpart=`AS_DIRNAME("$mf")`
9904 # Extract the definition of DEPDIR, am__include, and am__quote
9905 # from the Makefile without running 'make'.
9906 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9907 test -z "$DEPDIR" && continue
9908 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9909 test -z "$am__include" && continue
9910 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9911 # Find all dependency output files, they are included files with
9912 # $(DEPDIR) in their names. We invoke sed twice because it is the
9913 # simplest approach to changing $(DEPDIR) to its actual value in the
9915 for file in `sed -n "
9916 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9917 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9918 # Make sure the directory exists.
9919 test -f "$dirpart/$file" && continue
9920 fdir=`AS_DIRNAME(["$file"])`
9921 AS_MKDIR_P([$dirpart/$fdir])
9922 # echo "creating $dirpart/$file"
9923 echo '# dummy' > "$dirpart/$file"
9927 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9930 # AM_OUTPUT_DEPENDENCY_COMMANDS
9931 # -----------------------------
9932 # This macro should only be invoked once -- use via AC_REQUIRE.
9934 # This code is only required when automatic dependency tracking
9935 # is enabled. FIXME. This creates each '.P' file that we will
9936 # need in order to bootstrap the dependency handling code.
9937 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9938 [AC_CONFIG_COMMANDS([depfiles],
9939 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9940 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9943 # Do all the work for Automake. -*- Autoconf -*-
9945 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
9947 # This file is free software; the Free Software Foundation
9948 # gives unlimited permission to copy and/or distribute it,
9949 # with or without modifications, as long as this notice is preserved.
9951 # This macro actually does too much. Some checks are only needed if
9952 # your package does certain things. But this isn't really a big deal.
9954 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9955 # AM_INIT_AUTOMAKE([OPTIONS])
9956 # -----------------------------------------------
9957 # The call with PACKAGE and VERSION arguments is the old style
9958 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9959 # and VERSION should now be passed to AC_INIT and removed from
9960 # the call to AM_INIT_AUTOMAKE.
9961 # We support both call styles for the transition. After
9962 # the next Automake release, Autoconf can make the AC_INIT
9963 # arguments mandatory, and then we can depend on a new Autoconf
9964 # release and drop the old call support.
9965 AC_DEFUN([AM_INIT_AUTOMAKE],
9966 [AC_PREREQ([2.65])dnl
9967 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9968 dnl the ones we care about.
9969 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9970 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9971 AC_REQUIRE([AC_PROG_INSTALL])dnl
9972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9974 # is not polluted with repeated "-I."
9975 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9976 # test to see if srcdir already configured
9977 if test -f $srcdir/config.status; then
9978 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9982 # test whether we have cygpath
9983 if test -z "$CYGPATH_W"; then
9984 if (cygpath --version) >/dev/null 2>/dev/null; then
9985 CYGPATH_W='cygpath -w'
9990 AC_SUBST([CYGPATH_W])
9992 # Define the identity of the package.
9993 dnl Distinguish between old-style and new-style calls.
9995 [AC_DIAGNOSE([obsolete],
9996 [$0: two- and three-arguments forms are deprecated.])
9997 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9998 AC_SUBST([PACKAGE], [$1])dnl
9999 AC_SUBST([VERSION], [$2])],
10000 [_AM_SET_OPTIONS([$1])dnl
10001 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10003 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10005 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10006 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10007 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10009 _AM_IF_OPTION([no-define],,
10010 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10011 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10013 # Some tools Automake needs.
10014 AC_REQUIRE([AM_SANITY_CHECK])dnl
10015 AC_REQUIRE([AC_ARG_PROGRAM])dnl
10016 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10017 AM_MISSING_PROG([AUTOCONF], [autoconf])
10018 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10019 AM_MISSING_PROG([AUTOHEADER], [autoheader])
10020 AM_MISSING_PROG([MAKEINFO], [makeinfo])
10021 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10022 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10023 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10024 # For better backward compatibility. To be removed once Automake 1.9.x
10025 # dies out for good. For more background, see:
10026 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10027 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10028 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10029 # We need awk for the "check" target. The system "awk" is bad on
10031 AC_REQUIRE([AC_PROG_AWK])dnl
10032 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10033 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10034 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10035 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10036 [_AM_PROG_TAR([v7])])])
10037 _AM_IF_OPTION([no-dependencies],,
10038 [AC_PROVIDE_IFELSE([AC_PROG_CC],
10039 [_AM_DEPENDENCIES([CC])],
10040 [m4_define([AC_PROG_CC],
10041 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10042 AC_PROVIDE_IFELSE([AC_PROG_CXX],
10043 [_AM_DEPENDENCIES([CXX])],
10044 [m4_define([AC_PROG_CXX],
10045 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10046 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10047 [_AM_DEPENDENCIES([OBJC])],
10048 [m4_define([AC_PROG_OBJC],
10049 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10050 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10051 [_AM_DEPENDENCIES([OBJCXX])],
10052 [m4_define([AC_PROG_OBJCXX],
10053 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10055 AC_REQUIRE([AM_SILENT_RULES])dnl
10056 dnl The testsuite driver may need to know about EXEEXT, so add the
10057 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
10058 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10059 AC_CONFIG_COMMANDS_PRE(dnl
10060 [m4_provide_if([_AM_COMPILER_EXEEXT],
10061 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10064 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10065 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10066 dnl mangled by Autoconf and run in a shell conditional statement.
10067 m4_define([_AC_COMPILER_EXEEXT],
10068 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10071 # When config.status generates a header, we must update the stamp-h file.
10072 # This file resides in the same directory as the config header
10073 # that is generated. The stamp files are numbered to have different names.
10075 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10076 # loop where config.status creates the headers, so we can generate
10077 # our stamp files there.
10078 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10079 [# Compute $1's index in $config_headers.
10082 for _am_header in $config_headers :; do
10083 case $_am_header in
10084 $_am_arg | $_am_arg:* )
10087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10090 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10092 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10094 # This file is free software; the Free Software Foundation
10095 # gives unlimited permission to copy and/or distribute it,
10096 # with or without modifications, as long as this notice is preserved.
10098 # AM_PROG_INSTALL_SH
10099 # ------------------
10100 # Define $install_sh.
10101 AC_DEFUN([AM_PROG_INSTALL_SH],
10102 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10103 if test x"${install_sh}" != xset; then
10104 case $am_aux_dir in
10106 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10108 install_sh="\${SHELL} $am_aux_dir/install-sh"
10111 AC_SUBST([install_sh])])
10113 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
10115 # This file is free software; the Free Software Foundation
10116 # gives unlimited permission to copy and/or distribute it,
10117 # with or without modifications, as long as this notice is preserved.
10119 # Check whether the underlying file-system supports filenames
10120 # with a leading dot. For instance MS-DOS doesn't.
10121 AC_DEFUN([AM_SET_LEADING_DOT],
10122 [rm -rf .tst 2>/dev/null
10123 mkdir .tst 2>/dev/null
10124 if test -d .tst; then
10129 rmdir .tst 2>/dev/null
10130 AC_SUBST([am__leading_dot])])
10132 # Check to see how 'make' treats includes. -*- Autoconf -*-
10134 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10136 # This file is free software; the Free Software Foundation
10137 # gives unlimited permission to copy and/or distribute it,
10138 # with or without modifications, as long as this notice is preserved.
10140 # AM_MAKE_INCLUDE()
10141 # -----------------
10142 # Check to see how make treats includes.
10143 AC_DEFUN([AM_MAKE_INCLUDE],
10144 [am_make=${MAKE-make}
10145 cat > confinc << 'END'
10147 @echo this is the am__doit target
10150 # If we don't find an include directive, just comment out the code.
10151 AC_MSG_CHECKING([for style of include used by $am_make])
10155 # First try GNU make style include.
10156 echo "include confinc" > confmf
10157 # Ignore all kinds of additional output from 'make'.
10158 case `$am_make -s -f confmf 2> /dev/null` in #(
10159 *the\ am__doit\ target*)
10160 am__include=include
10165 # Now try BSD make style include.
10166 if test "$am__include" = "#"; then
10167 echo '.include "confinc"' > confmf
10168 case `$am_make -s -f confmf 2> /dev/null` in #(
10169 *the\ am__doit\ target*)
10170 am__include=.include
10176 AC_SUBST([am__include])
10177 AC_SUBST([am__quote])
10178 AC_MSG_RESULT([$_am_result])
10179 rm -f confinc confmf
10182 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10184 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
10186 # This file is free software; the Free Software Foundation
10187 # gives unlimited permission to copy and/or distribute it,
10188 # with or without modifications, as long as this notice is preserved.
10190 # AM_MISSING_PROG(NAME, PROGRAM)
10191 # ------------------------------
10192 AC_DEFUN([AM_MISSING_PROG],
10193 [AC_REQUIRE([AM_MISSING_HAS_RUN])
10194 $1=${$1-"${am_missing_run}$2"}
10197 # AM_MISSING_HAS_RUN
10198 # ------------------
10199 # Define MISSING if not defined so far and test if it is modern enough.
10200 # If it is, set am_missing_run to use it, otherwise, to nothing.
10201 AC_DEFUN([AM_MISSING_HAS_RUN],
10202 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10203 AC_REQUIRE_AUX_FILE([missing])dnl
10204 if test x"${MISSING+set}" != xset; then
10205 case $am_aux_dir in
10207 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10209 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10212 # Use eval to expand $SHELL
10213 if eval "$MISSING --is-lightweight"; then
10214 am_missing_run="$MISSING "
10217 AC_MSG_WARN(['missing' script is too old or missing])
10222 # Obsolete and "removed" macros, that must however still report explicit
10223 # error messages when used, to smooth transition.
10225 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10227 # This file is free software; the Free Software Foundation
10228 # gives unlimited permission to copy and/or distribute it,
10229 # with or without modifications, as long as this notice is preserved.
10231 AC_DEFUN([AM_CONFIG_HEADER],
10232 [AC_DIAGNOSE([obsolete],
10233 ['$0': this macro is obsolete.
10234 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
10235 AC_CONFIG_HEADERS($@)])
10237 AC_DEFUN([AM_PROG_CC_STDC],
10239 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
10240 AC_DIAGNOSE([obsolete],
10241 ['$0': this macro is obsolete.
10242 You should simply use the 'AC][_PROG_CC' macro instead.
10243 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
10244 but upon 'ac_cv_prog_cc_stdc'.])])
10246 AC_DEFUN([AM_C_PROTOTYPES],
10247 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
10248 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
10250 # Helper functions for option handling. -*- Autoconf -*-
10252 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10254 # This file is free software; the Free Software Foundation
10255 # gives unlimited permission to copy and/or distribute it,
10256 # with or without modifications, as long as this notice is preserved.
10258 # _AM_MANGLE_OPTION(NAME)
10259 # -----------------------
10260 AC_DEFUN([_AM_MANGLE_OPTION],
10261 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10263 # _AM_SET_OPTION(NAME)
10264 # --------------------
10265 # Set option NAME. Presently that only means defining a flag for this option.
10266 AC_DEFUN([_AM_SET_OPTION],
10267 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10269 # _AM_SET_OPTIONS(OPTIONS)
10270 # ------------------------
10271 # OPTIONS is a space-separated list of Automake options.
10272 AC_DEFUN([_AM_SET_OPTIONS],
10273 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10275 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10276 # -------------------------------------------
10277 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10278 AC_DEFUN([_AM_IF_OPTION],
10279 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10281 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10283 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10285 # This file is free software; the Free Software Foundation
10286 # gives unlimited permission to copy and/or distribute it,
10287 # with or without modifications, as long as this notice is preserved.
10291 AC_DEFUN([AM_SANITY_CHECK],
10292 [AC_MSG_CHECKING([whether build environment is sane])
10293 # Reject unsafe characters in $srcdir or the absolute working directory
10294 # name. Accept space and tab only in the latter.
10298 *[[\\\"\#\$\&\'\`$am_lf]]*)
10299 AC_MSG_ERROR([unsafe absolute working directory name]);;
10302 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10303 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10306 # Do 'set' in a subshell so we don't clobber the current shell's
10307 # arguments. Must try -L first in case configure is actually a
10308 # symlink; some systems play weird games with the mod time of symlinks
10309 # (eg FreeBSD returns the mod time of the symlink's containing
10313 for am_try in 1 2; do
10314 echo "timestamp, slept: $am_has_slept" > conftest.file
10315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10316 if test "$[*]" = "X"; then
10318 set X `ls -t "$srcdir/configure" conftest.file`
10320 if test "$[*]" != "X $srcdir/configure conftest.file" \
10321 && test "$[*]" != "X conftest.file $srcdir/configure"; then
10323 # If neither matched, then we have a broken ls. This can happen
10324 # if, for instance, CONFIG_SHELL is bash and it inherits a
10325 # broken ls alias from the environment. This has actually
10326 # happened. Such a system could not be considered "sane".
10327 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10328 alias in your environment])
10330 if test "$[2]" = conftest.file || test $am_try -eq 2; then
10337 test "$[2]" = conftest.file
10343 AC_MSG_ERROR([newly created file is older than distributed files!
10344 Check your system clock])
10346 AC_MSG_RESULT([yes])
10347 # If we didn't sleep, we still need to ensure time stamps of config.status and
10348 # generated files are strictly newer.
10350 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10354 AC_CONFIG_COMMANDS_PRE(
10355 [AC_MSG_CHECKING([that generated files are newer than configure])
10356 if test -n "$am_sleep_pid"; then
10357 # Hide warnings about reused PIDs.
10358 wait $am_sleep_pid 2>/dev/null
10360 AC_MSG_RESULT([done])])
10361 rm -f conftest.file
10364 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
10366 # This file is free software; the Free Software Foundation
10367 # gives unlimited permission to copy and/or distribute it,
10368 # with or without modifications, as long as this notice is preserved.
10370 # AM_SILENT_RULES([DEFAULT])
10371 # --------------------------
10372 # Enable less verbose build rules; with the default set to DEFAULT
10373 # ("yes" being less verbose, "no" or empty being verbose).
10374 AC_DEFUN([AM_SILENT_RULES],
10375 [AC_ARG_ENABLE([silent-rules], [dnl
10377 [--enable-silent-rules],
10378 [less verbose build output (undo: "make V=1")])
10380 [--disable-silent-rules],
10381 [verbose build output (undo: "make V=0")])dnl
10383 case $enable_silent_rules in @%:@ (((
10384 yes) AM_DEFAULT_VERBOSITY=0;;
10385 no) AM_DEFAULT_VERBOSITY=1;;
10386 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10389 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10390 dnl do not support nested variable expansions.
10391 dnl See automake bug#9928 and bug#10237.
10392 am_make=${MAKE-make}
10393 AC_CACHE_CHECK([whether $am_make supports nested variables],
10394 [am_cv_make_support_nested_variables],
10395 [if AS_ECHO([['TRUE=$(BAR$(V))
10401 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10402 am_cv_make_support_nested_variables=yes
10404 am_cv_make_support_nested_variables=no
10406 if test $am_cv_make_support_nested_variables = yes; then
10407 dnl Using '$V' instead of '$(V)' breaks IRIX make.
10409 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10411 AM_V=$AM_DEFAULT_VERBOSITY
10412 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10414 AC_SUBST([AM_V])dnl
10415 AM_SUBST_NOTMAKE([AM_V])dnl
10416 AC_SUBST([AM_DEFAULT_V])dnl
10417 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10418 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10420 AC_SUBST([AM_BACKSLASH])dnl
10421 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10424 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10426 # This file is free software; the Free Software Foundation
10427 # gives unlimited permission to copy and/or distribute it,
10428 # with or without modifications, as long as this notice is preserved.
10430 # AM_PROG_INSTALL_STRIP
10431 # ---------------------
10432 # One issue with vendor 'install' (even GNU) is that you can't
10433 # specify the program used to strip binaries. This is especially
10434 # annoying in cross-compiling environments, where the build's strip
10435 # is unlikely to handle the host's binaries.
10436 # Fortunately install-sh will honor a STRIPPROG variable, so we
10437 # always use install-sh in "make install-strip", and initialize
10438 # STRIPPROG with the value of the STRIP variable (set by the user).
10439 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10440 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10441 # Installed binaries are usually stripped using 'strip' when the user
10442 # run "make install-strip". However 'strip' might not be the right
10443 # tool to use in cross-compilation environments, therefore Automake
10444 # will honor the 'STRIP' environment variable to overrule this program.
10445 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10446 if test "$cross_compiling" != no; then
10447 AC_CHECK_TOOL([STRIP], [strip], :)
10449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10450 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10452 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
10454 # This file is free software; the Free Software Foundation
10455 # gives unlimited permission to copy and/or distribute it,
10456 # with or without modifications, as long as this notice is preserved.
10458 # _AM_SUBST_NOTMAKE(VARIABLE)
10459 # ---------------------------
10460 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10461 # This macro is traced by Automake.
10462 AC_DEFUN([_AM_SUBST_NOTMAKE])
10464 # AM_SUBST_NOTMAKE(VARIABLE)
10465 # --------------------------
10466 # Public sister of _AM_SUBST_NOTMAKE.
10467 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10469 # Check how to create a tarball. -*- Autoconf -*-
10471 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
10473 # This file is free software; the Free Software Foundation
10474 # gives unlimited permission to copy and/or distribute it,
10475 # with or without modifications, as long as this notice is preserved.
10477 # _AM_PROG_TAR(FORMAT)
10478 # --------------------
10479 # Check how to create a tarball in format FORMAT.
10480 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10482 # Substitute a variable $(am__tar) that is a command
10483 # writing to stdout a FORMAT-tarball containing the directory
10485 # tardir=directory && $(am__tar) > result.tar
10487 # Substitute a variable $(am__untar) that extract such
10488 # a tarball read from stdin.
10489 # $(am__untar) < result.tar
10491 AC_DEFUN([_AM_PROG_TAR],
10492 [# Always define AMTAR for backward compatibility. Yes, it's still used
10493 # in the wild :-( We should find a proper way to deprecate it ...
10494 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10496 # We'll loop over all known methods to create a tar archive until one works.
10497 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10500 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10504 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10505 # There is notably a 21 bits limit for the UID and the GID. In fact,
10506 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10508 am_max_uid=2097151 # 2^21 - 1
10509 am_max_gid=$am_max_uid
10510 # The $UID and $GID variables are not portable, so we need to resort
10511 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10512 # below are definitely unexpected, so allow the users to see them
10513 # (that is, avoid stderr redirection).
10514 am_uid=`id -u || echo unknown`
10515 am_gid=`id -g || echo unknown`
10516 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10517 if test $am_uid -le $am_max_uid; then
10518 AC_MSG_RESULT([yes])
10520 AC_MSG_RESULT([no])
10523 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10524 if test $am_gid -le $am_max_gid; then
10525 AC_MSG_RESULT([yes])
10527 AC_MSG_RESULT([no])
10534 [m4_fatal([Unknown tar format])])
10536 AC_MSG_CHECKING([how to create a $1 tar archive])
10538 # Go ahead even if we have the value already cached. We do so because we
10539 # need to set the values for the 'am__tar' and 'am__untar' variables.
10540 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10542 for _am_tool in $_am_tools; do
10545 for _am_tar in tar gnutar gtar; do
10546 AM_RUN_LOG([$_am_tar --version]) && break
10548 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10549 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10550 am__untar="$_am_tar -xf -"
10553 # Must skip GNU tar: if it does not support --format= it doesn't create
10554 # ustar tarball either.
10555 (tar --version) >/dev/null 2>&1 && continue
10556 am__tar='tar chf - "$$tardir"'
10557 am__tar_='tar chf - "$tardir"'
10558 am__untar='tar xf -'
10561 am__tar='pax -L -x $1 -w "$$tardir"'
10562 am__tar_='pax -L -x $1 -w "$tardir"'
10566 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10567 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10568 am__untar='cpio -i -H $1 -d'
10577 # If the value was cached, stop now. We just wanted to have am__tar
10578 # and am__untar set.
10579 test -n "${am_cv_prog_tar_$1}" && break
10581 # tar/untar a dummy directory, and stop if the command works.
10582 rm -rf conftest.dir
10584 echo GrepMe > conftest.dir/file
10585 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10586 rm -rf conftest.dir
10587 if test -s conftest.tar; then
10588 AM_RUN_LOG([$am__untar <conftest.tar])
10589 AM_RUN_LOG([cat conftest.dir/file])
10590 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10593 rm -rf conftest.dir
10595 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10596 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10598 AC_SUBST([am__tar])
10599 AC_SUBST([am__untar])