1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17 # 2006, 2007, 2008 Free Software Foundation, Inc.
18 # Written by Gordon Matzigkeit, 1996
20 # This file is free software; the Free Software Foundation gives
21 # unlimited permission to copy and/or distribute it, with or without
22 # modifications, as long as this notice is preserved.
24 m4_define([_LT_COPYING], [dnl
25 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26 # 2006, 2007, 2008 Free Software Foundation, Inc.
27 # Written by Gordon Matzigkeit, 1996
29 # This file is part of GNU Libtool.
31 # GNU Libtool is free software; you can redistribute it and/or
32 # modify it under the terms of the GNU General Public License as
33 # published by the Free Software Foundation; either version 2 of
34 # the License, or (at your option) any later version.
36 # As a special exception to the GNU General Public License,
37 # if you distribute this file as part of a program or library that
38 # is built using GNU Libtool, you may include this file under the
39 # same distribution terms that you use for the rest of that program.
41 # GNU Libtool is distributed in the hope that it will be useful,
42 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 # GNU General Public License for more details.
46 # You should have received a copy of the GNU General Public License
47 # along with GNU Libtool; see the file COPYING. If not, a copy
48 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
49 # obtained by writing to the Free Software Foundation, Inc.,
50 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
58 # Complain and exit if this libtool version is less that VERSION.
60 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
62 [m4_fatal([Libtool version $1 or higher is required],
69 # Complain if the absolute build directory name contains unusual characters
70 m4_defun([_LT_CHECK_BUILDDIR],
73 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
81 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
82 AC_BEFORE([$0], [LT_LANG])dnl
83 AC_BEFORE([$0], [LT_OUTPUT])dnl
84 AC_BEFORE([$0], [LTDL_INIT])dnl
85 m4_require([_LT_CHECK_BUILDDIR])dnl
87 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
88 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
89 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
90 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
91 dnl unless we require an AC_DEFUNed macro:
92 AC_REQUIRE([LTOPTIONS_VERSION])dnl
93 AC_REQUIRE([LTSUGAR_VERSION])dnl
94 AC_REQUIRE([LTVERSION_VERSION])dnl
95 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
96 m4_require([_LT_PROG_LTMAIN])dnl
99 _LT_SET_OPTIONS([$0], [$1])
101 # This can be used to rebuild libtool when needed
102 LIBTOOL_DEPS="$ltmain"
104 # Always use our own libtool.
105 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
115 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
116 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
119 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
122 # _LT_CC_BASENAME(CC)
123 # -------------------
124 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
125 m4_defun([_LT_CC_BASENAME],
126 [for cc_temp in $1""; do
128 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
129 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
138 # _LT_FILEUTILS_DEFAULTS
139 # ----------------------
140 # It is okay to use these file commands and assume they have been set
141 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
142 m4_defun([_LT_FILEUTILS_DEFAULTS],
146 ])# _LT_FILEUTILS_DEFAULTS
151 m4_defun([_LT_SETUP],
152 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
153 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
154 _LT_DECL([], [host_alias], [0], [The host system])dnl
155 _LT_DECL([], [host], [0])dnl
156 _LT_DECL([], [host_os], [0])dnl
158 _LT_DECL([], [build_alias], [0], [The build system])dnl
159 _LT_DECL([], [build], [0])dnl
160 _LT_DECL([], [build_os], [0])dnl
162 AC_REQUIRE([AC_PROG_CC])dnl
163 AC_REQUIRE([LT_PATH_LD])dnl
164 AC_REQUIRE([LT_PATH_NM])dnl
166 AC_REQUIRE([AC_PROG_LN_S])dnl
167 test -z "$LN_S" && LN_S="ln -s"
168 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
170 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
171 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
172 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
174 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
175 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
176 m4_require([_LT_CMD_RELOAD])dnl
177 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
178 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
179 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
181 _LT_CONFIG_LIBTOOL_INIT([
182 # See if we are running on zsh, and set the options which allow our
183 # commands through without removal of \ escapes INIT.
184 if test -n "\${ZSH_VERSION+set}" ; then
188 if test -n "${ZSH_VERSION+set}" ; then
194 m4_require([_LT_TAG_COMPILER])dnl
195 _LT_PROG_ECHO_BACKSLASH
199 # AIX sometimes has problems with the GCC collect2 program. For some
200 # reason, if we set the COLLECT_NAMES environment variable, the problems
201 # vanish in a puff of smoke.
202 if test "X${COLLECT_NAMES+set}" != Xset; then
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
213 # Same as above, but do not quote variable references.
214 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
216 # Sed substitution to delay expansion of an escaped shell variable in a
217 # double_quote_subst'ed string.
218 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
220 # Sed substitution to delay expansion of an escaped single quote.
221 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
223 # Sed substitution to avoid accidental globbing in evaled expressions
224 no_glob_subst='s/\*/\\\*/g'
230 # All known linkers require a `.a' archive for static linking (except MSVC,
231 # which needs '.lib').
234 with_gnu_ld="$lt_cv_prog_gnu_ld"
239 # Set sane defaults for various variables
240 test -z "$CC" && CC=cc
241 test -z "$LTCC" && LTCC=$CC
242 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
243 test -z "$LD" && LD=ld
244 test -z "$ac_objext" && ac_objext=o
246 _LT_CC_BASENAME([$compiler])
248 # Only perform the check for file, if the check method requires it
249 test -z "$MAGIC_CMD" && MAGIC_CMD=file
250 case $deplibs_check_method in
252 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
258 # Use C for the default configuration in the libtool script
259 LT_SUPPORTED_TAG([CC])
261 _LT_LANG_DEFAULT_CONFIG
268 # Note that this code is called both from `configure', and `config.status'
269 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
270 # `config.status' has no value for ac_aux_dir unless we are using Automake,
271 # so we pass a copy along to make sure it has a sensible value anyway.
272 m4_defun([_LT_PROG_LTMAIN],
273 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
274 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
275 ltmain="$ac_aux_dir/ltmain.sh"
280 # So that we can recreate a full libtool script including additional
281 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
282 # in macros and then make a single call at the end using the `libtool'
286 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
287 # ----------------------------------------
288 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
289 m4_define([_LT_CONFIG_LIBTOOL_INIT],
291 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
296 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
299 # _LT_CONFIG_LIBTOOL([COMMANDS])
300 # ------------------------------
301 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
302 m4_define([_LT_CONFIG_LIBTOOL],
304 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
309 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
312 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
313 # -----------------------------------------------------
314 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
315 [_LT_CONFIG_LIBTOOL([$1])
316 _LT_CONFIG_LIBTOOL_INIT([$2])
320 # _LT_FORMAT_COMMENT([COMMENT])
321 # -----------------------------
322 # Add leading comment marks to the start of each line, and a trailing
323 # full-stop to the whole comment if one is not present already.
324 m4_define([_LT_FORMAT_COMMENT],
326 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
327 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
335 # -------------------------------------------------------------------
336 # CONFIGNAME is the name given to the value in the libtool script.
337 # VARNAME is the (base) name used in the configure script.
338 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
339 # VARNAME. Any other value will be used directly.
340 m4_define([_LT_DECL],
341 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
342 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
343 [m4_ifval([$1], [$1], [$2])])
344 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
346 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
347 lt_dict_add_subkey([lt_decl_dict], [$2],
348 [tagged?], [m4_ifval([$5], [yes], [no])])])
352 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
353 # --------------------------------------------------------
354 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
357 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
358 # ------------------------------------------------
359 m4_define([lt_decl_tag_varnames],
360 [_lt_decl_filter([tagged?], [yes], $@)])
363 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
364 # ---------------------------------------------------------
365 m4_define([_lt_decl_filter],
367 [0], [m4_fatal([$0: too few arguments: $#])],
368 [1], [m4_fatal([$0: too few arguments: $#: $1])],
369 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
370 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
371 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
375 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
376 # --------------------------------------------------
377 m4_define([lt_decl_quote_varnames],
378 [_lt_decl_filter([value], [1], $@)])
381 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
382 # ---------------------------------------------------
383 m4_define([lt_decl_dquote_varnames],
384 [_lt_decl_filter([value], [2], $@)])
387 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
388 # ---------------------------------------------------
389 m4_define([lt_decl_varnames_tagged],
390 [m4_assert([$# <= 2])dnl
391 _$0(m4_quote(m4_default([$1], [[, ]])),
392 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
393 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
394 m4_define([_lt_decl_varnames_tagged],
395 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
398 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
399 # ------------------------------------------------
400 m4_define([lt_decl_all_varnames],
401 [_$0(m4_quote(m4_default([$1], [[, ]])),
403 m4_quote(lt_decl_varnames),
404 m4_quote(m4_shift($@))))[]dnl
406 m4_define([_lt_decl_all_varnames],
407 [lt_join($@, lt_decl_varnames_tagged([$1],
408 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
412 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
413 # ------------------------------------
414 # Quote a variable value, and forward it to `config.status' so that its
415 # declaration there will have the same value as in `configure'. VARNAME
416 # must have a single quote delimited value for this to work.
417 m4_define([_LT_CONFIG_STATUS_DECLARE],
418 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
421 # _LT_CONFIG_STATUS_DECLARATIONS
422 # ------------------------------
423 # We delimit libtool config variables with single quotes, so when
424 # we write them to config.status, we have to be sure to quote all
425 # embedded single quotes properly. In configure, this macro expands
426 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
428 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
429 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
430 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
431 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
436 # Output comment and list of tags supported by the script
437 m4_defun([_LT_LIBTOOL_TAGS],
438 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
439 available_tags="_LT_TAGS"dnl
443 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
444 # -----------------------------------
445 # Extract the dictionary values for VARNAME (optionally with TAG) and
446 # expand to a commented shell variable setting:
448 # # Some comment about what VAR is for.
449 # visible_name=$lt_internal_name
450 m4_define([_LT_LIBTOOL_DECLARE],
451 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
452 [description])))[]dnl
453 m4_pushdef([_libtool_name],
454 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
455 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
456 [0], [_libtool_name=[$]$1],
457 [1], [_libtool_name=$lt_[]$1],
458 [2], [_libtool_name=$lt_[]$1],
459 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
460 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
464 # _LT_LIBTOOL_CONFIG_VARS
465 # -----------------------
466 # Produce commented declarations of non-tagged libtool config variables
467 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
468 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
469 # section) are produced by _LT_LIBTOOL_TAG_VARS.
470 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
471 [m4_foreach([_lt_var],
472 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
473 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
476 # _LT_LIBTOOL_TAG_VARS(TAG)
477 # -------------------------
478 m4_define([_LT_LIBTOOL_TAG_VARS],
479 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
480 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
483 # _LT_TAGVAR(VARNAME, [TAGNAME])
484 # ------------------------------
485 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
488 # _LT_CONFIG_COMMANDS
489 # -------------------
490 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
491 # variables for single and double quote escaping we saved from calls
492 # to _LT_DECL, we can put quote escaped variables declarations
493 # into `config.status', and then the shell code to quote escape them in
494 # for loops in `config.status'. Finally, any additional code accumulated
495 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
496 m4_defun([_LT_CONFIG_COMMANDS],
497 [AC_PROVIDE_IFELSE([LT_OUTPUT],
498 dnl If the libtool generation code has been placed in $CONFIG_LT,
499 dnl instead of duplicating it all over again into config.status,
500 dnl then we will have config.status run $CONFIG_LT later, so it
501 dnl needs to know what name is stored there:
502 [AC_CONFIG_COMMANDS([libtool],
503 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
504 dnl If the libtool generation code is destined for config.status,
505 dnl expand the accumulated commands and init code now:
506 [AC_CONFIG_COMMANDS([libtool],
507 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
508 ])#_LT_CONFIG_COMMANDS
512 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
515 # The HP-UX ksh and POSIX shell print the target directory to stdout
517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
519 sed_quote_subst='$sed_quote_subst'
520 double_quote_subst='$double_quote_subst'
521 delay_variable_subst='$delay_variable_subst'
522 _LT_CONFIG_STATUS_DECLARATIONS
525 compiler='$compiler_DEFAULT'
527 # Quote evaled strings.
528 for var in lt_decl_all_varnames([[ \
529 ]], lt_decl_quote_varnames); do
530 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
531 *[[\\\\\\\`\\"\\\$]]*)
532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
540 # Double-quote double-evaled strings.
541 for var in lt_decl_all_varnames([[ \
542 ]], lt_decl_dquote_varnames); do
543 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
544 *[[\\\\\\\`\\"\\\$]]*)
545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 # Fix-up fallback echo if it was mangled by the above quoting rules.
555 *'\\\[$]0 --fallback-echo"')dnl "
556 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
560 _LT_OUTPUT_LIBTOOL_INIT
566 # This macro allows early generation of the libtool script (before
567 # AC_OUTPUT is called), incase it is used in configure for compilation
569 AC_DEFUN([LT_OUTPUT],
570 [: ${CONFIG_LT=./config.lt}
571 AC_MSG_NOTICE([creating $CONFIG_LT])
572 cat >"$CONFIG_LT" <<_LTEOF
574 # Generated by $as_me.
575 # Run this file to recreate a libtool stub with the current configuration.
578 SHELL=\${CONFIG_SHELL-$SHELL}
581 cat >>"$CONFIG_LT" <<\_LTEOF
585 exec AS_MESSAGE_FD>&1
586 exec AS_MESSAGE_LOG_FD>>config.log
589 AS_BOX([Running $as_me.])
590 } >&AS_MESSAGE_LOG_FD
593 \`$as_me' creates a local libtool stub from the current configuration,
594 for use in further configure time tests before the real libtool is
597 Usage: $[0] [[OPTIONS]]
599 -h, --help print this help, then exit
600 -V, --version print version number, then exit
601 -q, --quiet do not print progress messages
602 -d, --debug don't remove temporary files
604 Report bugs to <bug-libtool@gnu.org>."
607 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
608 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
609 configured by $[0], generated by m4_PACKAGE_STRING.
611 Copyright (C) 2008 Free Software Foundation, Inc.
612 This config.lt script is free software; the Free Software Foundation
613 gives unlimited permision to copy, distribute and modify it."
618 --version | --v* | -V )
619 echo "$lt_cl_version"; exit 0 ;;
621 echo "$lt_cl_help"; exit 0 ;;
622 --debug | --d* | -d )
624 --quiet | --q* | --silent | --s* | -q )
627 -*) AC_MSG_ERROR([unrecognized option: $[1]
628 Try \`$[0] --help' for more information.]) ;;
630 *) AC_MSG_ERROR([unrecognized argument: $[1]
631 Try \`$[0] --help' for more information.]) ;;
636 if $lt_cl_silent; then
637 exec AS_MESSAGE_FD>/dev/null
641 cat >>"$CONFIG_LT" <<_LTEOF
642 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
645 cat >>"$CONFIG_LT" <<\_LTEOF
646 AC_MSG_NOTICE([creating $ofile])
647 _LT_OUTPUT_LIBTOOL_COMMANDS
650 chmod +x "$CONFIG_LT"
652 # configure is writing to config.log, but config.lt does its own redirection,
653 # appending to config.log, which fails on DOS, as config.log is still kept
654 # open by configure. Here we exec the FD to /dev/null, effectively closing
655 # config.log, so it can be properly (re)opened and appended to by config.lt.
656 if test "$no_create" != yes; then
658 test "$silent" = yes &&
659 lt_config_lt_args="$lt_config_lt_args --quiet"
660 exec AS_MESSAGE_LOG_FD>/dev/null
661 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
662 exec AS_MESSAGE_LOG_FD>>config.log
663 $lt_cl_success || AS_EXIT(1)
670 # If TAG is the built-in tag, create an initial libtool script with a
671 # default configuration from the untagged config vars. Otherwise add code
672 # to config.status for appending the configuration named by TAG from the
673 # matching tagged config vars.
674 m4_defun([_LT_CONFIG],
675 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
676 _LT_CONFIG_SAVE_COMMANDS([
677 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
678 m4_if(_LT_TAG, [C], [
679 # See if we are running on zsh, and set the options which allow our
680 # commands through without removal of \ escapes.
681 if test -n "${ZSH_VERSION+set}" ; then
686 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
689 cat <<_LT_EOF >> "$cfgfile"
692 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
693 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
699 # ### BEGIN LIBTOOL CONFIG
700 _LT_LIBTOOL_CONFIG_VARS
702 # ### END LIBTOOL CONFIG
708 cat <<\_LT_EOF >> "$cfgfile"
709 # AIX sometimes has problems with the GCC collect2 program. For some
710 # reason, if we set the COLLECT_NAMES environment variable, the problems
711 # vanish in a puff of smoke.
712 if test "X${COLLECT_NAMES+set}" != Xset; then
722 # We use sed instead of cat because bash on DJGPP gets confused if
723 # if finds mixed CR/LF and LF-only lines. Since sed operates in
724 # text mode, it properly converts lines to CR/LF. This bash problem
725 # is reportedly fixed, but why not run on old versions too?
726 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
727 || (rm -f "$cfgfile"; exit 1)
729 _LT_PROG_XSI_SHELLFNS
731 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
732 || (rm -f "$cfgfile"; exit 1)
734 mv -f "$cfgfile" "$ofile" ||
735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
738 [cat <<_LT_EOF >> "$ofile"
740 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
741 dnl in a comment (ie after a #).
742 # ### BEGIN LIBTOOL TAG CONFIG: $1
743 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
744 # ### END LIBTOOL TAG CONFIG: $1
751 TIMESTAMP='$TIMESTAMP'
754 ])dnl /_LT_CONFIG_SAVE_COMMANDS
758 # LT_SUPPORTED_TAG(TAG)
759 # ---------------------
760 # Trace this macro to discover what tags are supported by the libtool
761 # --tag option, using:
762 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
763 AC_DEFUN([LT_SUPPORTED_TAG], [])
766 # C support is built-in for now
767 m4_define([_LT_LANG_C_enabled], [])
768 m4_define([_LT_TAGS], [])
773 # Enable libtool support for the given language if not already enabled.
775 [AC_BEFORE([$0], [LT_OUTPUT])dnl
778 [C++], [_LT_LANG(CXX)],
779 [Java], [_LT_LANG(GCJ)],
780 [Fortran 77], [_LT_LANG(F77)],
781 [Fortran], [_LT_LANG(FC)],
782 [Windows Resource], [_LT_LANG(RC)],
783 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
785 [m4_fatal([$0: unsupported language: "$1"])])])dnl
792 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
793 [LT_SUPPORTED_TAG([$1])dnl
794 m4_append([_LT_TAGS], [$1 ])dnl
795 m4_define([_LT_LANG_]$1[_enabled], [])dnl
796 _LT_LANG_$1_CONFIG($1)])dnl
800 # _LT_LANG_DEFAULT_CONFIG
801 # -----------------------
802 m4_defun([_LT_LANG_DEFAULT_CONFIG],
803 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
805 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
807 AC_PROVIDE_IFELSE([AC_PROG_F77],
809 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
811 AC_PROVIDE_IFELSE([AC_PROG_FC],
813 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
815 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
816 dnl pulling things in needlessly.
817 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
819 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
821 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
823 [m4_ifdef([AC_PROG_GCJ],
824 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
825 m4_ifdef([A][M_PROG_GCJ],
826 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
827 m4_ifdef([LT_PROG_GCJ],
828 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
830 AC_PROVIDE_IFELSE([LT_PROG_RC],
832 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
833 ])# _LT_LANG_DEFAULT_CONFIG
836 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
837 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
838 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
839 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
840 dnl aclocal-1.4 backwards compatibility:
841 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
842 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
843 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
844 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
849 m4_defun([_LT_TAG_COMPILER],
850 [AC_REQUIRE([AC_PROG_CC])dnl
852 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
853 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
854 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
855 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
857 # If no C compiler was specified, use CC.
860 # If no C compiler flags were specified, use CFLAGS.
861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
863 # Allow CC to be a program name with arguments.
868 # _LT_COMPILER_BOILERPLATE
869 # ------------------------
870 # Check for compiler boilerplate output or warnings with
871 # the simple compiler test code.
872 m4_defun([_LT_COMPILER_BOILERPLATE],
873 [m4_require([_LT_DECL_SED])dnl
874 ac_outfile=conftest.$ac_objext
875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
877 _lt_compiler_boilerplate=`cat conftest.err`
879 ])# _LT_COMPILER_BOILERPLATE
882 # _LT_LINKER_BOILERPLATE
883 # ----------------------
884 # Check for linker boilerplate output or warnings with
885 # the simple link test code.
886 m4_defun([_LT_LINKER_BOILERPLATE],
887 [m4_require([_LT_DECL_SED])dnl
888 ac_outfile=conftest.$ac_objext
889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
891 _lt_linker_boilerplate=`cat conftest.err`
893 ])# _LT_LINKER_BOILERPLATE
895 # _LT_REQUIRED_DARWIN_CHECKS
896 # -------------------------
897 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
900 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
901 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
902 AC_CHECK_TOOL([LIPO], [lipo], [:])
903 AC_CHECK_TOOL([OTOOL], [otool], [:])
904 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
905 _LT_DECL([], [DSYMUTIL], [1],
906 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
907 _LT_DECL([], [NMEDIT], [1],
908 [Tool to change global to local symbols on Mac OS X])
909 _LT_DECL([], [LIPO], [1],
910 [Tool to manipulate fat objects and archives on Mac OS X])
911 _LT_DECL([], [OTOOL], [1],
912 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
913 _LT_DECL([], [OTOOL64], [1],
914 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
916 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
917 [lt_cv_apple_cc_single_mod=no
918 if test -z "${LT_MULTI_MODULE}"; then
919 # By default we will add the -single_module flag. You can override
920 # by either setting the environment variable LT_MULTI_MODULE
921 # non-empty at configure time, or by adding -multi_module to the
923 rm -rf libconftest.dylib*
924 echo "int foo(void){return 1;}" > conftest.c
925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
926 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
931 lt_cv_apple_cc_single_mod=yes
933 cat conftest.err >&AS_MESSAGE_LOG_FD
935 rm -rf libconftest.dylib*
938 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
939 [lt_cv_ld_exported_symbols_list],
940 [lt_cv_ld_exported_symbols_list=no
941 save_LDFLAGS=$LDFLAGS
942 echo "_main" > conftest.sym
943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
944 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
945 [lt_cv_ld_exported_symbols_list=yes],
946 [lt_cv_ld_exported_symbols_list=no])
947 LDFLAGS="$save_LDFLAGS"
950 rhapsody* | darwin1.[[012]])
951 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
953 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
954 darwin*) # darwin 5.x on
955 # if running on 10.5 or later, the deployment target defaults
956 # to the OS version, if on x86, and 10.4, the deployment
957 # target defaults to 10.4. Don't you love it?
958 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
959 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
968 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
969 _lt_dar_single_mod='$single_module'
971 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
972 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
974 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
976 if test "$DSYMUTIL" != ":"; then
977 _lt_dsymutil='~$DSYMUTIL $lib || :'
986 # _LT_DARWIN_LINKER_FEATURES
987 # --------------------------
988 # Checks for linker and compiler features on darwin
989 m4_defun([_LT_DARWIN_LINKER_FEATURES],
991 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
992 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
993 _LT_TAGVAR(hardcode_direct, $1)=no
994 _LT_TAGVAR(hardcode_automatic, $1)=yes
995 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
996 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
997 _LT_TAGVAR(link_all_deplibs, $1)=yes
998 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1000 ifort*) _lt_dar_can_shared=yes ;;
1001 *) _lt_dar_can_shared=$GCC ;;
1003 if test "$_lt_dar_can_shared" = "yes"; then
1004 output_verbose_link_cmd=echo
1005 _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}"
1006 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1007 _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}"
1008 _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}"
1010 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1011 _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}"
1012 _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}"
1016 _LT_TAGVAR(ld_shlibs, $1)=no
1020 # _LT_SYS_MODULE_PATH_AIX
1021 # -----------------------
1022 # Links a minimal program and checks the executable
1023 # for the system default hardcoded library path. In most cases,
1024 # this is /usr/lib:/lib, but when the MPI compilers are used
1025 # the location of the communication and MPI libs are included too.
1026 # If we don't find anything, use the default library path according
1027 # to the aix ld manual.
1028 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1029 [m4_require([_LT_DECL_SED])dnl
1030 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1031 lt_aix_libpath_sed='
1032 /Import File Strings/,/^$/ {
1038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1039 # Check for a 64-bit object if we didn't find anything.
1040 if test -z "$aix_libpath"; then
1041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1044 ])# _LT_SYS_MODULE_PATH_AIX
1047 # _LT_SHELL_INIT(ARG)
1048 # -------------------
1049 m4_define([_LT_SHELL_INIT],
1050 [ifdef([AC_DIVERSION_NOTICE],
1051 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1052 [AC_DIVERT_PUSH(NOTICE)])
1058 # _LT_PROG_ECHO_BACKSLASH
1059 # -----------------------
1060 # Add some code to the start of the generated configure script which
1061 # will find an echo command which doesn't interpret backslashes.
1062 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1064 # Check that we are running under the correct shell.
1065 SHELL=${CONFIG_SHELL-/bin/sh}
1069 # Remove one level of quotation (which was required for Make).
1070 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1074 ECHO=${lt_ECHO-echo}
1075 if test "X[$]1" = X--no-reexec; then
1076 # Discard the --no-reexec flag, and continue.
1078 elif test "X[$]1" = X--fallback-echo; then
1079 # Avoid inline document here, it may be left over
1081 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1082 # Yippee, $ECHO works!
1085 # Restart under the correct shell.
1086 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1089 if test "X[$]1" = X--fallback-echo; then
1090 # used as fallback echo
1098 # The HP-UX ksh and POSIX shell print the target directory to stdout
1100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1102 if test -z "$lt_ECHO"; then
1103 if test "X${echo_test_string+set}" != Xset; then
1104 # find a string as large as possible, as long as the shell can cope with it
1105 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1106 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1107 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1108 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1115 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1116 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1117 test "X$echo_testing_string" = "X$echo_test_string"; then
1120 # The Solaris, AIX, and Digital Unix default echo programs unquote
1121 # backslashes. This makes it impossible to quote backslashes using
1122 # echo "$something" | sed 's/\\/\\\\/g'
1124 # So, first we look for a working echo in the user's PATH.
1126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1127 for dir in $PATH /usr/ucb; do
1129 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1130 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1131 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1132 test "X$echo_testing_string" = "X$echo_test_string"; then
1139 if test "X$ECHO" = Xecho; then
1140 # We didn't find a better echo, so look for alternatives.
1141 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1142 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1143 test "X$echo_testing_string" = "X$echo_test_string"; then
1144 # This shell has a builtin print -r that does the trick.
1146 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1147 test "X$CONFIG_SHELL" != X/bin/ksh; then
1148 # If we have ksh, try running configure again with it.
1149 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1150 export ORIGINAL_CONFIG_SHELL
1151 CONFIG_SHELL=/bin/ksh
1153 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1157 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1158 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1159 test "X$echo_testing_string" = "X$echo_test_string"; then
1160 # Cool, printf works
1162 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1163 test "X$echo_testing_string" = 'X\t' &&
1164 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1165 test "X$echo_testing_string" = "X$echo_test_string"; then
1166 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1168 SHELL="$CONFIG_SHELL"
1170 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1171 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172 test "X$echo_testing_string" = 'X\t' &&
1173 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174 test "X$echo_testing_string" = "X$echo_test_string"; then
1175 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1177 # maybe with a smaller string...
1180 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1181 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1188 if test "$prev" != 'sed 50q "[$]0"'; then
1189 echo_test_string=`eval $prev`
1190 export echo_test_string
1191 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1193 # Oops. We lost completely, so just stick with echo.
1202 # Copy echo and quote the copy suitably for passing to libtool from
1203 # the Makefile, instead of quoting the original, which is used later.
1205 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1206 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1211 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1212 _LT_DECL([], [ECHO], [1],
1213 [An echo program that does not interpret backslashes])
1214 ])# _LT_PROG_ECHO_BACKSLASH
1219 m4_defun([_LT_ENABLE_LOCK],
1220 [AC_ARG_ENABLE([libtool-lock],
1221 [AS_HELP_STRING([--disable-libtool-lock],
1222 [avoid locking (might break parallel builds)])])
1223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1225 # Some flags need to be propagated to the compiler or linker for good
1229 # Find out which ABI we are using.
1230 echo 'int i;' > conftest.$ac_ext
1231 if AC_TRY_EVAL(ac_compile); then
1232 case `/usr/bin/file conftest.$ac_objext` in
1244 # Find out which ABI we are using.
1245 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1246 if AC_TRY_EVAL(ac_compile); then
1247 if test "$lt_cv_prog_gnu_ld" = yes; then
1248 case `/usr/bin/file conftest.$ac_objext` in
1250 LD="${LD-ld} -melf32bsmip"
1253 LD="${LD-ld} -melf32bmipn32"
1256 LD="${LD-ld} -melf64bmip"
1260 case `/usr/bin/file conftest.$ac_objext` in
1276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1278 # Find out which ABI we are using.
1279 echo 'int i;' > conftest.$ac_ext
1280 if AC_TRY_EVAL(ac_compile); then
1281 case `/usr/bin/file conftest.o` in
1284 x86_64-*kfreebsd*-gnu)
1285 LD="${LD-ld} -m elf_i386_fbsd"
1288 LD="${LD-ld} -m elf_i386"
1290 ppc64-*linux*|powerpc64-*linux*)
1291 LD="${LD-ld} -m elf32ppclinux"
1294 LD="${LD-ld} -m elf_s390"
1297 LD="${LD-ld} -m elf32_sparc"
1303 x86_64-*kfreebsd*-gnu)
1304 LD="${LD-ld} -m elf_x86_64_fbsd"
1307 LD="${LD-ld} -m elf_x86_64"
1309 ppc*-*linux*|powerpc*-*linux*)
1310 LD="${LD-ld} -m elf64ppc"
1312 s390*-*linux*|s390*-*tpf*)
1313 LD="${LD-ld} -m elf64_s390"
1316 LD="${LD-ld} -m elf64_sparc"
1326 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1327 SAVE_CFLAGS="$CFLAGS"
1328 CFLAGS="$CFLAGS -belf"
1329 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1331 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1335 CFLAGS="$SAVE_CFLAGS"
1339 # Find out which ABI we are using.
1340 echo 'int i;' > conftest.$ac_ext
1341 if AC_TRY_EVAL(ac_compile); then
1342 case `/usr/bin/file conftest.o` in
1344 case $lt_cv_prog_gnu_ld in
1345 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1347 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1359 need_locks="$enable_libtool_lock"
1363 # _LT_CMD_OLD_ARCHIVE
1364 # -------------------
1365 m4_defun([_LT_CMD_OLD_ARCHIVE],
1366 [AC_CHECK_TOOL(AR, ar, false)
1367 test -z "$AR" && AR=ar
1368 test -z "$AR_FLAGS" && AR_FLAGS=cru
1369 _LT_DECL([], [AR], [1], [The archiver])
1370 _LT_DECL([], [AR_FLAGS], [1])
1372 AC_CHECK_TOOL(STRIP, strip, :)
1373 test -z "$STRIP" && STRIP=:
1374 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1376 AC_CHECK_TOOL(RANLIB, ranlib, :)
1377 test -z "$RANLIB" && RANLIB=:
1378 _LT_DECL([], [RANLIB], [1],
1379 [Commands used to install an old-style archive])
1381 # Determine commands to create old-style static archives.
1382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1383 old_postinstall_cmds='chmod 644 $oldlib'
1384 old_postuninstall_cmds=
1386 if test -n "$RANLIB"; then
1389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1397 _LT_DECL([], [old_postinstall_cmds], [2])
1398 _LT_DECL([], [old_postuninstall_cmds], [2])
1399 _LT_TAGDECL([], [old_archive_cmds], [2],
1400 [Commands used to build an old-style archive])
1401 ])# _LT_CMD_OLD_ARCHIVE
1404 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1405 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1406 # ----------------------------------------------------------------
1407 # Check whether the given compiler option works
1408 AC_DEFUN([_LT_COMPILER_OPTION],
1409 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1410 m4_require([_LT_DECL_SED])dnl
1411 AC_CACHE_CHECK([$1], [$2],
1413 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1415 lt_compiler_flag="$3"
1416 # Insert the option either (1) after the last *FLAGS variable, or
1417 # (2) before a word containing "conftest.", or (3) at the end.
1418 # Note that $ac_compile itself does not contain backslashes and begins
1419 # with a dollar sign (not a hyphen), so the echo should work correctly.
1420 # The option is referenced via a variable to avoid confusing sed.
1421 lt_compile=`echo "$ac_compile" | $SED \
1422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1423 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1424 -e 's:$: $lt_compiler_flag:'`
1425 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1426 (eval "$lt_compile" 2>conftest.err)
1428 cat conftest.err >&AS_MESSAGE_LOG_FD
1429 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1430 if (exit $ac_status) && test -s "$ac_outfile"; then
1431 # The compiler can only warn and ignore the option if not recognized
1432 # So say no if there are warnings other than the usual output.
1433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1442 if test x"[$]$2" = xyes; then
1443 m4_if([$5], , :, [$5])
1445 m4_if([$6], , :, [$6])
1447 ])# _LT_COMPILER_OPTION
1450 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1451 dnl aclocal-1.4 backwards compatibility:
1452 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1455 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1456 # [ACTION-SUCCESS], [ACTION-FAILURE])
1457 # ----------------------------------------------------
1458 # Check whether the given linker option works
1459 AC_DEFUN([_LT_LINKER_OPTION],
1460 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1461 m4_require([_LT_DECL_SED])dnl
1462 AC_CACHE_CHECK([$1], [$2],
1464 save_LDFLAGS="$LDFLAGS"
1465 LDFLAGS="$LDFLAGS $3"
1466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1468 # The linker can only warn and ignore the option if not recognized
1469 # So say no if there are warnings
1470 if test -s conftest.err; then
1471 # Append any errors to the config.log.
1472 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1473 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1475 if diff conftest.exp conftest.er2 >/dev/null; then
1483 LDFLAGS="$save_LDFLAGS"
1486 if test x"[$]$2" = xyes; then
1487 m4_if([$4], , :, [$4])
1489 m4_if([$5], , :, [$5])
1491 ])# _LT_LINKER_OPTION
1494 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1495 dnl aclocal-1.4 backwards compatibility:
1496 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1501 AC_DEFUN([LT_CMD_MAX_LEN],
1502 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1503 # find the maximum length of command line arguments
1504 AC_MSG_CHECKING([the maximum length of command line arguments])
1505 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1511 # On DJGPP, this test can blow up pretty badly due to problems in libc
1512 # (any single argument exceeding 2000 bytes causes a buffer overrun
1513 # during glob expansion). Even if it were fixed, the result of this
1514 # check would be larger than it should be.
1515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1519 # Under GNU Hurd, this test is not required because there is
1520 # no limit to the length of command line arguments.
1521 # Libtool will interpret -1 as no limit whatsoever
1522 lt_cv_sys_max_cmd_len=-1;
1525 cygwin* | mingw* | cegcc*)
1526 # On Win9x/ME, this test blows up -- it succeeds, but takes
1527 # about 5 minutes as the teststring grows exponentially.
1528 # Worse, since 9x/ME are not pre-emptively multitasking,
1529 # you end up with a "frozen" computer, even though with patience
1530 # the test eventually succeeds (with a max line length of 256k).
1531 # Instead, let's just punt: use the minimum linelength reported by
1532 # all of the supported platforms: 8192 (on NT/2K/XP).
1533 lt_cv_sys_max_cmd_len=8192;
1537 # On AmigaOS with pdksh, this test takes hours, literally.
1538 # So we just punt and use a minimum line length of 8192.
1539 lt_cv_sys_max_cmd_len=8192;
1542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1543 # This has been around since 386BSD, at least. Likely further.
1544 if test -x /sbin/sysctl; then
1545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1546 elif test -x /usr/sbin/sysctl; then
1547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1551 # And add a safety zone
1552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1558 lt_cv_sys_max_cmd_len=196608
1562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1564 # nice to cause kernel panics so lets avoid the loop below.
1565 # First set a reasonable default.
1566 lt_cv_sys_max_cmd_len=16384
1568 if test -x /sbin/sysconfig; then
1569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1570 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1575 lt_cv_sys_max_cmd_len=102400
1577 sysv5* | sco5v6* | sysv4.2uw2*)
1578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1579 if test -n "$kargmax"; then
1580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1582 lt_cv_sys_max_cmd_len=32768
1586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1587 if test -n "$lt_cv_sys_max_cmd_len"; then
1588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1591 # Make teststring a little bigger before we do anything with it.
1592 # a 1K string should be a reasonable start.
1593 for i in 1 2 3 4 5 6 7 8 ; do
1594 teststring=$teststring$teststring
1596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1597 # If test is not a shell built-in, we'll probably end up computing a
1598 # maximum length that is only half of the actual maximum length, but
1600 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1601 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1602 test $i != 17 # 1/2 MB should be enough
1605 teststring=$teststring$teststring
1607 # Only check the string length outside the loop.
1608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1610 # Add a significant safety factor because C++ compilers can tack on
1611 # massive amounts of additional arguments before passing them to the
1612 # linker. It appears as though 1/2 is a usable value.
1613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1618 if test -n $lt_cv_sys_max_cmd_len ; then
1619 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1623 max_cmd_len=$lt_cv_sys_max_cmd_len
1624 _LT_DECL([], [max_cmd_len], [0],
1625 [What is the maximum length of a command?])
1629 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1630 dnl aclocal-1.4 backwards compatibility:
1631 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1636 m4_defun([_LT_HEADER_DLFCN],
1637 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1638 ])# _LT_HEADER_DLFCN
1641 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1642 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1643 # ----------------------------------------------------------------
1644 m4_defun([_LT_TRY_DLOPEN_SELF],
1645 [m4_require([_LT_HEADER_DLFCN])dnl
1646 if test "$cross_compiling" = yes; then :
1649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1650 lt_status=$lt_dlunknown
1651 cat > conftest.$ac_ext <<_LT_EOF
1652 [#line __oline__ "configure"
1653 #include "confdefs.h"
1662 # define LT_DLGLOBAL RTLD_GLOBAL
1665 # define LT_DLGLOBAL DL_GLOBAL
1667 # define LT_DLGLOBAL 0
1671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1672 find out it does not work in some platform. */
1673 #ifndef LT_DLLAZY_OR_NOW
1675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1678 # define LT_DLLAZY_OR_NOW DL_LAZY
1681 # define LT_DLLAZY_OR_NOW RTLD_NOW
1684 # define LT_DLLAZY_OR_NOW DL_NOW
1686 # define LT_DLLAZY_OR_NOW 0
1693 void fnord() { int i=42;}
1696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1697 int status = $lt_dlunknown;
1701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1703 /* dlclose (self); */
1711 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1712 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1715 x$lt_dlno_uscore) $1 ;;
1716 x$lt_dlneed_uscore) $2 ;;
1717 x$lt_dlunknown|x*) $3 ;;
1720 # compilation failed
1725 ])# _LT_TRY_DLOPEN_SELF
1728 # LT_SYS_DLOPEN_SELF
1729 # ------------------
1730 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1731 [m4_require([_LT_HEADER_DLFCN])dnl
1732 if test "x$enable_dlopen" != xyes; then
1733 enable_dlopen=unknown
1734 enable_dlopen_self=unknown
1735 enable_dlopen_self_static=unknown
1742 lt_cv_dlopen="load_add_on"
1744 lt_cv_dlopen_self=yes
1747 mingw* | pw32* | cegcc*)
1748 lt_cv_dlopen="LoadLibrary"
1753 lt_cv_dlopen="dlopen"
1758 # if libdl is installed we need to link against it
1759 AC_CHECK_LIB([dl], [dlopen],
1760 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1763 lt_cv_dlopen_self=yes
1768 AC_CHECK_FUNC([shl_load],
1769 [lt_cv_dlopen="shl_load"],
1770 [AC_CHECK_LIB([dld], [shl_load],
1771 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1772 [AC_CHECK_FUNC([dlopen],
1773 [lt_cv_dlopen="dlopen"],
1774 [AC_CHECK_LIB([dl], [dlopen],
1775 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1776 [AC_CHECK_LIB([svld], [dlopen],
1777 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1778 [AC_CHECK_LIB([dld], [dld_link],
1779 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1788 if test "x$lt_cv_dlopen" != xno; then
1794 case $lt_cv_dlopen in
1796 save_CPPFLAGS="$CPPFLAGS"
1797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1799 save_LDFLAGS="$LDFLAGS"
1800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1803 LIBS="$lt_cv_dlopen_libs $LIBS"
1805 AC_CACHE_CHECK([whether a program can dlopen itself],
1806 lt_cv_dlopen_self, [dnl
1807 _LT_TRY_DLOPEN_SELF(
1808 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1809 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1812 if test "x$lt_cv_dlopen_self" = xyes; then
1813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1814 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1815 lt_cv_dlopen_self_static, [dnl
1816 _LT_TRY_DLOPEN_SELF(
1817 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1818 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1822 CPPFLAGS="$save_CPPFLAGS"
1823 LDFLAGS="$save_LDFLAGS"
1828 case $lt_cv_dlopen_self in
1829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1830 *) enable_dlopen_self=unknown ;;
1833 case $lt_cv_dlopen_self_static in
1834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1835 *) enable_dlopen_self_static=unknown ;;
1838 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1839 [Whether dlopen is supported])
1840 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1841 [Whether dlopen of programs is supported])
1842 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1843 [Whether dlopen of statically linked programs is supported])
1844 ])# LT_SYS_DLOPEN_SELF
1847 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1848 dnl aclocal-1.4 backwards compatibility:
1849 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1852 # _LT_COMPILER_C_O([TAGNAME])
1853 # ---------------------------
1854 # Check to see if options -c and -o are simultaneously supported by compiler.
1855 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1856 m4_defun([_LT_COMPILER_C_O],
1857 [m4_require([_LT_DECL_SED])dnl
1858 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1859 m4_require([_LT_TAG_COMPILER])dnl
1860 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1861 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1862 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1863 $RM -r conftest 2>/dev/null
1867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1869 lt_compiler_flag="-o out/conftest2.$ac_objext"
1870 # Insert the option either (1) after the last *FLAGS variable, or
1871 # (2) before a word containing "conftest.", or (3) at the end.
1872 # Note that $ac_compile itself does not contain backslashes and begins
1873 # with a dollar sign (not a hyphen), so the echo should work correctly.
1874 lt_compile=`echo "$ac_compile" | $SED \
1875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1876 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1877 -e 's:$: $lt_compiler_flag:'`
1878 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1879 (eval "$lt_compile" 2>out/conftest.err)
1881 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1882 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1885 # The compiler can only warn and ignore the option if not recognized
1886 # So say no if there are warnings
1887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1890 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1893 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1895 # SGI C++ compiler will create directory out/ii_files/ for
1896 # template instantiation
1897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1898 $RM out/* && rmdir out
1903 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1904 [Does compiler simultaneously support -c and -o options?])
1905 ])# _LT_COMPILER_C_O
1908 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1909 # ----------------------------------
1910 # Check to see if we can do hard links to lock some files if needed
1911 m4_defun([_LT_COMPILER_FILE_LOCKS],
1912 [m4_require([_LT_ENABLE_LOCK])dnl
1913 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1914 _LT_COMPILER_C_O([$1])
1916 hard_links="nottested"
1917 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1918 # do not overwrite the value of need_locks provided by the user
1919 AC_MSG_CHECKING([if we can lock with hard links])
1922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1924 ln conftest.a conftest.b 2>&5 || hard_links=no
1925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1926 AC_MSG_RESULT([$hard_links])
1927 if test "$hard_links" = no; then
1928 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1934 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1935 ])# _LT_COMPILER_FILE_LOCKS
1940 m4_defun([_LT_CHECK_OBJDIR],
1941 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1942 [rm -f .libs 2>/dev/null
1943 mkdir .libs 2>/dev/null
1944 if test -d .libs; then
1947 # MS-DOS does not allow filenames that begin with a dot.
1950 rmdir .libs 2>/dev/null])
1951 objdir=$lt_cv_objdir
1952 _LT_DECL([], [objdir], [0],
1953 [The name of the directory that contains temporary libtool files])dnl
1954 m4_pattern_allow([LT_OBJDIR])dnl
1955 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1956 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1957 ])# _LT_CHECK_OBJDIR
1960 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1961 # --------------------------------------
1962 # Check hardcoding attributes.
1963 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1964 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1965 _LT_TAGVAR(hardcode_action, $1)=
1966 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1967 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1968 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1970 # We can hardcode non-existent directories.
1971 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1973 # have to relink, otherwise we might link with an installed library
1974 # when we should be linking with a yet-to-be-installed one
1975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1976 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1977 # Linking always hardcodes the temporary library directory.
1978 _LT_TAGVAR(hardcode_action, $1)=relink
1980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1981 _LT_TAGVAR(hardcode_action, $1)=immediate
1984 # We cannot hardcode anything, or else we can only hardcode existing
1986 _LT_TAGVAR(hardcode_action, $1)=unsupported
1988 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1990 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1991 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1992 # Fast installation is not supported
1993 enable_fast_install=no
1994 elif test "$shlibpath_overrides_runpath" = yes ||
1995 test "$enable_shared" = no; then
1996 # Fast installation is not necessary
1997 enable_fast_install=needless
1999 _LT_TAGDECL([], [hardcode_action], [0],
2000 [How to hardcode a shared library path into an executable])
2001 ])# _LT_LINKER_HARDCODE_LIBPATH
2006 m4_defun([_LT_CMD_STRIPLIB],
2007 [m4_require([_LT_DECL_EGREP])
2010 AC_MSG_CHECKING([whether stripping libraries is possible])
2011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2014 AC_MSG_RESULT([yes])
2016 # FIXME - insert some real tests, host_os isn't really good enough
2019 if test -n "$STRIP" ; then
2020 striplib="$STRIP -x"
2021 old_striplib="$STRIP -S"
2022 AC_MSG_RESULT([yes])
2032 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2033 _LT_DECL([], [striplib], [1])
2034 ])# _LT_CMD_STRIPLIB
2037 # _LT_SYS_DYNAMIC_LINKER([TAG])
2038 # -----------------------------
2039 # PORTME Fill in your ld.so characteristics
2040 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2041 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2042 m4_require([_LT_DECL_EGREP])dnl
2043 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2044 m4_require([_LT_DECL_OBJDUMP])dnl
2045 m4_require([_LT_DECL_SED])dnl
2046 AC_MSG_CHECKING([dynamic linker characteristics])
2049 if test "$GCC" = yes; then
2051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2052 *) lt_awk_arg="/^libraries:/" ;;
2054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2055 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2056 # if the path contains ";" then we assume it to be the separator
2057 # otherwise default to the standard path separator (i.e. ":") - it is
2058 # assumed that no part of a normal pathname contains ";" but that should
2059 # okay in the real world where ";" in dirpaths is itself problematic.
2060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2064 # Ok, now we have the path, separated by spaces, we can step through it
2065 # and add multilib dir if necessary.
2066 lt_tmp_lt_search_path_spec=
2067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2068 for lt_sys_path in $lt_search_path_spec; do
2069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2072 test -d "$lt_sys_path" && \
2073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2076 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2077 BEGIN {RS=" "; FS="/|\n";} {
2080 for (lt_i = NF; lt_i > 0; lt_i--) {
2081 if ($lt_i != "" && $lt_i != ".") {
2082 if ($lt_i == "..") {
2085 if (lt_count == 0) {
2086 lt_foo="/" $lt_i lt_foo;
2093 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2094 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2096 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2101 libname_spec='lib$name'
2109 shlibpath_overrides_runpath=unknown
2111 dynamic_linker="$host_os ld.so"
2112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2113 need_lib_prefix=unknown
2114 hardcode_into_libs=no
2116 # when you set need_version to no, make sure it does not cause -set_version
2117 # flags to be left without arguments
2118 need_version=unknown
2123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2124 shlibpath_var=LIBPATH
2126 # AIX 3 has no versioning support, so we append a major version to the name.
2127 soname_spec='${libname}${release}${shared_ext}$major'
2134 hardcode_into_libs=yes
2135 if test "$host_cpu" = ia64; then
2136 # AIX 5 supports IA64
2137 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2138 shlibpath_var=LD_LIBRARY_PATH
2140 # With GCC up to 2.95.x, collect2 would create an import file
2141 # for dependence libraries. The import file would start with
2142 # the line `#! .'. This would cause the generated library to
2143 # depend on `.', always an invalid library. This was fixed in
2144 # development snapshots of GCC prior to 3.0.
2146 aix4 | aix4.[[01]] | aix4.[[01]].*)
2147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2156 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2157 # soname into executable. Probably we can add versioning support to
2158 # collect2, so additional links can be useful in future.
2159 if test "$aix_use_runtimelinking" = yes; then
2160 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2161 # instead of lib<name>.a to let people know that these are not
2162 # typical AIX shared libraries.
2163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2165 # We preserve .a as extension for shared libraries through AIX4.2
2166 # and later when we are not doing run time linking.
2167 library_names_spec='${libname}${release}.a $libname.a'
2168 soname_spec='${libname}${release}${shared_ext}$major'
2170 shlibpath_var=LIBPATH
2177 # Since July 2007 AmigaOS4 officially supports .so libraries.
2178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2182 library_names_spec='$libname.ixlibrary $libname.a'
2183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2184 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
2190 library_names_spec='${libname}${shared_ext}'
2191 dynamic_linker="$host_os ld.so"
2192 shlibpath_var=LIBRARY_PATH
2198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2199 soname_spec='${libname}${release}${shared_ext}$major'
2200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2201 shlibpath_var=LD_LIBRARY_PATH
2202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2204 # the default ld.so.conf also contains /usr/contrib/lib and
2205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2206 # libtool to hard-code these into programs
2209 cygwin* | mingw* | pw32* | cegcc*)
2210 version_type=windows
2215 case $GCC,$host_os in
2216 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2217 library_names_spec='$libname.dll.a'
2218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2219 postinstall_cmds='base_file=`basename \${file}`~
2220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2221 dldir=$destdir/`dirname \$dlpath`~
2222 test -d \$dldir || mkdir -p \$dldir~
2223 $install_prog $dir/$dlname \$dldir/$dlname~
2224 chmod a+x \$dldir/$dlname~
2225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2229 dlpath=$dir/\$dldll~
2231 shlibpath_overrides_runpath=yes
2235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2240 # MinGW DLLs use traditional 'lib' prefix
2241 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2242 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2243 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2244 # It is most probably a Windows format PATH printed by
2245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2246 # path with ; separators, and with drive letters. We can handle the
2247 # drive letters (cygwin fileutils understands them), so leave them,
2248 # especially as we might pass files found there to a mingw objdump,
2249 # which wouldn't understand a cygwinified path. Ahh.
2250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2256 # pw32 DLLs use 'pw' prefix rather than 'lib'
2257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2266 dynamic_linker='Win32 ld.exe'
2267 # FIXME: first we should search . and the directory the executable is in
2271 darwin* | rhapsody*)
2272 dynamic_linker="$host_os dyld"
2276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2277 soname_spec='${libname}${release}${major}$shared_ext'
2278 shlibpath_overrides_runpath=yes
2279 shlibpath_var=DYLD_LIBRARY_PATH
2280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2291 soname_spec='${libname}${release}${shared_ext}$major'
2292 shlibpath_var=LD_LIBRARY_PATH
2299 freebsd* | dragonfly*)
2300 # DragonFly does not have aout. When/if they implement a new
2301 # versioning mechanism, adjust this.
2302 if test -x /usr/bin/objformat; then
2303 objformat=`/usr/bin/objformat`
2306 freebsd[[123]]*) objformat=aout ;;
2310 version_type=freebsd-$objformat
2311 case $version_type in
2313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2322 shlibpath_var=LD_LIBRARY_PATH
2325 shlibpath_overrides_runpath=yes
2327 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2328 shlibpath_overrides_runpath=yes
2329 hardcode_into_libs=yes
2331 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2332 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2333 shlibpath_overrides_runpath=no
2334 hardcode_into_libs=yes
2336 *) # from 4.6 on, and DragonFly
2337 shlibpath_overrides_runpath=yes
2338 hardcode_into_libs=yes
2347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2348 soname_spec='${libname}${release}${shared_ext}$major'
2349 shlibpath_var=LD_LIBRARY_PATH
2350 hardcode_into_libs=yes
2353 hpux9* | hpux10* | hpux11*)
2354 # Give a soname corresponding to the major version so that dld.sl refuses to
2355 # link against other versions.
2362 hardcode_into_libs=yes
2363 dynamic_linker="$host_os dld.so"
2364 shlibpath_var=LD_LIBRARY_PATH
2365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2367 soname_spec='${libname}${release}${shared_ext}$major'
2368 if test "X$HPUX_IA64_MODE" = X32; then
2369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2377 hardcode_into_libs=yes
2378 dynamic_linker="$host_os dld.sl"
2379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2382 soname_spec='${libname}${release}${shared_ext}$major'
2383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2388 dynamic_linker="$host_os dld.sl"
2389 shlibpath_var=SHLIB_PATH
2390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2392 soname_spec='${libname}${release}${shared_ext}$major'
2395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2396 postinstall_cmds='chmod 555 $lib'
2403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2404 soname_spec='${libname}${release}${shared_ext}$major'
2405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2406 shlibpath_var=LD_LIBRARY_PATH
2407 shlibpath_overrides_runpath=no
2408 hardcode_into_libs=yes
2411 irix5* | irix6* | nonstopux*)
2413 nonstopux*) version_type=nonstopux ;;
2415 if test "$lt_cv_prog_gnu_ld" = yes; then
2423 soname_spec='${libname}${release}${shared_ext}$major'
2424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2426 irix5* | nonstopux*)
2430 case $LD in # libtool.m4 will add one of these switches to LD
2431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2432 libsuff= shlibsuff= libmagic=32-bit;;
2433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2434 libsuff=32 shlibsuff=N32 libmagic=N32;;
2435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2437 *) libsuff= shlibsuff= libmagic=never-match;;
2441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2442 shlibpath_overrides_runpath=no
2443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2445 hardcode_into_libs=yes
2448 # No shared lib support for Linux oldld, aout, or coff.
2449 linux*oldld* | linux*aout* | linux*coff*)
2453 # This must be Linux ELF.
2454 linux* | k*bsd*-gnu)
2458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2459 soname_spec='${libname}${release}${shared_ext}$major'
2460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2461 shlibpath_var=LD_LIBRARY_PATH
2462 shlibpath_overrides_runpath=no
2463 # Some binutils ld are patched to set DT_RUNPATH
2464 save_LDFLAGS=$LDFLAGS
2466 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2467 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2468 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2469 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2470 [shlibpath_overrides_runpath=yes])])
2471 LDFLAGS=$save_LDFLAGS
2474 # This implies no fast_install, which is unacceptable.
2475 # Some rework will be needed to allow for fast_install
2476 # before this can be enabled.
2477 hardcode_into_libs=yes
2479 # Append ld.so.conf contents to the search path
2480 if test -f /etc/ld.so.conf; then
2481 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;/^$/d' | tr '\n' ' '`
2482 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2485 # We used to test for /lib/ld.so.1 and disable shared libraries on
2486 # powerpc, because MkLinux only supported shared libraries with the
2487 # GNU dynamic linker. Since this was broken with cross compilers,
2488 # most powerpc-linux boxes support dynamic linking these days and
2489 # people can always --disable-shared, the test was removed, and we
2490 # assume the GNU/Linux dynamic linker is in use.
2491 dynamic_linker='GNU/Linux ld.so'
2498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2501 dynamic_linker='NetBSD (a.out) ld.so'
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2504 soname_spec='${libname}${release}${shared_ext}$major'
2505 dynamic_linker='NetBSD ld.elf_so'
2507 shlibpath_var=LD_LIBRARY_PATH
2508 shlibpath_overrides_runpath=yes
2509 hardcode_into_libs=yes
2514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2515 shlibpath_var=LD_LIBRARY_PATH
2516 shlibpath_overrides_runpath=yes
2523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2524 soname_spec='${libname}${release}${shared_ext}$major'
2525 shlibpath_var=LD_LIBRARY_PATH
2526 shlibpath_overrides_runpath=no
2527 hardcode_into_libs=yes
2528 dynamic_linker='ldqnx.so'
2533 sys_lib_dlsearch_path_spec="/usr/lib"
2535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2538 *) need_version=no ;;
2540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2542 shlibpath_var=LD_LIBRARY_PATH
2543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2545 openbsd2.[[89]] | openbsd2.[[89]].*)
2546 shlibpath_overrides_runpath=no
2549 shlibpath_overrides_runpath=yes
2553 shlibpath_overrides_runpath=yes
2558 libname_spec='$name'
2561 library_names_spec='$libname${shared_ext} $libname.a'
2562 dynamic_linker='OS/2 ld.exe'
2563 shlibpath_var=LIBPATH
2566 osf3* | osf4* | osf5*)
2570 soname_spec='${libname}${release}${shared_ext}$major'
2571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2572 shlibpath_var=LD_LIBRARY_PATH
2573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2586 soname_spec='${libname}${release}${shared_ext}$major'
2587 shlibpath_var=LD_LIBRARY_PATH
2588 shlibpath_overrides_runpath=yes
2589 hardcode_into_libs=yes
2590 # ldd complains unless libraries are executable
2591 postinstall_cmds='chmod +x $lib'
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2598 shlibpath_var=LD_LIBRARY_PATH
2599 shlibpath_overrides_runpath=yes
2600 if test "$with_gnu_ld" = yes; then
2608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2609 soname_spec='${libname}${release}${shared_ext}$major'
2610 shlibpath_var=LD_LIBRARY_PATH
2611 case $host_vendor in
2613 shlibpath_overrides_runpath=no
2615 runpath_var=LD_RUN_PATH
2623 shlibpath_overrides_runpath=no
2624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2630 if test -d /usr/nec ;then
2632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2633 soname_spec='$libname${shared_ext}.$major'
2634 shlibpath_var=LD_LIBRARY_PATH
2638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2639 version_type=freebsd-elf
2642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2643 soname_spec='${libname}${release}${shared_ext}$major'
2644 shlibpath_var=LD_LIBRARY_PATH
2645 shlibpath_overrides_runpath=yes
2646 hardcode_into_libs=yes
2647 if test "$with_gnu_ld" = yes; then
2648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2657 sys_lib_dlsearch_path_spec='/usr/lib'
2661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2666 shlibpath_var=LD_LIBRARY_PATH
2667 shlibpath_overrides_runpath=no
2668 hardcode_into_libs=yes
2673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2674 soname_spec='${libname}${release}${shared_ext}$major'
2675 shlibpath_var=LD_LIBRARY_PATH
2682 AC_MSG_RESULT([$dynamic_linker])
2683 test "$dynamic_linker" = no && can_build_shared=no
2685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2686 if test "$GCC" = yes; then
2687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2690 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2691 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2693 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2697 _LT_DECL([], [variables_saved_for_relink], [1],
2698 [Variables whose values should be saved in libtool wrapper scripts and
2699 restored at link time])
2700 _LT_DECL([], [need_lib_prefix], [0],
2701 [Do we need the "lib" prefix for modules?])
2702 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2703 _LT_DECL([], [version_type], [0], [Library versioning type])
2704 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2705 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2706 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2707 [Is shlibpath searched before the hard-coded library search path?])
2708 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2709 _LT_DECL([], [library_names_spec], [1],
2710 [[List of archive names. First name is the real one, the rest are links.
2711 The last name is the one that the linker finds with -lNAME]])
2712 _LT_DECL([], [soname_spec], [1],
2713 [[The coded name of the library, if different from the real name]])
2714 _LT_DECL([], [postinstall_cmds], [2],
2715 [Command to use after installation of a shared archive])
2716 _LT_DECL([], [postuninstall_cmds], [2],
2717 [Command to use after uninstallation of a shared archive])
2718 _LT_DECL([], [finish_cmds], [2],
2719 [Commands used to finish a libtool library installation in a directory])
2720 _LT_DECL([], [finish_eval], [1],
2721 [[As "finish_cmds", except a single script fragment to be evaled but
2723 _LT_DECL([], [hardcode_into_libs], [0],
2724 [Whether we should hardcode library paths into libraries])
2725 _LT_DECL([], [sys_lib_search_path_spec], [2],
2726 [Compile-time system search path for libraries])
2727 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2728 [Run-time system search path for libraries])
2729 ])# _LT_SYS_DYNAMIC_LINKER
2732 # _LT_PATH_TOOL_PREFIX(TOOL)
2733 # --------------------------
2734 # find a file program which can recognize shared library
2735 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2736 [m4_require([_LT_DECL_EGREP])dnl
2737 AC_MSG_CHECKING([for $1])
2738 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2740 [[\\/*] | ?:[\\/]*])
2741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2744 lt_save_MAGIC_CMD="$MAGIC_CMD"
2745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2746 dnl $ac_dummy forces splitting on constant user-supplied paths.
2747 dnl POSIX.2 word splitting is done only on the output of word expansions,
2748 dnl not every word. This closes a longstanding sh security hole.
2749 ac_dummy="m4_if([$2], , $PATH, [$2])"
2750 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 if test -f $ac_dir/$1; then
2754 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2755 if test -n "$file_magic_test_file"; then
2756 case $deplibs_check_method in
2758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2761 $EGREP "$file_magic_regex" > /dev/null; then
2766 *** Warning: the command libtool uses to detect shared libraries,
2767 *** $file_magic_cmd, produces output that libtool cannot recognize.
2768 *** The result is that libtool may fail to recognize shared libraries
2769 *** as such. This will affect the creation of libtool libraries that
2770 *** depend on shared libraries, but programs linked with such libtool
2771 *** libraries will work regardless of this problem. Nevertheless, you
2772 *** may want to report the problem to your system manager and/or to
2773 *** bug-libtool@gnu.org
2783 MAGIC_CMD="$lt_save_MAGIC_CMD"
2786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2787 if test -n "$MAGIC_CMD"; then
2788 AC_MSG_RESULT($MAGIC_CMD)
2792 _LT_DECL([], [MAGIC_CMD], [0],
2793 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2794 ])# _LT_PATH_TOOL_PREFIX
2797 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2798 dnl aclocal-1.4 backwards compatibility:
2799 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2804 # find a file program which can recognize a shared library
2805 m4_defun([_LT_PATH_MAGIC],
2806 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2807 if test -z "$lt_cv_path_MAGIC_CMD"; then
2808 if test -n "$ac_tool_prefix"; then
2809 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2819 # find the pathname to the GNU or non-GNU linker
2820 AC_DEFUN([LT_PATH_LD],
2821 [AC_REQUIRE([AC_PROG_CC])dnl
2822 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2823 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2824 m4_require([_LT_DECL_SED])dnl
2825 m4_require([_LT_DECL_EGREP])dnl
2827 AC_ARG_WITH([gnu-ld],
2828 [AS_HELP_STRING([--with-gnu-ld],
2829 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2830 [test "$withval" = no || with_gnu_ld=yes],
2831 [with_gnu_ld=no])dnl
2834 if test "$GCC" = yes; then
2835 # Check if gcc -print-prog-name=ld gives a path.
2836 AC_MSG_CHECKING([for ld used by $CC])
2839 # gcc leaves a trailing carriage return which upsets mingw
2840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2845 # Accept absolute paths.
2846 [[\\/]]* | ?:[[\\/]]*)
2847 re_direlt='/[[^/]][[^/]]*/\.\./'
2848 # Canonicalize the pathname of ld
2849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2853 test -z "$LD" && LD="$ac_prog"
2856 # If it fails, then pretend we aren't using GCC.
2860 # If it is relative, then search for the first ld in PATH.
2864 elif test "$with_gnu_ld" = yes; then
2865 AC_MSG_CHECKING([for GNU ld])
2867 AC_MSG_CHECKING([for non-GNU ld])
2869 AC_CACHE_VAL(lt_cv_path_LD,
2870 [if test -z "$LD"; then
2871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2872 for ac_dir in $PATH; do
2874 test -z "$ac_dir" && ac_dir=.
2875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2876 lt_cv_path_LD="$ac_dir/$ac_prog"
2877 # Check to see if the program is GNU ld. I'd rather use --version,
2878 # but apparently some variants of GNU ld only accept -v.
2879 # Break only if it was the GNU/non-GNU ld that we prefer.
2880 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2881 *GNU* | *'with BFD'*)
2882 test "$with_gnu_ld" != no && break
2885 test "$with_gnu_ld" != yes && break
2892 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2895 if test -n "$LD"; then
2900 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2904 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2908 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2909 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2910 dnl aclocal-1.4 backwards compatibility:
2911 dnl AC_DEFUN([AM_PROG_LD], [])
2912 dnl AC_DEFUN([AC_PROG_LD], [])
2917 m4_defun([_LT_PATH_LD_GNU],
2918 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2919 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2920 case `$LD -v 2>&1 </dev/null` in
2921 *GNU* | *'with BFD'*)
2922 lt_cv_prog_gnu_ld=yes
2925 lt_cv_prog_gnu_ld=no
2928 with_gnu_ld=$lt_cv_prog_gnu_ld
2934 # find reload flag for linker
2935 # -- PORTME Some linkers may need a different reload flag.
2936 m4_defun([_LT_CMD_RELOAD],
2937 [AC_CACHE_CHECK([for $LD option to reload object files],
2938 lt_cv_ld_reload_flag,
2939 [lt_cv_ld_reload_flag='-r'])
2940 reload_flag=$lt_cv_ld_reload_flag
2941 case $reload_flag in
2943 *) reload_flag=" $reload_flag" ;;
2945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2948 if test "$GCC" = yes; then
2949 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2955 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2956 _LT_DECL([], [reload_cmds], [2])dnl
2960 # _LT_CHECK_MAGIC_METHOD
2961 # ----------------------
2962 # how to check for library dependencies
2963 # -- PORTME fill in with the dynamic library characteristics
2964 m4_defun([_LT_CHECK_MAGIC_METHOD],
2965 [m4_require([_LT_DECL_EGREP])
2966 m4_require([_LT_DECL_OBJDUMP])
2967 AC_CACHE_CHECK([how to recognize dependent libraries],
2968 lt_cv_deplibs_check_method,
2969 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2970 lt_cv_file_magic_test_file=
2971 lt_cv_deplibs_check_method='unknown'
2972 # Need to set the preceding variable on all platforms that support
2973 # interlibrary dependencies.
2974 # 'none' -- dependencies not supported.
2975 # `unknown' -- same as none, but documents that we really don't know.
2976 # 'pass_all' -- all dependencies passed with no checks.
2977 # 'test_compile' -- check by making test program.
2978 # 'file_magic [[regex]]' -- check by looking for files in library path
2979 # which responds to the $file_magic_cmd with a given extended regex.
2980 # If you have `file' or equivalent on your system and you're not sure
2981 # whether `pass_all' will *always* work, you probably want this one.
2985 lt_cv_deplibs_check_method=pass_all
2989 lt_cv_deplibs_check_method=pass_all
2993 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2994 lt_cv_file_magic_cmd='/usr/bin/file -L'
2995 lt_cv_file_magic_test_file=/shlib/libc.so
2999 # func_win32_libid is a shell function defined in ltmain.sh
3000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3001 lt_cv_file_magic_cmd='func_win32_libid'
3005 # Base MSYS/MinGW do not provide the 'file' command needed by
3006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3007 # unless we find 'file', for example because we are cross-compiling.
3008 if ( file / ) >/dev/null 2>&1; then
3009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3010 lt_cv_file_magic_cmd='func_win32_libid'
3012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3013 lt_cv_file_magic_cmd='$OBJDUMP -f'
3018 # use the weaker test based on 'objdump'. See mingw*.
3019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3020 lt_cv_file_magic_cmd='$OBJDUMP -f'
3023 darwin* | rhapsody*)
3024 lt_cv_deplibs_check_method=pass_all
3027 freebsd* | dragonfly*)
3028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3031 # Not sure whether the presence of OpenBSD here was a mistake.
3032 # Let's accept both of them until this is cleared up.
3033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3034 lt_cv_file_magic_cmd=/usr/bin/file
3035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3039 lt_cv_deplibs_check_method=pass_all
3044 lt_cv_deplibs_check_method=pass_all
3047 hpux10.20* | hpux11*)
3048 lt_cv_file_magic_cmd=/usr/bin/file
3051 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3052 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3055 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3056 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3059 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3060 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3066 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3067 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3070 irix5* | irix6* | nonstopux*)
3072 *-32|*"-32 ") libmagic=32-bit;;
3073 *-n32|*"-n32 ") libmagic=N32;;
3074 *-64|*"-64 ") libmagic=64-bit;;
3075 *) libmagic=never-match;;
3077 lt_cv_deplibs_check_method=pass_all
3080 # This must be Linux ELF.
3081 linux* | k*bsd*-gnu)
3082 lt_cv_deplibs_check_method=pass_all
3086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3087 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3089 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3094 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3095 lt_cv_file_magic_cmd=/usr/bin/file
3096 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3100 lt_cv_deplibs_check_method=pass_all
3104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3105 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3107 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3111 osf3* | osf4* | osf5*)
3112 lt_cv_deplibs_check_method=pass_all
3116 lt_cv_deplibs_check_method=pass_all
3120 lt_cv_deplibs_check_method=pass_all
3123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3124 lt_cv_deplibs_check_method=pass_all
3128 case $host_vendor in
3130 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]]'
3131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3134 lt_cv_deplibs_check_method=pass_all
3137 lt_cv_file_magic_cmd='/bin/file'
3138 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3141 lt_cv_file_magic_cmd='/bin/file'
3142 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3143 lt_cv_file_magic_test_file=/lib/libc.so
3146 lt_cv_deplibs_check_method=pass_all
3149 lt_cv_deplibs_check_method=pass_all
3155 lt_cv_deplibs_check_method=pass_all
3159 file_magic_cmd=$lt_cv_file_magic_cmd
3160 deplibs_check_method=$lt_cv_deplibs_check_method
3161 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3163 _LT_DECL([], [deplibs_check_method], [1],
3164 [Method to check whether dependent libraries are shared objects])
3165 _LT_DECL([], [file_magic_cmd], [1],
3166 [Command to use when deplibs_check_method == "file_magic"])
3167 ])# _LT_CHECK_MAGIC_METHOD
3172 # find the pathname to a BSD- or MS-compatible name lister
3173 AC_DEFUN([LT_PATH_NM],
3174 [AC_REQUIRE([AC_PROG_CC])dnl
3175 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3176 [if test -n "$NM"; then
3177 # Let the user override the test.
3180 lt_nm_to_check="${ac_tool_prefix}nm"
3181 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3182 lt_nm_to_check="$lt_nm_to_check nm"
3184 for lt_tmp_nm in $lt_nm_to_check; do
3185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3186 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3188 test -z "$ac_dir" && ac_dir=.
3189 tmp_nm="$ac_dir/$lt_tmp_nm"
3190 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3191 # Check to see if the nm accepts a BSD-compat flag.
3192 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3193 # nm: unknown option "B" ignored
3194 # Tru64's nm complains that /dev/null is an invalid object file
3195 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3196 */dev/null* | *'Invalid file or object type'*)
3197 lt_cv_path_NM="$tmp_nm -B"
3201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3203 lt_cv_path_NM="$tmp_nm -p"
3207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3208 continue # so that we can try to find one that supports BSD flags
3217 : ${lt_cv_path_NM=no}
3219 if test "$lt_cv_path_NM" != "no"; then
3222 # Didn't find any BSD compatible name lister, look for dumpbin.
3223 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3225 if test "$DUMPBIN" != ":"; then
3229 test -z "$NM" && NM=nm
3231 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3233 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3234 [lt_cv_nm_interface="BSD nm"
3235 echo "int some_variable = 0;" > conftest.$ac_ext
3236 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3237 (eval "$ac_compile" 2>conftest.err)
3238 cat conftest.err >&AS_MESSAGE_LOG_FD
3239 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3241 cat conftest.err >&AS_MESSAGE_LOG_FD
3242 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3243 cat conftest.out >&AS_MESSAGE_LOG_FD
3244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3245 lt_cv_nm_interface="MS dumpbin"
3251 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3252 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3253 dnl aclocal-1.4 backwards compatibility:
3254 dnl AC_DEFUN([AM_PROG_NM], [])
3255 dnl AC_DEFUN([AC_PROG_NM], [])
3260 # check for math library
3261 AC_DEFUN([LT_LIB_M],
3262 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3265 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3266 # These system don't have libm, or don't need it
3269 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3270 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3273 AC_CHECK_LIB(m, cos, LIBM="-lm")
3280 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3281 dnl aclocal-1.4 backwards compatibility:
3282 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3285 # _LT_COMPILER_NO_RTTI([TAGNAME])
3286 # -------------------------------
3287 m4_defun([_LT_COMPILER_NO_RTTI],
3288 [m4_require([_LT_TAG_COMPILER])dnl
3290 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3292 if test "$GCC" = yes; then
3293 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3295 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3296 lt_cv_prog_compiler_rtti_exceptions,
3297 [-fno-rtti -fno-exceptions], [],
3298 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3300 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3301 [Compiler flag to turn off builtin functions])
3302 ])# _LT_COMPILER_NO_RTTI
3305 # _LT_CMD_GLOBAL_SYMBOLS
3306 # ----------------------
3307 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3308 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3309 AC_REQUIRE([AC_PROG_CC])dnl
3310 AC_REQUIRE([LT_PATH_NM])dnl
3311 AC_REQUIRE([LT_PATH_LD])dnl
3312 m4_require([_LT_DECL_SED])dnl
3313 m4_require([_LT_DECL_EGREP])dnl
3314 m4_require([_LT_TAG_COMPILER])dnl
3316 # Check for command to grab the raw symbol name followed by C symbol from nm.
3317 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3318 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3320 # These are sane defaults that work on at least a few old systems.
3321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3323 # Character class describing NM global symbol codes.
3324 symcode='[[BCDEGRST]]'
3326 # Regexp to match symbols that can be accessed directly from C.
3327 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3329 # Define system-specific variables.
3334 cygwin* | mingw* | pw32* | cegcc*)
3335 symcode='[[ABCDGISTW]]'
3338 if test "$host_cpu" = ia64; then
3339 symcode='[[ABCDEGRST]]'
3343 symcode='[[BCDEGRST]]'
3346 symcode='[[BCDEGQRST]]'
3357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3361 symcode='[[DFNSTU]]'
3365 # If we're using GNU nm, then use its standard symbol codes.
3366 case `$NM -V 2>&1` in
3367 *GNU* | *'with BFD'*)
3368 symcode='[[ABCDGIRSTW]]' ;;
3371 # Transform an extracted symbol line into a proper C declaration.
3372 # Some systems (esp. on ia64) link data and code symbols differently,
3373 # so use this general approach.
3374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3376 # Transform an extracted symbol line into symbol name and symbol address
3377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3378 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'"
3380 # Handle CRLF in mingw tool chain
3384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3388 # Try without a prefix underscore, then with it.
3389 for ac_symprfx in "" "_"; do
3391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3392 symxfrm="\\1 $ac_symprfx\\2 \\2"
3394 # Write the raw and C identifiers.
3395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3396 # Fake it for dumpbin and say T for any non-static function
3397 # and D for any global variable.
3398 # Also find C++ and __fastcall symbols from MSVC++,
3399 # which start with @ or ?.
3400 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3401 " {last_section=section; section=\$ 3};"\
3402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3403 " \$ 0!~/External *\|/{next};"\
3404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3405 " {if(hide[section]) next};"\
3406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3410 " ' prfx=^$ac_symprfx]"
3412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3415 # Check to see that the pipe works correctly.
3419 cat > conftest.$ac_ext <<_LT_EOF
3424 void nm_test_func(void);
3425 void nm_test_func(void){}
3429 int main(){nm_test_var='a';nm_test_func();return(0);}
3432 if AC_TRY_EVAL(ac_compile); then
3433 # Now try to grab the symbols.
3435 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3436 # Try sorting and uniquifying the output.
3437 if sort "$nlist" | uniq > "$nlist"T; then
3438 mv -f "$nlist"T "$nlist"
3443 # Make sure that we snagged all the symbols we need.
3444 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3445 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3446 cat <<_LT_EOF > conftest.$ac_ext
3452 # Now generate the symbol file.
3453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3455 cat <<_LT_EOF >> conftest.$ac_ext
3457 /* The mapping between symbol names and symbols. */
3462 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3464 { "@PROGRAM@", (void *) 0 },
3466 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3467 cat <<\_LT_EOF >> conftest.$ac_ext
3471 /* This works around a problem in FreeBSD linker */
3472 #ifdef FREEBSD_WORKAROUND
3473 static const void *lt_preloaded_setup() {
3474 return lt__PROGRAM__LTX_preloaded_symbols;
3482 # Now try linking the two files.
3483 mv conftest.$ac_objext conftstm.$ac_objext
3484 lt_save_LIBS="$LIBS"
3485 lt_save_CFLAGS="$CFLAGS"
3486 LIBS="conftstm.$ac_objext"
3487 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3488 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3491 LIBS="$lt_save_LIBS"
3492 CFLAGS="$lt_save_CFLAGS"
3494 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3497 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3500 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3503 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3504 cat conftest.$ac_ext >&5
3506 rm -rf conftest* conftst*
3508 # Do not use the global_symbol_pipe unless it works.
3509 if test "$pipe_works" = yes; then
3512 lt_cv_sys_global_symbol_pipe=
3516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3517 lt_cv_sys_global_symbol_to_cdecl=
3519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3520 AC_MSG_RESULT(failed)
3525 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3526 [Take the output of nm and produce a listing of raw symbols and C names])
3527 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3528 [Transform the output of nm in a proper C declaration])
3529 _LT_DECL([global_symbol_to_c_name_address],
3530 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3531 [Transform the output of nm in a C name address pair])
3532 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3533 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3534 [Transform the output of nm in a C name address pair when lib prefix is needed])
3535 ]) # _LT_CMD_GLOBAL_SYMBOLS
3538 # _LT_COMPILER_PIC([TAGNAME])
3539 # ---------------------------
3540 m4_defun([_LT_COMPILER_PIC],
3541 [m4_require([_LT_TAG_COMPILER])dnl
3542 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3543 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3544 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3546 AC_MSG_CHECKING([for $compiler option to produce PIC])
3547 m4_if([$1], [CXX], [
3548 # C++ specific cases for pic, static, wl, etc.
3549 if test "$GXX" = yes; then
3550 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3551 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3555 # All AIX code is PIC.
3556 if test "$host_cpu" = ia64; then
3557 # AIX 5 now supports IA64 processor
3558 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3565 # see comment about AmigaOS4 .so support
3566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3569 # FIXME: we need at least 68020 code to build shared libraries, but
3570 # adding the `-m68020' flag to GCC prevents building anything better,
3572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3577 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3578 # PIC is the default for these OSes.
3580 mingw* | cygwin* | os2* | pw32* | cegcc*)
3581 # This hack is so that the source file can tell whether it is being
3582 # built for inclusion in a dll (and should export symbols for example).
3583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3584 # (--disable-auto-import) libraries
3585 m4_if([$1], [GCJ], [],
3586 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3588 darwin* | rhapsody*)
3589 # PIC is the default on this platform
3590 # Common symbols not allowed in MH_DYLIB files
3591 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3594 # DJGPP does not support shared libraries at all
3595 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3599 # Instead, we relocate shared libraries at runtime.
3602 if test -d /usr/nec; then
3603 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3609 # sets the default TLS model and affects inlining.
3614 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3619 # QNX uses GNU C++, but need to define -shared option too, otherwise
3621 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3630 # All AIX code is PIC.
3631 if test "$host_cpu" = ia64; then
3632 # AIX 5 now supports IA64 processor
3633 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3635 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3639 case $cc_basename in
3641 # Green Hills C++ Compiler
3642 # _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"
3647 case $cc_basename in
3649 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3652 # Green Hills C++ Compiler
3653 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3659 freebsd* | dragonfly*)
3660 # FreeBSD uses GNU C++
3662 hpux9* | hpux10* | hpux11*)
3663 case $cc_basename in
3665 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3666 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3667 if test "$host_cpu" != ia64; then
3668 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3672 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3673 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3679 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3688 # This is c89, which is MS Visual C++ (no shared libs)
3689 # Anyone wants to do a port?
3691 irix5* | irix6* | nonstopux*)
3692 case $cc_basename in
3694 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3695 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3696 # CC pic flag -KPIC is the default.
3702 linux* | k*bsd*-gnu)
3703 case $cc_basename in
3706 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3707 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3710 # old Intel C++ for x86_64 which still supported -KPIC.
3711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3713 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3716 # Intel C++, used to be incompatible with GCC.
3717 # ICC 10 doesn't accept -KPIC any more.
3718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3723 # Portland Group C++ compiler
3724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3730 # Make sure the PIC flag is empty. It appears that all Alpha
3731 # Linux and Compaq Tru64 Unix objects are PIC.
3732 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3733 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3737 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3742 case `$CC -V 2>&1 | sed 5q` in
3745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3747 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3758 case $cc_basename in
3760 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3769 # QNX uses GNU C++, but need to define -shared option too, otherwise
3771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3773 osf3* | osf4* | osf5*)
3774 case $cc_basename in
3776 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3779 # Rational C++ 2.4.1
3780 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3783 # Digital/Compaq C++
3784 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3785 # Make sure the PIC flag is empty. It appears that all Alpha
3786 # Linux and Compaq Tru64 Unix objects are PIC.
3787 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3788 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3797 case $cc_basename in
3799 # Sun C++ 4.2, 5.x and Centerline C++
3800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3801 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3802 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3805 # Green Hills C++ Compiler
3806 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3813 case $cc_basename in
3816 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3817 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3828 case $cc_basename in
3830 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3837 case $cc_basename in
3839 # NonStop-UX NCC 3.20
3840 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3849 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3855 if test "$GCC" = yes; then
3856 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3857 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3861 # All AIX code is PIC.
3862 if test "$host_cpu" = ia64; then
3863 # AIX 5 now supports IA64 processor
3864 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3871 # see comment about AmigaOS4 .so support
3872 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3875 # FIXME: we need at least 68020 code to build shared libraries, but
3876 # adding the `-m68020' flag to GCC prevents building anything better,
3878 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3884 # PIC is the default for these OSes.
3887 mingw* | cygwin* | pw32* | os2* | cegcc*)
3888 # This hack is so that the source file can tell whether it is being
3889 # built for inclusion in a dll (and should export symbols for example).
3890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3891 # (--disable-auto-import) libraries
3892 m4_if([$1], [GCJ], [],
3893 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3896 darwin* | rhapsody*)
3897 # PIC is the default on this platform
3898 # Common symbols not allowed in MH_DYLIB files
3899 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3903 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3904 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3905 # sets the default TLS model and affects inlining.
3911 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3918 # Instead, we relocate shared libraries at runtime.
3922 # Just because we use GCC doesn't mean we suddenly get shared libraries
3923 # on systems that don't support them.
3924 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3929 # QNX uses GNU C++, but need to define -shared option too, otherwise
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3935 if test -d /usr/nec; then
3936 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3941 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3945 # PORTME Check for flag to pass linker flags through the system compiler.
3948 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3949 if test "$host_cpu" = ia64; then
3950 # AIX 5 now supports IA64 processor
3951 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3953 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3957 mingw* | cygwin* | pw32* | os2* | cegcc*)
3958 # This hack is so that the source file can tell whether it is being
3959 # built for inclusion in a dll (and should export symbols for example).
3960 m4_if([$1], [GCJ], [],
3961 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3964 hpux9* | hpux10* | hpux11*)
3965 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3973 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3976 # Is there a better lt_prog_compiler_static that works with the bundled CC?
3977 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3980 irix5* | irix6* | nonstopux*)
3981 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3982 # PIC (with -KPIC) is the default.
3983 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3986 linux* | k*bsd*-gnu)
3987 case $cc_basename in
3988 # old Intel for x86_64 which still supported -KPIC.
3990 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3991 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3992 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3994 # icc used to be incompatible with GCC.
3995 # ICC 10 doesn't accept -KPIC any more.
3997 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3998 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3999 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4001 # Lahey Fortran 8.1.
4003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4005 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4007 pgcc* | pgf77* | pgf90* | pgf95*)
4008 # Portland Group compilers (*not* the Pentium gcc compiler,
4009 # which looks to be a dead project)
4010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4012 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4015 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4016 # All Alpha code is PIC.
4017 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4020 # IBM XL C 8.0/Fortran 10.1 on PPC
4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4022 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4023 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4026 case `$CC -V 2>&1 | sed 5q` in
4029 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4030 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4031 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4034 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4035 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4045 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4046 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4050 # QNX uses GNU C++, but need to define -shared option too, otherwise
4052 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4055 osf3* | osf4* | osf5*)
4056 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4057 # All OSF/1 code is PIC.
4058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4066 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4068 case $cc_basename in
4070 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4077 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4078 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4079 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4082 sysv4 | sysv4.2uw2* | sysv4.3*)
4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4084 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4085 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089 if test -d /usr/nec ;then
4090 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4096 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4097 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4098 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4102 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4103 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4108 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4112 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4118 # For platforms which do not support PIC, -DPIC is meaningless:
4120 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4123 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4126 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4127 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4128 [How to pass a linker flag through the compiler])
4131 # Check to make sure the PIC flag actually works.
4133 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4134 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4135 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4136 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4137 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4139 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4141 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4142 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4144 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4145 [Additional compiler flags for building library objects])
4148 # Check to make sure the static flag actually works.
4150 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4151 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4152 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4153 $lt_tmp_static_flag,
4155 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4156 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4157 [Compiler flag to prevent dynamic linking])
4158 ])# _LT_COMPILER_PIC
4161 # _LT_LINKER_SHLIBS([TAGNAME])
4162 # ----------------------------
4163 # See if the linker supports building shared libraries.
4164 m4_defun([_LT_LINKER_SHLIBS],
4165 [AC_REQUIRE([LT_PATH_LD])dnl
4166 AC_REQUIRE([LT_PATH_NM])dnl
4167 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4168 m4_require([_LT_DECL_EGREP])dnl
4169 m4_require([_LT_DECL_SED])dnl
4170 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4171 m4_require([_LT_TAG_COMPILER])dnl
4172 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4173 m4_if([$1], [CXX], [
4174 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4177 # If we're using GNU nm, then we don't want the "-C" option.
4178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4180 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4182 _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'
4186 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4188 cygwin* | mingw* | cegcc*)
4189 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4192 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4195 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4198 _LT_TAGVAR(allow_undefined_flag, $1)=
4199 _LT_TAGVAR(always_export_symbols, $1)=no
4200 _LT_TAGVAR(archive_cmds, $1)=
4201 _LT_TAGVAR(archive_expsym_cmds, $1)=
4202 _LT_TAGVAR(compiler_needs_object, $1)=no
4203 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4204 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4205 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4206 _LT_TAGVAR(hardcode_automatic, $1)=no
4207 _LT_TAGVAR(hardcode_direct, $1)=no
4208 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4210 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4211 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4212 _LT_TAGVAR(hardcode_minus_L, $1)=no
4213 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4214 _LT_TAGVAR(inherit_rpath, $1)=no
4215 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4216 _LT_TAGVAR(module_cmds, $1)=
4217 _LT_TAGVAR(module_expsym_cmds, $1)=
4218 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4219 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4220 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4221 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4222 # include_expsyms should be a list of space-separated symbols to be *always*
4223 # included in the symbol list
4224 _LT_TAGVAR(include_expsyms, $1)=
4225 # exclude_expsyms can be an extended regexp of symbols to exclude
4226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4228 # as well as any symbol that contains `d'.
4229 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4231 # platforms (ab)use it in PIC code, but their linkers get confused if
4232 # the symbol is explicitly referenced. Since portable code cannot
4233 # rely on this symbol name, it's probably fine to never include it in
4234 # preloaded symbol tables.
4235 # Exclude shared library initialization/finalization symbols.
4236 dnl Note also adjust exclude_expsyms for C++ above.
4237 extract_expsyms_cmds=
4240 cygwin* | mingw* | pw32* | cegcc*)
4241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4242 # When not using gcc, we currently assume that we are using
4243 # Microsoft Visual C++.
4244 if test "$GCC" != yes; then
4249 # we just hope/assume this is gcc and not c89 (= MSVC++)
4257 _LT_TAGVAR(ld_shlibs, $1)=yes
4258 if test "$with_gnu_ld" = yes; then
4259 # If archive_cmds runs LD, not CC, wlarc should be empty
4262 # Set some defaults for GNU ld with shared library support. These
4263 # are reset later if shared libraries are not supported. Putting them
4264 # here allows them to be overridden if necessary.
4265 runpath_var=LD_RUN_PATH
4266 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4267 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4268 # ancient GNU ld didn't support --whole-archive et. al.
4269 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4270 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4272 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4274 supports_anon_versioning=no
4275 case `$LD -v 2>&1` in
4276 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4279 *\ 2.11.*) ;; # other 2.11 versions
4280 *) supports_anon_versioning=yes ;;
4283 # See if GNU ld supports shared libraries.
4286 # On AIX/PPC, the GNU linker is very broken
4287 if test "$host_cpu" != ia64; then
4288 _LT_TAGVAR(ld_shlibs, $1)=no
4291 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4292 *** to be unable to reliably create shared libraries on AIX.
4293 *** Therefore, libtool is disabling shared libraries support. If you
4294 *** really care for shared libraries, you may want to modify your PATH
4295 *** so that a non-GNU linker is found, and then restart.
4304 # see comment about AmigaOS4 .so support
4305 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4306 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4309 _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)'
4310 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4311 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4318 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4320 # support --undefined. This deserves some investigation. FIXME
4321 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4323 _LT_TAGVAR(ld_shlibs, $1)=no
4327 cygwin* | mingw* | pw32* | cegcc*)
4328 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4329 # as there is no search path for DLLs.
4330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4331 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4332 _LT_TAGVAR(always_export_symbols, $1)=no
4333 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4334 _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'
4336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4337 _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'
4338 # If the export-symbols file already is a .def file (1st line
4339 # is EXPORTS), use it as is; otherwise, prepend...
4340 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4341 cp $export_symbols $output_objdir/$soname.def;
4343 echo EXPORTS > $output_objdir/$soname.def;
4344 cat $export_symbols >> $output_objdir/$soname.def;
4346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4348 _LT_TAGVAR(ld_shlibs, $1)=no
4353 _LT_TAGVAR(hardcode_direct, $1)=no
4354 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4356 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4358 # Instead, shared libraries are loaded at an image base (0x10000000 by
4359 # default) and relocated if they conflict, which is a slow very memory
4360 # consuming and fragmenting process. To avoid this, we pick a random,
4361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4363 _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'
4364 _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'
4367 gnu* | linux* | tpf* | k*bsd*-gnu)
4369 if test "$host_os" = linux-dietlibc; then
4370 case $cc_basename in
4371 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4374 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4375 && test "$tmp_diet" = no
4378 tmp_sharedflag='-shared'
4379 case $cc_basename,$host_cpu in
4380 pgcc*) # Portland Group C compiler
4381 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4382 tmp_addflag=' $pic_flag'
4384 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4385 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4386 tmp_addflag=' $pic_flag -Mnomain' ;;
4387 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4388 tmp_addflag=' -i_dynamic' ;;
4389 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4390 tmp_addflag=' -i_dynamic -nofor_main' ;;
4391 ifc* | ifort*) # Intel Fortran compiler
4392 tmp_addflag=' -nofor_main' ;;
4393 lf95*) # Lahey Fortran 8.1
4394 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4395 tmp_sharedflag='--shared' ;;
4396 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4397 tmp_sharedflag='-qmkshrobj'
4400 case `$CC -V 2>&1 | sed 5q` in
4401 *Sun\ C*) # Sun C 5.9
4402 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4403 _LT_TAGVAR(compiler_needs_object, $1)=yes
4404 tmp_sharedflag='-G' ;;
4405 *Sun\ F*) # Sun Fortran 8.3
4406 tmp_sharedflag='-G' ;;
4408 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4410 if test "x$supports_anon_versioning" = xyes; then
4411 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4413 echo "local: *; };" >> $output_objdir/$libname.ver~
4414 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4417 case $cc_basename in
4419 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4420 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4421 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4422 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4423 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4424 if test "x$supports_anon_versioning" = xyes; then
4425 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4427 echo "local: *; };" >> $output_objdir/$libname.ver~
4428 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4433 _LT_TAGVAR(ld_shlibs, $1)=no
4438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4439 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4443 _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'
4448 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4449 _LT_TAGVAR(ld_shlibs, $1)=no
4452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4453 *** create shared libraries on Solaris systems. Therefore, libtool
4454 *** is disabling shared libraries support. We urge you to upgrade GNU
4455 *** binutils to release 2.9.1 or newer. Another option is to modify
4456 *** your PATH or compiler configuration so that the native linker is
4457 *** used, and then restart.
4460 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4461 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4462 _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'
4464 _LT_TAGVAR(ld_shlibs, $1)=no
4468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4469 case `$LD -v 2>&1` in
4470 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4471 _LT_TAGVAR(ld_shlibs, $1)=no
4474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4475 *** reliably create shared libraries on SCO systems. Therefore, libtool
4476 *** is disabling shared libraries support. We urge you to upgrade GNU
4477 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4478 *** your PATH or compiler configuration so that the native linker is
4479 *** used, and then restart.
4484 # For security reasons, it is highly recommended that you always
4485 # use absolute paths for naming shared libraries, and exclude the
4486 # DT_RUNPATH tag from executables and libraries. But doing so
4487 # requires that you compile everything twice, which is a pain.
4488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4489 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4490 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4491 _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'
4493 _LT_TAGVAR(ld_shlibs, $1)=no
4500 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4502 _LT_TAGVAR(hardcode_direct, $1)=yes
4503 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4508 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4509 _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'
4511 _LT_TAGVAR(ld_shlibs, $1)=no
4516 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4519 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4520 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4523 # PORTME fill in a description of your system's linker (not GNU ld)
4526 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4527 _LT_TAGVAR(always_export_symbols, $1)=yes
4528 _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'
4529 # Note: this linker hardcodes the directories in LIBPATH if there
4530 # are no directories specified by -L.
4531 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4533 # Neither direct hardcoding nor static linking is supported with a
4535 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4540 if test "$host_cpu" = ia64; then
4541 # On IA64, the linker does run time linking by default, so we don't
4542 # have to do anything special.
4543 aix_use_runtimelinking=no
4544 exp_sym_flag='-Bexport'
4547 # If we're using GNU nm, then we don't want the "-C" option.
4548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4549 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4550 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4552 _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'
4554 aix_use_runtimelinking=no
4556 # Test if we are trying to use run time linking or normal
4557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4558 # need to do runtime linking.
4559 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4560 for ld_flag in $LDFLAGS; do
4561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4562 aix_use_runtimelinking=yes
4569 exp_sym_flag='-bexport'
4570 no_entry_flag='-bnoentry'
4573 # When large executables or shared objects are built, AIX ld can
4574 # have problems creating the table of contents. If linking a library
4575 # or program results in "error TOC overflow" add -mminimal-toc to
4576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4579 _LT_TAGVAR(archive_cmds, $1)=''
4580 _LT_TAGVAR(hardcode_direct, $1)=yes
4581 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4582 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4583 _LT_TAGVAR(link_all_deplibs, $1)=yes
4584 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4586 if test "$GCC" = yes; then
4587 case $host_os in aix4.[[012]]|aix4.[[012]].*)
4588 # We only want to do this on AIX 4.2 and lower, the check
4589 # below for broken collect2 doesn't work under 4.3+
4590 collect2name=`${CC} -print-prog-name=collect2`
4591 if test -f "$collect2name" &&
4592 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4594 # We have reworked collect2
4597 # We have old collect2
4598 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4599 # It fails to find uninstalled libraries when the uninstalled
4600 # path is not listed in the libpath. Setting hardcode_minus_L
4601 # to unsupported forces relinking
4602 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4603 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4604 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4608 shared_flag='-shared'
4609 if test "$aix_use_runtimelinking" = yes; then
4610 shared_flag="$shared_flag "'${wl}-G'
4614 if test "$host_cpu" = ia64; then
4615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4616 # chokes on -Wl,-G. The following line is correct:
4619 if test "$aix_use_runtimelinking" = yes; then
4620 shared_flag='${wl}-G'
4622 shared_flag='${wl}-bM:SRE'
4627 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4628 # It seems that -bexpall does not export symbols beginning with
4629 # underscore (_), so it is better to generate a list of symbols to export.
4630 _LT_TAGVAR(always_export_symbols, $1)=yes
4631 if test "$aix_use_runtimelinking" = yes; then
4632 # Warning - without using the other runtime loading flags (-brtl),
4633 # -berok will link without error, but may produce a broken library.
4634 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4635 # Determine the default libpath from the value encoded in an
4637 _LT_SYS_MODULE_PATH_AIX
4638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4639 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4641 if test "$host_cpu" = ia64; then
4642 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4643 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4644 _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"
4646 # Determine the default libpath from the value encoded in an
4648 _LT_SYS_MODULE_PATH_AIX
4649 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4650 # Warning - without using the other run time loading flags,
4651 # -berok will link without error, but may produce a broken library.
4652 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4653 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4654 # Exported symbols can be pulled into shared objects from archives
4655 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4656 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4657 # This is similar to how AIX traditionally builds its shared libraries.
4658 _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'
4666 # see comment about AmigaOS4 .so support
4667 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4668 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4671 _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)'
4672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4673 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4679 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4682 cygwin* | mingw* | pw32* | cegcc*)
4683 # When not using gcc, we currently assume that we are using
4684 # Microsoft Visual C++.
4685 # hardcode_libdir_flag_spec is actually meaningless, as there is
4686 # no search path for DLLs.
4687 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4688 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4689 # Tell ltmain to make .lib files, not .a files.
4691 # Tell ltmain to make .dll files, not .so files.
4693 # FIXME: Setting linknames here is a bad hack.
4694 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4695 # The linker will automatically build a .lib file if we build a DLL.
4696 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4697 # FIXME: Should let the user specify the lib program.
4698 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4699 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4700 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4703 darwin* | rhapsody*)
4704 _LT_DARWIN_LINKER_FEATURES($1)
4708 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4709 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4710 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4714 _LT_TAGVAR(ld_shlibs, $1)=no
4717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4718 # support. Future versions do this automatically, but an explicit c++rt0.o
4719 # does not break anything, and helps significantly (at the cost of a little
4722 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4724 _LT_TAGVAR(hardcode_direct, $1)=yes
4725 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4730 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4731 _LT_TAGVAR(hardcode_direct, $1)=yes
4732 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4733 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4737 freebsd* | dragonfly*)
4738 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4740 _LT_TAGVAR(hardcode_direct, $1)=yes
4741 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4745 if test "$GCC" = yes; then
4746 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4748 _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'
4750 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4751 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4752 _LT_TAGVAR(hardcode_direct, $1)=yes
4754 # hardcode_minus_L: Not really in the search PATH,
4755 # but as the default location of the library.
4756 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4757 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4762 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4764 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4766 if test "$with_gnu_ld" = no; then
4767 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4768 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4769 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4770 _LT_TAGVAR(hardcode_direct, $1)=yes
4771 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4772 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4773 # hardcode_minus_L: Not really in the search PATH,
4774 # but as the default location of the library.
4775 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4783 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4798 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4805 if test "$with_gnu_ld" = no; then
4806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4807 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4811 _LT_TAGVAR(hardcode_direct, $1)=no
4812 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4815 _LT_TAGVAR(hardcode_direct, $1)=yes
4816 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4817 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4819 # hardcode_minus_L: Not really in the search PATH,
4820 # but as the default location of the library.
4821 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4827 irix5* | irix6* | nonstopux*)
4828 if test "$GCC" = yes; then
4829 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4830 # Try to use the -exported_symbol ld option, if it does not
4831 # work, assume that -exports_file does not work either and
4832 # implicitly export all symbols.
4833 save_LDFLAGS="$LDFLAGS"
4834 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4835 AC_LINK_IFELSE(int foo(void) {},
4836 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4838 LDFLAGS="$save_LDFLAGS"
4840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4841 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4843 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4844 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4845 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4846 _LT_TAGVAR(inherit_rpath, $1)=yes
4847 _LT_TAGVAR(link_all_deplibs, $1)=yes
4851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4852 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4854 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4857 _LT_TAGVAR(hardcode_direct, $1)=yes
4858 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4862 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4863 _LT_TAGVAR(hardcode_direct, $1)=yes
4864 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4865 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4866 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4873 if test -f /usr/libexec/ld.so; then
4874 _LT_TAGVAR(hardcode_direct, $1)=yes
4875 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4876 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4879 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4881 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4884 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4885 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4890 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4895 _LT_TAGVAR(ld_shlibs, $1)=no
4900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4901 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4902 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4903 _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'
4904 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4908 if test "$GCC" = yes; then
4909 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4910 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4912 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4913 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4915 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4917 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4920 osf4* | osf5*) # as osf3* with the addition of -msym flag
4921 if test "$GCC" = yes; then
4922 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4927 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4928 _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~
4929 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4931 # Both c and cxx compiler support -rpath directly
4932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4934 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4935 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4939 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4940 if test "$GCC" = yes; then
4942 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4943 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4944 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4946 case `$CC -V 2>&1` in
4949 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4950 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4951 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4956 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4962 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4964 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4966 # The compiler driver will combine and reorder linker options,
4967 # but understands `-z linker_flag'. GCC discards it without `$wl',
4968 # but is careful enough not to reorder.
4969 # Supported since Solaris 2.6 (maybe 2.5.1?)
4970 if test "$GCC" = yes; then
4971 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4973 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4977 _LT_TAGVAR(link_all_deplibs, $1)=yes
4981 if test "x$host_vendor" = xsequent; then
4982 # Use $CC to link under sequent, because it throws in some extra .o
4983 # files that make .init and .fini sections work.
4984 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4986 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4988 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4989 _LT_TAGVAR(hardcode_direct, $1)=yes
4990 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4991 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4995 case $host_vendor in
4997 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4998 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5001 ## LD is ld it makes a PLAMLIB
5002 ## CC just makes a GrossModule.
5003 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5004 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5005 _LT_TAGVAR(hardcode_direct, $1)=no
5008 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5009 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5012 runpath_var='LD_RUN_PATH'
5013 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5017 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5018 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5019 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5023 if test -d /usr/nec; then
5024 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5025 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5026 runpath_var=LD_RUN_PATH
5027 hardcode_runpath_var=yes
5028 _LT_TAGVAR(ld_shlibs, $1)=yes
5032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5033 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5034 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5036 runpath_var='LD_RUN_PATH'
5038 if test "$GCC" = yes; then
5039 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5040 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5042 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5047 sysv5* | sco3.2v5* | sco5v6*)
5048 # Note: We can NOT use -z defs as we might desire, because we do not
5049 # link with -lc, and that would cause any symbols used from libc to
5050 # always be unresolved, which means just about no library would
5051 # ever link correctly. If we're not using GNU ld we use -z text
5052 # though, which does catch some bad symbols but isn't as heavy-handed
5054 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5055 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5056 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5057 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5059 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5060 _LT_TAGVAR(link_all_deplibs, $1)=yes
5061 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5062 runpath_var='LD_RUN_PATH'
5064 if test "$GCC" = yes; then
5065 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5066 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5068 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5074 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5076 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5080 _LT_TAGVAR(ld_shlibs, $1)=no
5084 if test x$host_vendor = xsni; then
5086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5087 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5093 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5094 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5096 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5098 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5099 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5100 _LT_DECL([], [extract_expsyms_cmds], [2],
5101 [The commands to extract the exported symbol list from a shared archive])
5104 # Do we need to explicitly link libc?
5106 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5108 # Assume -lc should be added
5109 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5111 if test "$enable_shared" = yes && test "$GCC" = yes; then
5112 case $_LT_TAGVAR(archive_cmds, $1) in
5114 # FIXME: we may have to deal with multi-command sequences.
5117 # Test whether the compiler implicitly links with -lc since on some
5118 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5119 # to ld, don't add -lc before -lgcc.
5120 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5124 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5127 libobjs=conftest.$ac_objext
5129 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5130 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5136 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5137 _LT_TAGVAR(allow_undefined_flag, $1)=
5138 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5140 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5142 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5144 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5146 cat conftest.err 1>&5
5149 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5156 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5157 [Whether or not to add -lc for building shared libraries])
5158 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5159 [enable_shared_with_static_runtimes], [0],
5160 [Whether or not to disallow shared libs when runtime libs are static])
5161 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5162 [Compiler flag to allow reflexive dlopens])
5163 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5164 [Compiler flag to generate shared objects directly from archives])
5165 _LT_TAGDECL([], [compiler_needs_object], [1],
5166 [Whether the compiler copes with passing no objects directly])
5167 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5168 [Create an old-style archive from a shared archive])
5169 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5170 [Create a temporary old-style archive to link instead of a shared archive])
5171 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5172 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5173 _LT_TAGDECL([], [module_cmds], [2],
5174 [Commands used to build a loadable module if different from building
5176 _LT_TAGDECL([], [module_expsym_cmds], [2])
5177 _LT_TAGDECL([], [with_gnu_ld], [1],
5178 [Whether we are building with GNU ld or not])
5179 _LT_TAGDECL([], [allow_undefined_flag], [1],
5180 [Flag that allows shared libraries with undefined symbols to be built])
5181 _LT_TAGDECL([], [no_undefined_flag], [1],
5182 [Flag that enforces no undefined symbols])
5183 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5184 [Flag to hardcode $libdir into a binary during linking.
5185 This must work even if $libdir does not exist])
5186 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5187 [[If ld is used when linking, flag to hardcode $libdir into a binary
5188 during linking. This must work even if $libdir does not exist]])
5189 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5190 [Whether we need a single "-rpath" flag with a separated argument])
5191 _LT_TAGDECL([], [hardcode_direct], [0],
5192 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5193 DIR into the resulting binary])
5194 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5195 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5196 DIR into the resulting binary and the resulting library dependency is
5197 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5198 library is relocated])
5199 _LT_TAGDECL([], [hardcode_minus_L], [0],
5200 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5201 into the resulting binary])
5202 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5203 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5204 into the resulting binary])
5205 _LT_TAGDECL([], [hardcode_automatic], [0],
5206 [Set to "yes" if building a shared library automatically hardcodes DIR
5207 into the library and all subsequent libraries and executables linked
5209 _LT_TAGDECL([], [inherit_rpath], [0],
5210 [Set to yes if linker adds runtime paths of dependent libraries
5211 to runtime path list])
5212 _LT_TAGDECL([], [link_all_deplibs], [0],
5213 [Whether libtool must link a program against all its dependency libraries])
5214 _LT_TAGDECL([], [fix_srcfile_path], [1],
5215 [Fix the shell variable $srcfile for the compiler])
5216 _LT_TAGDECL([], [always_export_symbols], [0],
5217 [Set to "yes" if exported symbols are required])
5218 _LT_TAGDECL([], [export_symbols_cmds], [2],
5219 [The commands to list exported symbols])
5220 _LT_TAGDECL([], [exclude_expsyms], [1],
5221 [Symbols that should not be listed in the preloaded symbols])
5222 _LT_TAGDECL([], [include_expsyms], [1],
5223 [Symbols that must always be exported])
5224 _LT_TAGDECL([], [prelink_cmds], [2],
5225 [Commands necessary for linking programs (against libraries) with templates])
5226 _LT_TAGDECL([], [file_list_spec], [1],
5227 [Specify filename containing input files])
5228 dnl FIXME: Not yet implemented
5229 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5230 dnl [Compiler flag to generate thread safe objects])
5231 ])# _LT_LINKER_SHLIBS
5234 # _LT_LANG_C_CONFIG([TAG])
5235 # ------------------------
5236 # Ensure that the configuration variables for a C compiler are suitably
5237 # defined. These variables are subsequently used by _LT_CONFIG to write
5238 # the compiler configuration to `libtool'.
5239 m4_defun([_LT_LANG_C_CONFIG],
5240 [m4_require([_LT_DECL_EGREP])dnl
5244 # Source file extension for C test sources.
5247 # Object file extension for compiled C test sources.
5249 _LT_TAGVAR(objext, $1)=$objext
5251 # Code to be used in simple compile tests
5252 lt_simple_compile_test_code="int some_variable = 0;"
5254 # Code to be used in simple link tests
5255 lt_simple_link_test_code='int main(){return(0);}'
5258 # Save the default compiler, since it gets overwritten when the other
5259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5260 compiler_DEFAULT=$CC
5262 # save warnings/boilerplate of simple test code
5263 _LT_COMPILER_BOILERPLATE
5264 _LT_LINKER_BOILERPLATE
5266 if test -n "$compiler"; then
5267 _LT_COMPILER_NO_RTTI($1)
5268 _LT_COMPILER_PIC($1)
5269 _LT_COMPILER_C_O($1)
5270 _LT_COMPILER_FILE_LOCKS($1)
5271 _LT_LINKER_SHLIBS($1)
5272 _LT_SYS_DYNAMIC_LINKER($1)
5273 _LT_LINKER_HARDCODE_LIBPATH($1)
5277 # Report which library types will actually be built
5278 AC_MSG_CHECKING([if libtool supports shared libraries])
5279 AC_MSG_RESULT([$can_build_shared])
5281 AC_MSG_CHECKING([whether to build shared libraries])
5282 test "$can_build_shared" = "no" && enable_shared=no
5284 # On AIX, shared libraries and static libraries use the same namespace, and
5285 # are all built from PIC.
5288 test "$enable_shared" = yes && enable_static=no
5289 if test -n "$RANLIB"; then
5290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5291 postinstall_cmds='$RANLIB $lib'
5296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5297 test "$enable_shared" = yes && enable_static=no
5301 AC_MSG_RESULT([$enable_shared])
5303 AC_MSG_CHECKING([whether to build static libraries])
5304 # Make sure either enable_shared or enable_static is yes.
5305 test "$enable_shared" = yes || enable_static=yes
5306 AC_MSG_RESULT([$enable_static])
5312 ])# _LT_LANG_C_CONFIG
5317 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5318 # compiler, we have our own version here.
5319 m4_defun([_LT_PROG_CXX],
5321 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5323 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5324 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5325 (test "X$CXX" != "Xg++"))) ; then
5328 _lt_caught_CXX_error=yes
5330 popdef([AC_MSG_ERROR])
5333 dnl aclocal-1.4 backwards compatibility:
5334 dnl AC_DEFUN([_LT_PROG_CXX], [])
5337 # _LT_LANG_CXX_CONFIG([TAG])
5338 # --------------------------
5339 # Ensure that the configuration variables for a C++ compiler are suitably
5340 # defined. These variables are subsequently used by _LT_CONFIG to write
5341 # the compiler configuration to `libtool'.
5342 m4_defun([_LT_LANG_CXX_CONFIG],
5343 [AC_REQUIRE([_LT_PROG_CXX])dnl
5344 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5345 m4_require([_LT_DECL_EGREP])dnl
5348 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5349 _LT_TAGVAR(allow_undefined_flag, $1)=
5350 _LT_TAGVAR(always_export_symbols, $1)=no
5351 _LT_TAGVAR(archive_expsym_cmds, $1)=
5352 _LT_TAGVAR(compiler_needs_object, $1)=no
5353 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5354 _LT_TAGVAR(hardcode_direct, $1)=no
5355 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5357 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5358 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5359 _LT_TAGVAR(hardcode_minus_L, $1)=no
5360 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5361 _LT_TAGVAR(hardcode_automatic, $1)=no
5362 _LT_TAGVAR(inherit_rpath, $1)=no
5363 _LT_TAGVAR(module_cmds, $1)=
5364 _LT_TAGVAR(module_expsym_cmds, $1)=
5365 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5366 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5367 _LT_TAGVAR(no_undefined_flag, $1)=
5368 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5369 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5371 # Source file extension for C++ test sources.
5374 # Object file extension for compiled C++ test sources.
5376 _LT_TAGVAR(objext, $1)=$objext
5378 # No sense in running all these tests if we already determined that
5379 # the CXX compiler isn't working. Some variables (like enable_shared)
5380 # are currently assumed to apply to all compilers on this platform,
5381 # and will be corrupted by setting them based on a non-working compiler.
5382 if test "$_lt_caught_CXX_error" != yes; then
5383 # Code to be used in simple compile tests
5384 lt_simple_compile_test_code="int some_variable = 0;"
5386 # Code to be used in simple link tests
5387 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5392 # save warnings/boilerplate of simple test code
5393 _LT_COMPILER_BOILERPLATE
5394 _LT_LINKER_BOILERPLATE
5396 # Allow CC to be a program name with arguments.
5401 lt_save_with_gnu_ld=$with_gnu_ld
5402 lt_save_path_LD=$lt_cv_path_LD
5403 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5404 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5406 $as_unset lt_cv_prog_gnu_ld
5408 if test -n "${lt_cv_path_LDCXX+set}"; then
5409 lt_cv_path_LD=$lt_cv_path_LDCXX
5411 $as_unset lt_cv_path_LD
5413 test -z "${LDCXX+set}" || LD=$LDCXX
5416 _LT_TAGVAR(compiler, $1)=$CC
5417 _LT_CC_BASENAME([$compiler])
5419 if test -n "$compiler"; then
5420 # We don't want -fno-exception when compiling C++ code, so set the
5421 # no_builtin_flag separately
5422 if test "$GXX" = yes; then
5423 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5425 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5428 if test "$GXX" = yes; then
5429 # Set up default GNU C++ configuration
5433 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5434 # archiving commands below assume that GNU ld is being used.
5435 if test "$with_gnu_ld" = yes; then
5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5437 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5439 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5440 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5442 # If archive_cmds runs LD, not CC, wlarc should be empty
5443 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5444 # investigate it a little bit more. (MM)
5447 # ancient GNU ld didn't support --whole-archive et. al.
5448 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5449 $GREP 'no-whole-archive' > /dev/null; then
5450 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5452 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5458 # A generic and very simple default shared library creation
5459 # command for GNU C++ for the case where it uses the native
5460 # linker, instead of GNU ld. If possible, this setting should
5461 # overridden to take advantage of the native linker features on
5462 # the platform it is being used on.
5463 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5466 # Commands to make compiler produce verbose output that lists
5467 # what "hidden" libraries, object files and flags are used when
5468 # linking a shared library.
5469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5477 # PORTME: fill in a description of your system's C++ link characteristics
5478 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5479 _LT_TAGVAR(ld_shlibs, $1)=yes
5482 # FIXME: insert proper C++ library support
5483 _LT_TAGVAR(ld_shlibs, $1)=no
5486 if test "$host_cpu" = ia64; then
5487 # On IA64, the linker does run time linking by default, so we don't
5488 # have to do anything special.
5489 aix_use_runtimelinking=no
5490 exp_sym_flag='-Bexport'
5493 aix_use_runtimelinking=no
5495 # Test if we are trying to use run time linking or normal
5496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5497 # need to do runtime linking.
5498 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5499 for ld_flag in $LDFLAGS; do
5502 aix_use_runtimelinking=yes
5510 exp_sym_flag='-bexport'
5511 no_entry_flag='-bnoentry'
5514 # When large executables or shared objects are built, AIX ld can
5515 # have problems creating the table of contents. If linking a library
5516 # or program results in "error TOC overflow" add -mminimal-toc to
5517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5520 _LT_TAGVAR(archive_cmds, $1)=''
5521 _LT_TAGVAR(hardcode_direct, $1)=yes
5522 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5523 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5524 _LT_TAGVAR(link_all_deplibs, $1)=yes
5525 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5527 if test "$GXX" = yes; then
5528 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5529 # We only want to do this on AIX 4.2 and lower, the check
5530 # below for broken collect2 doesn't work under 4.3+
5531 collect2name=`${CC} -print-prog-name=collect2`
5532 if test -f "$collect2name" &&
5533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5535 # We have reworked collect2
5538 # We have old collect2
5539 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5540 # It fails to find uninstalled libraries when the uninstalled
5541 # path is not listed in the libpath. Setting hardcode_minus_L
5542 # to unsupported forces relinking
5543 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5545 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5548 shared_flag='-shared'
5549 if test "$aix_use_runtimelinking" = yes; then
5550 shared_flag="$shared_flag "'${wl}-G'
5554 if test "$host_cpu" = ia64; then
5555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5556 # chokes on -Wl,-G. The following line is correct:
5559 if test "$aix_use_runtimelinking" = yes; then
5560 shared_flag='${wl}-G'
5562 shared_flag='${wl}-bM:SRE'
5567 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5568 # It seems that -bexpall does not export symbols beginning with
5569 # underscore (_), so it is better to generate a list of symbols to
5571 _LT_TAGVAR(always_export_symbols, $1)=yes
5572 if test "$aix_use_runtimelinking" = yes; then
5573 # Warning - without using the other runtime loading flags (-brtl),
5574 # -berok will link without error, but may produce a broken library.
5575 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5576 # Determine the default libpath from the value encoded in an empty
5578 _LT_SYS_MODULE_PATH_AIX
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5581 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5583 if test "$host_cpu" = ia64; then
5584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5585 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5586 _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"
5588 # Determine the default libpath from the value encoded in an
5590 _LT_SYS_MODULE_PATH_AIX
5591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5592 # Warning - without using the other run time loading flags,
5593 # -berok will link without error, but may produce a broken library.
5594 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5595 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5596 # Exported symbols can be pulled into shared objects from archives
5597 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5598 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5599 # This is similar to how AIX traditionally builds its shared
5601 _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'
5607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5608 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5610 # support --undefined. This deserves some investigation. FIXME
5611 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5613 _LT_TAGVAR(ld_shlibs, $1)=no
5618 case $cc_basename in
5620 # FIXME: insert proper C++ library support
5621 _LT_TAGVAR(ld_shlibs, $1)=no
5626 cygwin* | mingw* | pw32* | cegcc*)
5627 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5628 # as there is no search path for DLLs.
5629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5630 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5631 _LT_TAGVAR(always_export_symbols, $1)=no
5632 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5635 _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'
5636 # If the export-symbols file already is a .def file (1st line
5637 # is EXPORTS), use it as is; otherwise, prepend...
5638 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5639 cp $export_symbols $output_objdir/$soname.def;
5641 echo EXPORTS > $output_objdir/$soname.def;
5642 cat $export_symbols >> $output_objdir/$soname.def;
5644 $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'
5646 _LT_TAGVAR(ld_shlibs, $1)=no
5649 darwin* | rhapsody*)
5650 _LT_DARWIN_LINKER_FEATURES($1)
5654 case $cc_basename in
5656 # FIXME: insert proper C++ library support
5657 _LT_TAGVAR(ld_shlibs, $1)=no
5660 # Green Hills C++ Compiler
5661 # FIXME: insert proper C++ library support
5662 _LT_TAGVAR(ld_shlibs, $1)=no
5665 # FIXME: insert proper C++ library support
5666 _LT_TAGVAR(ld_shlibs, $1)=no
5672 # C++ shared libraries reported to be fairly broken before
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5678 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5681 freebsd* | dragonfly*)
5682 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5684 _LT_TAGVAR(ld_shlibs, $1)=yes
5691 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5692 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5693 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5694 _LT_TAGVAR(hardcode_direct, $1)=yes
5695 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5696 # but as the default
5697 # location of the library.
5699 case $cc_basename in
5701 # FIXME: insert proper C++ library support
5702 _LT_TAGVAR(ld_shlibs, $1)=no
5705 _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'
5706 # Commands to make compiler produce verbose output that lists
5707 # what "hidden" libraries, object files and flags are used when
5708 # linking a shared library.
5710 # There doesn't appear to be a way to prevent this compiler from
5711 # explicitly linking system object files so we need to strip them
5712 # from the output so that they don't get included in the library
5714 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; $ECHO "X$list" | $Xsed'
5717 if test "$GXX" = yes; then
5718 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
5720 # FIXME: insert proper C++ library support
5721 _LT_TAGVAR(ld_shlibs, $1)=no
5728 if test $with_gnu_ld = no; then
5729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5730 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5736 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5742 _LT_TAGVAR(hardcode_direct, $1)=no
5743 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5746 _LT_TAGVAR(hardcode_direct, $1)=yes
5747 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5748 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5749 # but as the default
5750 # location of the library.
5754 case $cc_basename in
5756 # FIXME: insert proper C++ library support
5757 _LT_TAGVAR(ld_shlibs, $1)=no
5762 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5765 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5768 _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'
5771 # Commands to make compiler produce verbose output that lists
5772 # what "hidden" libraries, object files and flags are used when
5773 # linking a shared library.
5775 # There doesn't appear to be a way to prevent this compiler from
5776 # explicitly linking system object files so we need to strip them
5777 # from the output so that they don't get included in the library
5779 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; $ECHO "X$list" | $Xsed'
5782 if test "$GXX" = yes; then
5783 if test $with_gnu_ld = no; then
5786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5797 # FIXME: insert proper C++ library support
5798 _LT_TAGVAR(ld_shlibs, $1)=no
5805 _LT_TAGVAR(hardcode_direct, $1)=no
5806 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5807 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5808 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5809 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5810 # Instead, shared libraries are loaded at an image base (0x10000000 by
5811 # default) and relocated if they conflict, which is a slow very memory
5812 # consuming and fragmenting process. To avoid this, we pick a random,
5813 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5814 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5815 _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'
5816 _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'
5819 case $cc_basename in
5822 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5824 # Archives containing C++ object files must be created using
5825 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5826 # necessary to make sure instantiated templates are included
5828 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5831 if test "$GXX" = yes; then
5832 if test "$with_gnu_ld" = no; then
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5838 _LT_TAGVAR(link_all_deplibs, $1)=yes
5841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5842 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5843 _LT_TAGVAR(inherit_rpath, $1)=yes
5846 linux* | k*bsd*-gnu)
5847 case $cc_basename in
5849 # Kuck and Associates, Inc. (KAI) C++ Compiler
5851 # KCC will only create a shared library if the output file
5852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5853 # to its proper name (with version) after linking.
5854 _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'
5855 _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'
5856 # Commands to make compiler produce verbose output that lists
5857 # what "hidden" libraries, object files and flags are used when
5858 # linking a shared library.
5860 # There doesn't appear to be a way to prevent this compiler from
5861 # explicitly linking system object files so we need to strip them
5862 # from the output so that they don't get included in the library
5864 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; $ECHO "X$list" | $Xsed'
5866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5867 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5869 # Archives containing C++ object files must be created using
5870 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5871 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5876 # version 8.0 and above of icpc choke on multiply defined symbols
5877 # if we add $predep_objects and $postdep_objects, however 7.1 and
5878 # earlier do not add the objects themselves.
5879 case `$CC -V 2>&1` in
5881 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5882 _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'
5884 *) # Version 8.0 or newer
5887 ia64*) tmp_idyn=' -i_dynamic';;
5889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5890 _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'
5893 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5895 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5896 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5899 # Portland Group C++ compiler
5901 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5902 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5904 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5905 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5906 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5908 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5909 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5911 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5913 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5914 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5915 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5917 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5918 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5920 *) # Version 6 will use weak symbols
5921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5922 _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'
5926 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5927 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5928 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5933 _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'
5935 runpath_var=LD_RUN_PATH
5936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5937 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5939 # Commands to make compiler produce verbose output that lists
5940 # what "hidden" libraries, object files and flags are used when
5941 # linking a shared library.
5943 # There doesn't appear to be a way to prevent this compiler from
5944 # explicitly linking system object files so we need to strip them
5945 # from the output so that they don't get included in the library
5947 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5950 # IBM XL 8.0 on PPC, with GNU ld
5951 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5952 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5953 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954 if test "x$supports_anon_versioning" = xyes; then
5955 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5957 echo "local: *; };" >> $output_objdir/$libname.ver~
5958 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5962 case `$CC -V 2>&1 | sed 5q` in
5965 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5966 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5967 _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'
5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5969 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5970 _LT_TAGVAR(compiler_needs_object, $1)=yes
5972 # Not sure whether something based on
5973 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5975 output_verbose_link_cmd='echo'
5977 # Archives containing C++ object files must be created using
5978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5979 # necessary to make sure instantiated templates are included
5981 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5989 # FIXME: insert proper C++ library support
5990 _LT_TAGVAR(ld_shlibs, $1)=no
5994 # FIXME: insert proper C++ library support
5995 _LT_TAGVAR(ld_shlibs, $1)=no
5999 case $cc_basename in
6001 # FIXME: insert proper C++ library support
6002 _LT_TAGVAR(ld_shlibs, $1)=no
6005 # FIXME: insert proper C++ library support
6006 _LT_TAGVAR(ld_shlibs, $1)=no
6012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6013 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6016 _LT_TAGVAR(hardcode_direct, $1)=yes
6017 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6019 # Workaround some broken pre-1.5 toolchains
6020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6024 _LT_TAGVAR(ld_shlibs, $1)=yes
6028 # C++ shared libraries are fairly broken
6029 _LT_TAGVAR(ld_shlibs, $1)=no
6033 if test -f /usr/libexec/ld.so; then
6034 _LT_TAGVAR(hardcode_direct, $1)=yes
6035 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6036 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6037 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040 _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'
6041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6042 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6044 output_verbose_link_cmd=echo
6046 _LT_TAGVAR(ld_shlibs, $1)=no
6050 osf3* | osf4* | osf5*)
6051 case $cc_basename in
6053 # Kuck and Associates, Inc. (KAI) C++ Compiler
6055 # KCC will only create a shared library if the output file
6056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6057 # to its proper name (with version) after linking.
6058 _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'
6060 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6061 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6063 # Archives containing C++ object files must be created using
6064 # the KAI C++ compiler.
6066 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6067 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6071 # Rational C++ 2.4.1
6072 # FIXME: insert proper C++ library support
6073 _LT_TAGVAR(ld_shlibs, $1)=no
6078 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6079 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6083 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6084 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6085 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6086 echo "-hidden">> $lib.exp~
6087 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6093 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6095 # Commands to make compiler produce verbose output that lists
6096 # what "hidden" libraries, object files and flags are used when
6097 # linking a shared library.
6099 # There doesn't appear to be a way to prevent this compiler from
6100 # explicitly linking system object files so we need to strip them
6101 # from the output so that they don't get included in the library
6103 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6107 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6110 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6113 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6118 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6120 # Commands to make compiler produce verbose output that lists
6121 # what "hidden" libraries, object files and flags are used when
6122 # linking a shared library.
6123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6126 # FIXME: insert proper C++ library support
6127 _LT_TAGVAR(ld_shlibs, $1)=no
6134 # FIXME: insert proper C++ library support
6135 _LT_TAGVAR(ld_shlibs, $1)=no
6139 case $cc_basename in
6142 # FIXME: insert proper C++ library support
6143 _LT_TAGVAR(ld_shlibs, $1)=no
6147 # FIXME: insert proper C++ library support
6148 _LT_TAGVAR(ld_shlibs, $1)=no
6151 # FIXME: insert proper C++ library support
6152 _LT_TAGVAR(ld_shlibs, $1)=no
6158 case $cc_basename in
6160 # Sun C++ 4.2, 5.x and Centerline C++
6161 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6162 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6163 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6164 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6165 $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'
6167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6168 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6170 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6172 # The compiler driver will combine and reorder linker options,
6173 # but understands `-z linker_flag'.
6174 # Supported since Solaris 2.6 (maybe 2.5.1?)
6175 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6178 _LT_TAGVAR(link_all_deplibs, $1)=yes
6180 output_verbose_link_cmd='echo'
6182 # Archives containing C++ object files must be created using
6183 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6184 # necessary to make sure instantiated templates are included
6186 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6189 # Green Hills C++ Compiler
6190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6192 # The C++ compiler must be used to create the archive.
6193 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6196 # GNU C++ compiler with Solaris linker
6197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6198 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6199 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6200 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6201 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6202 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6204 # Commands to make compiler produce verbose output that lists
6205 # what "hidden" libraries, object files and flags are used when
6206 # linking a shared library.
6207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6209 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6211 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6212 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6213 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6215 # Commands to make compiler produce verbose output that lists
6216 # what "hidden" libraries, object files and flags are used when
6217 # linking a shared library.
6218 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6221 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6223 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6225 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6234 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6235 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6236 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6237 runpath_var='LD_RUN_PATH'
6239 case $cc_basename in
6241 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6242 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6246 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251 sysv5* | sco3.2v5* | sco5v6*)
6252 # Note: We can NOT use -z defs as we might desire, because we do not
6253 # link with -lc, and that would cause any symbols used from libc to
6254 # always be unresolved, which means just about no library would
6255 # ever link correctly. If we're not using GNU ld we use -z text
6256 # though, which does catch some bad symbols but isn't as heavy-handed
6258 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6259 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6260 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6261 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6263 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6264 _LT_TAGVAR(link_all_deplibs, $1)=yes
6265 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6266 runpath_var='LD_RUN_PATH'
6268 case $cc_basename in
6270 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6271 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6275 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6281 case $cc_basename in
6283 # NonStop-UX NCC 3.20
6284 # FIXME: insert proper C++ library support
6285 _LT_TAGVAR(ld_shlibs, $1)=no
6288 # FIXME: insert proper C++ library support
6289 _LT_TAGVAR(ld_shlibs, $1)=no
6295 # FIXME: insert proper C++ library support
6296 _LT_TAGVAR(ld_shlibs, $1)=no
6300 # FIXME: insert proper C++ library support
6301 _LT_TAGVAR(ld_shlibs, $1)=no
6305 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6306 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6308 _LT_TAGVAR(GCC, $1)="$GXX"
6309 _LT_TAGVAR(LD, $1)="$LD"
6312 ## There is no encapsulation within the following macros, do not change
6313 ## the running order or otherwise move them around unless you know exactly
6314 ## what you are doing...
6315 _LT_SYS_HIDDEN_LIBDEPS($1)
6316 _LT_COMPILER_PIC($1)
6317 _LT_COMPILER_C_O($1)
6318 _LT_COMPILER_FILE_LOCKS($1)
6319 _LT_LINKER_SHLIBS($1)
6320 _LT_SYS_DYNAMIC_LINKER($1)
6321 _LT_LINKER_HARDCODE_LIBPATH($1)
6324 fi # test -n "$compiler"
6330 with_gnu_ld=$lt_save_with_gnu_ld
6331 lt_cv_path_LDCXX=$lt_cv_path_LD
6332 lt_cv_path_LD=$lt_save_path_LD
6333 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6334 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6335 fi # test "$_lt_caught_CXX_error" != yes
6338 ])# _LT_LANG_CXX_CONFIG
6341 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6342 # ---------------------------------
6343 # Figure out "hidden" library dependencies from verbose
6344 # compiler output when linking a shared library.
6345 # Parse the compiler output and extract the necessary
6346 # objects, libraries and library flags.
6347 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6348 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6349 # Dependencies to place before and after the object being linked:
6350 _LT_TAGVAR(predep_objects, $1)=
6351 _LT_TAGVAR(postdep_objects, $1)=
6352 _LT_TAGVAR(predeps, $1)=
6353 _LT_TAGVAR(postdeps, $1)=
6354 _LT_TAGVAR(compiler_lib_search_path, $1)=
6356 dnl we can't use the lt_simple_compile_test_code here,
6357 dnl because it contains code intended for an executable,
6358 dnl not a library. It's possible we should let each
6359 dnl tag define a new lt_????_link_test_code variable,
6360 dnl but it's only used here...
6361 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6363 void foo (void) { a = 0; }
6365 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6369 Foo (void) { a = 0; }
6374 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6382 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6390 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6393 public void bar (void) {
6399 dnl Parse the compiler output and extract the necessary
6400 dnl objects, libraries and library flags.
6401 if AC_TRY_EVAL(ac_compile); then
6402 # Parse the compiler output and extract the necessary
6403 # objects, libraries and library flags.
6405 # Sentinel used to keep track of whether or not we are before
6406 # the conftest object file.
6407 pre_test_object_deps_done=no
6409 for p in `eval "$output_verbose_link_cmd"`; do
6413 # Some compilers place space between "-{L,R}" and the path.
6415 if test $p = "-L" ||
6416 test $p = "-R"; then
6423 if test "$pre_test_object_deps_done" = no; then
6426 # Internal compiler library paths should come after those
6427 # provided the user. The postdeps already come after the
6428 # user supplied libs so there is no need to process them.
6429 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6430 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6432 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6435 # The "-l" case would never come before the object being
6436 # linked, so don't bother handling this case.
6439 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6440 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6442 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6448 # This assumes that the test object file only shows up
6449 # once in the compiler output.
6450 if test "$p" = "conftest.$objext"; then
6451 pre_test_object_deps_done=yes
6455 if test "$pre_test_object_deps_done" = no; then
6456 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6457 _LT_TAGVAR(predep_objects, $1)="$p"
6459 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6462 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6463 _LT_TAGVAR(postdep_objects, $1)="$p"
6465 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6470 *) ;; # Ignore the rest.
6478 echo "libtool.m4: error: problem compiling $1 test program"
6481 $RM -f confest.$objext
6483 # PORTME: override above test on systems where it is broken
6487 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6488 # hack all around it, let's just trust "g++" to DTRT.
6489 _LT_TAGVAR(predep_objects,$1)=
6490 _LT_TAGVAR(postdep_objects,$1)=
6491 _LT_TAGVAR(postdeps,$1)=
6495 case `$CC -V 2>&1 | sed 5q` in
6499 # The more standards-conforming stlport4 library is
6500 # incompatible with the Cstd library. Avoid specifying
6501 # it if it's in CXXFLAGS. Ignore libCrun as
6502 # -library=stlport4 depends on it.
6503 case " $CXX $CXXFLAGS " in
6504 *" -library=stlport4 "*)
6505 solaris_use_stlport4=yes
6509 if test "$solaris_use_stlport4" != yes; then
6510 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6517 case $cc_basename in
6519 # The more standards-conforming stlport4 library is
6520 # incompatible with the Cstd library. Avoid specifying
6521 # it if it's in CXXFLAGS. Ignore libCrun as
6522 # -library=stlport4 depends on it.
6523 case " $CXX $CXXFLAGS " in
6524 *" -library=stlport4 "*)
6525 solaris_use_stlport4=yes
6529 # Adding this requires a known-good setup of shared libraries for
6530 # Sun compiler versions before 5.6, else PIC objects from an old
6531 # archive will be linked into the output, leading to subtle bugs.
6532 if test "$solaris_use_stlport4" != yes; then
6533 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6541 case " $_LT_TAGVAR(postdeps, $1) " in
6542 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6544 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6545 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6546 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6548 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6549 [The directories searched by this compiler when creating a shared library])
6550 _LT_TAGDECL([], [predep_objects], [1],
6551 [Dependencies to place before and after the objects being linked to
6552 create a shared library])
6553 _LT_TAGDECL([], [postdep_objects], [1])
6554 _LT_TAGDECL([], [predeps], [1])
6555 _LT_TAGDECL([], [postdeps], [1])
6556 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6557 [The library search path used internally by the compiler when linking
6559 ])# _LT_SYS_HIDDEN_LIBDEPS
6564 # Since AC_PROG_F77 is broken, in that it returns the empty string
6565 # if there is no fortran compiler, we have our own version here.
6566 m4_defun([_LT_PROG_F77],
6568 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6570 if test -z "$F77" || test "X$F77" = "Xno"; then
6573 popdef([AC_MSG_ERROR])
6576 dnl aclocal-1.4 backwards compatibility:
6577 dnl AC_DEFUN([_LT_PROG_F77], [])
6580 # _LT_LANG_F77_CONFIG([TAG])
6581 # --------------------------
6582 # Ensure that the configuration variables for a Fortran 77 compiler are
6583 # suitably defined. These variables are subsequently used by _LT_CONFIG
6584 # to write the compiler configuration to `libtool'.
6585 m4_defun([_LT_LANG_F77_CONFIG],
6586 [AC_REQUIRE([_LT_PROG_F77])dnl
6587 AC_LANG_PUSH(Fortran 77)
6589 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6590 _LT_TAGVAR(allow_undefined_flag, $1)=
6591 _LT_TAGVAR(always_export_symbols, $1)=no
6592 _LT_TAGVAR(archive_expsym_cmds, $1)=
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6594 _LT_TAGVAR(hardcode_direct, $1)=no
6595 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6597 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6598 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6599 _LT_TAGVAR(hardcode_minus_L, $1)=no
6600 _LT_TAGVAR(hardcode_automatic, $1)=no
6601 _LT_TAGVAR(inherit_rpath, $1)=no
6602 _LT_TAGVAR(module_cmds, $1)=
6603 _LT_TAGVAR(module_expsym_cmds, $1)=
6604 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6605 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6606 _LT_TAGVAR(no_undefined_flag, $1)=
6607 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6608 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6610 # Source file extension for f77 test sources.
6613 # Object file extension for compiled f77 test sources.
6615 _LT_TAGVAR(objext, $1)=$objext
6617 # No sense in running all these tests if we already determined that
6618 # the F77 compiler isn't working. Some variables (like enable_shared)
6619 # are currently assumed to apply to all compilers on this platform,
6620 # and will be corrupted by setting them based on a non-working compiler.
6621 if test "$_lt_disable_F77" != yes; then
6622 # Code to be used in simple compile tests
6623 lt_simple_compile_test_code="\
6629 # Code to be used in simple link tests
6630 lt_simple_link_test_code="\
6635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6638 # save warnings/boilerplate of simple test code
6639 _LT_COMPILER_BOILERPLATE
6640 _LT_LINKER_BOILERPLATE
6642 # Allow CC to be a program name with arguments.
6647 _LT_TAGVAR(compiler, $1)=$CC
6648 _LT_CC_BASENAME([$compiler])
6650 if test -n "$compiler"; then
6651 AC_MSG_CHECKING([if libtool supports shared libraries])
6652 AC_MSG_RESULT([$can_build_shared])
6654 AC_MSG_CHECKING([whether to build shared libraries])
6655 test "$can_build_shared" = "no" && enable_shared=no
6657 # On AIX, shared libraries and static libraries use the same namespace, and
6658 # are all built from PIC.
6661 test "$enable_shared" = yes && enable_static=no
6662 if test -n "$RANLIB"; then
6663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6664 postinstall_cmds='$RANLIB $lib'
6668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6669 test "$enable_shared" = yes && enable_static=no
6673 AC_MSG_RESULT([$enable_shared])
6675 AC_MSG_CHECKING([whether to build static libraries])
6676 # Make sure either enable_shared or enable_static is yes.
6677 test "$enable_shared" = yes || enable_static=yes
6678 AC_MSG_RESULT([$enable_static])
6680 _LT_TAGVAR(GCC, $1)="$G77"
6681 _LT_TAGVAR(LD, $1)="$LD"
6684 ## There is no encapsulation within the following macros, do not change
6685 ## the running order or otherwise move them around unless you know exactly
6686 ## what you are doing...
6687 _LT_COMPILER_PIC($1)
6688 _LT_COMPILER_C_O($1)
6689 _LT_COMPILER_FILE_LOCKS($1)
6690 _LT_LINKER_SHLIBS($1)
6691 _LT_SYS_DYNAMIC_LINKER($1)
6692 _LT_LINKER_HARDCODE_LIBPATH($1)
6695 fi # test -n "$compiler"
6699 fi # test "$_lt_disable_F77" != yes
6702 ])# _LT_LANG_F77_CONFIG
6707 # Since AC_PROG_FC is broken, in that it returns the empty string
6708 # if there is no fortran compiler, we have our own version here.
6709 m4_defun([_LT_PROG_FC],
6711 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6713 if test -z "$FC" || test "X$FC" = "Xno"; then
6716 popdef([AC_MSG_ERROR])
6719 dnl aclocal-1.4 backwards compatibility:
6720 dnl AC_DEFUN([_LT_PROG_FC], [])
6723 # _LT_LANG_FC_CONFIG([TAG])
6724 # -------------------------
6725 # Ensure that the configuration variables for a Fortran compiler are
6726 # suitably defined. These variables are subsequently used by _LT_CONFIG
6727 # to write the compiler configuration to `libtool'.
6728 m4_defun([_LT_LANG_FC_CONFIG],
6729 [AC_REQUIRE([_LT_PROG_FC])dnl
6730 AC_LANG_PUSH(Fortran)
6732 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6733 _LT_TAGVAR(allow_undefined_flag, $1)=
6734 _LT_TAGVAR(always_export_symbols, $1)=no
6735 _LT_TAGVAR(archive_expsym_cmds, $1)=
6736 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6737 _LT_TAGVAR(hardcode_direct, $1)=no
6738 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6740 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6741 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6742 _LT_TAGVAR(hardcode_minus_L, $1)=no
6743 _LT_TAGVAR(hardcode_automatic, $1)=no
6744 _LT_TAGVAR(inherit_rpath, $1)=no
6745 _LT_TAGVAR(module_cmds, $1)=
6746 _LT_TAGVAR(module_expsym_cmds, $1)=
6747 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6748 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6749 _LT_TAGVAR(no_undefined_flag, $1)=
6750 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6751 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6753 # Source file extension for fc test sources.
6754 ac_ext=${ac_fc_srcext-f}
6756 # Object file extension for compiled fc test sources.
6758 _LT_TAGVAR(objext, $1)=$objext
6760 # No sense in running all these tests if we already determined that
6761 # the FC compiler isn't working. Some variables (like enable_shared)
6762 # are currently assumed to apply to all compilers on this platform,
6763 # and will be corrupted by setting them based on a non-working compiler.
6764 if test "$_lt_disable_FC" != yes; then
6765 # Code to be used in simple compile tests
6766 lt_simple_compile_test_code="\
6772 # Code to be used in simple link tests
6773 lt_simple_link_test_code="\
6778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6781 # save warnings/boilerplate of simple test code
6782 _LT_COMPILER_BOILERPLATE
6783 _LT_LINKER_BOILERPLATE
6785 # Allow CC to be a program name with arguments.
6790 GCC=$ac_cv_fc_compiler_gnu
6792 _LT_TAGVAR(compiler, $1)=$CC
6793 _LT_CC_BASENAME([$compiler])
6795 if test -n "$compiler"; then
6796 AC_MSG_CHECKING([if libtool supports shared libraries])
6797 AC_MSG_RESULT([$can_build_shared])
6799 AC_MSG_CHECKING([whether to build shared libraries])
6800 test "$can_build_shared" = "no" && enable_shared=no
6802 # On AIX, shared libraries and static libraries use the same namespace, and
6803 # are all built from PIC.
6806 test "$enable_shared" = yes && enable_static=no
6807 if test -n "$RANLIB"; then
6808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6809 postinstall_cmds='$RANLIB $lib'
6813 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6814 test "$enable_shared" = yes && enable_static=no
6818 AC_MSG_RESULT([$enable_shared])
6820 AC_MSG_CHECKING([whether to build static libraries])
6821 # Make sure either enable_shared or enable_static is yes.
6822 test "$enable_shared" = yes || enable_static=yes
6823 AC_MSG_RESULT([$enable_static])
6825 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6826 _LT_TAGVAR(LD, $1)="$LD"
6829 ## There is no encapsulation within the following macros, do not change
6830 ## the running order or otherwise move them around unless you know exactly
6831 ## what you are doing...
6832 _LT_SYS_HIDDEN_LIBDEPS($1)
6833 _LT_COMPILER_PIC($1)
6834 _LT_COMPILER_C_O($1)
6835 _LT_COMPILER_FILE_LOCKS($1)
6836 _LT_LINKER_SHLIBS($1)
6837 _LT_SYS_DYNAMIC_LINKER($1)
6838 _LT_LINKER_HARDCODE_LIBPATH($1)
6841 fi # test -n "$compiler"
6845 fi # test "$_lt_disable_FC" != yes
6848 ])# _LT_LANG_FC_CONFIG
6851 # _LT_LANG_GCJ_CONFIG([TAG])
6852 # --------------------------
6853 # Ensure that the configuration variables for the GNU Java Compiler compiler
6854 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6855 # to write the compiler configuration to `libtool'.
6856 m4_defun([_LT_LANG_GCJ_CONFIG],
6857 [AC_REQUIRE([LT_PROG_GCJ])dnl
6860 # Source file extension for Java test sources.
6863 # Object file extension for compiled Java test sources.
6865 _LT_TAGVAR(objext, $1)=$objext
6867 # Code to be used in simple compile tests
6868 lt_simple_compile_test_code="class foo {}"
6870 # Code to be used in simple link tests
6871 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6876 # save warnings/boilerplate of simple test code
6877 _LT_COMPILER_BOILERPLATE
6878 _LT_LINKER_BOILERPLATE
6880 # Allow CC to be a program name with arguments.
6886 _LT_TAGVAR(compiler, $1)=$CC
6887 _LT_TAGVAR(LD, $1)="$LD"
6888 _LT_CC_BASENAME([$compiler])
6890 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6891 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6893 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6895 if test -n "$compiler"; then
6896 _LT_COMPILER_NO_RTTI($1)
6897 _LT_COMPILER_PIC($1)
6898 _LT_COMPILER_C_O($1)
6899 _LT_COMPILER_FILE_LOCKS($1)
6900 _LT_LINKER_SHLIBS($1)
6901 _LT_LINKER_HARDCODE_LIBPATH($1)
6910 ])# _LT_LANG_GCJ_CONFIG
6913 # _LT_LANG_RC_CONFIG([TAG])
6914 # -------------------------
6915 # Ensure that the configuration variables for the Windows resource compiler
6916 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6917 # to write the compiler configuration to `libtool'.
6918 m4_defun([_LT_LANG_RC_CONFIG],
6919 [AC_REQUIRE([LT_PROG_RC])dnl
6922 # Source file extension for RC test sources.
6925 # Object file extension for compiled RC test sources.
6927 _LT_TAGVAR(objext, $1)=$objext
6929 # Code to be used in simple compile tests
6930 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6932 # Code to be used in simple link tests
6933 lt_simple_link_test_code="$lt_simple_compile_test_code"
6935 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6938 # save warnings/boilerplate of simple test code
6939 _LT_COMPILER_BOILERPLATE
6940 _LT_LINKER_BOILERPLATE
6942 # Allow CC to be a program name with arguments.
6948 _LT_TAGVAR(compiler, $1)=$CC
6949 _LT_CC_BASENAME([$compiler])
6950 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6952 if test -n "$compiler"; then
6960 ])# _LT_LANG_RC_CONFIG
6965 AC_DEFUN([LT_PROG_GCJ],
6966 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6967 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6968 [AC_CHECK_TOOL(GCJ, gcj,)
6969 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6970 AC_SUBST(GCJFLAGS)])])[]dnl
6974 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6975 dnl aclocal-1.4 backwards compatibility:
6976 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6981 AC_DEFUN([LT_PROG_RC],
6982 [AC_CHECK_TOOL(RC, windres,)
6986 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6987 dnl aclocal-1.4 backwards compatibility:
6988 dnl AC_DEFUN([LT_AC_PROG_RC], [])
6993 # If we don't have a new enough Autoconf to choose the best grep
6994 # available, choose the one first in the user's PATH.
6995 m4_defun([_LT_DECL_EGREP],
6996 [AC_REQUIRE([AC_PROG_EGREP])dnl
6997 AC_REQUIRE([AC_PROG_FGREP])dnl
6998 test -z "$GREP" && GREP=grep
6999 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7000 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7001 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7002 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7009 # If we don't have a new enough Autoconf to choose the best objdump
7010 # available, choose the one first in the user's PATH.
7011 m4_defun([_LT_DECL_OBJDUMP],
7012 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7013 test -z "$OBJDUMP" && OBJDUMP=objdump
7014 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7021 # Check for a fully-functional sed program, that truncates
7022 # as few characters as possible. Prefer GNU sed if found.
7023 m4_defun([_LT_DECL_SED],
7025 test -z "$SED" && SED=sed
7026 Xsed="$SED -e 1s/^X//"
7027 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7028 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7029 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7032 m4_ifndef([AC_PROG_SED], [
7033 # NOTE: This macro has been submitted for inclusion into #
7034 # GNU Autoconf as AC_PROG_SED. When it is available in #
7035 # a released version of Autoconf we should remove this #
7036 # macro and use it instead. #
7038 m4_defun([AC_PROG_SED],
7039 [AC_MSG_CHECKING([for a sed that does not truncate output])
7040 AC_CACHE_VAL(lt_cv_path_SED,
7041 [# Loop through the user's path and test for sed and gsed.
7042 # Then use that list of sed's as ones to test for truncation.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for lt_ac_prog in sed gsed; do
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7051 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7059 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7060 # along with /bin/sed that truncates output.
7061 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7062 test ! -f $lt_ac_sed && continue
7063 cat /dev/null > conftest.in
7065 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7066 # Check for GNU sed and select it if it is found.
7067 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7068 lt_cv_path_SED=$lt_ac_sed
7072 cat conftest.in conftest.in >conftest.tmp
7073 mv conftest.tmp conftest.in
7074 cp conftest.in conftest.nl
7076 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7077 cmp -s conftest.out conftest.nl || break
7078 # 10000 chars as input seems more than enough
7079 test $lt_ac_count -gt 10 && break
7080 lt_ac_count=`expr $lt_ac_count + 1`
7081 if test $lt_ac_count -gt $lt_ac_max; then
7082 lt_ac_max=$lt_ac_count
7083 lt_cv_path_SED=$lt_ac_sed
7090 AC_MSG_RESULT([$SED])
7095 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7096 dnl aclocal-1.4 backwards compatibility:
7097 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7100 # _LT_CHECK_SHELL_FEATURES
7101 # ------------------------
7102 # Find out whether the shell is Bourne or XSI compatible,
7103 # or has some other useful features.
7104 m4_defun([_LT_CHECK_SHELL_FEATURES],
7105 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7106 # Try some XSI features
7109 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7111 && eval 'test $(( 1 + 1 )) -eq 2 \
7112 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7114 AC_MSG_RESULT([$xsi_shell])
7115 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7117 AC_MSG_CHECKING([whether the shell understands "+="])
7119 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7121 && lt_shell_append=yes
7122 AC_MSG_RESULT([$lt_shell_append])
7123 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7130 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7132 # test EBCDIC or ASCII
7133 case `echo X|tr X '\101'` in
7134 A) # ASCII based system
7135 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7136 lt_SP2NL='tr \040 \012'
7137 lt_NL2SP='tr \015\012 \040\040'
7139 *) # EBCDIC based system
7140 lt_SP2NL='tr \100 \n'
7141 lt_NL2SP='tr \r\n \100\100'
7144 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7145 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7146 ])# _LT_CHECK_SHELL_FEATURES
7149 # _LT_PROG_XSI_SHELLFNS
7150 # ---------------------
7151 # Bourne and XSI compatible variants of some useful shell functions.
7152 m4_defun([_LT_PROG_XSI_SHELLFNS],
7155 cat << \_LT_EOF >> "$cfgfile"
7157 # func_dirname file append nondir_replacement
7158 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7159 # otherwise set result to NONDIR_REPLACEMENT.
7163 */*) func_dirname_result="${1%/*}${2}" ;;
7164 * ) func_dirname_result="${3}" ;;
7168 # func_basename file
7171 func_basename_result="${1##*/}"
7174 # func_dirname_and_basename file append nondir_replacement
7175 # perform func_basename and func_dirname in a single function
7177 # dirname: Compute the dirname of FILE. If nonempty,
7178 # add APPEND to the result, otherwise set result
7179 # to NONDIR_REPLACEMENT.
7180 # value returned in "$func_dirname_result"
7181 # basename: Compute filename of FILE.
7182 # value retuned in "$func_basename_result"
7183 # Implementation must be kept synchronized with func_dirname
7184 # and func_basename. For efficiency, we do not delegate to
7185 # those functions but instead duplicate the functionality here.
7186 func_dirname_and_basename ()
7189 */*) func_dirname_result="${1%/*}${2}" ;;
7190 * ) func_dirname_result="${3}" ;;
7192 func_basename_result="${1##*/}"
7195 # func_stripname prefix suffix name
7196 # strip PREFIX and SUFFIX off of NAME.
7197 # PREFIX and SUFFIX must not contain globbing or regex special
7198 # characters, hashes, percent signs, but SUFFIX may contain a leading
7199 # dot (in which case that matches only a dot).
7202 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7203 # positional parameters, so assign one to ordinary parameter first.
7204 func_stripname_result=${3}
7205 func_stripname_result=${func_stripname_result#"${1}"}
7206 func_stripname_result=${func_stripname_result%"${2}"}
7212 func_opt_split_opt=${1%%=*}
7213 func_opt_split_arg=${1#*=}
7220 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7221 *) func_lo2o_result=${1} ;;
7225 # func_xform libobj-or-source
7228 func_xform_result=${1%.*}.lo
7231 # func_arith arithmetic-term...
7234 func_arith_result=$(( $[*] ))
7238 # STRING may not start with a hyphen.
7241 func_len_result=${#1}
7246 *) # Bourne compatible functions.
7247 cat << \_LT_EOF >> "$cfgfile"
7249 # func_dirname file append nondir_replacement
7250 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7251 # otherwise set result to NONDIR_REPLACEMENT.
7254 # Extract subdirectory from the argument.
7255 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7256 if test "X$func_dirname_result" = "X${1}"; then
7257 func_dirname_result="${3}"
7259 func_dirname_result="$func_dirname_result${2}"
7263 # func_basename file
7266 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7269 dnl func_dirname_and_basename
7270 dnl A portable version of this function is already defined in general.m4sh
7271 dnl so there is no need for it here.
7273 # func_stripname prefix suffix name
7274 # strip PREFIX and SUFFIX off of NAME.
7275 # PREFIX and SUFFIX must not contain globbing or regex special
7276 # characters, hashes, percent signs, but SUFFIX may contain a leading
7277 # dot (in which case that matches only a dot).
7278 # func_strip_suffix prefix name
7282 .*) func_stripname_result=`$ECHO "X${3}" \
7283 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7284 *) func_stripname_result=`$ECHO "X${3}" \
7285 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7290 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7291 my_sed_long_arg='1s/^-[[^=]]*=//'
7296 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7297 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7303 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7306 # func_xform libobj-or-source
7309 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7312 # func_arith arithmetic-term...
7315 func_arith_result=`expr "$[@]"`
7319 # STRING may not start with a hyphen.
7322 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7328 case $lt_shell_append in
7330 cat << \_LT_EOF >> "$cfgfile"
7332 # func_append var value
7333 # Append VALUE to the end of shell variable VAR.
7341 cat << \_LT_EOF >> "$cfgfile"
7343 # func_append var value
7344 # Append VALUE to the end of shell variable VAR.
7347 eval "$[1]=\$$[1]\$[2]"
7355 # Helper functions for option handling. -*- Autoconf -*-
7357 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7358 # Written by Gary V. Vaughan, 2004
7360 # This file is free software; the Free Software Foundation gives
7361 # unlimited permission to copy and/or distribute it, with or without
7362 # modifications, as long as this notice is preserved.
7364 # serial 6 ltoptions.m4
7366 # This is to help aclocal find these macros, as it can't see m4_define.
7367 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7370 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7371 # ------------------------------------------
7372 m4_define([_LT_MANGLE_OPTION],
7373 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7376 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7377 # ---------------------------------------
7378 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7379 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7381 m4_define([_LT_SET_OPTION],
7382 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7383 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7384 _LT_MANGLE_DEFUN([$1], [$2]),
7385 [m4_warning([Unknown $1 option `$2'])])[]dnl
7389 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7390 # ------------------------------------------------------------
7391 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7392 m4_define([_LT_IF_OPTION],
7393 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7396 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7397 # -------------------------------------------------------
7398 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7400 m4_define([_LT_UNLESS_OPTIONS],
7401 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7402 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7403 [m4_define([$0_found])])])[]dnl
7404 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7409 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7410 # ----------------------------------------
7411 # OPTION-LIST is a space-separated list of Libtool options associated
7412 # with MACRO-NAME. If any OPTION has a matching handler declared with
7413 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7414 # the unknown option and exit.
7415 m4_defun([_LT_SET_OPTIONS],
7417 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7418 [_LT_SET_OPTION([$1], _LT_Option)])
7420 m4_if([$1],[LT_INIT],[
7422 dnl Simply set some default values (i.e off) if boolean options were not
7424 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7426 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7429 dnl If no reference was made to various pairs of opposing options, then
7430 dnl we run the default mode handler for the pair. For example, if neither
7431 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7432 dnl archives by default:
7433 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7434 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7435 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7436 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7437 [_LT_ENABLE_FAST_INSTALL])
7443 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7444 # -----------------------------------------
7445 m4_define([_LT_MANGLE_DEFUN],
7446 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7449 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7450 # -----------------------------------------------
7451 m4_define([LT_OPTION_DEFINE],
7452 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7453 ])# LT_OPTION_DEFINE
7458 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7461 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7462 [_LT_SET_OPTION([LT_INIT], [dlopen])
7463 AC_DIAGNOSE([obsolete],
7464 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7465 put the `dlopen' option into LT_INIT's first parameter.])
7468 dnl aclocal-1.4 backwards compatibility:
7469 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7474 # Declare package support for building win32 dll's.
7475 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7476 [enable_win32_dll=yes
7479 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7480 AC_CHECK_TOOL(AS, as, false)
7481 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7482 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7486 test -z "$AS" && AS=as
7487 _LT_DECL([], [AS], [0], [Assembler program])dnl
7489 test -z "$DLLTOOL" && DLLTOOL=dlltool
7490 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7492 test -z "$OBJDUMP" && OBJDUMP=objdump
7493 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7496 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7497 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7498 _LT_SET_OPTION([LT_INIT], [win32-dll])
7499 AC_DIAGNOSE([obsolete],
7500 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7501 put the `win32-dll' option into LT_INIT's first parameter.])
7504 dnl aclocal-1.4 backwards compatibility:
7505 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7508 # _LT_ENABLE_SHARED([DEFAULT])
7509 # ----------------------------
7510 # implement the --enable-shared flag, and supports the `shared' and
7511 # `disable-shared' LT_INIT options.
7512 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7513 m4_define([_LT_ENABLE_SHARED],
7514 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7515 AC_ARG_ENABLE([shared],
7516 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7517 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7518 [p=${PACKAGE-default}
7520 yes) enable_shared=yes ;;
7521 no) enable_shared=no ;;
7524 # Look at the argument we got. We use all the common list separators.
7525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7526 for pkg in $enableval; do
7528 if test "X$pkg" = "X$p"; then
7535 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7537 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7538 [Whether or not to build shared libraries])
7539 ])# _LT_ENABLE_SHARED
7541 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7542 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7545 AC_DEFUN([AC_ENABLE_SHARED],
7546 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7549 AC_DEFUN([AC_DISABLE_SHARED],
7550 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7553 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7554 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7556 dnl aclocal-1.4 backwards compatibility:
7557 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7558 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7562 # _LT_ENABLE_STATIC([DEFAULT])
7563 # ----------------------------
7564 # implement the --enable-static flag, and support the `static' and
7565 # `disable-static' LT_INIT options.
7566 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7567 m4_define([_LT_ENABLE_STATIC],
7568 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7569 AC_ARG_ENABLE([static],
7570 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7571 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7572 [p=${PACKAGE-default}
7574 yes) enable_static=yes ;;
7575 no) enable_static=no ;;
7578 # Look at the argument we got. We use all the common list separators.
7579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7580 for pkg in $enableval; do
7582 if test "X$pkg" = "X$p"; then
7589 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7591 _LT_DECL([build_old_libs], [enable_static], [0],
7592 [Whether or not to build static libraries])
7593 ])# _LT_ENABLE_STATIC
7595 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7596 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7599 AC_DEFUN([AC_ENABLE_STATIC],
7600 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7603 AC_DEFUN([AC_DISABLE_STATIC],
7604 [_LT_SET_OPTION([LT_INIT], [disable-static])
7607 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7608 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7610 dnl aclocal-1.4 backwards compatibility:
7611 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7612 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7616 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7617 # ----------------------------------
7618 # implement the --enable-fast-install flag, and support the `fast-install'
7619 # and `disable-fast-install' LT_INIT options.
7620 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7621 m4_define([_LT_ENABLE_FAST_INSTALL],
7622 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7623 AC_ARG_ENABLE([fast-install],
7624 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7625 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7626 [p=${PACKAGE-default}
7628 yes) enable_fast_install=yes ;;
7629 no) enable_fast_install=no ;;
7631 enable_fast_install=no
7632 # Look at the argument we got. We use all the common list separators.
7633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7634 for pkg in $enableval; do
7636 if test "X$pkg" = "X$p"; then
7637 enable_fast_install=yes
7643 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7645 _LT_DECL([fast_install], [enable_fast_install], [0],
7646 [Whether or not to optimize for fast installation])dnl
7647 ])# _LT_ENABLE_FAST_INSTALL
7649 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7650 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7653 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7654 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7655 AC_DIAGNOSE([obsolete],
7656 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7657 the `fast-install' option into LT_INIT's first parameter.])
7660 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7661 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7662 AC_DIAGNOSE([obsolete],
7663 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7664 the `disable-fast-install' option into LT_INIT's first parameter.])
7667 dnl aclocal-1.4 backwards compatibility:
7668 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7669 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7672 # _LT_WITH_PIC([MODE])
7673 # --------------------
7674 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7676 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7677 m4_define([_LT_WITH_PIC],
7679 [AS_HELP_STRING([--with-pic],
7680 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7681 [pic_mode="$withval"],
7684 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7686 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7689 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7690 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7693 AU_DEFUN([AC_LIBTOOL_PICMODE],
7694 [_LT_SET_OPTION([LT_INIT], [pic-only])
7695 AC_DIAGNOSE([obsolete],
7696 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7697 put the `pic-only' option into LT_INIT's first parameter.])
7700 dnl aclocal-1.4 backwards compatibility:
7701 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7704 m4_define([_LTDL_MODE], [])
7705 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7706 [m4_define([_LTDL_MODE], [nonrecursive])])
7707 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7708 [m4_define([_LTDL_MODE], [recursive])])
7709 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7710 [m4_define([_LTDL_MODE], [subproject])])
7712 m4_define([_LTDL_TYPE], [])
7713 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7714 [m4_define([_LTDL_TYPE], [installable])])
7715 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7716 [m4_define([_LTDL_TYPE], [convenience])])
7718 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7720 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7721 # Written by Gary V. Vaughan, 2004
7723 # This file is free software; the Free Software Foundation gives
7724 # unlimited permission to copy and/or distribute it, with or without
7725 # modifications, as long as this notice is preserved.
7727 # serial 6 ltsugar.m4
7729 # This is to help aclocal find these macros, as it can't see m4_define.
7730 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7733 # lt_join(SEP, ARG1, [ARG2...])
7734 # -----------------------------
7735 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7736 # associated separator.
7737 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7738 # versions in m4sugar had bugs.
7739 m4_define([lt_join],
7740 [m4_if([$#], [1], [],
7742 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7743 m4_define([_lt_join],
7744 [m4_if([$#$2], [2], [],
7745 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7751 # Manipulate m4 lists.
7752 # These macros are necessary as long as will still need to support
7753 # Autoconf-2.59 which quotes differently.
7754 m4_define([lt_car], [[$1]])
7756 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7758 [m4_dquote(m4_shift($@))])])
7759 m4_define([lt_unquote], $1)
7762 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7763 # ------------------------------------------
7764 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7765 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7766 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7767 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7768 # than defined and empty).
7770 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7771 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7772 m4_define([lt_append],
7774 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7778 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7779 # ----------------------------------------------------------
7780 # Produce a SEP delimited list of all paired combinations of elements of
7781 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7782 # has the form PREFIXmINFIXSUFFIXn.
7783 # Needed until we can rely on m4_combine added in Autoconf 2.62.
7784 m4_define([lt_combine],
7785 [m4_if(m4_eval([$# > 3]), [1],
7786 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7787 [[m4_foreach([_Lt_prefix], [$2],
7788 [m4_foreach([_Lt_suffix],
7789 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7790 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7793 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7794 # -----------------------------------------------------------------------
7795 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7796 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7797 m4_define([lt_if_append_uniq],
7799 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7800 [lt_append([$1], [$2], [$3])$4],
7802 [lt_append([$1], [$2], [$3])$4])])
7805 # lt_dict_add(DICT, KEY, VALUE)
7806 # -----------------------------
7807 m4_define([lt_dict_add],
7808 [m4_define([$1($2)], [$3])])
7811 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7812 # --------------------------------------------
7813 m4_define([lt_dict_add_subkey],
7814 [m4_define([$1($2:$3)], [$4])])
7817 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7818 # ----------------------------------
7819 m4_define([lt_dict_fetch],
7821 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7822 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7825 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7826 # -----------------------------------------------------------------
7827 m4_define([lt_if_dict_fetch],
7828 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7833 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7834 # --------------------------------------------------------------
7835 m4_define([lt_dict_filter],
7836 [m4_if([$5], [], [],
7837 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7838 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7839 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7842 # ltversion.m4 -- version numbers -*- Autoconf -*-
7844 # Copyright (C) 2004 Free Software Foundation, Inc.
7845 # Written by Scott James Remnant, 2004
7847 # This file is free software; the Free Software Foundation gives
7848 # unlimited permission to copy and/or distribute it, with or without
7849 # modifications, as long as this notice is preserved.
7851 # Generated from ltversion.in.
7853 # serial 3017 ltversion.m4
7854 # This file is part of GNU Libtool
7856 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7857 m4_define([LT_PACKAGE_REVISION], [1.3017])
7859 AC_DEFUN([LTVERSION_VERSION],
7860 [macro_version='2.2.6b'
7861 macro_revision='1.3017'
7862 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7863 _LT_DECL(, macro_revision, 0)
7866 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7868 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7869 # Written by Scott James Remnant, 2004.
7871 # This file is free software; the Free Software Foundation gives
7872 # unlimited permission to copy and/or distribute it, with or without
7873 # modifications, as long as this notice is preserved.
7875 # serial 4 lt~obsolete.m4
7877 # These exist entirely to fool aclocal when bootstrapping libtool.
7879 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7880 # which have later been changed to m4_define as they aren't part of the
7881 # exported API, or moved to Autoconf or Automake where they belong.
7883 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7884 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7885 # using a macro with the same name in our local m4/libtool.m4 it'll
7886 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7887 # and doesn't know about Autoconf macros at all.)
7889 # So we provide this file, which has a silly filename so it's always
7890 # included after everything else. This provides aclocal with the
7891 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7892 # because those macros already exist, or will be overwritten later.
7893 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7895 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7896 # Yes, that means every name once taken will need to remain here until
7897 # we give up compatibility with versions before 1.7, at which point
7898 # we need to keep only those names which we still refer to.
7900 # This is to help aclocal find these macros, as it can't see m4_define.
7901 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7903 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7904 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7905 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7906 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7907 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7908 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7909 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7910 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7911 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7912 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7913 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7914 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7915 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7916 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7917 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7918 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7919 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7920 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7921 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7922 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7923 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7924 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7925 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7926 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7927 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7928 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7929 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7930 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7931 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7932 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7933 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7934 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7935 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7936 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7937 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7938 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7939 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7940 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7941 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7942 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7943 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7944 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7945 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7946 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7947 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7948 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7949 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7950 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7951 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7952 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7953 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7954 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7955 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7956 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7957 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7959 m4_include([ft-munmap.m4])